query
stringlengths
7
5.25k
document
stringlengths
15
1.06M
metadata
dict
negatives
listlengths
3
101
negative_scores
listlengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
Scan languages directory and copy translations to DB
public function storeLanguagesVarsToDB(): void { foreach ($this->getDirsWithLanguages() as $lang => $dir) { $fs = new Filesystem(); $files = $fs->files($dir); foreach ($files as $fileName) { $filePath = $dir . "/" . $fileName->getRelativePathname(); $array = (file_exists($filePath)) ? require($filePath) : []; $this->saveLanguageValueToDB(basename($fileName->getRelativePathname(), ".php"), $lang, [], $array); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function synchTranslations() {\n\t\t//header('Content-type: text/html; charset=utf-8');\n\t\t$player = User::getUser();\n\t\t$lang = $this->params['lang'];\n\n\t\t//ONLY English!\n\t\t$lang = \"EN\";\n\t\tif (!$player or $player->canAccess('Super Admin Interface') !== TRUE or strlen($lang) != 2) {\n\t\t\tDooUriRouter::redirect(Doo::conf()->APP_URL);\n\t\t\treturn false;\n\t\t}\n\n\t\t$file_names = array();\n\t\t$path = Doo::conf()->SITE_PATH . 'protected';\n\t\tExternalController::scanFileNameRecursivly($path, $file_names);\n\n\t\t//$translator = Doo::translator('Csv', Doo::conf()->SITE_PATH . 'protected/lang/' . $lang . '/' . $lang . //'.csv');\n\t\t$translator = Doo::translator('database', $lang);\n\n\t\t$fileResult = array();\n\n\t\tforeach ($file_names as $file) {\n\n\t\t\tif (file_exists($file)) {\n\n\t\t\t\t$content = file_get_contents($file);\n\n\t\t\t\t$clen = strlen($content);\n\n\t\t\t\t$pos = 0;\n\t\t\t\twhile ($pos = strpos($content, 'this'.'->__(', $pos))\n\t\t\t\t{\n\t\t\t\t\tif ($pos)\n\t\t\t\t\t{\n\t\t\t\t\t\t//Get ''\n\t\t\t\t\t\tif ($content[$pos+9]==\"'\")\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$res = \"\";\n\t\t\t\t\t\t\t$pos1 = strpos($content, \"'\", $pos+1);\n\t\t\t\t\t\t\t$pos2 = strpos($content, \"'\", $pos1+1);\n\n\t\t\t\t\t\t\tfor ($i=$pos1+1;$i<$pos2;$i++)\n\t\t\t\t\t\t\t\t$res .= $content[$i];\n\t\t\t\t\t\t\t$fileResult[] = $res;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//Get \"\"\n\t\t\t\t\t\tif ($content[$pos+9]=='\"')\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$res = \"\";\n\t\t\t\t\t\t\t$pos1 = strpos($content, '\"', $pos+1);\n\t\t\t\t\t\t\t$pos2 = strpos($content, '\"', $pos1+1);\n\n\t\t\t\t\t\t\tfor ($i=$pos1+1;$i<$pos2;$i++)\n\t\t\t\t\t\t\t\t$res .= $content[$i];\n\t\t\t\t\t\t\t$fileResult[] = $res;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t$pos++;\n\t\t\t\t}\n\n\t\t\t\t// Check for snController - used when this can not be used\n\t\t\t\t$pos = 0;\n\t\t\t\twhile ($pos = strpos($content, 'snController'.'->__(', $pos))\n\t\t\t\t{\n\t\t\t\t\tif ($pos)\n\t\t\t\t\t{\n\t\t\t\t\t\t//Get ''\n\t\t\t\t\t\tif ($content[$pos+17]==\"'\")\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$res = \"\";\n\t\t\t\t\t\t\t$pos1 = strpos($content, \"'\", $pos+1);\n\t\t\t\t\t\t\t$pos2 = strpos($content, \"'\", $pos1+1);\n\n\t\t\t\t\t\t\tfor ($i=$pos1+1;$i<$pos2;$i++)\n\t\t\t\t\t\t\t\t$res .= $content[$i];\n\t\t\t\t\t\t\t$fileResult[] = $res;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//Get \"\"\n\t\t\t\t\t\tif ($content[$pos+17]=='\"')\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$res = \"\";\n\t\t\t\t\t\t\t$pos1 = strpos($content, '\"', $pos+1);\n\t\t\t\t\t\t\t$pos2 = strpos($content, '\"', $pos1+1);\n\n\t\t\t\t\t\t\tfor ($i=$pos1+1;$i<$pos2;$i++)\n\t\t\t\t\t\t\t\t$res .= $content[$i];\n\t\t\t\t\t\t\t$fileResult[] = $res;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t$pos++;\n\t\t\t\t}\n\n\t\t\t} else {\n\t\t\t\techo \"No file\";\n\t\t\t}\n\t\t}\n $fileResult = array_unique($fileResult);\n //Fetch and compare texts from database with collected fileresults to find unused texts and delete them\n if (!empty($fileResult)) {\n echo \"TRANSLATION KEY DELETION: <br/><br/>\";\n\n $dRows = 0;\n $screentexts = new GeScreenTexts();\n $params['select'] = \"{$screentexts->_table}.ID_TEXT, {$screentexts->_table}.TransKey\";\n $dbKeys = Doo::db()->find('GeScreenTexts', $params);\n foreach($dbKeys as $text) {\n $key = array_search($text->TransKey, $fileResult);\n // If key isn't used, delete it\n if(!$key) {\n $query = \"DELETE FROM ge_screentexts WHERE ID_TEXT={$text->ID_TEXT}\";\n echo \"Deleted: $text->TransKey<br/>\";\n Doo::db()->query($query);\n $dRows++;\n }\n }\n echo \"$dRows keys deleted<br/><br/>\";\n }\n\n\t\t//Loop thru the collected fileresults and find new untranslated texts and insert them\n\t\tif (!empty($fileResult)) {\n\t\t\techo \"FILE TRANSLATION: <br/><br/>\";\n\n\t\t\t$nRows = 0;\n\t\t\tforeach ($fileResult as $item)\n\t\t\t{\n\t\t\t\t$query = \"SELECT COUNT(*) as n FROM ge_screentexts WHERE TransKey=\" .'\"' . $item . '\"';\n\n\t\t\t\t$o = (object)Doo::db()->fetchRow($query);\n\t\t\t\t$n = $o->n;\n\n\t\t\t\tif ($n==0)\n\t\t\t\t{\n\t\t\t\t\t$query = \"INSERT INTO ge_screentexts\".\n\t\t\t\t\t\t\t \"(TransKey,TransTextEN,TransTextDA,TransTextDE,TransTextFR,TransTextES,TransTextRO,TransTextLT,TransTextBG,\".\n\t\t\t\t\t\t\t \"TransTextNL,TransTextEL,TransTextTR,TransTextZH,TransTextIS,TransTextBR,TransTextTH,TransTextPT,TransTextRU,\".\n\t\t\t\t\t\t\t \"TransTextPL,TransTextFI,TransTextFA,TransTextDR,TransTextNO,TransTextSE,TransTextHU,TransTextAR,TransTextET)\".\n\t\t\t\t\t\t\t \"VALUES (\".'\"'.$item.'\",\"'.$item.'\"'.\",'','','','','','','','','','','','','','','','','','','','','','','','','')\";\n\t\t\t\t\techo \"New: $item<br/>\";\n\t\t\t\t\tDoo::db()->query($query);\n\t\t\t\t\t//echo \" - $query<br/>\";\n\t\t\t\t\t$nRows++;\n\t\t\t\t}\n\n\t\t\t}\n\t\t\techo \"$nRows new rows added<br/>\";\n\t\t}\n\n\n\t\techo \"<p>Synch translations done</p>\";\n\t\texit;\n\n\t}", "function update_translations()\n\t{\n\t\t$this->load->library('translator');\n\t\t\n\t\t//application language folder\n\t\t$language_folder=APPPATH.'language/';\n\t\t\n\t\t//template language \n\t\t$language='base';\n\t\t\n\t\t//path to the language folder\n\t\t$language_path=$language_folder.$language;\n\t\t\n\t\t//get a list of all translation files for the given language \n\t\t$files=$this->translator->get_language_files_array($language_path);\n\t\t\n\t\t//will be updated with additons from the BASE language file\n\t\t$target_language=$this->config->item(\"language\");\n\t\t\n\t\tif (!$target_language)\n\t\t{\n\t\t\techo \"language $target_language was not found\";\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tforeach($files as $file)\n\t\t{\n\t\t\t$target_filepath=$language_folder.'/'.$target_language.'/'.$file;\n\n\t\t\t//merge source and target language file to fill in missing translations for the target language\n\t\t\t$data['translations']=$this->translator->merge_language_keys($language_path.'/'.$file,$target_filepath);\n\t\t\t$data['language_name']=$target_language;\n\t\t\t$data['translation_file']=$file;\n\t\t\t\n\t\t\t//target language file content\n\t\t\t$content='<?php '.\"\\n\\n\".$this->load->view('translator/save',$data,TRUE);\n\t\t\t\n\t\t\t//update the target language file\n\t\t\t$save_result=@file_put_contents($target_filepath,$content);\n\t\t\t\n\t\t\tif($save_result)\n\t\t\t{\n\t\t\t\techo \"Language file updated: \" . $target_filepath.'<br />';\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\techo \"<div style='color:red;'>Language file update failed: \" . $target_filepath.'</div>';\n\t\t\t}\n\t\t}\t\t\n\t}", "public static function cleanupCustomTranslations(): void {\n\t\t$base_dir = elgg_get_data_path() . 'translation_editor' . DIRECTORY_SEPARATOR;\n\t\tif (!is_dir($base_dir)) {\n\t\t\t// no custom translations\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t$dh = new \\DirectoryIterator($base_dir);\n\t\t/* @var $language_info \\DirectoryIterator */\n\t\tforeach ($dh as $language_info) {\n\t\t\tif ($language_info->isDot() || !$language_info->isDir()) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\t$ldh = new \\DirectoryIterator($language_info->getPathname());\n\t\t\t/* @var $plugin_translation \\DirectoryIterator */\n\t\t\tforeach ($ldh as $plugin_translation) {\n\t\t\t\tif (!$plugin_translation->isFile()) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$plugin_id = $plugin_translation->getBasename('.json');\n\t\t\t\t\n\t\t\t\tself::cleanupPlugin($language_info->getFilename(), $plugin_id);\n\t\t\t}\n\t\t\t\n\t\t\t// merge new translations for this language\n\t\t\ttranslation_editor_merge_translations($language_info->getFilename());\n\t\t}\n\t}", "public function initLocalization() {\n $moFiles = scandir(trailingslashit($this->dir) . 'languages/');\n foreach ($moFiles as $moFile) {\n if (strlen($moFile) > 3 && substr($moFile, -3) == '.mo' && strpos($moFile, get_locale()) > -1) {\n load_textdomain('WP_Visual_Chat', trailingslashit($this->dir) . 'languages/' . $moFile);\n }\n }\n }", "public function create_new_lang()\n {\n $root_directory = FCPATH.\"application/language/\";\n $scan_root_directory = array_diff(scandir($root_directory),array('.','..'));\n $data['root_dir'] = $scan_root_directory;\n\n // Application Languages\n $directory = FCPATH.\"application/language/english\";\n $file_lists = scandir($directory,0);\n $total_file = count($file_lists);\n $language_Files = array();\n\n for($i = 2; $i< $total_file; $i++) \n {\n array_push($language_Files, $file_lists[$i]);\n }\n\n for ($i = 0; $i < count($language_Files); $i++) \n {\n $file_name = $language_Files[$i];\n include FCPATH.\"application/language/english/\".$file_name;\n $data['file_name'][$i] = $file_name;\n }\n\n // datatables plugins language\n $directory2 = FCPATH.\"assets/modules/datatables/language/english.json\";\n $plugin_file = file_get_contents($directory2);\n $plugin_file_contents = json_decode($plugin_file,TRUE);\n\n $lang = array();\n\n foreach ($plugin_file_contents as $key => $value) \n {\n if($key == \"oPaginate\")\n {\n foreach ($value as $key1 => $value1) \n {\n $lang[$key1] = $value1;\n }\n\n } else if ($key =='oAria') {\n\n foreach ($value as $key1 => $value1) \n {\n $lang[$key1] = $value1;\n }\n } else {\n $lang[$key] = $value;\n\n } \n }\n\n\n // Addon Language\n $addon_directory = FCPATH.\"application/modules/\";\n $scan_directory = scandir($addon_directory,0);\n $addon_files = array();\n\n for ($i = 2; $i < count($scan_directory) ; $i++) \n {\n array_push($addon_files, $scan_directory[$i]);\n }\n\n $addon_lang_folder = array();\n for ($i = 0; $i < count($addon_files); $i++) \n {\n $module_directory = FCPATH.\"application/modules/\".$addon_files[$i].\"/language\";\n if(file_exists($module_directory))\n {\n $scan_module_directories = array_diff(scandir($module_directory),array('.','..'));\n if(!empty($scan_module_directories))\n {\n $addon_name = $addon_directory.$addon_files[$i];\n array_push($addon_lang_folder,$addon_name);\n }\n }\n }\n\n\n $addon_dir_arr = array();\n for ($i = 0; $i < count($addon_lang_folder); $i++) \n {\n $addon_lang_file = $addon_lang_folder[$i];\n $addon_lang_file_dir = $addon_lang_file.\"/language/english/\";\n $addon_lang_file_dir_scan[] = scandir($addon_lang_file_dir,1);\n array_push($addon_dir_arr,$addon_lang_file_dir_scan[$i][0]);\n }\n $data['addons'] = $addon_dir_arr;\n\n $data['body'] = 'admin/multi_language/add_language';\n $data['page_title'] = $this->lang->line(\"New Language\");\n $this->_viewcontroller($data);\n }", "function install_translations() {\n $db = DB::getInstance();\n if(!$db->query(file_get_contents(CORE_INSTALLER_FILES_PATH.'/db/translation.sql'))->error()) {\n return true;\n }\n else {\n System::addMessage('error', rt('An error occurred during the installation of your chosen language'));\n }\n return false;\n}", "public function handle()\n {\n //fetch all strings to be translated\n foreach (config('transwire.directories') as $directory) {\n try {\n $directory = new RecursiveDirectoryIterator($directory);\n foreach (new RecursiveIteratorIterator($directory) as $filename => $file) {\n foreach (config('transwire.extensions') as $extension => $regex) {\n if (str_ends_with($filename, $extension)) {\n $file_content = file_get_contents($filename);\n preg_match_all($regex, $file_content, $matches);\n foreach ($matches[1] as $match)\n if ($match !== '' && !in_array($match, $this->stringsToTranslate))\n $this->stringsToTranslate[$match] = \"\";\n if (isset($matches[2]) && count($matches[2]) > 0)\n foreach ($matches[2] as $match)\n if ($match !== '' && !in_array($match, $this->stringsToTranslate))\n $this->stringsToTranslate[$match] = \"\";\n break;\n }\n }\n }\n } catch (\\Exception $e) {\n continue;\n }\n }\n //foreach defined locale, find corresponding files\n foreach (config('transwire.locales') as $locale) {\n try {\n $translated_strings = json_decode(file_get_contents('./resources/lang/' . $locale . '.json'), true);\n $this->syncStrings($translated_strings);\n $localeFile = fopen('./resources/lang/' . $locale . '.json', 'w');\n fwrite($localeFile, json_encode($this->stringsToTranslate, JSON_UNESCAPED_UNICODE | JSON_PRETTY_PRINT));\n fclose($localeFile);\n } catch (\\Exception $e) {\n $localeFile = fopen('./resources/lang/' . $locale . '.json', 'w');\n fwrite($localeFile, json_encode($this->stringsToTranslate, JSON_UNESCAPED_UNICODE | JSON_PRETTY_PRINT));\n fclose($localeFile);\n }\n }\n }", "function scan_templates_for_translations () {\r\n $this->CI->load->helper( 'file' );\r\n $filename = config_item( 'dummy_translates_filename' );\r\n\r\n // Clean Pattern for new file\r\n $clean_pattern = \"<?php\\n\";\r\n\r\n // Emptying file\r\n write_file( $filename, $clean_pattern );\r\n\r\n $path = realpath( config_item( 'current_template_uri' ) );\r\n $directory = new RecursiveDirectoryIterator( $path );\r\n $iterator = new RecursiveIteratorIterator( $directory );\r\n\r\n // Regex for no deprecated twig templates\r\n $regex = '/^((?!DEPRECATED).)*\\.twig$/i';\r\n $file_iterator = new RegexIterator( $iterator, $regex, RecursiveRegexIterator::GET_MATCH );\r\n\r\n $files = 0;\r\n $arr_strings = array();\r\n\r\n foreach( $file_iterator as $name => $object ) {\r\n $files++;\r\n\r\n // Mega regex for Quoted String tokens with escapable quotes\r\n // http://www.metaltoad.com/blog/regex-quoted-string-escapable-quotes\r\n $pattern = '/{%\\s?trans\\s?((?<![\\\\\\\\])[\\'\"])((?:.(?!(?<![\\\\\\\\])\\1))*.?)\\1/';\r\n $current_file = fopen( $name, 'r' );\r\n\r\n while ( ( $buffer = fgets( $current_file ) ) !== false ) {\r\n if ( preg_match_all( $pattern, $buffer, $matches ) ) {\r\n foreach( $matches[ 2 ] as $match ) {\r\n // Escaping quotes not yet escaped\r\n $match = preg_replace( '/(?<![\\\\\\\\])(\\'|\")/', \"\\'\", $match );\r\n array_push( $arr_strings, \"echo _( '$match' );\\n\" );\r\n }\r\n }\r\n }\r\n\r\n fclose( $current_file );\r\n }\r\n\r\n // Remove duplicates\r\n $arr_strings = array_unique( $arr_strings );\r\n write_file( $filename, implode( $arr_strings ), 'a' );\r\n\r\n $result = array(\r\n 'templates' => $files,\r\n 'strings' => count( $arr_strings ),\r\n 'output' => $filename,\r\n 'lint' => check_php_file_syntax( $filename )\r\n );\r\n\r\n return $result;\r\n }", "function doTranslate($file,$languages){\n\techo \"\\n\\n=============================\\n\";\n\techo \"Translating $file\\n\";\n\techo \"=============================\\n\";\n\t$filenamepart=explodeFile($file);\n\t$buffer=file_get_contents($file);\n\t//loop through the languages\n\tforeach ($languages as $key=>$lang){\n\t\techo \"-----------------------------\\n\";\n\t\techo \"Translating to language $key\\n\";\n\t\techo \"-----------------------------\\n\";\n\t\t$posR=0;\n\t\t$translated = \"\";\n\t\twhile (true){\n\t\t\t//find next occurence of a data-i18n attribute\n\t\t\t$pos1 = getNextDataI18N($buffer,$posR+1);\n\t\t\t\n\t\t\t//if there is no more occurence, there's nothing more to do; break this loop\n\t\t\tif ($pos1==false) {break;}\n\t\t\t\n\t\t\t//else extract the dataName from this attribute\n\t\t\t$pos2 = getNextQuote($buffer,$pos1+1);\n\t\t\t$dataName = getTextBetween($buffer,$pos1,$pos2);\n\t\t\n\t\t\t//append with text that comes before the string to be translated\n\t\t\t$posL = getNextGt($buffer,$pos2);\n\t\t\t$translated .= getTextBefore($buffer,$posR,$posL);\n\t\t\t\n\t\t\t//append with translation of said string\n\t\t\t$replaceText = getI18nText($dataName,$lang);\n\t\t\techo \"* $dataName=$replaceText\\n\";\t\n\t\t\t$translated .= $replaceText;\n\t\t\t\n\t\t\t//go to end of translated string\n\t\t\t$posR = getNextLt($buffer,$posL);\n\t\t\t$pos1 = $posR;\n\t\t\n\t\t}\n\t\t//append part of file after last translated string\n\t\t$translated .= substr($buffer,$posR,-1);// getTextAfter($buffer,$posR);\n\t\t\n\t\t//if language directory does not exist, create it\n\t\t$directory = $filenamepart[0].\"$key/\"; \n\t\tif (!is_dir($directory)) {\n\t\t\tmkdir($directory);\n\t\t\techo \"* created directory $directory\\n\";\n\t\t}\n\t\t\n\t\t//create file for language\n\t\t$newFile=$directory.$filenamepart[1];\n\t\tfile_put_contents($newFile,$translated);\n\t\t\n\t}\n}", "private function load(): void\n {\n $paths = $this->getPaths();\n\n $this->locales['app'] = $this->loadTranslations($paths['app']);\n\n foreach ($paths['vendors'] as $path) {\n $this->locales['vendor-php'] = $this->loadTranslations($path);\n $this->locales['vendor-json'] = $this->loadJsonTranslations($path);\n }\n }", "public function translateAllFiles(string $language): void\n {\n $this->translateTo = $language;\n\n $files = $this->getAllFileNames();\n\n foreach ($files as $file) {\n $this->translateFile($file);\n }\n\n $this->save();\n }", "public function translations()\n {\n $this->loadTranslationsFrom(__DIR__.'/Resources/Lang', $this->packageName);\n\n $this->publishes([\n __DIR__.'/path/to/translations' => resource_path('lang/vendor/courier'),\n ], $this->packageName.'-translations');\n }", "public function passo3() {\n $filename= 'f' . gmdate('YmdHis');\n foreach ($this->langarr as $k => $v):\n\n $path = ROOT.DS.'app'.DS.'locale'.DS.$v;\n if (!file_exists($path)) mkdir($path);\n \t$path .= DS.'LC_MESSAGES';\n if (!file_exists($path)) mkdir($path);\n \t$file = $path.DS.$filename;\n if (!file_exists($path)) touch($file);\n\n $file = new File($path.DS.$filename);\n $tmprec = $this->Traducao->find('all',array('conditions' => array('Traducao.locale' => $k)));\n foreach ($tmprec as $rec):\n $file->write('msgid \"' .$rec['Traducao']['msgid'] .'\"'.\"\\n\");\n $file->write('msgstr \"'.$rec['Traducao']['msgstr'].'\"'.\"\\n\");\n endforeach;\n $file->close();\n\n if (file_exists($path.DS.'default.po'))\n rename ($path.DS.'default.po',$path.DS.'default.po.old'.gmdate('YmdHis'));\n\t \n rename ($path.DS.$filename,$path.DS.'default.po');\n endforeach;\n }", "function doEachFile() {\n //open Kohana directory\n $kohana_path = getcwd() . '/i18n/';\n if (is_dir($kohana_path)) {\n $kohana_dir = opendir($kohana_path);\n }\n else {\n die('Could not open Kohana lang file directory.');\n }\n \n //loop through files in the kohana directory, find matching ionize file, and translate\n while (($kohana_file = readdir($kohana_dir)) !== false) {\n if(filetype($kohana_path . $kohana_file) != 'dir') {\n //get lang code for current file\n $lang_code = str_replace('.php', '', $kohana_file);\n //open matching folder in Ionize directory\n $ionize_path = getcwd() . '/language/' . $lang_code;\n if (is_dir($ionize_path)) {\n $ionize_dir = opendir($ionize_path);\n }\n else {\n die('Could not open Ionize ' . $lang_code . ' lang file directory.');\n }\n while (($ionize_file = readdir($ionize_dir)) !== false) {\n //if current file is the needed lang file, translate\n if($ionize_file == 'theme_lang.php') {\n translateFile($kohana_path . '/' . $kohana_file, $ionize_path . '/' . $ionize_file);\n }\n }\n }\n }\n \n}", "public function testInstallerTranslationFiles() {\n // Different translation files would be found depending on which language\n // we are looking for.\n $expected_translation_files = [\n NULL => ['drupal-8.0.0-beta2.hu.po', 'drupal-8.0.0.de.po', 'drupal-8.0.x.fr-CA.po'],\n 'de' => ['drupal-8.0.0.de.po'],\n 'fr-CA' => ['drupal-8.0.x.fr-CA.po'],\n 'hu' => ['drupal-8.0.0-beta2.hu.po'],\n 'it' => [],\n ];\n\n // Hardcode the fixtures location as we don't yet know where it is.\n // @todo Remove as part of https://www.drupal.org/node/2186491\n $file_translation = new FileTranslation('core/tests/fixtures/files/translations', $this->container->get('file_system'));\n foreach ($expected_translation_files as $langcode => $files_expected) {\n $files_found = $file_translation->findTranslationFiles($langcode);\n $this->assertSameSize($files_expected, $files_found, new FormattableMarkup('@count installer languages found.', ['@count' => count($files_expected)]));\n foreach ($files_found as $file) {\n $this->assertContains($file->filename, $files_expected, new FormattableMarkup('@file found.', ['@file' => $file->filename]));\n }\n }\n }", "public function run()\n {\n if (!empty(DB::table('language')->first())) {\n return;\n }\n\n $languagesJsonFile = __DIR__.'/resources/uis_core_languages.json';\n $languagesData = json_decode($this->files->get($languagesJsonFile));\n $insertLanguages = [];\n $lngIndex = 0;\n foreach ($languagesData as $lngData) {\n $code = isset($lngData->code) ? $lngData->code : '';\n $name = isset($lngData->name_native) ? $lngData->name_native : '';\n $enName = isset($lngData->name_en) ? $lngData->name_en : '';\n $isDefault = isset($lngData->is_default) && $lngData->is_default ? BaseModel::TRUE : BaseModel::FALSE;\n\n $insertLanguages[$lngIndex] = [\n 'code' => $code,\n 'name' => $name,\n 'en_name' => $enName,\n 'sort_order' => $lngIndex * 10,\n 'is_default' => $isDefault,\n 'show_status' => BaseModel::STATUS_ACTIVE,\n ];\n $lngIndex++;\n }\n DB::table('language')->insert($insertLanguages);\n }", "private function registerTranslations()\n {\n $langPath = $this->getBasePath() . '/resources/lang';\n\n $this->loadTranslationsFrom($langPath, $this->package);\n $this->publishes([\n $langPath => base_path(\"resources/lang/arcanedev/{$this->package}\"),\n ], 'translations');\n }", "private function translations()\n {\n $this['translator'] = $this->share($this->extend('translator', function ($translator) {\n $translator->addLoader('yaml', new TranslationFileLoader());\n\n $translator->addResource('yaml', 'config/locales/pt-br.yml', 'pt-br');\n $translator->addResource('yaml', 'config/locales/en-us.yml', 'en-us');\n $translator->addResource('yaml', 'config/locales/es-es.yml', 'es-es');\n\n return $translator;\n }));\n }", "public function copyContentToLanguageFromNonDefaultLanguage() {}", "public function copyContentToLanguageFromNonDefaultLanguage() {}", "public function system_language_file_variables(){\n\t // Verify app level lang\n $my_files = $this->zajlib->file->get_files('app/lang/', true);\n foreach($my_files as $f){\n $file = str_ireplace('app/lang/', '', $this->zajlib->file->get_relative_path($f));\n $fdata = explode('.', $file);\n // Check for old data\n if(strlen($fdata[1]) < 5) $this->zajlib->test->notice(\"Found old language file format: \".$file);\n else{\n $file = trim($fdata[0], '/');\n $this->verify_single_language_file($file);\n }\n }\n\n\t\t// Get all of the plugins (local lang files are in _project plugin)\n\t\tforeach($this->zajlib->plugin->get_plugins('app') as $plugin){\n\t\t\t$my_files = $this->zajlib->file->get_files('plugins/'.$plugin.'/lang/', true);\n\t\t\tforeach($my_files as $f){\n\t\t\t\t$file = str_ireplace('plugins/'.$plugin.'/lang/', '', $this->zajlib->file->get_relative_path($f));\n\t\t\t\t$fdata = explode('.', $file);\n\t\t\t\t// Check for old data\n\t\t\t\tif(strlen($fdata[1]) < 5) $this->zajlib->test->notice(\"Found old language file format: \".$file);\n\t\t\t\telse{\n\t\t\t\t\t$file = trim($fdata[0], '/');\n\t\t\t\t\t$this->verify_single_language_file($file);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// Get all of the plugins (local lang files are in _project plugin)\n\t\tforeach($this->zajlib->plugin->get_plugins('system') as $plugin){\n\t\t\t$my_files = $this->zajlib->file->get_files('system/plugins/'.$plugin.'/lang/', true);\n\t\t\tforeach($my_files as $f){\n\t\t\t\t$file = str_ireplace('system/plugins/'.$plugin.'/lang/', '', $this->zajlib->file->get_relative_path($f));\n\t\t\t\t$fdata = explode('.', $file);\n\t\t\t\t// Check for old data\n\t\t\t\tif(strlen($fdata[1]) < 5) $this->zajlib->test->notice(\"Found old language file format: \".$file);\n\t\t\t\telse{\n\t\t\t\t\t$file = trim($fdata[0], '/');\n\t\t\t\t\t$this->verify_single_language_file($file);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public function run()\n {\n Model::unguard();\n\n foreach (Language::all() as $lang) {\n if (!file_exists(storage_path('locales/' . $lang->code . '/translation.json'))) {\n continue;\n }\n\n $translates = file_get_contents(storage_path('locales/' . $lang->code . '/translation.json'));\n $translates = json_decode($translates, true);\n\n $translates = Arr::dot($translates);\n\n foreach ($translates as $key => $translate) {\n if (UiTranslate::whereLanguageId($lang->id)->where('key', $key)->first()) {\n continue;\n }\n\n UiTranslate::create([\n 'language_id' => $lang->id,\n 'key' => $key,\n 'value' => $translate,\n ]);\n }\n }\n }", "private function init_tftp_lang_path() {\n $dir = $this->sccppath[\"tftp_lang_path\"];\n foreach ($this->extconfigs->getextConfig('sccp_lang') as $lang_key => $lang_value) {\n $filename = $dir . DIRECTORY_SEPARATOR . $lang_value['locale'];\n if (!file_exists($filename)) {\n if (!mkdir($filename, 0777, true)) {\n die('Error create lang dir');\n }\n }\n }\n }", "public function generateLanguages()\n {\n $files = FileLibrary::get();\n $fLang = Lang::getFallback();\n\n foreach ($files as $file) {\n foreach (Lang::allLocales() as $lang => $langName) {\n if (!isset($file->languages[$lang])) {\n $language = array_except($file->languages[$fLang]->toArray(), 'lang_id');\n $language['lang'] = $lang;\n $language = FileLibraryLanguage::create($language);\n echo '- File ID: ' . $language->file_id . ', Lang: ' . $language->lang . '<br>';\n }\n }\n }\n }", "private function publishLanguage()\n {\n if (!file_exists(base_path().'/resources/lang/')) {\n mkdir(base_path().'/resources/lang');\n $this->info('Published language directory in '.base_path().'/resources/lang/');\n }\n }", "protected function registerTranslations()\n {\n $this->loadTranslationsFrom(__DIR__ . '/../resources/lang', 'kustomer');\n }", "protected function load()\n {\n $this->translations = array();\n \n if ($this->language) {\n if ($this->cachepath) {\n if (file_exists($cache = $this->cachepath.'/'.$this->language.'.php')) {\n $this->translations = include($cache);\n }\n } else {\n if (!empty($this->filepaths)) {\n foreach ($this->filepaths as $filepath) {\n $this->loadFilePath($filepath);\n }\n }\n }\n }\n }", "public function installPlugins()\n\t{\n $mainframe =& JFactory::getApplication();\n// \t$lang = JFactory::getLanguage(); \n// $languages = JLanguageHelper::getLanguages('lang_code');\n \n $db =& JFactory::getDBO();\n $query = $db->getQuery(true);\n $type = \"language\";\n $query->select('a.element');\n $query->from('#__extensions AS a');\n $type = $db->Quote($type);\n\t$query->where('(a.type = '.$type.')');\n\t$query->group('a.element');\n $db->setQuery($query);\n $langlist = $db->loadObjectList();\n \n//\t\techo 'Copy Plugin(s) language(s) provided by <a href=\"https://opentranslators.transifex.com/projects/p/joomleague/\">Transifex</a>';\n\t\t$src=JPATH_SITE.DS.'components'.DS.'com_joomleague'.DS.'plugins';\n\t\t$dest=JPATH_SITE.DS.'plugins';\n\t\t$groups = JFolder::folders($src);\n \n foreach ( $langlist as $key )\n {\n echo 'Copy Plugin(s) language( '.$key->element.' ) provided by <a href=\"https://opentranslators.transifex.com/projects/p/joomleague/\">Transifex</a><br />';\n\t\tforeach ($groups as $group)\n\t\t{\n\t\t\t$plugins = JFolder::folders($src.DS.$group);\n\t\t\tforeach ($plugins as $plugin)\n\t\t\t{\n if ( JFolder::exists($src.DS.$group.DS.$plugin.DS.'language'.DS.$key->element) )\n\t\t{\n\t\t\t\tJFolder::copy($src.DS.$group.DS.$plugin.DS.'language'.DS.$key->element, JPATH_ADMINISTRATOR.DS.'language'.DS.$key->element, '', true);\n\t\techo ' - <span style=\"color:green\">'.JText::_('Success -> '.$group.' - '.$plugin.' - '.$key->element).'</span><br />';\n }\n \t}\n\t\t}\n }\n\t\t//echo ' - <span style=\"color:green\">'.JText::_('Success').'</span><br />';\n\t\techo 'Copy Plugin(s)';\n\t\tJFolder::copy($src, $dest, '', true);\n\t\techo ' - <span style=\"color:green\">'.JText::_('Success').'</span><br />';\n\t}", "public function loadTranslations($lang, $module = null)\n\t{\n\t\t$this->_translations = array();\n\t\tfor(\n\t\t\t$it = new RecursiveDirectoryIterator($this->_translations_path.$lang.(null==$module ? '' : '/'.$module));\n\t\t\t$it->valid();\n\t\t\t$it->next()\n\t\t)\n\t\t{\n\t\t\tif(in_array($it->getBasename(), array('.', '..', ''))) continue;\n\t\t\tob_start();\n\t\t\t$data = @include($it->current());\n\t\t\tob_end_clean();\n\t\t\tif(is_array($data))\n\t\t\t{\n\t\t\t\t$this->_translations = array_merge($this->_translations, $data);\n\t\t\t}\n\t\t}\n\t}", "public function installComponentLanguages()\n\t{\n\t$mainframe =& JFactory::getApplication();\n\t//$lang = JFactory::getLanguage(); \n\t\n $db =& JFactory::getDBO();\n $query = $db->getQuery(true);\n $type = \"language\";\n $query->select('a.element');\n $query->from('#__extensions AS a');\n $type = $db->Quote($type);\n\t$query->where('(a.type = '.$type.')');\n\t$query->group('a.element');\n $db->setQuery($query);\n $langlist = $db->loadObjectList();\n\t//echo 'Language -> <pre>'.print_r($langlist,true).'</pre><br>';\n\t\n\t//$languages = JLanguageHelper::getLanguages('lang_code');\n// echo 'Copy Administration language(s) provided by <a href=\"https://opentranslators.transifex.com/projects/p/joomleague/\">Transifex</a><br>';\n\t\n \t//echo 'Language -> <pre>'.print_r($languages,true).'</pre><br>';\n \n foreach ( $langlist as $key )\n {\n //$mainframe->enqueueMessage('Language installed -> ' . $key,'Notice');\n echo 'Copy Administration language( '.$key->element.' ) provided by <a href=\"https://opentranslators.transifex.com/projects/p/joomleague/\">Transifex</a><br>';\n \n $src=JPATH_ADMINISTRATOR.DS.'components'.DS.'com_joomleague'.DS;\n\t\t$dest=JPATH_ADMINISTRATOR.DS.'modules';\n\t\tJFolder::copy($src.DS.'language'.DS.$key->element, JPATH_ADMINISTRATOR.DS.'language'.DS.$key->element, '', true);\n\t\t\n\t\techo ' - <span style=\"color:green\">'.JText::_('Success-> '.$key->element).'</span><br />';\n\t\techo 'Copy Site language( '.$key->element.' ) provided by <a href=\"https://opentranslators.transifex.com/projects/p/joomleague/\">Transifex</a><br>';\n\t\t$src=JPATH_SITE.DS.'components'.DS.'com_joomleague'.DS;\n\t\t$dest=JPATH_SITE.DS;\n\t\tJFolder::copy($src.DS.'language'.DS.$key->element, JPATH_SITE.DS.'language'.DS.$key->element, '', true);\n\t\techo ' - <span style=\"color:green\">'.JText::_('Success -> '.$key->element).'</span><br />';\n\t\t}\n\t\t\n\t}", "public function __construct()\n {\n $languages = scandir(__DIR__.'/languages');\n\n foreach($languages as $language) {\n // Prevent from scanning . and .. directories\n if (!preg_match('#^\\.#', $language)) {\n // Retrieve the language name from the filename\n $current = preg_replace('#\\.php#i', '', $language);\n // Create a new Language for the current iterated language\n try {\n $this->languages[$current] = new Language($current);\n } catch (InvalidLanguageNameException $e) {\n die($e->getMessage());\n }\n }\n }\n }", "function _load_languages()\r\n\t{\r\n\t\t// Load the form validation language file\r\n\t\t$this->lang->load('form_validation');\r\n\r\n\t\t// Load the DataMapper language file\r\n\t\t$this->lang->load('datamapper');\r\n\t}", "function add_translation_source($dir)\n{\n try {\n $translate = Zend_Registry::get('Zend_Translate');\n } catch (Zend_Exception $e) {\n return;\n }\n\n $locale = $translate->getAdapter()->getOptions('localeName');\n\n try {\n $translate->addTranslation(array(\n 'content' => \"$dir/$locale.mo\",\n 'locale' => $locale\n ));\n } catch (Zend_Translate_Exception $e) {\n // Do nothing, allow the user to set a locale or dir without a\n // translation.\n }\n}", "public function scanDirectory($directory) {\n global $database;\n\n $check = self::getDirectoryTree($directory, array(\n 'php',\n 'lte'\n ));\n $translation = array();\n foreach ($check as $file_path) {\n $path_info = pathinfo($file_path);\n if ($path_info['extension'] == 'php') {\n if (!$this->parseSourceFile($file_path, $translation)) {\n $this->setError(sprintf('[%s - %s] %s', __METHOD__, __LINE__, $this->getError()));\n return false;\n }\n }\n elseif ($path_info['extension'] == 'lte') {\n if (!$this->parseTemplateFile($file_path, $translation)) {\n $this->setError(sprintf('[%s - %s] %s', __METHOD__, __LINE__, $this->getError()));\n return false;\n }\n }\n else {\n $this->setError(sprintf('[%s - %s] %s', __METHOD__, __LINE__,\n $this->I18n('The file type <b>{{ file_type }}</b> is not supported!',\n array('file_type' => $path_info['extension']))));\n return false;\n }\n }\n\n foreach ($translation as $entry) {\n $key = self::sanitize($entry['key']);\n $SQL = \"SELECT `i18n_id`, `i18n_key` FROM `\".dbManufakturI18n::getTableName() .\n \"` WHERE `i18n_key`='$key' AND (`i18n_status`='ACTIVE' OR `i18n_status`='IGNORE')\";\n if (null == ($query = $database->query($SQL))) {\n $this->setError(sprintf('[%s - %s] %s', __METHOD__, __LINE__, $database->get_error()));\n return false;\n }\n\n $add_only_source = false;\n if ($query->numRows() > 0) {\n $result = $query->fetchRow(MYSQL_ASSOC);\n $add_only_source = ($result['i18n_key'] == $key) ? true : false;\n }\n\n if ($add_only_source) {\n // entry already exists, keep only the source usage\n $SQL = \"INSERT INTO `\".dbManufakturI18nSources::getTableName().\n \"` (`i18n_id`, `src_path`, `src_file`, `src_line`, `src_module`) VALUES (\".\n \"'{$result[dbManufakturI18n::FIELD_ID]}','{$entry['path']}',\".\n \"'{$entry['file']}','{$entry['line']}','{$entry['module']}')\";\n if (null == ($database->query($SQL))) {\n $this->setError(sprintf('[%s - %s] %s', __METHOD__, __LINE__, $database->get_error()));\n return false;\n }\n }\n else {\n // create a new entry\n $SQL = \"INSERT INTO `\".dbManufakturI18n::getTableName().\"` \".\n \"(`i18n_description`, `i18n_key`, `i18n_last_sync`, `i18n_status`) VALUES ( \".\n \"'', '$key', '\".date(\"Y-m-d H:i:s\", time()).\"', \".\n \"'\".dbManufakturI18n::STATUS_ACTIVE.\"')\";\n if (null == ($database->query($SQL))) {\n $this->setError(sprintf('[%s - %s] %s', __METHOD__, __LINE__, $database->get_error()));\n return false;\n }\n // get the ID for the new entry\n $id = mysql_insert_id();\n // add the standard EN translation\n $author = (isset($_SESSION['DISPLAY_NAME'])) ? $_SESSION['DISPLAY_NAME'] : dbManufakturI18n::AUTHOR_UNKNOWN;\n $SQL = \"INSERT INTO `\".dbManufakturI18nTranslations::getTableName().\"` (\".\n \"`trans_author`, `i18n_id`, `trans_language`, `trans_translation`, \".\n \"`trans_usage`, `trans_type`, `trans_status`) VALUES (\".\n \"'$author','$id','EN','$key','TEXT','REGULAR','ACTIVE')\";\n if (null == ($database->query($SQL))) {\n $this->setError(sprintf('[%s - %s] %s', __METHOD__, __LINE__, $database->get_error()));\n return false;\n }\n // add source usage...\n $SQL = \"INSERT INTO `\".dbManufakturI18nSources::getTableName().\"` (\".\n \"`i18n_id`, `src_path`, `src_file`, `src_line`, `src_module`) VALUES (\".\n \"'$id', '{$entry['path']}', '{$entry['file']}', '{$entry['line']}', '{$entry['module']}')\";\n if (null == ($database->query($SQL))) {\n $this->setError(sprintf('[%s - %s] %s', __METHOD__, __LINE__, $database->get_error()));\n return false;\n }\n }\n }\n return true;\n }", "public function syncFilesLines()\n\t{\n\t\t$errorFound = false;\n\t\t\n\t\ttry {\n\t\t\t// Get the current Default Language\n\t\t\t$defaultLang = Language::where('default', 1)->first();\n\t\t\t\n\t\t\t// Init. the language manager\n\t\t\t$manager = new LangManager();\n\t\t\t\n\t\t\t// Get all the others languages\n\t\t\t$locales = $manager->getLocales($defaultLang->abbr);\n\t\t\tif (!empty($locales)) {\n\t\t\t\tforeach ($locales as $locale) {\n\t\t\t\t\t$manager->syncLines($defaultLang->abbr, $locale);\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (\\Exception $e) {\n\t\t\tAlert::error($e->getMessage())->flash();\n\t\t\t$errorFound = true;\n\t\t}\n\t\t\n\t\t// Check if error occurred\n\t\tif (!$errorFound) {\n\t\t\t$message = trans(\"admin::messages.The languages files were been synchronized.\");\n\t\t\tAlert::success($message)->flash();\n\t\t}\n\t\t\n\t\treturn redirect()->back();\n\t}", "function save_langfile()\n\t{\n\t\t//-----------------------------------------\n\n\t\tif ($this->ipsclass->input['id'] == \"\")\n\t\t{\n\t\t\t$this->ipsclass->admin->error(\"Невозможно определить ID языка\");\n\t\t}\n\n\t\tif ($this->ipsclass->input['lang_file'] == \"\")\n\t\t{\n\t\t\t$this->ipsclass->admin->error(\"Вы должны указать имя языкового модуля, вернитесь назад и попробуйте еще раз\");\n\t\t}\n\n\t\t$this->ipsclass->DB->simple_construct( array( 'select' => '*', 'from' => 'languages', 'where' => \"lid='\".$this->ipsclass->input['id'].\"'\" ) );\n\t\t$this->ipsclass->DB->simple_exec();\n\n\t\tif ( ! $row = $this->ipsclass->DB->fetch_row() )\n\t\t{\n\t\t\t$this->ipsclass->admin->error(\"Невозможно найти язык по введенному ID\");\n\t\t}\n\n\t\t$lang_file = CACHE_PATH.\"cache/lang_cache/\".$row['ldir'].\"/\".$this->ipsclass->input['lang_file'];\n\n\t\tif (! file_exists( $lang_file ) )\n\t\t{\n\t\t\t$this->ipsclass->admin->error(\"Невозможно найти файл '$lang_file', проверьте есть ли он.\");\n\t\t}\n\n\t\tif (! is_writeable( $lang_file ) )\n\t\t{\n\t\t\t$this->ipsclass->admin->error(\"Невозможно записать в файл '$lang_file', проверьте права доступа (CHMOD) и, если необходимо установить права доступа 0777. IPB не может сделать это за вас\");\n\t\t}\n\n\t\t$barney = array();\n\n\t\tforeach ($this->ipsclass->input as $k => $v)\n\t\t{\n\t\t\tif ( preg_match( \"/^XX_(\\S+)$/\", $k, $match ) )\n\t\t\t{\n\t\t\t\tif ( isset($this->ipsclass->input[ $match[0] ]) )\n\t\t\t\t{\n\t\t\t\t\t$v = str_replace(\"&#39;\", \"'\", stripslashes($_POST[ $match[0] ]) );\n\t\t\t\t\t$v = str_replace(\"&#60;\", \"<\", $v );\n\t\t\t\t\t$v = str_replace(\"&#62;\", \">\", $v );\n\t\t\t\t\t$v = str_replace(\"&#38;\", \"&\", $v );\n\t\t\t\t\t$v = str_replace(\"\\r\", \"\", $v );\n\n\t\t\t\t\t$barney[ $match[1] ] = $v;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif ( count($barney) < 1 )\n\t\t{\n\t\t\t$this->ipsclass->admin->error(\"Что-то сделано не так, вернитесь назад и попробуйте еще раз\");\n\t\t}\n\n\t\t$start = \"<?php\\n\\n\".'$lang = array('.\"\\n\";\n\n\t\tforeach($barney as $key => $text)\n\t\t{\n\t\t\t$text = preg_replace(\"/\\n{1,}$/\", \"\", $text);\n\t\t\t$start .= \"\\n'\".$key.\"' => \\\"\".str_replace( '\"', '\\\"', $text).\"\\\",\";\n\t\t}\n\n\t\t$start .= \"\\n\\n);\\n\\n?\".\">\";\n\n\t\tif ($fh = fopen( $lang_file, 'w') )\n\t\t{\n\t\t\tfwrite($fh, $start );\n\t\t\tfclose($fh);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->ipsclass->admin->error(\"Нельзя сделать запись в $lang_file\");\n\t\t}\n\n\t\tif ( $this->ipsclass->input['id'] )\n\t\t{\n\t\t\t$this->ipsclass->admin->done_screen(\"Язык обновлен\", \"Управление языками\", \"{$this->ipsclass->form_code}&code=edit&id={$this->ipsclass->input['id']}\", 'redirect' );\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->ipsclass->admin->done_screen(\"Язык обновлен\", \"Управление языками\", \"{$this->ipsclass->form_code}\", 'redirect' );\n\t\t}\n\t}", "private function saveStringToLocales()\n {\n $gettextEntries = $this->extractGettextStrings();\n\n $root = Strata::getRootPath();\n\n foreach ($gettextEntries as $translation) {\n $references = $translation->getReferences();\n $translation->deleteReferences();\n\n foreach ($references as $idx => $context) {\n $translation->addReference(str_replace($root, \"~\", $context[0]), $context[1]);\n }\n }\n\n foreach ($this->getLocales() as $locale) {\n $this->addGettextEntriesToLocale($locale, $gettextEntries);\n }\n }", "public function migrate()\n\t{\n\t\t\\Aimeos\\MW\\Common\\Base::checkClass( '\\\\Aimeos\\\\MShop\\\\Context\\\\Item\\\\Iface', $this->additional );\n\n\t\t$this->msg( 'Add locale data for languages and currencies', 0 );\n\t\t$this->status( '' );\n\n\n\t\t$ds = DIRECTORY_SEPARATOR;\n\t\t$localeManager = \\Aimeos\\MShop\\Locale\\Manager\\Factory::createManager( $this->additional, 'Standard' );\n\n\n\t\t$filename = __DIR__ . $ds . 'default'. $ds . 'data'. $ds . 'language.php';\n\n\t\tif( ( $data = include( $filename ) ) == false ) {\n\t\t\tthrow new \\Aimeos\\MW\\Setup\\Exception( sprintf( 'No data file \"%1$s\" found', $filename ) );\n\t\t}\n\n\t\tif( isset( $data['locale/language'] ) ) {\n\t\t\t$this->addLocaleLanguageData( $localeManager, $data['locale/language'] );\n\t\t}\n\n\n\t\t$filename = __DIR__ . $ds . 'default'. $ds . 'data'. $ds . 'currency.php';\n\n\t\tif( ( $data = include( $filename ) ) == false ) {\n\t\t\tthrow new \\Aimeos\\MW\\Setup\\Exception( sprintf( 'No data file \"%1$s\" found', $filename ) );\n\t\t}\n\n\t\tif( isset( $data['locale/currency'] ) ) {\n\t\t\t$this->addLocaleCurrencyData( $localeManager, $data['locale/currency'] );\n\t\t}\n\t}", "function translateFile($kohana_path, $ionize_path) {\n //import kohana lang array\n $kohana_lang = include($kohana_path);\n //import ionize lang array\n $ionize_file = file($ionize_path);\n $ionize_file = checkForReturn($ionize_file);\n\n file_put_contents($ionize_path,$ionize_file);\n $ionize_file = file($ionize_path);\n $ionize_lang = include($ionize_path);\n\n //get index to start adding entries to ionize file at\n foreach($ionize_file as $index=>$item) {\n if(strpos($item, 'return $lang')!== false) {\n $appendLine = $index;\n }\n }\n \n \n /**\n *For each entry in the kohana lang file,\n *check if it exists in the ionize lang file.\n *If it does and translation matches, skip over\n *Else update existing entry or append new entry to file\n */\n foreach($kohana_lang as $key=>$entry) {\n $key_with_slash = str_replace(\"'\", \"\\'\", $key);\n $entry_with_slash = str_replace(\"'\", \"\\'\", $entry);\n \n //check if entry exists\n if(isset($ionize_lang[$key])) {\n //get line from ionize file of entry\n foreach($ionize_file as $index=>$item){\n if(strpos($item,'$lang[' . $key . ']')!== false){\n $line_number = $index;\n }\n }\n //check if entries match\n if($ionize_lang[$key] != $entry) {\n $ionize_file[$line_number] = '$lang[\\'' . $key_with_slash . '\\'] = \\'' . $entry_with_slash . '\\';' . PHP_EOL; \n }\n }\n //if entry does not exist, insert it\n else {\n $ionize_file[$appendLine] = '$lang[\\'' . $key_with_slash . '\\'] = \\'' . $entry_with_slash . '\\';' . PHP_EOL;\n $appendLine++;\n }\n }\n \n //check to see if return $lang exists, if not add it to end of file\n $ionize_file = checkForReturn($ionize_file);\n \n file_put_contents($ionize_path,$ionize_file);\n}", "protected function execute(InputInterface $input, OutputInterface $output)\n {\n $this->setLangDir($input->getArgument('langDir'));\n $this->setLangFile($input->getArgument('langFile'));\n $this->setViewsPath($input->getArgument('viewsPath'));\n\n $langFileName = explode('.', $this->langFile)[0];\n $langFileContent = (array) @require $this->langDir.'/'.$this->langFile;\n $viewFiles = Finder::create()\n ->in($this->viewsPath)\n ->name('*.html')\n ->name('*.php')\n ->files();\n\n foreach ($viewFiles as $file) {\n $fileContent = $this->filesystem->get($file->getRealPath());\n preg_match_all(\n '/H::trans\\([\"|\\']([^\\'\"]*)[\"|\\']\\)/',\n $fileContent,\n $matches,\n PREG_SET_ORDER\n );\n\n if ($matches !== false) {\n foreach ($matches as $match) {\n $firstMatch = trim($match[1]);\n\n if ($firstMatch == '') {\n continue;\n }\n if ($this->langContainVariable($firstMatch)) {\n echo sprintf(\"Skipped variable inside a key `%s` in file `%s`.%s\", $firstMatch, $file->getRealPath(), PHP_EOL);\n continue;\n }\n\n if (strpos($firstMatch, ' ') == false && strpos($firstMatch, '.') > 0) {\n $this->transMatchExistentKey($firstMatch);\n } else {\n $langKey = Str::slug($firstMatch);\n\n if (\n isset($langFileContent[$langKey]) &&\n $langFileContent[$langKey] !== $firstMatch\n ) {\n $langKey = $langKey . '-' . time();\n echo $langKey.' - '.$firstMatch.PHP_EOL;\n }\n\n $langFileContent[$langKey] = $firstMatch;\n $fileContent = preg_replace(\n '/H::trans\\([\"|\\']'.$firstMatch.'[\"|\\']\\)/',\n \"H::trans('\".$langFileName.'.'.$langKey.\"')\",\n $fileContent\n );\n }\n }\n\n $this->filesystem->put($file->getRealPath(), $fileContent);\n }\n }\n\n $this->filesystem->put(\n \"{$this->langDir}/{$this->langFile}\",\n $this->buildLangFileContent($langFileContent, true, true)\n );\n\n $output->writeln('Done translating!');\n }", "private static function translator()\n {\n $files = ['Lang', 'Smiley'];\n $folder = static::$root.'Translator'.'/';\n\n self::call($files, $folder);\n\n $files = ['LanguageKeyNotFoundException', 'LanguageNotSupportedException'];\n $folder = static::$root.'Translator/Exceptions'.'/';\n\n self::call($files, $folder);\n }", "function install_languages() {\n $db = DB::getInstance();\n if(!$db->query(file_get_contents(CORE_INSTALLER_FILES_PATH.'/db/languages.sql'))->error()) {\n return true;\n }\n else {\n System::addMessage('error', rt('An error occurred during the installation of the languages supported by core'));\n }\n return false;\n}", "private function save(): void\n {\n foreach ($this->dataToSave as $file => $data) {\n $this->langFilesManager->fillKeys($file, $data);\n }\n }", "public function saveTranslations()\n {\n /** @var ActiveRecord $translationModel */\n $translationModel = new $this->translationModelClass();\n\n $data = \\Yii::$app->request->post($translationModel->formName());\n\n if (empty($data)) return;\n\n foreach ($data as $lang => $record) {\n $translation = $this->getTranslationModel($lang);\n $translation->setAttributes(ArrayHelper::merge($record, [\n $this->translationModelRelationColumn => $this->owner->getPrimaryKey(),\n $this->translationModelLangColumn => $lang,\n ]));\n\n if (!$translation->save()) {\n Toastr::warning(\\Yii::t('admin', \"Перевод на {$lang} неполный, не сохранен\"));\n }\n }\n }", "public function getDirsWithLanguages(): array\n {\n $result = [];\n $fs = new Filesystem();\n $dirs = $fs->directories(base_path(\"resources/lang\"));\n foreach ($dirs as $dir) {\n $lang = basename($dir);\n if ($lang != \"vendor\") {\n $result[$lang] = $dir;\n\n // save a language to DB if doesnt exists\n $language = $this->languageRepository->findByAbbr($lang);\n\n if (!$language) {\n $this->languageRepository->create([\n 'abbr' => $lang,\n 'name' => $lang,\n 'active' => 1\n ]);\n }\n }\n }\n\n return $result;\n }", "function getLanguageFiles() // used in admin_configuration.php\r\n\r\n{\r\n\r\n\t$directory = \"models/languages/\";\r\n\r\n\t$languages = glob($directory . \"*.php\");\r\n\r\n\t//print each file name\r\n\r\n\treturn $languages;\r\n\r\n}", "protected function load_translations() {\n\t\t// load the plugin text domain\n\t\tload_plugin_textdomain( 'mailchimp-for-wp', false, 'mailchimp-for-wp-pro/languages/' );\n\t}", "public function generateLanguageCache()\n\t{\n\t\t$arrLanguages = array('en');\n\t\t$objLanguages = \\Database::getInstance()->query(\"SELECT language FROM tl_member UNION SELECT language FROM tl_user UNION SELECT REPLACE(language, '-', '_') FROM tl_page WHERE type='root'\");\n\n\t\t// Only cache the languages which are in use (see #6013)\n\t\twhile ($objLanguages->next())\n\t\t{\n\t\t\tif ($objLanguages->language == '')\n\t\t\t{\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t$arrLanguages[] = $objLanguages->language;\n\n\t\t\t// Also cache \"de\" if \"de-CH\" is requested\n\t\t\tif (strlen($objLanguages->language) > 2)\n\t\t\t{\n\t\t\t\t$arrLanguages[] = substr($objLanguages->language, 0, 2);\n\t\t\t}\n\t\t}\n\n\t\t$arrLanguages = array_unique($arrLanguages);\n\n\t\tforeach ($arrLanguages as $strLanguage)\n\t\t{\n\t\t\t$arrFiles = array();\n\n\t\t\t// Parse all active modules\n\t\t\tforeach (\\ModuleLoader::getActive() as $strModule)\n\t\t\t{\n\t\t\t\t$strDir = 'system/modules/' . $strModule . '/languages/' . $strLanguage;\n\n\t\t\t\tif (!is_dir(TL_ROOT . '/' . $strDir))\n\t\t\t\t{\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tforeach (scan(TL_ROOT . '/' . $strDir) as $strFile)\n\t\t\t\t{\n\t\t\t\t\tif (strncmp($strFile, '.', 1) !== 0 && (substr($strFile, -4) == '.php' || substr($strFile, -4) == '.xlf'))\n\t\t\t\t\t{\n\t\t\t\t\t\t$arrFiles[] = substr($strFile, 0, -4);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$arrFiles = array_values(array_unique($arrFiles));\n\n\t\t\t// Create one file per table\n\t\t\tforeach ($arrFiles as $strName)\n\t\t\t{\n\t\t\t\t$strCacheFile = 'system/cache/language/' . $strLanguage . '/' . $strName . '.php';\n\n\t\t\t\t// Add a short header with links to transifex.com\n\t\t\t\t$strHeader = \"<?php\\n\\n\"\n\t\t\t\t\t\t . \"/**\\n\"\n\t\t\t\t\t\t . \" * Contao Open Source CMS\\n\"\n\t\t\t\t\t\t . \" * \\n\"\n\t\t\t\t\t\t . \" * Copyright (c) 2005-2016 Leo Feyer\\n\"\n\t\t\t\t\t\t . \" * \\n\"\n\t\t\t\t\t\t . \" * Core translations are managed using Transifex. To create a new translation\\n\"\n\t\t\t\t\t\t . \" * or to help to maintain an existing one, please register at transifex.com.\\n\"\n\t\t\t\t\t\t . \" * \\n\"\n\t\t\t\t\t\t . \" * @link http://help.transifex.com/intro/translating.html\\n\"\n\t\t\t\t\t\t . \" * @link https://www.transifex.com/projects/p/contao/language/%s/\\n\"\n\t\t\t\t\t\t . \" * \\n\"\n\t\t\t\t\t\t . \" * @license LGPL-3.0+\\n\"\n\t\t\t\t\t\t . \" */\\n\";\n\n\t\t\t\t// Generate the cache file\n\t\t\t\t$objCacheFile = new \\File($strCacheFile, true);\n\t\t\t\t$objCacheFile->write(sprintf($strHeader, $strLanguage));\n\n\t\t\t\t// Parse all active modules and append to the cache file\n\t\t\t\tforeach (\\ModuleLoader::getActive() as $strModule)\n\t\t\t\t{\n\t\t\t\t\t$strFile = 'system/modules/' . $strModule . '/languages/' . $strLanguage . '/' . $strName;\n\n\t\t\t\t\tif (file_exists(TL_ROOT . '/' . $strFile . '.xlf'))\n\t\t\t\t\t{\n\t\t\t\t\t\t$objCacheFile->append(static::convertXlfToPhp($strFile . '.xlf', $strLanguage));\n\t\t\t\t\t}\n\t\t\t\t\telseif (file_exists(TL_ROOT . '/' . $strFile . '.php'))\n\t\t\t\t\t{\n\t\t\t\t\t\t$objCacheFile->append(static::readPhpFileWithoutTags($strFile . '.php'));\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Close the file (moves it to its final destination)\n\t\t\t\t$objCacheFile->close();\n\t\t\t}\n\t\t}\n\n\t\t// Add a log entry\n\t\t$this->log('Generated the language cache', __METHOD__, TL_CRON);\n\t}", "protected abstract function getTranslations();", "public static function updateAll() {\n\t\tself::deleteLanguageFiles();\n\t}", "public function testCanLoadLanguageFilesFromSpecifiedPath()\n {\n $this->translator->load();\n $messages = $this->translator->all();\n $this->assertArrayHasKey('test_message', $messages);\n }", "public function postImport() {\n parent::postImport();\n\n // i18n Translation Set.\n $result = db_query('SELECT n.sourceid1, n.destid1\n FROM {migrate_map_wetkitmigratesitemenulinks} n');\n foreach ($result as $record) {\n $sourceid_tmp = preg_replace('#_fra_#', '_eng_', $record->sourceid1);\n $source_mlid = 0;\n $translated_mlid = 0;\n if (preg_match('/_fra_/i', $record->sourceid1)) {\n $result = db_query('SELECT n.destid1\n FROM {migrate_map_wetkitmigratesitemenulinks} n WHERE n.sourceid1 = :sourceid', array(':sourceid' => $record->sourceid1));\n foreach ($result as $result_row) {\n $translated_mlid = $result_row->destid1;\n $result = db_query('SELECT n.destid1\n FROM {migrate_map_wetkitmigratesitemenulinks} n WHERE n.sourceid1 = :sourceid', array(':sourceid' => $sourceid_tmp));\n foreach ($result as $result_row) {\n $source_mlid = $result_row->destid1;\n break;\n }\n break;\n }\n if (($source_mlid != 0) && ($translated_mlid != 0)) {\n $translation_set = i18n_translation_set_create('menu_link');\n $translation_set->reset_translations();\n $item = menu_link_load($source_mlid);\n $translation_set->add_item($item, 'en');\n $item = menu_link_load($translated_mlid);\n $translation_set->add_item($item, 'fr');\n $translation_set->save(TRUE);\n }\n }\n }\n }", "public function getAllTranslationByLanguage();", "protected function checkIfLanguagesExist() {}", "public function warmUp($cacheDir): void\n {\n // skip warmUp when translator doesn't use cache\n if (null === $this->options['cache_dir']) {\n return;\n }\n foreach ($this->resourceLocales as $locale) {\n $this->loadCatalogue($locale);\n }\n }", "public function initializeLanguages() {}", "public function updateAllSources()\n\t{\n\t\t$sections = $this->getLangPackInfo()->getDefaultSections();\n\n\t\tforeach ($sections as $section) {\n\t\t\tforeach ($this->getLangPackInfo()->getDefaultCategories($section) as $category) {\n\t\t\t\t$this->updateSourcePhrases($section, $category);\n\t\t\t}\n\t\t}\n\t}", "function GetLanguageArray()\n{\n global $config, $lang;\n $dh = opendir($config['paths']['root'] . \"language/\");\n unset($lang['languages']);\n $lang['languages'] = array();\n while (false !== ($filename = readdir($dh))) {\n if ($filename != \".\" && $filename != '.svn' && $filename != \"..\" && $filename != \"flags\"\n && is_dir(\n $config['paths']['root'] . \"language/\" . $filename\n )\n ) {\n $lang['languages'][] = $filename;\n }\n }\n}", "function wp_set_lang_dir()\n {\n }", "function yourls_get_available_languages( $dir = null ) {\n\t$languages = array();\n\n\t$dir = is_null( $dir) ? YOURLS_LANG_DIR : $dir;\n\n\tforeach( (array) glob( $dir . '/*.mo' ) as $lang_file ) {\n\t\t$languages[] = basename( $lang_file, '.mo' );\n\t}\n\n\treturn yourls_apply_filter( 'get_available_languages', $languages );\n}", "function loadTranslation($language = 'en')\n{\n $content = json_decode(file_get_contents(TRANSLATIONS_FOLDER . DS . $language . '.json'), true);\n if ($content && count($content)) {\n return $content;\n } else {\n return $language == 'en' ? array() : loadTranslation('en');\n }\n}", "function _get_path_to_translation_from_lang_dir($domain)\n {\n }", "public function run()\n { if (DB::table('languages')->count()) {\n return;\n }\n\n $languages = $this->availableLanguages->map(function ($lang, $key) {\n $lang['default'] = $key == 'gb';\n $lang['created_at'] = now();\n $lang['updated_at'] = now();\n\n return $lang;\n });\n\n DB::table('languages')->insert($languages->toArray());\n }", "public function load_translation() {\n\t\t\t$locale = apply_filters( 'plugin_locale', determine_locale(), 'sv_core' );\n\t\t\tload_textdomain( 'sv_core', dirname( __FILE__ ) . '/languages/sv_core-'.$locale.'.mo' );\n\t\t}", "private function changeLangFileContent() \n {\n $this->read();\n $this->arrayLang[$this->key] = $this->value;\n $this->save();\n }", "function getLanguageFiles()\r\n{\r\n\t$directory = \"models/languages/\";\r\n\t$languages = glob($directory . \"*.php\");\r\n\t//print each file name\r\n\treturn $languages;\r\n}", "private function loadResources(): void\n {\n foreach ($this->options['resource_files'] as $locale => $files) {\n foreach ($files as $key => $file) {\n $c = mb_substr_count($file, '.');\n\n if ($c < 2) {\n // filename is domain.format\n list($domain, $format) = explode('.', basename($file), 2);\n } else {\n // filename is domain.locale.format\n list($domain, $locale, $format) = explode('.', basename($file), 3);\n }\n\n $this->addResource($format, $file, $locale, $domain);\n unset($this->options['resource_files'][$locale][$key]);\n }\n }\n }", "public function import_language()\n {\n if ($this->session->userdata(array('admin' => 'is_admin'))) {\n $this->load_header();\n if (count($_POST) > 0) {\n if ($_FILES['language']['name'] == '')\n $this->vars['error'] = 'Please select file to upload';\n else {\n $file_name = $_FILES['language']['name'];\n $ext = strtolower(substr(strrchr($file_name, \".\"), 1));\n if (!in_array($ext, array('json')))\n $this->vars['error'] = 'You must upload a file with one of the following extensions: ' . implode(', ', array('json'));\n else {\n if ($_FILES['language']['error'] == UPLOAD_ERR_OK && is_uploaded_file($_FILES['language']['tmp_name'])) {\n $file = json_decode(file_get_contents($_FILES['language']['tmp_name']), true);\n $lang_title = $this->website->c(array_keys($file['config'])[0]);\n if (is_array($file)) {\n $languages = $this->config->values('lang_config');\n if (array_key_exists($lang_title, $languages['lang_list'])) {\n $this->vars['error'] = 'Language already exists.';\n } else {\n $languages['lang_list'][$lang_title] = array('title' => $file['config'][$lang_title]['title'],\n 'flag' => $file['config'][$lang_title]['flag'],\n 'active' => $file['config'][$lang_title]['active']);\n $this->config->save_config_data($languages, 'lang_config');\n $this->translation->create_translation_file($lang_title);\n $this->translation->lang = $file['translations'];\n $this->translation->write_full_translations();\n $this->vars['success'] = 'Language successfully imported.';\n }\n\n }\n }\n }\n }\n }\n $this->load->view('admincp' . DS . 'language_manager' . DS . 'view.import_language', $this->vars);\n $this->load_footer();\n } else {\n $this->login();\n }\n }", "public function wp_lang_dir()\n {\n }", "function saveTranslations()\n {\n // default language set?\n if (!isset($_POST[\"default\"]))\n {\n ilUtil::sendFailure($this->lng->txt(\"msg_no_default_language\"));\n return $this->editTranslations(true);\n }\n\n // all languages set?\n if (array_key_exists(\"\",$_POST[\"lang\"]))\n {\n ilUtil::sendFailure($this->lng->txt(\"msg_no_language_selected\"));\n return $this->editTranslations(true);\n }\n\n // no single language is selected more than once?\n if (count(array_unique($_POST[\"lang\"])) < count($_POST[\"lang\"]))\n {\n ilUtil::sendFailure($this->lng->txt(\"msg_multi_language_selected\"));\n return $this->editTranslations(true);\n }\n\n // save the stuff\n $this->ilObjectOrgUnit->removeTranslations();\n foreach($_POST[\"title\"] as $k => $v)\n {\n // update object data if default\n $is_default = ($_POST[\"default\"] == $k);\n if($is_default)\n {\n $this->ilObjectOrgUnit->setTitle(ilUtil::stripSlashes($v));\n $this->ilObjectOrgUnit->setDescription(ilUtil::stripSlashes($_POST[\"desc\"][$k]));\n $this->ilObjectOrgUnit->update();\n }\n\n $this->ilObjectOrgUnit->addTranslation(\n ilUtil::stripSlashes($v),\n ilUtil::stripSlashes($_POST[\"desc\"][$k]),\n ilUtil::stripSlashes($_POST[\"lang\"][$k]),\n $is_default);\n }\n\n ilUtil::sendSuccess($this->lng->txt(\"msg_obj_modified\"), true);\n $this->ctrl->redirect($this, \"editTranslations\");\n }", "public static function loadLanguages()\n\t{\n\t\tself::$_LANGUAGES = array();\n\t\t$result = Db::getInstance()->ExecuteS('SELECT * FROM `'._DB_PREFIX_.'Language`');\n\t\tforeach ($result AS $row)\n\t\t\tself::$_LANGUAGES[(int)$row['LanguageId']] = $row;\n\t}", "public function safeUp()\n {\n $primaryLocale = craft()->i18n->getPrimarySiteLocaleId();\n $localeIds = craft()->i18n->getEditableLocaleIds();\n\n foreach ($localeIds as $key => $locale) {\n if ($locale == $primaryLocale) {\n unset($localeIds[$key]);\n break;\n }\n }\n\n $i18nData = craft()->db\n ->createCommand()\n ->select('ei18n.*')\n ->from('elements_i18n ei18n')\n ->join('calendar_events e', 'ei18n.elementId = e.id')\n ->queryAll();\n\n $contentData = craft()->db\n ->createCommand()\n ->select('c.*')\n ->from('content c')\n ->join('calendar_events e', 'c.elementId = e.id')\n ->where('c.locale = :locale', array(':locale' => $primaryLocale))\n ->queryAll();\n\n $contentDataById = array();\n foreach ($contentData as $data) {\n unset($data['locale'], $data['id'], $data['dateCreated'], $data['dateUpdated'], $data['uid']);\n $contentDataById[$data['elementId']] = $data;\n }\n\n $eventLocales = array();\n $primaryLocaleData = array();\n foreach ($i18nData as $data) {\n $eventId = $data['elementId'];\n\n if ($data['locale'] == $primaryLocale) {\n $primaryLocaleData[$eventId] = $data;\n } else {\n if (!isset($eventLocales[$eventId])) {\n $eventLocales[$eventId] = array();\n }\n\n $eventLocales[$eventId][] = $data['locale'];\n }\n }\n\n foreach ($primaryLocaleData as $data) {\n $eventId = $data['elementId'];\n\n foreach ($localeIds as $locale) {\n if (isset($eventLocales[$eventId]) && in_array($locale, $eventLocales[$eventId])) {\n continue;\n }\n\n craft()->db\n ->createCommand()\n ->insertAll(\n 'elements_i18n',\n array(\n 'elementId',\n 'locale',\n 'slug',\n 'enabled',\n ),\n array(\n array(\n $eventId,\n $locale,\n $data['slug'],\n true,\n ),\n )\n );\n\n if (isset($contentDataById[$eventId])) {\n $content = $contentDataById[$eventId];\n\n $columns = array_keys($content);\n $values = array_values($content);\n\n $columns[] = 'locale';\n $values[] = $locale;\n\n craft()->db->createCommand()->insertAll('content', $columns, array($values));\n }\n }\n }\n\n return true;\n }", "private function copy_localization ($source, $destination) {\n\t\t\n\t\t$localization_name = basename($source);\n\t\t$destination_base = $destination;\n\t\t$destination = \"$destination/$localization_name\";\n\t\t\n\t\tif (copy_directory($source, $destination)) {\n\t\t\t$contents = directory_contents($destination);\n\t\t\t\n\t\t\tforeach ($contents as $path) {\n\t\t\t\t\n\t\t\t\t$file = basename($path);\n\t\t\t\t$name_clean = substr($file, 0, strrpos($file, \".\")); \n\t\t\t\t\n\t\t\t\t// Compile XIBs\n\t\t\t\tif (eregi(\"\\.(xib)+$\", $file)) {\n\t\t\t\t\t$this->compile_xib($path, \"$destination/$name_clean.nib\");\n\t\t\t\t} else if (is_file($path)) { // Copy files of any type\n\t\t\t\t\tcopy($path, \"$destination/$file\");\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$this->print_message(\"Copied localization $localization_name to bundle\");\n\t\t} else {\n\t\t\t$this->print_error(\"There was an error copying the localization $localization_name from $source to $destination_base\", true);\n\t\t}\n\t\t\n\t}", "protected function sectionTranslations()\n {\n $found = []; // translations found in latte templates\n foreach (glob('template/*.latte') as $file) {\n $tempFileContents = file_get_contents($file);\n Assert::string($tempFileContents);\n preg_match_all('~\\{=(\"([^\"]+)\"|\\'([^\\']+)\\')\\|translate\\}~i', $tempFileContents, $matches);\n $found = array_merge($found, $matches[2]);\n }\n $found = array_unique($found);\n $output = '<h1><i class=\"fa fa-globe\"></i> ' . $this->tableAdmin->translate('Translations')\n . '</h1><div id=\"agenda-translations\">'\n . '<form action=\"\" method=\"post\" onsubmit=\"return confirm(\\''\n . $this->tableAdmin->translate('Are you sure?') . '\\')\">'\n . Tools::htmlInput('translations', '', 1, array('type' => 'hidden'))\n . Tools::htmlInput('token', '', end($_SESSION['token']), 'hidden')\n . Tools::htmlInput('old_name', '', '', array('type' => 'hidden', 'id' => 'old_name'))\n . '<table class=\"table table-striped\"><thead><tr><th style=\"width:'\n . intval(100 / (count($this->MyCMS->TRANSLATIONS) + 1)) . '%\">'\n . Tools::htmlInput('one', '', false, 'radio') . '</th>';\n $translations = $keys = [];\n $localisation = new L10n($this->prefixUiL10n, $this->MyCMS->TRANSLATIONS);\n foreach ($this->MyCMS->TRANSLATIONS as $key => $value) {\n $output .= \"<th>$value</th>\";\n $translations[$key] = $localisation->readLocalisation($key);\n $keys = array_merge($keys, array_keys($translations[$key]));\n }\n $output .= '</tr></thead><tbody>' . PHP_EOL;\n $keys = array_unique($keys);\n natcasesort($keys);\n foreach ($keys as $key) {\n $output .= '<tr><th>'\n . Tools::htmlInput('one', '', $key, array('type' => 'radio', 'class' => 'translation')) . ' '\n . Tools::h((string) $key) . '</th>';\n foreach ($this->MyCMS->TRANSLATIONS as $code => $value) {\n $output .= '<td>' . Tools::htmlInput(\n \"tr[$code][$key]\",\n '',\n Tools::set($translations[$code][$key], ''),\n ['class' => 'form-control form-control-sm', 'title' => \"$code: $key\"]\n ) . '</td>';\n }\n $output .= '</tr>' . PHP_EOL;\n if ($key = array_search($key, $found)) {\n unset($found[$key]);\n }\n }\n $output .= '<tr><td>' . Tools::htmlInput(\n 'new[0]',\n '',\n '',\n array('class' => 'form-control form-control-sm', 'title' => $this->tableAdmin->translate('New record'))\n ) . '</td>';\n foreach ($this->MyCMS->TRANSLATIONS as $key => $value) {\n $output .= '<td>' . Tools::htmlInput(\n \"new[$key]\",\n '',\n '',\n ['class' => 'form-control form-control-sm',\n 'title' => $this->tableAdmin->translate('New record') . ' (' . $value . ')']\n ) . '</td>';\n }\n $output .= '</tr></tbody></table>\n <button name=\"translations\" type=\"submit\" class=\"btn btn-secondary\"><i class=\"fa fa-save\"></i> '\n . $this->tableAdmin->translate('Save') . '</button>\n <button name=\"delete\" type=\"submit\" class=\"btn btn-secondary\" value=\"1\"><i class=\"fa fa-dot-circle\"></i>\n <i class=\"fa fa-trash\"></i> ' . $this->tableAdmin->translate('Delete') . '</button>\n <fieldset class=\"d-inline-block position-relative\"><div class=\"input-group\" id=\"rename-fieldset\">'\n . '<div class=\"input-group-prepend\">\n <button class=\"btn btn-secondary\" type=\"submit\"><i class=\"fa fa-dot-circle\"></i> '\n . '<i class=\"fa fa-i-cursor\"></i> ' . $this->tableAdmin->translate('Rename') . '</button>\n </div>'\n . Tools::htmlInput('new_name', '', '', array('class' => 'form-control', 'id' => 'new_name'))\n . '</div></fieldset>\n </form></div>' . PHP_EOL;\n $output .= count($found) ? '<h2 class=\"mt-4\">' .\n $this->tableAdmin->translate('Missing translations in templates') . '</h2><ul>' : '';\n foreach ($found as $value) {\n $output .= '<li><code>' . Tools::h($value) . '</code></li>' . PHP_EOL;\n }\n $output .= count($found) ? '</ul>' : '';\n return $output;\n }", "function languages() {\n load_plugin_textdomain('wcpdomain', false, dirname(plugin_basename(__FILE__)) . '/languages');\n }", "private function appCopy()\n {\n global $boot;\n\n $boot->eol(1);\n $boot->echo('Adding Project: ' . $this->newName);\n\n foreach ($this->data as $n => $data) {\n $path = $this->rootDir . $data->generatePath;\n $boot->mkdir($path);\n $file = $this->rootDir . $data->generate;\n $content = '';\n\n if (!empty($data->templatePath)) {\n $content = file_get_contents($this->rootDir . $data->templatePath . $data->template);\n\n if (!empty($data->replace)) {\n $content = strtr($content, $data->replace);\n }\n file_put_contents($file, $content);\n }\n\n// $t = 1;\n\n if ($data->dirOnly && $data->sourceDir) {\n ZFileHelper::copyDirectory($this->rootDir . $data->sourceDir, $path);\n\n $source_path = ZFileHelper::findFiles($path);\n if (!empty($data->replace)) {\n foreach ($source_path as $inner_path) {\n $content = file_get_contents($inner_path);\n $content = strtr($content, $data->replace);\n file_put_contents($inner_path, $content);\n }\n }\n\n /*if (!$data->affectFileToo)\n continue;*/\n\n\n }\n\n }\n }", "function load_texts($file)\n{\n\n if (substr($file, -5) != '.json') {\n throw new Exception('Invalid language file found in language folder.');\n }\n\n $fname = strtolower(substr(basename($file), 0, - (strlen('.json'))));\n\n $GLOBALS[\"__LANGUAGE__{$fname}__\"] = json_decode(file_get_contents($file), true);\n}", "public function loadTranslations()\n {\n $oTranslation = new Translation($this->sLang, $this->sBundleName);\n $this->aView[\"lang\"] = $this->sLang;\n $this->aView[\"tr\"] = $oTranslation->getTranslations();\n }", "function get_languages(){\n\t\t$dir = APPPATH.\"language/\";\n\t\t$dh = opendir($dir);\n\t\t$i=0;\n\t\twhile (false !== ($filename = readdir($dh))) {\n\t\t\tif($filename!=='.' && $filename!=='..' && is_dir($dir.$filename)){\n\t\t\t\t$files[$i]['dir'] = $filename;\n\t\t\t\t$files[$i]['count']=$this->get_count_lfiles($filename);\n\t\t\t\t$i++;\n\t\t\t}\n\t\t}\n\t\treturn (!empty($files))?$files:FALSE;\n\t}", "function loco_translate_cron_pull($langcode, array $settings) {\n $loco_pull = \\Drupal::service('loco_translate.loco_api.pull');\n $translations_import = \\Drupal::service('loco_translate.translations.import');\n $file_system = \\Drupal::service('file_system');\n $file_repository = \\Drupal::service('file.repository');\n\n $status = $settings['status'] ?? NULL;\n $response = $loco_pull->fromLocoToDrupal($langcode, $status);\n\n $destination_directory = 'translations://';\n $destination_writable = $file_system->prepareDirectory($destination_directory, FileSystemInterface::CREATE_DIRECTORY | FileSystemInterface::MODIFY_PERMISSIONS);\n\n if (!$destination_writable) {\n throw new \\RuntimeException(sprintf('Download error. Could not move downloaded file from Loco to destination %s.', $destination_directory));\n }\n\n /** @var \\Drupal\\file\\FileInterface $file */\n $file = $file_repository->writeData($response->__toString(), $destination_directory);\n $path = $file_system->realPath($file->getFileUri());\n $report = $translations_import->fromFile($path, $langcode);\n\n \\Drupal::service('logger.channel.loco_translate')->info('Items sucessfully imported from Loco: @additions addition(s), @updates update(s), @deletes delete(s) & @skips skip(s).', [\n \"@additions\" => $report['additions'],\n \"@updates\" => $report['updates'],\n \"@deletes\" => $report['deletes'],\n \"@skips\" => $report['skips'],\n ]);\n}", "protected function prepareFileContents() {\n\t\t// convert all language values to utf-8\n\t\tif (!typo3Lib::isTypo3BackendInUtf8Mode()) {\n\t\t\t$this->localLang = typo3Lib::utf8($this->localLang, TRUE, array('default'));\n\t\t}\n\n\t\t$mainFileContent = array('meta' => $this->prepareMeta());\n\t\t$languages = sgLib::getSystemLanguages();\n\t\tforeach ($languages as $langKey) {\n\t\t\t$mainFileContent = array_merge_recursive(\n\t\t\t\t$mainFileContent,\n\t\t\t\t$this->getLangContent($this->localLang[$langKey], $langKey)\n\t\t\t);\n\t\t}\n\n\t\t// prepare Content for the main file\n\t\t$languageFiles[$this->absFile] = $this->array2xml($mainFileContent, 'T3locallang');\n\n\t\treturn $languageFiles;\n\t}", "protected function extract_strings() {\n\t\t$translations = new Translations();\n\n\t\t// Add existing strings first but don't keep headers.\n\t\tif ( ! empty( $this->merge ) ) {\n\t\t\t$existing_translations = new Translations();\n\t\t\tPo::fromFile( $this->merge, $existing_translations );\n\t\t\t$translations->mergeWith( $existing_translations, Merge::ADD | Merge::REMOVE );\n\t\t}\n\n\t\tPotGenerator::setCommentBeforeHeaders( $this->get_file_comment() );\n\n\t\t$this->set_default_headers( $translations );\n\n\t\t// POT files have no Language header.\n\t\t$translations->deleteHeader( Translations::HEADER_LANGUAGE );\n\n\t\t// Only relevant for PO files, not POT files.\n\t\t$translations->setHeader( 'PO-Revision-Date', 'YEAR-MO-DA HO:MI+ZONE' );\n\n\t\tif ( $this->domain ) {\n\t\t\t$translations->setDomain( $this->domain );\n\t\t}\n\n\t\tunset( $this->main_file_data['Version'], $this->main_file_data['License'], $this->main_file_data['Domain Path'], $this->main_file_data['Text Domain'] );\n\n\t\t$is_theme = isset( $this->main_file_data['Theme Name'] );\n\n\t\t// Set entries from main file data.\n\t\tforeach ( $this->main_file_data as $header => $data ) {\n\t\t\tif ( empty( $data ) ) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t$translation = new Translation( '', $data );\n\n\t\t\tif ( $is_theme ) {\n\t\t\t\t$translation->addExtractedComment( sprintf( '%s of the theme', $header ) );\n\t\t\t} else {\n\t\t\t\t$translation->addExtractedComment( sprintf( '%s of the plugin', $header ) );\n\t\t\t}\n\n\t\t\t$translations[] = $translation;\n\t\t}\n\n\t\ttry {\n\t\t\tif ( ! $this->skip_php ) {\n\t\t\t\t$options = [\n\t\t\t\t\t// Extract 'Template Name' headers in theme files.\n\t\t\t\t\t'wpExtractTemplates' => $is_theme,\n\t\t\t\t\t// Extract 'Title' and 'Description' headers from pattern files.\n\t\t\t\t\t'wpExtractPatterns' => $is_theme,\n\t\t\t\t\t'include' => $this->include,\n\t\t\t\t\t'exclude' => $this->exclude,\n\t\t\t\t\t'extensions' => [ 'php' ],\n\t\t\t\t\t'addReferences' => $this->location,\n\t\t\t\t];\n\t\t\t\tPhpCodeExtractor::fromDirectory( $this->source, $translations, $options );\n\t\t\t}\n\n\t\t\tif ( ! $this->skip_blade ) {\n\t\t\t\t$options = [\n\t\t\t\t\t'include' => $this->include,\n\t\t\t\t\t'exclude' => $this->exclude,\n\t\t\t\t\t'extensions' => [ 'blade.php' ],\n\t\t\t\t\t'addReferences' => $this->location,\n\t\t\t\t];\n\t\t\t\tBladeCodeExtractor::fromDirectory( $this->source, $translations, $options );\n\t\t\t}\n\n\t\t\tif ( ! $this->skip_js ) {\n\t\t\t\tJsCodeExtractor::fromDirectory(\n\t\t\t\t\t$this->source,\n\t\t\t\t\t$translations,\n\t\t\t\t\t[\n\t\t\t\t\t\t'include' => $this->include,\n\t\t\t\t\t\t'exclude' => $this->exclude,\n\t\t\t\t\t\t'extensions' => [ 'js', 'jsx' ],\n\t\t\t\t\t\t'addReferences' => $this->location,\n\t\t\t\t\t]\n\t\t\t\t);\n\n\t\t\t\tMapCodeExtractor::fromDirectory(\n\t\t\t\t\t$this->source,\n\t\t\t\t\t$translations,\n\t\t\t\t\t[\n\t\t\t\t\t\t'include' => $this->include,\n\t\t\t\t\t\t'exclude' => $this->exclude,\n\t\t\t\t\t\t'extensions' => [ 'map' ],\n\t\t\t\t\t\t'addReferences' => $this->location,\n\t\t\t\t\t]\n\t\t\t\t);\n\t\t\t}\n\n\t\t\tif ( ! $this->skip_block_json ) {\n\t\t\t\tBlockExtractor::fromDirectory(\n\t\t\t\t\t$this->source,\n\t\t\t\t\t$translations,\n\t\t\t\t\t[\n\t\t\t\t\t\t'schema' => JsonSchemaExtractor::BLOCK_JSON_SOURCE,\n\t\t\t\t\t\t'schemaFallback' => JsonSchemaExtractor::BLOCK_JSON_FALLBACK,\n\t\t\t\t\t\t// Only look for block.json files, nothing else.\n\t\t\t\t\t\t'restrictFileNames' => [ 'block.json' ],\n\t\t\t\t\t\t'include' => $this->include,\n\t\t\t\t\t\t'exclude' => $this->exclude,\n\t\t\t\t\t\t'extensions' => [ 'json' ],\n\t\t\t\t\t\t'addReferences' => $this->location,\n\t\t\t\t\t]\n\t\t\t\t);\n\t\t\t}\n\n\t\t\tif ( ! $this->skip_theme_json ) {\n\t\t\t\t// This will look for the top-level theme.json file, as well as\n\t\t\t\t// any JSON file within the top-level styles/ directory.\n\t\t\t\tThemeJsonExtractor::fromDirectory(\n\t\t\t\t\t$this->source,\n\t\t\t\t\t$translations,\n\t\t\t\t\t[\n\t\t\t\t\t\t'schema' => JsonSchemaExtractor::THEME_JSON_SOURCE,\n\t\t\t\t\t\t'schemaFallback' => JsonSchemaExtractor::THEME_JSON_FALLBACK,\n\t\t\t\t\t\t'include' => $this->include,\n\t\t\t\t\t\t'exclude' => $this->exclude,\n\t\t\t\t\t\t'extensions' => [ 'json' ],\n\t\t\t\t\t\t'addReferences' => $this->location,\n\t\t\t\t\t]\n\t\t\t\t);\n\t\t\t}\n\t\t} catch ( \\Exception $e ) {\n\t\t\tWP_CLI::error( $e->getMessage() );\n\t\t}\n\n\t\tforeach ( $this->exceptions as $file => $exception_translations ) {\n\t\t\t/** @var Translation $exception_translation */\n\t\t\tforeach ( $exception_translations as $exception_translation ) {\n\t\t\t\tif ( ! $translations->find( $exception_translation ) ) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tif ( $this->subtract_and_merge ) {\n\t\t\t\t\t$translation = $translations[ $exception_translation->getId() ];\n\t\t\t\t\t$exception_translation->mergeWith( $translation );\n\t\t\t\t}\n\n\t\t\t\tunset( $translations[ $exception_translation->getId() ] );\n\t\t\t}\n\n\t\t\tif ( $this->subtract_and_merge ) {\n\t\t\t\tPotGenerator::toFile( $exception_translations, $file );\n\t\t\t}\n\t\t}\n\n\t\tif ( ! $this->skip_audit ) {\n\t\t\t$this->audit_strings( $translations );\n\t\t}\n\n\t\treturn $translations;\n\t}", "protected function generateLanguagesConfig()\n {\n $phpConfDir = $this->behavior->getTable()->getGeneratorConfig()->getBuildProperties()['behaviorCrudablePhpconfDir'];\n $languagesFilename = sprintf(\"%s/languages-conf.php\", rtrim($phpConfDir, '/'));\n\n if (!file_exists($languagesFilename)) {\n $fs = new Filesystem();\n $fs->touch($languagesFilename);\n }\n\n $languagesString = str_replace(' ', '', $this->behavior->getTable()->getGeneratorConfig()->getBuildProperties()['behaviorCrudableLanguages']);\n $languagesConf = explode(';', $languagesString);\n\n $languagesConf = array_map(function($value) {\n return array(\n 'locale' => $value,\n 'filename' => sprintf(\"trans-%s.yml\", $value),\n );\n }, $languagesConf);\n\n // write the controllers configuration file\n file_put_contents(\n $languagesFilename,\n sprintf(\"<?php\\nreturn %s;\\n\", var_export($languagesConf, true))\n );\n }", "function getLanguageFiles() {\n $directory = \"models/languages/\";\n $languages = glob($directory . \"*.php\");\n //print each file name\n return $languages;\n}", "public function run()\n {\n DB::table('languages')->delete();\n \n\t\t$lan = array(\n\t\t\tarray('name' => 'Alemán'),\n\t\t\tarray('name' => 'Español'),\n\t\t\tarray('name' => 'Francés'),\n\t\t\tarray('name' => 'Italiano'),\n\t\t\tarray('name' => 'Japonés'),\n\t\t\tarray('name' => 'Mandarín'),\n\t\t\tarray('name' => 'Portugués'),\n\t\t);\n\n\t\tDB::table('languages')->insert($lan);\n\n }", "public static function load(string $lang): array\n {\n if (isset(static::$_cache[$lang])) {\n return static::$_cache[$lang];\n }\n\n // New translation table\n $table = [[]];\n\n // Split the language: language, region, locale, etc\n $parts = explode('-', $lang);\n\n // Loop through Paths\n foreach ([$parts[0], implode(DIRECTORY_SEPARATOR, $parts)] as $path) {\n // Load files\n $files = Core::findFile('i18n', $path);\n\n // Loop through files\n if (!empty($files)) {\n $t = [[]];\n foreach ($files as $file) {\n // Merge the language strings into the sub table\n $t[] = Core::load($file);\n }\n $table[] = $t;\n }\n }\n\n $table = array_merge(...array_merge(...$table));\n\n // Cache the translation table locally\n return static::$_cache[$lang] = $table;\n }", "public static function get_files($name, $location, $translation)\n\t{\n\t\t$path = \\Laravel\\Bundle::path($location);\n\n\t\tif ( ! is_file($path.'language/'.$translation.'/'.$name.'.php'))\n\t\t{\n\t\t\treturn null;\n\t\t}\n\n\t\t$language['from'] = require $path.'language/'.\\Laravel\\Config::get('language-builder::builder.base_lang').'/'.$name.'.php';\n\t\t$language['to'] = require $path.'language/'.$translation.'/'.$name.'.php';\n\n\t\treturn $language;\n\t}", "function initialize_i18n($language) {\n\t$locales_root = \"./Locale\";\n putenv(\"LANG=\" . $language); \n\tputenv(\"LC_ALL=en_us\"); \n\tsetlocale(LC_ALL, $language);\n $domains = glob($locales_root.'/'.$language.'/LC_MESSAGES/messages-*.mo');\t\n\t$newTimeStamp = time();\n $current = basename($domains[0],'.mo');\n $timestamp = preg_replace('{messages-}i','',$current);\n\t$oldFileName = $domains[0];\n\t$newFileName = $locales_root.\"/\".$language.\"/LC_MESSAGES/messages-\".$newTimeStamp.\".mo\";\n\t$newFile = \"messages-\".$newTimeStamp;\n\trename($oldFileName, $newFileName);\n bindtextdomain($newFile,$locales_root);\n\tbind_textdomain_codeset($newFile, 'UTF-8');\n textdomain($newFile);\n}", "function languages()\n\t{\n\t\t$this->ipsclass->input['step']++;\n\t\t$uninstall = ( $this->ipsclass->input['un'] == 1 ) ? \"&amp;un=1\" : \"\";\n\t\t\n\t\t$object = ( $this->tasks['languages'] == 1 ) ? 'Language String' : 'Language Strings';\n\t\t$operation = ( $this->ipsclass->input['un'] ) ? 'removed' : 'created';\n\t\t\n\t\t$api = $this->ipsclass->load_class( IPS_API_PATH.'/api_language.php', 'api_language' );\n\t\t$api->path_to_ipb = ROOT_PATH;\n\t\t$api->api_init();\n\t\t\n\t\tforeach ( $this->xml_array['languages_group']['language'] as $k => $v )\n\t\t{\n\t\t\tif ( !$this->ipsclass->input['un'] )\n\t\t\t{\n\t\t\t\t$api->lang_add_strings( array( $v['key']['VALUE'] => $v['text']['VALUE'] ), $v['file']['VALUE'] );\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tforeach ( $this->ipsclass->cache['languages'] as $kk => $vv )\n\t\t\t\t{\n\t\t\t\t\t$lang = array();\n\t\t\t\t\trequire( CACHE_PATH.'cache/lang_cache/'.$vv['ldir'].'/'.$v['file']['VALUE'].'.php' );\n\t\t\t\t\t\n\t\t\t\t\tunset( $lang[ $v['key']['VALUE'] ] );\n\t\t\t\t\t\n\t\t\t\t\t$start = \"<?php\\n\\n\".'$lang = array('.\"\\n\";\n\t\t\t\t\t\n\t\t\t\t\tforeach ( $lang as $kkk => $vvv )\n\t\t\t\t\t{\n\t\t\t\t\t\t$vvv = preg_replace( \"/\\n{1,}$/\", \"\", $vvv );\n\t\t\t\t\t\t$vvv \t= stripslashes( $vvv );\n\t\t\t\t\t\t$vvv\t= preg_replace( '/\"/', '\\\\\"', $vvv );\n\t\t\t\t\t\t$start .= \"\\n'\".$kkk.\"' => \\\"\".$vvv.\"\\\",\";\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t$start .= \"\\n\\n);\\n\\n?\".\">\";\n\t\t\t\t\t\n\t\t\t\t\tif ( $fh = @fopen( CACHE_PATH.'cache/lang_cache/'.$vv['ldir'].'/'.$v['file']['VALUE'].'.php', 'w' ) )\n\t\t\t\t\t{\n\t\t\t\t\t\t@fwrite( $fh, $start );\n\t\t\t\t\t\t@fclose( $fh );\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tunset( $lang, $start, $fh );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t$this->ipsclass->admin->redirect( \"{$this->ipsclass->form_code}&amp;code=work&amp;mod={$this->ipsclass->input['mod']}&amp;step={$this->ipsclass->input['step']}{$uninstall}&amp;st={$this->ipsclass->input['st']}\", \"{$this->xml_array['mod_info']['title']['VALUE']}<br />{$this->tasks['languages']} {$object} {$operation}....\" );\n\t}", "private function export()\n {\n $translationLocale = $this->ask('In which language do you want to translate?', 'en');\n if ($translationLocale == $this->manager->getDefaultLocale()) {\n $this->warn('It is not possible to translate the default language');\n\n return;\n }\n\n /**\n * Create export file.\n */\n $file = fopen('translation_'.$this->manager->getDefaultLocale().'-'.$translationLocale.'.csv', 'w');\n fputcsv($file, ['translation_string', $this->manager->getDefaultLocale(), $translationLocale], $this->csvSeperator);\n\n if ($this->option('overwrite')) {\n $translations = $this->manager->getTranslationValues($this->manager->getDefaultLocale());\n } else {\n $translations = $this->manager->getUntranslatedValues(\n $this->manager->getDefaultLocale(),\n $translationLocale\n );\n }\n\n foreach ($translations as $key => $value) {\n fputcsv($file, [$key, $value, ''], $this->csvSeperator);\n }\n fclose($file);\n }", "public function installModules()\n\t{\n\t$mainframe =& JFactory::getApplication();\n// \t$lang = JFactory::getLanguage(); \n// $languages = JLanguageHelper::getLanguages('lang_code');\n $db =& JFactory::getDBO();\n $query = $db->getQuery(true);\n $type = \"language\";\n $query->select('a.element');\n $query->from('#__extensions AS a');\n $type = $db->Quote($type);\n\t$query->where('(a.type = '.$type.')');\n\t$query->group('a.element');\n $db->setQuery($query);\n $langlist = $db->loadObjectList();\n \n echo 'Copy Administration Modules language(s) provided by <a href=\"https://opentranslators.transifex.com/projects/p/joomleague/\">Transifex</a><br>';\n\t\t$src=JPATH_ADMINISTRATOR.DS.'components'.DS.'com_joomleague'.DS.'modules';\n\t\t$dest=JPATH_ADMINISTRATOR.DS.'modules';\n\t\t$modules = JFolder::folders($src);\n\t\t\n \t\tforeach ( $langlist as $key )\n {\n echo 'Copy Administration Modules language( '.$key->element.' ) provided by <a href=\"https://opentranslators.transifex.com/projects/p/joomleague/\">Transifex</a><br>'; \n foreach ($modules as $module)\n\t\t{\n\t\tif ( JFolder::exists($src.DS.$module.DS.'language'.DS.$key->element) )\n\t\t{\n\t\t\tJFolder::copy($src.DS.$module.DS.'language'.DS.$key->element, JPATH_ADMINISTRATOR.DS.'language'.DS.$key->element, '', true);\n\t\techo ' - <span style=\"color:green\">'.JText::_('Success -> '.$module.' - '.$key->element).'</span><br />';\n }\n }\n\t\t}\n\n\t\t//echo ' - <span style=\"color:green\">'.JText::_('Success').'</span><br />';\n\t\techo 'Copy Administration Module(s)';\n\t\tJFolder::copy($src, $dest, '', true);\n\t\techo ' - <span style=\"color:green\">'.JText::_('Success').'</span><br />';\n//\t\techo 'Copy Site Module(s) language(s) provided by <a href=\"https://opentranslators.transifex.com/projects/p/joomleague/\">Transifex</a>';\n\t\t$src=JPATH_SITE.DS.'components'.DS.'com_joomleague'.DS.'modules';\n\t\t$dest=JPATH_SITE.DS.'modules';\n\t\t$modules = JFolder::folders($src);\n\t\t\n\t\tforeach ( $langlist as $key )\n {\n echo 'Copy Site Module(s) language( '.$key->element.' ) provided by <a href=\"https://opentranslators.transifex.com/projects/p/joomleague/\">Transifex</a><br>';\n foreach ($modules as $module)\n\t\t{\n\t\tif ( JFolder::exists($src.DS.$module.DS.'language'.DS.$key->element) )\n\t\t{\n\t\t\tJFolder::copy($src.DS.$module.DS.'language'.DS.$key->element, JPATH_SITE.DS.'language'.DS.$key->element, '', true);\n echo ' - <span style=\"color:green\">'.JText::_('Success -> '.$module.' - '.$key->element).'</span><br />';\n\t\t}\n }\n\t\t}\n\n\t\t//echo ' - <span style=\"color:green\">'.JText::_('Success').'</span><br />';\n\t\techo 'Copy Site Module(s)';\n\t\tJFolder::copy($src, $dest, '', true);\n\t\techo ' - <span style=\"color:green\">'.JText::_('Success').'</span><br />';\n \n /*\n $title = 'JL2 diddipoeler GitHub Commits Module';\n\t\t$tblModules = JTable::getInstance('module');\n\t\t$tblModules->load(array('title'=>$title));\n\t\t$tblModules->title\t\t\t= $title;\n\t\t$tblModules->module\t\t\t= 'mod_joomleague_github';\n\t\t$tblModules->position \t\t= 'cpanel';\n\t\t$tblModules->published \t\t= 1;\n\t\t$tblModules->client_id \t\t= 1;\n\t\t$tblModules->ordering \t\t= 1;\n\t\t$tblModules->access \t\t= 3;\n\t\t$tblModules->language \t\t= '*';\n\t\t$tblModules->publish_up\t\t= '2000-00-00 00:00:00';\n\t\t$tblModules->params \t\t= '{\"username\":\"diddipoeler\",\"repo\":\"joomleague-2-komplettpaket\",\"count\":15,\"relativeTime\":\"1\",\"layout\":\"_:default\",\"moduleclass_sfx\":\"\",\"cache\":\"1\",\"cache_time\":\"900\",\"cachemode\":\"static\"}';\n\n\t\tif (!$tblModules->store()) {\n\t\t\techo $tblModules->getError().'<br />';\n\t\t}\n\t\t$db = JFactory::getDBO();\n\t\t$query = 'INSERT INTO #__modules_menu (moduleid,menuid) VALUES ('.$tblModules->id.',0)';\n\t\t$db->setQuery($query);\n\t\tif (!$db->query())\n\t\t{\n\t\t\t//echo $db->getErrorMsg().'<br />';\n\t\t}\n\t\n\t\t// Initialise variables\n\t\t$conf = JFactory::getConfig();\n\t\t$dispatcher = JDispatcher::getInstance();\n\n\t\t$options = array(\n\t\t\t'defaultgroup' => ($tblModules->module) ? $tblModules->module : (isset($this->option) ? $this->option : JRequest::getCmd('option')),\n\t\t\t'cachebase' => ($tblModules->client_id) ? JPATH_ADMINISTRATOR . '/cache' : $conf->get('cache_path', JPATH_SITE . '/cache'));\n\n\t\t$cache = JCache::getInstance('callback', $options);\n\t\t$cache->clean();\n\n\t\t// Trigger the onContentCleanCache event.\n\t\t$dispatcher->trigger('onContentCleanCache', $options);\n */\n \n \n \n\t}", "protected function publishTranslations($path, array $items)\n {\n foreach ($items as $filename => $translations) {\n\n $content = \"<?php\n\n/**\n * Part of the Antares package.\n *\n * NOTICE OF LICENSE\n *\n * Licensed under the 3-clause BSD License.\n *\n * This source file is subject to the 3-clause BSD License that is\n * bundled with this package in the LICENSE file.\n *\n * @package Translations\n * @version 0.9.0\n * @author Antares Team\n * @license BSD License (3-clause)\n * @copyright (c) 2017, Antares\n * @link http://antaresproject.io\n */\n\n\\n return\\n\\n \" . var_export($translations, true) . \";\\n\";\n file_put_contents($path . DIRECTORY_SEPARATOR . $filename . '.php', $content);\n }\n return true;\n }", "protected function registerTranslations()\n {\n $this->loadTranslationsFrom($this->packagePath('resources/lang'), 'support');\n }", "protected function cargarArchivosIdiomas(){\n $this->lang->load('menu', $this->idioma);\n $this->lang->load('uri', $this->idioma);\n $this->lang->load('label', $this->idioma);\n $this->lang->load('static', $this->idioma);\n $this->lang->load('messages', $this->idioma);\n }", "protected function setupLanguages()\n {\n static $done;\n\n if (!empty($done)) {\n return;\n }\n\n $l = new Languages();\n $l->setName('Danish');\n $l->setLocalName('Dansk');\n $l->setLocale('da_DK');\n $l->setIso2('da');\n $l->setDirection('ltr');\n $l->save();\n\n $done = true;\n }", "protected function populateFiles( array $translations ): bool {\n\t\ttry {\n\t\t\t$this->filePopulator->translateFiles(\n\t\t\t\t$this->settings->getTempPath(),\n\t\t\t\t$translations,\n\t\t\t\t$this->settings->getExcludedDirectories(),\n\t\t\t\t$this->settings->getExcludedFiles()\n\t\t\t);\n\t\t} catch ( \\Throwable $th ) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "protected function registerTranslations()\n {\n $this->loadTranslationsFrom($this->packagePath('resources/lang'), 'password');\n }", "function saveTranslations($lang,$keyVals)\n {\n T::loadTranslations($lang);\n $l=T::$translations[$lang];\n foreach($l as $key=>$value)\n {\n if($value!=$keyVals[$key])\n {\n $m=\\getModel(\"ps_lang\\\\translations\",array(\"id_string\"=>$key,\"lang\"=>$lang));\n $m->value=$keyVals[$key];\n $m->save();\n }\n }\n }", "private function load_translations( $locale ) {\n\t\tglobal $l10n;\n\n\t\t$domains = $l10n ? array_keys( $l10n ) : array();\n\n\t\tload_default_textdomain( $locale );\n\n\t\tforeach ( $domains as $domain ) {\n\t\t\tif ( 'default' === $domain ) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tunload_textdomain( $domain );\n\t\t\tget_translations_for_domain( $domain );\n\t\t}\n\t}", "public function saveTranslatables(\\Gettext\\Translations $translations, $packageHandle, $packageVersion)\n {\n $db = Loader::db();\n /* @var $db ADODB_mysql */\n $preHash = $db->GetOne('SELECT MD5(GROUP_CONCAT(itpTranslatable)) FROM IntegratedTranslatablePlaces WHERE (itpPackage = ?) AND (itpVersion = ?) ORDER BY itpTranslatable', array($packageHandle, $packageVersion));\n if (!isset($preHash)) {\n $preHash = '';\n }\n $result = array(\n 'total' => 0,\n 'added' => 0,\n 'updated' => 0,\n );\n $db->Execute('START TRANSACTION');\n try {\n $db->Execute('DELETE FROM IntegratedTranslatablePlaces WHERE (itpPackage = ?) AND (itpVersion = ?)', array($packageHandle, $packageVersion));\n $placesQuery = null;\n $placesQueryParams = null;\n $placesQueryCount = 0;\n foreach ($translations as $translation) {\n $result['total']++;\n /* @var $translation \\Gettext\\Translation */\n $hash = md5($translation->getId());\n $row = $db->GetRow('SELECT itID, itPlural FROM IntegratedTranslatables WHERE itHash = ? LIMIT 1', array($hash));\n if ($row) {\n $itID = (int) $row['itID'];\n if ($translation->hasPlural() && (((string) $row['itPlural']) === '')) {\n $db->Execute('UPDATE IntegratedTranslatables SET itPlural = ? WHERE itID = ? LIMIT 1', array($translation->getPlural(), $itID));\n $result['updated']++;\n }\n } else {\n $sql = 'INSERT INTO IntegratedTranslatables SET itHash = ?, itText = ?';\n $q = array($hash, $translation->getOriginal());\n if ($translation->hasContext() !== '') {\n $sql .= ', itContext = ?';\n $q[] = $translation->getContext();\n }\n if ($translation->hasPlural()) {\n $sql .= ', itPlural = ?';\n $q[] = $translation->getPlural();\n }\n $db->Execute($sql, $q);\n $itID = (int) $db->Insert_ID();\n $result['added']++;\n }\n if ($placesQueryCount === 0) {\n $placesQuery = 'INSERT INTO IntegratedTranslatablePlaces (itpTranslatable, itpPackage, itpVersion, itpLocations, itpComments) VALUES ';\n $placesQueryParams = array();\n } else {\n $placesQuery .= ', ';\n }\n $placesQuery .= '('.$itID.', ?';\n $placesQueryParams[] = $packageHandle;\n $placesQuery .= ', ?';\n $placesQueryParams[] = $packageVersion;\n $refs = array();\n foreach ($translation->getReferences() as $tr) {\n $refs[] = isset($tr[1]) ? implode(':', $tr) : $tr[0];\n }\n if (empty($refs)) {\n $placesQuery .= ', NULL';\n } else {\n $placesQuery .= ', ?';\n $placesQueryParams[] = implode(\"\\x04\", $refs);\n }\n if ($translation->hasComments()) {\n $placesQuery .= ', ?';\n $placesQueryParams[] = implode(\"\\x04\", $translation->getComments());\n } else {\n $placesQuery .= ', NULL';\n }\n $placesQuery .= ')';\n $placesQueryCount++;\n if ($placesQueryCount >= 50) {\n $db->Execute($placesQuery, $placesQueryParams);\n $placesQueryCount = 0;\n }\n }\n if ($placesQueryCount !== 0) {\n $db->Execute($placesQuery, $placesQueryParams);\n }\n $postHash = $db->GetOne('SELECT MD5(GROUP_CONCAT(itpTranslatable)) FROM IntegratedTranslatablePlaces WHERE (itpPackage = ?) AND (itpVersion = ?) ORDER BY itpTranslatable', array($packageHandle, $packageVersion));\n if (!isset($postHash)) {\n $postHash = '';\n }\n $result['somethingChanged'] = ($preHash === $postHash) ? false : true;\n Cache::delete('integrated_localization-po', $packageHandle.'@'.$packageVersion);\n Cache::delete('integrated_localization-po-dev', $packageHandle.'@'.$packageVersion);\n Cache::delete('integrated_localization-mo', $packageHandle.'@'.$packageVersion);\n $db->Execute('COMMIT');\n\n return $result;\n } catch (Exception $x) {\n try {\n $db->Execute('ROLLBACK');\n } catch (Exception $foo) {\n }\n throw $x;\n }\n }" ]
[ "0.6701293", "0.6532919", "0.64644116", "0.63723004", "0.63634884", "0.62870455", "0.62698114", "0.6259209", "0.62528723", "0.6219881", "0.61885047", "0.6110123", "0.60628635", "0.59897894", "0.59547764", "0.5949625", "0.59393716", "0.59270805", "0.5884474", "0.5883226", "0.5845742", "0.5837286", "0.58351785", "0.582739", "0.5820842", "0.58103114", "0.5767546", "0.5748593", "0.5738685", "0.57288474", "0.572794", "0.5725362", "0.57178587", "0.5702425", "0.5681093", "0.56539094", "0.5652131", "0.5648365", "0.5629542", "0.56153107", "0.5607354", "0.5601224", "0.5594643", "0.558111", "0.5580006", "0.5561944", "0.5559882", "0.55541635", "0.5546366", "0.55297583", "0.55191076", "0.5513785", "0.5510414", "0.55020136", "0.54894984", "0.5484899", "0.5478019", "0.54765445", "0.5475427", "0.5471872", "0.5459012", "0.5449574", "0.5445122", "0.542353", "0.54210174", "0.5417479", "0.54062045", "0.5405849", "0.5395559", "0.5393133", "0.5388042", "0.53838366", "0.53777844", "0.5349359", "0.53407145", "0.5339478", "0.53320885", "0.5319948", "0.5315384", "0.5307226", "0.5306082", "0.5303274", "0.52958804", "0.5294188", "0.52914125", "0.52890253", "0.52859986", "0.52839345", "0.5283698", "0.5283417", "0.52812105", "0.52805823", "0.52723455", "0.5271198", "0.5265739", "0.5265244", "0.5261285", "0.5260445", "0.5259193", "0.52558553" ]
0.67518985
0
Get Array with languages name and path
public function getDirsWithLanguages(): array { $result = []; $fs = new Filesystem(); $dirs = $fs->directories(base_path("resources/lang")); foreach ($dirs as $dir) { $lang = basename($dir); if ($lang != "vendor") { $result[$lang] = $dir; // save a language to DB if doesnt exists $language = $this->languageRepository->findByAbbr($lang); if (!$language) { $this->languageRepository->create([ 'abbr' => $lang, 'name' => $lang, 'active' => 1 ]); } } } return $result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function languages_get() {\n\t\t$language_files = array();\n\t\t$all_files = $this->crud_model->get_list_of_language_files();\n\t\t$counter = 0;\n\t\tforeach ($all_files as $file) {\n\t\t\t$info = pathinfo($file);\n\t\t\tif( isset($info['extension']) && strtolower($info['extension']) == 'json') {\n\t\t\t\t$inner_array = array();\n\t\t\t\t$file_name = explode('.json', $info['basename']);\n\t\t\t\t$inner_array = array(\n\t\t\t\t\t'id' => $counter++,\n\t\t\t\t\t'value' => $file_name[0],\n\t\t\t\t\t'displayedValue' => ucfirst($file_name[0])\n\t\t\t\t);\n\n\t\t\t\tarray_push($language_files, $inner_array);\n\t\t\t}\n\t\t}\n\t\treturn $language_files;\n\t}", "function GetLanguageArray()\n{\n global $config, $lang;\n $dh = opendir($config['paths']['root'] . \"language/\");\n unset($lang['languages']);\n $lang['languages'] = array();\n while (false !== ($filename = readdir($dh))) {\n if ($filename != \".\" && $filename != '.svn' && $filename != \"..\" && $filename != \"flags\"\n && is_dir(\n $config['paths']['root'] . \"language/\" . $filename\n )\n ) {\n $lang['languages'][] = $filename;\n }\n }\n}", "private function getLanguages() {\n $path = sprintf('%s/../languages/', __DIR__, PUBLIC_PATH, THEME_PATH);\n\n $languages = scandir($path);\n\n $output = [];\n foreach($languages as $language) {\n // Select only the .php files\n if($language != '.' && $language != '..' && substr($language, -4, 4) == '.php') {\n $language = substr($language, 0, -4);\n // Store the language information\n require($path.$language.'.php');\n $output[$language]['name'] = $name;\n $output[$language]['author'] = $author;\n $output[$language]['url'] = $url;\n $output[$language]['path'] = $language;\n }\n }\n\n return $output;\n }", "function languages() {\n\n\t$directory = path('language');\n\t$list = scandir($directory);\n\t$languages = [];\n\n\tif(!empty($list)) {\n\t\tunset($list[0]);\n\t\tunset($list[1]);\n\n\t\tforeach($list as $dir) {\n\t\t\t$pathLangDir = $directory . DIRECTORY_SEPARATOR . $dir;\n\t\t\t$pathConfig = $pathLangDir . '/config.json';\n\n\t\t\tif(is_dir($pathLangDir) and is_file($pathConfig)) {\n\t\t\t\t$config = file_get_contents($pathConfig);\n\t\t\t\t$info = json_decode($config);\n\n\t\t\t\t$languages[] = $info;\n\t\t\t}\n\t\t}\n\n\t}\n\treturn $languages;\n}", "public static function get_languages() {\n $languages = array();\n $languages_dir = APPPATH . 'languages/';\n if (is_dir($languages_dir)) {\n if ($dh = opendir($languages_dir)) {\n while (($file = readdir($dh)) !== false) {\n if (strpos($file, '.') !== 0) {\n if (is_file($languages_dir . $file)) {\n $languages_data = self::get_language_data(\"{$languages_dir}{$file}\");\n if (!empty($languages_data['name'])) {\n $languages_data['file_name'] = rtrim($file, '.php');\n $languages[] = $languages_data;\n }\n }\n }\n }\n closedir($dh);\n }\n }\n $english[0] = array('name'=>'English', 'file_name'=>'en');\n $languages = array_merge($english, $languages);\n foreach($languages as $language) {\n $language_options[$language['file_name']] = $language['name'];\n }\n return $language_options;\n }", "public function getLanguages();", "public function getLanguages() {}", "protected function getLanguages() {}", "public static function getAllLanguage() {\n $languages = Language::select('name', 'code', 'flag')->get();\n $data = array();\n foreach ($languages as $language) {\n $data[$language->code]['name'] = $language->name;\n $data[$language->code]['flag'] = url(self::LANGUAGE_THUMB_DIR . $language->flag);\n }\n\n return $data;\n }", "public function languagesArray()\n {\n $registries = explode('%%', $this->src);\n array_shift($registries); // File-Date: 2010-10-26\n $languagesArray = array();\n foreach ($registries as $regKey => $regVal) {\n $regVal = str_replace(\"\\n \", ' ', $regVal);\n $rows = explode(\"\\n\", $regVal);\n\n foreach ($rows as $k => $v) {\n if (empty($rows[$k])) {\n unset($rows[$k]);\n continue;\n }\n\n list($key, $val) = explode(':', $v);\n if ($key === 'Description' || $key === 'Prefix') {\n $languagesArray[$regKey][$key][] = trim($val);\n } else {\n $languagesArray[$regKey][$key] = trim($val);\n }\n }\n }\n\n return $languagesArray;\n }", "function getAvailableLanguages($language = \"en\")\n{\n $languages = [];\n $dirs = glob(resource_path(\"lang/*\"));\n foreach ($dirs as $dir)\n {\n $boom = explode(\"/\",$dir);\n if (strlen($boom[count($boom)-1]) === 2)\n {\n $languages[$boom[count($boom)-1]] = trans(\"languages.\" . $boom[count($boom)-1],[],$language);\n }\n }\n return $languages;\n}", "public function getLanguageList();", "public function languages();", "function getLanguages($langList){\n\t$languages = array();\n\tforeach ($langList as $lang){\n\t\t$json=file_get_contents (\"FINAL/locales/translation-$lang.json\");\n\t\t//we want an associative array, thus second parameter is true\n\t\t$languages[$lang] = json_decode($json,true);\n\t\t//print_r($obj);\n\t}\n\treturn $languages;\n}", "static function getList_languages(){\n \t$configFile = dirname ( __FILE__ ).'/../config/'.DIRECTORY_SEPARATOR.'config_languages.php';\n \t$tmp=require($configFile);\n \t foreach ($tmp as $code=>$item){\n \t$tmp[$code]=Language::t(Yii::app()->language,'Backend.Language.List',$item);\n }\n return $tmp;\n }", "function redes_get_languages() {\n $result = [];\n $languages = db_select('languages', 'lan')\n ->fields('lan', ['language', 'name'])\n ->execute()\n ->fetchAll();\n if(isset($languages) && !empty($languages)){\n foreach ($languages as $lang) {\n $result[$lang->language] = $lang->name;\n }\n }//end if\n return $result;\n}", "public function getSystemLanguages() {}", "public function getSystemLanguages() {}", "public static function load(string $lang): array\n {\n if (isset(static::$_cache[$lang])) {\n return static::$_cache[$lang];\n }\n\n // New translation table\n $table = [[]];\n\n // Split the language: language, region, locale, etc\n $parts = explode('-', $lang);\n\n // Loop through Paths\n foreach ([$parts[0], implode(DIRECTORY_SEPARATOR, $parts)] as $path) {\n // Load files\n $files = Core::findFile('i18n', $path);\n\n // Loop through files\n if (!empty($files)) {\n $t = [[]];\n foreach ($files as $file) {\n // Merge the language strings into the sub table\n $t[] = Core::load($file);\n }\n $table[] = $t;\n }\n }\n\n $table = array_merge(...array_merge(...$table));\n\n // Cache the translation table locally\n return static::$_cache[$lang] = $table;\n }", "protected static function getLanguage()\n {\n global $pathToIndex;\n $lang = array();\n include $pathToIndex . '/lang/' . self::$config['language'] . '.lang.php';\n return $lang;\n }", "public function getLanguageComponents()\n {\n $langs = array_keys( HelperService::prozessLangArray());\n\n echo json_encode(['defaultLanguage' => DEFAULT_LANG, 'languagesArray' => $langs]);\n exit();\n }", "public function getMultilingual();", "function listLanguages()\r\n\t\t{\r\n\t\t\t// scan mod directory\r\n\t\t\t$path = './lang/';\r\n\t\t\t$list = scandir($path);\r\n\t\t\t\r\n\t\t\t// remove . and ..\r\n\t\t\tforeach ($list as $val)\r\n\t\t\t{\r\n\t\t\t\tif ($val != '.'\r\n\t\t\t\t\t&& $val != '..'\r\n\t\t\t\t\t&& $val != '.svn')\r\n\t\t\t\t{\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t// remove lang_\r\n\t\t\t\t\t$x = substr($val, 5);\r\n\t\t\t\t\t\r\n\t\t\t\t\t// remove .php\r\n\t\t\t\t\t$x = substr($val, 0, -4);\r\n\t\t\t\t\t\r\n\t\t\t\t\t$out[] = substr($x, 5);\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\treturn $out;\r\n\t\t}", "private function generateLanguageBar()\n {\n $languages = $this->translator->getLanguage()->getLanguageList();\n $langmap = null;\n if (count($languages) > 1) {\n $parameterName = $this->getTranslator()->getLanguage()->getLanguageParameterName();\n $langmap = array();\n foreach ($languages as $lang => $current) {\n $lang = strtolower($lang);\n $langname = $this->translator->getLanguage()->getLanguageLocalizedName($lang);\n $url = false;\n if (!$current) {\n $url = htmlspecialchars(\\SimpleSAML\\Utils\\HTTP::addURLParameters(\n '',\n array($parameterName => $lang)\n ));\n }\n $langmap[$lang] = array(\n 'name' => $langname,\n 'url' => $url,\n );\n }\n }\n return $langmap;\n }", "public function getAll(){\n if(!isset($this->array_lang_en)){\n $this->initEn();\n }\n if(!isset($this->array_lang_fr)){\n $this->initEn();\n }\n return [\n 'eng' => $this->array_lang_en,\n 'fr' => $this->array_lang_fr\n ];\n }", "private function getLocales($path)\r\n {\r\n // Get subdirectories\r\n return collect(File::directories($path))->map(function ($item, $key) {\r\n return pathinfo($item, PATHINFO_BASENAME);\r\n });\r\n }", "public function actionLanguages() {\n return Lang::getList();\n }", "private function getLanguageOptions()\n\t{\n\t\t$output = array();\n\t\t\n\t\t\n\t\t\n\t\t$dir = $this->langFolder;\n\t\t\n\t\tif ($dh = opendir($dir)) \n\t\t{\n\t\t\twhile (($langdir = readdir($dh)) !== false) \n\t\t\t{\n\t\t\t\tif($langdir != '.' && $langdir != '..' && is_dir($dir.$langdir))\n\t\t\t\t{\n\t\t\t\t\t$output[$langdir] = $langdir;\n\t\t\t\t}\n\t\t\t}\n\t\t\tclosedir($dh);\n\t\t}\n\t\t\n\t\tif(count($output) == 2)\n\t\t\tsort($output);\n\t\telse\n\t\t\tksort($output);\n\t\t\n\t\treturn $output;\n\t}", "public static function getLanguages()\n {\n static $result = null;\n\n if ($result === null)\n {\n $cache_file = sfConfig::get('sf_cache_dir').'/sfEasySyntaxHighlighterLanguages.cache.php';\n\n if (!file_exists($cache_file))\n {\n $files = sfFinder::type('file')->name('*.php')->in(self::getPluginPath().'/lib/vendor/geshi/geshi/');\n $result = array();\n\n foreach ($files as $file)\n {\n require($file);\n\n $result[basename($file, '.php')] = $language_data['LANG_NAME'];\n }\n asort($result);\n\n file_put_contents($cache_file, serialize($result));\n }\n else\n {\n $result = unserialize(file_get_contents($cache_file));\n }\n }\n\n return $result;\n }", "public static function activeLanguagesArray()\n {\n if (!empty(Yii::$app->langManager) && !empty(Yii::$app->langManager->langsConfig)) {\n return Yii::$app->langManager->langsConfig;\n } else {\n return include(dirname(__DIR__) . '/config/langs-default.php');\n }\n }", "public static function getLanguage(): array\n {\n return self::$language;\n }", "function getLang() {\n $query = 'select * from language';\n $languageRes = $this->db->dbQuery($query);\n\n $languages = array();\n while ($language = $languageRes->fetch_assoc()) {\n array_push($languages, array('langID' => $language['langID'],\n 'languageName' => $language['languageName']));\n }\n return $languages;\n }", "function gather_languages ($dirname = 'language')\n{\n\tglobal $phpbb_root_path;\n\t$dir = opendir(@phpbb_realpath($phpbb_root_path . $dirname));\n\n\t$lang = array();\n\twhile ( $file = readdir($dir) )\n\t{\n\t\tif ( preg_match('#^lang_#i', $file) && !is_file(phpbb_realpath($phpbb_root_path . $dirname . '/' . $file)) && !is_link($phpbb_root_path . @phpbb_realpath($dirname . '/' . $file)) )\n\t\t{\n\t\t\t$filename = trim(str_replace('lang_', '', $file));\n\t\t\t$displayname = preg_replace(\"/^(.*?)_(.*)$/\", \"\\\\1 [ \\\\2 ]\", $filename);\n\t\t\t$displayname = preg_replace(\"/\\[(.*?)_(.*)\\]/\", \"[ \\\\1 - \\\\2 ]\", $displayname);\n\t\t\t$lang[$filename] = $displayname;\n\t\t}\n\t}\n\n\tclosedir($dir);\n\n\t@asort($lang);\n\treturn $lang;\n}", "public static function getListLanguagesAvailable()\n {\n\n $locale_languages = self::getRootLocaleLanguages();\n $conf_languages = self::getConfLanguagesFile();\n\n if (isset($conf_languages['available'])) {\n \n $languages = array();\n foreach ($conf_languages['available'] as $lang) {\n $languages['__'.$lang] = $locale_languages[$lang];\n }\n } else {\n $languages = array('__it' => 'Italiano');\n // $languages = array('__it' => 'Italiano', '__en' => 'Inglese');\n }\n\n return $languages;\n }", "function get_languages()\n\t{\n\t\t$handle = opendir($this->e107->e107_dirs['LANGUAGES_DIRECTORY']);\n\t\t$lanlist = array();\t\t\n\t\twhile ($file = readdir($handle))\n\t\t{\n\t\t\tif ($file != \".\" && $file != \"..\" && $file != \"/\" && $file != \"CVS\" && $file != 'index.html') \n\t\t\t{\n\t\t\t\tif(file_exists(\"./{$this->e107->e107_dirs['LANGUAGES_DIRECTORY']}{$file}/lan_installer.php\"))\n\t\t\t\t{\n\t\t\t\t\t$lanlist[] = $file;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tclosedir($handle);\n\t\treturn $lanlist;\n\t}", "public static function getLocaleList()\n {\n return collect(config('lang-detector.languages'))->map(function ($lang) {\n return [\n 'lang' => $lang,\n 'name' => self::getLocaleName($lang),\n 'name-orig' => self::getLocaleName($lang, $lang),\n ];\n });\n }", "public static function getSystemLanguages() {}", "public function getSiteLanguages();", "protected function translations(): array\n {\n return $this->cache->get('translations', function (): array {\n return array_values(array_map(function (SplFileInfo $file): string {\n return $file->getBasename('.yaml');\n }, iterator_to_array(\n Finder::create()->in($this->config->get('translations_path'))->name('*.yaml')\n )));\n });\n }", "public function elfinderLocalizations()\n {\n $i18n = [];\n\n foreach ($this->localizations() as $id => $translations) {\n if ($translations instanceof Translation) {\n foreach ($translations->data() as $language => $message) {\n $i18n[$language][$id] = $message;\n }\n } else {\n $i18n[$language][$id] = $translations;\n }\n }\n\n return $i18n;\n }", "function getLanguageFiles()\r\n{\r\n\t$directory = \"models/languages/\";\r\n\t$languages = glob($directory . \"*.php\");\r\n\t//print each file name\r\n\treturn $languages;\r\n}", "function getLanguageFiles() // used in admin_configuration.php\r\n\r\n{\r\n\r\n\t$directory = \"models/languages/\";\r\n\r\n\t$languages = glob($directory . \"*.php\");\r\n\r\n\t//print each file name\r\n\r\n\treturn $languages;\r\n\r\n}", "public static function getLanguages(): array\n {\n $statement = self::getDB()->prepare('SELECT * FROM languages');\n $statement->execute();\n return $statement->fetchAll();\n }", "function get_languages(){\n\t\t$dir = APPPATH.\"language/\";\n\t\t$dh = opendir($dir);\n\t\t$i=0;\n\t\twhile (false !== ($filename = readdir($dh))) {\n\t\t\tif($filename!=='.' && $filename!=='..' && is_dir($dir.$filename)){\n\t\t\t\t$files[$i]['dir'] = $filename;\n\t\t\t\t$files[$i]['count']=$this->get_count_lfiles($filename);\n\t\t\t\t$i++;\n\t\t\t}\n\t\t}\n\t\treturn (!empty($files))?$files:FALSE;\n\t}", "public static function GetLanguages() {\n try {\n $vi = 'vi';\n return DB::table('languages')\n ->where('deleted_at', null)\n ->where('language_code', '<>', $vi)\n ->select(\n 'language_code as code',\n 'language_name as name'\n )\n ->get()->toArray();\n } catch (Exception $e) {\n return [];\n }\n }", "public function parseLanguages()\n {\n $languages = array();\n $modelArray = $this->model->toRdfPhp();\n $textAnnotationsLanguage = $this->model->resourcesMatching(DCTerms::TYPE, array('type' => 'uri', 'value' => DCTerms::LINGUISTIC_SYSTEM));\n foreach ($textAnnotationsLanguage as $taLangResource) {\n $taProperties = $modelArray[$taLangResource->getUri()];\n $lang = isset($taProperties[DCTerms::LANGUAGE][0]['value']) ? $taProperties[DCTerms::LANGUAGE][0]['value'] : '';\n if (!empty($lang) && !in_array($lang, $languages))\n array_push($languages, $lang);\n }\n\n return $languages;\n }", "public function loc($mod){\n\n\t$loc = 'fr';\n\n\t$doc = new DOMDocument();\n\t$doc->preserveWhiteSpace = false;\n\t$doc->load(APP.'/module/core/config/language-'.$loc.'.xml');\n\n\t$items\t= array();\n\t$xpath \t= new DOMXPath($doc);\n\t$data\t= $xpath->query('/language/item');\n\n\tforeach($data as $e){\n\t\t$items[$e->getAttributeNode('key')->nodeValue] = utf8_decode($e->nodeValue);\n\t#\t$items[$e->getAttributeNode('key')->nodeValue] = $e->nodeValue;\n\t}\n\n\t# - - - - - - - - - - - - - - - - - - - - - - - -\t\n\n\t$xml = APP.'/module/'.$mod.'/config/language-'.$loc.'.xml';\n\n\tif(file_exists($xml)){\n\t\t$doc = new DOMDocument();\n\t\t$doc->preserveWhiteSpace = false;\n\t\t$doc->load($xml);\n\t\n\t\t$xpath \t= new DOMXPath($doc);\n\t\t$data\t= $xpath->query('/language/item');\n\t\n\t\tif($data->length > 0){\n\t\t\tforeach($data as $e){\n\t\t\t\t$items[$e->getAttributeNode('key')->nodeValue] = utf8_decode($e->nodeValue);\n\t\t\t#\t$items[$e->getAttributeNode('key')->nodeValue] = $e->nodeValue;\n\t\t\t}\n\t\t}\n\t}\n\t\n\treturn $items;\n}", "public function onLanguagesOptionsCallback(): array\n {\n return $this->locales->getLocales(null, true);\n }", "public function iN_Languages() {\n\t\t$query = mysqli_query($this->db, \"SELECT * FROM i_langs WHERE lang_status = '1'\") or die(mysqli_error($this->db));\n\t\twhile ($row = mysqli_fetch_array($query, MYSQLI_ASSOC)) {\n\t\t\t$data[] = $row;\n\t\t}\n\t\tif (!empty($data)) {\n\t\t\treturn $data;\n\t\t}\n\t}", "function getMultipleTreeLanguages() {\n\t\tforeach ($this->conf['multipleTreesRootPages.'] as $isoCode=>$uid) {\n\t\t\t$availableLanguages [trim(strtolower($isoCode))] = intval($uid);\n\t\t}\n\t\treturn $availableLanguages;\n\t}", "private static function loadLanguage($lang){\n\t\t$descriptions = array();\n\n\t\t$locale = 'locale/'.$lang.'.php';\n\t\trequire($locale);\n\n\t\treturn (object)$descriptions;\n\t}", "function GetLanguages() // static function\r\n\t{\r\n\t\treturn array_keys ( $this->m_languages );\r\n\t}", "protected function get_paths()\n {\n\n return array(\n WP_LANG_DIR . '/' . $this->textdomain . '-' . get_locale() . '.mo',\n Kirki::$path . '/languages/' . $this->textdomain . '-' . get_locale() . '.mo',\n );\n\n }", "protected function getLanguageFiles(): array {\n\t\t$extensions = ExtensionManagementUtility::getLoadedExtensionListArray();\n\t\t$extensions = array_filter($extensions, function(string $extensionName) {\n\t\t\treturn str_starts_with($extensionName, 'vierwd_');\n\t\t});\n\t\tsort($extensions);\n\n\t\t$files = [];\n\t\tforeach ($extensions as $extensionName) {\n\t\t\t$path = ExtensionManagementUtility::extPath($extensionName, 'Resources/Private/Language');\n\t\t\tif (!is_dir($path)) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t$languageFiles = glob($path . '/*.xlf') ?: [];\n\n\t\t\t// remove language files which are translations\n\t\t\t$languageFiles = array_filter($languageFiles, function(string $pathName) {\n\t\t\t\t$fileName = basename($pathName);\n\t\t\t\treturn substr_count($fileName, '.') === 1;\n\t\t\t});\n\n\t\t\tif (!$languageFiles) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t// only use filename\n\t\t\t$languageFiles = array_map('basename', $languageFiles);\n\n\t\t\t$files[$extensionName] = [];\n\t\t\tforeach ($languageFiles as $fileName) {\n\t\t\t\t$files[$extensionName][$fileName] = $fileName;\n\t\t\t}\n\t\t}\n\n\t\treturn $files;\n\t}", "public function get_desired_languages();", "function &happy_linux_get_lang_name_ja()\n{\n $arr = array('japanese', 'japaneseutf', 'ja_utf8');\n return $arr;\n}", "public function getLanguages()\n {\n $endpoint = $this->endpoints['getLanguages'];\n return $this->sendRequest($endpoint['method'], $endpoint['uri']);\n }", "public function getLanguagesList() {\n return $this->_get(2);\n }", "public function getLangFiles($sLang) {\n $aOut = array();\n foreach ($this->getBasePaths('i18n') as $aPaths) {\n foreach ($aPaths as $aInfo) {\n if (strtolower(basename(dirname($aInfo['path']))) == strtolower($sLang)) {//filter actual lang\n $aOut[] = $aInfo['path'];\n }\n }\n }\n return $aOut;\n }", "public function getLanguages() {\n\t\t$url = self::API_URL . $this->getMethodName(self::METHOD_GET_LANGUAGES);\n\t\t\n\t\t$response = json_decode($this->doRequest($url, array(\n\t\t\t'key' => $this->apiKey,\n 'ui' => 'en'\n\t\t)));\n\t\t\n\t\t$languages = array();\n\t\tforeach($response->langs as $abbr => $name){\n\t\t\tarray_push($languages, new \\Webcook\\Translator\\Results\\LanguageResult($abbr, $name));\n\t\t}\n\t\t\n\t\treturn $languages;\n\t}", "public function getLanguageList() {\n $languageList = array();\n\n if (! is_dir('lang')) {\n if (substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2) == 'fr')\n throw new Exception('Dossier INSTALL/lang manquant');\n else\n throw new Exception('Missing INSTALL/lang directory');\n }\n\n foreach (array_diff(scandir('lang'), array('.', '..')) as $languageFile) {\n $languageFileData = explode('.', $languageFile);\n\n if (is_file('lang/'. $languageFile)\n && $languageFileData[1] == 'lang'\n && $languageFileData[2] == 'php'\n )\n $languageList[] = $languageFileData[0];\n }\n\n if (empty($languageList)) {\n if (substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2) == 'fr')\n throw new Exception('Dossier INSTALL/lang vide');\n else\n throw new Exception('Empty INSTALL/lang directory');\n }\n\n return $languageList;\n }", "public static function getLanguages()\n\t{\n\t\tstatic $languages = array(\n\t\t\tarray('English', 'English', 'eng', 'en'),\n\t\t\tarray('German', 'Deutsch', 'ger', 'de'),\n\t\t\tarray('French', 'Française', 'fre', 'fr'),\n\t\t\tarray('Bulgarian', 'български език', 'bul', 'bg'),\n\t\t\tarray('Spanish', 'español', 'spa', 'es'),\n\t\t\tarray('Chinese', '汉语 / 漢語', 'chi', 'zh'),\n\t\t\tarray('Croatian', 'hrvatski', 'cro', 'hr'),\n\t\t\tarray('Albanian', 'Shqip', 'alb', 'sq'),\n\t\t\tarray('Arabic', 'العربية', 'ara', 'ar'),\n// \t\t\tarray('Amazigh', '', 'ama', ''),\n\t\t\tarray('Catalan', 'català', 'cat', 'ca'),\n\t\t\tarray('Armenian', 'Հայերեն', 'arm', 'hy'),\n\t\t\tarray('Azerbaijani', 'Azərbaycan / Азәрбајҹан / آذربایجان دیلی', 'aze', 'az'),\n\t\t\tarray('Bengali', 'বাংলা', 'ben', 'bn'),\n\t\t\tarray('Dutch', 'Nederlands', 'dut', 'nl'),\n\t\t\tarray('Bosnian', 'bosanski/босански', 'bos', 'bs'),\n\t\t\tarray('Serbian', 'Српски / Srpski ', 'ser', 'sr'),\n\t\t\tarray('Portuguese', 'português', 'por', 'pt'),\n\t\t\tarray('Greek', 'Ελληνικά / Ellīniká', 'gre', 'el'),\n\t\t\tarray('Turkish', 'Türkçe', 'tur', 'tr'),\n\t\t\tarray('Czech', 'Čeština', 'cze', 'cs'),\n\t\t\tarray('Danish', 'dansk', 'dan', 'da'),\n\t\t\tarray('Finnish', 'suomi', 'fin', 'fi'),\n\t\t\tarray('Swedish', 'svenska', 'swe', 'sv'),\n\t\t\tarray('Hungarian', 'magyar', 'hun', 'hu'),\n\t\t\tarray('Icelandic', 'Íslenska', 'ice', 'is'),\n\t\t\tarray('Hindi', 'हिन्दी / हिंदी', 'hin', 'hi'),\n\t\t\tarray('Persian', 'فارسی', 'per', 'fa'),\n\t\t\tarray('Kurdish', 'Kurdî / کوردی', 'kur', 'ku'),\n\t\t\tarray('Irish', 'Gaeilge', 'iri', 'ga'),\n\t\t\tarray('Hebrew', 'עִבְרִית / \\'Ivrit', 'heb', 'he'),\n\t\t\tarray('Italian', 'Italiano', 'ita', 'it'),\n\t\t\tarray('Japanese', '日本語 / Nihongo', 'jap', 'ja'),\n\t\t\tarray('Korean', '한국어 / 조선말', 'kor', 'ko'),\n\t\t\tarray('Latvian', 'latviešu valoda', 'lat', 'lv'),\n\t\t\tarray('Lithuanian', 'Lietuvių kalba', 'lit', 'lt'),\n\t\t\tarray('Luxembourgish', 'Lëtzebuergesch', 'lux', 'lb'),\n\t\t\tarray('Macedonian', 'Македонски јазик / Makedonski jazik', 'mac', 'mk'),\n\t\t\tarray('Malay', 'Bahasa Melayu / بهاس ملايو', 'mal', 'ms'),\n\t\t\tarray('Dhivehi', 'Dhivehi / Mahl', 'dhi', 'dv'),\n// \t\t\tarray(\"Montenegrin\", \"Црногорски / Crnogorski\", \"mon\", ''),\n\t\t\tarray('Maori', 'Māori', 'mao', 'mi'),\n\t\t\tarray('Norwegian', 'norsk', 'nor', 'no'),\n\t\t\tarray('Filipino', 'Filipino', 'fil', 'tl'),\n\t\t\tarray('Polish', 'język polski', 'pol', 'pl'),\n\t\t\tarray('Romanian', 'română / limba română', 'rom', 'ro'),\n\t\t\tarray('Russian', 'Русский язык', 'rus', 'ru'),\n\t\t\tarray('Slovak', 'slovenčina', 'slo', 'sk'),\n\t\t\tarray('Mandarin', '官話 / Guānhuà', 'man', 'zh'),\n\t\t\tarray('Tamil', 'தமிழ', 'tam', 'ta'),\n\t\t\tarray('Slovene', 'slovenščina', 'slv', 'sl'),\n\t\t\tarray('Zulu', 'isiZulu', 'zul', 'zu'),\n\t\t\tarray('Xhosa', 'isiXhosa', 'xho', 'xh'),\n\t\t\tarray('Afrikaans', 'Afrikaans', 'afr', 'af'),\n// \t\t\tarray('Northern Sotho', 'Sesotho sa Leboa', 'nso', '--'),\n\t\t\tarray('Tswana', 'Setswana / Sitswana', 'tsw', 'tn'),\n\t\t\tarray('Sotho', 'Sesotho', 'sot', 'st'),\n\t\t\tarray('Tsonga', 'Tsonga', 'tso', 'ts'),\n\t\t\tarray('Thai', 'ภาษาไทย / phasa thai', 'tha', 'th'),\n\t\t\tarray('Ukrainian', 'українська мова', 'ukr', 'uk'),\n\t\t\tarray('Vietnamese', 'Tiếng Việt', 'vie', 'vi'),\n\t\t\tarray('Pashto', 'پښت', 'pas', 'ps'),\n\t\t\tarray('Samoan', 'gagana Sāmoa', 'sam', 'sm'),\n// \t\t\tarray('Bajan', 'Barbadian Creole', 'baj', '--'),\n\t\t\tarray('Belarusian', 'беларуская мова', 'bel', 'be'),\n\t\t\tarray('Dzongkha', '', 'dzo', 'dz'),\n// \t\t\tarray('Quechua', '', 'que', ''),\n// \t\t\tarray('Aymara', '', 'aym', ''),\n// \t\t\tarray('Setswana', '', 'set', ''),\n// \t\t\tarray('Bruneian', '', 'bru', ''),\n// \t\t\tarray('Indigenous', '', 'ind', ''),\n// \t\t\tarray('Kirundi', '', 'kir', ''),\n// \t\t\tarray('Swahili', '', 'swa', ''),\n// \t\t\tarray('Khmer', '', 'khm', ''),\n// \t\t\tarray('Sango', '', 'san', ''),\n// \t\t\tarray('Lingala', '', 'lin', ''),\n// \t\t\tarray('Kongo/Kituba', '', 'kon', ''),\n// \t\t\tarray('Tshiluba', '', 'tsh', ''),\n// \t\t\tarray('Afar', '', 'afa', ''),\n// \t\t\tarray('Somali', '', 'som', ''),\n// \t\t\tarray('Fang', '', 'fan', ''),\n// \t\t\tarray('Bube', '', 'bub', ''),\n// \t\t\tarray('Annobonese', '', 'ann', ''),\n// \t\t\tarray('Tigrinya', '', 'tig', ''),\n// \t\t\tarray('Estonian', 'Eesti', 'est', 'et'),\n// \t\t\tarray('Amharic', '', 'amh', ''),\n// \t\t\tarray('Faroese', '', 'far', ''),\n// \t\t\tarray('Bau Fijian', '', 'bau', ''),\n// \t\t\tarray('Hindustani', '', 'hit', ''),\n// \t\t\tarray('Tahitian', '', 'tah', ''),\n// \t\t\tarray('Georgian', '', 'geo', ''),\n// \t\t\tarray('Greenlandic', '', 'grl', ''),\n// \t\t\tarray('Chamorro', '', 'cha', ''),\n// \t\t\tarray('Crioulo', '', 'cri', ''),\n// \t\t\tarray('Haitian Creole', '', 'hai', ''),\n// \t\t\tarray('Indonesian', '', 'inn', ''),\n// \t\t\tarray('Kazakh', '', 'kaz', ''),\n// \t\t\tarray('Gilbertese', '', 'gil', ''),\n// \t\t\tarray('Kyrgyz', '', 'kyr', ''),\n// \t\t\tarray('Lao', '', 'lao', ''),\n// \t\t\tarray('Southern Sotho', '', 'sso', ''),\n// \t\t\tarray('Malagasy', '', 'mag', ''),\n// \t\t\tarray('Chichewa', '', 'chw', ''),\n// \t\t\tarray('Maltese', '', 'mat', ''),\n// \t\t\tarray('Marshallese', '', 'mar', ''),\n// \t\t\tarray('Moldovan', '', 'mol', ''),\n// \t\t\tarray('Gagauz', '', 'gag', ''),\n// \t\t\tarray('Monegasque', '', 'moq', ''),\n// \t\t\tarray('Mongolian', '', 'mgl', ''),\n// \t\t\tarray('Burmese', '', 'bur', ''),\n// \t\t\tarray('Oshiwambo', '', 'osh', ''),\n// \t\t\tarray('Nauruan', '', 'nau', ''),\n// \t\t\tarray('Nepal', '', 'nep', ''),\n// \t\t\tarray('Papiamento', '', 'pap', ''),\n// \t\t\tarray('Niuean', '', 'niu', ''),\n// \t\t\tarray('Norfuk', '', 'nfk', ''),\n// \t\t\tarray('Carolinian', '', 'car', ''),\n// \t\t\tarray('Urdu', 'اردو', 'urd', 'ur'),\n// \t\t\tarray('Palauan', '', 'pal', ''),\n// \t\t\tarray('Tok Pisin', '', 'tok', ''),\n// \t\t\tarray('Hiri Motu', '', 'hir', ''),\n// \t\t\tarray('Guarani', '', 'gua', ''),\n// \t\t\tarray('Pitkern', '', 'pit', ''),\n// \t\t\tarray('Kinyarwanda', '', 'kin', ''),\n// \t\t\tarray('Antillean Creole', '', 'ant', ''),\n// \t\t\tarray('Wolof', '', 'wol', ''),\n// \t\t\tarray('Sinhala', '', 'sin', ''),\n// \t\t\tarray('Sranan Tongo', '', 'sra', ''),\n// \t\t\tarray('Swati', '', 'swt', ''),\n// \t\t\tarray('Syrian', '', 'syr', ''),\n// \t\t\tarray('Tajik', '', 'taj', ''),\n// \t\t\tarray('Tetum', '', 'tet', ''),\n// \t\t\tarray('Tokelauan', '', 'tol', ''),\n// \t\t\tarray('Tongan', '', 'ton', ''),\n// \t\t\tarray('Turkmen', '', 'tkm', ''),\n// \t\t\tarray('Uzbek', '', 'uzb', ''),\n// \t\t\tarray('Dari', '', 'dar', ''),\n// \t\t\tarray('Tuvaluan', '', 'tuv', ''),\n// \t\t\tarray('Bislama', '', 'bis', ''),\n// \t\t\tarray('Uvean', '', 'uve', ''),\n// \t\t\tarray('Futunan', '', 'fut', ''),\n// \t\t\tarray('Shona', '', 'sho', ''),\n// \t\t\tarray('Sindebele', '', 'sid', ''),\n// \t\t\tarray('Taiwanese', '', 'tai', ''),\n// \t\t\tarray('Manx', '', 'max', ''),\n\t\t\tarray('Fanmglish', 'Famster', 'fam', 'xf'),\n\t\t\tarray('Bot', 'BotJSON', 'bot', 'xb'),\n\t\t\tarray('Ibdes', 'RFCBotJSON', 'ibd', 'xi'),\n\t\t\tarray('Test Japanese', 'Test Japanese', 'ori', 'xo')\n\t\t);\n\t\treturn $languages;\n\t}", "function yourls_get_available_languages( $dir = null ) {\n\t$languages = array();\n\n\t$dir = is_null( $dir) ? YOURLS_LANG_DIR : $dir;\n\n\tforeach( (array) glob( $dir . '/*.mo' ) as $lang_file ) {\n\t\t$languages[] = basename( $lang_file, '.mo' );\n\t}\n\n\treturn yourls_apply_filter( 'get_available_languages', $languages );\n}", "public function getAll(){\n\t\t$url = WEBSERVICE. \"languages/getAll\";\n\t\t$this->HTTPRequest->setUrl($url);\n\t\t$this->HTTPRequest->setMethod(\"GET\");\n\t\t$arrayResponse = $this->HTTPRequest->sendHTTPRequest();\n\t\treturn $this->arrayToLanguage($arrayResponse, false);\n\t}", "function getAll()\r\n\t\t{\r\n\t\t\treturn $this->lang;\r\n\t\t}", "function getSiteLanguages() {\n global $dbAccess;\n $this->db = $dbAccess;\n $data = $this->db->SimpleQuery(\"SELECT * FROM \" . TBL_LANGUAGES . \" WHERE status='1' ORDER BY language_name\");\n\n return $data;\n }", "protected function getLanguagesTables()\n {\n $dir = DOCALIST_DATA_DIR . '/tables/languages/';\n\n return [\n // Tables des langues complète\n 'ISO-639-2_alpha3_fr' => [\n 'path' => $dir . 'ISO-639-2_alpha3_fr.txt',\n 'label' => __('Langues - Monde entier (codes 3 lettres, libellés en français)', 'docalist-data'),\n 'format' => 'table',\n 'type' => 'language',\n 'creation' => '2014-03-14 10:11:23',\n ],\n 'ISO-639-2_alpha3_en' => [\n 'path' => $dir . 'ISO-639-2_alpha3_en.txt',\n 'label' => __('Langues - Monde entier (codes 3 lettres, libellés en anglais)', 'docalist-data'),\n 'format' => 'table',\n 'type' => 'language',\n 'creation' => '2014-03-14 10:11:43',\n ],\n\n // Tables des langues simplifiées (langues officielles de l'union européenne)\n 'ISO-639-2_alpha3_EU_fr' => [\n 'path' => $dir . 'ISO-639-2_alpha3_EU_fr.txt',\n 'label' => __(\"Langues - Union Européenne (codes 3 lettres, libellés en français)\", 'docalist-data'),\n 'format' => 'table',\n 'type' => 'language',\n 'creation' => '2014-03-15 09:01:39',\n ],\n 'ISO-639-2_alpha3_EU_en' => [\n 'path' => $dir . 'ISO-639-2_alpha3_EU_en.txt',\n 'label' => __(\"Langues - Union Européenne (codes 3 lettres, libellés en anglais)\", 'docalist-data'),\n 'format' => 'table',\n 'type' => 'language',\n 'creation' => '2014-03-15 09:01:39',\n ],\n\n // Tables de conversion des codes langues\n 'ISO-639-2_alpha2-to-alpha3' => [\n 'path' => $dir . 'ISO-639-2_alpha2-to-alpha3.txt',\n 'label' => __('Langues - Table de conversion des codes 2 lettres en codes 3 lettres', 'docalist-data'),\n 'format' => 'conversion',\n 'type' => 'language-conversion',\n 'creation' => '2014-03-14 10:12:15',\n ],\n ];\n }", "public function getLanguagePairs()\n {\n return $this->request('/language_pair/', array());\n }", "public function getLanguages(): array\n {\n return $this->dictionary->getLanguages();\n }", "public function get_langs_list()\n {\n // they must come first. (ex: CSS has to come \n // before CSS-extras)\n\n return [\n 1 => ['id' => 'markup', 'name' => 'Markup', 'file' => 'prism-markup', 'require' => '', 'in_popup' => 1],\n 2 => ['id' => 'css', 'name' => 'CSS', 'file' => 'prism-css', 'require' => '', 'in_popup' => 1],\n 3 => ['id' => 'css-extras', 'name' => 'CSS Extras', 'file' => 'prism-css-extras', 'require' => 'css', 'in_popup' => 0],\n 4 => ['id' => 'clike', 'name' => 'C-Like', 'file' => 'prism-clike', 'require' => '', 'in_popup' => 1],\n 5 => ['id' => 'javascript', 'name' => 'Java-Script', 'file' => 'prism-javascript', 'require' => 'clike', 'in_popup' => 1],\n 6 => ['id' => 'php', 'name' => 'PHP', 'file' => 'prism-php', 'require' => 'clike', 'in_popup' => 1],\n 7 => ['id' => 'php-extras', 'name' => 'PHP Extras', 'file' => 'prism-php-extras', 'require' => 'php', 'in_popup' => 0],\n 8 => ['id' => 'ruby', 'name' => 'Ruby', 'file' => 'prism-ruby', 'require' => 'clike', 'in_popup' => 1],\n 9 => ['id' => 'sql', 'name' => 'SQL', 'file' => 'prism-sql', 'require' => '', 'in_popup' => 1],\n 10 => ['id' => 'c', 'name' => 'C', 'file' => 'prism-c', 'require' => 'clike', 'in_popup' => 1],\n 11 => ['id' => 'abap', 'name' => 'ABAP', 'file' => 'prism-abap', 'require' => '', 'in_popup' => 1],\n 12 => ['id' => 'actionscript', 'name' => 'ActionScript', 'file' => 'prism-actionscript', 'require' => 'javascript', 'in_popup' => 1],\n 13 => ['id' => 'ada', 'name' => 'Ada', 'file' => 'prism-ada', 'require' => '', 'in_popup' => 1],\n 14 => ['id' => 'apacheconf', 'name' => 'Apache Configuration', 'file' => 'prism-apacheconf', 'require' => '', 'in_popup' => 1],\n 15 => ['id' => 'apl', 'name' => 'APL', 'file' => 'prism-apl', 'require' => '', 'in_popup' => 1],\n 16 => ['id' => 'applescript', 'name' => 'Applescript', 'file' => 'prism-applescript', 'require' => '', 'in_popup' => 1],\n 17 => ['id' => 'asciidoc', 'name' => 'AsciiDoc', 'file' => 'prism-asciidoc', 'require' => '', 'in_popup' => 1],\n 18 => ['id' => 'aspnet', 'name' => 'ASP.NET (C#)', 'file' => 'prism-aspnet', 'require' => 'markup', 'in_popup' => 1],\n 19 => ['id' => 'autoit', 'name' => 'AutoIt', 'file' => 'prism-autoit', 'require' => '', 'in_popup' => 1],\n 20 => ['id' => 'autohotkey', 'name' => 'AutoHotkey', 'file' => 'prism-autohotkey', 'require' => '', 'in_popup' => 1],\n 21 => ['id' => 'bash', 'name' => 'Bash', 'file' => 'prism-bash', 'require' => '', 'in_popup' => 1],\n 22 => ['id' => 'basic', 'name' => 'BASIC', 'file' => 'prism-basic', 'require' => '', 'in_popup' => 1],\n 23 => ['id' => 'batch', 'name' => 'Batch', 'file' => 'prism-batch', 'require' => '', 'in_popup' => 1],\n 24 => ['id' => 'bison', 'name' => 'Bison', 'file' => 'prism-bison', 'require' => 'c', 'in_popup' => 1],\n 25 => ['id' => 'brainfuck', 'name' => 'Brainfuck', 'file' => 'prism-brainfuck', 'require' => '', 'in_popup' => 1],\n 26 => ['id' => 'bro', 'name' => 'Bro', 'file' => 'prism-bro', 'require' => '', 'in_popup' => 1],\n 27 => ['id' => 'csharp', 'name' => 'C#', 'file' => 'prism-csharp', 'require' => 'c', 'in_popup' => 1],\n 28 => ['id' => 'cpp', 'name' => 'C++', 'file' => 'prism-cpp', 'require' => 'c', 'in_popup' => 1],\n 29 => ['id' => 'coffeescript', 'name' => 'CoffeeScript', 'file' => 'prism-coffeescript', 'require' => 'javascript', 'in_popup' => 1],\n 30 => ['id' => 'crystal', 'name' => 'Crystal', 'file' => 'prism-crystal', 'require' => 'ruby', 'in_popup' => 1],\n 31 => ['id' => 'd', 'name' => 'D', 'file' => 'prism-d', 'require' => 'clike', 'in_popup' => 1],\n 32 => ['id' => 'dart', 'name' => 'Dart', 'file' => 'prism-dart', 'require' => 'clike', 'in_popup' => 1],\n 33 => ['id' => 'diff', 'name' => 'Diff', 'file' => 'prism-diff', 'require' => '', 'in_popup' => 1],\n 34 => ['id' => 'django', 'name' => 'Django/Jinja2', 'file' => 'prism-django', 'require' => 'markup', 'in_popup' => 1],\n 35 => ['id' => 'docker', 'name' => 'Docker', 'file' => 'prism-docker', 'require' => '', 'in_popup' => 1],\n 36 => ['id' => 'eiffel', 'name' => 'Eiffel', 'file' => 'prism-eiffel', 'require' => '', 'in_popup' => 1],\n 37 => ['id' => 'elixir', 'name' => 'Elixir', 'file' => 'prism-elixir', 'require' => '', 'in_popup' => 1],\n 38 => ['id' => 'erlang', 'name' => 'Erlang', 'file' => 'prism-erlang', 'require' => '', 'in_popup' => 1],\n 39 => ['id' => 'fsharp', 'name' => 'F#', 'file' => 'prism-fsharp', 'require' => 'clike', 'in_popup' => 1],\n 40 => ['id' => 'fortran', 'name' => 'Fortran', 'file' => 'prism-fortran', 'require' => '', 'in_popup' => 1],\n 41 => ['id' => 'gherkin', 'name' => 'Gherkin', 'file' => 'prism-gherkin', 'require' => '', 'in_popup' => 1],\n 42 => ['id' => 'git', 'name' => 'Git', 'file' => 'prism-git', 'require' => '', 'in_popup' => 1],\n 43 => ['id' => 'glsl', 'name' => 'GLSL', 'file' => 'prism-glsl', 'require' => 'clike', 'in_popup' => 1],\n 44 => ['id' => 'go', 'name' => 'Go', 'file' => 'prism-go', 'require' => 'clike', 'in_popup' => 1],\n 45 => ['id' => 'graphql', 'name' => 'GraphQL', 'file' => 'prism-graphql', 'require' => '', 'in_popup' => 1],\n 46 => ['id' => 'groovy', 'name' => 'Groovy', 'file' => 'prism-groovy', 'require' => 'clike', 'in_popup' => 1],\n 47 => ['id' => 'haml', 'name' => 'Haml', 'file' => 'prism-haml', 'require' => 'ruby', 'in_popup' => 1],\n 48 => ['id' => 'handlebars', 'name' => 'Handlebars', 'file' => 'prism-handlebars', 'require' => 'markup', 'in_popup' => 1],\n 49 => ['id' => 'haskell', 'name' => 'Haskell', 'file' => 'prism-haskell', 'require' => '', 'in_popup' => 1],\n 50 => ['id' => 'haxe', 'name' => 'Haxe', 'file' => 'prism-haxe', 'require' => 'clike', 'in_popup' => 1],\n 51 => ['id' => 'http', 'name' => 'HTTP', 'file' => 'prism-http', 'require' => '', 'in_popup' => 1],\n 52 => ['id' => 'icon', 'name' => 'Icon', 'file' => 'prism-icon', 'require' => '', 'in_popup' => 1],\n 53 => ['id' => 'inform7', 'name' => 'Inform 7', 'file' => 'prism-inform7', 'require' => '', 'in_popup' => 1],\n 54 => ['id' => 'ini', 'name' => 'Ini', 'file' => 'prism-ini', 'require' => '', 'in_popup' => 1],\n 55 => ['id' => 'j', 'name' => 'J', 'file' => 'prism-j', 'require' => '', 'in_popup' => 1],\n 56 => ['id' => 'jade', 'name' => 'Jade', 'file' => 'prism-jade', 'require' => 'javascript', 'in_popup' => 1],\n 57 => ['id' => 'java', 'name' => 'Java', 'file' => 'prism-java', 'require' => 'clike', 'in_popup' => 1],\n 58 => ['id' => 'jolie', 'name' => 'Jolie', 'file' => 'prism-jolie', 'require' => 'clike', 'in_popup' => 1],\n 59 => ['id' => 'json', 'name' => 'JSON', 'file' => 'prism-json', 'require' => '', 'in_popup' => 1],\n 60 => ['id' => 'julia', 'name' => 'Julia', 'file' => 'prism-julia', 'require' => '', 'in_popup' => 1],\n 61 => ['id' => 'keyman', 'name' => 'Keyman', 'file' => 'prism-keyman', 'require' => '', 'in_popup' => 1],\n 62 => ['id' => 'kotlin', 'name' => 'Kotlin', 'file' => 'prism-kotlin', 'require' => 'clike', 'in_popup' => 1],\n 63 => ['id' => 'latex', 'name' => 'LaTex', 'file' => 'prism-latex', 'require' => '', 'in_popup' => 1],\n 64 => ['id' => 'less', 'name' => 'Less', 'file' => 'prism-less', 'require' => 'css', 'in_popup' => 1],\n 65 => ['id' => 'livescript', 'name' => 'LiveScript', 'file' => 'prism-livescript', 'require' => '', 'in_popup' => 1],\n 66 => ['id' => 'lolcode', 'name' => 'LOLCODE', 'file' => 'prism-lolcode', 'require' => '', 'in_popup' => 1],\n 67 => ['id' => 'lua', 'name' => 'Lua', 'file' => 'prism-lua', 'require' => '', 'in_popup' => 1],\n 68 => ['id' => 'makefile', 'name' => 'Makefile', 'file' => 'prism-makefile', 'require' => '', 'in_popup' => 1],\n 69 => ['id' => 'markdown', 'name' => 'Markdown', 'file' => 'prism-markdown', 'require' => 'markup', 'in_popup' => 1],\n 70 => ['id' => 'matlab', 'name' => 'MATLAB', 'file' => 'prism-matlab', 'require' => '', 'in_popup' => 1],\n 71 => ['id' => 'mel', 'name' => 'MEL', 'file' => 'prism-mel', 'require' => '', 'in_popup' => 1],\n 72 => ['id' => 'mizar', 'name' => 'Mizar', 'file' => 'prism-mizar', 'require' => '', 'in_popup' => 1],\n 73 => ['id' => 'monkey', 'name' => 'Monkey', 'file' => 'prism-monkey', 'require' => '', 'in_popup' => 1],\n 74 => ['id' => 'nasm', 'name' => 'NASM', 'file' => 'prism-nasm', 'require' => '', 'in_popup' => 1],\n 75 => ['id' => 'nginx', 'name' => 'nginx', 'file' => 'prism-nginx', 'require' => 'clike', 'in_popup' => 1],\n 76 => ['id' => 'nim', 'name' => 'Nim', 'file' => 'prism-nim', 'require' => '', 'in_popup' => 1],\n 77 => ['id' => 'nix', 'name' => 'Nix', 'file' => 'prism-nix', 'require' => '', 'in_popup' => 1],\n 78 => ['id' => 'objectivec', 'name' => 'Objective-C', 'file' => 'prism-objectivec', 'require' => 'c', 'in_popup' => 1],\n 79 => ['id' => 'ocaml', 'name' => 'OCaml', 'file' => 'prism-ocaml', 'require' => '', 'in_popup' => 1],\n 80 => ['id' => 'oz', 'name' => 'Oz', 'file' => 'prism-oz', 'require' => '', 'in_popup' => 1],\n 81 => ['id' => 'parigp', 'name' => 'PARI/GP', 'file' => 'prism-parigp', 'require' => '', 'in_popup' => 1],\n 82 => ['id' => 'parser', 'name' => 'Parser', 'file' => 'prism-parser', 'require' => 'markup', 'in_popup' => 1],\n 83 => ['id' => 'pascal', 'name' => 'Pascal', 'file' => 'prism-pascal', 'require' => '', 'in_popup' => 1],\n 84 => ['id' => 'perl', 'name' => 'Perl', 'file' => 'prism-perl', 'require' => '', 'in_popup' => 1],\n 85 => ['id' => 'powershell', 'name' => 'PowerShell', 'file' => 'prism-powershell', 'require' => '', 'in_popup' => 1],\n 86 => ['id' => 'processing', 'name' => 'Processing', 'file' => 'prism-processing', 'require' => 'clike', 'in_popup' => 1],\n 87 => ['id' => 'prolog', 'name' => 'Prolog', 'file' => 'prism-prolog', 'require' => '', 'in_popup' => 1],\n 88 => ['id' => 'properties', 'name' => '.properties', 'file' => 'prism-properties', 'require' => '', 'in_popup' => 1],\n 89 => ['id' => 'protobuf', 'name' => 'Protocol Buffers', 'file' => 'prism-protobuf', 'require' => 'clike', 'in_popup' => 1],\n 90 => ['id' => 'puppet', 'name' => 'Puppet', 'file' => 'prism-puppet', 'require' => '', 'in_popup' => 1],\n 91 => ['id' => 'pure', 'name' => 'Pure', 'file' => 'prism-pure', 'require' => '', 'in_popup' => 1],\n 92 => ['id' => 'python', 'name' => 'Python', 'file' => 'prism-python', 'require' => '', 'in_popup' => 1],\n 93 => ['id' => 'q', 'name' => 'Q', 'file' => 'prism-q', 'require' => '', 'in_popup' => 1],\n 94 => ['id' => 'qore', 'name' => 'Qore', 'file' => 'prism-qore', 'require' => 'clike', 'in_popup' => 1],\n 95 => ['id' => 'r', 'name' => 'R', 'file' => 'prism-r', 'require' => '', 'in_popup' => 1],\n 96 => ['id' => 'jsx', 'name' => 'React JSX', 'file' => 'prism-jsx', 'require' => 'markup', 'in_popup' => 1],\n 97 => ['id' => 'reason', 'name' => 'Reason', 'file' => 'prism-reason', 'require' => 'clike', 'in_popup' => 1],\n 98 => ['id' => 'rest', 'name' => 'reST (reStructuredText)', 'file' => 'prism-rest', 'require' => '', 'in_popup' => 1],\n 99 => ['id' => 'rip', 'name' => 'Rip', 'file' => 'prism-rip', 'require' => '', 'in_popup' => 1],\n 100 => ['id' => 'roboconf', 'name' => 'Roboconf', 'file' => 'prism-roboconf', 'require' => '', 'in_popup' => 1],\n 101 => ['id' => 'rust', 'name' => 'Rust', 'file' => 'prism-rust', 'require' => '', 'in_popup' => 1],\n 102 => ['id' => 'sas', 'name' => 'SAS', 'file' => 'prism-sas', 'require' => '', 'in_popup' => 1],\n 103 => ['id' => 'sass', 'name' => 'Sass (Sass)', 'file' => 'prism-sass', 'require' => 'css', 'in_popup' => 1],\n 104 => ['id' => 'scss', 'name' => 'Sass (Scss)', 'file' => 'prism-scss', 'require' => 'css', 'in_popup' => 1],\n 105 => ['id' => 'scala', 'name' => 'Scala', 'file' => 'prism-scala', 'require' => 'clike', 'in_popup' => 1],\n 106 => ['id' => 'scheme', 'name' => 'Scheme', 'file' => 'prism-scheme', 'require' => '', 'in_popup' => 1],\n 107 => ['id' => 'smalltalk', 'name' => 'Smalltalk', 'file' => 'prism-smalltalk', 'require' => '', 'in_popup' => 1],\n 108 => ['id' => 'smarty', 'name' => 'Smarty', 'file' => 'prism-smarty', 'require' => 'markup', 'in_popup' => 1],\n 109 => ['id' => 'stylus', 'name' => 'Stylus', 'file' => 'prism-stylus', 'require' => '', 'in_popup' => 1],\n 110 => ['id' => 'swift', 'name' => 'Swift', 'file' => 'prism-swift', 'require' => 'clike', 'in_popup' => 1],\n 111 => ['id' => 'tcl', 'name' => 'Tcl', 'file' => 'prism-tcl', 'require' => '', 'in_popup' => 1],\n 112 => ['id' => 'textile', 'name' => 'Textile', 'file' => 'prism-textile', 'require' => 'markup', 'in_popup' => 1],\n 113 => ['id' => 'twig', 'name' => 'Twig', 'file' => 'prism-twig', 'require' => 'markup', 'in_popup' => 1],\n 114 => ['id' => 'typescript', 'name' => 'TypeScript', 'file' => 'prism-typescript', 'require' => 'javascript', 'in_popup' => 1],\n 115 => ['id' => 'verilog', 'name' => 'Verilog', 'file' => 'prism-verilog', 'require' => '', 'in_popup' => 1],\n 116 => ['id' => 'vhdl', 'name' => 'VHDL', 'file' => 'prism-vhdl', 'require' => '', 'in_popup' => 1],\n 117 => ['id' => 'vim', 'name' => 'vim', 'file' => 'prism-vim', 'require' => '', 'in_popup' => 1],\n 118 => ['id' => 'wiki', 'name' => 'Wiki markup', 'file' => 'prism-wiki', 'require' => 'markup', 'in_popup' => 1],\n 119 => ['id' => 'xojo', 'name' => 'Xojo (REALbasic)', 'file' => 'prism-xojo', 'require' => '', 'in_popup' => 1],\n 120 => ['id' => 'yaml', 'name' => 'YAML', 'file' => 'prism-yaml', 'require' => '', 'in_popup' => 1],\n\n ];\n }", "function abl_droploader_get_localisation() {\n\t\t$l10n = array(\n\t\t\t'open' => '',\n\t\t\t'open_title' => '',\n\t\t\t'close' => '',\n\t\t\t'close_title' => '',\n\t\t\t'error_method' => '',\n\t\t\t'info_text' => '',\n\t\t\t'err_invalid_filetype' => '',\n\t\t\t'err_browser_not_supported' => '',\n\t\t\t'err_too_many_files' => '',\n\t\t\t'err_file_too_large' => '',\n\t\t\t'all_files_uploaded' => '',\n\t\t\t'no_files_uploaded' => '',\n\t\t\t'some_files_uploaded' => '',\n\t\t);\n\t\tforeach ($l10n as $k => $v) {\n\t\t\t$l10n[$k] = gTxt('abl_droploader_' . $k);\n\t\t}\n\t\treturn $l10n;\n\t}", "public function getAvailableLanguages() {}", "public static function getCodeName(){\n\n $langArray = [];\n\n foreach (self::where('status', 1)->select('code','name')->get() as $lang){\n $langArray[$lang->code] = $lang->name;\n }\n\n return $langArray;\n }", "private function returnLanguageFileArray($lang, $isFrontend = true)\n\t{\n\t\tif($isFrontend)\n\t\t{\n\t\t\t$dir = $this->langFolderFrontEnd . $lang;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$dir = $this->langFolderBackEnd . $lang;\n\t\t}\n\t\t\n\t\t$files = array();\n\t\t//truy van de lay xml file\n\t\tif($dh = opendir($dir))\n\t\t{\n\t\t\twhile(($file = readdir($dh)) !== false)\n\t\t\t{\n\t\t\t\tif(strtolower(substr($file,-3)) == 'xml')\n\t\t\t\t{\n\t\t\t\t\t$files[] = $file;\t\n\t\t\t\t}\n\t\t\t}\n\t\t\t//sort lang files as alphabetical\n\t\t\tsort($files);\n\t\t}\n\t\t\n\t\treturn $files;\n\t}", "public function languages()\n\t{\n\n // We prepare our array of languages codes\n $languages = $this->languages;\n\n // If any arguments are passed to this method\n if ( ! empty($args = func_get_args())) {\n\n\n // Prepare an empty array and fill it after\n $_languages = array();\n\n // Make sure $args is not a multidimensional array\n isset($args[0]) && is_array($args[0]) && $args = $args[0];\n\n // We walk through languages codes and fill our array\n foreach ($languages as $key => $value) {\n \n // We start by assigning the key with an empty value\n $_languages[$key] = array();\n // We walk through passed arguments\n foreach ($args as $arg) {\n\n \tif (isset($value[$arg])) {\n \t\t$_languages[$key][$arg] = $value[$arg];\n \t}\n }\n }\n\n // replace our $languages array with $_languages\n $languages = $_languages;\n unset($_languages);\n }\n\n return $languages;\n\t}", "public function generateLanguages()\n {\n $files = FileLibrary::get();\n $fLang = Lang::getFallback();\n\n foreach ($files as $file) {\n foreach (Lang::allLocales() as $lang => $langName) {\n if (!isset($file->languages[$lang])) {\n $language = array_except($file->languages[$fLang]->toArray(), 'lang_id');\n $language['lang'] = $lang;\n $language = FileLibraryLanguage::create($language);\n echo '- File ID: ' . $language->file_id . ', Lang: ' . $language->lang . '<br>';\n }\n }\n }\n }", "function languages()\n\t{\n\t\t$this->ipsclass->input['step']++;\n\t\t$uninstall = ( $this->ipsclass->input['un'] == 1 ) ? \"&amp;un=1\" : \"\";\n\t\t\n\t\t$object = ( $this->tasks['languages'] == 1 ) ? 'Language String' : 'Language Strings';\n\t\t$operation = ( $this->ipsclass->input['un'] ) ? 'removed' : 'created';\n\t\t\n\t\t$api = $this->ipsclass->load_class( IPS_API_PATH.'/api_language.php', 'api_language' );\n\t\t$api->path_to_ipb = ROOT_PATH;\n\t\t$api->api_init();\n\t\t\n\t\tforeach ( $this->xml_array['languages_group']['language'] as $k => $v )\n\t\t{\n\t\t\tif ( !$this->ipsclass->input['un'] )\n\t\t\t{\n\t\t\t\t$api->lang_add_strings( array( $v['key']['VALUE'] => $v['text']['VALUE'] ), $v['file']['VALUE'] );\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tforeach ( $this->ipsclass->cache['languages'] as $kk => $vv )\n\t\t\t\t{\n\t\t\t\t\t$lang = array();\n\t\t\t\t\trequire( CACHE_PATH.'cache/lang_cache/'.$vv['ldir'].'/'.$v['file']['VALUE'].'.php' );\n\t\t\t\t\t\n\t\t\t\t\tunset( $lang[ $v['key']['VALUE'] ] );\n\t\t\t\t\t\n\t\t\t\t\t$start = \"<?php\\n\\n\".'$lang = array('.\"\\n\";\n\t\t\t\t\t\n\t\t\t\t\tforeach ( $lang as $kkk => $vvv )\n\t\t\t\t\t{\n\t\t\t\t\t\t$vvv = preg_replace( \"/\\n{1,}$/\", \"\", $vvv );\n\t\t\t\t\t\t$vvv \t= stripslashes( $vvv );\n\t\t\t\t\t\t$vvv\t= preg_replace( '/\"/', '\\\\\"', $vvv );\n\t\t\t\t\t\t$start .= \"\\n'\".$kkk.\"' => \\\"\".$vvv.\"\\\",\";\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t$start .= \"\\n\\n);\\n\\n?\".\">\";\n\t\t\t\t\t\n\t\t\t\t\tif ( $fh = @fopen( CACHE_PATH.'cache/lang_cache/'.$vv['ldir'].'/'.$v['file']['VALUE'].'.php', 'w' ) )\n\t\t\t\t\t{\n\t\t\t\t\t\t@fwrite( $fh, $start );\n\t\t\t\t\t\t@fclose( $fh );\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tunset( $lang, $start, $fh );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t$this->ipsclass->admin->redirect( \"{$this->ipsclass->form_code}&amp;code=work&amp;mod={$this->ipsclass->input['mod']}&amp;step={$this->ipsclass->input['step']}{$uninstall}&amp;st={$this->ipsclass->input['st']}\", \"{$this->xml_array['mod_info']['title']['VALUE']}<br />{$this->tasks['languages']} {$object} {$operation}....\" );\n\t}", "function getLanguageFiles() {\n $directory = \"models/languages/\";\n $languages = glob($directory . \"*.php\");\n //print each file name\n return $languages;\n}", "public function getLanguages() : array\n {\n return $this->languages;\n }", "public function getLanguagesNames(): array\n {\n $resultSet = array();\n foreach ($this as $language) {\n $resultSet[] = $language->getId();\n }\n return $resultSet;\n }", "function languages()\n {\n $defaults = array('en');\n $langs = array();\n\n // get aspell dictionaries\n exec('aspell dump dicts', $dicts);\n if (!empty($dicts)) {\n $seen = array();\n foreach ($dicts as $lang) {\n $lang = preg_replace('/-.*$/', '', $lang);\n $langc = strlen($lang) == 2 ? $lang.'_'.strtoupper($lang) : $lang;\n if (!$seen[$langc]++)\n $langs[] = $lang;\n }\n $langs = array_unique($langs);\n }\n else {\n $langs = $defaults;\n }\n\n return $langs;\n }", "public function getAvailableLanguages()\n\t{\n\t\t$languages = array();\n\t\tif($handle = opendir($this->_translations_path))\n\t\t{\n\t\t\twhile(false !== ($file = readdir($handle)))\n\t\t\t{\n\t\t\t\tif($file == '.' || $file == '..' || $file == 'CVS' || $file == 'cvs') continue;\n\t\t\t\tarray_push($languages, $file);\n\t\t\t}\n\t\t}\n\t\treturn $languages;\n\t}", "public function getLanguages () {\n\t\treturn $this->cachedObjects;\n\t}", "protected function defaultLocalizations()\n {\n $t = $this->translator();\n\n return [\n 'volume_default' => $t->translation('filesystem.volume.default'),\n 'volume_library' => $t->translation('filesystem.volume.library'),\n 'volume_storage' => $t->translation('filesystem.volume.storage'),\n 'volume_uploads' => $t->translation('filesystem.volume.uploads'),\n 'volume_public' => $t->translation('filesystem.volume.public'),\n 'volume_private' => $t->translation('filesystem.volume.private'),\n ];\n }", "public function languages()\n {\n if (!$this->lang) {\n $this->lang = array();\n foreach (monsterToLanguage::select('language')->where('mid', $this->id)->get() as $l) {\n $this->lang[] = $l->language;\n }\n }\n return $this->lang;\n }", "private function phpTranslations(string $locale): array\n {\n $path = lang_path($locale);\n\n return collect(File::allFiles($path))->mapWithKeys(function (\\SplFileInfo $file) use ($locale) {\n $key = str($file->getPathname())->replace([lang_path(), $locale, '.php'], '')->substr(2)->toString();\n $keyPath = explode('/', $key);\n $keyPath = array_reverse($keyPath);\n return [\n str($key)->replace('/', '.')->toString() => trans($key, [], $locale)\n ];\n })->undot()->toArray();\n }", "public function getLanguagePaths($scope = '')\n {\n $paths = array();\n\n //-- This is NOT an error but a strange J! behavior....\n //-- Language files for plugins always \"live\" in the \"administrator\" section.\n $paths['admin'] = JPATH_ADMINISTRATOR;\n $paths['sys'] = JPATH_ADMINISTRATOR;\n\n return $paths;\n }", "private function getAllLangs()\n\t{\n\t\t$options = array();\n\t\t$sql = \"SELECT * FROM \" . $this->db->prefix . \"site_languages WHERE is_online = 1\";\n\t\t$result = $this->db->query($sql);\n\t\t$available_languages = array();\n\t\twhile($row = $this->db->fetchToRow($result)){\n\t\t\t$available_languages[] = $row[ 'lang' ];\n\t\t\t$options[ $row[ 'lang' ] ][ 'lang' ] = $row[ 'lang' ];\n\t\t\t$options[ $row[ 'lang' ] ][ 'language' ] = ucfirst($row[ 'language' ]);\n\t\t}\n\t\t$this->language_options = $options;\n\n\t\treturn $available_languages;\n\t}", "protected function paths()\n {\n return [\n base_path('lit/resources/lang/'),\n ];\n }", "public function getAllTranslationByLanguage();", "public function getAppletLanguages()\n\t{\n\t\t$getParams = [\n\t\t\t\t'system' => 'LanguageFiles',\n\t\t\t\t'action' => 'getAppletLanguages'\n\t\t\t];\n\t\t$postParams = ['applet' => $this->applet];\n\t\t\n\n\t\ttry {\n\t\t\t$result = $this->apiService->getResult($getParams, $postParams, new ResultCheck);\t\n\t\t\treturn $result['data'];\n\t\t}\n\t\tcatch (\\Exception $e) {\n\t\t\tthrow new \\Exception('Getting languages for applet (' . $this->applet . ') was unsuccessful ' . $e->getMessage());\n\t\t}\n\n\t\t\n\t}", "protected function getPreviewLanguages() {}", "function lang_options_for_select($blank = true) {\n\t\t$list = array();\n\t\tforeach (glob(APP . 'Locale/*') as $dir) {\n\t\t\t$path = explode('/', $dir);\n\t\t\t$lang = end($path);\n\t\t\tif ($lang == 'default.pot') {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t$list[$lang] = $this->get_lang_label($lang);\n\t\t}\n\t\treturn $list;\n\t}", "function getTrans($locale = true) {\n\t$dir = Storage::directories('config/translate');\n\t$return = null;\n\t$langs = [];\n\tforeach ($dir as $val) {\n\t\t$langs[substr($val, -2)] = Storage::allFiles('config/translate/'.substr($val, -2));\n\t}\n\n\tforeach ($langs as $lang_k => $lang) {\n\t\tforeach ($lang as $j => $value) {\n\t\t\t$key = 'config/translate/'.substr($lang_k, -2);\n\t\t\t$key = explode($key, $value)[1];\n\t\t\t$key = implode('.', explode('/', substr(substr($key, 0, -5), 1)));\n\n\t\t\t$data = trim(Storage::get($value));\n\t\t\t$data = json_decode($data, true);\n\t\t\t$data = array_dot($data);\n\n\t\t\t$langs[$lang_k][$key] = $data;\n\t\t\tunset($langs[$lang_k][$j]);\n\t\t}\n\t}\n\n\tif (!$locale) {\n\t\t$return = array_dot($langs);\n\t} else {\n\t\tif (is_bool($locale)) {\n\t\t\t$return = array_dot($langs[getLang()]);\n\t\t} else {\n\t\t\t$return = array_dot($langs[$locale]);\n\t\t}\n\t}\n\n\treturn json_encode(array_dot($return));\n}", "function getDictionary ()\n\t{\n\t\t$dictionary = array ();\n\t\tinclude ('framework/i18n/dictionary_en.php');\n\t\t$file = 'framework/i18n/dictionary_'.$_SESSION['brimLanguage'].'.php';\n\t\tif (file_exists ($file))\n\t\t{\n\t\t\tinclude ($file);\n\t\t}\n\t\treturn $dictionary;\n\t}", "function get_localization($language_name)\n {\n return $this->db->get_where('localization',array('language_name'=>$language_name))->row_array();\n }", "public static function languagesForAdmin()\n {\n $copies = Copy::serverTranslations();\n\n $languages = self::languages();\n\n foreach (LANGUAGES as $key => $value) {\n $localized[] = [\n 'key' => $key,\n 'value' => $copies[$value] ?? $value,\n 'checked' => \\in_array($key, $languages, true),\n ];\n }\n\n return $localized ?? null;\n }", "public function getLanguages() {\n\t\treturn $this->_getResponse(self::URL_LANGUAGES);\n\t}", "public static function getArrayTranslations() {\n return array(\n\n 'mot' => 'mot', 'secondmot' => 'second mot', 'bienvenue' => 'bienvenue'\n\n );\n\n }", "function GetModuleLangContent($content_name, $lang_path = \"\") {\n\tglobal $config;\n\t$lang_path = ($lang_path) ? $lang_path : $config[\"lang_path\"];\n\t$lang_content = array();\n\tif (file_exists($config[\"site_path\"].$lang_path.$content_name.\".xml\")) {\t\t\n\t\t$xml_parser = new SimpleXmlParser( $config[\"site_path\"].$lang_path.$content_name.\".xml\" );\n\t\t$xml_root = $xml_parser->getRoot();\n\t\tforeach ( $xml_root->children as $cnt => $node ) {\n\t\t\t\n\t\t\t$lang_content[$node->attrs[\"name\"]][\"value\"] = $node->value;\t\t\t\n\t\t\tif (isset($node->attrs[\"file\"]) && !empty($node->attrs[\"file\"])) {\n\t\t\t\t$lang_content[$node->attrs[\"name\"]][\"file\"] = $node->attrs[\"file\"];\t\n\t\t\t}\t\t\t\n\t\t}\n\t}\n\treturn $lang_content;\n}" ]
[ "0.75534004", "0.75235707", "0.7459635", "0.72997355", "0.72755337", "0.72633004", "0.72161657", "0.7177861", "0.7131085", "0.7126454", "0.70523757", "0.7050115", "0.7027295", "0.6975702", "0.69375277", "0.68821794", "0.6879385", "0.687918", "0.6861782", "0.6853253", "0.6841318", "0.67720944", "0.67660767", "0.6762486", "0.6753983", "0.67522496", "0.6729068", "0.67274845", "0.671108", "0.6698779", "0.669129", "0.6676685", "0.6673452", "0.6671054", "0.6657868", "0.6650862", "0.66458195", "0.6642058", "0.6633425", "0.663018", "0.6624547", "0.6592993", "0.6582726", "0.6572363", "0.6536928", "0.65280104", "0.6524175", "0.65166146", "0.65087765", "0.6492784", "0.6485509", "0.6484105", "0.6481359", "0.6480818", "0.64791775", "0.6478088", "0.646442", "0.64390236", "0.64352155", "0.64310277", "0.64246225", "0.6421736", "0.64208007", "0.6405787", "0.6405717", "0.6401007", "0.63855785", "0.63819706", "0.6363528", "0.63412464", "0.633975", "0.6336732", "0.6334746", "0.6333606", "0.6316894", "0.630856", "0.6308341", "0.6306294", "0.6304115", "0.63017243", "0.6301524", "0.6298712", "0.6292488", "0.6285948", "0.62819153", "0.62780213", "0.62756044", "0.6272828", "0.62560356", "0.62551546", "0.6255134", "0.6250626", "0.62487316", "0.6244889", "0.62319726", "0.6222055", "0.621923", "0.62172776", "0.6212487", "0.6210903" ]
0.71492016
8
Get the translations array and save it to DB
public function saveLanguageValueToDB( string $group = "crud", string $lang = "en", array $keys = [], array $array = [] ): void { foreach ($array as $key => $item) { $keysForDB = $keys; $keysForDB[] = $key; if (is_array($item)) { $this->saveLanguageValueToDB($group, $lang, $keysForDB, $item); } else { $translationsArray[$lang] = $item; $keyString = implode(".", $keysForDB); $languageLine = $this->getRepository()->findByGroupAndKey($group, $keyString); if (!$languageLine) { $this->getRepository()->create([ 'group' => $group, 'key' => $keyString, 'text' => $translationsArray, ]); } else { $text = array_merge($translationsArray, $languageLine->text); $this->getRepository()->update( $languageLine->id, [ 'text' => $text ] ); } } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function saveTranslations()\n {\n /** @var ActiveRecord $translationModel */\n $translationModel = new $this->translationModelClass();\n\n $data = \\Yii::$app->request->post($translationModel->formName());\n\n if (empty($data)) return;\n\n foreach ($data as $lang => $record) {\n $translation = $this->getTranslationModel($lang);\n $translation->setAttributes(ArrayHelper::merge($record, [\n $this->translationModelRelationColumn => $this->owner->getPrimaryKey(),\n $this->translationModelLangColumn => $lang,\n ]));\n\n if (!$translation->save()) {\n Toastr::warning(\\Yii::t('admin', \"Перевод на {$lang} неполный, не сохранен\"));\n }\n }\n }", "protected function persistTranslations()\n\t{\n\t\tTranslation::patchTranslationsForModel($this, $this->getActiveLanguage(), $this->translatedAttributes);\n\t}", "function saveTranslations()\n {\n // default language set?\n if (!isset($_POST[\"default\"]))\n {\n ilUtil::sendFailure($this->lng->txt(\"msg_no_default_language\"));\n return $this->editTranslations(true);\n }\n\n // all languages set?\n if (array_key_exists(\"\",$_POST[\"lang\"]))\n {\n ilUtil::sendFailure($this->lng->txt(\"msg_no_language_selected\"));\n return $this->editTranslations(true);\n }\n\n // no single language is selected more than once?\n if (count(array_unique($_POST[\"lang\"])) < count($_POST[\"lang\"]))\n {\n ilUtil::sendFailure($this->lng->txt(\"msg_multi_language_selected\"));\n return $this->editTranslations(true);\n }\n\n // save the stuff\n $this->ilObjectOrgUnit->removeTranslations();\n foreach($_POST[\"title\"] as $k => $v)\n {\n // update object data if default\n $is_default = ($_POST[\"default\"] == $k);\n if($is_default)\n {\n $this->ilObjectOrgUnit->setTitle(ilUtil::stripSlashes($v));\n $this->ilObjectOrgUnit->setDescription(ilUtil::stripSlashes($_POST[\"desc\"][$k]));\n $this->ilObjectOrgUnit->update();\n }\n\n $this->ilObjectOrgUnit->addTranslation(\n ilUtil::stripSlashes($v),\n ilUtil::stripSlashes($_POST[\"desc\"][$k]),\n ilUtil::stripSlashes($_POST[\"lang\"][$k]),\n $is_default);\n }\n\n ilUtil::sendSuccess($this->lng->txt(\"msg_obj_modified\"), true);\n $this->ctrl->redirect($this, \"editTranslations\");\n }", "protected abstract function getTranslations();", "public static function setTranslations(array $array) {\n $settings = self::getSettings();\n $settings->translations = json_encode($array);\n $settings->save();\n }", "public function run()\n {\n \n\n \\DB::table('translations')->delete();\n \n \\DB::table('translations')->insert(array (\n 0 => \n array (\n 'id' => 1,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'auth',\n 'key' => 'failed',\n 'value' => 'These credentials do not match our records.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'These credentials do not match our records.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 1 => \n array (\n 'id' => 2,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'auth',\n 'key' => 'throttle',\n 'value' => 'Too many login attempts. Please try again in :seconds seconds.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Too many login attempts. Please try again in :seconds seconds.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 2 => \n array (\n 'id' => 3,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_basket',\n 'key' => 'contact_type',\n 'value' => 'Wie möchtest Du kontaktiert werden?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Wie möchtest Du kontaktiert werden?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 3 => \n array (\n 'id' => 4,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_basket',\n 'key' => 'contactmessage',\n 'value' => 'Per Nachricht',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Per Nachricht',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 4 => \n array (\n 'id' => 5,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_basket',\n 'key' => 'description',\n 'value' => 'Beschreibung',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Beschreibung',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 5 => \n array (\n 'id' => 6,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_basket',\n 'key' => 'fetchstate',\n 'value' => 'Hat alles gut geklappt?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Hat alles gut geklappt?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 6 => \n array (\n 'id' => 7,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_basket',\n 'key' => 'food_art',\n 'value' => 'Was trifft auf die Lebensmittel zu?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Was trifft auf die Lebensmittel zu?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 7 => \n array (\n 'id' => 8,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_basket',\n 'key' => 'food_type',\n 'value' => 'Welche Arten von Lebensmitteln sind dabei?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Welche Arten von Lebensmitteln sind dabei?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 8 => \n array (\n 'id' => 9,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_basket',\n 'key' => 'no_requests',\n 'value' => 'bisher keine Anfragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'bisher keine Anfragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 9 => \n array (\n 'id' => 10,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_basket',\n 'key' => 'one_request',\n 'value' => 'eine Anfrage',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'eine Anfrage',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 10 => \n array (\n 'id' => 11,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_basket',\n 'key' => 'picture-choose',\n 'value' => 'Datei wählen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Datei wählen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 11 => \n array (\n 'id' => 12,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_basket',\n 'key' => 'picture-desc',\n 'value' => 'Füge dem Essenskorb ein Foto hinzu',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Füge dem Essenskorb ein Foto hinzu',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 12 => \n array (\n 'id' => 13,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_basket',\n 'key' => 'req_count',\n 'value' => ':count Anfragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => ':count Anfragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 13 => \n array (\n 'id' => 14,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_basket',\n 'key' => 'tel',\n 'value' => 'Festnetztelefon',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Festnetztelefon',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 14 => \n array (\n 'id' => 15,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_basket',\n 'key' => 'weight',\n 'value' => 'geschätztes Gewicht',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'geschätztes Gewicht',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 15 => \n array (\n 'id' => 16,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bcard',\n 'key' => 'bcard_generator',\n 'value' => 'Visitenkarten Generator',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Visitenkarten Generator',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 16 => \n array (\n 'id' => 17,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bcard',\n 'key' => 'bcard_generator_desc',\n 'value' => 'Hier kannst Du Dir Deine persönlichen Visitenkarten erstellen.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Hier kannst Du Dir Deine persönlichen Visitenkarten erstellen.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 17 => \n array (\n 'id' => 18,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bcard',\n 'key' => 'bot_for',\n 'value' => 'Botschafter für :var',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Botschafter für :var',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 18 => \n array (\n 'id' => 19,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bcard',\n 'key' => 'bot_for_w',\n 'value' => 'Botschafterin für :var',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Botschafterin für :var',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 19 => \n array (\n 'id' => 20,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bcard',\n 'key' => 'download_card',\n 'value' => 'Visitenkarten Herunterladen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Visitenkarten Herunterladen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 20 => \n array (\n 'id' => 21,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bcard',\n 'key' => 'fs_for',\n 'value' => 'Foodsaver für :var',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Foodsaver für :var',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 21 => \n array (\n 'id' => 22,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bcard',\n 'key' => 'fs_for_w',\n 'value' => 'Foodsaverin für :var',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Foodsaverin für :var',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 22 => \n array (\n 'id' => 23,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bcard',\n 'key' => 'generation_success',\n 'value' => 'Visitenkarten erfolgreich generiert',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Visitenkarten erfolgreich generiert',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 23 => \n array (\n 'id' => 24,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bcard',\n 'key' => 'opt',\n 'value' => 'Optionen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Optionen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 24 => \n array (\n 'id' => 25,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bcard',\n 'key' => 'opt_desc',\n 'value' => 'Wähle hier für welchen Bezirk bzw. für welche Rolle Du Deine Visitenkarte erstellen möchtest.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Wähle hier für welchen Bezirk bzw. für welche Rolle Du Deine Visitenkarte erstellen möchtest.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 25 => \n array (\n 'id' => 26,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bcard',\n 'key' => 'should_choose_option',\n 'value' => 'Du musst eine Option wählen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Du musst eine Option wählen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 26 => \n array (\n 'id' => 27,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bell',\n 'key' => 'betrieb_fetch',\n 'value' => ':count Unbestätigte Abholzeiten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => ':count Unbestätigte Abholzeiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 27 => \n array (\n 'id' => 28,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bell',\n 'key' => 'betrieb_fetch_title',\n 'value' => ':betrieb',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => ':betrieb',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 28 => \n array (\n 'id' => 29,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bell',\n 'key' => 'blog_new_check',\n 'value' => ':title',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => ':title',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 29 => \n array (\n 'id' => 30,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bell',\n 'key' => 'blog_new_check_title',\n 'value' => 'Neuer Blog Artikel',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Neuer Blog Artikel',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 30 => \n array (\n 'id' => 31,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bell',\n 'key' => 'buddy_request',\n 'value' => ':name kennt Dich!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => ':name kennt Dich!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 31 => \n array (\n 'id' => 32,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bell',\n 'key' => 'buddy_request_title',\n 'value' => 'Kennst Du :name?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Kennst Du :name?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 32 => \n array (\n 'id' => 33,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bell',\n 'key' => 'forum_answer',\n 'value' => ':user hat Dir geantwortet',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => ':user hat Dir geantwortet',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 33 => \n array (\n 'id' => 34,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bell',\n 'key' => 'forum_answer_title',\n 'value' => ':forum',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => ':forum',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 34 => \n array (\n 'id' => 35,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bell',\n 'key' => 'fs_sleepmode',\n 'value' => ':name :nachname ist jetzt inaktiv',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => ':name :nachname ist jetzt inaktiv',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 35 => \n array (\n 'id' => 36,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bell',\n 'key' => 'fs_sleepmode_title',\n 'value' => 'Neue Schlafmütze',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Neue Schlafmütze',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 36 => \n array (\n 'id' => 37,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bell',\n 'key' => 'ft_update',\n 'value' => ':teaser',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => ':teaser',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 37 => \n array (\n 'id' => 38,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bell',\n 'key' => 'ft_update_title',\n 'value' => ':name',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => ':name',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 38 => \n array (\n 'id' => 39,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bell',\n 'key' => 'new_foodsaver',\n 'value' => 'Braucht Einführungsabholungen.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Braucht Einführungsabholungen.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 39 => \n array (\n 'id' => 40,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bell',\n 'key' => 'new_foodsaver_title',\n 'value' => ':name neu in :bezirk',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => ':name neu in :bezirk',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 40 => \n array (\n 'id' => 41,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bell',\n 'key' => 'new_foodsaver_verified',\n 'value' => 'Ist schon verifiziert, kann loslegen!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Ist schon verifiziert, kann loslegen!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 41 => \n array (\n 'id' => 42,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bell',\n 'key' => 'new_quiz_comment',\n 'value' => ':comment',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => ':comment',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 42 => \n array (\n 'id' => 43,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bell',\n 'key' => 'new_quiz_comment_title',\n 'value' => 'Neuer Quiz-Kommentar',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Neuer Quiz-Kommentar',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 43 => \n array (\n 'id' => 44,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bell',\n 'key' => 'no_bells',\n 'value' => 'Keine Benachrichtigungen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Keine Benachrichtigungen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 44 => \n array (\n 'id' => 45,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bell',\n 'key' => 'passgen_failed',\n 'value' => 'Bitte lade ein Foto, dann wirds klappen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Bitte lade ein Foto, dann wirds klappen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 45 => \n array (\n 'id' => 46,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bell',\n 'key' => 'passgen_failed_title',\n 'value' => 'Dein Ausweis konnte nicht erstellt werden',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Dein Ausweis konnte nicht erstellt werden',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 46 => \n array (\n 'id' => 47,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bell',\n 'key' => 'sharepoint_activate',\n 'value' => ':name wurde eingetragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => ':name wurde eingetragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 47 => \n array (\n 'id' => 48,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bell',\n 'key' => 'sharepoint_activate_title',\n 'value' => 'Neuer Fair-Teiler in :bezirk',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Neuer Fair-Teiler in :bezirk',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 48 => \n array (\n 'id' => 49,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bell',\n 'key' => 'store_cr_times',\n 'value' => 'Abholzeiten haben sich geändert',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Abholzeiten haben sich geändert',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 49 => \n array (\n 'id' => 50,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bell',\n 'key' => 'store_cr_times_title',\n 'value' => ':name',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => ':name',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 50 => \n array (\n 'id' => 51,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bell',\n 'key' => 'store_new',\n 'value' => ':name wurde eingetragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => ':name wurde eingetragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 51 => \n array (\n 'id' => 52,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bell',\n 'key' => 'store_new_request',\n 'value' => 'Anfrage für :name',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Anfrage für :name',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 52 => \n array (\n 'id' => 53,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bell',\n 'key' => 'store_new_request_title',\n 'value' => 'Neue Teamanfrage',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Neue Teamanfrage',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 53 => \n array (\n 'id' => 54,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bell',\n 'key' => 'store_new_title',\n 'value' => 'Neuer Betrieb',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Neuer Betrieb',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 54 => \n array (\n 'id' => 55,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bell',\n 'key' => 'store_request_accept',\n 'value' => 'Du wurdest in das Team aufgenommen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Du wurdest in das Team aufgenommen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 55 => \n array (\n 'id' => 56,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bell',\n 'key' => 'store_request_accept_title',\n 'value' => ':name',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => ':name',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 56 => \n array (\n 'id' => 57,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bell',\n 'key' => 'store_request_accept_wait',\n 'value' => 'Du bist nun auf der Springer- / Warteliste!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Du bist nun auf der Springer- / Warteliste!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 57 => \n array (\n 'id' => 58,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bell',\n 'key' => 'store_request_accept_wait_title',\n 'value' => ':name',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => ':name',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 58 => \n array (\n 'id' => 59,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bell',\n 'key' => 'store_request_deny',\n 'value' => 'Das Team ist leider schon zu voll!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Das Team ist leider schon zu voll!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 59 => \n array (\n 'id' => 60,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bell',\n 'key' => 'store_request_deny_title',\n 'value' => ':name',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => ':name',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 60 => \n array (\n 'id' => 61,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bell',\n 'key' => 'store_wallpost',\n 'value' => 'Neuen Eintrag auf der Pinnwand!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Neuen Eintrag auf der Pinnwand!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 61 => \n array (\n 'id' => 62,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bell',\n 'key' => 'store_wallpost_title',\n 'value' => ':name',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => ':name',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 62 => \n array (\n 'id' => 63,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_betrieb',\n 'key' => 'abholmenge',\n 'value' => 'Wie viel Kilo werden pro Abholung ungefähr mitgenommen?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Wie viel Kilo werden pro Abholung ungefähr mitgenommen?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 63 => \n array (\n 'id' => 64,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_betrieb',\n 'key' => 'accept_request',\n 'value' => ':var ist jetzt im Team',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => ':var ist jetzt im Team',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 64 => \n array (\n 'id' => 65,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_betrieb',\n 'key' => 'ansprechpartner',\n 'value' => 'Betriebsansprechpartner (Filialleiter etc.)',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Betriebsansprechpartner (Filialleiter etc.)',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 65 => \n array (\n 'id' => 66,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_betrieb',\n 'key' => 'begin',\n 'value' => 'Beginn der Kooperation',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Beginn der Kooperation',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 66 => \n array (\n 'id' => 67,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_betrieb',\n 'key' => 'besonderheiten',\n 'value' => 'Besonderheiten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Besonderheiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 67 => \n array (\n 'id' => 68,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_betrieb',\n 'key' => 'betrieb',\n 'value' => 'Betrieb',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Betrieb',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 68 => \n array (\n 'id' => 69,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_betrieb',\n 'key' => 'betrieb_add_success',\n 'value' => 'Lebensmittelspenderbetrieb wurde gespeichert',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Lebensmittelspenderbetrieb wurde gespeichert',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 69 => \n array (\n 'id' => 70,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_betrieb',\n 'key' => 'betrieb_added',\n 'value' => 'hat den Betrieb am :var eingetragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'hat den Betrieb am :var eingetragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 70 => \n array (\n 'id' => 71,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_betrieb',\n 'key' => 'betrieb_bread',\n 'value' => 'Spenderbetriebe',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Spenderbetriebe',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 71 => \n array (\n 'id' => 72,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_betrieb',\n 'key' => 'betrieb_edit_success',\n 'value' => 'Änderungen wurden gespeichert',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Änderungen wurden gespeichert',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 72 => \n array (\n 'id' => 73,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_betrieb',\n 'key' => 'betrieb_empty',\n 'value' => 'Bisher wurde kein Betrieb eingetragen.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Bisher wurde kein Betrieb eingetragen.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 73 => \n array (\n 'id' => 74,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_betrieb',\n 'key' => 'betrieb_kategorie_id',\n 'value' => 'Kategorie',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Kategorie',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 74 => \n array (\n 'id' => 75,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_betrieb',\n 'key' => 'betrieb_status_id',\n 'value' => 'Status',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Status',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 75 => \n array (\n 'id' => 76,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_betrieb',\n 'key' => 'bezirk_id',\n 'value' => 'Bezirk',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Bezirk',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 76 => \n array (\n 'id' => 77,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_betrieb',\n 'key' => 'bread_betrieb',\n 'value' => 'Alle Betriebe',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Alle Betriebe',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 77 => \n array (\n 'id' => 78,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_betrieb',\n 'key' => 'bread_edit_betrieb',\n 'value' => 'Betrieb bearbeiten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Betrieb bearbeiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 78 => \n array (\n 'id' => 79,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_betrieb',\n 'key' => 'bread_new_betrieb',\n 'value' => 'neuen Betrieb eintragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'neuen Betrieb eintragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 79 => \n array (\n 'id' => 80,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_betrieb',\n 'key' => 'delete_sure',\n 'value' => 'Soll :var wirklich unwideruflich gelöscht werden?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Soll :var wirklich unwideruflich gelöscht werden?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 80 => \n array (\n 'id' => 81,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_betrieb',\n 'key' => 'fax',\n 'value' => 'Fax',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Fax',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 81 => \n array (\n 'id' => 82,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_betrieb',\n 'key' => 'fetch_history',\n 'value' => 'Abholungshistorie',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Abholungshistorie',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 82 => \n array (\n 'id' => 83,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_betrieb',\n 'key' => 'fetchercount',\n 'value' => 'Anzahl der Abholer/innen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Anzahl der Abholer/innen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 83 => \n array (\n 'id' => 84,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_betrieb',\n 'key' => 'first_post',\n 'value' => 'Erster Pinnwandeintrag',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Erster Pinnwandeintrag',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 84 => \n array (\n 'id' => 85,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_betrieb',\n 'key' => 'foodsaver',\n 'value' => 'Verantwortliche Foodsaver',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Verantwortliche Foodsaver',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 85 => \n array (\n 'id' => 86,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_betrieb',\n 'key' => 'hsnr',\n 'value' => 'Hausnummer',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Hausnummer',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 86 => \n array (\n 'id' => 87,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_betrieb',\n 'key' => 'kette_id',\n 'value' => 'Betriebs-Kette',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Betriebs-Kette',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 87 => \n array (\n 'id' => 88,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_betrieb',\n 'key' => 'lebensmittel',\n 'value' => 'Welche Lebensmittel dürfen abgeholt werden?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Welche Lebensmittel dürfen abgeholt werden?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 88 => \n array (\n 'id' => 89,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_betrieb',\n 'key' => 'max_3_leader',\n 'value' => 'Es darf maximal 3 Verantwortliche für eine Filiale geben.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Es darf maximal 3 Verantwortliche für eine Filiale geben.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 89 => \n array (\n 'id' => 90,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_betrieb',\n 'key' => 'neu_betrieb',\n 'value' => 'Neuen Betrieb eintragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Neuen Betrieb eintragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 90 => \n array (\n 'id' => 91,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_betrieb',\n 'key' => 'no_member',\n 'value' => 'Du bist gar kein Mitglied in diesem Betrieb',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Du bist gar kein Mitglied in diesem Betrieb',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 91 => \n array (\n 'id' => 92,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_betrieb',\n 'key' => 'plz_id',\n 'value' => 'plz',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'plz',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 92 => \n array (\n 'id' => 93,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_betrieb',\n 'key' => 'position_search',\n 'value' => 'Adresssuche',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Adresssuche',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 93 => \n array (\n 'id' => 94,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_betrieb',\n 'key' => 'prefetchtime',\n 'value' => 'Wie viele Wochen im Voraus können sich Foodsaver eintragen?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Wie viele Wochen im Voraus können sich Foodsaver eintragen?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 94 => \n array (\n 'id' => 95,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_betrieb',\n 'key' => 'presse',\n 'value' => 'Ist der Betrieb/Laden/Verein bereit, bei der Presse und foodsharing.de genannt zu werden?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Ist der Betrieb/Laden/Verein bereit, bei der Presse und foodsharing.de genannt zu werden?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 95 => \n array (\n 'id' => 96,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_betrieb',\n 'key' => 'public_info',\n 'value' => 'Öffentliche Infos zum Betrieb',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Öffentliche Infos zum Betrieb',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 96 => \n array (\n 'id' => 97,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_betrieb',\n 'key' => 'public_time',\n 'value' => 'Ungefähre Tageszeit zum Abholen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Ungefähre Tageszeit zum Abholen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 97 => \n array (\n 'id' => 98,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_betrieb',\n 'key' => 'quiz_dropped',\n 'value' => ':var ist jetzt nicht mehr im Team',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => ':var ist jetzt nicht mehr im Team',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 98 => \n array (\n 'id' => 99,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_betrieb',\n 'key' => 'signout_error_admin',\n 'value' => 'Du bist verantwortlich für diesen Betrieb und kannst Dich nicht löschen!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Du bist verantwortlich für diesen Betrieb und kannst Dich nicht löschen!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 99 => \n array (\n 'id' => 100,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_betrieb',\n 'key' => 'status_date',\n 'value' => 'letzte Statisänderung',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'letzte Statisänderung',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 100 => \n array (\n 'id' => 101,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_betrieb',\n 'key' => 'sticker',\n 'value' => 'Ist der Betrieb/Laden/Verein etc. gewillt, einen Sticker beim Eingang oder anderswo sichtbar aufzuhängen?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Ist der Betrieb/Laden/Verein etc. gewillt, einen Sticker beim Eingang oder anderswo sichtbar aufzuhängen?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 101 => \n array (\n 'id' => 102,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_betrieb',\n 'key' => 'str',\n 'value' => 'Straße',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Straße',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 102 => \n array (\n 'id' => 103,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_betrieb',\n 'key' => 'ueberzeugungsarbeit',\n 'value' => 'War es einfach, eine/n Verantwortliche/n zu überzeugen, mit foodsharing zu kooperieren?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'War es einfach, eine/n Verantwortliche/n zu überzeugen, mit foodsharing zu kooperieren?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 103 => \n array (\n 'id' => 104,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bezirk',\n 'key' => 'bezirk_signout',\n 'value' => ':var Gruppe verlassen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => ':var Gruppe verlassen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 104 => \n array (\n 'id' => 105,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bezirk',\n 'key' => 'body',\n 'value' => 'Nachricht',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Nachricht',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 105 => \n array (\n 'id' => 106,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bezirk',\n 'key' => 'bot_forum',\n 'value' => 'Botschafterforum',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Botschafterforum',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 106 => \n array (\n 'id' => 107,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bezirk',\n 'key' => 'compose_new_theme',\n 'value' => 'Neues Thema verfassen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Neues Thema verfassen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 107 => \n array (\n 'id' => 108,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bezirk',\n 'key' => 'dateend',\n 'value' => 'Enddatum',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Enddatum',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 108 => \n array (\n 'id' => 109,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bezirk',\n 'key' => 'delete_post',\n 'value' => 'Beitrag löschen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Beitrag löschen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 109 => \n array (\n 'id' => 110,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bezirk',\n 'key' => 'delete_sure',\n 'value' => 'Soll der Beitrag wirklich gelöscht werden?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Soll der Beitrag wirklich gelöscht werden?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 110 => \n array (\n 'id' => 111,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bezirk',\n 'key' => 'delete_sure_title',\n 'value' => 'Wirklich löschen?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Wirklich löschen?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 111 => \n array (\n 'id' => 112,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bezirk',\n 'key' => 'desc_desc',\n 'value' => 'Was ist das für ein Event?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Was ist das für ein Event?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 112 => \n array (\n 'id' => 113,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bezirk',\n 'key' => 'description',\n 'value' => 'Beschreibung',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Beschreibung',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 113 => \n array (\n 'id' => 114,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bezirk',\n 'key' => 'empty_forum',\n 'value' => 'Noch keine Themen gepostet',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Noch keine Themen gepostet',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 114 => \n array (\n 'id' => 115,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bezirk',\n 'key' => 'forum',\n 'value' => 'Forum',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Forum',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 115 => \n array (\n 'id' => 116,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bezirk',\n 'key' => 'list_fairteiler',\n 'value' => 'Alle Fair-Teiler in :var',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Alle Fair-Teiler in :var',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 116 => \n array (\n 'id' => 117,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bezirk',\n 'key' => 'location_name',\n 'value' => 'Veranstaltungsort',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Veranstaltungsort',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 117 => \n array (\n 'id' => 118,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bezirk',\n 'key' => 'mumble_room',\n 'value' => 'In welchem mumble Konferenzraum treffen wir uns?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'In welchem mumble Konferenzraum treffen wir uns?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 118 => \n array (\n 'id' => 119,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bezirk',\n 'key' => 'new_event',\n 'value' => 'Neue/n Termin/Veranstaltung eintragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Neue/n Termin/Veranstaltung eintragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 119 => \n array (\n 'id' => 120,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bezirk',\n 'key' => 'new_fairteiler',\n 'value' => 'Neuer Fair-Teiler',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Neuer Fair-Teiler',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 120 => \n array (\n 'id' => 121,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bezirk',\n 'key' => 'no_events_posted',\n 'value' => 'Noch keine Events vorhanden',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Noch keine Events vorhanden',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 121 => \n array (\n 'id' => 122,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bezirk',\n 'key' => 'no_fairteiler_available',\n 'value' => 'Noch keine Fair-Teiler eingetragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Noch keine Fair-Teiler eingetragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 122 => \n array (\n 'id' => 123,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bezirk',\n 'key' => 'offline',\n 'value' => 'Ganz normal im echten Leben',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Ganz normal im echten Leben',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 123 => \n array (\n 'id' => 124,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bezirk',\n 'key' => 'older_themes',\n 'value' => 'ältere Themen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'ältere Themen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 124 => \n array (\n 'id' => 125,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bezirk',\n 'key' => 'online',\n 'value' => 'Multilokal auf mumble.lebensmittelretten.de',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Multilokal auf mumble.lebensmittelretten.de',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 125 => \n array (\n 'id' => 126,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bezirk',\n 'key' => 'online_type',\n 'value' => 'Findet das Event offline oder online auf unserem Mumble-Server statt?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Findet das Event offline oder online auf unserem Mumble-Server statt?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 126 => \n array (\n 'id' => 127,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bezirk',\n 'key' => 'post_could_not_saved',\n 'value' => 'Post konnte nicht gespeichert werden.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Post konnte nicht gespeichert werden.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 127 => \n array (\n 'id' => 128,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bezirk',\n 'key' => 'signout',\n 'value' => 'Austragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Austragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 128 => \n array (\n 'id' => 129,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bezirk',\n 'key' => 'signout_sure',\n 'value' => 'Möchtest Du Dich wirklich die Gruppe \":var\" verlassen?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Möchtest Du Dich wirklich die Gruppe \":var\" verlassen?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 129 => \n array (\n 'id' => 130,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bezirk',\n 'key' => 'signout_sure_title',\n 'value' => 'Bist Du sicher?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Bist Du sicher?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 130 => \n array (\n 'id' => 131,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bezirk',\n 'key' => 'sure',\n 'value' => 'Ja, ich bin mir sicher.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Ja, ich bin mir sicher.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 131 => \n array (\n 'id' => 132,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_bezirk',\n 'key' => 'title',\n 'value' => 'Titel',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Titel',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 132 => \n array (\n 'id' => 133,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_blog',\n 'key' => 'article',\n 'value' => 'Artikel',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Artikel',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 133 => \n array (\n 'id' => 134,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_blog',\n 'key' => 'bezirk_id',\n 'value' => 'Für welche Region ist der Artikel relevant?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Für welche Region ist der Artikel relevant?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 134 => \n array (\n 'id' => 135,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_blog',\n 'key' => 'blog_bread',\n 'value' => 'Blog',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Blog',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 135 => \n array (\n 'id' => 136,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_blog',\n 'key' => 'blog_entry_add_success',\n 'value' => 'Artikel wurde gespeichert',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Artikel wurde gespeichert',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 136 => \n array (\n 'id' => 137,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_blog',\n 'key' => 'blog_entry_bread',\n 'value' => 'Alle Blog Eintr&auml;ge',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Alle Blog Eintr&auml;ge',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 137 => \n array (\n 'id' => 138,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_blog',\n 'key' => 'blog_entry_deleted',\n 'value' => 'Artikel gel&ouml;scht!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Artikel gel&ouml;scht!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 138 => \n array (\n 'id' => 139,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_blog',\n 'key' => 'blog_entry_edit_success',\n 'value' => '&Auml;nderungen wurden gespeichert!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => '&Auml;nderungen wurden gespeichert!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 139 => \n array (\n 'id' => 140,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_blog',\n 'key' => 'blog_entry_empty',\n 'value' => 'Bisher sind keine Eintr&auml;ge vorhanden.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Bisher sind keine Eintr&auml;ge vorhanden.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 140 => \n array (\n 'id' => 141,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_blog',\n 'key' => 'body',\n 'value' => 'Inhalt',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Inhalt',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 141 => \n array (\n 'id' => 142,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_blog',\n 'key' => 'bread_blog_entry',\n 'value' => 'Alle Blog Eintr&auml;ge',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Alle Blog Eintr&auml;ge',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 142 => \n array (\n 'id' => 143,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_blog',\n 'key' => 'bread_edit_blog_entry',\n 'value' => 'Blog Eintrag bearbeiten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Blog Eintrag bearbeiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 143 => \n array (\n 'id' => 144,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_blog',\n 'key' => 'bread_new_blog_entry',\n 'value' => 'neuen Artikel schreiben',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'neuen Artikel schreiben',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 144 => \n array (\n 'id' => 145,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_blog',\n 'key' => 'delete_sure',\n 'value' => 'Soll :var wirklich unwideruflich gel&ouml;scht werden?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Soll :var wirklich unwideruflich gel&ouml;scht werden?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 145 => \n array (\n 'id' => 146,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_blog',\n 'key' => 'edit_article',\n 'value' => 'Atikel bearbeiten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Atikel bearbeiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 146 => \n array (\n 'id' => 147,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_blog',\n 'key' => 'foodsaver_id',\n 'value' => 'foodsaver',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'foodsaver',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 147 => \n array (\n 'id' => 148,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_blog',\n 'key' => 'manage_blog',\n 'value' => 'Blog Einträge verwalten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Blog Einträge verwalten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 148 => \n array (\n 'id' => 149,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_blog',\n 'key' => 'name',\n 'value' => 'Titel',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Titel',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 149 => \n array (\n 'id' => 150,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_blog',\n 'key' => 'neu_blog_entry',\n 'value' => 'neuen Artikel schreiben',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'neuen Artikel schreiben',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 150 => \n array (\n 'id' => 151,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_blog',\n 'key' => 'new_article',\n 'value' => 'Neuer Artikel',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Neuer Artikel',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 151 => \n array (\n 'id' => 152,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_blog',\n 'key' => 'news',\n 'value' => 'News aus der Foodsharing-Welt',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'News aus der Foodsharing-Welt',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 152 => \n array (\n 'id' => 153,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_blog',\n 'key' => 'off_label',\n 'value' => 'inaktiv',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'inaktiv',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 153 => \n array (\n 'id' => 154,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_blog',\n 'key' => 'on_label',\n 'value' => 'veröffentlicht',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'veröffentlicht',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 154 => \n array (\n 'id' => 155,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_blog',\n 'key' => 'status',\n 'value' => 'Status',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Status',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 155 => \n array (\n 'id' => 156,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_blog',\n 'key' => 'status_0',\n 'value' => 'inaktiv',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'inaktiv',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 156 => \n array (\n 'id' => 157,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_blog',\n 'key' => 'status_1',\n 'value' => 'veröffentlicht',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'veröffentlicht',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 157 => \n array (\n 'id' => 158,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_blog',\n 'key' => 'teaser',\n 'value' => 'Teaser',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Teaser',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 158 => \n array (\n 'id' => 159,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_blog',\n 'key' => 'time',\n 'value' => 'time',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'time',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 159 => \n array (\n 'id' => 160,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_blog_entry',\n 'key' => 'bezirk_id',\n 'value' => 'bezirk',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'bezirk',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 160 => \n array (\n 'id' => 161,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_blog_entry',\n 'key' => 'blog_entry_add_success',\n 'value' => 'Artikel wurde gespeichert',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Artikel wurde gespeichert',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 161 => \n array (\n 'id' => 162,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_blog_entry',\n 'key' => 'blog_entry_bread',\n 'value' => 'Alle Blog Eintr&auml;ge',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Alle Blog Eintr&auml;ge',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 162 => \n array (\n 'id' => 163,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_blog_entry',\n 'key' => 'blog_entry_deleted',\n 'value' => 'Artikel gel&ouml;scht!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Artikel gel&ouml;scht!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 163 => \n array (\n 'id' => 164,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_blog_entry',\n 'key' => 'blog_entry_edit_success',\n 'value' => '&Auml;nderungen wurden gespeichert!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => '&Auml;nderungen wurden gespeichert!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 164 => \n array (\n 'id' => 165,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_blog_entry',\n 'key' => 'blog_entry_empty',\n 'value' => 'Bisher sind keine Eintr&auml;ge vorhanden.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Bisher sind keine Eintr&auml;ge vorhanden.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 165 => \n array (\n 'id' => 166,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_blog_entry',\n 'key' => 'body',\n 'value' => 'Inhalt',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Inhalt',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 166 => \n array (\n 'id' => 167,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_blog_entry',\n 'key' => 'bread_blog_entry',\n 'value' => 'Alle Blog Eintr&auml;ge',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Alle Blog Eintr&auml;ge',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 167 => \n array (\n 'id' => 168,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_blog_entry',\n 'key' => 'bread_edit_blog_entry',\n 'value' => 'Blog Eintrag bearbeiten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Blog Eintrag bearbeiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 168 => \n array (\n 'id' => 169,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_blog_entry',\n 'key' => 'bread_new_blog_entry',\n 'value' => 'neuen Artikel schreiben',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'neuen Artikel schreiben',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 169 => \n array (\n 'id' => 170,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_blog_entry',\n 'key' => 'delete_sure',\n 'value' => 'Soll :var wirklich unwideruflich gel&ouml;scht werden?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Soll :var wirklich unwideruflich gel&ouml;scht werden?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 170 => \n array (\n 'id' => 171,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_blog_entry',\n 'key' => 'foodsaver_id',\n 'value' => 'foodsaver',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'foodsaver',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 171 => \n array (\n 'id' => 172,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_blog_entry',\n 'key' => 'name',\n 'value' => 'Titel',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Titel',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 172 => \n array (\n 'id' => 173,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_blog_entry',\n 'key' => 'neu_blog_entry',\n 'value' => 'neuen Artikel schreiben',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'neuen Artikel schreiben',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 173 => \n array (\n 'id' => 174,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_blog_entry',\n 'key' => 'teaser',\n 'value' => 'Teaser',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Teaser',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 174 => \n array (\n 'id' => 175,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_blog_entry',\n 'key' => 'time',\n 'value' => 'time',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'time',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 175 => \n array (\n 'id' => 176,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_content',\n 'key' => 'body',\n 'value' => 'Inhalt',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Inhalt',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 176 => \n array (\n 'id' => 177,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_content',\n 'key' => 'bread_content',\n 'value' => 'Alles Seiten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Alles Seiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 177 => \n array (\n 'id' => 178,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_content',\n 'key' => 'bread_edit_content',\n 'value' => 'Seite bearbeiten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Seite bearbeiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 178 => \n array (\n 'id' => 179,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_content',\n 'key' => 'bread_new_content',\n 'value' => 'neue Seite hinzufügen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'neue Seite hinzufügen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 179 => \n array (\n 'id' => 180,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_content',\n 'key' => 'content_add_success',\n 'value' => 'Seite wurde angelegt',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Seite wurde angelegt',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 180 => \n array (\n 'id' => 181,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_content',\n 'key' => 'content_bread',\n 'value' => 'Öffentliche Seiten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Öffentliche Seiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 181 => \n array (\n 'id' => 182,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_content',\n 'key' => 'content_edit_success',\n 'value' => 'Seite wurde gespeichert!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Seite wurde gespeichert!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 182 => \n array (\n 'id' => 183,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_content',\n 'key' => 'content_empty',\n 'value' => 'Bisher wurde keine Seite eingetragen.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Bisher wurde keine Seite eingetragen.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 183 => \n array (\n 'id' => 184,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_content',\n 'key' => 'delete_sure',\n 'value' => 'Soll :var wirklich gel&ouml;scht werden?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Soll :var wirklich gel&ouml;scht werden?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 184 => \n array (\n 'id' => 185,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_content',\n 'key' => 'last_mod',\n 'value' => 'last_mod',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'last_mod',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 185 => \n array (\n 'id' => 186,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_content',\n 'key' => 'name',\n 'value' => 'Eindeutiger Name',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Eindeutiger Name',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 186 => \n array (\n 'id' => 187,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_content',\n 'key' => 'neu_content',\n 'value' => 'Neue Seite anlegen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Neue Seite anlegen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 187 => \n array (\n 'id' => 188,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_content',\n 'key' => 'title',\n 'value' => 'Überschrift',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Überschrift',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 188 => \n array (\n 'id' => 189,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'abort',\n 'value' => 'Abbrechen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Abbrechen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 189 => \n array (\n 'id' => 190,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'about_me_public',\n 'value' => 'Kurzbeschreibung von Dir',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Kurzbeschreibung von Dir',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 190 => \n array (\n 'id' => 191,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'access_error',\n 'value' => 'Du hast nicht die nötigen Rechte dies zu tun',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Du hast nicht die nötigen Rechte dies zu tun',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 191 => \n array (\n 'id' => 192,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'actions',\n 'value' => 'Aktionen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Aktionen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 192 => \n array (\n 'id' => 193,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'active',\n 'value' => 'Aktiviert',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Aktiviert',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 193 => \n array (\n 'id' => 194,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'add',\n 'value' => 'hinzufügen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'hinzufügen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 194 => \n array (\n 'id' => 195,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'address',\n 'value' => 'Adresse',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Adresse',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 195 => \n array (\n 'id' => 196,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'already_in_bezirk',\n 'value' => 'In diesem bezirk bist Du shcon aktiv',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'In diesem bezirk bist Du shcon aktiv',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 196 => \n array (\n 'id' => 197,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'anrede_0',\n 'value' => 'Liebe/r',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Liebe/r',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 197 => \n array (\n 'id' => 198,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'anrede_1',\n 'value' => 'Lieber',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Lieber',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 198 => \n array (\n 'id' => 199,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'anrede_2',\n 'value' => 'Liebe',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Liebe',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 199 => \n array (\n 'id' => 200,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'anschrift',\n 'value' => 'Straße und Hausnummer',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Straße und Hausnummer',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 200 => \n array (\n 'id' => 201,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'attach_image',\n 'value' => 'Bild anhängen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Bild anhängen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 201 => \n array (\n 'id' => 202,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'attachement',\n 'value' => 'Anhang',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Anhang',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 202 => \n array (\n 'id' => 203,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'attention',\n 'value' => 'Achtung',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Achtung',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 203 => \n array (\n 'id' => 204,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'autokennzeichen_id',\n 'value' => 'Autokennzeichen Deiner Stadt/Region',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Autokennzeichen Deiner Stadt/Region',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 204 => \n array (\n 'id' => 205,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'back_to_betrieb',\n 'value' => 'zurück zum Betrieb',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'zurück zum Betrieb',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 205 => \n array (\n 'id' => 206,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'back_to_bezirk',\n 'value' => 'zurück zum Bezirk',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'zurück zum Bezirk',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 206 => \n array (\n 'id' => 207,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'back_to_overview',\n 'value' => 'zur&uuml;ck zur &Uuml;bersicht',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'zur&uuml;ck zur &Uuml;bersicht',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 207 => \n array (\n 'id' => 208,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'before_one_week',\n 'value' => 'vor einer Woche',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'vor einer Woche',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 208 => \n array (\n 'id' => 209,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'betrieb',\n 'value' => 'Lebensmittelspender-Betrieb/e',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Lebensmittelspender-Betrieb/e',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 209 => \n array (\n 'id' => 210,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'betrieb_status_0',\n 'value' => 'Verhandlungen laufen.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Verhandlungen laufen.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 210 => \n array (\n 'id' => 211,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'betrieb_status_1',\n 'value' => 'Es besteht noch kein Kontakt.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Es besteht noch kein Kontakt.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 211 => \n array (\n 'id' => 212,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'betrieb_status_2',\n 'value' => 'Verhandlungen laufen.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Verhandlungen laufen.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 212 => \n array (\n 'id' => 213,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'betrieb_status_3',\n 'value' => 'Betrieb ist bereit zu spenden.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Betrieb ist bereit zu spenden.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 213 => \n array (\n 'id' => 214,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'betrieb_status_4',\n 'value' => 'Betrieb will nicht kooperieren.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Betrieb will nicht kooperieren.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 214 => \n array (\n 'id' => 215,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'betrieb_status_5',\n 'value' => 'Betrieb spendet bereits.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Betrieb spendet bereits.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 215 => \n array (\n 'id' => 216,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'betrieb_status_6',\n 'value' => 'Spendet an Tafel etc. und wirft nichts weg.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Spendet an Tafel etc. und wirft nichts weg.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 216 => \n array (\n 'id' => 217,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'bezirk',\n 'value' => 'Region',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Region',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 217 => \n array (\n 'id' => 218,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'bezirk_request_successfull',\n 'value' => 'Die Anfrage wurde erfolgreich versendet, Du wirst benachrichtigt sobald Du freigeschaltet bist.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Die Anfrage wurde erfolgreich versendet, Du wirst benachrichtigt sobald Du freigeschaltet bist.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 218 => \n array (\n 'id' => 219,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'botschafter',\n 'value' => 'Botschafter',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Botschafter',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 219 => \n array (\n 'id' => 220,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'buddywalls',\n 'value' => 'Pinnwände von Bekannten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Pinnwände von Bekannten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 220 => \n array (\n 'id' => 221,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'bundesland_id',\n 'value' => 'Bundesland',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Bundesland',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 221 => \n array (\n 'id' => 222,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'card',\n 'value' => 'Karte',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Karte',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 222 => \n array (\n 'id' => 223,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'changes_saved',\n 'value' => 'Änderungen wurden gespeichert!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Änderungen wurden gespeichert!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 223 => \n array (\n 'id' => 224,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'choose_file',\n 'value' => 'Datei ausw&auml;hlen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Datei ausw&auml;hlen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 224 => \n array (\n 'id' => 225,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'choose_foodsaver',\n 'value' => 'W&auml;hle die Foodsaver aus denen Du einen Ausweis drucken willst',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'W&auml;hle die Foodsaver aus denen Du einen Ausweis drucken willst',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 225 => \n array (\n 'id' => 226,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'click_to_edit',\n 'value' => 'Klicken zum bearbeiten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Klicken zum bearbeiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 226 => \n array (\n 'id' => 227,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'clock',\n 'value' => 'Uhr',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Uhr',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 227 => \n array (\n 'id' => 228,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'continue',\n 'value' => 'Weiter',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Weiter',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 228 => \n array (\n 'id' => 229,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'conversation_with',\n 'value' => 'Unterhaltung mit :var',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Unterhaltung mit :var',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 229 => \n array (\n 'id' => 230,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'currently',\n 'value' => 'gerade eben',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'gerade eben',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 230 => \n array (\n 'id' => 231,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'date',\n 'value' => 'Datum',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Datum',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 231 => \n array (\n 'id' => 232,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'daterange',\n 'value' => 'Zeitraum',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Zeitraum',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 232 => \n array (\n 'id' => 233,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'dates',\n 'value' => 'Termine',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Termine',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 233 => \n array (\n 'id' => 234,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'datetime',\n 'value' => 'Zeitpunkt',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Zeitpunkt',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 234 => \n array (\n 'id' => 235,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'day',\n 'value' => 'Tag',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Tag',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 235 => \n array (\n 'id' => 236,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'delete',\n 'value' => 'löschen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'löschen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 236 => \n array (\n 'id' => 237,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'delete_post',\n 'value' => 'Beitrag löschen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Beitrag löschen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 237 => \n array (\n 'id' => 238,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'delete_post_sure',\n 'value' => 'Soll der Beitrag wirklich gelöscht werden?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Soll der Beitrag wirklich gelöscht werden?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 238 => \n array (\n 'id' => 239,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'delete_sure_title',\n 'value' => 'Wirklich löschen?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Wirklich löschen?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 239 => \n array (\n 'id' => 240,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'desc',\n 'value' => 'Beschreibung',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Beschreibung',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 240 => \n array (\n 'id' => 241,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'deutschlandtour_desc',\n 'value' => 'dann schreibe uns hier eine kurze Nachricht',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'dann schreibe uns hier eine kurze Nachricht',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 241 => \n array (\n 'id' => 242,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'deutschlandtour_message',\n 'value' => 'Ja, ich möchte einen Besuch von Euch bekommen!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Ja, ich möchte einen Besuch von Euch bekommen!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 242 => \n array (\n 'id' => 243,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'dow0',\n 'value' => 'Sonntag',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Sonntag',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 243 => \n array (\n 'id' => 244,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'dow1',\n 'value' => 'Montag',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Montag',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 244 => \n array (\n 'id' => 245,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'dow2',\n 'value' => 'Dienstag',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Dienstag',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 245 => \n array (\n 'id' => 246,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'dow3',\n 'value' => 'Mittwoch',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Mittwoch',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 246 => \n array (\n 'id' => 247,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'dow4',\n 'value' => 'Donnerstag',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Donnerstag',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 247 => \n array (\n 'id' => 248,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'dow5',\n 'value' => 'Freitag',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Freitag',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 248 => \n array (\n 'id' => 249,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'dow6',\n 'value' => 'Samstag',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Samstag',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 249 => \n array (\n 'id' => 250,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'edit',\n 'value' => 'bearbeiten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'bearbeiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 250 => \n array (\n 'id' => 251,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'edit_success',\n 'value' => '&Auml;nderungen wurden gespeichert',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => '&Auml;nderungen wurden gespeichert',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 251 => \n array (\n 'id' => 252,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'email',\n 'value' => 'E-Mail-Adresse',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'E-Mail-Adresse',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 252 => \n array (\n 'id' => 253,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'email_adress',\n 'value' => 'E-Mail-Adresse',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'E-Mail-Adresse',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 253 => \n array (\n 'id' => 254,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'email_exists',\n 'value' => 'Mit dieser E-Mail-Adresse ist bereits ein Benutzer registriert.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Mit dieser E-Mail-Adresse ist bereits ein Benutzer registriert.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 254 => \n array (\n 'id' => 255,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'email_pass',\n 'value' => 'Passwort',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Passwort',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 255 => \n array (\n 'id' => 256,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'error_default',\n 'value' => 'Es ist ein Fehler aufgetreten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Es ist ein Fehler aufgetreten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 256 => \n array (\n 'id' => 257,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'foodsaver',\n 'value' => 'Foodsaver',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Foodsaver',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 257 => \n array (\n 'id' => 258,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'foodsaver_edit_success',\n 'value' => '&Auml;nderungen wurden gespeichert',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => '&Auml;nderungen wurden gespeichert',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 258 => \n array (\n 'id' => 259,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'friday',\n 'value' => 'Freitag',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Freitag',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 259 => \n array (\n 'id' => 260,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'from',\n 'value' => 'von',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'von',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 260 => \n array (\n 'id' => 261,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'fs_id',\n 'value' => 'Deine Foodsharing-ID',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Deine Foodsharing-ID',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 261 => \n array (\n 'id' => 262,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'geschlecht',\n 'value' => 'Geschlecht',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Geschlecht',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 262 => \n array (\n 'id' => 263,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'groups',\n 'value' => 'Gruppen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Gruppen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 263 => \n array (\n 'id' => 264,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'handy',\n 'value' => 'Handynummer',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Handynummer',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 264 => \n array (\n 'id' => 265,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'join',\n 'value' => 'Anmelden',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Anmelden',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 265 => \n array (\n 'id' => 266,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'last_day',\n 'value' => 'letzten :var',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'letzten :var',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 266 => \n array (\n 'id' => 267,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'lat',\n 'value' => 'Längengrad',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Längengrad',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 267 => \n array (\n 'id' => 268,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'login',\n 'value' => 'Login',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Login',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 268 => \n array (\n 'id' => 269,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'login_success',\n 'value' => 'Login erfolgreich!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Login erfolgreich!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 269 => \n array (\n 'id' => 270,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'lon',\n 'value' => 'Breitengrad',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Breitengrad',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 270 => \n array (\n 'id' => 271,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'mail_to_all_foodsaver_in_area',\n 'value' => 'E-Mail an alle Foodsaver aus :var schreiben',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'E-Mail an alle Foodsaver aus :var schreiben',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 271 => \n array (\n 'id' => 272,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'mailbox_name',\n 'value' => 'Mailbox-Name',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Mailbox-Name',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 272 => \n array (\n 'id' => 273,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'mailboxes',\n 'value' => 'E-Mail Postfächer',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'E-Mail Postfächer',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 273 => \n array (\n 'id' => 274,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'mailinglist',\n 'value' => 'Mailingliste',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Mailingliste',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 274 => \n array (\n 'id' => 275,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'menu_all_fs',\n 'value' => 'Alle Foodsaver',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Alle Foodsaver',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 275 => \n array (\n 'id' => 276,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'menu_all_store',\n 'value' => 'Alle Betriebe',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Alle Betriebe',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 276 => \n array (\n 'id' => 277,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'menu_blog',\n 'value' => 'Blogbeiträge bearbeiten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Blogbeiträge bearbeiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 277 => \n array (\n 'id' => 278,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'menu_chain',\n 'value' => 'Betriebs-Ketten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Betriebs-Ketten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 278 => \n array (\n 'id' => 279,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'menu_content',\n 'value' => 'Inhalte bearbeiten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Inhalte bearbeiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 279 => \n array (\n 'id' => 280,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'menu_email',\n 'value' => 'E-Mail Verteiler',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'E-Mail Verteiler',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 280 => \n array (\n 'id' => 281,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'menu_email_tpl',\n 'value' => 'E-Mail Vorlagen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'E-Mail Vorlagen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 281 => \n array (\n 'id' => 282,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'menu_faq',\n 'value' => 'FAQs verwalten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'FAQs verwalten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 282 => \n array (\n 'id' => 283,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'menu_foodsaver_without_region',\n 'value' => 'Foodsaver ohne Region',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Foodsaver ohne Region',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 283 => \n array (\n 'id' => 284,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'menu_foodtypes',\n 'value' => 'Lebensmittel-Typen verwalten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Lebensmittel-Typen verwalten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 284 => \n array (\n 'id' => 285,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'menu_mailbox_manage',\n 'value' => 'Mailboxen verwalten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Mailboxen verwalten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 285 => \n array (\n 'id' => 286,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'menu_manage_regions',\n 'value' => 'Regionen verwalten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Regionen verwalten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 286 => \n array (\n 'id' => 287,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'menu_newarea',\n 'value' => 'Regionswünsche von Foodsavern',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Regionswünsche von Foodsavern',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 287 => \n array (\n 'id' => 288,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'menu_quiz',\n 'value' => 'Quiz verwalten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Quiz verwalten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 288 => \n array (\n 'id' => 289,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'menu_regions_without_bots',\n 'value' => 'Regionen ohne Botschafter',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Regionen ohne Botschafter',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 289 => \n array (\n 'id' => 290,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'menu_reports',\n 'value' => 'Verstoßmeldungen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Verstoßmeldungen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 290 => \n array (\n 'id' => 291,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'message',\n 'value' => 'Nachricht',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Nachricht',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 291 => \n array (\n 'id' => 292,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'monday',\n 'value' => 'Montag',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Montag',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 292 => \n array (\n 'id' => 293,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'month_1',\n 'value' => 'Januar',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Januar',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 293 => \n array (\n 'id' => 294,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'month_10',\n 'value' => 'Okt',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Okt',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 294 => \n array (\n 'id' => 295,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'month_11',\n 'value' => 'Nov',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Nov',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 295 => \n array (\n 'id' => 296,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'month_12',\n 'value' => 'Dez',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Dez',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 296 => \n array (\n 'id' => 297,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'month_2',\n 'value' => 'Februar',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Februar',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 297 => \n array (\n 'id' => 298,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'month_3',\n 'value' => 'März',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'März',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 298 => \n array (\n 'id' => 299,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'month_4',\n 'value' => 'April',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'April',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 299 => \n array (\n 'id' => 300,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'month_5',\n 'value' => 'Mai',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Mai',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 300 => \n array (\n 'id' => 301,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'month_6',\n 'value' => 'Juni',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Juni',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 301 => \n array (\n 'id' => 302,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'month_7',\n 'value' => 'Juli',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Juli',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 302 => \n array (\n 'id' => 303,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'month_8',\n 'value' => 'August',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'August',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 303 => \n array (\n 'id' => 304,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'month_9',\n 'value' => 'Sep',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Sep',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 304 => \n array (\n 'id' => 305,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'msganswer',\n 'value' => 'Antworten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Antworten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 305 => \n array (\n 'id' => 306,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'nachname',\n 'value' => 'Nachname',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Nachname',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 306 => \n array (\n 'id' => 307,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'name',\n 'value' => 'Name',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Name',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 307 => \n array (\n 'id' => 308,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'new_message',\n 'value' => 'Neue Nachricht',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Neue Nachricht',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 308 => \n array (\n 'id' => 309,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'new_message_count',\n 'value' => 'Du hast :var neue Nachrichten!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Du hast :var neue Nachrichten!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 309 => \n array (\n 'id' => 310,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'new_registration',\n 'value' => 'Neue Registrierung',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Neue Registrierung',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 310 => \n array (\n 'id' => 311,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'new_theme',\n 'value' => 'Neues Thema',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Neues Thema',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 311 => \n array (\n 'id' => 312,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'no',\n 'value' => 'Nein',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Nein',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 312 => \n array (\n 'id' => 313,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'no_bezirk_choosen',\n 'value' => 'Noch kein Bezirk gewählt',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Noch kein Bezirk gewählt',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 313 => \n array (\n 'id' => 314,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'no_new_messages',\n 'value' => 'Keine neuen Nachrichten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Keine neuen Nachrichten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 314 => \n array (\n 'id' => 315,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'no_result',\n 'value' => 'Kein Ergebnis',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Kein Ergebnis',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 315 => \n array (\n 'id' => 316,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'normal',\n 'value' => 'Normal',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Normal',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 316 => \n array (\n 'id' => 317,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'not_rv_accepted',\n 'value' => 'Du musst die Rechtsvereinbarung akzeptieren',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Du musst die Rechtsvereinbarung akzeptieren',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 317 => \n array (\n 'id' => 318,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'nothing_to_do',\n 'value' => 'Hier gibt es nichts zu tun',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Hier gibt es nichts zu tun',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 318 => \n array (\n 'id' => 319,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'options',\n 'value' => 'Optionen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Optionen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 319 => \n array (\n 'id' => 320,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'ort',\n 'value' => 'Stadt/Gemeinde',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Stadt/Gemeinde',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 320 => \n array (\n 'id' => 321,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'parent_id',\n 'value' => 'Eltern-Region',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Eltern-Region',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 321 => \n array (\n 'id' => 322,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'pass_generator',\n 'value' => 'Foodsaver Ausweis Generator',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Foodsaver Ausweis Generator',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 322 => \n array (\n 'id' => 323,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'password',\n 'value' => 'Passwort',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Passwort',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 323 => \n array (\n 'id' => 324,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'photo',\n 'value' => 'Foto',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Foto',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 324 => \n array (\n 'id' => 325,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'photo_public',\n 'value' => 'Kontaktaufnahme durch andere Foodsaver',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Kontaktaufnahme durch andere Foodsaver',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 325 => \n array (\n 'id' => 326,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'picture',\n 'value' => 'Bild',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Bild',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 326 => \n array (\n 'id' => 327,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'plz',\n 'value' => 'Postleitzahl',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Postleitzahl',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 327 => \n array (\n 'id' => 328,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'position_search',\n 'value' => 'Positionssuche',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Positionssuche',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 328 => \n array (\n 'id' => 329,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'pubbtime_1',\n 'value' => 'morgens',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'morgens',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 329 => \n array (\n 'id' => 330,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'pubbtime_2',\n 'value' => 'mittags/nachmittags',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'mittags/nachmittags',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 330 => \n array (\n 'id' => 331,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'pubbtime_3',\n 'value' => 'abends',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'abends',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 331 => \n array (\n 'id' => 332,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'pubbtime_4',\n 'value' => 'nachts',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'nachts',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 332 => \n array (\n 'id' => 333,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'read-more',\n 'value' => 'weiterlesen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'weiterlesen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 333 => \n array (\n 'id' => 334,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'really_change',\n 'value' => '&Auml;nderungen wirklich speichern?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => '&Auml;nderungen wirklich speichern?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 334 => \n array (\n 'id' => 335,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'recip_all',\n 'value' => 'Alle Foodsaver Weltweit',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Alle Foodsaver Weltweit',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 335 => \n array (\n 'id' => 336,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'recip_all_bezirk',\n 'value' => 'Alle Foodsaver aus :var',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Alle Foodsaver aus :var',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 336 => \n array (\n 'id' => 337,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'recip_choose_bezirk',\n 'value' => 'Bezirke einzeld ausw&auml;hlen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Bezirke einzeld ausw&auml;hlen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 337 => \n array (\n 'id' => 338,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'recip_chooser',\n 'value' => 'Empf&auml;nger',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Empf&auml;nger',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 338 => \n array (\n 'id' => 339,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'reference',\n 'value' => 'Hinweis',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Hinweis',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 339 => \n array (\n 'id' => 340,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'regions',\n 'value' => 'Bezirke',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Bezirke',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 340 => \n array (\n 'id' => 341,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'register',\n 'value' => 'Registrieren',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Registrieren',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 341 => \n array (\n 'id' => 342,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'request_already_send',\n 'value' => 'An diesen Bezirk hast Du schon eine Anfrage gesendet.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'An diesen Bezirk hast Du schon eine Anfrage gesendet.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 342 => \n array (\n 'id' => 343,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'rolle',\n 'value' => 'Benutzerrolle',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Benutzerrolle',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 343 => \n array (\n 'id' => 344,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'rolle_0_0',\n 'value' => 'Foodsharer',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Foodsharer',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 344 => \n array (\n 'id' => 345,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'rolle_0_1',\n 'value' => 'Foodsharer',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Foodsharer',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 345 => \n array (\n 'id' => 346,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'rolle_0_2',\n 'value' => 'Foodsharer',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Foodsharer',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 346 => \n array (\n 'id' => 347,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'rolle_1_0',\n 'value' => 'Foodsaver',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Foodsaver',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 347 => \n array (\n 'id' => 348,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'rolle_1_1',\n 'value' => 'Foodsaver',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Foodsaver',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 348 => \n array (\n 'id' => 349,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'rolle_1_2',\n 'value' => 'Foodsaverin',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Foodsaverin',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 349 => \n array (\n 'id' => 350,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'rolle_2_0',\n 'value' => 'Betriebsverantwortliche/r Foodsaver',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Betriebsverantwortliche/r Foodsaver',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 350 => \n array (\n 'id' => 351,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'rolle_2_1',\n 'value' => 'Betriebsverantwortlicher Foodsaver',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Betriebsverantwortlicher Foodsaver',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 351 => \n array (\n 'id' => 352,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'rolle_2_2',\n 'value' => 'Betriebsverantwortliche Foodsaverin',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Betriebsverantwortliche Foodsaverin',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 352 => \n array (\n 'id' => 353,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'rolle_3_0',\n 'value' => 'Botschafter/in',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Botschafter/in',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 353 => \n array (\n 'id' => 354,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'rolle_3_1',\n 'value' => 'Botschafter',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Botschafter',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 354 => \n array (\n 'id' => 355,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'rolle_3_2',\n 'value' => 'Botschafterin',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Botschafterin',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 355 => \n array (\n 'id' => 356,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'rolle_4_0',\n 'value' => 'Orgamensch',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Orgamensch',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 356 => \n array (\n 'id' => 357,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'rolle_4_1',\n 'value' => 'Orgamensch',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Orgamensch',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 357 => \n array (\n 'id' => 358,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'rolle_4_2',\n 'value' => 'Orgamensch',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Orgamensch',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 358 => \n array (\n 'id' => 359,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'rv_accept',\n 'value' => 'Ja, ich habe die Rechtsvereinbarung gelesen und Akzeptiere sie.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Ja, ich habe die Rechtsvereinbarung gelesen und Akzeptiere sie.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 359 => \n array (\n 'id' => 360,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'saturday',\n 'value' => 'Samstag',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Samstag',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 360 => \n array (\n 'id' => 361,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'save',\n 'value' => 'Speichern',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Speichern',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 361 => \n array (\n 'id' => 362,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'search',\n 'value' => 'Suchen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Suchen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 362 => \n array (\n 'id' => 363,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'send',\n 'value' => 'Senden',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Senden',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 363 => \n array (\n 'id' => 364,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'settings',\n 'value' => 'Deine Daten / Einstellungen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Deine Daten / Einstellungen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 364 => \n array (\n 'id' => 365,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'show_all_messages',\n 'value' => 'Alle Nachrichten zeigen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Alle Nachrichten zeigen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 365 => \n array (\n 'id' => 366,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'smonth_1',\n 'value' => 'Jan',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Jan',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 366 => \n array (\n 'id' => 367,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'smonth_10',\n 'value' => 'Okt',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Okt',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 367 => \n array (\n 'id' => 368,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'smonth_11',\n 'value' => 'Nov',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Nov',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 368 => \n array (\n 'id' => 369,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'smonth_12',\n 'value' => 'Dez',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Dez',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 369 => \n array (\n 'id' => 370,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'smonth_2',\n 'value' => 'Feb',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Feb',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 370 => \n array (\n 'id' => 371,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'smonth_3',\n 'value' => 'März',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'März',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 371 => \n array (\n 'id' => 372,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'smonth_4',\n 'value' => 'Apr',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Apr',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 372 => \n array (\n 'id' => 373,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'smonth_5',\n 'value' => 'Mai',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Mai',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 373 => \n array (\n 'id' => 374,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'smonth_6',\n 'value' => 'Juni',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Juni',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 374 => \n array (\n 'id' => 375,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'smonth_7',\n 'value' => 'Juli',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Juli',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 375 => \n array (\n 'id' => 376,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'smonth_8',\n 'value' => 'Aug',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Aug',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 376 => \n array (\n 'id' => 377,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'smonth_9',\n 'value' => 'Sep',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Sep',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 377 => \n array (\n 'id' => 378,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'specials',\n 'value' => 'Besonderheiten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Besonderheiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 378 => \n array (\n 'id' => 379,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'stadt',\n 'value' => 'Deine Stadt oder Gemeinde',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Deine Stadt oder Gemeinde',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 379 => \n array (\n 'id' => 380,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'status',\n 'value' => 'Aktueller Status',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Aktueller Status',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 380 => \n array (\n 'id' => 381,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'subject',\n 'value' => 'Betreff',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Betreff',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 381 => \n array (\n 'id' => 382,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'sunday',\n 'value' => 'Sonntag',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Sonntag',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 382 => \n array (\n 'id' => 383,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'sure',\n 'value' => 'Ja, ich bin mir sicher.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Ja, ich bin mir sicher.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 383 => \n array (\n 'id' => 384,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'team_status_0',\n 'value' => 'Dieses Team ist voll. Daher werden z.<span style=\"white-space:nowrap\">&thinsp;</span>Z. keine weiteren Helfer gesucht.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Dieses Team ist voll. Daher werden z.<span style=\"white-space:nowrap\">&thinsp;</span>Z. keine weiteren Helfer gesucht.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 384 => \n array (\n 'id' => 385,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'team_status_1',\n 'value' => '<strong>Es werden noch Helfer gesucht</strong>',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => '<strong>Es werden noch Helfer gesucht</strong>',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 385 => \n array (\n 'id' => 386,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'team_status_2',\n 'value' => '<strong>Es werden dringend noch Helfer gesucht</strong>',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => '<strong>Es werden dringend noch Helfer gesucht</strong>',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 386 => \n array (\n 'id' => 387,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'telefon',\n 'value' => 'Festnetznummer',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Festnetznummer',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 387 => \n array (\n 'id' => 388,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'this_weekday',\n 'value' => 'letzten :var',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'letzten :var',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 388 => \n array (\n 'id' => 389,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'thursday',\n 'value' => 'Donnerstag',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Donnerstag',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 389 => \n array (\n 'id' => 390,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'time',\n 'value' => 'Uhrzeit',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Uhrzeit',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 390 => \n array (\n 'id' => 391,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'to',\n 'value' => 'bis',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'bis',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 391 => \n array (\n 'id' => 392,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'to_team_page',\n 'value' => 'Zur Teamseite',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Zur Teamseite',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 392 => \n array (\n 'id' => 393,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'today',\n 'value' => 'Heute',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Heute',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 393 => \n array (\n 'id' => 394,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'today_time',\n 'value' => 'Heute, :var',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Heute, :var',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 394 => \n array (\n 'id' => 395,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'tomorrow',\n 'value' => 'Morgen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Morgen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 395 => \n array (\n 'id' => 396,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'tuesday',\n 'value' => 'Dienstag',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Dienstag',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 396 => \n array (\n 'id' => 397,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'upload_picture',\n 'value' => 'Bild hochladen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Bild hochladen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 397 => \n array (\n 'id' => 398,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'user_add_success',\n 'value' => 'Prima! Dein Account wurde angelegt!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Prima! Dein Account wurde angelegt!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 398 => \n array (\n 'id' => 399,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'user_is_activated',\n 'value' => 'Foodsaver ist aktiviert',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Foodsaver ist aktiviert',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 399 => \n array (\n 'id' => 400,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'user_is_botschafter_now',\n 'value' => ':var ist jetzt Botschafter/in',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => ':var ist jetzt Botschafter/in',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 400 => \n array (\n 'id' => 401,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'user_is_deleted',\n 'value' => 'Foodsaver wurde gel&ouml;scht',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Foodsaver wurde gel&ouml;scht',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 401 => \n array (\n 'id' => 402,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'want_to_fetch',\n 'value' => 'Hier würde ich gerne Lebensmittel abholen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Hier würde ich gerne Lebensmittel abholen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 402 => \n array (\n 'id' => 403,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'wednesday',\n 'value' => 'Mittwoch',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Mittwoch',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 403 => \n array (\n 'id' => 404,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'write_a_messages',\n 'value' => 'Nachricht schreiben',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Nachricht schreiben',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 404 => \n array (\n 'id' => 405,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'write_something',\n 'value' => 'schreibe etwas',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'schreibe etwas',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 405 => \n array (\n 'id' => 406,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'write_teaser',\n 'value' => 'Schreibe etwas...',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Schreibe etwas...',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 406 => \n array (\n 'id' => 407,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'yes',\n 'value' => 'Ja',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Ja',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 407 => \n array (\n 'id' => 408,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_core',\n 'key' => 'yesterday',\n 'value' => 'gestern',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'gestern',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 408 => \n array (\n 'id' => 409,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_dashboard',\n 'key' => 'all_baskets',\n 'value' => 'Alle Körbe auf der Karte',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Alle Körbe auf der Karte',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 409 => \n array (\n 'id' => 410,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_dashboard',\n 'key' => 'already_in_bezirk',\n 'value' => 'In diesem Bezirk bist Du schon aktiv',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'In diesem Bezirk bist Du schon aktiv',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 410 => \n array (\n 'id' => 411,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_dashboard',\n 'key' => 'attach_image',\n 'value' => 'Bild anhängen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Bild anhängen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 411 => \n array (\n 'id' => 412,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_dashboard',\n 'key' => 'bezirk_request_successfull',\n 'value' => 'Die Anfrage wurde erfolgreich versendet, Du wirst benachrichtigt sobald Du freigeschaltet bist.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Die Anfrage wurde erfolgreich versendet, Du wirst benachrichtigt sobald Du freigeschaltet bist.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 412 => \n array (\n 'id' => 413,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_dashboard',\n 'key' => 'bot_partners',\n 'value' => 'Deine Botschafterpatenkinder',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Deine Botschafterpatenkinder',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 413 => \n array (\n 'id' => 414,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_dashboard',\n 'key' => 'close_foodbaskets',\n 'value' => 'Essenskörbe in Deiner Nähe',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Essenskörbe in Deiner Nähe',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 414 => \n array (\n 'id' => 415,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_dashboard',\n 'key' => 'fs_partners',\n 'value' => 'Deine Patenkinder',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Deine Patenkinder',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 415 => \n array (\n 'id' => 416,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_dashboard',\n 'key' => 'more_baskets',\n 'value' => 'Alle Körbe auf der Karte',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Alle Körbe auf der Karte',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 416 => \n array (\n 'id' => 417,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_dashboard',\n 'key' => 'new_basket',\n 'value' => 'Neuer Essenskorb',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Neuer Essenskorb',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 417 => \n array (\n 'id' => 418,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_dashboard',\n 'key' => 'new_foodbaskets',\n 'value' => 'Neueste Essenskörbe',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Neueste Essenskörbe',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 418 => \n array (\n 'id' => 419,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_dashboard',\n 'key' => 'next_dates',\n 'value' => 'nächste Abholtermine',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'nächste Abholtermine',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 419 => \n array (\n 'id' => 420,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_dashboard',\n 'key' => 'no_saved_food',\n 'value' => 'Viel Spaß beim Retten!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Viel Spaß beim Retten!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 420 => \n array (\n 'id' => 421,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_dashboard',\n 'key' => 'ort',\n 'value' => 'Stadt/Gemeinde',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Stadt/Gemeinde',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 421 => \n array (\n 'id' => 422,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_dashboard',\n 'key' => 'position_search',\n 'value' => 'Positionssuche',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Positionssuche',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 422 => \n array (\n 'id' => 423,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_dashboard',\n 'key' => 'pubbtime_1',\n 'value' => 'morgens',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'morgens',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 423 => \n array (\n 'id' => 424,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_dashboard',\n 'key' => 'pubbtime_2',\n 'value' => 'mittags/nachmittags',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'mittags/nachmittags',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 424 => \n array (\n 'id' => 425,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_dashboard',\n 'key' => 'pubbtime_3',\n 'value' => 'abends',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'abends',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 425 => \n array (\n 'id' => 426,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_dashboard',\n 'key' => 'pubbtime_4',\n 'value' => 'nachts',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'nachts',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 426 => \n array (\n 'id' => 427,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_dashboard',\n 'key' => 'request_already_send',\n 'value' => 'An diesen Bezirk hast Du schon eine Anfrage gesendet.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'An diesen Bezirk hast Du schon eine Anfrage gesendet.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 427 => \n array (\n 'id' => 428,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_dashboard',\n 'key' => 'saved_food',\n 'value' => 'Du hast schon :weight Kilos gerettet!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Du hast schon :weight Kilos gerettet!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 428 => \n array (\n 'id' => 429,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_dashboard',\n 'key' => 'team_status_0',\n 'value' => 'Dieses Team ist voll. Daher werden z.<span style=\"white-space:nowrap\">&thinsp;</span>Z. keine weiteren Helfer gesucht.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Dieses Team ist voll. Daher werden z.<span style=\"white-space:nowrap\">&thinsp;</span>Z. keine weiteren Helfer gesucht.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 429 => \n array (\n 'id' => 430,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_dashboard',\n 'key' => 'team_status_1',\n 'value' => '<strong>Es werden noch Helfer gesucht</strong>',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => '<strong>Es werden noch Helfer gesucht</strong>',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 430 => \n array (\n 'id' => 431,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_dashboard',\n 'key' => 'team_status_2',\n 'value' => '<strong>Es werden dringend noch Helfer gesucht</strong>',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => '<strong>Es werden dringend noch Helfer gesucht</strong>',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 431 => \n array (\n 'id' => 432,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_dashboard',\n 'key' => 'updates',\n 'value' => 'Letzte Aktivitäten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Letzte Aktivitäten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 432 => \n array (\n 'id' => 433,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_dashboard',\n 'key' => 'welcome',\n 'value' => 'Willkommen :name! Schön, dass Du da bist!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Willkommen :name! Schön, dass Du da bist!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 433 => \n array (\n 'id' => 434,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_dashboard',\n 'key' => 'write_teaser',\n 'value' => 'Schreibe etwas...',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Schreibe etwas...',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 434 => \n array (\n 'id' => 435,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_email',\n 'key' => 'mailbox_id',\n 'value' => 'Absender E-Mail-Adresse',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Absender E-Mail-Adresse',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 435 => \n array (\n 'id' => 436,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_email',\n 'key' => 'mailing_list',\n 'value' => 'E-Mail Verteiler',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'E-Mail Verteiler',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 436 => \n array (\n 'id' => 437,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_email',\n 'key' => 'mode',\n 'value' => 'Wie soll die Nachricht versendet werden?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Wie soll die Nachricht versendet werden?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 437 => \n array (\n 'id' => 438,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_email',\n 'key' => 'personal_styling',\n 'value' => 'Persönliche Anrede',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Persönliche Anrede',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 438 => \n array (\n 'id' => 439,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_email',\n 'key' => 'personal_styling_desc',\n 'value' => 'Um die Mail persönlicher zu gestalten kannst Du <strong>{NAME}</strong> anstelle des Namens einfügen und <strong>{ANREDE}</strong> für die Anrede.<p>{ANREDE} {NAME} ergibt z.<span style=\"white-space:nowrap\"> </span>B. Lieber Peter',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Um die Mail persönlicher zu gestalten kannst Du <strong>{NAME}</strong> anstelle des Namens einfügen und <strong>{ANREDE}</strong> für die Anrede.<p>{ANREDE} {NAME} ergibt z.<span style=\"white-space:nowrap\"> </span>B. Lieber Peter',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 439 => \n array (\n 'id' => 440,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_email',\n 'key' => 'recip_choosemanual',\n 'value' => 'Eine E-Mail-Adresse pro Zeile, Name nach Semikolon (z.<span style=\"white-space:nowrap\">&thinsp;</span>B. bli@blubb.de;Peter)',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Eine E-Mail-Adresse pro Zeile, Name nach Semikolon (z.<span style=\"white-space:nowrap\">&thinsp;</span>B. bli@blubb.de;Peter)',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 440 => \n array (\n 'id' => 441,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_email',\n 'key' => 'send_as_email',\n 'value' => 'Als E-Mail versenden',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Als E-Mail versenden',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 441 => \n array (\n 'id' => 442,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_email',\n 'key' => 'send_as_pm',\n 'value' => 'Als interne Nachricht versenden',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Als interne Nachricht versenden',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 442 => \n array (\n 'id' => 443,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_email',\n 'key' => 'shure',\n 'value' => 'Alles gechecked? Soll die E-Mail an alle foodsaver gesendet werden?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Alles gechecked? Soll die E-Mail an alle foodsaver gesendet werden?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 443 => \n array (\n 'id' => 444,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_email',\n 'key' => 'testemail',\n 'value' => 'Test E-Mail-Adresse',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Test E-Mail-Adresse',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 444 => \n array (\n 'id' => 445,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_event',\n 'key' => 'dateend',\n 'value' => 'Enddatum',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Enddatum',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 445 => \n array (\n 'id' => 446,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_event',\n 'key' => 'desc_desc',\n 'value' => 'Was ist das für ein Event?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Was ist das für ein Event?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 446 => \n array (\n 'id' => 447,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_event',\n 'key' => 'description',\n 'value' => 'Beschreibung',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Beschreibung',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 447 => \n array (\n 'id' => 448,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_event',\n 'key' => 'event_options',\n 'value' => 'Event-Optionen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Event-Optionen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 448 => \n array (\n 'id' => 449,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_event',\n 'key' => 'location_name',\n 'value' => 'Veranstaltungsort',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Veranstaltungsort',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 449 => \n array (\n 'id' => 450,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_event',\n 'key' => 'mumble_room',\n 'value' => 'In welchem mumble Konferenzraum treffen wir uns?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'In welchem mumble Konferenzraum treffen wir uns?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 450 => \n array (\n 'id' => 451,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_event',\n 'key' => 'new_event',\n 'value' => 'Neue/n Termin/Veranstaltung eintragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Neue/n Termin/Veranstaltung eintragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 451 => \n array (\n 'id' => 452,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_event',\n 'key' => 'no_events_posted',\n 'value' => 'Noch keine Events vorhanden',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Noch keine Events vorhanden',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 452 => \n array (\n 'id' => 453,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_event',\n 'key' => 'offline',\n 'value' => 'Ganz normal im echten Leben',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Ganz normal im echten Leben',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 453 => \n array (\n 'id' => 454,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_event',\n 'key' => 'online',\n 'value' => 'Multilokal auf mumble.lebensmittelretten.de',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Multilokal auf mumble.lebensmittelretten.de',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 454 => \n array (\n 'id' => 455,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_event',\n 'key' => 'online_type',\n 'value' => 'Findet das Event offline oder online auf unserem Mumbleserver statt?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Findet das Event offline oder online auf unserem Mumbleserver statt?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 455 => \n array (\n 'id' => 456,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fairteiler',\n 'key' => 'add_fairteiler',\n 'value' => 'Fair-Teiler eintragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Fair-Teiler eintragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 456 => \n array (\n 'id' => 457,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fairteiler',\n 'key' => 'attach_image',\n 'value' => 'Bild anhängen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Bild anhängen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 457 => \n array (\n 'id' => 458,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fairteiler',\n 'key' => 'back',\n 'value' => 'zurück',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'zurück',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 458 => \n array (\n 'id' => 459,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fairteiler',\n 'key' => 'bezirk_chooser',\n 'value' => 'Fair-Teiler in Deinen Bezirken',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Fair-Teiler in Deinen Bezirken',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 459 => \n array (\n 'id' => 460,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fairteiler',\n 'key' => 'bezirk_id',\n 'value' => 'In welchem Bezirk ist der Fair-Teiler?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'In welchem Bezirk ist der Fair-Teiler?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 460 => \n array (\n 'id' => 461,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fairteiler',\n 'key' => 'bfoodsaver',\n 'value' => 'Verantwortliche Foodsaver',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Verantwortliche Foodsaver',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 461 => \n array (\n 'id' => 462,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fairteiler',\n 'key' => 'delete',\n 'value' => 'Fair-Teiler löschen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Fair-Teiler löschen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 462 => \n array (\n 'id' => 463,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fairteiler',\n 'key' => 'delete_success',\n 'value' => 'Fair-Teiler wurde gelöscht',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Fair-Teiler wurde gelöscht',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 463 => \n array (\n 'id' => 464,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fairteiler',\n 'key' => 'delete_sure',\n 'value' => 'Möchtest Du wirklich den Fair-Teiler :var löschen?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Möchtest Du wirklich den Fair-Teiler :var löschen?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 464 => \n array (\n 'id' => 465,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fairteiler',\n 'key' => 'desc_desc',\n 'value' => 'Schreibe hier ein paar grundsätzliche Infos über den Fair-Teiler rein, vor allem wann er Zugänglich / geöffnet ist',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Schreibe hier ein paar grundsätzliche Infos über den Fair-Teiler rein, vor allem wann er Zugänglich / geöffnet ist',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 465 => \n array (\n 'id' => 466,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fairteiler',\n 'key' => 'edit',\n 'value' => 'Fair-Teiler bearbeiten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Fair-Teiler bearbeiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 466 => \n array (\n 'id' => 467,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fairteiler',\n 'key' => 'edit_fairteiler_name',\n 'value' => 'Fair-Teiler \":var\" bearbeiten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Fair-Teiler \":var\" bearbeiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 467 => \n array (\n 'id' => 468,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fairteiler',\n 'key' => 'fairteiler',\n 'value' => 'Fair-Teiler',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Fair-Teiler',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 468 => \n array (\n 'id' => 469,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fairteiler',\n 'key' => 'fairteiler_add_fail',\n 'value' => 'Fair-Teiler konnte nicht gespeichet werden, hast Du alles richtig ausgefüllt?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Fair-Teiler konnte nicht gespeichet werden, hast Du alles richtig ausgefüllt?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 469 => \n array (\n 'id' => 470,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fairteiler',\n 'key' => 'fairteiler_add_success',\n 'value' => 'Fair-Teiler wurde erfolgreich eingetragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Fair-Teiler wurde erfolgreich eingetragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 470 => \n array (\n 'id' => 471,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fairteiler',\n 'key' => 'fairteiler_edit_success',\n 'value' => 'Fair-Teiler wurde erfolgreich bearbeitet',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Fair-Teiler wurde erfolgreich bearbeitet',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 471 => \n array (\n 'id' => 472,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fairteiler',\n 'key' => 'fairteiler_prepare_success',\n 'value' => 'Fair-Teiler wurde vorgeschlagen, ein Botschafter muss jetzt noch Deinen Vorschlag bestätigen.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Fair-Teiler wurde vorgeschlagen, ein Botschafter muss jetzt noch Deinen Vorschlag bestätigen.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 472 => \n array (\n 'id' => 473,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fairteiler',\n 'key' => 'follow',\n 'value' => 'Diesem Fair-Teiler folgen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Diesem Fair-Teiler folgen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 473 => \n array (\n 'id' => 474,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fairteiler',\n 'key' => 'follower',\n 'value' => 'Follower',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Follower',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 474 => \n array (\n 'id' => 475,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fairteiler',\n 'key' => 'infotype',\n 'value' => 'Benachrichtigung',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Benachrichtigung',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 475 => \n array (\n 'id' => 476,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fairteiler',\n 'key' => 'infotype_alert',\n 'value' => 'nur über interne Info-Meldungen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'nur über interne Info-Meldungen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 476 => \n array (\n 'id' => 477,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fairteiler',\n 'key' => 'infotype_desc',\n 'value' => 'Wie möchtest Du über Updates wie Essenslieferungen informiert werden?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Wie möchtest Du über Updates wie Essenslieferungen informiert werden?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 477 => \n array (\n 'id' => 478,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fairteiler',\n 'key' => 'infotype_email',\n 'value' => 'über eine E-Mail Benachrichtigung',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'über eine E-Mail Benachrichtigung',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 478 => \n array (\n 'id' => 479,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fairteiler',\n 'key' => 'infotype_title',\n 'value' => ':var folgen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => ':var folgen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 479 => \n array (\n 'id' => 480,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fairteiler',\n 'key' => 'list_fairteiler',\n 'value' => 'Alle Fair-Teiler in :var',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Alle Fair-Teiler in :var',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 480 => \n array (\n 'id' => 481,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fairteiler',\n 'key' => 'new_fairteiler',\n 'value' => 'Neuer Fair-Teiler',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Neuer Fair-Teiler',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 481 => \n array (\n 'id' => 482,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fairteiler',\n 'key' => 'new_fairteiler_in',\n 'value' => 'Neuer Fair-Teiler in :var',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Neuer Fair-Teiler in :var',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 482 => \n array (\n 'id' => 483,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fairteiler',\n 'key' => 'no_fairteiler_available',\n 'value' => 'Noch keine Fair-Teiler eingetragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Noch keine Fair-Teiler eingetragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 483 => \n array (\n 'id' => 484,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fairteiler',\n 'key' => 'no_more_follow',\n 'value' => 'Fair-Teiler nicht mehr folgen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Fair-Teiler nicht mehr folgen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 484 => \n array (\n 'id' => 485,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fairteiler',\n 'key' => 'ort',\n 'value' => 'Stadt/Gemeinde',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Stadt/Gemeinde',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 485 => \n array (\n 'id' => 486,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fairteiler',\n 'key' => 'select_bezirk',\n 'value' => 'Bezirk auswählen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Bezirk auswählen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 486 => \n array (\n 'id' => 487,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fairteiler',\n 'key' => 'write_teaser',\n 'value' => 'Nachricht schreiben...',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Nachricht schreiben...',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 487 => \n array (\n 'id' => 488,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fairteiler',\n 'key' => 'your_fairteiler',\n 'value' => 'Fair-Teiler in Deinen Bezirken',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Fair-Teiler in Deinen Bezirken',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 488 => \n array (\n 'id' => 489,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_faq',\n 'key' => 'answer',\n 'value' => 'Antwort',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Antwort',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 489 => \n array (\n 'id' => 490,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_faq',\n 'key' => 'bread_edit_faq',\n 'value' => 'FAQ bearbeiten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'FAQ bearbeiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 490 => \n array (\n 'id' => 491,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_faq',\n 'key' => 'bread_faq',\n 'value' => 'Alle FAQ\\'s',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Alle FAQ\\'s',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 491 => \n array (\n 'id' => 492,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_faq',\n 'key' => 'bread_new_faq',\n 'value' => 'neue FAQ eintragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'neue FAQ eintragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 492 => \n array (\n 'id' => 493,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_faq',\n 'key' => 'delete_sure',\n 'value' => 'Soll :var wirklich unwideruflich gel&ouml;scht werden?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Soll :var wirklich unwideruflich gel&ouml;scht werden?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 493 => \n array (\n 'id' => 494,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_faq',\n 'key' => 'faq_add_success',\n 'value' => 'Frage wurde gespeichert!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Frage wurde gespeichert!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 494 => \n array (\n 'id' => 495,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_faq',\n 'key' => 'faq_bread',\n 'value' => 'Alle FAQ\\'s',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Alle FAQ\\'s',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 495 => \n array (\n 'id' => 496,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_faq',\n 'key' => 'faq_edit_success',\n 'value' => 'FAQ wurde bearbeitet',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'FAQ wurde bearbeitet',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 496 => \n array (\n 'id' => 497,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_faq',\n 'key' => 'faq_empty',\n 'value' => 'Bisher wurde keine FAQ eingetragen.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Bisher wurde keine FAQ eingetragen.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 497 => \n array (\n 'id' => 498,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_faq',\n 'key' => 'faq_kategorie_id',\n 'value' => 'FAQ Kategorie',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'FAQ Kategorie',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 498 => \n array (\n 'id' => 499,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_faq',\n 'key' => 'name',\n 'value' => 'Frage',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Frage',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 499 => \n array (\n 'id' => 500,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_faq',\n 'key' => 'neu_faq',\n 'value' => 'Neue FAQ eintragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Neue FAQ eintragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n ));\n \\DB::table('translations')->insert(array (\n 0 => \n array (\n 'id' => 501,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_foodsaver',\n 'key' => 'abholen_id',\n 'value' => 'abholen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'abholen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 1 => \n array (\n 'id' => 502,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_foodsaver',\n 'key' => 'abholen_und_kuehlen_id',\n 'value' => 'abholen_und_kuehlen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'abholen_und_kuehlen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 2 => \n array (\n 'id' => 503,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_foodsaver',\n 'key' => 'about_me',\n 'value' => 'about_me',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'about_me',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 3 => \n array (\n 'id' => 504,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_foodsaver',\n 'key' => 'admin',\n 'value' => 'admin',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'admin',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 4 => \n array (\n 'id' => 505,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_foodsaver',\n 'key' => 'aktivbeifoodsharing_id',\n 'value' => 'aktivbeifoodsharing',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'aktivbeifoodsharing',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 5 => \n array (\n 'id' => 506,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_foodsaver',\n 'key' => 'anbau',\n 'value' => 'anbau',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'anbau',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 6 => \n array (\n 'id' => 507,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_foodsaver',\n 'key' => 'anmeldedatum',\n 'value' => 'anmeldedatum',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'anmeldedatum',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 7 => \n array (\n 'id' => 508,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_foodsaver',\n 'key' => 'bezirk_id',\n 'value' => 'bezirk',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'bezirk',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 8 => \n array (\n 'id' => 509,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_foodsaver',\n 'key' => 'bread_edit_foodsaver',\n 'value' => 'Foodsaver bearbeiten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Foodsaver bearbeiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 9 => \n array (\n 'id' => 510,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_foodsaver',\n 'key' => 'bread_foodsaver',\n 'value' => 'Alle Foodsaver',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Alle Foodsaver',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 10 => \n array (\n 'id' => 511,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_foodsaver',\n 'key' => 'bread_new_foodsaver',\n 'value' => 'neuen Foodsaver eintragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'neuen Foodsaver eintragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 11 => \n array (\n 'id' => 512,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_foodsaver',\n 'key' => 'containert_id',\n 'value' => 'containert',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'containert',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 12 => \n array (\n 'id' => 513,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_foodsaver',\n 'key' => 'datenschutz',\n 'value' => 'datenschutz',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'datenschutz',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 13 => \n array (\n 'id' => 514,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_foodsaver',\n 'key' => 'delete_account',\n 'value' => 'Account löschen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Account löschen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 14 => \n array (\n 'id' => 515,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_foodsaver',\n 'key' => 'delete_account_confirm_bt',\n 'value' => 'Ja, Account jetzt löschen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Ja, Account jetzt löschen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 15 => \n array (\n 'id' => 516,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_foodsaver',\n 'key' => 'delete_account_confirm_msg',\n 'value' => 'Du bist dabei Diesen Account zu löschen, bist Du Dir ganz sicher?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Du bist dabei Diesen Account zu löschen, bist Du Dir ganz sicher?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 16 => \n array (\n 'id' => 517,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_foodsaver',\n 'key' => 'delete_account_confirm_title',\n 'value' => 'Account wirklich löschen?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Account wirklich löschen?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 17 => \n array (\n 'id' => 518,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_foodsaver',\n 'key' => 'delete_now',\n 'value' => 'Account jetzt löschen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Account jetzt löschen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 18 => \n array (\n 'id' => 519,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_foodsaver',\n 'key' => 'delete_sure',\n 'value' => 'Soll :var wirklich unwideruflich gelöscht werden?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Soll :var wirklich unwideruflich gelöscht werden?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 19 => \n array (\n 'id' => 520,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_foodsaver',\n 'key' => 'edit_photo',\n 'value' => 'Foto bearbeiten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Foto bearbeiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 20 => \n array (\n 'id' => 521,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_foodsaver',\n 'key' => 'fleisch_abholen_id',\n 'value' => 'fleisch_abholen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'fleisch_abholen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 21 => \n array (\n 'id' => 522,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_foodsaver',\n 'key' => 'foodsaver_bread',\n 'value' => 'Foodsaver',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Foodsaver',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 22 => \n array (\n 'id' => 523,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_foodsaver',\n 'key' => 'foodsaver_deleted',\n 'value' => 'Foodsaver gelöscht',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Foodsaver gelöscht',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 23 => \n array (\n 'id' => 524,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_foodsaver',\n 'key' => 'foodsaver_empty',\n 'value' => 'Bisher wurde kein Foodsaver eingetragen.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Bisher wurde kein Foodsaver eingetragen.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 24 => \n array (\n 'id' => 525,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_foodsaver',\n 'key' => 'foodsavertyp_id',\n 'value' => 'foodsavertyp',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'foodsavertyp',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 25 => \n array (\n 'id' => 526,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_foodsaver',\n 'key' => 'fs_id',\n 'value' => 'Foodsharing-ID',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Foodsharing-ID',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 26 => \n array (\n 'id' => 527,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_foodsaver',\n 'key' => 'fs_international',\n 'value' => 'fs_international',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'fs_international',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 27 => \n array (\n 'id' => 528,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_foodsaver',\n 'key' => 'fs_orga',\n 'value' => 'fs_orga',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'fs_orga',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 28 => \n array (\n 'id' => 529,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_foodsaver',\n 'key' => 'geb_datum',\n 'value' => 'Geburtsdatum',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Geburtsdatum',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 29 => \n array (\n 'id' => 530,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_foodsaver',\n 'key' => 'haftungsausschluss',\n 'value' => 'haftungsausschluss',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'haftungsausschluss',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 30 => \n array (\n 'id' => 531,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_foodsaver',\n 'key' => 'hotline_id',\n 'value' => 'hotline',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'hotline',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 31 => \n array (\n 'id' => 532,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_foodsaver',\n 'key' => 'kommentar',\n 'value' => 'kommentar',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'kommentar',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 32 => \n array (\n 'id' => 533,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_foodsaver',\n 'key' => 'kontakte_betriebe',\n 'value' => 'kontakte_betriebe',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'kontakte_betriebe',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 33 => \n array (\n 'id' => 534,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_foodsaver',\n 'key' => 'land_id',\n 'value' => 'land',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'land',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 34 => \n array (\n 'id' => 535,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_foodsaver',\n 'key' => 'last_login',\n 'value' => 'Letzter Login',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Letzter Login',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 35 => \n array (\n 'id' => 536,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_foodsaver',\n 'key' => 'legal_gerettet',\n 'value' => 'legal_gerettet',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'legal_gerettet',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 36 => \n array (\n 'id' => 537,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_foodsaver',\n 'key' => 'motivation',\n 'value' => 'motivation',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'motivation',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 37 => \n array (\n 'id' => 538,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_foodsaver',\n 'key' => 'neu_foodsaver',\n 'value' => 'Neuen Foodsaver eintragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Neuen Foodsaver eintragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 38 => \n array (\n 'id' => 539,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_foodsaver',\n 'key' => 'orgateam',\n 'value' => 'Bundesweite Orga',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Bundesweite Orga',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 39 => \n array (\n 'id' => 540,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_foodsaver',\n 'key' => 'passwd',\n 'value' => 'Passwort',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Passwort',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 40 => \n array (\n 'id' => 541,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_foodsaver',\n 'key' => 'pfand_id',\n 'value' => 'pfand',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'pfand',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 41 => \n array (\n 'id' => 542,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_foodsaver',\n 'key' => 'plz_id',\n 'value' => 'Postleitzahl',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Postleitzahl',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 42 => \n array (\n 'id' => 543,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_foodsaver',\n 'key' => 'posible_restore_account',\n 'value' => 'Der Account kann nach dem löschen widerhergestellt werden',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Der Account kann nach dem löschen widerhergestellt werden',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 43 => \n array (\n 'id' => 544,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_foodsaver',\n 'key' => 'position',\n 'value' => 'Position bei foodsharing (öffentlich)',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Position bei foodsharing (öffentlich)',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 44 => \n array (\n 'id' => 545,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_foodsaver',\n 'key' => 'promotionarbeit_id',\n 'value' => 'promotionarbeit',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'promotionarbeit',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 45 => \n array (\n 'id' => 546,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_foodsaver',\n 'key' => 'radius',\n 'value' => 'radius',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'radius',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 46 => \n array (\n 'id' => 547,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_foodsaver',\n 'key' => 'raumlichkeit',\n 'value' => 'raumlichkeit',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'raumlichkeit',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 47 => \n array (\n 'id' => 548,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_foodsaver',\n 'key' => 'search_name',\n 'value' => 'nach foodsaver suchen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'nach foodsaver suchen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 48 => \n array (\n 'id' => 549,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_foodsaver',\n 'key' => 'talente',\n 'value' => 'talente',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'talente',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 49 => \n array (\n 'id' => 550,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_foodsaver',\n 'key' => 'timetable',\n 'value' => 'timetable',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'timetable',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 50 => \n array (\n 'id' => 551,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_foodsaver',\n 'key' => 'upload_new_photo',\n 'value' => 'neues Foto hochladen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'neues Foto hochladen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 51 => \n array (\n 'id' => 552,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_foodsaver',\n 'key' => 'wohndauer_id',\n 'value' => 'wohndauer',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'wohndauer',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 52 => \n array (\n 'id' => 553,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_foodsaver',\n 'key' => 'wohnung_id',\n 'value' => 'wohnung',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'wohnung',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 53 => \n array (\n 'id' => 554,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_foodsaver',\n 'key' => 'zeitaufwand_id',\n 'value' => 'zeitaufwand',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'zeitaufwand',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 54 => \n array (\n 'id' => 555,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_foodsaver',\n 'key' => 'zuverlassig_id',\n 'value' => 'zuverlassig',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'zuverlassig',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 55 => \n array (\n 'id' => 556,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'add_fetchtime',\n 'value' => 'Abholzeiten eintragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Abholzeiten eintragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 56 => \n array (\n 'id' => 557,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'add_me_here',\n 'value' => 'Mich hier eintragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Mich hier eintragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 57 => \n array (\n 'id' => 558,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'add_new',\n 'value' => 'Neuen Betrieb eintragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Neuen Betrieb eintragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 58 => \n array (\n 'id' => 559,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'already_in_bezirk',\n 'value' => 'In diesem Bezirk bist Du schon aktiv',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'In diesem Bezirk bist Du schon aktiv',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 59 => \n array (\n 'id' => 560,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'ansprechpartner',\n 'value' => 'Ansprechpartner',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Ansprechpartner',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 60 => \n array (\n 'id' => 561,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'attach_image',\n 'value' => 'Bild anhängen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Bild anhängen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 61 => \n array (\n 'id' => 562,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'besonderheiten',\n 'value' => 'Besonderheiten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Besonderheiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 62 => \n array (\n 'id' => 563,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'betrieb_add_success',\n 'value' => 'Lebensmittel-Spender Betrieb wurde gespeichert',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Lebensmittel-Spender Betrieb wurde gespeichert',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 63 => \n array (\n 'id' => 564,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'betrieb_bread',\n 'value' => 'Spender-Betriebe',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Spender-Betriebe',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 64 => \n array (\n 'id' => 565,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'betrieb_edit_success',\n 'value' => 'Änderungen wurden gespeichert',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Änderungen wurden gespeichert',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 65 => \n array (\n 'id' => 566,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'betrieb_empty',\n 'value' => 'Bisher wurde kein Betrieb eingetragen.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Bisher wurde kein Betrieb eingetragen.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 66 => \n array (\n 'id' => 567,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'betrieb_kategorie_id',\n 'value' => 'Kategorie',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Kategorie',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 67 => \n array (\n 'id' => 568,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'betrieb_sign_out',\n 'value' => 'Mich hier austragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Mich hier austragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 68 => \n array (\n 'id' => 569,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'betrieb_status_id',\n 'value' => 'Status',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Status',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 69 => \n array (\n 'id' => 570,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'bezirk_id',\n 'value' => 'Bezirk',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Bezirk',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 70 => \n array (\n 'id' => 571,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'bezirk_request_successfull',\n 'value' => 'Die Anfrage wurde erfolgreich versendet, Du wirst benachrichtigt sobald Du freigeschaltet bist.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Die Anfrage wurde erfolgreich versendet, Du wirst benachrichtigt sobald Du freigeschaltet bist.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 71 => \n array (\n 'id' => 572,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'bread_betrieb',\n 'value' => 'Alle Betriebe',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Alle Betriebe',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 72 => \n array (\n 'id' => 573,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'bread_edit_betrieb',\n 'value' => 'Betrieb bearbeiten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Betrieb bearbeiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 73 => \n array (\n 'id' => 574,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'bread_new_betrieb',\n 'value' => 'neuen Betrieb eintragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'neuen Betrieb eintragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 74 => \n array (\n 'id' => 575,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'change_fetcher',\n 'value' => 'Abholer ändern',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Abholer ändern',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 75 => \n array (\n 'id' => 576,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'change_status',\n 'value' => 'Status ändern',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Status ändern',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 76 => \n array (\n 'id' => 577,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'change_times',\n 'value' => 'Abholzeiten ändern',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Abholzeiten ändern',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 77 => \n array (\n 'id' => 578,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'choose_fetcher',\n 'value' => 'Abholer auswählen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Abholer auswählen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 78 => \n array (\n 'id' => 579,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'click_to_confirm',\n 'value' => 'Unbestätigte Foodsaver kannst Du durch einen Klick auf das kleine Foto aktivieren',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Unbestätigte Foodsaver kannst Du durch einen Klick auf das kleine Foto aktivieren',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 79 => \n array (\n 'id' => 580,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'date_add_successful',\n 'value' => '<p><b>Termine wurden erfolgreich hinzugefügt</b><br>Müssen nur noch vom Filialverantwortlichen bestätigt werden</p>',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => '<p><b>Termine wurden erfolgreich hinzugefügt</b><br>Müssen nur noch vom Filialverantwortlichen bestätigt werden</p>',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 80 => \n array (\n 'id' => 581,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'datetime',\n 'value' => 'Zeitpunkt',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Zeitpunkt',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 81 => \n array (\n 'id' => 582,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'del_and_send',\n 'value' => 'Termin löschen und Nachricht senden',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Termin löschen und Nachricht senden',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 82 => \n array (\n 'id' => 583,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'del_date_for',\n 'value' => 'Austragen für',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Austragen für',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 83 => \n array (\n 'id' => 584,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'delete_sure',\n 'value' => 'Soll :var wirklich unwideruflich gelöscht werden?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Soll :var wirklich unwideruflich gelöscht werden?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 84 => \n array (\n 'id' => 585,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'edit_betrieb',\n 'value' => 'Betrieb bearbeiten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Betrieb bearbeiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 85 => \n array (\n 'id' => 586,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'edit_fetchtime',\n 'value' => 'Abholzeiten bearbeiten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Abholzeiten bearbeiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 86 => \n array (\n 'id' => 587,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'edit_team',\n 'value' => 'Team bearbeiten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Team bearbeiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 87 => \n array (\n 'id' => 588,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'fax',\n 'value' => 'Fax',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Fax',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 88 => \n array (\n 'id' => 589,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'fetch_history',\n 'value' => 'Abholungshistorie',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Abholungshistorie',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 89 => \n array (\n 'id' => 590,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'fetcher',\n 'value' => 'Abholer',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Abholer',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 90 => \n array (\n 'id' => 591,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'fetcher_count',\n 'value' => 'Anzahl Abholer',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Anzahl Abholer',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 91 => \n array (\n 'id' => 592,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'find_representation',\n 'value' => 'Vertretung finden',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Vertretung finden',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 92 => \n array (\n 'id' => 593,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'have_backup',\n 'value' => 'Ich habe schon eine Vertretung',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Ich habe schon eine Vertretung',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 93 => \n array (\n 'id' => 594,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'hsnr',\n 'value' => 'Hausnummer',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Hausnummer',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 94 => \n array (\n 'id' => 595,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'i_do',\n 'value' => 'Mach Ich!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Mach Ich!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 95 => \n array (\n 'id' => 596,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'info',\n 'value' => 'Infos',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Infos',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 96 => \n array (\n 'id' => 597,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'kette_id',\n 'value' => 'Betriebs-Kette',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Betriebs-Kette',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 97 => \n array (\n 'id' => 598,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'max_3_leader',\n 'value' => 'Es darf maximal 3 Verantwortliche für diese Filiale geben.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Es darf maximal 3 Verantwortliche für diese Filiale geben.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 98 => \n array (\n 'id' => 599,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'menge',\n 'value' => 'Abholmenge im Schnitt',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Abholmenge im Schnitt',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 99 => \n array (\n 'id' => 600,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'more_stores',\n 'value' => 'Weitere Betriebe aus :name',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Weitere Betriebe aus :name',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 100 => \n array (\n 'id' => 601,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'msg_to_team',\n 'value' => 'Team benachrichtigen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Team benachrichtigen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 101 => \n array (\n 'id' => 602,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'neu_betrieb',\n 'value' => 'Neuen Betrieb eintragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Neuen Betrieb eintragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 102 => \n array (\n 'id' => 603,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'next_fetch_dates',\n 'value' => 'Nächste Abholtermine',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Nächste Abholtermine',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 103 => \n array (\n 'id' => 604,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'no_fetchtime',\n 'value' => 'Für :name sind noch keine Abholzeiten eingetragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Für :name sind noch keine Abholzeiten eingetragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 104 => \n array (\n 'id' => 605,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'not_confirmed',\n 'value' => ':name ist noch nicht bestätigt!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => ':name ist noch nicht bestätigt!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 105 => \n array (\n 'id' => 606,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'not_fetching',\n 'value' => 'Du holst noch keine Lebensmittel ab.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Du holst noch keine Lebensmittel ab.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 106 => \n array (\n 'id' => 607,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'not_in_team',\n 'value' => 'Du bist noch nicht im Team von diesem Betrieb',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Du bist noch nicht im Team von diesem Betrieb',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 107 => \n array (\n 'id' => 608,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'not_ready',\n 'value' => 'Betrieb ist noch nicht bereit zu spenden',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Betrieb ist noch nicht bereit zu spenden',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 108 => \n array (\n 'id' => 609,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'not_responsible_but_bot',\n 'value' => 'Du bist nicht verantwortlich für diesen Betrieb, hast dennoch alle Rechte, weil Du Botschafter bist.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Du bist nicht verantwortlich für diesen Betrieb, hast dennoch alle Rechte, weil Du Botschafter bist.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 109 => \n array (\n 'id' => 610,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'not_responsible_but_orga',\n 'value' => 'Du bist nicht verantwortlich für diesen Betrieb, hast dennoch alle Rechte, weil Du im Bundesweiten Orgateam bist.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Du bist nicht verantwortlich für diesen Betrieb, hast dennoch alle Rechte, weil Du im Bundesweiten Orgateam bist.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 110 => \n array (\n 'id' => 611,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'not_verified',\n 'value' => 'Dein Account wurde noch nicht von einem Botschafter verifiziert. Erst dann kannst Du Dich zum Essenabholen eintragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Dein Account wurde noch nicht von einem Botschafter verifiziert. Erst dann kannst Du Dich zum Essenabholen eintragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 111 => \n array (\n 'id' => 612,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'ort',\n 'value' => 'Stadt/Gemeinde',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Stadt/Gemeinde',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 112 => \n array (\n 'id' => 613,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'plz_id',\n 'value' => 'plz',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'plz',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 113 => \n array (\n 'id' => 614,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'position_search',\n 'value' => 'Positionssuche',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Positionssuche',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 114 => \n array (\n 'id' => 615,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'pubbtime_1',\n 'value' => 'morgens',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'morgens',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 115 => \n array (\n 'id' => 616,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'pubbtime_2',\n 'value' => 'mittags/nachmittags',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'mittags/nachmittags',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 116 => \n array (\n 'id' => 617,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'pubbtime_3',\n 'value' => 'abends',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'abends',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 117 => \n array (\n 'id' => 618,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'pubbtime_4',\n 'value' => 'nachts',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'nachts',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 118 => \n array (\n 'id' => 619,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'reportmessage',\n 'value' => 'Beschreibe den Vorfall noch etwas genauer',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Beschreibe den Vorfall noch etwas genauer',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 119 => \n array (\n 'id' => 620,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'reportreason',\n 'value' => 'Aus welchem grun möchtest Du den Foodsaver melden?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Aus welchem grun möchtest Du den Foodsaver melden?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 120 => \n array (\n 'id' => 621,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'request_already_send',\n 'value' => 'An diesen Bezirk hast Du schon eine Anfrage gesendet.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'An diesen Bezirk hast Du schon eine Anfrage gesendet.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 121 => \n array (\n 'id' => 622,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'responsible_foodsaver',\n 'value' => 'Verantwortliche Foodsaver',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Verantwortliche Foodsaver',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 122 => \n array (\n 'id' => 623,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'shure_date',\n 'value' => 'Möchtest Du Dich wirklich verbindlich für <strong>:label</strong> eintragen?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Möchtest Du Dich wirklich verbindlich für <strong>:label</strong> eintragen?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 123 => \n array (\n 'id' => 624,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'shure_of_backup',\n 'value' => 'Hast Du eine Vertretung? Unsere Verlässlichkeit ist sehr wichtig!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Hast Du eine Vertretung? Unsere Verlässlichkeit ist sehr wichtig!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 124 => \n array (\n 'id' => 625,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'shure_range_date',\n 'value' => '<strong>Verbindlich :labels</strong> im gewählten Zeitraum abholen.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => '<strong>Verbindlich :labels</strong> im gewählten Zeitraum abholen.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 125 => \n array (\n 'id' => 626,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'signout_sure',\n 'value' => '<strong>Möchtest Du Dich austragen?</strong><p>Sämtliche Abholtermine werden gelöscht.</p>',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => '<strong>Möchtest Du Dich austragen?</strong><p>Sämtliche Abholtermine werden gelöscht.</p>',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 126 => \n array (\n 'id' => 627,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'signout_sure_title',\n 'value' => 'Bist Du Dir sicher?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Bist Du Dir sicher?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 127 => \n array (\n 'id' => 628,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'stat_fetchcount',\n 'value' => 'Letzte Abholung am :date',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Letzte Abholung am :date',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 128 => \n array (\n 'id' => 629,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'stat_fetchcount_none',\n 'value' => 'Noch keine Lebensmittel abgeholt',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Noch keine Lebensmittel abgeholt',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 129 => \n array (\n 'id' => 630,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'status_change_at',\n 'value' => 'Statusänderung am :var',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Statusänderung am :var',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 130 => \n array (\n 'id' => 631,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'status_date',\n 'value' => 'letzte Statusänderung',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'letzte Statusänderung',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 131 => \n array (\n 'id' => 632,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'status_msg_1',\n 'value' => 'Es besteht noch kein Kontakt',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Es besteht noch kein Kontakt',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 132 => \n array (\n 'id' => 633,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'status_msg_2',\n 'value' => 'Verhandlungen laufen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Verhandlungen laufen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 133 => \n array (\n 'id' => 634,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'status_msg_3',\n 'value' => 'Betrieb ist bereit zu spenden',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Betrieb ist bereit zu spenden',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 134 => \n array (\n 'id' => 635,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'status_msg_4',\n 'value' => 'Betrieb will nicht kooperieren',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Betrieb will nicht kooperieren',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 135 => \n array (\n 'id' => 636,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'status_msg_5',\n 'value' => 'Betrieb spendet bereits',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Betrieb spendet bereits',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 136 => \n array (\n 'id' => 637,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'status_msg_6',\n 'value' => 'spendet an Tafel etc. & wirft nichts weg',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'spendet an Tafel etc. & wirft nichts weg',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 137 => \n array (\n 'id' => 638,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'str',\n 'value' => 'Straße',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Straße',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 138 => \n array (\n 'id' => 639,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'team_msg',\n 'value' => 'Nachricht ans ganze Team',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Nachricht ans ganze Team',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 139 => \n array (\n 'id' => 640,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'team_not_empty',\n 'value' => 'Das Team darf nicht leer sein.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Das Team darf nicht leer sein.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 140 => \n array (\n 'id' => 641,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'team_status',\n 'value' => 'Teamstatus',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Teamstatus',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 141 => \n array (\n 'id' => 642,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'team_status_0',\n 'value' => 'Dieses Team ist voll. Daher werden z.<span style=\"white-space:nowrap\">&thinsp;</span>Z. keine weiteren Helfer gesucht.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Dieses Team ist voll. Daher werden z.<span style=\"white-space:nowrap\">&thinsp;</span>Z. keine weiteren Helfer gesucht.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 142 => \n array (\n 'id' => 643,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'team_status_1',\n 'value' => '<strong>Es werden noch Helfer gesucht</strong>',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => '<strong>Es werden noch Helfer gesucht</strong>',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 143 => \n array (\n 'id' => 644,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'team_status_2',\n 'value' => '<strong>Es werden dringend noch Helfer gesucht</strong>',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => '<strong>Es werden dringend noch Helfer gesucht</strong>',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 144 => \n array (\n 'id' => 645,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'tpl_msg_to_team',\n 'value' => 'Liebes :BETRIEB Team, \n\nam :DATE kann ich leider doch keine Lebensmittel abholen. Daher suche ich dringend eine Vertretung. Kannst Du für mich einspringen?\n\nLiebe Grüße',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Liebes :BETRIEB Team, \n\nam :DATE kann ich leider doch keine Lebensmittel abholen. Daher suche ich dringend eine Vertretung. Kannst Du für mich einspringen?\n\nLiebe Grüße',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 145 => \n array (\n 'id' => 646,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'verantwortlicher',\n 'value' => 'Verantwortliche Mitglieder',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Verantwortliche Mitglieder',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 146 => \n array (\n 'id' => 647,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'verantwortlicher_must_be',\n 'value' => 'Es muss mindestens einen Verantworklichen für jeden Betrieb geben!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Es muss mindestens einen Verantworklichen für jeden Betrieb geben!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 147 => \n array (\n 'id' => 648,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'wait_for_confirm',\n 'value' => '<strong>Du bist vorgemerkt</strong><br>der Filalverantwortliche muss jetzt nur noch Deine Anfrage bestätigen.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => '<strong>Du bist vorgemerkt</strong><br>der Filalverantwortliche muss jetzt nur noch Deine Anfrage bestätigen.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 148 => \n array (\n 'id' => 649,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'write_teaser',\n 'value' => 'Schreibe etwas...',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Schreibe etwas...',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 149 => \n array (\n 'id' => 650,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'you_fetcher',\n 'value' => 'Betriebe bei denen Du Lebensmittel abholst',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Betriebe bei denen Du Lebensmittel abholst',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 150 => \n array (\n 'id' => 651,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'you_responsible',\n 'value' => 'Betriebe für die Du verantwortlich bist',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Betriebe für die Du verantwortlich bist',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 151 => \n array (\n 'id' => 652,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'your_store',\n 'value' => 'Für Diesen Betrieb bist Du verantwortlich',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Für Diesen Betrieb bist Du verantwortlich',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 152 => \n array (\n 'id' => 653,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'zeitraum',\n 'value' => 'Zeitraum',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Zeitraum',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 153 => \n array (\n 'id' => 654,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_groups',\n 'key' => 'apply_type',\n 'value' => 'Wer kann sich für diese Gruppe eintragen?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Wer kann sich für diese Gruppe eintragen?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 154 => \n array (\n 'id' => 655,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_groups',\n 'key' => 'banana_count',\n 'value' => 'Wie viele Vertrauensbananen braucht ein Mitglied?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Wie viele Vertrauensbananen braucht ein Mitglied?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 155 => \n array (\n 'id' => 656,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_groups',\n 'key' => 'fetch_count',\n 'value' => 'Wie viele Abholungen sollte ein Bewerber gemacht haben?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Wie viele Abholungen sollte ein Bewerber gemacht haben?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 156 => \n array (\n 'id' => 657,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_groups',\n 'key' => 'leader',\n 'value' => 'Gruppen-Admins',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Gruppen-Admins',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 157 => \n array (\n 'id' => 658,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_groups',\n 'key' => 'member',\n 'value' => 'Mitglieder',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Mitglieder',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 158 => \n array (\n 'id' => 659,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_groups',\n 'key' => 'report_num',\n 'value' => 'Dürfen sich auch Foodsaver mit Verstoßmeldungen bewerben?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Dürfen sich auch Foodsaver mit Verstoßmeldungen bewerben?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 159 => \n array (\n 'id' => 660,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_groups',\n 'key' => 'week_num',\n 'value' => 'Seit wie vielen Wochen sollte ein Bewerber schon dabei sein?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Seit wie vielen Wochen sollte ein Bewerber schon dabei sein?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 160 => \n array (\n 'id' => 661,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_index',\n 'key' => 'fairteiler',\n 'value' => 'Neuste Fair-Teiler Posts',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Neuste Fair-Teiler Posts',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 161 => \n array (\n 'id' => 662,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_index',\n 'key' => 'more_baskets',\n 'value' => 'Alle Essenskörbe auf der Karte',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Alle Essenskörbe auf der Karte',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 162 => \n array (\n 'id' => 663,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_index',\n 'key' => 'more_fairteiler',\n 'value' => 'Alle Fair-Teiler auf der Karte',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Alle Fair-Teiler auf der Karte',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 163 => \n array (\n 'id' => 664,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_index',\n 'key' => 'new_fairteiler',\n 'value' => 'Fair-Teiler Updates',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Fair-Teiler Updates',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 164 => \n array (\n 'id' => 665,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_index',\n 'key' => 'new_foodbaskets',\n 'value' => 'Neuste Essenskörbe',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Neuste Essenskörbe',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 165 => \n array (\n 'id' => 666,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_kette',\n 'key' => 'bread_edit_kette',\n 'value' => 'Kette bearbeiten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Kette bearbeiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 166 => \n array (\n 'id' => 667,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_kette',\n 'key' => 'bread_new_kette',\n 'value' => 'neue Kette eintragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'neue Kette eintragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 167 => \n array (\n 'id' => 668,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_kette',\n 'key' => 'delete_sure',\n 'value' => 'Soll :var wirklich unwideruflich gel&ouml;scht werden?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Soll :var wirklich unwideruflich gel&ouml;scht werden?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 168 => \n array (\n 'id' => 669,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_kette',\n 'key' => 'kette_bread',\n 'value' => 'Alle Unternehmens-Ketten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Alle Unternehmens-Ketten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 169 => \n array (\n 'id' => 670,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_kette',\n 'key' => 'kette_edit_success',\n 'value' => 'Änderungen wurden gespeichert!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Änderungen wurden gespeichert!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 170 => \n array (\n 'id' => 671,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_kette',\n 'key' => 'kette_empty',\n 'value' => 'Bisher wurde keine Ketten eingetragen.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Bisher wurde keine Ketten eingetragen.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 171 => \n array (\n 'id' => 672,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_kette',\n 'key' => 'logo',\n 'value' => 'Logo',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Logo',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 172 => \n array (\n 'id' => 673,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_kette',\n 'key' => 'name',\n 'value' => 'Name',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Name',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 173 => \n array (\n 'id' => 674,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_kette',\n 'key' => 'neu_kette',\n 'value' => 'Neue Kette eintragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Neue Kette eintragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 174 => \n array (\n 'id' => 675,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_login',\n 'key' => 'activation_failed',\n 'value' => '<strong>Aktivierung fehlgeschlagen!</strong> Ist der eingegebene Link auch korrekt?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => '<strong>Aktivierung fehlgeschlagen!</strong> Ist der eingegebene Link auch korrekt?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 175 => \n array (\n 'id' => 676,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_login',\n 'key' => 'activation_success',\n 'value' => '<strong>Aktivierung erfolgreich!</strong> Logge Dich jetzt Mit Deiner E-Mail-Adresse und Deinem gewählten Passwort ein.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => '<strong>Aktivierung erfolgreich!</strong> Logge Dich jetzt Mit Deiner E-Mail-Adresse und Deinem gewählten Passwort ein.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 176 => \n array (\n 'id' => 677,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_login',\n 'key' => 'check_mail',\n 'value' => 'Schau jetzt in Dein E-Mail-Postfach, um die Anmeldung abzuschließen!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Schau jetzt in Dein E-Mail-Postfach, um die Anmeldung abzuschließen!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 177 => \n array (\n 'id' => 678,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_login',\n 'key' => 'contact_info',\n 'value' => 'Kontaktinformationen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Kontaktinformationen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 178 => \n array (\n 'id' => 679,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_login',\n 'key' => 'error',\n 'value' => 'Es ist ein Fehler aufgetreten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Es ist ein Fehler aufgetreten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 179 => \n array (\n 'id' => 680,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_login',\n 'key' => 'error_email',\n 'value' => 'Mit Deiner E-Mail-Adresse stimmt etwas nicht',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Mit Deiner E-Mail-Adresse stimmt etwas nicht',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 180 => \n array (\n 'id' => 681,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_login',\n 'key' => 'error_image',\n 'value' => 'Dein Foto konnte nicht hochgeladen werden',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Dein Foto konnte nicht hochgeladen werden',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 181 => \n array (\n 'id' => 682,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_login',\n 'key' => 'error_name',\n 'value' => 'Bitte gib einen Namen ein',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Bitte gib einen Namen ein',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 182 => \n array (\n 'id' => 683,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_login',\n 'key' => 'error_passwd',\n 'value' => 'Dein Passwort muss mindestens 5 und darf maximal 30 Zeichen haben',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Dein Passwort muss mindestens 5 und darf maximal 30 Zeichen haben',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 183 => \n array (\n 'id' => 684,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_login',\n 'key' => 'finish',\n 'value' => 'Anmeldung absenden',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Anmeldung absenden',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 184 => \n array (\n 'id' => 685,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_login',\n 'key' => 'have_read_the_legal_stuff1',\n 'value' => 'Ich habe die Datenschutzerklärung zur Kenntnis genommen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Ich habe die Datenschutzerklärung zur Kenntnis genommen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 185 => \n array (\n 'id' => 686,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_login',\n 'key' => 'have_read_the_legal_stuff2',\n 'value' => 'Ich habe die <a href=\"http://wiki.lebensmittelretten.de/Rechtsvereinbarung\" target=\"_blank\">Rechtsvereinbarung</a> zur Kenntnis genommen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Ich habe die <a href=\"http://wiki.lebensmittelretten.de/Rechtsvereinbarung\" target=\"_blank\">Rechtsvereinbarung</a> zur Kenntnis genommen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 186 => \n array (\n 'id' => 687,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_login',\n 'key' => 'i_am_a',\n 'value' => 'Ich bin...',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Ich bin...',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 187 => \n array (\n 'id' => 688,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_login',\n 'key' => 'join_success',\n 'value' => 'Deine Anmeldung war erfolgreich!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Deine Anmeldung war erfolgreich!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 188 => \n array (\n 'id' => 689,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_login',\n 'key' => 'legal_stuff',\n 'value' => 'Rechtliches',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Rechtliches',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 189 => \n array (\n 'id' => 690,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_login',\n 'key' => 'login_email',\n 'value' => 'Deine E-Mail-Adresse',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Deine E-Mail-Adresse',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 190 => \n array (\n 'id' => 691,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_login',\n 'key' => 'login_failed',\n 'value' => 'Diese Zugangdsdaten stimmen leider so nicht.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Diese Zugangdsdaten stimmen leider so nicht.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 191 => \n array (\n 'id' => 692,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_login',\n 'key' => 'login_info',\n 'value' => 'Login Informationen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Login Informationen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 192 => \n array (\n 'id' => 693,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_login',\n 'key' => 'login_location',\n 'value' => 'Deine Adresse',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Deine Adresse',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 193 => \n array (\n 'id' => 694,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_login',\n 'key' => 'login_name',\n 'value' => 'Dein Name',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Dein Name',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 194 => \n array (\n 'id' => 695,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_login',\n 'key' => 'login_passwd1',\n 'value' => 'Passwort',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Passwort',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 195 => \n array (\n 'id' => 696,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_login',\n 'key' => 'login_passwd2',\n 'value' => 'Passwortwiederholung',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Passwortwiederholung',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 196 => \n array (\n 'id' => 697,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_login',\n 'key' => 'login_phone',\n 'value' => 'Telefonnummer',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Telefonnummer',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 197 => \n array (\n 'id' => 698,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_login',\n 'key' => 'login_phone_info',\n 'value' => 'Es kann hilfreich sein, Deine Telefonnummer mit anderen Foodsharern zu teilen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Es kann hilfreich sein, Deine Telefonnummer mit anderen Foodsharern zu teilen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 198 => \n array (\n 'id' => 699,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_login',\n 'key' => 'login_success',\n 'value' => 'Prima! Jetzt bist Du eingeloggt',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Prima! Jetzt bist Du eingeloggt',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 199 => \n array (\n 'id' => 700,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_login',\n 'key' => 'login_surname',\n 'value' => 'Nachname',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Nachname',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 200 => \n array (\n 'id' => 701,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_login',\n 'key' => 'man',\n 'value' => 'männlich',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'männlich',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 201 => \n array (\n 'id' => 702,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_login',\n 'key' => 'next',\n 'value' => 'weiter',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'weiter',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 202 => \n array (\n 'id' => 703,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_login',\n 'key' => 'organisation',\n 'value' => 'Organisation',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Organisation',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 203 => \n array (\n 'id' => 704,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_login',\n 'key' => 'other',\n 'value' => 'sonstig/anders',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'sonstig/anders',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 204 => \n array (\n 'id' => 705,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_login',\n 'key' => 'pass1',\n 'value' => 'Dein neues gewünschtes Passwort',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Dein neues gewünschtes Passwort',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 205 => \n array (\n 'id' => 706,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_login',\n 'key' => 'pass2',\n 'value' => 'Passwortwiederholung',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Passwortwiederholung',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 206 => \n array (\n 'id' => 707,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_login',\n 'key' => 'peer',\n 'value' => 'Foodsharer',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Foodsharer',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 207 => \n array (\n 'id' => 708,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_login',\n 'key' => 'prev',\n 'value' => 'zur&uuml;ck',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'zur&uuml;ck',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 208 => \n array (\n 'id' => 709,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_login',\n 'key' => 'select_picture',\n 'value' => 'Foto ausw&auml;hlen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Foto ausw&auml;hlen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 209 => \n array (\n 'id' => 710,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_login',\n 'key' => 'select_your_gender',\n 'value' => 'Für die Anrede...',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Für die Anrede...',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 210 => \n array (\n 'id' => 711,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_login',\n 'key' => 'upload_no_image',\n 'value' => 'Die hochgeladene Datei ist kein Foto, bitte wähle eine andere Datei.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Die hochgeladene Datei ist kein Foto, bitte wähle eine andere Datei.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 211 => \n array (\n 'id' => 712,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_login',\n 'key' => 'woman',\n 'value' => 'weiblich',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'weiblich',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 212 => \n array (\n 'id' => 713,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_mailbox',\n 'key' => 'an',\n 'value' => 'Empfänger',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Empfänger',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 213 => \n array (\n 'id' => 714,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_mailbox',\n 'key' => 'answer',\n 'value' => 'Antworten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Antworten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 214 => \n array (\n 'id' => 715,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_mailbox',\n 'key' => 'attach_file',\n 'value' => 'Datei anhängen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Datei anhängen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 215 => \n array (\n 'id' => 716,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_mailbox',\n 'key' => 'email_error',\n 'value' => 'Die Empfänger E-Mail Adresse ist nicht korrekt',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Die Empfänger E-Mail Adresse ist nicht korrekt',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 216 => \n array (\n 'id' => 717,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_mailbox',\n 'key' => 'email_name',\n 'value' => 'Angezeigter Name',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Angezeigter Name',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 217 => \n array (\n 'id' => 718,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_mailbox',\n 'key' => 'file_to_big',\n 'value' => 'Sorry die Datei ist zu groß',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Sorry die Datei ist zu groß',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 218 => \n array (\n 'id' => 719,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_mailbox',\n 'key' => 'forward',\n 'value' => 'Weiterleiten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Weiterleiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 219 => \n array (\n 'id' => 720,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_mailbox',\n 'key' => 'inbox',\n 'value' => 'Posteingang',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Posteingang',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 220 => \n array (\n 'id' => 721,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_mailbox',\n 'key' => 'mailbox_add_success',\n 'value' => 'Mailbox wurde erfolgreich angelegt',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Mailbox wurde erfolgreich angelegt',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 221 => \n array (\n 'id' => 722,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_mailbox',\n 'key' => 'mailbox_member',\n 'value' => 'Mailbox Benutzer',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Mailbox Benutzer',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 222 => \n array (\n 'id' => 723,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_mailbox',\n 'key' => 'mailbox_name_desc',\n 'value' => 'Nur den Namen der Mailbox eintragen, also ohne @:host',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Nur den Namen der Mailbox eintragen, also ohne @:host',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 223 => \n array (\n 'id' => 724,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_mailbox',\n 'key' => 'message_from',\n 'value' => 'Nachricht vom :var',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Nachricht vom :var',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 224 => \n array (\n 'id' => 725,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_mailbox',\n 'key' => 'move_to_trash',\n 'value' => 'In die Tonne',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'In die Tonne',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 225 => \n array (\n 'id' => 726,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_mailbox',\n 'key' => 'new_mailbox',\n 'value' => 'Neue Mailbox anlegen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Neue Mailbox anlegen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 226 => \n array (\n 'id' => 727,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_mailbox',\n 'key' => 'new_message',\n 'value' => 'Neue E-Mail',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Neue E-Mail',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 227 => \n array (\n 'id' => 728,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_mailbox',\n 'key' => 'no_message',\n 'value' => 'Noch keine Nachrichten in dieser Mailbox!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Noch keine Nachrichten in dieser Mailbox!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 228 => \n array (\n 'id' => 729,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_mailbox',\n 'key' => 'original_message',\n 'value' => 'Original Nachricht',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Original Nachricht',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 229 => \n array (\n 'id' => 730,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_mailbox',\n 'key' => 'refresh',\n 'value' => 'Aktualisieren',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Aktualisieren',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 230 => \n array (\n 'id' => 731,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_mailbox',\n 'key' => 'send_success',\n 'value' => 'E-Mail wurde erfolgreich versendet!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'E-Mail wurde erfolgreich versendet!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 231 => \n array (\n 'id' => 732,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_mailbox',\n 'key' => 'sent',\n 'value' => 'Gesendet',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Gesendet',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 232 => \n array (\n 'id' => 733,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_mailbox',\n 'key' => 'trash',\n 'value' => 'Papierkorb',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Papierkorb',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 233 => \n array (\n 'id' => 734,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_mailbox',\n 'key' => 'von',\n 'value' => 'Absender',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Absender',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 234 => \n array (\n 'id' => 735,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_mailbox',\n 'key' => 'wrong_file',\n 'value' => 'Dieser Dateityp ist nicht erlaubt',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Dieser Dateityp ist nicht erlaubt',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 235 => \n array (\n 'id' => 736,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_map',\n 'key' => 'specials',\n 'value' => 'Besonderheiten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Besonderheiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 236 => \n array (\n 'id' => 737,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_map',\n 'key' => 'status',\n 'value' => 'Aktueller Status',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Aktueller Status',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 237 => \n array (\n 'id' => 738,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_message_tpl',\n 'key' => 'body',\n 'value' => 'Text',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Text',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 238 => \n array (\n 'id' => 739,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_message_tpl',\n 'key' => 'bread_edit_message_tpl',\n 'value' => 'E-Mail Vorlage bearbeiten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'E-Mail Vorlage bearbeiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 239 => \n array (\n 'id' => 740,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_message_tpl',\n 'key' => 'bread_message_tpl',\n 'value' => 'Alle Vorlagen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Alle Vorlagen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 240 => \n array (\n 'id' => 741,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_message_tpl',\n 'key' => 'bread_new_message_tpl',\n 'value' => 'neue Vorlage erstellen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'neue Vorlage erstellen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 241 => \n array (\n 'id' => 742,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_message_tpl',\n 'key' => 'delete_sure',\n 'value' => 'Soll :var wirklich unwideruflich gel&ouml;scht werden?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Soll :var wirklich unwideruflich gel&ouml;scht werden?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 242 => \n array (\n 'id' => 743,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_message_tpl',\n 'key' => 'language_id',\n 'value' => 'Sprache',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Sprache',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 243 => \n array (\n 'id' => 744,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_message_tpl',\n 'key' => 'message_tpl',\n 'value' => 'E-Mail Vorlagen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'E-Mail Vorlagen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 244 => \n array (\n 'id' => 745,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_message_tpl',\n 'key' => 'message_tpl_add_success',\n 'value' => 'Vorlage wurde hinzugef&uuml;gt',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Vorlage wurde hinzugef&uuml;gt',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 245 => \n array (\n 'id' => 746,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_message_tpl',\n 'key' => 'message_tpl_bread',\n 'value' => 'E-Mail Vorlagen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'E-Mail Vorlagen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 246 => \n array (\n 'id' => 747,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_message_tpl',\n 'key' => 'message_tpl_edit_success',\n 'value' => 'Vorlage wurde bearbeitet',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Vorlage wurde bearbeitet',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 247 => \n array (\n 'id' => 748,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_message_tpl',\n 'key' => 'message_tpl_empty',\n 'value' => 'Bisher wurden keine E-Mail Vorlagen eingetragen.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Bisher wurden keine E-Mail Vorlagen eingetragen.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 248 => \n array (\n 'id' => 749,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_message_tpl',\n 'key' => 'name',\n 'value' => 'Name',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Name',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 249 => \n array (\n 'id' => 750,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_message_tpl',\n 'key' => 'neu_message_tpl',\n 'value' => 'Neue Vorlage eintragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Neue Vorlage eintragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 250 => \n array (\n 'id' => 751,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_msg',\n 'key' => 'compose_body',\n 'value' => 'Nachricht',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Nachricht',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 251 => \n array (\n 'id' => 752,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_msg',\n 'key' => 'compose_recipients',\n 'value' => 'Empfänger',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Empfänger',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 252 => \n array (\n 'id' => 753,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_msg',\n 'key' => 'conversations',\n 'value' => 'Unterhaltungen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Unterhaltungen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 253 => \n array (\n 'id' => 754,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_msg',\n 'key' => 'no_conversations',\n 'value' => 'Noch keine Unterhaltungen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Noch keine Unterhaltungen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 254 => \n array (\n 'id' => 755,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_msg',\n 'key' => 'send_successfull',\n 'value' => 'Nachricht wurde erfolgreich versendet!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Nachricht wurde erfolgreich versendet!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 255 => \n array (\n 'id' => 756,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_newarea',\n 'key' => 'order_msg',\n 'value' => 'E-Mail Benachrichtigung',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'E-Mail Benachrichtigung',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 256 => \n array (\n 'id' => 757,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_passgen',\n 'key' => 'click_to_unverify',\n 'value' => 'Klicken, um die Verifizierung aufzuheben',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Klicken, um die Verifizierung aufzuheben',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 257 => \n array (\n 'id' => 758,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_passgen',\n 'key' => 'click_to_verify',\n 'value' => 'Klicken, um :var zu verifizieren',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Klicken, um :var zu verifizieren',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 258 => \n array (\n 'id' => 759,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_passgen',\n 'key' => 'fs_id',\n 'value' => 'FS-ID',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'FS-ID',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 259 => \n array (\n 'id' => 760,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_passgen',\n 'key' => 'kfz',\n 'value' => 'KFZ',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'KFZ',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 260 => \n array (\n 'id' => 761,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_passgen',\n 'key' => 'last_generated',\n 'value' => 'Zuletzt erstellt',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Zuletzt erstellt',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 261 => \n array (\n 'id' => 762,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_passgen',\n 'key' => 'never_generated',\n 'value' => 'noch nicht erstellt',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'noch nicht erstellt',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 262 => \n array (\n 'id' => 763,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_passgen',\n 'key' => 'start',\n 'value' => 'Und los!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Und los!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 263 => \n array (\n 'id' => 764,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_passgen',\n 'key' => 'tips',\n 'value' => 'Hinweise',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Hinweise',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 264 => \n array (\n 'id' => 765,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_passgen',\n 'key' => 'tips_content',\n 'value' => '<p>Mit einem Klick auf das Erstellungsdatum werden alle Foodsaver mit dem gleichen Datum bzw. ohne Erstellungsdatum markiert.</p>\n<p>Mit einem Klick auf den Namen können Foto und Foodsharing-ID noch geändert werden.</p>\n<p>Foodsaver, die einen Ausweis bekommen haben und die Richtigkeit ihrer Perso-Daten bestätigt haben, können verifiziert werden.</p>',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => '<p>Mit einem Klick auf das Erstellungsdatum werden alle Foodsaver mit dem gleichen Datum bzw. ohne Erstellungsdatum markiert.</p>\n<p>Mit einem Klick auf den Namen können Foto und Foodsharing-ID noch geändert werden.</p>\n<p>Foodsaver, die einen Ausweis bekommen haben und die Richtigkeit ihrer Perso-Daten bestätigt haben, können verifiziert werden.</p>',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 265 => \n array (\n 'id' => 766,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_passgen',\n 'key' => 'unverify_confirm',\n 'value' => 'Vor dem Entverifizieren musst Du die eingetragenen Abholtermine prüfen!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Vor dem Entverifizieren musst Du die eingetragenen Abholtermine prüfen!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 266 => \n array (\n 'id' => 767,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_passgen',\n 'key' => 'unverify_confirm_button',\n 'value' => 'Prüfen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Prüfen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 267 => \n array (\n 'id' => 768,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_passgen',\n 'key' => 'unverify_confirm_title',\n 'value' => 'Person noch für Abholungen eingetragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Person noch für Abholungen eingetragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 268 => \n array (\n 'id' => 769,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_passgen',\n 'key' => 'verified',\n 'value' => 'verifiziert',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'verifiziert',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 269 => \n array (\n 'id' => 770,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_passgen',\n 'key' => 'verify_confirm',\n 'value' => 'Perso-Daten gecheckt?<br />Ausweis übergeben?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Perso-Daten gecheckt?<br />Ausweis übergeben?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 270 => \n array (\n 'id' => 771,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_passgen',\n 'key' => 'verify_confirm_button',\n 'value' => 'Verifizieren',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Verifizieren',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 271 => \n array (\n 'id' => 772,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_passgen',\n 'key' => 'verify_confirm_title',\n 'value' => 'Sicher?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Sicher?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 272 => \n array (\n 'id' => 773,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_profile',\n 'key' => 'attach_image',\n 'value' => 'Bild hochladen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Bild hochladen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 273 => \n array (\n 'id' => 774,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_profile',\n 'key' => 'last_login',\n 'value' => 'Letzter Login',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Letzter Login',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 274 => \n array (\n 'id' => 775,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_profile',\n 'key' => 'mailbox',\n 'value' => 'Interne Mailbox',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Interne Mailbox',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 275 => \n array (\n 'id' => 776,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_profile',\n 'key' => 'notes_count',\n 'value' => 'Notizen <strong>(:count)</strong>',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Notizen <strong>(:count)</strong>',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 276 => \n array (\n 'id' => 777,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_profile',\n 'key' => 'private_mail',\n 'value' => 'Private E-Mail Adresse',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Private E-Mail Adresse',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 277 => \n array (\n 'id' => 778,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_profile',\n 'key' => 'registration_date',\n 'value' => 'Registrierungsdatum',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Registrierungsdatum',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 278 => \n array (\n 'id' => 779,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_profile',\n 'key' => 'user_notes_info',\n 'value' => 'Bitte gehe gewissenhaft mit dieser Funktion um. Sie soll helfen Vorgänge Sichbar zu machen um uns Arbeit zu sparen, Persönliches oder wertendes zu einer Person hat hier nichts verloren - bleibe sachlich!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Bitte gehe gewissenhaft mit dieser Funktion um. Sie soll helfen Vorgänge Sichbar zu machen um uns Arbeit zu sparen, Persönliches oder wertendes zu einer Person hat hier nichts verloren - bleibe sachlich!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 279 => \n array (\n 'id' => 780,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_profile',\n 'key' => 'violation_count',\n 'value' => 'Verstoßmeldungen <strong>(:count)</strong>',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Verstoßmeldungen <strong>(:count)</strong>',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 280 => \n array (\n 'id' => 781,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_profile',\n 'key' => 'write_teaser',\n 'value' => 'Schreibe etwas...',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Schreibe etwas...',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 281 => \n array (\n 'id' => 782,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_quiz',\n 'key' => 'answers',\n 'value' => 'Welche Antworten sind richtig?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Welche Antworten sind richtig?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 282 => \n array (\n 'id' => 783,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_quiz',\n 'key' => 'duration',\n 'value' => 'Zeit zum Antworten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Zeit zum Antworten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 283 => \n array (\n 'id' => 784,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_quiz',\n 'key' => 'explanation',\n 'value' => 'Erklärung',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Erklärung',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 284 => \n array (\n 'id' => 785,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_quiz',\n 'key' => 'fp',\n 'value' => 'Fehlerpunkte',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Fehlerpunkte',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 285 => \n array (\n 'id' => 786,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_quiz',\n 'key' => 'maxfp',\n 'value' => 'Maximale Anzahl von Fehlerpunkten um zu bestehen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Maximale Anzahl von Fehlerpunkten um zu bestehen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 286 => \n array (\n 'id' => 787,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_quiz',\n 'key' => 'questcount',\n 'value' => 'Wie viele Fragen sollen bei Klausur gestellt werden?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Wie viele Fragen sollen bei Klausur gestellt werden?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 287 => \n array (\n 'id' => 788,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_quiz',\n 'key' => 'quizusercomment',\n 'value' => 'Gib uns feedback zu dieser Frage (z.B. war sie zu leicht, zu schwer, unverständlich oder einzelne Antworten bzw. Erklärungen nicht richtig)',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Gib uns feedback zu dieser Frage (z.B. war sie zu leicht, zu schwer, unverständlich oder einzelne Antworten bzw. Erklärungen nicht richtig)',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 288 => \n array (\n 'id' => 789,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_quiz',\n 'key' => 'right',\n 'value' => 'Wertung',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Wertung',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 289 => \n array (\n 'id' => 790,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_quiz',\n 'key' => 'text',\n 'value' => 'Text',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Text',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 290 => \n array (\n 'id' => 791,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_quiz',\n 'key' => 'wikilink',\n 'value' => 'Link zur Wiki-Seite',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Link zur Wiki-Seite',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 291 => \n array (\n 'id' => 792,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_region',\n 'key' => 'bezirk_bread',\n 'value' => 'Regionen verwalten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Regionen verwalten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 292 => \n array (\n 'id' => 793,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_region',\n 'key' => 'bezirk_edit_success',\n 'value' => 'Änderungen wurden gespeichert!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Änderungen wurden gespeichert!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 293 => \n array (\n 'id' => 794,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_region',\n 'key' => 'bezirk_empty',\n 'value' => 'Bisher wurde kein Bezirk eingetragen.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Bisher wurde kein Bezirk eingetragen.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 294 => \n array (\n 'id' => 795,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_region',\n 'key' => 'bread_bezirk',\n 'value' => 'Alle Bezirke',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Alle Bezirke',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 295 => \n array (\n 'id' => 796,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_region',\n 'key' => 'bread_edit_bezirk',\n 'value' => 'Bezirk bearbeiten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Bezirk bearbeiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 296 => \n array (\n 'id' => 797,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_region',\n 'key' => 'bread_edit_region',\n 'value' => 'Region bearbeiten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Region bearbeiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 297 => \n array (\n 'id' => 798,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_region',\n 'key' => 'bread_new_bezirk',\n 'value' => 'neuen Bezirk eintragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'neuen Bezirk eintragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 298 => \n array (\n 'id' => 799,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_region',\n 'key' => 'bread_new_region',\n 'value' => 'neuen Region eintragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'neuen Region eintragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 299 => \n array (\n 'id' => 800,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_region',\n 'key' => 'bread_region',\n 'value' => 'Alle Regionen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Alle Regionen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 300 => \n array (\n 'id' => 801,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_region',\n 'key' => 'delete_sure',\n 'value' => 'Soll der Bezirk :var wirklich unwideruflich gelöscht werden?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Soll der Bezirk :var wirklich unwideruflich gelöscht werden?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 301 => \n array (\n 'id' => 802,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_region',\n 'key' => 'neu_bezirk',\n 'value' => 'Neuen Bezirk eintragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Neuen Bezirk eintragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 302 => \n array (\n 'id' => 803,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_region',\n 'key' => 'neu_region',\n 'value' => 'Neuen Bezirk eintragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Neuen Bezirk eintragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 303 => \n array (\n 'id' => 804,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_region',\n 'key' => 'region_empty',\n 'value' => 'Bisher wurde kein Region eingetragen.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Bisher wurde kein Region eingetragen.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 304 => \n array (\n 'id' => 805,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_region',\n 'key' => 'region_id',\n 'value' => 'Region',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Region',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 305 => \n array (\n 'id' => 806,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_report',\n 'key' => 'betrieb_id',\n 'value' => 'Betrifft Die Meldung einen bestimmten Betrieb indem :var abholt?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Betrifft Die Meldung einen bestimmten Betrieb indem :var abholt?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 306 => \n array (\n 'id' => 807,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_report',\n 'key' => 'reportmessage',\n 'value' => 'Beschreibe den Vorfall noch etwas genauer',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Beschreibe den Vorfall noch etwas genauer',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 307 => \n array (\n 'id' => 808,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_report',\n 'key' => 'reportmessage_desc',\n 'value' => 'Es ist wichtig alle Fälle die gegen die Verhaltensregeln verstoßen zu melden, damit sich erst gar keine schlechte Stimmung unter den Foodsaver bzw. Betrieben entsteht in dem die Verantwortlichen sich rechtzeitig um Problemfälle kümmern können und bei mehrfachen nicht angebrachtem Verhalten, von der Plattform augeschlossen wrid.\nBitte schildere den Vorfall in mindestens 120 Zeichen, damit die Verantwortlichen bzw. das Mediationsteam sich angemessen um den Fall kümmern kann. Nenne dabei Häufigkeit des Vorfalls, Ort, Zeitpunkt und ggf. andere Anwesende Foodsaver',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Es ist wichtig alle Fälle die gegen die Verhaltensregeln verstoßen zu melden, damit sich erst gar keine schlechte Stimmung unter den Foodsaver bzw. Betrieben entsteht in dem die Verantwortlichen sich rechtzeitig um Problemfälle kümmern können und bei mehrfachen nicht angebrachtem Verhalten, von der Plattform augeschlossen wrid.\nBitte schildere den Vorfall in mindestens 120 Zeichen, damit die Verantwortlichen bzw. das Mediationsteam sich angemessen um den Fall kümmern kann. Nenne dabei Häufigkeit des Vorfalls, Ort, Zeitpunkt und ggf. andere Anwesende Foodsaver',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 308 => \n array (\n 'id' => 809,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_settings',\n 'key' => 'about_me_public',\n 'value' => 'Kurzbeschreibung von Dir',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Kurzbeschreibung von Dir',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 309 => \n array (\n 'id' => 810,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_settings',\n 'key' => 'account_option',\n 'value' => 'Account-Optionen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Account-Optionen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 310 => \n array (\n 'id' => 811,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_settings',\n 'key' => 'aufgaben_botschafter',\n 'value' => 'Ich habe das Dokument \"Aufgaben der BotschafterInnen von foodsharing gelesen und übernehme ab jetzt für diese die Verantwortlichkeit in meiner Stadt/Region/Bezirk.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Ich habe das Dokument \"Aufgaben der BotschafterInnen von foodsharing gelesen und übernehme ab jetzt für diese die Verantwortlichkeit in meiner Stadt/Region/Bezirk.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 311 => \n array (\n 'id' => 812,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_settings',\n 'key' => 'bcard',\n 'value' => 'persönliche Visitenkarte',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'persönliche Visitenkarte',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 312 => \n array (\n 'id' => 813,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_settings',\n 'key' => 'calendar',\n 'value' => 'Kalender',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Kalender',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 313 => \n array (\n 'id' => 814,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_settings',\n 'key' => 'comment',\n 'value' => 'Anregungen Kritik & Kommentare',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Anregungen Kritik & Kommentare',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 314 => \n array (\n 'id' => 815,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_settings',\n 'key' => 'datenschutz',\n 'value' => 'Ich habe die Datenschutzerklärung für meine Botschafterrolle zur Kenntnis genommen und bin damit einverstanden',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Ich habe die Datenschutzerklärung für meine Botschafterrolle zur Kenntnis genommen und bin damit einverstanden',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 315 => \n array (\n 'id' => 816,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_settings',\n 'key' => 'daterange',\n 'value' => 'Hier kannst Du einstellen, in welchem Zeitraum Du in etwa nicht zur Verfügung stehst.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Hier kannst Du einstellen, in welchem Zeitraum Du in etwa nicht zur Verfügung stehst.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 316 => \n array (\n 'id' => 817,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_settings',\n 'key' => 'delete_account',\n 'value' => 'Account löschen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Account löschen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 317 => \n array (\n 'id' => 818,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_settings',\n 'key' => 'delete_account_confirm_bt',\n 'value' => 'Ja, Account jetzt löschen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Ja, Account jetzt löschen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 318 => \n array (\n 'id' => 819,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_settings',\n 'key' => 'delete_account_confirm_msg',\n 'value' => 'Du bist dabei Deinen Account zu löschen, bist Du Dir ganz sicher?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Du bist dabei Deinen Account zu löschen, bist Du Dir ganz sicher?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 319 => \n array (\n 'id' => 820,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_settings',\n 'key' => 'delete_account_confirm_title',\n 'value' => 'Account wirklich löschen?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Account wirklich löschen?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 320 => \n array (\n 'id' => 821,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_settings',\n 'key' => 'delete_now',\n 'value' => 'Account jetzt löschen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Account jetzt löschen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 321 => \n array (\n 'id' => 822,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_settings',\n 'key' => 'edit_photo',\n 'value' => 'Foto bearbeiten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Foto bearbeiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 322 => \n array (\n 'id' => 823,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_settings',\n 'key' => 'follow_fairteiler',\n 'value' => 'Updates vom :var Fair-Teiler',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Updates vom :var Fair-Teiler',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 323 => \n array (\n 'id' => 824,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_settings',\n 'key' => 'follow_fairteiler_alert',\n 'value' => 'nur über interne Info-Meldungen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'nur über interne Info-Meldungen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 324 => \n array (\n 'id' => 825,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_settings',\n 'key' => 'follow_fairteiler_desc',\n 'value' => 'Du hast Dich als Follower für den :var Fair-Teiler eingetragen. Auf welche Art möchtest Du diese Benachrichtigungen bekommen?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Du hast Dich als Follower für den :var Fair-Teiler eingetragen. Auf welche Art möchtest Du diese Benachrichtigungen bekommen?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 325 => \n array (\n 'id' => 826,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_settings',\n 'key' => 'follow_fairteiler_mail',\n 'value' => 'über eine E-Mail Benachrichtigung',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'über eine E-Mail Benachrichtigung',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 326 => \n array (\n 'id' => 827,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_settings',\n 'key' => 'follow_fairteiler_none',\n 'value' => 'gar nicht mehr',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'gar nicht mehr',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 327 => \n array (\n 'id' => 828,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_settings',\n 'key' => 'follow_thread',\n 'value' => 'Über das Forenthema \":var\" auf dem Laufenden bleiben?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Über das Forenthema \":var\" auf dem Laufenden bleiben?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 328 => \n array (\n 'id' => 829,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_settings',\n 'key' => 'follow_thread_desc',\n 'value' => '',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => '',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 329 => \n array (\n 'id' => 830,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_settings',\n 'key' => 'follow_thread_mail',\n 'value' => 'Ja, ich möchte per Mail über neue Posts informiert werden.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Ja, ich möchte per Mail über neue Posts informiert werden.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 330 => \n array (\n 'id' => 831,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_settings',\n 'key' => 'follow_thread_none',\n 'value' => 'Bitte nicht mehr über neue Posts informieren.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Bitte nicht mehr über neue Posts informieren.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 331 => \n array (\n 'id' => 832,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_settings',\n 'key' => 'full_sleepmode',\n 'value' => 'Ich tauche erstmal auf unbestimmte Zeit ab',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Ich tauche erstmal auf unbestimmte Zeit ab',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 332 => \n array (\n 'id' => 833,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_settings',\n 'key' => 'geb_datum',\n 'value' => 'Geburtsdatum',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Geburtsdatum',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 333 => \n array (\n 'id' => 834,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_settings',\n 'key' => 'homepage',\n 'value' => 'Deine Webseite',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Deine Webseite',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 334 => \n array (\n 'id' => 835,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_settings',\n 'key' => 'infomail_message',\n 'value' => 'Benachrichtigung über foodsharing.de Nachrichten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Benachrichtigung über foodsharing.de Nachrichten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 335 => \n array (\n 'id' => 836,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_settings',\n 'key' => 'infomail_message_desc',\n 'value' => 'Wenn Du auf foodsharing.de eine interne Nachricht geschickt bekommst, aber gerade nicht eingeloggt bist, kannst Du per E-Mail darüber informiert werden. Möchtest Du das?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Wenn Du auf foodsharing.de eine interne Nachricht geschickt bekommst, aber gerade nicht eingeloggt bist, kannst Du per E-Mail darüber informiert werden. Möchtest Du das?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 336 => \n array (\n 'id' => 837,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_settings',\n 'key' => 'new_bezirk',\n 'value' => 'Bezirk den das Orgateam neu anlegen soll',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Bezirk den das Orgateam neu anlegen soll',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 337 => \n array (\n 'id' => 838,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_settings',\n 'key' => 'newmail',\n 'value' => 'Gib hier Deine neue E-Mail Adresse ein',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Gib hier Deine neue E-Mail Adresse ein',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 338 => \n array (\n 'id' => 839,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_settings',\n 'key' => 'newsletter',\n 'value' => 'Newsletter',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Newsletter',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 339 => \n array (\n 'id' => 840,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_settings',\n 'key' => 'newsletter_desc',\n 'value' => 'Ca. 1x im Monat senden wir aktuelle Informationen rund um die Lebensmittelretter-Bewegung in einem Newsletter raus. Möchtest Du diese E-Mails bekommen?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Ca. 1x im Monat senden wir aktuelle Informationen rund um die Lebensmittelretter-Bewegung in einem Newsletter raus. Möchtest Du diese E-Mails bekommen?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 340 => \n array (\n 'id' => 841,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_settings',\n 'key' => 'no_sleepmode',\n 'value' => 'Ich bin aktiv und voll dabei',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Ich bin aktiv und voll dabei',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 341 => \n array (\n 'id' => 842,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_settings',\n 'key' => 'passcheck',\n 'value' => 'Bestätige die Änderung bitte mit Deinem Passwort',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Bestätige die Änderung bitte mit Deinem Passwort',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 342 => \n array (\n 'id' => 843,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_settings',\n 'key' => 'photo_public',\n 'value' => 'Um eine\nmöglichst flüssige Koordination zu ermöglichen, werden die Namen\nund das Foto von den BotschafterInnen von Foodsharing\nveröffentlicht.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Um eine\nmöglichst flüssige Koordination zu ermöglichen, werden die Namen\nund das Foto von den BotschafterInnen von Foodsharing\nveröffentlicht.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 343 => \n array (\n 'id' => 844,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_settings',\n 'key' => 'posible_restore_account',\n 'value' => 'Dein Account kann nach dem löschen widerhergestellt werden',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Dein Account kann nach dem löschen widerhergestellt werden',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 344 => \n array (\n 'id' => 845,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_settings',\n 'key' => 'position',\n 'value' => 'Deine Position bei foodsharing (öffentlich)',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Deine Position bei foodsharing (öffentlich)',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 345 => \n array (\n 'id' => 846,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_settings',\n 'key' => 'position_search',\n 'value' => 'Adresssuche',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Adresssuche',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 346 => \n array (\n 'id' => 847,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_settings',\n 'key' => 'reason_to_delete',\n 'value' => 'Warum möchtest Du die Foodsaver-Community verlassen?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Warum möchtest Du die Foodsaver-Community verlassen?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 347 => \n array (\n 'id' => 848,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_settings',\n 'key' => 'settings',\n 'value' => 'Einstellungen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Einstellungen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 348 => \n array (\n 'id' => 849,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_settings',\n 'key' => 'settings_general',\n 'value' => 'Deine Angaben',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Deine Angaben',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 349 => \n array (\n 'id' => 850,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_settings',\n 'key' => 'settings_info',\n 'value' => 'Benachrichtigungen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Benachrichtigungen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 350 => \n array (\n 'id' => 851,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_settings',\n 'key' => 'settings_mumble',\n 'value' => 'Mumble Einstellungen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Mumble Einstellungen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 351 => \n array (\n 'id' => 852,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_settings',\n 'key' => 'sleep_mode_saved',\n 'value' => 'Die Einstellungen wurden gespeichert',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Die Einstellungen wurden gespeichert',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 352 => \n array (\n 'id' => 853,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_settings',\n 'key' => 'sleep_msg',\n 'value' => 'Hier kannst Du eine kurze Nachricht hinterlassen, warum Du gerade keine Zeit hast.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Hier kannst Du eine kurze Nachricht hinterlassen, warum Du gerade keine Zeit hast.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 353 => \n array (\n 'id' => 854,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_settings',\n 'key' => 'sleep_status',\n 'value' => 'Dein aktueller Status',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Dein aktueller Status',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 354 => \n array (\n 'id' => 855,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_settings',\n 'key' => 'sleeping_user',\n 'value' => 'Schlafmütze',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Schlafmütze',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 355 => \n array (\n 'id' => 856,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_settings',\n 'key' => 'sleepmode',\n 'value' => 'Schlafmützen-Funktion',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Schlafmützen-Funktion',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 356 => \n array (\n 'id' => 857,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_settings',\n 'key' => 'sleepmode_info',\n 'value' => 'Mit der Schlafmützen-Funktion ist es Dir möglich der Community mitzuteilen, dass Du zzt. verreist bist oder aus anderen Gründen keine Zeit für das Retten von Lebensmitteln hast.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Mit der Schlafmützen-Funktion ist es Dir möglich der Community mitzuteilen, dass Du zzt. verreist bist oder aus anderen Gründen keine Zeit für das Retten von Lebensmitteln hast.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 357 => \n array (\n 'id' => 858,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_settings',\n 'key' => 'tel_public',\n 'value' => 'Veröffentlichung Deiner Telefonnummer(n)',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Veröffentlichung Deiner Telefonnummer(n)',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 358 => \n array (\n 'id' => 859,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_settings',\n 'key' => 'temp_sleepmode',\n 'value' => 'Ich bin für eine Weile nicht verfügbar',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Ich bin für eine Weile nicht verfügbar',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 359 => \n array (\n 'id' => 860,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_settings',\n 'key' => 'time',\n 'value' => 'Wie viel Zeit kannst/willst Du für Deine Botschafterrolle pro Woche aufbringen (ungefähr)',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Wie viel Zeit kannst/willst Du für Deine Botschafterrolle pro Woche aufbringen (ungefähr)',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 360 => \n array (\n 'id' => 861,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_settings',\n 'key' => 'tox',\n 'value' => 'TOX ID',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'TOX ID',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 361 => \n array (\n 'id' => 862,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_settings',\n 'key' => 'tox_desc',\n 'value' => '<a href=\"https://tox.im/\" target=\"_blank\">Tox ist eine sichere OpenSource Skype Alternative</a>',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => '<a href=\"https://tox.im/\" target=\"_blank\">Tox ist eine sichere OpenSource Skype Alternative</a>',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 362 => \n array (\n 'id' => 863,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_settings',\n 'key' => 'twitter',\n 'value' => 'Twitter',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Twitter',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 363 => \n array (\n 'id' => 864,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_settings',\n 'key' => 'upgrade_bot_success',\n 'value' => 'Danke Dir für Deine Motivation mehr Verantwortung zu übernehmen! Die Anfrage wird schnellstmöglich vom bundesweiten Orga-Team bearbeitet.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Danke Dir für Deine Motivation mehr Verantwortung zu übernehmen! Die Anfrage wird schnellstmöglich vom bundesweiten Orga-Team bearbeitet.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 364 => \n array (\n 'id' => 865,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_settings',\n 'key' => 'upgrade_request_send',\n 'value' => 'Anfrage erfolgreich versendet!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Anfrage erfolgreich versendet!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 365 => \n array (\n 'id' => 866,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_settings',\n 'key' => 'upload_new_photo',\n 'value' => 'neues Foto hochladen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'neues Foto hochladen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 366 => \n array (\n 'id' => 867,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_statistics',\n 'key' => 'active_cities',\n 'value' => 'Aktivste Städte',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Aktivste Städte',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 367 => \n array (\n 'id' => 868,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_statistics',\n 'key' => 'stat_whole',\n 'value' => 'Gesamt-Statistik',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Gesamt-Statistik',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 368 => \n array (\n 'id' => 869,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_team',\n 'key' => 'mail_send_success',\n 'value' => 'Deine Nachricht wurde erfolgreich gesendet!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Deine Nachricht wurde erfolgreich gesendet!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 369 => \n array (\n 'id' => 870,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_team',\n 'key' => 'team',\n 'value' => 'Team',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Team',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 370 => \n array (\n 'id' => 871,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'pagination',\n 'key' => 'next',\n 'value' => 'Next &raquo;',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Next &raquo;',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 371 => \n array (\n 'id' => 872,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'pagination',\n 'key' => 'previous',\n 'value' => '&laquo; Previous',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => '&laquo; Previous',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 372 => \n array (\n 'id' => 873,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'passwords',\n 'key' => 'password',\n 'value' => 'Passwords must be at least six characters and match the confirmation.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Passwords must be at least six characters and match the confirmation.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 373 => \n array (\n 'id' => 874,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'passwords',\n 'key' => 'reset',\n 'value' => 'Your password has been reset!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Your password has been reset!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 374 => \n array (\n 'id' => 875,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'passwords',\n 'key' => 'sent',\n 'value' => 'We have e-mailed your password reset link!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'We have e-mailed your password reset link!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 375 => \n array (\n 'id' => 876,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'passwords',\n 'key' => 'token',\n 'value' => 'This password reset token is invalid.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'This password reset token is invalid.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 376 => \n array (\n 'id' => 877,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'passwords',\n 'key' => 'user',\n 'value' => 'We can\\'t find a user with that e-mail address.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'We can\\'t find a user with that e-mail address.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 377 => \n array (\n 'id' => 878,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'addkeys',\n 'value' => 'Add Keys',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Add Keys',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 378 => \n array (\n 'id' => 879,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'addkeys-placeholder',\n 'value' => 'Add 1 key per line, without the group prefix',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Add 1 key per line, without the group prefix',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 379 => \n array (\n 'id' => 880,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'addsuffixes',\n 'value' => 'Set Suffixes',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Set Suffixes',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 380 => \n array (\n 'id' => 881,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'addsuffixes-placeholder',\n 'value' => 'add each key suffixed by lines entered here',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'add each key suffixed by lines entered here',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 381 => \n array (\n 'id' => 882,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'auto-fill',\n 'value' => 'Auto Fill',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Auto Fill',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 382 => \n array (\n 'id' => 883,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'auto-fill-disabled',\n 'value' => 'Filling...',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Filling...',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 383 => \n array (\n 'id' => 884,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'auto-prop-case-disabled',\n 'value' => 'Applying...',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Applying...',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 384 => \n array (\n 'id' => 885,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'auto-translate',\n 'value' => 'Auto Translate',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Auto Translate',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 385 => \n array (\n 'id' => 886,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'auto-translate-disabled',\n 'value' => 'Translating...',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Translating...',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 386 => \n array (\n 'id' => 887,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'cached',\n 'value' => 'Cached',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Cached',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 387 => \n array (\n 'id' => 888,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'changed',\n 'value' => 'Changed',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Changed',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 388 => \n array (\n 'id' => 889,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'check-all',\n 'value' => 'All',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'All',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 389 => \n array (\n 'id' => 890,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'check-none',\n 'value' => 'None',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'None',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 390 => \n array (\n 'id' => 891,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'choose-group',\n 'value' => 'Choose a translation group',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Choose a translation group',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 391 => \n array (\n 'id' => 892,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'choose-group-text',\n 'value' => 'Choose a group to display the group translations. If no groups are visible, contact your web-admin.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Choose a group to display the group translations. If no groups are visible, contact your web-admin.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 392 => \n array (\n 'id' => 893,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'cleardstkeys',\n 'value' => 'Clear Keys',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Clear Keys',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 393 => \n array (\n 'id' => 894,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'clearkeys',\n 'value' => 'Clear Keys',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Clear Keys',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 394 => \n array (\n 'id' => 895,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'clearsrckeys',\n 'value' => 'Clear Keys',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Clear Keys',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 395 => \n array (\n 'id' => 896,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'clearsuffixes',\n 'value' => 'Clear Suffixes',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Clear Suffixes',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 396 => \n array (\n 'id' => 897,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'close',\n 'value' => 'Close',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Close',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 397 => \n array (\n 'id' => 898,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'confirm-delete',\n 'value' => 'Are you sure you want delete:\n\n:group\n\nthe translations from the database? Any changes that have not been published to translation files, will be lost.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Are you sure you want delete:\n\n:group\n\nthe translations from the database? Any changes that have not been published to translation files, will be lost.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 398 => \n array (\n 'id' => 899,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'confirm-delete-all',\n 'value' => 'Are you sure you want delete all the translations from the database?\n\nAny changes that have not been published to translation files, will be lost.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Are you sure you want delete all the translations from the database?\n\nAny changes that have not been published to translation files, will be lost.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 399 => \n array (\n 'id' => 900,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'confirm-find',\n 'value' => 'Are you sure you want to scan your app and views folders? All found translation keys will be added to the database and source references will be updated.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Are you sure you want to scan your app and views folders? All found translation keys will be added to the database and source references will be updated.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 400 => \n array (\n 'id' => 901,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'copykeys',\n 'value' => 'Copy Keys',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Copy Keys',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 401 => \n array (\n 'id' => 902,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'db-connection',\n 'value' => 'Database',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Database',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 402 => \n array (\n 'id' => 903,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'delete',\n 'value' => 'Delete',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Delete',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 403 => \n array (\n 'id' => 904,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'delete-all',\n 'value' => 'Delete All',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Delete All',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 404 => \n array (\n 'id' => 905,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'deleted',\n 'value' => 'Deleted',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Deleted',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 405 => \n array (\n 'id' => 906,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'deletekeys',\n 'value' => 'Delete Keys',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Delete Keys',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 406 => \n array (\n 'id' => 907,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'deleting',\n 'value' => 'Deleting...',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Deleting...',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 407 => \n array (\n 'id' => 908,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'display-locales',\n 'value' => 'Working Set',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Working Set',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 408 => \n array (\n 'id' => 909,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'done-publishing',\n 'value' => 'Done publishing the translations for group <strong>:group</strong>.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Done publishing the translations for group <strong>:group</strong>.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 409 => \n array (\n 'id' => 910,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'done-publishing-all',\n 'value' => 'Done publishing the translations for <strong>all</strong> groups.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Done publishing the translations for <strong>all</strong> groups.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 410 => \n array (\n 'id' => 911,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'dst-preview',\n 'value' => 'To',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'To',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 411 => \n array (\n 'id' => 912,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'dstkey',\n 'value' => 'To',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'To',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 412 => \n array (\n 'id' => 913,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'dstkeys',\n 'value' => 'To Keys',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'To Keys',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 413 => \n array (\n 'id' => 914,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'dstkeys-placeholder',\n 'value' => 'Add 1 key per line, with or without the group prefix',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Add 1 key per line, with or without the group prefix',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 414 => \n array (\n 'id' => 915,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'enter-translation',\n 'value' => 'Enter translation',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Enter translation',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 415 => \n array (\n 'id' => 916,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'export-warning-text',\n 'value' => 'Warning, translations are not visible until they are published by your administrator.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Warning, translations are not visible until they are published by your administrator.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 416 => \n array (\n 'id' => 917,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'find-in-files',\n 'value' => 'Add References',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Add References',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 417 => \n array (\n 'id' => 918,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'group',\n 'value' => 'Group',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Group',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 418 => \n array (\n 'id' => 919,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'import-add',\n 'value' => 'Only add new translations',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Only add new translations',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 419 => \n array (\n 'id' => 920,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'import-all-done',\n 'value' => 'Done importing, processed <strong>:count</strong> items. Reload this page to refresh the groups.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Done importing, processed <strong>:count</strong> items. Reload this page to refresh the groups.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 420 => \n array (\n 'id' => 921,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'import-done-head',\n 'value' => 'Done importing, processed',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Done importing, processed',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 421 => \n array (\n 'id' => 922,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'import-done-tail',\n 'value' => 'items. Reload this page to refresh the groups.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'items. Reload this page to refresh the groups.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 422 => \n array (\n 'id' => 923,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'import-fresh',\n 'value' => 'Delete All then Import',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Delete All then Import',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 423 => \n array (\n 'id' => 924,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'import-group',\n 'value' => 'Import',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Import',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 424 => \n array (\n 'id' => 925,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'import-group-done',\n 'value' => 'Done importing group <strong>:group</strong>, processed <strong>:count</strong> items. Reload this page to refresh translations.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Done importing group <strong>:group</strong>, processed <strong>:count</strong> items. Reload this page to refresh translations.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 425 => \n array (\n 'id' => 926,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'import-groups',\n 'value' => 'Import all',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Import all',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 426 => \n array (\n 'id' => 927,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'import-replace',\n 'value' => 'Replace existing translations',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Replace existing translations',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 427 => \n array (\n 'id' => 928,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'in-place-edit',\n 'value' => 'Edit In-Place',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Edit In-Place',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 428 => \n array (\n 'id' => 929,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'interface-locale',\n 'value' => 'Interface',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Interface',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 429 => \n array (\n 'id' => 930,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'key',\n 'value' => 'Key',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Key',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 430 => \n array (\n 'id' => 931,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'keyop-count-mustmatch',\n 'value' => 'Number of keys for source and destination must match',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Number of keys for source and destination must match',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 431 => \n array (\n 'id' => 932,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'keyop-header',\n 'value' => 'Key Operation Results',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Key Operation Results',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 432 => \n array (\n 'id' => 933,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'keyop-header-copy',\n 'value' => 'Copy key operation for <strong>:group</strong> group:',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Copy key operation for <strong>:group</strong> group:',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 433 => \n array (\n 'id' => 934,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'keyop-header-delete',\n 'value' => 'Delete keys operation from <strong>:group</strong> group:',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Delete keys operation from <strong>:group</strong> group:',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 434 => \n array (\n 'id' => 935,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'keyop-header-move',\n 'value' => 'Move key operation for <strong>:group</strong> group:',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Move key operation for <strong>:group</strong> group:',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 435 => \n array (\n 'id' => 936,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'keyop-header-preview',\n 'value' => 'Preview key operation for <strong>:group</strong> group:',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Preview key operation for <strong>:group</strong> group:',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 436 => \n array (\n 'id' => 937,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'keyop-need-group',\n 'value' => 'Key operations require a group',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Key operations require a group',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 437 => \n array (\n 'id' => 938,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'keyop-need-keys',\n 'value' => 'No keys provided for key operation',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'No keys provided for key operation',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 438 => \n array (\n 'id' => 939,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'keyop-no-match',\n 'value' => 'No keys matched.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'No keys matched.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 439 => \n array (\n 'id' => 940,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'keyop-wildcard-mustmatch',\n 'value' => 'Wildcard * character must be the first or last character, and if present must be used on both source and destination keys in the same position.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Wildcard * character must be the first or last character, and if present must be used on both source and destination keys in the same position.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 440 => \n array (\n 'id' => 941,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'keyop-wildcard-once',\n 'value' => 'Wildcard * character can only appear once in a key.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Wildcard * character can only appear once in a key.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 441 => \n array (\n 'id' => 942,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'keyops-not-authorized',\n 'value' => 'Key operations are not authorized on this server. Contact your web-admin to change this setting.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Key operations are not authorized on this server. Contact your web-admin to change this setting.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 442 => \n array (\n 'id' => 943,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'keys',\n 'value' => 'Keys',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Keys',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 443 => \n array (\n 'id' => 944,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'loading',\n 'value' => 'Importing...',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Importing...',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 444 => \n array (\n 'id' => 945,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'locale',\n 'value' => 'Locale',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Locale',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 445 => \n array (\n 'id' => 946,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'mismatches',\n 'value' => 'Mismatched Translations',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Mismatched Translations',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 446 => \n array (\n 'id' => 947,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'missing',\n 'value' => 'Missing',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Missing',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 447 => \n array (\n 'id' => 948,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'missmatched-quotes',\n 'value' => 'mismatched or missing quotes in :string attribute',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'mismatched or missing quotes in :string attribute',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 448 => \n array (\n 'id' => 949,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'movekeys',\n 'value' => 'Move Keys',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Move Keys',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 449 => \n array (\n 'id' => 950,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'preview',\n 'value' => 'Preview',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Preview',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 450 => \n array (\n 'id' => 951,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'primary-locale',\n 'value' => 'Primary',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Primary',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 451 => \n array (\n 'id' => 952,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'publish',\n 'value' => 'Publish Group',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Publish Group',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 452 => \n array (\n 'id' => 953,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'publish-all',\n 'value' => 'Publish All',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Publish All',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 453 => \n array (\n 'id' => 954,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'publishing',\n 'value' => 'Publishing...',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Publishing...',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 454 => \n array (\n 'id' => 955,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'reload-page',\n 'value' => 'Reload Page',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Reload Page',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 455 => \n array (\n 'id' => 956,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'reset-usage-info',\n 'value' => 'Reset Usage Info',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Reset Usage Info',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 456 => \n array (\n 'id' => 957,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'search',\n 'value' => 'Search',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Search',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 457 => \n array (\n 'id' => 958,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'search-done',\n 'value' => 'Done searching for translations. Source references updated, added <strong>:count</strong> new translation items.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Done searching for translations. Source references updated, added <strong>:count</strong> new translation items.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 458 => \n array (\n 'id' => 959,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'search-done-head',\n 'value' => 'Done searching for translations, found',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Done searching for translations, found',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 459 => \n array (\n 'id' => 960,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'search-done-tail',\n 'value' => 'items.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'items.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 460 => \n array (\n 'id' => 961,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'search-header',\n 'value' => 'Results found: :count',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Results found: :count',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 461 => \n array (\n 'id' => 962,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'search-translations',\n 'value' => 'Search Translations',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Search Translations',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 462 => \n array (\n 'id' => 963,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'searching',\n 'value' => 'Searching...',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Searching...',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 463 => \n array (\n 'id' => 964,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'set-usage-info',\n 'value' => 'Set Usage Info',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Set Usage Info',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 464 => \n array (\n 'id' => 965,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'show',\n 'value' => 'Show',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Show',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 465 => \n array (\n 'id' => 966,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'show-all',\n 'value' => 'All',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'All',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 466 => \n array (\n 'id' => 967,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'show-changed',\n 'value' => 'Changed',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Changed',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 467 => \n array (\n 'id' => 968,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'show-deleted',\n 'value' => 'Deleted',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Deleted',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 468 => \n array (\n 'id' => 969,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'show-empty',\n 'value' => 'Missing',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Missing',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 469 => \n array (\n 'id' => 970,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'show-matching',\n 'value' => 'Filter Keys',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Filter Keys',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 470 => \n array (\n 'id' => 971,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'show-matching-text',\n 'value' => 'key RegEx',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'key RegEx',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 471 => \n array (\n 'id' => 972,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'show-need-attention',\n 'value' => 'Need Attention',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Need Attention',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 472 => \n array (\n 'id' => 973,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'show-new',\n 'value' => 'New',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'New',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 473 => \n array (\n 'id' => 974,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'show-nonempty',\n 'value' => 'Hide Missing',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Hide Missing',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 474 => \n array (\n 'id' => 975,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'show-source-refs',\n 'value' => 'Show Source References',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Show Source References',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 475 => \n array (\n 'id' => 976,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'show-unpublished',\n 'value' => 'Unpublished',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Unpublished',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 476 => \n array (\n 'id' => 977,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'show-usage-info',\n 'value' => 'Show Usage',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Show Usage',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 477 => \n array (\n 'id' => 978,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'show-used',\n 'value' => 'Used',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Used',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 478 => \n array (\n 'id' => 979,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'source-refs-header',\n 'value' => 'Source References for',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Source References for',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 479 => \n array (\n 'id' => 980,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'src-preview',\n 'value' => 'From',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'From',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 480 => \n array (\n 'id' => 981,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'srckey',\n 'value' => 'From',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'From',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 481 => \n array (\n 'id' => 982,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'srckeys',\n 'value' => 'From Keys',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'From Keys',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 482 => \n array (\n 'id' => 983,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'srckeys-placeholder',\n 'value' => 'Add 1 key per line, with or without the group prefix',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Add 1 key per line, with or without the group prefix',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 483 => \n array (\n 'id' => 984,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'stats',\n 'value' => 'Dashboard View',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Dashboard View',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 484 => \n array (\n 'id' => 985,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'suffixed-keyops',\n 'value' => 'Suffixed Key Operations',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Suffixed Key Operations',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 485 => \n array (\n 'id' => 986,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'suffixes',\n 'value' => 'Suffixes',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Suffixes',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 486 => \n array (\n 'id' => 987,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'title-cancel-changes',\n 'value' => 'Cancel changes',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Cancel changes',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 487 => \n array (\n 'id' => 988,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'title-capitalize',\n 'value' => 'Capitalize text',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Capitalize text',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 488 => \n array (\n 'id' => 989,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'title-capitalize-first-word',\n 'value' => 'Capitalize first word',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Capitalize first word',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 489 => \n array (\n 'id' => 990,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'title-clean-html-markdown',\n 'value' => 'Clean HTML markdown',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Clean HTML markdown',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 490 => \n array (\n 'id' => 991,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'title-convert-key',\n 'value' => 'Convert translation key to text',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Convert translation key to text',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 491 => \n array (\n 'id' => 992,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'title-generate-plurals',\n 'value' => 'Generate plural forms',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Generate plural forms',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 492 => \n array (\n 'id' => 993,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'title-load-last',\n 'value' => 'Load last published/imported value',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Load last published/imported value',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 493 => \n array (\n 'id' => 994,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'title-lowercase',\n 'value' => 'Lowercase text',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Lowercase text',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 494 => \n array (\n 'id' => 995,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'title-reset-editor',\n 'value' => 'Reset editor contents',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Reset editor contents',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 495 => \n array (\n 'id' => 996,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'title-save-changes',\n 'value' => 'Save changes',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Save changes',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 496 => \n array (\n 'id' => 997,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'title-simulated-copy',\n 'value' => 'Copy text to simulated clipboard (page refresh clears contents)',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Copy text to simulated clipboard (page refresh clears contents)',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 497 => \n array (\n 'id' => 998,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'title-simulated-paste',\n 'value' => 'Paste text from simulated clipboard',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Paste text from simulated clipboard',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 498 => \n array (\n 'id' => 999,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'title-translate',\n 'value' => 'Translate',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Translate',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 499 => \n array (\n 'id' => 1000,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'total',\n 'value' => 'Total',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Total',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n ));\n \\DB::table('translations')->insert(array (\n 0 => \n array (\n 'id' => 1001,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'translating-locale',\n 'value' => 'Translate',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Translate',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 1 => \n array (\n 'id' => 1002,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'translation',\n 'value' => 'Translation',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Translation',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 2 => \n array (\n 'id' => 1003,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'translation-manager',\n 'value' => 'Translation Manager',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Translation Manager',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 3 => \n array (\n 'id' => 1004,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'translation-ops',\n 'value' => 'Translation Helpers',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Translation Helpers',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 4 => \n array (\n 'id' => 1005,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'translations',\n 'value' => 'Translations',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Translations',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 5 => \n array (\n 'id' => 1006,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'user-admin',\n 'value' => 'User Admin',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'User Admin',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 6 => \n array (\n 'id' => 1007,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'user-email',\n 'value' => 'User Email',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'User Email',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 7 => \n array (\n 'id' => 1008,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'user-id',\n 'value' => 'User ID',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'User ID',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 8 => \n array (\n 'id' => 1009,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'user-locales',\n 'value' => 'User Modifiable Locales',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'User Modifiable Locales',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 9 => \n array (\n 'id' => 1010,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'user-name',\n 'value' => 'User Name',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'User Name',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 10 => \n array (\n 'id' => 1011,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'wildcard-keyops',\n 'value' => 'Wildcard Key Operations',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Wildcard Key Operations',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 11 => \n array (\n 'id' => 1012,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'zip-all',\n 'value' => 'Zip All',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Zip All',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 12 => \n array (\n 'id' => 1013,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'translation-manager',\n 'key' => 'zip-group',\n 'value' => 'Zip Group',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Zip Group',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 13 => \n array (\n 'id' => 1014,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'accepted',\n 'value' => 'The :attribute must be accepted.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The :attribute must be accepted.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 14 => \n array (\n 'id' => 1015,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'active_url',\n 'value' => 'The :attribute is not a valid URL.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The :attribute is not a valid URL.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 15 => \n array (\n 'id' => 1016,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'after',\n 'value' => 'The :attribute must be a date after :date.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The :attribute must be a date after :date.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 16 => \n array (\n 'id' => 1017,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'after_or_equal',\n 'value' => 'The :attribute must be a date after or equal to :date.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The :attribute must be a date after or equal to :date.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 17 => \n array (\n 'id' => 1018,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'alpha',\n 'value' => 'The :attribute may only contain letters.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The :attribute may only contain letters.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 18 => \n array (\n 'id' => 1019,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'alpha_dash',\n 'value' => 'The :attribute may only contain letters, numbers, and dashes.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The :attribute may only contain letters, numbers, and dashes.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 19 => \n array (\n 'id' => 1020,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'alpha_num',\n 'value' => 'The :attribute may only contain letters and numbers.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The :attribute may only contain letters and numbers.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 20 => \n array (\n 'id' => 1021,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'array',\n 'value' => 'The :attribute must be an array.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The :attribute must be an array.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 21 => \n array (\n 'id' => 1022,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'before',\n 'value' => 'The :attribute must be a date before :date.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The :attribute must be a date before :date.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 22 => \n array (\n 'id' => 1023,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'before_or_equal',\n 'value' => 'The :attribute must be a date before or equal to :date.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The :attribute must be a date before or equal to :date.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 23 => \n array (\n 'id' => 1024,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'between.array',\n 'value' => 'The :attribute must have between :min and :max items.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The :attribute must have between :min and :max items.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 24 => \n array (\n 'id' => 1025,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'between.file',\n 'value' => 'The :attribute must be between :min and :max kilobytes.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The :attribute must be between :min and :max kilobytes.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 25 => \n array (\n 'id' => 1026,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'between.numeric',\n 'value' => 'The :attribute must be between :min and :max.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The :attribute must be between :min and :max.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 26 => \n array (\n 'id' => 1027,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'between.string',\n 'value' => 'The :attribute must be between :min and :max characters.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The :attribute must be between :min and :max characters.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 27 => \n array (\n 'id' => 1028,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'boolean',\n 'value' => 'The :attribute field must be true or false.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The :attribute field must be true or false.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 28 => \n array (\n 'id' => 1029,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'confirmed',\n 'value' => 'The :attribute confirmation does not match.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The :attribute confirmation does not match.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 29 => \n array (\n 'id' => 1030,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'date',\n 'value' => 'The :attribute is not a valid date.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The :attribute is not a valid date.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 30 => \n array (\n 'id' => 1031,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'date_format',\n 'value' => 'The :attribute does not match the format :format.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The :attribute does not match the format :format.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 31 => \n array (\n 'id' => 1032,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'different',\n 'value' => 'The :attribute and :other must be different.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The :attribute and :other must be different.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 32 => \n array (\n 'id' => 1033,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'digits',\n 'value' => 'The :attribute must be :digits digits.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The :attribute must be :digits digits.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 33 => \n array (\n 'id' => 1034,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'digits_between',\n 'value' => 'The :attribute must be between :min and :max digits.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The :attribute must be between :min and :max digits.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 34 => \n array (\n 'id' => 1035,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'dimensions',\n 'value' => 'The :attribute has invalid image dimensions.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The :attribute has invalid image dimensions.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 35 => \n array (\n 'id' => 1036,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'distinct',\n 'value' => 'The :attribute field has a duplicate value.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The :attribute field has a duplicate value.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 36 => \n array (\n 'id' => 1037,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'email',\n 'value' => 'The :attribute must be a valid email address.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The :attribute must be a valid email address.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 37 => \n array (\n 'id' => 1038,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'exists',\n 'value' => 'The selected :attribute is invalid.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The selected :attribute is invalid.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 38 => \n array (\n 'id' => 1039,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'file',\n 'value' => 'The :attribute must be a file.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The :attribute must be a file.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 39 => \n array (\n 'id' => 1040,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'filled',\n 'value' => 'The :attribute field must have a value.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The :attribute field must have a value.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 40 => \n array (\n 'id' => 1041,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'image',\n 'value' => 'The :attribute must be an image.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The :attribute must be an image.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 41 => \n array (\n 'id' => 1042,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'in',\n 'value' => 'The selected :attribute is invalid.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The selected :attribute is invalid.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 42 => \n array (\n 'id' => 1043,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'in_array',\n 'value' => 'The :attribute field does not exist in :other.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The :attribute field does not exist in :other.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 43 => \n array (\n 'id' => 1044,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'integer',\n 'value' => 'The :attribute must be an integer.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The :attribute must be an integer.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 44 => \n array (\n 'id' => 1045,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'ip',\n 'value' => 'The :attribute must be a valid IP address.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The :attribute must be a valid IP address.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 45 => \n array (\n 'id' => 1046,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'ipv4',\n 'value' => 'The :attribute must be a valid IPv4 address.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The :attribute must be a valid IPv4 address.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 46 => \n array (\n 'id' => 1047,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'ipv6',\n 'value' => 'The :attribute must be a valid IPv6 address.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The :attribute must be a valid IPv6 address.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 47 => \n array (\n 'id' => 1048,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'json',\n 'value' => 'The :attribute must be a valid JSON string.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The :attribute must be a valid JSON string.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 48 => \n array (\n 'id' => 1049,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'max.array',\n 'value' => 'The :attribute may not have more than :max items.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The :attribute may not have more than :max items.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 49 => \n array (\n 'id' => 1050,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'max.file',\n 'value' => 'The :attribute may not be greater than :max kilobytes.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The :attribute may not be greater than :max kilobytes.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 50 => \n array (\n 'id' => 1051,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'max.numeric',\n 'value' => 'The :attribute may not be greater than :max.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The :attribute may not be greater than :max.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 51 => \n array (\n 'id' => 1052,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'max.string',\n 'value' => 'The :attribute may not be greater than :max characters.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The :attribute may not be greater than :max characters.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 52 => \n array (\n 'id' => 1053,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'mimes',\n 'value' => 'The :attribute must be a file of type: :values.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The :attribute must be a file of type: :values.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 53 => \n array (\n 'id' => 1054,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'mimetypes',\n 'value' => 'The :attribute must be a file of type: :values.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The :attribute must be a file of type: :values.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 54 => \n array (\n 'id' => 1055,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'min.array',\n 'value' => 'The :attribute must have at least :min items.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The :attribute must have at least :min items.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 55 => \n array (\n 'id' => 1056,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'min.file',\n 'value' => 'The :attribute must be at least :min kilobytes.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The :attribute must be at least :min kilobytes.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 56 => \n array (\n 'id' => 1057,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'min.numeric',\n 'value' => 'The :attribute must be at least :min.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The :attribute must be at least :min.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 57 => \n array (\n 'id' => 1058,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'min.string',\n 'value' => 'The :attribute must be at least :min characters.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The :attribute must be at least :min characters.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 58 => \n array (\n 'id' => 1059,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'not_in',\n 'value' => 'The selected :attribute is invalid.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The selected :attribute is invalid.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 59 => \n array (\n 'id' => 1060,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'numeric',\n 'value' => 'The :attribute must be a number.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The :attribute must be a number.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 60 => \n array (\n 'id' => 1061,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'present',\n 'value' => 'The :attribute field must be present.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The :attribute field must be present.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 61 => \n array (\n 'id' => 1062,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'regex',\n 'value' => 'The :attribute format is invalid.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The :attribute format is invalid.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 62 => \n array (\n 'id' => 1063,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'required',\n 'value' => 'The :attribute field is required.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The :attribute field is required.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 63 => \n array (\n 'id' => 1064,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'required_if',\n 'value' => 'The :attribute field is required when :other is :value.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The :attribute field is required when :other is :value.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 64 => \n array (\n 'id' => 1065,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'required_unless',\n 'value' => 'The :attribute field is required unless :other is in :values.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The :attribute field is required unless :other is in :values.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 65 => \n array (\n 'id' => 1066,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'required_with',\n 'value' => 'The :attribute field is required when :values is present.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The :attribute field is required when :values is present.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 66 => \n array (\n 'id' => 1067,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'required_with_all',\n 'value' => 'The :attribute field is required when :values is present.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The :attribute field is required when :values is present.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 67 => \n array (\n 'id' => 1068,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'required_without',\n 'value' => 'The :attribute field is required when :values is not present.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The :attribute field is required when :values is not present.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 68 => \n array (\n 'id' => 1069,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'required_without_all',\n 'value' => 'The :attribute field is required when none of :values are present.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The :attribute field is required when none of :values are present.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 69 => \n array (\n 'id' => 1070,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'same',\n 'value' => 'The :attribute and :other must match.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The :attribute and :other must match.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 70 => \n array (\n 'id' => 1071,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'size.array',\n 'value' => 'The :attribute must contain :size items.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The :attribute must contain :size items.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 71 => \n array (\n 'id' => 1072,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'size.file',\n 'value' => 'The :attribute must be :size kilobytes.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The :attribute must be :size kilobytes.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 72 => \n array (\n 'id' => 1073,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'size.numeric',\n 'value' => 'The :attribute must be :size.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The :attribute must be :size.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 73 => \n array (\n 'id' => 1074,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'size.string',\n 'value' => 'The :attribute must be :size characters.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The :attribute must be :size characters.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 74 => \n array (\n 'id' => 1075,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'string',\n 'value' => 'The :attribute must be a string.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The :attribute must be a string.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 75 => \n array (\n 'id' => 1076,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'timezone',\n 'value' => 'The :attribute must be a valid zone.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The :attribute must be a valid zone.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 76 => \n array (\n 'id' => 1077,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'unique',\n 'value' => 'The :attribute has already been taken.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The :attribute has already been taken.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 77 => \n array (\n 'id' => 1078,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'uploaded',\n 'value' => 'The :attribute failed to upload.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The :attribute failed to upload.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 78 => \n array (\n 'id' => 1079,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'url',\n 'value' => 'The :attribute format is invalid.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The :attribute format is invalid.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 79 => \n array (\n 'id' => 1080,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'custom.attribute-name.rule-name',\n 'value' => 'custom-message',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'custom-message',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 80 => \n array (\n 'id' => 1081,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'auth',\n 'key' => 'failed',\n 'value' => 'These credentials do not match our records.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Zugangsdaten nicht gefunden.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 81 => \n array (\n 'id' => 1082,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'auth',\n 'key' => 'throttle',\n 'value' => 'Too many login attempts. Please try again in :seconds seconds.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Zuviele Anmeldeversuche. Bitte warte :seconds Sekunden.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 82 => \n array (\n 'id' => 1083,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_basket',\n 'key' => 'contact_type',\n 'value' => 'Wie möchtest Du kontaktiert werden?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Wie möchtest Du kontaktiert werden?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 83 => \n array (\n 'id' => 1084,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_basket',\n 'key' => 'contactmessage',\n 'value' => 'Per Nachricht',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Per Nachricht',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 84 => \n array (\n 'id' => 1085,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_basket',\n 'key' => 'description',\n 'value' => 'Beschreibung',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Beschreibung',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 85 => \n array (\n 'id' => 1086,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_basket',\n 'key' => 'fetchstate',\n 'value' => 'Hat alles gut geklappt?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Hat alles gut geklappt?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 86 => \n array (\n 'id' => 1087,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_basket',\n 'key' => 'food_art',\n 'value' => 'Was trifft auf die Lebensmittel zu?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Was trifft auf die Lebensmittel zu?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 87 => \n array (\n 'id' => 1088,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_basket',\n 'key' => 'food_type',\n 'value' => 'Welche Arten von Lebensmitteln sind dabei?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Welche Arten von Lebensmitteln sind dabei?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 88 => \n array (\n 'id' => 1089,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_basket',\n 'key' => 'no_requests',\n 'value' => 'bisher keine Anfragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'bisher keine Anfragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 89 => \n array (\n 'id' => 1090,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_basket',\n 'key' => 'one_request',\n 'value' => 'eine Anfrage',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'eine Anfrage',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 90 => \n array (\n 'id' => 1091,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_basket',\n 'key' => 'picture-choose',\n 'value' => 'Datei wählen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Datei wählen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 91 => \n array (\n 'id' => 1092,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_basket',\n 'key' => 'picture-desc',\n 'value' => 'Füge dem Essenskorb ein Foto hinzu',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Füge dem Essenskorb ein Foto hinzu',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 92 => \n array (\n 'id' => 1093,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_basket',\n 'key' => 'req_count',\n 'value' => ':count Anfragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => ':count Anfragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 93 => \n array (\n 'id' => 1094,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_basket',\n 'key' => 'tel',\n 'value' => 'Festnetztelefon',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Festnetztelefon',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 94 => \n array (\n 'id' => 1095,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_basket',\n 'key' => 'weight',\n 'value' => 'geschätztes Gewicht',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'geschätztes Gewicht',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 95 => \n array (\n 'id' => 1096,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bcard',\n 'key' => 'bcard_generator',\n 'value' => 'Visitenkarten Generator',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Visitenkarten Generator',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 96 => \n array (\n 'id' => 1097,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bcard',\n 'key' => 'bcard_generator_desc',\n 'value' => 'Hier kannst Du Dir Deine persönlichen Visitenkarten erstellen.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Hier kannst Du Dir Deine persönlichen Visitenkarten erstellen.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 97 => \n array (\n 'id' => 1098,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bcard',\n 'key' => 'bot_for',\n 'value' => 'Botschafter für :var',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Botschafter für :var',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 98 => \n array (\n 'id' => 1099,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bcard',\n 'key' => 'bot_for_w',\n 'value' => 'Botschafterin für :var',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Botschafterin für :var',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 99 => \n array (\n 'id' => 1100,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bcard',\n 'key' => 'download_card',\n 'value' => 'Visitenkarten Herunterladen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Visitenkarten Herunterladen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 100 => \n array (\n 'id' => 1101,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bcard',\n 'key' => 'fs_for',\n 'value' => 'Foodsaver für :var',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Foodsaver für :var',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 101 => \n array (\n 'id' => 1102,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bcard',\n 'key' => 'fs_for_w',\n 'value' => 'Foodsaverin für :var',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Foodsaverin für :var',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 102 => \n array (\n 'id' => 1103,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bcard',\n 'key' => 'generation_success',\n 'value' => 'Visitenkarten erfolgreich generiert',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Visitenkarten erfolgreich generiert',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 103 => \n array (\n 'id' => 1104,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bcard',\n 'key' => 'opt',\n 'value' => 'Optionen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Optionen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 104 => \n array (\n 'id' => 1105,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bcard',\n 'key' => 'opt_desc',\n 'value' => 'Wähle hier für welchen Bezirk bzw. für welche Rolle Du Deine Visitenkarte erstellen möchtest.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Wähle hier für welchen Bezirk bzw. für welche Rolle Du Deine Visitenkarte erstellen möchtest.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 105 => \n array (\n 'id' => 1106,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bcard',\n 'key' => 'should_choose_option',\n 'value' => 'Du musst eine Option wählen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Du musst eine Option wählen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 106 => \n array (\n 'id' => 1107,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bell',\n 'key' => 'betrieb_fetch',\n 'value' => ':count Unbestätigte Abholzeiten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => ':count Unbestätigte Abholzeiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 107 => \n array (\n 'id' => 1108,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bell',\n 'key' => 'betrieb_fetch_title',\n 'value' => ':betrieb',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => ':betrieb',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 108 => \n array (\n 'id' => 1109,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bell',\n 'key' => 'blog_new_check',\n 'value' => ':title',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => ':title',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 109 => \n array (\n 'id' => 1110,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bell',\n 'key' => 'blog_new_check_title',\n 'value' => 'Neuer Blog Artikel',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Neuer Blog Artikel',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 110 => \n array (\n 'id' => 1111,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bell',\n 'key' => 'buddy_request',\n 'value' => ':name kennt Dich!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => ':name kennt Dich!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 111 => \n array (\n 'id' => 1112,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bell',\n 'key' => 'buddy_request_title',\n 'value' => 'Kennst Du :name?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Kennst Du :name?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 112 => \n array (\n 'id' => 1113,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bell',\n 'key' => 'forum_answer',\n 'value' => ':user hat Dir geantwortet',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => ':user hat Dir geantwortet',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 113 => \n array (\n 'id' => 1114,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bell',\n 'key' => 'forum_answer_title',\n 'value' => ':forum',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => ':forum',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 114 => \n array (\n 'id' => 1115,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bell',\n 'key' => 'fs_sleepmode',\n 'value' => ':name :nachname ist jetzt inaktiv',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => ':name :nachname ist jetzt inaktiv',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 115 => \n array (\n 'id' => 1116,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bell',\n 'key' => 'fs_sleepmode_title',\n 'value' => 'Neue Schlafmütze',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Neue Schlafmütze',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 116 => \n array (\n 'id' => 1117,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bell',\n 'key' => 'ft_update',\n 'value' => ':teaser',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => ':teaser',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 117 => \n array (\n 'id' => 1118,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bell',\n 'key' => 'ft_update_title',\n 'value' => ':name',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => ':name',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 118 => \n array (\n 'id' => 1119,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bell',\n 'key' => 'new_foodsaver',\n 'value' => 'Braucht Einführungsabholungen.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Braucht Einführungsabholungen.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 119 => \n array (\n 'id' => 1120,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bell',\n 'key' => 'new_foodsaver_title',\n 'value' => ':name neu in :bezirk',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => ':name neu in :bezirk',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 120 => \n array (\n 'id' => 1121,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bell',\n 'key' => 'new_foodsaver_verified',\n 'value' => 'Ist schon verifiziert, kann loslegen!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Ist schon verifiziert, kann loslegen!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 121 => \n array (\n 'id' => 1122,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bell',\n 'key' => 'new_quiz_comment',\n 'value' => ':comment',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => ':comment',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 122 => \n array (\n 'id' => 1123,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bell',\n 'key' => 'new_quiz_comment_title',\n 'value' => 'Neuer Quiz-Kommentar',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Neuer Quiz-Kommentar',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 123 => \n array (\n 'id' => 1124,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bell',\n 'key' => 'no_bells',\n 'value' => 'Keine Benachrichtigungen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Keine Benachrichtigungen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 124 => \n array (\n 'id' => 1125,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bell',\n 'key' => 'passgen_failed',\n 'value' => 'Bitte lade ein Foto, dann wirds klappen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Bitte lade ein Foto, dann wirds klappen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 125 => \n array (\n 'id' => 1126,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bell',\n 'key' => 'passgen_failed_title',\n 'value' => 'Dein Ausweis konnte nicht erstellt werden',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Dein Ausweis konnte nicht erstellt werden',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 126 => \n array (\n 'id' => 1127,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bell',\n 'key' => 'sharepoint_activate',\n 'value' => ':name wurde eingetragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => ':name wurde eingetragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 127 => \n array (\n 'id' => 1128,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bell',\n 'key' => 'sharepoint_activate_title',\n 'value' => 'Neuer Fair-Teiler in :bezirk',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Neuer Fair-Teiler in :bezirk',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 128 => \n array (\n 'id' => 1129,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bell',\n 'key' => 'store_cr_times',\n 'value' => 'Abholzeiten haben sich geändert',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Abholzeiten haben sich geändert',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 129 => \n array (\n 'id' => 1130,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bell',\n 'key' => 'store_cr_times_title',\n 'value' => ':name',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => ':name',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 130 => \n array (\n 'id' => 1131,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bell',\n 'key' => 'store_new',\n 'value' => ':name wurde eingetragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => ':name wurde eingetragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 131 => \n array (\n 'id' => 1132,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bell',\n 'key' => 'store_new_request',\n 'value' => 'Anfrage für :name',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Anfrage für :name',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 132 => \n array (\n 'id' => 1133,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bell',\n 'key' => 'store_new_request_title',\n 'value' => 'Neue Teamanfrage',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Neue Teamanfrage',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 133 => \n array (\n 'id' => 1134,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bell',\n 'key' => 'store_new_title',\n 'value' => 'Neuer Betrieb',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Neuer Betrieb',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 134 => \n array (\n 'id' => 1135,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bell',\n 'key' => 'store_request_accept',\n 'value' => 'Du wurdest in das Team aufgenommen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Du wurdest in das Team aufgenommen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 135 => \n array (\n 'id' => 1136,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bell',\n 'key' => 'store_request_accept_title',\n 'value' => ':name',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => ':name',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 136 => \n array (\n 'id' => 1137,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bell',\n 'key' => 'store_request_accept_wait',\n 'value' => 'Du bist nun auf der Springer- / Warteliste!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Du bist nun auf der Springer- / Warteliste!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 137 => \n array (\n 'id' => 1138,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bell',\n 'key' => 'store_request_accept_wait_title',\n 'value' => ':name',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => ':name',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 138 => \n array (\n 'id' => 1139,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bell',\n 'key' => 'store_request_deny',\n 'value' => 'Das Team ist leider schon zu voll!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Das Team ist leider schon zu voll!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 139 => \n array (\n 'id' => 1140,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bell',\n 'key' => 'store_request_deny_title',\n 'value' => ':name',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => ':name',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 140 => \n array (\n 'id' => 1141,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bell',\n 'key' => 'store_wallpost',\n 'value' => 'Neuen Eintrag auf der Pinnwand!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Neuen Eintrag auf der Pinnwand!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 141 => \n array (\n 'id' => 1142,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bell',\n 'key' => 'store_wallpost_title',\n 'value' => ':name',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => ':name',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 142 => \n array (\n 'id' => 1143,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_betrieb',\n 'key' => 'abholmenge',\n 'value' => 'Wie viel Kilo werden pro Abholung ungefähr mitgenommen?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Wie viel Kilo werden pro Abholung ungefähr mitgenommen?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 143 => \n array (\n 'id' => 1144,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_betrieb',\n 'key' => 'accept_request',\n 'value' => ':var ist jetzt im Team',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => ':var ist jetzt im Team',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 144 => \n array (\n 'id' => 1145,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_betrieb',\n 'key' => 'ansprechpartner',\n 'value' => 'Betriebsansprechpartner (Filialleiter etc.)',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Betriebsansprechpartner (Filialleiter etc.)',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 145 => \n array (\n 'id' => 1146,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_betrieb',\n 'key' => 'begin',\n 'value' => 'Beginn der Kooperation',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Beginn der Kooperation',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 146 => \n array (\n 'id' => 1147,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_betrieb',\n 'key' => 'besonderheiten',\n 'value' => 'Besonderheiten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Besonderheiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 147 => \n array (\n 'id' => 1148,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_betrieb',\n 'key' => 'betrieb',\n 'value' => 'Betrieb',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Betrieb',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 148 => \n array (\n 'id' => 1149,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_betrieb',\n 'key' => 'betrieb_add_success',\n 'value' => 'Lebensmittelspenderbetrieb wurde gespeichert',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Lebensmittelspenderbetrieb wurde gespeichert',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 149 => \n array (\n 'id' => 1150,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_betrieb',\n 'key' => 'betrieb_added',\n 'value' => 'hat den Betrieb am :var eingetragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'hat den Betrieb am :var eingetragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 150 => \n array (\n 'id' => 1151,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_betrieb',\n 'key' => 'betrieb_bread',\n 'value' => 'Spenderbetriebe',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Spenderbetriebe',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 151 => \n array (\n 'id' => 1152,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_betrieb',\n 'key' => 'betrieb_edit_success',\n 'value' => 'Änderungen wurden gespeichert',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Änderungen wurden gespeichert',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 152 => \n array (\n 'id' => 1153,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_betrieb',\n 'key' => 'betrieb_empty',\n 'value' => 'Bisher wurde kein Betrieb eingetragen.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Bisher wurde kein Betrieb eingetragen.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 153 => \n array (\n 'id' => 1154,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_betrieb',\n 'key' => 'betrieb_kategorie_id',\n 'value' => 'Kategorie',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Kategorie',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 154 => \n array (\n 'id' => 1155,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_betrieb',\n 'key' => 'betrieb_status_id',\n 'value' => 'Status',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Status',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 155 => \n array (\n 'id' => 1156,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_betrieb',\n 'key' => 'bezirk_id',\n 'value' => 'Bezirk',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Bezirk',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 156 => \n array (\n 'id' => 1157,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_betrieb',\n 'key' => 'bread_betrieb',\n 'value' => 'Alle Betriebe',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Alle Betriebe',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 157 => \n array (\n 'id' => 1158,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_betrieb',\n 'key' => 'bread_edit_betrieb',\n 'value' => 'Betrieb bearbeiten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Betrieb bearbeiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 158 => \n array (\n 'id' => 1159,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_betrieb',\n 'key' => 'bread_new_betrieb',\n 'value' => 'neuen Betrieb eintragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'neuen Betrieb eintragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 159 => \n array (\n 'id' => 1160,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_betrieb',\n 'key' => 'delete_sure',\n 'value' => 'Soll :var wirklich unwideruflich gelöscht werden?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Soll :var wirklich unwideruflich gelöscht werden?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 160 => \n array (\n 'id' => 1161,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_betrieb',\n 'key' => 'fax',\n 'value' => 'Fax',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Fax',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 161 => \n array (\n 'id' => 1162,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_betrieb',\n 'key' => 'fetch_history',\n 'value' => 'Abholungshistorie',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Abholungshistorie',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 162 => \n array (\n 'id' => 1163,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_betrieb',\n 'key' => 'fetchercount',\n 'value' => 'Anzahl der Abholer/innen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Anzahl der Abholer/innen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 163 => \n array (\n 'id' => 1164,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_betrieb',\n 'key' => 'first_post',\n 'value' => 'Erster Pinnwandeintrag',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Erster Pinnwandeintrag',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 164 => \n array (\n 'id' => 1165,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_betrieb',\n 'key' => 'foodsaver',\n 'value' => 'Verantwortliche Foodsaver',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Verantwortliche Foodsaver',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 165 => \n array (\n 'id' => 1166,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_betrieb',\n 'key' => 'hsnr',\n 'value' => 'Hausnummer',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Hausnummer',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 166 => \n array (\n 'id' => 1167,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_betrieb',\n 'key' => 'kette_id',\n 'value' => 'Betriebs-Kette',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Betriebs-Kette',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 167 => \n array (\n 'id' => 1168,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_betrieb',\n 'key' => 'lebensmittel',\n 'value' => 'Welche Lebensmittel dürfen abgeholt werden?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Welche Lebensmittel dürfen abgeholt werden?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 168 => \n array (\n 'id' => 1169,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_betrieb',\n 'key' => 'max_3_leader',\n 'value' => 'Es darf maximal 3 Verantwortliche für eine Filiale geben.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Es darf maximal 3 Verantwortliche für eine Filiale geben.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 169 => \n array (\n 'id' => 1170,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_betrieb',\n 'key' => 'neu_betrieb',\n 'value' => 'Neuen Betrieb eintragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Neuen Betrieb eintragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 170 => \n array (\n 'id' => 1171,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_betrieb',\n 'key' => 'no_member',\n 'value' => 'Du bist gar kein Mitglied in diesem Betrieb',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Du bist gar kein Mitglied in diesem Betrieb',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 171 => \n array (\n 'id' => 1172,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_betrieb',\n 'key' => 'plz_id',\n 'value' => 'plz',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'plz',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 172 => \n array (\n 'id' => 1173,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_betrieb',\n 'key' => 'position_search',\n 'value' => 'Adresssuche',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Adresssuche',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 173 => \n array (\n 'id' => 1174,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_betrieb',\n 'key' => 'prefetchtime',\n 'value' => 'Wie viele Wochen im Voraus können sich Foodsaver eintragen?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Wie viele Wochen im Voraus können sich Foodsaver eintragen?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 174 => \n array (\n 'id' => 1175,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_betrieb',\n 'key' => 'presse',\n 'value' => 'Ist der Betrieb/Laden/Verein bereit, bei der Presse und foodsharing.de genannt zu werden?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Ist der Betrieb/Laden/Verein bereit, bei der Presse und foodsharing.de genannt zu werden?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 175 => \n array (\n 'id' => 1176,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_betrieb',\n 'key' => 'public_info',\n 'value' => 'Öffentliche Infos zum Betrieb',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Öffentliche Infos zum Betrieb',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 176 => \n array (\n 'id' => 1177,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_betrieb',\n 'key' => 'public_time',\n 'value' => 'Ungefähre Tageszeit zum Abholen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Ungefähre Tageszeit zum Abholen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 177 => \n array (\n 'id' => 1178,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_betrieb',\n 'key' => 'quiz_dropped',\n 'value' => ':var ist jetzt nicht mehr im Team',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => ':var ist jetzt nicht mehr im Team',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 178 => \n array (\n 'id' => 1179,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_betrieb',\n 'key' => 'signout_error_admin',\n 'value' => 'Du bist verantwortlich für diesen Betrieb und kannst Dich nicht löschen!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Du bist verantwortlich für diesen Betrieb und kannst Dich nicht löschen!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 179 => \n array (\n 'id' => 1180,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_betrieb',\n 'key' => 'status_date',\n 'value' => 'letzte Statisänderung',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'letzte Statisänderung',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 180 => \n array (\n 'id' => 1181,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_betrieb',\n 'key' => 'sticker',\n 'value' => 'Ist der Betrieb/Laden/Verein etc. gewillt, einen Sticker beim Eingang oder anderswo sichtbar aufzuhängen?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Ist der Betrieb/Laden/Verein etc. gewillt, einen Sticker beim Eingang oder anderswo sichtbar aufzuhängen?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 181 => \n array (\n 'id' => 1182,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_betrieb',\n 'key' => 'str',\n 'value' => 'Straße',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Straße',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 182 => \n array (\n 'id' => 1183,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_betrieb',\n 'key' => 'ueberzeugungsarbeit',\n 'value' => 'War es einfach, eine/n Verantwortliche/n zu überzeugen, mit foodsharing zu kooperieren?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'War es einfach, eine/n Verantwortliche/n zu überzeugen, mit foodsharing zu kooperieren?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 183 => \n array (\n 'id' => 1184,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bezirk',\n 'key' => 'bezirk_signout',\n 'value' => ':var Gruppe verlassen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => ':var Gruppe verlassen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 184 => \n array (\n 'id' => 1185,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bezirk',\n 'key' => 'body',\n 'value' => 'Nachricht',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Nachricht',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 185 => \n array (\n 'id' => 1186,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bezirk',\n 'key' => 'bot_forum',\n 'value' => 'Botschafterforum',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Botschafterforum',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 186 => \n array (\n 'id' => 1187,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bezirk',\n 'key' => 'compose_new_theme',\n 'value' => 'Neues Thema verfassen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Neues Thema verfassen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 187 => \n array (\n 'id' => 1188,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bezirk',\n 'key' => 'dateend',\n 'value' => 'Enddatum',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Enddatum',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 188 => \n array (\n 'id' => 1189,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bezirk',\n 'key' => 'delete_post',\n 'value' => 'Beitrag löschen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Beitrag löschen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 189 => \n array (\n 'id' => 1190,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bezirk',\n 'key' => 'delete_sure',\n 'value' => 'Soll der Beitrag wirklich gelöscht werden?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Soll der Beitrag wirklich gelöscht werden?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 190 => \n array (\n 'id' => 1191,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bezirk',\n 'key' => 'delete_sure_title',\n 'value' => 'Wirklich löschen?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Wirklich löschen?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 191 => \n array (\n 'id' => 1192,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bezirk',\n 'key' => 'desc_desc',\n 'value' => 'Was ist das für ein Event?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Was ist das für ein Event?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 192 => \n array (\n 'id' => 1193,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bezirk',\n 'key' => 'description',\n 'value' => 'Beschreibung',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Beschreibung',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 193 => \n array (\n 'id' => 1194,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bezirk',\n 'key' => 'empty_forum',\n 'value' => 'Noch keine Themen gepostet',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Noch keine Themen gepostet',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 194 => \n array (\n 'id' => 1195,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bezirk',\n 'key' => 'forum',\n 'value' => 'Forum',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Forum',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 195 => \n array (\n 'id' => 1196,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bezirk',\n 'key' => 'list_fairteiler',\n 'value' => 'Alle Fair-Teiler in :var',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Alle Fair-Teiler in :var',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 196 => \n array (\n 'id' => 1197,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bezirk',\n 'key' => 'location_name',\n 'value' => 'Veranstaltungsort',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Veranstaltungsort',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 197 => \n array (\n 'id' => 1198,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bezirk',\n 'key' => 'mumble_room',\n 'value' => 'In welchem mumble Konferenzraum treffen wir uns?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'In welchem mumble Konferenzraum treffen wir uns?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 198 => \n array (\n 'id' => 1199,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bezirk',\n 'key' => 'new_event',\n 'value' => 'Neue/n Termin/Veranstaltung eintragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Neue/n Termin/Veranstaltung eintragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 199 => \n array (\n 'id' => 1200,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bezirk',\n 'key' => 'new_fairteiler',\n 'value' => 'Neuer Fair-Teiler',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Neuer Fair-Teiler',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 200 => \n array (\n 'id' => 1201,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bezirk',\n 'key' => 'no_events_posted',\n 'value' => 'Noch keine Events vorhanden',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Noch keine Events vorhanden',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 201 => \n array (\n 'id' => 1202,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bezirk',\n 'key' => 'no_fairteiler_available',\n 'value' => 'Noch keine Fair-Teiler eingetragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Noch keine Fair-Teiler eingetragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 202 => \n array (\n 'id' => 1203,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bezirk',\n 'key' => 'offline',\n 'value' => 'Ganz normal im echten Leben',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Ganz normal im echten Leben',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 203 => \n array (\n 'id' => 1204,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bezirk',\n 'key' => 'older_themes',\n 'value' => 'ältere Themen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'ältere Themen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 204 => \n array (\n 'id' => 1205,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bezirk',\n 'key' => 'online',\n 'value' => 'Multilokal auf mumble.lebensmittelretten.de',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Multilokal auf mumble.lebensmittelretten.de',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 205 => \n array (\n 'id' => 1206,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bezirk',\n 'key' => 'online_type',\n 'value' => 'Findet das Event offline oder online auf unserem Mumble-Server statt?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Findet das Event offline oder online auf unserem Mumble-Server statt?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 206 => \n array (\n 'id' => 1207,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bezirk',\n 'key' => 'post_could_not_saved',\n 'value' => 'Post konnte nicht gespeichert werden.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Post konnte nicht gespeichert werden.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 207 => \n array (\n 'id' => 1208,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bezirk',\n 'key' => 'signout',\n 'value' => 'Austragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Austragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 208 => \n array (\n 'id' => 1209,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bezirk',\n 'key' => 'signout_sure',\n 'value' => 'Möchtest Du Dich wirklich die Gruppe \":var\" verlassen?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Möchtest Du Dich wirklich die Gruppe \":var\" verlassen?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 209 => \n array (\n 'id' => 1210,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bezirk',\n 'key' => 'signout_sure_title',\n 'value' => 'Bist Du sicher?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Bist Du sicher?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 210 => \n array (\n 'id' => 1211,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bezirk',\n 'key' => 'sure',\n 'value' => 'Ja, ich bin mir sicher.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Ja, ich bin mir sicher.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 211 => \n array (\n 'id' => 1212,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_bezirk',\n 'key' => 'title',\n 'value' => 'Titel',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:23',\n 'saved_value' => 'Titel',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 212 => \n array (\n 'id' => 1213,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_blog',\n 'key' => 'article',\n 'value' => 'Artikel',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Artikel',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 213 => \n array (\n 'id' => 1214,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_blog',\n 'key' => 'bezirk_id',\n 'value' => 'Für welche Region ist der Artikel relevant?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Für welche Region ist der Artikel relevant?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 214 => \n array (\n 'id' => 1215,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_blog',\n 'key' => 'blog_bread',\n 'value' => 'Blog',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Blog',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 215 => \n array (\n 'id' => 1216,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_blog',\n 'key' => 'blog_entry_add_success',\n 'value' => 'Artikel wurde gespeichert',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Artikel wurde gespeichert',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 216 => \n array (\n 'id' => 1217,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_blog',\n 'key' => 'blog_entry_bread',\n 'value' => 'Alle Blog Eintr&auml;ge',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Alle Blog Eintr&auml;ge',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 217 => \n array (\n 'id' => 1218,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_blog',\n 'key' => 'blog_entry_deleted',\n 'value' => 'Artikel gel&ouml;scht!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Artikel gel&ouml;scht!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 218 => \n array (\n 'id' => 1219,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_blog',\n 'key' => 'blog_entry_edit_success',\n 'value' => '&Auml;nderungen wurden gespeichert!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => '&Auml;nderungen wurden gespeichert!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 219 => \n array (\n 'id' => 1220,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_blog',\n 'key' => 'blog_entry_empty',\n 'value' => 'Bisher sind keine Eintr&auml;ge vorhanden.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Bisher sind keine Eintr&auml;ge vorhanden.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 220 => \n array (\n 'id' => 1221,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_blog',\n 'key' => 'body',\n 'value' => 'Inhalt',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Inhalt',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 221 => \n array (\n 'id' => 1222,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_blog',\n 'key' => 'bread_blog_entry',\n 'value' => 'Alle Blog Eintr&auml;ge',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Alle Blog Eintr&auml;ge',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 222 => \n array (\n 'id' => 1223,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_blog',\n 'key' => 'bread_edit_blog_entry',\n 'value' => 'Blog Eintrag bearbeiten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Blog Eintrag bearbeiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 223 => \n array (\n 'id' => 1224,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_blog',\n 'key' => 'bread_new_blog_entry',\n 'value' => 'neuen Artikel schreiben',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'neuen Artikel schreiben',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 224 => \n array (\n 'id' => 1225,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_blog',\n 'key' => 'delete_sure',\n 'value' => 'Soll :var wirklich unwideruflich gel&ouml;scht werden?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Soll :var wirklich unwideruflich gel&ouml;scht werden?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 225 => \n array (\n 'id' => 1226,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_blog',\n 'key' => 'edit_article',\n 'value' => 'Atikel bearbeiten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Atikel bearbeiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 226 => \n array (\n 'id' => 1227,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_blog',\n 'key' => 'foodsaver_id',\n 'value' => 'foodsaver',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'foodsaver',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 227 => \n array (\n 'id' => 1228,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_blog',\n 'key' => 'manage_blog',\n 'value' => 'Blog Einträge verwalten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Blog Einträge verwalten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 228 => \n array (\n 'id' => 1229,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_blog',\n 'key' => 'name',\n 'value' => 'Titel',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Titel',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 229 => \n array (\n 'id' => 1230,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_blog',\n 'key' => 'neu_blog_entry',\n 'value' => 'neuen Artikel schreiben',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'neuen Artikel schreiben',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 230 => \n array (\n 'id' => 1231,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_blog',\n 'key' => 'new_article',\n 'value' => 'Neuer Artikel',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Neuer Artikel',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 231 => \n array (\n 'id' => 1232,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_blog',\n 'key' => 'news',\n 'value' => 'News aus der Foodsharing-Welt',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'News aus der Foodsharing-Welt',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 232 => \n array (\n 'id' => 1233,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_blog',\n 'key' => 'off_label',\n 'value' => 'inaktiv',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'inaktiv',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 233 => \n array (\n 'id' => 1234,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_blog',\n 'key' => 'on_label',\n 'value' => 'veröffentlicht',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'veröffentlicht',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 234 => \n array (\n 'id' => 1235,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_blog',\n 'key' => 'status',\n 'value' => 'Status',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Status',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 235 => \n array (\n 'id' => 1236,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_blog',\n 'key' => 'status_0',\n 'value' => 'inaktiv',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'inaktiv',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 236 => \n array (\n 'id' => 1237,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_blog',\n 'key' => 'status_1',\n 'value' => 'veröffentlicht',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'veröffentlicht',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 237 => \n array (\n 'id' => 1238,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_blog',\n 'key' => 'teaser',\n 'value' => 'Teaser',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Teaser',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 238 => \n array (\n 'id' => 1239,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_blog',\n 'key' => 'time',\n 'value' => 'time',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'time',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 239 => \n array (\n 'id' => 1240,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_blog_entry',\n 'key' => 'bezirk_id',\n 'value' => 'bezirk',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'bezirk',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 240 => \n array (\n 'id' => 1241,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_blog_entry',\n 'key' => 'blog_entry_add_success',\n 'value' => 'Artikel wurde gespeichert',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Artikel wurde gespeichert',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 241 => \n array (\n 'id' => 1242,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_blog_entry',\n 'key' => 'blog_entry_bread',\n 'value' => 'Alle Blog Eintr&auml;ge',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Alle Blog Eintr&auml;ge',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 242 => \n array (\n 'id' => 1243,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_blog_entry',\n 'key' => 'blog_entry_deleted',\n 'value' => 'Artikel gel&ouml;scht!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Artikel gel&ouml;scht!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 243 => \n array (\n 'id' => 1244,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_blog_entry',\n 'key' => 'blog_entry_edit_success',\n 'value' => '&Auml;nderungen wurden gespeichert!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => '&Auml;nderungen wurden gespeichert!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 244 => \n array (\n 'id' => 1245,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_blog_entry',\n 'key' => 'blog_entry_empty',\n 'value' => 'Bisher sind keine Eintr&auml;ge vorhanden.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Bisher sind keine Eintr&auml;ge vorhanden.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 245 => \n array (\n 'id' => 1246,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_blog_entry',\n 'key' => 'body',\n 'value' => 'Inhalt',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Inhalt',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 246 => \n array (\n 'id' => 1247,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_blog_entry',\n 'key' => 'bread_blog_entry',\n 'value' => 'Alle Blog Eintr&auml;ge',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Alle Blog Eintr&auml;ge',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 247 => \n array (\n 'id' => 1248,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_blog_entry',\n 'key' => 'bread_edit_blog_entry',\n 'value' => 'Blog Eintrag bearbeiten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Blog Eintrag bearbeiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 248 => \n array (\n 'id' => 1249,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_blog_entry',\n 'key' => 'bread_new_blog_entry',\n 'value' => 'neuen Artikel schreiben',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'neuen Artikel schreiben',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 249 => \n array (\n 'id' => 1250,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_blog_entry',\n 'key' => 'delete_sure',\n 'value' => 'Soll :var wirklich unwideruflich gel&ouml;scht werden?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Soll :var wirklich unwideruflich gel&ouml;scht werden?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 250 => \n array (\n 'id' => 1251,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_blog_entry',\n 'key' => 'foodsaver_id',\n 'value' => 'foodsaver',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'foodsaver',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 251 => \n array (\n 'id' => 1252,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_blog_entry',\n 'key' => 'name',\n 'value' => 'Titel',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Titel',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 252 => \n array (\n 'id' => 1253,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_blog_entry',\n 'key' => 'neu_blog_entry',\n 'value' => 'neuen Artikel schreiben',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'neuen Artikel schreiben',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 253 => \n array (\n 'id' => 1254,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_blog_entry',\n 'key' => 'teaser',\n 'value' => 'Teaser',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Teaser',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 254 => \n array (\n 'id' => 1255,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_blog_entry',\n 'key' => 'time',\n 'value' => 'time',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'time',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 255 => \n array (\n 'id' => 1256,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_content',\n 'key' => 'body',\n 'value' => 'Inhalt',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Inhalt',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 256 => \n array (\n 'id' => 1257,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_content',\n 'key' => 'bread_content',\n 'value' => 'Alles Seiten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Alles Seiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 257 => \n array (\n 'id' => 1258,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_content',\n 'key' => 'bread_edit_content',\n 'value' => 'Seite bearbeiten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Seite bearbeiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 258 => \n array (\n 'id' => 1259,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_content',\n 'key' => 'bread_new_content',\n 'value' => 'neue Seite hinzufügen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'neue Seite hinzufügen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 259 => \n array (\n 'id' => 1260,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_content',\n 'key' => 'content_add_success',\n 'value' => 'Seite wurde angelegt',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Seite wurde angelegt',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 260 => \n array (\n 'id' => 1261,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_content',\n 'key' => 'content_bread',\n 'value' => 'Öffentliche Seiten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Öffentliche Seiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 261 => \n array (\n 'id' => 1262,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_content',\n 'key' => 'content_edit_success',\n 'value' => 'Seite wurde gespeichert!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Seite wurde gespeichert!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 262 => \n array (\n 'id' => 1263,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_content',\n 'key' => 'content_empty',\n 'value' => 'Bisher wurde keine Seite eingetragen.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Bisher wurde keine Seite eingetragen.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 263 => \n array (\n 'id' => 1264,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_content',\n 'key' => 'delete_sure',\n 'value' => 'Soll :var wirklich gel&ouml;scht werden?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Soll :var wirklich gel&ouml;scht werden?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 264 => \n array (\n 'id' => 1265,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_content',\n 'key' => 'last_mod',\n 'value' => 'last_mod',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'last_mod',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 265 => \n array (\n 'id' => 1266,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_content',\n 'key' => 'name',\n 'value' => 'Eindeutiger Name',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Eindeutiger Name',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 266 => \n array (\n 'id' => 1267,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_content',\n 'key' => 'neu_content',\n 'value' => 'Neue Seite anlegen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Neue Seite anlegen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 267 => \n array (\n 'id' => 1268,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_content',\n 'key' => 'title',\n 'value' => 'Überschrift',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Überschrift',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 268 => \n array (\n 'id' => 1269,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'abort',\n 'value' => 'Abbrechen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Abbrechen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 269 => \n array (\n 'id' => 1270,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'about_me_public',\n 'value' => 'Kurzbeschreibung von Dir',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Kurzbeschreibung von Dir',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 270 => \n array (\n 'id' => 1271,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'access_error',\n 'value' => 'Du hast nicht die nötigen Rechte dies zu tun',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Du hast nicht die nötigen Rechte dies zu tun',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 271 => \n array (\n 'id' => 1272,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'actions',\n 'value' => 'Aktionen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Aktionen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 272 => \n array (\n 'id' => 1273,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'active',\n 'value' => 'Aktiviert',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Aktiviert',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 273 => \n array (\n 'id' => 1274,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'add',\n 'value' => 'hinzufügen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'hinzufügen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 274 => \n array (\n 'id' => 1275,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'address',\n 'value' => 'Adresse',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Adresse',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 275 => \n array (\n 'id' => 1276,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'already_in_bezirk',\n 'value' => 'In diesem bezirk bist Du shcon aktiv',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'In diesem bezirk bist Du shcon aktiv',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 276 => \n array (\n 'id' => 1277,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'anrede_0',\n 'value' => 'Liebe/r',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Liebe/r',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 277 => \n array (\n 'id' => 1278,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'anrede_1',\n 'value' => 'Lieber',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Lieber',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 278 => \n array (\n 'id' => 1279,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'anrede_2',\n 'value' => 'Liebe',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Liebe',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 279 => \n array (\n 'id' => 1280,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'anschrift',\n 'value' => 'Straße und Hausnummer',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Straße und Hausnummer',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 280 => \n array (\n 'id' => 1281,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'attach_image',\n 'value' => 'Bild anhängen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Bild anhängen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 281 => \n array (\n 'id' => 1282,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'attachement',\n 'value' => 'Anhang',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Anhang',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 282 => \n array (\n 'id' => 1283,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'attention',\n 'value' => 'Achtung',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Achtung',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 283 => \n array (\n 'id' => 1284,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'autokennzeichen_id',\n 'value' => 'Autokennzeichen Deiner Stadt/Region',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Autokennzeichen Deiner Stadt/Region',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 284 => \n array (\n 'id' => 1285,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'back_to_betrieb',\n 'value' => 'zurück zum Betrieb',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'zurück zum Betrieb',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 285 => \n array (\n 'id' => 1286,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'back_to_bezirk',\n 'value' => 'zurück zum Bezirk',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'zurück zum Bezirk',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 286 => \n array (\n 'id' => 1287,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'back_to_overview',\n 'value' => 'zur&uuml;ck zur &Uuml;bersicht',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'zur&uuml;ck zur &Uuml;bersicht',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 287 => \n array (\n 'id' => 1288,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'before_one_week',\n 'value' => 'vor einer Woche',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'vor einer Woche',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 288 => \n array (\n 'id' => 1289,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'betrieb',\n 'value' => 'Lebensmittelspender-Betrieb/e',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Lebensmittelspender-Betrieb/e',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 289 => \n array (\n 'id' => 1290,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'betrieb_status_0',\n 'value' => 'Verhandlungen laufen.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Verhandlungen laufen.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 290 => \n array (\n 'id' => 1291,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'betrieb_status_1',\n 'value' => 'Es besteht noch kein Kontakt.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Es besteht noch kein Kontakt.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 291 => \n array (\n 'id' => 1292,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'betrieb_status_2',\n 'value' => 'Verhandlungen laufen.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Verhandlungen laufen.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 292 => \n array (\n 'id' => 1293,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'betrieb_status_3',\n 'value' => 'Betrieb ist bereit zu spenden.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Betrieb ist bereit zu spenden.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 293 => \n array (\n 'id' => 1294,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'betrieb_status_4',\n 'value' => 'Betrieb will nicht kooperieren.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Betrieb will nicht kooperieren.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 294 => \n array (\n 'id' => 1295,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'betrieb_status_5',\n 'value' => 'Betrieb spendet bereits.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Betrieb spendet bereits.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 295 => \n array (\n 'id' => 1296,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'betrieb_status_6',\n 'value' => 'Spendet an Tafel etc. und wirft nichts weg.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Spendet an Tafel etc. und wirft nichts weg.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 296 => \n array (\n 'id' => 1297,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'bezirk',\n 'value' => 'Region',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Region',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 297 => \n array (\n 'id' => 1298,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'bezirk_request_successfull',\n 'value' => 'Die Anfrage wurde erfolgreich versendet, Du wirst benachrichtigt sobald Du freigeschaltet bist.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Die Anfrage wurde erfolgreich versendet, Du wirst benachrichtigt sobald Du freigeschaltet bist.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 298 => \n array (\n 'id' => 1299,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'botschafter',\n 'value' => 'Botschafter',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Botschafter',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 299 => \n array (\n 'id' => 1300,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'buddywalls',\n 'value' => 'Pinnwände von Bekannten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Pinnwände von Bekannten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 300 => \n array (\n 'id' => 1301,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'bundesland_id',\n 'value' => 'Bundesland',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Bundesland',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 301 => \n array (\n 'id' => 1302,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'card',\n 'value' => 'Karte',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Karte',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 302 => \n array (\n 'id' => 1303,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'changes_saved',\n 'value' => 'Änderungen wurden gespeichert!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Änderungen wurden gespeichert!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 303 => \n array (\n 'id' => 1304,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'choose_file',\n 'value' => 'Datei ausw&auml;hlen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Datei ausw&auml;hlen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 304 => \n array (\n 'id' => 1305,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'choose_foodsaver',\n 'value' => 'W&auml;hle die Foodsaver aus denen Du einen Ausweis drucken willst',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'W&auml;hle die Foodsaver aus denen Du einen Ausweis drucken willst',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 305 => \n array (\n 'id' => 1306,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'click_to_edit',\n 'value' => 'Klicken zum bearbeiten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Klicken zum bearbeiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 306 => \n array (\n 'id' => 1307,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'clock',\n 'value' => 'Uhr',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Uhr',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 307 => \n array (\n 'id' => 1308,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'continue',\n 'value' => 'Weiter',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Weiter',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 308 => \n array (\n 'id' => 1309,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'conversation_with',\n 'value' => 'Unterhaltung mit :var',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Unterhaltung mit :var',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 309 => \n array (\n 'id' => 1310,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'currently',\n 'value' => 'gerade eben',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'gerade eben',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 310 => \n array (\n 'id' => 1311,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'date',\n 'value' => 'Datum',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Datum',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 311 => \n array (\n 'id' => 1312,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'daterange',\n 'value' => 'Zeitraum',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Zeitraum',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 312 => \n array (\n 'id' => 1313,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'dates',\n 'value' => 'Termine',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Termine',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 313 => \n array (\n 'id' => 1314,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'datetime',\n 'value' => 'Zeitpunkt',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Zeitpunkt',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 314 => \n array (\n 'id' => 1315,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'day',\n 'value' => 'Tag',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Tag',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 315 => \n array (\n 'id' => 1316,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'delete',\n 'value' => 'löschen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'löschen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 316 => \n array (\n 'id' => 1317,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'delete_post',\n 'value' => 'Beitrag löschen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Beitrag löschen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 317 => \n array (\n 'id' => 1318,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'delete_post_sure',\n 'value' => 'Soll der Beitrag wirklich gelöscht werden?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Soll der Beitrag wirklich gelöscht werden?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 318 => \n array (\n 'id' => 1319,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'delete_sure_title',\n 'value' => 'Wirklich löschen?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Wirklich löschen?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 319 => \n array (\n 'id' => 1320,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'desc',\n 'value' => 'Beschreibung',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Beschreibung',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 320 => \n array (\n 'id' => 1321,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'deutschlandtour_desc',\n 'value' => 'dann schreibe uns hier eine kurze Nachricht',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'dann schreibe uns hier eine kurze Nachricht',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 321 => \n array (\n 'id' => 1322,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'deutschlandtour_message',\n 'value' => 'Ja, ich möchte einen Besuch von Euch bekommen!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Ja, ich möchte einen Besuch von Euch bekommen!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 322 => \n array (\n 'id' => 1323,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'dow0',\n 'value' => 'Sonntag',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Sonntag',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 323 => \n array (\n 'id' => 1324,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'dow1',\n 'value' => 'Montag',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Montag',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 324 => \n array (\n 'id' => 1325,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'dow2',\n 'value' => 'Dienstag',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Dienstag',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 325 => \n array (\n 'id' => 1326,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'dow3',\n 'value' => 'Mittwoch',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Mittwoch',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 326 => \n array (\n 'id' => 1327,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'dow4',\n 'value' => 'Donnerstag',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Donnerstag',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 327 => \n array (\n 'id' => 1328,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'dow5',\n 'value' => 'Freitag',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Freitag',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 328 => \n array (\n 'id' => 1329,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'dow6',\n 'value' => 'Samstag',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Samstag',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 329 => \n array (\n 'id' => 1330,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'edit',\n 'value' => 'bearbeiten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'bearbeiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 330 => \n array (\n 'id' => 1331,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'edit_success',\n 'value' => '&Auml;nderungen wurden gespeichert',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => '&Auml;nderungen wurden gespeichert',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 331 => \n array (\n 'id' => 1332,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'email',\n 'value' => 'E-Mail-Adresse',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'E-Mail-Adresse',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 332 => \n array (\n 'id' => 1333,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'email_adress',\n 'value' => 'E-Mail-Adresse',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'E-Mail-Adresse',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 333 => \n array (\n 'id' => 1334,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'email_exists',\n 'value' => 'Mit dieser E-Mail-Adresse ist bereits ein Benutzer registriert.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Mit dieser E-Mail-Adresse ist bereits ein Benutzer registriert.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 334 => \n array (\n 'id' => 1335,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'email_pass',\n 'value' => 'Passwort',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Passwort',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 335 => \n array (\n 'id' => 1336,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'error_default',\n 'value' => 'Es ist ein Fehler aufgetreten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Es ist ein Fehler aufgetreten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 336 => \n array (\n 'id' => 1337,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'foodsaver',\n 'value' => 'Foodsaver',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Foodsaver',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 337 => \n array (\n 'id' => 1338,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'foodsaver_edit_success',\n 'value' => '&Auml;nderungen wurden gespeichert',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => '&Auml;nderungen wurden gespeichert',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 338 => \n array (\n 'id' => 1339,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'friday',\n 'value' => 'Freitag',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Freitag',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 339 => \n array (\n 'id' => 1340,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'from',\n 'value' => 'von',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'von',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 340 => \n array (\n 'id' => 1341,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'fs_id',\n 'value' => 'Deine Foodsharing-ID',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Deine Foodsharing-ID',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 341 => \n array (\n 'id' => 1342,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'geschlecht',\n 'value' => 'Geschlecht',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Geschlecht',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 342 => \n array (\n 'id' => 1343,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'groups',\n 'value' => 'Gruppen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Gruppen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 343 => \n array (\n 'id' => 1344,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'handy',\n 'value' => 'Handynummer',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Handynummer',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 344 => \n array (\n 'id' => 1345,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'join',\n 'value' => 'Anmelden',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Anmelden',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 345 => \n array (\n 'id' => 1346,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'last_day',\n 'value' => 'letzten :var',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'letzten :var',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 346 => \n array (\n 'id' => 1347,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'lat',\n 'value' => 'Längengrad',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Längengrad',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 347 => \n array (\n 'id' => 1348,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'login',\n 'value' => 'Login',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Login',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 348 => \n array (\n 'id' => 1349,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'login_success',\n 'value' => 'Login erfolgreich!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Login erfolgreich!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 349 => \n array (\n 'id' => 1350,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'lon',\n 'value' => 'Breitengrad',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Breitengrad',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 350 => \n array (\n 'id' => 1351,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'mail_to_all_foodsaver_in_area',\n 'value' => 'E-Mail an alle Foodsaver aus :var schreiben',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'E-Mail an alle Foodsaver aus :var schreiben',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 351 => \n array (\n 'id' => 1352,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'mailbox_name',\n 'value' => 'Mailbox-Name',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Mailbox-Name',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 352 => \n array (\n 'id' => 1353,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'mailboxes',\n 'value' => 'E-Mail Postfächer',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'E-Mail Postfächer',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 353 => \n array (\n 'id' => 1354,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'mailinglist',\n 'value' => 'Mailingliste',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Mailingliste',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 354 => \n array (\n 'id' => 1355,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'menu_all_fs',\n 'value' => 'Alle Foodsaver',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Alle Foodsaver',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 355 => \n array (\n 'id' => 1356,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'menu_all_store',\n 'value' => 'Alle Betriebe',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Alle Betriebe',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 356 => \n array (\n 'id' => 1357,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'menu_blog',\n 'value' => 'Blogbeiträge bearbeiten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Blogbeiträge bearbeiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 357 => \n array (\n 'id' => 1358,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'menu_chain',\n 'value' => 'Betriebs-Ketten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Betriebs-Ketten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 358 => \n array (\n 'id' => 1359,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'menu_content',\n 'value' => 'Inhalte bearbeiten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Inhalte bearbeiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 359 => \n array (\n 'id' => 1360,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'menu_email',\n 'value' => 'E-Mail Verteiler',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'E-Mail Verteiler',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 360 => \n array (\n 'id' => 1361,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'menu_email_tpl',\n 'value' => 'E-Mail Vorlagen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'E-Mail Vorlagen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 361 => \n array (\n 'id' => 1362,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'menu_faq',\n 'value' => 'FAQs verwalten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'FAQs verwalten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 362 => \n array (\n 'id' => 1363,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'menu_foodsaver_without_region',\n 'value' => 'Foodsaver ohne Region',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Foodsaver ohne Region',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 363 => \n array (\n 'id' => 1364,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'menu_foodtypes',\n 'value' => 'Lebensmittel-Typen verwalten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Lebensmittel-Typen verwalten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 364 => \n array (\n 'id' => 1365,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'menu_mailbox_manage',\n 'value' => 'Mailboxen verwalten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Mailboxen verwalten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 365 => \n array (\n 'id' => 1366,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'menu_manage_regions',\n 'value' => 'Regionen verwalten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Regionen verwalten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 366 => \n array (\n 'id' => 1367,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'menu_newarea',\n 'value' => 'Regionswünsche von Foodsavern',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Regionswünsche von Foodsavern',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 367 => \n array (\n 'id' => 1368,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'menu_quiz',\n 'value' => 'Quiz verwalten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Quiz verwalten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 368 => \n array (\n 'id' => 1369,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'menu_regions_without_bots',\n 'value' => 'Regionen ohne Botschafter',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Regionen ohne Botschafter',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 369 => \n array (\n 'id' => 1370,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'menu_reports',\n 'value' => 'Verstoßmeldungen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Verstoßmeldungen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 370 => \n array (\n 'id' => 1371,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'message',\n 'value' => 'Nachricht',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Nachricht',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 371 => \n array (\n 'id' => 1372,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'monday',\n 'value' => 'Montag',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Montag',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 372 => \n array (\n 'id' => 1373,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'month_1',\n 'value' => 'Januar',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Januar',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 373 => \n array (\n 'id' => 1374,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'month_10',\n 'value' => 'Okt',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Okt',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 374 => \n array (\n 'id' => 1375,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'month_11',\n 'value' => 'Nov',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Nov',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 375 => \n array (\n 'id' => 1376,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'month_12',\n 'value' => 'Dez',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Dez',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 376 => \n array (\n 'id' => 1377,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'month_2',\n 'value' => 'Februar',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Februar',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 377 => \n array (\n 'id' => 1378,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'month_3',\n 'value' => 'März',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'März',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 378 => \n array (\n 'id' => 1379,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'month_4',\n 'value' => 'April',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'April',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 379 => \n array (\n 'id' => 1380,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'month_5',\n 'value' => 'Mai',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Mai',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 380 => \n array (\n 'id' => 1381,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'month_6',\n 'value' => 'Juni',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Juni',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 381 => \n array (\n 'id' => 1382,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'month_7',\n 'value' => 'Juli',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Juli',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 382 => \n array (\n 'id' => 1383,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'month_8',\n 'value' => 'August',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'August',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 383 => \n array (\n 'id' => 1384,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'month_9',\n 'value' => 'Sep',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Sep',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 384 => \n array (\n 'id' => 1385,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'msganswer',\n 'value' => 'Antworten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Antworten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 385 => \n array (\n 'id' => 1386,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'nachname',\n 'value' => 'Nachname',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Nachname',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 386 => \n array (\n 'id' => 1387,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'name',\n 'value' => 'Name',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Name',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 387 => \n array (\n 'id' => 1388,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'new_message',\n 'value' => 'Neue Nachricht',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Neue Nachricht',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 388 => \n array (\n 'id' => 1389,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'new_message_count',\n 'value' => 'Du hast :var neue Nachrichten!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Du hast :var neue Nachrichten!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 389 => \n array (\n 'id' => 1390,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'new_registration',\n 'value' => 'Neue Registrierung',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Neue Registrierung',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 390 => \n array (\n 'id' => 1391,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'new_theme',\n 'value' => 'Neues Thema',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Neues Thema',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 391 => \n array (\n 'id' => 1392,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'no',\n 'value' => 'Nein',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Nein',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 392 => \n array (\n 'id' => 1393,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'no_bezirk_choosen',\n 'value' => 'Noch kein Bezirk gewählt',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Noch kein Bezirk gewählt',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 393 => \n array (\n 'id' => 1394,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'no_new_messages',\n 'value' => 'Keine neuen Nachrichten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Keine neuen Nachrichten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 394 => \n array (\n 'id' => 1395,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'no_result',\n 'value' => 'Kein Ergebnis',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Kein Ergebnis',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 395 => \n array (\n 'id' => 1396,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'normal',\n 'value' => 'Normal',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Normal',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 396 => \n array (\n 'id' => 1397,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'not_rv_accepted',\n 'value' => 'Du musst die Rechtsvereinbarung akzeptieren',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Du musst die Rechtsvereinbarung akzeptieren',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 397 => \n array (\n 'id' => 1398,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'nothing_to_do',\n 'value' => 'Hier gibt es nichts zu tun',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Hier gibt es nichts zu tun',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 398 => \n array (\n 'id' => 1399,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'options',\n 'value' => 'Optionen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Optionen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 399 => \n array (\n 'id' => 1400,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'ort',\n 'value' => 'Stadt/Gemeinde',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Stadt/Gemeinde',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 400 => \n array (\n 'id' => 1401,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'parent_id',\n 'value' => 'Eltern-Region',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Eltern-Region',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 401 => \n array (\n 'id' => 1402,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'pass_generator',\n 'value' => 'Foodsaver Ausweis Generator',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Foodsaver Ausweis Generator',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 402 => \n array (\n 'id' => 1403,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'password',\n 'value' => 'Passwort',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Passwort',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 403 => \n array (\n 'id' => 1404,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'photo',\n 'value' => 'Foto',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Foto',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 404 => \n array (\n 'id' => 1405,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'photo_public',\n 'value' => 'Kontaktaufnahme durch andere Foodsaver',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Kontaktaufnahme durch andere Foodsaver',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 405 => \n array (\n 'id' => 1406,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'picture',\n 'value' => 'Bild',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Bild',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 406 => \n array (\n 'id' => 1407,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'plz',\n 'value' => 'Postleitzahl',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Postleitzahl',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 407 => \n array (\n 'id' => 1408,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'position_search',\n 'value' => 'Positionssuche',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Positionssuche',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 408 => \n array (\n 'id' => 1409,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'pubbtime_1',\n 'value' => 'morgens',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'morgens',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 409 => \n array (\n 'id' => 1410,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'pubbtime_2',\n 'value' => 'mittags/nachmittags',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'mittags/nachmittags',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 410 => \n array (\n 'id' => 1411,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'pubbtime_3',\n 'value' => 'abends',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'abends',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 411 => \n array (\n 'id' => 1412,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'pubbtime_4',\n 'value' => 'nachts',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'nachts',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 412 => \n array (\n 'id' => 1413,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'read-more',\n 'value' => 'weiterlesen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'weiterlesen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 413 => \n array (\n 'id' => 1414,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'really_change',\n 'value' => '&Auml;nderungen wirklich speichern?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => '&Auml;nderungen wirklich speichern?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 414 => \n array (\n 'id' => 1415,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'recip_all',\n 'value' => 'Alle Foodsaver Weltweit',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Alle Foodsaver Weltweit',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 415 => \n array (\n 'id' => 1416,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'recip_all_bezirk',\n 'value' => 'Alle Foodsaver aus :var',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Alle Foodsaver aus :var',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 416 => \n array (\n 'id' => 1417,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'recip_choose_bezirk',\n 'value' => 'Bezirke einzeld ausw&auml;hlen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Bezirke einzeld ausw&auml;hlen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 417 => \n array (\n 'id' => 1418,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'recip_chooser',\n 'value' => 'Empf&auml;nger',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Empf&auml;nger',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 418 => \n array (\n 'id' => 1419,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'reference',\n 'value' => 'Hinweis',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Hinweis',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 419 => \n array (\n 'id' => 1420,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'regions',\n 'value' => 'Bezirke',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Bezirke',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 420 => \n array (\n 'id' => 1421,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'register',\n 'value' => 'Registrieren',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Registrieren',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 421 => \n array (\n 'id' => 1422,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'request_already_send',\n 'value' => 'An diesen Bezirk hast Du schon eine Anfrage gesendet.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'An diesen Bezirk hast Du schon eine Anfrage gesendet.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 422 => \n array (\n 'id' => 1423,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'rolle',\n 'value' => 'Benutzerrolle',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Benutzerrolle',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 423 => \n array (\n 'id' => 1424,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'rolle_0_0',\n 'value' => 'Foodsharer',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Foodsharer',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 424 => \n array (\n 'id' => 1425,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'rolle_0_1',\n 'value' => 'Foodsharer',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Foodsharer',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 425 => \n array (\n 'id' => 1426,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'rolle_0_2',\n 'value' => 'Foodsharer',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Foodsharer',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 426 => \n array (\n 'id' => 1427,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'rolle_1_0',\n 'value' => 'Foodsaver',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Foodsaver',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 427 => \n array (\n 'id' => 1428,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'rolle_1_1',\n 'value' => 'Foodsaver',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Foodsaver',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 428 => \n array (\n 'id' => 1429,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'rolle_1_2',\n 'value' => 'Foodsaverin',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Foodsaverin',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 429 => \n array (\n 'id' => 1430,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'rolle_2_0',\n 'value' => 'Betriebsverantwortliche/r Foodsaver',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Betriebsverantwortliche/r Foodsaver',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 430 => \n array (\n 'id' => 1431,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'rolle_2_1',\n 'value' => 'Betriebsverantwortlicher Foodsaver',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Betriebsverantwortlicher Foodsaver',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 431 => \n array (\n 'id' => 1432,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'rolle_2_2',\n 'value' => 'Betriebsverantwortliche Foodsaverin',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Betriebsverantwortliche Foodsaverin',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 432 => \n array (\n 'id' => 1433,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'rolle_3_0',\n 'value' => 'Botschafter/in',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Botschafter/in',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 433 => \n array (\n 'id' => 1434,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'rolle_3_1',\n 'value' => 'Botschafter',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Botschafter',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 434 => \n array (\n 'id' => 1435,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'rolle_3_2',\n 'value' => 'Botschafterin',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Botschafterin',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 435 => \n array (\n 'id' => 1436,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'rolle_4_0',\n 'value' => 'Orgamensch',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Orgamensch',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 436 => \n array (\n 'id' => 1437,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'rolle_4_1',\n 'value' => 'Orgamensch',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Orgamensch',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 437 => \n array (\n 'id' => 1438,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'rolle_4_2',\n 'value' => 'Orgamensch',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Orgamensch',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 438 => \n array (\n 'id' => 1439,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'rv_accept',\n 'value' => 'Ja, ich habe die Rechtsvereinbarung gelesen und Akzeptiere sie.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Ja, ich habe die Rechtsvereinbarung gelesen und Akzeptiere sie.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 439 => \n array (\n 'id' => 1440,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'saturday',\n 'value' => 'Samstag',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Samstag',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 440 => \n array (\n 'id' => 1441,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'save',\n 'value' => 'Speichern',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Speichern',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 441 => \n array (\n 'id' => 1442,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'search',\n 'value' => 'Suchen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Suchen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 442 => \n array (\n 'id' => 1443,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'send',\n 'value' => 'Senden',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Senden',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 443 => \n array (\n 'id' => 1444,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'settings',\n 'value' => 'Deine Daten / Einstellungen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Deine Daten / Einstellungen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 444 => \n array (\n 'id' => 1445,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'show_all_messages',\n 'value' => 'Alle Nachrichten zeigen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Alle Nachrichten zeigen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 445 => \n array (\n 'id' => 1446,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'smonth_1',\n 'value' => 'Jan',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Jan',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 446 => \n array (\n 'id' => 1447,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'smonth_10',\n 'value' => 'Okt',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Okt',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 447 => \n array (\n 'id' => 1448,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'smonth_11',\n 'value' => 'Nov',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Nov',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 448 => \n array (\n 'id' => 1449,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'smonth_12',\n 'value' => 'Dez',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Dez',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 449 => \n array (\n 'id' => 1450,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'smonth_2',\n 'value' => 'Feb',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Feb',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 450 => \n array (\n 'id' => 1451,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'smonth_3',\n 'value' => 'März',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'März',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 451 => \n array (\n 'id' => 1452,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'smonth_4',\n 'value' => 'Apr',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Apr',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 452 => \n array (\n 'id' => 1453,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'smonth_5',\n 'value' => 'Mai',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Mai',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 453 => \n array (\n 'id' => 1454,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'smonth_6',\n 'value' => 'Juni',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Juni',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 454 => \n array (\n 'id' => 1455,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'smonth_7',\n 'value' => 'Juli',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Juli',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 455 => \n array (\n 'id' => 1456,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'smonth_8',\n 'value' => 'Aug',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Aug',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 456 => \n array (\n 'id' => 1457,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'smonth_9',\n 'value' => 'Sep',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Sep',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 457 => \n array (\n 'id' => 1458,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'specials',\n 'value' => 'Besonderheiten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Besonderheiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 458 => \n array (\n 'id' => 1459,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'stadt',\n 'value' => 'Deine Stadt oder Gemeinde',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Deine Stadt oder Gemeinde',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 459 => \n array (\n 'id' => 1460,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'status',\n 'value' => 'Aktueller Status',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Aktueller Status',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 460 => \n array (\n 'id' => 1461,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'subject',\n 'value' => 'Betreff',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Betreff',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 461 => \n array (\n 'id' => 1462,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'sunday',\n 'value' => 'Sonntag',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Sonntag',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 462 => \n array (\n 'id' => 1463,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'sure',\n 'value' => 'Ja, ich bin mir sicher.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Ja, ich bin mir sicher.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 463 => \n array (\n 'id' => 1464,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'team_status_0',\n 'value' => 'Dieses Team ist voll. Daher werden z.<span style=\"white-space:nowrap\">&thinsp;</span>Z. keine weiteren Helfer gesucht.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Dieses Team ist voll. Daher werden z.<span style=\"white-space:nowrap\">&thinsp;</span>Z. keine weiteren Helfer gesucht.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 464 => \n array (\n 'id' => 1465,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'team_status_1',\n 'value' => '<strong>Es werden noch Helfer gesucht</strong>',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => '<strong>Es werden noch Helfer gesucht</strong>',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 465 => \n array (\n 'id' => 1466,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'team_status_2',\n 'value' => '<strong>Es werden dringend noch Helfer gesucht</strong>',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => '<strong>Es werden dringend noch Helfer gesucht</strong>',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 466 => \n array (\n 'id' => 1467,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'telefon',\n 'value' => 'Festnetznummer',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Festnetznummer',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 467 => \n array (\n 'id' => 1468,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'this_weekday',\n 'value' => 'letzten :var',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'letzten :var',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 468 => \n array (\n 'id' => 1469,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'thursday',\n 'value' => 'Donnerstag',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Donnerstag',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 469 => \n array (\n 'id' => 1470,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'time',\n 'value' => 'Uhrzeit',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Uhrzeit',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 470 => \n array (\n 'id' => 1471,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'to',\n 'value' => 'bis',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'bis',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 471 => \n array (\n 'id' => 1472,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'to_team_page',\n 'value' => 'Zur Teamseite',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Zur Teamseite',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 472 => \n array (\n 'id' => 1473,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'today',\n 'value' => 'Heute',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Heute',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 473 => \n array (\n 'id' => 1474,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'today_time',\n 'value' => 'Heute, :var',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Heute, :var',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 474 => \n array (\n 'id' => 1475,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'tomorrow',\n 'value' => 'Morgen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Morgen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 475 => \n array (\n 'id' => 1476,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'tuesday',\n 'value' => 'Dienstag',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Dienstag',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 476 => \n array (\n 'id' => 1477,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'upload_picture',\n 'value' => 'Bild hochladen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Bild hochladen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 477 => \n array (\n 'id' => 1478,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'user_add_success',\n 'value' => 'Prima! Dein Account wurde angelegt!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Prima! Dein Account wurde angelegt!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 478 => \n array (\n 'id' => 1479,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'user_is_activated',\n 'value' => 'Foodsaver ist aktiviert',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Foodsaver ist aktiviert',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 479 => \n array (\n 'id' => 1480,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'user_is_botschafter_now',\n 'value' => ':var ist jetzt Botschafter/in',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => ':var ist jetzt Botschafter/in',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 480 => \n array (\n 'id' => 1481,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'user_is_deleted',\n 'value' => 'Foodsaver wurde gel&ouml;scht',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Foodsaver wurde gel&ouml;scht',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 481 => \n array (\n 'id' => 1482,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'want_to_fetch',\n 'value' => 'Hier würde ich gerne Lebensmittel abholen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Hier würde ich gerne Lebensmittel abholen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 482 => \n array (\n 'id' => 1483,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'wednesday',\n 'value' => 'Mittwoch',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Mittwoch',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 483 => \n array (\n 'id' => 1484,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'write_a_messages',\n 'value' => 'Nachricht schreiben',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Nachricht schreiben',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 484 => \n array (\n 'id' => 1485,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'write_something',\n 'value' => 'schreibe etwas',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'schreibe etwas',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 485 => \n array (\n 'id' => 1486,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'write_teaser',\n 'value' => 'Schreibe etwas...',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Schreibe etwas...',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 486 => \n array (\n 'id' => 1487,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'yes',\n 'value' => 'Ja',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Ja',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 487 => \n array (\n 'id' => 1488,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_core',\n 'key' => 'yesterday',\n 'value' => 'gestern',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'gestern',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 488 => \n array (\n 'id' => 1489,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_dashboard',\n 'key' => 'all_baskets',\n 'value' => 'Alle Körbe auf der Karte',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Alle Körbe auf der Karte',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 489 => \n array (\n 'id' => 1490,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_dashboard',\n 'key' => 'already_in_bezirk',\n 'value' => 'In diesem Bezirk bist Du schon aktiv',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'In diesem Bezirk bist Du schon aktiv',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 490 => \n array (\n 'id' => 1491,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_dashboard',\n 'key' => 'attach_image',\n 'value' => 'Bild anhängen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Bild anhängen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 491 => \n array (\n 'id' => 1492,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_dashboard',\n 'key' => 'bezirk_request_successfull',\n 'value' => 'Die Anfrage wurde erfolgreich versendet, Du wirst benachrichtigt sobald Du freigeschaltet bist.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Die Anfrage wurde erfolgreich versendet, Du wirst benachrichtigt sobald Du freigeschaltet bist.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 492 => \n array (\n 'id' => 1493,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_dashboard',\n 'key' => 'bot_partners',\n 'value' => 'Deine Botschafterpatenkinder',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Deine Botschafterpatenkinder',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 493 => \n array (\n 'id' => 1494,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_dashboard',\n 'key' => 'close_foodbaskets',\n 'value' => 'Essenskörbe in Deiner Nähe',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Essenskörbe in Deiner Nähe',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 494 => \n array (\n 'id' => 1495,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_dashboard',\n 'key' => 'fs_partners',\n 'value' => 'Deine Patenkinder',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Deine Patenkinder',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 495 => \n array (\n 'id' => 1496,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_dashboard',\n 'key' => 'more_baskets',\n 'value' => 'Alle Körbe auf der Karte',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Alle Körbe auf der Karte',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 496 => \n array (\n 'id' => 1497,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_dashboard',\n 'key' => 'new_basket',\n 'value' => 'Neuer Essenskorb',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Neuer Essenskorb',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 497 => \n array (\n 'id' => 1498,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_dashboard',\n 'key' => 'new_foodbaskets',\n 'value' => 'Neueste Essenskörbe',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Neueste Essenskörbe',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 498 => \n array (\n 'id' => 1499,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_dashboard',\n 'key' => 'next_dates',\n 'value' => 'nächste Abholtermine',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'nächste Abholtermine',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 499 => \n array (\n 'id' => 1500,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_dashboard',\n 'key' => 'no_saved_food',\n 'value' => 'Viel Spaß beim Retten!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Viel Spaß beim Retten!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n ));\n \\DB::table('translations')->insert(array (\n 0 => \n array (\n 'id' => 1501,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_dashboard',\n 'key' => 'ort',\n 'value' => 'Stadt/Gemeinde',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Stadt/Gemeinde',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 1 => \n array (\n 'id' => 1502,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_dashboard',\n 'key' => 'position_search',\n 'value' => 'Positionssuche',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Positionssuche',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 2 => \n array (\n 'id' => 1503,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_dashboard',\n 'key' => 'pubbtime_1',\n 'value' => 'morgens',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'morgens',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 3 => \n array (\n 'id' => 1504,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_dashboard',\n 'key' => 'pubbtime_2',\n 'value' => 'mittags/nachmittags',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'mittags/nachmittags',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 4 => \n array (\n 'id' => 1505,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_dashboard',\n 'key' => 'pubbtime_3',\n 'value' => 'abends',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'abends',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 5 => \n array (\n 'id' => 1506,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_dashboard',\n 'key' => 'pubbtime_4',\n 'value' => 'nachts',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'nachts',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 6 => \n array (\n 'id' => 1507,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_dashboard',\n 'key' => 'request_already_send',\n 'value' => 'An diesen Bezirk hast Du schon eine Anfrage gesendet.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'An diesen Bezirk hast Du schon eine Anfrage gesendet.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 7 => \n array (\n 'id' => 1508,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_dashboard',\n 'key' => 'saved_food',\n 'value' => 'Du hast schon :weight Kilos gerettet!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Du hast schon :weight Kilos gerettet!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 8 => \n array (\n 'id' => 1509,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_dashboard',\n 'key' => 'team_status_0',\n 'value' => 'Dieses Team ist voll. Daher werden z.<span style=\"white-space:nowrap\">&thinsp;</span>Z. keine weiteren Helfer gesucht.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Dieses Team ist voll. Daher werden z.<span style=\"white-space:nowrap\">&thinsp;</span>Z. keine weiteren Helfer gesucht.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 9 => \n array (\n 'id' => 1510,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_dashboard',\n 'key' => 'team_status_1',\n 'value' => '<strong>Es werden noch Helfer gesucht</strong>',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => '<strong>Es werden noch Helfer gesucht</strong>',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 10 => \n array (\n 'id' => 1511,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_dashboard',\n 'key' => 'team_status_2',\n 'value' => '<strong>Es werden dringend noch Helfer gesucht</strong>',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => '<strong>Es werden dringend noch Helfer gesucht</strong>',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 11 => \n array (\n 'id' => 1512,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_dashboard',\n 'key' => 'updates',\n 'value' => 'Letzte Aktivitäten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Letzte Aktivitäten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 12 => \n array (\n 'id' => 1513,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_dashboard',\n 'key' => 'welcome',\n 'value' => 'Willkommen :name! Schön, dass Du da bist!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Willkommen :name! Schön, dass Du da bist!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 13 => \n array (\n 'id' => 1514,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_dashboard',\n 'key' => 'write_teaser',\n 'value' => 'Schreibe etwas...',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Schreibe etwas...',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 14 => \n array (\n 'id' => 1515,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_email',\n 'key' => 'mailbox_id',\n 'value' => 'Absender E-Mail-Adresse',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Absender E-Mail-Adresse',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 15 => \n array (\n 'id' => 1516,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_email',\n 'key' => 'mailing_list',\n 'value' => 'E-Mail Verteiler',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'E-Mail Verteiler',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 16 => \n array (\n 'id' => 1517,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_email',\n 'key' => 'mode',\n 'value' => 'Wie soll die Nachricht versendet werden?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Wie soll die Nachricht versendet werden?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 17 => \n array (\n 'id' => 1518,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_email',\n 'key' => 'personal_styling',\n 'value' => 'Persönliche Anrede',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Persönliche Anrede',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 18 => \n array (\n 'id' => 1519,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_email',\n 'key' => 'personal_styling_desc',\n 'value' => 'Um die Mail persönlicher zu gestalten kannst Du <strong>{NAME}</strong> anstelle des Namens einfügen und <strong>{ANREDE}</strong> für die Anrede.<p>{ANREDE} {NAME} ergibt z.<span style=\"white-space:nowrap\"> </span>B. Lieber Peter',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Um die Mail persönlicher zu gestalten kannst Du <strong>{NAME}</strong> anstelle des Namens einfügen und <strong>{ANREDE}</strong> für die Anrede.<p>{ANREDE} {NAME} ergibt z.<span style=\"white-space:nowrap\"> </span>B. Lieber Peter',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 19 => \n array (\n 'id' => 1520,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_email',\n 'key' => 'recip_choosemanual',\n 'value' => 'Eine E-Mail-Adresse pro Zeile, Name nach Semikolon (z.<span style=\"white-space:nowrap\">&thinsp;</span>B. bli@blubb.de;Peter)',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Eine E-Mail-Adresse pro Zeile, Name nach Semikolon (z.<span style=\"white-space:nowrap\">&thinsp;</span>B. bli@blubb.de;Peter)',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 20 => \n array (\n 'id' => 1521,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_email',\n 'key' => 'send_as_email',\n 'value' => 'Als E-Mail versenden',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Als E-Mail versenden',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 21 => \n array (\n 'id' => 1522,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_email',\n 'key' => 'send_as_pm',\n 'value' => 'Als interne Nachricht versenden',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Als interne Nachricht versenden',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 22 => \n array (\n 'id' => 1523,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_email',\n 'key' => 'shure',\n 'value' => 'Alles gechecked? Soll die E-Mail an alle foodsaver gesendet werden?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Alles gechecked? Soll die E-Mail an alle foodsaver gesendet werden?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 23 => \n array (\n 'id' => 1524,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_email',\n 'key' => 'testemail',\n 'value' => 'Test E-Mail-Adresse',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Test E-Mail-Adresse',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 24 => \n array (\n 'id' => 1525,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_event',\n 'key' => 'dateend',\n 'value' => 'Enddatum',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Enddatum',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 25 => \n array (\n 'id' => 1526,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_event',\n 'key' => 'desc_desc',\n 'value' => 'Was ist das für ein Event?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Was ist das für ein Event?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 26 => \n array (\n 'id' => 1527,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_event',\n 'key' => 'description',\n 'value' => 'Beschreibung',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Beschreibung',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 27 => \n array (\n 'id' => 1528,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_event',\n 'key' => 'event_options',\n 'value' => 'Event-Optionen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Event-Optionen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 28 => \n array (\n 'id' => 1529,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_event',\n 'key' => 'location_name',\n 'value' => 'Veranstaltungsort',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Veranstaltungsort',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 29 => \n array (\n 'id' => 1530,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_event',\n 'key' => 'mumble_room',\n 'value' => 'In welchem mumble Konferenzraum treffen wir uns?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'In welchem mumble Konferenzraum treffen wir uns?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 30 => \n array (\n 'id' => 1531,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_event',\n 'key' => 'new_event',\n 'value' => 'Neue/n Termin/Veranstaltung eintragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Neue/n Termin/Veranstaltung eintragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 31 => \n array (\n 'id' => 1532,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_event',\n 'key' => 'no_events_posted',\n 'value' => 'Noch keine Events vorhanden',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Noch keine Events vorhanden',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 32 => \n array (\n 'id' => 1533,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_event',\n 'key' => 'offline',\n 'value' => 'Ganz normal im echten Leben',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Ganz normal im echten Leben',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 33 => \n array (\n 'id' => 1534,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_event',\n 'key' => 'online',\n 'value' => 'Multilokal auf mumble.lebensmittelretten.de',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Multilokal auf mumble.lebensmittelretten.de',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 34 => \n array (\n 'id' => 1535,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_event',\n 'key' => 'online_type',\n 'value' => 'Findet das Event offline oder online auf unserem Mumbleserver statt?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Findet das Event offline oder online auf unserem Mumbleserver statt?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 35 => \n array (\n 'id' => 1536,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fairteiler',\n 'key' => 'add_fairteiler',\n 'value' => 'Fair-Teiler eintragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Fair-Teiler eintragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 36 => \n array (\n 'id' => 1537,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fairteiler',\n 'key' => 'attach_image',\n 'value' => 'Bild anhängen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Bild anhängen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 37 => \n array (\n 'id' => 1538,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fairteiler',\n 'key' => 'back',\n 'value' => 'zurück',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'zurück',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 38 => \n array (\n 'id' => 1539,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fairteiler',\n 'key' => 'bezirk_chooser',\n 'value' => 'Fair-Teiler in Deinen Bezirken',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Fair-Teiler in Deinen Bezirken',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 39 => \n array (\n 'id' => 1540,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fairteiler',\n 'key' => 'bezirk_id',\n 'value' => 'In welchem Bezirk ist der Fair-Teiler?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'In welchem Bezirk ist der Fair-Teiler?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 40 => \n array (\n 'id' => 1541,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fairteiler',\n 'key' => 'bfoodsaver',\n 'value' => 'Verantwortliche Foodsaver',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Verantwortliche Foodsaver',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 41 => \n array (\n 'id' => 1542,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fairteiler',\n 'key' => 'delete',\n 'value' => 'Fair-Teiler löschen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Fair-Teiler löschen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 42 => \n array (\n 'id' => 1543,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fairteiler',\n 'key' => 'delete_success',\n 'value' => 'Fair-Teiler wurde gelöscht',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Fair-Teiler wurde gelöscht',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 43 => \n array (\n 'id' => 1544,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fairteiler',\n 'key' => 'delete_sure',\n 'value' => 'Möchtest Du wirklich den Fair-Teiler :var löschen?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Möchtest Du wirklich den Fair-Teiler :var löschen?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 44 => \n array (\n 'id' => 1545,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fairteiler',\n 'key' => 'desc_desc',\n 'value' => 'Schreibe hier ein paar grundsätzliche Infos über den Fair-Teiler rein, vor allem wann er Zugänglich / geöffnet ist',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Schreibe hier ein paar grundsätzliche Infos über den Fair-Teiler rein, vor allem wann er Zugänglich / geöffnet ist',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 45 => \n array (\n 'id' => 1546,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fairteiler',\n 'key' => 'edit',\n 'value' => 'Fair-Teiler bearbeiten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Fair-Teiler bearbeiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 46 => \n array (\n 'id' => 1547,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fairteiler',\n 'key' => 'edit_fairteiler_name',\n 'value' => 'Fair-Teiler \":var\" bearbeiten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Fair-Teiler \":var\" bearbeiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 47 => \n array (\n 'id' => 1548,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fairteiler',\n 'key' => 'fairteiler',\n 'value' => 'Fair-Teiler',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Fair-Teiler',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 48 => \n array (\n 'id' => 1549,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fairteiler',\n 'key' => 'fairteiler_add_fail',\n 'value' => 'Fair-Teiler konnte nicht gespeichet werden, hast Du alles richtig ausgefüllt?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Fair-Teiler konnte nicht gespeichet werden, hast Du alles richtig ausgefüllt?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 49 => \n array (\n 'id' => 1550,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fairteiler',\n 'key' => 'fairteiler_add_success',\n 'value' => 'Fair-Teiler wurde erfolgreich eingetragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Fair-Teiler wurde erfolgreich eingetragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 50 => \n array (\n 'id' => 1551,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fairteiler',\n 'key' => 'fairteiler_edit_success',\n 'value' => 'Fair-Teiler wurde erfolgreich bearbeitet',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Fair-Teiler wurde erfolgreich bearbeitet',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 51 => \n array (\n 'id' => 1552,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fairteiler',\n 'key' => 'fairteiler_prepare_success',\n 'value' => 'Fair-Teiler wurde vorgeschlagen, ein Botschafter muss jetzt noch Deinen Vorschlag bestätigen.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Fair-Teiler wurde vorgeschlagen, ein Botschafter muss jetzt noch Deinen Vorschlag bestätigen.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 52 => \n array (\n 'id' => 1553,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fairteiler',\n 'key' => 'follow',\n 'value' => 'Diesem Fair-Teiler folgen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Diesem Fair-Teiler folgen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 53 => \n array (\n 'id' => 1554,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fairteiler',\n 'key' => 'follower',\n 'value' => 'Follower',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Follower',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 54 => \n array (\n 'id' => 1555,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fairteiler',\n 'key' => 'infotype',\n 'value' => 'Benachrichtigung',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Benachrichtigung',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 55 => \n array (\n 'id' => 1556,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fairteiler',\n 'key' => 'infotype_alert',\n 'value' => 'nur über interne Info-Meldungen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'nur über interne Info-Meldungen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 56 => \n array (\n 'id' => 1557,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fairteiler',\n 'key' => 'infotype_desc',\n 'value' => 'Wie möchtest Du über Updates wie Essenslieferungen informiert werden?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Wie möchtest Du über Updates wie Essenslieferungen informiert werden?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 57 => \n array (\n 'id' => 1558,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fairteiler',\n 'key' => 'infotype_email',\n 'value' => 'über eine E-Mail Benachrichtigung',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'über eine E-Mail Benachrichtigung',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 58 => \n array (\n 'id' => 1559,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fairteiler',\n 'key' => 'infotype_title',\n 'value' => ':var folgen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => ':var folgen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 59 => \n array (\n 'id' => 1560,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fairteiler',\n 'key' => 'list_fairteiler',\n 'value' => 'Alle Fair-Teiler in :var',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Alle Fair-Teiler in :var',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 60 => \n array (\n 'id' => 1561,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fairteiler',\n 'key' => 'new_fairteiler',\n 'value' => 'Neuer Fair-Teiler',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Neuer Fair-Teiler',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 61 => \n array (\n 'id' => 1562,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fairteiler',\n 'key' => 'new_fairteiler_in',\n 'value' => 'Neuer Fair-Teiler in :var',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Neuer Fair-Teiler in :var',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 62 => \n array (\n 'id' => 1563,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fairteiler',\n 'key' => 'no_fairteiler_available',\n 'value' => 'Noch keine Fair-Teiler eingetragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Noch keine Fair-Teiler eingetragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 63 => \n array (\n 'id' => 1564,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fairteiler',\n 'key' => 'no_more_follow',\n 'value' => 'Fair-Teiler nicht mehr folgen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Fair-Teiler nicht mehr folgen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 64 => \n array (\n 'id' => 1565,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fairteiler',\n 'key' => 'ort',\n 'value' => 'Stadt/Gemeinde',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Stadt/Gemeinde',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 65 => \n array (\n 'id' => 1566,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fairteiler',\n 'key' => 'select_bezirk',\n 'value' => 'Bezirk auswählen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Bezirk auswählen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 66 => \n array (\n 'id' => 1567,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fairteiler',\n 'key' => 'write_teaser',\n 'value' => 'Nachricht schreiben...',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Nachricht schreiben...',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 67 => \n array (\n 'id' => 1568,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fairteiler',\n 'key' => 'your_fairteiler',\n 'value' => 'Fair-Teiler in Deinen Bezirken',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Fair-Teiler in Deinen Bezirken',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 68 => \n array (\n 'id' => 1569,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_faq',\n 'key' => 'answer',\n 'value' => 'Antwort',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Antwort',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 69 => \n array (\n 'id' => 1570,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_faq',\n 'key' => 'bread_edit_faq',\n 'value' => 'FAQ bearbeiten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'FAQ bearbeiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 70 => \n array (\n 'id' => 1571,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_faq',\n 'key' => 'bread_faq',\n 'value' => 'Alle FAQ\\'s',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Alle FAQ\\'s',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 71 => \n array (\n 'id' => 1572,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_faq',\n 'key' => 'bread_new_faq',\n 'value' => 'neue FAQ eintragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'neue FAQ eintragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 72 => \n array (\n 'id' => 1573,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_faq',\n 'key' => 'delete_sure',\n 'value' => 'Soll :var wirklich unwideruflich gel&ouml;scht werden?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Soll :var wirklich unwideruflich gel&ouml;scht werden?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 73 => \n array (\n 'id' => 1574,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_faq',\n 'key' => 'faq_add_success',\n 'value' => 'Frage wurde gespeichert!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Frage wurde gespeichert!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 74 => \n array (\n 'id' => 1575,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_faq',\n 'key' => 'faq_bread',\n 'value' => 'Alle FAQ\\'s',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Alle FAQ\\'s',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 75 => \n array (\n 'id' => 1576,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_faq',\n 'key' => 'faq_edit_success',\n 'value' => 'FAQ wurde bearbeitet',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'FAQ wurde bearbeitet',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 76 => \n array (\n 'id' => 1577,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_faq',\n 'key' => 'faq_empty',\n 'value' => 'Bisher wurde keine FAQ eingetragen.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Bisher wurde keine FAQ eingetragen.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 77 => \n array (\n 'id' => 1578,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_faq',\n 'key' => 'faq_kategorie_id',\n 'value' => 'FAQ Kategorie',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'FAQ Kategorie',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 78 => \n array (\n 'id' => 1579,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_faq',\n 'key' => 'name',\n 'value' => 'Frage',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Frage',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 79 => \n array (\n 'id' => 1580,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_faq',\n 'key' => 'neu_faq',\n 'value' => 'Neue FAQ eintragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Neue FAQ eintragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 80 => \n array (\n 'id' => 1581,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_foodsaver',\n 'key' => 'abholen_id',\n 'value' => 'abholen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'abholen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 81 => \n array (\n 'id' => 1582,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_foodsaver',\n 'key' => 'abholen_und_kuehlen_id',\n 'value' => 'abholen_und_kuehlen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'abholen_und_kuehlen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 82 => \n array (\n 'id' => 1583,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_foodsaver',\n 'key' => 'about_me',\n 'value' => 'about_me',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'about_me',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 83 => \n array (\n 'id' => 1584,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_foodsaver',\n 'key' => 'admin',\n 'value' => 'admin',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'admin',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 84 => \n array (\n 'id' => 1585,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_foodsaver',\n 'key' => 'aktivbeifoodsharing_id',\n 'value' => 'aktivbeifoodsharing',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'aktivbeifoodsharing',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 85 => \n array (\n 'id' => 1586,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_foodsaver',\n 'key' => 'anbau',\n 'value' => 'anbau',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'anbau',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 86 => \n array (\n 'id' => 1587,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_foodsaver',\n 'key' => 'anmeldedatum',\n 'value' => 'anmeldedatum',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'anmeldedatum',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 87 => \n array (\n 'id' => 1588,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_foodsaver',\n 'key' => 'bezirk_id',\n 'value' => 'bezirk',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'bezirk',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 88 => \n array (\n 'id' => 1589,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_foodsaver',\n 'key' => 'bread_edit_foodsaver',\n 'value' => 'Foodsaver bearbeiten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Foodsaver bearbeiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 89 => \n array (\n 'id' => 1590,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_foodsaver',\n 'key' => 'bread_foodsaver',\n 'value' => 'Alle Foodsaver',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Alle Foodsaver',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 90 => \n array (\n 'id' => 1591,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_foodsaver',\n 'key' => 'bread_new_foodsaver',\n 'value' => 'neuen Foodsaver eintragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'neuen Foodsaver eintragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 91 => \n array (\n 'id' => 1592,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_foodsaver',\n 'key' => 'containert_id',\n 'value' => 'containert',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'containert',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 92 => \n array (\n 'id' => 1593,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_foodsaver',\n 'key' => 'datenschutz',\n 'value' => 'datenschutz',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'datenschutz',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 93 => \n array (\n 'id' => 1594,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_foodsaver',\n 'key' => 'delete_account',\n 'value' => 'Account löschen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Account löschen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 94 => \n array (\n 'id' => 1595,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_foodsaver',\n 'key' => 'delete_account_confirm_bt',\n 'value' => 'Ja, Account jetzt löschen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Ja, Account jetzt löschen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 95 => \n array (\n 'id' => 1596,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_foodsaver',\n 'key' => 'delete_account_confirm_msg',\n 'value' => 'Du bist dabei Diesen Account zu löschen, bist Du Dir ganz sicher?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Du bist dabei Diesen Account zu löschen, bist Du Dir ganz sicher?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 96 => \n array (\n 'id' => 1597,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_foodsaver',\n 'key' => 'delete_account_confirm_title',\n 'value' => 'Account wirklich löschen?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Account wirklich löschen?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 97 => \n array (\n 'id' => 1598,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_foodsaver',\n 'key' => 'delete_now',\n 'value' => 'Account jetzt löschen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Account jetzt löschen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 98 => \n array (\n 'id' => 1599,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_foodsaver',\n 'key' => 'delete_sure',\n 'value' => 'Soll :var wirklich unwideruflich gelöscht werden?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Soll :var wirklich unwideruflich gelöscht werden?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 99 => \n array (\n 'id' => 1600,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_foodsaver',\n 'key' => 'edit_photo',\n 'value' => 'Foto bearbeiten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Foto bearbeiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 100 => \n array (\n 'id' => 1601,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_foodsaver',\n 'key' => 'fleisch_abholen_id',\n 'value' => 'fleisch_abholen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'fleisch_abholen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 101 => \n array (\n 'id' => 1602,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_foodsaver',\n 'key' => 'foodsaver_bread',\n 'value' => 'Foodsaver',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Foodsaver',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 102 => \n array (\n 'id' => 1603,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_foodsaver',\n 'key' => 'foodsaver_deleted',\n 'value' => 'Foodsaver gelöscht',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Foodsaver gelöscht',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 103 => \n array (\n 'id' => 1604,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_foodsaver',\n 'key' => 'foodsaver_empty',\n 'value' => 'Bisher wurde kein Foodsaver eingetragen.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Bisher wurde kein Foodsaver eingetragen.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 104 => \n array (\n 'id' => 1605,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_foodsaver',\n 'key' => 'foodsavertyp_id',\n 'value' => 'foodsavertyp',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'foodsavertyp',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 105 => \n array (\n 'id' => 1606,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_foodsaver',\n 'key' => 'fs_id',\n 'value' => 'Foodsharing-ID',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Foodsharing-ID',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 106 => \n array (\n 'id' => 1607,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_foodsaver',\n 'key' => 'fs_international',\n 'value' => 'fs_international',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'fs_international',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 107 => \n array (\n 'id' => 1608,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_foodsaver',\n 'key' => 'fs_orga',\n 'value' => 'fs_orga',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'fs_orga',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 108 => \n array (\n 'id' => 1609,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_foodsaver',\n 'key' => 'geb_datum',\n 'value' => 'Geburtsdatum',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Geburtsdatum',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 109 => \n array (\n 'id' => 1610,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_foodsaver',\n 'key' => 'haftungsausschluss',\n 'value' => 'haftungsausschluss',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'haftungsausschluss',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 110 => \n array (\n 'id' => 1611,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_foodsaver',\n 'key' => 'hotline_id',\n 'value' => 'hotline',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'hotline',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 111 => \n array (\n 'id' => 1612,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_foodsaver',\n 'key' => 'kommentar',\n 'value' => 'kommentar',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'kommentar',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 112 => \n array (\n 'id' => 1613,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_foodsaver',\n 'key' => 'kontakte_betriebe',\n 'value' => 'kontakte_betriebe',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'kontakte_betriebe',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 113 => \n array (\n 'id' => 1614,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_foodsaver',\n 'key' => 'land_id',\n 'value' => 'land',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'land',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 114 => \n array (\n 'id' => 1615,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_foodsaver',\n 'key' => 'last_login',\n 'value' => 'Letzter Login',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Letzter Login',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 115 => \n array (\n 'id' => 1616,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_foodsaver',\n 'key' => 'legal_gerettet',\n 'value' => 'legal_gerettet',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'legal_gerettet',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 116 => \n array (\n 'id' => 1617,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_foodsaver',\n 'key' => 'motivation',\n 'value' => 'motivation',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'motivation',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 117 => \n array (\n 'id' => 1618,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_foodsaver',\n 'key' => 'neu_foodsaver',\n 'value' => 'Neuen Foodsaver eintragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Neuen Foodsaver eintragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 118 => \n array (\n 'id' => 1619,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_foodsaver',\n 'key' => 'orgateam',\n 'value' => 'Bundesweite Orga',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Bundesweite Orga',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 119 => \n array (\n 'id' => 1620,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_foodsaver',\n 'key' => 'passwd',\n 'value' => 'Passwort',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Passwort',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 120 => \n array (\n 'id' => 1621,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_foodsaver',\n 'key' => 'pfand_id',\n 'value' => 'pfand',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'pfand',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 121 => \n array (\n 'id' => 1622,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_foodsaver',\n 'key' => 'plz_id',\n 'value' => 'Postleitzahl',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Postleitzahl',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 122 => \n array (\n 'id' => 1623,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_foodsaver',\n 'key' => 'posible_restore_account',\n 'value' => 'Der Account kann nach dem löschen widerhergestellt werden',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Der Account kann nach dem löschen widerhergestellt werden',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 123 => \n array (\n 'id' => 1624,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_foodsaver',\n 'key' => 'position',\n 'value' => 'Position bei foodsharing (öffentlich)',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Position bei foodsharing (öffentlich)',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 124 => \n array (\n 'id' => 1625,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_foodsaver',\n 'key' => 'promotionarbeit_id',\n 'value' => 'promotionarbeit',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'promotionarbeit',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 125 => \n array (\n 'id' => 1626,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_foodsaver',\n 'key' => 'radius',\n 'value' => 'radius',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'radius',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 126 => \n array (\n 'id' => 1627,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_foodsaver',\n 'key' => 'raumlichkeit',\n 'value' => 'raumlichkeit',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'raumlichkeit',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 127 => \n array (\n 'id' => 1628,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_foodsaver',\n 'key' => 'search_name',\n 'value' => 'nach foodsaver suchen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'nach foodsaver suchen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 128 => \n array (\n 'id' => 1629,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_foodsaver',\n 'key' => 'talente',\n 'value' => 'talente',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'talente',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 129 => \n array (\n 'id' => 1630,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_foodsaver',\n 'key' => 'timetable',\n 'value' => 'timetable',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'timetable',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 130 => \n array (\n 'id' => 1631,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_foodsaver',\n 'key' => 'upload_new_photo',\n 'value' => 'neues Foto hochladen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'neues Foto hochladen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 131 => \n array (\n 'id' => 1632,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_foodsaver',\n 'key' => 'wohndauer_id',\n 'value' => 'wohndauer',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'wohndauer',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 132 => \n array (\n 'id' => 1633,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_foodsaver',\n 'key' => 'wohnung_id',\n 'value' => 'wohnung',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'wohnung',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 133 => \n array (\n 'id' => 1634,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_foodsaver',\n 'key' => 'zeitaufwand_id',\n 'value' => 'zeitaufwand',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'zeitaufwand',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 134 => \n array (\n 'id' => 1635,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_foodsaver',\n 'key' => 'zuverlassig_id',\n 'value' => 'zuverlassig',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'zuverlassig',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 135 => \n array (\n 'id' => 1636,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'add_fetchtime',\n 'value' => 'Abholzeiten eintragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Abholzeiten eintragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 136 => \n array (\n 'id' => 1637,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'add_me_here',\n 'value' => 'Mich hier eintragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Mich hier eintragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 137 => \n array (\n 'id' => 1638,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'add_new',\n 'value' => 'Neuen Betrieb eintragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Neuen Betrieb eintragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 138 => \n array (\n 'id' => 1639,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'already_in_bezirk',\n 'value' => 'In diesem Bezirk bist Du schon aktiv',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'In diesem Bezirk bist Du schon aktiv',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 139 => \n array (\n 'id' => 1640,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'ansprechpartner',\n 'value' => 'Ansprechpartner',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Ansprechpartner',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 140 => \n array (\n 'id' => 1641,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'attach_image',\n 'value' => 'Bild anhängen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Bild anhängen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 141 => \n array (\n 'id' => 1642,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'besonderheiten',\n 'value' => 'Besonderheiten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Besonderheiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 142 => \n array (\n 'id' => 1643,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'betrieb_add_success',\n 'value' => 'Lebensmittel-Spender Betrieb wurde gespeichert',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Lebensmittel-Spender Betrieb wurde gespeichert',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 143 => \n array (\n 'id' => 1644,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'betrieb_bread',\n 'value' => 'Spender-Betriebe',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Spender-Betriebe',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 144 => \n array (\n 'id' => 1645,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'betrieb_edit_success',\n 'value' => 'Änderungen wurden gespeichert',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Änderungen wurden gespeichert',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 145 => \n array (\n 'id' => 1646,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'betrieb_empty',\n 'value' => 'Bisher wurde kein Betrieb eingetragen.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Bisher wurde kein Betrieb eingetragen.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 146 => \n array (\n 'id' => 1647,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'betrieb_kategorie_id',\n 'value' => 'Kategorie',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Kategorie',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 147 => \n array (\n 'id' => 1648,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'betrieb_sign_out',\n 'value' => 'Mich hier austragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Mich hier austragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 148 => \n array (\n 'id' => 1649,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'betrieb_status_id',\n 'value' => 'Status',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Status',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 149 => \n array (\n 'id' => 1650,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'bezirk_id',\n 'value' => 'Bezirk',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Bezirk',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 150 => \n array (\n 'id' => 1651,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'bezirk_request_successfull',\n 'value' => 'Die Anfrage wurde erfolgreich versendet, Du wirst benachrichtigt sobald Du freigeschaltet bist.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Die Anfrage wurde erfolgreich versendet, Du wirst benachrichtigt sobald Du freigeschaltet bist.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 151 => \n array (\n 'id' => 1652,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'bread_betrieb',\n 'value' => 'Alle Betriebe',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Alle Betriebe',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 152 => \n array (\n 'id' => 1653,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'bread_edit_betrieb',\n 'value' => 'Betrieb bearbeiten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Betrieb bearbeiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 153 => \n array (\n 'id' => 1654,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'bread_new_betrieb',\n 'value' => 'neuen Betrieb eintragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'neuen Betrieb eintragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 154 => \n array (\n 'id' => 1655,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'change_fetcher',\n 'value' => 'Abholer ändern',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Abholer ändern',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 155 => \n array (\n 'id' => 1656,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'change_status',\n 'value' => 'Status ändern',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Status ändern',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 156 => \n array (\n 'id' => 1657,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'change_times',\n 'value' => 'Abholzeiten ändern',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Abholzeiten ändern',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 157 => \n array (\n 'id' => 1658,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'choose_fetcher',\n 'value' => 'Abholer auswählen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Abholer auswählen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 158 => \n array (\n 'id' => 1659,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'click_to_confirm',\n 'value' => 'Unbestätigte Foodsaver kannst Du durch einen Klick auf das kleine Foto aktivieren',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Unbestätigte Foodsaver kannst Du durch einen Klick auf das kleine Foto aktivieren',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 159 => \n array (\n 'id' => 1660,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'date_add_successful',\n 'value' => '<p><b>Termine wurden erfolgreich hinzugefügt</b><br>Müssen nur noch vom Filialverantwortlichen bestätigt werden</p>',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => '<p><b>Termine wurden erfolgreich hinzugefügt</b><br>Müssen nur noch vom Filialverantwortlichen bestätigt werden</p>',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 160 => \n array (\n 'id' => 1661,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'datetime',\n 'value' => 'Zeitpunkt',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Zeitpunkt',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 161 => \n array (\n 'id' => 1662,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'del_and_send',\n 'value' => 'Termin löschen und Nachricht senden',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Termin löschen und Nachricht senden',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 162 => \n array (\n 'id' => 1663,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'del_date_for',\n 'value' => 'Austragen für',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Austragen für',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 163 => \n array (\n 'id' => 1664,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'delete_sure',\n 'value' => 'Soll :var wirklich unwideruflich gelöscht werden?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Soll :var wirklich unwideruflich gelöscht werden?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 164 => \n array (\n 'id' => 1665,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'edit_betrieb',\n 'value' => 'Betrieb bearbeiten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Betrieb bearbeiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 165 => \n array (\n 'id' => 1666,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'edit_fetchtime',\n 'value' => 'Abholzeiten bearbeiten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Abholzeiten bearbeiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 166 => \n array (\n 'id' => 1667,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'edit_team',\n 'value' => 'Team bearbeiten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Team bearbeiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 167 => \n array (\n 'id' => 1668,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'fax',\n 'value' => 'Fax',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Fax',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 168 => \n array (\n 'id' => 1669,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'fetch_history',\n 'value' => 'Abholungshistorie',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Abholungshistorie',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 169 => \n array (\n 'id' => 1670,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'fetcher',\n 'value' => 'Abholer',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Abholer',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 170 => \n array (\n 'id' => 1671,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'fetcher_count',\n 'value' => 'Anzahl Abholer',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Anzahl Abholer',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 171 => \n array (\n 'id' => 1672,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'find_representation',\n 'value' => 'Vertretung finden',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Vertretung finden',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 172 => \n array (\n 'id' => 1673,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'have_backup',\n 'value' => 'Ich habe schon eine Vertretung',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Ich habe schon eine Vertretung',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 173 => \n array (\n 'id' => 1674,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'hsnr',\n 'value' => 'Hausnummer',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Hausnummer',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 174 => \n array (\n 'id' => 1675,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'i_do',\n 'value' => 'Mach Ich!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Mach Ich!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 175 => \n array (\n 'id' => 1676,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'info',\n 'value' => 'Infos',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Infos',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 176 => \n array (\n 'id' => 1677,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'kette_id',\n 'value' => 'Betriebs-Kette',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Betriebs-Kette',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 177 => \n array (\n 'id' => 1678,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'max_3_leader',\n 'value' => 'Es darf maximal 3 Verantwortliche für diese Filiale geben.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Es darf maximal 3 Verantwortliche für diese Filiale geben.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 178 => \n array (\n 'id' => 1679,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'menge',\n 'value' => 'Abholmenge im Schnitt',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Abholmenge im Schnitt',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 179 => \n array (\n 'id' => 1680,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'more_stores',\n 'value' => 'Weitere Betriebe aus :name',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Weitere Betriebe aus :name',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 180 => \n array (\n 'id' => 1681,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'msg_to_team',\n 'value' => 'Team benachrichtigen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Team benachrichtigen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 181 => \n array (\n 'id' => 1682,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'neu_betrieb',\n 'value' => 'Neuen Betrieb eintragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Neuen Betrieb eintragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 182 => \n array (\n 'id' => 1683,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'next_fetch_dates',\n 'value' => 'Nächste Abholtermine',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Nächste Abholtermine',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 183 => \n array (\n 'id' => 1684,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'no_fetchtime',\n 'value' => 'Für :name sind noch keine Abholzeiten eingetragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Für :name sind noch keine Abholzeiten eingetragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 184 => \n array (\n 'id' => 1685,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'not_confirmed',\n 'value' => ':name ist noch nicht bestätigt!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => ':name ist noch nicht bestätigt!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 185 => \n array (\n 'id' => 1686,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'not_fetching',\n 'value' => 'Du holst noch keine Lebensmittel ab.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Du holst noch keine Lebensmittel ab.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 186 => \n array (\n 'id' => 1687,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'not_in_team',\n 'value' => 'Du bist noch nicht im Team von diesem Betrieb',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Du bist noch nicht im Team von diesem Betrieb',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 187 => \n array (\n 'id' => 1688,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'not_ready',\n 'value' => 'Betrieb ist noch nicht bereit zu spenden',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Betrieb ist noch nicht bereit zu spenden',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 188 => \n array (\n 'id' => 1689,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'not_responsible_but_bot',\n 'value' => 'Du bist nicht verantwortlich für diesen Betrieb, hast dennoch alle Rechte, weil Du Botschafter bist.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Du bist nicht verantwortlich für diesen Betrieb, hast dennoch alle Rechte, weil Du Botschafter bist.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 189 => \n array (\n 'id' => 1690,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'not_responsible_but_orga',\n 'value' => 'Du bist nicht verantwortlich für diesen Betrieb, hast dennoch alle Rechte, weil Du im Bundesweiten Orgateam bist.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Du bist nicht verantwortlich für diesen Betrieb, hast dennoch alle Rechte, weil Du im Bundesweiten Orgateam bist.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 190 => \n array (\n 'id' => 1691,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'not_verified',\n 'value' => 'Dein Account wurde noch nicht von einem Botschafter verifiziert. Erst dann kannst Du Dich zum Essenabholen eintragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Dein Account wurde noch nicht von einem Botschafter verifiziert. Erst dann kannst Du Dich zum Essenabholen eintragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 191 => \n array (\n 'id' => 1692,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'ort',\n 'value' => 'Stadt/Gemeinde',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Stadt/Gemeinde',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 192 => \n array (\n 'id' => 1693,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'plz_id',\n 'value' => 'plz',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'plz',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 193 => \n array (\n 'id' => 1694,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'position_search',\n 'value' => 'Positionssuche',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Positionssuche',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 194 => \n array (\n 'id' => 1695,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'pubbtime_1',\n 'value' => 'morgens',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'morgens',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 195 => \n array (\n 'id' => 1696,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'pubbtime_2',\n 'value' => 'mittags/nachmittags',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'mittags/nachmittags',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 196 => \n array (\n 'id' => 1697,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'pubbtime_3',\n 'value' => 'abends',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'abends',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 197 => \n array (\n 'id' => 1698,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'pubbtime_4',\n 'value' => 'nachts',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'nachts',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 198 => \n array (\n 'id' => 1699,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'reportmessage',\n 'value' => 'Beschreibe den Vorfall noch etwas genauer',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Beschreibe den Vorfall noch etwas genauer',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 199 => \n array (\n 'id' => 1700,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'reportreason',\n 'value' => 'Aus welchem grun möchtest Du den Foodsaver melden?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Aus welchem grun möchtest Du den Foodsaver melden?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 200 => \n array (\n 'id' => 1701,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'request_already_send',\n 'value' => 'An diesen Bezirk hast Du schon eine Anfrage gesendet.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'An diesen Bezirk hast Du schon eine Anfrage gesendet.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 201 => \n array (\n 'id' => 1702,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'responsible_foodsaver',\n 'value' => 'Verantwortliche Foodsaver',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Verantwortliche Foodsaver',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 202 => \n array (\n 'id' => 1703,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'shure_date',\n 'value' => 'Möchtest Du Dich wirklich verbindlich für <strong>:label</strong> eintragen?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Möchtest Du Dich wirklich verbindlich für <strong>:label</strong> eintragen?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 203 => \n array (\n 'id' => 1704,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'shure_of_backup',\n 'value' => 'Hast Du eine Vertretung? Unsere Verlässlichkeit ist sehr wichtig!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Hast Du eine Vertretung? Unsere Verlässlichkeit ist sehr wichtig!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 204 => \n array (\n 'id' => 1705,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'shure_range_date',\n 'value' => '<strong>Verbindlich :labels</strong> im gewählten Zeitraum abholen.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => '<strong>Verbindlich :labels</strong> im gewählten Zeitraum abholen.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 205 => \n array (\n 'id' => 1706,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'signout_sure',\n 'value' => '<strong>Möchtest Du Dich austragen?</strong><p>Sämtliche Abholtermine werden gelöscht.</p>',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => '<strong>Möchtest Du Dich austragen?</strong><p>Sämtliche Abholtermine werden gelöscht.</p>',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 206 => \n array (\n 'id' => 1707,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'signout_sure_title',\n 'value' => 'Bist Du Dir sicher?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Bist Du Dir sicher?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 207 => \n array (\n 'id' => 1708,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'stat_fetchcount',\n 'value' => 'Letzte Abholung am :date',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Letzte Abholung am :date',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 208 => \n array (\n 'id' => 1709,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'stat_fetchcount_none',\n 'value' => 'Noch keine Lebensmittel abgeholt',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Noch keine Lebensmittel abgeholt',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 209 => \n array (\n 'id' => 1710,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'status_change_at',\n 'value' => 'Statusänderung am :var',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Statusänderung am :var',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 210 => \n array (\n 'id' => 1711,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'status_date',\n 'value' => 'letzte Statusänderung',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'letzte Statusänderung',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 211 => \n array (\n 'id' => 1712,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'status_msg_1',\n 'value' => 'Es besteht noch kein Kontakt',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Es besteht noch kein Kontakt',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 212 => \n array (\n 'id' => 1713,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'status_msg_2',\n 'value' => 'Verhandlungen laufen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Verhandlungen laufen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 213 => \n array (\n 'id' => 1714,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'status_msg_3',\n 'value' => 'Betrieb ist bereit zu spenden',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Betrieb ist bereit zu spenden',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 214 => \n array (\n 'id' => 1715,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'status_msg_4',\n 'value' => 'Betrieb will nicht kooperieren',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Betrieb will nicht kooperieren',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 215 => \n array (\n 'id' => 1716,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'status_msg_5',\n 'value' => 'Betrieb spendet bereits',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Betrieb spendet bereits',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 216 => \n array (\n 'id' => 1717,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'status_msg_6',\n 'value' => 'spendet an Tafel etc. & wirft nichts weg',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'spendet an Tafel etc. & wirft nichts weg',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 217 => \n array (\n 'id' => 1718,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'str',\n 'value' => 'Straße',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Straße',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 218 => \n array (\n 'id' => 1719,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'team_msg',\n 'value' => 'Nachricht ans ganze Team',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Nachricht ans ganze Team',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 219 => \n array (\n 'id' => 1720,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'team_not_empty',\n 'value' => 'Das Team darf nicht leer sein.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Das Team darf nicht leer sein.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 220 => \n array (\n 'id' => 1721,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'team_status',\n 'value' => 'Teamstatus',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Teamstatus',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 221 => \n array (\n 'id' => 1722,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'team_status_0',\n 'value' => 'Dieses Team ist voll. Daher werden z.<span style=\"white-space:nowrap\">&thinsp;</span>Z. keine weiteren Helfer gesucht.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Dieses Team ist voll. Daher werden z.<span style=\"white-space:nowrap\">&thinsp;</span>Z. keine weiteren Helfer gesucht.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 222 => \n array (\n 'id' => 1723,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'team_status_1',\n 'value' => '<strong>Es werden noch Helfer gesucht</strong>',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => '<strong>Es werden noch Helfer gesucht</strong>',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 223 => \n array (\n 'id' => 1724,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'team_status_2',\n 'value' => '<strong>Es werden dringend noch Helfer gesucht</strong>',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => '<strong>Es werden dringend noch Helfer gesucht</strong>',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 224 => \n array (\n 'id' => 1725,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'tpl_msg_to_team',\n 'value' => 'Liebes :BETRIEB Team, \n\nam :DATE kann ich leider doch keine Lebensmittel abholen. Daher suche ich dringend eine Vertretung. Kannst Du für mich einspringen?\n\nLiebe Grüße',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Liebes :BETRIEB Team, \n\nam :DATE kann ich leider doch keine Lebensmittel abholen. Daher suche ich dringend eine Vertretung. Kannst Du für mich einspringen?\n\nLiebe Grüße',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 225 => \n array (\n 'id' => 1726,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'verantwortlicher',\n 'value' => 'Verantwortliche Mitglieder',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Verantwortliche Mitglieder',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 226 => \n array (\n 'id' => 1727,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'verantwortlicher_must_be',\n 'value' => 'Es muss mindestens einen Verantworklichen für jeden Betrieb geben!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Es muss mindestens einen Verantworklichen für jeden Betrieb geben!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 227 => \n array (\n 'id' => 1728,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'wait_for_confirm',\n 'value' => '<strong>Du bist vorgemerkt</strong><br>der Filalverantwortliche muss jetzt nur noch Deine Anfrage bestätigen.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => '<strong>Du bist vorgemerkt</strong><br>der Filalverantwortliche muss jetzt nur noch Deine Anfrage bestätigen.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 228 => \n array (\n 'id' => 1729,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'write_teaser',\n 'value' => 'Schreibe etwas...',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Schreibe etwas...',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 229 => \n array (\n 'id' => 1730,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'you_fetcher',\n 'value' => 'Betriebe bei denen Du Lebensmittel abholst',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Betriebe bei denen Du Lebensmittel abholst',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 230 => \n array (\n 'id' => 1731,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'you_responsible',\n 'value' => 'Betriebe für die Du verantwortlich bist',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Betriebe für die Du verantwortlich bist',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 231 => \n array (\n 'id' => 1732,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'your_store',\n 'value' => 'Für Diesen Betrieb bist Du verantwortlich',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Für Diesen Betrieb bist Du verantwortlich',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 232 => \n array (\n 'id' => 1733,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_fsbetrieb',\n 'key' => 'zeitraum',\n 'value' => 'Zeitraum',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Zeitraum',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 233 => \n array (\n 'id' => 1734,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_groups',\n 'key' => 'apply_type',\n 'value' => 'Wer kann sich für diese Gruppe eintragen?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Wer kann sich für diese Gruppe eintragen?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 234 => \n array (\n 'id' => 1735,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_groups',\n 'key' => 'banana_count',\n 'value' => 'Wie viele Vertrauensbananen braucht ein Mitglied?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Wie viele Vertrauensbananen braucht ein Mitglied?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 235 => \n array (\n 'id' => 1736,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_groups',\n 'key' => 'fetch_count',\n 'value' => 'Wie viele Abholungen sollte ein Bewerber gemacht haben?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Wie viele Abholungen sollte ein Bewerber gemacht haben?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 236 => \n array (\n 'id' => 1737,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_groups',\n 'key' => 'leader',\n 'value' => 'Gruppen-Admins',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Gruppen-Admins',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 237 => \n array (\n 'id' => 1738,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_groups',\n 'key' => 'member',\n 'value' => 'Mitglieder',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Mitglieder',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 238 => \n array (\n 'id' => 1739,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_groups',\n 'key' => 'report_num',\n 'value' => 'Dürfen sich auch Foodsaver mit Verstoßmeldungen bewerben?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Dürfen sich auch Foodsaver mit Verstoßmeldungen bewerben?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 239 => \n array (\n 'id' => 1740,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_groups',\n 'key' => 'week_num',\n 'value' => 'Seit wie vielen Wochen sollte ein Bewerber schon dabei sein?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Seit wie vielen Wochen sollte ein Bewerber schon dabei sein?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 240 => \n array (\n 'id' => 1741,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_index',\n 'key' => 'fairteiler',\n 'value' => 'Neuste Fair-Teiler Posts',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Neuste Fair-Teiler Posts',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 241 => \n array (\n 'id' => 1742,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_index',\n 'key' => 'more_baskets',\n 'value' => 'Alle Essenskörbe auf der Karte',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Alle Essenskörbe auf der Karte',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 242 => \n array (\n 'id' => 1743,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_index',\n 'key' => 'more_fairteiler',\n 'value' => 'Alle Fair-Teiler auf der Karte',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Alle Fair-Teiler auf der Karte',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 243 => \n array (\n 'id' => 1744,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_index',\n 'key' => 'new_fairteiler',\n 'value' => 'Fair-Teiler Updates',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Fair-Teiler Updates',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 244 => \n array (\n 'id' => 1745,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_index',\n 'key' => 'new_foodbaskets',\n 'value' => 'Neuste Essenskörbe',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Neuste Essenskörbe',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 245 => \n array (\n 'id' => 1746,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_kette',\n 'key' => 'bread_edit_kette',\n 'value' => 'Kette bearbeiten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Kette bearbeiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 246 => \n array (\n 'id' => 1747,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_kette',\n 'key' => 'bread_new_kette',\n 'value' => 'neue Kette eintragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'neue Kette eintragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 247 => \n array (\n 'id' => 1748,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_kette',\n 'key' => 'delete_sure',\n 'value' => 'Soll :var wirklich unwideruflich gel&ouml;scht werden?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Soll :var wirklich unwideruflich gel&ouml;scht werden?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 248 => \n array (\n 'id' => 1749,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_kette',\n 'key' => 'kette_bread',\n 'value' => 'Alle Unternehmens-Ketten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Alle Unternehmens-Ketten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 249 => \n array (\n 'id' => 1750,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_kette',\n 'key' => 'kette_edit_success',\n 'value' => 'Änderungen wurden gespeichert!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Änderungen wurden gespeichert!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 250 => \n array (\n 'id' => 1751,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_kette',\n 'key' => 'kette_empty',\n 'value' => 'Bisher wurde keine Ketten eingetragen.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Bisher wurde keine Ketten eingetragen.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 251 => \n array (\n 'id' => 1752,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_kette',\n 'key' => 'logo',\n 'value' => 'Logo',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Logo',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 252 => \n array (\n 'id' => 1753,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_kette',\n 'key' => 'name',\n 'value' => 'Name',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Name',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 253 => \n array (\n 'id' => 1754,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_kette',\n 'key' => 'neu_kette',\n 'value' => 'Neue Kette eintragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Neue Kette eintragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 254 => \n array (\n 'id' => 1755,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_login',\n 'key' => 'activation_failed',\n 'value' => '<strong>Aktivierung fehlgeschlagen!</strong> Ist der eingegebene Link auch korrekt?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => '<strong>Aktivierung fehlgeschlagen!</strong> Ist der eingegebene Link auch korrekt?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 255 => \n array (\n 'id' => 1756,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_login',\n 'key' => 'activation_success',\n 'value' => '<strong>Aktivierung erfolgreich!</strong> Logge Dich jetzt Mit Deiner E-Mail-Adresse und Deinem gewählten Passwort ein.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => '<strong>Aktivierung erfolgreich!</strong> Logge Dich jetzt Mit Deiner E-Mail-Adresse und Deinem gewählten Passwort ein.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 256 => \n array (\n 'id' => 1757,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_login',\n 'key' => 'check_mail',\n 'value' => 'Schau jetzt in Dein E-Mail-Postfach, um die Anmeldung abzuschließen!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Schau jetzt in Dein E-Mail-Postfach, um die Anmeldung abzuschließen!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 257 => \n array (\n 'id' => 1758,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_login',\n 'key' => 'contact_info',\n 'value' => 'Kontaktinformationen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Kontaktinformationen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 258 => \n array (\n 'id' => 1759,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_login',\n 'key' => 'error',\n 'value' => 'Es ist ein Fehler aufgetreten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Es ist ein Fehler aufgetreten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 259 => \n array (\n 'id' => 1760,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_login',\n 'key' => 'error_email',\n 'value' => 'Mit Deiner E-Mail-Adresse stimmt etwas nicht',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Mit Deiner E-Mail-Adresse stimmt etwas nicht',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 260 => \n array (\n 'id' => 1761,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_login',\n 'key' => 'error_image',\n 'value' => 'Dein Foto konnte nicht hochgeladen werden',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Dein Foto konnte nicht hochgeladen werden',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 261 => \n array (\n 'id' => 1762,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_login',\n 'key' => 'error_name',\n 'value' => 'Bitte gib einen Namen ein',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Bitte gib einen Namen ein',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 262 => \n array (\n 'id' => 1763,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_login',\n 'key' => 'error_passwd',\n 'value' => 'Dein Passwort muss mindestens 5 und darf maximal 30 Zeichen haben',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Dein Passwort muss mindestens 5 und darf maximal 30 Zeichen haben',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 263 => \n array (\n 'id' => 1764,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_login',\n 'key' => 'finish',\n 'value' => 'Anmeldung absenden',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Anmeldung absenden',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 264 => \n array (\n 'id' => 1765,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_login',\n 'key' => 'have_read_the_legal_stuff1',\n 'value' => 'Ich habe die Datenschutzerklärung zur Kenntnis genommen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Ich habe die Datenschutzerklärung zur Kenntnis genommen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 265 => \n array (\n 'id' => 1766,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_login',\n 'key' => 'have_read_the_legal_stuff2',\n 'value' => 'Ich habe die <a href=\"http://wiki.lebensmittelretten.de/Rechtsvereinbarung\" target=\"_blank\">Rechtsvereinbarung</a> zur Kenntnis genommen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Ich habe die <a href=\"http://wiki.lebensmittelretten.de/Rechtsvereinbarung\" target=\"_blank\">Rechtsvereinbarung</a> zur Kenntnis genommen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 266 => \n array (\n 'id' => 1767,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_login',\n 'key' => 'i_am_a',\n 'value' => 'Ich bin...',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Ich bin...',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 267 => \n array (\n 'id' => 1768,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_login',\n 'key' => 'join_success',\n 'value' => 'Deine Anmeldung war erfolgreich!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Deine Anmeldung war erfolgreich!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 268 => \n array (\n 'id' => 1769,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_login',\n 'key' => 'legal_stuff',\n 'value' => 'Rechtliches',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Rechtliches',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 269 => \n array (\n 'id' => 1770,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_login',\n 'key' => 'login_email',\n 'value' => 'Deine E-Mail-Adresse',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Deine E-Mail-Adresse',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 270 => \n array (\n 'id' => 1771,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_login',\n 'key' => 'login_failed',\n 'value' => 'Diese Zugangdsdaten stimmen leider so nicht.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Diese Zugangdsdaten stimmen leider so nicht.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 271 => \n array (\n 'id' => 1772,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_login',\n 'key' => 'login_info',\n 'value' => 'Login Informationen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Login Informationen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 272 => \n array (\n 'id' => 1773,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_login',\n 'key' => 'login_location',\n 'value' => 'Deine Adresse',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Deine Adresse',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 273 => \n array (\n 'id' => 1774,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_login',\n 'key' => 'login_name',\n 'value' => 'Dein Name',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Dein Name',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 274 => \n array (\n 'id' => 1775,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_login',\n 'key' => 'login_passwd1',\n 'value' => 'Passwort',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Passwort',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 275 => \n array (\n 'id' => 1776,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_login',\n 'key' => 'login_passwd2',\n 'value' => 'Passwortwiederholung',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Passwortwiederholung',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 276 => \n array (\n 'id' => 1777,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_login',\n 'key' => 'login_phone',\n 'value' => 'Telefonnummer',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Telefonnummer',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 277 => \n array (\n 'id' => 1778,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_login',\n 'key' => 'login_phone_info',\n 'value' => 'Es kann hilfreich sein, Deine Telefonnummer mit anderen Foodsharern zu teilen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Es kann hilfreich sein, Deine Telefonnummer mit anderen Foodsharern zu teilen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 278 => \n array (\n 'id' => 1779,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_login',\n 'key' => 'login_success',\n 'value' => 'Prima! Jetzt bist Du eingeloggt',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Prima! Jetzt bist Du eingeloggt',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 279 => \n array (\n 'id' => 1780,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_login',\n 'key' => 'login_surname',\n 'value' => 'Nachname',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Nachname',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 280 => \n array (\n 'id' => 1781,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_login',\n 'key' => 'man',\n 'value' => 'männlich',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'männlich',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 281 => \n array (\n 'id' => 1782,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_login',\n 'key' => 'next',\n 'value' => 'weiter',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'weiter',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 282 => \n array (\n 'id' => 1783,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_login',\n 'key' => 'organisation',\n 'value' => 'Organisation',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Organisation',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 283 => \n array (\n 'id' => 1784,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_login',\n 'key' => 'other',\n 'value' => 'sonstig/anders',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'sonstig/anders',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 284 => \n array (\n 'id' => 1785,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_login',\n 'key' => 'pass1',\n 'value' => 'Dein neues gewünschtes Passwort',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Dein neues gewünschtes Passwort',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 285 => \n array (\n 'id' => 1786,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_login',\n 'key' => 'pass2',\n 'value' => 'Passwortwiederholung',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Passwortwiederholung',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 286 => \n array (\n 'id' => 1787,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_login',\n 'key' => 'peer',\n 'value' => 'Foodsharer',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Foodsharer',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 287 => \n array (\n 'id' => 1788,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_login',\n 'key' => 'prev',\n 'value' => 'zur&uuml;ck',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'zur&uuml;ck',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 288 => \n array (\n 'id' => 1789,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_login',\n 'key' => 'select_picture',\n 'value' => 'Foto ausw&auml;hlen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Foto ausw&auml;hlen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 289 => \n array (\n 'id' => 1790,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_login',\n 'key' => 'select_your_gender',\n 'value' => 'Für die Anrede...',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Für die Anrede...',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 290 => \n array (\n 'id' => 1791,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_login',\n 'key' => 'upload_no_image',\n 'value' => 'Die hochgeladene Datei ist kein Foto, bitte wähle eine andere Datei.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Die hochgeladene Datei ist kein Foto, bitte wähle eine andere Datei.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 291 => \n array (\n 'id' => 1792,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_login',\n 'key' => 'woman',\n 'value' => 'weiblich',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'weiblich',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 292 => \n array (\n 'id' => 1793,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_mailbox',\n 'key' => 'an',\n 'value' => 'Empfänger',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Empfänger',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 293 => \n array (\n 'id' => 1794,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_mailbox',\n 'key' => 'answer',\n 'value' => 'Antworten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Antworten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 294 => \n array (\n 'id' => 1795,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_mailbox',\n 'key' => 'attach_file',\n 'value' => 'Datei anhängen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Datei anhängen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 295 => \n array (\n 'id' => 1796,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_mailbox',\n 'key' => 'email_error',\n 'value' => 'Die Empfänger E-Mail Adresse ist nicht korrekt',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Die Empfänger E-Mail Adresse ist nicht korrekt',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 296 => \n array (\n 'id' => 1797,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_mailbox',\n 'key' => 'email_name',\n 'value' => 'Angezeigter Name',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Angezeigter Name',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 297 => \n array (\n 'id' => 1798,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_mailbox',\n 'key' => 'file_to_big',\n 'value' => 'Sorry die Datei ist zu groß',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Sorry die Datei ist zu groß',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 298 => \n array (\n 'id' => 1799,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_mailbox',\n 'key' => 'forward',\n 'value' => 'Weiterleiten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Weiterleiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 299 => \n array (\n 'id' => 1800,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_mailbox',\n 'key' => 'inbox',\n 'value' => 'Posteingang',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Posteingang',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 300 => \n array (\n 'id' => 1801,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_mailbox',\n 'key' => 'mailbox_add_success',\n 'value' => 'Mailbox wurde erfolgreich angelegt',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Mailbox wurde erfolgreich angelegt',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 301 => \n array (\n 'id' => 1802,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_mailbox',\n 'key' => 'mailbox_member',\n 'value' => 'Mailbox Benutzer',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Mailbox Benutzer',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 302 => \n array (\n 'id' => 1803,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_mailbox',\n 'key' => 'mailbox_name_desc',\n 'value' => 'Nur den Namen der Mailbox eintragen, also ohne @:host',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Nur den Namen der Mailbox eintragen, also ohne @:host',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 303 => \n array (\n 'id' => 1804,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_mailbox',\n 'key' => 'message_from',\n 'value' => 'Nachricht vom :var',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Nachricht vom :var',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 304 => \n array (\n 'id' => 1805,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_mailbox',\n 'key' => 'move_to_trash',\n 'value' => 'In die Tonne',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'In die Tonne',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 305 => \n array (\n 'id' => 1806,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_mailbox',\n 'key' => 'new_mailbox',\n 'value' => 'Neue Mailbox anlegen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Neue Mailbox anlegen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 306 => \n array (\n 'id' => 1807,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_mailbox',\n 'key' => 'new_message',\n 'value' => 'Neue E-Mail',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Neue E-Mail',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 307 => \n array (\n 'id' => 1808,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_mailbox',\n 'key' => 'no_message',\n 'value' => 'Noch keine Nachrichten in dieser Mailbox!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Noch keine Nachrichten in dieser Mailbox!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 308 => \n array (\n 'id' => 1809,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_mailbox',\n 'key' => 'original_message',\n 'value' => 'Original Nachricht',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Original Nachricht',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 309 => \n array (\n 'id' => 1810,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_mailbox',\n 'key' => 'refresh',\n 'value' => 'Aktualisieren',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Aktualisieren',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 310 => \n array (\n 'id' => 1811,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_mailbox',\n 'key' => 'send_success',\n 'value' => 'E-Mail wurde erfolgreich versendet!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'E-Mail wurde erfolgreich versendet!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 311 => \n array (\n 'id' => 1812,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_mailbox',\n 'key' => 'sent',\n 'value' => 'Gesendet',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Gesendet',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 312 => \n array (\n 'id' => 1813,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_mailbox',\n 'key' => 'trash',\n 'value' => 'Papierkorb',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Papierkorb',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 313 => \n array (\n 'id' => 1814,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_mailbox',\n 'key' => 'von',\n 'value' => 'Absender',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Absender',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 314 => \n array (\n 'id' => 1815,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_mailbox',\n 'key' => 'wrong_file',\n 'value' => 'Dieser Dateityp ist nicht erlaubt',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Dieser Dateityp ist nicht erlaubt',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 315 => \n array (\n 'id' => 1816,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_map',\n 'key' => 'specials',\n 'value' => 'Besonderheiten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Besonderheiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 316 => \n array (\n 'id' => 1817,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_map',\n 'key' => 'status',\n 'value' => 'Aktueller Status',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'Aktueller Status',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 317 => \n array (\n 'id' => 1818,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_message_tpl',\n 'key' => 'body',\n 'value' => 'Text',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Text',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 318 => \n array (\n 'id' => 1819,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_message_tpl',\n 'key' => 'bread_edit_message_tpl',\n 'value' => 'E-Mail Vorlage bearbeiten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'E-Mail Vorlage bearbeiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 319 => \n array (\n 'id' => 1820,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_message_tpl',\n 'key' => 'bread_message_tpl',\n 'value' => 'Alle Vorlagen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Alle Vorlagen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 320 => \n array (\n 'id' => 1821,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_message_tpl',\n 'key' => 'bread_new_message_tpl',\n 'value' => 'neue Vorlage erstellen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'neue Vorlage erstellen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 321 => \n array (\n 'id' => 1822,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_message_tpl',\n 'key' => 'delete_sure',\n 'value' => 'Soll :var wirklich unwideruflich gel&ouml;scht werden?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Soll :var wirklich unwideruflich gel&ouml;scht werden?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 322 => \n array (\n 'id' => 1823,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_message_tpl',\n 'key' => 'language_id',\n 'value' => 'Sprache',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Sprache',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 323 => \n array (\n 'id' => 1824,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_message_tpl',\n 'key' => 'message_tpl',\n 'value' => 'E-Mail Vorlagen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'E-Mail Vorlagen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 324 => \n array (\n 'id' => 1825,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_message_tpl',\n 'key' => 'message_tpl_add_success',\n 'value' => 'Vorlage wurde hinzugef&uuml;gt',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Vorlage wurde hinzugef&uuml;gt',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 325 => \n array (\n 'id' => 1826,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_message_tpl',\n 'key' => 'message_tpl_bread',\n 'value' => 'E-Mail Vorlagen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'E-Mail Vorlagen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 326 => \n array (\n 'id' => 1827,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_message_tpl',\n 'key' => 'message_tpl_edit_success',\n 'value' => 'Vorlage wurde bearbeitet',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Vorlage wurde bearbeitet',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 327 => \n array (\n 'id' => 1828,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_message_tpl',\n 'key' => 'message_tpl_empty',\n 'value' => 'Bisher wurden keine E-Mail Vorlagen eingetragen.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Bisher wurden keine E-Mail Vorlagen eingetragen.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 328 => \n array (\n 'id' => 1829,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_message_tpl',\n 'key' => 'name',\n 'value' => 'Name',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Name',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 329 => \n array (\n 'id' => 1830,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_message_tpl',\n 'key' => 'neu_message_tpl',\n 'value' => 'Neue Vorlage eintragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Neue Vorlage eintragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 330 => \n array (\n 'id' => 1831,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_msg',\n 'key' => 'compose_body',\n 'value' => 'Nachricht',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Nachricht',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 331 => \n array (\n 'id' => 1832,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_msg',\n 'key' => 'compose_recipients',\n 'value' => 'Empfänger',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Empfänger',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 332 => \n array (\n 'id' => 1833,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_msg',\n 'key' => 'conversations',\n 'value' => 'Unterhaltungen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Unterhaltungen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 333 => \n array (\n 'id' => 1834,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_msg',\n 'key' => 'no_conversations',\n 'value' => 'Noch keine Unterhaltungen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Noch keine Unterhaltungen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 334 => \n array (\n 'id' => 1835,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_msg',\n 'key' => 'send_successfull',\n 'value' => 'Nachricht wurde erfolgreich versendet!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Nachricht wurde erfolgreich versendet!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 335 => \n array (\n 'id' => 1836,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_newarea',\n 'key' => 'order_msg',\n 'value' => 'E-Mail Benachrichtigung',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'E-Mail Benachrichtigung',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 336 => \n array (\n 'id' => 1837,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_passgen',\n 'key' => 'click_to_unverify',\n 'value' => 'Klicken, um die Verifizierung aufzuheben',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Klicken, um die Verifizierung aufzuheben',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 337 => \n array (\n 'id' => 1838,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_passgen',\n 'key' => 'click_to_verify',\n 'value' => 'Klicken, um :var zu verifizieren',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Klicken, um :var zu verifizieren',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 338 => \n array (\n 'id' => 1839,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_passgen',\n 'key' => 'fs_id',\n 'value' => 'FS-ID',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'FS-ID',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 339 => \n array (\n 'id' => 1840,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_passgen',\n 'key' => 'kfz',\n 'value' => 'KFZ',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'KFZ',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 340 => \n array (\n 'id' => 1841,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_passgen',\n 'key' => 'last_generated',\n 'value' => 'Zuletzt erstellt',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Zuletzt erstellt',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 341 => \n array (\n 'id' => 1842,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_passgen',\n 'key' => 'never_generated',\n 'value' => 'noch nicht erstellt',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'noch nicht erstellt',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 342 => \n array (\n 'id' => 1843,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_passgen',\n 'key' => 'start',\n 'value' => 'Und los!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Und los!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 343 => \n array (\n 'id' => 1844,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_passgen',\n 'key' => 'tips',\n 'value' => 'Hinweise',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Hinweise',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 344 => \n array (\n 'id' => 1845,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_passgen',\n 'key' => 'tips_content',\n 'value' => '<p>Mit einem Klick auf das Erstellungsdatum werden alle Foodsaver mit dem gleichen Datum bzw. ohne Erstellungsdatum markiert.</p>\n<p>Mit einem Klick auf den Namen können Foto und Foodsharing-ID noch geändert werden.</p>\n<p>Foodsaver, die einen Ausweis bekommen haben und die Richtigkeit ihrer Perso-Daten bestätigt haben, können verifiziert werden.</p>',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => '<p>Mit einem Klick auf das Erstellungsdatum werden alle Foodsaver mit dem gleichen Datum bzw. ohne Erstellungsdatum markiert.</p>\n<p>Mit einem Klick auf den Namen können Foto und Foodsharing-ID noch geändert werden.</p>\n<p>Foodsaver, die einen Ausweis bekommen haben und die Richtigkeit ihrer Perso-Daten bestätigt haben, können verifiziert werden.</p>',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 345 => \n array (\n 'id' => 1846,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_passgen',\n 'key' => 'unverify_confirm',\n 'value' => 'Vor dem Entverifizieren musst Du die eingetragenen Abholtermine prüfen!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Vor dem Entverifizieren musst Du die eingetragenen Abholtermine prüfen!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 346 => \n array (\n 'id' => 1847,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_passgen',\n 'key' => 'unverify_confirm_button',\n 'value' => 'Prüfen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Prüfen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 347 => \n array (\n 'id' => 1848,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_passgen',\n 'key' => 'unverify_confirm_title',\n 'value' => 'Person noch für Abholungen eingetragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Person noch für Abholungen eingetragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 348 => \n array (\n 'id' => 1849,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_passgen',\n 'key' => 'verified',\n 'value' => 'verifiziert',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'verifiziert',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 349 => \n array (\n 'id' => 1850,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_passgen',\n 'key' => 'verify_confirm',\n 'value' => 'Perso-Daten gecheckt?<br />Ausweis übergeben?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Perso-Daten gecheckt?<br />Ausweis übergeben?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 350 => \n array (\n 'id' => 1851,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_passgen',\n 'key' => 'verify_confirm_button',\n 'value' => 'Verifizieren',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Verifizieren',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 351 => \n array (\n 'id' => 1852,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_passgen',\n 'key' => 'verify_confirm_title',\n 'value' => 'Sicher?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Sicher?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 352 => \n array (\n 'id' => 1853,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_profile',\n 'key' => 'attach_image',\n 'value' => 'Bild hochladen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Bild hochladen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 353 => \n array (\n 'id' => 1854,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_profile',\n 'key' => 'last_login',\n 'value' => 'Letzter Login',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Letzter Login',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 354 => \n array (\n 'id' => 1855,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_profile',\n 'key' => 'mailbox',\n 'value' => 'Interne Mailbox',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Interne Mailbox',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 355 => \n array (\n 'id' => 1856,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_profile',\n 'key' => 'notes_count',\n 'value' => 'Notizen <strong>(:count)</strong>',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Notizen <strong>(:count)</strong>',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 356 => \n array (\n 'id' => 1857,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_profile',\n 'key' => 'private_mail',\n 'value' => 'Private E-Mail Adresse',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Private E-Mail Adresse',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 357 => \n array (\n 'id' => 1858,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_profile',\n 'key' => 'registration_date',\n 'value' => 'Registrierungsdatum',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Registrierungsdatum',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 358 => \n array (\n 'id' => 1859,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_profile',\n 'key' => 'user_notes_info',\n 'value' => 'Bitte gehe gewissenhaft mit dieser Funktion um. Sie soll helfen Vorgänge Sichbar zu machen um uns Arbeit zu sparen, Persönliches oder wertendes zu einer Person hat hier nichts verloren - bleibe sachlich!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Bitte gehe gewissenhaft mit dieser Funktion um. Sie soll helfen Vorgänge Sichbar zu machen um uns Arbeit zu sparen, Persönliches oder wertendes zu einer Person hat hier nichts verloren - bleibe sachlich!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 359 => \n array (\n 'id' => 1860,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_profile',\n 'key' => 'violation_count',\n 'value' => 'Verstoßmeldungen <strong>(:count)</strong>',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Verstoßmeldungen <strong>(:count)</strong>',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 360 => \n array (\n 'id' => 1861,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_profile',\n 'key' => 'write_teaser',\n 'value' => 'Schreibe etwas...',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Schreibe etwas...',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 361 => \n array (\n 'id' => 1862,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_quiz',\n 'key' => 'answers',\n 'value' => 'Welche Antworten sind richtig?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Welche Antworten sind richtig?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 362 => \n array (\n 'id' => 1863,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_quiz',\n 'key' => 'duration',\n 'value' => 'Zeit zum Antworten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Zeit zum Antworten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 363 => \n array (\n 'id' => 1864,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_quiz',\n 'key' => 'explanation',\n 'value' => 'Erklärung',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Erklärung',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 364 => \n array (\n 'id' => 1865,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_quiz',\n 'key' => 'fp',\n 'value' => 'Fehlerpunkte',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Fehlerpunkte',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 365 => \n array (\n 'id' => 1866,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_quiz',\n 'key' => 'maxfp',\n 'value' => 'Maximale Anzahl von Fehlerpunkten um zu bestehen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Maximale Anzahl von Fehlerpunkten um zu bestehen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 366 => \n array (\n 'id' => 1867,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_quiz',\n 'key' => 'questcount',\n 'value' => 'Wie viele Fragen sollen bei Klausur gestellt werden?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Wie viele Fragen sollen bei Klausur gestellt werden?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 367 => \n array (\n 'id' => 1868,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_quiz',\n 'key' => 'quizusercomment',\n 'value' => 'Gib uns feedback zu dieser Frage (z.B. war sie zu leicht, zu schwer, unverständlich oder einzelne Antworten bzw. Erklärungen nicht richtig)',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Gib uns feedback zu dieser Frage (z.B. war sie zu leicht, zu schwer, unverständlich oder einzelne Antworten bzw. Erklärungen nicht richtig)',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 368 => \n array (\n 'id' => 1869,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_quiz',\n 'key' => 'right',\n 'value' => 'Wertung',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Wertung',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 369 => \n array (\n 'id' => 1870,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_quiz',\n 'key' => 'text',\n 'value' => 'Text',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Text',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 370 => \n array (\n 'id' => 1871,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_quiz',\n 'key' => 'wikilink',\n 'value' => 'Link zur Wiki-Seite',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Link zur Wiki-Seite',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 371 => \n array (\n 'id' => 1872,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_region',\n 'key' => 'bezirk_bread',\n 'value' => 'Regionen verwalten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Regionen verwalten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 372 => \n array (\n 'id' => 1873,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_region',\n 'key' => 'bezirk_edit_success',\n 'value' => 'Änderungen wurden gespeichert!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Änderungen wurden gespeichert!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 373 => \n array (\n 'id' => 1874,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_region',\n 'key' => 'bezirk_empty',\n 'value' => 'Bisher wurde kein Bezirk eingetragen.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Bisher wurde kein Bezirk eingetragen.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 374 => \n array (\n 'id' => 1875,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_region',\n 'key' => 'bread_bezirk',\n 'value' => 'Alle Bezirke',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Alle Bezirke',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 375 => \n array (\n 'id' => 1876,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_region',\n 'key' => 'bread_edit_bezirk',\n 'value' => 'Bezirk bearbeiten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Bezirk bearbeiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 376 => \n array (\n 'id' => 1877,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_region',\n 'key' => 'bread_edit_region',\n 'value' => 'Region bearbeiten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Region bearbeiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 377 => \n array (\n 'id' => 1878,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_region',\n 'key' => 'bread_new_bezirk',\n 'value' => 'neuen Bezirk eintragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'neuen Bezirk eintragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 378 => \n array (\n 'id' => 1879,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_region',\n 'key' => 'bread_new_region',\n 'value' => 'neuen Region eintragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'neuen Region eintragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 379 => \n array (\n 'id' => 1880,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_region',\n 'key' => 'bread_region',\n 'value' => 'Alle Regionen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Alle Regionen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 380 => \n array (\n 'id' => 1881,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_region',\n 'key' => 'delete_sure',\n 'value' => 'Soll der Bezirk :var wirklich unwideruflich gelöscht werden?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Soll der Bezirk :var wirklich unwideruflich gelöscht werden?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 381 => \n array (\n 'id' => 1882,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_region',\n 'key' => 'neu_bezirk',\n 'value' => 'Neuen Bezirk eintragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Neuen Bezirk eintragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 382 => \n array (\n 'id' => 1883,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_region',\n 'key' => 'neu_region',\n 'value' => 'Neuen Bezirk eintragen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Neuen Bezirk eintragen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 383 => \n array (\n 'id' => 1884,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_region',\n 'key' => 'region_empty',\n 'value' => 'Bisher wurde kein Region eingetragen.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Bisher wurde kein Region eingetragen.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 384 => \n array (\n 'id' => 1885,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_region',\n 'key' => 'region_id',\n 'value' => 'Region',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Region',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 385 => \n array (\n 'id' => 1886,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_report',\n 'key' => 'betrieb_id',\n 'value' => 'Betrifft Die Meldung einen bestimmten Betrieb indem :var abholt?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Betrifft Die Meldung einen bestimmten Betrieb indem :var abholt?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 386 => \n array (\n 'id' => 1887,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_report',\n 'key' => 'reportmessage',\n 'value' => 'Beschreibe den Vorfall noch etwas genauer',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Beschreibe den Vorfall noch etwas genauer',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 387 => \n array (\n 'id' => 1888,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_report',\n 'key' => 'reportmessage_desc',\n 'value' => 'Es ist wichtig alle Fälle die gegen die Verhaltensregeln verstoßen zu melden, damit sich erst gar keine schlechte Stimmung unter den Foodsaver bzw. Betrieben entsteht in dem die Verantwortlichen sich rechtzeitig um Problemfälle kümmern können und bei mehrfachen nicht angebrachtem Verhalten, von der Plattform augeschlossen wrid.\nBitte schildere den Vorfall in mindestens 120 Zeichen, damit die Verantwortlichen bzw. das Mediationsteam sich angemessen um den Fall kümmern kann. Nenne dabei Häufigkeit des Vorfalls, Ort, Zeitpunkt und ggf. andere Anwesende Foodsaver',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Es ist wichtig alle Fälle die gegen die Verhaltensregeln verstoßen zu melden, damit sich erst gar keine schlechte Stimmung unter den Foodsaver bzw. Betrieben entsteht in dem die Verantwortlichen sich rechtzeitig um Problemfälle kümmern können und bei mehrfachen nicht angebrachtem Verhalten, von der Plattform augeschlossen wrid.\nBitte schildere den Vorfall in mindestens 120 Zeichen, damit die Verantwortlichen bzw. das Mediationsteam sich angemessen um den Fall kümmern kann. Nenne dabei Häufigkeit des Vorfalls, Ort, Zeitpunkt und ggf. andere Anwesende Foodsaver',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 388 => \n array (\n 'id' => 1889,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_settings',\n 'key' => 'about_me_public',\n 'value' => 'Kurzbeschreibung von Dir',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Kurzbeschreibung von Dir',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 389 => \n array (\n 'id' => 1890,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_settings',\n 'key' => 'account_option',\n 'value' => 'Account-Optionen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Account-Optionen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 390 => \n array (\n 'id' => 1891,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_settings',\n 'key' => 'aufgaben_botschafter',\n 'value' => 'Ich habe das Dokument \"Aufgaben der BotschafterInnen von foodsharing gelesen und übernehme ab jetzt für diese die Verantwortlichkeit in meiner Stadt/Region/Bezirk.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Ich habe das Dokument \"Aufgaben der BotschafterInnen von foodsharing gelesen und übernehme ab jetzt für diese die Verantwortlichkeit in meiner Stadt/Region/Bezirk.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 391 => \n array (\n 'id' => 1892,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_settings',\n 'key' => 'bcard',\n 'value' => 'persönliche Visitenkarte',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'persönliche Visitenkarte',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 392 => \n array (\n 'id' => 1893,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_settings',\n 'key' => 'calendar',\n 'value' => 'Kalender',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Kalender',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 393 => \n array (\n 'id' => 1894,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_settings',\n 'key' => 'comment',\n 'value' => 'Anregungen Kritik & Kommentare',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Anregungen Kritik & Kommentare',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 394 => \n array (\n 'id' => 1895,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_settings',\n 'key' => 'datenschutz',\n 'value' => 'Ich habe die Datenschutzerklärung für meine Botschafterrolle zur Kenntnis genommen und bin damit einverstanden',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Ich habe die Datenschutzerklärung für meine Botschafterrolle zur Kenntnis genommen und bin damit einverstanden',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 395 => \n array (\n 'id' => 1896,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_settings',\n 'key' => 'daterange',\n 'value' => 'Hier kannst Du einstellen, in welchem Zeitraum Du in etwa nicht zur Verfügung stehst.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Hier kannst Du einstellen, in welchem Zeitraum Du in etwa nicht zur Verfügung stehst.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 396 => \n array (\n 'id' => 1897,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_settings',\n 'key' => 'delete_account',\n 'value' => 'Account löschen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Account löschen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 397 => \n array (\n 'id' => 1898,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_settings',\n 'key' => 'delete_account_confirm_bt',\n 'value' => 'Ja, Account jetzt löschen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Ja, Account jetzt löschen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 398 => \n array (\n 'id' => 1899,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_settings',\n 'key' => 'delete_account_confirm_msg',\n 'value' => 'Du bist dabei Deinen Account zu löschen, bist Du Dir ganz sicher?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Du bist dabei Deinen Account zu löschen, bist Du Dir ganz sicher?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 399 => \n array (\n 'id' => 1900,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_settings',\n 'key' => 'delete_account_confirm_title',\n 'value' => 'Account wirklich löschen?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Account wirklich löschen?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 400 => \n array (\n 'id' => 1901,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_settings',\n 'key' => 'delete_now',\n 'value' => 'Account jetzt löschen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Account jetzt löschen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 401 => \n array (\n 'id' => 1902,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_settings',\n 'key' => 'edit_photo',\n 'value' => 'Foto bearbeiten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Foto bearbeiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 402 => \n array (\n 'id' => 1903,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_settings',\n 'key' => 'follow_fairteiler',\n 'value' => 'Updates vom :var Fair-Teiler',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Updates vom :var Fair-Teiler',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 403 => \n array (\n 'id' => 1904,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_settings',\n 'key' => 'follow_fairteiler_alert',\n 'value' => 'nur über interne Info-Meldungen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'nur über interne Info-Meldungen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 404 => \n array (\n 'id' => 1905,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_settings',\n 'key' => 'follow_fairteiler_desc',\n 'value' => 'Du hast Dich als Follower für den :var Fair-Teiler eingetragen. Auf welche Art möchtest Du diese Benachrichtigungen bekommen?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Du hast Dich als Follower für den :var Fair-Teiler eingetragen. Auf welche Art möchtest Du diese Benachrichtigungen bekommen?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 405 => \n array (\n 'id' => 1906,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_settings',\n 'key' => 'follow_fairteiler_mail',\n 'value' => 'über eine E-Mail Benachrichtigung',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'über eine E-Mail Benachrichtigung',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 406 => \n array (\n 'id' => 1907,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_settings',\n 'key' => 'follow_fairteiler_none',\n 'value' => 'gar nicht mehr',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'gar nicht mehr',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 407 => \n array (\n 'id' => 1908,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_settings',\n 'key' => 'follow_thread',\n 'value' => 'Über das Forenthema \":var\" auf dem Laufenden bleiben?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Über das Forenthema \":var\" auf dem Laufenden bleiben?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 408 => \n array (\n 'id' => 1909,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_settings',\n 'key' => 'follow_thread_desc',\n 'value' => '',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => '',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 409 => \n array (\n 'id' => 1910,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_settings',\n 'key' => 'follow_thread_mail',\n 'value' => 'Ja, ich möchte per Mail über neue Posts informiert werden.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Ja, ich möchte per Mail über neue Posts informiert werden.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 410 => \n array (\n 'id' => 1911,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_settings',\n 'key' => 'follow_thread_none',\n 'value' => 'Bitte nicht mehr über neue Posts informieren.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Bitte nicht mehr über neue Posts informieren.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 411 => \n array (\n 'id' => 1912,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_settings',\n 'key' => 'full_sleepmode',\n 'value' => 'Ich tauche erstmal auf unbestimmte Zeit ab',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Ich tauche erstmal auf unbestimmte Zeit ab',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 412 => \n array (\n 'id' => 1913,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_settings',\n 'key' => 'geb_datum',\n 'value' => 'Geburtsdatum',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Geburtsdatum',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 413 => \n array (\n 'id' => 1914,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_settings',\n 'key' => 'homepage',\n 'value' => 'Deine Webseite',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Deine Webseite',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 414 => \n array (\n 'id' => 1915,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_settings',\n 'key' => 'infomail_message',\n 'value' => 'Benachrichtigung über foodsharing.de Nachrichten',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Benachrichtigung über foodsharing.de Nachrichten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 415 => \n array (\n 'id' => 1916,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_settings',\n 'key' => 'infomail_message_desc',\n 'value' => 'Wenn Du auf foodsharing.de eine interne Nachricht geschickt bekommst, aber gerade nicht eingeloggt bist, kannst Du per E-Mail darüber informiert werden. Möchtest Du das?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Wenn Du auf foodsharing.de eine interne Nachricht geschickt bekommst, aber gerade nicht eingeloggt bist, kannst Du per E-Mail darüber informiert werden. Möchtest Du das?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 416 => \n array (\n 'id' => 1917,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_settings',\n 'key' => 'new_bezirk',\n 'value' => 'Bezirk den das Orgateam neu anlegen soll',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Bezirk den das Orgateam neu anlegen soll',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 417 => \n array (\n 'id' => 1918,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_settings',\n 'key' => 'newmail',\n 'value' => 'Gib hier Deine neue E-Mail Adresse ein',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Gib hier Deine neue E-Mail Adresse ein',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 418 => \n array (\n 'id' => 1919,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_settings',\n 'key' => 'newsletter',\n 'value' => 'Newsletter',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Newsletter',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 419 => \n array (\n 'id' => 1920,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_settings',\n 'key' => 'newsletter_desc',\n 'value' => 'Ca. 1x im Monat senden wir aktuelle Informationen rund um die Lebensmittelretter-Bewegung in einem Newsletter raus. Möchtest Du diese E-Mails bekommen?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Ca. 1x im Monat senden wir aktuelle Informationen rund um die Lebensmittelretter-Bewegung in einem Newsletter raus. Möchtest Du diese E-Mails bekommen?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 420 => \n array (\n 'id' => 1921,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_settings',\n 'key' => 'no_sleepmode',\n 'value' => 'Ich bin aktiv und voll dabei',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Ich bin aktiv und voll dabei',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 421 => \n array (\n 'id' => 1922,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_settings',\n 'key' => 'passcheck',\n 'value' => 'Bestätige die Änderung bitte mit Deinem Passwort',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Bestätige die Änderung bitte mit Deinem Passwort',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 422 => \n array (\n 'id' => 1923,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_settings',\n 'key' => 'photo_public',\n 'value' => 'Um eine\nmöglichst flüssige Koordination zu ermöglichen, werden die Namen\nund das Foto von den BotschafterInnen von Foodsharing\nveröffentlicht.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Um eine\nmöglichst flüssige Koordination zu ermöglichen, werden die Namen\nund das Foto von den BotschafterInnen von Foodsharing\nveröffentlicht.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 423 => \n array (\n 'id' => 1924,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_settings',\n 'key' => 'posible_restore_account',\n 'value' => 'Dein Account kann nach dem löschen widerhergestellt werden',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Dein Account kann nach dem löschen widerhergestellt werden',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 424 => \n array (\n 'id' => 1925,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_settings',\n 'key' => 'position',\n 'value' => 'Deine Position bei foodsharing (öffentlich)',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Deine Position bei foodsharing (öffentlich)',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 425 => \n array (\n 'id' => 1926,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_settings',\n 'key' => 'position_search',\n 'value' => 'Adresssuche',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Adresssuche',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 426 => \n array (\n 'id' => 1927,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_settings',\n 'key' => 'reason_to_delete',\n 'value' => 'Warum möchtest Du die Foodsaver-Community verlassen?',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Warum möchtest Du die Foodsaver-Community verlassen?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 427 => \n array (\n 'id' => 1928,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_settings',\n 'key' => 'settings',\n 'value' => 'Einstellungen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Einstellungen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 428 => \n array (\n 'id' => 1929,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_settings',\n 'key' => 'settings_general',\n 'value' => 'Deine Angaben',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Deine Angaben',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 429 => \n array (\n 'id' => 1930,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_settings',\n 'key' => 'settings_info',\n 'value' => 'Benachrichtigungen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Benachrichtigungen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 430 => \n array (\n 'id' => 1931,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_settings',\n 'key' => 'settings_mumble',\n 'value' => 'Mumble Einstellungen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Mumble Einstellungen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 431 => \n array (\n 'id' => 1932,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_settings',\n 'key' => 'sleep_mode_saved',\n 'value' => 'Die Einstellungen wurden gespeichert',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Die Einstellungen wurden gespeichert',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 432 => \n array (\n 'id' => 1933,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_settings',\n 'key' => 'sleep_msg',\n 'value' => 'Hier kannst Du eine kurze Nachricht hinterlassen, warum Du gerade keine Zeit hast.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Hier kannst Du eine kurze Nachricht hinterlassen, warum Du gerade keine Zeit hast.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 433 => \n array (\n 'id' => 1934,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_settings',\n 'key' => 'sleep_status',\n 'value' => 'Dein aktueller Status',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Dein aktueller Status',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 434 => \n array (\n 'id' => 1935,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_settings',\n 'key' => 'sleeping_user',\n 'value' => 'Schlafmütze',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Schlafmütze',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 435 => \n array (\n 'id' => 1936,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_settings',\n 'key' => 'sleepmode',\n 'value' => 'Schlafmützen-Funktion',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Schlafmützen-Funktion',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 436 => \n array (\n 'id' => 1937,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_settings',\n 'key' => 'sleepmode_info',\n 'value' => 'Mit der Schlafmützen-Funktion ist es Dir möglich der Community mitzuteilen, dass Du zzt. verreist bist oder aus anderen Gründen keine Zeit für das Retten von Lebensmitteln hast.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Mit der Schlafmützen-Funktion ist es Dir möglich der Community mitzuteilen, dass Du zzt. verreist bist oder aus anderen Gründen keine Zeit für das Retten von Lebensmitteln hast.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 437 => \n array (\n 'id' => 1938,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_settings',\n 'key' => 'tel_public',\n 'value' => 'Veröffentlichung Deiner Telefonnummer(n)',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Veröffentlichung Deiner Telefonnummer(n)',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 438 => \n array (\n 'id' => 1939,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_settings',\n 'key' => 'temp_sleepmode',\n 'value' => 'Ich bin für eine Weile nicht verfügbar',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Ich bin für eine Weile nicht verfügbar',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 439 => \n array (\n 'id' => 1940,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_settings',\n 'key' => 'time',\n 'value' => 'Wie viel Zeit kannst/willst Du für Deine Botschafterrolle pro Woche aufbringen (ungefähr)',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Wie viel Zeit kannst/willst Du für Deine Botschafterrolle pro Woche aufbringen (ungefähr)',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 440 => \n array (\n 'id' => 1941,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_settings',\n 'key' => 'tox',\n 'value' => 'TOX ID',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'TOX ID',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 441 => \n array (\n 'id' => 1942,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_settings',\n 'key' => 'tox_desc',\n 'value' => '<a href=\"https://tox.im/\" target=\"_blank\">Tox ist eine sichere OpenSource Skype Alternative</a>',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => '<a href=\"https://tox.im/\" target=\"_blank\">Tox ist eine sichere OpenSource Skype Alternative</a>',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 442 => \n array (\n 'id' => 1943,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_settings',\n 'key' => 'twitter',\n 'value' => 'Twitter',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Twitter',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 443 => \n array (\n 'id' => 1944,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_settings',\n 'key' => 'upgrade_bot_success',\n 'value' => 'Danke Dir für Deine Motivation mehr Verantwortung zu übernehmen! Die Anfrage wird schnellstmöglich vom bundesweiten Orga-Team bearbeitet.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Danke Dir für Deine Motivation mehr Verantwortung zu übernehmen! Die Anfrage wird schnellstmöglich vom bundesweiten Orga-Team bearbeitet.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 444 => \n array (\n 'id' => 1945,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_settings',\n 'key' => 'upgrade_request_send',\n 'value' => 'Anfrage erfolgreich versendet!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Anfrage erfolgreich versendet!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 445 => \n array (\n 'id' => 1946,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_settings',\n 'key' => 'upload_new_photo',\n 'value' => 'neues Foto hochladen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'neues Foto hochladen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 446 => \n array (\n 'id' => 1947,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_statistics',\n 'key' => 'active_cities',\n 'value' => 'Aktivste Städte',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Aktivste Städte',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 447 => \n array (\n 'id' => 1948,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_statistics',\n 'key' => 'stat_whole',\n 'value' => 'Gesamt-Statistik',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Gesamt-Statistik',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 448 => \n array (\n 'id' => 1949,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_team',\n 'key' => 'mail_send_success',\n 'value' => 'Deine Nachricht wurde erfolgreich gesendet!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Deine Nachricht wurde erfolgreich gesendet!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 449 => \n array (\n 'id' => 1950,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_team',\n 'key' => 'team',\n 'value' => 'Team',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Team',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 450 => \n array (\n 'id' => 1951,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'pagination',\n 'key' => 'next',\n 'value' => 'Weiter »',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Nächste &raquo;',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 451 => \n array (\n 'id' => 1952,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'pagination',\n 'key' => 'previous',\n 'value' => '« Zurück',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => '&laquo; Vorherige',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 452 => \n array (\n 'id' => 1953,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'passwords',\n 'key' => 'password',\n 'value' => 'Passwords must be at least six characters and match the confirmation.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Kennwörter müssen mind. 6 Zeichen haben und gleich der Wiederholung sein.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 453 => \n array (\n 'id' => 1954,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'passwords',\n 'key' => 'reset',\n 'value' => 'Your password has been reset!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Dein Kennwort wurde zurückgesetzt!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 454 => \n array (\n 'id' => 1955,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'passwords',\n 'key' => 'sent',\n 'value' => 'We have e-mailed your password reset link!',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Wir haben dir einen Link zum Zurücksetzen deines Kennworts gesendet!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 455 => \n array (\n 'id' => 1956,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'passwords',\n 'key' => 'token',\n 'value' => 'This password reset token is invalid.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Der Token zum Zurücksetzen des Kennworts ist ungültig.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 456 => \n array (\n 'id' => 1957,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'passwords',\n 'key' => 'user',\n 'value' => 'We can\\'t find a user with that e-mail address.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Wir können keinen Benutzer mit der E-Mailadresse finden.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 457 => \n array (\n 'id' => 1958,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'addkeys',\n 'value' => 'Schlüssel hinzufügen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Schlüssel hinzufügen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 458 => \n array (\n 'id' => 1959,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'addkeys-placeholder',\n 'value' => 'Einen Schlüssel pro Zeile hinzufügen, ohne das Gruppenpräfix',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Einen Schlüssel pro Zeile hinzufügen, ohne das Gruppenpräfix',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 459 => \n array (\n 'id' => 1960,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'addsuffixes',\n 'value' => 'Suffixe setzen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Suffixe setzen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 460 => \n array (\n 'id' => 1961,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'addsuffixes-placeholder',\n 'value' => 'Jeden Schlüssel mit Suffixen aus den hier eingegebenen Zeilen hinzufügen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Jeden Schlüssel mit Suffixen aus den hier eingegebenen Zeilen hinzufügen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 461 => \n array (\n 'id' => 1962,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'auto-fill',\n 'value' => 'Automatisch befüllen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Automatisch befüllen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 462 => \n array (\n 'id' => 1963,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'auto-fill-disabled',\n 'value' => 'Befüllen...',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Befüllen...',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 463 => \n array (\n 'id' => 1964,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'auto-prop-case-disabled',\n 'value' => 'Anwenden...',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Anwenden...',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 464 => \n array (\n 'id' => 1965,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'auto-translate',\n 'value' => 'Automatisch übersetzen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Automatisch übersetzen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 465 => \n array (\n 'id' => 1966,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'auto-translate-disabled',\n 'value' => 'Übersetzen...',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Übersetzen...',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 466 => \n array (\n 'id' => 1967,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'cached',\n 'value' => 'Gecached',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Gecached',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 467 => \n array (\n 'id' => 1968,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'changed',\n 'value' => 'Geändert',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Geändert',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 468 => \n array (\n 'id' => 1969,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'check-all',\n 'value' => 'Alle',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Alle',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 469 => \n array (\n 'id' => 1970,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'check-none',\n 'value' => 'Keine',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Keine',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 470 => \n array (\n 'id' => 1971,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'choose-group',\n 'value' => 'Wählen Sie eine Übersetzungsgruppe',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Wählen Sie eine Übersetzungsgruppe',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 471 => \n array (\n 'id' => 1972,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'choose-group-text',\n 'value' => 'Wählen Sie eine Gruppe, um deren Übersetzungen anzuzeigen. Wenn keine Gruppen sichtbar sind, kontaktieren Sie einen Administrator.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Wählen Sie eine Gruppe, um deren Übersetzungen anzuzeigen. Wenn keine Gruppen sichtbar sind, kontaktieren Sie einen Administrator.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 472 => \n array (\n 'id' => 1973,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'cleardstkeys',\n 'value' => 'Schlüssel bereinigen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Schlüssel bereinigen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 473 => \n array (\n 'id' => 1974,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'clearkeys',\n 'value' => 'Schlüssel bereinigen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Schlüssel bereinigen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 474 => \n array (\n 'id' => 1975,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'clearsrckeys',\n 'value' => 'Schlüssel bereinigen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Schlüssel bereinigen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 475 => \n array (\n 'id' => 1976,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'clearsuffixes',\n 'value' => 'Suffixe bereinigen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Suffixe bereinigen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 476 => \n array (\n 'id' => 1977,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'close',\n 'value' => 'Schließen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Schließen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 477 => \n array (\n 'id' => 1978,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'confirm-delete',\n 'value' => 'Sind Sie sicher, dass Sie die Übersetzungen der Gruppe\n:group\naus der Datenbank löschen wollen? Änderungen, die noch nicht in die Übersetzungsdateien exportiert wurden, werden verloren gehen.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Sind Sie sicher, dass Sie die Übersetzungen der Gruppe\n:group\naus der Datenbank löschen wollen? Änderungen, die noch nicht in die Übersetzungsdateien exportiert wurden, werden verloren gehen.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 478 => \n array (\n 'id' => 1979,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'confirm-delete-all',\n 'value' => 'Sind Sie sicher, dass Sie alle Übersetzungen aus der Datenbank löschen wollen?\nÄnderungen, die noch nicht in die Übersetzungsdateien exportiert wurden, werden verloren gehen.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Sind Sie sicher, dass Sie alle Übersetzungen aus der Datenbank löschen wollen?\nÄnderungen, die noch nicht in die Übersetzungsdateien exportiert wurden, werden verloren gehen.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 479 => \n array (\n 'id' => 1980,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'confirm-find',\n 'value' => 'Sind Sie sicher, dass Sie die Verzeichnisse app und views nach Übersetzungen durchsuchen wollen? Alle gefundenen Übersetzungsschlüssel werden zur Datenbank hinzugefügt und die Quellenangaben werden aktualisiert.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Sind Sie sicher, dass Sie die Verzeichnisse app und views nach Übersetzungen durchsuchen wollen? Alle gefundenen Übersetzungsschlüssel werden zur Datenbank hinzugefügt und die Quellenangaben werden aktualisiert.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 480 => \n array (\n 'id' => 1981,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'copykeys',\n 'value' => 'Schlüssel kopieren',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Schlüssel kopieren',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 481 => \n array (\n 'id' => 1982,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'db-connection',\n 'value' => 'Datenbank',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Datenbank',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 482 => \n array (\n 'id' => 1983,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'delete',\n 'value' => 'Löschen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Löschen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 483 => \n array (\n 'id' => 1984,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'delete-all',\n 'value' => 'Alle löschen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Alle löschen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 484 => \n array (\n 'id' => 1985,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'deleted',\n 'value' => 'Gelöscht',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Gelöscht',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 485 => \n array (\n 'id' => 1986,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'deletekeys',\n 'value' => 'Schlüssel löschen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Schlüssel löschen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 486 => \n array (\n 'id' => 1987,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'deleting',\n 'value' => 'Löschen...',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Löschen...',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 487 => \n array (\n 'id' => 1988,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'display-locales',\n 'value' => 'Arbeits-Set',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Arbeits-Set',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 488 => \n array (\n 'id' => 1989,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'done-publishing',\n 'value' => 'Veröffentlichung der Übersetzungen in der Gruppe <strong>:group</strong> abgeschlossen.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Veröffentlichung der Übersetzungen in der Gruppe <strong>:group</strong> abgeschlossen.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 489 => \n array (\n 'id' => 1990,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'done-publishing-all',\n 'value' => 'Veröffentlichung der Übersetzungen in <strong>allen</strong> Gruppen abgeschlossen.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Veröffentlichung der Übersetzungen in <strong>allen</strong> Gruppen abgeschlossen.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 490 => \n array (\n 'id' => 1991,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'dst-preview',\n 'value' => 'Zu',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Zu',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 491 => \n array (\n 'id' => 1992,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'dstkey',\n 'value' => 'Zu',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Zu',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 492 => \n array (\n 'id' => 1993,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'dstkeys',\n 'value' => 'Zu Schlüsseln',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Zu Schlüsseln',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 493 => \n array (\n 'id' => 1994,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'dstkeys-placeholder',\n 'value' => 'Fügen Sie einen Schlüssel pro Zeile hinzu, mit oder ohne Gruppenpräfix',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Fügen Sie einen Schlüssel pro Zeile hinzu, mit oder ohne Gruppenpräfix',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 494 => \n array (\n 'id' => 1995,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'enter-translation',\n 'value' => 'Übersetzung eingeben',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Übersetzung eingeben',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 495 => \n array (\n 'id' => 1996,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'export-warning-text',\n 'value' => 'Achtung: Übersetzungen sind nicht sichtbar, bis sie von einem Administrator veröffentlicht wurden.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Achtung: Übersetzungen sind nicht sichtbar, bis sie von einem Administrator veröffentlicht wurden.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 496 => \n array (\n 'id' => 1997,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'find-in-files',\n 'value' => 'Referenzen hinzufügen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Referenzen hinzufügen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 497 => \n array (\n 'id' => 1998,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'group',\n 'value' => 'Gruppe',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Gruppe',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 498 => \n array (\n 'id' => 1999,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'import-add',\n 'value' => 'Nur neue Übersetzungen hinzufügen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Nur neue Übersetzungen hinzufügen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 499 => \n array (\n 'id' => 2000,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'import-all-done',\n 'value' => 'Import abgeschlossen, <strong>:count</strong> Elemente wurden verarbeitet. Laden Sie diese Seite neu, um das Ergebnis zu sehen.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Import abgeschlossen, <strong>:count</strong> Elemente wurden verarbeitet. Laden Sie diese Seite neu, um das Ergebnis zu sehen.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n ));\n \\DB::table('translations')->insert(array (\n 0 => \n array (\n 'id' => 2001,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'import-done-head',\n 'value' => 'Import abgeschlossen,',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Import abgeschlossen,',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 1 => \n array (\n 'id' => 2002,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'import-done-tail',\n 'value' => 'Elemente wurden verarbeitet. Laden Sie diese Seite neu, um das Ergebnis zu sehen.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Elemente wurden verarbeitet. Laden Sie diese Seite neu, um das Ergebnis zu sehen.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 2 => \n array (\n 'id' => 2003,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'import-fresh',\n 'value' => 'Alle löschen, dann importieren',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Alle löschen, dann importieren',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 3 => \n array (\n 'id' => 2004,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'import-group',\n 'value' => 'Importieren',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Importieren',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 4 => \n array (\n 'id' => 2005,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'import-group-done',\n 'value' => 'Import der Gruppe <strong>:group</strong> abgeschlossen, <strong>:count</strong> Elemente wurden verarbeitet. Laden Sie diese Seite neu, um das Ergebnis zu sehen.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Import der Gruppe <strong>:group</strong> abgeschlossen, <strong>:count</strong> Elemente wurden verarbeitet. Laden Sie diese Seite neu, um das Ergebnis zu sehen.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 5 => \n array (\n 'id' => 2006,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'import-groups',\n 'value' => 'Alle importieren',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Alle importieren',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 6 => \n array (\n 'id' => 2007,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'import-replace',\n 'value' => 'Bestehende Übersetzungen ersetzen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Bestehende Übersetzungen ersetzen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 7 => \n array (\n 'id' => 2008,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'in-place-edit',\n 'value' => 'In-Place-Bearbeitung',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'In-Place-Bearbeitung',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 8 => \n array (\n 'id' => 2009,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'interface-locale',\n 'value' => 'Schnittstelle',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Schnittstelle',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 9 => \n array (\n 'id' => 2010,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'key',\n 'value' => 'Schlüssel',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Schlüssel',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 10 => \n array (\n 'id' => 2011,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'keyop-count-mustmatch',\n 'value' => 'Die Anzahl der Schlüssel für Quelle und Ziel muss übereinstimmen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Die Anzahl der Schlüssel für Quelle und Ziel muss übereinstimmen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 11 => \n array (\n 'id' => 2012,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'keyop-header',\n 'value' => 'Ergebnis der Schlüsseloperation',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Ergebnis der Schlüsseloperation',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 12 => \n array (\n 'id' => 2013,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'keyop-header-copy',\n 'value' => 'Schlüssel-Kopieren-Operation für Gruppe <strong>:group</strong>:',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Schlüssel-Kopieren-Operation für Gruppe <strong>:group</strong>:',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 13 => \n array (\n 'id' => 2014,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'keyop-header-delete',\n 'value' => 'Schlüssel-Löschen-Operation für Gruppe <strong>:group</strong>:',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Schlüssel-Löschen-Operation für Gruppe <strong>:group</strong>:',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 14 => \n array (\n 'id' => 2015,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'keyop-header-move',\n 'value' => 'Schlüssel-Verschieben-Operation für Gruppe <strong>:group</strong>:',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Schlüssel-Verschieben-Operation für Gruppe <strong>:group</strong>:',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 15 => \n array (\n 'id' => 2016,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'keyop-header-preview',\n 'value' => 'Schlüssel-Vorschau-Operation für Gruppe <strong>:group</strong>:',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Schlüssel-Vorschau-Operation für Gruppe <strong>:group</strong>:',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 16 => \n array (\n 'id' => 2017,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'keyop-need-group',\n 'value' => 'Schlüsseloperationen benötigen eine Gruppe',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Schlüsseloperationen benötigen eine Gruppe',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 17 => \n array (\n 'id' => 2018,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'keyop-need-keys',\n 'value' => 'Keine Schlüssel für die Schlüsseloperation angegeben',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Keine Schlüssel für die Schlüsseloperation angegeben',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 18 => \n array (\n 'id' => 2019,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'keyop-no-match',\n 'value' => 'Kein Schlüssel stimmt überein.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Kein Schlüssel stimmt überein.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 19 => \n array (\n 'id' => 2020,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'keyop-wildcard-mustmatch',\n 'value' => 'Der Platzhalter * muss das erste oder letzte Zeichen sein und, wenn vorhanden, beim Quell- und Zielschlüssel an derselben Stelle stehen.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Der Platzhalter * muss das erste oder letzte Zeichen sein und, wenn vorhanden, beim Quell- und Zielschlüssel an derselben Stelle stehen.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 20 => \n array (\n 'id' => 2021,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'keyop-wildcard-once',\n 'value' => 'Der Platzhalter * darf nur einmal in einem Schlüssel verwendet werden.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Der Platzhalter * darf nur einmal in einem Schlüssel verwendet werden.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 21 => \n array (\n 'id' => 2022,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'keyops-not-authorized',\n 'value' => 'Schlüsseloperationen sind auf diesem Server nicht zugelassen. Kontaktieren Sie Ihren Administrator, um diese Einstellung zu ändern.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Schlüsseloperationen sind auf diesem Server nicht zugelassen. Kontaktieren Sie Ihren Administrator, um diese Einstellung zu ändern.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 22 => \n array (\n 'id' => 2023,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'keys',\n 'value' => 'Schlüssel',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Schlüssel',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 23 => \n array (\n 'id' => 2024,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'loading',\n 'value' => 'Importieren...',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Importieren...',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 24 => \n array (\n 'id' => 2025,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'locale',\n 'value' => 'Lokale',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Lokale',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 25 => \n array (\n 'id' => 2026,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'mismatches',\n 'value' => 'Unpassende Übersetzungen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Unpassende Übersetzungen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 26 => \n array (\n 'id' => 2027,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'missing',\n 'value' => 'Fehlend',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Fehlend',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 27 => \n array (\n 'id' => 2028,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'missmatched-quotes',\n 'value' => 'Unpassende oder fehlende Anführungszeichen im Attribut :string',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Unpassende oder fehlende Anführungszeichen im Attribut :string',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 28 => \n array (\n 'id' => 2029,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'movekeys',\n 'value' => 'Schlüssel verschieben',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Schlüssel verschieben',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 29 => \n array (\n 'id' => 2030,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'preview',\n 'value' => 'Vorschau',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Vorschau',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 30 => \n array (\n 'id' => 2031,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'primary-locale',\n 'value' => 'Primäre Sprache',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Primäre Sprache',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 31 => \n array (\n 'id' => 2032,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'publish',\n 'value' => 'Gruppe veröffentlichen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Gruppe veröffentlichen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 32 => \n array (\n 'id' => 2033,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'publish-all',\n 'value' => 'Alle veröffentlichen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Alle veröffentlichen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 33 => \n array (\n 'id' => 2034,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'publishing',\n 'value' => 'Veröffentlichen...',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Veröffentlichen...',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 34 => \n array (\n 'id' => 2035,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'reload-page',\n 'value' => 'Seite neu laden',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Seite neu laden',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 35 => \n array (\n 'id' => 2036,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'reset-usage-info',\n 'value' => 'Verwendungsinformationen zurücksetzen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Verwendungsinformationen zurücksetzen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 36 => \n array (\n 'id' => 2037,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'search',\n 'value' => 'Suchen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Suchen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 37 => \n array (\n 'id' => 2038,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'search-done',\n 'value' => 'Suche nach Übersetzungen abgeschlossen. Quellverweise wurden aktualisiert, <strong>:count</strong> neue Übersetzungselemente wurden hinzugefügt.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Suche nach Übersetzungen abgeschlossen. Quellverweise wurden aktualisiert, <strong>:count</strong> neue Übersetzungselemente wurden hinzugefügt.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 38 => \n array (\n 'id' => 2039,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'search-done-head',\n 'value' => 'Suche nach Übersetzungen abgeschlossen,',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Suche nach Übersetzungen abgeschlossen,',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 39 => \n array (\n 'id' => 2040,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'search-done-tail',\n 'value' => 'Elemente gefunden.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Elemente gefunden.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 40 => \n array (\n 'id' => 2041,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'search-header',\n 'value' => 'Gefundene Ergebnisse: :count',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Gefundene Ergebnisse: :count',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 41 => \n array (\n 'id' => 2042,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'search-translations',\n 'value' => 'Übersetzungen durchsuchen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Übersetzungen durchsuchen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 42 => \n array (\n 'id' => 2043,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'searching',\n 'value' => 'Suchen...',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Suchen...',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 43 => \n array (\n 'id' => 2044,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'set-usage-info',\n 'value' => 'Verwendungsinformationen setzen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Verwendungsinformationen setzen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 44 => \n array (\n 'id' => 2045,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'show',\n 'value' => 'Zeige',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Zeige',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 45 => \n array (\n 'id' => 2046,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'show-all',\n 'value' => 'Alle',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Alle',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 46 => \n array (\n 'id' => 2047,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'show-changed',\n 'value' => 'Geänderte',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Geänderte',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 47 => \n array (\n 'id' => 2048,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'show-deleted',\n 'value' => 'Gelöschte',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Gelöschte',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 48 => \n array (\n 'id' => 2049,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'show-empty',\n 'value' => 'Fehlende',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Fehlende',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 49 => \n array (\n 'id' => 2050,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'show-matching',\n 'value' => 'Schlüssel filtern',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Schlüssel filtern',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 50 => \n array (\n 'id' => 2051,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'show-matching-text',\n 'value' => 'Schlüssel-RegEx',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Schlüssel-RegEx',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 51 => \n array (\n 'id' => 2052,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'show-need-attention',\n 'value' => 'Brauchen Aufmerksamkeit',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Brauchen Aufmerksamkeit',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 52 => \n array (\n 'id' => 2053,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'show-new',\n 'value' => 'Neue',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Neue',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 53 => \n array (\n 'id' => 2054,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'show-nonempty',\n 'value' => 'Fehlende ausblenden',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Fehlende ausblenden',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 54 => \n array (\n 'id' => 2055,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'show-source-refs',\n 'value' => 'Quellverweise anzeigen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Quellverweise anzeigen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 55 => \n array (\n 'id' => 2056,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'show-unpublished',\n 'value' => 'Unveröffentlichte',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Unveröffentlichte',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 56 => \n array (\n 'id' => 2057,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'show-usage-info',\n 'value' => 'Verwendungsinformationen anzeigen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Verwendungsinformationen anzeigen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 57 => \n array (\n 'id' => 2058,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'show-used',\n 'value' => 'Verwendete',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Verwendete',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 58 => \n array (\n 'id' => 2059,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'source-refs-header',\n 'value' => 'Quellverweise für',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Quellverweise für',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 59 => \n array (\n 'id' => 2060,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'src-preview',\n 'value' => 'Von',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Von',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 60 => \n array (\n 'id' => 2061,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'srckey',\n 'value' => 'Von',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Von',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 61 => \n array (\n 'id' => 2062,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'srckeys',\n 'value' => 'Von Schlüsseln',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Von Schlüsseln',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 62 => \n array (\n 'id' => 2063,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'srckeys-placeholder',\n 'value' => 'Einen Schlüssel pro Zeile hinzufügen, mit oder ohne Gruppenpräfix',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Einen Schlüssel pro Zeile hinzufügen, mit oder ohne Gruppenpräfix',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 63 => \n array (\n 'id' => 2064,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'stats',\n 'value' => 'Dashboard-Ansicht',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Dashboard-Ansicht',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 64 => \n array (\n 'id' => 2065,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'suffixed-keyops',\n 'value' => 'Schlüsselsuffix-Operationen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Schlüsselsuffix-Operationen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 65 => \n array (\n 'id' => 2066,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'suffixes',\n 'value' => 'Suffixe',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Suffixe',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 66 => \n array (\n 'id' => 2067,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'total',\n 'value' => 'Gesamt',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Gesamt',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 67 => \n array (\n 'id' => 2068,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'translating-locale',\n 'value' => 'Übersetzen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Übersetzen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 68 => \n array (\n 'id' => 2069,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'translation',\n 'value' => 'Übersetzung',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Übersetzung',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 69 => \n array (\n 'id' => 2070,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'translation-manager',\n 'value' => 'Übersetzungs-Manager',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Übersetzungs-Manager',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 70 => \n array (\n 'id' => 2071,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'translation-ops',\n 'value' => 'Übersetzungshelfer',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Übersetzungshelfer',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 71 => \n array (\n 'id' => 2072,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'translations',\n 'value' => 'Übersetzungen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Übersetzungen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 72 => \n array (\n 'id' => 2073,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'user-admin',\n 'value' => 'Administrator',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Administrator',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 73 => \n array (\n 'id' => 2074,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'user-email',\n 'value' => 'E-Mail-Adresse',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'E-Mail-Adresse',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 74 => \n array (\n 'id' => 2075,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'user-id',\n 'value' => 'Benutzer-ID',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Benutzer-ID',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 75 => \n array (\n 'id' => 2076,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'user-locales',\n 'value' => 'Benutzerdefinierte Lokalen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Benutzerdefinierte Lokalen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 76 => \n array (\n 'id' => 2077,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'user-name',\n 'value' => 'Benutzername',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Benutzername',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 77 => \n array (\n 'id' => 2078,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'wildcard-keyops',\n 'value' => 'Platzhalter-Schlüsseloperationen',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Platzhalter-Schlüsseloperationen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 78 => \n array (\n 'id' => 2079,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'zip-all',\n 'value' => 'Alle als ZIP komprimieren',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Alle als ZIP komprimieren',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 79 => \n array (\n 'id' => 2080,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'zip-group',\n 'value' => 'Gruppe als ZIP komprimieren',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Gruppe als ZIP komprimieren',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 80 => \n array (\n 'id' => 2081,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'accepted',\n 'value' => 'The :attribute must be accepted.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => ':attribute muss akzeptiert werden.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 81 => \n array (\n 'id' => 2082,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'active_url',\n 'value' => 'The :attribute is not a valid URL.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => ':attribute ist keine gültige URL.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 82 => \n array (\n 'id' => 2083,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'after',\n 'value' => 'The :attribute must be a date after :date.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => ':attribute muss ein Datun nach dem :date sein.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 83 => \n array (\n 'id' => 2084,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'after_or_equal',\n 'value' => 'The :attribute must be a date after or equal to :date.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Das :attribute muss ein Datum nach oder gleich :date sein.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 84 => \n array (\n 'id' => 2085,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'alpha',\n 'value' => 'The :attribute may only contain letters.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => ':attribute darf nur Buchstaben enthalten.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 85 => \n array (\n 'id' => 2086,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'alpha_dash',\n 'value' => 'The :attribute may only contain letters, numbers, and dashes.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => ':attribute darf nur Buchstaben, Nummern und Bindestriche enthalten.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 86 => \n array (\n 'id' => 2087,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'alpha_num',\n 'value' => 'The :attribute may only contain letters and numbers.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => ':attribute darf nur Buchstaben und Nummern enthalten.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 87 => \n array (\n 'id' => 2088,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'array',\n 'value' => 'The :attribute must be an array.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => ':attribute muss ein Array sein.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 88 => \n array (\n 'id' => 2089,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'before',\n 'value' => 'The :attribute must be a date before :date.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => ':attribute muss ein Datum vor dem :date sein.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 89 => \n array (\n 'id' => 2090,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'before_or_equal',\n 'value' => 'The :attribute must be a date before or equal to :date.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Das :attribute muss ein Datum vor oder gleich dem :date sein.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 90 => \n array (\n 'id' => 2091,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'between.array',\n 'value' => 'The :attribute must have between :min and :max items.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => ':attribute muss zwischen :min und :max Einträge enthalten.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 91 => \n array (\n 'id' => 2092,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'between.file',\n 'value' => 'The :attribute must be between :min and :max kilobytes.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => ':attribute muss zwischen :min und :max Kilobytes gross sein.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 92 => \n array (\n 'id' => 2093,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'between.numeric',\n 'value' => 'The :attribute must be between :min and :max.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => ':attribute muss zwischen :min und :max sein.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 93 => \n array (\n 'id' => 2094,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'between.string',\n 'value' => 'The :attribute must be between :min and :max characters.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => ':attribute muss zwischen :min und :max Zeichen lang sein.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 94 => \n array (\n 'id' => 2095,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'boolean',\n 'value' => 'The :attribute field must be true or false.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => ':attribute darf nur Wahr oder Falsch sein.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 95 => \n array (\n 'id' => 2096,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'confirmed',\n 'value' => 'The :attribute confirmation does not match.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => ':attribute Wiederholung stimmt nicht überein.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 96 => \n array (\n 'id' => 2097,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'date',\n 'value' => 'The :attribute is not a valid date.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => ':attribute ist kein gültiges Datum.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 97 => \n array (\n 'id' => 2098,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'date_format',\n 'value' => 'The :attribute does not match the format :format.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => ':attribute ist nicht im Format: :format.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 98 => \n array (\n 'id' => 2099,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'different',\n 'value' => 'The :attribute and :other must be different.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => ':attribute und :other müssen unterschiedlich sein.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 99 => \n array (\n 'id' => 2100,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'digits',\n 'value' => 'The :attribute must be :digits digits.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => ':attribute muss :digits Ziffern enthalten.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 100 => \n array (\n 'id' => 2101,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'digits_between',\n 'value' => 'The :attribute must be between :min and :max digits.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => ':attribute muss zwischen :min und :max Ziffern enthalten.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 101 => \n array (\n 'id' => 2102,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'dimensions',\n 'value' => 'The :attribute has invalid image dimensions.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Das :attribute hat ungültige Bildabmessungen.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 102 => \n array (\n 'id' => 2103,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'distinct',\n 'value' => 'The :attribute field has a duplicate value.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Das :attribute Feld hat einen Wert, der bereits verwendet wurde.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 103 => \n array (\n 'id' => 2104,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'email',\n 'value' => 'The :attribute must be a valid email address.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => ':attribute muss eine gültige E-Mailadresse sein.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 104 => \n array (\n 'id' => 2105,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'exists',\n 'value' => 'The selected :attribute is invalid.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => ':attribute ist ungültig.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 105 => \n array (\n 'id' => 2106,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'file',\n 'value' => 'The :attribute must be a file.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Das :attribute muss eine Datei sein.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 106 => \n array (\n 'id' => 2107,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'filled',\n 'value' => 'The :attribute field must have a value.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => ':attribute ist erforderlich.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 107 => \n array (\n 'id' => 2108,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'image',\n 'value' => 'The :attribute must be an image.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => ':attribute muss ein Bild sein.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 108 => \n array (\n 'id' => 2109,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'in',\n 'value' => 'The selected :attribute is invalid.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => ':attribute ist ungültig.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 109 => \n array (\n 'id' => 2110,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'in_array',\n 'value' => 'The :attribute field does not exist in :other.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Das :attribute-Feld existiert nicht in :other.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 110 => \n array (\n 'id' => 2111,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'integer',\n 'value' => 'The :attribute must be an integer.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => ':attribute muss eine Ganzzahl sein.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 111 => \n array (\n 'id' => 2112,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'ip',\n 'value' => 'The :attribute must be a valid IP address.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => ':attribute muss eine gültige IP-Adresse sein.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 112 => \n array (\n 'id' => 2113,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'ipv4',\n 'value' => 'The :attribute must be a valid IPv4 address.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The :attribute must be a valid IPv4 address.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 113 => \n array (\n 'id' => 2114,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'ipv6',\n 'value' => 'The :attribute must be a valid IPv6 address.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'The :attribute must be a valid IPv6 address.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 114 => \n array (\n 'id' => 2115,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'json',\n 'value' => 'The :attribute must be a valid JSON string.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => ':attribute muss eine gültige JSON-Zeichenkette sein.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 115 => \n array (\n 'id' => 2116,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'max.array',\n 'value' => 'The :attribute may not have more than :max items.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => ':attribute darf nicht mehr Einträge enthalten als :max Einträge.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 116 => \n array (\n 'id' => 2117,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'max.file',\n 'value' => 'The :attribute may not be greater than :max kilobytes.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => ':attribute darf nicht grösser sein als :max Kilobytes.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 117 => \n array (\n 'id' => 2118,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'max.numeric',\n 'value' => 'The :attribute may not be greater than :max.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => ':attribute darf nicht grösser sein als :max.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 118 => \n array (\n 'id' => 2119,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'max.string',\n 'value' => 'The :attribute may not be greater than :max characters.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => ':attribute darf nicht grösser sein als :max Zeichen.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 119 => \n array (\n 'id' => 2120,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'mimes',\n 'value' => 'The :attribute must be a file of type: :values.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => ':attribute muss eine Datei des folgenden Typs sein: :values.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 120 => \n array (\n 'id' => 2121,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'mimetypes',\n 'value' => 'The :attribute must be a file of type: :values.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'The :attribute must be a file of type: :values.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 121 => \n array (\n 'id' => 2122,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'min.array',\n 'value' => 'The :attribute must have at least :min items.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => ':attribute muss mindestens :min Einträge enthalten.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 122 => \n array (\n 'id' => 2123,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'min.file',\n 'value' => 'The :attribute must be at least :min kilobytes.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => ':attribute muss mindestens :min Kilobytes gross sein.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 123 => \n array (\n 'id' => 2124,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'min.numeric',\n 'value' => 'The :attribute must be at least :min.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => ':attribute muss mindestens :min sein.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 124 => \n array (\n 'id' => 2125,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'min.string',\n 'value' => 'The :attribute must be at least :min characters.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => ':attribute muss mindestens :min Zeichen lang sein.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 125 => \n array (\n 'id' => 2126,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'not_in',\n 'value' => 'The selected :attribute is invalid.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => ':attribute ist ungültig.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 126 => \n array (\n 'id' => 2127,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'numeric',\n 'value' => 'The :attribute must be a number.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => ':attribute muss eine Zahl sein.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 127 => \n array (\n 'id' => 2128,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'present',\n 'value' => 'The :attribute field must be present.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Das :attribute-Feld muss vorhanden sein.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 128 => \n array (\n 'id' => 2129,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'regex',\n 'value' => 'The :attribute format is invalid.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => ':attribute enthält ein ungültiges Format.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 129 => \n array (\n 'id' => 2130,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'required',\n 'value' => 'The :attribute field is required.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => ':attribute ist erforderlich.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 130 => \n array (\n 'id' => 2131,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'required_if',\n 'value' => 'The :attribute field is required when :other is :value.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => ':attribute ist erforderlich, wenn :other folgenden Wert hat: :value.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 131 => \n array (\n 'id' => 2132,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'required_unless',\n 'value' => 'The :attribute field is required unless :other is in :values.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => ':attribute ist erforderlich, ausser :other enthält :values.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 132 => \n array (\n 'id' => 2133,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'required_with',\n 'value' => 'The :attribute field is required when :values is present.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => ':attribute ist erforderlich, wenn :values vorhanden ist.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 133 => \n array (\n 'id' => 2134,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'required_with_all',\n 'value' => 'The :attribute field is required when :values is present.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => ':attribute ist erforderlich, wenn :values vorhanden ist.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 134 => \n array (\n 'id' => 2135,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'required_without',\n 'value' => 'The :attribute field is required when :values is not present.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => ':attribute ist erforderlich, wenn :values nicht vorhanden ist.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 135 => \n array (\n 'id' => 2136,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'required_without_all',\n 'value' => 'The :attribute field is required when none of :values are present.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => ':attribute ist erforderlich, wenn keine von :values vorhanden ist.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 136 => \n array (\n 'id' => 2137,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'same',\n 'value' => 'The :attribute and :other must match.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => ':attribute und :other müssen gleich sein.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 137 => \n array (\n 'id' => 2138,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'size.array',\n 'value' => 'The :attribute must contain :size items.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => ':attribute muss :size Einträge enthalten.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 138 => \n array (\n 'id' => 2139,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'size.file',\n 'value' => 'The :attribute must be :size kilobytes.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => ':attribute muss :size Kilobytes gross sein.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 139 => \n array (\n 'id' => 2140,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'size.numeric',\n 'value' => 'The :attribute must be :size.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => ':attribute muss :size gross ein.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 140 => \n array (\n 'id' => 2141,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'size.string',\n 'value' => 'The :attribute must be :size characters.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => ':attribute muss :size Zeichen enthalten.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 141 => \n array (\n 'id' => 2142,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'string',\n 'value' => 'The :attribute must be a string.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => ':attribute muss eine Zeichenkette sein.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 142 => \n array (\n 'id' => 2143,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'timezone',\n 'value' => 'The :attribute must be a valid zone.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => ':attribute muss eine gültige Zeitzone sein.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 143 => \n array (\n 'id' => 2144,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'unique',\n 'value' => 'The :attribute has already been taken.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => ':attribute ist schon vergeben.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 144 => \n array (\n 'id' => 2145,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'uploaded',\n 'value' => 'The :attribute failed to upload.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'The :attribute failed to upload.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 145 => \n array (\n 'id' => 2146,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'url',\n 'value' => 'The :attribute format is invalid.',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => ':attribute Format ist ungültig.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 146 => \n array (\n 'id' => 2147,\n 'status' => 2,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'custom.attribute-name.rule-name',\n 'value' => 'custom-message',\n 'created_at' => '2017-08-27 20:10:20',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Individuelle-Nachricht',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 147 => \n array (\n 'id' => 2148,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'title-cancel-changes',\n 'value' => 'Abbrechen',\n 'created_at' => '2017-08-27 21:25:50',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Abbrechen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 148 => \n array (\n 'id' => 2149,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'title-capitalize',\n 'value' => 'Capitalize text',\n 'created_at' => '2017-08-27 21:26:01',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Capitalize text',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 149 => \n array (\n 'id' => 2150,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'title-capitalize-first-word',\n 'value' => 'Capitalize first word',\n 'created_at' => '2017-08-27 21:26:10',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Capitalize first word',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 150 => \n array (\n 'id' => 2151,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'title-clean-html-markdown',\n 'value' => 'Clean HTML markdown',\n 'created_at' => '2017-08-27 21:26:19',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Clean HTML markdown',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 151 => \n array (\n 'id' => 2152,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'title-convert-key',\n 'value' => 'Convert translation key to text',\n 'created_at' => '2017-08-27 21:26:26',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Convert translation key to text',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 152 => \n array (\n 'id' => 2153,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'title-generate-plurals',\n 'value' => 'Generate plural forms',\n 'created_at' => '2017-08-27 21:26:31',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Generate plural forms',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 153 => \n array (\n 'id' => 2154,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'title-load-last',\n 'value' => 'Load last published/imported value',\n 'created_at' => '2017-08-27 21:26:37',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Load last published/imported value',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 154 => \n array (\n 'id' => 2155,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'title-lowercase',\n 'value' => 'Lowercase text',\n 'created_at' => '2017-08-27 21:26:44',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Lowercase text',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 155 => \n array (\n 'id' => 2156,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'title-reset-editor',\n 'value' => 'Reset editor contents',\n 'created_at' => '2017-08-27 21:26:50',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Reset editor contents',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 156 => \n array (\n 'id' => 2157,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'title-save-changes',\n 'value' => 'Save changes',\n 'created_at' => '2017-08-27 21:26:56',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Save changes',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 157 => \n array (\n 'id' => 2158,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'title-simulated-copy',\n 'value' => 'Copy text to simulated clipboard (page refresh clears contents)',\n 'created_at' => '2017-08-27 21:27:04',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Copy text to simulated clipboard (page refresh clears contents)',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 158 => \n array (\n 'id' => 2159,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'title-simulated-paste',\n 'value' => 'Paste text from simulated clipboard',\n 'created_at' => '2017-08-27 21:27:10',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Paste text from simulated clipboard',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 159 => \n array (\n 'id' => 2160,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'translation-manager',\n 'key' => 'title-translate',\n 'value' => 'Translate',\n 'created_at' => '2017-08-27 21:27:16',\n 'updated_at' => '2017-08-28 18:28:25',\n 'saved_value' => 'Translate',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 160 => \n array (\n 'id' => 2161,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'fs_groups',\n 'key' => 'working_groups_title',\n 'value' => 'foodsharing Arbeitsgruppen',\n 'created_at' => '2017-08-27 21:27:16',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'foodsharing Arbeitsgruppen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 161 => \n array (\n 'id' => 2162,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'fs_groups',\n 'key' => 'working_groups_title',\n 'value' => 'foodsharing working-groups',\n 'created_at' => '2017-08-27 21:27:16',\n 'updated_at' => '2017-08-28 18:28:24',\n 'saved_value' => 'foodsharing working-groups',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 162 => \n array (\n 'id' => 2163,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'alerts',\n 'key' => 'backend.roles.created',\n 'value' => 'The role was successfully created.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'The role was successfully created.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 163 => \n array (\n 'id' => 2164,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'alerts',\n 'key' => 'backend.roles.deleted',\n 'value' => 'The role was successfully deleted.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'The role was successfully deleted.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 164 => \n array (\n 'id' => 2165,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'alerts',\n 'key' => 'backend.roles.updated',\n 'value' => 'The role was successfully updated.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'The role was successfully updated.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 165 => \n array (\n 'id' => 2166,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'alerts',\n 'key' => 'backend.users.cant_resend_confirmation',\n 'value' => 'The application is currently set to manually approve users.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'The application is currently set to manually approve users.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 166 => \n array (\n 'id' => 2167,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'alerts',\n 'key' => 'backend.users.confirmation_email',\n 'value' => 'A new confirmation e-mail has been sent to the address on file.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'A new confirmation e-mail has been sent to the address on file.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 167 => \n array (\n 'id' => 2168,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'alerts',\n 'key' => 'backend.users.confirmed',\n 'value' => 'The user was successfully confirmed.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'The user was successfully confirmed.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 168 => \n array (\n 'id' => 2169,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'alerts',\n 'key' => 'backend.users.created',\n 'value' => 'The user was successfully created.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'The user was successfully created.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 169 => \n array (\n 'id' => 2170,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'alerts',\n 'key' => 'backend.users.deleted',\n 'value' => 'The user was successfully deleted.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'The user was successfully deleted.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 170 => \n array (\n 'id' => 2171,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'alerts',\n 'key' => 'backend.users.deleted_permanently',\n 'value' => 'The user was deleted permanently.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'The user was deleted permanently.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 171 => \n array (\n 'id' => 2172,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'alerts',\n 'key' => 'backend.users.restored',\n 'value' => 'The user was successfully restored.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'The user was successfully restored.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 172 => \n array (\n 'id' => 2173,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'alerts',\n 'key' => 'backend.users.session_cleared',\n 'value' => 'The user\\'s session was successfully cleared.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'The user\\'s session was successfully cleared.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 173 => \n array (\n 'id' => 2174,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'alerts',\n 'key' => 'backend.users.social_deleted',\n 'value' => 'Social Account Successfully Removed',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Social Account Successfully Removed',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 174 => \n array (\n 'id' => 2175,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'alerts',\n 'key' => 'backend.users.unconfirmed',\n 'value' => 'The user was successfully un-confirmed',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'The user was successfully un-confirmed',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 175 => \n array (\n 'id' => 2176,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'alerts',\n 'key' => 'backend.users.updated',\n 'value' => 'The user was successfully updated.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'The user was successfully updated.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 176 => \n array (\n 'id' => 2177,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'alerts',\n 'key' => 'backend.users.updated_password',\n 'value' => 'The user\\'s password was successfully updated.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'The user\\'s password was successfully updated.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 177 => \n array (\n 'id' => 2178,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'alerts',\n 'key' => 'frontend.contact.sent',\n 'value' => 'Your information was successfully sent. We will respond back to the e-mail provided as soon as we can.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Your information was successfully sent. We will respond back to the e-mail provided as soon as we can.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 178 => \n array (\n 'id' => 2179,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'auth',\n 'key' => 'general_error',\n 'value' => 'You do not have access to do that.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'You do not have access to do that.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 179 => \n array (\n 'id' => 2180,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'auth',\n 'key' => 'socialite.unacceptable',\n 'value' => ':provider is not an acceptable login type.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => ':provider is not an acceptable login type.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 180 => \n array (\n 'id' => 2181,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'auth',\n 'key' => 'unknown',\n 'value' => 'An unknown error occurred',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'An unknown error occurred',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 181 => \n array (\n 'id' => 2182,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'buttons',\n 'key' => 'backend.access.users.activate',\n 'value' => 'Activate',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Activate',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 182 => \n array (\n 'id' => 2183,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'buttons',\n 'key' => 'backend.access.users.change_password',\n 'value' => 'Change Password',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Change Password',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 183 => \n array (\n 'id' => 2184,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'buttons',\n 'key' => 'backend.access.users.clear_session',\n 'value' => 'Clear Session',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Clear Session',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 184 => \n array (\n 'id' => 2185,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'buttons',\n 'key' => 'backend.access.users.confirm',\n 'value' => 'Confirm',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Confirm',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 185 => \n array (\n 'id' => 2186,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'buttons',\n 'key' => 'backend.access.users.deactivate',\n 'value' => 'Deactivate',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Deactivate',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 186 => \n array (\n 'id' => 2187,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'buttons',\n 'key' => 'backend.access.users.delete_permanently',\n 'value' => 'Delete Permanently',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Delete Permanently',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 187 => \n array (\n 'id' => 2188,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'buttons',\n 'key' => 'backend.access.users.login_as',\n 'value' => 'Login As :user',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Login As :user',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 188 => \n array (\n 'id' => 2189,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'buttons',\n 'key' => 'backend.access.users.resend_email',\n 'value' => 'Resend Confirmation E-mail',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Resend Confirmation E-mail',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 189 => \n array (\n 'id' => 2190,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'buttons',\n 'key' => 'backend.access.users.restore_user',\n 'value' => 'Restore User',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Restore User',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 190 => \n array (\n 'id' => 2191,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'buttons',\n 'key' => 'backend.access.users.unconfirm',\n 'value' => 'Un-confirm',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Un-confirm',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 191 => \n array (\n 'id' => 2192,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'buttons',\n 'key' => 'backend.access.users.unlink',\n 'value' => 'Unlink',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Unlink',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 192 => \n array (\n 'id' => 2193,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'buttons',\n 'key' => 'emails.auth.confirm_account',\n 'value' => 'Confirm Account',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Confirm Account',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 193 => \n array (\n 'id' => 2194,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'buttons',\n 'key' => 'emails.auth.reset_password',\n 'value' => 'Reset Password',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Reset Password',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 194 => \n array (\n 'id' => 2195,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'buttons',\n 'key' => 'general.cancel',\n 'value' => 'Cancel',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Cancel',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 195 => \n array (\n 'id' => 2196,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'buttons',\n 'key' => 'general.continue',\n 'value' => 'Continue',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Continue',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 196 => \n array (\n 'id' => 2197,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'buttons',\n 'key' => 'general.crud.create',\n 'value' => 'Create',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Create',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 197 => \n array (\n 'id' => 2198,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'buttons',\n 'key' => 'general.crud.delete',\n 'value' => 'Delete',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Delete',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 198 => \n array (\n 'id' => 2199,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'buttons',\n 'key' => 'general.crud.edit',\n 'value' => 'Edit',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Edit',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 199 => \n array (\n 'id' => 2200,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'buttons',\n 'key' => 'general.crud.update',\n 'value' => 'Update',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Update',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 200 => \n array (\n 'id' => 2201,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'buttons',\n 'key' => 'general.crud.view',\n 'value' => 'View',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'View',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 201 => \n array (\n 'id' => 2202,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'buttons',\n 'key' => 'general.save',\n 'value' => 'Save',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Save',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 202 => \n array (\n 'id' => 2203,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'buttons',\n 'key' => 'general.view',\n 'value' => 'View',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'View',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 203 => \n array (\n 'id' => 2204,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'exceptions',\n 'key' => 'backend.access.roles.already_exists',\n 'value' => 'That role already exists. Please choose a different name.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'That role already exists. Please choose a different name.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 204 => \n array (\n 'id' => 2205,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'exceptions',\n 'key' => 'backend.access.roles.cant_delete_admin',\n 'value' => 'You can not delete the Administrator role.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'You can not delete the Administrator role.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 205 => \n array (\n 'id' => 2206,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'exceptions',\n 'key' => 'backend.access.roles.create_error',\n 'value' => 'There was a problem creating this role. Please try again.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'There was a problem creating this role. Please try again.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 206 => \n array (\n 'id' => 2207,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'exceptions',\n 'key' => 'backend.access.roles.delete_error',\n 'value' => 'There was a problem deleting this role. Please try again.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'There was a problem deleting this role. Please try again.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 207 => \n array (\n 'id' => 2208,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'exceptions',\n 'key' => 'backend.access.roles.has_users',\n 'value' => 'You can not delete a role with associated users.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'You can not delete a role with associated users.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 208 => \n array (\n 'id' => 2209,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'exceptions',\n 'key' => 'backend.access.roles.needs_permission',\n 'value' => 'You must select at least one permission for this role.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'You must select at least one permission for this role.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 209 => \n array (\n 'id' => 2210,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'exceptions',\n 'key' => 'backend.access.roles.not_found',\n 'value' => 'That role does not exist.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'That role does not exist.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 210 => \n array (\n 'id' => 2211,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'exceptions',\n 'key' => 'backend.access.roles.update_error',\n 'value' => 'There was a problem updating this role. Please try again.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'There was a problem updating this role. Please try again.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 211 => \n array (\n 'id' => 2212,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'exceptions',\n 'key' => 'backend.access.users.already_confirmed',\n 'value' => 'This user is already confirmed.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'This user is already confirmed.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 212 => \n array (\n 'id' => 2213,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'exceptions',\n 'key' => 'backend.access.users.cant_confirm',\n 'value' => 'There was a problem confirming the user account.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'There was a problem confirming the user account.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 213 => \n array (\n 'id' => 2214,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'exceptions',\n 'key' => 'backend.access.users.cant_deactivate_self',\n 'value' => 'You can not do that to yourself.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'You can not do that to yourself.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 214 => \n array (\n 'id' => 2215,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'exceptions',\n 'key' => 'backend.access.users.cant_delete_admin',\n 'value' => 'You can not delete the super administrator.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'You can not delete the super administrator.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 215 => \n array (\n 'id' => 2216,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'exceptions',\n 'key' => 'backend.access.users.cant_delete_self',\n 'value' => 'You can not delete yourself.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'You can not delete yourself.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 216 => \n array (\n 'id' => 2217,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'exceptions',\n 'key' => 'backend.access.users.cant_delete_own_session',\n 'value' => 'You can not delete your own session.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'You can not delete your own session.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 217 => \n array (\n 'id' => 2218,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'exceptions',\n 'key' => 'backend.access.users.cant_restore',\n 'value' => 'This user is not deleted so it can not be restored.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'This user is not deleted so it can not be restored.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 218 => \n array (\n 'id' => 2219,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'exceptions',\n 'key' => 'backend.access.users.cant_unconfirm_admin',\n 'value' => 'You can not un-confirm the super administrator.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'You can not un-confirm the super administrator.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 219 => \n array (\n 'id' => 2220,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'exceptions',\n 'key' => 'backend.access.users.cant_unconfirm_self',\n 'value' => 'You can not un-confirm yourself.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'You can not un-confirm yourself.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 220 => \n array (\n 'id' => 2221,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'exceptions',\n 'key' => 'backend.access.users.create_error',\n 'value' => 'There was a problem creating this user. Please try again.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'There was a problem creating this user. Please try again.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 221 => \n array (\n 'id' => 2222,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'exceptions',\n 'key' => 'backend.access.users.delete_error',\n 'value' => 'There was a problem deleting this user. Please try again.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'There was a problem deleting this user. Please try again.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 222 => \n array (\n 'id' => 2223,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'exceptions',\n 'key' => 'backend.access.users.delete_first',\n 'value' => 'This user must be deleted first before it can be destroyed permanently.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'This user must be deleted first before it can be destroyed permanently.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 223 => \n array (\n 'id' => 2224,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'exceptions',\n 'key' => 'backend.access.users.email_error',\n 'value' => 'That email address belongs to a different user.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'That email address belongs to a different user.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 224 => \n array (\n 'id' => 2225,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'exceptions',\n 'key' => 'backend.access.users.mark_error',\n 'value' => 'There was a problem updating this user. Please try again.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'There was a problem updating this user. Please try again.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 225 => \n array (\n 'id' => 2226,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'exceptions',\n 'key' => 'backend.access.users.not_confirmed',\n 'value' => 'This user is not confirmed.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'This user is not confirmed.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 226 => \n array (\n 'id' => 2227,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'exceptions',\n 'key' => 'backend.access.users.not_found',\n 'value' => 'That user does not exist.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'That user does not exist.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 227 => \n array (\n 'id' => 2228,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'exceptions',\n 'key' => 'backend.access.users.restore_error',\n 'value' => 'There was a problem restoring this user. Please try again.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'There was a problem restoring this user. Please try again.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 228 => \n array (\n 'id' => 2229,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'exceptions',\n 'key' => 'backend.access.users.role_needed_create',\n 'value' => 'You must choose at lease one role.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'You must choose at lease one role.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 229 => \n array (\n 'id' => 2230,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'exceptions',\n 'key' => 'backend.access.users.role_needed',\n 'value' => 'You must choose at least one role.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'You must choose at least one role.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 230 => \n array (\n 'id' => 2231,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'exceptions',\n 'key' => 'backend.access.users.session_wrong_driver',\n 'value' => 'Your session driver must be set to database to use this feature.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Your session driver must be set to database to use this feature.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 231 => \n array (\n 'id' => 2232,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'exceptions',\n 'key' => 'backend.access.users.social_delete_error',\n 'value' => 'There was a problem removing the social account from the user.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'There was a problem removing the social account from the user.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 232 => \n array (\n 'id' => 2233,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'exceptions',\n 'key' => 'backend.access.users.update_error',\n 'value' => 'There was a problem updating this user. Please try again.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'There was a problem updating this user. Please try again.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 233 => \n array (\n 'id' => 2234,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'exceptions',\n 'key' => 'backend.access.users.update_password_error',\n 'value' => 'There was a problem changing this users password. Please try again.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'There was a problem changing this users password. Please try again.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 234 => \n array (\n 'id' => 2235,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'exceptions',\n 'key' => 'frontend.auth.confirmation.already_confirmed',\n 'value' => 'Your account is already confirmed.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Your account is already confirmed.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 235 => \n array (\n 'id' => 2236,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'exceptions',\n 'key' => 'frontend.auth.confirmation.confirm',\n 'value' => 'Confirm your account!',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Confirm your account!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 236 => \n array (\n 'id' => 2237,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'exceptions',\n 'key' => 'frontend.auth.confirmation.created_confirm',\n 'value' => 'Your account was successfully created. We have sent you an e-mail to confirm your account.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Your account was successfully created. We have sent you an e-mail to confirm your account.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 237 => \n array (\n 'id' => 2238,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'exceptions',\n 'key' => 'frontend.auth.confirmation.created_pending',\n 'value' => 'Your account was successfully created and is pending approval. An e-mail will be sent when your account is approved.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Your account was successfully created and is pending approval. An e-mail will be sent when your account is approved.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 238 => \n array (\n 'id' => 2239,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'exceptions',\n 'key' => 'frontend.auth.confirmation.mismatch',\n 'value' => 'Your confirmation code does not match.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Your confirmation code does not match.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 239 => \n array (\n 'id' => 2240,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'exceptions',\n 'key' => 'frontend.auth.confirmation.not_found',\n 'value' => 'That confirmation code does not exist.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'That confirmation code does not exist.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 240 => \n array (\n 'id' => 2241,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'exceptions',\n 'key' => 'frontend.auth.confirmation.pending',\n 'value' => 'Your account is currently pending approval.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Your account is currently pending approval.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 241 => \n array (\n 'id' => 2242,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'exceptions',\n 'key' => 'frontend.auth.confirmation.resend',\n 'value' => 'Your account is not confirmed. Please click the confirmation link in your e-mail, or <a href=\"http://foodsharing.app/refactor/account/confirm/resend/:user_id\">click here</a> to resend the confirmation e-mail.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Your account is not confirmed. Please click the confirmation link in your e-mail, or <a href=\"http://foodsharing.app/refactor/account/confirm/resend/:user_id\">click here</a> to resend the confirmation e-mail.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 242 => \n array (\n 'id' => 2243,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'exceptions',\n 'key' => 'frontend.auth.confirmation.success',\n 'value' => 'Your account has been successfully confirmed!',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Your account has been successfully confirmed!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 243 => \n array (\n 'id' => 2244,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'exceptions',\n 'key' => 'frontend.auth.confirmation.resent',\n 'value' => 'A new confirmation e-mail has been sent to the address on file.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'A new confirmation e-mail has been sent to the address on file.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 244 => \n array (\n 'id' => 2245,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'exceptions',\n 'key' => 'frontend.auth.deactivated',\n 'value' => 'Your account has been deactivated.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Your account has been deactivated.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 245 => \n array (\n 'id' => 2246,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'exceptions',\n 'key' => 'frontend.auth.email_taken',\n 'value' => 'That e-mail address is already taken.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'That e-mail address is already taken.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 246 => \n array (\n 'id' => 2247,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'exceptions',\n 'key' => 'frontend.auth.password.change_mismatch',\n 'value' => 'That is not your old password.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'That is not your old password.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 247 => \n array (\n 'id' => 2248,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'exceptions',\n 'key' => 'frontend.auth.password.reset_problem',\n 'value' => 'There was a problem resetting your password. Please resend the password reset email.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'There was a problem resetting your password. Please resend the password reset email.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 248 => \n array (\n 'id' => 2249,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'exceptions',\n 'key' => 'frontend.auth.registration_disabled',\n 'value' => 'Registration is currently closed.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Registration is currently closed.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 249 => \n array (\n 'id' => 2250,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'history',\n 'key' => 'backend.none',\n 'value' => 'There is no recent history.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'There is no recent history.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 250 => \n array (\n 'id' => 2251,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'history',\n 'key' => 'backend.none_for_type',\n 'value' => 'There is no history for this type.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'There is no history for this type.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 251 => \n array (\n 'id' => 2252,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'history',\n 'key' => 'backend.none_for_entity',\n 'value' => 'There is no history for this :entity.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'There is no history for this :entity.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 252 => \n array (\n 'id' => 2253,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'history',\n 'key' => 'backend.recent_history',\n 'value' => 'Recent History',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Recent History',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 253 => \n array (\n 'id' => 2254,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'history',\n 'key' => 'backend.roles.created',\n 'value' => 'created role',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'created role',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 254 => \n array (\n 'id' => 2255,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'history',\n 'key' => 'backend.roles.deleted',\n 'value' => 'deleted role',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'deleted role',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 255 => \n array (\n 'id' => 2256,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'history',\n 'key' => 'backend.roles.updated',\n 'value' => 'updated role',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'updated role',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 256 => \n array (\n 'id' => 2257,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'history',\n 'key' => 'backend.users.changed_password',\n 'value' => 'changed password for user',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'changed password for user',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 257 => \n array (\n 'id' => 2258,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'history',\n 'key' => 'backend.users.confirmed',\n 'value' => 'confirmed user',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'confirmed user',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 258 => \n array (\n 'id' => 2259,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'history',\n 'key' => 'backend.users.created',\n 'value' => 'created user',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'created user',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 259 => \n array (\n 'id' => 2260,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'history',\n 'key' => 'backend.users.deactivated',\n 'value' => 'deactivated user',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'deactivated user',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 260 => \n array (\n 'id' => 2261,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'history',\n 'key' => 'backend.users.deleted',\n 'value' => 'deleted user',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'deleted user',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 261 => \n array (\n 'id' => 2262,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'history',\n 'key' => 'backend.users.deleted_social',\n 'value' => 'deleted social account',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'deleted social account',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 262 => \n array (\n 'id' => 2263,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'history',\n 'key' => 'backend.users.permanently_deleted',\n 'value' => 'permanently deleted user',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'permanently deleted user',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 263 => \n array (\n 'id' => 2264,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'history',\n 'key' => 'backend.users.updated',\n 'value' => 'updated user',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'updated user',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 264 => \n array (\n 'id' => 2265,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'history',\n 'key' => 'backend.users.unconfirmed',\n 'value' => 'un-confirmed user',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'un-confirmed user',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 265 => \n array (\n 'id' => 2266,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'history',\n 'key' => 'backend.users.reactivated',\n 'value' => 'reactivated user',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'reactivated user',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 266 => \n array (\n 'id' => 2267,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'history',\n 'key' => 'backend.users.restored',\n 'value' => 'restored user',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'restored user',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 267 => \n array (\n 'id' => 2268,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'http',\n 'key' => '404.title',\n 'value' => 'Page Not Found',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Page Not Found',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 268 => \n array (\n 'id' => 2269,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'http',\n 'key' => '404.description',\n 'value' => 'Sorry, but the page you were trying to view does not exist.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Sorry, but the page you were trying to view does not exist.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 269 => \n array (\n 'id' => 2270,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'http',\n 'key' => '503.title',\n 'value' => 'Be right back.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Be right back.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 270 => \n array (\n 'id' => 2271,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'http',\n 'key' => '503.description',\n 'value' => 'Be right back.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Be right back.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 271 => \n array (\n 'id' => 2272,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'general.all',\n 'value' => 'All',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'All',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 272 => \n array (\n 'id' => 2273,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'general.yes',\n 'value' => 'Yes',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Yes',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 273 => \n array (\n 'id' => 2274,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'general.no',\n 'value' => 'No',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'No',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 274 => \n array (\n 'id' => 2275,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'general.custom',\n 'value' => 'Custom',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Custom',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 275 => \n array (\n 'id' => 2276,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'general.actions',\n 'value' => 'Actions',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Actions',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 276 => \n array (\n 'id' => 2277,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'general.active',\n 'value' => 'Active',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Active',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 277 => \n array (\n 'id' => 2278,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'general.buttons.save',\n 'value' => 'Save',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Save',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 278 => \n array (\n 'id' => 2279,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'general.buttons.update',\n 'value' => 'Update',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Update',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 279 => \n array (\n 'id' => 2280,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'general.hide',\n 'value' => 'Hide',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Hide',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 280 => \n array (\n 'id' => 2281,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'general.inactive',\n 'value' => 'Inactive',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Inactive',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 281 => \n array (\n 'id' => 2282,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'general.none',\n 'value' => 'None',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'None',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 282 => \n array (\n 'id' => 2283,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'general.show',\n 'value' => 'Show',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Show',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 283 => \n array (\n 'id' => 2284,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'general.toggle_navigation',\n 'value' => 'Toggle Navigation',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Toggle Navigation',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 284 => \n array (\n 'id' => 2285,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'backend.access.roles.create',\n 'value' => 'Create Role',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Create Role',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 285 => \n array (\n 'id' => 2286,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'backend.access.roles.edit',\n 'value' => 'Edit Role',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Edit Role',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 286 => \n array (\n 'id' => 2287,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'backend.access.roles.management',\n 'value' => 'Role Management',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Role Management',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 287 => \n array (\n 'id' => 2288,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'backend.access.roles.table.number_of_users',\n 'value' => 'Number of Users',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Number of Users',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 288 => \n array (\n 'id' => 2289,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'backend.access.roles.table.permissions',\n 'value' => 'Permissions',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Permissions',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 289 => \n array (\n 'id' => 2290,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'backend.access.roles.table.role',\n 'value' => 'Role',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Role',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 290 => \n array (\n 'id' => 2291,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'backend.access.roles.table.sort',\n 'value' => 'Sort',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Sort',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 291 => \n array (\n 'id' => 2292,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'backend.access.roles.table.total',\n 'value' => 'role total|roles total',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'role total|roles total',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 292 => \n array (\n 'id' => 2293,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'backend.access.users.active',\n 'value' => 'Active Users',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Active Users',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 293 => \n array (\n 'id' => 2294,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'backend.access.users.all_permissions',\n 'value' => 'All Permissions',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'All Permissions',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 294 => \n array (\n 'id' => 2295,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'backend.access.users.change_password',\n 'value' => 'Change Password',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Change Password',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 295 => \n array (\n 'id' => 2296,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'backend.access.users.change_password_for',\n 'value' => 'Change Password for :user',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Change Password for :user',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 296 => \n array (\n 'id' => 2297,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'backend.access.users.create',\n 'value' => 'Create User',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Create User',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 297 => \n array (\n 'id' => 2298,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'backend.access.users.deactivated',\n 'value' => 'Deactivated Users',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Deactivated Users',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 298 => \n array (\n 'id' => 2299,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'backend.access.users.deleted',\n 'value' => 'Deleted Users',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Deleted Users',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 299 => \n array (\n 'id' => 2300,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'backend.access.users.edit',\n 'value' => 'Edit User',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Edit User',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 300 => \n array (\n 'id' => 2301,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'backend.access.users.management',\n 'value' => 'User Management',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'User Management',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 301 => \n array (\n 'id' => 2302,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'backend.access.users.no_permissions',\n 'value' => 'No Permissions',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'No Permissions',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 302 => \n array (\n 'id' => 2303,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'backend.access.users.no_roles',\n 'value' => 'No Roles to set.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'No Roles to set.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 303 => \n array (\n 'id' => 2304,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'backend.access.users.permissions',\n 'value' => 'Permissions',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Permissions',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 304 => \n array (\n 'id' => 2305,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'backend.access.users.table.confirmed',\n 'value' => 'Confirmed',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Confirmed',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 305 => \n array (\n 'id' => 2306,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'backend.access.users.table.created',\n 'value' => 'Created',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Created',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 306 => \n array (\n 'id' => 2307,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'backend.access.users.table.email',\n 'value' => 'E-mail',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'E-mail',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 307 => \n array (\n 'id' => 2308,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'backend.access.users.table.id',\n 'value' => 'ID',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'ID',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 308 => \n array (\n 'id' => 2309,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'backend.access.users.table.last_updated',\n 'value' => 'Last Updated',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Last Updated',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 309 => \n array (\n 'id' => 2310,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'backend.access.users.table.name',\n 'value' => 'Name',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Name',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 310 => \n array (\n 'id' => 2311,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'backend.access.users.table.first_name',\n 'value' => 'First Name',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'First Name',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 311 => \n array (\n 'id' => 2312,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'backend.access.users.table.last_name',\n 'value' => 'Last Name',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Last Name',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 312 => \n array (\n 'id' => 2313,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'backend.access.users.table.no_deactivated',\n 'value' => 'No Deactivated Users',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'No Deactivated Users',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 313 => \n array (\n 'id' => 2314,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'backend.access.users.table.no_deleted',\n 'value' => 'No Deleted Users',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'No Deleted Users',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 314 => \n array (\n 'id' => 2315,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'backend.access.users.table.roles',\n 'value' => 'Roles',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Roles',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 315 => \n array (\n 'id' => 2316,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'backend.access.users.table.social',\n 'value' => 'Social',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Social',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 316 => \n array (\n 'id' => 2317,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'backend.access.users.table.total',\n 'value' => 'user total|users total',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'user total|users total',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 317 => \n array (\n 'id' => 2318,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'backend.access.users.tabs.titles.overview',\n 'value' => 'Overview',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Overview',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 318 => \n array (\n 'id' => 2319,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'backend.access.users.tabs.titles.history',\n 'value' => 'History',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'History',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 319 => \n array (\n 'id' => 2320,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'backend.access.users.tabs.content.overview.avatar',\n 'value' => 'Avatar',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Avatar',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 320 => \n array (\n 'id' => 2321,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'backend.access.users.tabs.content.overview.confirmed',\n 'value' => 'Confirmed',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Confirmed',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 321 => \n array (\n 'id' => 2322,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'backend.access.users.tabs.content.overview.created_at',\n 'value' => 'Created At',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Created At',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 322 => \n array (\n 'id' => 2323,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'backend.access.users.tabs.content.overview.deleted_at',\n 'value' => 'Deleted At',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Deleted At',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 323 => \n array (\n 'id' => 2324,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'backend.access.users.tabs.content.overview.email',\n 'value' => 'E-mail',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'E-mail',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 324 => \n array (\n 'id' => 2325,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'backend.access.users.tabs.content.overview.last_updated',\n 'value' => 'Last Updated',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Last Updated',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 325 => \n array (\n 'id' => 2326,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'backend.access.users.tabs.content.overview.name',\n 'value' => 'Name',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Name',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 326 => \n array (\n 'id' => 2327,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'backend.access.users.tabs.content.overview.first_name',\n 'value' => 'First Name',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'First Name',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 327 => \n array (\n 'id' => 2328,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'backend.access.users.tabs.content.overview.last_name',\n 'value' => 'Last Name',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Last Name',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 328 => \n array (\n 'id' => 2329,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'backend.access.users.tabs.content.overview.status',\n 'value' => 'Status',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Status',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 329 => \n array (\n 'id' => 2330,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'backend.access.users.view',\n 'value' => 'View User',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'View User',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 330 => \n array (\n 'id' => 2331,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'frontend.auth.login_box_title',\n 'value' => 'Login',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Login',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 331 => \n array (\n 'id' => 2332,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'frontend.auth.login_button',\n 'value' => 'Login',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Login',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 332 => \n array (\n 'id' => 2333,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'frontend.auth.login_with',\n 'value' => 'Login with :social_media',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Login with :social_media',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 333 => \n array (\n 'id' => 2334,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'frontend.auth.register_box_title',\n 'value' => 'Register',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Register',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 334 => \n array (\n 'id' => 2335,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'frontend.auth.register_button',\n 'value' => 'Register',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Register',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 335 => \n array (\n 'id' => 2336,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'frontend.auth.remember_me',\n 'value' => 'Remember Me',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Remember Me',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 336 => \n array (\n 'id' => 2337,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'frontend.contact.box_title',\n 'value' => 'Contact Us',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Contact Us',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 337 => \n array (\n 'id' => 2338,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'frontend.contact.button',\n 'value' => 'Send Information',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Send Information',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 338 => \n array (\n 'id' => 2339,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'frontend.passwords.forgot_password',\n 'value' => 'Forgot Your Password?',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Forgot Your Password?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 339 => \n array (\n 'id' => 2340,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'frontend.passwords.reset_password_box_title',\n 'value' => 'Reset Password',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Reset Password',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 340 => \n array (\n 'id' => 2341,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'frontend.passwords.reset_password_button',\n 'value' => 'Reset Password',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Reset Password',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 341 => \n array (\n 'id' => 2342,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'frontend.passwords.send_password_reset_link_button',\n 'value' => 'Send Password Reset Link',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Send Password Reset Link',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 342 => \n array (\n 'id' => 2343,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'frontend.macros.country.alpha',\n 'value' => 'Country Alpha Codes',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Country Alpha Codes',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 343 => \n array (\n 'id' => 2344,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'frontend.macros.country.alpha2',\n 'value' => 'Country Alpha 2 Codes',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Country Alpha 2 Codes',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 344 => \n array (\n 'id' => 2345,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'frontend.macros.country.alpha3',\n 'value' => 'Country Alpha 3 Codes',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Country Alpha 3 Codes',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 345 => \n array (\n 'id' => 2346,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'frontend.macros.country.numeric',\n 'value' => 'Country Numeric Codes',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Country Numeric Codes',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 346 => \n array (\n 'id' => 2347,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'frontend.macros.macro_examples',\n 'value' => 'Macro Examples',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Macro Examples',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 347 => \n array (\n 'id' => 2348,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'frontend.macros.state.mexico',\n 'value' => 'Mexico State List',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Mexico State List',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 348 => \n array (\n 'id' => 2349,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'frontend.macros.state.us.us',\n 'value' => 'US States',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'US States',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 349 => \n array (\n 'id' => 2350,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'frontend.macros.state.us.outlying',\n 'value' => 'US Outlying Territories',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'US Outlying Territories',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 350 => \n array (\n 'id' => 2351,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'frontend.macros.state.us.armed',\n 'value' => 'US Armed Forces',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'US Armed Forces',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 351 => \n array (\n 'id' => 2352,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'frontend.macros.territories.canada',\n 'value' => 'Canada Province & Territories List',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Canada Province & Territories List',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 352 => \n array (\n 'id' => 2353,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'frontend.macros.timezone',\n 'value' => 'Timezone',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Timezone',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 353 => \n array (\n 'id' => 2354,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'frontend.user.passwords.change',\n 'value' => 'Change Password',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Change Password',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 354 => \n array (\n 'id' => 2355,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'frontend.user.profile.avatar',\n 'value' => 'Avatar',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Avatar',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 355 => \n array (\n 'id' => 2356,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'frontend.user.profile.created_at',\n 'value' => 'Created At',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Created At',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 356 => \n array (\n 'id' => 2357,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'frontend.user.profile.edit_information',\n 'value' => 'Edit Information',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Edit Information',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 357 => \n array (\n 'id' => 2358,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'frontend.user.profile.email',\n 'value' => 'E-mail',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'E-mail',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 358 => \n array (\n 'id' => 2359,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'frontend.user.profile.last_updated',\n 'value' => 'Last Updated',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Last Updated',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 359 => \n array (\n 'id' => 2360,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'frontend.user.profile.name',\n 'value' => 'Name',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Name',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 360 => \n array (\n 'id' => 2361,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'frontend.user.profile.first_name',\n 'value' => 'First Name',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'First Name',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 361 => \n array (\n 'id' => 2362,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'frontend.user.profile.last_name',\n 'value' => 'Last Name',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Last Name',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 362 => \n array (\n 'id' => 2363,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'frontend.user.profile.update_information',\n 'value' => 'Update Information',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Update Information',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 363 => \n array (\n 'id' => 2364,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'menus',\n 'key' => 'backend.access.title',\n 'value' => 'Access Management',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Access Management',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 364 => \n array (\n 'id' => 2365,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'menus',\n 'key' => 'backend.access.roles.all',\n 'value' => 'All Roles',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'All Roles',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 365 => \n array (\n 'id' => 2366,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'menus',\n 'key' => 'backend.access.roles.create',\n 'value' => 'Create Role',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Create Role',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 366 => \n array (\n 'id' => 2367,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'menus',\n 'key' => 'backend.access.roles.edit',\n 'value' => 'Edit Role',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Edit Role',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 367 => \n array (\n 'id' => 2368,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'menus',\n 'key' => 'backend.access.roles.management',\n 'value' => 'Role Management',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Role Management',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 368 => \n array (\n 'id' => 2369,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'menus',\n 'key' => 'backend.access.roles.main',\n 'value' => 'Roles',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Roles',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 369 => \n array (\n 'id' => 2370,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'menus',\n 'key' => 'backend.access.users.all',\n 'value' => 'All Users',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'All Users',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 370 => \n array (\n 'id' => 2371,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'menus',\n 'key' => 'backend.access.users.change-password',\n 'value' => 'Change Password',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Change Password',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 371 => \n array (\n 'id' => 2372,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'menus',\n 'key' => 'backend.access.users.create',\n 'value' => 'Create User',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Create User',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 372 => \n array (\n 'id' => 2373,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'menus',\n 'key' => 'backend.access.users.deactivated',\n 'value' => 'Deactivated Users',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Deactivated Users',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 373 => \n array (\n 'id' => 2374,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'menus',\n 'key' => 'backend.access.users.deleted',\n 'value' => 'Deleted Users',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Deleted Users',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 374 => \n array (\n 'id' => 2375,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'menus',\n 'key' => 'backend.access.users.edit',\n 'value' => 'Edit User',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Edit User',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 375 => \n array (\n 'id' => 2376,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'menus',\n 'key' => 'backend.access.users.main',\n 'value' => 'Users',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Users',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 376 => \n array (\n 'id' => 2377,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'menus',\n 'key' => 'backend.access.users.view',\n 'value' => 'View User',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'View User',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 377 => \n array (\n 'id' => 2378,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'menus',\n 'key' => 'backend.log-viewer.main',\n 'value' => 'Log Viewer',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Log Viewer',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 378 => \n array (\n 'id' => 2379,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'menus',\n 'key' => 'backend.log-viewer.dashboard',\n 'value' => 'Dashboard',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Dashboard',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 379 => \n array (\n 'id' => 2380,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'menus',\n 'key' => 'backend.log-viewer.logs',\n 'value' => 'Logs',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Logs',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 380 => \n array (\n 'id' => 2381,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'menus',\n 'key' => 'backend.sidebar.dashboard',\n 'value' => 'Dashboard',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Dashboard',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 381 => \n array (\n 'id' => 2382,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'menus',\n 'key' => 'backend.sidebar.general',\n 'value' => 'General',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'General',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 382 => \n array (\n 'id' => 2383,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'menus',\n 'key' => 'backend.sidebar.system',\n 'value' => 'System',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'System',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 383 => \n array (\n 'id' => 2384,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'menus',\n 'key' => 'language-picker.language',\n 'value' => 'Language',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Language',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 384 => \n array (\n 'id' => 2385,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'menus',\n 'key' => 'language-picker.langs.ar',\n 'value' => 'Arabic',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Arabic',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 385 => \n array (\n 'id' => 2386,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'menus',\n 'key' => 'language-picker.langs.zh',\n 'value' => 'Chinese Simplified',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Chinese Simplified',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 386 => \n array (\n 'id' => 2387,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'menus',\n 'key' => 'language-picker.langs.zh-TW',\n 'value' => 'Chinese Traditional',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Chinese Traditional',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 387 => \n array (\n 'id' => 2388,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'menus',\n 'key' => 'language-picker.langs.da',\n 'value' => 'Danish',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Danish',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 388 => \n array (\n 'id' => 2389,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'menus',\n 'key' => 'language-picker.langs.de',\n 'value' => 'German',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'German',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 389 => \n array (\n 'id' => 2390,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'menus',\n 'key' => 'language-picker.langs.el',\n 'value' => 'Greek',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Greek',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 390 => \n array (\n 'id' => 2391,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'menus',\n 'key' => 'language-picker.langs.en',\n 'value' => 'English',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'English',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 391 => \n array (\n 'id' => 2392,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'menus',\n 'key' => 'language-picker.langs.es',\n 'value' => 'Spanish',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Spanish',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 392 => \n array (\n 'id' => 2393,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'menus',\n 'key' => 'language-picker.langs.fr',\n 'value' => 'French',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'French',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 393 => \n array (\n 'id' => 2394,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'menus',\n 'key' => 'language-picker.langs.id',\n 'value' => 'Indonesian',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Indonesian',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 394 => \n array (\n 'id' => 2395,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'menus',\n 'key' => 'language-picker.langs.it',\n 'value' => 'Italian',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Italian',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 395 => \n array (\n 'id' => 2396,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'menus',\n 'key' => 'language-picker.langs.ja',\n 'value' => 'Japanese',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Japanese',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 396 => \n array (\n 'id' => 2397,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'menus',\n 'key' => 'language-picker.langs.nl',\n 'value' => 'Dutch',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Dutch',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 397 => \n array (\n 'id' => 2398,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'menus',\n 'key' => 'language-picker.langs.pt_BR',\n 'value' => 'Brazilian Portuguese',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Brazilian Portuguese',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 398 => \n array (\n 'id' => 2399,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'menus',\n 'key' => 'language-picker.langs.ru',\n 'value' => 'Russian',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Russian',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 399 => \n array (\n 'id' => 2400,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'menus',\n 'key' => 'language-picker.langs.sv',\n 'value' => 'Swedish',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Swedish',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 400 => \n array (\n 'id' => 2401,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'menus',\n 'key' => 'language-picker.langs.th',\n 'value' => 'Thai',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Thai',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 401 => \n array (\n 'id' => 2402,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'menus',\n 'key' => 'language-picker.langs.tr',\n 'value' => 'Turkish',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Turkish',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 402 => \n array (\n 'id' => 2403,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'navs',\n 'key' => 'general.home',\n 'value' => 'Home',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Home',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 403 => \n array (\n 'id' => 2404,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'navs',\n 'key' => 'general.logout',\n 'value' => 'Logout',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Logout',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 404 => \n array (\n 'id' => 2405,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'navs',\n 'key' => 'frontend.contact',\n 'value' => 'Contact',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Contact',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 405 => \n array (\n 'id' => 2406,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'navs',\n 'key' => 'frontend.dashboard',\n 'value' => 'Dashboard',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Dashboard',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 406 => \n array (\n 'id' => 2407,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'navs',\n 'key' => 'frontend.login',\n 'value' => 'Login',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Login',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 407 => \n array (\n 'id' => 2408,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'navs',\n 'key' => 'frontend.macros',\n 'value' => 'Macros',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Macros',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 408 => \n array (\n 'id' => 2409,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'navs',\n 'key' => 'frontend.register',\n 'value' => 'Register',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Register',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 409 => \n array (\n 'id' => 2410,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'navs',\n 'key' => 'frontend.user.account',\n 'value' => 'My Account',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'My Account',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 410 => \n array (\n 'id' => 2411,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'navs',\n 'key' => 'frontend.user.administration',\n 'value' => 'Administration',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Administration',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 411 => \n array (\n 'id' => 2412,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'navs',\n 'key' => 'frontend.user.change_password',\n 'value' => 'Change Password',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Change Password',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 412 => \n array (\n 'id' => 2413,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'navs',\n 'key' => 'frontend.user.my_information',\n 'value' => 'My Information',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'My Information',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 413 => \n array (\n 'id' => 2414,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'navs',\n 'key' => 'frontend.user.profile',\n 'value' => 'Profile',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Profile',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 414 => \n array (\n 'id' => 2415,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'roles',\n 'key' => 'administrator',\n 'value' => 'Administrator',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Administrator',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 415 => \n array (\n 'id' => 2416,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'roles',\n 'key' => 'user',\n 'value' => 'User',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'User',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 416 => \n array (\n 'id' => 2417,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'strings',\n 'key' => 'backend.access.users.delete_user_confirm',\n 'value' => 'Are you sure you want to delete this user permanently? Anywhere in the application that references this user\\'s id will most likely error. Proceed at your own risk. This can not be un-done.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Are you sure you want to delete this user permanently? Anywhere in the application that references this user\\'s id will most likely error. Proceed at your own risk. This can not be un-done.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 417 => \n array (\n 'id' => 2418,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'strings',\n 'key' => 'backend.access.users.if_confirmed_off',\n 'value' => '(If confirmed is off)',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => '(If confirmed is off)',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 418 => \n array (\n 'id' => 2419,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'strings',\n 'key' => 'backend.access.users.restore_user_confirm',\n 'value' => 'Restore this user to its original state?',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Restore this user to its original state?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 419 => \n array (\n 'id' => 2420,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'strings',\n 'key' => 'backend.dashboard.title',\n 'value' => 'Administrative Dashboard',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Administrative Dashboard',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 420 => \n array (\n 'id' => 2421,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'strings',\n 'key' => 'backend.dashboard.welcome',\n 'value' => 'Welcome',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Welcome',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 421 => \n array (\n 'id' => 2422,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'strings',\n 'key' => 'backend.general.all_rights_reserved',\n 'value' => 'All Rights Reserved.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'All Rights Reserved.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 422 => \n array (\n 'id' => 2423,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'strings',\n 'key' => 'backend.general.are_you_sure',\n 'value' => 'Are you sure you want to do this?',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Are you sure you want to do this?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 423 => \n array (\n 'id' => 2424,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'strings',\n 'key' => 'backend.general.boilerplate_link',\n 'value' => 'Laravel 5 Boilerplate',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Laravel 5 Boilerplate',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 424 => \n array (\n 'id' => 2425,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'strings',\n 'key' => 'backend.general.continue',\n 'value' => 'Continue',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Continue',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 425 => \n array (\n 'id' => 2426,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'strings',\n 'key' => 'backend.general.member_since',\n 'value' => 'Member since',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Member since',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 426 => \n array (\n 'id' => 2427,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'strings',\n 'key' => 'backend.general.minutes',\n 'value' => ' minutes',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => ' minutes',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 427 => \n array (\n 'id' => 2428,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'strings',\n 'key' => 'backend.general.search_placeholder',\n 'value' => 'Search...',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Search...',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 428 => \n array (\n 'id' => 2429,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'strings',\n 'key' => 'backend.general.timeout',\n 'value' => 'You were automatically logged out for security reasons since you had no activity in ',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'You were automatically logged out for security reasons since you had no activity in ',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 429 => \n array (\n 'id' => 2430,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'strings',\n 'key' => 'backend.general.see_all.messages',\n 'value' => 'See all messages',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'See all messages',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 430 => \n array (\n 'id' => 2431,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'strings',\n 'key' => 'backend.general.see_all.notifications',\n 'value' => 'View all',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'View all',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 431 => \n array (\n 'id' => 2432,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'strings',\n 'key' => 'backend.general.see_all.tasks',\n 'value' => 'View all tasks',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'View all tasks',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 432 => \n array (\n 'id' => 2433,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'strings',\n 'key' => 'backend.general.status.online',\n 'value' => 'Online',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Online',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 433 => \n array (\n 'id' => 2434,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'strings',\n 'key' => 'backend.general.status.offline',\n 'value' => 'Offline',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Offline',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 434 => \n array (\n 'id' => 2435,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'strings',\n 'key' => 'backend.general.you_have.messages',\n 'value' => '{0} You don\\'t have messages|{1} You have 1 message|[2,Inf] You have :number messages',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => '{0} You don\\'t have messages|{1} You have 1 message|[2,Inf] You have :number messages',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 435 => \n array (\n 'id' => 2436,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'strings',\n 'key' => 'backend.general.you_have.notifications',\n 'value' => '{0} You don\\'t have notifications|{1} You have 1 notification|[2,Inf] You have :number notifications',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => '{0} You don\\'t have notifications|{1} You have 1 notification|[2,Inf] You have :number notifications',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 436 => \n array (\n 'id' => 2437,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'strings',\n 'key' => 'backend.general.you_have.tasks',\n 'value' => '{0} You don\\'t have tasks|{1} You have 1 task|[2,Inf] You have :number tasks',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => '{0} You don\\'t have tasks|{1} You have 1 task|[2,Inf] You have :number tasks',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 437 => \n array (\n 'id' => 2438,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'strings',\n 'key' => 'backend.search.empty',\n 'value' => 'Please enter a search term.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Please enter a search term.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 438 => \n array (\n 'id' => 2439,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'strings',\n 'key' => 'backend.search.incomplete',\n 'value' => 'You must write your own search logic for this system.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'You must write your own search logic for this system.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 439 => \n array (\n 'id' => 2440,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'strings',\n 'key' => 'backend.search.title',\n 'value' => 'Search Results',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Search Results',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 440 => \n array (\n 'id' => 2441,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'strings',\n 'key' => 'backend.search.results',\n 'value' => 'Search Results for :query',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Search Results for :query',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 441 => \n array (\n 'id' => 2442,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'strings',\n 'key' => 'backend.welcome',\n 'value' => '<p>This is the foodsharing Admin Panel!</p><p>Have Fun!</p>',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => '<p>This is the foodsharing Admin Panel!</p><p>Have Fun!</p>',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 442 => \n array (\n 'id' => 2443,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'strings',\n 'key' => 'emails.auth.account_confirmed',\n 'value' => 'Your account has been confirmed.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Your account has been confirmed.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 443 => \n array (\n 'id' => 2444,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'strings',\n 'key' => 'emails.auth.error',\n 'value' => 'Whoops!',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Whoops!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 444 => \n array (\n 'id' => 2445,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'strings',\n 'key' => 'emails.auth.greeting',\n 'value' => 'Hello!',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Hello!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 445 => \n array (\n 'id' => 2446,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'strings',\n 'key' => 'emails.auth.regards',\n 'value' => 'Regards,',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Regards,',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 446 => \n array (\n 'id' => 2447,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'strings',\n 'key' => 'emails.auth.trouble_clicking_button',\n 'value' => 'If you’re having trouble clicking the \":action_text\" button, copy and paste the URL below into your web browser:',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'If you’re having trouble clicking the \":action_text\" button, copy and paste the URL below into your web browser:',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 447 => \n array (\n 'id' => 2448,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'strings',\n 'key' => 'emails.auth.thank_you_for_using_app',\n 'value' => 'Thank you for using our application!',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Thank you for using our application!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 448 => \n array (\n 'id' => 2449,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'strings',\n 'key' => 'emails.auth.password_reset_subject',\n 'value' => 'Reset Password',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Reset Password',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 449 => \n array (\n 'id' => 2450,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'strings',\n 'key' => 'emails.auth.password_cause_of_email',\n 'value' => 'You are receiving this email because we received a password reset request for your account.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'You are receiving this email because we received a password reset request for your account.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 450 => \n array (\n 'id' => 2451,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'strings',\n 'key' => 'emails.auth.password_if_not_requested',\n 'value' => 'If you did not request a password reset, no further action is required.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'If you did not request a password reset, no further action is required.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 451 => \n array (\n 'id' => 2452,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'strings',\n 'key' => 'emails.auth.reset_password',\n 'value' => 'Click here to reset your password',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Click here to reset your password',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 452 => \n array (\n 'id' => 2453,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'strings',\n 'key' => 'emails.auth.click_to_confirm',\n 'value' => 'Click here to confirm your account:',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Click here to confirm your account:',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 453 => \n array (\n 'id' => 2454,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'strings',\n 'key' => 'emails.contact.email_body_title',\n 'value' => 'You have a new contact form request: Below are the details:',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'You have a new contact form request: Below are the details:',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 454 => \n array (\n 'id' => 2455,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'strings',\n 'key' => 'emails.contact.subject',\n 'value' => 'A new :app_name contact form submission!',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'A new :app_name contact form submission!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 455 => \n array (\n 'id' => 2456,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'strings',\n 'key' => 'frontend.test',\n 'value' => 'Test',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Test',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 456 => \n array (\n 'id' => 2457,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'strings',\n 'key' => 'frontend.tests.based_on.permission',\n 'value' => 'Permission Based - ',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Permission Based - ',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 457 => \n array (\n 'id' => 2458,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'strings',\n 'key' => 'frontend.tests.based_on.role',\n 'value' => 'Role Based - ',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Role Based - ',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 458 => \n array (\n 'id' => 2459,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'strings',\n 'key' => 'frontend.tests.js_injected_from_controller',\n 'value' => 'Javascript Injected from a Controller',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Javascript Injected from a Controller',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 459 => \n array (\n 'id' => 2460,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'strings',\n 'key' => 'frontend.tests.using_blade_extensions',\n 'value' => 'Using Blade Extensions',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Using Blade Extensions',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 460 => \n array (\n 'id' => 2461,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'strings',\n 'key' => 'frontend.tests.using_access_helper.array_permissions',\n 'value' => 'Using Access Helper with Array of Permission Names or ID\\'s where the user does have to possess all.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Using Access Helper with Array of Permission Names or ID\\'s where the user does have to possess all.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 461 => \n array (\n 'id' => 2462,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'strings',\n 'key' => 'frontend.tests.using_access_helper.array_permissions_not',\n 'value' => 'Using Access Helper with Array of Permission Names or ID\\'s where the user does not have to possess all.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Using Access Helper with Array of Permission Names or ID\\'s where the user does not have to possess all.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 462 => \n array (\n 'id' => 2463,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'strings',\n 'key' => 'frontend.tests.using_access_helper.array_roles',\n 'value' => 'Using Access Helper with Array of Role Names or ID\\'s where the user does have to possess all.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Using Access Helper with Array of Role Names or ID\\'s where the user does have to possess all.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 463 => \n array (\n 'id' => 2464,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'strings',\n 'key' => 'frontend.tests.using_access_helper.array_roles_not',\n 'value' => 'Using Access Helper with Array of Role Names or ID\\'s where the user does not have to possess all.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Using Access Helper with Array of Role Names or ID\\'s where the user does not have to possess all.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 464 => \n array (\n 'id' => 2465,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'strings',\n 'key' => 'frontend.tests.using_access_helper.permission_id',\n 'value' => 'Using Access Helper with Permission ID',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Using Access Helper with Permission ID',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 465 => \n array (\n 'id' => 2466,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'strings',\n 'key' => 'frontend.tests.using_access_helper.permission_name',\n 'value' => 'Using Access Helper with Permission Name',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Using Access Helper with Permission Name',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 466 => \n array (\n 'id' => 2467,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'strings',\n 'key' => 'frontend.tests.using_access_helper.role_id',\n 'value' => 'Using Access Helper with Role ID',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Using Access Helper with Role ID',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 467 => \n array (\n 'id' => 2468,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'strings',\n 'key' => 'frontend.tests.using_access_helper.role_name',\n 'value' => 'Using Access Helper with Role Name',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Using Access Helper with Role Name',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 468 => \n array (\n 'id' => 2469,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'strings',\n 'key' => 'frontend.tests.view_console_it_works',\n 'value' => 'View console, you should see \\'it works!\\' which is coming from FrontendController@index',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'View console, you should see \\'it works!\\' which is coming from FrontendController@index',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 469 => \n array (\n 'id' => 2470,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'strings',\n 'key' => 'frontend.tests.you_can_see_because',\n 'value' => 'You can see this because you have the role of \\':role\\'!',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'You can see this because you have the role of \\':role\\'!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 470 => \n array (\n 'id' => 2471,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'strings',\n 'key' => 'frontend.tests.you_can_see_because_permission',\n 'value' => 'You can see this because you have the permission of \\':permission\\'!',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'You can see this because you have the permission of \\':permission\\'!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 471 => \n array (\n 'id' => 2472,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'strings',\n 'key' => 'frontend.general.joined',\n 'value' => 'Joined',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Joined',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 472 => \n array (\n 'id' => 2473,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'strings',\n 'key' => 'frontend.user.change_email_notice',\n 'value' => 'If you change your e-mail you will be logged out until you confirm your new e-mail address.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'If you change your e-mail you will be logged out until you confirm your new e-mail address.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 473 => \n array (\n 'id' => 2474,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'strings',\n 'key' => 'frontend.user.email_changed_notice',\n 'value' => 'You must confirm your new e-mail address before you can log in again.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'You must confirm your new e-mail address before you can log in again.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 474 => \n array (\n 'id' => 2475,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'strings',\n 'key' => 'frontend.user.profile_updated',\n 'value' => 'Profile successfully updated.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Profile successfully updated.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 475 => \n array (\n 'id' => 2476,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'strings',\n 'key' => 'frontend.user.password_updated',\n 'value' => 'Password successfully updated.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Password successfully updated.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 476 => \n array (\n 'id' => 2477,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'strings',\n 'key' => 'frontend.welcome_to',\n 'value' => 'Welcome to :place',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Welcome to :place',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 477 => \n array (\n 'id' => 2478,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'attributes.backend.access.permissions.associated_roles',\n 'value' => 'Associated Roles',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Associated Roles',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 478 => \n array (\n 'id' => 2479,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'attributes.backend.access.permissions.dependencies',\n 'value' => 'Dependencies',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Dependencies',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 479 => \n array (\n 'id' => 2480,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'attributes.backend.access.permissions.display_name',\n 'value' => 'Display Name',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Display Name',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 480 => \n array (\n 'id' => 2481,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'attributes.backend.access.permissions.group',\n 'value' => 'Group',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Group',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 481 => \n array (\n 'id' => 2482,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'attributes.backend.access.permissions.group_sort',\n 'value' => 'Group Sort',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Group Sort',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 482 => \n array (\n 'id' => 2483,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'attributes.backend.access.permissions.groups.name',\n 'value' => 'Group Name',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Group Name',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 483 => \n array (\n 'id' => 2484,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'attributes.backend.access.permissions.name',\n 'value' => 'Name',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Name',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 484 => \n array (\n 'id' => 2485,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'attributes.backend.access.permissions.first_name',\n 'value' => 'First Name',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'First Name',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 485 => \n array (\n 'id' => 2486,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'attributes.backend.access.permissions.last_name',\n 'value' => 'Last Name',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Last Name',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 486 => \n array (\n 'id' => 2487,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'attributes.backend.access.permissions.system',\n 'value' => 'System',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'System',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 487 => \n array (\n 'id' => 2488,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'attributes.backend.access.roles.associated_permissions',\n 'value' => 'Associated Permissions',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Associated Permissions',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 488 => \n array (\n 'id' => 2489,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'attributes.backend.access.roles.name',\n 'value' => 'Name',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Name',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 489 => \n array (\n 'id' => 2490,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'attributes.backend.access.roles.sort',\n 'value' => 'Sort',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Sort',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 490 => \n array (\n 'id' => 2491,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'attributes.backend.access.users.active',\n 'value' => 'Active',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Active',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 491 => \n array (\n 'id' => 2492,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'attributes.backend.access.users.associated_roles',\n 'value' => 'Associated Roles',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Associated Roles',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 492 => \n array (\n 'id' => 2493,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'attributes.backend.access.users.confirmed',\n 'value' => 'Confirmed',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Confirmed',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 493 => \n array (\n 'id' => 2494,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'attributes.backend.access.users.email',\n 'value' => 'E-mail Address',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'E-mail Address',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 494 => \n array (\n 'id' => 2495,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'attributes.backend.access.users.name',\n 'value' => 'Name',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Name',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 495 => \n array (\n 'id' => 2496,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'attributes.backend.access.users.last_name',\n 'value' => 'Last Name',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Last Name',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 496 => \n array (\n 'id' => 2497,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'attributes.backend.access.users.first_name',\n 'value' => 'First Name',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'First Name',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 497 => \n array (\n 'id' => 2498,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'attributes.backend.access.users.other_permissions',\n 'value' => 'Other Permissions',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Other Permissions',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 498 => \n array (\n 'id' => 2499,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'attributes.backend.access.users.password',\n 'value' => 'Password',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Password',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 499 => \n array (\n 'id' => 2500,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'attributes.backend.access.users.password_confirmation',\n 'value' => 'Password Confirmation',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Password Confirmation',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n ));\n \\DB::table('translations')->insert(array (\n 0 => \n array (\n 'id' => 2501,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'attributes.backend.access.users.send_confirmation_email',\n 'value' => 'Send Confirmation E-mail',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Send Confirmation E-mail',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 1 => \n array (\n 'id' => 2502,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'attributes.frontend.email',\n 'value' => 'E-mail Address',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'E-mail Address',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 2 => \n array (\n 'id' => 2503,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'attributes.frontend.first_name',\n 'value' => 'First Name',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'First Name',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 3 => \n array (\n 'id' => 2504,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'attributes.frontend.last_name',\n 'value' => 'Last Name',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Last Name',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 4 => \n array (\n 'id' => 2505,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'attributes.frontend.name',\n 'value' => 'Full Name',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Full Name',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 5 => \n array (\n 'id' => 2506,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'attributes.frontend.password',\n 'value' => 'Password',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Password',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 6 => \n array (\n 'id' => 2507,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'attributes.frontend.password_confirmation',\n 'value' => 'Password Confirmation',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Password Confirmation',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 7 => \n array (\n 'id' => 2508,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'attributes.frontend.phone',\n 'value' => 'Phone',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Phone',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 8 => \n array (\n 'id' => 2509,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'attributes.frontend.message',\n 'value' => 'Message',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Message',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 9 => \n array (\n 'id' => 2510,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'attributes.frontend.new_password',\n 'value' => 'New Password',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'New Password',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 10 => \n array (\n 'id' => 2511,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'attributes.frontend.new_password_confirmation',\n 'value' => 'New Password Confirmation',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'New Password Confirmation',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 11 => \n array (\n 'id' => 2512,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'validation',\n 'key' => 'attributes.frontend.old_password',\n 'value' => 'Old Password',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Old Password',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 12 => \n array (\n 'id' => 2513,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'alerts',\n 'key' => 'backend.roles.created',\n 'value' => 'Rolle erstellt.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Rolle erstellt.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 13 => \n array (\n 'id' => 2514,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'alerts',\n 'key' => 'backend.roles.deleted',\n 'value' => 'Rolle gelöscht.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Rolle gelöscht.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 14 => \n array (\n 'id' => 2515,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'alerts',\n 'key' => 'backend.roles.updated',\n 'value' => 'Rolle aktualisiert.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Rolle aktualisiert.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 15 => \n array (\n 'id' => 2516,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'alerts',\n 'key' => 'backend.users.cant_resend_confirmation',\n 'value' => 'The application is currently set to manually approve users.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'The application is currently set to manually approve users.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 16 => \n array (\n 'id' => 2517,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'alerts',\n 'key' => 'backend.users.confirmation_email',\n 'value' => 'Eine Aktivierungsmail wurde an die angegebene E-Mailadresse gesendet.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Eine Aktivierungsmail wurde an die angegebene E-Mailadresse gesendet.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 17 => \n array (\n 'id' => 2518,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'alerts',\n 'key' => 'backend.users.confirmed',\n 'value' => 'The user was successfully confirmed.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'The user was successfully confirmed.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 18 => \n array (\n 'id' => 2519,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'alerts',\n 'key' => 'backend.users.created',\n 'value' => 'Benutzer erstellt.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Benutzer erstellt.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 19 => \n array (\n 'id' => 2520,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'alerts',\n 'key' => 'backend.users.deleted',\n 'value' => 'Benutzer gelöscht.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Benutzer gelöscht.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 20 => \n array (\n 'id' => 2521,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'alerts',\n 'key' => 'backend.users.deleted_permanently',\n 'value' => 'Benutzer permanent gelöscht.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Benutzer permanent gelöscht.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 21 => \n array (\n 'id' => 2522,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'alerts',\n 'key' => 'backend.users.restored',\n 'value' => 'Benutzer wiederhergestellt.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Benutzer wiederhergestellt.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 22 => \n array (\n 'id' => 2523,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'alerts',\n 'key' => 'backend.users.session_cleared',\n 'value' => 'The user\\'s session was successfully cleared.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'The user\\'s session was successfully cleared.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 23 => \n array (\n 'id' => 2524,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'alerts',\n 'key' => 'backend.users.social_deleted',\n 'value' => 'Social Account Successfully Removed',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Social Account Successfully Removed',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 24 => \n array (\n 'id' => 2525,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'alerts',\n 'key' => 'backend.users.unconfirmed',\n 'value' => 'The user was successfully un-confirmed',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'The user was successfully un-confirmed',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 25 => \n array (\n 'id' => 2526,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'alerts',\n 'key' => 'backend.users.updated',\n 'value' => 'Benutzer aktualisiert.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Benutzer aktualisiert.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 26 => \n array (\n 'id' => 2527,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'alerts',\n 'key' => 'backend.users.updated_password',\n 'value' => 'Kennwort des Benutzers aktualisiert.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Kennwort des Benutzers aktualisiert.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 27 => \n array (\n 'id' => 2528,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'alerts',\n 'key' => 'frontend.contact.sent',\n 'value' => 'Your information was successfully sent. We will respond back to the e-mail provided as soon as we can.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Your information was successfully sent. We will respond back to the e-mail provided as soon as we can.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 28 => \n array (\n 'id' => 2529,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'auth',\n 'key' => 'general_error',\n 'value' => 'Du hast keine Berechtigung um dies zu machen.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Du hast keine Berechtigung um dies zu machen.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 29 => \n array (\n 'id' => 2530,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'auth',\n 'key' => 'socialite.unacceptable',\n 'value' => ':provider ist kein akzeptierter Anmeldetyp.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => ':provider ist kein akzeptierter Anmeldetyp.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 30 => \n array (\n 'id' => 2531,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'auth',\n 'key' => 'unknown',\n 'value' => 'Ein unbekannter Fehler ist aufgetreten',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Ein unbekannter Fehler ist aufgetreten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 31 => \n array (\n 'id' => 2532,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'buttons',\n 'key' => 'backend.access.users.activate',\n 'value' => 'Aktivieren',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Aktivieren',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 32 => \n array (\n 'id' => 2533,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'buttons',\n 'key' => 'backend.access.users.change_password',\n 'value' => 'Kennwort Ändern',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Kennwort Ändern',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 33 => \n array (\n 'id' => 2534,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'buttons',\n 'key' => 'backend.access.users.clear_session',\n 'value' => 'Clear Session',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Clear Session',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 34 => \n array (\n 'id' => 2535,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'buttons',\n 'key' => 'backend.access.users.confirm',\n 'value' => 'Confirm',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Confirm',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 35 => \n array (\n 'id' => 2536,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'buttons',\n 'key' => 'backend.access.users.deactivate',\n 'value' => 'Deaktivieren',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Deaktivieren',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 36 => \n array (\n 'id' => 2537,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'buttons',\n 'key' => 'backend.access.users.delete_permanently',\n 'value' => 'Permanent löschen',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Permanent löschen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 37 => \n array (\n 'id' => 2538,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'buttons',\n 'key' => 'backend.access.users.login_as',\n 'value' => 'Anmelden als :user',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Anmelden als :user',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 38 => \n array (\n 'id' => 2539,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'buttons',\n 'key' => 'backend.access.users.resend_email',\n 'value' => 'Aktivierungsmail erneut senden',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Aktivierungsmail erneut senden',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 39 => \n array (\n 'id' => 2540,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'buttons',\n 'key' => 'backend.access.users.restore_user',\n 'value' => 'Benutzer wiederherstellen',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Benutzer wiederherstellen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 40 => \n array (\n 'id' => 2541,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'buttons',\n 'key' => 'backend.access.users.unconfirm',\n 'value' => 'Un-confirm',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Un-confirm',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 41 => \n array (\n 'id' => 2542,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'buttons',\n 'key' => 'backend.access.users.unlink',\n 'value' => 'Unlink',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Unlink',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 42 => \n array (\n 'id' => 2543,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'buttons',\n 'key' => 'emails.auth.confirm_account',\n 'value' => 'Konto bestätigen',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Konto bestätigen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 43 => \n array (\n 'id' => 2544,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'buttons',\n 'key' => 'emails.auth.reset_password',\n 'value' => 'Kennwort zurücksetzen',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Kennwort zurücksetzen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 44 => \n array (\n 'id' => 2545,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'buttons',\n 'key' => 'general.cancel',\n 'value' => 'Abbrechen',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Abbrechen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 45 => \n array (\n 'id' => 2546,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'buttons',\n 'key' => 'general.continue',\n 'value' => 'Fortsetzen',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Fortsetzen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 46 => \n array (\n 'id' => 2547,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'buttons',\n 'key' => 'general.crud.create',\n 'value' => 'Erstellen',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Erstellen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 47 => \n array (\n 'id' => 2548,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'buttons',\n 'key' => 'general.crud.delete',\n 'value' => 'Löschen',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Löschen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 48 => \n array (\n 'id' => 2549,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'buttons',\n 'key' => 'general.crud.edit',\n 'value' => 'Bearbeiten',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Bearbeiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 49 => \n array (\n 'id' => 2550,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'buttons',\n 'key' => 'general.crud.update',\n 'value' => 'Aktualisieren',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Aktualisieren',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 50 => \n array (\n 'id' => 2551,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'buttons',\n 'key' => 'general.crud.view',\n 'value' => 'Anzeigen',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Anzeigen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 51 => \n array (\n 'id' => 2552,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'buttons',\n 'key' => 'general.save',\n 'value' => 'Speichern',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Speichern',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 52 => \n array (\n 'id' => 2553,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'buttons',\n 'key' => 'general.view',\n 'value' => 'Anzeigen',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Anzeigen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 53 => \n array (\n 'id' => 2554,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'exceptions',\n 'key' => 'backend.access.roles.already_exists',\n 'value' => 'Diese Rolle existert schon. Bitte wähle einen anderen Namen.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Diese Rolle existert schon. Bitte wähle einen anderen Namen.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 54 => \n array (\n 'id' => 2555,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'exceptions',\n 'key' => 'backend.access.roles.cant_delete_admin',\n 'value' => 'Du kannst die Administrator-Rolle nicht löschen.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Du kannst die Administrator-Rolle nicht löschen.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 55 => \n array (\n 'id' => 2556,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'exceptions',\n 'key' => 'backend.access.roles.create_error',\n 'value' => 'Beim Erstellen der Rolle ist ein Fehler aufgetreten. Bitte versuche es erneut.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Beim Erstellen der Rolle ist ein Fehler aufgetreten. Bitte versuche es erneut.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 56 => \n array (\n 'id' => 2557,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'exceptions',\n 'key' => 'backend.access.roles.delete_error',\n 'value' => 'Beim Löschen der Rolle ist ein Fehler aufgetrten. Bitte versuche es erneut.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Beim Löschen der Rolle ist ein Fehler aufgetrten. Bitte versuche es erneut.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 57 => \n array (\n 'id' => 2558,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'exceptions',\n 'key' => 'backend.access.roles.has_users',\n 'value' => 'Eine Rolle mit zugeordneten Benutzern kann nicht gelöscht werden.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Eine Rolle mit zugeordneten Benutzern kann nicht gelöscht werden.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 58 => \n array (\n 'id' => 2559,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'exceptions',\n 'key' => 'backend.access.roles.needs_permission',\n 'value' => 'Für diese Rolle muss mind. eine Berechtigung ausgewählt sein.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Für diese Rolle muss mind. eine Berechtigung ausgewählt sein.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 59 => \n array (\n 'id' => 2560,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'exceptions',\n 'key' => 'backend.access.roles.not_found',\n 'value' => 'Diese Rolle existiert nicht.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Diese Rolle existiert nicht.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 60 => \n array (\n 'id' => 2561,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'exceptions',\n 'key' => 'backend.access.roles.update_error',\n 'value' => 'Beim Aktualisieren der Rolle ist ein Fehler aufgetreten. Bitte versuche es erneut.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Beim Aktualisieren der Rolle ist ein Fehler aufgetreten. Bitte versuche es erneut.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 61 => \n array (\n 'id' => 2562,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'exceptions',\n 'key' => 'backend.access.users.already_confirmed',\n 'value' => 'This user is already confirmed.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'This user is already confirmed.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 62 => \n array (\n 'id' => 2563,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'exceptions',\n 'key' => 'backend.access.users.cant_confirm',\n 'value' => 'There was a problem confirming the user account.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'There was a problem confirming the user account.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 63 => \n array (\n 'id' => 2564,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'exceptions',\n 'key' => 'backend.access.users.cant_deactivate_self',\n 'value' => 'Du kannst das nicht mit dir selber machen.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Du kannst das nicht mit dir selber machen.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 64 => \n array (\n 'id' => 2565,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'exceptions',\n 'key' => 'backend.access.users.cant_delete_admin',\n 'value' => 'Du kannst den Haupt-Administrator nicht löschen.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Du kannst den Haupt-Administrator nicht löschen.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 65 => \n array (\n 'id' => 2566,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'exceptions',\n 'key' => 'backend.access.users.cant_delete_self',\n 'value' => 'Du kannst dich nicht selbst löschen.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Du kannst dich nicht selbst löschen.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 66 => \n array (\n 'id' => 2567,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'exceptions',\n 'key' => 'backend.access.users.cant_delete_own_session',\n 'value' => 'Du kannst nicht deine eigene Sitzung löschen.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Du kannst nicht deine eigene Sitzung löschen.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 67 => \n array (\n 'id' => 2568,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'exceptions',\n 'key' => 'backend.access.users.cant_restore',\n 'value' => 'Dieser Benutzer wurde nicht gelöscht und kann daher nicht wiederhergestellt werden.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Dieser Benutzer wurde nicht gelöscht und kann daher nicht wiederhergestellt werden.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 68 => \n array (\n 'id' => 2569,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'exceptions',\n 'key' => 'backend.access.users.cant_unconfirm_admin',\n 'value' => 'You can not un-confirm the super administrator.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'You can not un-confirm the super administrator.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 69 => \n array (\n 'id' => 2570,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'exceptions',\n 'key' => 'backend.access.users.cant_unconfirm_self',\n 'value' => 'You can not un-confirm yourself.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'You can not un-confirm yourself.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 70 => \n array (\n 'id' => 2571,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'exceptions',\n 'key' => 'backend.access.users.create_error',\n 'value' => 'Beim Erstellen des Benutzers ist ein Fehler aufgetreten. Bitte versuche es erneut.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Beim Erstellen des Benutzers ist ein Fehler aufgetreten. Bitte versuche es erneut.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 71 => \n array (\n 'id' => 2572,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'exceptions',\n 'key' => 'backend.access.users.delete_error',\n 'value' => 'Beim Löschen des Benutzers ist ein Fehler aufgetreten. Bitte versuche es erneut.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Beim Löschen des Benutzers ist ein Fehler aufgetreten. Bitte versuche es erneut.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 72 => \n array (\n 'id' => 2573,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'exceptions',\n 'key' => 'backend.access.users.delete_first',\n 'value' => 'Dieser Benutzer muß zuerst gelöscht werden bevor er endgültig entfernt werden kann.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Dieser Benutzer muß zuerst gelöscht werden bevor er endgültig entfernt werden kann.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 73 => \n array (\n 'id' => 2574,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'exceptions',\n 'key' => 'backend.access.users.email_error',\n 'value' => 'Diese E-Mailadresse ist einem anderem Benutzer zugeordnet.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Diese E-Mailadresse ist einem anderem Benutzer zugeordnet.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 74 => \n array (\n 'id' => 2575,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'exceptions',\n 'key' => 'backend.access.users.mark_error',\n 'value' => 'Beim Aktualisieren des Benutzers ist ein Fehler aufgetreten. Bitte versuche es erneut.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Beim Aktualisieren des Benutzers ist ein Fehler aufgetreten. Bitte versuche es erneut.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 75 => \n array (\n 'id' => 2576,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'exceptions',\n 'key' => 'backend.access.users.not_confirmed',\n 'value' => 'This user is not confirmed.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'This user is not confirmed.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 76 => \n array (\n 'id' => 2577,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'exceptions',\n 'key' => 'backend.access.users.not_found',\n 'value' => 'Dieser Benutzer existiert nicht.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Dieser Benutzer existiert nicht.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 77 => \n array (\n 'id' => 2578,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'exceptions',\n 'key' => 'backend.access.users.restore_error',\n 'value' => 'Beim Wiederherstelen des Benutzers ist ein Fehler aufgetreten. Bitte versuche es erneut.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Beim Wiederherstelen des Benutzers ist ein Fehler aufgetreten. Bitte versuche es erneut.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 78 => \n array (\n 'id' => 2579,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'exceptions',\n 'key' => 'backend.access.users.role_needed_create',\n 'value' => 'Du musst mind. eine Rolle auswählen.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Du musst mind. eine Rolle auswählen.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 79 => \n array (\n 'id' => 2580,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'exceptions',\n 'key' => 'backend.access.users.role_needed',\n 'value' => 'Du musst mind. eine Rolle auswählen.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Du musst mind. eine Rolle auswählen.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 80 => \n array (\n 'id' => 2581,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'exceptions',\n 'key' => 'backend.access.users.session_wrong_driver',\n 'value' => 'Your session driver must be set to database to use this feature.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Your session driver must be set to database to use this feature.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 81 => \n array (\n 'id' => 2582,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'exceptions',\n 'key' => 'backend.access.users.social_delete_error',\n 'value' => 'There was a problem removing the social account from the user.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'There was a problem removing the social account from the user.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 82 => \n array (\n 'id' => 2583,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'exceptions',\n 'key' => 'backend.access.users.update_error',\n 'value' => 'Beim Aktualisieren des Benutzers ist ein Fehler aufgetrten. Bitte versuche es erneut.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Beim Aktualisieren des Benutzers ist ein Fehler aufgetrten. Bitte versuche es erneut.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 83 => \n array (\n 'id' => 2584,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'exceptions',\n 'key' => 'backend.access.users.update_password_error',\n 'value' => 'Das Kennwort den Benutzers konnte nicht geändert werden. Bitte versuche es erneut.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Das Kennwort den Benutzers konnte nicht geändert werden. Bitte versuche es erneut.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 84 => \n array (\n 'id' => 2585,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'exceptions',\n 'key' => 'frontend.auth.confirmation.already_confirmed',\n 'value' => 'Dein Benutzerkonto wurde schon aktiviert.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Dein Benutzerkonto wurde schon aktiviert.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 85 => \n array (\n 'id' => 2586,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'exceptions',\n 'key' => 'frontend.auth.confirmation.confirm',\n 'value' => 'Benutzerkonto aktivieren!',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Benutzerkonto aktivieren!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 86 => \n array (\n 'id' => 2587,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'exceptions',\n 'key' => 'frontend.auth.confirmation.created_confirm',\n 'value' => 'Dein Benutzerkonto wurde erstellt. Wir haben dir eine Aktivierungsmail gesendet.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Dein Benutzerkonto wurde erstellt. Wir haben dir eine Aktivierungsmail gesendet.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 87 => \n array (\n 'id' => 2588,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'exceptions',\n 'key' => 'frontend.auth.confirmation.created_pending',\n 'value' => 'Your account was successfully created and is pending approval. An e-mail will be sent when your account is approved.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Your account was successfully created and is pending approval. An e-mail will be sent when your account is approved.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 88 => \n array (\n 'id' => 2589,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'exceptions',\n 'key' => 'frontend.auth.confirmation.mismatch',\n 'value' => 'Der Aktivierungscode ist nicht korrekt.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Der Aktivierungscode ist nicht korrekt.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 89 => \n array (\n 'id' => 2590,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'exceptions',\n 'key' => 'frontend.auth.confirmation.not_found',\n 'value' => 'Der Aktivierungscode existiert nicht.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Der Aktivierungscode existiert nicht.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 90 => \n array (\n 'id' => 2591,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'exceptions',\n 'key' => 'frontend.auth.confirmation.pending',\n 'value' => 'Your account is currently pending approval.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Your account is currently pending approval.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 91 => \n array (\n 'id' => 2592,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'exceptions',\n 'key' => 'frontend.auth.confirmation.resend',\n 'value' => 'Dein Benutzerkonto ist nicht aktiviert. Bitte klicke auf den Link in der Aktivierungsmail, oder <a href=\"http://foodsharing.app/refactor/account/confirm/resend/:user_id\">klicke hier</a> um die Aktivierungsmail erneut zu senden.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Dein Benutzerkonto ist nicht aktiviert. Bitte klicke auf den Link in der Aktivierungsmail, oder <a href=\"http://foodsharing.app/refactor/account/confirm/resend/:user_id\">klicke hier</a> um die Aktivierungsmail erneut zu senden.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 92 => \n array (\n 'id' => 2593,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'exceptions',\n 'key' => 'frontend.auth.confirmation.success',\n 'value' => 'Dein Benutzerkonto wurde aktiviert!',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Dein Benutzerkonto wurde aktiviert!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 93 => \n array (\n 'id' => 2594,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'exceptions',\n 'key' => 'frontend.auth.confirmation.resent',\n 'value' => 'Eine neue Aktivierungsmail wurde an die hinterlegte E-Mailadresse gesendet.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Eine neue Aktivierungsmail wurde an die hinterlegte E-Mailadresse gesendet.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 94 => \n array (\n 'id' => 2595,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'exceptions',\n 'key' => 'frontend.auth.deactivated',\n 'value' => 'Dein Benutzerkonto wurde deaktiviert.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Dein Benutzerkonto wurde deaktiviert.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 95 => \n array (\n 'id' => 2596,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'exceptions',\n 'key' => 'frontend.auth.email_taken',\n 'value' => 'Diese E-Mailadresse wird schon verwendet.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Diese E-Mailadresse wird schon verwendet.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 96 => \n array (\n 'id' => 2597,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'exceptions',\n 'key' => 'frontend.auth.password.change_mismatch',\n 'value' => 'Das ist nicht dein altes Kennwort.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Das ist nicht dein altes Kennwort.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 97 => \n array (\n 'id' => 2598,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'exceptions',\n 'key' => 'frontend.auth.password.reset_problem',\n 'value' => 'There was a problem resetting your password. Please resend the password reset email.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'There was a problem resetting your password. Please resend the password reset email.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 98 => \n array (\n 'id' => 2599,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'exceptions',\n 'key' => 'frontend.auth.registration_disabled',\n 'value' => 'Registrierung ist momentan nicht möglich.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Registrierung ist momentan nicht möglich.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 99 => \n array (\n 'id' => 2600,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'history',\n 'key' => 'backend.none',\n 'value' => 'Es gibt keinen neuesten Verlauf.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Es gibt keinen neuesten Verlauf.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 100 => \n array (\n 'id' => 2601,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'history',\n 'key' => 'backend.none_for_type',\n 'value' => 'Es gibt keinen Verlauf für diesen Typ.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Es gibt keinen Verlauf für diesen Typ.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 101 => \n array (\n 'id' => 2602,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'history',\n 'key' => 'backend.none_for_entity',\n 'value' => 'Es gibt keinen Verlauf für :entity.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Es gibt keinen Verlauf für :entity.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 102 => \n array (\n 'id' => 2603,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'history',\n 'key' => 'backend.recent_history',\n 'value' => 'Neuester Verlauf',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Neuester Verlauf',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 103 => \n array (\n 'id' => 2604,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'history',\n 'key' => 'backend.roles.created',\n 'value' => 'Rolle erstellt',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Rolle erstellt',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 104 => \n array (\n 'id' => 2605,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'history',\n 'key' => 'backend.roles.deleted',\n 'value' => 'Rolle gelöscht',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Rolle gelöscht',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 105 => \n array (\n 'id' => 2606,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'history',\n 'key' => 'backend.roles.updated',\n 'value' => 'Rolle aktualisiert',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Rolle aktualisiert',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 106 => \n array (\n 'id' => 2607,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'history',\n 'key' => 'backend.users.changed_password',\n 'value' => 'Kennwort für Benutzer geändert',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Kennwort für Benutzer geändert',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 107 => \n array (\n 'id' => 2608,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'history',\n 'key' => 'backend.users.confirmed',\n 'value' => 'confirmed user',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'confirmed user',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 108 => \n array (\n 'id' => 2609,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'history',\n 'key' => 'backend.users.created',\n 'value' => 'Benutzer erstellt',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Benutzer erstellt',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 109 => \n array (\n 'id' => 2610,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'history',\n 'key' => 'backend.users.deactivated',\n 'value' => 'Benutzer deaktiviert',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Benutzer deaktiviert',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 110 => \n array (\n 'id' => 2611,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'history',\n 'key' => 'backend.users.deleted',\n 'value' => 'Benutzer gelöscht',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Benutzer gelöscht',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 111 => \n array (\n 'id' => 2612,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'history',\n 'key' => 'backend.users.deleted_social',\n 'value' => 'deleted social account',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'deleted social account',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 112 => \n array (\n 'id' => 2613,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'history',\n 'key' => 'backend.users.permanently_deleted',\n 'value' => 'Benutzer endgültig gelöscht',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Benutzer endgültig gelöscht',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 113 => \n array (\n 'id' => 2614,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'history',\n 'key' => 'backend.users.updated',\n 'value' => 'Benutzer aktualisiert',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Benutzer aktualisiert',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 114 => \n array (\n 'id' => 2615,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'history',\n 'key' => 'backend.users.unconfirmed',\n 'value' => 'un-confirmed user',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'un-confirmed user',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 115 => \n array (\n 'id' => 2616,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'history',\n 'key' => 'backend.users.reactivated',\n 'value' => 'Benutzer wieder aktiviert',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Benutzer wieder aktiviert',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 116 => \n array (\n 'id' => 2617,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'history',\n 'key' => 'backend.users.restored',\n 'value' => 'Benutzer wiederhergestellt',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Benutzer wiederhergestellt',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 117 => \n array (\n 'id' => 2618,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'http',\n 'key' => '404.title',\n 'value' => 'Seite nicht gefunden',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Seite nicht gefunden',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 118 => \n array (\n 'id' => 2619,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'http',\n 'key' => '404.description',\n 'value' => 'Wir konnten die angegebene Seite nicht finden.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Wir konnten die angegebene Seite nicht finden.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 119 => \n array (\n 'id' => 2620,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'http',\n 'key' => '503.title',\n 'value' => 'Wir sind gleich wieder da.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Wir sind gleich wieder da.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 120 => \n array (\n 'id' => 2621,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'http',\n 'key' => '503.description',\n 'value' => 'Wir sind gleich wieder da.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Wir sind gleich wieder da.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 121 => \n array (\n 'id' => 2622,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'general.all',\n 'value' => 'Alle',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Alle',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 122 => \n array (\n 'id' => 2623,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'general.yes',\n 'value' => 'Ja',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Ja',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 123 => \n array (\n 'id' => 2624,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'general.no',\n 'value' => 'Nein',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Nein',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 124 => \n array (\n 'id' => 2625,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'general.custom',\n 'value' => 'Erweitert',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Erweitert',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 125 => \n array (\n 'id' => 2626,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'general.actions',\n 'value' => 'Aktionen',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Aktionen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 126 => \n array (\n 'id' => 2627,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'general.active',\n 'value' => 'Aktiv',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Aktiv',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 127 => \n array (\n 'id' => 2628,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'general.buttons.save',\n 'value' => 'Speichern',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Speichern',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 128 => \n array (\n 'id' => 2629,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'general.buttons.update',\n 'value' => 'Aktualisieren',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Aktualisieren',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 129 => \n array (\n 'id' => 2630,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'general.hide',\n 'value' => 'Verstecken',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Verstecken',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 130 => \n array (\n 'id' => 2631,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'general.inactive',\n 'value' => 'Inaktiv',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Inaktiv',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 131 => \n array (\n 'id' => 2632,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'general.none',\n 'value' => 'Keine',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Keine',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 132 => \n array (\n 'id' => 2633,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'general.show',\n 'value' => 'Anzeigen',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Anzeigen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 133 => \n array (\n 'id' => 2634,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'general.toggle_navigation',\n 'value' => 'Navigation umschalten',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Navigation umschalten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 134 => \n array (\n 'id' => 2635,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'backend.access.roles.create',\n 'value' => 'Rolle erstellen',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Rolle erstellen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 135 => \n array (\n 'id' => 2636,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'backend.access.roles.edit',\n 'value' => 'Rolle bearbeiten',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Rolle bearbeiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 136 => \n array (\n 'id' => 2637,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'backend.access.roles.management',\n 'value' => 'Rollen verwalten',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Rollen verwalten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 137 => \n array (\n 'id' => 2638,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'backend.access.roles.table.number_of_users',\n 'value' => 'Anzahl Benutzer',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Anzahl Benutzer',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 138 => \n array (\n 'id' => 2639,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'backend.access.roles.table.permissions',\n 'value' => 'Berechtigungen',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Berechtigungen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 139 => \n array (\n 'id' => 2640,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'backend.access.roles.table.role',\n 'value' => 'Rolle',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Rolle',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 140 => \n array (\n 'id' => 2641,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'backend.access.roles.table.sort',\n 'value' => 'Sortierung',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Sortierung',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 141 => \n array (\n 'id' => 2642,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'backend.access.roles.table.total',\n 'value' => 'Rolle|Rollen',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Rolle|Rollen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 142 => \n array (\n 'id' => 2643,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'backend.access.users.active',\n 'value' => 'Aktive Benutzer',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Aktive Benutzer',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 143 => \n array (\n 'id' => 2644,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'backend.access.users.all_permissions',\n 'value' => 'Alle Berechtigungen',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Alle Berechtigungen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 144 => \n array (\n 'id' => 2645,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'backend.access.users.change_password',\n 'value' => 'Kennwort ändern',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Kennwort ändern',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 145 => \n array (\n 'id' => 2646,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'backend.access.users.change_password_for',\n 'value' => 'Kennwort für :user ändern',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Kennwort für :user ändern',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 146 => \n array (\n 'id' => 2647,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'backend.access.users.create',\n 'value' => 'Benutzer erstellen',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Benutzer erstellen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 147 => \n array (\n 'id' => 2648,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'backend.access.users.deactivated',\n 'value' => 'Deaktivierte Benutzer',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Deaktivierte Benutzer',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 148 => \n array (\n 'id' => 2649,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'backend.access.users.deleted',\n 'value' => 'Gelöschte Benutzer',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Gelöschte Benutzer',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 149 => \n array (\n 'id' => 2650,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'backend.access.users.edit',\n 'value' => 'Benutzer bearbeiten',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Benutzer bearbeiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 150 => \n array (\n 'id' => 2651,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'backend.access.users.management',\n 'value' => 'Benutzer verwalten',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Benutzer verwalten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 151 => \n array (\n 'id' => 2652,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'backend.access.users.no_permissions',\n 'value' => 'Keine Berechtigungen',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Keine Berechtigungen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 152 => \n array (\n 'id' => 2653,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'backend.access.users.no_roles',\n 'value' => 'Keine Rollen vorhanden.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Keine Rollen vorhanden.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 153 => \n array (\n 'id' => 2654,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'backend.access.users.permissions',\n 'value' => 'Berechtigungen',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Berechtigungen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 154 => \n array (\n 'id' => 2655,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'backend.access.users.table.confirmed',\n 'value' => 'Bestätigt',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Bestätigt',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 155 => \n array (\n 'id' => 2656,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'backend.access.users.table.created',\n 'value' => 'Erstellt',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Erstellt',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 156 => \n array (\n 'id' => 2657,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'backend.access.users.table.email',\n 'value' => 'E-Mail',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'E-Mail',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 157 => \n array (\n 'id' => 2658,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'backend.access.users.table.id',\n 'value' => 'ID',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'ID',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 158 => \n array (\n 'id' => 2659,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'backend.access.users.table.last_updated',\n 'value' => 'Letzte Aktualisierung',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Letzte Aktualisierung',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 159 => \n array (\n 'id' => 2660,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'backend.access.users.table.name',\n 'value' => 'Name',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Name',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 160 => \n array (\n 'id' => 2661,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'backend.access.users.table.no_deactivated',\n 'value' => 'Keine deaktivierten Benutzer',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Keine deaktivierten Benutzer',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 161 => \n array (\n 'id' => 2662,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'backend.access.users.table.no_deleted',\n 'value' => 'Keine gelöschten Benutzer',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Keine gelöschten Benutzer',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 162 => \n array (\n 'id' => 2663,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'backend.access.users.table.roles',\n 'value' => 'Rollen',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Rollen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 163 => \n array (\n 'id' => 2664,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'backend.access.users.table.social',\n 'value' => 'Social',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Social',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 164 => \n array (\n 'id' => 2665,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'backend.access.users.table.total',\n 'value' => 'Benutzer|Benutzer',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Benutzer|Benutzer',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 165 => \n array (\n 'id' => 2666,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'backend.access.users.tabs.titles.overview',\n 'value' => 'Übersicht',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Übersicht',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 166 => \n array (\n 'id' => 2667,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'backend.access.users.tabs.titles.history',\n 'value' => 'Verlauf',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Verlauf',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 167 => \n array (\n 'id' => 2668,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'backend.access.users.tabs.content.overview.avatar',\n 'value' => 'Avatar',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Avatar',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 168 => \n array (\n 'id' => 2669,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'backend.access.users.tabs.content.overview.confirmed',\n 'value' => 'Bestätigt',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Bestätigt',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 169 => \n array (\n 'id' => 2670,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'backend.access.users.tabs.content.overview.created_at',\n 'value' => 'Erstellt am',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Erstellt am',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 170 => \n array (\n 'id' => 2671,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'backend.access.users.tabs.content.overview.deleted_at',\n 'value' => 'Gelöscht am',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Gelöscht am',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 171 => \n array (\n 'id' => 2672,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'backend.access.users.tabs.content.overview.email',\n 'value' => 'E-mail',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'E-mail',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 172 => \n array (\n 'id' => 2673,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'backend.access.users.tabs.content.overview.last_updated',\n 'value' => 'Zuletzt aktualisiert',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Zuletzt aktualisiert',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 173 => \n array (\n 'id' => 2674,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'backend.access.users.tabs.content.overview.name',\n 'value' => 'Name',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Name',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 174 => \n array (\n 'id' => 2675,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'backend.access.users.tabs.content.overview.status',\n 'value' => 'Status',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Status',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 175 => \n array (\n 'id' => 2676,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'backend.access.users.view',\n 'value' => 'Benutzer anzeigen',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Benutzer anzeigen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 176 => \n array (\n 'id' => 2677,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'frontend.auth.login_box_title',\n 'value' => 'Anmeldung',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Anmeldung',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 177 => \n array (\n 'id' => 2678,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'frontend.auth.login_button',\n 'value' => 'Anmelden',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Anmelden',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 178 => \n array (\n 'id' => 2679,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'frontend.auth.login_with',\n 'value' => 'Anmelden mit :social_media',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Anmelden mit :social_media',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 179 => \n array (\n 'id' => 2680,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'frontend.auth.register_box_title',\n 'value' => 'Registrieren',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Registrieren',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 180 => \n array (\n 'id' => 2681,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'frontend.auth.register_button',\n 'value' => 'Registrieren',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Registrieren',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 181 => \n array (\n 'id' => 2682,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'frontend.auth.remember_me',\n 'value' => 'An mich errinnern',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'An mich errinnern',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 182 => \n array (\n 'id' => 2683,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'frontend.contact.box_title',\n 'value' => 'Contact Us',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Contact Us',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 183 => \n array (\n 'id' => 2684,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'frontend.contact.button',\n 'value' => 'Send Information',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Send Information',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 184 => \n array (\n 'id' => 2685,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'frontend.passwords.forgot_password',\n 'value' => 'Kennwort vergessen?',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Kennwort vergessen?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 185 => \n array (\n 'id' => 2686,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'frontend.passwords.reset_password_box_title',\n 'value' => 'Kennwort zurücksetzen',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Kennwort zurücksetzen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 186 => \n array (\n 'id' => 2687,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'frontend.passwords.reset_password_button',\n 'value' => 'Kennwort zurücksetzen',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Kennwort zurücksetzen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 187 => \n array (\n 'id' => 2688,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'frontend.passwords.send_password_reset_link_button',\n 'value' => 'Link zum zurücksetzen des Kennworts senden',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Link zum zurücksetzen des Kennworts senden',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 188 => \n array (\n 'id' => 2689,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'frontend.macros.country.alpha',\n 'value' => 'ISO Länder-Code',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'ISO Länder-Code',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 189 => \n array (\n 'id' => 2690,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'frontend.macros.country.alpha2',\n 'value' => 'ISO Länder-Code (2 Stellig)',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'ISO Länder-Code (2 Stellig)',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 190 => \n array (\n 'id' => 2691,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'frontend.macros.country.alpha3',\n 'value' => 'ISO Länder-Code (3 Stellig)',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'ISO Länder-Code (3 Stellig)',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 191 => \n array (\n 'id' => 2692,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'frontend.macros.country.numeric',\n 'value' => 'Länder Nummern-Code',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Länder Nummern-Code',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 192 => \n array (\n 'id' => 2693,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'frontend.macros.macro_examples',\n 'value' => 'Makro Beispiele',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Makro Beispiele',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 193 => \n array (\n 'id' => 2694,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'frontend.macros.state.mexico',\n 'value' => 'Mexico Staaten Liste',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Mexico Staaten Liste',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 194 => \n array (\n 'id' => 2695,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'frontend.macros.state.us.us',\n 'value' => 'US Staaten',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'US Staaten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 195 => \n array (\n 'id' => 2696,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'frontend.macros.state.us.outlying',\n 'value' => 'US Überseeterritorien',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'US Überseeterritorien',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 196 => \n array (\n 'id' => 2697,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'frontend.macros.state.us.armed',\n 'value' => 'US-Streitkräfte',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'US-Streitkräfte',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 197 => \n array (\n 'id' => 2698,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'frontend.macros.territories.canada',\n 'value' => 'Kanada Provinzen & Territorien Liste',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Kanada Provinzen & Territorien Liste',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 198 => \n array (\n 'id' => 2699,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'frontend.macros.timezone',\n 'value' => 'Zeitzone',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Zeitzone',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 199 => \n array (\n 'id' => 2700,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'frontend.user.passwords.change',\n 'value' => 'Kennwort ändern',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Kennwort ändern',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 200 => \n array (\n 'id' => 2701,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'frontend.user.profile.avatar',\n 'value' => 'Avatar',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Avatar',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 201 => \n array (\n 'id' => 2702,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'frontend.user.profile.created_at',\n 'value' => 'Erstellt am',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Erstellt am',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 202 => \n array (\n 'id' => 2703,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'frontend.user.profile.edit_information',\n 'value' => 'Informationen bearbeiten',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Informationen bearbeiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 203 => \n array (\n 'id' => 2704,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'frontend.user.profile.email',\n 'value' => 'E-Mail',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'E-Mail',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 204 => \n array (\n 'id' => 2705,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'frontend.user.profile.last_updated',\n 'value' => 'Letzte Aktualisierung',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Letzte Aktualisierung',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 205 => \n array (\n 'id' => 2706,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'frontend.user.profile.name',\n 'value' => 'Name',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Name',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 206 => \n array (\n 'id' => 2707,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'frontend.user.profile.update_information',\n 'value' => 'Informationen aktualisieren',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Informationen aktualisieren',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 207 => \n array (\n 'id' => 2708,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'menus',\n 'key' => 'backend.access.title',\n 'value' => 'Zugriffsverwaltung',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Zugriffsverwaltung',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 208 => \n array (\n 'id' => 2709,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'menus',\n 'key' => 'backend.access.roles.all',\n 'value' => 'Alle Rollen',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Alle Rollen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 209 => \n array (\n 'id' => 2710,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'menus',\n 'key' => 'backend.access.roles.create',\n 'value' => 'Rolle erstellen',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Rolle erstellen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 210 => \n array (\n 'id' => 2711,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'menus',\n 'key' => 'backend.access.roles.edit',\n 'value' => 'Rolle bearbeiten',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Rolle bearbeiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 211 => \n array (\n 'id' => 2712,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'menus',\n 'key' => 'backend.access.roles.management',\n 'value' => 'Rollen verwalten',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Rollen verwalten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 212 => \n array (\n 'id' => 2713,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'menus',\n 'key' => 'backend.access.roles.main',\n 'value' => 'Rollen',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Rollen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 213 => \n array (\n 'id' => 2714,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'menus',\n 'key' => 'backend.access.users.all',\n 'value' => 'Alle Benutzer',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Alle Benutzer',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 214 => \n array (\n 'id' => 2715,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'menus',\n 'key' => 'backend.access.users.change-password',\n 'value' => 'Kennwort ändern',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Kennwort ändern',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 215 => \n array (\n 'id' => 2716,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'menus',\n 'key' => 'backend.access.users.create',\n 'value' => 'Benutzer erstellen',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Benutzer erstellen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 216 => \n array (\n 'id' => 2717,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'menus',\n 'key' => 'backend.access.users.deactivated',\n 'value' => 'Deaktivierte Benutzer',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Deaktivierte Benutzer',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 217 => \n array (\n 'id' => 2718,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'menus',\n 'key' => 'backend.access.users.deleted',\n 'value' => 'Gelöschte Benutzer',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Gelöschte Benutzer',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 218 => \n array (\n 'id' => 2719,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'menus',\n 'key' => 'backend.access.users.edit',\n 'value' => 'Benutzer bearbeiten',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Benutzer bearbeiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 219 => \n array (\n 'id' => 2720,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'menus',\n 'key' => 'backend.access.users.main',\n 'value' => 'Benutzer',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Benutzer',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 220 => \n array (\n 'id' => 2721,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'menus',\n 'key' => 'backend.access.users.view',\n 'value' => 'Benutzer anzeigen',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Benutzer anzeigen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 221 => \n array (\n 'id' => 2722,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'menus',\n 'key' => 'backend.log-viewer.main',\n 'value' => 'Logbuch',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Logbuch',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 222 => \n array (\n 'id' => 2723,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'menus',\n 'key' => 'backend.log-viewer.dashboard',\n 'value' => 'Dashboard',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Dashboard',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 223 => \n array (\n 'id' => 2724,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'menus',\n 'key' => 'backend.log-viewer.logs',\n 'value' => 'Logs',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Logs',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 224 => \n array (\n 'id' => 2725,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'menus',\n 'key' => 'backend.sidebar.dashboard',\n 'value' => 'Dashboard',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Dashboard',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 225 => \n array (\n 'id' => 2726,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'menus',\n 'key' => 'backend.sidebar.general',\n 'value' => 'Allgemein',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Allgemein',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 226 => \n array (\n 'id' => 2727,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'menus',\n 'key' => 'backend.sidebar.system',\n 'value' => 'System',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'System',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 227 => \n array (\n 'id' => 2728,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'menus',\n 'key' => 'language-picker.language',\n 'value' => 'Sprache',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Sprache',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 228 => \n array (\n 'id' => 2729,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'menus',\n 'key' => 'language-picker.langs.ar',\n 'value' => 'العربية (Arabic)',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'العربية (Arabic)',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 229 => \n array (\n 'id' => 2730,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'menus',\n 'key' => 'language-picker.langs.zh',\n 'value' => '(Chinese Simplified)',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => '(Chinese Simplified)',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 230 => \n array (\n 'id' => 2731,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'menus',\n 'key' => 'language-picker.langs.zh-TW',\n 'value' => '(Chinese Traditional)',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => '(Chinese Traditional)',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 231 => \n array (\n 'id' => 2732,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'menus',\n 'key' => 'language-picker.langs.da',\n 'value' => 'Dänisch (Danish)',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Dänisch (Danish)',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 232 => \n array (\n 'id' => 2733,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'menus',\n 'key' => 'language-picker.langs.de',\n 'value' => 'Deutsch (German)',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Deutsch (German)',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 233 => \n array (\n 'id' => 2734,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'menus',\n 'key' => 'language-picker.langs.el',\n 'value' => '(Greek)',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => '(Greek)',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 234 => \n array (\n 'id' => 2735,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'menus',\n 'key' => 'language-picker.langs.en',\n 'value' => 'Englisch (English)',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Englisch (English)',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 235 => \n array (\n 'id' => 2736,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'menus',\n 'key' => 'language-picker.langs.es',\n 'value' => 'Spanisch (Spanish)',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Spanisch (Spanish)',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 236 => \n array (\n 'id' => 2737,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'menus',\n 'key' => 'language-picker.langs.fr',\n 'value' => 'Französisch (French)',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Französisch (French)',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 237 => \n array (\n 'id' => 2738,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'menus',\n 'key' => 'language-picker.langs.id',\n 'value' => 'Indonesisch (Indonesian)',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Indonesisch (Indonesian)',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 238 => \n array (\n 'id' => 2739,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'menus',\n 'key' => 'language-picker.langs.it',\n 'value' => 'Italienisch (Italian)',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Italienisch (Italian)',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 239 => \n array (\n 'id' => 2740,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'menus',\n 'key' => 'language-picker.langs.ja',\n 'value' => 'Japanisch (Japanese)',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Japanisch (Japanese)',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 240 => \n array (\n 'id' => 2741,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'menus',\n 'key' => 'language-picker.langs.nl',\n 'value' => 'Niederländisch (Dutch)',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Niederländisch (Dutch)',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 241 => \n array (\n 'id' => 2742,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'menus',\n 'key' => 'language-picker.langs.pt_BR',\n 'value' => 'Brasilianisches Portugiesisch (Brazilian Portuguese)',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Brasilianisches Portugiesisch (Brazilian Portuguese)',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 242 => \n array (\n 'id' => 2743,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'menus',\n 'key' => 'language-picker.langs.ru',\n 'value' => 'Russisch (Russian)',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Russisch (Russian)',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 243 => \n array (\n 'id' => 2744,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'menus',\n 'key' => 'language-picker.langs.sv',\n 'value' => 'Schwedisch (Swedish)',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Schwedisch (Swedish)',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 244 => \n array (\n 'id' => 2745,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'menus',\n 'key' => 'language-picker.langs.th',\n 'value' => '(Thai)',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => '(Thai)',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 245 => \n array (\n 'id' => 2746,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'menus',\n 'key' => 'language-picker.langs.tr',\n 'value' => '(Turkish)',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => '(Turkish)',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 246 => \n array (\n 'id' => 2747,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'navs',\n 'key' => 'general.home',\n 'value' => 'Startseite',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Startseite',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 247 => \n array (\n 'id' => 2748,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'navs',\n 'key' => 'general.logout',\n 'value' => 'Abmelden',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Abmelden',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 248 => \n array (\n 'id' => 2749,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'navs',\n 'key' => 'frontend.contact',\n 'value' => 'Contact',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Contact',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 249 => \n array (\n 'id' => 2750,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'navs',\n 'key' => 'frontend.dashboard',\n 'value' => 'Dashboard',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Dashboard',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 250 => \n array (\n 'id' => 2751,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'navs',\n 'key' => 'frontend.login',\n 'value' => 'Anmelden',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Anmelden',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 251 => \n array (\n 'id' => 2752,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'navs',\n 'key' => 'frontend.macros',\n 'value' => 'Makros',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Makros',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 252 => \n array (\n 'id' => 2753,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'navs',\n 'key' => 'frontend.register',\n 'value' => 'Registrieren',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Registrieren',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 253 => \n array (\n 'id' => 2754,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'navs',\n 'key' => 'frontend.user.account',\n 'value' => 'Mein Konto',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Mein Konto',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 254 => \n array (\n 'id' => 2755,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'navs',\n 'key' => 'frontend.user.administration',\n 'value' => 'Administration',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Administration',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 255 => \n array (\n 'id' => 2756,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'navs',\n 'key' => 'frontend.user.change_password',\n 'value' => 'Kennwort ändern',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Kennwort ändern',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 256 => \n array (\n 'id' => 2757,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'navs',\n 'key' => 'frontend.user.my_information',\n 'value' => 'Meine Informationen',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Meine Informationen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 257 => \n array (\n 'id' => 2758,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'navs',\n 'key' => 'frontend.user.profile',\n 'value' => 'Profile',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Profile',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 258 => \n array (\n 'id' => 2759,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'roles',\n 'key' => 'administrator',\n 'value' => 'Administrator',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Administrator',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 259 => \n array (\n 'id' => 2760,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'roles',\n 'key' => 'user',\n 'value' => 'Benutzer',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Benutzer',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 260 => \n array (\n 'id' => 2761,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'strings',\n 'key' => 'backend.access.users.delete_user_confirm',\n 'value' => 'Bist du dir sicher, dass du diesen Benutzer permanent löschen möchtest? Überall wo die Benutzer-ID referenziert ist, wird es höchstwahrscheinlich zu Fehlern kommen. Fortfahren auf eigenes Risiko. Dies kann nicht rückgängig gemacht werden.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Bist du dir sicher, dass du diesen Benutzer permanent löschen möchtest? Überall wo die Benutzer-ID referenziert ist, wird es höchstwahrscheinlich zu Fehlern kommen. Fortfahren auf eigenes Risiko. Dies kann nicht rückgängig gemacht werden.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 261 => \n array (\n 'id' => 2762,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'strings',\n 'key' => 'backend.access.users.if_confirmed_off',\n 'value' => '(Wenn nicht bestätigt)',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => '(Wenn nicht bestätigt)',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 262 => \n array (\n 'id' => 2763,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'strings',\n 'key' => 'backend.access.users.restore_user_confirm',\n 'value' => 'Benutzer in den Originalzustand wiederherstellen?',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Benutzer in den Originalzustand wiederherstellen?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 263 => \n array (\n 'id' => 2764,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'strings',\n 'key' => 'backend.dashboard.title',\n 'value' => 'Administratives Dashboard',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Administratives Dashboard',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 264 => \n array (\n 'id' => 2765,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'strings',\n 'key' => 'backend.dashboard.welcome',\n 'value' => 'Willkommen',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Willkommen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 265 => \n array (\n 'id' => 2766,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'strings',\n 'key' => 'backend.general.all_rights_reserved',\n 'value' => 'Alle Rechte vorbehalten.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Alle Rechte vorbehalten.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 266 => \n array (\n 'id' => 2767,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'strings',\n 'key' => 'backend.general.are_you_sure',\n 'value' => 'Bist du dir sicher?',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Bist du dir sicher?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 267 => \n array (\n 'id' => 2768,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'strings',\n 'key' => 'backend.general.boilerplate_link',\n 'value' => 'Laravel 5 Boilerplate',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Laravel 5 Boilerplate',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 268 => \n array (\n 'id' => 2769,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'strings',\n 'key' => 'backend.general.continue',\n 'value' => 'Fortsetzen',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Fortsetzen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 269 => \n array (\n 'id' => 2770,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'strings',\n 'key' => 'backend.general.member_since',\n 'value' => 'Mitglied seit',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Mitglied seit',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 270 => \n array (\n 'id' => 2771,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'strings',\n 'key' => 'backend.general.minutes',\n 'value' => ' Minuten',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => ' Minuten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 271 => \n array (\n 'id' => 2772,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'strings',\n 'key' => 'backend.general.search_placeholder',\n 'value' => 'Suchen...',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Suchen...',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 272 => \n array (\n 'id' => 2773,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'strings',\n 'key' => 'backend.general.timeout',\n 'value' => 'Du wurdest aus Sicherheitsgründen automatisch abgemeldet weil du inaktiv warst seit ',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Du wurdest aus Sicherheitsgründen automatisch abgemeldet weil du inaktiv warst seit ',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 273 => \n array (\n 'id' => 2774,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'strings',\n 'key' => 'backend.general.see_all.messages',\n 'value' => 'Alle Nachrichten anzeigen',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Alle Nachrichten anzeigen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 274 => \n array (\n 'id' => 2775,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'strings',\n 'key' => 'backend.general.see_all.notifications',\n 'value' => 'Alle anzeigen',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Alle anzeigen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 275 => \n array (\n 'id' => 2776,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'strings',\n 'key' => 'backend.general.see_all.tasks',\n 'value' => 'Alle Aufgaben anzeigen',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Alle Aufgaben anzeigen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 276 => \n array (\n 'id' => 2777,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'strings',\n 'key' => 'backend.general.status.online',\n 'value' => 'Angemeldet',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Angemeldet',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 277 => \n array (\n 'id' => 2778,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'strings',\n 'key' => 'backend.general.status.offline',\n 'value' => 'Abgemeldet',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Abgemeldet',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 278 => \n array (\n 'id' => 2779,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'strings',\n 'key' => 'backend.general.you_have.messages',\n 'value' => '{0} Du hast keine Nachrichten|{1} Du hast 1 Nachricht|[2,Inf] Du hast :number Nachrichten',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => '{0} Du hast keine Nachrichten|{1} Du hast 1 Nachricht|[2,Inf] Du hast :number Nachrichten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 279 => \n array (\n 'id' => 2780,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'strings',\n 'key' => 'backend.general.you_have.notifications',\n 'value' => '{0} Du hast keine Benachrichtigungen|{1} Du hast 1 Benachrichtigung|[2,Inf] Du hast :number Benachrichtigungen',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => '{0} Du hast keine Benachrichtigungen|{1} Du hast 1 Benachrichtigung|[2,Inf] Du hast :number Benachrichtigungen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 280 => \n array (\n 'id' => 2781,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'strings',\n 'key' => 'backend.general.you_have.tasks',\n 'value' => '{0} Du hast keine Aufgaben|{1} Du hast 1 Aufgabe|[2,Inf] Du hast :number Aufgaben',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => '{0} Du hast keine Aufgaben|{1} Du hast 1 Aufgabe|[2,Inf] Du hast :number Aufgaben',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 281 => \n array (\n 'id' => 2782,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'strings',\n 'key' => 'backend.search.empty',\n 'value' => 'Bitte gib einen Suchbegriff ein.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Bitte gib einen Suchbegriff ein.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 282 => \n array (\n 'id' => 2783,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'strings',\n 'key' => 'backend.search.incomplete',\n 'value' => 'Du musst deinen eigenen Such-Algorithmus für dieses System schreiben.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Du musst deinen eigenen Such-Algorithmus für dieses System schreiben.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 283 => \n array (\n 'id' => 2784,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'strings',\n 'key' => 'backend.search.title',\n 'value' => 'Suchergebnisse',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Suchergebnisse',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 284 => \n array (\n 'id' => 2785,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'strings',\n 'key' => 'backend.search.results',\n 'value' => 'Suchergebnisse für :query',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Suchergebnisse für :query',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 285 => \n array (\n 'id' => 2786,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'strings',\n 'key' => 'backend.welcome',\n 'value' => '<p>This is the foodsharing Admin Panel!</p>\n\n<p>Have Fun!</p>',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => '<p>This is the foodsharing Admin Panel!</p>\n\n<p>Have Fun!</p>',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 286 => \n array (\n 'id' => 2787,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'strings',\n 'key' => 'emails.auth.account_confirmed',\n 'value' => 'Your account has been confirmed.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Your account has been confirmed.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 287 => \n array (\n 'id' => 2788,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'strings',\n 'key' => 'emails.auth.error',\n 'value' => 'Hoppla!',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Hoppla!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 288 => \n array (\n 'id' => 2789,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'strings',\n 'key' => 'emails.auth.greeting',\n 'value' => 'Hallo!',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Hallo!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 289 => \n array (\n 'id' => 2790,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'strings',\n 'key' => 'emails.auth.regards',\n 'value' => 'Viele Grüße,',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Viele Grüße,',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 290 => \n array (\n 'id' => 2791,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'strings',\n 'key' => 'emails.auth.trouble_clicking_button',\n 'value' => 'Wenn du Probleme hast den \":action_text\"-Knopf zu drücken, kopiere die URL unten in deinen Web Browser:',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Wenn du Probleme hast den \":action_text\"-Knopf zu drücken, kopiere die URL unten in deinen Web Browser:',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 291 => \n array (\n 'id' => 2792,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'strings',\n 'key' => 'emails.auth.thank_you_for_using_app',\n 'value' => 'Danke, dass du diese Anwendung benutzst!',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Danke, dass du diese Anwendung benutzst!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 292 => \n array (\n 'id' => 2793,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'strings',\n 'key' => 'emails.auth.password_reset_subject',\n 'value' => 'Dein Link zum Zurücksetzen des Kennworts',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Dein Link zum Zurücksetzen des Kennworts',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 293 => \n array (\n 'id' => 2794,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'strings',\n 'key' => 'emails.auth.password_cause_of_email',\n 'value' => 'Du erhältst diese Email weil wir eine Anforderung erhalten haben, das Kennwort für dieses Konto zurückzusetzen.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Du erhältst diese Email weil wir eine Anforderung erhalten haben, das Kennwort für dieses Konto zurückzusetzen.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 294 => \n array (\n 'id' => 2795,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'strings',\n 'key' => 'emails.auth.password_if_not_requested',\n 'value' => 'Wenn du keine Zurücksetzung deines Kennworts angefordert hast, ist keine weitere Aktion erforderlich.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Wenn du keine Zurücksetzung deines Kennworts angefordert hast, ist keine weitere Aktion erforderlich.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 295 => \n array (\n 'id' => 2796,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'strings',\n 'key' => 'emails.auth.reset_password',\n 'value' => 'Klick hier, um dein Passwort zurückzusetzen',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Klick hier, um dein Passwort zurückzusetzen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 296 => \n array (\n 'id' => 2797,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'strings',\n 'key' => 'emails.auth.click_to_confirm',\n 'value' => 'Klick hier, um dein Konto zu aktivieren:',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Klick hier, um dein Konto zu aktivieren:',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 297 => \n array (\n 'id' => 2798,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'strings',\n 'key' => 'emails.contact.email_body_title',\n 'value' => 'You have a new contact form request: Below are the details:',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'You have a new contact form request: Below are the details:',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 298 => \n array (\n 'id' => 2799,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'strings',\n 'key' => 'emails.contact.subject',\n 'value' => 'A new :app_name contact form submission!',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'A new :app_name contact form submission!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 299 => \n array (\n 'id' => 2800,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'strings',\n 'key' => 'frontend.test',\n 'value' => 'Test',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Test',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 300 => \n array (\n 'id' => 2801,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'strings',\n 'key' => 'frontend.tests.based_on.permission',\n 'value' => 'Anhand von Berechtigungen - ',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Anhand von Berechtigungen - ',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 301 => \n array (\n 'id' => 2802,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'strings',\n 'key' => 'frontend.tests.based_on.role',\n 'value' => 'Anhand von Rollen - ',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Anhand von Rollen - ',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 302 => \n array (\n 'id' => 2803,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'strings',\n 'key' => 'frontend.tests.js_injected_from_controller',\n 'value' => 'Javascript von einem Controller eingefügt',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Javascript von einem Controller eingefügt',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 303 => \n array (\n 'id' => 2804,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'strings',\n 'key' => 'frontend.tests.using_blade_extensions',\n 'value' => 'Verwenden von Blade-Erweiterungen',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Verwenden von Blade-Erweiterungen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 304 => \n array (\n 'id' => 2805,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'strings',\n 'key' => 'frontend.tests.using_access_helper.array_permissions',\n 'value' => 'Verwenden von Access Helper mit Array von Berechtigungs-Namen oder ID\\'s bei der der Benutzer alle besitzen muss.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Verwenden von Access Helper mit Array von Berechtigungs-Namen oder ID\\'s bei der der Benutzer alle besitzen muss.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 305 => \n array (\n 'id' => 2806,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'strings',\n 'key' => 'frontend.tests.using_access_helper.array_permissions_not',\n 'value' => 'Verwenden von Access Helper mit Array von Berechtigungs-Namen oder ID\\'s bei der der Benutzer nicht alle besitzen muss.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Verwenden von Access Helper mit Array von Berechtigungs-Namen oder ID\\'s bei der der Benutzer nicht alle besitzen muss.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 306 => \n array (\n 'id' => 2807,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'strings',\n 'key' => 'frontend.tests.using_access_helper.array_roles',\n 'value' => 'Verwenden von Access Helper mit Array von Rollen-Namen oder ID\\'s bei der der Benutzer alle besitzen muss.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Verwenden von Access Helper mit Array von Rollen-Namen oder ID\\'s bei der der Benutzer alle besitzen muss.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 307 => \n array (\n 'id' => 2808,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'strings',\n 'key' => 'frontend.tests.using_access_helper.array_roles_not',\n 'value' => 'Verwenden von Access Helper mit Array von Rolen-Namen oder ID\\'s bei der der Benutzer nicht alle besitzen muss.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Verwenden von Access Helper mit Array von Rolen-Namen oder ID\\'s bei der der Benutzer nicht alle besitzen muss.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 308 => \n array (\n 'id' => 2809,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'strings',\n 'key' => 'frontend.tests.using_access_helper.permission_id',\n 'value' => 'Verwenden von Access Helper mit Berechtigungs-ID',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Verwenden von Access Helper mit Berechtigungs-ID',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 309 => \n array (\n 'id' => 2810,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'strings',\n 'key' => 'frontend.tests.using_access_helper.permission_name',\n 'value' => 'Verwenden von Access Helper mit Berechtigungs-Name',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Verwenden von Access Helper mit Berechtigungs-Name',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 310 => \n array (\n 'id' => 2811,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'strings',\n 'key' => 'frontend.tests.using_access_helper.role_id',\n 'value' => 'Verwenden von Access Helper mit Rollen-ID',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Verwenden von Access Helper mit Rollen-ID',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 311 => \n array (\n 'id' => 2812,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'strings',\n 'key' => 'frontend.tests.using_access_helper.role_name',\n 'value' => 'Verwenden von Access Helper mit Rollen-Name',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Verwenden von Access Helper mit Rollen-Name',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 312 => \n array (\n 'id' => 2813,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'strings',\n 'key' => 'frontend.tests.view_console_it_works',\n 'value' => 'Schaue in die Konsole, du solltest \\'it works!\\' sehen, welches vom FrontendController@index kommt',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Schaue in die Konsole, du solltest \\'it works!\\' sehen, welches vom FrontendController@index kommt',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 313 => \n array (\n 'id' => 2814,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'strings',\n 'key' => 'frontend.tests.you_can_see_because',\n 'value' => 'Du kannst dies sehen, da du folgende Rolle besitzt \\':role\\'!',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Du kannst dies sehen, da du folgende Rolle besitzt \\':role\\'!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 314 => \n array (\n 'id' => 2815,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'strings',\n 'key' => 'frontend.tests.you_can_see_because_permission',\n 'value' => 'Du kannst dies sehen, da du folgende Berechtigung besitzt \\':permission\\'!',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Du kannst dies sehen, da du folgende Berechtigung besitzt \\':permission\\'!',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 315 => \n array (\n 'id' => 2816,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'strings',\n 'key' => 'frontend.general.joined',\n 'value' => 'Joined',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Joined',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 316 => \n array (\n 'id' => 2817,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'strings',\n 'key' => 'frontend.user.change_email_notice',\n 'value' => 'Wenn du deine Email-Adresse änderst, wirst du abgemeldet, bis du deine neue Email-Adresse bestätigt hast.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Wenn du deine Email-Adresse änderst, wirst du abgemeldet, bis du deine neue Email-Adresse bestätigt hast.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 317 => \n array (\n 'id' => 2818,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'strings',\n 'key' => 'frontend.user.email_changed_notice',\n 'value' => 'Du musst deine neue Email-Adresse bestätigen, bevor du dich wieder anmelden kannst.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Du musst deine neue Email-Adresse bestätigen, bevor du dich wieder anmelden kannst.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 318 => \n array (\n 'id' => 2819,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'strings',\n 'key' => 'frontend.user.profile_updated',\n 'value' => 'Profil aktualisiert.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Profil aktualisiert.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 319 => \n array (\n 'id' => 2820,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'strings',\n 'key' => 'frontend.user.password_updated',\n 'value' => 'Passwort aktualisiert.',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Passwort aktualisiert.',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 320 => \n array (\n 'id' => 2821,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'strings',\n 'key' => 'frontend.welcome_to',\n 'value' => 'Wilkommen bei :place',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Wilkommen bei :place',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 321 => \n array (\n 'id' => 2822,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'attributes.backend.access.permissions.associated_roles',\n 'value' => 'Zugeordnete Rollen',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Zugeordnete Rollen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 322 => \n array (\n 'id' => 2823,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'attributes.backend.access.permissions.dependencies',\n 'value' => 'Abhängigkeiten',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Abhängigkeiten',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 323 => \n array (\n 'id' => 2824,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'attributes.backend.access.permissions.display_name',\n 'value' => 'Anzeige-Name',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Anzeige-Name',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 324 => \n array (\n 'id' => 2825,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'attributes.backend.access.permissions.group',\n 'value' => 'Gruppe',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Gruppe',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 325 => \n array (\n 'id' => 2826,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'attributes.backend.access.permissions.group_sort',\n 'value' => 'Gruppen-Sortierung',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Gruppen-Sortierung',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 326 => \n array (\n 'id' => 2827,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'attributes.backend.access.permissions.groups.name',\n 'value' => 'Gruppen-Name',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Gruppen-Name',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 327 => \n array (\n 'id' => 2828,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'attributes.backend.access.permissions.name',\n 'value' => 'Name',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Name',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 328 => \n array (\n 'id' => 2829,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'attributes.backend.access.permissions.system',\n 'value' => 'System?',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'System?',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 329 => \n array (\n 'id' => 2830,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'attributes.backend.access.roles.associated_permissions',\n 'value' => 'Zugeordnerte Berechtigungen',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Zugeordnerte Berechtigungen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 330 => \n array (\n 'id' => 2831,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'attributes.backend.access.roles.name',\n 'value' => 'Name',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Name',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 331 => \n array (\n 'id' => 2832,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'attributes.backend.access.roles.sort',\n 'value' => 'Sortierung',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Sortierung',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 332 => \n array (\n 'id' => 2833,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'attributes.backend.access.users.active',\n 'value' => 'Aktiv',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Aktiv',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 333 => \n array (\n 'id' => 2834,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'attributes.backend.access.users.associated_roles',\n 'value' => 'Zugeordnerte Rollen',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Zugeordnerte Rollen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 334 => \n array (\n 'id' => 2835,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'attributes.backend.access.users.confirmed',\n 'value' => 'Bestätigt',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Bestätigt',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 335 => \n array (\n 'id' => 2836,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'attributes.backend.access.users.email',\n 'value' => 'E-Mailadresse',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'E-Mailadresse',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 336 => \n array (\n 'id' => 2837,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'attributes.backend.access.users.name',\n 'value' => 'Name',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Name',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 337 => \n array (\n 'id' => 2838,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'attributes.backend.access.users.other_permissions',\n 'value' => 'Andere Berechtigungen',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Andere Berechtigungen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 338 => \n array (\n 'id' => 2839,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'attributes.backend.access.users.password',\n 'value' => 'Kennwort',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Kennwort',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 339 => \n array (\n 'id' => 2840,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'attributes.backend.access.users.password_confirmation',\n 'value' => 'Kennwort (Wdh.)',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Kennwort (Wdh.)',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 340 => \n array (\n 'id' => 2841,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'attributes.backend.access.users.send_confirmation_email',\n 'value' => 'Bestätigungs E-Mail senden',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Bestätigungs E-Mail senden',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 341 => \n array (\n 'id' => 2842,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'attributes.frontend.email',\n 'value' => 'E-Mailadresse',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'E-Mailadresse',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 342 => \n array (\n 'id' => 2843,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'attributes.frontend.name',\n 'value' => 'Name',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Name',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 343 => \n array (\n 'id' => 2844,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'attributes.frontend.password',\n 'value' => 'Kennwort',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Kennwort',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 344 => \n array (\n 'id' => 2845,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'attributes.frontend.password_confirmation',\n 'value' => 'Kennwort (Wdh.)',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Kennwort (Wdh.)',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 345 => \n array (\n 'id' => 2846,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'attributes.frontend.phone',\n 'value' => 'Phone',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Phone',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 346 => \n array (\n 'id' => 2847,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'attributes.frontend.message',\n 'value' => 'Message',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Message',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 347 => \n array (\n 'id' => 2848,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'attributes.frontend.old_password',\n 'value' => 'Altes Kennwort',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Altes Kennwort',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 348 => \n array (\n 'id' => 2849,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'attributes.frontend.new_password',\n 'value' => 'Neues Kennwort',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Neues Kennwort',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 349 => \n array (\n 'id' => 2850,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'validation',\n 'key' => 'attributes.frontend.new_password_confirmation',\n 'value' => 'Neues Kennwort (Wdh.)',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Neues Kennwort (Wdh.)',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 350 =>\n array (\n 'id' => 2851,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'menus',\n 'key' => 'backend.translation.title',\n 'value' => 'Sprachen Management',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Sprachen Management',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 351 =>\n array (\n 'id' => 2852,\n 'status' => 0,\n 'locale' => 'de',\n 'group' => 'labels',\n 'key' => 'backend.translation.index',\n 'value' => 'Sprach-Variablen',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Sprach-Variablen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 352 =>\n array (\n 'id' => 2853,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'menus',\n 'key' => 'backend.translation.title',\n 'value' => 'Language management',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Sprachen Management',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n 353 =>\n array (\n 'id' => 2854,\n 'status' => 0,\n 'locale' => 'en',\n 'group' => 'labels',\n 'key' => 'backend.translation.index',\n 'value' => 'Translation',\n 'created_at' => '2017-08-28 18:54:39',\n 'updated_at' => '2017-08-28 18:54:39',\n 'saved_value' => 'Sprach-Variablen',\n 'is_deleted' => 0,\n 'was_used' => 0,\n 'source' => NULL,\n 'is_auto_added' => 0,\n ),\n ));\n \n \n }", "private function saveStringToLocales()\n {\n $gettextEntries = $this->extractGettextStrings();\n\n $root = Strata::getRootPath();\n\n foreach ($gettextEntries as $translation) {\n $references = $translation->getReferences();\n $translation->deleteReferences();\n\n foreach ($references as $idx => $context) {\n $translation->addReference(str_replace($root, \"~\", $context[0]), $context[1]);\n }\n }\n\n foreach ($this->getLocales() as $locale) {\n $this->addGettextEntriesToLocale($locale, $gettextEntries);\n }\n }", "public function saveTranslatables(\\Gettext\\Translations $translations, $packageHandle, $packageVersion)\n {\n $db = Loader::db();\n /* @var $db ADODB_mysql */\n $preHash = $db->GetOne('SELECT MD5(GROUP_CONCAT(itpTranslatable)) FROM IntegratedTranslatablePlaces WHERE (itpPackage = ?) AND (itpVersion = ?) ORDER BY itpTranslatable', array($packageHandle, $packageVersion));\n if (!isset($preHash)) {\n $preHash = '';\n }\n $result = array(\n 'total' => 0,\n 'added' => 0,\n 'updated' => 0,\n );\n $db->Execute('START TRANSACTION');\n try {\n $db->Execute('DELETE FROM IntegratedTranslatablePlaces WHERE (itpPackage = ?) AND (itpVersion = ?)', array($packageHandle, $packageVersion));\n $placesQuery = null;\n $placesQueryParams = null;\n $placesQueryCount = 0;\n foreach ($translations as $translation) {\n $result['total']++;\n /* @var $translation \\Gettext\\Translation */\n $hash = md5($translation->getId());\n $row = $db->GetRow('SELECT itID, itPlural FROM IntegratedTranslatables WHERE itHash = ? LIMIT 1', array($hash));\n if ($row) {\n $itID = (int) $row['itID'];\n if ($translation->hasPlural() && (((string) $row['itPlural']) === '')) {\n $db->Execute('UPDATE IntegratedTranslatables SET itPlural = ? WHERE itID = ? LIMIT 1', array($translation->getPlural(), $itID));\n $result['updated']++;\n }\n } else {\n $sql = 'INSERT INTO IntegratedTranslatables SET itHash = ?, itText = ?';\n $q = array($hash, $translation->getOriginal());\n if ($translation->hasContext() !== '') {\n $sql .= ', itContext = ?';\n $q[] = $translation->getContext();\n }\n if ($translation->hasPlural()) {\n $sql .= ', itPlural = ?';\n $q[] = $translation->getPlural();\n }\n $db->Execute($sql, $q);\n $itID = (int) $db->Insert_ID();\n $result['added']++;\n }\n if ($placesQueryCount === 0) {\n $placesQuery = 'INSERT INTO IntegratedTranslatablePlaces (itpTranslatable, itpPackage, itpVersion, itpLocations, itpComments) VALUES ';\n $placesQueryParams = array();\n } else {\n $placesQuery .= ', ';\n }\n $placesQuery .= '('.$itID.', ?';\n $placesQueryParams[] = $packageHandle;\n $placesQuery .= ', ?';\n $placesQueryParams[] = $packageVersion;\n $refs = array();\n foreach ($translation->getReferences() as $tr) {\n $refs[] = isset($tr[1]) ? implode(':', $tr) : $tr[0];\n }\n if (empty($refs)) {\n $placesQuery .= ', NULL';\n } else {\n $placesQuery .= ', ?';\n $placesQueryParams[] = implode(\"\\x04\", $refs);\n }\n if ($translation->hasComments()) {\n $placesQuery .= ', ?';\n $placesQueryParams[] = implode(\"\\x04\", $translation->getComments());\n } else {\n $placesQuery .= ', NULL';\n }\n $placesQuery .= ')';\n $placesQueryCount++;\n if ($placesQueryCount >= 50) {\n $db->Execute($placesQuery, $placesQueryParams);\n $placesQueryCount = 0;\n }\n }\n if ($placesQueryCount !== 0) {\n $db->Execute($placesQuery, $placesQueryParams);\n }\n $postHash = $db->GetOne('SELECT MD5(GROUP_CONCAT(itpTranslatable)) FROM IntegratedTranslatablePlaces WHERE (itpPackage = ?) AND (itpVersion = ?) ORDER BY itpTranslatable', array($packageHandle, $packageVersion));\n if (!isset($postHash)) {\n $postHash = '';\n }\n $result['somethingChanged'] = ($preHash === $postHash) ? false : true;\n Cache::delete('integrated_localization-po', $packageHandle.'@'.$packageVersion);\n Cache::delete('integrated_localization-po-dev', $packageHandle.'@'.$packageVersion);\n Cache::delete('integrated_localization-mo', $packageHandle.'@'.$packageVersion);\n $db->Execute('COMMIT');\n\n return $result;\n } catch (Exception $x) {\n try {\n $db->Execute('ROLLBACK');\n } catch (Exception $foo) {\n }\n throw $x;\n }\n }", "public function synchTranslations() {\n\t\t//header('Content-type: text/html; charset=utf-8');\n\t\t$player = User::getUser();\n\t\t$lang = $this->params['lang'];\n\n\t\t//ONLY English!\n\t\t$lang = \"EN\";\n\t\tif (!$player or $player->canAccess('Super Admin Interface') !== TRUE or strlen($lang) != 2) {\n\t\t\tDooUriRouter::redirect(Doo::conf()->APP_URL);\n\t\t\treturn false;\n\t\t}\n\n\t\t$file_names = array();\n\t\t$path = Doo::conf()->SITE_PATH . 'protected';\n\t\tExternalController::scanFileNameRecursivly($path, $file_names);\n\n\t\t//$translator = Doo::translator('Csv', Doo::conf()->SITE_PATH . 'protected/lang/' . $lang . '/' . $lang . //'.csv');\n\t\t$translator = Doo::translator('database', $lang);\n\n\t\t$fileResult = array();\n\n\t\tforeach ($file_names as $file) {\n\n\t\t\tif (file_exists($file)) {\n\n\t\t\t\t$content = file_get_contents($file);\n\n\t\t\t\t$clen = strlen($content);\n\n\t\t\t\t$pos = 0;\n\t\t\t\twhile ($pos = strpos($content, 'this'.'->__(', $pos))\n\t\t\t\t{\n\t\t\t\t\tif ($pos)\n\t\t\t\t\t{\n\t\t\t\t\t\t//Get ''\n\t\t\t\t\t\tif ($content[$pos+9]==\"'\")\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$res = \"\";\n\t\t\t\t\t\t\t$pos1 = strpos($content, \"'\", $pos+1);\n\t\t\t\t\t\t\t$pos2 = strpos($content, \"'\", $pos1+1);\n\n\t\t\t\t\t\t\tfor ($i=$pos1+1;$i<$pos2;$i++)\n\t\t\t\t\t\t\t\t$res .= $content[$i];\n\t\t\t\t\t\t\t$fileResult[] = $res;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//Get \"\"\n\t\t\t\t\t\tif ($content[$pos+9]=='\"')\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$res = \"\";\n\t\t\t\t\t\t\t$pos1 = strpos($content, '\"', $pos+1);\n\t\t\t\t\t\t\t$pos2 = strpos($content, '\"', $pos1+1);\n\n\t\t\t\t\t\t\tfor ($i=$pos1+1;$i<$pos2;$i++)\n\t\t\t\t\t\t\t\t$res .= $content[$i];\n\t\t\t\t\t\t\t$fileResult[] = $res;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t$pos++;\n\t\t\t\t}\n\n\t\t\t\t// Check for snController - used when this can not be used\n\t\t\t\t$pos = 0;\n\t\t\t\twhile ($pos = strpos($content, 'snController'.'->__(', $pos))\n\t\t\t\t{\n\t\t\t\t\tif ($pos)\n\t\t\t\t\t{\n\t\t\t\t\t\t//Get ''\n\t\t\t\t\t\tif ($content[$pos+17]==\"'\")\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$res = \"\";\n\t\t\t\t\t\t\t$pos1 = strpos($content, \"'\", $pos+1);\n\t\t\t\t\t\t\t$pos2 = strpos($content, \"'\", $pos1+1);\n\n\t\t\t\t\t\t\tfor ($i=$pos1+1;$i<$pos2;$i++)\n\t\t\t\t\t\t\t\t$res .= $content[$i];\n\t\t\t\t\t\t\t$fileResult[] = $res;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//Get \"\"\n\t\t\t\t\t\tif ($content[$pos+17]=='\"')\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$res = \"\";\n\t\t\t\t\t\t\t$pos1 = strpos($content, '\"', $pos+1);\n\t\t\t\t\t\t\t$pos2 = strpos($content, '\"', $pos1+1);\n\n\t\t\t\t\t\t\tfor ($i=$pos1+1;$i<$pos2;$i++)\n\t\t\t\t\t\t\t\t$res .= $content[$i];\n\t\t\t\t\t\t\t$fileResult[] = $res;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t$pos++;\n\t\t\t\t}\n\n\t\t\t} else {\n\t\t\t\techo \"No file\";\n\t\t\t}\n\t\t}\n $fileResult = array_unique($fileResult);\n //Fetch and compare texts from database with collected fileresults to find unused texts and delete them\n if (!empty($fileResult)) {\n echo \"TRANSLATION KEY DELETION: <br/><br/>\";\n\n $dRows = 0;\n $screentexts = new GeScreenTexts();\n $params['select'] = \"{$screentexts->_table}.ID_TEXT, {$screentexts->_table}.TransKey\";\n $dbKeys = Doo::db()->find('GeScreenTexts', $params);\n foreach($dbKeys as $text) {\n $key = array_search($text->TransKey, $fileResult);\n // If key isn't used, delete it\n if(!$key) {\n $query = \"DELETE FROM ge_screentexts WHERE ID_TEXT={$text->ID_TEXT}\";\n echo \"Deleted: $text->TransKey<br/>\";\n Doo::db()->query($query);\n $dRows++;\n }\n }\n echo \"$dRows keys deleted<br/><br/>\";\n }\n\n\t\t//Loop thru the collected fileresults and find new untranslated texts and insert them\n\t\tif (!empty($fileResult)) {\n\t\t\techo \"FILE TRANSLATION: <br/><br/>\";\n\n\t\t\t$nRows = 0;\n\t\t\tforeach ($fileResult as $item)\n\t\t\t{\n\t\t\t\t$query = \"SELECT COUNT(*) as n FROM ge_screentexts WHERE TransKey=\" .'\"' . $item . '\"';\n\n\t\t\t\t$o = (object)Doo::db()->fetchRow($query);\n\t\t\t\t$n = $o->n;\n\n\t\t\t\tif ($n==0)\n\t\t\t\t{\n\t\t\t\t\t$query = \"INSERT INTO ge_screentexts\".\n\t\t\t\t\t\t\t \"(TransKey,TransTextEN,TransTextDA,TransTextDE,TransTextFR,TransTextES,TransTextRO,TransTextLT,TransTextBG,\".\n\t\t\t\t\t\t\t \"TransTextNL,TransTextEL,TransTextTR,TransTextZH,TransTextIS,TransTextBR,TransTextTH,TransTextPT,TransTextRU,\".\n\t\t\t\t\t\t\t \"TransTextPL,TransTextFI,TransTextFA,TransTextDR,TransTextNO,TransTextSE,TransTextHU,TransTextAR,TransTextET)\".\n\t\t\t\t\t\t\t \"VALUES (\".'\"'.$item.'\",\"'.$item.'\"'.\",'','','','','','','','','','','','','','','','','','','','','','','','','')\";\n\t\t\t\t\techo \"New: $item<br/>\";\n\t\t\t\t\tDoo::db()->query($query);\n\t\t\t\t\t//echo \" - $query<br/>\";\n\t\t\t\t\t$nRows++;\n\t\t\t\t}\n\n\t\t\t}\n\t\t\techo \"$nRows new rows added<br/>\";\n\t\t}\n\n\n\t\techo \"<p>Synch translations done</p>\";\n\t\texit;\n\n\t}", "public function testSaveMultipleTranslations(): void\n {\n $table = $this->getTableLocator()->get('Articles');\n $table->addBehavior('Translate', ['fields' => ['title', 'body']]);\n $article = $results = $table->find('translations')->first();\n\n $translations = $article->get('_translations');\n $translations['deu']->set('title', 'Another title');\n $translations['eng']->set('body', 'Another body');\n $article->set('_translations', $translations);\n $table->save($article);\n $this->assertNull($article->get('_i18n'));\n\n $article = $results = $table->find('translations')->first();\n $translations = $article->get('_translations');\n $this->assertSame('Another title', $translations['deu']->get('title'));\n $this->assertSame('Another body', $translations['eng']->get('body'));\n }", "private function save() \n {\n $content = \"<?php\\n\\nreturn\\n[\\n\";\n\n foreach ($this->arrayLang as $this->key => $this->value) \n {\n $content .= \"\\t'\".$this->key.\"' => '\".$this->value.\"',\\n\";\n }\n\n $content .= \"];\";\n\n file_put_contents($this->path, $content);\n\n }", "function saveTranslations($lang,$keyVals)\n {\n T::loadTranslations($lang);\n $l=T::$translations[$lang];\n foreach($l as $key=>$value)\n {\n if($value!=$keyVals[$key])\n {\n $m=\\getModel(\"ps_lang\\\\translations\",array(\"id_string\"=>$key,\"lang\"=>$lang));\n $m->value=$keyVals[$key];\n $m->save();\n }\n }\n }", "public function getTranslations()\n {\n }", "private function _get_translations_from_db () {\n\n\t\ttry {\n\n\t\t\t$db = Db::init();\n\n\t\t\t$sql = 'SELECT key_word, value\n\t\t\t\t\tFROM arka_web.language\n\t\t\t\t\tWHERE lang = :lang';\n\n\t\t\t$sth = $db->dbh->prepare($sql);\n\n\t\t\t$sth->execute(array(':lang' => $this->lang));\n\n\t\t\t$t = $sth->fetchAll(PDO::FETCH_COLUMN|PDO::FETCH_GROUP);\n\n\t\t\treturn array_map('reset', $t );\n\n\t\t} catch (\\PDOException $e) {\n\n\t\t\techo '<b>Error [' . $e->getLine() . ']: </b>' . $e->getMessage();\n\n\t\t}//end catch\n\n\t}", "public function testSaveMultipleNewTranslations(): void\n {\n $table = $this->getTableLocator()->get('Articles');\n $table->addBehavior('Translate', ['fields' => ['title', 'body']]);\n $article = $results = $table->find('translations')->first();\n\n $translations = $article->get('_translations');\n $translations['deu']->set('title', 'Another title');\n $translations['eng']->set('body', 'Another body');\n $translations['spa'] = new Entity(['title' => 'Titulo']);\n $translations['fre'] = new Entity(['title' => 'Titre']);\n $article->set('_translations', $translations);\n $table->save($article);\n $this->assertNull($article->get('_i18n'));\n\n $article = $results = $table->find('translations')->first();\n $translations = $article->get('_translations');\n $this->assertSame('Another title', $translations['deu']->get('title'));\n $this->assertSame('Another body', $translations['eng']->get('body'));\n $this->assertSame('Titulo', $translations['spa']->get('title'));\n $this->assertSame('Titre', $translations['fre']->get('title'));\n }", "public static function getTranslations() {\n $settings = self::getSettings();\n return json_decode($settings->translations, true);\n }", "function update_translations()\n\t{\n\t\t$this->load->library('translator');\n\t\t\n\t\t//application language folder\n\t\t$language_folder=APPPATH.'language/';\n\t\t\n\t\t//template language \n\t\t$language='base';\n\t\t\n\t\t//path to the language folder\n\t\t$language_path=$language_folder.$language;\n\t\t\n\t\t//get a list of all translation files for the given language \n\t\t$files=$this->translator->get_language_files_array($language_path);\n\t\t\n\t\t//will be updated with additons from the BASE language file\n\t\t$target_language=$this->config->item(\"language\");\n\t\t\n\t\tif (!$target_language)\n\t\t{\n\t\t\techo \"language $target_language was not found\";\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tforeach($files as $file)\n\t\t{\n\t\t\t$target_filepath=$language_folder.'/'.$target_language.'/'.$file;\n\n\t\t\t//merge source and target language file to fill in missing translations for the target language\n\t\t\t$data['translations']=$this->translator->merge_language_keys($language_path.'/'.$file,$target_filepath);\n\t\t\t$data['language_name']=$target_language;\n\t\t\t$data['translation_file']=$file;\n\t\t\t\n\t\t\t//target language file content\n\t\t\t$content='<?php '.\"\\n\\n\".$this->load->view('translator/save',$data,TRUE);\n\t\t\t\n\t\t\t//update the target language file\n\t\t\t$save_result=@file_put_contents($target_filepath,$content);\n\t\t\t\n\t\t\tif($save_result)\n\t\t\t{\n\t\t\t\techo \"Language file updated: \" . $target_filepath.'<br />';\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\techo \"<div style='color:red;'>Language file update failed: \" . $target_filepath.'</div>';\n\t\t\t}\n\t\t}\t\t\n\t}", "public function loadTranslations()\n {\n $oTranslation = new Translation($this->sLang, $this->sBundleName);\n $this->aView[\"lang\"] = $this->sLang;\n $this->aView[\"tr\"] = $oTranslation->getTranslations();\n }", "public function saveTranslations($request)\n\t{\n\t\tif (($this->load($request)) && ($this->validate())){\n\t\t\tif ($this->saveSourceMessage()){\n\t\t\t\t$this->translations = $request['messageTranslations'];\n\t\t\t\tif ($this->saveMessageTranslations()){\n\t\t\t\t\treturn TRUE;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn FALSE;\n\t}", "public function save()\n {\n $currentTranslate = $this->getCurrentTranslateDb();\n\n $currentTranslate->name = $this->valueName;\n $currentTranslate->description = $this->valueDescription;\n\n return $currentTranslate->save(false);\n }", "protected function initializeTranslationsArray()\n {\n $translations = $this->translations;\n if (!is_array($translations))\n $this->translationsArray = [];\n else\n $this->translationsArray = $translations;\n }", "private function translations()\n {\n $this['translator'] = $this->share($this->extend('translator', function ($translator) {\n $translator->addLoader('yaml', new TranslationFileLoader());\n\n $translator->addResource('yaml', 'config/locales/pt-br.yml', 'pt-br');\n $translator->addResource('yaml', 'config/locales/en-us.yml', 'en-us');\n $translator->addResource('yaml', 'config/locales/es-es.yml', 'es-es');\n\n return $translator;\n }));\n }", "private function save(): void\n {\n foreach ($this->dataToSave as $file => $data) {\n $this->langFilesManager->fillKeys($file, $data);\n }\n }", "public function storeLanguagesVarsToDB(): void\n {\n foreach ($this->getDirsWithLanguages() as $lang => $dir) {\n $fs = new Filesystem();\n $files = $fs->files($dir);\n foreach ($files as $fileName) {\n $filePath = $dir . \"/\" . $fileName->getRelativePathname();\n $array = (file_exists($filePath)) ? require($filePath) : [];\n $this->saveLanguageValueToDB(basename($fileName->getRelativePathname(), \".php\"), $lang, [], $array);\n }\n }\n }", "public function translations()\n\t{\n\t\treturn $this->hasMany($this->getTranslatorClassName(), 'original_id');\n\t}", "private function saveTranslateConfig(){\r\n\t\t// Check for request forgeries\r\n\t\tJRequest::checkToken() or die( 'Invalid Token' );\r\n\r\n\t\t$lang_id \t= JRequest::getInt( 'lang_id',0 );\r\n\t\t$model = $this->getModel('languages');\r\n\t\t$language = $model->getTable('JFLanguage');\t\t\r\n\t\t$language->load($lang_id);\r\n\r\n\t\tif (is_null($lang_id) || !isset($language->id) || $language->id<=0){\r\n\t\t\tdie( 'Invalid Language Id' );\r\n\t\t}\r\n\t\t\r\n\t\t$data = array();\r\n\t\tforeach ($_REQUEST as $key=>$val) {\r\n\t\t\tif (strpos($key,\"trans_\")===0){\r\n\t\t\t\t$key = str_replace(\"trans_\",\"\",$key);\r\n\t\t\t\tif (ini_get('magic_quotes_gpc')) {\r\n \t\t $val = stripslashes($val);\r\n \t\t} \r\n \t\t$data[$key]=$val;\r\n\t\t\t}\r\n\t\t}\r\n\t\t$registry = new JRegistry();\r\n\t\t$registry->loadArray($data);\r\n\t\t$language->params = $registry->toString();\r\n\r\n\t\t$language->store();\r\n\t\tJFactory::getApplication()->redirect(\"index.php?option=com_joomfish&task=languages.show\",JText::_( 'LANGUAGES_SAVED' ));\r\n\t}", "function getTranslationObject();", "public function setFieldsTranslations(array $array){\n foreach($this->translatable as $prop){\n if(isset($array[$prop])){\n $this->setTranslations($prop, $array[$prop]);\n }\n $this->save();\n }\n }", "public function translations()\n {\n $locales = config('translatable.locales');\n $fallback_locale = config('translatable.fallback_local');\n unset($locales[$fallback_locale]);\n $translations_count = count($locales);\n if ($translations_count === 1) {\n return $this->hasOne(get_class() . 'Translation');\n } else {\n return $this->hasMany(get_class(), 'Translation');\n }\n }", "public function passo3() {\n $filename= 'f' . gmdate('YmdHis');\n foreach ($this->langarr as $k => $v):\n\n $path = ROOT.DS.'app'.DS.'locale'.DS.$v;\n if (!file_exists($path)) mkdir($path);\n \t$path .= DS.'LC_MESSAGES';\n if (!file_exists($path)) mkdir($path);\n \t$file = $path.DS.$filename;\n if (!file_exists($path)) touch($file);\n\n $file = new File($path.DS.$filename);\n $tmprec = $this->Traducao->find('all',array('conditions' => array('Traducao.locale' => $k)));\n foreach ($tmprec as $rec):\n $file->write('msgid \"' .$rec['Traducao']['msgid'] .'\"'.\"\\n\");\n $file->write('msgstr \"'.$rec['Traducao']['msgstr'].'\"'.\"\\n\");\n endforeach;\n $file->close();\n\n if (file_exists($path.DS.'default.po'))\n rename ($path.DS.'default.po',$path.DS.'default.po.old'.gmdate('YmdHis'));\n\t \n rename ($path.DS.$filename,$path.DS.'default.po');\n endforeach;\n }", "public function save()\n {\n /** @var FieldTranslate $translate */\n $translate = $this->getCurrentTranslateDb();\n\n $translate->value = $this->value;\n\n return $translate->save(false);\n\n }", "function &getTranslations(){\n\t\tif ( isset( $this->_cache[__FUNCTION__]) ) return $this->_cache[__FUNCTION__];\n\t\t$tables =& $this->tables();\n\t\t$translations = array();\n\t\tforeach ( array_keys($tables) as $tablename){\n\t\t\t$translations = array_merge($translations, $tables[$tablename]->getTranslations());\n\t\t}\n\t\t$this->_cache[__FUNCTION__] =& $translations;\n\t\treturn $translations;\n\t\t\n\t}", "private function export()\n {\n $translationLocale = $this->ask('In which language do you want to translate?', 'en');\n if ($translationLocale == $this->manager->getDefaultLocale()) {\n $this->warn('It is not possible to translate the default language');\n\n return;\n }\n\n /**\n * Create export file.\n */\n $file = fopen('translation_'.$this->manager->getDefaultLocale().'-'.$translationLocale.'.csv', 'w');\n fputcsv($file, ['translation_string', $this->manager->getDefaultLocale(), $translationLocale], $this->csvSeperator);\n\n if ($this->option('overwrite')) {\n $translations = $this->manager->getTranslationValues($this->manager->getDefaultLocale());\n } else {\n $translations = $this->manager->getUntranslatedValues(\n $this->manager->getDefaultLocale(),\n $translationLocale\n );\n }\n\n foreach ($translations as $key => $value) {\n fputcsv($file, [$key, $value, ''], $this->csvSeperator);\n }\n fclose($file);\n }", "public function testTranslationArrayProperties(): void\n {\n // First save some translations\n $data = [];\n $data['author'] = 'John Doe';\n $data['topic'] = 'Some interesting subject';\n $data['text'] = 'Lorem ipsum...';\n $data['settings'] = [\n 'is-active' => 'true',\n 'url' => 'great-article-in-english.html',\n ];\n\n $node = $this->getTestNode();\n\n $strategy = new ChildTranslationStrategy($this->dm);\n $strategy->saveTranslation($data, $node, $this->metadata, 'en');\n\n // Save translation in another language\n $data['topic'] = 'Un sujet intéressant';\n $data['settings'] = [\n 'is-active' => 'true',\n 'url' => 'super-article-en-francais.html',\n ];\n\n $strategy->saveTranslation($data, $node, $this->metadata, 'fr');\n $this->dm->flush();\n\n $doc = new Article();\n $doc->author = $data['author'];\n $doc->topic = $data['topic'];\n $doc->setText($data['text']);\n $strategy->loadTranslation($doc, $node, $this->metadata, 'en');\n $this->assertEquals(['is-active', 'url'], array_keys($doc->getSettings()));\n $this->assertEquals([\n 'is-active' => 'true',\n 'url' => 'great-article-in-english.html',\n ], $doc->getSettings());\n\n $strategy->loadTranslation($doc, $node, $this->metadata, 'fr');\n $this->assertEquals(['is-active', 'url'], array_keys($doc->getSettings()));\n $this->assertEquals([\n 'is-active' => 'true',\n 'url' => 'super-article-en-francais.html',\n ], $doc->getSettings());\n }", "public\tfunction passo2() {\n\n $trec = $this->Traducao->findAllByLocale($this->defaultLang);\n foreach ($trec as $rec):\n foreach ($this->langarr as $k => $v):\n $tmprec = $this->Traducao->find('all',array('conditions' => array('Traducao.locale' => $k,'Traducao.msgid'=> $rec['Traducao']['msgid'])));\n if (count($tmprec) == 0) {\n $this->data['Traducao']['msgstr'] = $this->Traduzir->translate($rec['Traducao']['msgid'], $this->defaultLang, $k);\n $this->data['Traducao']['msgid'] = $rec\n['Traducao']['msgid'];\n $this->data['Traducao']['locale'] = $k;\n $this->data['Traducao']['status'] = 'm';\n $this->Traducao->save($this->data);\n }\n endforeach;\n\n endforeach;\n }", "private function insertTranslations()\n {\n $sql = \"INSERT INTO s_core_snippets (namespace, shopID, localeID, name, value) VALUES \"\n .\"('frontend/\". $this->getPaymentController() .\"/form/cp', 1,1, 'FRONTEND_BT_CANCEL', 'Abbrechen'),\n ('frontend/\". $this->getPaymentController() .\"/form/cp', 1,2, 'FRONTEND_BT_CANCEL', 'Cancel'),\n ('frontend/\". $this->getPaymentController() .\"/form/cp', 1,1, 'FRONTEND_TT_TESTMODE', 'TESTMODUS \"\n .\": ES FINDET KEINE REALE ZAHLUNG STATT'),\n ('frontend/\". $this->getPaymentController() .\"/form/cp', 1,2, 'FRONTEND_TT_TESTMODE', 'THIS IS A \"\n .\"TEST. NO REAL MONEY WILL BE TRANSFERED') ,\n ('frontend/\". $this->getPaymentController() .\"/form/cp', 1,1, 'FRONTEND_MC_PAYANDSAFE', 'Zahlung \"\n .\"abschlie&szlig;en und Daten hinterlegen'),\n ('frontend/\". $this->getPaymentController() .\"/form/cp', 1,2, 'FRONTEND_MC_PAYANDSAFE', 'Pay and \"\n .\"Save Payment Information'),\n ('frontend/\". $this->getPaymentController() .\"/form/cp', 1,1, 'FRONTEND_RECURRING_WIDGET_HEADER1', \"\n .\"'Hinterlegte Zahlungsdaten verwenden'),\n ('frontend/\". $this->getPaymentController() .\"/form/cp', 1,2, 'FRONTEND_RECURRING_WIDGET_HEADER1', \"\n .\"'Use stored payment data'),\n ('frontend/\". $this->getPaymentController() .\"/form/cp', 1,1, 'FRONTEND_RECURRING_WIDGET_HEADER2', \"\n .\"'Alternative Zahlungsdaten verwenden'),\n ('frontend/\". $this->getPaymentController() .\"/form/cp', 1,2, 'FRONTEND_RECURRING_WIDGET_HEADER2', \"\n .\"'Use alternative payment data'),\n ('frontend/\". $this->getPaymentController() .\"/form/cp', 1,1, 'FRONTEND_MERCHANT_LOCATION_DESC', \"\n .\"'Zahlungsempfänger: '),\n ('frontend/\". $this->getPaymentController() .\"/form/cp', 1,2, 'FRONTEND_MERCHANT_LOCATION_DESC', \"\n .\"'Payee: '),\n\n\n ('frontend/\". $this->getPaymentController() .\"/form/paypalsaved', 1,1, 'FRONTEND_BT_CANCEL', 'Abbrechen'),\n ('frontend/\". $this->getPaymentController() .\"/form/paypalsaved', 1,2, 'FRONTEND_BT_CANCEL', 'Cancel'),\n ('frontend/\". $this->getPaymentController() .\"/form/paypalsaved', 1,1, 'FRONTEND_TT_TESTMODE', 'TESTMODUS \"\n .\": ES FINDET KEINE REALE ZAHLUNG STATT'),\n ('frontend/\". $this->getPaymentController() .\"/form/paypalsaved', 1,2, 'FRONTEND_TT_TESTMODE', 'THIS IS A \"\n .\"TEST. NO REAL MONEY WILL BE TRANSFERED') ,\n ('frontend/\". $this->getPaymentController() .\"/form/paypalsaved', 1,1, 'FRONTEND_MC_PAYANDSAFE', 'Zahlung \"\n .\"abschlie&szlig;en und Daten hinterlegen'),\n ('frontend/\". $this->getPaymentController() .\"/form/paypalsaved', 1,2, 'FRONTEND_MC_PAYANDSAFE', 'Pay and \"\n .\"Save Payment Information') ,\n ('frontend/\". $this->getPaymentController() .\"/form/paypalsaved', 1,1, 'FRONTEND_BT_PAYNOW', 'Jetzt bezahlen'),\n ('frontend/\". $this->getPaymentController() .\"/form/paypalsaved', 1,2, 'FRONTEND_BT_PAYNOW', 'Pay now'),\n ('frontend/\". $this->getPaymentController() .\"/form/paypalsaved', 1,1, 'FRONTEND_RECURRING_WIDGET_HEADER1', \"\n .\"'Hinterlegte Zahlungsdaten verwenden'),\n ('frontend/\". $this->getPaymentController() .\"/form/paypalsaved', 1,2, 'FRONTEND_RECURRING_WIDGET_HEADER1', \"\n .\"'Use stored payment data'),\n ('frontend/\". $this->getPaymentController() .\"/form/paypalsaved', 1,1, 'FRONTEND_RECURRING_WIDGET_HEADER2', \"\n .\"'Alternative Zahlungsdaten verwenden'),\n ('frontend/\". $this->getPaymentController() .\"/form/paypalsaved', 1,2, 'FRONTEND_RECURRING_WIDGET_HEADER2', \"\n .\"'Use alternative payment data'),\n\n ('frontend/\". $this->getPaymentController() .\"/confirmation', 1,1, 'SHOPWARE_BILLING_ADDRESS', 'Rechnungsadresse'),\n ('frontend/\". $this->getPaymentController() .\"/confirmation', 1,2, 'SHOPWARE_BILLING_ADDRESS', 'Billing address'),\n ('frontend/\". $this->getPaymentController() .\"/confirmation', 1,1, 'SHOPWARE_SHIPPING_ADDRESS', 'Lieferadresse'),\n ('frontend/\". $this->getPaymentController() .\"/confirmation', 1,2, 'SHOPWARE_SHIPPING_ADDRESS', 'Shipping address'),\n ('frontend/\". $this->getPaymentController() .\"/confirmation', 1,1, 'FRONTEND_EASYCREDIT_LINK', 'Vorvertragliche \"\n .\"Informationen zum Ratenkauf hier abrufen'),\n ('frontend/\". $this->getPaymentController() .\"/confirmation', 1,2, 'FRONTEND_EASYCREDIT_LINK', 'Read pre-contractual \"\n .\"information on Installments'),\n ('frontend/\". $this->getPaymentController() .\"/confirmation', 1,1, 'SHOPWARE_PAYMENT_BUTTON', 'Zahlungspflichtig bestellen'),\n ('frontend/\". $this->getPaymentController() .\"/confirmation', 1,2, 'SHOPWARE_PAYMENT_BUTTON', 'Complete payment'),\n ('frontend/\". $this->getPaymentController() .\"/confirmation', 1,1, 'SHOPWARE_PAYMENT_DISPATCH', 'Zahlung und Versand'),\n ('frontend/\". $this->getPaymentController() .\"/confirmation', 1,2, 'SHOPWARE_PAYMENT_DISPATCH', 'Payment and dispatch'),\n ('frontend/\". $this->getPaymentController() .\"/confirmation', 1,1, 'FRONTEND_EASYCREDIT_INTEREST', 'Zinsbetrag'),\n ('frontend/\". $this->getPaymentController() .\"/confirmation', 1,2, 'FRONTEND_EASYCREDIT_INTEREST', 'Sum of Interest'),\n ('frontend/\". $this->getPaymentController() .\"/confirmation', 1,1, 'FRONTEND_EASYCREDIT_INTEREST_OF_INSTALLMENT', 'Zinsen für Ratenzahlung'),\n ('frontend/\". $this->getPaymentController() .\"/confirmation', 1,2, 'FRONTEND_EASYCREDIT_INTEREST_OF_INSTALLMENT', 'Interest on installment'),\n ('frontend/\". $this->getPaymentController() .\"/confirmation', 1,1, 'FRONTEND_EASYCREDIT_TOTAL', 'Endbetrag'),\n ('frontend/\". $this->getPaymentController() .\"/confirmation', 1,2, 'FRONTEND_EASYCREDIT_TOTAL', 'Order Total'),\n\n ('frontend/account/payment', 1,1, 'MODULE_PAYMENT_VRPAYECOMMERCE_EASYCREDIT_TEXT_ERROR_CREDENTIALS', \"\n .\"'VR pay eCommerce General Setting Müssen ausgefüllt werden'),\n ('frontend/account/payment', 1,2, 'MODULE_PAYMENT_VRPAYECOMMERCE_EASYCREDIT_TEXT_ERROR_CREDENTIALS', \"\n .\"'VR pay eCommerce General Setting must be filled'),\n ('frontend/account/payment', 1,1, 'ERROR_MESSAGE_EASYCREDIT_AMOUNT_NOTALLOWED', 'Der Finanzierungsbetrag \"\n .\"liegt außerhalb der zulässigen Beträge (200 - 5.000 EUR).'),\n ('frontend/account/payment', 1,2, 'ERROR_MESSAGE_EASYCREDIT_AMOUNT_NOTALLOWED', 'The financing amount is \"\n .\"outside the permitted amounts (200 - 5,000 EUR).'),\n ('frontend/account/payment', 1,1, 'ERROR_EASYCREDIT_BILLING_NOTEQUAL_SHIPPING', 'Um mit easyCredit \"\n .\"bezahlen zu können, muss die Lieferadresse mit der Rechnungsadresse übereinstimmen.'),\n ('frontend/account/payment', 1,2, 'ERROR_EASYCREDIT_BILLING_NOTEQUAL_SHIPPING', 'In order to be able \"\n .\"to pay with easyCredit, the delivery address must match the invoice address.'),\n ('frontend/account/payment', 1,1, 'ERROR_MESSAGE_EASYCREDIT_PARAMETER_GENDER', 'Bitte geben Sie Ihr \"\n .\"Geschlecht an um die Zahlung mit easyCredit durchzuführen.'),\n ('frontend/account/payment', 1,2, 'ERROR_MESSAGE_EASYCREDIT_PARAMETER_GENDER', 'Please enter your gender to\"\n .\" make payment with easyCredit.'),\"\n .\"('frontend/account/payment', 1,1, 'FRONTEND_EASYCREDIT_TERMS', 'Ja, ich möchte per Ratenkauf\"\n .\" zahlen und willge ein, dass %x Ratenkauf der TeamBank AG (Partner der genossenschaftlichen FiinanzGrupper \"\n .\"Volksbanken Raiffeisenbanken), %y zur Identitäts- und Bonitätsprüfung sowie Betrugsprävention Anrede und \"\n .\"Name, Geburtsdatum und -ort, Kontaktdaten (Adresse, Telefon, E-mail) sowie Angaben zur aktuallen und zu \"\n .\"früheren Bestellungen übermittlet und das Prüfungsergebnis zu diesem Zweck erhält.'),\"\n .\"('frontend/account/payment', 1,2, 'FRONTEND_EASYCREDIT_TERMS', 'Yes, I would like to pay by installment \"\n .\"and I agree that %x installment purchase of TeamBank AG (Partner of the Cooperative FiinanzGrupper Volksbanken \"\n .\"Raiffeisenbanken), %y gets for identity and credit checks and fraud prevention title and \"\n .\"surname, date and place of birth, contact details ( Address, telephone, e-mail) as well as details\"\n .\" of current and past orders and receives the test result for this purpose.'),\n ('frontend/\". $this->getPaymentController() .\"/form/response_redirect', 1,1, 'ERROR_MESSAGE_EASYCREDIT_BEFORE_PAYMENT', \"\n .\"'Please make sure your payment method is correct!'),\n ('frontend/\". $this->getPaymentController() .\"/form/response_redirect', 1,2, 'ERROR_MESSAGE_EASYCREDIT_BEFORE_PAYMENT', \"\n .\"'Please make sure your payment method is correct!'),\n\n ('frontend/\". $this->getPaymentController() .\"/result', 1,1, 'SHOPWARE_FAILPAYMENTTITLE', 'Die Zahlung kann \"\n .\"nicht abgeschlossen werden'),\n ('frontend/\". $this->getPaymentController() .\"/result', 1,2, 'SHOPWARE_FAILPAYMENTTITLE', 'Payment cannot \"\n .\"be completed'),\n ('frontend/\". $this->getPaymentController() .\"/result', 1,1, 'SHOPWARE_CLICKTITLE', 'Klicken'),\n ('frontend/\". $this->getPaymentController() .\"/result', 1,2, 'SHOPWARE_CLICKTITLE', 'Click'),\n ('frontend/\". $this->getPaymentController() .\"/result', 1,1, 'SHOPWARE_HERETITLE', 'hierher'),\n ('frontend/\". $this->getPaymentController() .\"/result', 1,2, 'SHOPWARE_HERETITLE', 'here'),\n ('frontend/\". $this->getPaymentController() .\"/result', 1,1, 'SHOPWARE_TOCONTINUETITLE', 'Weiter'),\n ('frontend/\". $this->getPaymentController() .\"/result', 1,2, 'SHOPWARE_TOCONTINUETITLE', 'Continue'),\n\n ('frontend/checkout/shipping_payment', 1,1, 'FRONTEND_PM_CC', 'Kreditkarte'),\n ('frontend/checkout/shipping_payment', 1,2, 'FRONTEND_PM_CC', 'Credit Cards'),\n ('frontend/checkout/shipping_payment', 1,1, 'FRONTEND_PM_CCSAVED', 'Kreditkarte'),\n ('frontend/checkout/shipping_payment', 1,2, 'FRONTEND_PM_CCSAVED', 'Credit Card'),\n ('frontend/checkout/shipping_payment', 1,1, 'FRONTEND_PM_DC', 'Debit Card'),\n ('frontend/checkout/shipping_payment', 1,2, 'FRONTEND_PM_DC', 'Debit Card'),\n ('frontend/checkout/shipping_payment', 1,1, 'FRONTEND_PM_DD', 'Lastschrift'),\n ('frontend/checkout/shipping_payment', 1,2, 'FRONTEND_PM_DD', 'Direct Debit'),\n ('frontend/checkout/shipping_payment', 1,1, 'FRONTEND_PM_DDSAVED', 'Lastschrift'),\n ('frontend/checkout/shipping_payment', 1,2, 'FRONTEND_PM_DDSAVED', 'Direct Debit'),\n ('frontend/checkout/shipping_payment', 1,1, 'FRONTEND_PM_EPS', 'eps'),\n ('frontend/checkout/shipping_payment', 1,2, 'FRONTEND_PM_EPS', 'eps'),\n ('frontend/checkout/shipping_payment', 1,1, 'FRONTEND_PM_GIROPAY', 'Giropay'),\n ('frontend/checkout/shipping_payment', 1,2, 'FRONTEND_PM_GIROPAY', 'Giropay'),\n ('frontend/checkout/shipping_payment', 1,1, 'FRONTEND_PM_IDEAL', 'iDeal'),\n ('frontend/checkout/shipping_payment', 1,2, 'FRONTEND_PM_IDEAL', 'iDeal'),\n ('frontend/checkout/shipping_payment', 1,1, 'FRONTEND_PM_KLARNAPAYLATER', 'Rechnung.'),\n ('frontend/checkout/shipping_payment', 1,2, 'FRONTEND_PM_KLARNAPAYLATER', 'Pay later.'),\n ('frontend/checkout/shipping_payment', 1,1, 'FRONTEND_PM_KLARNASLICEIT', 'Ratenkauf.'),\n ('frontend/checkout/shipping_payment', 1,2, 'FRONTEND_PM_KLARNASLICEIT', 'Slice it.'),\n ('frontend/checkout/shipping_payment', 1,1, 'FRONTEND_PM_MASTERPASS', 'Masterpass'),\n ('frontend/checkout/shipping_payment', 1,2, 'FRONTEND_PM_MASTERPASS', 'Masterpass'),\n ('frontend/checkout/shipping_payment', 1,1, 'FRONTEND_PM_PAYPAL', 'PayPal'),\n ('frontend/checkout/shipping_payment', 1,2, 'FRONTEND_PM_PAYPAL', 'PayPal'),\n ('frontend/checkout/shipping_payment', 1,1, 'FRONTEND_PM_PAYPALSAVED', 'PayPal'),\n ('frontend/checkout/shipping_payment', 1,2, 'FRONTEND_PM_PAYPALSAVED', 'PayPal'),\n ('frontend/checkout/shipping_payment', 1,1, 'FRONTEND_PM_PAYDIREKT', 'paydirekt'),\n ('frontend/checkout/shipping_payment', 1,2, 'FRONTEND_PM_PAYDIREKT', 'paydirekt'),\n ('frontend/checkout/shipping_payment', 1,1, 'FRONTEND_PM_KLARNAOBT', 'Sofort.'),\n ('frontend/checkout/shipping_payment', 1,2, 'FRONTEND_PM_KLARNAOBT', 'Online Bank Transfer.'),\n ('frontend/checkout/shipping_payment', 1,1, 'FRONTEND_PM_SWISSPOSTFINANCE', 'Swiss Postfinance'),\n ('frontend/checkout/shipping_payment', 1,2, 'FRONTEND_PM_SWISSPOSTFINANCE', 'Swiss Postfinance'),\n ('frontend/checkout/shipping_payment', 1,1, 'FRONTEND_PM_EASYCREDIT', 'ratenkauf by easyCredit'),\n ('frontend/checkout/shipping_payment', 1,2, 'FRONTEND_PM_EASYCREDIT', 'ratenkauf by easyCredit'),\n\n ('frontend/\". $this->getPaymentController() .\"/result', 1,2, 'ERROR_CC_ACCOUNT', 'The account holder entered \"\n .\"does not match your name. Please use an account that is registered on your name.'),\n ('frontend/\". $this->getPaymentController() .\"/result', 1,2, 'ERROR_CC_INVALIDDATA', 'Unfortunately, the \"\n .\"card/account data you entered was not correct. Please try again.'),\n ('frontend/\". $this->getPaymentController() .\"/result', 1,2, 'ERROR_CC_BLACKLIST', 'Unfortunately, the credit \"\n .\"card you entered can not be accepted. Please choose a different card or payment method.'),\n ('frontend/\". $this->getPaymentController() .\"/result', 1,2, 'ERROR_CC_DECLINED_CARD', 'Unfortunately, the credit \"\n .\"card you entered can not be accepted. Please choose a different card or payment method.'),\n ('frontend/\". $this->getPaymentController() .\"/result', 1,2, 'ERROR_CC_EXPIRED', 'Unfortunately, the credit card \"\n .\"you entered is expired. Please choose a different card or payment method.'),\n ('frontend/\". $this->getPaymentController() .\"/result', 1,2, 'ERROR_CC_INVALIDCVV', 'Unfortunately, the CVV/CVC you \"\n .\"entered is not correct. Please try again.'),\n ('frontend/\". $this->getPaymentController() .\"/result', 1,2, 'ERROR_CC_EXPIRY', 'Unfortunately, the expiration date \"\n .\"you entered is not correct. Please try again.'),\n ('frontend/\". $this->getPaymentController() .\"/result', 1,2, 'ERROR_CC_LIMIT_EXCEED', 'Unfortunately, the limit of \"\n .\"your credit card is exceeded. Please choose a different card or payment method.'),\n ('frontend/\". $this->getPaymentController() .\"/result', 1,2, 'ERROR_CC_3DAUTH', 'Unfortunately, the password you \"\n .\"entered was not correct. Please try again.'),\n ('frontend/\". $this->getPaymentController() .\"/result', 1,2, 'ERROR_CC_3DERROR', 'Unfortunately, there has been an \"\n .\"error while processing your request. Please try again.'),\n ('frontend/\". $this->getPaymentController() .\"/result', 1,2, 'ERROR_CC_NOBRAND', 'Unfortunately, there has been an \"\n .\"error while processing your request. Please try again.'),\n ('frontend/\". $this->getPaymentController() .\"/result', 1,2, 'ERROR_GENERAL_LIMIT_AMOUNT', 'Unfortunately, your \"\n .\"credit limit is exceeded. Please choose a different card or payment method.'),\n ('frontend/\". $this->getPaymentController() .\"/result', 1,2, 'ERROR_GENERAL_LIMIT_TRANSACTIONS', 'Unfortunately, \"\n .\"your limit of transaction is exceeded. Please try again later. '),\n ('frontend/\". $this->getPaymentController() .\"/result', 1,2, 'ERROR_CC_DECLINED_AUTH', 'Unfortunately, your \"\n .\"transaction has failed. Please choose a different card or payment method.'),\n ('frontend/\". $this->getPaymentController() .\"/result', 1,2, 'ERROR_GENERAL_DECLINED_RISK', 'Unfortunately, \"\n .\"your transaction has failed. Please choose a different card or payment method.'),\n ('frontend/\". $this->getPaymentController() .\"/result', 1,2, 'ERROR_CC_ADDRESS', 'We are sorry. We could no \"\n .\"accept your card as its origin does not match your address.'),\n ('frontend/\". $this->getPaymentController() .\"/result', 1,2, 'ERROR_GENERAL_CANCEL', 'You cancelled the payment \"\n .\"prior to its execution. Please try again.'),\n ('frontend/\". $this->getPaymentController() .\"/result', 1,2, 'ERROR_CC_RECURRING', 'Recurring transactions have \"\n .\"been deactivated for this credit card. Please choose a different card or payment method.'),\n ('frontend/\". $this->getPaymentController() .\"/result', 1,2, 'ERROR_CC_REPEATED', 'Unfortunately, your transaction \"\n .\"has been declined due to invalid data. Please choose a different card or payment method.'),\n ('frontend/\". $this->getPaymentController() .\"/result', 1,2, 'ERROR_GENERAL_ADDRESS', 'Unfortunately, your transaction \"\n .\"has failed. Please check the personal data you entered.'),\n ('frontend/\". $this->getPaymentController() .\"/result', 1,2, 'ERROR_GENERAL_BLACKLIST', 'The chosen payment method \"\n .\"is not available at the moment. Please choose a different card or payment method.'),\n ('frontend/\". $this->getPaymentController() .\"/result', 1,2, 'ERROR_GENERAL_GENERAL', 'Unfortunately, your transaction \"\n .\"has failed. Please try again.'),\n ('frontend/\". $this->getPaymentController() .\"/result', 1,2, 'ERROR_GENERAL_TIMEOUT', 'Unfortunately, your transaction \"\n .\"has failed. Please try again. '),\n ('frontend/\". $this->getPaymentController() .\"/result', 1,2, 'ERROR_GIRO_NOSUPPORT', 'Giropay is not supported for \"\n .\"this transaction. Please choose a different payment method.'),\n ('frontend/\". $this->getPaymentController() .\"/result', 1,2, 'ERROR_ADDRESS_PHONE', 'Unfortunately, your transaction has \"\n .\"failed. Please enter a valid telephone number.'),\n ('frontend/\". $this->getPaymentController() .\"/result', 1,2, 'ERROR_GENERAL_REDIRECT', 'Error before redirect.'),\n ('frontend/\". $this->getPaymentController() .\"/result', 1,2, 'ERROR_CAPTURE_BACKEND', 'Transaction can not be captured.'),\n ('frontend/\". $this->getPaymentController() .\"/result', 1,2, 'ERROR_MERCHANT_SSL_CERTIFICATE',\n 'SSL certificate problem, please contact the merchant.'),\n ('frontend/\". $this->getPaymentController() .\"/result', 1,2, 'ERROR_UNKNOWN', 'Unfortunately, your transaction has \"\n .\"failed. Please try again.'),\n ('frontend/\". $this->getPaymentController() .\"/result', 1,2, 'ERROR_GENERAL_NORESPONSE', 'Unfortunately, the confirmation \"\n .\"of your payment failed. Please contact your merchant for clarification.'),\n ('frontend/\". $this->getPaymentController() .\"/result', 1,2, 'ERROR_MESSAGE_SESSION_TIMEOUT', 'your payment is refunded \"\n .\"due to the session timeout, please login to finish the payment.'),\n ('frontend/\". $this->getPaymentController() .\"/result', 1,2, 'ERROR_MESSAGE_SESSION_TIMEOUT_WHITOUT_REFUND', 'Your payment \"\n .\"is failed due to the session timeout'),\n ('frontend/\". $this->getPaymentController() .\"/result', 1,2, 'ERROR_EASYCREDIT_IBAN', 'The IBAN \"\n .\"does not correspond to the IBAN country format.'),\n ('frontend/\". $this->getPaymentController() .\"/result', 1,2, 'ERROR_EASYCREDIT_DOB', 'The date entered must be in the past'),\n ('frontend/\". $this->getPaymentController() .\"/result', 1,2, 'ERROR_EASYCREDIT_ADDRESS', 'The address could not be found. \"\n .\"Please select a different delivery and billing address or choose another payment method.'),\n\n ('frontend/\". $this->getPaymentController() .\"/result', 1,1, 'ERROR_CC_ACCOUNT', 'Sie sind nicht der Inhaber des \"\n .\"eingegebenen Kontos. Bitte w&auml;hlen Sie ein Konto das auf Ihren Namen l&auml;uft.'),\n ('frontend/\". $this->getPaymentController() .\"/result', 1,1, 'ERROR_CC_INVALIDDATA', 'Ihre Karten-/Kontodaten sind leider \"\n .\"nicht korrekt. Bitte versuchen Sie es erneut.'),\n ('frontend/\". $this->getPaymentController() .\"/result', 1,1, 'ERROR_CC_BLACKLIST', 'Leider kann die eingegebene Kreditkarte \"\n .\"nicht akzeptiert werden. Bitte w&auml;hlen Sie eine andere Karte oder Bezahlungsmethode.'),\n ('frontend/\". $this->getPaymentController() .\"/result', 1,1, 'ERROR_CC_DECLINED_CARD', 'Leider kann die eingegebene \"\n .\"Kreditkarte nicht akzeptiert werden. Bitte w&auml;hlen Sie eine andere Karte oder Bezahlungsmethode.'),\n ('frontend/\". $this->getPaymentController() .\"/result', 1,1, 'ERROR_CC_EXPIRED', 'Leider ist die eingegebene Kreditkarte \"\n .\"abgelaufen. Bitte w&auml;hlen Sie eine andere Karte oder Bezahlungsmethode.'),\n ('frontend/\". $this->getPaymentController() .\"/result', 1,1, 'ERROR_CC_INVALIDCVV', 'Leider ist die eingegebene \"\n .\"Kartenpr&uuml;fnummer nicht korrekt. Bitte versuchen Sie es erneut.'),\n ('frontend/\". $this->getPaymentController() .\"/result', 1,1, 'ERROR_CC_EXPIRY', 'Leider ist das eingegebene Ablaufdatum \"\n .\"nicht korrekt. Bitte versuchen Sie es erneut.'),\n ('frontend/\". $this->getPaymentController() .\"/result', 1,1, 'ERROR_CC_LIMIT_EXCEED', 'Leider &uuml;bersteigt der zu \"\n .\"zahlende Betrag das Limit Ihrer Kreditkarte. Bitte w&auml;hlen Sie eine andere Karte oder \"\n .\"Bezahlsmethode.'),\n ('frontend/\". $this->getPaymentController() .\"/result', 1,1, 'ERROR_CC_3DAUTH', 'Ihr Passwort wurde leider nicht korrekt \"\n .\"eingegeben. Bitte versuchen Sie es erneut.'),\n ('frontend/\". $this->getPaymentController() .\"/result', 1,1, 'ERROR_CC_3DERROR', 'Leider gab es einen Fehler bei der \"\n .\"Durchf&uuml;hrung Ihrer Zahlung. Bitte versuchen Sie es erneut.'),\n ('frontend/\". $this->getPaymentController() .\"/result', 1,1, 'ERROR_CC_NOBRAND', 'Leider gab es einen Fehler bei der \"\n .\"Durchf&uuml;hrung Ihrer Zahlung. Bitte versuchen Sie es erneut.'),\n ('frontend/\". $this->getPaymentController() .\"/result', 1,1, 'ERROR_GENERAL_LIMIT_AMOUNT', 'Leider &uuml;bersteigt der \"\n .\"zu zahlende Betrag Ihr Limit. Bitte w&auml;hlen Sie eine andere Bezahlsmethode.'),\n ('frontend/\". $this->getPaymentController() .\"/result', 1,1, 'ERROR_GENERAL_LIMIT_TRANSACTIONS', 'Leider &uuml;bersteigt \"\n .\"der zu zahlende Betrag Ihr Transaktionslimit. Bitte w&auml;hlen Sie eine andere Bezahlsmethode.'),\n ('frontend/\". $this->getPaymentController() .\"/result', 1,1, 'ERROR_CC_DECLINED_AUTH', 'Leider ist Ihre Zahlung \"\n .\"fehlgeschlagen. Bitte versuchen Sie es erneut.'),\n ('frontend/\". $this->getPaymentController() .\"/result', 1,1, 'ERROR_GENERAL_DECLINED_RISK', 'Leider ist Ihre Zahlung \"\n .\"fehlgeschlagen. Bitte versuchen Sie es erneut.'),\n ('frontend/\". $this->getPaymentController() .\"/result', 1,1, 'ERROR_CC_ADDRESS', 'Leider konnten wir Ihre Kartendaten \"\n .\"nicht akzeptieren. Ihre Adresse stimmt nicht mit der Herkunft Ihrer Karte &uuml;berein.'),\n ('frontend/\". $this->getPaymentController() .\"/result', 1,1, 'ERROR_GENERAL_CANCEL', 'Der Vorgang wurde auf Ihren Wunsch \"\n .\"abgebrochen. Bitte versuchen Sie es erneut.'),\n ('frontend/\". $this->getPaymentController() .\"/result', 1,1, 'ERROR_CC_RECURRING', 'F&uuml;r die gewählte Karte wurden \"\n .\"wiederkehrende Zahlungen deaktiviert. Bitte w&auml;len Sie eine andere Bezahlmethode.'),\n ('frontend/\". $this->getPaymentController() .\"/result', 1,1, 'ERROR_CC_REPEATED', 'Leider ist Ihre Zahlung fehlgeschlagen, \"\n .\"da Sie mehrfach fehlerhafte Angaben gemacht haben. Bitte w&auml;len Sie eine andere Bezahlmethode.'),\n ('frontend/\". $this->getPaymentController() .\"/result', 1,1, 'ERROR_GENERAL_ADDRESS', 'Leider ist Ihre Zahlung \"\n .\"fehlgeschlagen. Bitte kontrollieren Sie Ihre pers&ouml;nlichen Angaben.'),\n ('frontend/\". $this->getPaymentController() .\"/result', 1,1, 'ERROR_GENERAL_BLACKLIST', 'Die gew&auml;hlte Bezahlmethode \"\n .\"steht leider nicht zur Verfügung. Bitte w&auml;len Sie eine andere Bezahlmethode.'),\n ('frontend/\". $this->getPaymentController() .\"/result', 1,1, 'ERROR_GENERAL_GENERAL', 'Leider konnten wir Ihre Transaktion \"\n .\"nicht durchf&uuml;hren. Bitte versuchen Sie es erneut.'),\n ('frontend/\". $this->getPaymentController() .\"/result', 1,1, 'ERROR_GENERAL_TIMEOUT', 'Leider konnten wir Ihre Transaktion \"\n .\"nicht durchf&uuml;hren. Bitte versuchen Sie es erneut.'),\n ('frontend/\". $this->getPaymentController() .\"/result', 1,1, 'ERROR_GIRO_NOSUPPORT', 'Giropay wird leider f&uuml;r diese \"\n .\"Transaktion nicht unterstützt. Bitte w&auml;len Sie eine andere Bezahlmethode.'),\n ('frontend/\". $this->getPaymentController() .\"/result', 1,1, 'ERROR_ADDRESS_PHONE', 'Leider ist Ihre Zahlung \"\n .\"fehlgeschlagen. Bitte geben Sie eine korrekte Telefonnummer an.'),\n ('frontend/\". $this->getPaymentController() .\"/result', 1,1, 'ERROR_GENERAL_REDIRECT', 'Fehler vor Weiterleitung.'),\n ('frontend/\". $this->getPaymentController() .\"/result', 1,1, 'ERROR_CAPTURE_BACKEND', 'Die Transaktion kann nicht gecaptured werden.'),\n ('frontend/\". $this->getPaymentController() .\"/result', 1,1, 'ERROR_MERCHANT_SSL_CERTIFICATE',\n 'SSL-Zertifikat Problem, wenden Sie sich bitte an den Händler.'),\n ('frontend/\". $this->getPaymentController() .\"/result', 1,1, 'ERROR_UNKNOWN', 'Leider konnten wir Ihre Transaktion \"\n .\"nicht durchf&uuml;hren. Bitte versuchen Sie es erneut.'),\n ('frontend/\". $this->getPaymentController() .\"/result', 1,1, 'ERROR_GENERAL_NORESPONSE', 'Leider konnte ihre Zahlung \"\n .\"nicht best&auml;tigt werden. Bitte setzen Sie sich mit dem Händler in Verbindung.'),\n ('frontend/\". $this->getPaymentController() .\"/result', 1,1, 'ERROR_MESSAGE_SESSION_TIMEOUT', 'Ihre Zahlung wird \"\n .\"zurückerstattet wegen der Session Timeout, bitte anmelden, um die Zahlung zu beenden.'),\n ('frontend/\". $this->getPaymentController() .\"/result', 1,1, 'ERROR_MESSAGE_SESSION_TIMEOUT_WHITOUT_REFUND', 'Ihre Zahlung \"\n .\"ist aufgrund des Session-Timeouts fehlgeschlagen'),\n ('frontend/\". $this->getPaymentController() .\"/result', 1,1, 'ERROR_EASYCREDIT_IBAN', 'Die IBAN \"\n .\"entspricht nicht dem IBAN-Länder-Format.'),\n ('frontend/\". $this->getPaymentController() .\"/result', 1,1, 'ERROR_EASYCREDIT_DOB', 'Das eingegebene Datum muss in \"\n .\"der Vergangenheit liegen'),\n ('frontend/\". $this->getPaymentController() .\"/result', 1,1, 'ERROR_EASYCREDIT_ADDRESS', 'Die Adresse konnte nicht gefunden \"\n .\"werden. Bitte wählen Sie eine andere Liefer- und Rechnungsadresse oder wählen Sie eine andere Zahlungsart.'),\n\n ('sidebar', 1,2, 'FRONTEND_MC_INFO', 'My Payment Information'),\n ('sidebar', 1,1, 'FRONTEND_MC_INFO', 'Meine Zahlungsarten'),\n\n ('frontend/account/sidebar', 1,2, 'FRONTEND_MC_INFO', 'My Payment Information'),\n ('frontend/account/sidebar', 1,1, 'FRONTEND_MC_INFO', 'Meine Zahlungsarten'),\n\n ('frontend/payment_information/information', 1,2, 'FRONTEND_MC_INFO', 'My Payment Information'),\n ('frontend/payment_information/information', 1,2, 'SUCCESS_MC_ADD', 'Congratulations, your \"\n .\"payment information were successfully saved.'),\n ('frontend/payment_information/information', 1,2, 'SUCCESS_MC_UPDATE', 'Congratulations, your \"\n .\"payment information were successfully updated.'),\n ('frontend/payment_information/information', 1,2, 'SUCCESS_MC_DELETE', 'Congratulations, your \"\n .\"payment information were successfully deleted.'),\n ('frontend/payment_information/information', 1,2, 'FRONTEND_MC_CC', 'Credit Cards'),\n ('frontend/payment_information/information', 1,2, 'FRONTEND_MC_ENDING', 'ending in:'),\n ('frontend/payment_information/information', 1,2, 'FRONTEND_MC_VALIDITY', 'expires on:'),\n ('frontend/payment_information/information', 1,2, 'FRONTEND_MC_BT_DEFAULT', 'Default'),\n ('frontend/payment_information/information', 1,2, 'FRONTEND_MC_BT_SETDEFAULT', 'Set as Default'),\n ('frontend/payment_information/information', 1,2, 'FRONTEND_MC_BT_CHANGE', 'Change'),\n ('frontend/payment_information/information', 1,2, 'FRONTEND_MC_BT_DELETE', 'Delete'),\n ('frontend/payment_information/information', 1,2, 'FRONTEND_MC_BT_ADD', 'Add'),\n ('frontend/payment_information/information', 1,2, 'FRONTEND_MC_DD', 'Direct Debit'),\n ('frontend/payment_information/information', 1,2, 'FRONTEND_MC_ACCOUNT', 'Account: ****'),\n ('frontend/payment_information/information', 1,2, 'FRONTEND_MC_HOLDER', 'Holder:'),\n ('frontend/payment_information/information', 1,2, 'FRONTEND_MC_PAYPAL', 'PayPal'),\n ('frontend/payment_information/information', 1,2, 'FRONTEND_MC_EMAIL', 'Email:'),\n ('frontend/payment_information/information', 1,2, 'ERROR_MC_ADD', 'We are sorry. Your attempt \"\n .\"to save your payment information was not successful, please try again.'),\n ('frontend/payment_information/information', 1,2, 'ERROR_MC_UPDATE', 'We are sorry. Your \"\n .\"attempt to update your payment information was not successful, please try again.'),\n ('frontend/payment_information/information', 1,2, 'ERROR_MC_DELETE', 'We are sorry. Your \"\n .\"attempt to delete your payment information was not successful, please try again.'),\n\n ('frontend/payment_information/information', 1,1, 'FRONTEND_MC_INFO', 'Meine Zahlungsarten'),\n ('frontend/payment_information/information', 1,1, 'SUCCESS_MC_ADD', 'Ihre Zahlungsart wurde \"\n .\"erfolgreich angelegt'),\n ('frontend/payment_information/information', 1,1, 'SUCCESS_MC_UPDATE', 'Ihre Zahlungsdaten \"\n .\"wurden erfolgreich ge&auml;ndert'),\n ('frontend/payment_information/information', 1,1, 'SUCCESS_MC_DELETE', 'Ihre Zahlungsart \"\n .\"wurde erfolgreich gel&ouml;scht'),\n ('frontend/payment_information/information', 1,1, 'FRONTEND_MC_CC', 'Kreditkarten'),\n ('frontend/payment_information/information', 1,1, 'FRONTEND_MC_ENDING', 'endet auf:'),\n ('frontend/payment_information/information', 1,1, 'FRONTEND_MC_VALIDITY', 'g&uuml;ltig bis:'),\n ('frontend/payment_information/information', 1,1, 'FRONTEND_MC_BT_DEFAULT', 'Standard'),\n ('frontend/payment_information/information', 1,1, 'FRONTEND_MC_BT_SETDEFAULT', 'Als Standard \"\n .\"setzen'),\n ('frontend/payment_information/information', 1,1, 'FRONTEND_MC_BT_CHANGE', '&Auml;ndern'),\n ('frontend/payment_information/information', 1,1, 'FRONTEND_MC_BT_DELETE', 'Entfernen'),\n ('frontend/payment_information/information', 1,1, 'FRONTEND_MC_BT_ADD', 'Hinzuf&uuml;gen'),\n ('frontend/payment_information/information', 1,1, 'FRONTEND_MC_DD', 'Lastschrift'),\n ('frontend/payment_information/information', 1,1, 'FRONTEND_MC_ACCOUNT', 'Konto: ****'),\n ('frontend/payment_information/information', 1,1, 'FRONTEND_MC_HOLDER', 'Inhaber:'),\n ('frontend/payment_information/information', 1,1, 'FRONTEND_MC_PAYPAL', 'PayPal'),\n ('frontend/payment_information/information', 1,1, 'FRONTEND_MC_EMAIL', 'Email:'),\n ('frontend/payment_information/information', 1,1, 'ERROR_MC_ADD', 'Leider ist das Anlegen Ihrer \"\n .\"Zahlungsart fehlgeschlagen. Bitte versuchen Sie es erneut'),\n ('frontend/payment_information/information', 1,1, 'ERROR_MC_UPDATE', 'Leider ist die &Auml;nderung \"\n .\"Ihrer Zahlungsdaten fehlgeschlagen. Bitte versuchen Sie es erneut'),\n ('frontend/payment_information/information', 1,1, 'ERROR_MC_DELETE', 'Leider ist das l&ouml;schen \"\n .\"Ihrer Zahlungsart fehlgeschlagen. Bitte versuchen Sie es erneut'),\n\n ('frontend/payment_information/form/register_cp', 1,2, 'FRONTEND_MC_SAVE', 'Save Payment Information'),\n ('frontend/payment_information/form/register_cp', 1,2, 'ERROR_MC_ADD', 'We are sorry. Your attempt \"\n .\"to save your payment information was not successful, please try again.'),\n ('frontend/payment_information/form/register_cp', 1,2, 'FRONTEND_BT_CANCEL', 'Cancel'),\n ('frontend/payment_information/form/register_cp', 1,2, 'FRONTEND_BT_REGISTER', 'Register'),\n ('frontend/payment_information/form/register_cp', 1,2, 'FRONTEND_TT_TESTMODE', 'THIS IS A TEST. \"\n .\"NO REAL MONEY WILL BE TRANSFERED'),\n ('frontend/payment_information/form/register_cp', 1,2, 'FRONTEND_TT_REGISTRATION', 'A small amount \"\n .\"(<1 &euro;) will be charged and instantly refunded to verify your account/card details. '),\n\n ('frontend/payment_information/form/register_cp', 1,1, 'FRONTEND_MC_SAVE', 'Zahlungsarten anlegen'),\n ('frontend/payment_information/form/register_cp', 1,1, 'ERROR_MC_ADD', 'Leider ist das Anlegen \"\n .\"Ihrer Zahlungsart fehlgeschlagen. Bitte versuchen Sie es erneut'),\n ('frontend/payment_information/form/register_cp', 1,1, 'FRONTEND_BT_CANCEL', 'Abbrechen'),\n ('frontend/payment_information/form/register_cp', 1,1, 'FRONTEND_BT_REGISTER', 'Registrieren'),\n ('frontend/payment_information/form/register_cp', 1,1, 'FRONTEND_TT_TESTMODE', 'TESTMODUS : ES \"\n .\"FINDET KEINE REALE ZAHLUNG STATT'),\n ('frontend/payment_information/form/register_cp', 1,1, 'FRONTEND_TT_REGISTRATION', 'Hinweis: Bei \"\n .\"der Registrierung wird zur Verifizierung Ihrer Konten/Kartendaten ein kleiner Betrag <1 &euro; \"\n .\"belastet und sofort wieder gut geschrieben. '),\n\n ('frontend/payment_information/form/change_cp', 1,2, 'FRONTEND_MC_CHANGE', 'Change Payment \"\n .\"Information'),\n ('frontend/payment_information/form/change_cp', 1,2, 'ERROR_MC_UPDATE', 'We are sorry. Your \"\n .\"attempt to update your payment information was not successful, please try again.'),\n ('frontend/payment_information/form/change_cp', 1,2, 'FRONTEND_BT_CANCEL', 'Cancel'),\n ('frontend/payment_information/form/change_cp', 1,2, 'FRONTEND_MC_BT_CHANGE', 'Change'),\n ('frontend/payment_information/form/change_cp', 1,2, 'FRONTEND_TT_TESTMODE', 'THIS IS A TEST. \"\n .\"NO REAL MONEY WILL BE TRANSFERED'),\n ('frontend/payment_information/form/change_cp', 1,2, 'FRONTEND_TT_REGISTRATION', 'A small \"\n .\"amount (<1 &euro;) will be charged and instantly refunded to verify your account/card details. '),\n\n ('frontend/payment_information/form/change_cp', 1,1, 'FRONTEND_MC_CHANGE', 'Zahlungsarten \"\n .\"&Auml;ndern'),\n ('frontend/payment_information/form/change_cp', 1,1, 'ERROR_MC_UPDATE', 'Leider ist die &Auml;nderung \"\n .\"Ihrer Zahlungsdaten fehlgeschlagen. Bitte versuchen Sie es erneut'),\n ('frontend/payment_information/form/change_cp', 1,1, 'FRONTEND_BT_CANCEL', 'Abbrechen'),\n ('frontend/payment_information/form/change_cp', 1,1, 'FRONTEND_MC_BT_CHANGE', '&Auml;ndern'),\n ('frontend/payment_information/form/change_cp', 1,1, 'FRONTEND_TT_TESTMODE', 'TESTMODUS : ES FINDET \"\n .\"KEINE REALE ZAHLUNG STATT'),\n ('frontend/payment_information/form/change_cp', 1,1, 'FRONTEND_TT_REGISTRATION', 'Hinweis: Bei der \"\n .\"Registrierung wird zur Verifizierung Ihrer Konten/Kartendaten ein kleiner Betrag <1 &euro; belastet \"\n .\"und sofort wieder gut geschrieben. '),\n\n ('frontend/payment_information/delete', 1,2, 'FRONTEND_MC_DELETE', 'Delete Payment Information'),\n ('frontend/payment_information/delete', 1,2, 'ERROR_MC_DELETE', 'We are sorry. Your attempt to delete \"\n .\"your payment information was not successful, please try again.'),\n ('frontend/payment_information/delete', 1,2, 'FRONTEND_MC_DELETESURE', 'Are you sure to delete this \"\n .\"payment information?'),\n ('frontend/payment_information/delete', 1,2, 'FRONTEND_BT_CANCEL', 'Cancel'),\n ('frontend/payment_information/delete', 1,2, 'FRONTEND_BT_CONFIRM', 'Confirm'),\n\n ('frontend/payment_information/delete', 1,1, 'FRONTEND_MC_DELETE', 'Zahlungsarten l&ouml;schen'),\n ('frontend/payment_information/delete', 1,1, 'ERROR_MC_DELETE', 'Leider ist das l&ouml;schen Ihrer \"\n .\"Zahlungsart fehlgeschlagen. Bitte versuchen Sie es erneut'),\n ('frontend/payment_information/delete', 1,1, 'FRONTEND_MC_DELETESURE', 'Sind Sie sicher, dass Sie \"\n .\"diese Zahlungsart l&ouml;schen m&ouml;chten?'),\n ('frontend/payment_information/delete', 1,1, 'FRONTEND_BT_CANCEL', 'Abbrechen'),\n ('frontend/payment_information/delete', 1,1, 'FRONTEND_BT_CONFIRM', 'Best&auml;tigen'),\n\n ('backend/order/main', 1,2, 'SUCCESS_IN_REVIEW', 'Transaction succeeded but has been suspended for \"\n .\"manual review. Please update transaction status in 24 hours.'),\n ('backend/order/main', 1,1, 'SUCCESS_IN_REVIEW', 'Die Transaktion war erfolgreich, sollte aber \"\n .\"manuell überprüft werden. Bitte aktualisieren Sie den Status der Transaktion manuell nach 24 Stunden'),\n\n ('backend/error/index', 1,1, 'ERROR_CAPTURE_BACKEND', 'Transaction can not be captured.'),\n ('backend/error/index', 1,2, 'ERROR_CAPTURE_BACKEND', 'Die Transaktion kann nicht gecaptured werden.'),\n ('backend/error/index', 1,2, 'ERROR_REFUND_BACKEND', 'Transaction can not be refunded or reversed.'),\n ('backend/error/index', 1,1, 'ERROR_REFUND_BACKEND', 'Die Transaktion kann nichrt refunded oder \"\n .\"reversed werden.'),\n ('backend/error/index', 1,1, 'ERROR_REORDER_BACKEND', 'Card holder has advised his bank to stop \"\n .\"this recurring payment.'),\n ('backend/error/index', 1,2, 'ERROR_REORDER_BACKEND', 'Der Kunde hat seine Bank angewiesen, keine \"\n .\"wiederkehrenden Zahlungen mehr zuzulassen. .'),\n ('backend/error/index', 1,1, 'ERROR_RECEIPT_BACKEND', 'Receipt can not be performed.'),\n ('backend/error/index', 1,2, 'ERROR_RECEIPT_BACKEND', 'Das Receipt kann nicht prozessiert werden.'),\"\n .\"('confirm', 1,2, 'FRONTEND_EASYCREDIT_CONFIRM_BUTTON', 'Continue to Ratenkauf by easyCredit'),\n ('confirm', 1,1, 'FRONTEND_EASYCREDIT_CONFIRM_BUTTON', 'Weiter zu Ratenkauf by easyCredit')\n \"\n ;\n\n Shopware()->Db()->query($sql);\n }", "public function getTranslations()\n {\n return $this->translations;\n }", "protected function getTranslations() {\n\t\treturn $this->_viewHelper->getTranslations();\n\t}", "private function getTranslatedFields() {\n $langs = explode(',',$_REQUEST['translations']);\n\t\t$translations = array();\n\t\tforeach($langs as $lang){\t\t\n\t\t\t$translations[$lang] = array(\n\t\t\t\t'id' => (int) $_REQUEST['TranslationID'.$lang],\n\t\t\t\t'pagetitle' => $_REQUEST['pagetitle'.$lang],\n\t\t\t\t'longtitle' => $_REQUEST['longtitle'.$lang],\n\t\t\t\t'menutitle' => $_REQUEST['menutitle'.$lang],\n\t\t\t\t'introtext' => $_REQUEST['introtext'.$lang],\n\t\t\t\t'description' => $_REQUEST['description'.$lang],\n\t\t\t\t'content' => $_REQUEST['content'.$lang],\n\t\t\t);\n\t\t\tforeach($translations[$lang] as $key => $val){\n\t\t\t\tif($translations[$lang][$key] == null){\n\t\t\t\t $translations[$lang][$key] = '';\n\t\t\t\t};\n\t\t\t};\t\n\t\t};\n\t\treturn $translations;\t\t\n\t}", "function update_translation($postdata,$id) {\r\n\r\n foreach($postdata as $lang => $val){\r\n\t\t if(array_filter($val)){\r\n\t\t $title = $val['title'];\r\n\r\n $transAvailable = $this->getBackTranslation($lang,$id);\r\n\r\n if(empty($transAvailable)){\r\n $data = array(\r\n 'trans_title' => $title,\r\n 'trans_extras_id' => $id,\r\n 'trans_lang' => $lang\r\n\r\n );\r\n\t\t\t\t$this->db->insert('pt_extras_translation', $data);\r\n\r\n }else{\r\n\r\n $data = array(\r\n 'trans_title' => $title,\r\n );\r\n\t\t\t\t$this->db->where('trans_extras_id', $id);\r\n\t\t\t\t$this->db->where('trans_lang', $lang);\r\n\t\t\t $this->db->update('pt_extras_translation', $data);\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n\t\t}", "public function getTranslations()\n {\n return array_map(function ($id) {\n return $id ? new static($id, $this->model) : false;\n }, $this->getTranslationsIDs());\n }", "public function saveData() //ranslation($source)\n {\n $this->contentType->text = $this->getTextList();\n $this->contentType->saveType();\n\n return $this->contentType->getDataId();\n\n\n //foreach ((new LanguageType())->getLanguageData() as $languageRow) {\n\n\n //(new TranslationText())->saveText($languageRow->id, $source, $this->sourceType, $this->translation[$languageRow->code]->getValue());\n\n //}\n\n }", "protected function translations(): array\n {\n return $this->cache->get('translations', function (): array {\n return array_values(array_map(function (SplFileInfo $file): string {\n return $file->getBasename('.yaml');\n }, iterator_to_array(\n Finder::create()->in($this->config->get('translations_path'))->name('*.yaml')\n )));\n });\n }", "public static function getArrayTranslations() {\n return array(\n\n 'mot' => 'mot', 'secondmot' => 'second mot', 'bienvenue' => 'bienvenue'\n\n );\n\n }", "public function ajax_save_phrase()\n {\n $translation = ee()->input->post('translation');\n $status = ee()->input->post('publisher_save_status');\n\n // Stop here if false or if the array is empty\n if ( !$translation || empty($translation))\n {\n ee()->publisher_helper->send_ajax_response('failure');\n }\n\n $result = ee()->publisher_phrase->save_translation($translation, $status);\n\n if ($result)\n {\n ee()->publisher_helper->send_ajax_response('success');\n }\n else\n {\n ee()->publisher_helper->send_ajax_response($result);\n }\n }", "private function populateTranslations()\n {\n //translations\n $aRelated = $this->owner->getRelatedRecords();\n if (isset($aRelated[$this->relation]) && $aRelated[$this->relation] != null) {\n if (is_array($aRelated[$this->relation])) {\n foreach ($aRelated[$this->relation] as $model) {\n $this->_models[$model->getAttribute($this->languageField)] = $model;\n }\n } else {\n $model = $aRelated[$this->relation];\n $this->_models[$model->getAttribute($this->languageField)] = $model;\n }\n }\n }", "protected function saveTranslation()\n {\n if (Config::get('translation.disable_save_event')) {\n $dispatcher = self::getEventDispatcher();\n self::unsetEventDispatcher();\n $this->save();\n if (Config::get('translation.translation_events')) {\n $this->fireModelEvent('translated', false);\n }\n self::setEventDispatcher($dispatcher);\n }\n\n $this->save();\n $this->fireModelEvent('translated', false);\n }", "protected function getTranslation()\n {\n $language = $this->request->getBestLanguage();\n\n // Check if we have a translation file for that lang\n // TODO 处理英文\n if (file_exists(APP_PATH . \"/app/messages/\" . $language . \".php\")) {\n require_once APP_PATH. '/app/messages/'. $language . \".php\";\n } else {\n require_once APP_PATH. '/app/messages/zh-CN.php';\n // Fallback to some default\n// require \"../messages/en.php\";\n }\n\n // Return a translation object\n return new NativeArray(\n array(\n \"content\" => $messages\n )\n );\n }", "public function translate_store(Request $request)\n {\n\n if (env('DEMO_MODE') === \"YES\") {\n Alert::warning('warning', 'This is demo purpose only');\n return back();\n }\n\n try {\n $language = Language::findOrFail($request->id);\n\n //check the key have translate data\n $data = openJSONFile($language->code);\n foreach ($request->translations as $key => $value) {\n $data[$key] = $value;\n }\n\n //save the new keys translate data\n saveJSONFile($language->code, $data);\n\n notify()->success(translate('Translated'));\n \n return back();\n } catch (\\Throwable $th) {\n Alert::error(translate('Whoops'), translate('Something went wrong'));\nreturn back();\n }\n \n }", "public function getTranslationsById()\n {\n if (!($arColl = $this->getTranslations())) {\n\n return [];\n }\n $out = [];\n foreach ($arColl as $trans) {\n if (!$trans->getId()) {\n continue;\n }\n $out[$trans->getId()] = $trans;\n }\n\n return$out;\n }", "public function getAllTranslationByLanguage();", "public function saveDataProvider(): array\n {\n return [\n [['original' => 'translation']],\n [['original' => '']],\n ];\n }", "public function translated();", "public function translated();", "public function testSaveNewRecordWithTranslatesField(): void\n {\n $table = $this->getTableLocator()->get('Articles');\n $table->getValidator()->add('title', 'notBlank', ['rule' => 'notBlank']);\n $table->addBehavior('Translate', [\n 'fields' => ['title'],\n ]);\n $table->setEntityClass(TranslateArticle::class);\n\n $data = [\n 'author_id' => 1,\n 'published' => 'N',\n '_translations' => [\n 'en' => [\n 'title' => 'Title EN',\n 'body' => 'Body EN',\n ],\n 'es' => [\n 'title' => 'Title ES',\n ],\n ],\n ];\n\n $article = $table->patchEntity($table->newEmptyEntity(), $data);\n $result = $table->save($article);\n\n $this->assertNotFalse($result);\n\n $expected = [\n [\n 'en' => [\n 'title' => 'Title EN',\n 'locale' => 'en',\n ],\n 'es' => [\n 'title' => 'Title ES',\n 'locale' => 'es',\n ],\n ],\n ];\n $result = $table->find('translations')->where(['id' => $result->id]);\n $this->assertEquals($expected, $this->_extractTranslations($result)->toArray());\n }", "protected function sectionTranslations()\n {\n $found = []; // translations found in latte templates\n foreach (glob('template/*.latte') as $file) {\n $tempFileContents = file_get_contents($file);\n Assert::string($tempFileContents);\n preg_match_all('~\\{=(\"([^\"]+)\"|\\'([^\\']+)\\')\\|translate\\}~i', $tempFileContents, $matches);\n $found = array_merge($found, $matches[2]);\n }\n $found = array_unique($found);\n $output = '<h1><i class=\"fa fa-globe\"></i> ' . $this->tableAdmin->translate('Translations')\n . '</h1><div id=\"agenda-translations\">'\n . '<form action=\"\" method=\"post\" onsubmit=\"return confirm(\\''\n . $this->tableAdmin->translate('Are you sure?') . '\\')\">'\n . Tools::htmlInput('translations', '', 1, array('type' => 'hidden'))\n . Tools::htmlInput('token', '', end($_SESSION['token']), 'hidden')\n . Tools::htmlInput('old_name', '', '', array('type' => 'hidden', 'id' => 'old_name'))\n . '<table class=\"table table-striped\"><thead><tr><th style=\"width:'\n . intval(100 / (count($this->MyCMS->TRANSLATIONS) + 1)) . '%\">'\n . Tools::htmlInput('one', '', false, 'radio') . '</th>';\n $translations = $keys = [];\n $localisation = new L10n($this->prefixUiL10n, $this->MyCMS->TRANSLATIONS);\n foreach ($this->MyCMS->TRANSLATIONS as $key => $value) {\n $output .= \"<th>$value</th>\";\n $translations[$key] = $localisation->readLocalisation($key);\n $keys = array_merge($keys, array_keys($translations[$key]));\n }\n $output .= '</tr></thead><tbody>' . PHP_EOL;\n $keys = array_unique($keys);\n natcasesort($keys);\n foreach ($keys as $key) {\n $output .= '<tr><th>'\n . Tools::htmlInput('one', '', $key, array('type' => 'radio', 'class' => 'translation')) . ' '\n . Tools::h((string) $key) . '</th>';\n foreach ($this->MyCMS->TRANSLATIONS as $code => $value) {\n $output .= '<td>' . Tools::htmlInput(\n \"tr[$code][$key]\",\n '',\n Tools::set($translations[$code][$key], ''),\n ['class' => 'form-control form-control-sm', 'title' => \"$code: $key\"]\n ) . '</td>';\n }\n $output .= '</tr>' . PHP_EOL;\n if ($key = array_search($key, $found)) {\n unset($found[$key]);\n }\n }\n $output .= '<tr><td>' . Tools::htmlInput(\n 'new[0]',\n '',\n '',\n array('class' => 'form-control form-control-sm', 'title' => $this->tableAdmin->translate('New record'))\n ) . '</td>';\n foreach ($this->MyCMS->TRANSLATIONS as $key => $value) {\n $output .= '<td>' . Tools::htmlInput(\n \"new[$key]\",\n '',\n '',\n ['class' => 'form-control form-control-sm',\n 'title' => $this->tableAdmin->translate('New record') . ' (' . $value . ')']\n ) . '</td>';\n }\n $output .= '</tr></tbody></table>\n <button name=\"translations\" type=\"submit\" class=\"btn btn-secondary\"><i class=\"fa fa-save\"></i> '\n . $this->tableAdmin->translate('Save') . '</button>\n <button name=\"delete\" type=\"submit\" class=\"btn btn-secondary\" value=\"1\"><i class=\"fa fa-dot-circle\"></i>\n <i class=\"fa fa-trash\"></i> ' . $this->tableAdmin->translate('Delete') . '</button>\n <fieldset class=\"d-inline-block position-relative\"><div class=\"input-group\" id=\"rename-fieldset\">'\n . '<div class=\"input-group-prepend\">\n <button class=\"btn btn-secondary\" type=\"submit\"><i class=\"fa fa-dot-circle\"></i> '\n . '<i class=\"fa fa-i-cursor\"></i> ' . $this->tableAdmin->translate('Rename') . '</button>\n </div>'\n . Tools::htmlInput('new_name', '', '', array('class' => 'form-control', 'id' => 'new_name'))\n . '</div></fieldset>\n </form></div>' . PHP_EOL;\n $output .= count($found) ? '<h2 class=\"mt-4\">' .\n $this->tableAdmin->translate('Missing translations in templates') . '</h2><ul>' : '';\n foreach ($found as $value) {\n $output .= '<li><code>' . Tools::h($value) . '</code></li>' . PHP_EOL;\n }\n $output .= count($found) ? '</ul>' : '';\n return $output;\n }", "public function beforeSave() {\n $beforeSave = parent::beforeSave();\n \n // Get all translated data as arrays\n $translations = $this->getTranslatedFields();\n\t\t\n\t\t$resId = $this->getProperty('id');\n\t\t\n foreach($translations as $lang => $fields){ \n \tif(\t$row = $this->modx->getObject('Translation',array(\n\t\t\t\t'articleID' => $resId,\n\t\t\t\t'language' => $lang\n\t\t\t))){\n\t\t\t\t$row->set('pagetitle',$fields['pagetitle']);\n\t\t\t\t$row->set('longtitle',$fields['longtitle']);\n\t\t\t\t$row->set('menutitle',$fields['menutitle']);\n\t\t\t\t$row->set('introtext',$fields['introtext']);\n\t\t\t\t$row->set('description',$fields['description']);\n\t\t\t\t$row->set('content',$fields['content']);\n\t\t \t$row->save();\n \t};\n };\n \n return $beforeSave;\n }", "public function getTranslations()\n {\n return $this->language;\n }", "private function changeLangFileContent() \n {\n $this->read();\n $this->arrayLang[$this->key] = $this->value;\n $this->save();\n }", "public function translations() {\n return $this->client->get(self::$apiName, array());\n }", "public function run()\n {\n DB::table('tag_translations')->insert([\n [\n 'tag' => 'back_activity_categories_title',\n 'value' => 'Categorie di Attività',\n 'front_section_id' => 1,\n 'language_id' => 1\n ],\n [\n 'tag' => 'back_general_create',\n 'value' => 'Creare',\n 'front_section_id' => 1,\n 'language_id' => 1\n ],\n [\n 'tag' => 'back_general_edit',\n 'value' => 'Modificare',\n 'front_section_id' => 1,\n 'language_id' => 1\n ],\n [\n 'tag' => 'back_general_show',\n 'value' => 'Mostrare',\n 'front_section_id' => 1,\n 'language_id' => 1\n ],\n [\n 'tag' => 'back_general_home',\n 'value' => 'Home',\n 'front_section_id' => 1,\n 'language_id' => 1\n ],\n [\n 'tag' => 'back_general_addnew',\n 'value' => 'Aggiungere nuova',\n 'front_section_id' => 1,\n 'language_id' => 1\n ],\n [\n 'tag' => 'back_general_continue',\n 'value' => 'Continua',\n 'front_section_id' => 1,\n 'language_id' => 1\n ],\n [\n 'tag' => 'back_general_save',\n 'value' => 'Salvare',\n 'front_section_id' => 1,\n 'language_id' => 1\n ],\n [\n 'tag' => 'back_general_cancel',\n 'value' => 'Annulla',\n 'front_section_id' => 1,\n 'language_id' => 1\n ],\n [\n 'tag' => 'back_general_close',\n 'value' => 'Vicinoicino',\n 'front_section_id' => 1,\n 'language_id' => 1\n ],\n [\n 'tag' => 'back_general_back',\n 'value' => 'Indietro',\n 'front_section_id' => 1,\n 'language_id' => 1\n ],\n [\n 'tag' => 'back_general_reset',\n 'value' => 'Reset',\n 'front_section_id' => 1,\n 'language_id' => 1\n ],\n [\n 'tag' => 'back_general_language',\n 'value' => 'Linguaggio',\n 'front_section_id' => 1,\n 'language_id' => 1\n ],\n [\n 'tag' => 'back_general_name',\n 'value' => 'Nome',\n 'front_section_id' => 1,\n 'language_id' => 1\n ],\n [\n 'tag' => 'back_general_description',\n 'value' => 'Descrizione',\n 'front_section_id' => 1,\n 'language_id' => 1\n ],\n [\n 'tag' => 'back_general_title',\n 'value' => 'Titolo',\n 'front_section_id' => 1,\n 'language_id' => 1\n ],\n [\n 'tag' => 'back_general_subtitle',\n 'value' => 'Sottotitolo',\n 'front_section_id' => 1,\n 'language_id' => 1\n ],\n [\n 'tag' => 'back_general_code',\n 'value' => 'Cod',\n 'front_section_id' => 1,\n 'language_id' => 1\n ],\n [\n 'tag' => 'back_general_select',\n 'value' => 'Seleziona un\\'opzione',\n 'front_section_id' => 1,\n 'language_id' => 1\n ],\n [\n 'tag' => 'back_general_status',\n 'value' => 'Stato',\n 'front_section_id' => 1,\n 'language_id' => 1\n ],\n [\n 'tag' => 'back_general_index',\n 'value' => 'Listato',\n 'front_section_id' => 1,\n 'language_id' => 1\n ],\n [\n 'tag' => 'back_general_id',\n 'value' => 'ID',\n 'front_section_id' => 1,\n 'language_id' => 1\n ],\n [\n 'tag' => 'back_general_action',\n 'value' => 'Azione',\n 'front_section_id' => 1,\n 'language_id' => 1\n ],\n\n [\n 'tag' => 'back_general_tax',\n 'value' => 'Imposta',\n 'front_section_id' => 1,\n 'language_id' => 1\n ],\n\n [\n 'tag' => 'back_general_subtotal',\n 'value' => 'Totale Parziale',\n 'front_section_id' => 1,\n 'language_id' => 1\n ],\n [\n 'tag' => 'back_general_total',\n 'value' => 'Totale',\n 'front_section_id' => 1,\n 'language_id' => 1\n ],\n\n [\n 'tag' => 'back_general_datein',\n 'value' => 'Data di Inizio',\n 'front_section_id' => 1,\n 'language_id' => 1\n ],\n\n [\n 'tag' => 'back_general_dateout',\n 'value' => 'Data di Fine',\n 'front_section_id' => 1,\n 'language_id' => 1\n ],\n\n [\n 'tag' => 'back_general_ricerca',\n 'value' => 'Ricerca',\n 'front_section_id' => 1,\n 'language_id' => 1\n ],\n [\n 'tag' => 'back_general_email',\n 'value' => 'e-mail',\n 'front_section_id' => 1,\n 'language_id' => 1\n ],\n [\n 'tag' => 'back_general_container',\n 'value' => 'Contenitore',\n 'front_section_id' => 1,\n 'language_id' => 1\n ],\n [\n 'tag' => 'back_general_yes',\n 'value' => 'Sì',\n 'front_section_id' => 1,\n 'language_id' => 1\n ],\n [\n 'tag' => 'back_general_no',\n 'value' => 'No',\n 'front_section_id' => 1,\n 'language_id' => 1\n ],\n [\n 'tag' => 'back_general_phone',\n 'value' => 'Telefono',\n 'front_section_id' => 1,\n 'language_id' => 1\n ],\n [\n 'tag' => 'back_newslettes_title',\n 'value' => 'Utenti Della Newsletter',\n 'front_section_id' => 1,\n 'language_id' => 1\n ]\n ]);\n }", "function extras_translated_data($lang, $id) {\r\n\t\t\t\t$this->db->where('trans_extras_id', $id);\r\n\t\t\t\t$this->db->where('trans_lang', $lang);\r\n\t\t\t\treturn $this->db->get('pt_extras_translation')->result();\r\n\t\t}", "public function translated_string($str_arr, $lang, $filename, $lang_id)\n {\n $data = array();\n $ids = array();\n foreach ($str_arr as $key => $value) {\n $ids[] = $key;\n $data[] = array(\n 'id' => $key,\n 'msgstr' => $value,\n 'idlang' => $lang_id\n );\n }\n $this->db->update_batch('language_strings', $data, 'id');\n if ($this->db->affected_rows() > 0) {\n $u_d = $this->select_language_data_byid($lang_id);\n $write_arr = array();\n foreach ($u_d as $value) {\n $write_arr[$value['msgid']] = $value['msgstr'];\n }\n $new_file = $filename;\n unlink($filename);\n $fp = fopen($new_file, \"w\");\n fclose($fp);\n $file = fopen($new_file, \"r+\") or exit(\"Unable to open file!\");\n $data = \"msgid \\\"\\\"\\nmsgstr \\\"\\\"\\n\"\n . \"\\\"Project-Id-Version: bbweb\\\\n\\\"\\n\"\n . \"\\\"POT-Creation-Date: \".date(\"y-m-d H:i:s\").\"\\\\n\\\"\\n\"\n . \"\\\"PO-Revision-Date: \".date(\"y-m-d H:i:s\").\"\\\\n\\\"\\n\"\n . \"\\\"Last-Translator: \\\\n\\\"\\n\"\n . \"\\\"Language-Team: \\\\n\\\"\\n\"\n . \"\\\"Language: \".$lang.\"\\\\n\\\"\\n\"\n . \"\\\"Content-Type: text/plain; charset=UTF-8\\\\n\\\"\\n\"\n . \"\\\"MIME-Version: 1.0\\\\n\\\"\\n\"\n . \"\\\"Content-Transfer-Encoding: 8bit\\\\n\\\"\\n\";\n fwrite($file, $data.\"\\n\");\n foreach ($write_arr as $key => $value) {\n fwrite($file, 'msgid \"' . $key . '\"' . \"\\n\" . 'msgstr \"'.$value.'\"' . \"\\n\\n\");\n }\n fclose($file);\n return true;\n } else {\n return false;\n }\n }", "public function getStrings ()\n {\n return $this->translate;\n }", "public function translations(): HasMany\n {\n return $this->hasMany($this->getTranslationModelName());\n }", "function save_langfile()\n\t{\n\t\t//-----------------------------------------\n\n\t\tif ($this->ipsclass->input['id'] == \"\")\n\t\t{\n\t\t\t$this->ipsclass->admin->error(\"Невозможно определить ID языка\");\n\t\t}\n\n\t\tif ($this->ipsclass->input['lang_file'] == \"\")\n\t\t{\n\t\t\t$this->ipsclass->admin->error(\"Вы должны указать имя языкового модуля, вернитесь назад и попробуйте еще раз\");\n\t\t}\n\n\t\t$this->ipsclass->DB->simple_construct( array( 'select' => '*', 'from' => 'languages', 'where' => \"lid='\".$this->ipsclass->input['id'].\"'\" ) );\n\t\t$this->ipsclass->DB->simple_exec();\n\n\t\tif ( ! $row = $this->ipsclass->DB->fetch_row() )\n\t\t{\n\t\t\t$this->ipsclass->admin->error(\"Невозможно найти язык по введенному ID\");\n\t\t}\n\n\t\t$lang_file = CACHE_PATH.\"cache/lang_cache/\".$row['ldir'].\"/\".$this->ipsclass->input['lang_file'];\n\n\t\tif (! file_exists( $lang_file ) )\n\t\t{\n\t\t\t$this->ipsclass->admin->error(\"Невозможно найти файл '$lang_file', проверьте есть ли он.\");\n\t\t}\n\n\t\tif (! is_writeable( $lang_file ) )\n\t\t{\n\t\t\t$this->ipsclass->admin->error(\"Невозможно записать в файл '$lang_file', проверьте права доступа (CHMOD) и, если необходимо установить права доступа 0777. IPB не может сделать это за вас\");\n\t\t}\n\n\t\t$barney = array();\n\n\t\tforeach ($this->ipsclass->input as $k => $v)\n\t\t{\n\t\t\tif ( preg_match( \"/^XX_(\\S+)$/\", $k, $match ) )\n\t\t\t{\n\t\t\t\tif ( isset($this->ipsclass->input[ $match[0] ]) )\n\t\t\t\t{\n\t\t\t\t\t$v = str_replace(\"&#39;\", \"'\", stripslashes($_POST[ $match[0] ]) );\n\t\t\t\t\t$v = str_replace(\"&#60;\", \"<\", $v );\n\t\t\t\t\t$v = str_replace(\"&#62;\", \">\", $v );\n\t\t\t\t\t$v = str_replace(\"&#38;\", \"&\", $v );\n\t\t\t\t\t$v = str_replace(\"\\r\", \"\", $v );\n\n\t\t\t\t\t$barney[ $match[1] ] = $v;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif ( count($barney) < 1 )\n\t\t{\n\t\t\t$this->ipsclass->admin->error(\"Что-то сделано не так, вернитесь назад и попробуйте еще раз\");\n\t\t}\n\n\t\t$start = \"<?php\\n\\n\".'$lang = array('.\"\\n\";\n\n\t\tforeach($barney as $key => $text)\n\t\t{\n\t\t\t$text = preg_replace(\"/\\n{1,}$/\", \"\", $text);\n\t\t\t$start .= \"\\n'\".$key.\"' => \\\"\".str_replace( '\"', '\\\"', $text).\"\\\",\";\n\t\t}\n\n\t\t$start .= \"\\n\\n);\\n\\n?\".\">\";\n\n\t\tif ($fh = fopen( $lang_file, 'w') )\n\t\t{\n\t\t\tfwrite($fh, $start );\n\t\t\tfclose($fh);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->ipsclass->admin->error(\"Нельзя сделать запись в $lang_file\");\n\t\t}\n\n\t\tif ( $this->ipsclass->input['id'] )\n\t\t{\n\t\t\t$this->ipsclass->admin->done_screen(\"Язык обновлен\", \"Управление языками\", \"{$this->ipsclass->form_code}&code=edit&id={$this->ipsclass->input['id']}\", 'redirect' );\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->ipsclass->admin->done_screen(\"Язык обновлен\", \"Управление языками\", \"{$this->ipsclass->form_code}\", 'redirect' );\n\t\t}\n\t}", "public function getLanguagesTranslations(Request $request, $lang)\n {\n $totalData = 0;\n $columns = array(\n 0 => '#',\n 1 => 'id',\n 2 => 'lang_key',\n 3 => 'lang_value',\n 4 => 'action'\n );\n $limit = $request->input('length');\n $start = $request->input('start');\n $start = $start ? $start / $limit : 0;\n $order = $columns[$request->input('order.0.column')];\n $dir = $request->input('order.0.dir');\n $translations = Translation::where('lang', $lang)->orderBy($order, $dir);\n $totalData = $translations->count();\n\n if (!empty($request->input('search.value'))) {\n $search = $request->input('search.value');\n $translations = $translations->where('id', 'LIKE', \"%{$search}%\")\n ->orWhere('lang_key', 'LIKE', \"%{$search}%\");\n }\n $translations = $translations->paginate($limit, ['*'], 'page', $start + 1);\n $totalFiltered = $translations->total();\n $data = array();\n if (!empty($translations)) {\n foreach ($translations as $key => $language_translation) {\n $nestedData['#'] = '<input type=\"checkbox\" name=\"bulk_delete[]\" class=\"checkboxes\" value=\"' . $language_translation->id . '\" />';\n $nestedData['id'] = ($start * $limit) + $key + 1;\n $nestedData['lang_key'] = $language_translation->lang_key;\n $nestedData['lang_value'] = '<input type=\"text\" class=\"form-control\" name=\"values[' . $language_translation->lang_key . ']\" value=\"' . $language_translation->lang_value . '\" />';\n $delete = route('languages_trans.destroy', encrypt($language_translation->id));\n $exist = $language_translation;\n $comp = true;\n $nestedData['action'] = view('language.partials.translation-action', compact('exist', 'delete', 'language_translation'))->render();\n $data[] = $nestedData;\n }\n }\n $json_data = array(\n \"draw\" => intval($request->input('draw')),\n \"recordsTotal\" => intval($totalData),\n \"recordsFiltered\" => intval($totalFiltered),\n \"data\" => $data\n );\n return json_encode($json_data);\n }", "protected function createEntityPOST() {\n $this->preProcessPost();\n $langs = config_item('languages');\n $langRelTrans = array();\n foreach ($langs as $k => $l) {\n $lang = array('language' => $k);\n $langRel = array('language' => $k);\n $langRelAlias = \"\";\n foreach (ManagerHolder::get($this->managerName)->i18nFields as $f) {\n $key = $f;\n if (strstr($key, '.') !== FALSE) {\n $arr = explode('.', $key);\n $key = str_replace('.', '_', $key);\n $langRel[$arr[1]] = $_POST[$k . '_' . $key];\n $langRelAlias = $arr[0];\n } else {\n $lang[$f] = $_POST[$k . '_' . $key];\n }\n unset($_POST[$k . '_' . $key]);\n }\n $entity[ManagerHolder::get($this->managerName)->translationTableAlias][] = $lang;\n if (!empty($langRelAlias)) {\n $langRelTrans[$langRelAlias]['translations'][] = $langRel;\n }\n }\n $entity = array_merge($entity, $_POST);\n\n $entity = ManagerHolder::get($this->managerName)->createEntityFromArray($entity);\n\n if (!empty($langRelTrans)) {\n $rels = ManagerHolder::get($this->managerName)->getRelations();\n foreach ($langRelTrans as $alias => $transes) {\n if (isset($entity[$alias]['id']) && !empty($entity[$alias]['id'])) {\n $ent = $entity[$alias];\n $ent->synchronizeWithArray($transes);\n ManagerHolder::get($rels[$alias])->update($ent);\n } else {\n $ent = ManagerHolder::get($rels[$alias])->createEntityFromArray($transes);\n $ent['id'] = ManagerHolder::get($rels[$alias])->insert($ent);\n $entity->$alias = $ent;\n }\n }\n }\n\n $this->isValid($entity);\n return $entity;\n }", "protected function load()\n {\n $this->translations = array();\n \n if ($this->language) {\n if ($this->cachepath) {\n if (file_exists($cache = $this->cachepath.'/'.$this->language.'.php')) {\n $this->translations = include($cache);\n }\n } else {\n if (!empty($this->filepaths)) {\n foreach ($this->filepaths as $filepath) {\n $this->loadFilePath($filepath);\n }\n }\n }\n }\n }", "private function extractGettextStrings()\n {\n $translation = null;\n $translationObjects = array();\n $lookupDirectories = array(\n Strata::getVendorPath() . 'strata-mvc' . DIRECTORY_SEPARATOR . 'strata' . DIRECTORY_SEPARATOR . 'src',\n Strata::getSrcPath(),\n Strata::getThemesPath(),\n );\n\n foreach ($lookupDirectories as $directory) {\n $translationObjects = $this->recurseThroughDirectory($directory);\n\n // Merge all translation objects into a bigger one\n foreach ($translationObjects as $t) {\n if (is_null($translation)) {\n $translation = $t;\n } else {\n $translation->mergeWith($t);\n }\n }\n }\n\n return $translation;\n }", "public function getTranslationsArray() {\r\n\t\treturn preg_split('#/#', $this->translation, null, PREG_SPLIT_NO_EMPTY);\r\n\t}", "public static function bootTranslates()\n\t{\n\t\tstatic::saving(\n\t\t\tfunction (Model $model) {\n\t\t\t\t$model->separateTranslationsFromAttributes();\n\t\t\t}\n\t\t);\n\n\t\t// We have to persist the translations after the model has been saved\n\t\t// to avoid the case when saving a new model which doesn't exist prior to saving.\n\t\tstatic::saved(\n\t\t\tfunction (Model $model) {\n\t\t\t\t$model->persistTranslations();\n\n\t\t\t\t$model->mergeTranslationsWithAttributes();\n\t\t\t}\n\t\t);\n\n\t\tstatic::deleted(\n\t\t\tfunction (Model $model) {\n\t\t\t\tif ($model->usesSoftDelete() && ! $model->forceDeleting) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t$model->deleteTranslations();\n\t\t\t}\n\t\t);\n\t}", "public function testSaveExistingRecordWithTranslatesField(): void\n {\n $table = $this->getTableLocator()->get('Articles');\n $table->addBehavior('Translate', ['fields' => ['title', 'body']]);\n $table->setEntityClass(TranslateArticle::class);\n\n $data = [\n 'author_id' => 1,\n 'published' => 'Y',\n '_translations' => [\n 'eng' => [\n 'title' => 'First Article1',\n 'body' => 'First Article content has been updated',\n ],\n 'spa' => [\n 'title' => 'Mi nuevo titulo',\n 'body' => 'Contenido Actualizado',\n ],\n ],\n ];\n\n $article = $table->find()->first();\n $article = $table->patchEntity($article, $data);\n\n $this->assertNotFalse($table->save($article));\n\n $results = $this->_extractTranslations(\n $table->find('translations')->where(['id' => 1])\n )->first();\n\n $this->assertSame('Mi nuevo titulo', $results['spa']['title']);\n $this->assertSame('Contenido Actualizado', $results['spa']['body']);\n\n $this->assertSame('First Article1', $results['eng']['title']);\n $this->assertSame('Description #1', $results['eng']['description']);\n }", "public function getTranslations()\n {\n return $this->hasMany(NewsItemLang::class, ['news_item_id' => 'id']);\n }", "public function persist($locale, array $data)\n {\n $writeCount = 0;\n try {\n $this->em->beginTransaction();\n foreach ($data as $domain => $domainData) {\n foreach ($domainData as $key => $translation) {\n if (strlen($key) > MySqlPlatform::LENGTH_LIMIT_TINYTEXT) {\n continue;\n }\n\n $writeCount++;\n $this->toWrite[] = $this->getTranslationObject($key, $locale, $domain, $translation);\n if (0 === $writeCount % $this->batchSize) {\n $this->write($this->toWrite);\n\n $this->toWrite = [];\n }\n }\n }\n\n if (count($this->toWrite) > 0) {\n $this->write($this->toWrite);\n }\n\n $this->em->commit();\n } catch (\\Exception $exception) {\n $this->em->rollback();\n\n throw $exception;\n }\n\n // update timestamp in case when persist succeed\n $this->metadataCache->updateTimestamp($locale);\n }", "private function _get_translations_from_file () {\n\n\t\t$lang = file_exists(self::DIR_LANGS . $this->lang . '.php')\n\t\t\t\t\t? $this->lang : $this->_default_lang;\n\n\t\trequire self::DIR_LANGS . $lang . '.php';\n\n\t\treturn $t;\n\n\t}", "public function store()\n\t{\n\n\t\t$input = Input::all();\n\t\t$v = Validator::make($input, Translation::$rules);\n\t\tif ($v->passes()) {\n\t\t\t$translation = new Translation();\n\t\t\t$translation->label = $_POST['label'];\n\t\t\t$translation->description = $_POST['description'];\n\t\t\t$translation->de = $_POST['de'];\n\t\t\t$translation->en = $_POST['en'];\n\t\t\t$translation->fr = $_POST['fr'];\n\t\t\tif ($translation->save()) {\n\n\t\t\t\treturn Redirect::route('translation_add')->with('success', 'The translation Created successfully');\n\t\t\t}\n\t\t}\n\t\telse {\n\n\t\t\treturn Redirect::route(\"translation_add\")->with('error', 'The translations already exists!!!');\n\t\t}\n\t}", "public function translationManagement()\n {\n $langListFromDB = $this->service->getLanguageCodeList();\n $dataTransFromDB = $this->service->getTranslateList('', '');\n $langList = ($langListFromDB->status == SDBStatusCode::OK)?$langListFromDB->data:array();\n $dataTrans = ($dataTransFromDB->status == SDBStatusCode::OK)?$dataTransFromDB->data:array();\n $dataComboFilter = $this->service->getNewTransComboList();\n return view(\"dev/translation\", compact(['dataTrans', 'langList', 'dataComboFilter']));\n }", "public function getMultilingual();", "function i18n_path_save_translations($paths, $tpid = NULL) {\n $paths = array_filter($paths);\n if (lock_acquire('i18n_path')) {\n if ($tpid) {\n db_delete('i18n_path')->condition('tpid', $tpid)->execute();\n }\n else {\n $tpid = 1 + (int)db_query('SELECT MAX(tpid) FROM {i18n_path}')->fetchField();\n }\n foreach ($paths as $langcode => $path) {\n db_insert('i18n_path')\n ->fields(array('tpid' => $tpid, 'language' => $langcode, 'path' => $path))\n ->execute();\n }\n lock_release('i18n_path');\n return $tpid;\n } \n}", "function getTrans($locale = true) {\n\t$dir = Storage::directories('config/translate');\n\t$return = null;\n\t$langs = [];\n\tforeach ($dir as $val) {\n\t\t$langs[substr($val, -2)] = Storage::allFiles('config/translate/'.substr($val, -2));\n\t}\n\n\tforeach ($langs as $lang_k => $lang) {\n\t\tforeach ($lang as $j => $value) {\n\t\t\t$key = 'config/translate/'.substr($lang_k, -2);\n\t\t\t$key = explode($key, $value)[1];\n\t\t\t$key = implode('.', explode('/', substr(substr($key, 0, -5), 1)));\n\n\t\t\t$data = trim(Storage::get($value));\n\t\t\t$data = json_decode($data, true);\n\t\t\t$data = array_dot($data);\n\n\t\t\t$langs[$lang_k][$key] = $data;\n\t\t\tunset($langs[$lang_k][$j]);\n\t\t}\n\t}\n\n\tif (!$locale) {\n\t\t$return = array_dot($langs);\n\t} else {\n\t\tif (is_bool($locale)) {\n\t\t\t$return = array_dot($langs[getLang()]);\n\t\t} else {\n\t\t\t$return = array_dot($langs[$locale]);\n\t\t}\n\t}\n\n\treturn json_encode(array_dot($return));\n}", "public function create_new_lang()\n {\n $root_directory = FCPATH.\"application/language/\";\n $scan_root_directory = array_diff(scandir($root_directory),array('.','..'));\n $data['root_dir'] = $scan_root_directory;\n\n // Application Languages\n $directory = FCPATH.\"application/language/english\";\n $file_lists = scandir($directory,0);\n $total_file = count($file_lists);\n $language_Files = array();\n\n for($i = 2; $i< $total_file; $i++) \n {\n array_push($language_Files, $file_lists[$i]);\n }\n\n for ($i = 0; $i < count($language_Files); $i++) \n {\n $file_name = $language_Files[$i];\n include FCPATH.\"application/language/english/\".$file_name;\n $data['file_name'][$i] = $file_name;\n }\n\n // datatables plugins language\n $directory2 = FCPATH.\"assets/modules/datatables/language/english.json\";\n $plugin_file = file_get_contents($directory2);\n $plugin_file_contents = json_decode($plugin_file,TRUE);\n\n $lang = array();\n\n foreach ($plugin_file_contents as $key => $value) \n {\n if($key == \"oPaginate\")\n {\n foreach ($value as $key1 => $value1) \n {\n $lang[$key1] = $value1;\n }\n\n } else if ($key =='oAria') {\n\n foreach ($value as $key1 => $value1) \n {\n $lang[$key1] = $value1;\n }\n } else {\n $lang[$key] = $value;\n\n } \n }\n\n\n // Addon Language\n $addon_directory = FCPATH.\"application/modules/\";\n $scan_directory = scandir($addon_directory,0);\n $addon_files = array();\n\n for ($i = 2; $i < count($scan_directory) ; $i++) \n {\n array_push($addon_files, $scan_directory[$i]);\n }\n\n $addon_lang_folder = array();\n for ($i = 0; $i < count($addon_files); $i++) \n {\n $module_directory = FCPATH.\"application/modules/\".$addon_files[$i].\"/language\";\n if(file_exists($module_directory))\n {\n $scan_module_directories = array_diff(scandir($module_directory),array('.','..'));\n if(!empty($scan_module_directories))\n {\n $addon_name = $addon_directory.$addon_files[$i];\n array_push($addon_lang_folder,$addon_name);\n }\n }\n }\n\n\n $addon_dir_arr = array();\n for ($i = 0; $i < count($addon_lang_folder); $i++) \n {\n $addon_lang_file = $addon_lang_folder[$i];\n $addon_lang_file_dir = $addon_lang_file.\"/language/english/\";\n $addon_lang_file_dir_scan[] = scandir($addon_lang_file_dir,1);\n array_push($addon_dir_arr,$addon_lang_file_dir_scan[$i][0]);\n }\n $data['addons'] = $addon_dir_arr;\n\n $data['body'] = 'admin/multi_language/add_language';\n $data['page_title'] = $this->lang->line(\"New Language\");\n $this->_viewcontroller($data);\n }", "protected function loadTranslations()\n {\n if (!isset($this->translations[$this->language])) {\n $file = $this->getTranslationFile($this->language);\n $content = file_get_contents($file);\n $translations = json_decode($content, true);\n if (!is_array($translations)) {\n throw new \\InvalidArgumentException(\"Could not parse JSON translation file: \" . $file);\n }\n\n $this->translations[$this->language] = $translations;\n }\n\n return $this->translations[$this->language];\n }", "public function getAll(){\n\t\t$url = WEBSERVICE. \"languages/getAll\";\n\t\t$this->HTTPRequest->setUrl($url);\n\t\t$this->HTTPRequest->setMethod(\"GET\");\n\t\t$arrayResponse = $this->HTTPRequest->sendHTTPRequest();\n\t\treturn $this->arrayToLanguage($arrayResponse, false);\n\t}", "public function translations()\n {\n $this->loadTranslationsFrom(__DIR__.'/Resources/Lang', $this->packageName);\n\n $this->publishes([\n __DIR__.'/path/to/translations' => resource_path('lang/vendor/courier'),\n ], $this->packageName.'-translations');\n }", "public function translateBatch(array $texts)\n {\n foreach ($texts as $text) {\n $this->checkCheapskate($text);\n }\n\n $cacheKey = '__google_cloud_translate__translate_batch_' .\n md5(json_encode($texts)) . '_';\n\n $options = [\n 'source' => $this->config->source,\n 'target' => $this->config->target,\n 'format' => $this->config->format,\n // Default model is null for batch, '' for single\n 'model' => ($this->config->model !== '') ? $this->config->model : null,\n ];\n\n if (!$result = unserialize($this->cache->get($cacheKey))) {\n $result = $this->translateClient->translateBatch($texts, $options);\n $this->cache->put($cacheKey, serialize($result), 9999999);\n }\n\n return $result;\n }", "private function mockTranslations(): void\n {\n $languages = [/*'en_EN',*/\n 'fr_FR', 'de_DE', ];\n $i18nItems = I18nItem::where('status', I18nItem::STATUS_DRAFT)->get();\n\n foreach ($languages as $language) {\n $faker = \\Faker\\Factory::create($language);\n\n foreach ($i18nItems as $i18nItem) {\n $charCount = round(strlen($i18nItem->value) * 1.5);\n $mockValue = $faker->realText($charCount > 10 ? $charCount : 10);\n $short = strlen($mockValue) < 256;\n\n I18nTranslation::create([\n 'i18n_item_id' => $i18nItem->id,\n 'language' => substr($language, 0, 2),\n 'short_value' => $short ? $mockValue : null,\n 'long_value' => ! $short ? $mockValue : null,\n ]);\n }\n }\n }", "public function get_translations ($type = 'file') {\n\n\t\tif ($this->lang != null) {\n\n\t\t\tif ($type == 'file') {\n\n\t\t\t\t$this->t = $this->_get_translations_from_file();\n\n\t\t\t} elseif ($type == 'db') {\n\n\t\t\t\t$this->t = $this->_get_translations_from_db();\n\n\t\t\t}//end elsefi\n\n\t\t}//end if\n\n\t}", "public function saveTranslation()\n {\n $ret = true;\n\n foreach ($this->_models as $language => $model) {\n $dirty = $model->getDirtyAttributes();\n // we do not need to save anything, if nothing has changed or translation is equal to its fallback\n if (empty($dirty) || ($this->skipSavingDuplicateTranslation && $model->isNewRecord && $this->modelEqualsFallbackTranslation($model, $language))) {\n continue;\n }\n /** @var \\yii\\db\\ActiveQuery $relation */\n $relation = $this->owner->getRelation($this->relation);\n $pks = $relation->link;\n\n foreach ($pks as $fk => $pk) {\n $model->$fk = $this->owner->$pk;\n }\n\n if (!$model->save()) {\n $ret = false;\n }\n }\n\n return $ret;\n }", "public function run()\n {\n// DB::table('name_translations')->insert([\n// ['arabic' => 'سجين', 'turkey' => 'MAHKUM'],\n// ['arabic' => 'محبوس', 'turkey' => 'TUTUKLU'],\n// ['arabic' => 'أرملة', 'turkey' => 'DUL'],\n// ['arabic' => 'أسير', 'turkey' => 'ESİR'],\n// ['arabic' => 'آنسة/أعزب', 'turkey' => 'İŞSİZ'],\n// ['arabic' => 'تارك الأسرة', 'turkey' => 'AİLESİNİ TERK ETMİŞ'],\n// ['arabic' => 'شهيد/ة', 'turkey' => 'ŞEHİT'],\n// ['arabic' => 'متزوج/ة', 'turkey' => 'EVLİ'],\n// ['arabic' => 'متوفى/ة', 'turkey' => 'RAHMETLİ'],\n// ['arabic' => 'مسن/ة', 'turkey' => 'YAŞLI'],\n// ['arabic' => 'ربة بيت', 'turkey' => 'EV HANIMI '],\n// ['arabic' => 'جريح', 'turkey' => 'YARALI'],\n// ['arabic' => 'مسافر', 'turkey' => 'YOLCU'],\n// ['arabic' => 'مطلقة', 'turkey' => 'BOŞANMIŞ'],\n// ['arabic' => 'مفقود', 'turkey' => 'KAYIP'],\n// ['arabic' => 'ابن', 'turkey' => 'OĞLU'],\n// ['arabic' => 'ابن الخال/ة', 'turkey' => 'KUZEN'],\n// ['arabic' => 'ابن الزوج', 'turkey' => 'VEY OĞUL'],\n// ['arabic' => 'ابن العم/ة', 'turkey' => 'KUZEN'],\n// ['arabic' => 'ابن/ة الاخ/ت', 'turkey' => 'YEĞEN'],\n// ['arabic' => 'ابنة', 'turkey' => 'KIZI'],\n// ['arabic' => 'اخ', 'turkey' => 'ERKEK KARDEŞİ'],\n// ['arabic' => 'اخ الزوج', 'turkey' => 'KAYIN BİRADER'],\n// ['arabic' => 'اخ الزوجة', 'turkey' => 'KAYIN BİRADER'],\n// ['arabic' => 'اخت', 'turkey' => 'KIZ KARDEŞİ'],\n// ['arabic' => 'اخت الزوج', 'turkey' => 'GÖRÜMCE'],\n// ['arabic' => 'اخت الزوجة', 'turkey' => 'BALDIZ'],\n// ['arabic' => 'الحالة', 'turkey' => 'KENDİSİ'],\n// ['arabic' => 'ام', 'turkey' => 'ANNESİ'],\n// ['arabic' => 'أب', 'turkey' => 'BABASI'],\n// ['arabic' => 'بنت الزوج', 'turkey' => 'VEY KIZ'],\n// ['arabic' => 'جدة', 'turkey' => 'NİNE'],\n// ['arabic' => 'جدة', 'turkey' => 'BABAANNE'],\n// ['arabic' => 'حفيد/ة', 'turkey' => 'TORUNU'],\n// ['arabic' => 'حماية', 'turkey' => 'KAYNANA'],\n// ['arabic' => 'خال', 'turkey' => 'DAYI'],\n// ['arabic' => 'خالة', 'turkey' => 'TEYZE'],\n// ['arabic' => 'رب الاسرة', 'turkey' => 'AİLE REİSİ '],\n// ['arabic' => 'زوج', 'turkey' => 'KOCASI'],\n// ['arabic' => 'زوج الام', 'turkey' => 'VEY BABA'],\n// ['arabic' => 'زوجة', 'turkey' => 'HANIMI'],\n// ['arabic' => 'زوجة ابن', 'turkey' => 'OĞLUNUN HANIMI'],\n// ['arabic' => 'زوجة اخ', 'turkey' => 'KARDEŞİNİN HANIMI'],\n// ['arabic' => 'زوجة الاب', 'turkey' => 'VEY ANNE'],\n// ['arabic' => 'زوجة الابن', 'turkey' => 'OĞUL HANIMI'],\n// ['arabic' => 'زوجة اولى', 'turkey' => '1\\'Cİ HANIMI'],\n// ['arabic' => 'زوجة ثالثة', 'turkey' => '3\\'Cİ HANIMI'],\n// ['arabic' => 'زوجة ثانية', 'turkey' => '2\\'Cİ HANIMI'],\n// ['arabic' => 'شقيقة', 'turkey' => 'VEY KARDEŞ'],\n// ['arabic' => 'صهر/زوج الابنة', 'turkey' => 'KAYINBİRADER'],\n// ['arabic' => 'عديل', 'turkey' => 'BACANAK'],\n// ['arabic' => 'عم', 'turkey' => 'AMCA'],\n// ['arabic' => 'عمة', 'turkey' => 'HALA'],\n// ['arabic' => 'والد الزوج', 'turkey' => 'KAYINPEDER'],\n// ['arabic' => 'طالب/ة مدرسة', 'turkey' => 'OKUL ÖĞR.'],\n// ['arabic' => 'منقطع عن الجامعة', 'turkey' => 'ÜN. TERK ETMİŞ'],\n// ['arabic' => 'منقطع عن المدرسة', 'turkey' => 'OKUNMASINI TERK ETMİŞ'],\n// ['arabic' => 'خريج/ة جامعة', 'turkey' => 'ÜNİVERSİTE MEZUNU'],\n// ['arabic' => 'طالب/ة روضة', 'turkey' => 'ANA OKUL'],\n// ['arabic' => 'طالب/ة مهنى', 'turkey' => 'MESLEK LİSESİ'],\n// ['arabic' => 'طالب/ة ثانوية عامة', 'turkey' => 'LİSE ÖĞRENCİSİ'],\n// ['arabic' => 'خريج/ة ثانوية', 'turkey' => 'LİSE MEZUNU'],\n// ['arabic' => 'طالب/ة جامعة', 'turkey' => 'ÜNİVERSİTE ÖĞR.'],\n// ['arabic' => 'طفل/ة', 'turkey' => 'ÇOCUK'],\n// ['arabic' => 'يناير', 'turkey' => 'Ocak'],\n// ['arabic' => 'فبراير', 'turkey' => 'Şubat'],\n// ['arabic' => 'مارس', 'turkey' => 'Mart'],\n// ['arabic' => 'ابريل', 'turkey' => 'Nisan'],\n// ['arabic' => 'مايو', 'turkey' => 'Mayıs'],\n// ['arabic' => 'يونيو', 'turkey' => 'Haziran'],\n// ['arabic' => 'يوليو', 'turkey' => 'Temmuz'],\n// ['arabic' => 'أغسطس', 'turkey' => 'Ağustos'],\n// ['arabic' => 'سبتمبر', 'turkey' => 'Eylül'],\n// ['arabic' => 'أكتوبر', 'turkey' => 'Ekim'],\n// ['arabic' => 'نوفمبر', 'turkey' => 'Kasım'],\n// ['arabic' => 'ديسمبر', 'turkey' => 'Aralık'],\n// ['arabic' => 'متقاعد', 'turkey' => 'EMEKLİ'],\n// ['arabic' => 'حارس', 'turkey' => 'KABICI'],\n// ['arabic' => 'دهان', 'turkey' => 'BOYACI'],\n// ['arabic' => 'موظف', 'turkey' => 'MEMUR'],\n// ['arabic' => 'موظف حكومى', 'turkey' => 'DEVLET MEMURU'],\n// ['arabic' => 'موظف خاص', 'turkey' => 'MEMUR'],\n// ['arabic' => 'موظف سلطة', 'turkey' => 'GÖREVLİ'],\n// ['arabic' => 'ربة بيت', 'turkey' => 'EV HANIMI'],\n// ['arabic' => 'سائق', 'turkey' => 'ŞÖFÖR'],\n// ['arabic' => 'عامل', 'turkey' => 'İŞCİ'],\n// ['arabic' => 'عامل متقطع', 'turkey' => 'GEÇİCİ İŞÇİ'],\n// ['arabic' => 'لا يعمل', 'turkey' => 'İŞSİZ'],\n// ['arabic' => 'محافظة الشمال', 'turkey' => 'KUZEY'],\n// ['arabic' => 'محافظة غزة', 'turkey' => 'GAZZE'],\n// ['arabic' => 'محافظة الوسطى', 'turkey' => 'VESTA'],\n// ['arabic' => 'محافظة خانيونس', 'turkey' => 'HANYUNİS'],\n// ['arabic' => 'محافظة رفح', 'turkey' => 'RAFAH'],\n// ['arabic' => 'وثائق أخرى', 'turkey' => 'diğer belgeler'],\n// ['arabic' => 'صورة العائلة', 'turkey' => 'AİLE FOTOSU'],\n// ['arabic' => 'تقرير طبي', 'turkey' => 'SAĞLIK RAPORU'],\n// ['arabic' => 'صورة البيت', 'turkey' => 'EV FOTOSU'],\n// ['arabic' => 'شهادة وفاة', 'turkey' => 'VEFAT BELGESİ'],\n// ['arabic' => 'تقارير اخرى', 'turkey' => 'ÇEŞİTLİ RAPORLAR'],\n// ['arabic' => 'عقد ايجار', 'turkey' => 'KİRA SÖZLEŞMESİ'],\n// ['arabic' => 'شهادة قيد', 'turkey' => 'ÖĞRENCİ BELGESİ'],\n// ['arabic' => 'الهوية', 'turkey' => 'KİMLİK'],\n// ['arabic' => 'افادة هدم', 'turkey' => 'YIKIMA BELGEİ'],\n// ['arabic' => 'افادة اضرار', 'turkey' => 'HASAR BELGESİ'],\n// ['arabic' => 'شهادة طلاق', 'turkey' => 'BOŞANMA BELGESİ'],\n// ['arabic' => 'الشكر', 'turkey' => 'teşekkür mektubu'],\n// ['arabic' => 'سيء', 'turkey' => 'KÖTÜ'],\n// ['arabic' => 'سيء جدا', 'turkey' => 'ÇOK KÖTÜ'],\n// ['arabic' => 'مقبول', 'turkey' => 'MAKBUL'],\n// ['arabic' => 'جيد', 'turkey' => 'İYİ'],\n// ['arabic' => 'متوسط', 'turkey' => 'ORTA'],\n// ['arabic' => 'الأمر للكافل', 'turkey' => 'KARAR SAHİBİ VEREN EL'],\n// ['arabic' => 'بيت حانون', 'turkey' => 'BEYT HANUN'],\n// ['arabic' => 'جباليا', 'turkey' => 'CABALYA'],\n// ['arabic' => 'بيت لاهيا', 'turkey' => 'BEYT LAHYE'],\n// ['arabic' => 'ابراج الندى', 'turkey' => 'NADA ABRAJ'],\n// ['arabic' => 'شيخ زايد', 'turkey' => 'ŞİH ZAYİD'],\n// ['arabic' => 'ابراج العودة', 'turkey' => 'AVDA ABRAJ'],\n// ['arabic' => 'قرية بدوية', 'turkey' => 'GARYA BEDEVİ'],\n// ['arabic' => 'عزبة بيت حانون', 'turkey' => 'BEYT HANUN İZBE'],\n// ['arabic' => 'مدينة غزة', 'turkey' => 'GAZZE'],\n// ['arabic' => 'جحر الديك', 'turkey' => 'CUHR ELDİK'],\n// ['arabic' => 'بريج', 'turkey' => 'BÜRİC'],\n// ['arabic' => 'زهراء', 'turkey' => 'ZAHRA'],\n// ['arabic' => 'نصيرات', 'turkey' => 'NÜSEYRET'],\n// ['arabic' => 'زوايدة', 'turkey' => 'ZAVEYİDE'],\n// ['arabic' => 'مغراقة', 'turkey' => 'MUĞRAKA'],\n// ['arabic' => 'دير البلح', 'turkey' => 'DYR ALBALAH'],\n// ['arabic' => 'مغازي', 'turkey' => 'MAĞAZI'],\n// ['arabic' => 'مصدر', 'turkey' => 'MUSADİR'],\n// ['arabic' => 'خانيونس الشرقية', 'turkey' => 'HANYUNİS ŞERGİYE'],\n// ['arabic' => 'خانيونس الغربية', 'turkey' => 'HANYUNİS ĞARBİYE'],\n// ['arabic' => 'خانيونس البلد', 'turkey' => 'HANYUNİS ELBELAD'],\n// ['arabic' => 'رفح الشرقية', 'turkey' => 'REFAH ŞERGİYE'],\n// ['arabic' => 'رفح الغربية', 'turkey' => 'REFAH ĞARBİYE'],\n// ['arabic' => 'رفح البلد', 'turkey' => 'REFAH ELBELAD'],\n// ['arabic' => 'خانيونس', 'turkey' => 'HANYUNİS'],\n// ['arabic' => 'رفح', 'turkey' => 'REFAH'],\n// ['arabic' => 'فلسطين', 'turkey' => 'Filistin'],\n// ['arabic' => 'عائلة الأخوة', 'turkey' => 'Kardeşler ailesi'],\n// ['arabic' => 'تعليم الأيتام', 'turkey' => 'Yetimlerin eğitimi'],\n// ['arabic' => 'ارتجاج في المخ', 'turkey' => 'Beyin Sarsıntısı'],\n// ['arabic' => 'ازدواجية شخصية', 'turkey' => 'Şizofren'],\n// ['arabic' => 'ازمة صدرية', 'turkey' => 'GÖĞÜS AĞRISI'],\n// ['arabic' => 'اسهال', 'turkey' => 'ishal '],\n// ['arabic' => 'اضطراب بالنمو', 'turkey' => 'YAYGIN GELİŞİMSEL BOZUKLUK'],\n// ['arabic' => 'اعصاب', 'turkey' => 'SİNİR'],\n// ['arabic' => 'اغماء، غشيان', 'turkey' => 'Bayılmak'],\n// ['arabic' => 'اكتئاب', 'turkey' => ' manik depresif '],\n// ['arabic' => 'اكتئاب و هوس', 'turkey' => 'Depresyon ve manik depresif hastalık'],\n// ['arabic' => 'التهاب شعبي حاد', 'turkey' => 'bronşit '],\n// ['arabic' => 'التهاب قولون', 'turkey' => 'kalın bağırsak iltihabi'],\n// ['arabic' => 'التهاب مفاصل', 'turkey' => 'arterit'],\n// ['arabic' => 'التواء', 'turkey' => ' burkulma'],\n// ['arabic' => 'العقل الواعي، المنطقي', 'turkey' => 'Şuur, bilinç (Rasyonel)'],\n// ['arabic' => 'الم عصبي', 'turkey' => 'NEVRALJİ'],\n// ['arabic' => 'امراض جلدية', 'turkey' => 'Cildiye Hastalığı'],\n// ['arabic' => 'انزلاق غضروفي', 'turkey' => 'OMURGE EĞRİLİĞİ'],\n// ['arabic' => 'انسداد الشرايين', 'turkey' => 'damar tıkanmas'],\n// ['arabic' => 'انسداد رئوي', 'turkey' => 'Kronik Obstrüktif Akciğer Hastalığı'],\n// ['arabic' => 'انطوائي', 'turkey' => 'Otizm'],\n// ['arabic' => 'انفصام', 'turkey' => 'şizofreni '],\n// ['arabic' => 'انفلونزا', 'turkey' => 'grip '],\n// ['arabic' => 'أبرص', 'turkey' => 'Cüzamlı'],\n// ['arabic' => 'أذن وسطى', 'turkey' => 'Orta kulak '],\n// ['arabic' => 'أعرج', 'turkey' => 'topal '],\n// ['arabic' => 'أمعاء دقيقة', 'turkey' => 'ince bağırsak'],\n// ['arabic' => 'أمعاء غليظة', 'turkey' => 'kalın bağısak'],\n// ['arabic' => 'أورام', 'turkey' => 'KAPARMA'],\n// ['arabic' => 'بُلعوم', 'turkey' => 'yutak '],\n// ['arabic' => 'بتر', 'turkey' => 'AMPÜTASYON'],\n// ['arabic' => 'بدانة', 'turkey' => 'şişmanlık'],\n// ['arabic' => 'بروستاتا', 'turkey' => ' Prostat'],\n// ['arabic' => 'بلغم', 'turkey' => 'balgam'],\n// ['arabic' => 'تاكل مفاصل الحوض', 'turkey' => 'kemiğin avasküler nekrozu'],\n// ['arabic' => 'تأخر النطق', 'turkey' => 'Konuşma Gecikmesi'],\n// ['arabic' => 'تجلط الدم', 'turkey' => 'Koagülasyon; pıhtılaşma '],\n// ['arabic' => 'تخمة', 'turkey' => 'Mide fesadı'],\n// ['arabic' => 'تشنج', 'turkey' => 'Konvülziyon'],\n// ['arabic' => 'تشوه خلقي', 'turkey' => 'yaratılış bozukluğu'],\n// ['arabic' => 'تضخم كلى', 'turkey' => 'nefromegali'],\n// ['arabic' => 'تضيق في القصبات - حساسية', 'turkey' => 'Kua'],\n// ['arabic' => 'تقدم في العمر', 'turkey' => 'Yaşın artması'],\n// ['arabic' => 'تقلص عضلي', 'turkey' => 'kas krampları'],\n// ['arabic' => 'تقيؤ', 'turkey' => 'kusma '],\n// ['arabic' => 'تكسر الدم', 'turkey' => 'hemolitik anemi'],\n// ['arabic' => 'تلاثيميا', 'turkey' => 'Talasemi'],\n// ['arabic' => 'تلوث او تسمم الدم', 'turkey' => 'septisemi / Bakteriyemi '],\n// ['arabic' => 'تليف رئتين', 'turkey' => 'PULMONER FİBROZİS'],\n// ['arabic' => 'تليف كبد', 'turkey' => 'Karaciğer Fibrozisi '],\n// ['arabic' => 'توتر', 'turkey' => 'Gerginlik'],\n// ['arabic' => 'توحد', 'turkey' => 'OTİZM HASTALIĞI'],\n// ['arabic' => 'جُدري', 'turkey' => 'çiçek hastalığı '],\n// ['arabic' => 'جراحة تجميلية', 'turkey' => 'Estetik '],\n// ['arabic' => 'جرب', 'turkey' => ' uyuz'],\n// ['arabic' => 'جرب، حكة', 'turkey' => 'Uyuz'],\n// ['arabic' => 'جلطة', 'turkey' => 'PIHTI'],\n// ['arabic' => 'جلطة دماغية دموية', 'turkey' => 'BEYİN KAN PIHTISI'],\n// ['arabic' => 'جلطة دموية', 'turkey' => 'kan pıhtısı '],\n// ['arabic' => 'جنون', 'turkey' => 'Akılsız, deli'],\n// ['arabic' => 'جيوب', 'turkey' => 'Sinozit '],\n// ['arabic' => 'حجامة', 'turkey' => 'Hacamatçılık, kanamla sanatı'],\n// ['arabic' => 'حرق', 'turkey' => 'YANIK'],\n// ['arabic' => 'حساسية', 'turkey' => 'ALERJİ'],\n// ['arabic' => 'حصبة', 'turkey' => 'kızamık '],\n// ['arabic' => 'حماق، جدري الماء', 'turkey' => 'su çiçeği '],\n// ['arabic' => 'حمى الدريس', 'turkey' => 'saman nezlesi'],\n// ['arabic' => 'حمى شوكية - التهاب السحايا', 'turkey' => 'Menenjit'],\n// ['arabic' => 'حمى صفراء', 'turkey' => 'sarı humma'],\n// ['arabic' => 'خلع ولادة', 'turkey' => 'Doğumsal Kalça Çıkığı\\n\\n\\n'],\n// ['arabic' => 'دوالي', 'turkey' => 'Varis '],\n// ['arabic' => 'ذئبة حمراء', 'turkey' => 'Sistemik lupus eritematozusun '],\n// ['arabic' => 'رباط صليبي', 'turkey' => 'çapraz bağ '],\n// ['arabic' => 'ربو', 'turkey' => 'astım '],\n// ['arabic' => 'ربو تشعبي', 'turkey' => 'bronşiyal astım'],\n// ['arabic' => 'رعاش', 'turkey' => 'Parkinson'],\n// ['arabic' => 'رهاب', 'turkey' => 'Fobiler '],\n// ['arabic' => 'روماتيد', 'turkey' => 'Romatizmal'],\n// ['arabic' => 'روماتيزم', 'turkey' => 'romatizma'],\n// ['arabic' => 'روماتيود المفاصل', 'turkey' => 'Romatoid artrit'],\n// ['arabic' => 'رئة', 'turkey' => 'akciğer '],\n// ['arabic' => 'زائدة', 'turkey' => 'Apandisit'],\n// ['arabic' => 'زكام، رشح', 'turkey' => 'nezle'],\n// ['arabic' => 'زواج احفاد', 'turkey' => 'TORUN EVLİLİKLERİ'],\n// ['arabic' => 'سرطان', 'turkey' => 'KANSER'],\n// ['arabic' => 'سرطان أمعاء', 'turkey' => 'Bağırsak kanseri'],\n// ['arabic' => 'سرطان ثدي', 'turkey' => 'meme kanseri'],\n// ['arabic' => 'سرطان جلدي', 'turkey' => 'CİLT KANSERİ '],\n// ['arabic' => 'سرطان حنجرة', 'turkey' => 'girtlak kanseri'],\n// ['arabic' => 'سرطان دم', 'turkey' => 'KAN KANSERİ'],\n// ['arabic' => 'سرطان قولون', 'turkey' => 'Kolon kanser\\''],\n// ['arabic' => 'سعال', 'turkey' => 'Öksürük'],\n// ['arabic' => 'سكتة قلبية', 'turkey' => 'kalp krizi'],\n// ['arabic' => 'سكري', 'turkey' => 'DİYABET'],\n// ['arabic' => 'سل', 'turkey' => 'TÜBERKÜLOZ'],\n// ['arabic' => 'سلس البول', 'turkey' => 'Bağırsak inkontinansı'],\n// ['arabic' => 'سلس براز', 'turkey' => 'Dışkı kaçırma'],\n// ['arabic' => 'سمنة', 'turkey' => 'OBEZİTE'],\n// ['arabic' => 'سوء تغذية', 'turkey' => 'malnütrisyon'],\n// ['arabic' => 'سوء/عسر الهضم', 'turkey' => 'hazımsızlık'],\n// ['arabic' => 'شراهة', 'turkey' => 'Oburluk'],\n// ['arabic' => 'شلل', 'turkey' => 'felç '],\n// ['arabic' => 'شلل أطفال', 'turkey' => 'çocuk felci '],\n// ['arabic' => 'شيخوخة', 'turkey' => 'YAŞLILIK'],\n// ['arabic' => 'صداع', 'turkey' => 'baş ağrısı '],\n// ['arabic' => 'صداع نصفي', 'turkey' => 'MİGREN'],\n// ['arabic' => 'صداع نصفي - شقيقة', 'turkey' => 'Migren'],\n// ['arabic' => 'صدف', 'turkey' => 'Sedef '],\n// ['arabic' => 'صدفية', 'turkey' => 'SEDEF HASTALIĞI'],\n// ['arabic' => 'صدمة', 'turkey' => 'Şok '],\n// ['arabic' => 'صرع', 'turkey' => 'ELPİLEPSİ'],\n// ['arabic' => 'ضعف اللغة و الكلام', 'turkey' => 'DİL VE KONUŞMA BOZUKLUĞU'],\n// ['arabic' => 'ضغط', 'turkey' => ' tansiyon'],\n// ['arabic' => 'ضغط وسكري', 'turkey' => 'TANISYON VE ŞEKER'],\n// ['arabic' => 'ضمور اعصاب', 'turkey' => 'Sinir atrofisi'],\n// ['arabic' => 'ضمور عقل', 'turkey' => 'Beyin atrofisi'],\n// ['arabic' => 'ضيق نفس', 'turkey' => 'NEFES DARLIĞI'],\n// ['arabic' => 'طب الأسنان', 'turkey' => 'diş hekimi '],\n// ['arabic' => 'طحال', 'turkey' => 'dalak '],\n// ['arabic' => 'طفح جلدي، حكة', 'turkey' => ' kaşıntı'],\n// ['arabic' => 'عجز', 'turkey' => ' İmpotans'],\n// ['arabic' => 'عطاس', 'turkey' => 'hapşırmak '],\n// ['arabic' => 'عظمية', 'turkey' => 'Ortopedi - '],\n// ['arabic' => 'عقم', 'turkey' => 'Kısırlık'],\n// ['arabic' => 'علاج كهربائي', 'turkey' => 'Fizik tedavi'],\n// ['arabic' => 'غازات في المعدة', 'turkey' => 'Gastrit'],\n// ['arabic' => 'غدة درقية', 'turkey' => 'TİROİD'],\n// ['arabic' => 'غدة لعابية', 'turkey' => 'tükürük bezleri '],\n// ['arabic' => 'غدة نخامية', 'turkey' => 'hipofizi pitüiter bez '],\n// ['arabic' => 'غسيل كلى', 'turkey' => 'Diyaliz '],\n// ['arabic' => 'غضروف', 'turkey' => 'KIKIRDAK'],\n// ['arabic' => 'غياب وعي، فقدان ذاكرة', 'turkey' => 'Komaya girmek; Alzayemır'],\n// ['arabic' => 'فتق، فتوق', 'turkey' => 'Fıtık'],\n// ['arabic' => 'فحص طبي', 'turkey' => 'tipi muayene '],\n// ['arabic' => 'فشل كلوي', 'turkey' => 'BÖBREK YETMEZLİĞİ '],\n// ['arabic' => 'فصام، إزدواجية شخصية', 'turkey' => 'şizofreni '],\n// ['arabic' => 'فقدان ذاكرة', 'turkey' => 'Alzheimer '],\n// ['arabic' => 'فقر الدم - انيميا الوراثي', 'turkey' => 'Talasemi'],\n// ['arabic' => 'فقر دم', 'turkey' => 'ANEMİ'],\n// ['arabic' => 'قرحة', 'turkey' => ' ülser'],\n// ['arabic' => 'قرحة المعدة', 'turkey' => 'ülser; mide hastalığı '],\n// ['arabic' => 'قصر نظر', 'turkey' => 'MİYOPİ'],\n// ['arabic' => 'قصور نخاع العظم المكتسب', 'turkey' => ' Edinsel Kemik iliği yetmezlikleri'],\n// ['arabic' => 'قفص صدري', 'turkey' => 'toraks '],\n// ['arabic' => 'قلب', 'turkey' => 'KALP'],\n// ['arabic' => 'قلق', 'turkey' => 'anksiyete; endişe '],\n// ['arabic' => 'قلق ، اضطراب نفسي', 'turkey' => 'Psikolojik hastalık'],\n// ['arabic' => 'قيئ', 'turkey' => 'Kusmak'],\n// ['arabic' => 'كبد', 'turkey' => 'karaciğer'],\n// ['arabic' => 'كبد وبائي', 'turkey' => 'HEPATİT'],\n// ['arabic' => 'كتف', 'turkey' => 'omuz '],\n// ['arabic' => 'كسر', 'turkey' => 'kırık '],\n// ['arabic' => 'كسر حوض', 'turkey' => 'Avasküler Nekroz'],\n// ['arabic' => 'كلوي مزمن', 'turkey' => 'KRONİK BÖBEK'],\n// ['arabic' => 'كلى', 'turkey' => 'BÖBREK'],\n// ['arabic' => 'لثة', 'turkey' => 'dişeti '],\n// ['arabic' => 'لوكيميا', 'turkey' => 'Lösemiler'],\n// ['arabic' => 'مخيخ', 'turkey' => 'Beyincik-'],\n// ['arabic' => 'مرارة', 'turkey' => 'Safra kesesi '],\n// ['arabic' => 'مرض عصبي', 'turkey' => 'Sinir hastalığı'],\n// ['arabic' => 'مريض نفسي', 'turkey' => 'PSİKOLOJİ HASTASI'],\n// ['arabic' => 'مرئ', 'turkey' => 'Yemek borusu ( özefakos ) '],\n// ['arabic' => 'مصران اعور', 'turkey' => 'Apantest'],\n// ['arabic' => 'معاق بالتعلم', 'turkey' => 'Özgül öğrenme güçlüğü'],\n// ['arabic' => 'معاق تشنج', 'turkey' => 'SPASTİK ENGELLİ'],\n// ['arabic' => 'معاق/ة', 'turkey' => 'ENGELLİ'],\n// ['arabic' => 'معاق/ة بصرياً', 'turkey' => 'GÖRME ENGELLİ'],\n// ['arabic' => 'معاق/ة حركياً', 'turkey' => 'FİZİKSEL ENGELLİ'],\n// ['arabic' => 'معاق/ة سمعياً', 'turkey' => 'İŞİTME ENGELLİ'],\n// ['arabic' => 'معاق/ة عقلياً', 'turkey' => 'ZİHNİSEL ENGELLİ'],\n// ['arabic' => 'معالجة بالاشعاع', 'turkey' => 'RADYOTERAPİ'],\n// ['arabic' => 'معدة', 'turkey' => 'mide '],\n// ['arabic' => 'مغص', 'turkey' => 'karın ağrısı '],\n// ['arabic' => 'منغولي/ة', 'turkey' => 'MOĞOL'],\n// ['arabic' => 'مياه في الرئتين', 'turkey' => 'Akciğer Ödemi'],\n// ['arabic' => 'نسيان', 'turkey' => 'Unutkanlık'],\n// ['arabic' => 'نقص سكر الدم', 'turkey' => 'hipoglisem'],\n// ['arabic' => 'نقص مناعة', 'turkey' => 'İMMÜN YETMEZLİK'],\n// ['arabic' => 'نقص هرمون النمو', 'turkey' => 'büyüme hormonu eksikliği '],\n// ['arabic' => 'هشاشة عظام', 'turkey' => 'OSTEOPOROZ'],\n// ['arabic' => 'هظم', 'turkey' => 'Sindirmek'],\n// ['arabic' => 'وراثي', 'turkey' => 'genetik '],\n// ['arabic' => 'ورم', 'turkey' => 'tümör'],\n// ['arabic' => 'ورم سرطاني', 'turkey' => 'KANSER TÜMÖRÜ'],\n// ['arabic' => 'ورم غدد', 'turkey' => 'ADENOMA'],\n// ['arabic' => 'ورم في الدماغ', 'turkey' => 'Beyin tümörü'],\n// ['arabic' => 'ورم ليفي', 'turkey' => 'LİFLİ TÜMÖR'],\n// ['arabic' => 'ورم، اورام', 'turkey' => 'Ur, şişlik'],\n// ['arabic' => 'وسواس قهري', 'turkey' => 'obsesif kompulsif bozukluk hastalıklarından ']\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'arabic' => 'بؤرة ابو غزالة',\n// 'turkey' => 'BURA ABU GAZALE',\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'arabic' => ' الزيتون',\n// 'turkey' => 'ALZEYTUN SOK.',\n// ]);\n//\n// \\App\\NameTranslation::create([\n//\n// 'arabic' => 'شارع المصريين',\n// 'turkey' => 'MASRİYİN CAD.',\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n//\n// 'arabic' => 'شارع زمو',\n// 'turkey' => ' ZİMMU SOK.',\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n//\n// 'arabic' => 'حي ابو عودة',\n// 'turkey' => 'ABUODA HAY',\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n//\n// 'arabic' => 'بيارة ابو رحمة',\n// 'turkey' => 'ABUREHME BEYARA',\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 7,\n// 'arabic' => 'شارع العجوز',\n// 'turkey' => 'ACÜZ SOK.',\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'arabic' => 'شارع البلدية',\n// 'turkey' => 'BELEDİYE SOK.',\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'arabic' => 'شارع البنات',\n// 'turkey' => 'BENET SOK.',\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'arabic' => 'بلدية بيت حانون',\n// 'turkey' => 'BEYT HANUN BELEDİYE',\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'arabic' => 'بؤرة جميل',\n// 'turkey' => 'BURA CEMİL',\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'arabic' => 'شارع دمرا',\n// 'turkey' => 'DAMRA SOK.',\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'arabic' => 'شارع الواد',\n// 'turkey' => 'ELVAD SOK.',\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'arabic' => 'شارع الفرطة',\n// 'turkey' => 'FURTA SOK.',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'arabic' => 'شارع القرمان',\n// 'turkey' => 'GARAMAN SOK.',\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'arabic' => 'شارع غزة',\n// 'turkey' => 'GAZZE SOK.',\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'arabic' => 'شارع حمد',\n// 'turkey' => 'HAMAD SOK.',\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'arabic' => 'شارع الكفارنة',\n// 'turkey' => 'KEFERNE SOK.',\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'arabic' => 'شارع القدس',\n// 'turkey' => 'KUDÜS SOK.',\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'arabic' => 'شارع نعيم',\n// 'turkey' => 'NAYİM SOK.',\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'arabic' => 'شارع شبات',\n// 'turkey' => 'ŞEBET SOK.',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'arabic' => 'شارع السكة',\n// 'turkey' => 'SIKKA YOLU',\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'arabic' => 'عزبه بيت حانون',\n// 'turkey' => 'BEYT HANUN İZBE',\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'arabic' => 'دوار زمو',\n// 'turkey' => 'DİVAR ZİMO',\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'arabic' => 'فرطة',\n// 'turkey' => 'FERTA',\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'arabic' => 'قرمان',\n// 'turkey' => 'GARMAN',\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 27,\n// 'arabic' => 'حي الامل',\n// 'turkey' => 'HAY ELAMAL',\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 28,\n// 'arabic' => 'جباليا النزلة',\n// 'turkey' => ' CEBELİYE NAZLA',\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 29,\n// 'arabic' => 'بئر النعجة',\n// 'turkey' => 'BİR NACE',\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 30,\n// 'arabic' => 'جباليا البلد',\n// 'turkey' => 'CEBELİYE BALAD',\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 31,\n// 'arabic' => 'جباليا الفالوجا',\n// 'turkey' => 'CEBELİYE FALUCA',\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 32,\n// 'arabic' => 'جباليا المعسكر',\n// 'turkey' => 'CEBELİYE MUASKER',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 33,\n// 'arabic' => 'تل الزعتر',\n// 'turkey' => 'TEL ZATAR',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 34,\n// 'arabic' => 'الجرن',\n// 'turkey' => 'CÜRÜN KAVŞAĞI',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 35,\n// 'arabic' => 'دوار القرم',\n// 'turkey' => 'DEVAR Gırım',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 36,\n// 'arabic' => 'معكسر جباليا',\n// 'turkey' => 'MÖASKER CEBELİYE',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 37,\n// 'arabic' => 'نزلة',\n// 'turkey' => 'NEZLE',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 38,\n// 'arabic' => 'شارع اصلان',\n// 'turkey' => 'ASLAN SOK.',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 39,\n// 'arabic' => 'شارع البرواي',\n// 'turkey' => 'BARAVİ SOK.',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 40,\n// 'arabic' => 'تل الذهب',\n// 'turkey' => 'TEL ZEHEB',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 41,\n// 'arabic' => 'سكنة فدعوس',\n// 'turkey' => 'SAKNIT FADVUS',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 42,\n// 'arabic' => 'شارع الخزان',\n// 'turkey' => 'HAZAN YOLU',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 43,\n// 'arabic' => 'شارع الكمالية',\n// 'turkey' => 'KEMALİYE YOLU',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 44,\n// 'arabic' => 'شارع كمال عدوان',\n// 'turkey' => 'KEMAL EDVAN YOLU',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 45,\n// 'arabic' => 'عزبة دواس',\n// 'turkey' => 'EZBET DAVUS',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 46,\n// 'arabic' => 'القرعة الخامسة',\n// 'turkey' => '5\\'Cİ GARA',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 47,\n// 'arabic' => 'عطاطرة',\n// 'turkey' => 'ATATRA',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 48,\n// 'arabic' => 'منشية',\n// 'turkey' => 'MANŞİYE',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 49,\n// 'arabic' => 'سلاطين',\n// 'turkey' => 'SALATİN',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 50,\n// 'arabic' => 'سيفة',\n// 'turkey' => 'SEYFE',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 51,\n// 'arabic' => 'جامعة امريكية',\n// 'turkey' => 'AMERİKA ÜN.',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 52,\n// 'arabic' => 'دوار الغربي',\n// 'turkey' => 'GARBİ DİVAR',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 53,\n// 'arabic' => 'شارع الحطبية',\n// 'turkey' => 'HATABA SOK.',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 54,\n// 'arabic' => 'مشروع بيت لاهيا',\n// 'turkey' => 'MAŞRU BEYT LAHTYA',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 55,\n// 'arabic' => 'شارع الشيماء',\n// 'turkey' => 'ŞAYMA SOK.',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 56,\n// 'arabic' => 'دوار السلاطين',\n// 'turkey' => 'DEVAR SALATİN',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 57,\n// 'arabic' => 'شارع المنشية',\n// 'turkey' => 'MANŞİYE SOK.',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 58,\n// 'arabic' => 'ابراج الندى',\n// 'turkey' => 'ABRAJ NEDE',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 59,\n// 'arabic' => 'قرية بدوية',\n// 'turkey' => 'KARYA BEDAVİ',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 60,\n// 'arabic' => 'شيخ زايد',\n// 'turkey' => 'ŞEYH ZAYİD',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 61,\n// 'arabic' => 'ابراج العودة',\n// 'turkey' => 'AVDA SİTESİ',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 62,\n// 'arabic' => 'قرية أولى',\n// 'turkey' => '1\\'Cİ KARYA',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 63,\n// 'arabic' => 'لقرية تانية',\n// 'turkey' => '2\\'Cİ KARYA',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 64,\n// 'arabic' => 'شارع الفالوجة',\n// 'turkey' => 'FALUJA YOLU',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 65,\n// 'arabic' => 'شارع عبد الدايم',\n// 'turkey' => 'ABDEDEYİM SOK',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 66,\n// 'arabic' => 'شارع جميل طرخان',\n// 'turkey' => 'TARHAN SOK.',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 67,\n// 'arabic' => 'شجاعية',\n// 'turkey' => 'ŞİCAYA',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 68,\n// 'arabic' => 'ابراج المخابرات',\n// 'turkey' => 'MUHABERET SİTESİ',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 69,\n// 'arabic' => 'ابراج المقوسي',\n// 'turkey' => 'MAGUSİ SİTESİ',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 70,\n// 'arabic' => 'ارض الغول',\n// 'turkey' => 'ARZ ELĞUL',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 71,\n// 'arabic' => 'سامر',\n// 'turkey' => 'SAMIR',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 72,\n// 'arabic' => 'سرايا',\n// 'turkey' => 'SERAYİH',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 73,\n// 'arabic' => 'سودانية',\n// 'turkey' => 'SUDANİYE',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 74,\n// 'arabic' => 'شاليهات',\n// 'turkey' => 'ŞALİYHAT',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 75,\n// 'arabic' => 'شيخ عجلين',\n// 'turkey' => 'ŞEYH ECLİN',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 76,\n// 'arabic' => 'يرموك',\n// 'turkey' => 'YARMUK',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 77,\n// 'arabic' => 'دوار ابو مازن',\n// 'turkey' => 'DEVAR ABU MAZIN',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 78,\n// 'arabic' => 'دوار انصار',\n// 'turkey' => 'DEVAR ANSAR',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 79,\n// 'arabic' => 'دوار حيدر',\n// 'turkey' => 'DEVAR HİDAR',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 80,\n// 'arabic' => 'ساحة الشوا',\n// 'turkey' => 'SAHET ŞEVA',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 81,\n// 'arabic' => 'سوق السيارات',\n// 'turkey' => 'SÜG SİYARET ',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 82,\n// 'arabic' => 'شارع الصناعة',\n// 'turkey' => 'SINAH YOLU',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 83,\n// 'arabic' => 'شارع المحطة',\n// 'turkey' => 'MAHTA YOLU',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 84,\n// 'arabic' => 'شارع عمر المختار',\n// 'turkey' => 'ÖMER MUHTAR YOLU',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 85,\n// 'arabic' => 'مفترق الشعبية',\n// 'turkey' => 'MUFTEREG ŞABİYE ',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 86,\n// 'arabic' => 'عمودي',\n// 'turkey' => 'AMUDİ',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 87,\n// 'arabic' => 'جلاء',\n// 'turkey' => 'CELA',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 88,\n// 'arabic' => 'درج',\n// 'turkey' => 'DARAC',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 89,\n// 'arabic' => 'كرامة',\n// 'turkey' => 'KARAMA',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 90,\n// 'arabic' => 'رمال',\n// 'turkey' => 'RİMAL',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 91,\n// 'arabic' => 'شعف',\n// 'turkey' => 'ŞAAF',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 92,\n// 'arabic' => 'صبرة',\n// 'turkey' => 'SABRA',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 93,\n// 'arabic' => 'صفطاوي',\n// 'turkey' => 'SAFTAVI',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 94,\n// 'arabic' => 'صحابة',\n// 'turkey' => 'SAHABA',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 95,\n// 'arabic' => 'شاطئ',\n// 'turkey' => 'ŞATİ',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 96,\n// 'arabic' => 'شمالي',\n// 'turkey' => 'ŞEMALI',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 97,\n// 'arabic' => 'شيخ رضوان',\n// 'turkey' => 'ŞEYH RIDVAN',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 98,\n// 'arabic' => 'سدرة',\n// 'turkey' => 'SİDRA',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 99,\n// 'arabic' => 'ثلاثيني',\n// 'turkey' => 'TALATİNİ',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 100,\n// 'arabic' => 'تفاح',\n// 'turkey' => 'TÜFAH',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 101,\n// 'arabic' => 'توام',\n// 'turkey' => 'TÜVAM',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 102,\n// 'arabic' => 'زيتون',\n// 'turkey' => 'ZEYTUN',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 103,\n// 'arabic' => 'عسقولة',\n// 'turkey' => 'ASGULA',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 104,\n// 'arabic' => 'ميناء',\n// 'turkey' => 'MİNE',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 105,\n// 'arabic' => 'نفق',\n// 'turkey' => 'NAFAK',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 106,\n// 'arabic' => 'نصر',\n// 'turkey' => 'NASIR',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 107,\n// 'arabic' => 'ساحة',\n// 'turkey' => 'SEHA',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 108,\n// 'arabic' => 'تل الهوا',\n// 'turkey' => 'TEL ALHAVA',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 109,\n// 'arabic' => 'شارع الوحدة',\n// 'turkey' => 'VİHDA SOK.',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 110,\n// 'arabic' => 'ابو اسكندر',\n// 'turkey' => 'ABU İSKANDER',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 111,\n// 'arabic' => 'رمال جنوبي',\n// 'turkey' => 'RİMAL CENUBİ',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 112,\n// 'arabic' => 'مشروع عامر',\n// 'turkey' => 'AMİR MEŞRU',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 113,\n// 'arabic' => 'ارض بكر',\n// 'turkey' => 'BAKİR ALANI',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 114,\n// 'arabic' => 'دوار 17 ',\n// 'turkey' => 'DİVAR 17',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 115,\n// 'arabic' => 'مخيم الشاطئ',\n// 'turkey' => 'MUHAYAM ŞATİ',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 116,\n// 'arabic' => 'شعشاعة',\n// 'turkey' => 'ŞÜŞEH',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 117,\n// 'arabic' => 'مستشفى الوفاء ',\n// 'turkey' => 'VEFA HASTANASI',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 118,\n// 'arabic' => 'جحر الديك',\n// 'turkey' => 'CUHR ELDİK',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 119,\n// 'arabic' => 'أبراج تيكا',\n// 'turkey' => 'ABRAJ TİKA',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 120,\n// 'arabic' => 'عزبة أبو عيسى ',\n// 'turkey' => 'İZBE ABU İSA',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 121,\n// 'arabic' => 'شارع المدرسة',\n// 'turkey' => 'LİSE SOK.',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 122,\n// 'arabic' => 'بلوك 1',\n// 'turkey' => 'BLUK 1',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 123,\n// 'arabic' => 'بلوك 10',\n// 'turkey' => 'BLUK 10',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 124,\n// 'arabic' => 'بلوك 11',\n// 'turkey' => 'BLUK 11',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 125,\n// 'arabic' => 'بلوك 12',\n// 'turkey' => 'BLUK 12',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 126,\n// 'arabic' => 'بلوك 2',\n// 'turkey' => 'BLUK 2',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 127,\n// 'arabic' => 'بلوك 3',\n// 'turkey' => 'BLUK 3',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 128,\n// 'arabic' => 'بلوك 4',\n// 'turkey' => 'BLUK 4',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 129,\n// 'arabic' => 'بلوك 5',\n// 'turkey' => 'BLUK 5',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 130,\n// 'arabic' => 'بلوك 6',\n// 'turkey' => 'BLUK 6',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 131,\n// 'arabic' => 'بلوك 7',\n// 'turkey' => 'BLUK 7',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 132,\n// 'arabic' => 'بلوك 8',\n// 'turkey' => 'BLUK 8',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 133,\n// 'arabic' => 'بلوك 9',\n// 'turkey' => 'BLUK 9',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 134,\n// 'arabic' => 'بلوك c',\n// 'turkey' => 'BLUK C',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 135,\n// 'arabic' => 'مقبولة',\n// 'turkey' => 'MAKBULE',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 136,\n// 'arabic' => 'تل أخضر',\n// 'turkey' => 'TEL AHDAER',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 137,\n// 'arabic' => 'زهراء',\n// 'turkey' => 'ZAHRA',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 138,\n// 'arabic' => 'مستشفى الوفاء ',\n// 'turkey' => 'VEFA HASTANASI',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 139,\n// 'arabic' => 'مخيم جديد',\n// 'turkey' => 'YENİ MUHAYEM',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 140,\n// 'arabic' => 'ابراج النصيرات',\n// 'turkey' => 'NÜSEYRET SİTESİ',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 141,\n// 'arabic' => 'سوق',\n// 'turkey' => 'SÜG',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 142,\n// 'arabic' => 'شارع الداخلية',\n// 'turkey' => 'DAHLİYE YOLU',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 143,\n// 'arabic' => 'شارع يافا',\n// 'turkey' => 'YAFA YOLU',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 144,\n// 'arabic' => 'صيدلية الزهور',\n// 'turkey' => 'ZÖHÜR SAYDALİYE',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 145,\n// 'arabic' => 'مسجد الدعوة',\n// 'turkey' => 'DAVA MESCİDİ',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 146,\n// 'arabic' => 'مدخل',\n// 'turkey' => 'MEDHAL',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 147,\n// 'arabic' => 'دوار ابو صرار',\n// 'turkey' => 'DİVAR ABUSARAR',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 148,\n// 'arabic' => 'مشروع الحساينة',\n// 'turkey' => 'MAŞRU ALHASAYNA',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 149,\n// 'arabic' => 'مخيم 1',\n// 'turkey' => 'MUHAYAM 1',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 150,\n// 'arabic' => 'مخيم 2',\n// 'turkey' => 'MUHAYAM 2',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 151,\n// 'arabic' => 'مخيم 3',\n// 'turkey' => 'MUHAYAM 3',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 152,\n// 'arabic' => 'مخيم 4',\n// 'turkey' => 'MUHAYAM 4',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 153,\n// 'arabic' => 'مخيم 5',\n// 'turkey' => 'MUHAYAM 5',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 154,\n// 'arabic' => 'مسجد الفاروق',\n// 'turkey' => 'ALFARUK CAMİİ',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 155,\n// 'arabic' => 'خوالدة الشرقية',\n// 'turkey' => 'HAVALDE ŞERGİYE',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 156,\n// 'arabic' => 'بئر ابو صلاح',\n// 'turkey' => 'BIR ABU SALAH ',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 157,\n// 'arabic' => 'جمعية الصلاح',\n// 'turkey' => 'CEMİYET SALAH',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 158,\n// 'arabic' => 'شارع ابو ستة',\n// 'turkey' => 'ABU SITA YOLU',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 159,\n// 'arabic' => 'شارع الاقصى',\n// 'turkey' => 'AKSA YOLU',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 160,\n// 'arabic' => 'خوالدة',\n// 'turkey' => 'HAVELDE ',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 161,\n// 'arabic' => 'سوارحة غربية',\n// 'turkey' => 'SEVERHE GARBİYE',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 162,\n// 'arabic' => 'سوارحة شرقية',\n// 'turkey' => 'SEVERHE ŞARKİYE',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 163,\n// 'arabic' => 'تعابين',\n// 'turkey' => 'TAABİN',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 164,\n// 'arabic' => 'سوارحة',\n// 'turkey' => 'SEVARHA',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 165,\n// 'arabic' => 'دوار ابو سيدو',\n// 'turkey' => 'DEVAR ABU SİDO ',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 166,\n// 'arabic' => 'شارع الترنس',\n// 'turkey' => 'TIRANS YOLU',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 167,\n// 'arabic' => 'مربع ابو هريرة',\n// 'turkey' => 'MÜREBA ABU HÜREYRA',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 168,\n// 'arabic' => 'مفترق الشهداء',\n// 'turkey' => 'MÜGTERF ŞÜHADA',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 169,\n// 'arabic' => 'وادي غزة',\n// 'turkey' => 'VADI GAZZE',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 170,\n// 'arabic' => 'شارع البرميل',\n// 'turkey' => 'ALBARAMİL SOK.',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 171,\n// 'arabic' => 'اقصى',\n// 'turkey' => 'AKSA',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 172,\n// 'arabic' => 'مزرعة',\n// 'turkey' => 'MEZREHA',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 173,\n// 'arabic' => 'مشاعلة',\n// 'turkey' => 'MAŞALAH',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 174,\n// 'arabic' => 'حاجز ابو هولي',\n// 'turkey' => 'HACİZ ABU HÜLEY',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 175,\n// 'arabic' => 'حي بشارة',\n// 'turkey' => 'HEY BİŞARA',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 176,\n// 'arabic' => 'شارع ابو عريف',\n// 'turkey' => 'ABU ERİF YOLU',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 177,\n// 'arabic' => 'شارع الثانوية',\n// 'turkey' => 'SENEVİYE YOLU',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 178,\n// 'arabic' => ' الدير',\n// 'turkey' => 'ŞARG ELDİR',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 179,\n// 'arabic' => 'وادي السلقا',\n// 'turkey' => 'VEDİ SELGE',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 180,\n// 'arabic' => 'ابراج الكلية',\n// 'turkey' => 'ABRAJ KÜLLİYE',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 181,\n// 'arabic' => 'البروك',\n// 'turkey' => 'AL BRÜK',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 182,\n// 'arabic' => 'البصة',\n// 'turkey' => 'ALBASSA',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 183,\n// 'arabic' => 'بركة',\n// 'turkey' => 'BIRKA',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 184,\n// 'arabic' => 'محطة',\n// 'turkey' => 'MAHATA',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 185,\n// 'arabic' => 'حدبة',\n// 'turkey' => 'HADABA',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 186,\n// 'arabic' => 'حكر الجامع',\n// 'turkey' => 'HİKIR ELCAMİ',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 187,\n// 'arabic' => 'ام ضهير',\n// 'turkey' => 'OM DIHİR',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 188,\n// 'arabic' => 'كلية تقنية',\n// 'turkey' => 'KÜLLİYE TEK.',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 189,\n// 'arabic' => 'بركة الوز',\n// 'turkey' => 'ALVİZ',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 190,\n// 'arabic' => 'عيادة الوكالة',\n// 'turkey' => 'VEKALA',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 191,\n// 'arabic' => 'المستوصف الحكومي',\n// 'turkey' => 'MUSTAFSEF HÜKÜMİ',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 192,\n// 'arabic' => 'حارة البطنية',\n// 'turkey' => 'HARET BATNİYE',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 193,\n// 'arabic' => 'حي الزعفران',\n// 'turkey' => 'HEY ZAFARAN',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 194,\n// 'arabic' => 'دوار الصلاحات',\n// 'turkey' => 'DEVAR SALAHAT',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 195,\n// 'arabic' => 'شرق المغازي',\n// 'turkey' => 'ŞERG MAĞAZİ',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 196,\n// 'arabic' => 'بلوك b',\n// 'turkey' => 'BLUK B',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 197,\n// 'arabic' => 'بلوك d',\n// 'turkey' => 'BLUK D',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 198,\n// 'arabic' => 'دوار صدقي',\n// 'turkey' => 'DEVER SIDKI',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 199,\n// 'arabic' => 'المدخل الجديد',\n// 'turkey' => 'YENİ MEDHAL',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 200,\n// 'arabic' => 'الطريق الجديدة',\n// 'turkey' => 'YENİ YOL',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 201,\n// 'arabic' => 'حاوز المياه',\n// 'turkey' => 'HAVUZ MEYA',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 202,\n// 'arabic' => 'مقبرة',\n// 'turkey' => 'MAKBARA',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 203,\n// 'arabic' => 'خزاعة',\n// 'turkey' => 'KHUZA',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 204,\n// 'arabic' => 'الخرابة',\n// 'turkey' => 'HARABA',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 205,\n// 'arabic' => 'محافظة',\n// 'turkey' => 'MOHAFAZA',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 206,\n// 'arabic' => 'جامعة فلسطين',\n// 'turkey' => 'FİLİSTİN ÜN.',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 207,\n// 'arabic' => 'حارة المصريين',\n// 'turkey' => 'HARET MASRİYİN ',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 208,\n// 'arabic' => 'مستشفى دار السلام',\n// 'turkey' => 'MÜSTAŞFA DARÜSELEM ',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 209,\n// 'arabic' => 'عبسان الجديدة',\n// 'turkey' => 'ABASAN CEDİDE',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 210,\n// 'arabic' => 'عبسان الكبيرة',\n// 'turkey' => 'ABASAN KABİRA',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 211,\n// 'arabic' => 'عبسان الصغيرة',\n// 'turkey' => 'ABASAN ZAĞİRA',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 212,\n// 'arabic' => 'فخاري',\n// 'turkey' => 'FUHARİ',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 213,\n// 'arabic' => 'قرارة',\n// 'turkey' => 'GARARA',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 214,\n// 'arabic' => 'سطر شرقي',\n// 'turkey' => 'SATAR ŞARKİ',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 215,\n// 'arabic' => 'شيخ ناصر',\n// 'turkey' => 'ŞEYH NASIR',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 216,\n// 'arabic' => 'تحلية',\n// 'turkey' => 'TAHLİYE',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 217,\n// 'arabic' => 'اوروبي',\n// 'turkey' => 'AVRUBİ',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 218,\n// 'arabic' => 'بني سهيلا',\n// 'turkey' => 'BENİ SÜHAYİLE',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 219,\n// 'arabic' => 'حي المنارة',\n// 'turkey' => 'HAY ALMANARA',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 220,\n// 'arabic' => 'قاع القرين',\n// 'turkey' => 'KAALKURİN',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 221,\n// 'arabic' => 'معن',\n// 'turkey' => 'MA\\'AN',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 222,\n// 'arabic' => 'جورة اللوت',\n// 'turkey' => 'CÜRT ELUT',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 223,\n// 'arabic' => 'ارميضة',\n// 'turkey' => 'İRMEYDE',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 224,\n// 'arabic' => 'منارة',\n// 'turkey' => 'MENERA',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 225,\n// 'arabic' => 'مدينة حمد',\n// 'turkey' => 'HAMAD ŞEHİRİ',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 226,\n// 'arabic' => 'حي هولندي',\n// 'turkey' => 'HAY HOLANDİ',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 227,\n// 'arabic' => 'حي اماراتي',\n// 'turkey' => 'HAY İMARATİ',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 228,\n// 'arabic' => 'حي نمساوي',\n// 'turkey' => 'HAY NİMSAVİ',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 229,\n// 'arabic' => 'حي ياباني',\n// 'turkey' => 'HAY YABANİ',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 230,\n// 'arabic' => 'المشروع',\n// 'turkey' => 'ALMAŞRU',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 231,\n// 'arabic' => 'مواصي ',\n// 'turkey' => 'MEVASI',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 232,\n// 'arabic' => 'معسكر غربي',\n// 'turkey' => 'MUASKAR ĞARBİ',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 233,\n// 'arabic' => 'سطر غربي',\n// 'turkey' => 'SATIR GARBİ',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 234,\n// 'arabic' => 'حي العرايشية',\n// 'turkey' => 'HAY ALARAYŞİYE',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 235,\n// 'arabic' => 'أبراج قطر',\n// 'turkey' => 'ABRAJ KATAR',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 236,\n// 'arabic' => 'حي الامل',\n// 'turkey' => 'HAY ELAMAL',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 237,\n// 'arabic' => 'مشروع اماراتي',\n// 'turkey' => 'MAŞRU EMERETİ',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 238,\n// 'arabic' => 'البطن السمين',\n// 'turkey' => 'BATIN SAMİN',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 239,\n// 'arabic' => 'حارة البيوك',\n// 'turkey' => 'HARET BEYÜK',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 240,\n// 'arabic' => 'حارة المجايدة',\n// 'turkey' => 'HARET MECEYDE',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 241,\n// 'arabic' => 'دوار ابو حميد',\n// 'turkey' => 'DEVAR ABU HEMIT',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 242,\n// 'arabic' => 'شارع جلال',\n// 'turkey' => 'CELAL YOLU',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 243,\n// 'arabic' => 'شارع جمال عبد الناصر',\n// 'turkey' => 'CEMEL ABDÜLNASIR CAD',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 244,\n// 'arabic' => 'طريق رفح الغربية',\n// 'turkey' => 'TARİG REFAH GAR.',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 245,\n// 'arabic' => 'قيزان النجار',\n// 'turkey' => 'GİZAN NAJAR',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 246,\n// 'arabic' => 'كتيبة',\n// 'turkey' => 'KATİPE',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 247,\n// 'arabic' => 'كراج رفح',\n// 'turkey' => 'KERAJ REFAH',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 248,\n// 'arabic' => 'قيزان ابو رشوان',\n// 'turkey' => 'KİZAN ABU RAŞVAN',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 249,\n// 'arabic' => 'مطار',\n// 'turkey' => 'MATAR',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 250,\n// 'arabic' => 'معبر',\n// 'turkey' => 'MABER',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 251,\n// 'arabic' => 'شوكة',\n// 'turkey' => 'ŞÜKA',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 252,\n// 'arabic' => 'حي النصر',\n// 'turkey' => 'HAY ALNASIR',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 253,\n// 'arabic' => 'حي السلام',\n// 'turkey' => 'HAY ALSALAM',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 254,\n// 'arabic' => 'خربة العدس',\n// 'turkey' => 'HİRBET ALADAS',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 255,\n// 'arabic' => 'ميراج ',\n// 'turkey' => 'MİRAJ',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 256,\n// 'arabic' => 'شوكة شمالية',\n// 'turkey' => 'KUZEY ŞÜKE',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 257,\n// 'arabic' => 'شوكة الوسطى',\n// 'turkey' => 'ORTA ŞÜKE',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 258,\n// 'arabic' => 'حي الجنينة',\n// 'turkey' => 'HAY CENİYNE',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 259,\n// 'arabic' => 'حي البراهمة',\n// 'turkey' => 'HEY BEREHME',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 260,\n// 'arabic' => 'حي كندا',\n// 'turkey' => 'HEY KANADA',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 261,\n// 'arabic' => 'بحر',\n// 'turkey' => 'BAHAR',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 262,\n// 'arabic' => 'حي سعودي',\n// 'turkey' => 'LHAY SUADİ',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 263,\n// 'arabic' => 'دوار زعرب',\n// 'turkey' => 'DİVAR ZURUP',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 264,\n// 'arabic' => 'حي شعوت',\n// 'turkey' => 'HAY ŞÜAT',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 265,\n// 'arabic' => 'مخيم بدر',\n// 'turkey' => 'MUHAYAM BADIR',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 266,\n// 'arabic' => 'قرية سويدية',\n// 'turkey' => 'KARYA SEVİDİ',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 267,\n// 'arabic' => 'تل السلطان',\n// 'turkey' => 'TEL SULTAN',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 268,\n// 'arabic' => 'ميراج الغربية',\n// 'turkey' => 'MIRAJ GARBİYE',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 269,\n// 'arabic' => 'مشروع سعودي',\n// 'turkey' => 'MAŞRU SUADİ',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 270,\n// 'arabic' => 'دوار العودة',\n// 'turkey' => 'DEVAR AVDE',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 271,\n// 'arabic' => 'دوار النجمة',\n// 'turkey' => 'DEVAR NİJMA',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 272,\n// 'arabic' => 'مخيم بربرة',\n// 'turkey' => 'MUHEYİM BERBERA',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 273,\n// 'arabic' => 'شابورة',\n// 'turkey' => 'ŞABURA',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 274,\n// 'arabic' => 'حي البرازيل',\n// 'turkey' => 'HAY ALBARAZİL',\n//\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 275,\n// 'arabic' => 'عريبة',\n// 'turkey' => 'İRİBEH',\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 276,\n// 'arabic' => 'منطقة مصبح',\n// 'turkey' => 'MSABEH',\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 277,\n// 'arabic' => 'يبنا',\n// 'turkey' => 'YÜBNE',\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 278,\n// 'arabic' => 'الشارع العام',\n// 'turkey' => 'ANA CAD',\n// 'city_id' => NULL,\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 279,\n// 'arabic' => 'خلف البلدية',\n// 'turkey' => 'BELEDİYE ARKASI',\n// 'city_id' => null,\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 280,\n// 'arabic' => 'موقف',\n// 'turkey' => 'MAVGIF',\n// 'city_id' => NULL,\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 281,\n// 'arabic' => 'البلد',\n// 'turkey' => 'ALBALAD',\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 282,\n// 'arabic' => 'معسكر',\n// 'turkey' => 'MUASKAR',\n// 'city_id' => NULL,\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 283,\n// 'arabic' => 'جمارك',\n// 'turkey' => 'CEMERİK',\n// 'city_id' => NULL,\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 284,\n// 'arabic' => 'ايرز',\n// 'turkey' => 'EİRİZ',\n// 'city_id' => NULL,\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 285,\n// 'arabic' => 'شارع صلاح الدين',\n// 'turkey' => 'SALAHEDDİN CAD.',\n// 'city_id' => NULL,\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 286,\n// 'arabic' => ' المخابرات',\n// 'turkey' => 'MUHABERET',\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 287,\n// 'arabic' => ' رفح الغربية',\n// 'turkey' => ' REFAH GAR.',\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 288,\n// 'arabic' => ' القرية الأولى',\n// 'turkey' => ' ',\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 289,\n// 'arabic' => ' بيت حانون',\n// 'turkey' => 'BEYT HANUN ',\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n//\n// 'arabic' => ' الشوكة الجنوبية',\n// 'turkey' => '',\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 291,\n// 'arabic' => ' القرية البدوية',\n// 'turkey' => ' ',\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 292,\n// 'arabic' => 'العريبة',\n// 'turkey' => ' ',\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 293,\n// 'arabic' => 'المغراقة',\n// 'turkey' => ' ',\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 294,\n// 'arabic' => 'الزوايدة',\n// 'turkey' => ' ',\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 295,\n// 'arabic' => 'الشرقية',\n// 'turkey' => ' ',\n//\n// ]);\n// \\App\\NameTranslation::create([\n// 'id' => 296,\n// 'arabic' => 'رفح',\n// 'turkey' => ' ',\n//\n// ]);\n// \\App\\NameTranslation::create([\n// 'id' => 297,\n// 'arabic' => 'العامودي',\n// 'turkey' => ' ',\n//\n// ]);\n// \\App\\NameTranslation::create([\n// 'id' => 298,\n// 'arabic' => 'النصيرات',\n// 'turkey' => ' ',\n//\n// ]);\n// \\App\\NameTranslation::create([\n// 'id' => 299,\n// 'arabic' => 'خانيونس',\n// 'turkey' => ' ',\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 300,\n// 'arabic' => 'السنتيشن',\n// 'turkey' => ' ',\n//\n// ]);\n// \\App\\NameTranslation::create([\n// 'id' => 301,\n// 'arabic' => 'اللبابيدي',\n// 'turkey' => ' ',\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 302,\n// 'arabic' => 'برج 22',\n// 'turkey' => ' ',\n//\n// ]);\n// \\App\\NameTranslation::create([\n// 'id' => 303,\n// 'arabic' => 'الطريق العام ',\n// 'turkey' => ' ',\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 304,\n// 'arabic' => 'صوفا ',\n// 'turkey' => ' ',\n//\n// ]);\n// \\App\\NameTranslation::create([\n// 'id' => 305,\n// 'arabic' => 'البريج ',\n// 'turkey' => ' ',\n//\n// ]);\n// \\App\\NameTranslation::create([\n// 'id' => 306,\n// 'arabic' => 'القلعة ',\n// 'turkey' => ' ',\n//\n// ]);\n// \\App\\NameTranslation::create([\n// 'id' => 307,\n// 'arabic' => 'المصدر ',\n// 'turkey' => ' ',\n//\n// ]);\n// \\App\\NameTranslation::create([\n// 'id' => 308,\n// 'arabic' => 'الشمال ',\n// 'turkey' => ' ',\n//\n// ]);\n// \\App\\NameTranslation::create([\n// 'id' => 309,\n// 'arabic' => 'الهوجا ',\n// 'turkey' => ' ',\n//\n// ]);\n// \\App\\NameTranslation::create([\n// 'id' => 310,\n// 'arabic' => 'غزة ',\n// 'turkey' => ' ',\n//\n// ]);\n// \\App\\NameTranslation::create([\n// 'id' => 311,\n// 'arabic' => 'مدخل القرية ',\n// 'turkey' => ' ',\n//\n// ]);\n// \\App\\NameTranslation::create([\n// 'id' => 312,\n// 'arabic' => ' عيادة الوكالة',\n// 'turkey' => ' ',\n//\n// ]);\n// \\App\\NameTranslation::create([\n// 'id' => 313,\n// 'arabic' => ' برج 16',\n// 'turkey' => ' ',\n//\n// ]);\n// \\App\\NameTranslation::create([\n// 'id' => 314,\n// 'arabic' => ' برج 21',\n// 'turkey' => ' ',\n//\n// ]);\n// \\App\\NameTranslation::create([\n// 'id' => 315,\n// 'arabic' => ' برج 23',\n// 'turkey' => ' ',\n//\n// ]);\n// \\App\\NameTranslation::create([\n// 'id' => 316,\n// 'arabic' => 'بلوك g ',\n// 'turkey' => ' ',\n//\n// ]);\n// \\App\\NameTranslation::create([\n// 'id' => 317,\n// 'arabic' => 'بلوك k ',\n// 'turkey' => ' ',\n//\n// ]);\n// \\App\\NameTranslation::create([\n// 'id' => 318,\n// 'arabic' => 'شارع النادي',\n// 'turkey' => ' ',\n//\n// ]);\n// \\App\\NameTranslation::create([\n// 'id' => 319,\n// 'arabic' => 'شارع قطر',\n// 'turkey' => ' ',\n//\n// ]);\n// \\App\\NameTranslation::create([\n// 'id' => 320,\n// 'arabic' => 'فندق الأمل',\n// 'turkey' => ' ',\n//\n// ]);\n// \\App\\NameTranslation::create([\n// 'id' => 321,\n// 'arabic' => 'برج 11',\n// 'turkey' => ' ',\n//\n// ]);\n// \\App\\NameTranslation::create([\n// 'id' => 322,\n// 'arabic' => 'برج 12',\n// 'turkey' => ' ',\n//\n// ]);\n// \\App\\NameTranslation::create([\n// 'id' => 323,\n// 'arabic' => 'برج 14',\n// 'turkey' => ' ',\n// 'city_id' => null,\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 324,\n// 'arabic' => 'حى الصلاح',\n// 'turkey' => ' ',\n//\n// ]);\n// \\App\\NameTranslation::create([\n// 'id' => 325,\n// 'arabic' => 'حى ابو عبيدة',\n// 'turkey' => ' ',\n//\n// ]);\n// \\App\\NameTranslation::create([\n// 'id' => 326,\n// 'arabic' => 'برج 6',\n// 'turkey' => ' ',\n//\n// ]);\n// \\App\\NameTranslation::create([\n// 'id' => 327,\n// 'arabic' => 'برج 34',\n// 'turkey' => ' ',\n//\n// ]);\n// \\App\\NameTranslation::create([\n// 'id' => 328,\n// 'arabic' => 'برج 25',\n// 'turkey' => ' ',\n//\n// ]);\n// \\App\\NameTranslation::create([\n// 'id' => 329,\n// 'arabic' => 'الأبراج',\n// 'turkey' => ' ',\n//\n// ]);\n// \\App\\NameTranslation::create([\n// 'id' => 330,\n// 'arabic' => 'الزنة',\n// 'turkey' => ' ',\n//\n// ]);\n// \\App\\NameTranslation::create([\n// 'id' => 331,\n// 'arabic' => 'الفاخورة',\n// 'turkey' => ' ',\n//\n// ]);\n// \\App\\NameTranslation::create([\n// 'id' => 332,\n// 'arabic' => 'القصاصيب',\n// 'turkey' => ' ',\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 333,\n// 'arabic' => ' الامن العام',\n// 'turkey' => ' ',\n//\n// ]);\n// \\App\\NameTranslation::create([\n// 'id' => 334,\n// 'arabic' => ' ',\n// 'turkey' => 'الاتصالات ',\n//\n// ]);\n// \\App\\NameTranslation::create([\n// 'id' => 335,\n// 'arabic' => ' الترخيص القديم',\n// 'turkey' => ' ',\n//\n// ]);\n// \\App\\NameTranslation::create([\n// 'id' => 336,\n// 'arabic' => 'الجامع الكبير',\n// 'turkey' => ' ',\n//\n// ]);\n// \\App\\NameTranslation::create([\n// 'id' => 337,\n// 'arabic' => 'العبور ',\n// 'turkey' => ' ',\n//\n// ]);\n// \\App\\NameTranslation::create([\n// 'id' => 338,\n// 'arabic' => ' العلمي',\n// 'turkey' => ' ',\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 339,\n// 'arabic' => 'المدرسة الزراعية ',\n// 'turkey' => ' ',\n//\n// ]);\n// \\App\\NameTranslation::create([\n// 'id' => 340,\n// 'arabic' => 'المدرسة الأمريكية',\n// 'turkey' => ' ',\n//\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 341,\n// 'arabic' => ' الغربية',\n// 'turkey' => ' ',\n//\n// ]);\n// \\App\\NameTranslation::create([\n// 'id' => 342,\n// 'arabic' => ' المزلقان',\n// 'turkey' => ' ',\n//\n// ]);\n// \\App\\NameTranslation::create([\n// 'id' => 343,\n// 'arabic' => 'المشاهرة',\n// 'turkey' => ' ',\n//\n// ]);\n// \\App\\NameTranslation::create([\n// 'id' => 344,\n// 'arabic' => 'المشتل',\n// 'turkey' => ' ',\n//\n// ]);\n// \\App\\NameTranslation::create([\n// 'id' => 345,\n// 'arabic' => 'عبسان',\n// 'turkey' => ' ',\n//\n// ]);\n// \\App\\NameTranslation::create([\n// 'id' => 346,\n// 'arabic' => 'صلاح الدين',\n// 'turkey' => ' ',\n// 'city_id' => null,\n// ]);\n//\n// \\App\\NameTranslation::create([\n// 'id' => 347,\n// 'arabic' => 'شارع الجمارك',\n// 'turkey' => ' ',\n//\n// ]);\n// \\App\\NameTranslation::create([\n// 'id' => 348,\n// 'arabic' => 'شارع ابو عوده',\n// 'turkey' => ' ',\n//\n// ]);\n// \\App\\NameTranslation::create([\n// 'id' => 349,\n// 'arabic' => 'جباليا',\n// 'turkey' => ' ',\n//\n// ]);\n\n }", "public function submitAction(){\n $language_long = $this->getRequest()->getParam('lang_long');\n $language = $this->getRequest()->getParam('lang_short');\n $wordset_name = $this->getRequest()->getParam('name_of_set');\n $counter=0;\n $wordsInfo=array();\n while(null!==$this->getRequest()->getParam('word_'.$counter.'_original')){\n $wordsInfo[$counter]['word'] = str_replace(\"\\\"\", \"\",\n $this->getRequest()->getParam('word_'.$counter.'_original'));\n $wordsInfo[$counter]['translation'] = str_replace(\"\\\"\", \"\",\n $this->getRequest()->getParam('word_'.$counter.'_translation'));\n $counter++;\n }\n\n // fetching ID of language or if it does not exists inserting language into db and fetching its id\n // anyway you get id of language if it existed or did not\n $model = new Application_Model_DbTable_Language();\n $languageId = $model->fetchOrInsertLanguage($language, $language_long);\n\n $model = new Application_Model_DbTable_Wordset();\n $wordsetId = $model->fetchOrInsertWordset($wordset_name, $languageId);\n\n $model = new Application_Model_DbTable_Words();\n foreach($wordsInfo as $word){\n $wordId = $model->fetchOrInsertWord($word['word']);\n $translationId = $model->fetchOrInsertWord($word['translation']);\n\n $wht_model = new Application_Model_DbTable_Wordhastranslation();\n $wordToTranslationReltionId = $wht_model->fetchOrInsertRelation($wordId, $translationId);\n\n $whw_model = new Application_Model_DbTable_Wordhaswordset();\n $wordToWordsetRelationId = $whw_model->fetchOrInsertRelation($wordId, $wordsetId);\n\n\n }\n }", "public function run()\n {\n Model::unguard();\n\n foreach (Language::all() as $lang) {\n if (!file_exists(storage_path('locales/' . $lang->code . '/translation.json'))) {\n continue;\n }\n\n $translates = file_get_contents(storage_path('locales/' . $lang->code . '/translation.json'));\n $translates = json_decode($translates, true);\n\n $translates = Arr::dot($translates);\n\n foreach ($translates as $key => $translate) {\n if (UiTranslate::whereLanguageId($lang->id)->where('key', $key)->first()) {\n continue;\n }\n\n UiTranslate::create([\n 'language_id' => $lang->id,\n 'key' => $key,\n 'value' => $translate,\n ]);\n }\n }\n }", "function GetLocalizedTexts()\n\t{\n\t\t$result = $this->sendRequest(\"GetLocalizedTexts\", array());\t\n\t\treturn $this->getResultFromResponse($result);\n\t}", "function doTranslate($file,$languages){\n\techo \"\\n\\n=============================\\n\";\n\techo \"Translating $file\\n\";\n\techo \"=============================\\n\";\n\t$filenamepart=explodeFile($file);\n\t$buffer=file_get_contents($file);\n\t//loop through the languages\n\tforeach ($languages as $key=>$lang){\n\t\techo \"-----------------------------\\n\";\n\t\techo \"Translating to language $key\\n\";\n\t\techo \"-----------------------------\\n\";\n\t\t$posR=0;\n\t\t$translated = \"\";\n\t\twhile (true){\n\t\t\t//find next occurence of a data-i18n attribute\n\t\t\t$pos1 = getNextDataI18N($buffer,$posR+1);\n\t\t\t\n\t\t\t//if there is no more occurence, there's nothing more to do; break this loop\n\t\t\tif ($pos1==false) {break;}\n\t\t\t\n\t\t\t//else extract the dataName from this attribute\n\t\t\t$pos2 = getNextQuote($buffer,$pos1+1);\n\t\t\t$dataName = getTextBetween($buffer,$pos1,$pos2);\n\t\t\n\t\t\t//append with text that comes before the string to be translated\n\t\t\t$posL = getNextGt($buffer,$pos2);\n\t\t\t$translated .= getTextBefore($buffer,$posR,$posL);\n\t\t\t\n\t\t\t//append with translation of said string\n\t\t\t$replaceText = getI18nText($dataName,$lang);\n\t\t\techo \"* $dataName=$replaceText\\n\";\t\n\t\t\t$translated .= $replaceText;\n\t\t\t\n\t\t\t//go to end of translated string\n\t\t\t$posR = getNextLt($buffer,$posL);\n\t\t\t$pos1 = $posR;\n\t\t\n\t\t}\n\t\t//append part of file after last translated string\n\t\t$translated .= substr($buffer,$posR,-1);// getTextAfter($buffer,$posR);\n\t\t\n\t\t//if language directory does not exist, create it\n\t\t$directory = $filenamepart[0].\"$key/\"; \n\t\tif (!is_dir($directory)) {\n\t\t\tmkdir($directory);\n\t\t\techo \"* created directory $directory\\n\";\n\t\t}\n\t\t\n\t\t//create file for language\n\t\t$newFile=$directory.$filenamepart[1];\n\t\tfile_put_contents($newFile,$translated);\n\t\t\n\t}\n}", "function list_translation_updates()\n {\n }", "public function languages_get() {\n\t\t$language_files = array();\n\t\t$all_files = $this->crud_model->get_list_of_language_files();\n\t\t$counter = 0;\n\t\tforeach ($all_files as $file) {\n\t\t\t$info = pathinfo($file);\n\t\t\tif( isset($info['extension']) && strtolower($info['extension']) == 'json') {\n\t\t\t\t$inner_array = array();\n\t\t\t\t$file_name = explode('.json', $info['basename']);\n\t\t\t\t$inner_array = array(\n\t\t\t\t\t'id' => $counter++,\n\t\t\t\t\t'value' => $file_name[0],\n\t\t\t\t\t'displayedValue' => ucfirst($file_name[0])\n\t\t\t\t);\n\n\t\t\t\tarray_push($language_files, $inner_array);\n\t\t\t}\n\t\t}\n\t\treturn $language_files;\n\t}", "public function set_translations($domain, $path = '')\n {\n }", "public function getTranslations()\n {\n if (!$this->translations) {\n $this->translations = [];\n }\n if (!($this->translations instanceof Collection)) {\n $this->translations = new ArrayCollection($this->translations);\n }\n return $this->translations;\n }", "public function run()\n {\n \n\n \\DB::table('languages')->delete();\n \n \\DB::table('languages')->insert(array (\n 0 => \n array (\n 'id' => 1,\n 'key' => 'customer',\n 'en' => 'Customer ',\n 'km' => 'អតិថិជន',\n 'created_at' => '2017-08-31 01:42:11',\n 'updated_at' => '2017-08-31 01:42:11',\n ),\n 1 => \n array (\n 'id' => 2,\n 'key' => 'purchase',\n 'en' => 'Purchase',\n 'km' => 'ទិញចូល',\n 'created_at' => '2017-08-31 01:42:11',\n 'updated_at' => '2017-08-31 01:42:11',\n ),\n 2 => \n array (\n 'id' => 3,\n 'key' => 'profit',\n 'en' => 'Profit',\n 'km' => 'ចំណេញ',\n 'created_at' => '2017-08-31 01:42:11',\n 'updated_at' => '2017-08-31 01:42:11',\n ),\n 3 => \n array (\n 'id' => 4,\n 'key' => 'list_sale',\n 'en' => 'List Sale',\n 'km' => 'បញ្ជីនៃការលក់',\n 'created_at' => '2017-08-31 01:42:11',\n 'updated_at' => '2017-08-31 01:42:11',\n ),\n 4 => \n array (\n 'id' => 5,\n 'key' => 'today_sale',\n 'en' => 'Today Sale',\n 'km' => 'លក់ថ្ងៃនេះ',\n 'created_at' => '2017-08-31 01:42:11',\n 'updated_at' => '2017-08-31 01:42:11',\n ),\n 5 => \n array (\n 'id' => 6,\n 'key' => 'login',\n 'en' => 'Login ',\n 'km' => 'ចូលគណនី',\n 'created_at' => '2017-08-31 01:42:11',\n 'updated_at' => '2017-08-31 01:42:11',\n ),\n 6 => \n array (\n 'id' => 7,\n 'key' => 'register',\n 'en' => 'Register',\n 'km' => 'ចុះឈ្មោះ',\n 'created_at' => '2017-08-31 01:42:11',\n 'updated_at' => '2017-08-31 01:42:11',\n ),\n 7 => \n array (\n 'id' => 8,\n 'key' => 'pos',\n 'en' => 'POS',\n 'km' => 'ផ្ទាំងលក់',\n 'created_at' => '2017-08-31 01:42:21',\n 'updated_at' => '2017-08-31 01:42:21',\n ),\n 8 => \n array (\n 'id' => 9,\n 'key' => 'open_item',\n 'en' => 'Open Item',\n 'km' => 'បើកស្តុកដើមគ្រា',\n 'created_at' => '2017-08-31 01:42:21',\n 'updated_at' => '2017-08-31 01:42:21',\n ),\n 9 => \n array (\n 'id' => 10,\n 'key' => 'checklist',\n 'en' => 'Checklist',\n 'km' => 'ពិនិត្រទំនិញ',\n 'created_at' => '2017-08-31 01:42:21',\n 'updated_at' => '2017-08-31 01:42:21',\n ),\n 10 => \n array (\n 'id' => 11,\n 'key' => 'dashboard',\n 'en' => 'Dashboard',\n 'km' => 'ផ្ទាំងគ្រប់គ្រង',\n 'created_at' => '2017-08-31 01:42:47',\n 'updated_at' => '2017-08-31 01:42:47',\n ),\n 11 => \n array (\n 'id' => 12,\n 'key' => 'login_status',\n 'en' => 'Login Status',\n 'km' => 'ស្ថានភាពចូល',\n 'created_at' => '2017-08-31 01:42:47',\n 'updated_at' => '2017-08-31 01:42:47',\n ),\n 12 => \n array (\n 'id' => 13,\n 'key' => 'invoice',\n 'en' => 'Invoice',\n 'km' => 'វិក្កយបត្រ',\n 'created_at' => '2017-08-31 01:42:48',\n 'updated_at' => '2017-08-31 01:42:48',\n ),\n 13 => \n array (\n 'id' => 14,\n 'key' => 'report',\n 'en' => 'Report',\n 'km' => 'របាយការណ៍',\n 'created_at' => '2017-08-31 01:42:48',\n 'updated_at' => '2017-08-31 01:42:48',\n ),\n 14 => \n array (\n 'id' => 15,\n 'key' => 'open_stock',\n 'en' => 'Open Stock',\n 'km' => 'បើកស្តុក',\n 'created_at' => '2017-08-31 01:42:48',\n 'updated_at' => '2017-08-31 01:42:48',\n ),\n 15 => \n array (\n 'id' => 16,\n 'key' => 'production',\n 'en' => 'Production',\n 'km' => 'ការផលិតផល',\n 'created_at' => '2017-08-31 01:42:48',\n 'updated_at' => '2017-08-31 01:42:48',\n ),\n 16 => \n array (\n 'id' => 17,\n 'key' => 'check_list',\n 'en' => 'Checklist',\n 'km' => 'ពិនិត្រទំនិញ',\n 'created_at' => '2017-08-31 01:42:48',\n 'updated_at' => '2017-08-31 01:42:48',\n ),\n 17 => \n array (\n 'id' => 18,\n 'key' => 'area_chart',\n 'en' => 'Area Chart',\n 'km' => 'គំនូសតាងផ្ទៃ',\n 'created_at' => '2017-08-31 01:42:48',\n 'updated_at' => '2017-08-31 01:42:48',\n ),\n 18 => \n array (\n 'id' => 19,\n 'key' => 'logout',\n 'en' => 'Logout',\n 'km' => 'ចាកចេញ\n',\n 'created_at' => '2017-08-31 01:42:48',\n 'updated_at' => '2017-08-31 01:42:48',\n ),\n 19 => \n array (\n 'id' => 20,\n 'key' => 'online',\n 'en' => 'Online',\n 'km' => 'Online',\n 'created_at' => '2017-08-31 01:42:48',\n 'updated_at' => '2017-08-31 01:42:48',\n ),\n 20 => \n array (\n 'id' => 21,\n 'key' => 'table_report',\n 'en' => 'Table Report',\n 'km' => 'តារាងរបាយការណ៍',\n 'created_at' => '2017-08-31 01:42:48',\n 'updated_at' => '2017-08-31 01:42:48',\n ),\n 21 => \n array (\n 'id' => 22,\n 'key' => 'product',\n 'en' => 'Product',\n 'km' => 'ផលិតផល',\n 'created_at' => '2017-08-31 01:42:48',\n 'updated_at' => '2017-08-31 01:42:48',\n ),\n 22 => \n array (\n 'id' => 23,\n 'key' => 'product_category',\n 'en' => 'Product Category',\n 'km' => 'ប្រភេទ​ផលិតផល',\n 'created_at' => '2017-08-31 01:42:48',\n 'updated_at' => '2017-08-31 01:42:48',\n ),\n 23 => \n array (\n 'id' => 24,\n 'key' => 'unit',\n 'en' => 'Unit',\n 'km' => 'ឯកតា/ខ្នាត',\n 'created_at' => '2017-08-31 01:42:48',\n 'updated_at' => '2017-08-31 01:42:48',\n ),\n 24 => \n array (\n 'id' => 25,\n 'key' => 'checklist_stock',\n 'en' => 'Checklist Stock',\n 'km' => 'ផ្ទៀងផ្ទាត់​ ទំនិញ',\n 'created_at' => '2017-08-31 01:42:48',\n 'updated_at' => '2017-08-31 01:42:48',\n ),\n 25 => \n array (\n 'id' => 26,\n 'key' => 'file_manager',\n 'en' => 'File Manager',\n 'km' => 'គ្រប់គ្រងឯកសារ',\n 'created_at' => '2017-08-31 01:42:48',\n 'updated_at' => '2017-08-31 01:42:48',\n ),\n 26 => \n array (\n 'id' => 27,\n 'key' => 'settings',\n 'en' => 'Settings',\n 'km' => 'ការកំណត់',\n 'created_at' => '2017-08-31 01:42:48',\n 'updated_at' => '2017-08-31 01:42:48',\n ),\n 27 => \n array (\n 'id' => 28,\n 'key' => 'open_items',\n 'en' => 'Open Items',\n 'km' => 'ស្តុកដើមគ្រា',\n 'created_at' => '2017-08-31 01:42:53',\n 'updated_at' => '2017-08-31 01:42:53',\n ),\n 28 => \n array (\n 'id' => 29,\n 'key' => 'open_number',\n 'en' => 'Open Number',\n 'km' => 'លេខសំគាល់',\n 'created_at' => '2017-08-31 01:42:54',\n 'updated_at' => '2017-08-31 01:42:54',\n ),\n 29 => \n array (\n 'id' => 30,\n 'key' => 'open_date',\n 'en' => 'Open Date',\n 'km' => 'កាលបរិច្ឆេទ',\n 'created_at' => '2017-08-31 01:42:54',\n 'updated_at' => '2017-08-31 01:42:54',\n ),\n 30 => \n array (\n 'id' => 31,\n 'key' => 'description',\n 'en' => 'Description',\n 'km' => 'ការពិពណ៌នា',\n 'created_at' => '2017-08-31 01:42:54',\n 'updated_at' => '2017-08-31 01:42:54',\n ),\n 31 => \n array (\n 'id' => 32,\n 'key' => 'user',\n 'en' => 'User',\n 'km' => 'អ្នក​ប្រើ',\n 'created_at' => '2017-08-31 01:42:54',\n 'updated_at' => '2017-08-31 01:42:54',\n ),\n 32 => \n array (\n 'id' => 33,\n 'key' => 'created_at',\n 'en' => 'Created at',\n 'km' => 'ថ្ងៃបង្កើត',\n 'created_at' => '2017-08-31 01:42:54',\n 'updated_at' => '2017-08-31 01:42:54',\n ),\n 33 => \n array (\n 'id' => 34,\n 'key' => 'item_detail',\n 'en' => 'Item Detail',\n 'km' => 'លំអិតធាតុផ្សុំផលិតផល',\n 'created_at' => '2017-08-31 01:42:57',\n 'updated_at' => '2017-08-31 01:42:57',\n ),\n 34 => \n array (\n 'id' => 35,\n 'key' => 'item_id',\n 'en' => 'Item ID',\n 'km' => 'លេខ',\n 'created_at' => '2017-08-31 01:42:57',\n 'updated_at' => '2017-08-31 01:42:57',\n ),\n 35 => \n array (\n 'id' => 36,\n 'key' => 'code',\n 'en' => 'Code',\n 'km' => 'កូដ',\n 'created_at' => '2017-08-31 01:42:58',\n 'updated_at' => '2017-08-31 01:42:58',\n ),\n 36 => \n array (\n 'id' => 37,\n 'key' => 'title',\n 'en' => 'Name',\n 'km' => 'ឈ្មោះ',\n 'created_at' => '2017-08-31 01:42:58',\n 'updated_at' => '2017-08-31 01:42:58',\n ),\n 37 => \n array (\n 'id' => 38,\n 'key' => 'qty',\n 'en' => 'Qty',\n 'km' => 'ចំនួន',\n 'created_at' => '2017-08-31 01:42:58',\n 'updated_at' => '2017-08-31 01:42:58',\n ),\n 38 => \n array (\n 'id' => 39,\n 'key' => 'cost',\n 'en' => 'Cost',\n 'km' => 'ថ្លៃដើម',\n 'created_at' => '2017-08-31 01:42:58',\n 'updated_at' => '2017-08-31 01:42:58',\n ),\n 39 => \n array (\n 'id' => 40,\n 'key' => 'price',\n 'en' => 'Price',\n 'km' => 'តម្លៃ',\n 'created_at' => '2017-08-31 01:42:58',\n 'updated_at' => '2017-08-31 01:42:58',\n ),\n 40 => \n array (\n 'id' => 41,\n 'key' => 'discount',\n 'en' => 'Discount',\n 'km' => 'បញ្ចុះតម្លៃ',\n 'created_at' => '2017-08-31 01:42:58',\n 'updated_at' => '2017-08-31 01:42:58',\n ),\n 41 => \n array (\n 'id' => 42,\n 'key' => 'note',\n 'en' => 'Note',\n 'km' => 'ចំណាំ',\n 'created_at' => '2017-08-31 01:42:58',\n 'updated_at' => '2017-08-31 01:42:58',\n ),\n 42 => \n array (\n 'id' => 43,\n 'key' => 'purchases',\n 'en' => 'Purchases',\n 'km' => 'ទិញចូល',\n 'created_at' => '2017-08-31 01:43:32',\n 'updated_at' => '2017-08-31 01:43:32',\n ),\n 43 => \n array (\n 'id' => 44,\n 'key' => 'purchase_number',\n 'en' => 'Purchase Number',\n 'km' => 'លេខសំគាល់',\n 'created_at' => '2017-08-31 01:43:32',\n 'updated_at' => '2017-08-31 01:43:32',\n ),\n 44 => \n array (\n 'id' => 45,\n 'key' => 'customer_purchase',\n 'en' => 'Customer Purchase',\n 'km' => 'ឈ្មោះអតិថិជន',\n 'created_at' => '2017-08-31 01:43:32',\n 'updated_at' => '2017-08-31 01:43:32',\n ),\n 45 => \n array (\n 'id' => 46,\n 'key' => 'reference',\n 'en' => 'Reference',\n 'km' => 'សេចក្តីយោង',\n 'created_at' => '2017-08-31 01:43:32',\n 'updated_at' => '2017-08-31 01:43:32',\n ),\n 46 => \n array (\n 'id' => 47,\n 'key' => 'purchase_date',\n 'en' => 'Purchase Date',\n 'km' => 'កាលបរិច្ឆេទ',\n 'created_at' => '2017-08-31 01:43:34',\n 'updated_at' => '2017-08-31 01:43:34',\n ),\n 47 => \n array (\n 'id' => 48,\n 'key' => 'purchase_reference',\n 'en' => 'Purchase Reference',\n 'km' => 'សេចក្តីយោង',\n 'created_at' => '2017-08-31 01:43:34',\n 'updated_at' => '2017-08-31 01:43:34',\n ),\n 48 => \n array (\n 'id' => 49,\n 'key' => 'productions',\n 'en' => 'Productions ',\n 'km' => 'ផលិតកម្ម',\n 'created_at' => '2017-08-31 02:03:11',\n 'updated_at' => '2017-08-31 02:03:11',\n ),\n 49 => \n array (\n 'id' => 50,\n 'key' => 'production_number',\n 'en' => 'Production Number',\n 'km' => 'លេខសំគាល់',\n 'created_at' => '2017-08-31 02:03:11',\n 'updated_at' => '2017-08-31 02:03:11',\n ),\n 50 => \n array (\n 'id' => 51,\n 'key' => 'production_date',\n 'en' => 'Production Date',\n 'km' => 'កាលបរិច្ឆេទ',\n 'created_at' => '2017-08-31 02:03:11',\n 'updated_at' => '2017-08-31 02:03:11',\n ),\n 51 => \n array (\n 'id' => 52,\n 'key' => 'customer_production',\n 'en' => 'Customer Production ',\n 'km' => 'ផលិតកម្មអតិថិជន',\n 'created_at' => '2017-08-31 02:03:11',\n 'updated_at' => '2017-08-31 02:03:11',\n ),\n 52 => \n array (\n 'id' => 53,\n 'key' => 'production_reference',\n 'en' => 'Production Reference',\n 'km' => 'សេចក្តីយោង',\n 'created_at' => '2017-08-31 02:03:13',\n 'updated_at' => '2017-08-31 02:03:13',\n ),\n 53 => \n array (\n 'id' => 54,\n 'key' => 'units',\n 'en' => 'Units',\n 'km' => 'ឯកតា',\n 'created_at' => '2017-08-31 02:04:27',\n 'updated_at' => '2017-08-31 02:04:27',\n ),\n 54 => \n array (\n 'id' => 55,\n 'key' => 'name',\n 'en' => 'Name',\n 'km' => 'ឈ្មោះ',\n 'created_at' => '2017-08-31 02:04:27',\n 'updated_at' => '2017-08-31 02:04:27',\n ),\n 55 => \n array (\n 'id' => 57,\n 'key' => 'list',\n 'en' => 'List',\n 'km' => 'បញ្ជី',\n 'created_at' => '2017-08-31 02:05:08',\n 'updated_at' => '2017-08-31 02:05:08',\n ),\n 56 => \n array (\n 'id' => 58,\n 'key' => 'detail',\n 'en' => 'Detail',\n 'km' => 'លំអិត',\n 'created_at' => '2017-08-31 02:05:08',\n 'updated_at' => '2017-08-31 02:05:08',\n ),\n 57 => \n array (\n 'id' => 59,\n 'key' => 'purchase_item',\n 'en' => 'Purchase Item ',\n 'km' => 'ទំនិញទិញចូល',\n 'created_at' => '2017-08-31 02:05:08',\n 'updated_at' => '2017-08-31 02:05:08',\n ),\n 58 => \n array (\n 'id' => 60,\n 'key' => 'production_item',\n 'en' => 'Prduction Item ',\n 'km' => 'ទំនិញទិញផលិត',\n 'created_at' => '2017-08-31 02:05:08',\n 'updated_at' => '2017-08-31 02:05:08',\n ),\n 59 => \n array (\n 'id' => 61,\n 'key' => 'sale_invoice',\n 'en' => 'Sale Invoice',\n 'km' => 'វិក័យប័ត្រលក់',\n 'created_at' => '2017-08-31 02:05:08',\n 'updated_at' => '2017-08-31 02:05:08',\n ),\n 60 => \n array (\n 'id' => 62,\n 'key' => 'item',\n 'en' => 'Item ',\n 'km' => 'ទំនិញទិញ',\n 'created_at' => '2017-08-31 02:05:32',\n 'updated_at' => '2017-08-31 02:05:32',\n ),\n 61 => \n array (\n 'id' => 63,\n 'key' => 'items',\n 'en' => 'Items ',\n 'km' => 'ទំនិញទិញ',\n 'created_at' => '2017-08-31 02:05:32',\n 'updated_at' => '2017-08-31 02:05:32',\n ),\n 62 => \n array (\n 'id' => 64,\n 'key' => 'category',\n 'en' => 'Category',\n 'km' => 'ប្រភេទ',\n 'created_at' => '2017-08-31 02:05:32',\n 'updated_at' => '2017-08-31 02:05:32',\n ),\n 63 => \n array (\n 'id' => 65,\n 'key' => 'image',\n 'en' => 'Image',\n 'km' => 'រូបភាព',\n 'created_at' => '2017-08-31 02:05:32',\n 'updated_at' => '2017-08-31 02:05:32',\n ),\n 64 => \n array (\n 'id' => 66,\n 'key' => 'item_category',\n 'en' => 'Item Category',\n 'km' => 'ប្រភេទទំនិញទិញ',\n 'created_at' => '2017-08-31 02:05:33',\n 'updated_at' => '2017-08-31 02:05:33',\n ),\n 65 => \n array (\n 'id' => 67,\n 'key' => 'item_categories',\n 'en' => 'Item Categories',\n 'km' => 'ប្រភេទទំនិញទិញ',\n 'created_at' => '2017-08-31 02:05:33',\n 'updated_at' => '2017-08-31 02:05:33',\n ),\n 66 => \n array (\n 'id' => 68,\n 'key' => 'status',\n 'en' => 'Status',\n 'km' => 'ស្ថានភាព',\n 'created_at' => '2017-08-31 02:05:33',\n 'updated_at' => '2017-08-31 02:05:33',\n ),\n 67 => \n array (\n 'id' => 69,\n 'key' => 'parent',\n 'en' => 'Parent',\n 'km' => 'Parent',\n 'created_at' => '2017-08-31 02:05:35',\n 'updated_at' => '2017-08-31 02:05:35',\n ),\n 68 => \n array (\n 'id' => 70,\n 'key' => 'item_code',\n 'en' => 'Item Code',\n 'km' => 'លេខកូដ',\n 'created_at' => '2017-08-31 02:05:37',\n 'updated_at' => '2017-08-31 02:05:37',\n ),\n 69 => \n array (\n 'id' => 71,\n 'key' => 'num_qty',\n 'en' => 'Size',\n 'km' => 'ទំហំ',\n 'created_at' => '2017-08-31 07:04:51',\n 'updated_at' => '2017-08-31 07:04:51',\n ),\n 70 => \n array (\n 'id' => 72,\n 'key' => 'checklists',\n 'en' => 'Checklists',\n 'km' => 'ពិនិត្រទំនិញ',\n 'created_at' => '2017-08-31 07:45:16',\n 'updated_at' => '2017-08-31 07:45:16',\n ),\n 71 => \n array (\n 'id' => 73,\n 'key' => 'checklist_number',\n 'en' => 'Checklist Number',\n 'km' => 'លេខសំគាល់',\n 'created_at' => '2017-08-31 07:45:16',\n 'updated_at' => '2017-08-31 07:45:16',\n ),\n 72 => \n array (\n 'id' => 74,\n 'key' => 'checklist_date',\n 'en' => 'Checklist Date',\n 'km' => 'កាលបរិច្ឆេទ',\n 'created_at' => '2017-08-31 07:45:16',\n 'updated_at' => '2017-08-31 07:45:16',\n ),\n 73 => \n array (\n 'id' => 75,\n 'key' => 'invoices',\n 'en' => 'Invoices',\n 'km' => 'វិក្កយបត្រ',\n 'created_at' => '2017-08-31 07:46:07',\n 'updated_at' => '2017-08-31 07:46:07',\n ),\n 74 => \n array (\n 'id' => 76,\n 'key' => 'invoice_number',\n 'en' => 'Invoice Number',\n 'km' => 'លេខសំគាល់',\n 'created_at' => '2017-08-31 07:46:07',\n 'updated_at' => '2017-08-31 07:46:07',\n ),\n 75 => \n array (\n 'id' => 77,\n 'key' => 'deposit',\n 'en' => 'Deposit',\n 'km' => 'ប្រាក់កក់',\n 'created_at' => '2017-08-31 07:46:07',\n 'updated_at' => '2017-08-31 07:46:07',\n ),\n 76 => \n array (\n 'id' => 78,\n 'key' => 'complete_date',\n 'en' => 'Complete Date',\n 'km' => 'កាលបរិច្ឆេទ កំណត់',\n 'created_at' => '2017-08-31 07:46:07',\n 'updated_at' => '2017-08-31 07:46:07',\n ),\n 77 => \n array (\n 'id' => 79,\n 'key' => 'complete_price',\n 'en' => 'Complete Price',\n 'km' => 'តម្លៃបង្គ្រប់',\n 'created_at' => '2017-08-31 07:46:07',\n 'updated_at' => '2017-08-31 07:46:07',\n ),\n 78 => \n array (\n 'id' => 80,\n 'key' => 'customers',\n 'en' => 'Customers',\n 'km' => 'អតិថិជន',\n 'created_at' => '2017-08-31 07:56:02',\n 'updated_at' => '2017-08-31 07:56:02',\n ),\n 79 => \n array (\n 'id' => 81,\n 'key' => 'gender',\n 'en' => 'Gender',\n 'km' => 'ភេទ',\n 'created_at' => '2017-08-31 07:56:02',\n 'updated_at' => '2017-08-31 07:56:02',\n ),\n 80 => \n array (\n 'id' => 82,\n 'key' => 'phone',\n 'en' => 'Phone',\n 'km' => 'ទូរស័ព្ទលេខ',\n 'created_at' => '2017-08-31 07:56:02',\n 'updated_at' => '2017-08-31 07:56:02',\n ),\n 81 => \n array (\n 'id' => 83,\n 'key' => 'select_report_type',\n 'en' => 'Select Report Type',\n 'km' => 'ប្រភេទរបាយការណ៍',\n 'created_at' => '2017-08-31 08:38:26',\n 'updated_at' => '2017-08-31 08:38:26',\n ),\n 82 => \n array (\n 'id' => 84,\n 'key' => 'reports',\n 'en' => 'Reports',\n 'km' => 'របាយការណ៍',\n 'created_at' => '2017-08-31 08:38:27',\n 'updated_at' => '2017-08-31 08:38:27',\n ),\n 83 => \n array (\n 'id' => 85,\n 'key' => 'invoice_date',\n 'en' => 'Invoice Date',\n 'km' => 'កាលបរិច្ឆេទវិក្កយបត្រ',\n 'created_at' => '2017-08-31 08:38:56',\n 'updated_at' => '2017-08-31 08:38:56',\n ),\n 84 => \n array (\n 'id' => 86,\n 'key' => 'customer_invoice',\n 'en' => 'Customer Invoice',\n 'km' => 'វិក័យប័ត្រអតិថិជន',\n 'created_at' => '2017-08-31 08:38:56',\n 'updated_at' => '2017-08-31 08:38:56',\n ),\n 85 => \n array (\n 'id' => 87,\n 'key' => 'amount',\n 'en' => 'Amount',\n 'km' => 'សរុប',\n 'created_at' => '2017-08-31 14:08:13',\n 'updated_at' => '2017-08-31 14:08:13',\n ),\n 86 => \n array (\n 'id' => 88,\n 'key' => 'first_page_you_see',\n 'en' => 'First page you see',\n 'km' => 'ទំព័រទីមួយដែលអ្នកឃើញ',\n 'created_at' => '2017-09-01 12:18:12',\n 'updated_at' => '2017-09-01 12:18:12',\n ),\n 87 => \n array (\n 'id' => 89,\n 'key' => 'logged_in',\n 'en' => 'Logged in',\n 'km' => 'បានចូល',\n 'created_at' => '2017-09-01 12:18:12',\n 'updated_at' => '2017-09-01 12:18:12',\n ),\n 88 => \n array (\n 'id' => 90,\n 'key' => 'administration',\n 'en' => 'Administration',\n 'km' => 'រដ្ឋបាល\n',\n 'created_at' => '2017-09-01 12:18:13',\n 'updated_at' => '2017-09-01 12:18:13',\n ),\n 89 => \n array (\n 'id' => 91,\n 'key' => 'all',\n 'en' => 'All',\n 'km' => '>',\n 'created_at' => '2017-09-01 12:25:40',\n 'updated_at' => '2017-09-01 12:25:40',\n ),\n 90 => \n array (\n 'id' => 92,\n 'key' => 'in_the_database',\n 'en' => 'In the database',\n 'km' => 'នៅក្នុងមូលដ្ឋានទិន្នន័យ',\n 'created_at' => '2017-09-01 12:25:40',\n 'updated_at' => '2017-09-01 12:25:40',\n ),\n 91 => \n array (\n 'id' => 93,\n 'key' => 'admin',\n 'en' => 'Admin',\n 'km' => 'អ្នកគ្រប់គ្រង',\n 'created_at' => '2017-09-01 12:25:41',\n 'updated_at' => '2017-09-01 12:25:41',\n ),\n 92 => \n array (\n 'id' => 94,\n 'key' => 'add',\n 'en' => 'Add',\n 'km' => 'បន្ថែម',\n 'created_at' => '2017-09-01 12:25:41',\n 'updated_at' => '2017-09-01 12:25:41',\n ),\n 93 => \n array (\n 'id' => 95,\n 'key' => 'actions',\n 'en' => 'Actions',\n 'km' => 'សកម្មភាព',\n 'created_at' => '2017-09-01 12:25:41',\n 'updated_at' => '2017-09-01 12:25:41',\n ),\n 94 => \n array (\n 'id' => 96,\n 'key' => 'emptytable',\n 'en' => 'Empty Table',\n 'km' => 'តារាងទទេ',\n 'created_at' => '2017-09-01 12:25:41',\n 'updated_at' => '2017-09-01 12:25:41',\n ),\n 95 => \n array (\n 'id' => 97,\n 'key' => 'info',\n 'en' => 'Info',\n 'km' => 'ព័ត៌មាន',\n 'created_at' => '2017-09-01 12:25:41',\n 'updated_at' => '2017-09-01 12:25:41',\n ),\n 96 => \n array (\n 'id' => 98,\n 'key' => 'infoempty',\n 'en' => 'Info Empty',\n 'km' => 'មិនមានព័ត៌មាន ',\n 'created_at' => '2017-09-01 12:25:41',\n 'updated_at' => '2017-09-01 12:25:41',\n ),\n 97 => \n array (\n 'id' => 99,\n 'key' => 'infofiltered',\n 'en' => 'Info Filtered',\n 'km' => 'ព័ត៌មាន Filtered',\n 'created_at' => '2017-09-01 12:25:41',\n 'updated_at' => '2017-09-01 12:25:41',\n ),\n 98 => \n array (\n 'id' => 100,\n 'key' => 'infopostfix',\n 'en' => 'Info Postfix',\n 'km' => 'ព័ត៌មាន Postfix',\n 'created_at' => '2017-09-01 12:25:41',\n 'updated_at' => '2017-09-01 12:25:41',\n ),\n 99 => \n array (\n 'id' => 101,\n 'key' => 'thousands',\n 'en' => 'Thousands',\n 'km' => ' ខ្ទង់ពាន់',\n 'created_at' => '2017-09-01 12:25:41',\n 'updated_at' => '2017-09-01 12:25:41',\n ),\n 100 => \n array (\n 'id' => 102,\n 'key' => 'lengthmenu',\n 'en' => 'Length Menu',\n 'km' => 'ម៉ឺនុយប្រវែង',\n 'created_at' => '2017-09-01 12:25:41',\n 'updated_at' => '2017-09-01 12:25:41',\n ),\n 101 => \n array (\n 'id' => 103,\n 'key' => 'loadingrecords',\n 'en' => 'Loading Records',\n 'km' => 'កំពុងផ្ទុកកំណត់ត្រា',\n 'created_at' => '2017-09-01 12:25:42',\n 'updated_at' => '2017-09-01 12:25:42',\n ),\n 102 => \n array (\n 'id' => 104,\n 'key' => 'processing',\n 'en' => 'Processing',\n 'km' => 'កំពុងដំណើរការ',\n 'created_at' => '2017-09-01 12:25:42',\n 'updated_at' => '2017-09-01 12:25:42',\n ),\n 103 => \n array (\n 'id' => 105,\n 'key' => 'search',\n 'en' => 'Search',\n 'km' => 'ស្វែងរក',\n 'created_at' => '2017-09-01 12:25:42',\n 'updated_at' => '2017-09-01 12:25:42',\n ),\n 104 => \n array (\n 'id' => 106,\n 'key' => 'zerorecords',\n 'en' => 'Zero Records',\n 'km' => 'កំណត់ត្រាសូន្យ',\n 'created_at' => '2017-09-01 12:25:42',\n 'updated_at' => '2017-09-01 12:25:42',\n ),\n 105 => \n array (\n 'id' => 107,\n 'key' => 'first',\n 'en' => 'First',\n 'km' => 'ដំបូង',\n 'created_at' => '2017-09-01 12:25:42',\n 'updated_at' => '2017-09-01 12:25:42',\n ),\n 106 => \n array (\n 'id' => 108,\n 'key' => 'last',\n 'en' => 'Last',\n 'km' => 'ចុងក្រោយ',\n 'created_at' => '2017-09-01 12:25:42',\n 'updated_at' => '2017-09-01 12:25:42',\n ),\n 107 => \n array (\n 'id' => 109,\n 'key' => 'next',\n 'en' => 'Next',\n 'km' => 'បន្ទាប់',\n 'created_at' => '2017-09-01 12:25:42',\n 'updated_at' => '2017-09-01 12:25:42',\n ),\n 108 => \n array (\n 'id' => 110,\n 'key' => 'previous',\n 'en' => 'Previous',\n 'km' => 'ពីមុន',\n 'created_at' => '2017-09-01 12:25:42',\n 'updated_at' => '2017-09-01 12:25:42',\n ),\n 109 => \n array (\n 'id' => 111,\n 'key' => 'sortascending',\n 'en' => 'Sort Ascending',\n 'km' => 'តម្រៀបតាមលំដាប់ឡើង',\n 'created_at' => '2017-09-01 12:25:42',\n 'updated_at' => '2017-09-01 12:25:42',\n ),\n 110 => \n array (\n 'id' => 112,\n 'key' => 'sortdescending',\n 'en' => 'Sort Descending',\n 'km' => 'តម្រៀបតាមលំដាប់ចុះក្រោម',\n 'created_at' => '2017-09-01 12:25:42',\n 'updated_at' => '2017-09-01 12:25:42',\n ),\n 111 => \n array (\n 'id' => 113,\n 'key' => 'copy',\n 'en' => 'Copy',\n 'km' => 'ច្បាប់ចម្លង',\n 'created_at' => '2017-09-01 12:25:42',\n 'updated_at' => '2017-09-01 12:25:42',\n ),\n 112 => \n array (\n 'id' => 114,\n 'key' => 'excel',\n 'en' => 'Excel',\n 'km' => 'Excel',\n 'created_at' => '2017-09-01 12:25:42',\n 'updated_at' => '2017-09-01 12:25:42',\n ),\n 113 => \n array (\n 'id' => 115,\n 'key' => 'csv',\n 'en' => 'CSV',\n 'km' => 'CSV',\n 'created_at' => '2017-09-01 12:25:42',\n 'updated_at' => '2017-09-01 12:25:42',\n ),\n 114 => \n array (\n 'id' => 116,\n 'key' => 'pdf',\n 'en' => 'PDF',\n 'km' => 'PDF',\n 'created_at' => '2017-09-01 12:25:42',\n 'updated_at' => '2017-09-01 12:25:42',\n ),\n 115 => \n array (\n 'id' => 117,\n 'key' => 'print',\n 'en' => 'Print',\n 'km' => 'បោះពុម្ព',\n 'created_at' => '2017-09-01 12:25:43',\n 'updated_at' => '2017-09-01 12:25:43',\n ),\n 116 => \n array (\n 'id' => 118,\n 'key' => 'column_visibility',\n 'en' => 'Column Visibility',\n 'km' => 'មើលឃើញជួរឈរ',\n 'created_at' => '2017-09-01 12:25:43',\n 'updated_at' => '2017-09-01 12:25:43',\n ),\n 117 => \n array (\n 'id' => 119,\n 'key' => 'delete_confirm',\n 'en' => 'Delete Confirm',\n 'km' => 'លុបការអះអាង',\n 'created_at' => '2017-09-01 12:25:43',\n 'updated_at' => '2017-09-01 12:25:43',\n ),\n 118 => \n array (\n 'id' => 120,\n 'key' => 'delete_confirmation_title',\n 'en' => 'Delete Confirmation Title',\n 'km' => 'លុបការបញ្ជាក់ចំណងជើង',\n 'created_at' => '2017-09-01 12:25:43',\n 'updated_at' => '2017-09-01 12:25:43',\n ),\n 119 => \n array (\n 'id' => 121,\n 'key' => 'delete_confirmation_message',\n 'en' => 'Delete Confirmation Message',\n 'km' => 'លុបសារបញ្ជាក់',\n 'created_at' => '2017-09-01 12:25:43',\n 'updated_at' => '2017-09-01 12:25:43',\n ),\n 120 => \n array (\n 'id' => 122,\n 'key' => 'delete_confirmation_not_title',\n 'en' => 'Delete Confirmation Not Title',\n 'km' => 'លុបការបញ្ជាក់មិនមានចំណងជើង',\n 'created_at' => '2017-09-01 12:25:43',\n 'updated_at' => '2017-09-01 12:25:43',\n ),\n 121 => \n array (\n 'id' => 123,\n 'key' => 'delete_confirmation_not_message',\n 'en' => 'Delete Confirmation Not Message',\n 'km' => 'លុបការបញ្ជាក់សារមិនពិត',\n 'created_at' => '2017-09-01 12:25:43',\n 'updated_at' => '2017-09-01 12:25:43',\n ),\n 122 => \n array (\n 'id' => 124,\n 'key' => 'delete_confirmation_not_deleted_title',\n 'en' => 'Delete Confirmation Note Deleted Title',\n 'km' => 'លុបសេចក្តីបញ្ជាក់ចំណាំចំណងជើង',\n 'created_at' => '2017-09-01 12:25:43',\n 'updated_at' => '2017-09-01 12:25:43',\n ),\n 123 => \n array (\n 'id' => 125,\n 'key' => 'delete_confirmation_not_deleted_message',\n 'en' => 'Delete Confirmation Not Delete Message',\n 'km' => 'លុបការអះអាងមិនលុបសារ',\n 'created_at' => '2017-09-01 12:25:43',\n 'updated_at' => '2017-09-01 12:25:43',\n ),\n 124 => \n array (\n 'id' => 126,\n 'key' => 'edit',\n 'en' => 'Edit',\n 'km' => 'កែសម្រួល',\n 'created_at' => '2017-09-01 12:25:45',\n 'updated_at' => '2017-09-01 12:25:45',\n ),\n 125 => \n array (\n 'id' => 127,\n 'key' => 'delete',\n 'en' => 'Delete',\n 'km' => 'លុប',\n 'created_at' => '2017-09-01 12:25:45',\n 'updated_at' => '2017-09-01 12:25:45',\n ),\n 126 => \n array (\n 'id' => 128,\n 'key' => 'back_to_all',\n 'en' => 'Back to All',\n 'km' => 'ត្រលប់ទៅទាំងអស់',\n 'created_at' => '2017-09-01 12:28:06',\n 'updated_at' => '2017-09-01 12:28:06',\n ),\n 127 => \n array (\n 'id' => 129,\n 'key' => 'add_a_new',\n 'en' => 'Add a New',\n 'km' => 'បន្ថែមថ្មី',\n 'created_at' => '2017-09-01 12:28:07',\n 'updated_at' => '2017-09-01 12:28:07',\n ),\n 128 => \n array (\n 'id' => 132,\n 'key' => 'sign_in_to_start_your_session',\n 'en' => 'Sign in to start your session',\n 'km' => 'បំពេញនូវអ៊ីមែល និង ពាក្យសម្ងាត់ ដើម្បីចូលទៅកានផ្ទាំងលក់',\n 'created_at' => '2017-09-02 02:16:22',\n 'updated_at' => '2017-09-02 02:16:22',\n ),\n 129 => \n array (\n 'id' => 133,\n 'key' => 'email',\n 'en' => 'Email',\n 'km' => 'អ៊ីមែល',\n 'created_at' => '2017-09-02 02:16:22',\n 'updated_at' => '2017-09-02 02:16:22',\n ),\n 130 => \n array (\n 'id' => 134,\n 'key' => 'password',\n 'en' => 'Password',\n 'km' => 'ពាក្យសម្ងាត់',\n 'created_at' => '2017-09-02 02:16:22',\n 'updated_at' => '2017-09-02 02:16:22',\n ),\n 131 => \n array (\n 'id' => 135,\n 'key' => 'remember_me',\n 'en' => 'Remember Me',\n 'km' => 'ចងចាំខ្ញុំ',\n 'created_at' => '2017-09-02 02:16:22',\n 'updated_at' => '2017-09-02 02:16:22',\n ),\n 132 => \n array (\n 'id' => 136,\n 'key' => 'stock_',\n 'en' => 'Stock',\n 'km' => 'ការគ្រប់គ្រង',\n 'created_at' => '2017-09-02 02:18:38',\n 'updated_at' => '2017-09-02 02:18:38',\n ),\n 133 => \n array (\n 'id' => 137,\n 'key' => 'management_',\n 'en' => 'Management',\n 'km' => 'ស្តុក',\n 'created_at' => '2017-09-02 02:18:38',\n 'updated_at' => '2017-09-02 02:18:38',\n ),\n 134 => \n array (\n 'id' => 138,\n 'key' => 'email_address',\n 'en' => 'Email Address',\n 'km' => 'អាស័យដ្ឋានអ៊ីមែល',\n 'created_at' => '2017-09-02 02:24:44',\n 'updated_at' => '2017-09-02 02:24:44',\n ),\n 135 => \n array (\n 'id' => 139,\n 'key' => 'confirm_password',\n 'en' => 'Confirm Password',\n 'km' => 'បញ្ជាក់ពាក្យសម្ងាត់',\n 'created_at' => '2017-09-02 02:24:44',\n 'updated_at' => '2017-09-02 02:24:44',\n ),\n 136 => \n array (\n 'id' => 140,\n 'key' => 'search_here',\n 'en' => 'Search Here',\n 'km' => 'ស្វែងរកនៅទីនេះ',\n 'created_at' => '2017-09-02 02:30:43',\n 'updated_at' => '2017-09-02 02:30:43',\n ),\n 137 => \n array (\n 'id' => 141,\n 'key' => 'transaction',\n 'en' => 'Transaction',\n 'km' => 'ប្រតិបត្តិការ\n',\n 'created_at' => '2017-09-02 13:32:09',\n 'updated_at' => '2017-09-02 13:32:09',\n ),\n 138 => \n array (\n 'id' => 142,\n 'key' => 'user_manager',\n 'en' => 'User Mananger',\n 'km' => 'គ្រប់គ្រងអ្នកប្រើ',\n 'created_at' => '2017-09-02 13:36:52',\n 'updated_at' => '2017-09-02 13:36:52',\n ),\n 139 => \n array (\n 'id' => 143,\n 'key' => 'choose_file',\n 'en' => 'Choose file',\n 'km' => 'ជ្រើសរើស​រូបភាព',\n 'created_at' => '2017-09-11 13:42:06',\n 'updated_at' => '2017-09-11 13:42:06',\n ),\n 140 => \n array (\n 'id' => 144,\n 'key' => 'close',\n 'en' => 'Close',\n 'km' => 'បិទ',\n 'created_at' => '2017-09-13 02:23:37',\n 'updated_at' => '2017-09-13 02:23:37',\n ),\n 141 => \n array (\n 'id' => 145,\n 'key' => 'finalize_sale',\n 'en' => 'Finalize Sale',\n 'km' => 'បញ្ចប់ការលក់',\n 'created_at' => '2017-09-13 02:23:37',\n 'updated_at' => '2017-09-13 02:23:37',\n ),\n 142 => \n array (\n 'id' => 146,\n 'key' => 'date',\n 'en' => 'Date',\n 'km' => 'កាលបរិច្ឆេទ',\n 'created_at' => '2017-09-13 02:23:38',\n 'updated_at' => '2017-09-13 02:23:38',\n ),\n 143 => \n array (\n 'id' => 147,\n 'key' => 'yyyy-mm-dd',\n 'en' => 'yyyy-mm-dd',\n 'km' => 'ឆ្នាំ-ខែ-ថ្ងៃ',\n 'created_at' => '2017-09-13 02:23:38',\n 'updated_at' => '2017-09-13 02:23:38',\n ),\n 144 => \n array (\n 'id' => 149,\n 'key' => 'customer_name',\n 'en' => 'Customer Name',\n 'km' => 'ឈ្មោះ​អតិថិជន\n',\n 'created_at' => '2017-09-13 02:23:38',\n 'updated_at' => '2017-09-13 02:23:38',\n ),\n 145 => \n array (\n 'id' => 150,\n 'key' => 'total_items',\n 'en' => 'Total Items',\n 'km' => 'ផលិតផលសរុប',\n 'created_at' => '2017-09-13 02:23:38',\n 'updated_at' => '2017-09-13 02:23:38',\n ),\n 146 => \n array (\n 'id' => 151,\n 'key' => 'currency',\n 'en' => 'Currency',\n 'km' => 'រូបិយប័ណ្ណ',\n 'created_at' => '2017-09-13 02:23:38',\n 'updated_at' => '2017-09-13 02:23:38',\n ),\n 147 => \n array (\n 'id' => 152,\n 'key' => 'usd',\n 'en' => 'USD',\n 'km' => 'ដុល្លារ',\n 'created_at' => '2017-09-13 02:23:38',\n 'updated_at' => '2017-09-13 02:23:38',\n ),\n 148 => \n array (\n 'id' => 153,\n 'key' => 'khm',\n 'en' => 'KHM',\n 'km' => 'រៀល',\n 'created_at' => '2017-09-13 02:23:38',\n 'updated_at' => '2017-09-13 02:23:38',\n ),\n 149 => \n array (\n 'id' => 154,\n 'key' => 'total',\n 'en' => 'Total',\n 'km' => 'សរុប',\n 'created_at' => '2017-09-13 02:23:38',\n 'updated_at' => '2017-09-13 02:23:38',\n ),\n 150 => \n array (\n 'id' => 155,\n 'key' => 'total_payable',\n 'en' => 'Total Payable',\n 'km' => 'សរុបលុយបង់',\n 'created_at' => '2017-09-13 02:23:38',\n 'updated_at' => '2017-09-13 02:23:38',\n ),\n 151 => \n array (\n 'id' => 156,\n 'key' => 'paid',\n 'en' => 'Paid',\n 'km' => 'បង់លុយ',\n 'created_at' => '2017-09-13 02:23:38',\n 'updated_at' => '2017-09-13 02:23:38',\n ),\n 152 => \n array (\n 'id' => 157,\n 'key' => 'remaining',\n 'en' => 'Remaining',\n 'km' => 'លុយអាប់',\n 'created_at' => '2017-09-13 02:23:38',\n 'updated_at' => '2017-09-13 02:23:38',\n ),\n 153 => \n array (\n 'id' => 158,\n 'key' => 'change',\n 'en' => 'Change',\n 'km' => 'លុយដូរ',\n 'created_at' => '2017-09-13 02:23:38',\n 'updated_at' => '2017-09-13 02:23:38',\n ),\n 154 => \n array (\n 'id' => 159,\n 'key' => 'payment_note',\n 'en' => 'Payment Note',\n 'km' => 'ការទូទាត់ចំណាំ',\n 'created_at' => '2017-09-13 02:23:38',\n 'updated_at' => '2017-09-13 02:23:38',\n ),\n 155 => \n array (\n 'id' => 160,\n 'key' => 'quick_cash',\n 'en' => 'Quick Cash',\n 'km' => 'សាច់ប្រាក់រហ័ស',\n 'created_at' => '2017-09-13 02:23:38',\n 'updated_at' => '2017-09-13 02:23:38',\n ),\n 156 => \n array (\n 'id' => 161,\n 'key' => 'clear',\n 'en' => 'Clear',\n 'km' => 'លុប',\n 'created_at' => '2017-09-13 02:23:38',\n 'updated_at' => '2017-09-13 02:23:38',\n ),\n 157 => \n array (\n 'id' => 162,\n 'key' => 'save',\n 'en' => 'Save',\n 'km' => 'រក្សាទុក',\n 'created_at' => '2017-09-13 02:23:38',\n 'updated_at' => '2017-09-13 02:23:38',\n ),\n 158 => \n array (\n 'id' => 163,\n 'key' => 'update',\n 'en' => 'Update',\n 'km' => 'កែប្រែ',\n 'created_at' => '2017-09-13 02:23:38',\n 'updated_at' => '2017-09-13 02:23:38',\n ),\n 159 => \n array (\n 'id' => 164,\n 'key' => 'cancel',\n 'en' => 'Cancel',\n 'km' => 'បោះបង់',\n 'created_at' => '2017-09-13 02:23:38',\n 'updated_at' => '2017-09-13 02:23:38',\n ),\n 160 => \n array (\n 'id' => 165,\n 'key' => 'customer_list',\n 'en' => 'Customer List',\n 'km' => 'បញ្ជីអតិថិជន',\n 'created_at' => '2017-09-13 02:23:38',\n 'updated_at' => '2017-09-13 02:23:38',\n ),\n 161 => \n array (\n 'id' => 166,\n 'key' => 'edit_customer',\n 'en' => 'Edit Customer',\n 'km' => 'កែសម្រួលអតិថិជន',\n 'created_at' => '2017-09-13 02:23:38',\n 'updated_at' => '2017-09-13 02:23:38',\n ),\n 162 => \n array (\n 'id' => 167,\n 'key' => 'male',\n 'en' => 'Male',\n 'km' => 'ប្រុស',\n 'created_at' => '2017-09-13 02:23:38',\n 'updated_at' => '2017-09-13 02:23:38',\n ),\n 163 => \n array (\n 'id' => 168,\n 'key' => 'female',\n 'en' => 'Female',\n 'km' => 'ស្រី',\n 'created_at' => '2017-09-13 02:23:38',\n 'updated_at' => '2017-09-13 02:23:38',\n ),\n 164 => \n array (\n 'id' => 169,\n 'key' => 'submit',\n 'en' => 'Submit',\n 'km' => 'បញ្ចូន',\n 'created_at' => '2017-09-13 02:23:38',\n 'updated_at' => '2017-09-13 02:23:38',\n ),\n 165 => \n array (\n 'id' => 170,\n 'key' => 'num.qty',\n 'en' => 'Num.Qty',\n 'km' => 'ចំនួនឯកតា',\n 'created_at' => '2017-09-13 02:43:39',\n 'updated_at' => '2017-09-13 02:43:39',\n ),\n 166 => \n array (\n 'id' => 171,\n 'key' => 'rate',\n 'en' => 'Rate',\n 'km' => 'អត្រាប្តូរប្រាក់',\n 'created_at' => '2017-09-13 03:14:26',\n 'updated_at' => '2017-09-13 03:14:26',\n ),\n 167 => \n array (\n 'id' => 172,\n 'key' => 'print_order',\n 'en' => 'Print Order',\n 'km' => 'ព្រីនការកម្មង់',\n 'created_at' => '2017-09-13 03:14:26',\n 'updated_at' => '2017-09-13 03:14:26',\n ),\n 168 => \n array (\n 'id' => 173,\n 'key' => 'print_bill',\n 'en' => 'Print Bill',\n 'km' => 'ព្រីនវិក្កយបត្រ',\n 'created_at' => '2017-09-13 03:14:26',\n 'updated_at' => '2017-09-13 03:14:26',\n ),\n 169 => \n array (\n 'id' => 174,\n 'key' => 'payment',\n 'en' => 'Payment',\n 'km' => 'ការទូទាត់',\n 'created_at' => '2017-09-13 03:14:26',\n 'updated_at' => '2017-09-13 03:14:26',\n ),\n 170 => \n array (\n 'id' => 175,\n 'key' => 'edit_order_discount',\n 'en' => 'Edit Order Discount',\n 'km' => 'កែប្រែការបញ្ចុះតម្លៃ',\n 'created_at' => '2017-09-13 03:14:26',\n 'updated_at' => '2017-09-13 03:14:26',\n ),\n 171 => \n array (\n 'id' => 176,\n 'key' => 'order_discount',\n 'en' => 'Order Discount($)',\n 'km' => 'បញ្ចុះតម្លៃ​ ($)',\n 'created_at' => '2017-09-13 03:14:26',\n 'updated_at' => '2017-09-13 03:14:26',\n ),\n 172 => \n array (\n 'id' => 177,\n 'key' => 'invoice_no',\n 'en' => 'Invoice No',\n 'km' => 'លេខ​វិ​ក័​យ​ប័ត្រ\n',\n 'created_at' => '2017-09-13 03:15:27',\n 'updated_at' => '2017-09-13 03:15:27',\n ),\n 173 => \n array (\n 'id' => 178,\n 'key' => 'ok',\n 'en' => 'OK',\n 'km' => 'យល់ព្រម',\n 'created_at' => '2017-09-13 03:21:07',\n 'updated_at' => '2017-09-13 03:21:07',\n ),\n 174 => \n array (\n 'id' => 179,\n 'key' => 'are_you_sure?',\n 'en' => 'Are you sure?',\n 'km' => 'តើ​អ្នក​ប្រាកដ​ឬ​អត់?\n',\n 'created_at' => '2017-09-13 03:23:26',\n 'updated_at' => '2017-09-13 03:23:26',\n ),\n 175 => \n array (\n 'id' => 180,\n 'key' => 'search_product_by_code',\n 'en' => 'Search product by item code',\n 'km' => 'ស្វែងរកផលិតផលតាមលេខកូដ',\n 'created_at' => '2017-09-13 03:24:22',\n 'updated_at' => '2017-09-13 03:24:22',\n ),\n 176 => \n array (\n 'id' => 181,\n 'key' => 'add_customer',\n 'en' => 'Add Customer',\n 'km' => 'បន្ថែមអតិថិជន',\n 'created_at' => '2017-09-13 03:27:24',\n 'updated_at' => '2017-09-13 03:27:24',\n ),\n 177 => \n array (\n 'id' => 182,\n 'key' => 'please_fill_in_the_information_below._the_field_labels_marked_with_*_are_required_input_fields.',\n 'en' => 'Please fill in the information below. The field lavels marked with * are required input fields.',\n 'km' => 'សូមបំពេញព័ត៌មានខាងក្រោម, ឈ្មោះ ដែលសម្គាល់ដោយសញ្ញា * តម្រូវអោយរវាយបញ្ចូល.',\n 'created_at' => '2017-09-13 03:31:01',\n 'updated_at' => '2017-09-13 03:31:01',\n ),\n 178 => \n array (\n 'id' => 183,\n 'key' => 'select_gender',\n 'en' => 'Select Gender',\n 'km' => 'ជ្រើសរើសភេទ',\n 'created_at' => '2017-09-13 03:31:01',\n 'updated_at' => '2017-09-13 03:31:01',\n ),\n 179 => \n array (\n 'id' => 184,\n 'key' => 'search_filter',\n 'en' => 'Search Filter',\n 'km' => 'ស្វែងរក\n',\n 'created_at' => '2017-09-13 03:31:01',\n 'updated_at' => '2017-09-13 03:31:01',\n ),\n 180 => \n array (\n 'id' => 185,\n 'key' => 'exchange_rate',\n 'en' => 'Exchange Rate',\n 'km' => 'អត្រា​ប្តូ​រ​ប្រាក់\n',\n 'created_at' => '2017-09-18 02:41:21',\n 'updated_at' => '2017-09-18 02:41:21',\n ),\n 181 => \n array (\n 'id' => 186,\n 'key' => 'history',\n 'en' => 'History',\n 'km' => 'ប្រវត្តិនៃការទិញ',\n 'created_at' => '2017-09-18 02:41:42',\n 'updated_at' => '2017-09-18 02:41:42',\n ),\n 182 => \n array (\n 'id' => 187,\n 'key' => 'customer_information',\n 'en' => 'Customer Information',\n 'km' => 'ព័ត៌មានអតិថិជន',\n 'created_at' => '2017-09-18 02:41:45',\n 'updated_at' => '2017-09-18 02:41:45',\n ),\n 183 => \n array (\n 'id' => 188,\n 'key' => 'customer_record',\n 'en' => 'Customer Record',\n 'km' => 'កំណត់ត្រាអតិថិជន',\n 'created_at' => '2017-09-18 02:41:45',\n 'updated_at' => '2017-09-18 02:41:45',\n ),\n 184 => \n array (\n 'id' => 189,\n 'key' => 'member_date',\n 'en' => 'Member Date',\n 'km' => 'កាលបរិច្ឆេទសមាជិក',\n 'created_at' => '2017-09-18 02:41:45',\n 'updated_at' => '2017-09-18 02:41:45',\n ),\n 185 => \n array (\n 'id' => 190,\n 'key' => 'invoice_history',\n 'en' => 'Invoice History',\n 'km' => 'ប្រវត្តិវិក្កយបត្រ',\n 'created_at' => '2017-09-18 02:41:45',\n 'updated_at' => '2017-09-18 02:41:45',\n ),\n 186 => \n array (\n 'id' => 191,\n 'key' => 'customer_invoice_record',\n 'en' => 'Customer Invoice Record',\n 'km' => 'កំណត់ត្រាវិក្កយបត្រអតិថិជន',\n 'created_at' => '2017-09-18 02:41:45',\n 'updated_at' => '2017-09-18 02:41:45',\n ),\n 187 => \n array (\n 'id' => 192,\n 'key' => 'invoice_due',\n 'en' => 'Invoice Due',\n 'km' => 'ថ្ងៃទី',\n 'created_at' => '2017-09-18 02:41:45',\n 'updated_at' => '2017-09-18 02:41:45',\n ),\n 188 => \n array (\n 'id' => 193,\n 'key' => 'no',\n 'en' => 'No',\n 'km' => 'ល.រ',\n 'created_at' => '2017-09-18 02:41:45',\n 'updated_at' => '2017-09-18 02:41:45',\n ),\n 189 => \n array (\n 'id' => 194,\n 'key' => 'total_discount',\n 'en' => 'Total Discount',\n 'km' => 'បញ្ចុះតម្លៃសរុប',\n 'created_at' => '2017-09-18 02:41:45',\n 'updated_at' => '2017-09-18 02:41:45',\n ),\n 190 => \n array (\n 'id' => 195,\n 'key' => 'grand_total',\n 'en' => 'Grand Total',\n 'km' => 'តំលៃ​បូក​សរុប\n',\n 'created_at' => '2017-09-18 02:41:45',\n 'updated_at' => '2017-09-18 02:41:45',\n ),\n 191 => \n array (\n 'id' => 196,\n 'key' => 'total_paid',\n 'en' => 'Total Paid',\n 'km' => 'ការបង់ប្រាក់សរុប',\n 'created_at' => '2017-09-18 02:41:45',\n 'updated_at' => '2017-09-18 02:41:45',\n ),\n 192 => \n array (\n 'id' => 197,\n 'key' => 'exchange_rates',\n 'en' => 'Exchange Rates',\n 'km' => 'អត្រា​ប្តូ​រ​ប្រាក់\n',\n 'created_at' => '2017-09-18 03:01:00',\n 'updated_at' => '2017-09-18 03:01:00',\n ),\n 193 => \n array (\n 'id' => 198,\n 'key' => 'dollar',\n 'en' => 'Dollar',\n 'km' => 'ដុល្លារ',\n 'created_at' => '2017-09-18 03:01:00',\n 'updated_at' => '2017-09-18 03:01:00',\n ),\n 194 => \n array (\n 'id' => 199,\n 'key' => 'riel',\n 'en' => 'Riel',\n 'km' => 'រៀល',\n 'created_at' => '2017-09-18 03:01:00',\n 'updated_at' => '2017-09-18 03:01:00',\n ),\n 195 => \n array (\n 'id' => 200,\n 'key' => 'buyer',\n 'en' => 'Buyer',\n 'km' => 'អ្នកទិញ',\n 'created_at' => '2017-09-22 04:11:54',\n 'updated_at' => '2017-09-22 04:11:54',\n ),\n 196 => \n array (\n 'id' => 201,\n 'key' => 'seller',\n 'en' => 'Seller',\n 'km' => 'អ្នកលក់',\n 'created_at' => '2017-09-22 04:11:54',\n 'updated_at' => '2017-09-22 04:11:54',\n ),\n 197 => \n array (\n 'id' => 203,\n 'key' => 'invoice_list_report',\n 'en' => 'Invoice List Report',\n 'km' => 'បញ្ជីរបាយការណ៍វិក័យប័ត្រ',\n 'created_at' => '2017-09-23 06:36:07',\n 'updated_at' => '2017-09-23 06:36:07',\n ),\n 198 => \n array (\n 'id' => 204,\n 'key' => 'form_date',\n 'en' => 'From Date',\n 'km' => 'ចាប់ពីថ្ងៃទី',\n 'created_at' => '2017-09-23 06:36:07',\n 'updated_at' => '2017-09-23 06:36:07',\n ),\n 199 => \n array (\n 'id' => 205,\n 'key' => 'to_date',\n 'en' => 'To Date',\n 'km' => 'ដល់ថ្ងៃទី',\n 'created_at' => '2017-09-23 06:36:07',\n 'updated_at' => '2017-09-23 06:36:07',\n ),\n 200 => \n array (\n 'id' => 206,\n 'key' => 'tel',\n 'en' => 'Tel',\n 'km' => 'ទូរស័ព្ទលេខ',\n 'created_at' => '2017-09-23 06:36:07',\n 'updated_at' => '2017-09-23 06:36:07',\n ),\n 201 => \n array (\n 'id' => 207,\n 'key' => 'subtotal',\n 'en' => 'Subtotal ',\n 'km' => 'សរុប',\n 'created_at' => '2017-09-23 06:36:07',\n 'updated_at' => '2017-09-23 06:36:07',\n ),\n 202 => \n array (\n 'id' => 208,\n 'key' => 'production_list_report',\n 'en' => 'Production List Report',\n 'km' => 'បញ្ជីរបាយការណ៍ផលិតកម្ម',\n 'created_at' => '2017-09-23 06:38:15',\n 'updated_at' => '2017-09-23 06:38:15',\n ),\n 203 => \n array (\n 'id' => 209,\n 'key' => 'not_record_found',\n 'en' => 'Not Record Found',\n 'km' => 'មិនមានកំណត់ត្រា',\n 'created_at' => '2017-09-23 06:38:15',\n 'updated_at' => '2017-09-23 06:38:15',\n ),\n 204 => \n array (\n 'id' => 210,\n 'key' => 'open_list_report',\n 'en' => 'Open List Report',\n 'km' => 'បញ្ជីរបាយការណ៍បើកស្តុក',\n 'created_at' => '2017-09-23 06:38:20',\n 'updated_at' => '2017-09-23 06:38:20',\n ),\n 205 => \n array (\n 'id' => 211,\n 'key' => 'total_qty',\n 'en' => 'Total Qty',\n 'km' => 'ចំនួនសរុប',\n 'created_at' => '2017-09-23 06:38:20',\n 'updated_at' => '2017-09-23 06:38:20',\n ),\n 206 => \n array (\n 'id' => 212,\n 'key' => 'total_cost',\n 'en' => 'Total Cost',\n 'km' => 'ថ្លៃដើមសរុប',\n 'created_at' => '2017-09-23 06:38:20',\n 'updated_at' => '2017-09-23 06:38:20',\n ),\n 207 => \n array (\n 'id' => 213,\n 'key' => 'checked_by',\n 'en' => 'Checked By',\n 'km' => 'ពិនិត្រដោយ',\n 'created_at' => '2017-09-23 06:38:20',\n 'updated_at' => '2017-09-23 06:38:20',\n ),\n 208 => \n array (\n 'id' => 214,\n 'key' => 'reported_by',\n 'en' => 'Reported By',\n 'km' => 'រៀបចំរបាយការណ័ដោយ',\n 'created_at' => '2017-09-23 06:38:20',\n 'updated_at' => '2017-09-23 06:38:20',\n ),\n 209 => \n array (\n 'id' => 215,\n 'key' => 'between',\n 'en' => 'Between',\n 'km' => 'ចន្លោះ',\n 'created_at' => '2017-09-23 06:45:30',\n 'updated_at' => '2017-09-23 06:45:30',\n ),\n 210 => \n array (\n 'id' => 216,\n 'key' => 'production_history',\n 'en' => 'Production History',\n 'km' => 'ប្រវត្តិផលិតកម្ម',\n 'created_at' => '2017-09-23 06:52:46',\n 'updated_at' => '2017-09-23 06:52:46',\n ),\n 211 => \n array (\n 'id' => 217,\n 'key' => 'customer_production_record',\n 'en' => 'Customer Production Record',\n 'km' => 'កំណត់ត្រាផលិតកម្មអតិថិជន',\n 'created_at' => '2017-09-23 06:52:46',\n 'updated_at' => '2017-09-23 06:52:46',\n ),\n 212 => \n array (\n 'id' => 218,\n 'key' => 'production_due',\n 'en' => 'Production Due',\n 'km' => 'ថ្ងៃទី',\n 'created_at' => '2017-09-23 06:52:46',\n 'updated_at' => '2017-09-23 06:52:46',\n ),\n 213 => \n array (\n 'id' => 219,\n 'key' => 'purchase_history',\n 'en' => 'Purchase History',\n 'km' => 'ប្រវត្តិការទិញចូល',\n 'created_at' => '2017-09-23 06:57:38',\n 'updated_at' => '2017-09-23 06:57:38',\n ),\n 214 => \n array (\n 'id' => 220,\n 'key' => 'customer_purchase_record',\n 'en' => 'Customer Purchase Record',\n 'km' => 'កំណត់ត្រាការទិញចូលពីអតិថិជន',\n 'created_at' => '2017-09-23 06:57:38',\n 'updated_at' => '2017-09-23 06:57:38',\n ),\n 215 => \n array (\n 'id' => 221,\n 'key' => 'purchase_due',\n 'en' => 'Purchase Due',\n 'km' => 'ថ្ងៃទី',\n 'created_at' => '2017-09-23 06:57:38',\n 'updated_at' => '2017-09-23 06:57:38',\n ),\n 216 => \n array (\n 'id' => 222,\n 'key' => 'open_detail_report',\n 'en' => 'Open Detail Report',\n 'km' => 'របាយការណ៍បើកស្តុកលម្អិត',\n 'created_at' => '2017-09-23 07:11:03',\n 'updated_at' => '2017-09-23 07:11:03',\n ),\n 217 => \n array (\n 'id' => 223,\n 'key' => 'open_due',\n 'en' => 'Open Due',\n 'km' => 'ថ្ងៃទី',\n 'created_at' => '2017-09-23 07:11:03',\n 'updated_at' => '2017-09-23 07:11:03',\n ),\n 218 => \n array (\n 'id' => 225,\n 'key' => 'purchase_detail_report',\n 'en' => 'Purchase Detail Report',\n 'km' => 'របាយការណ៍លម្អិតនៃការទិញចូល',\n 'created_at' => '2017-09-23 07:13:12',\n 'updated_at' => '2017-09-23 07:13:12',\n ),\n 219 => \n array (\n 'id' => 227,\n 'key' => 'invoice_print',\n 'en' => 'Invoice Print',\n 'km' => 'ព្រីនវិក្កយបត្រ',\n 'created_at' => '2017-09-25 07:28:08',\n 'updated_at' => '2017-09-25 07:28:08',\n ),\n 220 => \n array (\n 'id' => 228,\n 'key' => 'invoice_detail_report',\n 'en' => 'Invoice Detail Report',\n 'km' => 'របាយការណ៍វិក្កយបត្រលម្អិត',\n 'created_at' => '2017-09-25 08:15:38',\n 'updated_at' => '2017-09-25 08:15:38',\n ),\n 221 => \n array (\n 'id' => 229,\n 'key' => 'sale_today',\n 'en' => 'Sale Today',\n 'km' => 'លក់ថ្ងៃនេះ',\n 'created_at' => '2017-09-25 09:01:13',\n 'updated_at' => '2017-09-25 09:01:13',\n ),\n 222 => \n array (\n 'id' => 230,\n 'key' => 'total_sale_today',\n 'en' => 'Total Sale Today',\n 'km' => 'សរុបការលក់ថ្ងៃនេះ',\n 'created_at' => '2017-09-25 09:01:30',\n 'updated_at' => '2017-09-25 09:01:30',\n ),\n 223 => \n array (\n 'id' => 231,\n 'key' => 'purchase_no',\n 'en' => 'Purchase No',\n 'km' => 'លេខសំគាល់',\n 'created_at' => '2017-09-27 02:47:26',\n 'updated_at' => '2017-09-27 02:47:26',\n ),\n 224 => \n array (\n 'id' => 232,\n 'key' => 'production_no',\n 'en' => 'Production No',\n 'km' => 'លេខសំគាល់',\n 'created_at' => '2017-09-27 07:15:35',\n 'updated_at' => '2017-09-27 07:15:35',\n ),\n 225 => \n array (\n 'id' => 233,\n 'key' => 'production_detail_report',\n 'en' => 'Production Detail Report',\n 'km' => 'របាយការណ៍លម្អិតនៃផលិតកម្ម',\n 'created_at' => '2017-09-27 07:15:41',\n 'updated_at' => '2017-09-27 07:15:41',\n ),\n 226 => \n array (\n 'id' => 235,\n 'key' => 'daily_sales_report',\n 'en' => 'Daily Sales Report ',\n 'km' => 'របាយការណ៍លក់ប្រចាំថ្ងៃ',\n 'created_at' => '2017-09-28 01:59:23',\n 'updated_at' => '2017-09-28 01:59:23',\n ),\n 227 => \n array (\n 'id' => 253,\n 'key' => 'sale_list',\n 'en' => 'Sale List',\n 'km' => 'បញ្ជីលក់',\n 'created_at' => '2017-09-28 08:36:02',\n 'updated_at' => '2017-09-28 08:36:02',\n ),\n 228 => \n array (\n 'id' => 254,\n 'key' => 'sale_detail',\n 'en' => 'Sale Detail',\n 'km' => 'ពត៌មានលំអិតពីការលក់',\n 'created_at' => '2017-09-28 08:36:02',\n 'updated_at' => '2017-09-28 08:36:02',\n ),\n 229 => \n array (\n 'id' => 255,\n 'key' => 'sale_profit',\n 'en' => 'Sale Profit',\n 'km' => 'ប្រាក់ចំណេញ',\n 'created_at' => '2017-09-28 08:36:02',\n 'updated_at' => '2017-09-28 08:36:02',\n ),\n 230 => \n array (\n 'id' => 256,\n 'key' => 'sale_daily',\n 'en' => 'Sale Daily',\n 'km' => 'លក់ប្រចាំថ្ងៃ',\n 'created_at' => '2017-09-28 08:36:02',\n 'updated_at' => '2017-09-28 08:36:02',\n ),\n 231 => \n array (\n 'id' => 257,\n 'key' => 'sale_monthly',\n 'en' => 'Sale Monthly',\n 'km' => 'លក់ប្រចាំខែ',\n 'created_at' => '2017-09-28 08:36:02',\n 'updated_at' => '2017-09-28 08:36:02',\n ),\n 232 => \n array (\n 'id' => 258,\n 'key' => 'sale_discount',\n 'en' => 'Sale Discount',\n 'km' => 'លក់បញ្ចុះតម្លៃ',\n 'created_at' => '2017-09-28 08:36:02',\n 'updated_at' => '2017-09-28 08:36:02',\n ),\n 233 => \n array (\n 'id' => 259,\n 'key' => 'production_list',\n 'en' => 'Production List',\n 'km' => 'បញ្ជីផលិតកម្ម',\n 'created_at' => '2017-09-28 08:36:02',\n 'updated_at' => '2017-09-28 08:36:02',\n ),\n 234 => \n array (\n 'id' => 260,\n 'key' => 'production_detail',\n 'en' => 'Production Detail ',\n 'km' => 'ព័ត៌មានអំពីផលិតកម្ម',\n 'created_at' => '2017-09-28 08:36:02',\n 'updated_at' => '2017-09-28 08:36:02',\n ),\n 235 => \n array (\n 'id' => 261,\n 'key' => 'purchase_list',\n 'en' => 'Purchase List',\n 'km' => 'បញ្ជីទិញ',\n 'created_at' => '2017-09-28 08:36:02',\n 'updated_at' => '2017-09-28 08:36:02',\n ),\n 236 => \n array (\n 'id' => 262,\n 'key' => 'purchase_detail',\n 'en' => 'Purchase Detail ',\n 'km' => 'ព័ត៌មានលម្អិតការទិញ',\n 'created_at' => '2017-09-28 08:36:02',\n 'updated_at' => '2017-09-28 08:36:02',\n ),\n 237 => \n array (\n 'id' => 263,\n 'key' => 'open_list',\n 'en' => 'Open List',\n 'km' => 'បញ្ជីបើកស្តុក',\n 'created_at' => '2017-09-28 08:36:02',\n 'updated_at' => '2017-09-28 08:36:02',\n ),\n 238 => \n array (\n 'id' => 264,\n 'key' => 'open_detail',\n 'en' => 'Open Detail ',\n 'km' => 'ព័ត៌មានលម្អិតការបើកស្តុក',\n 'created_at' => '2017-09-28 08:36:02',\n 'updated_at' => '2017-09-28 08:36:02',\n ),\n 239 => \n array (\n 'id' => 265,\n 'key' => 'open_item_list',\n 'en' => 'Open Item List',\n 'km' => 'បញ្ជីបើកស្តុក',\n 'created_at' => '2017-09-28 08:36:18',\n 'updated_at' => '2017-09-28 08:36:18',\n ),\n 240 => \n array (\n 'id' => 266,\n 'key' => 'sale_report',\n 'en' => 'Sale Report',\n 'km' => 'របាយការណ៍លក់',\n 'created_at' => '2017-09-28 08:36:18',\n 'updated_at' => '2017-09-28 08:36:18',\n ),\n 241 => \n array (\n 'id' => 267,\n 'key' => 'customer_report',\n 'en' => 'Customer Report',\n 'km' => 'របាយការណ៍អតិថិជន',\n 'created_at' => '2017-09-28 08:36:18',\n 'updated_at' => '2017-09-28 08:36:18',\n ),\n 242 => \n array (\n 'id' => 268,\n 'key' => 'production_report',\n 'en' => 'Production Report',\n 'km' => 'របាយការណ៍ផលិតកម្ម',\n 'created_at' => '2017-09-28 08:36:18',\n 'updated_at' => '2017-09-28 08:36:18',\n ),\n 243 => \n array (\n 'id' => 269,\n 'key' => 'purchase_report',\n 'en' => 'Purchase Report',\n 'km' => 'របាយការណ៍ទិញចូល',\n 'created_at' => '2017-09-28 08:36:18',\n 'updated_at' => '2017-09-28 08:36:18',\n ),\n 244 => \n array (\n 'id' => 270,\n 'key' => 'open_report',\n 'en' => 'Open Report',\n 'km' => 'របាយការណ៍បើកស្តុក',\n 'created_at' => '2017-09-28 08:36:18',\n 'updated_at' => '2017-09-28 08:36:18',\n ),\n 245 => \n array (\n 'id' => 271,\n 'key' => 'sale_report_detail',\n 'en' => 'Sale Report Detail ',\n 'km' => 'របាយការណ៍លំអិតពីការលក់',\n 'created_at' => '2017-09-28 08:55:02',\n 'updated_at' => '2017-09-28 08:55:02',\n ),\n 246 => \n array (\n 'id' => 272,\n 'key' => 'total_deposit',\n 'en' => 'Total Deposit',\n 'km' => 'សរុបប្រាក់កក់',\n 'created_at' => '2017-09-28 08:55:02',\n 'updated_at' => '2017-09-28 08:55:02',\n ),\n 247 => \n array (\n 'id' => 273,\n 'key' => 'total_complete_price',\n 'en' => 'Total Complete Price',\n 'km' => 'សរុបប្រាក់បង់បង្គ្រប់',\n 'created_at' => '2017-09-28 08:55:02',\n 'updated_at' => '2017-09-28 08:55:02',\n ),\n 248 => \n array (\n 'id' => 274,\n 'key' => 'total_remaining',\n 'en' => 'Total Remaining ',\n 'km' => 'សរុបប្រាក់អាប់',\n 'created_at' => '2017-09-28 08:55:02',\n 'updated_at' => '2017-09-28 08:55:02',\n ),\n 249 => \n array (\n 'id' => 275,\n 'key' => 'action',\n 'en' => 'Action ',\n 'km' => 'សកម្មភាព',\n 'created_at' => '2017-09-28 10:21:44',\n 'updated_at' => '2017-09-28 10:21:44',\n ),\n 250 => \n array (\n 'id' => 276,\n 'key' => 'total_price',\n 'en' => 'Total Price',\n 'km' => 'តម្លៃ​សរុប\n',\n 'created_at' => '2017-09-29 01:13:46',\n 'updated_at' => '2017-09-29 01:13:46',\n ),\n 251 => \n array (\n 'id' => 279,\n 'key' => 'open_item_detail',\n 'en' => 'Open Item Detail ',\n 'km' => 'ព័ត៌មានអំពីការបើកស្តុក',\n 'created_at' => '2017-09-29 01:55:38',\n 'updated_at' => '2017-09-29 01:55:38',\n ),\n 252 => \n array (\n 'id' => 282,\n 'key' => 'product_report',\n 'en' => 'Product Report',\n 'km' => 'របាយការណ៍អំពីផលិតផល',\n 'created_at' => '2017-09-30 04:43:35',\n 'updated_at' => '2017-09-30 04:43:35',\n ),\n 253 => \n array (\n 'id' => 283,\n 'key' => 'products_in/out',\n 'en' => 'Products In/Out',\n 'km' => 'ស្តុក ចូល/ចេញ',\n 'created_at' => '2017-09-30 04:43:35',\n 'updated_at' => '2017-09-30 04:43:35',\n ),\n 254 => \n array (\n 'id' => 286,\n 'key' => 'product_in/out_stock',\n 'en' => 'Product In/Out Stock',\n 'km' => 'ស្តុក ចូល/ចេញ',\n 'created_at' => '2017-10-03 02:24:56',\n 'updated_at' => '2017-10-03 02:24:56',\n ),\n 255 => \n array (\n 'id' => 287,\n 'key' => 'begin',\n 'en' => 'Begin',\n 'km' => 'ចាប់ផ្តើមស្តុក',\n 'created_at' => '2017-10-03 02:24:58',\n 'updated_at' => '2017-10-03 02:24:58',\n ),\n 256 => \n array (\n 'id' => 288,\n 'key' => 'total_in',\n 'en' => 'Total In',\n 'km' => 'សរុបស្តុកចូល',\n 'created_at' => '2017-10-03 02:24:58',\n 'updated_at' => '2017-10-03 02:24:58',\n ),\n 257 => \n array (\n 'id' => 289,\n 'key' => 'total_out',\n 'en' => 'Total Out',\n 'km' => 'សរុបស្តុកចេញ',\n 'created_at' => '2017-10-03 02:24:58',\n 'updated_at' => '2017-10-03 02:24:58',\n ),\n 258 => \n array (\n 'id' => 290,\n 'key' => 'balance',\n 'en' => 'Balance',\n 'km' => 'តុល្យភាព',\n 'created_at' => '2017-10-03 02:24:58',\n 'updated_at' => '2017-10-03 02:24:58',\n ),\n 259 => \n array (\n 'id' => 291,\n 'key' => 'profit_report',\n 'en' => 'Profit Report',\n 'km' => 'របាយការណ៍ចំណូល',\n 'created_at' => '2017-10-03 02:32:00',\n 'updated_at' => '2017-10-03 02:32:00',\n ),\n 260 => \n array (\n 'id' => 292,\n 'key' => 'last_item_code',\n 'en' => 'Last Item Code',\n 'km' => 'លេខកូដចុងក្រោយ',\n 'created_at' => '2017-10-08 17:17:48',\n 'updated_at' => '2017-10-08 17:17:48',\n ),\n 261 => \n array (\n 'id' => 293,\n 'key' => 'photo',\n 'en' => 'Photo',\n 'km' => 'រូបភាព',\n 'created_at' => '2017-10-08 17:22:40',\n 'updated_at' => '2017-10-08 17:22:40',\n ),\n 262 => \n array (\n 'id' => 294,\n 'key' => 'role',\n 'en' => 'Role',\n 'km' => 'តូនាទី',\n 'created_at' => '2017-10-08 17:22:40',\n 'updated_at' => '2017-10-08 17:22:40',\n ),\n 263 => \n array (\n 'id' => 295,\n 'key' => 'user_name',\n 'en' => 'Username',\n 'km' => 'ឈ្មោះ​អ្នកប្រើប្រាស់\n',\n 'created_at' => '2017-10-08 17:22:40',\n 'updated_at' => '2017-10-08 17:22:40',\n ),\n 264 => \n array (\n 'id' => 296,\n 'key' => 'e-mail',\n 'en' => 'E-mail',\n 'km' => 'អ៊ីម៉ែល',\n 'created_at' => '2017-10-08 17:22:40',\n 'updated_at' => '2017-10-08 17:22:40',\n ),\n 265 => \n array (\n 'id' => 297,\n 'key' => 'password_confirm',\n 'en' => 'Password Confirm',\n 'km' => 'បញ្ជាក់ពាក្យសម្ងាត់',\n 'created_at' => '2017-10-08 17:22:40',\n 'updated_at' => '2017-10-08 17:22:40',\n ),\n 266 => \n array (\n 'id' => 298,\n 'key' => 'sale_report_detial',\n 'en' => 'Sale Report Detail',\n 'km' => 'របាយការណ៍លំអិតពីការលក់',\n 'created_at' => '2017-10-08 17:37:30',\n 'updated_at' => '2017-10-08 17:37:30',\n ),\n 267 => \n array (\n 'id' => 299,\n 'key' => 'production_item_list',\n 'en' => 'Production Item List',\n 'km' => 'បញ្ជីផលិតកម្ម',\n 'created_at' => '2017-10-08 17:37:47',\n 'updated_at' => '2017-10-08 17:37:47',\n ),\n 268 => \n array (\n 'id' => 300,\n 'key' => 'production_item_detail',\n 'en' => 'Production Item Detail',\n 'km' => 'ព័ត៌មានអំពីផលិតកម្ម',\n 'created_at' => '2017-10-08 17:37:52',\n 'updated_at' => '2017-10-08 17:37:52',\n ),\n 269 => \n array (\n 'id' => 301,\n 'key' => 'users',\n 'en' => 'Users ',\n 'km' => 'អ្នកប្រើប្រាស់',\n 'created_at' => '2017-10-08 17:52:34',\n 'updated_at' => '2017-10-08 17:52:34',\n ),\n ));\n \n \n }", "public function translationsAll()\n {\n return $this->hasMany($this->translatableModel, 'source_id');\n }" ]
[ "0.75490236", "0.69729847", "0.6914359", "0.6897783", "0.6641728", "0.65624267", "0.65339077", "0.6529502", "0.6526498", "0.64925086", "0.6410674", "0.63622165", "0.63442415", "0.6330379", "0.62749577", "0.6273867", "0.6256712", "0.62399185", "0.62391907", "0.6231177", "0.6133606", "0.61192304", "0.6114511", "0.61123496", "0.6102115", "0.6071286", "0.6070199", "0.60587895", "0.60268146", "0.60101354", "0.6008171", "0.5958847", "0.5954588", "0.5939491", "0.5935761", "0.5935557", "0.5927938", "0.5906492", "0.5903338", "0.589711", "0.58963525", "0.58817285", "0.5877053", "0.5869071", "0.58535147", "0.5844961", "0.5822579", "0.5818276", "0.5816724", "0.58065104", "0.5805898", "0.5775047", "0.5771447", "0.5771447", "0.5751177", "0.5745837", "0.5735194", "0.57194984", "0.5707347", "0.57062435", "0.5691926", "0.5682104", "0.56682897", "0.5648265", "0.5638312", "0.5633114", "0.5631981", "0.5610218", "0.56021136", "0.55983645", "0.55720574", "0.5570884", "0.5568608", "0.556531", "0.5541435", "0.5526314", "0.55012786", "0.54986656", "0.5487129", "0.5478644", "0.54698473", "0.5465843", "0.5463555", "0.5450135", "0.54491955", "0.54381627", "0.5437989", "0.5428877", "0.54236686", "0.5420967", "0.5416315", "0.54113287", "0.5394738", "0.53882545", "0.538401", "0.5383273", "0.5373867", "0.53724486", "0.5365226", "0.53572804" ]
0.5570343
72
This is the default 'index' action that is invoked when an action is not explicitly requested by users.
public function actionIndex() { // renders the view file 'protected/views/site/index.php' // using the default layout 'protected/views/layouts/main.php' if(Yii::app()->user->isGuest) { $this->redirect('site/'.Yii::app()->params['loginUrl']); } // $m=Usuario::model()->find(Yii::app()->user->id_usuario_sistema); $usaurio=Usuario::model()->find("id_usuario_sistema =".Yii::app()->user->id_usuario_sistema); if($usaurio->estatus_contrasena == 0){ header("Location: ".Yii::app()->baseUrl ."/usuario/update/".Yii::app()->user->id_usuario_sistema); }else{ if(Yii::app()->user->id_perfil_sistema == 3){ header("Location: ".Yii::app()->baseUrl ."/franquiciado/index/"); }else{ if(Yii::app()->user->id_perfil_sistema == 6){ header("Location: ".Yii::app()->baseUrl ."/acreditado/index"); }else{ if(Yii::app()->user->id_perfil_sistema=='7'){ header("Location: ".Yii::app()->baseUrl ."/clientes/admin"); }else{ $this->render('index'); } } } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function indexAction() {\n\t\t$this->_notImplemented();\n\t}", "public function indexAction()\n\t{\n\t\t// do nothing\n }", "public function indexAction() {\n\t\t// TODO Auto-generated AdminController::indexAction() default action\n\t}", "public function indexAction()\n {\n // disable rendering\n $this->_helper->viewRenderer->setNoRender();\n }", "public function actionIndex()\n\n {\n\n echo 'Index action has not used.';\n\n }", "protected function indexAction()\n {\n }", "public function indexAction(){}", "protected function indexAction() {}", "public function actionIndex() {}", "public function actionIndex() {}", "public function indexAction() {}", "public function indexAction() {}", "public function indexAction() {}", "public function indexAction() {}", "public function indexAction() {}", "public function indexAction() {}", "public function indexAction() {}", "public function indexAction() {}", "public function indexAction() {}", "public function indexAction() {}", "public function indexAction() {}", "public function actionIndex()\n {}", "abstract public function actionIndex();", "public function action_index()\n\t{\n\t\t// figure out what action to do... if we're called directly\n\t\t// actions in this class are called from the Profile menu, though.\n\t}", "public function singleIndexAction() {}", "public function actionIndex()\n\t{\n\t\t// do stuff that's not the main content?\n\t}", "public function indexAction()\n {\n\n return parent::indexAction();\n\n\n }", "public function actionIndex()\n {\n $this->render('index');\n }", "public function indexAction ()\n\t{\n\t\t// TODO Auto-generated ReportController::indexAction() default action\n\t}", "public function indexAction()\r\n {\r\n $this->_helper->viewRenderer->setNoRender();\r\n }", "public function actionIndex()\n\t{\n\t\t\n\t\t$this->render('index');\n\t}", "public function actionIndex()\n\t{\n\t\t$this->render('index');\n\t}", "public function actionIndex()\n\t{\n\t\t$this->render('index');\n\t}", "public function actionIndex()\n\t{\n\t\t$this->render('index');\n\t}", "public function actionIndex()\n\t{\n\t\t$this->render('index');\n\t}", "public function indexAction()\n {\n $this->addAction();\n }", "public function actionIndex()\n {\n $this->view->render('index');\n }", "public function indexAction()\n\t{\n\t\t$this->_forward('view');\n\t}", "public function actionIndex()\n {\n \techo 'Permission Denied.';\n \texit;\n return $this->render('index');\n }", "public function indexAction() {\r\n }", "public function indexAction() \n\t{\n\t\t$this->_forward('view');\n\t}", "public function indexAction() {\n\t}", "public function indexAction() {\n\t}", "public function indexAction() {\n $this->_forward('list');\n }", "public function indexAction()\n {}", "abstract function indexAction();", "public function actionIndex()\n {\n\t\techo \"=== Action index ===\";\n \n }", "public function actionIndex(){\r\r\n\t\t$this->render('index', array());\r\r\n\t}", "public function indexAction()\n {\n $this->_forward('view');\n }", "public function indexAction()\n {\n return $this->doIndex();\n }", "public function indexAction()\n {\n return $this->doIndex();\n }", "public function indexAction()\n {\n return $this->doIndex();\n }", "public function indexAction()\n {\n return $this->doIndex();\n }", "public function indexAction() \n {\n \t\n }", "public function actionIndex()\r\n {\r\n \treturn $this->render('index');\r\n }", "public function indexAction() {\n \n }", "public function actionIndex()\r\n {\r\n\t\treturn $this->render('index');\r\n }", "public function actionIndex()\n\t{\n\n\t\treturn $this->render(\"index\");\n\n\n\t}", "public function indexAction()\n {\n return array();\n }", "public function indexAction()\n {\n return array();\n }", "public function indexAction()\n {\n return array();\n }", "public function indexAction()\n {\n return array();\n }", "public function indexAction(){\t\t\n\t}", "public function indexAction ()\r\n {\r\n // TODO Auto-generated SearchController::indexAction() default action\r\n }", "public function indexAction() {\n\n\t}", "public function indexAction(){\r\n\t\t\t\r\n\t\t}", "public function indexAction()\n {\n return array(\n );\n }", "public function fullIndexAction() {}", "public function actionIndex() {\n\t\treturn $this->render('index');\n\t}", "public function indexAction ()\r\n {\r\n\r\n }", "public function actionIndex()\n {\n\t return $this->render('index');\n }", "public function action_index()\n\t{\n\t}", "public function indexAction() {\n }", "public function indexAction() {\n }", "public function indexAction() {\n ;\n }", "public function indexAction() \n {\n\t\tif (!isset($this->view->flagFailedSearch)) {\n\t\t\t$this->view->flagFailedSearch = FALSE;\n\t\t}\n }", "public function actionIndex()\n {\n return $this->render('index');\n }", "public function indexAction() {\r\n \r\n }", "public function actionIndex()\n {\n return $this->render('/index');\n }", "public function actionIndex() {\n $this->actionTrenutniSpored();\n }", "public function indexAction() {\n\t\t$this->_initAction()\n\t\t\t->renderLayout();\n\t}", "public function indexAction()\n {\n // action body\n }", "public function indexAction() {\r\n\t\t// TODO Auto-generated FinanceController::indexAction() default action\r\n\t}", "public function indexAction()\n {\n// $this->view = 'index';\n }", "public function actionIndex()\n {\n\n }", "public function indexAction() : string\n {\n // Deal with the action and return a response.\n return \"index\";\n }", "public function actionIndex() {\n $this->assignLangue();\n $this->render('index');\n }", "public function viewAction()\r\n {\r\n $this->indexAction();\r\n }", "public function action_index()\n {\n }", "public function indexAction()\n {\n //for real application\n }", "public function indexAction() {\n $this->formAction();\n }", "public function indexAction() {\n $this->formAction();\n }", "public function actionIndex()\n {\n return $this->renderIndex();\n }", "public function indexAction()\n {\n }", "public function indexAction()\n {\n }", "public function indexAction()\n {\n }", "public function indexAction()\n {\n }", "public function indexAction()\n {\n }", "public function indexAction()\n {\n }", "function & DefaultIndexAction (&$controller)\n {\n\n parent::Action($controller);\n\n }", "public function actionIndex()\n {\n return $this->render('index');\n }" ]
[ "0.82926196", "0.81674063", "0.81397927", "0.80910504", "0.8069951", "0.7985898", "0.7974938", "0.7974034", "0.7917117", "0.7917117", "0.7822448", "0.7820972", "0.7820972", "0.7820972", "0.7820972", "0.7820972", "0.7820972", "0.7820972", "0.7820972", "0.7820972", "0.78208035", "0.781658", "0.78142583", "0.77801937", "0.773113", "0.7729146", "0.7728082", "0.77036846", "0.76995254", "0.7693499", "0.76856655", "0.7683256", "0.7683256", "0.7683256", "0.7683256", "0.76628584", "0.76546115", "0.7627241", "0.7621968", "0.76200944", "0.76169443", "0.76165015", "0.76165015", "0.7614849", "0.761442", "0.7613627", "0.76027006", "0.75967467", "0.75936115", "0.7587502", "0.7587502", "0.7587502", "0.7587502", "0.7585541", "0.7582139", "0.75782454", "0.7567014", "0.7551002", "0.7543583", "0.7543583", "0.7543583", "0.7543583", "0.75363916", "0.75355107", "0.75261515", "0.75246835", "0.75031954", "0.7495695", "0.7494744", "0.7488388", "0.7484395", "0.74824595", "0.7472893", "0.7472893", "0.7471024", "0.7462776", "0.746143", "0.74548155", "0.7450749", "0.74478555", "0.74381536", "0.7425375", "0.7408694", "0.7407756", "0.74063355", "0.74043256", "0.74015933", "0.73964953", "0.73962086", "0.7394261", "0.73764336", "0.73764336", "0.7374291", "0.73698187", "0.73698187", "0.73698187", "0.73698187", "0.73698187", "0.73698187", "0.73686165", "0.7363111" ]
0.0
-1
This is the action to handle external exceptions.
public function actionError() { if($error=Yii::app()->errorHandler->error) { if(Yii::app()->request->isAjaxRequest) echo $error['message']; else $this->render('error', $error); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function executeActionWithErrorHandling() {\n \n }", "function exception_handler($ex) {\n // now let the plugin send the exception to client\n $this->send_error($ex);\n // not much else we can do now, add some logging later\n exit(1);\n }", "protected function errorAction() {}", "abstract protected function handleError(\\Exception $e);", "function act() {\n throw $this->exception;\n }", "function as_exception_handler($e){\n\t\t$msg = 'Error('.$e->getCode().') '. $e->getMessage().' in '. $e->getFile().':'. $e->getLine();\n\t\t$this->catch_error($msg, 'clickgs plugin crashed');\n\t}", "public function handle() {\n throw new Exception(\"This is a test exception.\");\n }", "protected function throwRedirectException() {}", "public function error()\n {\n throw new Exception('Something went wrong!');\n }", "public function actionError() {\n \n }", "public function testOnExecuteActionException()\n {\n // Start of user code RouterSpecialEventsControllerTest.testonExecuteActionException\n $controller = new RouterSpecialEventsController();\n $httpResponse = $controller->onExecuteActionException(\n AssociativeArray::createFromNativeArray(\n 'string',\n array(\n 'type' => 'SomeException',\n 'code' => 0,\n 'message' => 'Message of a simulated exception',\n 'file' => '/var/some-folder/some-file.som',\n 'controller' => 'SomeController',\n 'action' => 'someAction'\n )\n ));\n $this->assertEquals(500, $httpResponse->getStatusCode());\n $this->assertEquals(\n \"<html><h1>Error 500 : An exception has been thrown</h1><p>While executing SomeController::someAction</p><p>SomeException : Message of a simulated exception</p><p>TiBeN Framework</p></html>\", \n $httpResponse->getMessage()\n );\n // End of user code\n }", "public function getException();", "function api_error_setup() {\n\tset_exception_handler(function(Throwable $e) {\n\t\ttry {\n\t\t\techo APIException::make_json_string(APIException::map_to_code($e), $e);\n\t\t\tls_log($e->__toString(), LOGERR);\n\t\t} catch (Exception $e) {\n\t\t\t/*\n\t\t\t* Exceptions thrown in the exception handler\n\t\t\t* cause hard to debug fatal errors. Handle them.\n\t\t\t*/\n\t\t\techo '{\"error\":'.API_E_INTERNAL.', \"e_msg\":\"'.$e->getMessage().\n\t\t\t\t' (in exception handler, '.$e->getFile().' '.$e->getLine().')\"}';\n\t\t}\n\t\texit(1);\n\t});\n}", "private function throwException()\n {\n throw new CacheException(\\odbc_errormsg(), (int) \\odbc_error());\n }", "public function actionException()\n {\n $this->render('exception');\n }", "public function throwErrorAction() {\n $message = $this->getRequestParam(\"message\", null);\n if (($error_code = $this->getRequestParam(\"error_code\")) && !empty($error_code)) {\n if (!empty($message))\n $this->respondWithValidationError($error_code, $message);\n else\n $this->respondWithError($error_code);\n }\n\n return;\n }", "public function handle(\\Exception $error);", "public function actionError() {\n if ($error = Yii::app()->errorHandler->error) {\n\t\t\t$this->sendRestResponse(500,array(\n\t\t\t\t'status' => false,\n\t\t\t\t'message' => $error['message'],\n\t\t\t\t'data' => $error,\n\t\t\t));\t\t\t\n }\n\t}", "function handler($ex) {\n echo \"In exception handler\\n\";\n}", "public function makeErrorAction()\n {\n // test this\n\n $this->app->abort(404, 'I am a code generated 404 error message');\n\n }", "protected static function exception()\n {\n foreach (self::fetch('exceptions') as $file) {\n Bus::need($file);\n }\n }", "protected function initializeErrorHandling() {}", "abstract public function handleFatalError($e);", "public function handle_error() {\n $last_operation = $this->add_last_operation;\n $data = array(\n 'function_name' => is_array($last_operation[0]) ? $last_operation[0][1] : $last_operation[0],\n 'function_name_complete' => is_array($last_operation[0]) ? (is_string($last_operation[0][0]) ? $last_operation[0][0].':' : get_class($last_operation[0][0]).'->').$last_operation[0][1] : $last_operation[0],\n 'args' => $last_operation[1]\n );\n\n switch (strtolower($data['function_name'])) {\n case 'autoexecute':\n $data['table'] = $data['args'][0];\n $data['fields'] = $data['args'][1];\n $data['operation'] = $data['args'][2];\n break;\n }\n\n $data['debug'] = $last_operation;\n if (class_exists('e_database'))\n throw new e_database($this->adodb->ErrorMsg(),$data,$this->adodb->ErrorNo());\n else\n throw new Exception($this->adodb->ErrorMsg(),$this->adodb->ErrorNo());\n }", "public function apply(Exception $ex);", "function errorHandler($errno,$errstr){\n\t global $errors;\n\n\t raiseError(\"We are working to solve an internal issue in our service. Please, try later.\", Constants::HTTP_INTERNAL_SERVER_ERROR);\n\t}", "public function handleException($exception);", "function uncaught_exception($o){\n $o['message'] = Trace::exceptionToText($o['exception']);\n $o['trace'] = Trace::exFullTrace($o['exception']);\n unexpected_failure($o);\n }", "function handleException(Exception $ex)\n{\n\techo \"There was an error: {$ex}\";\n}", "public function onException(Exception $err): Effect|Response;", "public function errorAction()\n\t{\n\t}", "function raise(\\Exception $ex);", "function exception_error_handler($errno, $errstr, $errfile, $errline ) {\n throw new \\ErrorException($errstr, 0, $errno, $errfile, $errline);\n}", "public static function reportOtherExceptionAndExit($e){\nself::encodeAndOutputMessage(self::translate('System error.'));\n$msg=date(\"Y-m-d H:i:s T\");\n$msg.=':'.(string)$e.\"\\n\"; //Let the exception describe itself\nforeach(self::$details as $k=>$v)$msg.=\"$k=$v\\n\";\nLogger::log(self::$systemErrorLog,$msg);\nexit;\n}", "public function errorOccured();", "public function actionError()\n {\n if (($exception = Yii::$app->getErrorHandler()->exception) === null) {\n // action has been invoked not from error handler, but by direct route, so we display '404 Not Found'\n $exception = new HttpException(404, Yii::t('yii', 'Page not found.'));\n }\n\n if ($exception instanceof HttpException) {\n $code = $exception->statusCode;\n } else {\n $code = $exception->getCode();\n }\n if ($exception instanceof Exception) {\n $name = $exception->getName();\n } else {\n $name = Yii::t('yii', 'Error');\n }\n if ($code) {\n $name .= \" (#$code)\";\n }\n\n if ($exception instanceof UserException) {\n $message = $exception->getMessage();\n } else {\n $message = Yii::t('yii', 'An internal server error occurred.');\n }\n $statusCode = $exception->statusCode ? $exception->statusCode : 500;\n if (Yii::$app->getRequest()->getIsAjax()) {\n return \"$name: $message\";\n } else {\n return $this->render('error', [\n 'code' => $statusCode,\n 'name' => $name,\n 'message' => $message\n ]);\n }\n }", "public function throwExceptions($state)\r\n {\r\n $this->_frontController->throwExceptions($state);\r\n }", "function default_exception_handler($ex) {\n $backtrace = $ex->getTrace();\n $place = array('file'=>$ex->getFile(), 'line'=>$ex->getLine(), 'exception'=>get_class($ex));\n array_unshift($backtrace, $place);\n\n if ($ex instanceof moodle_exception) {\n _print_normal_error($ex->errorcode, $ex->module, $ex->a, $ex->link, $backtrace, $ex->debuginfo);\n } else {\n _print_normal_error('generalexceptionmessage', 'error', $ex->getMessage(), '', $backtrace);\n }\n}", "function exception_error_handler( $errno, $errstr, $errfile, $errline ) {\n throw new ErrorException( $errstr, $errno, 0, $errfile, $errline );\n}", "public function errorAction() {\n\t\tZend_Layout::getMvcInstance ()->setLayout ( \"light\" );\n\t\t$errors = $this->_getParam ( 'error_handler' );\n\t\tif ($errors->exception->getCode () == 404 || in_array ( $errors->type, array (\n\t\t\t\tZend_Controller_Plugin_ErrorHandler::EXCEPTION_NO_ROUTE,\n\t\t\t\tZend_Controller_Plugin_ErrorHandler::EXCEPTION_NO_CONTROLLER,\n\t\t\t\tZend_Controller_Plugin_ErrorHandler::EXCEPTION_NO_ACTION \n\t\t) )) {\n\t\t\t$this->getResponse ()->setHttpResponseCode ( 404 );\n\t\t\t$this->_helper->viewRenderer ( '404' );\n\t\t}\n\t\t\n\t\t\n\t\t$this->view->content = $errors->exception->getMessage ();\n\t}", "function globalExceptionHandler ($ex) {\n try {\n ob_end_clean();\n $msg = '<b>' . get_class($ex) . ' (' . $ex->getCode() . ')</b> thrown in <b>' . $ex->getFile() . '</b> on line <b>'\n . $ex->getLine() . '</b><br>' . $ex->getMessage()\n . str_replace('#', '<br>#', $ex->getTraceAsString()) . '<br>';\n\n //don't log errors caused by routing to a non-existant page (since bots do that constantly)\n if($ex->getCode() != 404 && $ex->getCode() != 403 && $ex->getMessage() != \"Call to a member function getRewriteRoute() on null\") {\n $ds = DataService::getInstance();\n $ds->logException($msg);\n }\n\n if (DEBUG) {\n echo $msg;\n } else {\n if(Session::getUser() != null)\n header(\"Location: /error\");\n else\n header(\"Location: /login/error\");\n }\n }\n catch (Exception $e) {\n if(Session::getUser() != null)\n header(\"Location: /error\");\n else\n header(\"Location: /login/error\");\n }\n}", "protected abstract function send_error($ex=null) ;", "public static function handleException($e)\n {\n self::setHeader($e);\n //TODO quitar el extract, que el view pida los que necesite\n extract(Router::get(), EXTR_OVERWRITE);\n // Registra la autocarga de helpers\n spl_autoload_register('kumbia_autoload_helper', true, true);\n\n $Controller = Util::camelcase($controller);\n ob_start();\n if (PRODUCTION) { //TODO: añadir error 500.phtml\n include APP_PATH . 'views/_shared/errors/404.phtml';\n return;\n }\n if ($e instanceof KumbiaException) {\n $view = $e->view;\n $tpl = $e->template;\n } else {\n $view = 'exception';\n $tpl = 'views/templates/exception.phtml';\n }\n //Fix problem with action name in REST\n $action = $e->getMessage() ? $e->getMessage() : $action;\n\n include CORE_PATH . \"views/errors/{$view}.phtml\";\n \n $content = ob_get_clean();\n\n // termina los buffers abiertos\n while (ob_get_level ()) {\n ob_end_clean();\n }\n include CORE_PATH . $tpl;\n }", "function exceptionHandler($e) {\n $msg = array(\"status\" => \"500\", \"message\" => $e->getMessage(), \"file\" => $e->getFile(), \"line\" => $e->getLine());\n $usr_msg = array(\"status\" => \"500\", \"message\" => \"Sorry! Internal server error!\");\n header(\"Access-Control-Allow-Origin: *\"); \n header(\"Content-Type: application/json; charset=UTF-8\"); \n header(\"Access-Control-Allow-Methods: GET, POST\");\n echo json_encode($usr_msg);\n logError($msg);\n\n }", "public function testException()\n {\n throw new ThumbNotFoundException;\n }", "public function handleException(Exception $e)\n {\n watchdog('Award Force API', $e->getMessage(), array(), WATCHDOG_ERROR);\n\n exit(t('An error has occurred. Please try again, and if the problem persists, contact the system administrator.'));\n }", "function OnAfterError(){\n }", "function exception_error_handler($errno, $errstr, $errfile, $errline ) {\n throw new ErrorException($errstr, 0, $errno, $errfile, $errline);\n}", "public function onKernelException()\n {\n echo '<br> something wrong happened ! exeption event listener successfuly fired :D ';\n }", "public function caught( $ex ) {\n//\t\tob_end_clean();\n\n\t\t$class = get_class($ex);\n\t\tswitch ( $class ) {\n\t\t\tcase 'row\\database\\ModelException':\n\t\t\tcase 'row\\database\\NotEnoughFoundException':\n\t\t\tcase 'row\\database\\TooManyFoundException':\n\t\t\t\texit('[Database Model error] '.$ex->getMessage().'');\n\t\t\tcase 'row\\http\\NotFoundException':\n\t\t\tcase 'row\\OutputException':\n\t\t\tcase 'row\\core\\VendorException':\n//\t\t\t\tob_end_clean();\n//\t\t\t\treturn $this->_internal('errors/notfound', array('exception' => $ex));\n\t\t\t\texit('[404] ['.$class.'] Not Found: '.$ex->getMessage());\n\t\t\tcase 'row\\core\\MethodException':\n\t\t\tcase 'ErrorException':\n\t\t\t\texit('Parse/runtime error: '.$ex->getMessage().'');\n\t\t\tcase 'row\\database\\DatabaseException':\n\t\t\t\texit('[Database/Query error] '.$ex->getMessage().'');\n\t\t}\n\n\t\texit('Unknown ['.get_class($ex).'] encountered: '.$ex->getMessage().'');\n\t}", "function __elgg_php_exception_handler($exception) {\n\terror_log(\"*** FATAL EXCEPTION *** : \" . $exception);\n\n\tob_end_clean(); // Wipe any existing output buffer\n\n\t// make sure the error isn't cached\n\theader(\"Cache-Control: no-cache, must-revalidate\", true);\n\theader('Expires: Fri, 05 Feb 1982 00:00:00 -0500', true);\n\t//header(\"Internal Server Error\", true, 500);\n\n\t$body = elgg_view(\"messages/exceptions/exception\",array('object' => $exception));\n\tpage_draw(ballom_echo('exception:title'), $body);\n}", "protected function exceptions($exception){\n\t\tthrow $exception;\n\t}", "public function errorAction()\r\n {\r\n $errors = $this->_getParam('error_handler');\r\n $messages = array();\r\n\r\n switch ((string)$errors->type) {\r\n case Zend_Controller_Plugin_ErrorHandler::EXCEPTION_NO_CONTROLLER:\r\n case Zend_Controller_Plugin_ErrorHandler::EXCEPTION_NO_ACTION:\r\n // 404 error -- controller or action not found\r\n $this->getResponse()->setRawHeader('HTTP/1.1 404 Not Found');\r\n\r\n $messages[] = Zoo::_(\"The page you requested was not found.\");\r\n if (ZfApplication::getEnvironment() == \"development\" || ZfApplication::getEnvironment() == \"staging\") {\r\n $messages[] = $errors->exception->getMessage();\r\n }\r\n break;\r\n\r\n case Zend_Controller_Plugin_ErrorHandler::EXCEPTION_OTHER:\r\n case 0:\r\n // application error\r\n //$messages[] = Zoo::_(\"An unexpected error occurred with your request. Please try again later.\");\r\n $messages[] = $errors->exception->getMessage();\r\n if (ZfApplication::getEnvironment() == \"development\" || ZfApplication::getEnvironment() == \"staging\") {\r\n $trace = $errors->exception->getTrace();\r\n foreach (array_keys($trace) as $i) {\r\n if ($trace[$i]['args']) {\r\n foreach ($trace[$i]['args'] as $index => $arg) {\r\n if (is_object($arg)) {\r\n $trace[$i]['args'][$index] = get_class($arg);\r\n }\r\n elseif (is_array($arg)) {\r\n $trace[$i]['args'][$index] = \"array\";\r\n }\r\n }\r\n }\r\n $trace[$i]['file_short'] = \"..\".substr($trace[$i]['file'], strrpos(str_replace(\"\\\\\", DIRECTORY_SEPARATOR, $trace[$i]['file']), DIRECTORY_SEPARATOR));\r\n }\r\n $this->view->assign('trace', $trace);\r\n }\r\n break;\r\n\r\n default:\r\n // application error\r\n $this->getResponse()->setRawHeader('HTTP/1.1 '.$errors->type);\r\n $messages[] = $errors->exception->getMessage();\r\n break;\r\n }\r\n\r\n // Clear previous content\r\n $this->getResponse()->clearBody();\r\n\r\n $this->view->assign('errormessages', $messages);\r\n }", "function error_handler($errno, $string, $file, $line, $context) {\n throw new Trails_Exception(500, $string);\n }", "public function UnhandeldException(){\n\t\t$this -> message = \"An unhandeld exception was thrown. Please infrom...\";\n\t}", "public function testTask1Exception(){\n\n }", "protected function errorAction()\n\t{\n\t\t$this->handleTargetNotFoundError();\n\n\t\treturn $this->getFlattenedValidationErrorMessage();\n\t}", "private function handleException($e)\n {\n // TODO: test coverage\n if ($e instanceof ClientException) {\n // will catch all 4xx errors\n if ($e->getResponse()->getStatusCode() == 403) {\n throw new AuthenticationException(\n $this->apiKey,\n $this->apiSecret,\n null,\n $e\n );\n } else {\n throw new DomainException(\n 'The OpenTok API request failed: ' . json_decode($e->getResponse()->getBody(true))->message,\n null,\n $e\n );\n }\n } else if ($e instanceof ServerException) {\n // will catch all 5xx errors\n throw new UnexpectedValueException(\n 'The OpenTok API server responded with an error: ' . json_decode($e->getResponse()->getBody(true))->message,\n null,\n $e\n );\n } else {\n // TODO: check if this works because Exception is an interface not a class\n throw new Exception('An unexpected error occurred');\n }\n }", "public function support(\\Exception $exception);", "public function handleErrorRelateArticle()\n { \n $this->getResponse()->setStatusCode(500);\n $this->forward('articles', 'articleRelations');\n }", "function as_error_handler($errno, $errstr, $errfile, $errline){\n\t\t$msg = 'Error('.$errno.') '.$errstr.' in '. $errfile.':'. $errline;\n\t\t$this->catch_error( $msg, 'clickgs plugin crashed');\n\t}", "function rescue($exception) {\n return $this->dispatcher->trails_error($exception);\n }", "public abstract function onFail();", "public function throwError();", "function internalError() {\n\t\t$this->status = $this->STATUS_INTERNAL_ERROR;\n\t\t$this->noCache();\n\t}", "public function actionError()\n {\n if($error=Yii::app()->errorHandler->error)\n {\n if($error['code'] != 404 || !isset($aErrorMsg[$error['errorCode']])){\n Yii::log(' error : ' . $error['file'] .\":\". $error['line'] .\":\". $error['message'], 'error', 'system');\n }\n $ret = new ReturnInfo(FAIL_RET, Yii::t('exceptions', $error['message']), intval($error['errorCode']));\n if(Yii::app()->request->getIsAjaxRequest()){\n echo json_encode($ret);\n \n }else{\n if( empty($error['errorCode']) ){\n if(isset($this->aErrorMsg[$error['code']])){\n if(empty($this->aErrorMsg[$error['code']]['message'])) {\n $this->aErrorMsg[$error['code']]['message'] = $error['message'];\n }\n $this->render('error', $this->aErrorMsg[$error['code']]);\n }else{\n $this->render('error', $this->aErrorMsg['1000']);\n }\n }else{\n $this->render('error', $this->aErrorMsg[ $error['errorCode'] ]);\n \n }\n }\n \n } \n }", "function handle_error($exception) {\n try {\n print $this->encode(array(\n 'error' => $exception->getMessage(),\n 'message' => $exception->getMessage(), // Should be a i18n end user message\n 'data' => @$exception->data,\n 'status' => @$exception->status\n ));\n } catch(Exception $e) {\n echo 'Error: '.$e->getmessage();\n }\n }", "public function getExceptions();", "public static function error()\n {\n if ($error = static::$errorHandler) {\n admin_exit($error());\n }\n\n if (Helper::isAjaxRequest()) {\n abort(403, trans('admin.deny'));\n }\n\n admin_exit(\n Content::make()->withError(trans('admin.deny'))\n );\n }", "protected function throwErrorWhileSavingResponseException()\n {\n throw new InvalidScreenForNewSessionException('An error occured while saving data.');\n }", "protected function error($msg) {\n \t parent::error($msg); //log in error msg\n throw new Exception ($msg); // <-- TESTS php4\n }", "public function errorAction()\n {\n $errors = $this->_getParam('error_handler');\n\n switch ($errors->type) {\n case Zend_Controller_Plugin_ErrorHandler::EXCEPTION_NO_CONTROLLER:\n case Zend_Controller_Plugin_ErrorHandler::EXCEPTION_NO_ACTION:\n\n // 404 error -- controller or action not found\n $this->getResponse()->setHttpResponseCode(404);\n $this->view->message = 'Page not found';\n break;\n default:\n // Generic application error\n $this->getResponse()->setHttpResponseCode(500);\n $this->view->message = 'Application error';\n break;\n }\n\n $this->view->exception = $errors->exception;\n $this->view->request = $errors->request;\n $this->_response->clearBody();\n }", "public function loginCheckAction()\n {\n\n\n throw new \\Exception('This should never be reached!');\n }", "public function handleException(\\Exception $exception): void;", "public function errorAction() {\n\t\t\n\t\t$errors = $this->_getParam('error_handler');\n\t\t\n\t\tswitch ($errors->type) {\n\t\t\t \n\t\t\tcase Zend_Controller_Plugin_ErrorHandler::EXCEPTION_NO_CONTROLLER:\n\t\t\tcase Zend_Controller_Plugin_ErrorHandler::EXCEPTION_NO_ACTION:\n\t\t\t\t\n\t\t\t\t// stranka nebyla nalezena - HTTP chybova hlaska 404\n\t\t\t\t$this->getResponse()->setHttpResponseCode(404);\n\t\t\t\t$this->view->message = 'Stránka nenalezena';\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tdefault:\n\t\t\t\t\n\t\t\t\t// chyba v aplikaci - HTTP chybova hlaska 500\n\t\t\t\t$this->getResponse()->setHttpResponseCode(500);\n\t\t\t\t$this->view->message = 'Chyba v aplikaci';\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t}\n\t\t\n $this->view->env = APPLICATION_ENV;\n\t\t$this->view->exception = $errors->exception;\n\t\t$this->view->request = $errors->request;\n\t\t$this->view->title = 'Objevila se chyba';\r\n\t\t$this->view->showDetails = ini_get('display_errors');\r\n\t\t\n\t\t$this->_helper->layout->setLayout('error');\n\t\t\n\t}", "protected function error()\n {\n $this->response = $this->response->withStatus(500);\n $this->jsonBody([\n 'input' => $this->payload->getInput(),\n 'error' => $this->payload->getOutput(),\n ]);\n }", "function error(){}", "function fatalErrorHandler() {\n global $cfg;\n $error = error_get_last();\n if(($error['type'] === E_ERROR) || ($error['type'] === E_USER_ERROR)){\n header(\"HTTP/1.1 500 Server Error\");\n readfile($cfg['source_root'] . \"/500.html\");\n //error_log(print_r($error, true));\n //error_log(print_r(debug_backtrace(), true));\n exit();\n }\n/*\n if(($error['type'] === E_ERROR) || ($error['type'] === E_USER_ERROR)){\n $_SESSION['error'] = $error;\n header(\"Location:\".$cfg['root'].\"exception/\");\n exit;\n }\n*/\n}", "public static function handleException(Throwable $exc) {\n\n\t\t\t# Load template\n\n\t\t\t$file_name = (DIR_TEMPLATES . 'Exception.ctp');\n\n\t\t\tif (false === ($contents = @file_get_contents($file_name))) $output = nl2br($exc);\n\n\t\t\telse $output = self::parseContents($contents, $exc);\n\n\t\t\t# Set headers\n\n\t\t\theader('Expires: Mon, 26 Jul 1997 05:00:00 GMT');\n\n\t\t\theader('Cache-Control: no-store, no-cache, must-revalidate');\n\n\t\t\theader('Cache-Control: post-check=0, pre-check=0', false);\n\n\t\t\theader('Pragma: no-cache');\n\n\t\t\theader($_SERVER['SERVER_PROTOCOL'] . ' 500 Internal Server Error', true, 500);\n\n\t\t\theader('Content-type: text/html; charset=UTF-8');\n\n\t\t\t# ------------------------\n\n\t\t\texit ($output);\n\t\t}", "abstract protected function echoExceptionWeb($exception);", "function error_handler($exception) {\n\tglobal $config;\n\theader('HTTP/1.0 404 Not Found');\n\textract(array('error'=>$exception->getMessage()));\n\trequire($config['VIEW_PATH'].'404.php');\n\tdie();\n}", "function handleException($e) {\r\n\ttry {\r\n\t\tif (!($e instanceof \\Exception)) throw $e;\r\n\t\t\r\n\t\tif ($e instanceof IPrintableException || $e instanceof \\wcf\\system\\exception\\IPrintableException) {\r\n\t\t\t$e->show();\r\n\t\t\texit;\r\n\t\t}\r\n\t\t\r\n\t\t// repacking\r\n\t\t(new SystemException($e->getMessage(), $e->getCode(), '', $e))->show();\r\n\t\texit;\r\n\t}\r\n\tcatch (\\Throwable $exception) {\r\n\t\tdie(\"<pre>WCF::handleException() Unhandled exception: \".$exception->getMessage().\"\\n\\n\".$exception->getTraceAsString());\r\n\t}\r\n\tcatch (\\Exception $exception) {\r\n\t\tdie(\"<pre>WCF::handleException() Unhandled exception: \".$exception->getMessage().\"\\n\\n\".$exception->getTraceAsString());\r\n\t}\r\n}", "public function fatal_handler()\n {\n $error = error_get_last();\n\n if ($error !== null && is_array($error) && $error['type'] == E_ERROR)\n {\n $settings = require CODE_ROOT . '/src/settings.php';\n $app = new \\Slim\\App($settings);\n\n require CODE_ROOT . '/src/dependencies.php';\n\n $view = $app->getContainer()->get('view');\n\n $logger = $app->getContainer()->get('logger');\n $logger->emergency('An unrecoverable error has ocurred!', $error);\n\n echo $view->fetch('error.twig');\n }\n\n exit;\n }", "function exception_error_handler() {\n header('HTTP/1.1 500 Internal Server Error');\n if(is_file(__DIR__.'/../html/500.html'))\n {\n require(__DIR__.'/../html/404.html');\n } else {\n ?>\n <h1>Something goofed really hard</h1>\n <p>We're working on it, sit tight</p>\n <?php\n }\n // I'll just leave this here for debug purposes.\n //throw new ErrorException($errstr, $errno, 0, $errfile, $errline);\n}", "public function handleException(Exception $ex) {\r\n $extra = array('message' => $ex->getMessage());\r\n if ($ex instanceof NotFoundException) {\r\n header('HTTP/1.0 404 Not Found');\r\n $this->runErrorPage('404', $extra);\r\n } else {\r\n header('HTTP/1.1 500 Internal Sever Error');\r\n $this->runErrorPage('404', $extra);\r\n }\r\n }", "public function indexAction() {\n\t\ttry{\n\t\t\t\n\t\t\t\n\t\t}catch (Exception $e){\n\t\t\tApplication_Model_Logging::lwrite($e->getMessage());\n\t\t\tthrow new Exception($e->getMessage());\n\t\t}\n\t}", "public function cannotPerformReferencingErrorAction()\n {\n $this->renderTwigView('/iris-referencing/cannot-perform-referencing-error.html.twig');\n }", "public function raise() {\n throw $this;\n }", "private function _error() {\n\t\trequire $this->_controllerPath . $this->_errorFile;\n\t\t$this->_controller = new Error();\n\t\t$this->_controller->index('Esta página no existe');\n\t\texit;\n\t}", "public function actionError()\n {\n if(Core::getLoggedDeliveryBoyID() > 0)\n {\n\t \t $exception = Yii::$app->errorHandler->exception;\n\t \t $error = array('statusCode' => $exception->statusCode, 'message' => $exception->getMessage(), 'name' => $exception->getName());\n \t\t return $this->render('/error', ['error' => $error]);\n }\n else\n {\n\t \t\treturn Yii::$app->getResponse()->redirect(Yii::$app->getHomeUrl().'delivery')->send();\n }\n }", "function exception_error_handler($errno, $errstr, $errfile, $errline ) {\n // Don't catch suppressed errors with '@' sign\n // @link http://stackoverflow.com/questions/7380782/error-supression-operator-and-set-error-handler\n $error_reporting = ini_get('error_reporting');\n if (!($error_reporting & $errno)) {\n return;\n }\n throw new ErrorException($errstr, $errno, 0, $errfile, $errline);\n}", "private function handleDefaultException($e)\n\t{\n\t\tLog::out(get_class($e) . ', ' . $e->getMessage(), Log::LEVEL_CRIT);\n\t\t\n\t\tif(php_sapi_name() == 'cli') {\n\t\t\tprint \"\\n\" . get_class($e) . \" occured\\n\" .\n\t\t\t\t'Message: ' . $e->getMessage() . \"\\n\" .\n\t\t\t\t'Code: ' . $e->getCode() . \"\\n\" .\n\t\t\t\t$e->getTraceAsString() . \"\\n\";\n\t\t\t\t\n\t\t}\n\t\telse {\n\t\t\tif($e instanceOf BakedCarrotNotFoundException) {\n\t\t\t\tif(!headers_sent()) {\n\t\t\t\t\theader('HTTP/1.0 404 Not Found');\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(Request::isAjax() || Request::isFlash()) {\n\t\t\t\t\tprint $e->getMessage();\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tprint '<html><head></head><body style=\"font: 10pt arial; margin: 40px;\">' .\n\t\t\t\t\t\t'<h1 style=\"font-weight: normal; font-size: 30px;\">404 Page Not Found</h1>' . \n\t\t\t\t\t\t($e->getMessage() ? '<h3 style=\"margin: 0; font-weight: normal;\">Message: ' . $e->getMessage() . '</h3>' : '') .\n\t\t\t\t\t\t(self::isDevMode() ? '<p>' . nl2br($e->getTraceAsString()) . '</p>' : '') .\n\t\t\t\t\t\t'</body>';\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tif(!headers_sent()) {\n\t\t\t\t\theader('HTTP/1.1 500 Internal Server Error');\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(Request::isAjax() || Request::isFlash()) {\n\t\t\t\t\tprint 'EXCEPTION (' . get_class($e) . '): ' . $e->getMessage() . \"\\n\";\n\t\t\t\t\t\n\t\t\t\t\tif(self::isDevMode() && get_class($e) == 'PDOException') {\n\t\t\t\t\t\tprint 'SQL: ' . Db::lastSql();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tprint '<html><head></head><body style=\"font: 10pt arial; margin: 40px;\">' .\n\t\t\t\t\t\t'<h1 style=\"font-weight: normal; font-size: 30px;\">' . get_class($e) . ' occured</h1>' . \n\t\t\t\t\t\t'<h3 style=\"margin: 0; font-weight: normal;\">Message: ' . $e->getMessage() . '</h3>' .\n\t\t\t\t\t\t'<h3 style=\"margin: 0; font-weight: normal;\">Code: ' . $e->getCode() . '</h3>' .\n\t\t\t\t\t\t(self::isDevMode() && get_class($e) == 'PDOException' ? '<h3 style=\"margin: 0;\">SQL: ' . Db::lastSql() . '</h3>' : '') .\n\t\t\t\t\t\t(self::isDevMode() ? '<p>' . nl2br($e->getTraceAsString()) . '</p>' : '') .\n\t\t\t\t\t\t'<h4 style=\"font-weight: normal;\"><em>Baked Carrot ver ' . BAKEDCARROT_VERSION . '</em></h4>' .\n\t\t\t\t\t\t'</body>';\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\texit(-1);\n\t}", "abstract function bootErrorAction(array $errors = null);", "public function errorAction()\n {\n $code = $this->_request->getParam('errorCode');\n $this->view->errorCode = $code;\n $this->getResponse()->setRawHeader('HTTP/1.1 500 Internal Server Error');\n }", "public function http(HttpResponseException $ex);", "public static function exception_handler($exception) { \n ResponseFactory::send($exception->getMessage()); //Send exception message as response.\n }", "abstract protected function logException(\\Exception $ex);", "function handleError()\n{\n\tglobal $g_error_msg, $g_debug_msg;\n\tinclude_once(atkconfig('atkroot'). 'atk/errors/class.atkerrorhandlerbase.inc');\n\t$errorHandlers = atkconfig('error_handlers', array('mail'=>array('mailto' => atkconfig('mailreport'))));\n\tforeach ($errorHandlers as $key => $value)\n\t{\n\t\tif (is_numeric($key))\n\t\t$key = $value;\n\t\t$errorHandlerObject = atkErrorHandlerBase::get($key, $value);\n\t\t$errorHandlerObject->handle($g_error_msg, $g_debug_msg);\n\t}\n}", "private function guardAgainstExternalErrors($response)\n {\n if ($response->getStatusCode() == 503) {\n throw new \\Exception('Could not connect to googleapis.com/maps/api. STATUSCODE = '.$response->getStatusCode());\n }\n }", "protected function throwInaccessibleException() {}", "function atkExceptionHandler(Exception $exception)\n{\n\tatkdebug($exception->getMessage(), DEBUG_ERROR);\n\tatkdebug(\"Trace:<br/>\".nl2br($exception->getTraceAsString()), DEBUG_ERROR);\n\tatkhalt(\"Uncaught exception: \" . $exception->getMessage(), 'critical');\n}" ]
[ "0.7287599", "0.6912219", "0.68299127", "0.6764336", "0.67318916", "0.65816224", "0.652491", "0.64027196", "0.63419074", "0.6254394", "0.6252444", "0.62215143", "0.6202076", "0.6200523", "0.61928016", "0.61920303", "0.6190992", "0.61815006", "0.61570185", "0.6144311", "0.612321", "0.61201763", "0.6107248", "0.61004853", "0.6097678", "0.608724", "0.6077253", "0.6071571", "0.6012394", "0.60068166", "0.60027444", "0.599248", "0.5982089", "0.5976866", "0.59707934", "0.5940339", "0.592896", "0.5912697", "0.58972526", "0.5894595", "0.5872288", "0.5871165", "0.58653665", "0.58587426", "0.5849281", "0.5831071", "0.58264756", "0.5811687", "0.5809379", "0.5808009", "0.5807814", "0.5791766", "0.57854706", "0.57811344", "0.57673085", "0.5763232", "0.574481", "0.5742202", "0.5739157", "0.57249564", "0.5719985", "0.5712929", "0.5711839", "0.571016", "0.57080704", "0.57073575", "0.5691569", "0.5690952", "0.5689513", "0.56874895", "0.56806767", "0.5674907", "0.56744456", "0.56732786", "0.5670893", "0.5666088", "0.56618816", "0.56618595", "0.5652861", "0.5645839", "0.5644675", "0.56438804", "0.5641156", "0.56399024", "0.56284046", "0.562525", "0.5622601", "0.56127936", "0.5605725", "0.56056494", "0.56053597", "0.55948526", "0.55892783", "0.5585555", "0.55760646", "0.55698377", "0.5569038", "0.556873", "0.5563482", "0.55627924", "0.55540586" ]
0.0
-1
Displays the contact page
public function actionContact() { $model=new ContactForm; if(isset($_POST['ContactForm'])) { $model->attributes=$_POST['ContactForm']; if($model->validate()) { $name='=?UTF-8?B?'.base64_encode($model->name).'?='; $subject='=?UTF-8?B?'.base64_encode($model->subject).'?='; $headers="From: $name <{$model->email}>\r\n". "Reply-To: {$model->email}\r\n". "MIME-Version: 1.0\r\n". "Content-Type: text/plain; charset=UTF-8"; mail(Yii::app()->params['adminEmail'],$subject,$model->body,$headers); Yii::app()->user->setFlash('contact','Thank you for contacting us. We will respond to you as soon as possible.'); $this->refresh(); } } $this->render('contact',array('model'=>$model)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function actionContact()\n {\n $this->render('contact');\n }", "public function contactAction()\n {\n $this->view->render('Contact Us');\n }", "function showContact() {\n $output = $this->outputBoilerplate('contact.html');\n return $output;\n }", "public function contact()\n\t{\n\t\treturn view('pages.contact');\n\t}", "public function contact()\n\t{\n\t\t$data ['footer'] = $this->page_model->getfooter();\n\n\t\t$this->load->view('templates/header');\n\t\t$this->load->view('home/about/head_about');\n\t\t$this->load->view('home/about/contact', $data);\n\t\t$this->load->view('templates/footer', $data);\n\t}", "public function showContactPage()\n {\n return view('pages.contact');\n }", "public function contact() {\n $this->getView('navigation', array('pagename' => 'Contact'));\n $random = substr(md5(rand()), 0, 7);\n $this->getView('contact',array('cap' => $random));\n }", "public function contact()\n {\n $breadCrumb = $this->userEngine->breadcrumbGenerate('contact');\n\n return $this->loadPublicView('user.contact', $breadCrumb['data']);\n }", "public function showContact()\n {\n return view('front.pages.contact');\n }", "public function contact()\n\t{\n\t\treturn View::make('contact.contact');\n\t}", "public function contact()\n {\n return view('pages.contact');\n }", "public function contact()\n {\n // which contain router class an applied renderView method\n return $this->render('contact');\n }", "public function index()\n\t{\n\n\t\t$this->view('guest/contact-us');\n\t}", "public function index()\n\t{\n $this->data[ 'menubar' ] = build_menu_bar( $this->choices, 'contact' );\n $this->data[ 'pagebody' ] = 'contact';\n $this->render();\n\t}", "public function action_index()\n\t{\n\t\t$this->template->content = View::factory('contact/index');\n\t}", "public function index()\n\t{\n\t\t$this->template->build('addressbook/contact_listing');\t\n\t}", "public function contact()\n {\n return view('templates.them8.contact');\n }", "public function contactUs()\n {\n $this->template->set('global_setting', $this->global_setting);\n $this->template->set('page', 'contact');\n $this->template->set_theme('default_theme');\n $this->template->set_layout('frontend')\n ->title($this->global_setting['site_title'] . ' | Contact Us')\n ->set_partial('header', 'partials/header')\n ->set_partial('footer', 'partials/footer');\n $this->template->build('frontpages/contact_us');\n }", "public function actionContact()\n {\n $model = new ContactForm();\n if ($model->load(Yii::$app->request->post()) && $model->contact(Yii::$app->params['adminEmail'])) {\n Yii::$app->session->setFlash('contactFormSubmitted');\n\n return $this->refresh();\n }\n\n return $this->render('contact', compact('model'));\n }", "public function actionContact() {\n //echo Helper::yiiparam('adminEmail');\n $this->layout = 'pagination_layout';\n\n $model = new ContactForm;\n if (isset($_POST['ContactForm'])) {\n $model->attributes = $_POST['ContactForm'];\n if ($model->validate()) {\n $name = '=?UTF-8?B?' . base64_encode($model->first_name) . '?=';\n $subject = '=?UTF-8?B?' . base64_encode($model->subject) . '?=';\n $headers = \"From: $name <{$model->email}>\\r\\n\" .\n \"Reply-To: {$model->email}\\r\\n\" .\n \"MIME-Version: 1.0\\r\\n\" .\n \"Content-type: text/plain; charset=UTF-8\";\n\n mail(Helper::yiiparam('adminEmail'), $subject, $model->message, $headers);\n Yii::app()->user->setFlash('contact', 'Thank you for contacting us. We will respond to you as soon as possible.');\n $this->refresh();\n }\n }\n $this->render('contact', array('model' => $model));\n }", "public function contact()\n {\n return View::make('All.contact');\n }", "public function contact()\n {\n return view('about.contact');\n }", "public function contact() {\r\n $this->load->view('font_end/includes/header', $this->data);\r\n $this->load->view('font_end/contact');\r\n $this->load->view('font_end/includes/footer');\r\n }", "public function contact()\n {\n return view('home.contact');\n }", "public function actionContact()\n\t{\n\t\t$contact=new ContactForm;\n\t\tif(isset($_POST['ContactForm']))\n\t\t{\n\t\t\t$contact->attributes=$_POST['ContactForm'];\n\t\t\tif($contact->validate())\n\t\t\t{\n\t\t\t\t$headers=\"From: {$contact->email}\\r\\nReply-To: {$contact->email}\";\n\t\t\t\tmail(Yii::app()->params['adminEmail'],$contact->subject,$contact->body,$headers);\n\t\t\t\tYii::app()->user->setFlash('contact','Thank you for contacting us. We will respond to you as soon as possible.');\n\t\t\t\t$this->refresh();\n\t\t\t}\n\t\t}\n\t\t$this->render('contact',array('contact'=>$contact));\n\t}", "public function index()\r\r\n\t{\r\r\n\t\t$this->load->view('contact_view');\r\r\n\t}", "public function actionContact()\n\t{\n\t\t$model=new ContactForm;\n\t\tif(isset($_POST['ContactForm']))\n\t\t{\n\t\t\t$model->attributes=$_POST['ContactForm'];\n\t\t\tif($model->validate())\n\t\t\t{\n\t\t\t\tYii::app()->user->setFlash('contact','Thank you for contacting us. We will respond to you as soon as possible.');\n\t\t\t\t$this->refresh();\n\t\t\t}\n\t\t}\n\t\t$this->render('contact',array('model'=>$model));\n\t}", "private function displayForm()\n {\n // Preparation des paramètres du mail.\n $data['headerTitle'] = 'Contact';\n $data['headerDescription'] = 'Page de contact';\n $data['title'] = 'Contact';\n\n // Affichage du formulaire.\n $this->load->view('templates/header', $data);\n $this->load->view('templates/alert', $data);\n $this->load->view('contact/index', $data);\n $this->load->view('templates/footer', $data);\n }", "public function actionContact() {\n\n $model = new ContactForm;\n if (isset($_POST['ContactForm'])) {\n $model->attributes = $_POST['ContactForm'];\n if ($model->validate()) {\n\n $success = Emails::sendToAdmin_ContactForm($model->name, $model->email, $model->subject, $model->body);\n\n Emails::sendToPerson_ContactFormConfirmation($model->name, $model->email);\n\n Yii::app()->user->setFlash('contact', Yii::t('texts', 'FLASH_THANK_YOU_FOR_CONTACTING_US'));\n $this->refresh();\n }\n }\n $this->render('contact', array('model' => $model));\n }", "public function contact_us()\n {\n return view('pages.frontsite.contact_us');\n }", "public function contact(){\n return view('frontend.contact');\n \t\n }", "public function contact()\n\t{\n\t\t$maincategorys = Maincategory::all(); \t\n\t\t\t\n\t\treturn view('pages.contact')->with('maincategorys', $maincategorys);\n\t\t\n\t}", "public function actionContact()\n\t{\n\t\t$model=new ContactForm;\n\t\tif(isset($_POST['ContactForm']))\n\t\t{\n\t\t\t$model->attributes=$_POST['ContactForm'];\n\t\t\tif($model->validate())\n\t\t\t{\n\t\t\t\tMailWrapper::sendMailTemplate(\"contactus\", $model, $model->subject, \"tihonau@gmail.com\");\n\n\t\t\t\tYii::app()->user->setFlash('contact','Thank you for contacting us. We will respond to you as soon as possible.');\n\t\t\t\t$this->refresh();\n\t\t\t}\n\t\t}\n\t\t$this->render('contact',array('model'=>$model));\n\t}", "public function actionContact()\n\t{\n\t\t$model = new ContactForm;\n\t\tif (isset($_POST['ContactForm']))\n\t\t{\n\t\t\t$model->attributes = $_POST['ContactForm'];\n\t\t\tif ($model->validate())\n\t\t\t{\n\t\t\t\t$headers = \"From: {$model->email}\\r\\nReply-To: {$model->email}\";\n\t\t\t\tmail(Yii::app()->params['adminEmail'], $model->subject, $model->body, $headers);\n\t\t\t\tYii::app()->user->setFlash('contact', 'Thank you for contacting us. We will respond to you as soon as possible.');\n\t\t\t\t$this->refresh();\n\t\t\t}\n\t\t}\n\t\t$this->render('contact', array(\n\t\t\t'model' => $model));\n\t}", "public function contact()\n {\n return view('contact');\n }", "public function contact()\n {\n return view('contact');\n }", "public function index() {\n\t\t$data['social_media'] = $this->social_media_model->get_six();\n\t\t$this->render('public/contact/index',$data);\n\t}", "public function actionContact()\n\t{\n\t\t$this->layout ='column2';\n\t\t$model=new ContactForm;\n\t\tif(isset($_POST['ContactForm']))\n\t\t{\n\t\t\t$model->attributes=$_POST['ContactForm'];\n\t\t\tif($model->validate())\n\t\t\t{\n\t\t\t\t$headers=\"From: {$model->email}\\r\\nReply-To: {$model->email}\";\n\t\t\t\tmail(Yii::app()->params['adminEmail'],$model->subject,$model->body,$headers);\n\t\t\t\tYii::app()->user->setFlash('contact','Thank you for contacting us. We will respond to you as soon as possible.');\n\t\t\t\t$this->refresh();\n\t\t\t}\n\t\t}\n\t\t$this->render('contact',array('model'=>$model));\n\t}", "public function contact_form()\n\t{\n\t\tif ($this->errstr)\n\t\t{\n\t\t\tFsb::$tpl->set_switch('error');\n\t\t}\n\n\t\tFsb::$tpl->set_file('user/user_contact.html');\n\t\tFsb::$tpl->set_vars(array(\n\t\t\t'ERRSTR' =>\t\t\tHtml::make_errstr($this->errstr),\n\t\t));\n\t\t\n\t\t// Champs contacts crees par l'administrateur\n\t\tProfil_fields_forum::form(PROFIL_FIELDS_CONTACT, 'contact', Fsb::$session->id());\n\t}", "public function index(){\n Auth::checkAdminLogin();\n\n\t\t// Set the Page Title ('pageName', 'pageSection', 'areaName')\n\t\t$this->_view->pageTitle = array('Contact', 'Contact');\n\t\t// Set Page Description\n\t\t$this->_view->pageDescription = 'Contact Index';\n\t\t// Set Page Section\n\t\t$this->_view->pageSection = 'Contact Us';\n\t\t// Set Page Sub Section\n\t\t$this->_view->pageSubSection = 'Contact Us';\n\n\t\t###### PAGINATION ######\n //sanitise or set keywords to false\n if(isset($_GET['keywords']) && !empty($_GET['keywords'])){\n $_GET['keywords'] = FormInput::checkKeywords($_GET['keywords']);\n }else{\n $_GET['keywords'] = false;\n }\n\n $totalItems = $this->_model->countAllData($_GET['keywords']);\n $pages = new Pagination(20,'keywords='.$_GET['keywords'].'&page', $totalItems[0]['total']);\n $this->_view->getAllData = $this->_model->getAllData($pages->get_limit(), $_GET['keywords']);\n $this->_view->countData = $this->_model->countAllData();\n\n\t\t// Create the pagination nav menu\n\t\t$this->_view->page_links = $pages->page_links();\n\n\t\t// Render the view ($renderBody, $layout, $area)\n\t\t$this->_view->render('contact-us/index', 'layout', 'backoffice');\n\t}", "public function contact_us()\n {\n //\n return view('contactus');\n }", "public function contact()\n {\n if ($this->issetPostSperglobal('name') && $this->issetPostSperglobal('email') && $this->issetPostSperglobal('message')) {\n $empty_field = 0;\n foreach ($_POST as $key => $post) {\n if (empty(trim($post))) {\n $empty_field++;\n }\n }\n if ($empty_field === 0) {\n $ReCaptcha = new ReCaptcha($this->getPostSuperglobal('recaptcha_response'));\n $method = __FUNCTION__;\n $this->session->read('Mail')->$method($this->getPostSuperglobal('name'), $this->getPostSuperglobal('email'), $this->getPostSuperglobal('message'));\n $this->session->writeFlash('success', \"Votre message a été envoyé avec succès.\");\n $this->redirect('contact');\n } else {\n $this->session->writeFlash('danger', \"Certains champs sont vides.\");\n }\n } else {\n $this->session->writeFlash('danger', \"Certains champs sont manquants.\");\n }\n $_post = $this->getSpecificPost($_POST);\n $this->render('contact', ['head'=>['title'=>'Contact', 'meta_description'=>''], 'page'=>'contact', '_post'=>isset($_post) ? $_post : '']);\n }", "public function getContact() \n\t{\n\t\treturn View::make('contact');\n\t}", "public function index()\n\t{\n\t\t return \\View::make('contacto/contact');\n\t}", "public function getEfficientcontact()\n {\n return view('contactpage');\n }", "public function index()\n {\n return view('easy-forms::contact');\n }", "public function indexAction() {\n $contact = new Application_Model_Contact();\n\n // Check whether contact form submitted and is valid\n if($this->_request->isPost() && $contact->getForm()->isValid($this->_request->getParams())) {\n // Retrieve parameters from request and pass back to form to filter only form values\n $contact->getForm()->populate($this->_request->getParams());\n $contact->populate();\n\n // Save and send contact message\n $isSent = $contact->save()->send();\n\n if($isSent) {\n $this->_flashMessenger->addMessage('Thank you for contacting us. Your message has been sent.');\n $contact->getForm()->reset();\n\n } else {\n $this->_flashMessenger->addMessage('An error occurred and your message could not be sent. Please try again.');\n }\n\n $this->_helper->redirector('index');\n }\n \n // Pass variables to view\n $this->view->contact = $contact;\n }", "public function display() {\n\t\techo '<iframe src=\"http://norulesweb.com/contact/\" width=\"800\" height=\"400\"></iframe>';\n\t}", "public function getContact()\n\t{\n\t\treturn view('contact');\n\t}", "public function actionContact()\n {\n $model = new ContactForm;\n if (isset($_POST['ContactForm'])) {\n $model->attributes = $_POST['ContactForm'];\n if ($model->validate()) {\n $headers = \"From: {$model->email}\\r\\nReply-To: {$model->email}\";\n mail(Yii::app()->params['adminEmail'], $model->subject, $model->body, $headers);\n Yii::app()->user->setFlash('contact', 'Thank you for contacting us. We will respond to you as soon as possible.');\n $this->refresh();\n }\n }\n $this->render('contact', array('model' => $model));\n }", "public function ftvchContactsAction()\n {\n $ftvcontacts=new Ep_Ftv_FtvContacts();\n $details= $ftvcontacts->getFtvContacts('chaine');\n if($details != 'NO')\n $this->_view->ftvcontactsdetails=$details;\n $this->render('ftv_ftvcontacts');\n }", "public function actionContact()\n\t{\n\t\t$model=new ContactForm;\n\t\tif(isset($_POST['ContactForm']))\n\t\t{\n\t\t\t$model->attributes=$_POST['ContactForm'];\n\t\t\tif($model->validate())\n\t\t\t{\n\t\t\t\t$headers=\"From: {$model->email}\\r\\nReply-To: {$model->email}\";\n\t\t\t\tmail(Yii::app()->params['adminEmail'],$model->subject,$model->body,$headers);\n\t\t\t\tYii::app()->user->setFlash('contact','Thank you for contacting us. We will respond to you as soon as possible.');\n\t\t\t\t$this->refresh();\n\t\t\t}\n\t\t}\n\t\t$this->render('contact',array('model'=>$model));\n\t}", "public function actionContact()\n\t{\n\t\t$model=new ContactForm;\n\t\tif(isset($_POST['ContactForm']))\n\t\t{\n\t\t\t$model->attributes=$_POST['ContactForm'];\n\t\t\tif($model->validate())\n\t\t\t{\n\t\t\t\t$headers=\"From: {$model->email}\\r\\nReply-To: {$model->email}\";\n\t\t\t\tmail(Yii::app()->params['adminEmail'],$model->subject,$model->body,$headers);\n\t\t\t\tYii::app()->user->setFlash('contact','Thank you for contacting us. We will respond to you as soon as possible.');\n\t\t\t\t$this->refresh();\n\t\t\t}\n\t\t}\n\t\t$this->render('contact',array('model'=>$model));\n\t}", "public function actionContact()\n\t{\n\t\t$model=new ContactForm;\n\t\tif(isset($_POST['ContactForm']))\n\t\t{\n\t\t\t$model->attributes=$_POST['ContactForm'];\n\t\t\tif($model->validate())\n\t\t\t{\n\t\t\t\t$headers=\"From: {$model->email}\\r\\nReply-To: {$model->email}\";\n\t\t\t\tmail(Yii::app()->params['adminEmail'],$model->subject,$model->body,$headers);\n\t\t\t\tYii::app()->user->setFlash('contact','Thank you for contacting us. We will respond to you as soon as possible.');\n\t\t\t\t$this->refresh();\n\t\t\t}\n\t\t}\n\t\t$this->render('contact',array('model'=>$model));\n\t}", "public function getContact(){\n\t\treturn view('pages.contact'); #or pages/contact\n\t}", "public function home() {\r\n $perpage = 10;\r\n $page = $this->api->getParam('page', '1');\r\n $pagination = new Pagination($page, $perpage);\r\n $result = $this->model->apply($pagination);\r\n $this->api->loadView('contact', array(\r\n 'rows' => $result,\r\n 'pagination' => $pagination,\r\n 'link' => $this->api->getApplicationUrl() . 'contact/home'\r\n ));\r\n }", "public function actionContact() {\n $model = new ContactForm;\n if (isset($_POST['ContactForm'])) {\n $model->attributes = $_POST['ContactForm'];\n if ($model->validate()) {\n $headers = \"From: {$model->email}\\r\\nReply-To: {$model->email}\";\n mail(Yii::app()->params['adminEmail'], $model->subject, $model->body, $headers);\n Yii::app()->user->setFlash('contact', 'Thank you for contacting us. We will respond to you as soon as possible.');\n $this->refresh();\n }\n }\n $this->render('contact', array('model' => $model));\n }", "public function actionContact() {\n $model = new ContactForm;\n if (isset($_POST['ContactForm'])) {\n $model->attributes = $_POST['ContactForm'];\n if ($model->validate()) {\n $headers = \"From: {$model->email}\\r\\nReply-To: {$model->email}\";\n mail(Yii::app()->params['adminEmail'], $model->subject, $model->body, $headers);\n Yii::app()->user->setFlash('contact', 'Thank you for contacting us. We will respond to you as soon as possible.');\n $this->refresh();\n }\n }\n $this->render('contact', array('model' => $model));\n }", "public function contact()\n {\n $contact_active = true;\n\n $cities = $this->city_services->all();\n\n return view('client.contact', compact('contact_active', 'cities'));\n }", "public function contact()\n {\n $contact = Markdown::convertToHtml(SiteSetting::get('contact'));\n return view('home.contact', compact('contact'));\n }", "public function getContact()\n {\n return \\View::make(\"ishu.contact\");\n }", "public function contact_us()\n {\n $navbar = NavBar::first();\n return view('pages.home.contact-us' , compact('navbar'));\n }", "public function action_index(){\n\n\t\t$view = View::forge('contact/form');\n\n\t\tif (Input::method() == 'POST'){\n\t\t\tif (Input::post('name') and Input::post('email') and Input::post('message')){\n\t\t\t\ttry{\n\t\t\t\t\tEmail::forge()\n\t\t\t\t\t ->to('tperlewitz@fullsail.edu')\n\t\t\t\t\t ->from(Input::post('email'), Input::post('name'))\n\t\t\t\t\t ->subject('TuneGenius Contact Form')\n\t\t\t\t\t ->body(Input::post('message'))\n\t\t\t\t\t ->send();\n\n\t\t\t\t\tResponse::redirect('contact/sent');\n\t\t\t\t}\n\t\t\t\tcatch (EmailSendingFailedException $e){\n\t\t\t\t\t$view->error = 'Your email did not send, please try again.';\n\t\t\t\t}\n\n\t\t\t}\n\t\t\t//if not all fields are filled out puts up error and empties fields\n\t\t\telse{\n\t\t\t\t$view->error = 'Please fill in all fields';\n\t\t\t}\n\t\t}\n\t\t$this->template->title = 'Contact us';\n\t\t$this->template->content = $view;\n\t}", "public function contacts()\n\t{\n\t\t$data['title'] = 'Contacts | AEY';\n\t\t$data ['view_page'] = 'contact_us';\n\n\t\t\t$this->form_validation->set_rules('name', 'Name', 'required');\n\t\t\t$this->form_validation->set_rules('email', 'Email', 'required');\n\t\t\t$this->form_validation->set_rules('mobile', 'Mobile', 'required');\n\t\t\t$this->form_validation->set_rules('message', 'Message', 'required');\n\n\n\t\t\tif($this->form_validation->run() === FALSE){\n\t\t\t\t$this->load->view('site', $data);\t\n\t\t\t}else{\n\t\t\t\t$this->contact_model->add_contact();\n\t\t\t\t\n\t\t\t\t// Set message\n\t\t\t\t$this->session->set_flashdata('added_contact', 'You have sent your message successfully');\n\t\t\t\tredirect('Home');\n\t\t\t}\t\n\t\t\n\t}", "public function index()\n {\n //\n return view('home.contact');\n }", "public function actionContact()\n\t{\n\t\t$model = new ContactForm;\n\t\t\n\t\t$this->performAjaxValidation($model, 'contact-form');\n\n\t\tif(isset($_POST['ContactForm']))\n\t\t{\n\t\t\t$model->attributes = $_POST['ContactForm'];\n\t\t\tif($model->validate())\n\t\t\t{\n\t\t\t\t$headers = \"From: {$model->email}\\r\\nReply-To: {$model->email}\";\n\t\t\t\tmail(Yii::app()->params['adminEmail'], $model->subject, $model->body, $headers);\n\t\t\t\tYii::app()->user->setFlash('contact','Thank you for contacting us! We will get back to you as soon as possible!!');\n\t\t\t\t$this->refresh();\n\t\t\t}\n\t\t}\n\t\t$this->render('contact', array('model' => $model));\n\t}", "public function contact()\n {\n\n $lang = $this->data['lang'];\n $user_id = $this->user_id;\n\n $this->data['page'] = 'contact_us' ;\n\n $body = 'contact' ;\n\n $this->load_pages($body,$this->data); \n\n }", "public function actionContact()\n\t{\n\t\t$model['form'] = new ContactForm();\n\t\tif (isset($_POST['ContactForm'])) {\n\t\t\t$model['form']->attributes = $_POST['ContactForm'];\n\t\t\tif ($model['form']->validate()) {\n\t\t\t\t$name = '=?UTF-8?B?' . base64_encode($model['form']->name) . '?=';\n\t\t\t\t$subject = '=?UTF-8?B?' . base64_encode($model['form']->subject) . '?=';\n\t\t\t\t$headers = \"From: $name <{$model['form']->email}>\\r\\n\" .\n\t\t\t\t\t\"Reply-To: {$model['form']->email}\\r\\n\" .\n\t\t\t\t\t\"MIME-Version: 1.0\\r\\n\" .\n\t\t\t\t\t'Content-Type: text/plain; charset=UTF-8';\n\n\t\t\t\tmail(Yii::app()->params['adminEmail'], $subject, $model['form']->body, $headers);\n\t\t\t\tYii::app()->user->setFlash('contact', Yii::t('app', 'Thank you for contacting us. We will respond to you as soon as possible.'));\n\t\t\t\t$this->refresh();\n\t\t\t}\n\t\t}\n\t\t$this->render('contact', array('model' => $model));\n\t}", "public function contact()\n {\n // Check login authentication\n $loginUser = \"\";\n if (Auth::check()) {\n $loginUser = Auth::user();\n }\n\n return view('contact.contact', ['loginUser' => $loginUser]);\n }", "public function actionContact()\n\t{\n\t\t$model=new ContactForm;\n\t\tif(isset($_POST['ContactForm']))\n\t\t{\n\t\t\t$model->attributes=$_POST['ContactForm'];\n\t\t\tif($model->validate())\n\t\t\t{\n\t\t\t\t$headers=\"From: info@mehesz.net\\r\\nReply-To: info@mehesz.net\";\n\t\t\t\tmail(Yii::app()->params['adminEmail'],'Email from IKMQ: ' . $model->subject,'Email: ' . $model->email . \"\\r\\n\\r\\nMessage: \\r\\n\" . $model->body,$headers);\n\t\t\t\tYii::app()->user->setFlash('contact','Thank you for contacting us. We will respond to you as soon as possible.');\n\t\t\t\t$this->refresh();\n\t\t\t}\n\t\t}\n\t\t$this->render('contact',array('model'=>$model));\n\t}", "public function contactUsView()\n {\n $this->load->view('contactusview'\n }", "public function show()\n {\n return view('ContactUs');\n }", "public function index()\n {\n return view('front.contactus');\n }", "public function contactForm()\n {\n return view('web.contact');\n }", "public function index()\n\t{\n\t\tif (!$this->commons->hasPermission('contacts')) {\n\t\t\tNot_foundController::show('403');\n\t\t\texit();\n\t\t}\n\n\t\t/*Get User name and role*/\n\t\t$data = $this->commons->getUser();\n\t\t/**\n\t\t * Get all User data from DB using User model \n\t\t **/\n\t\tif ($id = $this->commons->checkUser()) {\n\t\t\t$data['admin'] = false;\n\t\t\t$data['result'] = $this->contactModel->getContacts($id);\n\t\t} else {\n\t\t\t$data['admin'] = true;\n\t\t\t$data['result'] = $this->contactModel->getContacts();\n\t\t}\n\n\t\t/*Load Language File*/\n\t\trequire DIR_BUILDER . 'language/' . $data['info']['language'] . '/common.php';\n\t\t$data['lang']['common'] = $lang;\n\t\trequire DIR_BUILDER . 'language/' . $data['info']['language'] . '/contact.php';\n\t\t$data['lang']['contact'] = $contact;\n\n\t\t/* Set confirmation message if page submitted before */\n\t\tif (isset($this->session->data['message'])) {\n\t\t\t$data['message'] = $this->session->data['message'];\n\t\t\tunset($this->session->data['message']);\n\t\t}\n\t\t/* Set page title */\n\t\t$data['page_title'] = $data['lang']['common']['text_contacts'];\n\n\t\t/*Render User list view*/\n\t\t$this->view->render('contact/contact_list.tpl', $data);\n\t}", "public function index()\n {\n return view('contact::index');\n }", "public function actionContact() {\r\n\t\t$model = new ContactForm ();\r\n\t\tif (isset ( $_POST ['ContactForm'] )) {\r\n\t\t\t$model->attributes = $_POST ['ContactForm'];\r\n\t\t\tif ($model->validate ()) {\r\n\t\t\t\t$name = '=?UTF-8?B?' . base64_encode ( $model->name ) . '?=';\r\n\t\t\t\t$subject = '=?UTF-8?B?' . base64_encode ( $model->subject ) . '?=';\r\n\t\t\t\t$headers = \"From: $name <{$model->email}>\\r\\n\" . \"Reply-To: {$model->email}\\r\\n\" . \"MIME-Version: 1.0\\r\\n\" . \"Content-type: text/plain; charset=UTF-8\";\r\n\t\t\t\t\r\n\t\t\t\tmail ( Yii::app ()->params ['adminEmail'], $subject, $model->body, $headers );\r\n\t\t\t\tYii::app ()->user->setFlash ( 'contact', 'Thank you for contacting us. We will respond to you as soon as possible.' );\r\n\t\t\t\t$this->refresh ();\r\n\t\t\t}\r\n\t\t}\r\n\t\t$this->render ( 'contact', array (\r\n\t\t\t\t'model' => $model \r\n\t\t) );\r\n\t}", "public function show(Contact $contact)\n {\n //\n }", "public function show(Contact $contact)\n {\n //\n }", "public function show(Contact $contact)\n {\n //\n }", "public function show(Contact $contact)\n {\n //\n }", "public function show(Contact $contact)\n {\n //\n }", "public function show(Contact $contact)\n {\n //\n }", "public function show(Contact $contact)\n {\n //\n }", "public function show(Contact $contact)\n {\n //\n }", "public function show(Contact $contact)\n {\n //\n }", "public function show(Contact $contact)\n {\n //\n }", "public function contactUs(){\n $this->load->view('contactUs');\n }", "public function contactAction() {\n\n //ONLY LOGGED IN USER CAN ADD OVERVIEW\n if (!$this->_helper->requireUser()->isValid())\n return;\n\n //GET VIEWER\n $viewer = Engine_Api::_()->user()->getViewer();\n\n //GET LISTING ID AND OBJECT\n $listing_id = $this->_getParam('listing_id');\n\n $this->view->sitereview = $sitereview = Engine_Api::_()->getItem('sitereview_listing', $listing_id);\n\n //GET LISTING TYPE ID\n $listingtype_id = $sitereview->listingtype_id;\n Engine_Api::_()->sitereview()->setListingTypeInRegistry($listingtype_id);\n $listingType = Zend_Registry::get('listingtypeArray' . $listingtype_id);\n Engine_Api::_()->core()->setSubject($sitereview); \n if(!Engine_API::_()->seaocore()->checkSitemobileMode('fullsite-mode')) {\n $this->_helper->content\n ->setContentName(\"sitereview_dashboard_contact_listtype_$listingtype_id\")\n //->setNoRender()\n ->setEnabled();\n \n } \n \n if (empty($listingType->contact_detail)) {\n return $this->_forward('requireauth', 'error', 'core');\n }\n\n if (!$sitereview->authorization()->isAllowed($viewer, 'edit_listtype_' . $listingtype_id)) {\n return $this->_forward('requireauth', 'error', 'core');\n }\n\n if (!Engine_Api::_()->authorization()->getPermission($viewer->level_id, 'sitereview_listing', \"contact_listtype_$listingtype_id\")) {\n return $this->_forward('requireauth', 'error', 'core');\n }\n\n //SELECTED TAB\n $this->view->TabActive = \"contactdetails\";\n\n //SET FORM\n $this->view->form = $form = new Sitereview_Form_Contactinfo();\n $tableOtherinfo = Engine_Api::_()->getDbTable('otherinfo', 'sitereview');\n\n //POPULATE FORM\n $row = $tableOtherinfo->getOtherinfo($listing_id);\n $value['email'] = $row->email;\n $value['phone'] = $row->phone;\n $value['website'] = $row->website;\n\n $form->populate($value);\n\n //CHECK FORM VALIDATION\n if ($this->getRequest()->isPost() && $form->isValid($this->getRequest()->getPost())) {\n //GET FORM VALUES\n $values = $form->getValues();\n\n\n $values['phone'] = $this->view->string()->stripTags($values['phone']);\n $values['email'] = $this->view->string()->stripTags($values['email']);\n $values['website'] = $this->view->string()->stripTags($values['website']);\n if (isset($values['email'])) {\n $email_id = $values['email'];\n\n //CHECK EMAIL VALIDATION\n $validator = new Zend_Validate_EmailAddress();\n $validator->getHostnameValidator()->setValidateTld(false);\n if (!empty($email_id)) {\n if (!$validator->isValid($email_id)) {\n $form->addError(Zend_Registry::get('Zend_Translate')->_('Please enter a valid email address.'));\n return;\n } else {\n $tableOtherinfo->update(array('email' => $email_id), array('listing_id = ?' => $listing_id));\n }\n } else {\n $tableOtherinfo->update(array('email' => $email_id), array('listing_id = ?' => $listing_id));\n }\n }\n\n //CHECK PHONE OPTION IS THERE OR NOT\n if (isset($values['phone'])) {\n $tableOtherinfo->update(array('phone' => $values['phone']), array('listing_id = ?' => $listing_id));\n }\n\n //CHECK WEBSITE OPTION IS THERE OR NOT\n if (isset($values['website'])) {\n $tableOtherinfo->update(array('website' => $values['website']), array('listing_id = ?' => $listing_id));\n }\n\n //SHOW SUCCESS MESSAGE\n $form->addNotice(Zend_Registry::get('Zend_Translate')->_('Your changes have been saved successfully.'));\n }\n }", "public function contact()\n {\n \n if($this->form_validation->run('contact') == FALSE) \n {\n $data['err_msg'] = '<div class=\"errors\">'.validation_errors().'</div>';\n \n $data['title'] = \"Contact Us | Graphical Market Research\";\n $data['description'] = \"Stay in touch with Graphical Research to get UpToDate and accurate market data by industry experts. \";\n $data['country_data'] = $this->country_model->get_all_country();\n $data['keywords'] = \"Contact Us, Stay in touch with Graphical Research\";\n $data['content'] = 'layout_files/contact_us';\n $this->load->view('master_files/master_layout', $data); \n\t }else{\n\t\t$val = $this->sample_model->request('', 'C');\n\t\tif($val == 1)\n\t\t{\n $leadId = $this->sample_model->leadId();\n\t\t if($leadId)\n\t\t {\n\t\t redirect('thanks');\n\t\t }\n\t\t}\n\t }\n }", "public function actionContact()\n\t{\n\t\t$model=new ContactForm;\n\t\tif(isset($_POST['ContactForm']))\n\t\t{\n\t\t\t$model->attributes=$_POST['ContactForm'];\n\t\t\tif($model->validate())\n\t\t\t{\n\t\t\t\t$name='=?UTF-8?B?'.base64_encode($model->name).'?=';\n\t\t\t\t$subject='=?UTF-8?B?'.base64_encode($model->subject).'?=';\n\t\t\t\t$headers=\"From: $name <{$model->email}>\\r\\n\".\n\t\t\t\t\t\"Reply-To: {$model->email}\\r\\n\".\n\t\t\t\t\t\"MIME-Version: 1.0\\r\\n\".\n\t\t\t\t\t\"Content-type: text/plain; charset=UTF-8\";\n\n\t\t\t\tmail(Yii::app()->params['adminEmail'],$subject,$model->body,$headers);\n\t\t\t\tYii::app()->user->setFlash('contact','Thank you for contacting us. We will respond to you as soon as possible.');\n\t\t\t\t$this->refresh();\n\t\t\t}\n\t\t}\n\t\t$this->render('contact',array('model'=>$model));\n\t}", "public function actionContact()\n\t{\n\t\t$model=new ContactForm;\n\t\tif(isset($_POST['ContactForm']))\n\t\t{\n\t\t\t$model->attributes=$_POST['ContactForm'];\n\t\t\tif($model->validate())\n\t\t\t{\n\t\t\t\t$name='=?UTF-8?B?'.base64_encode($model->name).'?=';\n\t\t\t\t$subject='=?UTF-8?B?'.base64_encode($model->subject).'?=';\n\t\t\t\t$headers=\"From: $name <{$model->email}>\\r\\n\".\n\t\t\t\t\t\"Reply-To: {$model->email}\\r\\n\".\n\t\t\t\t\t\"MIME-Version: 1.0\\r\\n\".\n\t\t\t\t\t\"Content-type: text/plain; charset=UTF-8\";\n\n\t\t\t\tmail(Yii::app()->params['adminEmail'],$subject,$model->body,$headers);\n\t\t\t\tYii::app()->user->setFlash('contact','Thank you for contacting us. We will respond to you as soon as possible.');\n\t\t\t\t$this->refresh();\n\t\t\t}\n\t\t}\n\t\t$this->render('contact',array('model'=>$model));\n\t}", "public function actionContact()\n\t{\n\t\t$model=new ContactForm;\n\t\tif(isset($_POST['ContactForm']))\n\t\t{\n\t\t\t$model->attributes=$_POST['ContactForm'];\n\t\t\tif($model->validate())\n\t\t\t{\n\t\t\t\t$name='=?UTF-8?B?'.base64_encode($model->name).'?=';\n\t\t\t\t$subject='=?UTF-8?B?'.base64_encode($model->subject).'?=';\n\t\t\t\t$headers=\"From: $name <{$model->email}>\\r\\n\".\n\t\t\t\t\t\"Reply-To: {$model->email}\\r\\n\".\n\t\t\t\t\t\"MIME-Version: 1.0\\r\\n\".\n\t\t\t\t\t\"Content-type: text/plain; charset=UTF-8\";\n\n\t\t\t\tmail(Yii::app()->params['adminEmail'],$subject,$model->body,$headers);\n\t\t\t\tYii::app()->user->setFlash('contact','Thank you for contacting us. We will respond to you as soon as possible.');\n\t\t\t\t$this->refresh();\n\t\t\t}\n\t\t}\n\t\t$this->render('contact',array('model'=>$model));\n\t}", "public function actionContact()\n\t{\n\t\t$model=new ContactForm;\n\t\tif(isset($_POST['ContactForm']))\n\t\t{\n\t\t\t$model->attributes=$_POST['ContactForm'];\n\t\t\tif($model->validate())\n\t\t\t{\n\t\t\t\t$name='=?UTF-8?B?'.base64_encode($model->name).'?=';\n\t\t\t\t$subject='=?UTF-8?B?'.base64_encode($model->subject).'?=';\n\t\t\t\t$headers=\"From: $name <{$model->email}>\\r\\n\".\n\t\t\t\t\t\"Reply-To: {$model->email}\\r\\n\".\n\t\t\t\t\t\"MIME-Version: 1.0\\r\\n\".\n\t\t\t\t\t\"Content-type: text/plain; charset=UTF-8\";\n\n\t\t\t\tmail(Yii::app()->params['adminEmail'],$subject,$model->body,$headers);\n\t\t\t\tYii::app()->user->setFlash('contact','Thank you for contacting us. We will respond to you as soon as possible.');\n\t\t\t\t$this->refresh();\n\t\t\t}\n\t\t}\n\t\t$this->render('contact',array('model'=>$model));\n\t}", "public function actionContact()\n\t{\n\t\t$model=new ContactForm;\n\t\tif(isset($_POST['ContactForm']))\n\t\t{\n\t\t\t$model->attributes=$_POST['ContactForm'];\n\t\t\tif($model->validate())\n\t\t\t{\n\t\t\t\t$name='=?UTF-8?B?'.base64_encode($model->name).'?=';\n\t\t\t\t$subject='=?UTF-8?B?'.base64_encode($model->subject).'?=';\n\t\t\t\t$headers=\"From: $name <{$model->email}>\\r\\n\".\n\t\t\t\t\t\"Reply-To: {$model->email}\\r\\n\".\n\t\t\t\t\t\"MIME-Version: 1.0\\r\\n\".\n\t\t\t\t\t\"Content-type: text/plain; charset=UTF-8\";\n\n\t\t\t\tmail(Yii::app()->params['adminEmail'],$subject,$model->body,$headers);\n\t\t\t\tYii::app()->user->setFlash('contact','Thank you for contacting us. We will respond to you as soon as possible.');\n\t\t\t\t$this->refresh();\n\t\t\t}\n\t\t}\n\t\t$this->render('contact',array('model'=>$model));\n\t}", "public function actionContact()\n\t{\n\t\t$model=new ContactForm;\n\t\tif(isset($_POST['ContactForm']))\n\t\t{\n\t\t\t$model->attributes=$_POST['ContactForm'];\n\t\t\tif($model->validate())\n\t\t\t{\n\t\t\t\t$name='=?UTF-8?B?'.base64_encode($model->name).'?=';\n\t\t\t\t$subject='=?UTF-8?B?'.base64_encode($model->subject).'?=';\n\t\t\t\t$headers=\"From: $name <{$model->email}>\\r\\n\".\n\t\t\t\t\t\"Reply-To: {$model->email}\\r\\n\".\n\t\t\t\t\t\"MIME-Version: 1.0\\r\\n\".\n\t\t\t\t\t\"Content-type: text/plain; charset=UTF-8\";\n\n\t\t\t\tmail(Yii::app()->params['adminEmail'],$subject,$model->body,$headers);\n\t\t\t\tYii::app()->user->setFlash('contact','Thank you for contacting us. We will respond to you as soon as possible.');\n\t\t\t\t$this->refresh();\n\t\t\t}\n\t\t}\n\t\t$this->render('contact',array('model'=>$model));\n\t}", "public function actionContact()\n\t{\n\t\t$model=new ContactForm;\n\t\tif(isset($_POST['ContactForm']))\n\t\t{\n\t\t\t$model->attributes=$_POST['ContactForm'];\n\t\t\tif($model->validate())\n\t\t\t{\n\t\t\t\t$name='=?UTF-8?B?'.base64_encode($model->name).'?=';\n\t\t\t\t$subject='=?UTF-8?B?'.base64_encode($model->subject).'?=';\n\t\t\t\t$headers=\"From: $name <{$model->email}>\\r\\n\".\n\t\t\t\t\t\"Reply-To: {$model->email}\\r\\n\".\n\t\t\t\t\t\"MIME-Version: 1.0\\r\\n\".\n\t\t\t\t\t\"Content-type: text/plain; charset=UTF-8\";\n\n\t\t\t\tmail(Yii::app()->params['adminEmail'],$subject,$model->body,$headers);\n\t\t\t\tYii::app()->user->setFlash('contact','Thank you for contacting us. We will respond to you as soon as possible.');\n\t\t\t\t$this->refresh();\n\t\t\t}\n\t\t}\n\t\t$this->render('contact',array('model'=>$model));\n\t}", "public function actionContact()\n\t{\n\t\t$model=new ContactForm;\n\t\tif(isset($_POST['ContactForm']))\n\t\t{\n\t\t\t$model->attributes=$_POST['ContactForm'];\n\t\t\tif($model->validate())\n\t\t\t{\n\t\t\t\t$name='=?UTF-8?B?'.base64_encode($model->name).'?=';\n\t\t\t\t$subject='=?UTF-8?B?'.base64_encode($model->subject).'?=';\n\t\t\t\t$headers=\"From: $name <{$model->email}>\\r\\n\".\n\t\t\t\t\t\"Reply-To: {$model->email}\\r\\n\".\n\t\t\t\t\t\"MIME-Version: 1.0\\r\\n\".\n\t\t\t\t\t\"Content-type: text/plain; charset=UTF-8\";\n\n\t\t\t\tmail(Yii::app()->params['adminEmail'],$subject,$model->body,$headers);\n\t\t\t\tYii::app()->user->setFlash('contact','Thank you for contacting us. We will respond to you as soon as possible.');\n\t\t\t\t$this->refresh();\n\t\t\t}\n\t\t}\n\t\t$this->render('contact',array('model'=>$model));\n\t}", "public function actionContact()\n\t{\n\t\t$model=new ContactForm;\n\t\tif(isset($_POST['ContactForm']))\n\t\t{\n\t\t\t$model->attributes=$_POST['ContactForm'];\n\t\t\tif($model->validate())\n\t\t\t{\n\t\t\t\t$name='=?UTF-8?B?'.base64_encode($model->name).'?=';\n\t\t\t\t$subject='=?UTF-8?B?'.base64_encode($model->subject).'?=';\n\t\t\t\t$headers=\"From: $name <{$model->email}>\\r\\n\".\n\t\t\t\t\t\"Reply-To: {$model->email}\\r\\n\".\n\t\t\t\t\t\"MIME-Version: 1.0\\r\\n\".\n\t\t\t\t\t\"Content-Type: text/plain; charset=UTF-8\";\n\n\t\t\t\tmail(Yii::app()->params['adminEmail'],$subject,$model->body,$headers);\n\t\t\t\tYii::app()->user->setFlash('contact','Thank you for contacting us. We will respond to you as soon as possible.');\n\t\t\t\t$this->refresh();\n\t\t\t}\n\t\t}\n\t\t$this->render('contact',array('model'=>$model));\n\t}", "public function actionContact()\n\t{\n\t\t$model=new ContactForm;\n\t\tif(isset($_POST['ContactForm']))\n\t\t{\n\t\t\t$model->attributes=$_POST['ContactForm'];\n\t\t\tif($model->validate())\n\t\t\t{\n\t\t\t\t$name='=?UTF-8?B?'.base64_encode($model->name).'?=';\n\t\t\t\t$subject='=?UTF-8?B?'.base64_encode($model->subject).'?=';\n\t\t\t\t$headers=\"From: $name <{$model->email}>\\r\\n\".\n\t\t\t\t\t\"Reply-To: {$model->email}\\r\\n\".\n\t\t\t\t\t\"MIME-Version: 1.0\\r\\n\".\n\t\t\t\t\t\"Content-Type: text/plain; charset=UTF-8\";\n\n\t\t\t\tmail(Yii::app()->params['adminEmail'],$subject,$model->body,$headers);\n\t\t\t\tYii::app()->user->setFlash('contact','Thank you for contacting us. We will respond to you as soon as possible.');\n\t\t\t\t$this->refresh();\n\t\t\t}\n\t\t}\n\t\t$this->render('contact',array('model'=>$model));\n\t}", "public function actionContact()\n\t{\n\t\t$model=new ContactForm;\n\t\tif(isset($_POST['ContactForm']))\n\t\t{\n\t\t\t$model->attributes=$_POST['ContactForm'];\n\t\t\tif($model->validate())\n\t\t\t{\n\t\t\t\t$name='=?UTF-8?B?'.base64_encode($model->name).'?=';\n\t\t\t\t$subject='=?UTF-8?B?'.base64_encode($model->subject).'?=';\n\t\t\t\t$headers=\"From: $name <{$model->email}>\\r\\n\".\n\t\t\t\t\t\"Reply-To: {$model->email}\\r\\n\".\n\t\t\t\t\t\"MIME-Version: 1.0\\r\\n\".\n\t\t\t\t\t\"Content-Type: text/plain; charset=UTF-8\";\n\n\t\t\t\tmail(Yii::app()->params['adminEmail'],$subject,$model->body,$headers);\n\t\t\t\tYii::app()->user->setFlash('contact','Thank you for contacting us. We will respond to you as soon as possible.');\n\t\t\t\t$this->refresh();\n\t\t\t}\n\t\t}\n\t\t$this->render('contact',array('model'=>$model));\n\t}" ]
[ "0.8412494", "0.8370987", "0.8200814", "0.8111636", "0.8053296", "0.7906388", "0.7901339", "0.7828232", "0.78042114", "0.77574754", "0.76997954", "0.76898336", "0.766476", "0.76419854", "0.7610911", "0.76096064", "0.75792843", "0.7528393", "0.7522556", "0.7511975", "0.7504947", "0.7499463", "0.74942213", "0.74498445", "0.744871", "0.74255884", "0.7418991", "0.74155873", "0.74062425", "0.74015355", "0.7386666", "0.7384632", "0.7366482", "0.7366071", "0.7362124", "0.7362124", "0.73573625", "0.73553115", "0.73371184", "0.73117995", "0.729522", "0.72725016", "0.72714007", "0.72705597", "0.7254417", "0.7242912", "0.7236181", "0.72290707", "0.7227337", "0.7224267", "0.719413", "0.7189974", "0.7189974", "0.7189974", "0.7185182", "0.71812224", "0.7170901", "0.7170901", "0.7151078", "0.71473175", "0.71377814", "0.7129624", "0.71049917", "0.7104401", "0.7091024", "0.7084635", "0.707847", "0.70740205", "0.707094", "0.70671374", "0.70561874", "0.7053142", "0.7047265", "0.7036942", "0.70292825", "0.7002921", "0.69836414", "0.69676286", "0.69676286", "0.69676286", "0.69676286", "0.69676286", "0.69676286", "0.69676286", "0.69676286", "0.69676286", "0.69676286", "0.6964677", "0.69626635", "0.696146", "0.6961059", "0.6961059", "0.6961059", "0.6961059", "0.6961059", "0.6961059", "0.6961059", "0.6961059", "0.69610524", "0.69610524", "0.69610524" ]
0.0
-1
Displays the login page
public function actionFindIdentificacion2() { $data = Usuario::model()->find("tipo_documento =".$_POST['tipo_documento']." AND cedula = '".$_POST['identificacion']."'"); if(count($data)!= 0){ $id_usuario = $data->id_usuario_sistema; ?> <div class="row"> <div class="col-md-4"> <center> <?php $host= $_SERVER["HTTP_HOST"]; $url= $_SERVER["REQUEST_URI"]; $urlParte = "http://".$host."/images/usuario/".$data->img; ?> <img style="border-style: solid ; border-width: 2px; height: 220px; width: 220px;" src="<?php echo $urlParte;?>" alt="..." class="img-responsive img-circle img-thumbnail"> </center> </div> <div class="col-md-8"> <table class="table table-hover"> <tr> <td> <center> <strong> <?php echo __('Name:'); ?> </strong> </center> </td> <td> <?php echo $data->primer_nombre." ".$data->primer_apellido; ?> </td> </tr> <tr> <td> <center> <strong> <?php echo __('Email:'); ?> </strong> </center> </td> <td> <?php echo $data->correo; ?> </td> </tr> <tr> <td> <center> <strong> <?php echo __('Identification:'); ?> </strong> </center> </td> <td> <?php echo $data->correo; ?> </td> </tr> <tr> <td> <center> <strong> <?php echo __('Number of Identification:'); ?> </strong> </center> </td> <td> <?php echo $data->cedula; ?> </td> </tr> <tr> <td> <center> <strong> <?php echo __('Birthdate:'); ?> </strong> </center> </td> <td> <?php echo $data->anio."/".$data->mes."/".$data->dia; ?> </td> </tr> </table> </div> </div> <hr> <h3><?php echo __('Competitor pass'); ?></h3> <div class="row"> <div class="col-sm-12 col-md-12"> <div class="panel panel-default"> <div class="panel-heading"><?php echo __('List of Registrations Registered by the user'); ?></div> <div class="panel-body"> <div class="table-responsive"> <table style=" width: 100%;" id="example" class="table table-hover" cellspacing="0"> <thead> <tr class="warning" > <td><center><strong>ID Pass</strong></center></td> <td><center><strong><?php echo __('Pass'); ?></strong></center></td> <td><center><strong><?php echo __('Status'); ?></strong></center></td> </tr> </thead> <tbody> <?php $pagos = Pago::model()->findAll('id_tipo_pago = 1 AND id_usuario ='.$id_usuario); foreach ($pagos as $pago){ ?> <tr> <td> <center><?php echo $pago->id_pago; ?></center> </td> <td> <center><?php echo __('Pass Competitor'); ?></center> </td> <td> <center> <?php if($pago->id_pago_estatus == 1){ echo __('For paying'); } if($pago->id_pago_estatus == 2){ echo __('Confirmed'); } if($pago->id_pago_estatus == 3){ echo __('Rejected'); } if($pago->id_pago_estatus == 4){ echo __('On hold'); } ?> </center> </td> </tr> <?php } ?> </tbody> </table> </div> </div> </div> </div> </div> <hr> <h3><?php echo __('List of registrations'); ?></h3> <br> <!--=============================================================================--> <!-- 1 <!--=============================================================================--> <div class="row"> <div class="col-sm-12 col-md-12"> <div class="panel panel-default"> <div class="panel-heading"><?php echo __('List of Registrations Registered by the user'); ?></div> <div class="panel-body"> <div class="table-responsive"> <table style=" width: 100%;" id="example" class="table table-hover" cellspacing="0"> <thead> <tr class="warning" > <td><center><strong>Id registration</strong></center></td> <td><center><strong><?php echo __('Competition'); ?></strong></center></td> <td><center><strong><?php echo __('Category'); ?></strong></center></td> <td><center><strong><?php echo __('Kind'); ?></strong></center></td> <td><center><strong><?php echo __('Group'); ?></strong></center></td> <td><center><strong><?php echo __('Participants'); ?></strong></center></td> <td><center><strong><?php echo __('Audio'); ?></strong></center></td> <td><center><strong><?php echo __('Validations'); ?></strong></center></td> <td><center><strong><?php echo __('Round'); ?></strong></center></td> <td><center><strong><?php echo __('Date of the round'); ?></strong></center></td> <td><center><strong><?php echo __('Competition time'); ?></strong></center></td> </tr> </thead> <tbody> <?php $inscripciones = Inscripcion::model()->findAll('id_usuario ='.$id_usuario); function validacion($tipo){ if($tipo == 1){ echo "Si"; } if($tipo == 0){ echo "No"; } } foreach ($inscripciones as $inscripcion){ ?> <tr> <td><center><?php echo $inscripcion->id_inscripcion; ?></center></td> <td><center><?php echo $inscripcion->idCopetencia->competencia; ?></center></td> <td><center><?php echo $inscripcion->idCategoria->categoria; ?></center></td> <td> <center> <?php if($inscripcion->id_competencia_tipo == 1){ echo "Solista"; $grupo = "-"; } if($inscripcion->id_competencia_tipo == 2){ echo "Pareja"; $grupo = "-"; } if($inscripcion->id_competencia_tipo == 3){ echo "Grupo"; $grupo = $inscripcion->grupo; } ?> </center> </td> <td><center><?php echo $grupo ?></center></td> <td> <!--<center>--> <?php $participantes = Participante::model()->findAll('id_inscripcion ='.$inscripcion->id_inscripcion); if(count($participantes) != 0){ ?><ul><?php foreach ($participantes as $participante){ ?><li><?php echo $participante->idUsuario->primer_nombre." ".$participante->idUsuario->primer_apellido; ?></li><?php } ?></ul><?php }else{ echo "<center>0 participantes</center>"; } ?> <!--</center>--> </td> <td><center><?php echo $inscripcion->audio; ?></center></td> <td> <!--<center>--> <ul> <li> Acreditado: <?php echo validacion($inscripcion->acreditado); ?> </li> <li> Validado: <?php echo validacion($inscripcion->validado); ?> </li> <li> Musica validada: <?php echo validacion($inscripcion->musica_validada); ?> </li> <li> Orde de Participación: <?php echo $inscripcion->orden; ?> </li> </ul> <!--</center>--> </td> <td><center> <?php if(!$inscripcion->ronda){ echo __('Round not assigned'); }else{ if($inscripcion->ronda == 1){ echo __('Final'); } if($inscripcion->ronda == 2){ echo __('Semifinal'); } if($inscripcion->ronda == 3){ echo __('Play off'); } } ?> </center></td> <td><center> <?php if(!$inscripcion->ronda){ echo __('Round not assigned'); }else{ echo $inscripcion->idRonda->fecha_inicio." / ".$inscripcion->idRonda->fecha_final; //echo $inscripcion->idRonda->fecha_inicio." / ".$inscripcion->idRonda->fecho_inicio; } ?> </center></td><td><center> <?php if(!$inscripcion->ronda){ echo __('Round not assigned'); }else{ $categoria = CompetenciaCategoria::model()->find('id_copetencia = 47 AND id_categoria ='.$inscripcion->id_categoria); echo $categoria->hora.":".$categoria->minuto; } ?> </center></td> </tr> <?php } ?> </tbody> </table> </div> </div> </div> </div> </div> <div class="row"> <div class="col-sm-12 col-md-12"> <div class="panel panel-danger"> <div class="panel-heading"><?php echo __('List of Registrations where you participate'); ?></div> <div class="panel-body"> <div class="table-responsive"> <table style=" width: 100%;" id="example2" class="table table-hover" cellspacing="0"> <thead> <tr class="warning" > <td><center><strong><?php echo __('Participant ID'); ?></strong></center></td> <td><center><strong><?php echo __('ID Registration'); ?></strong></center></td> <td><center><strong><?php echo __('Competition'); ?></strong></center></td> <td><center><strong><?php echo __('Category'); ?></strong></center></td> <td><center><strong><?php echo __('Kind'); ?></strong></center></td> <td><center><strong><?php echo __('Group'); ?></strong></center></td> <td><center><strong><?php echo __('Competitor'); ?></strong></center></td> <td><center><strong><?php echo __('Round'); ?></strong></center></td> <td><center><strong><?php echo __('Date of the round'); ?></strong></center></td> <td><center><strong><?php echo __('Competition time'); ?></strong></center></td> </tr> </thead> <tbody> <?php $participantes = Participante::model()->findAll('id_usuario ='.$id_usuario); foreach ($participantes as $participante){ ?> <tr> <td><center><?php echo $participante->id_participante; ?></center></td> <td><center><?php echo $participante->id_inscripcion; ?></center></td> <td><center><?php echo $participante->idCompetencia->competencia; ?></center></td> <td><center><?php echo $participante->idCategoria->categoria; ?></center></td> <td> <center> <?php if($participante->idInscripcion->id_competencia_tipo == 1){ echo "Solista"; $grupo = "-"; } if($participante->idInscripcion->id_competencia_tipo == 2){ echo "Pareja"; $grupo = "-"; } if($participante->idInscripcion->id_competencia_tipo == 3){ echo "Grupo"; $grupo = $participante->idInscripcion->grupo; } ?> </center> </td> <td><center><?php echo $grupo; ?></center></td> <td><center><?php echo $participante->idUsuario->primer_nombre." ".$participante->idUsuario->primer_apellido; ?></center></td> <td><center> <?php if(!$inscripcion->ronda){ echo __('Round not assigned'); }else{ if($inscripcion->ronda == 1){ echo __('Final'); } if($inscripcion->ronda == 2){ echo __('Semifinal'); } if($inscripcion->ronda == 3){ echo __('Play off'); } } ?> </center></td> <td><center> <?php if(!$inscripcion->ronda){ echo __('Round not assigned'); }else{ echo $inscripcion->idRonda->fecha_inicio." / ".$inscripcion->idRonda->fecha_final; //echo $inscripcion->idRonda->fecha_inicio." / ".$inscripcion->idRonda->fecho_inicio; } ?> </center></td><td><center> <?php if(!$inscripcion->ronda){ echo __('Round not assigned'); }else{ $categoria = CompetenciaCategoria::model()->find('id_copetencia = 47 AND id_categoria ='.$inscripcion->id_categoria); echo $categoria->hora.":".$categoria->minuto; } ?> </center></td> </tr> <?php } ?> </tbody> </table> </div> </div> </div> </div> </div> <?php }else{ ?> <div class="alert alert-danger"> <b><?php echo __('This user does not exist in our data base.'); ?></b> </div> <?php } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function loginAction()\r\n\t{\r\n\t\t$this->setSubTitle($this->loginSubTitle);\r\n\t\t\r\n\t\t$this->view->form = new $this->loginFormClassName();\r\n\t\t\r\n\t\t$this->checkAuth();\r\n\t}", "public function login()\n {\n $this->set('title', 'Login');\n $this->render('login');\n }", "public function login()\n {\n $this->renderView('login');\n }", "public function showLogin(){\n $this->data['pagetitle'] = \"Login\";\n $this->data['page'] = 'login';\n // $this->data['pagecontent'] = 'login';\n $this->data['pagebody'] = 'login';\n \n $this->render();\n }", "public function logInPage() {\n $view = new View('login');\n $view->generate();\n }", "public function getShowLoginPage()\n {\n echo $this->blade->render(\"login\", [\n 'signer' => $this->signer,\n ]);\n }", "public function login()\n\t{\n\n\t\t$this->load->view('portal/templates/header');\n\t\t$this->load->view('portal/login');\n\t\t$this->load->view('portal/templates/footer');\n\t}", "private function formLogin(){\n\t\tView::show(\"user/login\");\n\t}", "public function login()\n\t{\n\t\t$this->load->view('layout/layout_open');\n\t\t$this->load->view('login');\n\t\t$this->load->view('layout/layout_close');\n\t}", "public function showLoginForm()\n {\n\n /** set session refferrer */\n $this->setPreviousUrl();\n\n /** @var String $title */\n $this->title = __(\"admin.pages_login_title\");\n /** @var String $content */\n $this->template = 'Admin::Auth.login';\n\n /**render output*/\n return $this->renderOutput();\n }", "function login() {\n $this->checkAccess('user',true,true);\n\n\n $template = new Template;\n echo $template->render('header.html');\n echo $template->render('user/login.html');\n echo $template->render('footer.html');\n\n //clear error status\n $this->f3->set('SESSION.haserror', '');\n }", "public function login() {\n $login_err = \"<p class='flash_err'>\" . $this->_model->getFlash('login_err') . \"</p>\";\n $create_err = \"<p class='flash_err'>\" . $this->_model->getFlash('create_err') . \"</p>\";\n $create_success = \"<p class='flash_success'>\" . $this->_model->getFlash('create_success') . \"</p>\";\n $this->render('General.Login', compact('login_err', 'create_err', 'create_success'));\n }", "public function get_login()\n\t{\n\t\t$this->template->body = View::forge('user/login');\n\t}", "public function index() {\r\n\t\t$this->show_login_page();\r\n\t}", "function Login()\n {\n $this->view->ShowLogin();\n }", "public function login()\n\t{\n\t\tredirect($this->config->item('bizz_url_ui'));\n\t\t// show_404();\n\t\t// ////import helpers and models\n\n\t\t// ////get data from database\n\n\t\t// //set page info\n\t\t// $pageInfo['pageName'] = strtolower(__FUNCTION__);\n\n\t\t// ////sort\n\t\t\n\t\t// //render\n\t\t// $this->_render($pageInfo);\n\t}", "public function login() {\n $page = 'login';\n\n require('./View/default.php');\n }", "public function loginAction()\n {\n // get the view vars\n $errors = $this->view->errors;\n $site = $this->view->site;\n $loginUser = $this->view->loginUser;\n\n if ( $loginUser ) {\n $homeUrl = $site->getUrl( 'home' );\n return $this->_redirect( $homeUrl );\n }\n\n // set the input params\n $this->processInput( null, null, $errors );\n\n // check if there were any errors\n if ( $errors->hasErrors() ) {\n return $this->renderPage( 'errors' );\n }\n\n return $this->renderPage( 'authLogin' );\n }", "public function login(){\n \t\t//TODO redirect if user already logged in\n \t\t//TODO Seut up a form\n \t\t//TODO Try to log in\n \t\t//TODO Redirect\n \t\t//TODO Error message\n \t\t//TODO Set subview and load layout\n\n \t}", "public function login()\n\t{\n\t\tif (isLogin()) {\n\t\t\tredirect('/backoffice');\n\t\t} else {\n\t\t\t$this->display(\n\t\t\t\t'backoffice/login.html.twig'\n\t\t\t);\n\t\t}\n\n\t}", "public function login()\n\t{\n\t\t// Method should not be directly accessible\n\t\tif( $this->uri->uri_string() == 'auth/login')\n\t\t\tshow_404();\n\n\t\tif($this->require_min_level(6) == 1)\n\t\t\tredirect('');\n\n\t\tif(strtolower( $_SERVER['REQUEST_METHOD'] ) == 'post')\n\t\t\t$this->require_min_level(1);\n\n\t\t$this->setup_login_form();\n\n\t\t$html = $this->load->view('auth/page_header', '', TRUE);\n\t\t$html .= $this->load->view('auth/login_form', '', TRUE);\n\t\t$html .= $this->load->view('auth/page_footer', '', TRUE);\n\n\t\techo $html;\n\t}", "public function actionLogin()\n\t{\n\t\tUtilities::updateCallbackURL();\n\t\t$this->render('login');\n\t}", "public function login(){\n \n $this->data[\"title_tag\"]=\"Lobster | Accounts | Login\";\n \n $this->view(\"accounts/login\",$this->data);\n }", "function login() \n\t{\n // Specify the navigation column's path so we can include it based\n // on the action being rendered\n \n \n // check for cookies and if set validate and redirect to corresponding page\n\t\t$this->viewData['navigationPath'] = $this->getNavigationPath('users');\n\t\t$this->renderWithTemplate('users/login', 'MemberPageBaseTemplate');\n\t\t\n }", "public function login()\n\t{\n\t\t$this->load->view('login_main');\n\n\t}", "public function login()\n {\n return $this->render('security/login.html.twig');\n }", "public function showLogin() {\n if (isAuth()) {\n Flash::set(\"You're already logged in!\", 'info');\n $this->redirect($this->url('LoginHome'));\n }\n $active = 'login';\n $this\n ->setTitle('Login')\n ->add('active', $active)\n ->show('login/login');\n }", "public function login()\n {\n\t\t\n $data[\"base_dir\"]=__DIR__;\n $data[\"loc\"]=\"Login\";\n\t\t\n return $this->twig->render(\"pages/login.html\", $data);\n }", "public function loginForm()\n {\n\n if (isset($_SESSION['login_ss'])) {\n header('location: http://localhost/nhi_mvc/index/students');\n exit();\n }\n $this->view->render(\"login/login\");\n }", "public function login() {\n if ($this->request->is('post')) {\n if ($this->Auth->login()) {\n return $this->redirect($this->Auth->redirectUrl());\n }\n $this->Flash->error(__('Invalid username or password, try again'));\n }\n\n $this->render('index');\n }", "public function index()\r\n\t{\r\n\t\t$this->viewloader(\"auth/loginform\");\r\n\t\t\r\n\t}", "public function index()\n\t{\n\t\tif(is_user_active('', FALSE))\n\t\t{\n\t\t\tredirect('dashboard');\n\t\t}\n\t\t\t\t\n\t\t$data['base_url'] = base_url();\n\t\t$data['view_file'] = \"login\";\n\t\t$this->template->load_admin_login_template($data);\n\t}", "public function login()\n\t{\n\t\t$this->layout->content = View::make('login.login');\n\t}", "public function loginAction()\n {\n // Instantiate the form that asks the user to log in.\n $form = new Application_Form_LoginForm();\n\n // Initialize the error message to be empty.\n $this->view->formResponse = '';\n\n // For security purposes, only proceed if this is a POST request.\n if ($this->getRequest()->isPost())\n {\n // Process the filled-out form that has been posted:\n // if the input values are valid, attempt to authenticate.\n $formData = $this->getRequest()->getPost();\n if ($form->isValid($formData))\n {\n if ( $this->_authenticate($formData) )\n {\n $this->_helper->redirector('index', 'index');\n }\n }\n }\n\n // Render the view.\n $this->view->form = $form;\n }", "public function loginAction(){\n\t\t$this->loadView(\"administrator/login\");\n\t}", "public function login_page()\n\t{\n\t\t$this->redirect( EagleAdminRoute::get_login_route() );\n\t}", "public function action()\n\t{\n\t\t//die('SwiftLogin');\n\t\tSession::start();\n\t\t\n\t\t$this->sidebar = new View('sidebar');\n\t\t$this->content = new View('index', 'swiftlogin');\n\t}", "public function login()\n\t{\n // params\n\t\t// load data\n\t\t$this->load->view('common/head');\n\t\t$this->load->view('user/login');\n\t\t$this->load->view('common/footer');\n\n\t}", "public function showLogin()\n\t{\n\t\t// show the form\n\t \treturn View::make('login');\n\t}", "public function login()\n\t{\n\t\t$this->load->helper('form');\n\t\t$this->data['page']['pageTitle']=\"Log in member\";\n\t\t$this->data['header'] = $this->load->view('templates/header', $this->data, true);\n\t\t$this->data['footer'] = $this->load->view('templates/footer', '', true);\n\t\t$this->load->view('templates/login', $this->data);\n\t}", "public function login()\n\t{\n\t\t$this->load->view(\"default/painel/login\");\n\t}", "public static function index() {\n if (Auth::hasUser()) {\n redirect('/');\n } else {\n $login_page = new View('forms/signin.php');\n $login_page->render();\n }\n }", "public function page_login()\n {\n\n /**\n * Carregando o view\n * Loading view\n */\n $this->load->view('zata/user/login-view.php');\n\n }", "public function login() {\n $this->load->view('header');\n $this->load->view('user_login');\n $this->load->view('footer');\n }", "public function getLogin() {\n // redirect if user has been logged in\n $view = new View('layout');\n $view->inject('navbar', 'navbar');\n $view->inject('content', 'login');\n $view->set('pageTitle', 'Login');\n\n $view->addJavascript('/assets/js/js-cookie.js');\n $view->addJavascript('/assets/js/login.js');\n $view->addJavascript('/assets/js/sha.js');\n\n // csrf\n $manager = SessionManager::getManager();\n $manager->generateCsrfToken();\n\n echo $view->output();\n }", "function printLogin() {\r\n global $_CONF;\r\n\r\n if ($this->templateLogin == \"\") { /* No se ha configurado que plantilla de inicio de sesion utilizar */\r\n $this->templateLogin = \"templates/login.html\";\r\n if (isset($_CONF['skin']) && $_CONF['skin'] != \"\"){ $this->templateLogin = \"skins/\" . $_CONF['skin'] . \"/login.html\"; }\r\n }\r\n\r\n $template = file_get_contents($this->templateLogin);\r\n $html = str_replace(\"@@TITLE@@\", $this->title, $template);\r\n echo $html;\r\n exit();\r\n }", "public function login()\n\t{\n\t\t$this->load->view('login');\n\t}", "public function login()\n\t{\n\t\t$this->view('/');\n\t}", "public function login() {\n //TODO\n include 'views/login.php';\n }", "public function login()\n\t{\n\t\treturn view(\"auth/login\", [\n\t\t\t'title' => \"Login\"\n\t\t]);\n\t}", "public function index()\n {\n $page_title = \"Login | Helios\";\n $page_css[] = \"lockscreen.min.css\";\n $no_main_header = TRUE;\n\n return view('auth.login',\n compact('page_title', 'page_css', 'no_main_header'));\n }", "public function showForm()\n\t{\n echo view($this->config->views['login']);\n\t}", "public function index(){\n \t$this->head = $this->fetch('head'); \n \t$this->foot = $this->fetch('foot');\n \t\n \t\n \tif(isset($_SESSION['user_id']))\n \t{\n \t\t\n \t}\n \telse\t\n \t{\n \t\t$this->whetherLogin = \"<div id=\\\"wb_login_btn\\\"></div>\";\n \t}\n \t\n \t$this->display(); \n \t\n }", "function renderLoginForm() {\n\t\t$tpl = DevblocksPlatform::getTemplateService();\n\t\t$tpl->cache_lifetime = \"0\";\n\t\t\n\t\t// add translations for calls from classes that aren't Page Extensions (mobile plugin, specifically)\n\t\t$translate = DevblocksPlatform::getTranslationService();\n\t\t$tpl->assign('translate', $translate);\n\t\t\n\t\t@$redir_path = explode('/',urldecode(DevblocksPlatform::importGPC($_REQUEST[\"url\"],\"string\",\"\")));\n\t\t$tpl->assign('original_path', (count($redir_path)==0) ? 'login' : implode(',',$redir_path));\n\t\t\n\t\t$tpl->display('file:' . dirname(dirname(__FILE__)) . '/templates/login/login_form_default.tpl');\n\t}", "function index()\n\t{\n\t\t$this->view->render('login/login',0);\n\t}", "public function login() {\r\n\t\t$this->load->view('Login');\r\n\t}", "public function showLoginForm()\n\t{\n\t\treturn view('auth.login');\n\t}", "public function showloginpage()\n\t\t{\n\t\t\tif(Auth::check()) {\n\t\t\t\tSession::flash('errorMessage', 'You are already logged in!');\n\t\t\t\treturn Redirect::action('UsersController@index');\n\t\t\t} else {\n\t\t\t\treturn View::make('login');\n\t\t\t}\n\t\t}", "public function _showForm()\n\t{\n\t\t$this->registry->output->setTitle( \"Log In\" );\n\t\t$this->registry->output->setNextAction( 'index&do=login' );\n\t\t$this->registry->output->addContent( $this->registry->legacy->fetchLogInForm() );\n\t\t$this->registry->output->sendOutput();\n\t\texit();\n\t}", "protected function display_login() {\r\n // Get language vars\r\n global $MESSAGE;\r\n global $MENU;\r\n global $TEXT;\r\n\r\n $Trans = $GLOBALS['oTrans'];\r\n $ThemeName = (defined('DEFAULT_THEME')?DEFAULT_THEME:'DefaultTheme');\r\n $Trans->enableAddon('templates\\\\'.$ThemeName);\r\n $aLang = $Trans->getLangArray();\r\n // If attemps more than allowed, warn the user\r\n if($this->get_session('ATTEMPS') > $this->max_attemps) {\r\n $this->warn();\r\n }\r\n // Show the login form\r\n if($this->frontend != true) {\r\n// require_once(WB_PATH.'/include/phplib/template.inc');\r\n $aWebsiteTitle['value'] = WEBSITE_TITLE;\r\n $sql = 'SELECT `value` FROM `'.TABLE_PREFIX.'settings` '\r\n . 'WHERE `name`=\\'website_title\\'';\r\n if ($get_title = $this->oDb->query($sql)){\r\n $aWebsiteTitle= $get_title->fetchRow( MYSQLI_ASSOC );\r\n }\r\n // Setup template object, parse vars to it, then parse it\r\n $template = new Template(dirname($this->correct_theme_source($this->template_file)));\r\n $template->set_file('page', $this->template_file);\r\n $template->set_block('page', 'mainBlock', 'main');\r\n $template->set_var('DISPLAY_REMEMBER_ME', ($this->remember_me_option ? '' : 'display: none;'));\r\n\r\n $template->set_var(\r\n array(\r\n 'ACTION_URL' => $this->login_url,\r\n 'ATTEMPS' => $this->get_session('ATTEMPS'),\r\n 'USERNAME' => $this->username,\r\n 'USERNAME_FIELDNAME' => $this->username_fieldname,\r\n 'PASSWORD_FIELDNAME' => $this->password_fieldname,\r\n 'MESSAGE' => $this->message,\r\n 'INTERFACE_DIR_URL' => ADMIN_URL.'/interface',\r\n 'MAX_USERNAME_LEN' => $this->max_username_len,\r\n 'MAX_PASSWORD_LEN' => $this->max_password_len,\r\n 'ADMIN_URL' => ADMIN_URL,\r\n 'WB_URL' => WB_URL,\r\n 'URL' => $this->redirect_url,\r\n 'THEME_URL' => THEME_URL,\r\n 'VERSION' => VERSION,\r\n 'REVISION' => REVISION,\r\n 'LANGUAGE' => strtolower(LANGUAGE),\r\n 'FORGOTTEN_DETAILS_APP' => $this->forgotten_details_app,\r\n 'WEBSITE_TITLE' => ($aWebsiteTitle['value']),\r\n 'TEXT_ADMINISTRATION' => $TEXT['ADMINISTRATION'],\r\n// 'TEXT_FORGOTTEN_DETAILS' => $Trans->TEXT_FORGOTTEN_DETAILS,\r\n 'TEXT_USERNAME' => $TEXT['USERNAME'],\r\n 'TEXT_PASSWORD' => $TEXT['PASSWORD'],\r\n 'TEXT_REMEMBER_ME' => $TEXT['REMEMBER_ME'],\r\n 'TEXT_LOGIN' => $TEXT['LOGIN'],\r\n 'TEXT_SAVE' => $TEXT['SAVE'],\r\n 'TEXT_RESET' => $TEXT['RESET'],\r\n 'TEXT_HOME' => $TEXT['HOME'],\r\n 'PAGES_DIRECTORY' => PAGES_DIRECTORY,\r\n 'SECTION_LOGIN' => $MENU['LOGIN'],\r\n 'LOGIN_DISPLAY_HIDDEN' => !$this->is_authenticated() ? 'hidden' : '',\r\n 'LOGIN_DISPLAY_NONE' => !$this->is_authenticated() ? 'none' : '',\r\n 'LOGIN_LINK' => $_SERVER['SCRIPT_NAME'],\r\n 'LOGIN_ICON' => 'login',\r\n 'START_ICON' => 'blank',\r\n 'URL_HELP' => 'http://wiki.websitebaker.org/',\r\n )\r\n );\r\n $template->set_var($aLang);\r\n $template->set_var('CHARSET', (defined('DEFAULT_CHARSET') ? DEFAULT_CHARSET : 'utf-8'));\r\n $template->parse('main', 'mainBlock', false);\r\n $template->pparse('output', 'page');\r\n }\r\n }", "public function showLogin()\n\t{\n if (\\Auth::check())\n {\n // Redirect to homepage\n return \\Redirect::route('dashboard');\n }\n\n // Show the login page\n\t\treturn \\View::make('front.login');\n\t}", "public function showLogin()\n\t{\n\t\treturn View::make('login');\n\t}", "public function showLoginPage()\n {\n return view('auth.login');\n }", "public function login() {\n $messages = $this->messages;\n require_once $this->root_path_views.\"login.php\";\n }", "public function actionLogin()\n {\n $this->view->registerCssFile('/css/ShortPage.css');\n if (!Yii::$app->user->isGuest) {\n // return $this->goHome();\n return Yii::$app->getResponse()->redirect('../price');\n }\n\n $model = new LoginForm();\n if ($model->load(Yii::$app->request->post()) && $model->login()) {\n return $this->goBack();\n } else {\n return $this->render('login', [\n 'model' => $model,\n ]);\n }\n }", "function login() {\n $this->layout = \"no_header\";\n $this->Auth->loginRedirect = array('controller' => 'pages', 'action' => 'display', \"home\");\n }", "public function loginAction() : object\n {\n $title = \"Logga in\";\n\n // Deal with incoming variables\n $user = getPost('user');\n $pass = getPost('pass');\n $pass = MD5($pass);\n\n if (hasKeyPost(\"login\")) {\n $sql = loginCheck();\n $res = $this->app->db->executeFetchAll($sql, [$user, $pass]);\n if ($res != null) {\n $this->app->session->set('user', $user);\n return $this->app->response->redirect(\"content\");\n }\n }\n\n // Add and render page to login\n $this->app->page->add(\"content/login\");\n return $this->app->page->render([\"title\" => $title,]);\n }", "public function LoginPage()\r\n {\r\n echo view('login');\r\n }", "public function index(){\n $data['title'] = 'Login page';\n\n // Condition checking if the user exists.\n if (!$userExists)\n {\n //The user doesn't exist so change your page accordigly.\n $data['show'] = true;\n\n }\n else\n {\n //The user does exist so change your page accordigly.\n $data['show'] = false;\n \n }\n \n //load data in to view\n $data['head'] = 'login';\n $this->load->view('component', $data);\n \n }", "public function loginAction(){\n\t\t\n\t\tZend_Loader::loadClass(\"UserLogin\", array(FORMS_PATH));\n\t\t$error = $this->getRequest()->getQuery(\"error\");\n\t\t$session = new Zend_Session_Namespace(\"capitalp\");\t\n\t\tif ($session->manager_id){\n\t\t\theader(\"Location:/portfolio/\");\n\t\t}\n\t\t\n\t\t$form = new UserLogin();\n\t\t$this->view->form = $form;\n\t\t\n\t\tif ($error){\n\t\t\tif ($error==1){\n\t\t\t\t$this->view->error = \"Invalid Request. Please try again\";\n\t\t\t}else if ($error==2){\n\t\t\t\t$this->view->error = \"Invalid Username/Password. Please try again\";\n\t\t\t}\n\t\t}else{\n\t\t\t$this->view->error = \"\";\n\t\t}\n\t\t$this->view->headTitle(\"Login\");\n\t\t$this->view->headScript()->prependFile( \"http://ajax.aspnetcdn.com/ajax/jquery.validate/1.11.1/jquery.validate.js\", $type = 'text/javascript' );\t\t\n\t\t$this->view->headScript()->prependFile( \"/public/js/users/login.js\", $type = 'text/javascript' );\n\t\t$this->_helper->layout->setLayout(\"html5_plain\");\n\t}", "function renderLoginForm() {\n\t\t$tpl = DevblocksPlatform::getTemplateService();\n\t\t$tpl->cache_lifetime = \"0\";\n\t\t\n\t\t// add translations for calls from classes that aren't Page Extensions (mobile plugin, specifically)\n\t\t$translate = DevblocksPlatform::getTranslationService();\n\t\t$tpl->assign('translate', $translate);\n\t\t\n\t\t@$redir_path = explode('/',urldecode(DevblocksPlatform::importGPC($_REQUEST[\"url\"],\"string\",\"\")));\n\t\t$tpl->assign('original_path', (count($redir_path)==0) ? 'login' : implode(',',$redir_path));\n\n\t\t// TODO: pull this from a config area\n\t\t$server = 'localhost';\n\t\t$port = '10389';\n\t\t$default_dn = 'cn=William Bush,ou=people,o=sevenSeas';\n\t\t$tpl->assign('server', $server);\n\t\t$tpl->assign('port', $port);\n\t\t$tpl->assign('default_dn', $default_dn);\n\t\t\n\t\t// display login form\n\t\t$tpl->display('file:' . dirname(dirname(__FILE__)) . '/templates/login/login_form_ldap.tpl');\n\t}", "public function loginAction() {\n if ($this->_getSession()->isLoggedIn()) {\n $this->_redirect('*/*/');\n return;\n }\n $this->getResponse()->setHeader('Login-Required', 'true');\n $this->loadLayout();\n $this->_initLayoutMessages('customer/session');\n $this->_initLayoutMessages('catalog/session');\n $this->renderLayout();\n }", "public function getLogin() {\n $basic_data['title'] = 'Sign In';\n $basic_data['body_id'] = 'login';\n return ViewController::displayPage($basic_data,'auth.login',[]);\n }", "public function index()\n\t{\n\t\t$requestUrl = $this->input->get(\"redirect\");\n\t\t\n\t\tif ($this->login_util->isUserLoggedIn()){\n\t\t\t// session exists\n\t\t\tredirect($requestUrl, 'refresh');\n\t\t}\n\t\t\n\t\t$this->display_login($requestUrl);\n\t}", "public function index()\n\t{\n\t\t// echo \"tes\";\n\t\t$data = array(\n\t\t\t\"TITLE_TAB\" => \"USER LOGIN\",\n\t\t\t\"TITLE\" => \"SIGN IN\",\n\t\t);\n\n\t\t$this->load->view(LAYOUT_HEADER_SIGN, $data, FALSE);\n\t\t$this->load->view(\"login/index\", $data, FALSE);\n\t\t$this->load->view(LAYOUT_FOOTER_SIGN, $data, FALSE);\n\t}", "public function login_view()\n {\n $this->load->view(\"templates/header\");\n $this->load->view(\"pages/login.php\");\n $this->load->view(\"templates/footer\");\n }", "public function login($data){\r\n echo $this->view->render(\"login.php\",[\"title\"=> \"Login | \". SITE]);\r\n }", "function login()\n {\t \t\n \t$data['fal'] = $this->fal_front->login();\n \t$this->load->view($this->_container, $data); \n }", "public function PageLogin(){\n\t \tif($this->logged_in)\n\t\t\tredirect('Dashboard');\n\t\t$data = array(\n\t\t\t'aplikasi'\t\t=> $this->app_name,\n\t\t\t'title_page' \t=> 'Page Login',\n\t\t);\n\t\t$this->load->view('gate/V_login', $data);\n\t}", "public function index() {\n // render page\n return \\View::make('control.login.index')\n ->with('class', 'login-page')\n ->with('title', $this->_title . ' | Login');\n \n }", "public function index()\n {\n if (session()->get('logged_in')) {\n \techo render(HOME_PAGE, ['title' => 'Accueil']);\n }\n // Otherwise, the login page is displayed\n else $this->login();\n }", "public function actionLogin()\n {\n $this->layout = '/login';\n $manager = new Manager(['userId' => UsniAdaptor::app()->user->getId()]);\n $userFormDTO = new UserFormDTO();\n $model = new LoginForm();\n $postData = UsniAdaptor::app()->request->post();\n $userFormDTO->setPostData($postData);\n $userFormDTO->setModel($model);\n if (UsniAdaptor::app()->user->isGuest)\n {\n $manager->processLogin($userFormDTO);\n if($userFormDTO->getIsTransactionSuccess())\n {\n return $this->goBack();\n }\n }\n else\n {\n return $this->redirect($this->resolveDefaultAfterLoginUrl());\n }\n return $this->render($this->loginView,['userFormDTO' => $userFormDTO]);\n }", "public function userLogin(){\n\t\t\t$this->load->view('client-login');\n\t\t}", "function Login()\n{\n\tglobal $txt, $context;\n\n\t// You're not a guest, why are you here?\n\tif (we::$is_member)\n\t\tredirectexit();\n\n\t// We need to load the Login template/language file.\n\tloadLanguage('Login');\n\tloadTemplate('Login');\n\twetem::load('login');\n\n\t// Get the template ready.... not really much else to do.\n\t$context['page_title'] = $txt['login'];\n\t$context['default_username'] =& $_REQUEST['u'];\n\t$context['default_password'] = '';\n\t$context['never_expire'] = false;\n\t$context['robot_no_index'] = true;\n\n\t// Add the login chain to the link tree.\n\tadd_linktree($txt['login'], '<URL>?action=login');\n\n\t// Set the login URL - will be used when the login process is done (but careful not to send us to an attachment).\n\tif (isset($_SESSION['old_url']) && strpos($_SESSION['old_url'], 'dlattach') === false && strhas($_SESSION['old_url'], array('board=', 'topic=', 'board,', 'topic,')))\n\t\t$_SESSION['login_url'] = $_SESSION['old_url'];\n\telse\n\t\tunset($_SESSION['login_url']);\n}", "public function showLoginForm()\n\t{\n\t\t// Remembering Login\n\t\tif (auth()->viaRemember()) {\n\t\t\treturn redirect()->intended($this->redirectTo);\n\t\t}\n\t\t\n\t\t// Meta Tags\n\t\tMetaTag::set('title', getMetaTag('title', 'login'));\n\t\tMetaTag::set('description', strip_tags(getMetaTag('description', 'login')));\n\t\tMetaTag::set('keywords', getMetaTag('keywords', 'login'));\n\t\t\n\t\treturn appView('auth.login');\n\t}", "public function showLogin()\n\t{\n $authCheck = $this->authCheckOnEmployeeAccess();\n if(FALSE != $authCheck){return Redirect::route($authCheck['name']);}\n\n $FormMessages = '';\n\n $viewData = array\n (\n 'FormMessages' => $FormMessages,\n );\n return $this->makeResponseView('admin/auth/login', $viewData);\n\t}", "public function showLogin()\n\t{\n return View::make('login');\n\t}", "public function index()\n\t{\n\t\t$this->login();\n\t}", "public function index() {\r\n self::acceso();\r\n $this->view->ver('login.php'); \r\n }", "public function runAction() {\n\t\t$user = new User();\n\n\t\tif($user->isLoggedIn()){\n\t\t\theader(\"Location: /\");\n\t\t\treturn;\n\t\t}\n\n\t\tView::renderTemplate('Home/login.twig');\n\t}", "public function loginAction()\n {\n return View::make('auth.login')\n ->withPageTitle(trans('dashboard.login.login'));\n }", "public function index()\n\t{\n\t\t$this->login();\n }", "function index() {\n\t\tif ($this->ion_auth->logged_in()) {\n\t\t\tredirect(site_url('manage'));\n\t\t} else {\n\t\t\t$this->data['title'] = \"Login Form\";\n\t\t\t$this->data['message'] = $this->session->flashdata('message');\n\t\t\t$this->data['mainContent'] = \"login_view\";\n\t\t\t$this->data['headerBar'] = \"default\";\n\t\t\t$this->load->view(\"includes/template\", $this->data);\n\t\t}\t\n }", "public function loginpageAction()\n {\n Zend_Registry::set('SubCategory', SubCategory::LOGINPAGE);\n \t$this->view->loginForm = new User_Form_Login();\n }", "public function actionLogin()\n {\n if (!Yii::$app->user->isGuest) {\n return $this->goHome();\n }\n $model = new LoginForm();\n if ($model->load(Yii::$app->request->post()) && $model->login()) {\n return $this->goBack();\n } else {\n return $this->render('login.twig', [\n 'model' => $model,\n ]);\n }\n }", "public function actionLogin()\n\t{\n\t\t$form=new LoginForm;\n\t\t// collect user input data\n\t\tif(isset($_POST['LoginForm']))\n\t\t{\n\t\t\t$form->attributes=$_POST['LoginForm'];\n\t\t\t// validate user input and redirect to previous page if valid\n\t\t\tif($form->validate())\n\t\t\t\t$this->redirect(Yii::app()->user->returnUrl);\n\t\t}\n\t\t// display the login form\n\t\t$this->render('login',array('form'=>$form));\n\t}", "public function index(){\r\n Session::createSession();\r\n if(isset($_SESSION['loggedin'])) {\r\n header('location:'.URL.'home');\r\n }else{\r\n $this->view->render('login/index');\r\n }\r\n \r\n }", "public function loginForm()\n {\n // If already logged in, redirect appropriately\n if ($this->custLoggedIn())\n {\n $this->redirect(\"mainPageCust.php\");\n } elseif ($this->ownerLoggedIn())\n {\n $this->redirect(\"mainPageOwner.php\");\n }\n \n // prepare errors to display if there are any\n $error = array();\n if (!empty($_GET['error']))\n {\n $error_string = urldecode($_GET['error']);\n $error = explode(',', $error_string);\n }\n \n // here the login form view class is loaded and method printHtml() is called \n require_once('views/FormError.class.php');\n require_once('views/LoginForm.class.php');\n $site = new SiteContainer($this->db);\n $form = new LoginForm();\n $error_page = new FormError();\n $site->printHeader();\n $site->printNav();\n $error_page->printHtml($error);\n $form->printHtml();\n $site->printFooter();\n \n }", "public function getLoginPage()\n {\n \tAuth::logout();\n\n \t// view login page\n \treturn view('/login');\n }", "public function showLogin()\n {\n return view('user::login');\n }", "public function showLoginForm()\n {\n return view('ui.pages.login');\n }" ]
[ "0.83349586", "0.8190639", "0.81476265", "0.81453663", "0.81416327", "0.79845124", "0.7957413", "0.79391986", "0.7900764", "0.78884", "0.7873536", "0.7871254", "0.78446287", "0.7839835", "0.782939", "0.78169024", "0.7807418", "0.77935165", "0.77916074", "0.7789178", "0.7780545", "0.7774357", "0.77723056", "0.7770108", "0.77689797", "0.7751523", "0.7722476", "0.7716657", "0.770785", "0.76932305", "0.7684326", "0.7678963", "0.76596344", "0.764446", "0.76430416", "0.76185226", "0.7608327", "0.7579157", "0.757469", "0.7565421", "0.75502944", "0.7548127", "0.7523393", "0.7517534", "0.75172997", "0.7502673", "0.749762", "0.74866027", "0.74707925", "0.74698794", "0.7467557", "0.7453436", "0.7451107", "0.74508667", "0.7450862", "0.74381584", "0.7420627", "0.7414662", "0.74115765", "0.7398796", "0.73863685", "0.7381256", "0.73756826", "0.7371271", "0.73708767", "0.73707694", "0.7367779", "0.7362861", "0.7352549", "0.734931", "0.73471475", "0.73420227", "0.7341928", "0.73401576", "0.73343474", "0.73316824", "0.7328497", "0.7327651", "0.732714", "0.73200464", "0.7308078", "0.7307395", "0.73071027", "0.72953814", "0.7294502", "0.72917444", "0.7291226", "0.72898835", "0.7283027", "0.72814345", "0.72790754", "0.72790194", "0.7278416", "0.727773", "0.7276944", "0.7272303", "0.7266046", "0.7264881", "0.72562563", "0.72544724", "0.7249559" ]
0.0
-1
Logs out the current user and redirect to homepage.
public function actionLogout() { Yii::app()->user->logout(); $this->redirect(Yii::app()->params['loginUrl']); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function logUserOut()\n\t{\n\t\t# destroy the session\n\t\tSession::flush();\n\n\t\t# generate a new session ID\n\t\tSession::regenerate();\n\n\t\t# ... and show the homepage\n\t\treturn Redirect::home();\n\t}", "public function logOutUser() {\r\n\t\tif (isset($_SESSION)) {\r\n\t\t\tunset($_SESSION);\r\n\t\t\tsession_unset();\r\n\t\t\tsession_destroy();\r\n\t\t}\r\n\t\theader('Location: /');\r\n\t}", "public function logout() {\n\t\tAuth::clear('userLogin');\n\t\t$this->redirect(array('action'=>'login'));\n\t}", "public function userLogout() {\n session_destroy();\n header('Location: index.php');\n }", "public function redirectUnauthenticatedUser(){\n if(!$this->isAuthenticated() )\n $this->logout();\n }", "public function logged_out_redirect(){\n\n\t\t\n\t\tif (!isset($_SESSION['user_id'])) {\n\t\t\t# code...\n\t\t\theader('Location: login.php');\n\t\t}\n\n\n\t}", "public function logOut(){\r\n\t\t// Starting sessions\r\n\t\tsession_start();\r\n\t\t\r\n\t\t// Emptying sessions\r\n\t\t$_SESSION['userID'] = '';\r\n\t\t$_SESSION['logged_in'] = false;\r\n\t\t\r\n\t\t// Destroying sessions\r\n\t\tsession_destroy();\r\n\t\theader(\"Location: ?controller=home\");\r\n\t\texit();\r\n\t}", "public function action_logout(){\n\t\tAuth::instance()->logout();\n \n\t\t#redirect to the user account and then the signin page if logout worked as expected\n\t\tHTTP::redirect('/');\t\n\n\t}", "public function Logout()\n\t{\n\t\t$this->user->Logout();\n\t\t$this->RedirectToController();\n\t}", "public function logout() {\n\t\tSentry::logout();\n\t\tredirect(website_url('auth'));\n\t}", "public function logout() {\n header(\"Location: /index.php/Logout\");\n }", "public function index(): void\n {\n if (IsAuthenticatedMiddleware::handle()) {\n $this->storage->removeUserById($this->cookie->get('user_id'));\n $this->cookie->remove('user_id');\n }\n\n $this->redirect->to('/login');\n }", "public function logout()\r\n {\r\n unset($_SESSION['logged_user']);\r\n session_destroy();\r\n directTo(transRootConfig('app_config', 'app_login_index'));\r\n }", "public function logout()\n {\n if (isset($_SESSION['user_id']))\n {\n unset($_SESSION['user_id']);\n }\n redirect('', 'location');\n }", "public function userLogout() {\n // Starting a session to unset and destroy it\n session_start();\n session_unset();\n session_destroy();\n\n // Sending the user back to the login page\n header(\"Location: login\");\n }", "public function logout() \n {\n UserModel::logout();\n\n // redirect the user back home\n Redirect::to('home');\n }", "public function logout ()\n {\n User::logout(\"home\");\n }", "function logout()\n\t\t{\n\t\t\t$logout = $this->ion_auth->logout();\n\t\n\t\t\t//redirect them back to the page they came from\n\t\t\tredirect('main', 'refresh');\n\t\t}", "public function logout() {\n session_destroy();\n $this->redirect('/');\n }", "public function logout() {\n LoginModel::logout();\n Redirect::home();\n }", "private function _logout(){\n\t\tredirect('/', 'refresh');\n\t\treturn;\n\t}", "public function action_logout()\r\n\t{\r\n\t\tAuth::instance()->logout();\r\n\t\tRequest::instance()->redirect('/');\r\n\t}", "function logout()\n\t{\n\n\t\t// log the user out\n\t\t$this->session->sess_destroy();\n\n\t\t// redirect them to the login page\n\t\tredirect('auth', 'refresh');\n\t}", "public function logout() {\n if ($this->User->checkIfClientIsLoggedIn($_SESSION)) {\n $this->User->logoutClient($_SESSION);\n }\n else {\n redirect();\n }\n }", "public function logout() {\n if(isset($_SESSION['user']))\n unset($_SESSION['user']);\n\n $page = 'home';\n require('./View/default.php');\n }", "public static function actionLogout() {\n unset($_SESSION['user']);\n header(\"Location: /\");\n }", "public function logoff(){\n\t\tsession_destroy();\n\t\theader('location: ../view/login.php');\n\t\texit;\n\t}", "function logout()\n\t\t{\n\t\t\t// log the user out\n\t\t\t$logout = $this->ion_auth->logout();\n\t\t\tredirect('login');\n\t\t}", "public function logout()\n {\n session_destroy();\n $this->redirect(BASE_URL . 'index.php?page=home');\n }", "public function executeLogout() {\n $this->logMessage(\"Logout\", 'debug');\n $this->getUser()->clearCredentials();\n $this->getUser()->setAuthenticated(false);\n $this->redirect('default/index');\n }", "function __redirectLoggedInUser()\n{\n global $action;\n \n if ($action == 'logout' || ! is_user_logged_in()) {\n return;\n }\n \n wp_redirect(current_user_can('read') ? admin_url() : home_url(), 302);\n\t\n\tdie();\n}", "public function logoutAction()\n\t{\n\t\tZend_Auth::getInstance()->clearIdentity();\n\t\t$this->_redirect('https://strobe.uwaterloo.ca/cpadev/kiwi/user/out?__kiwi_referer__='\n\t\t\t\t\t\t\t\t. $_SERVER[\"HTTP_REFERER\"]);\n\t}", "public function logout() {\n\t\t$this->session->unset_userdata('uid');\n\t\tredirect('/', 'refresh');\n\t}", "public function logout()\n {\n \\Auth::logout();\n \\Session::flush();\n $this->resetUser( 'Goodbye!' );\n \n return redirect('home');\n }", "public function logOut() {\r\n //Logs when a user exit\r\n $ctrLog = new ControllerLog();\r\n $ctrLog->logOff();\r\n\r\n header('location:../index');\r\n session_destroy();\r\n }", "public function logoff()\n\t{\n\t\t$this->session->sess_destroy();\n\t\tredirect(base_url());\n\t}", "public function logout() {\n $this->_disconnect_user();\n redirect(base_admin_url('identification'), 'refresh');\n }", "public static function logout() {\n\t\tif (self::logged_in()) {\n\t\t\tSession::delete('user');\n\t\t\tsetcookie(\"remember\", null, -1);\n\t\t\tSession::setFlash(\"alert-success\", \"Logged out successfully.\");\n\t\t\theader(\"Location: index.php\");\n\t\t} else {\n\t\t\tSession::setFlash(\"alert-danger\", \"Already logged out.\");\n\t\t\theader(\"Location: index.php\");\n\t\t}\n\t}", "public function logout()\n\t{\n\t\t$this->session->unset_userdata('logged_in');\n\t\theader(\"location:\". site_url('?status=loggedout'));\n\t}", "public function logout(){\r\n // $UsersModel ->logout();\r\n session('user_id', null);\r\n // session('user_auth_sign', null);\r\n // cookie('user_auth', null);\r\n // cookie('user_auth_sign', null);\r\n\r\n $this->redirect('index/index');\r\n }", "public static function logout() {\n session_unset();\n setcookie(\"rememberMe\", \"\", time() - 100);\n header(\"Location: index.php\");\n }", "function logout() {\n User::destroyLoginSession();\n header( \"Location: \" . APP_URL );\n}", "public function logout() {\n\t\t$this->Auth->logout();\n\t\t$this->redirect($this->referer($this->Auth->redirect(), true)); \n\t}", "public function logout()\n\t{\n\t\t$this->session->sess_destroy();\n\t\tredirect('main');\n\t}", "function logout() {\n $this -> session -> sess_destroy();\n redirect('home', 'location');\n }", "public function logout() {\n //Logout user\n Auth::logout();\n //Destroy session\n Session::flush();\n //Redirect to home\n return Redirect::to('/');\n }", "public function signout()\n {\n $this->session->sess_destroy();\n redirect('/');\n }", "public function logout(){\n\t\tunset($_SESSION['auth']);\n\t\theader('Location: index.php?p=users.login');\n\t}", "public function logoutAction()\n {\n $user_service = $this->getServiceLocator()->get('user');\n $user_service->getAuthService()->clearIdentity();\n\n return $this->redirect()->toRoute('home');\n }", "public function logout()\n {\n $this->Session->delete('User');\n\n $this->redirect($this->Auth->logout());\n }", "public function logout()\n {\n header('Location: '.$this->deauth_url);\n exit;\n }", "function logout()\n {\n session_destroy();\n redirect(url('user/index'));\n }", "public function actionLogout() {\n Yii::app()->user->logout(false);\n Yii::app()->user->setFlash('info', 'You are no longer logged in!');\n $this->redirect(Yii::app()->homeUrl);\n }", "public function logout(){\n\t\t$this->aauth->logout();\n\t\tredirect(BASEURL);\n\t}", "public function logout() {\n $logout = $this->ion_auth->logout();\n\n // redirect them back to the login page\n redirect('login');\n }", "public function actionLogout()\n {\n Yii::$app->user->logout();\n $this->goHome();\n }", "public function logout()\n \n {\n $this->ion_auth->logout();\n redirect('/');\n }", "public function LogOut() {\n\t\t$this->session->UnsetAuthenticatedUser();\n\t\t$this->session->AddMessage('success', \"You have been successfully logged out.\");\n\t}", "public function logoutAction()\n {\n $this->getSessionStorage()->forgetMe();\n $this->getAuthService()->clearIdentity();\n return $this->redirect()->toRoute('home');\n }", "function logout() {\n $logout_uri = '/Shibboleth.sso/Logout?target=' . home_url();\n\n wp_redirect($logout_uri);\n exit();\n }", "public function logout ()\n {\n\n session_destroy();\n header(\"Location:\" . SITE_URL. \"/index.php\");\n }", "public function logoutPage(): void\n {\n session_unset();\n header(\"Location: \" . $_SERVER[\"HTTP_REFERER\"]);\n }", "public function actionLogout() {\r\n\t\t$this->redirect(array('//user/auth/logout'));\r\n\t}", "public function action_logout()\n\t{\n\t\tCookie::delete('user');\n\t\t\t\n\t\t// Redirect to the login\n\t\t$this->request->redirect(Route::get('kohanut-login')->uri(array('action'=>'login')));\n\t}", "public function logoutAction()\n {\n $this->getAuthenService()->clearIdentity();\n return $this->redirect()->toRoute('home');\n }", "function do_logout()\n\t{\n\t\t//log the user out\n\t\t$logout = $this->ion_auth->logout();\n\n\t\tredirect('cms/login', 'refresh');\n\t}", "public function logout(){\n\t\t$this->session->sess_destroy();\n\t\tredirect('/');\n\t}", "public function logout(){\n \n Session::destroy(); /* Clear all sessions set for this project */\n Url::redirect(\"http://something.sellerstam.mebokund.com/\", true); /* Goes back to the home page */\n \n }", "public function actionLogout()\n\t{\n\t\tYii::app()->user->logout(true);\n\t\t$this->redirect(Yii::app()->params['baseUrl']);\n\t}", "public function actionLogout()\n {\n\tApp::user()->logout();\n\t$this->redirect(App::homeUrl());\n }", "public static function logout() {\n $_SESSION['user'] = null;\n Redirect::to('/login', array('message' => 'Olet kirjautunut ulos.'));\n }", "public function index() { \n # Clear session\n session_unset();\n session_destroy();\n session_write_close(); \n setcookie(session_name(), \"\", 0, \"/\");\n \n header(\"Location:/\". PATH .\"/login\");\n }", "public function logged_in_redirect(){\n\n\t\tif (isset($_SESSION['user_id'])) {\n\t\t \t# code...\n\t\t \theader('Location: index.php');\n\t\t } \n\t}", "public function logout()\n\t{\n\t\t// Logout user\n\t\tAuth::logout();\n\n\t\treturn Redirect::route('home');\n\t}", "public function logoutAction() {\n $auth = Zend_Auth::getInstance();\n $auth->clearIdentity();\n //redirect user\n $this->_helper->redirector->goToRouteAndExit(array(), 'admin-login');\n }", "public static function logout() {\n Session::forget('user');\n redirect('/login');\n }", "public function logout() {\n session_destroy();\n $this->redirect('?v=index&a=show');\n }", "public function logout()\n\t{\n\t\tglobal $config;\n\t\tif (isset($_SESSION['id']))\n\t\t{\n\t\t\tunset($_SESSION['id']);\n\t\t}\n\t\theader(\"Location: {$config['url']}\");\n\t}", "public function logout(){\n session_destroy();\n $arr = array(\n 'sessionID' => ''\n );\n dibi::query('UPDATE `user` SET ', $arr, \n 'WHERE `email`=%s', $email);\n parent::redirection(\"index.php\");\n }", "public function doLogout()\n {\n AuthSam::logout();\n Cache::flush();\n return redirect('/');\n \n }", "public function logout() {\n\t\tif($this->session->userdata(\"username\"))\n\t\t\t$this->session->unset_userdata('username');\n\t\tredirect('user/login', 'refresh');\n\t}", "public function actionLogout() {\n\t\tYii::app()->user->logout();\n\t\t$this->redirect(Yii::app()->homeUrl);\n\t}", "function logout()\n{\n\t$this->Session->delete('user');\n\t$this->redirect('/inhabitants/');\n}", "public function get_signout()\n\t{\n\t\tService\\Security::logout();\n\n\t\treturn Redirect::home();\n\t}", "public function action_logout()\n\t{\n\t\tAuth::instance()->logout(TRUE);\n\n\t\t// Redirect back to the login object\n\t\tRequest::current()->redirect(url::site('auth/login',Request::current()->protocol(),false));\n\n\t}", "public function logout(){\n session_destroy();\n header('Location: index.php');\n }", "private function exitLogin(){\n\t\tSeguridad::cerrarSesion();\n\t\theader('Location: index.php');\n\t}", "function logout() {\n\t\t$this->redirect($this->Auth->logout());\n\n }", "public function logout()\n {\n $_SESSION = array();\n session_destroy();\n\n header('Location: /home');\n exit();\n }", "public function actionLogout() {\n Yii::app()->user->logout();\n $this->redirect(Yii::app()->homeUrl);\n }", "public function actionLogout() {\n Yii::app()->user->logout();\n $this->redirect(Yii::app()->homeUrl);\n }", "public function actionLogout() {\n Yii::app()->user->logout();\n $this->redirect(Yii::app()->homeUrl);\n }", "public function actionLogout() {\n Yii::app()->user->logout();\n $this->redirect(Yii::app()->homeUrl);\n }", "public function actionLogout() {\n Yii::app()->user->logout();\n $this->redirect(Yii::app()->homeUrl);\n }", "public function actionLogout() {\n Yii::app()->user->logout();\n $this->redirect(Yii::app()->homeUrl);\n }", "public function actionLogout() {\n Yii::app()->user->logout();\n $this->redirect(Yii::app()->homeUrl);\n }", "function LogOut() {\n\t\tunset($user);\n\t\t$loggedIn=false;\n\t}", "public function actionLogout()\r\n\t{\r\n\t\tYii::app()->user->logout();\r\n\t\t$this->redirect(Yii::app()->homeUrl);\r\n\t}", "public function actionLogout()\r\n\t{\r\n\t\tYii::app()->user->logout();\r\n\t\t$this->redirect(Yii::app()->homeUrl);\r\n\t}", "public function actionLogout()\r\n\t{\r\n\t\tYii::app()->user->logout();\r\n\t\t$this->redirect(Yii::app()->homeUrl);\r\n\t}", "public static function logout()\n\t{\n\t\t//app应该为登录页面URL\n\t\theader('Location:'.self::$ssoURL.'?app='.sf\\encrypt_url(self::$clientHost).'&action=logout');\n\t\texit;\n\t}" ]
[ "0.8044508", "0.80273676", "0.78125346", "0.77942526", "0.77574855", "0.7739704", "0.77354515", "0.7733906", "0.7714563", "0.76990825", "0.76775724", "0.765905", "0.7632477", "0.7590565", "0.758782", "0.7586448", "0.7585706", "0.75685763", "0.75481457", "0.7544159", "0.75153315", "0.7509868", "0.7496506", "0.7494379", "0.74831444", "0.7480292", "0.7480247", "0.74729425", "0.7468207", "0.7465272", "0.7451627", "0.74501634", "0.74463934", "0.74366575", "0.7430194", "0.7425496", "0.7422089", "0.74086756", "0.74036974", "0.7396355", "0.73858035", "0.7376786", "0.7374163", "0.7366843", "0.7357036", "0.7350326", "0.73483855", "0.73455626", "0.7344371", "0.7342284", "0.73307383", "0.7325145", "0.7324569", "0.7321749", "0.73111856", "0.7303513", "0.72994566", "0.729903", "0.72987956", "0.72926193", "0.72864854", "0.72853607", "0.7281601", "0.72773993", "0.72762185", "0.7271592", "0.7271335", "0.7266985", "0.7266153", "0.7260951", "0.72585964", "0.72511566", "0.72474086", "0.72442466", "0.72419894", "0.7233568", "0.72301865", "0.72279", "0.7227413", "0.72265726", "0.7217441", "0.72131157", "0.7211339", "0.7208853", "0.72075754", "0.7201524", "0.7190224", "0.71877724", "0.71870697", "0.7178777", "0.7178777", "0.7178777", "0.7178777", "0.7178777", "0.7178777", "0.7178777", "0.7172684", "0.7171417", "0.7171417", "0.7171417", "0.7168694" ]
0.0
-1
Delete all revisions OPTIONS [hard] : Hard delete. Slower, uses wp_delete_post_revision(). Alias to wp revisions clean 1 [yes] : Answer yes to the confirmation message. EXAMPLES wp revisions dump
public function dump( $args = array(), $assoc_args = array() ) { global $wpdb; $revs = $wpdb->get_var( "SELECT COUNT(*) FROM $wpdb->posts WHERE post_type = 'revision'" ); // phpcs:ignore WordPress.VIP.DirectDatabaseQuery.DirectQuery,WordPress.VIP.DirectDatabaseQuery.NoCaching if ( $revs < 1 ) { WP_CLI::success( 'No revisions.' ); return; } WP_CLI::confirm( sprintf( 'Remove all %d revisions?', $revs ), $assoc_args ); if ( isset( $assoc_args['hard'] ) ) { WP_CLI::run_command( array( 'revisions', 'clean', -1 ), array( 'hard' => '' ) ); return; } $wpdb->query( "DELETE FROM $wpdb->posts WHERE post_type = 'revision'" ); // phpcs:ignore WordPress.VIP.DirectDatabaseQuery.DirectQuery,WordPress.VIP.DirectDatabaseQuery.NoCaching WP_CLI::success( 'Finished removing all revisions.' ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function dump( $args = array(), $assoc_args = array() ) {\n\n\t\tglobal $wpdb;\n\t\t$revs = $wpdb->get_var( \"SELECT COUNT(*) FROM $wpdb->posts WHERE post_type = 'revision'\" );\n\n\t\tif ( $revs < 1 ) {\n\t\t\tWP_CLI::success( 'No revisions.' );\n\t\t\treturn;\n\t\t}\n\n\t\tWP_CLI::confirm( sprintf( 'Remove all %d revisions?', $revs ), $assoc_args );\n\n\t\tif ( isset( $assoc_args['hard'] ) ) {\n\t\t\tWP_CLI::run_command( array( 'revisions', 'clean', -1 ), array( 'hard' => '' ) );\n\t\t\treturn;\n\t\t}\n\n\t\t$wpdb->query( \"DELETE FROM $wpdb->posts WHERE post_type = 'revision'\" );\n\n\t\t// @todo: Are there caches to clear?\n\n\t\tWP_CLI::success( 'Finished removing all revisions.' );\n\n\t}", "public function kiwip_action_delete_revisions(){\n\t\tglobal $wpdb;\n\n\t\t$this->delete_revision = $wpdb->query('DELETE FROM wp_posts WHERE post_type = \"revision\";');\n\n\t\tadd_action('admin_notices', array(&$this, 'kiwip_action_delete_revisions_adm_msg'));\n\t\t$updated_option = array('delete_revisions' => 0);\n\t\tupdate_option('Kiwip', $updated_option);\n\t\t$this->options['delete_revisions'] == 0;\n\t}", "public function wp_sql_clean_revision() {\n\n\t\t$bdd = Bdd::getInstance();\n\n\t\t$sql = $bdd->dbh->prepare('DELETE FROM '.$this->_table_prefix.'posts WHERE post_type = \"revision\"');\n\t\t\n\t\treturn $sql->execute();\n\t}", "function wp_delete_post_revision($revision)\n {\n }", "public function massDeleteRevisionsAction()\n {\n $ids = $this->getRequest()->getParam('revision');\n if (!is_array($ids)) {\n $this->_getSession()->addError($this->__('Please select revision(s).'));\n }\n else {\n try {\n $userId = Mage::getSingleton('admin/session')->getUser()->getId();\n $accessLevel = Mage::getSingleton('gri_cms/config')->getAllowedAccessLevel();\n\n foreach ($ids as $id) {\n $revision = Mage::getSingleton('gri_cms/page_revision')\n ->loadWithRestrictions($accessLevel, $userId, $id);\n\n if ($revision->getId()) {\n $revision->delete();\n }\n }\n $this->_getSession()->addSuccess(\n $this->__('Total of %d record(s) have been deleted.', count($ids))\n );\n } catch (Mage_Core_Exception $e) {\n $this->_getSession()->addError($e->getMessage());\n } catch (Exception $e) {\n Mage::logException($e);\n $this->_getSession()->addError(\n Mage::helper('gri_cms')->__('An error occurred while deleting revisions.')\n );\n }\n }\n $this->_redirect('*/*/edit', array('_current' => true, 'tab' => 'revisions'));\n\n return $this;\n }", "public function DeleteArticleRevisions() {\n\t\t\t$this->objArticleRevisions->Delete();\n\t\t}", "function pafd_action_delete_revisions( $post_ID ) {\n\n\tglobal $pafd_helper, $post;\n\n\t/**\n\t * Get the uploads basedir,\n\t * don't add $post_ID when global $post is not empty\n\t */\n\t$pafd_helper[ 'pafd_alter_upload_dir' ] = true;\n\t$upload_dir = wp_upload_dir();\n\tif( empty( $post ) ) {\n\t\t$post_upload_basedir = $upload_dir[ 'basedir' ] . \"/$post_ID\";\n\t} else {\n\t\t$post_upload_basedir = $upload_dir[ 'basedir' ];\n\t}\n\t$pafd_helper[ 'pafd_alter_upload_dir' ] = false;\n\n\t// Do nothing if directory doesn't exist\n\tif ( ! is_dir( $post_upload_basedir ) ) {\n\t\treturn;\n\t}\n\n\t// Delete files\n\t$files = glob( $post_upload_basedir . '/*' );\n\tforeach ( $files as $file ) {\n\t\tunlink( $file );\n\t}\n\n\t// Delete directory \"wp-content/uploads/pafd-files/$post_ID\"\n\trmdir( $post_upload_basedir );\n}", "function wp_revisions_to_keep($post)\n {\n }", "protected function revisionableCleanUp()\n {\n $relation = $this->model->getRevisionHistoryName();\n $relationObject = $this->model->{$relation}();\n\n $revisionLimit = property_exists($this->model, 'revisionableLimit')\n ? (int) $this->model->revisionableLimit\n : self::DEFAULT_REVISION_LIMIT;\n\n $toDelete = $relationObject\n ->orderBy('id', 'desc')\n ->skip($revisionLimit)\n ->limit(self::CLEANUP_REVISION_BATCH)\n ->get();\n\n foreach ($toDelete as $record) {\n $record->delete();\n }\n }", "public function deleteRevision()\n {\n // Ajax only controller\n if (!Request::ajax()) {\n return Response::notFound();\n }\n\n $postID = Input::get('postID');\n $userID = Input::get('userID');\n if ($postID > 0 && Mrcore::user()->isAuthenticated()) {\n $post = Post::find($postID);\n if (isset($post)) {\n if ($userID > 0) {\n // Delete the only one by post and user\n if ($post->hasPermission('write')) {\n $revision = Revision::where('post_id', '=', $postID)\n ->where('created_by', '=', $userID)\n ->where('revision', '=', 0)\n ->first();\n if (isset($revision)) {\n $revision->delete();\n }\n } else {\n return Response::notFound();\n }\n } else {\n // Delete all by post\n if ($post->hasPermission('write')) {\n $revisions = Revision::where('post_id', '=', $postID)\n ->where('revision', '=', 0)\n ->get();\n if (isset($revisions)) {\n foreach ($revisions as $revision) {\n $revision->delete();\n }\n }\n } else {\n return Response::notFound();\n }\n }\n } else {\n return Response::notFound();\n }\n } else {\n return Response::notFound();\n }\n }", "function wp_delete_auto_drafts()\n {\n }", "public function kiwip_action_delete_revisions_adm_msg(){\n\t\tif(current_user_can('manage_options')){\n\t \techo '<div id=\"message\" class=\"updated fade\"><p><strong>All posts revisions have been deleted correctly.</strong></p></div>';\n\t }\n\t}", "public static function cron_revision_cleanup($limit = 100) {\n global $wpdb;\n\n $post_types = 'post, product, product_variation';\n\n // Revisions of posts that were last modified a long time ago (3 months) are\n // no longer necessary and can be cleaned up.\n $revision_ids = $wpdb->get_col($wpdb->prepare(\"SELECT revision.ID\nFROM $wpdb->posts revision\nINNER JOIN $wpdb->posts parent ON parent.ID = revision.post_parent AND parent.post_type IN ($post_types)\nWHERE revision.post_type = 'revision' AND revision.post_modified_gmt < %s AND revision.post_name NOT LIKE '%autosave%'\nLIMIT 0,%d\n\", date('Y-m-d', strtotime('today - ' . static::CRON_EVENT_REVISION_CLEANUP_RETAIN_DAYS . ' days')), $limit));\n foreach ($revision_ids as $revision_id) {\n wp_delete_post_revision($revision_id);\n }\n }", "function hard_delete_posts()\r\n\t{\r\n\t\tglobal $auth, $config, $db, $phpbb_root_path, $phpEx, $user;\r\n\r\n\t\tif (sizeof($this->hard_delete['p']))\r\n\t\t{\r\n\t\t\t$sql = 'DELETE FROM ' . POSTS_TABLE . '\r\n\t\t\t\tWHERE ' . $db->sql_in_set('post_id', $this->hard_delete['p']);\r\n\t\t\t$db->sql_query($sql);\r\n\r\n\t\t\tforeach ($this->hard_delete['p'] as $id)\r\n\t\t\t{\r\n\t\t\t\t$topic_id = intval($this->post_data[$id]['topic_id']);\r\n\t\t\t\t$forum_id = intval($this->post_data[$id]['forum_id']);\r\n\t\t\t\t$sql_data = $sql_data1 = '';\r\n\r\n\t\t\t\tif ($this->topic_data[$topic_id]['topic_deleted'] != 0 && (($this->topic_data[$topic_id]['topic_first_post_id'] == $id && $this->topic_data[$topic_id]['topic_last_post_id'] == $id) || ($this->topic_data[$topic_id]['topic_deleted_reply_count'] == 1 && $this->topic_data[$topic_id]['topic_replies_real'] == 0)))\r\n\t\t\t\t{\r\n\t\t\t\t\t$this->hard_delete['t'][] = $topic_id;\r\n\t\t\t\t\tadd_log('mod', $forum_id, $topic_id, 'LOG_HARD_DELETE_TOPIC', $this->topic_data[$topic_id]['topic_title']);\r\n\r\n\t\t\t\t\tif (array_key_exists($topic_id, $this->shadow_topic_ids))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$this->hard_delete['t'][] = $this->shadow_topic_ids[$topic_id];\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif ($this->topic_data[$topic_id]['topic_type'] != POST_GLOBAL && $this->forum_data[$forum_id]['forum_deleted_topic_count'] > 0)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$sql_data1 .= 'forum_deleted_topic_count = forum_deleted_topic_count - 1, ';\r\n\t\t\t\t\t\t$this->forum_data[$forum_id]['forum_deleted_topic_count']--;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tadd_log('mod', $forum_id, $topic_id, 'LOG_HARD_DELETE_POST', $this->post_data[$id]['post_subject']);\r\n\r\n\t\t\t\t\tif ($this->topic_data[$topic_id]['topic_replies'] > 0)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$sql_data .= 'topic_replies = topic_replies - 1, ';\r\n\t\t\t\t\t\t$this->topic_data[$topic_id]['topic_replies']--;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif ($this->topic_data[$topic_id]['topic_replies_real'] > 0)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$sql_data .= 'topic_replies_real = topic_replies_real - 1, ';\r\n\t\t\t\t\t\t$this->topic_data[$topic_id]['topic_replies_real']--;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif ($this->topic_data[$topic_id]['topic_deleted_reply_count'] > 0)\r\n\t\t\t\t{\r\n\t\t\t\t\t$sql_data .= 'topic_deleted_reply_count = topic_deleted_reply_count - 1, ';\r\n\t\t\t\t\t$this->topic_data[$topic_id]['topic_deleted_reply_count']--;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif ($this->topic_data[$topic_id]['topic_type'] != POST_GLOBAL && $this->forum_data[$forum_id]['forum_deleted_reply_count'] > 0)\r\n\t\t\t\t{\r\n\t\t\t\t\t$sql_data1 .= 'forum_deleted_reply_count = forum_deleted_reply_count - 1, ';\r\n\t\t\t\t\t$this->forum_data[$forum_id]['forum_deleted_reply_count']--;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif ($this->topic_data[$topic_id]['topic_type'] != POST_GLOBAL && $this->forum_data[$forum_id]['forum_posts'] > 0)\r\n\t\t\t\t{\r\n\t\t\t\t\t$sql_data1 .= 'forum_posts = forum_posts - 1, ';\r\n\t\t\t\t\t$this->forum_data[$forum_id]['forum_posts']--;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif ($sql_data != '')\r\n\t\t\t\t{\r\n\t\t\t\t\t$sql = 'UPDATE ' . TOPICS_TABLE . '\r\n\t\t\t\t\t\tSET ' . $sql_data;\r\n\t\t\t\t\t$sql = substr($sql, 0, -2);\r\n\t\t\t\t\t$sql .= ' WHERE topic_id = ' . $topic_id;\r\n\t\t\t\t\t$db->sql_query($sql);\r\n\t\t\t\t}\r\n\t\t\t\tif ($sql_data1 != '' && $this->topic_data[$topic_id]['topic_type'] != POST_GLOBAL)\r\n\t\t\t\t{\r\n\t\t\t\t\t$sql = 'UPDATE ' . FORUMS_TABLE . '\r\n\t\t\t\t\t\tSET ' . $sql_data1;\r\n\t\t\t\t\t\t$sql = substr($sql, 0, -2);\r\n\t\t\t\t\t\t$sql .= ' WHERE forum_id = ' . $forum_id;\r\n\t\t\t\t\t$db->sql_query($sql);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t$this->delete_attachment_data();\r\n\r\n\t\t\t$sql = 'DELETE FROM ' . TERMMAP_TABLE . '\r\n\t\t\t\tWHERE topic_id = ' . (int) $topic_id;\r\n\t\t\t$db->sql_query($sql);\r\n\t\t\t\r\n\t\t\t$this->hard_delete_topics();\r\n\t\t}\r\n\t}", "public function generate( $args = array(), $assoc_args = array() ) {\n\n\t\tglobal $wpdb;\n\n\t\tif ( ! empty( $assoc_args['post_id'] ) ) {\n\n\t\t\t$posts = array( $assoc_args['post_id'] );\n\t\t\t$posts = array_filter( $posts, 'get_post' );\n\n\t\t} else {\n\n\t\t\tif ( empty( $assoc_args['post_type'] ) ) {\n\t\t\t\t$post_types = $this->supports_revisions();\n\t\t\t} else {\n\t\t\t\t$post_types = explode( ',', $assoc_args['post_type'] );\n\t\t\t}\n\n\t\t\t$where = '';\n\t\t\tforeach ( $post_types as $post_type ) {\n\t\t\t\t$where .= $wpdb->prepare( ' OR post_type = %s', $post_type );\n\t\t\t}\n\n\t\t\t// get all IDs for posts in given post type(s).\n\t\t\t$posts = $wpdb->get_col( \"SELECT ID FROM $wpdb->posts WHERE 1=2 {$where}\" );\n\n\t\t}\n\n\t\t$total = count( $posts );\n\n\t\t$notify = \\WP_CLI\\Utils\\make_progress_bar( sprintf( 'Generating revisions for %d post(s)', $total ), $total );\n\n\t\t$count = isset( $args[0] ) ? intval( $args[0] ) : 15;\n\n\t\t$this->start_bulk_operation();\n\n\t\tremove_all_filters( 'wp_revisions_to_keep' );\n\t\tadd_filter( 'wp_save_post_revision_check_for_changes', '__return_false' );\n\t\t$inc = 0;\n\t\tforeach ( $posts as $post_id ) {\n\t\t\t$notify->tick();\n\n\t\t\tfor ( $i = 0; $i < $count; $i++ ) {\n\n\t\t\t\twp_save_post_revision( $post_id );\n\t\t\t}\n\t\t\t$inc++;\n\t\t\tif ( $inc % 10 === 0 ) {\n\t\t\t\t$this->stop_the_insanity();\n\t\t\t}\n\t\t}\n\n\t\t$this->end_bulk_operation();\n\n\t\t$notify->finish();\n\t\tWP_CLI::success( 'Finished generating revisions.' );\n\n\t}", "public function handleDelete()\n {\n Craft::$app->getDb()->createCommand()\n ->delete(Table::REVISIONS, ['id' => $this->owner->revisionId])\n ->execute();\n }", "function wp_delete_all_temp_backups()\n {\n }", "public function desbanearDeLasRevisiones() {\n\t\tglobal $wpdb;\n\t\treturn $wpdb->query($wpdb->prepare('\n\t\t\t\tUPDATE wp_revisiones_ban\n\t\t\t\tSET status = %d\n\t\t\t\tWHERE user_id = %d', self::DESBANEADO, $this->user_id));\n\t}", "function wppb_remove_trash_bulk_option_rf( $actions ){\r\n\tglobal $post;\r\n\tif( !empty( $post ) ){\r\n if ( $post->post_type == 'wppb-rf-cpt' ){\r\n unset( $actions['view'] );\r\n\r\n if ( wppb_get_post_number ( $post->post_type, 'bulk_action' ) )\r\n unset( $actions['trash'] );\r\n }\r\n }\r\n\r\n\treturn $actions;\r\n}", "public function do_batch() {\n\t\t$post_ids = array_map( 'intval', $this->get_post_ids() );\n\t\tforeach( $post_ids as $post_to_delete ) {\n\t\t\tadd_filter( Toolset_Association_Cleanup_Post::IS_DELETING_FILTER, '__return_true' );\n\t\t\twp_delete_post( $post_to_delete, true );\n\t\t\tremove_filter( Toolset_Association_Cleanup_Post::IS_DELETING_FILTER, '__return_true' );\n\t\t}\n\n\t\t$this->deleted_posts = count( $post_ids );\n\t}", "public function deleteContentAndCopyDraftPage() {}", "function rssmi_delete_feed_post_admin()\n{\n rssmi_delete_posts_admin();\n}", "function DNUI_delete_backups($ids) {\r\n $basePlugin = plugin_dir_path(__FILE__) . '../backup/';\r\n foreach ($ids as $id) {\r\n DNUI_delete_backup($id,$basePlugin);\r\n \r\n }\r\n return;\r\n}", "function cp_delete_all_options() {\r\n global $wpdb;\r\n\r\n $wpdb->query( \"DELETE FROM $wpdb->options WHERE option_name like 'cp_%'\" );\r\n echo '<p class=\"info\">' . __('All ClassiPress options have been deleted from the WordPress options table.', 'appthemes') . '</p>';\r\n}", "function wiki_delete_page($page_id)\n{\n if (php_function_allowed('set_time_limit')) {\n @set_time_limit(0);\n }\n\n // Get page details\n $pages = $GLOBALS['SITE_DB']->query_select('wiki_pages', array('*'), array('id' => $page_id), '', 1);\n if (!array_key_exists(0, $pages)) {\n warn_exit(do_lang_tempcode('MISSING_RESOURCE', 'wiki_page'));\n }\n $page = $pages[0];\n $_description = $page['description'];\n $_title = $page['title'];\n\n // Delete posts\n $start = 0;\n do {\n $posts = $GLOBALS['SITE_DB']->query_select('wiki_posts', array('id'), array('page_id' => $page_id), '', 500, $start);\n foreach ($posts as $post) {\n wiki_delete_post($post['id']);\n }\n //$start += 500; No, we just deleted, so offsets would have changed\n } while (array_key_exists(0, $posts));\n\n // Log revision\n $log_id = log_it('WIKI_DELETE_PAGE', strval($page_id), $_title);\n if (addon_installed('actionlog')) {\n require_code('revisions_engine_database');\n $revision_engine = new RevisionEngineDatabase();\n $revision_engine->add_revision(\n 'wiki_page',\n strval($page_id),\n strval($page_id),\n get_translated_text($_title),\n get_translated_text($_description),\n $page['submitter'],\n $page['add_date'],\n $log_id\n );\n }\n\n // Delete and update caching...\n\n delete_lang($_description);\n delete_lang($_title);\n $GLOBALS['SITE_DB']->query_delete('wiki_pages', array('id' => $page_id), '', 1);\n $GLOBALS['SITE_DB']->query_delete('wiki_children', array('parent_id' => $page_id));\n $GLOBALS['SITE_DB']->query_delete('wiki_children', array('child_id' => $page_id));\n\n if (addon_installed('catalogues')) {\n update_catalogue_content_ref('wiki_page', strval($page_id), '');\n }\n\n if ((addon_installed('commandr')) && (!running_script('install')) && (!get_mass_import_mode())) {\n require_code('resource_fs');\n expunge_resource_fs_moniker('wiki_page', strval($page_id));\n }\n\n require_code('sitemap_xml');\n notify_sitemap_node_delete('_SEARCH:wiki:browse:' . strval($page_id));\n}", "private function delete_all_plugin_options() {\n\t\t// Deletes all options from the options table.\n\t\t$this->options->delete( Activation::OPTION_SHOW_ACTIVATION_NOTICE );\n\t\t$this->options->delete( Activation::OPTION_NEW_SITE_POSTS );\n\t\t$this->options->delete( Credentials::OPTION );\n\t\t$this->options->delete( 'googlesitekit-active-modules' );\n\t\t$this->options->delete( Search_Console::PROPERTY_OPTION );\n\t\t$this->options->delete( AdSense::OPTION );\n\t\t$this->options->delete( Analytics::OPTION );\n\t\t$this->options->delete( 'googlesitekit_analytics_adsense_linked' );\n\t\t$this->options->delete( PageSpeed_Insights::OPTION );\n\t\t$this->options->delete( Optimize::OPTION );\n\t\t$this->options->delete( Tag_Manager::OPTION );\n\t\t$this->options->delete( First_Admin::OPTION );\n\t\t$this->options->delete( OAuth_Client::OPTION_PROXY_NONCE );\n\t\t$this->options->delete( Beta_Migration::OPTION_IS_PRE_PROXY_INSTALL );\n\n\t\t// Clean up old site verification data, moved to user options.\n\t\t// Also clean up other old unused options.\n\t\t// @todo remove after RC.\n\t\t$this->options->delete( Verification::OPTION );\n\t\t$this->options->delete( Verification_Tag::OPTION );\n\t\t$this->options->delete( 'googlesitekit_api_key' );\n\t\t$this->options->delete( 'googlesitekit_available_modules' );\n\t\t$this->options->delete( 'googlesitekit_secret_token' );\n\t\t$this->options->delete( 'googlesitekit_project_id' );\n\t\t$this->options->delete( 'googlesitekit_gcp_project' );\n\t}", "public function postDelete()\n {\n if ((!isset($this->revisionEnabled) || $this->revisionEnabled)\n && $this->isSoftDelete()\n && $this->isRevisionable('deleted_at')\n ) {\n $revisions[] = array(\n 'revisionable_type' => get_class($this),\n 'revisionable_id' => $this->getKey(),\n 'key' => 'deleted_at',\n 'old_value' => null,\n 'new_value' => $this->deleted_at,\n 'user_id' => $this->getSystemUserId(),\n 'created_at' => new \\DateTime(),\n 'updated_at' => new \\DateTime(),\n 'activity_id' => $this->getActivityId()\n );\n $revision = new \\Venturecraft\\Revisionable\\Revision;\n \\DB::table($revision->getTable())->insert($revisions);\n }\n }", "public function delete()\n {\n foreach ($this->versions as $version)\n {\n $version->delete();\n }\n\n parent::delete();\n }", "function soft_delete_posts()\r\n\t{\r\n\t\tglobal $auth, $config, $db, $phpbb_root_path, $phpEx, $user;\r\n\r\n\t\tif (sizeof($this->soft_delete['p']))\r\n\t\t{\r\n\t\t\t$sql_data = array(\r\n\t\t\t\t'post_deleted'\t\t\t=> $user->data['user_id'],\r\n\t\t\t\t'post_deleted_time'\t\t=> time(),\r\n\t\t\t);\r\n\t\t\t$sql = 'UPDATE ' . POSTS_TABLE . '\r\n\t\t\t\tSET ' . $db->sql_build_array('UPDATE', $sql_data) . '\r\n\t\t\t\t\tWHERE ' . $db->sql_in_set('post_id', $this->soft_delete['p']);\r\n\t\t\t$db->sql_query($sql);\r\n\r\n\t\t\t// Update the search index to remove any posts we have soft deleted\r\n\t\t\t$this->update_search_index($this->soft_delete['p'], true);\r\n\r\n\t\t\tforeach ($this->soft_delete['p'] as $id)\r\n\t\t\t{\r\n\t\t\t\t$topic_id = intval($this->post_data[$id]['topic_id']);\r\n\t\t\t\t$forum_id = intval($this->post_data[$id]['forum_id']);\r\n\r\n\t\t\t\t// Update the first/last topic info if we must\r\n\t\t\t\tif (($this->topic_data[$topic_id]['topic_first_post_id'] == $id && $this->topic_data[$topic_id]['topic_last_post_id'] == $id) || ($this->topic_data[$topic_id]['topic_deleted_reply_count'] == ($this->topic_data[$topic_id]['topic_replies_real'])))\r\n\t\t\t\t{\r\n\t\t\t\t\t// Since we are deleting the only post left we shall soft delete the topic\r\n\t\t\t\t\t$this->soft_delete['t'][] = $topic_id;\r\n\r\n\t\t\t\t\tif ($this->topic_data[$topic_id]['topic_poster'] != $user->data['user_id'])\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tadd_log('mod', $forum_id, $topic_id, 'LOG_SOFT_DELETE_TOPIC', $this->topic_data[$topic_id]['topic_title']);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\t// Update the first or last post if we have to.\r\n\t\t\t\t\tif ($this->topic_data[$topic_id]['topic_first_post_id'] == $id)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$this->update_first_post_topic($topic_id);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if ($this->topic_data[$topic_id]['topic_last_post_id'] == $id)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$this->update_last_post_topic($topic_id);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif ($this->post_data[$id]['poster_id'] != $user->data['user_id'])\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tadd_log('mod', $forum_id, $topic_id, 'LOG_SOFT_DELETE_POST', $this->post_data[$id]['post_subject']);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// Fix post reported\r\n\t\t\t\tif ($this->post_data[$id]['post_reported'])\r\n\t\t\t\t{\r\n\t\t\t\t\t$sql = 'UPDATE ' . POSTS_TABLE . '\r\n\t\t\t\t\t\tSET post_reported = 0\r\n\t\t\t\t\t\t\tWHERE post_id = ' . $id;\r\n\t\t\t\t\t$db->sql_query($sql);\r\n\r\n\t\t\t\t\t$this->post_data[$id]['post_reported'] = 0;\r\n\r\n\t\t\t\t\t$some_reported = false;\r\n\t\t\t\t\t$sql = 'SELECT post_reported FROM ' . POSTS_TABLE . '\r\n\t\t\t\t\t\tWHERE topic_id = ' . $topic_id;\r\n\t\t\t\t\t$result = $db->sql_query($sql);\r\n\t\t\t\t\twhile ($row = $db->sql_fetchrow($result))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif ($row['post_reported'])\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t$some_reported = true;\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t$db->sql_freeresult($result);\r\n\r\n\t\t\t\t\t// If none of the posts in this topic are reported anymore, reset it for the topic\r\n\t\t\t\t\tif (!$some_reported)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$sql = 'UPDATE ' . TOPICS_TABLE . '\r\n\t\t\t\t\t\t\tSET topic_reported = 0\r\n\t\t\t\t\t\t\t\tWHERE topic_id = ' . $topic_id;\r\n\t\t\t\t\t\t$db->sql_query($sql);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// Update the deleted reply count for the topic\r\n\t\t\t\t$sql = 'UPDATE ' . TOPICS_TABLE . '\r\n\t\t\t\t\tSET topic_deleted_reply_count = topic_deleted_reply_count + 1\r\n\t\t\t\t\t\tWHERE topic_id = ' . $topic_id;\r\n\t\t\t\t$db->sql_query($sql);\r\n\t\t\t\t$this->topic_data[$topic_id]['topic_deleted_reply_count']++;\r\n\r\n\t\t\t\t// Update the deleted reply count for the shadow topics\r\n\t\t\t\tif (array_key_exists($topic_id, $this->shadow_topic_ids))\r\n\t\t\t\t{\r\n\t\t\t\t\t$sql = 'UPDATE ' . TOPICS_TABLE . '\r\n\t\t\t\t\t\tSET topic_deleted_reply_count = topic_deleted_reply_count + 1\r\n\t\t\t\t\t\t\tWHERE topic_id = ' . intval($this->shadow_topic_ids[$topic_id]);\r\n\t\t\t\t\t$db->sql_query($sql);\r\n\t\t\t\t\t$this->topic_data[$this->shadow_topic_ids[$topic_id]]['topic_deleted_reply_count']++;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// If the topic is a global announcement, do not attempt to do any updates to forums\r\n\t\t\t\tif ($this->topic_data[$topic_id]['topic_type'] != POST_GLOBAL)\r\n\t\t\t\t{\r\n\t\t\t\t\t// Update the deleted reply count for the forum\r\n\t\t\t\t\t$sql = 'UPDATE ' . FORUMS_TABLE . '\r\n\t\t\t\t\t\tSET forum_deleted_reply_count = forum_deleted_reply_count + 1\r\n\t\t\t\t\t\t\tWHERE forum_id = ' . $forum_id;\r\n\t\t\t\t\t$db->sql_query($sql);\r\n\t\t\t\t\t$this->forum_data[$forum_id]['forum_deleted_reply_count']++;\r\n\r\n\t\t\t\t\t// Update the last post info for the forum if we must\r\n\t\t\t\t\tif ($this->forum_data[$forum_id]['forum_last_post_id'] == $id)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$this->update_last_post_forum($forum_id);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (array_key_exists($topic_id, $this->shadow_topic_ids))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif ($this->forum_data[$this->topic_data[$this->shadow_topic_ids[$topic_id]]['forum_id']]['forum_last_post_id'] == $id)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t$this->update_last_post_forum($this->topic_data[$this->shadow_topic_ids[$topic_id]]['forum_id']);\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\r\n\t\t\t// Soft delete the topics\r\n\t\t\t$this->soft_delete_topics();\r\n\t\t}\r\n\t}", "function undelete_posts()\r\n\t{\r\n\t\tglobal $auth, $config, $db, $phpbb_root_path, $phpEx, $user;\r\n\r\n\t\tif (sizeof($this->undelete['p']))\r\n\t\t{\r\n\t\t\t$sql_data = array(\r\n\t\t\t\t'post_deleted'\t\t\t=> 0,\r\n\t\t\t\t'post_deleted_time'\t\t=> 0,\r\n\t\t\t);\r\n\t\t\t$sql = 'UPDATE ' . POSTS_TABLE . '\r\n\t\t\t\tSET ' . $db->sql_build_array('UPDATE', $sql_data) . '\r\n\t\t\t\t\tWHERE ' . $db->sql_in_set('post_id', $this->undelete['p']);\r\n\t\t\t$db->sql_query($sql);\r\n\r\n\t\t\t// Add the post info to the search index since we are undeleting it\r\n\t\t\t$this->update_search_index($this->undelete['p'], false);\r\n\r\n\t\t\tforeach ($this->undelete['p'] as $id)\r\n\t\t\t{\r\n\t\t\t\t$topic_id = intval($this->post_data[$id]['topic_id']);\r\n\t\t\t\t$forum_id = intval($this->post_data[$id]['forum_id']);\r\n\r\n\t\t\t\t// Update the first/last topic info if we must\r\n\t\t\t\tif ($this->topic_data[$topic_id]['topic_deleted'] != 0)\r\n\t\t\t\t{\r\n\t\t\t\t\t// Since the topic was deleted, undelete it\r\n\t\t\t\t\t$this->undelete['t'][] = $topic_id;\r\n\r\n\t\t\t\t\tif ($this->topic_data[$topic_id]['topic_poster'] != $user->data['user_id'])\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tadd_log('mod', $forum_id, $topic_id, 'LOG_UNDELETE_TOPIC', $this->topic_data[$topic_id]['topic_title']);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tif ($this->post_data[$id]['poster_id'] != $user->data['user_id'])\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tadd_log('mod', $forum_id, $topic_id, 'LOG_UNDELETE_POST', $this->post_data[$id]['post_subject']);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif ($this->topic_data[$topic_id]['topic_first_post_id'] > $id)\r\n\t\t\t\t{\r\n\t\t\t\t\t$this->update_first_post_topic($topic_id);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif ($this->topic_data[$topic_id]['topic_last_post_id'] < $id)\r\n\t\t\t\t{\r\n\t\t\t\t\t$this->update_last_post_topic($topic_id);\r\n\t\t\t\t}\r\n\r\n\t\t\t\t$sql = 'UPDATE ' . TOPICS_TABLE . '\r\n\t\t\t\t\tSET topic_deleted_reply_count = topic_deleted_reply_count - 1\r\n\t\t\t\t\t\tWHERE topic_id = ' . $topic_id;\r\n\t\t\t\t$db->sql_query($sql);\r\n\t\t\t\t$this->topic_data[$topic_id]['topic_deleted_reply_count']--;\r\n\r\n\t\t\t\t// If there is a shadow topic, we will update it too.\r\n\t\t\t\tif (array_key_exists($topic_id, $this->shadow_topic_ids))\r\n\t\t\t\t{\r\n\t\t\t\t\t$sql = 'UPDATE ' . TOPICS_TABLE . '\r\n\t\t\t\t\t\tSET topic_deleted_reply_count = topic_deleted_reply_count - 1\r\n\t\t\t\t\t\t\tWHERE topic_id = ' . intval($this->shadow_topic_ids[$topic_id]);\r\n\t\t\t\t\t$db->sql_query($sql);\r\n\r\n\t\t\t\t\t$this->topic_data[$this->shadow_topic_ids[$topic_id]]['topic_deleted_reply_count']--;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// If the topic is a global announcement, do not attempt to do any updates to forums\r\n\t\t\t\tif ($this->topic_data[$topic_id]['topic_type'] != POST_GLOBAL)\r\n\t\t\t\t{\r\n\t\t\t\t\t// Update the last post info for the forum if we must\r\n\t\t\t\t\tif ($this->forum_data[$forum_id]['forum_last_post_id'] < $id)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$this->update_last_post_forum($forum_id);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (array_key_exists($topic_id, $this->shadow_topic_ids))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif ($this->forum_data[$this->topic_data[$this->shadow_topic_ids[$topic_id]]['forum_id']]['forum_last_post_id'] == $id)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t$this->update_last_post_forum($this->topic_data[$this->shadow_topic_ids[$topic_id]]['forum_id']);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t$sql = 'UPDATE ' . FORUMS_TABLE . '\r\n\t\t\t\t\t\tSET forum_deleted_reply_count = forum_deleted_reply_count - 1\r\n\t\t\t\t\t\t\tWHERE forum_id = ' . $forum_id;\r\n\t\t\t\t\t$db->sql_query($sql);\r\n\t\t\t\t\t$this->forum_data[$forum_id]['forum_deleted_reply_count']--;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t// Undelete the topics\r\n\t\t\t$this->undelete_topics();\r\n\t\t}\r\n\t}", "function wp_restore_post_revision($post_id, $revision_id)\n {\n }", "function jr_delete_all_options() {\r\n\tglobal $wpdb;\r\n\r\n\t$sql = \"DELETE FROM \". $wpdb->options\r\n\t\t.\" WHERE option_name like 'jr_%'\";\r\n\t$wpdb->query($sql);\r\n\r\n\techo __(\"All JobRoller options have been deleted.\", APP_TD);\r\n}", "function rp_deaktivierungs_hooks() {\n // -----------------------------------------------\n $spielerSeiteId = get_option('rp_results_parser_einstellungen_data')['spielerSeiteId'];\n $alleSpielerSeiteId = get_option('rp_results_parser_einstellungen_data')['alleSpielerSeiteId'];\n wp_delete_post($spielerSeiteId, true);\n wp_delete_post($alleSpielerSeiteId, true);\n\n\n // Loesche Tabellen rp_spieler_daten und rp_mannschaften_daten\n // -----------------------------------------------------------\n global $wpdb;\n $table = $wpdb->prefix . \"rp_spieler_daten\";\n $wpdb->query(\"DROP TABLE IF EXISTS $table\");\n\n $table = $wpdb->prefix . \"rp_mannschaften_daten\";\n $wpdb->query(\"DROP TABLE IF EXISTS $table\");\n\n\n // Loesche alle rp_spieler Posts\n // -----------------------------\n $posts_table = $wpdb->posts;\n $query = \"DELETE FROM {$posts_table} WHERE post_type = 'rp_spieler'\";\n $wpdb->query($query);\n\n\n // Loesche Taxnomoy-Term Relationen, rp_spieler_mannschaft Terms\n // und rp_spieler_mannschaft Taxonomy- TODO\n // -------------------------------------------------------------\n $terms = get_terms('rp_spieler_mannschaft', array('fields' => 'ids', 'hide_empty' => false));\n foreach ($terms as $value) {\n wp_delete_term($value, 'rp_spieler_mannschaft');\n }\n\n $wpdb->delete($wpdb->term_taxonomy, array('taxonomy' => 'rp_spieler_mannschaft'));\n\n\n // Loesche Einstellungen bei wp_options rp_results_parser_einstellungen\n // --------------------------------------------------------------------\n delete_option('rp_results_parser_einstellungen_data');\n}", "function wp_restore_post_revision($revision, $fields = \\null)\n {\n }", "public function emptytrash() {\n $pages = Page::onlyTrashed()->get(); \n foreach($pages as $page) {\n $page->slug->delete();\n $page->forceDelete();\n }\n return redirect()->route('admin.pages.trash');\n }", "public function hard_delete()\n\t{\n\t\tif (!$this->topic->topic_posts)\n\t\t{\n\t\t\tif (!$this->topic->load($this->topic_id))\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\t// Update the postcount for the topic\n\t\t$this->update_topic_postcount(true);\n\n\t\t// Set the visibility appropriately if no posts are visibile to the public/authors\n\t\t$flags = count::get_flags(access::PUBLIC_LEVEL);\n\t\tif (count::from_db($this->topic->topic_posts, $flags) <= 0)\n\t\t{\n\t\t\t// There are no posts visible to the public, change it to authors level access\n\t\t\t$this->topic->topic_access = access::AUTHOR_LEVEL;\n\n\t\t\t$flags = count::get_flags(access::AUTHOR_LEVEL);\n\t\t\tif (count::from_db($this->topic->topic_posts, $flags) <= 0)\n\t\t\t{\n\t\t\t\t// There are no posts visible to authors, change it to teams level access\n\t\t\t\t$this->topic->topic_access = access::TEAM_LEVEL;\n\t\t\t}\n\t\t}\n\n\t\t// Sync the first topic post if required\n\t\tif ($this->post_id == $this->topic->topic_first_post_id)\n\t\t{\n\t\t\t$this->topic->sync_first_post($this->post_id);\n\t\t}\n\n\t\t// Sync the last topic post if required\n\t\tif ($this->post_id == $this->topic->topic_last_post_id)\n\t\t{\n\t\t\t$this->topic->sync_last_post($this->post_id);\n\t\t}\n\n\t\t// Submit the topic to store the updated information\n\t\t$this->topic->submit();\n\n\t\t// Remove from the search index\n\t\t$this->search_manager->delete($this->post_type, $this->post_id);\n\n\t\t// @todo remove attachments and other things\n\n\t\t// Remove any attention items\n\t\t$sql = 'DELETE FROM ' . TITANIA_ATTENTION_TABLE . '\n\t\t\tWHERE attention_object_type = ' . ext::TITANIA_POST . '\n\t\t\t\tAND attention_object_id = ' . $this->post_id;\n\t\tphpbb::$db->sql_query($sql);\n\n\t\t// Decrement the user's postcount if we must\n\t\tif (!$this->post_deleted && $this->post_approved && in_array($this->post_type, titania::$config->increment_postcount))\n\t\t{\n\t\t\tphpbb::update_user_postcount($this->post_user_id, '-');\n\t\t}\n\n\t\t$this->forum_queue_hard_delete();\n\n\t\t// Initiate self-destruct mode\n\t\tparent::delete();\n\n\t\t// Update topics posted table\n\t\t$this->topic->update_posted_status('remove', $this->post_user_id);\n\n\t\t// Check if the topic is empty\n\t\t$flags = count::get_flags(access::TEAM_LEVEL, true, true);\n\t\tif (count::from_db($this->topic->topic_posts, $flags) <= 0)\n\t\t{\n\t\t\t$this->topic->delete();\n\t\t}\n\t}", "public function generate( $args = array(), $assoc_args = array() ) {\n\n\t\tglobal $wpdb;\n\n\t\tif ( ! empty( $assoc_args['post_id'] ) ) {\n\n\t\t\t$posts = array( $assoc_args['post_id'] );\n\n\t\t} else {\n\n\t\t\tif ( empty( $assoc_args['post_type'] ) ) {\n\t\t\t\t$post_types = $this->supports_revisions();\n\t\t\t} else {\n\t\t\t\t$post_types = explode( ',', $assoc_args['post_type'] );\n\t\t\t}\n\n\t\t\t$where = '';\n\t\t\tforeach ( $post_types as $post_type ) {\n\t\t\t\t$where .= $wpdb->prepare( ' OR post_type = %s', $post_type );\n\t\t\t}\n\n\t\t\t// get all IDs for posts in given post type(s).\n\t\t\t$posts = $wpdb->get_col( \"SELECT ID FROM $wpdb->posts WHERE 1=2 {$where}\" ); // phpcs:ignore WordPress.VIP.DirectDatabaseQuery.DirectQuery,WordPress.VIP.DirectDatabaseQuery.NoCaching,WordPress.DB.PreparedSQL.NotPrepared -- $where is prepared above\n\n\t\t}\n\n\t\t$total = count( $posts );\n\n\t\t$notify = \\WP_CLI\\Utils\\make_progress_bar( sprintf( 'Generating revisions for %d post(s)', $total ), $total );\n\n\t\t$count = isset( $args[0] ) ? intval( $args[0] ) : 15;\n\n\t\tforeach ( $posts as $post_id ) {\n\t\t\t$notify->tick();\n\n\t\t\t$p = get_post( $post_id );\n\t\t\t$content = $p->post_content;\n\t\t\tfor ( $i = 0; $i < $count; $i++ ) {\n\t\t\t\tif ( '&nbsp;' === substr( $content, -6 ) ) {\n\t\t\t\t\t$content = substr( $content, 0, -6 );\n\t\t\t\t} else {\n\t\t\t\t\t$content .= '&nbsp;';\n\t\t\t\t}\n\t\t\t\twp_update_post( 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}\n\t\t}\n\n\t\t$notify->finish();\n\t\tWP_CLI::success( 'Finished generating revisions.' );\n\n\t}", "function wp_delete_post($postid = 0, $force_delete = \\false)\n {\n }", "public function destroy($hard = false)\n {\n if ($hard) {\n // delete all postmeta\n foreach ($this->getAllMeta() as $key => $value) {\n delete_post_meta($this->id, $key, $value);\n }\n\n // delete all post attachments\n foreach ($this->getAttachments('all', $this->id) as $a) {\n wp_delete_attachment($a->ID, true);\n }\n }\n\n return wp_delete_post($this->id, true);\n }", "function _wp_delete_customize_changeset_dependent_auto_drafts($post_id)\n {\n }", "public function deleteAll( $args = array() )\n\t{\n\t\t$terms = $this->retrieveAll( array( 'fields' => 'ids' ) );\n\n\t\tif( false !== $terms ) {\n\t\t\tforeach ( $terms as $termId ) {\n\t\t\t\twp_delete_term( $termId, $this->taxomomyStr, $args );\n\t\t\t}\n\t\t}\t\n\t}", "function rest_delete()\n{\n global $build;\n add_log('Build #' . $build->Id . ' removed manually', 'buildAPI');\n remove_build($build->Id);\n}", "public function onDelete($objDc)\n\t{\n\t\t// just reset relation if reset is called\n\t\tif($this->strAction == 'reset')\n\t\t{\n\t\t\t$objModel = new DraftableModel($objDc->activeRecord, false, $this->strTable);\n\t\t\t\n\t\t\tif($objModel->hasRelated())\n\t\t\t{\n\t\t\t\t$objReleated = $objModel->getRelated();\n\t\t\t\t$objReleated->draftRelated = 0;\n\t\t\t\t$objReleated->save();\n\t\t\t}\n\t\t\t\n\t\t\treturn;\n\t\t}\n\t\telseif($this->blnDraftMode)\n\t\t{\n\t\t\t// delete all mode, do nothing here. applyDraft is handling the delete task\n\t\t\tif(Input::post('IDS') != '')\n\t\t\t{\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\t$objModel = new DraftableModel($objDc->activeRecord, false, $this->strTable);\n\n\t\t\t// delete new elements\n\t\t\tif($objModel->hasState('new'))\n\t\t\t{\n\t\t\t\treturn;\n\t\t\t}\n\t\t\telseif($objModel->hasState('delete'))\n\t\t\t{\n\t\t\t\t// no state set, let's delete it\n\t\t\t\tif(!$objModel->hasState('visibility') && !$objModel->hasState('modified') && !$objModel->hasState('sorted'))\n\t\t\t\t{\n\t\t\t\t\t$objRelated = $objModel->getRelated();\n\t\t\t\t\t\n\t\t\t\t\tif($objRelated !== null)\n\t\t\t\t\t{\n\t\t\t\t\t\t$objRelated->draftRelated = 0;\n\t\t\t\t\t\t$objRelated->save();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\t$objModel->removeState('delete');\n\t\t\t}\n\t\t\telse \n\t\t\t{\n\t\t\t\t$objModel->setState('delete');\n\t\t\t}\n\t\t\t\n\t\t\t// save and redirect so element is not deleted\n\t\t\t$objModel->save();\n\t\t\t$this->redirect($this->getReferer());\n\t\t}\n\t\t\n\t\t// add draft element to tl_undo as well\n\t\telseif($objDc->activeRecord->draftRelated > 0)\n\t\t{\n\t\t\t// get last undo\n\t\t\t$objUndo = $this->Database->prepare('SELECT * FROM tl_undo WHERE fromTable=? AND pid=? ORDER BY id DESC')->limit(1)->executeUncached($this->strTable, $this->User->id);\n\n\t\t\t// no undo set found, just delete it\n\t\t\tif($objUndo->numRows < 1)\n\t\t\t{\n\t\t\t\t$objDc->setId($objDc->activeRecord->draftRelated);\n\t\t\t\t$objDc->delete(true);\n\t\t\t\t$objDc->setId($objDc->activeRecord->id);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\t// store draft in tl_undo\n\t\t\t// TODO: handle ctable elements\n\t\t\t$objSave = DraftableModel::findOneBy($this->strTable, 'draftRelated', $objDc->id);\n\t\t\t\n\t\t\tif($objSave === null)\n\t\t\t{\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\t$arrData = unserialize($objUndo->data);\n\t\t\t$arrData[$this->strTable][$objSave->id] = $objSave->row();\n\t\t\n\t\t\t$arrSet = array\n\t\t\t(\n\t\t\t\t'tstamp'\t=> time(),\n\t\t\t\t'data'\t\t=> $arrData,\n\t\t\t\t'affectedRows'\t=> $objUndo->affectedRows+1,\n\t\t\t);\n\t\t\t\n\t\t\t$this->Database->prepare('UPDATE tl_undo %s WHERE id=?')->set($arrSet)->execute($objUndo->id);\n\t\t\t$objSave->delete();\n\t\t}\n\t}", "public static function deleteAll($obj) {\n\t\treturn DB::table(Version::getVersionsTable())->where('object_id', '=', $obj->attributes['id'])->where('object_table', '=', strtolower(get_class($obj)))->delete();\n\t}", "public function banearDeLasRevisiones() {\n\t\tglobal $wpdb;\n\t\tif ($this->getUser()->isAdmin()) {\n\t\t\tthrow new \\Exception('No puedes banear a un admin', 402);\n\t\t}\n\t\t$isBan = $wpdb->get_var($wpdb->prepare('select count(*)\n\t\t\t\tfrom wp_revisiones_ban\n\t\t\t\twhere user_id = %d\n\t\t\t\tand status = %d;', $this->user_id, self::BANEADO));\n\t\tif (! $isBan) {\n\t\t\treturn $wpdb->query($wpdb->prepare('\n\t\t\t\tINSERT wp_revisiones_ban (user_id, editor_id, created_at, updated_at)\n\t\t\t\tVALUES (%d, %d, null, null);', $this->user_id, $this->editor_id));\n\t\t}\n\t\treturn $wpdb->query($wpdb->prepare('\n\t\t\t\tUPDATE wp_revisiones_ban\n\t\t\t\tSET user_id = %d, editor_id = %;', $this->user_id, $this->editor_id));\n\t}", "public function reset( $args, $assoc_args ) {\n\t\tglobal $wpdb;\n\t\tWP_CLI::confirm( 'Are you sure you want to empty all amp_validated_url posts and amp_validation_error taxonomy terms?', $assoc_args );\n\n\t\t// Delete all posts.\n\t\t$count = $wpdb->get_var( $wpdb->prepare( \"SELECT COUNT(*) FROM $wpdb->posts WHERE post_type = %s\", AMP_Validated_URL_Post_Type::POST_TYPE_SLUG ) );\n\t\t$query = $wpdb->prepare( \"SELECT ID FROM $wpdb->posts WHERE post_type = %s\", AMP_Validated_URL_Post_Type::POST_TYPE_SLUG );\n\t\t$posts = new WP_CLI\\Iterators\\Query( $query, 10000 );\n\n\t\t$progress = WP_CLI\\Utils\\make_progress_bar(\n\t\t\tsprintf( 'Deleting %d amp_validated_url posts...', $count ),\n\t\t\t$count\n\t\t);\n\n\t\tforeach ( $posts as $post ) {\n\t\t\twp_delete_post( $post->ID, true );\n\t\t\t$progress->tick();\n\t\t}\n\n\t\t$progress->finish();\n\n\t\t// Delete all terms. Note that many terms should get deleted when their post counts go to zero above.\n\t\t$count = $wpdb->get_var( $wpdb->prepare( \"SELECT COUNT( * ) FROM $wpdb->term_taxonomy WHERE taxonomy = %s\", AMP_Validation_Error_Taxonomy::TAXONOMY_SLUG ) );\n\t\t$query = $wpdb->prepare( \"SELECT term_id FROM $wpdb->term_taxonomy WHERE taxonomy = %s\", AMP_Validation_Error_Taxonomy::TAXONOMY_SLUG );\n\t\t$terms = new WP_CLI\\Iterators\\Query( $query, 10000 );\n\n\t\t$progress = WP_CLI\\Utils\\make_progress_bar(\n\t\t\tsprintf( 'Deleting %d amp_taxonomy_error terms...', $count ),\n\t\t\t$count\n\t\t);\n\n\t\tforeach ( $terms as $term ) {\n\t\t\twp_delete_term( $term->term_id, AMP_Validation_Error_Taxonomy::TAXONOMY_SLUG );\n\t\t\t$progress->tick();\n\t\t}\n\n\t\t$progress->finish();\n\n\t\tWP_CLI::success( 'All AMP validation data has been removed.' );\n\t}", "public function recoverysoftdelete($id)\n {\n $post = Post::onlyTrashed()->find($id);\n\n $post->restore();\n \n return $this->indexsoftdelete();\n\n }", "public function actionBulkTrash() {\n\n if (Yii::$app->request->post('selection')) {\n\n $where = ['id' => Yii::$app->request->post('selection', [])];\n $this->modelViaClass::updateAll(['status_del' => $this->modelClass::STATUS_DEL_TRASH, 'deleted_at' => time()], $where);\n }\n }", "function delete_all()\n {\n $this->Admin_model->package = 'POSTS_PKG';\n $this->Admin_model->procedure = 'POST_DELETE';\n\n\n /*if ($_SERVER['REQUEST_METHOD'] == 'POST') {*/\n for ($i = 0; $i < count($this->p_delete); $i++) {\n $this->Admin_model->package = 'POSTS_PKG';\n $this->Admin_model->delete($this->p_delete[$i]);\n //Modules::run('admin/Post_Categories/delete', $this->p_delete[$i]);\n }\n\n /* } else {\n redirect('admin/Posts/display_cat');\n }\n redirect('admin/Posts/display_cat');*/\n }", "public function deleteAll();", "public function deleteAll();", "public function deleteAll();", "public function run($request) {\n\t\t$posts = BlogPost::get()->filter(array('WordpressID:GreaterThan' => 0));\n\t\t$count = 0;\n\t\tforeach($posts as $post) {\n\t\t\t$count++;\n\t\t\tif (class_exists('Comments')) {\n\t\t\t\tforeach($post->AllComments() as $comment) {\n\t\t\t\t\t$comment->delete();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tforeach ($post->Tags() as $tag) {\n\t\t\t\t$post->Tags()->remove($tag);\n\t\t\t}\n\t\t\tforeach ($post->Categories() as $cat) {\n\t\t\t\t$post->Categories()->remove($cat);\n\t\t\t}\n\t\t\tforeach ($post->Authors() as $a) {\n\t\t\t\t$post->Authors()->remove($a);\n\t\t\t}\n\t\t\t$post->deleteFromStage('Stage');\n\t\t\t$post->deleteFromStage('Live');\n\t\t}\n\t\techo 'Deleted ' . $count . ' posts';\n\t}", "function lightboxPhotoswipeUninstall()\n{\n global $wpdb;\n\n if (is_multisite()) {\n $blog_ids = $wpdb->get_col('SELECT blog_id FROM '.$wpdb->blogs);\n foreach ($blog_ids as $blog_id) {\n switch_to_blog($blog_id);\n lightboxPhotoswipeDeleteTables();\n delete_option('lightbox_photoswipe_db_version');\n delete_option('lightbox_photoswipe_share_facebook');\n delete_option('lightbox_photoswipe_share_pinterest');\n delete_option('lightbox_photoswipe_share_twitter');\n delete_option('lightbox_photoswipe_share_download');\n delete_option('lightbox_photoswipe_close_on_scroll');\n delete_option('lightbox_photoswipe_close_on_drag');\n delete_option('lightbox_photoswipe_show_counter');\n delete_option('lightbox_photoswipe_skin');\n delete_option('lightbox_photoswipe_show_zoom');\n delete_option('lightbox_photoswipe_show_caption');\n delete_option('lightbox_photoswipe_spacing');\n delete_option('lightbox_photoswipe_loop');\n delete_option('lightbox_photoswipe_pinchtoclose');\n delete_option('lightbox_photoswipe_usepostdata');\n delete_option('lightbox_photoswipe_show_fullscreen');\n restore_current_blog();\n }\n } else {\n lightboxPhotoswipeDeleteTables();\n delete_option('lightbox_photoswipe_db_version');\n }\n}", "public function clearAllReferences($deep = false)\n {\n if ($deep) {\n if ($this->collRIssuesAllplugins) {\n foreach ($this->collRIssuesAllplugins as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->collRIssuesNarrationplugins) {\n foreach ($this->collRIssuesNarrationplugins as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->collRIssuesRtfplugins) {\n foreach ($this->collRIssuesRtfplugins as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->collRIssuesSingleplugins) {\n foreach ($this->collRIssuesSingleplugins as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->collRIssuesXmlplugins) {\n foreach ($this->collRIssuesXmlplugins as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->collRRightsForissues) {\n foreach ($this->collRRightsForissues as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->collContributionss) {\n foreach ($this->collContributionss as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->collAllPlugins) {\n foreach ($this->collAllPlugins as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->collNarrationPlugins) {\n foreach ($this->collNarrationPlugins as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->collRtfPlugins) {\n foreach ($this->collRtfPlugins as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->collSinglePlugins) {\n foreach ($this->collSinglePlugins as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->collXmlPlugins) {\n foreach ($this->collXmlPlugins as $o) {\n $o->clearAllReferences($deep);\n }\n }\n if ($this->collRightss) {\n foreach ($this->collRightss as $o) {\n $o->clearAllReferences($deep);\n }\n }\n } // if ($deep)\n\n $this->collRIssuesAllplugins = null;\n $this->collRIssuesNarrationplugins = null;\n $this->collRIssuesRtfplugins = null;\n $this->collRIssuesSingleplugins = null;\n $this->collRIssuesXmlplugins = null;\n $this->collRRightsForissues = null;\n $this->collContributionss = null;\n $this->collAllPlugins = null;\n $this->collNarrationPlugins = null;\n $this->collRtfPlugins = null;\n $this->collSinglePlugins = null;\n $this->collXmlPlugins = null;\n $this->collRightss = null;\n $this->auserSysRef = null;\n $this->aBooks = null;\n }", "public static function purgeAll(array $opts = [])\n {\n static::getCollection()->deleteMany(['_deleted' => true]);\n }", "function kala_revision_batch_delete_form_submit($form, &$form_state) {\n // Initalize vars.\n $operations = array();\n $values = $form_state['values'];\n\n // Grab the string date.\n if (isset($values['date'])) {\n $time = strtotime($values['date']);\n }\n\n // If we have the time, lets do this!\n if (isset($time)) {\n // Grab all vids before our time stamp.\n $sql = \"SELECT r.vid FROM {node_revision} r WHERE r.timestamp < :time ORDER BY r.timestamp DESC;\";\n $query = db_query($sql, array(':time' => $time));\n $vids = $query->fetchAllKeyed(0,0);\n $count = count($vids);\n\n // Throw our chunks into the batch.\n $chunks = array_chunk($vids, 50);\n foreach ($chunks as $chunk) {\n $operations[] = array(\"kala_revision_batch_delete_batch_process\", array($chunk, $count));\n }\n\n // Engage.\n $batch = array(\n 'title' => t('Deleting Revisions...'),\n 'init_message' => t('Grabbing Revisions to Delete.'),\n 'operations' => $operations,\n 'finished' => 'kala_revision_batch_delete_batch_finished',\n 'file' => drupal_get_path('module', 'kala_revision_batch_delete') . '/includes/kala_revision_batch_delete.batch.inc',\n );\n\n batch_set($batch);\n }\n}", "public function trashed_posts()\n\t{\n\t\t$data['posts'] = $this->common_model->getAllData('blog_post','*','',array('deleted_at !=' => 'Null'));\n\n\t\t$data['page'] = \"blog/trashed_posts\";\n \t$this->template->template_view($data);\t\n\t}", "function deactivate() {\r\n delete_option(\"bvd_post_version\");\t\r\n delete_option(\"bvd_post_type\");\r\n delete_option(\"bvd_connection\");\r\n delete_option(\"bvd_show_version\");\r\n delete_option(\"bvd_favorites\");\r\n }", "public function status( $args = array(), $assoc_args = array() ) {\n\n\t\tif ( defined( 'WP_POST_REVISIONS' ) ) {\n\t\t\tif ( true === WP_POST_REVISIONS ) {\n\t\t\t\tWP_CLI::success( 'WP_POST_REVISIONS is true. Keeps all revisions.' );\n\t\t\t} else {\n\t\t\t\tWP_CLI::success( sprintf( 'Keeping the last %d revisions', WP_POST_REVISIONS ) );\n\t\t\t}\n\t\t} else {\n\t\t\tWP_CLI::success( 'WP_POST_REVISIONS is undefined.' );\n\t\t}\n\n\t}", "public function status( $args = array(), $assoc_args = array() ) {\n\n\t\tif ( defined( 'WP_POST_REVISIONS' ) ) {\n\t\t\tif ( true === WP_POST_REVISIONS ) {\n\t\t\t\tWP_CLI::success( 'WP_POST_REVISIONS is true. Keeps all revisions.' );\n\t\t\t} else {\n\t\t\t\tWP_CLI::success( sprintf( 'Keeping the last %d revisions', WP_POST_REVISIONS ) );\n\t\t\t}\n\t\t} else {\n\t\t\tWP_CLI::success( 'WP_POST_REVISIONS is undefined.' );\n\t\t}\n\n\t}", "public function clearAllReferences($deep = false)\n\t{\n\t\tif ($deep) {\n\t\t\tif ($this->collPostBadges) {\n\t\t\t\tforeach ((array) $this->collPostBadges as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collInappropriates) {\n\t\t\t\tforeach ((array) $this->collInappropriates as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collPostsRelatedByReplicaPostId) {\n\t\t\t\tforeach ((array) $this->collPostsRelatedByReplicaPostId as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collPostPollAnswers) {\n\t\t\t\tforeach ((array) $this->collPostPollAnswers as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collPostPollVotes) {\n\t\t\t\tforeach ((array) $this->collPostPollVotes as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collPostVisitss) {\n\t\t\t\tforeach ((array) $this->collPostVisitss as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collPostDailyStatss) {\n\t\t\t\tforeach ((array) $this->collPostDailyStatss as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($this->collPostIndexs) {\n\t\t\t\tforeach ((array) $this->collPostIndexs as $o) {\n\t\t\t\t\t$o->clearAllReferences($deep);\n\t\t\t\t}\n\t\t\t}\n\t\t} // if ($deep)\n\n\t\t$this->collPostBadges = null;\n\t\t$this->collInappropriates = null;\n\t\t$this->collPostsRelatedByReplicaPostId = null;\n\t\t$this->collPostPollAnswers = null;\n\t\t$this->collPostPollVotes = null;\n\t\t$this->collPostVisitss = null;\n\t\t$this->collPostDailyStatss = null;\n\t\t$this->collPostIndexs = null;\n\t\t\t$this->aPartie = null;\n\t\t\t$this->aPostRelatedByReplicaPostId = null;\n\t}", "public static function trashAll($chapterIDs, $reason = '') {\n if (empty($chapterIDs))\n return;\n\n $sql = \"UPDATE \tsls\" . SLS_N . \"_chapter\n\t\t\tSET\tisDeleted = 1,\n\t\t\t\tdeleteTime = \" . TIME_NOW . \",\n\t\t\t\tdeletedBy = '\" . escapeString(WCF::getUser()->username) . \"',\n\t\t\t\tdeletedByID = \" . WCF::getUser()->userID . \",\n\t\t\t\tdeleteReason = '\" . escapeString($reason) . \"',\n\t\t\t\tisDisabled = 0\n\t\t\tWHERE \tchapterID IN (\" . $chapterIDs . \")\";\n WCF::getDB()->sendQuery($sql);\n }", "public function deleteAll(): void;", "function iron_delete_post ( $post_id ) {\n\tglobal $wpdb;\n\n\tif ( $post = $wpdb->get_row($wpdb->prepare(\"SELECT * FROM $wpdb->posts WHERE ID = %d\", $post_id)) )\n\t{\n\t\tif ( 'page' == $post->post_type) {\n\t\t\t// if the page is defined in option page_on_front or post_for_posts,\n\t\t\t// adjust the corresponding options\n\t\t\tif ( get_iron_option('page_for_albums') == $post_id ) {\n\t\t\t\treset_iron_option('page_for_albums');\n\t\t\t}\n\t\t\tif ( get_iron_option('page_for_events') == $post_id ) {\n\t\t\t\treset_iron_option('page_for_events');\n\t\t\t}\n\t\t\tif ( get_iron_option('page_for_videos') == $post_id ) {\n\t\t\t\treset_iron_option('page_for_videos');\n\t\t\t}\n\t\t\tif ( get_iron_option('page_for_photos') == $post_id ) {\n\t\t\t\treset_iron_option('page_for_photos');\n\t\t\t}\n\t\t}\n\t}\n}", "public static function deleteAll($threadIDs, $deletePosts = true, $reason = '') {\n\t\tif (empty($threadIDs)) return;\n\t\t\n\t\t$trashIDs = '';\n\t\t$deleteIDs = '';\n\t\tif (THREAD_ENABLE_RECYCLE_BIN) {\n\t\t\t// recylce bin enabled\n\t\t\t// first of all we check which threads are already in recylce bin\n\t\t\t$sql = \"SELECT \tthreadID, isDeleted\n\t\t\t\tFROM \twbb\".WBB_N.\"_thread\n\t\t\t\tWHERE \tthreadID IN (\".$threadIDs.\")\";\n\t\t\t$result = WCF::getDB()->sendQuery($sql);\n\t\t\twhile ($row = WCF::getDB()->fetchArray($result)) {\n\t\t\t\tif ($row['isDeleted']) {\n\t\t\t\t\t// thread in recylce bin\n\t\t\t\t\t// delete completely\n\t\t\t\t\tif (!empty($deleteIDs)) $deleteIDs .= ',';\n\t\t\t\t\t$deleteIDs .= $row['threadID'];\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t// move thread to recylce bin\n\t\t\t\t\tif (!empty($trashIDs)) $trashIDs .= ',';\n\t\t\t\t\t$trashIDs .= $row['threadID'];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\t// no recylce bin\n\t\t\t// delete all threads completely\n\t\t\t$deleteIDs = $threadIDs;\n\t\t}\n\t\t\n\t\tself::trashAll($trashIDs, $deletePosts, $reason);\n\t\tself::deleteAllCompletely($deleteIDs, $deletePosts);\n\t}", "function wp_idolondemand_delete_post()\n{\n}", "public function trash_changeset_post($post)\n {\n }", "function _wp_delete_orphaned_draft_menu_items()\n {\n }", "public static function deleteAll($chapterIDs, $updateUserStats = true, $reason = '') {\n if (empty($chapterIDs))\n return;\n\n $trashIDs = '';\n $deleteIDs = '';\n if (STORY_ENABLE_RECYCLE_BIN) {\n // recylce bin enabled\n // first of all we check which chapters are already in recylce bin\n $sql = \"SELECT \tchapterID, isDeleted\n\t\t\t\tFROM \tsls\" . SLS_N . \"_chapter\n\t\t\t\tWHERE \tchapterID IN (\" . $chapterIDs . \")\";\n $result = WCF::getDB()->sendQuery($sql);\n while ($row = WCF::getDB()->fetchArray($result)) {\n if ($row['isDeleted']) {\n // chapter in recylce bin\n // delete completely\n if (!empty($deleteIDs))\n $deleteIDs .= ',';\n $deleteIDs .= $row['chapterID'];\n }\n else {\n // move chapter to recylce bin\n if (!empty($trashIDs))\n $trashIDs .= ',';\n $trashIDs .= $row['chapterID'];\n }\n }\n }\n else {\n // no recylce bin\n // delete all stories completely\n $deleteIDs = $chapterIDs;\n }\n\n self::trashAll($trashIDs, $reason);\n self::deleteAllCompletely($deleteIDs, true, true, $updateUserStats);\n\n // reset first chapter id\n self::resetFirstChapterID($chapterIDs);\n }", "public function all() {\n\t\t$this->delete_all_plugin_options();\n\t\t$this->delete_all_user_metas();\n\t\t$this->delete_all_transients();\n\n\t\t// Clear options cache.\n\t\twp_cache_delete( 'alloptions', 'options' );\n\t}", "public static function deleteAll($options=array())\n {\n\n $solr = self::connect($options);\n\n $solr->deleteByQuery('*:*');\n $solr->commit();\n $solr->optimize();\n\n }", "function cxense_remove_all_settings() {\n foreach(cxense_get_settings() as $setting)\n delete_option($setting['name']);\n}", "function delete_ch8bt_bug() {\r\n\t// Check that user has proper security level\r\n\tif ( !current_user_can( 'manage_options' ) ) {\r\n\t\twp_die( 'Not allowed' );\r\n\t}\r\n\r\n\t// Check if nonce field is present\r\n\tcheck_admin_referer( 'ch8bt_deletion' );\r\n\r\n\t// If bugs are present, cycle through array and call SQL\r\n\t// command to delete entries one by one\r\n\tif ( !empty( $_POST['bugs'] ) ) {\r\n\t\t// Retrieve array of bugs IDs to be deleted\r\n\t\t$bugs_to_delete = $_POST['bugs'];\r\n\r\n\t\tglobal $wpdb;\r\n\r\n\t\tforeach ( $bugs_to_delete as $bug_to_delete ) {\r\n\t\t\t$query = 'DELETE from ' . $wpdb->get_blog_prefix() . 'ch8_bug_data ';\r\n\t\t\t$query .= 'WHERE bug_id = %d';\r\n\t\t\t$wpdb->query( $wpdb->prepare( $query, intval( $bug_to_delete ) ) );\r\n\t\t}\r\n\t}\r\n\r\n\t// Redirect the page to the admin form\r\n\twp_redirect( add_query_arg( 'page', 'ch8bt-bug-tracker', admin_url( 'options-general.php' ) ) );\r\n\texit;\r\n}", "public function softdelete($id)\n {\n $post = Post::find($id);\n\n // Faz o Delete\n $post->delete();\n\n // Retorna a lista\n return $this->index();\n }", "function deleteAllRevisionsByReviewRound($submissionId, $stageId, $reviewRoundId) {\n\t\t// Remove currently assigned review files.\n\t\treturn $this->update('DELETE FROM review_round_files\n\t\t\t\tWHERE '.$this->getSubmissionEntityName().'_id = ? AND stage_id = ? AND review_round_id = ?',\n\t\t\t\tarray((int)$submissionId, (int)$stageId, (int)$reviewRoundId));\n\t}", "public function delete()\n {\n $post['id'] = $this->request->getParameter('id'); // récupérer le paramètre de l'ID\n $this->post->deletePost($post['id']);\n $this->redirect(\"admin\", \"chapters\"); // une fois le post supprimé, je redirige vers la vue chapters\n }", "public function restoretrash() {\n $pages = Page::onlyTrashed()->get(); \n foreach($pages as $page) {\n $page->restore();\n }\n return redirect()->route('admin.pages');\n }", "function wp_get_post_revisions($post = 0, $args = \\null)\n {\n }", "public function fulldelete() {\n if ($this->id && !$this->elements) {\n $this->elements = self::get_instances(array('setid' => $this->id));\n }\n\n foreach ($this->elements as $elm) {\n $elm->delete();\n }\n\n parent::delete();\n }", "function deleteAllRevisionsBySubmissionId($submissionId, $fileStage = null) {\n\t\treturn $this->_deleteInternally($submissionId, $fileStage);\n\t}", "function delete_glossary_pages() {\n\t$options = get_option('PPThesaurus');\n\t$pageId = $options['pageId'];\n\n\t// Delete glossary pages if it is set\n\tif ($pageId > 0) {\n\t\t// Get and delete all sub pages\n\t\t$subPages = get_pages(array('child_of' => $pageId));\n\t\tforeach ($subPages as $subPage) {\n\t\t\twp_delete_post($subPage->ID, TRUE);\n\t\t}\n\n\t\t// Delete the main glossary page\n\t\twp_delete_post($pageId, TRUE);\n\t}\n}", "public function indexsoftdelete()\n {\n $posts = Post::onlyTrashed()->get();\n \n // Passa os registos para a View\n return view(\"post.indexsoftdelete\",[\"posts\" => $posts]);\n\n }", "public function deleteContentAndCopyLivePage() {}", "function wp_untrash_post($post_id = 0)\n {\n }", "function delete_book( $id ) {\r\n\treturn wp_delete_post($id);\r\n}", "#[CLI\\Command(name: self::DELETE, aliases: ['wd-del', 'wd-delete', 'wd', 'watchdog-delete'])]\n #[CLI\\Argument(name: 'substring', description: 'Delete all log records with this text in the messages.')]\n #[CLI\\Option(name: 'severity', description: 'Delete messages of a given severity level.')]\n #[CLI\\Option(name: 'type', description: 'Delete messages of a given type.')]\n #[CLI\\Usage(name: 'drush watchdog:delete', description: 'Delete all messages.')]\n #[CLI\\Usage(name: 'drush watchdog:delete 64', description: 'Delete messages with id 64.')]\n #[CLI\\Usage(name: 'drush watchdog:delete \"cron run succesful\"', description: 'Delete messages containing the string \"cron run succesful\".')]\n #[CLI\\Usage(name: '@usage drush watchdog:delete --severity=Notice', description: 'Delete all messages with a severity of notice.')]\n #[CLI\\Usage(name: 'drush watchdog:delete --type=cron', description: 'Delete all messages of type cron.')]\n #[CLI\\ValidateModulesEnabled(modules: ['dblog'])]\n #[CLI\\Complete(method_name_or_callable: 'watchdogComplete')]\n #[CLI\\Bootstrap(level: DrupalBootLevels::FULL)]\n public function delete($substring = '', $options = ['severity' => self::REQ, 'type' => self::REQ]): void\n {\n if ($substring == 'all') {\n $this->output()->writeln(dt('All watchdog messages will be deleted.'));\n if (!$this->io()->confirm(dt('Do you really want to continue?'))) {\n throw new UserAbortException();\n }\n $ret = $this->connection->truncate('watchdog')->execute();\n $this->logger()->success(dt('All watchdog messages have been deleted.'));\n } elseif (is_numeric($substring)) {\n $this->output()->writeln(dt('Watchdog message #!wid will be deleted.', ['!wid' => $substring]));\n if (!$this->io()->confirm(dt('Do you want to continue?'))) {\n throw new UserAbortException();\n }\n $affected_rows = $this->connection->delete('watchdog')->condition('wid', $substring)->execute();\n if ($affected_rows == 1) {\n $this->logger()->success(dt('Watchdog message #!wid has been deleted.', ['!wid' => $substring]));\n } else {\n throw new \\Exception(dt('Watchdog message #!wid does not exist.', ['!wid' => $substring]));\n }\n } else {\n if ((empty($substring)) && (!isset($options['type'])) && (!isset($options['severity']))) {\n throw new \\Exception(dt('No options provided.'));\n }\n $where = $this->where($options['type'], $options['severity'], $substring, 'OR');\n $this->output()->writeln(dt('All messages with !where will be deleted.', ['!where' => preg_replace(\"/message LIKE %$substring%/\", \"message body containing '$substring'\", strtr($where['where'], $where['args']))]));\n if (!$this->io()->confirm(dt('Do you want to continue?'))) {\n throw new UserAbortException();\n }\n $affected_rows = $this->connection->delete('watchdog')\n ->where($where['where'], $where['args'])\n ->execute();\n $this->logger()->success(dt('!affected_rows watchdog messages have been deleted.', ['!affected_rows' => $affected_rows]));\n }\n }", "function delete_blog_option($id, $option)\n {\n }", "function dodelete()\n\t{\n\t\tglobal $db;\n\n\t\t$sqls = array(\n\t\t\t\"DELETE FROM preorders WHERE pre_preorderID=$this->preorderID\",\n\t\t\t\"DELETE FROM preorder_customers WHERE prc_preorderID=$this->preorderID\"\n\t\t);\n\n\t\twhile (list($a,$sql) = each($sqls))\n\t\t{\n\t\t\tmysql_query($sql,$db);\n\t\t\t$this->error->mysql(__FILE__,__LINE__);\n\t\t}\n\t}", "public function killOrphansAfterMigration()\n {\n for($i = 0; $i < 6000; $i++)\n {\n if(!Module::getPrefix($i)) continue;\n $result = mysql_query(\"SELECT * FROM (SELECT * FROM locations WHERE game_id = {$i}) AS game_locations LEFT JOIN (SELECT * FROM qrcodes WHERE game_id = {$i}) AS game_qrcodes ON game_locations.location_id = game_qrcodes.link_id WHERE link_id IS NULL\");\n while($table = mysql_fetch_object($result))\n QRCodes::createQRCode($i, 'Location', $table->location_id);\n }\n\n //Delete QR Codes who don't have locations\n for($i = 0; $i < 6000; $i++)\n {\n if(!Module::getPrefix($i)) continue;\n $result = mysql_query(\"SELECT * FROM (SELECT * FROM qrcodes WHERE game_id = {$i}) AS game_qrcodes LEFT JOIN (SELECT * FROM locations WHERE game_id = {$i}) AS game_locations ON game_qrcodes.link_id = game_locations.location_id WHERE location_id IS NULL\");\n while($table = mysql_fetch_object($result))\n mysql_query(\"DELETE FROM qrcodes WHERE game_id = {$i} AND qr_code_id = \".$table->qr_code_id);\n }\n\n //Delete locations who don't have objects\n for($i = 0; $i < 6000; $i++)\n {\n if(!Module::getPrefix($i)) continue;\n //'Node','Event','Item','Npc','WebPage','AugBubble','PlayerNote'\n $query = \"SELECT locations.* FROM (SELECT * FROM locations WHERE game_id = {$i}) AS locations \n LEFT JOIN (SELECT * FROM nodes WHERE game_id = {$i}) AS nodes ON locations.type = 'Node' AND locations.type_id = nodes.node_id\n LEFT JOIN (SELECT * FROM items WHERE game_id = {$i}) AS items ON locations.type = 'Item' AND locations.type_id = items.item_id\n LEFT JOIN (SELECT * FROM npcs WHERE game_id = {$i}) AS npcs ON locations.type = 'Npc' AND locations.type_id = npcs.npc_id\n LEFT JOIN (SELECT * FROM web_pages WHERE game_id = \".$i.\") AS web_pages ON locations.type = 'WebPage' AND locations.type_id = web_pages.web_page_id\n LEFT JOIN (SELECT * FROM aug_bubbles WHERE game_id = \".$i.\") AS aug_bubbles ON locations.type = 'AugBubble' AND locations.type_id = aug_bubbles.aug_bubble_id\n LEFT JOIN (SELECT * FROM notes WHERE game_id = \".$i.\") AS notes ON locations.type = 'PlayerNote' AND locations.type_id = notes.note_id\n WHERE \n nodes.node_id IS NULL AND\n items.item_id IS NULL AND\n npcs.npc_id IS NULL AND\n web_pages.web_page_id IS NULL AND\n aug_bubbles.aug_bubble_id IS NULL AND\n notes.note_id IS NULL\";\n $result = mysql_query($query);\n //echo $query.\"\\n\";\n while($table = mysql_fetch_object($result))\n mysql_query(\"DELETE FROM locations WHERE game_id = {$i} AND location_id = \".$table->location_id);\n }\n\n //Deletes Spawnable data without an object\n for($i = 0; $i < 6000; $i++)\n {\n if(!Module::getPrefix($i)) continue;\n //'Node','Event','Item','Npc','WebPage','AugBubble','PlayerNote'\n $query = \"SELECT spawnables.* FROM (SELECT * FROM spawnables WHERE game_id = \".$i.\") AS spawnables\n LEFT JOIN (SELECT * FROM nodes WHERE game_id = {$i}) AS nodes ON spawnables.type = 'Node' AND spawnables.type_id = nodes.node_id\n LEFT JOIN (SELECT * FROM items WHERE game_id = {$i}) AS items ON spawnables.type = 'Item' AND spawnables.type_id = items.item_id\n LEFT JOIN (SELECT * FROM npcs WHERE game_id = {$i}) AS npcs ON spawnables.type = 'Npc' AND spawnables.type_id = npcs.npc_id\n LEFT JOIN (SELECT * FROM web_pages WHERE game_id = \".$i.\") AS web_pages ON spawnables.type = 'WebPage' AND spawnables.type_id = web_pages.web_page_id\n LEFT JOIN (SELECT * FROM aug_bubbles WHERE game_id = \".$i.\") AS aug_bubbles ON spawnables.type = 'AugBubble' AND spawnables.type_id = aug_bubbles.aug_bubble_id\n LEFT JOIN (SELECT * FROM notes WHERE game_id = \".$i.\") AS notes ON spawnables.type = 'PlayerNote' AND spawnables.type_id = notes.note_id\n WHERE \n nodes.node_id IS NULL AND\n items.item_id IS NULL AND\n npcs.npc_id IS NULL AND\n web_pages.web_page_id IS NULL AND\n aug_bubbles.aug_bubble_id IS NULL AND\n notes.note_id IS NULL\";\n $result = mysql_query($query);\n while($table = mysql_fetch_object($result))\n mysql_query(\"DELETE FROM spawnables WHERE spawnable_id = \".$table->spawnable_id);\n }\n $query = \"SELECT * FROM requirements\";\n $resultMain = mysql_query($query);\n while($resultMain && $row = mysql_fetch_object($resultMain)){ \n\n if($row->content_type == \"Node\"){\n $result = mysql_query(\"SELECT * FROM nodes WHERE node_id = {$row->content_id}\");\n if($result && mysql_num_rows($result) < 1) mysql_query(\"DELETE FROM requirements WHERE requirement_id = {$row->requirement_id}\");\n }\n else if($row->content_type == \"QuestDisplay\" || $row->content_type == \"QuestComplete\"){\n $result = mysql_query(\"SELECT * FROM quests WHERE quest_id = {$row->content_id}\");\n if($result && mysql_num_rows($result) < 1) mysql_query(\"DELETE FROM requirements WHERE requirement_id = {$row->requirement_id}\");\n }\n else if($row->content_type == \"Location\"){\n $result = mysql_query(\"SELECT * FROM locations WHERE location_id = {$row->content_id}\");\n if($result && mysql_num_rows($result) < 1) mysql_query(\"DELETE FROM requirements WHERE requirement_id = {$row->requirement_id}\");\n }\n else if($row->content_type == \"OutgoingWebHook\"){\n $result = mysql_query(\"SELECT * FROM web_hooks WHERE web_hook_id = {$row->content_id}\");\n if($result && mysql_num_rows($result) < 1) mysql_query(\"DELETE FROM requirements WHERE requirement_id = {$row->requirement_id}\");\n }\n else if($row->content_type == \"Spawnable\"){\n $result = mysql_query(\"SELECT * FROM spawnables WHERE spawnable_id = {$row->content_id}\");\n if($result && mysql_num_rows($result) < 1) mysql_query(\"DELETE FROM requirements WHERE requirement_id = {$row->requirement_id}\");\n }\n\n if($row->requirement == \"PLAYER_HAS_ITEM\" || $row->requirement == \"PLAYER_VIEWED_ITEM\"){\n $result = mysql_query(\"SELECT * FROM items WHERE item_id = {$row->requirement_detail_1}\");\n if($result && mysql_num_rows($result) < 1) mysql_query(\"DELETE FROM requirements WHERE requirement_id = {$row->requirement_id}\"); \n } \n else if($row->requirement == \"PLAYER_VIEWED_NODE\"){\n $result = mysql_query(\"SELECT * FROM nodes WHERE node_id = {$row->requirement_detail_1}\");\n if($result && mysql_num_rows($result) < 1) mysql_query(\"DELETE FROM requirements WHERE requirement_id = {$row->requirement_id}\");\n }\n else if($row->requirement == \"PLAYER_VIEWED_NPC\"){\n $result = mysql_query(\"SELECT * FROM npcs WHERE npc_id = {$row->requirement_detail_1}\");\n if($result && mysql_num_rows($result) < 1) mysql_query(\"DELETE FROM requirements WHERE requirement_id = {$row->requirement_id}\");\n }\n else if($row->requirement == \"PLAYER_VIEWED_WEBPAGE\"){\n $result = mysql_query(\"SELECT * FROM web_pages WHERE web_page_id = {$row->requirement_detail_1}\");\n if($result && mysql_num_rows($result) < 1) mysql_query(\"DELETE FROM requirements WHERE requirement_id = {$row->requirement_id}\");\n }\n else if($row->requirement == \"PLAYER_VIEWED_AUGBUBBLE\"){\n $result = mysql_query(\"SELECT * FROM aug_bubbles WHERE aug_bubble_id = {$row->requirement_detail_1}\");\n if($result && mysql_num_rows($result) < 1) mysql_query(\"DELETE FROM requirements WHERE requirement_id = {$row->requirement_id}\");\n }\n else if($row->requirement == \"PLAYER_HAS_UPLOADED_MEDIA_ITEM\" || $row->requirement == \"PLAYER_HAS_UPLOADED_MEDIA_ITEM_IMAGE\" || $row->requirement == \"PLAYER_HAS_UPLOADED_MEDIA_ITEM_AUDIO\" || $row->requirement == \"PLAYER_HAS_UPLOADED_MEDIA_ITEM_VIDEO\"){\n $result = mysql_query(\"SELECT * FROM media WHERE media_id = {$row->requirement_detail_1}\");\n if($result && mysql_num_rows($result) < 1) mysql_query(\"DELETE FROM requirements WHERE requirement_id = {$row->requirement_id}\");\n }\n else if($row->requirement == \"PLAYER_HAS_COMPLETED_QUEST\"){\n $result = mysql_query(\"SELECT * FROM quests WHERE quest_id = {$row->requirement_detail_1}\");\n if($result && mysql_num_rows($result) < 1) mysql_query(\"DELETE FROM requirements WHERE requirement_id = {$row->requirement_id}\");\n }\n else if($row->requirement == \"PLAYER_HAS_RECEIVED_INCOMING_WEB_HOOK\"){\n $result = mysql_query(\"SELECT * FROM web_hooks WHERE web_hook_id = {$row->requirement_detail_1}\");\n if($result && mysql_num_rows($result) < 1) mysql_query(\"DELETE FROM requirements WHERE requirement_id = {$row->requirement_id}\");\n } \n }\n $query = \"SELECT * FROM player_items\";\n $resultMain = mysql_query($query);\n while($resultMain && $row = mysql_fetch_object($resultMain)){ \n $result = mysql_query(\"SELECT * FROM items WHERE item_id = {$row->item_id}\");\n if($result && mysql_num_rows($result) < 1) mysql_query(\"DELETE FROM player_items WHERE id = {$row->id}\");\n $result = mysql_query(\"SELECT * FROM players WHERE player_id = {$row->player_id}\");\n if($result && mysql_num_rows($result) < 1) mysql_query(\"DELETE FROM player_items WHERE id = {$row->id}\"); \n } \n $query = \"SELECT * FROM player_state_changes\";\n $resultMain = mysql_query($query);\n while($resultMain && $row = mysql_fetch_object($resultMain)){ \n if($row->event_type == \"VIEW_ITEM\"){\n $result = mysql_query(\"SELECT * FROM items WHERE item_id = {$row->event_detail}\");\n if($result && mysql_num_rows($result) < 1) mysql_query(\"DELETE FROM player_state_changes WHERE id = {$row->id}\");\n }\n else if($row->event_type == \"VIEW_NODE\"){\n $result = mysql_query(\"SELECT * FROM nodes WHERE node_id = {$row->event_detail}\");\n if($result && mysql_num_rows($result) < 1) mysql_query(\"DELETE FROM player_state_changes WHERE id = {$row->id}\");\n }\n else if($row->event_type == \"VIEW_NPC\"){\n $result = mysql_query(\"SELECT * FROM npcs WHERE npc_id = {$row->event_detail}\");\n if($result && mysql_num_rows($result) < 1) mysql_query(\"DELETE FROM player_state_changes WHERE id = {$row->id}\"); \n } \n else if($row->event_type == \"VIEW_WEBPAGE\"){\n $result = mysql_query(\"SELECT * FROM web_pages WHERE web_page_id = {$row->event_detail}\");\n if($result && mysql_num_rows($result) < 1) mysql_query(\"DELETE FROM player_state_changes WHERE id = {$row->id}\"); \n } \n else if($row->event_type == \"VIEW_AUGBUBBLE\"){\n $result = mysql_query(\"SELECT * FROM aug_bubbles WHERE aug_bubble_id = {$row->event_detail}\");\n if($result && mysql_num_rows($result) < 1) mysql_query(\"DELETE FROM player_state_changes WHERE id = {$row->id}\"); \n } \n else if($row->event_type == \"RECEIVE_WEBHOOK\"){\n $result = mysql_query(\"SELECT * FROM web_hooks WHERE web_hook_id = {$row->event_detail}\");\n if($result && mysql_num_rows($result) < 1) mysql_query(\"DELETE FROM player_state_changes WHERE id = {$row->id}\"); \n }\n else if($row->action == \"GIVE_ITEM\" || $row->action == \"TAKE_ITEM\"){\n $result = mysql_query(\"SELECT * FROM items WHERE item_id = {$row->action_detail}\");\n if($result && mysql_num_rows($result) < 1) mysql_query(\"DELETE FROM player_state_changes WHERE id = {$row->id}\"); \n } \n }\n $query = \"SELECT * FROM note_likes\";\n $resultMain = mysql_query($query);\n while($resultMain && $row = mysql_fetch_object($resultMain)){ \n $result = mysql_query(\"SELECT * FROM notes WHERE note_id = {$row->note_id}\");\n if($result && mysql_num_rows($result) < 1) mysql_query(\"DELETE FROM note_likes WHERE note_id = {$row->note_id}\"); \n } \n $query = \"SELECT * FROM note_content\";\n $resultMain = mysql_query($query);\n while($resultMain && $row = mysql_fetch_object($resultMain)){ \n $result = mysql_query(\"SELECT * FROM notes WHERE note_id = {$row->note_id}\");\n if($result && mysql_num_rows($result) < 1) mysql_query(\"DELETE FROM note_content WHERE note_id = {$row->note_id}\"); \n } \n $query = \"SELECT * FROM note_tags\";\n $resultMain = mysql_query($query);\n while($resultMain && $row = mysql_fetch_object($resultMain)){ \n $result = mysql_query(\"SELECT * FROM notes WHERE note_id = {$row->note_id}\");\n if($result && mysql_num_rows($result) < 1) mysql_query(\"DELETE FROM note_tags WHERE note_id = {$row->note_id}\"); \n } \n $query = \"SELECT * FROM npc_conversations\";\n $resultMain = mysql_query($query);\n while($resultMain && $row = mysql_fetch_object($resultMain)){ \n $result = mysql_query(\"SELECT * FROM npcs WHERE npc_id = {$row->npc_id}\");\n if($result && mysql_num_rows($result) < 1) { \n mysql_query(\"DELETE FROM npc_conversations WHERE conversation_id = {$row->conversation_id}\"); \n mysql_query(\"DELETE FROM nodes WHERE node_id = {$row->node_id}\"); \n }\n }\n return 7;\n }", "function wiki_delete_post($post_id, $member = null)\n{\n if (is_null($member)) {\n $member = get_member();\n }\n\n $rows = $GLOBALS['SITE_DB']->query_select('wiki_posts', array('*'), array('id' => $post_id), '', 1);\n if (!array_key_exists(0, $rows)) {\n warn_exit(do_lang_tempcode('MISSING_RESOURCE', 'wiki_post'));\n }\n $myrow = $rows[0];\n $original_poster = $myrow['member_id'];\n $page_id = $myrow['page_id'];\n $_message = $myrow['the_message'];\n\n $log_id = log_it('WIKI_DELETE_POST', strval($post_id), strval($page_id));\n if (addon_installed('actionlog')) {\n require_code('revisions_engine_database');\n $revision_engine = new RevisionEngineDatabase();\n $revision_engine->add_revision(\n 'wiki_post',\n strval($post_id),\n strval($page_id),\n '',\n get_translated_text($_message),\n $original_poster,\n $myrow['date_and_time'],\n $log_id\n );\n }\n\n require_code('attachments2');\n require_code('attachments3');\n delete_lang_comcode_attachments($_message, 'wiki_post', strval($post_id));\n\n $GLOBALS['SITE_DB']->query_delete('wiki_posts', array('id' => $post_id), '', 1);\n $GLOBALS['SITE_DB']->query_delete('rating', array('rating_for_type' => 'wiki_post', 'rating_for_id' => $post_id));\n\n if (addon_installed('catalogues')) {\n update_catalogue_content_ref('wiki_post', strval($post_id), '');\n }\n\n // Stat\n update_stat('num_wiki_posts', -1);\n\n if ((addon_installed('commandr')) && (!running_script('install')) && (!get_mass_import_mode())) {\n require_code('resource_fs');\n expunge_resource_fs_moniker('wiki_post', strval($post_id));\n }\n}", "public function deleteCommand($pid = null, $dryRun = false, $memoryLimit = null)\n\t{\n\t\tif (is_null($pid)) {\n\t\t\techo 'Please specify pid!' . \"\\n\";\n\t\t\texit;\n\t\t}\n\n\t\tif ($memoryLimit) {\n\t\t\tini_set('memory_limit', $memoryLimit);\n\t\t\techo 'Set memory_limit to: ' . ini_get('memory_limit') . \"\\n\";\n\t\t}\n\n\t\t// Get all page ids\n\t\t$queryGenerator = GeneralUtility::makeInstance(\\TYPO3\\CMS\\Core\\Database\\QueryGenerator::class);\n\t\t$list = $queryGenerator->getTreeList($pid, 99, 0, '1=1');\n\n\t\t$this->total = count(explode(',', $list));\n\t\t$this->count = 0;\n\n\t\tif ($dryRun) {\n\t\t\techo 'These are the pages that would be deleted:' . \"\\n\";\n\t\t\techo $list . \"\\n\";\n\t\t\techo 'That\\'s a total of ' . $this->total . ' pages!' . \"\\n\";\n\t\t\texit;\n\t\t}\n\n\t\t// Make CLI user an admin, so we're allowed to delete everything!\n\t\t$GLOBALS['BE_USER']->user['admin'] = 1;\n\t\t$GLOBALS['BE_USER']->setWorkspace(0);\n\n\t\t$this->dataProvider = GeneralUtility::makeInstance(\\TYPO3\\CMS\\Backend\\Tree\\Pagetree\\DataProvider::class);\n\n\t\t// Start deleting page(s)\n\t\t$this->deleteNodeRecursively($pid);\n\n\t\techo 'Deleted page ' . $pid . ' and all of the subpages and records on them!' . \"\\n\";\n\t}", "function delete_all()\n{\n\t$model = $this->getModel('logs');\n\t$read = $model->delete_all();\n\t$this->view_logs();\n}", "public function deleteDatabaseStructure( );", "public function delete()\n\t{\n\t\t$this->hard_delete();\n\t}", "function trash() {\n $this->wireframe->current_menu_item = 'trash';\n\n if(!$this->logged_user->isAdministrator() && !$this->logged_user->getSystemPermission('manage_trash')) {\n $this->httpError(HTTP_ERR_FORBIDDEN);\n } // if\n\n if($this->request->isSubmitted()) {\n $action = $this->request->post('action');\n if(!in_array($action, array('restore', 'delete'))) {\n $this->httpError(HTTP_ERR_BAD_REQUEST, 'Invalid action');\n } // if\n\n $object_ids = $this->request->post('objects');\n $objects = ProjectObjects::findByIds($object_ids, STATE_DELETED, VISIBILITY_PRIVATE);\n\n db_begin_work();\n foreach($objects as $object) {\n if($action == 'restore') {\n $object->restoreFromTrash();\n } else {\n $object->delete();\n } // if\n } // foreach\n db_commit();\n } // if\n\n $per_page = 30;\n $page = (integer) $this->request->get('page');\n if($page < 1) {\n $page = 1;\n } // if\n\n list($objects, $pagination) = ProjectObjects::paginateTrashed($this->logged_user, $page, $per_page);\n \t$this->smarty->assign(array(\n \t 'objects' => $objects,\n \t 'pagination' => $pagination,\n \t));\n\n \tif(is_foreachable($objects)) {\n \t $this->wireframe->addPageAction(lang('Empty Trash'), assemble_url('trash_empty'), null, array(\n \t 'method' => 'post',\n \t 'confirm' => lang('Are you sure that you want to empty trash?'),\n \t ));\n \t} // if\n }", "function sbrb_delete_post_action( $post_id ) {\n $_shortlink_id = get_post_meta( $post_id, '_rebrandly_link_id', true );\n delete_rebrandly_link( $_shortlink_id );\n}", "function wp_list_post_revisions($post = 0, $type = 'all')\n {\n }", "private function deleteSettings()\n\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 }" ]
[ "0.7600433", "0.73017865", "0.6644281", "0.6614884", "0.6195909", "0.6002403", "0.5990584", "0.59280837", "0.5814003", "0.57187545", "0.5701655", "0.56893957", "0.5541654", "0.5512974", "0.5403873", "0.54008776", "0.53843683", "0.5313288", "0.52933115", "0.5291885", "0.52823967", "0.5267907", "0.5239722", "0.52299356", "0.52233887", "0.52093446", "0.51992464", "0.51656693", "0.51461774", "0.513826", "0.51152796", "0.5114226", "0.51062024", "0.509753", "0.50929695", "0.50859356", "0.50767875", "0.50551134", "0.50542873", "0.50468785", "0.50453407", "0.503517", "0.50158346", "0.5010596", "0.49892938", "0.49799252", "0.4976666", "0.49757236", "0.497414", "0.4952765", "0.4952765", "0.4952765", "0.4951171", "0.4949142", "0.4942119", "0.49367628", "0.49300867", "0.4928274", "0.49218974", "0.48943356", "0.48943356", "0.48906115", "0.48879257", "0.4884553", "0.48819587", "0.48805863", "0.48796812", "0.48598525", "0.48571986", "0.48465517", "0.4846542", "0.48403144", "0.4830689", "0.48285398", "0.48243943", "0.48199224", "0.4818468", "0.48184675", "0.48182535", "0.48150003", "0.4812794", "0.48075455", "0.48050076", "0.48046184", "0.48002625", "0.4798541", "0.47947773", "0.47930303", "0.47913033", "0.47779366", "0.47776288", "0.47724438", "0.4771724", "0.47706", "0.4767779", "0.4754891", "0.47542086", "0.47532594", "0.47487792", "0.47430834" ]
0.7622577
0
List all revisions OPTIONS [post_type=] : List revisions for given post type(s). [post_id=] : List revisions for given post. Trumps post_type. [fields=] : Commaseparated list of fields to be included in the output. default: ID,post_title,post_parent [yes] : Answer yes to the confirmation message. [format=] : Format to use for the output. One of table, csv or json. EXAMPLES wp revisions list wp revisions list post_id=2 wp revisions list post_type=post,page
public function list_( $args = array(), $assoc_args = array() ) { // Default fields to return. $fields = WP_CLI\Utils\get_flag_value( $assoc_args, 'fields' ); if ( is_string( $fields ) ) { $fields = explode( ',', $fields ); } // Whitelist the fields we allow to avoid spurious queries. $allowed_fields = [ 'ID', 'post_author', 'post_date', 'post_date_gmt', 'post_content', 'post_title', 'post_excerpt', 'post_status', 'comment_status', 'ping_status', 'post_name', 'post_modified', 'post_modified_gmt', 'post_password', 'to_ping', 'pinged', 'post_content_filtered', 'post_parent', 'guid', 'menu_order', 'post_type', 'post_mime_type', 'comment_count', ]; // Don't allow fields that aren't in the above whitelist. // Note: we do not use array_filter to remove empty elements (in // case of an empty `--fields` flag). This way the error message // will still be triggered instead of running invalid SQL $excluded_fields = array_diff( $fields, $allowed_fields ); if ( ! empty( $excluded_fields ) ) { WP_CLI::error( 'Invalid values provided in the fields argument.' ); } $fields = array_map( function ( $field ) { return esc_sql( $field ); }, $fields ); $fields = implode( ',', $fields ); global $wpdb; if ( ! empty( $assoc_args['post_id'] ) ) { $revs = $wpdb->get_results( // phpcs:ignore WordPress.VIP.DirectDatabaseQuery.DirectQuery,WordPress.VIP.DirectDatabaseQuery.NoCaching $wpdb->prepare( "SELECT {$fields} FROM $wpdb->posts WHERE post_parent = %d", //phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared -- $fields is escaped above with esc_sql() $assoc_args['post_id'] ) ); } else if ( ! empty( $assoc_args['post_type'] ) ) { $post_types = explode( ',', $assoc_args['post_type'] ); $where = ''; foreach ( $post_types as $post_type ) { $where .= $wpdb->prepare( ' OR post_type = %s', $post_type ); } // get all IDs for posts in given post type(s). $ids = $wpdb->get_col( "SELECT ID FROM $wpdb->posts WHERE 1=2 {$where}" ); // phpcs:ignore WordPress.VIP.DirectDatabaseQuery.DirectQuery,WordPress.VIP.DirectDatabaseQuery.NoCaching,WordPress.DB.PreparedSQL.NotPrepared -- $where is prepared above // Prepare the IDs for inclusion in the query. $post__in = array_map( function ( $id ) { return esc_sql( $id ); }, $ids ); $post__in = implode( ',', $ids ); // get revisions of those IDs. $revs = $wpdb->get_results( // phpcs:ignore WordPress.VIP.DirectDatabaseQuery.DirectQuery,WordPress.VIP.DirectDatabaseQuery.NoCaching "SELECT {$fields} FROM $wpdb->posts WHERE post_type = 'revision' AND post_parent IN ({$post__in}) ORDER BY post_parent DESC" //phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared -- $fields and $post__in are escaped above with esc_sql() ); } else { $revs = $wpdb->get_results( // phpcs:ignore WordPress.VIP.DirectDatabaseQuery.DirectQuery,WordPress.VIP.DirectDatabaseQuery.NoCaching "SELECT {$fields} FROM $wpdb->posts WHERE post_type = 'revision' ORDER BY post_parent DESC" //phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared -- $fields is escaped above with esc_sql() ); } $total = count( $revs ); if ( $total > 100 ) { WP_CLI::confirm( sprintf( 'List all %d revisions?', $total ), $assoc_args ); } $formatter = new \WP_CLI\Formatter( $assoc_args, array( 'ID', 'post_parent', 'post_title' ), 'revisions' ); $formatter->display_items( $revs ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function wp_list_post_revisions($post = 0, $type = 'all')\n {\n }", "function wp_get_post_revisions($post = 0, $args = \\null)\n {\n }", "public function list_( $args = array(), $assoc_args = array() ) {\n\n\t\t// Default fields to return.\n\t\t$fields = WP_CLI\\Utils\\get_flag_value(\n\t\t\t$assoc_args,\n\t\t\t'fields'\n\t\t);\n\n\t\tif ( is_string( $fields ) ) {\n\t\t\t$fields = wp_parse_list( $fields );\n\t\t}\n\n\t\t// Whitelist the fields we allow to avoid spurious queries.\n\t\t$allowed_fields = [\n\t\t\t'ID',\n\t\t\t'post_author',\n\t\t\t'post_date',\n\t\t\t'post_date_gmt',\n\t\t\t'post_content',\n\t\t\t'post_title',\n\t\t\t'post_excerpt',\n\t\t\t'post_status',\n\t\t\t'comment_status',\n\t\t\t'ping_status',\n\t\t\t'post_name',\n\t\t\t'post_modified',\n\t\t\t'post_modified_gmt',\n\t\t\t'post_password',\n\t\t\t'to_ping',\n\t\t\t'pinged',\n\t\t\t'post_content_filtered',\n\t\t\t'post_parent',\n\t\t\t'guid',\n\t\t\t'menu_order',\n\t\t\t'post_type',\n\t\t\t'post_mime_type',\n\t\t\t'comment_count',\n\t\t];\n\n\t\t// Don't allow fields that aren't in the above whitelist.\n\t\t// Note: we do not use array_filter to remove empty elements (in\n\t\t// case of an empty `--fields` flag). This way the error message\n\t\t// will still be triggered instead of running invalid SQL\n\t\t$excluded_fields = array_diff( $fields, $allowed_fields );\n\n\t\tif ( ! empty( $excluded_fields ) ) {\n\t\t\tWP_CLI::error( 'Invalid values provided in the fields argument.' );\n\t\t}\n\n\t\t$fields = array_map( 'esc_sql',\t$fields\t);\n\t\t$fields = implode( ',', $fields );\n\n\t\tglobal $wpdb;\n\t\tif ( ! empty( $assoc_args['post_id'] ) ) {\n\n\t\t\t$revs = $wpdb->get_results(\n\t\t\t\t$wpdb->prepare(\n\t\t\t\t\t\"SELECT SQL_CALC_FOUND_ROWS {$fields} FROM $wpdb->posts WHERE post_type = 'revision' AND post_parent = %d\",\n\t\t\t\t\t$assoc_args['post_id']\n\t\t\t\t)\n\t\t\t);\n\n\t\t} else if ( ! empty( $assoc_args['post_type'] ) ) {\n\n\t\t\t$post_types = array_map( function( $i ) {\n\t\t\t\treturn sprintf( \"'%s'\", esc_sql( $i ) );\n\t\t\t}, wp_parse_slug_list( $assoc_args['post_type'] ) );\n\t\t\t$where = sprintf( 'AND post_type IN ( %s )', implode( ',', $post_types ) );\n\n\t\t\t// get all IDs for posts in given post type(s).\n\t\t\t$ids = $wpdb->get_col( \"SELECT ID FROM $wpdb->posts WHERE 1=2 {$where}\" );\n\n\t\t\t// Prepare the IDs for inclusion in the query.\n\t\t\t$post__in = array_map( 'esc_sql', $ids );\n\t\t\t$post__in = implode( ',', $ids );\n\n\t\t\t// get revisions of those IDs.\n\t\t\t$revs = $wpdb->get_results(\n\t\t\t\t\"SELECT SQL_CALC_FOUND_ROWS {$fields} FROM $wpdb->posts WHERE post_type = 'revision' AND post_parent IN ({$post__in}) ORDER BY post_parent DESC\"\n\t\t\t);\n\n\t\t} else {\n\n\t\t\t$revs = $wpdb->get_results(\n\t\t\t\t\"SELECT SQL_CALC_FOUND_ROWS {$fields} FROM $wpdb->posts WHERE post_type = 'revision' ORDER BY post_parent DESC\"\n\t\t\t);\n\n\t\t}\n\n\t\t$total = $wpdb->get_var( 'SELECT FOUND_ROWS()' );\n\n\t\tif ( $total > 100 ) {\n\t\t\tWP_CLI::confirm( sprintf( 'List all %d revisions?', $total ), $assoc_args );\n\t\t}\n\n\t\t$formatter = new \\WP_CLI\\Formatter( $assoc_args, array( 'ID', 'post_parent', 'post_title' ), 'revisions' );\n\t\t$formatter->display_items( $revs );\n\n\t}", "public static function get_builder_revisions( $type, $id ) {\n\t\tglobal $wpdb;\n\t\t$sql = \"SELECT id, date FROM {$wpdb->base_prefix}pp_revisions WHERE type = '$type' AND parent_id = '$id' ORDER BY date DESC LIMIT 5\";\n\n\t\treturn $wpdb->get_results( $sql, 'ARRAY_A' );\n\t}", "function wp_get_post_revision(&$post, $output = \\OBJECT, $filter = 'raw')\n {\n }", "function wp_get_post_revisions_url($post = 0)\n {\n }", "function post_revisions_meta_box($post)\n {\n }", "public static function getRevisions($options = [])\n {\n return static::instantiateRecords(static::getRevisionRecords($options));\n }", "public function getRevisions(): array;", "function wp_revisions_enabled($post)\n {\n }", "function wp_post_revision_fields( $fields, $post = null ) {\n\n\t\t\t// validate page\n\t\t\tif ( acf_is_screen( 'revision' ) || acf_is_ajax( 'get-revision-diffs' ) ) {\n\n\t\t\t\t// bail early if is restoring\n\t\t\t\tif ( acf_maybe_get_GET( 'action' ) === 'restore' ) {\n\t\t\t\t\treturn $fields;\n\t\t\t\t}\n\n\t\t\t\t// allow\n\n\t\t\t} else {\n\n\t\t\t\t// bail early (most likely saving a post)\n\t\t\t\treturn $fields;\n\n\t\t\t}\n\n\t\t\t// vars\n\t\t\t$append = array();\n\t\t\t$order = array();\n\t\t\t$post_id = acf_maybe_get( $post, 'ID' );\n\n\t\t\t// compatibility with WP < 4.5 (test)\n\t\t\tif ( ! $post_id ) {\n\n\t\t\t\tglobal $post;\n\t\t\t\t$post_id = $post->ID;\n\n\t\t\t}\n\n\t\t\t// get all postmeta\n\t\t\t$meta = get_post_meta( $post_id );\n\n\t\t\t// bail early if no meta\n\t\t\tif ( ! $meta ) {\n\t\t\t\treturn $fields;\n\t\t\t}\n\n\t\t\t// loop\n\t\t\tforeach ( $meta as $name => $value ) {\n\n\t\t\t\t// attempt to find key value\n\t\t\t\t$key = acf_maybe_get( $meta, '_' . $name );\n\n\t\t\t\t// bail early if no key\n\t\t\t\tif ( ! $key ) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\t// update vars\n\t\t\t\t$value = $value[0];\n\t\t\t\t$key = $key[0];\n\n\t\t\t\t// Load field.\n\t\t\t\t$field = acf_get_field( $key );\n\t\t\t\tif ( ! $field ) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\t// get field\n\t\t\t\t$field_title = $field['label'] . ' (' . $name . ')';\n\t\t\t\t$field_order = $field['menu_order'];\n\t\t\t\t$ancestors = acf_get_field_ancestors( $field );\n\n\t\t\t\t// ancestors\n\t\t\t\tif ( ! empty( $ancestors ) ) {\n\n\t\t\t\t\t// vars\n\t\t\t\t\t$count = count( $ancestors );\n\t\t\t\t\t$oldest = acf_get_field( $ancestors[ $count - 1 ] );\n\n\t\t\t\t\t// update vars\n\t\t\t\t\t$field_title = str_repeat( '- ', $count ) . $field_title;\n\t\t\t\t\t$field_order = $oldest['menu_order'] . '.1';\n\n\t\t\t\t}\n\n\t\t\t\t// append\n\t\t\t\t$append[ $name ] = $field_title;\n\t\t\t\t$order[ $name ] = $field_order;\n\n\t\t\t\t// hook into specific revision field filter and return local value\n\t\t\t\tadd_filter( \"_wp_post_revision_field_{$name}\", array( $this, 'wp_post_revision_field' ), 10, 4 );\n\n\t\t\t}\n\n\t\t\t// append\n\t\t\tif ( ! empty( $append ) ) {\n\n\t\t\t\t// vars\n\t\t\t\t$prefix = '_';\n\n\t\t\t\t// add prefix\n\t\t\t\t$append = acf_add_array_key_prefix( $append, $prefix );\n\t\t\t\t$order = acf_add_array_key_prefix( $order, $prefix );\n\n\t\t\t\t// sort by name (orders sub field values correctly)\n\t\t\t\tarray_multisort( $order, $append );\n\n\t\t\t\t// remove prefix\n\t\t\t\t$append = acf_remove_array_key_prefix( $append, $prefix );\n\n\t\t\t\t// append\n\t\t\t\t$fields = $fields + $append;\n\n\t\t\t}\n\n\t\t\t// return\n\t\t\treturn $fields;\n\n\t\t}", "public static function fetchAllRevisions($postId) {\n\t\t$criteria = new CDbCriteria();\n\t\t$criteria->addColumnCondition(array('post_id' => $postId));\n\t\treturn self::model()->findAll($criteria);\n\t}", "private function supports_revisions() {\n\n\t\t$supports_revisions = array();\n\n\t\tforeach ( get_post_types() as $post_type ) {\n\t\t\tif ( post_type_supports( $post_type, 'revisions' ) ) {\n\t\t\t\t$supports_revisions[] = $post_type;\n\t\t\t}\n\t\t}\n\n\t\treturn $supports_revisions;\n\n\t}", "private function supports_revisions() {\n\n\t\t$supports_revisions = array();\n\n\t\tforeach ( get_post_types() as $post_type ) {\n\t\t\tif ( post_type_supports( $post_type, 'revisions' ) ) {\n\t\t\t\t$supports_revisions[] = $post_type;\n\t\t\t}\n\t\t}\n\n\t\treturn $supports_revisions;\n\n\t}", "function wp_print_revision_templates()\n {\n }", "function wp_post_revision_fields($fields, $post = \\null)\n {\n }", "public function revisionsTable();", "public function list() {\n foreach ($this->instance->registered_post_types as $key => $registered_post_type) {\n WP_CLI::line($registered_post_type->get_post_type());\n }\n }", "public function _list( $args, $args_assoc ) {\n\n\t\t$args_assoc = array_merge( array(\n\t\t\t'showposts' => 100,\n\t\t\t'paged' => 1,\n\t\t\t'format' => 'table',\n\t\t\t'fields' => array( 'date', 'changelog', 'dir' )\n\t\t), $args_assoc );\n\n\t\t$mirrors = array_map( function( $mirror ) {\n\t\t\tforeach ( $mirror['changelog'] as $key => $change ) {\n\t\t\t\tif ( ! is_array( $change ) ) {\n\t\t\t\t\t// A few very old mirrors only contain the page URL as a text string in the changelog.\n\t\t\t\t\t$mirror['changelog'][ $key ] = [\n\t\t\t\t\t\t'text' => $change,\n\t\t\t\t\t];\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$mirror['date'] = date( 'c', $mirror['date'] );\n\t\t\t$mirror['changelog'] = implode( ', ', wp_list_pluck( $mirror['changelog'], 'text' ) );\n\n\t\t\treturn $mirror;\n\n\t\t}, Plugin::get_instance()->get_mirrors( [\n\t\t\t'showposts' => $args_assoc['showposts'],\n\t\t\t'paged' => $args_assoc['paged'],\n\t\t] ) );\n\n\t\t\\WP_CLI\\Utils\\format_items( $args_assoc['format'], $mirrors, $args_assoc['fields'] );\n\t}", "public function generate( $args = array(), $assoc_args = array() ) {\n\n\t\tglobal $wpdb;\n\n\t\tif ( ! empty( $assoc_args['post_id'] ) ) {\n\n\t\t\t$posts = array( $assoc_args['post_id'] );\n\n\t\t} else {\n\n\t\t\tif ( empty( $assoc_args['post_type'] ) ) {\n\t\t\t\t$post_types = $this->supports_revisions();\n\t\t\t} else {\n\t\t\t\t$post_types = explode( ',', $assoc_args['post_type'] );\n\t\t\t}\n\n\t\t\t$where = '';\n\t\t\tforeach ( $post_types as $post_type ) {\n\t\t\t\t$where .= $wpdb->prepare( ' OR post_type = %s', $post_type );\n\t\t\t}\n\n\t\t\t// get all IDs for posts in given post type(s).\n\t\t\t$posts = $wpdb->get_col( \"SELECT ID FROM $wpdb->posts WHERE 1=2 {$where}\" ); // phpcs:ignore WordPress.VIP.DirectDatabaseQuery.DirectQuery,WordPress.VIP.DirectDatabaseQuery.NoCaching,WordPress.DB.PreparedSQL.NotPrepared -- $where is prepared above\n\n\t\t}\n\n\t\t$total = count( $posts );\n\n\t\t$notify = \\WP_CLI\\Utils\\make_progress_bar( sprintf( 'Generating revisions for %d post(s)', $total ), $total );\n\n\t\t$count = isset( $args[0] ) ? intval( $args[0] ) : 15;\n\n\t\tforeach ( $posts as $post_id ) {\n\t\t\t$notify->tick();\n\n\t\t\t$p = get_post( $post_id );\n\t\t\t$content = $p->post_content;\n\t\t\tfor ( $i = 0; $i < $count; $i++ ) {\n\t\t\t\tif ( '&nbsp;' === substr( $content, -6 ) ) {\n\t\t\t\t\t$content = substr( $content, 0, -6 );\n\t\t\t\t} else {\n\t\t\t\t\t$content .= '&nbsp;';\n\t\t\t\t}\n\t\t\t\twp_update_post( 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}\n\t\t}\n\n\t\t$notify->finish();\n\t\tWP_CLI::success( 'Finished generating revisions.' );\n\n\t}", "function Get_revisions($query = \"select * from Revisions\"){\n\t\t$sqlResult = sqlsrv_query($this->conn,$query);\n\t\t$temp =\"\";\n\t\twhile ($row = sqlsrv_fetch_array($sqlResult))\n\t\t{\n\t\t\t$temp .= '{\"Id\":\"'.$row['Id'].'\",';\n\t\t\t$temp .= '\"Revision\": \"'.$row['Revision'].'\",';\n\t\t\t$temp .= '\"Status\": \"'.$row['Status'].'\",';\n\t\t\t$temp .= '\"Active\": \"'.$row['Active'].'\",';\n\t\t\t$temp .= '\"Path\": \"'.$row['Active'].'\",';\n\t\t\t$temp .= '\"Dept\": \"'.$row['Dept'].'\"},';\n\n\t\t}\n\t\t$temp = substr($temp,0, -1);\n\t\t$json ='{\"All\":\"algo\",\"dataset\":[ '.$temp.']}';\n\t\tprint $json;\n\t\t$object = json_decode($json);\n\t\techo $object;\n\t\treturn $object;\n\t\t\n\t}", "public function limit_post_revisions() {\n\t}", "public function listPost()\n {\n //Your code goes here\n $data['posts'] = PostModel::where('status',1)->orWhere('status',2)->orderBy('id','desc')->get();\n $data['pagemode'] = 'edit';\n return admin_view('Posts::List', $data);\n }", "public function kiwip_action_delete_revisions(){\n\t\tglobal $wpdb;\n\n\t\t$this->delete_revision = $wpdb->query('DELETE FROM wp_posts WHERE post_type = \"revision\";');\n\n\t\tadd_action('admin_notices', array(&$this, 'kiwip_action_delete_revisions_adm_msg'));\n\t\t$updated_option = array('delete_revisions' => 0);\n\t\tupdate_option('Kiwip', $updated_option);\n\t\t$this->options['delete_revisions'] == 0;\n\t}", "public function revisionOverview(EventContentInterface $event_content) {\n $account = $this->currentUser();\n $langcode = $event_content->language()->getId();\n $langname = $event_content->language()->getName();\n $languages = $event_content->getTranslationLanguages();\n $has_translations = (count($languages) > 1);\n $event_content_storage = $this->entityManager()->getStorage('event_content');\n\n $build['#title'] = $has_translations ? $this->t('@langname revisions for %title', ['@langname' => $langname, '%title' => $event_content->label()]) : $this->t('Revisions for %title', ['%title' => $event_content->label()]);\n $header = [$this->t('Revision'), $this->t('Operations')];\n\n $revert_permission = (($account->hasPermission(\"revert all event content revisions\") || $account->hasPermission('administer event content entities')));\n $delete_permission = (($account->hasPermission(\"delete all event content revisions\") || $account->hasPermission('administer event content entities')));\n\n $rows = [];\n\n $vids = $event_content_storage->revisionIds($event_content);\n\n $latest_revision = TRUE;\n\n foreach (array_reverse($vids) as $vid) {\n /** @var \\Drupal\\event_content\\EventContentInterface $revision */\n $revision = $event_content_storage->loadRevision($vid);\n // Only show revisions that are affected by the language that is being\n // displayed.\n if ($revision->hasTranslation($langcode) && $revision->getTranslation($langcode)->isRevisionTranslationAffected()) {\n $username = [\n '#theme' => 'username',\n '#account' => $revision->getRevisionUser(),\n ];\n\n // Use revision link to link to revisions that are not active.\n $date = \\Drupal::service('date.formatter')->format($revision->getRevisionCreationTime(), 'short');\n if ($vid != $event_content->getRevisionId()) {\n $link = $this->l($date, new Url('entity.event_content.revision', ['event_content' => $event_content->id(), 'event_content_revision' => $vid]));\n }\n else {\n $link = $event_content->link($date);\n }\n\n $row = [];\n $column = [\n 'data' => [\n '#type' => 'inline_template',\n '#template' => '{% trans %}{{ date }} by {{ username }}{% endtrans %}{% if message %}<p class=\"revision-log\">{{ message }}</p>{% endif %}',\n '#context' => [\n 'date' => $link,\n 'username' => \\Drupal::service('renderer')->renderPlain($username),\n 'message' => ['#markup' => $revision->getRevisionLogMessage(), '#allowed_tags' => Xss::getHtmlTagList()],\n ],\n ],\n ];\n $row[] = $column;\n\n if ($latest_revision) {\n $row[] = [\n 'data' => [\n '#prefix' => '<em>',\n '#markup' => $this->t('Current revision'),\n '#suffix' => '</em>',\n ],\n ];\n foreach ($row as &$current) {\n $current['class'] = ['revision-current'];\n }\n $latest_revision = FALSE;\n }\n else {\n $links = [];\n if ($revert_permission) {\n $links['revert'] = [\n 'title' => $this->t('Revert'),\n 'url' => $has_translations ?\n Url::fromRoute('entity.event_content.translation_revert', ['event_content' => $event_content->id(), 'event_content_revision' => $vid, 'langcode' => $langcode]) :\n Url::fromRoute('entity.event_content.revision_revert', ['event_content' => $event_content->id(), 'event_content_revision' => $vid]),\n ];\n }\n\n if ($delete_permission) {\n $links['delete'] = [\n 'title' => $this->t('Delete'),\n 'url' => Url::fromRoute('entity.event_content.revision_delete', ['event_content' => $event_content->id(), 'event_content_revision' => $vid]),\n ];\n }\n\n $row[] = [\n 'data' => [\n '#type' => 'operations',\n '#links' => $links,\n ],\n ];\n }\n\n $rows[] = $row;\n }\n }\n\n $build['event_content_revisions_table'] = [\n '#theme' => 'table',\n '#rows' => $rows,\n '#header' => $header,\n ];\n\n return $build;\n }", "function node_revision_overview($node) {\n drupal_set_title(t('Revisions for %title', array('%title' => $node->title)));\n\n $header = array(t('Revision'), array('data' => t('Operations'), 'colspan' => 2));\n\n $revisions = node_revision_list($node);\n\n $rows = array();\n $revert_permission = FALSE;\n if ((user_access('revert revisions') || user_access('administer nodes')) && node_access('update', $node)) {\n $revert_permission = TRUE;\n }\n $delete_permission = FALSE;\n if ((user_access('delete revisions') || user_access('administer nodes')) && node_access('delete', $node)) {\n $delete_permission = TRUE;\n }\n foreach ($revisions as $revision) {\n $row = array();\n $operations = array();\n\n if ($revision->current_vid > 0) {\n $row[] = array('data' => t('!date by !username', array('!date' => l(format_date($revision->timestamp, 'small'), \"node/$node->nid\"), '!username' => theme('username', $revision)))\n . (($revision->log != '') ? '<p class=\"revision-log\">'. filter_xss($revision->log) .'</p>' : ''),\n 'class' => 'revision-current');\n $operations[] = array('data' => theme('placeholder', t('current revision')), 'class' => 'revision-current', 'colspan' => 2);\n }\n else {\n $row[] = t('!date by !username', array('!date' => l(format_date($revision->timestamp, 'small'), \"node/$node->nid/revisions/$revision->vid/view\"), '!username' => theme('username', $revision)))\n . (($revision->log != '') ? '<p class=\"revision-log\">'. filter_xss($revision->log) .'</p>' : '');\n if ($revert_permission) {\n $operations[] = l(t('revert'), \"node/$node->nid/revisions/$revision->vid/revert\");\n }\n if ($delete_permission) {\n $operations[] = l(t('delete'), \"node/$node->nid/revisions/$revision->vid/delete\");\n }\n }\n $rows[] = array_merge($row, $operations);\n }\n\n return theme('table', $header, $rows);\n}", "public static function get_list_recursive( $post_type, $args = array() ) {\n\t\t$args = wp_parse_args( $args, array(\n\t\t\t'key' => '%post_title (ID:%ID)',\n\t\t\t'value' => 'ID',\n\t\t\t'orderby' => 'menu_order',\n\t\t\t'post_status' => 'publish',\n\t\t\t'posts_per_page' => 100\n\t\t) );\n\n\t\t$posts = get_posts( array(\n\t\t\t'post_type' => $post_type,\n\t\t\t'post_status' => iwf_get_array_hard( $args, 'post_status' ),\n\t\t\t'orderby' => iwf_get_array_hard( $args, 'orderby' ),\n\t\t\t'posts_per_page' => iwf_get_array_hard( $args, 'posts_per_page' ),\n\t\t) );\n\n\t\tif ( ! $posts ) {\n\t\t\treturn array();\n\t\t}\n\n\t\t$walker = new IWF_Post_List_Walker();\n\n\t\treturn $walker->walk( $posts, 0, $args );\n\t}", "public function listPost($post_type=Post_model::TIPO_POST, $status='', $order='desc', $limit=10, $offset='', $rows=false)\n {\n $str_post_type = str_replace('-', '_', $post_type);\n $strRows = (int) $rows;\n $keyCache = __CLASS__ . __FUNCTION__ .'_'. $str_post_type.'_'.$status.'_'.$strRows.'_'.$order.$limit.'_'.$offset;\n\n if (($rs = $this->cache->file->get($keyCache)) == false) {\n $this->db->select()->from($this->_name);\n $this->db->where('post_type', $post_type);\n if(!empty($status)) {\n $this->db->where('status', $status);\n }\n\n // -------- init\n if (!empty($limit) && !empty ($offset)) {\n $this->db->limit($limit, $offset);\n } elseif (!empty($limit)) {\n $this->db->limit($limit);\n }\n //order\n if (!empty($order)) {\n $this->db->order_by('created_at', $order);\n }\n //$this->db->limit($limit, $offset);\n $query = $this->db->get();\n if ($rows == true) {\n $rs = $query->num_rows();\n } else {\n $rs = $query->result_array();\n $rs = $this->listPostAddComment($rs, $status);\n }\n // -------- end\n\n $this->cache->file->save($keyCache, $rs, 600);\n }\n return $rs;\n }", "function wp_getPostTypes( $args ) {\n\n global $wp_xmlrpc_server;\n $wp_xmlrpc_server->escape( $args );\n\n $blog_ID = (int) $args[0];\n $username = $args[1];\n $password = $args[2];\n\n if ( ! $user = $wp_xmlrpc_server->login( $username, $password ) )\n return $wp_xmlrpc_server->error;\n\n $post_types = get_post_types( '','objects' );\n\n $struct = array();\n\n foreach( $post_types as $post_type ) {\n\n // capability check for post_types\n if( ! current_user_can( $post_type->cap->edit_posts ) )\n continue;\n\n $post_type = (array)$post_type;\n\n $post_type_data = array(\n 'labels' => $post_type['labels'],\n 'description' => $post_type['description'],\n 'capability_type' => $post_type['capability_type'],\n 'cap' => $post_type['cap'],\n 'map_meta_cap' => $post_type['map_meta_cap'],\n 'hierarchical' => $post_type['hierarchical'],\n 'menu_position' => $post_type['menu_position'],\n 'taxonomies' => get_object_taxonomies( $post_type['name'] ),\n );\n\n $struct[ $post_type['name'] ] = $post_type_data;\n\n }\n\n return $struct;\n \n}", "public function actionList()\r\n {\r\n $this->_userAutehntication();\r\n switch($_GET['model'])\r\n {\r\n case 'posts': \r\n $models = Post::model()->findAll();\r\n break; \r\n default: \r\n $this->_sendResponse(501, sprintf('Error: Mode <b>list</b> is not implemented for model <b>%s</b>',$_GET['model']) );\r\n exit; \r\n }\r\n if(is_null($models)) {\r\n $this->_sendResponse(200, sprintf('No Post found for model <b>%s</b>', $_GET['model']) );\r\n } else {\r\n $rows = array();\r\n foreach($models as $model)\r\n $rows[] = $model->attributes;\r\n\r\n $this->_sendResponse(200, CJSON::encode($rows));\r\n }\r\n }", "public function blox_list_posts( $name_prefix, $get_prefix, $post_type ) {\n\n \t$args = array(\n\t\t\t'numberposts' => -1,\n\t\t\t'orderby' => 'title',\n\t\t\t'order' => 'ASC',\n\t\t\t'fields' \t => array( 'ID', 'name' ),\n\t\t\t'post_type' => $post_type,\n\t\t\t'post_status' => 'publish,future,draft,pending,private',\n\t\t);\n\n\t\t$posts_array = get_posts( $args );\n\n\t\t$output = '';\n\n\t\tforeach ( $posts_array as $post ) {\n\t\t\t$post_status = get_post_status( $post->ID );\n\n\t\t\t$output .= '<li><label><input type=\"checkbox\" name=\"' . $name_prefix . '[singles][' . $post_type . '][selection][]\" value=\"' . $post->ID . '\" '. ( ! empty( $get_prefix['singles'][$post_type]['selection'] ) && in_array( $post->ID, $get_prefix['singles'][$post_type]['selection'] ) ? 'checked=\"checked\"' : '' ) . ' /> ';\n\t\t\t$output .= apply_filters('the_title', $post->post_title, $post->ID);\n\t\t\tif ( $post_status == 'private' ) {\n\t\t\t\t$output .= ' <span class=\"blox-post-status\">(Private)</span>';\n\t\t\t} else if ( $post_status == 'future' ) {\n\t\t\t\t$output .= ' <span class=\"blox-post-status\">(Scheduled)</span>';\n\t\t\t} else if ( $post_status == 'draft' ) {\n\t\t\t\t$output .= ' <span class=\"blox-post-status\">(Draft)</span>';\n\t\t\t} else if ( $post_status == 'pending' ) {\n\t\t\t\t$output .= ' <span class=\"blox-post-status\">(Pending)</span>';\n\t\t\t}\n\t\t\t$output .= '</label></li>';\n\t\t}\n\n \techo $output;\n }", "function dt_admin_get_metabox_list( $opts = array() ) {\n\tglobal $wp_meta_boxes;\n\n\t$defaults = array(\n\t\t'id' => 'dt_page_box',\n\t\t'page' => 'page'\n\t);\n\t$opts = wp_parse_args( $opts, $defaults );\n\n\t$meta_boxes = array();\n\n\tforeach( array('side', 'normal') as $context ) {\n\t\tforeach( array('high', 'sorted', 'core', 'default', 'low') as $priority ) {\n\t\t\tif( isset($wp_meta_boxes[$opts['page']][$context][$priority]) ) {\n\t\t\t\tforeach ( (array) $wp_meta_boxes[$opts['page']][$context][$priority] as $id=>$box ) {\n\t\t\t\t\tif( false !== strpos( $id, $opts['id']) ) {\n\t\t\t\t\t\t$meta_boxes[] = $id; \n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\treturn $meta_boxes;\n}", "public function getRevisions(): array\n {\n return $this->revs;\n }", "public function generate( $args = array(), $assoc_args = array() ) {\n\n\t\tglobal $wpdb;\n\n\t\tif ( ! empty( $assoc_args['post_id'] ) ) {\n\n\t\t\t$posts = array( $assoc_args['post_id'] );\n\t\t\t$posts = array_filter( $posts, 'get_post' );\n\n\t\t} else {\n\n\t\t\tif ( empty( $assoc_args['post_type'] ) ) {\n\t\t\t\t$post_types = $this->supports_revisions();\n\t\t\t} else {\n\t\t\t\t$post_types = explode( ',', $assoc_args['post_type'] );\n\t\t\t}\n\n\t\t\t$where = '';\n\t\t\tforeach ( $post_types as $post_type ) {\n\t\t\t\t$where .= $wpdb->prepare( ' OR post_type = %s', $post_type );\n\t\t\t}\n\n\t\t\t// get all IDs for posts in given post type(s).\n\t\t\t$posts = $wpdb->get_col( \"SELECT ID FROM $wpdb->posts WHERE 1=2 {$where}\" );\n\n\t\t}\n\n\t\t$total = count( $posts );\n\n\t\t$notify = \\WP_CLI\\Utils\\make_progress_bar( sprintf( 'Generating revisions for %d post(s)', $total ), $total );\n\n\t\t$count = isset( $args[0] ) ? intval( $args[0] ) : 15;\n\n\t\t$this->start_bulk_operation();\n\n\t\tremove_all_filters( 'wp_revisions_to_keep' );\n\t\tadd_filter( 'wp_save_post_revision_check_for_changes', '__return_false' );\n\t\t$inc = 0;\n\t\tforeach ( $posts as $post_id ) {\n\t\t\t$notify->tick();\n\n\t\t\tfor ( $i = 0; $i < $count; $i++ ) {\n\n\t\t\t\twp_save_post_revision( $post_id );\n\t\t\t}\n\t\t\t$inc++;\n\t\t\tif ( $inc % 10 === 0 ) {\n\t\t\t\t$this->stop_the_insanity();\n\t\t\t}\n\t\t}\n\n\t\t$this->end_bulk_operation();\n\n\t\t$notify->finish();\n\t\tWP_CLI::success( 'Finished generating revisions.' );\n\n\t}", "public function revisionsAction()\n {\n $this->_initVersion();\n $this->_initPage();\n\n $this->loadLayout();\n $this->renderLayout();\n\n return $this;\n }", "public function listAction()\n {\n $this->denyAccessUnlessGranted('POST_LIST');\n\n $source = new Entity($this->get('opifer.form.post_manager')->getClass());\n\n $formColumn = new TextColumn(['id' => 'posts', 'title' => 'Form', 'source' => false, 'filterable' => false, 'sortable' => false, 'safe' => false]);\n $formColumn->manipulateRenderCell(function ($value, $row, $router) {\n return '<a href=\"'.$this->generateUrl('opifer_form_form_edit', ['id'=> $row->getEntity()->getForm()->getId()]).'\">'.$row->getEntity()->getForm()->getName().'</a>';\n });\n\n $viewAction = new RowAction('view', 'opifer_form_post_view');\n $viewAction->setRouteParameters(['id']);\n\n $deleteAction = new RowAction('delete', 'opifer_form_post_delete');\n $deleteAction->setRouteParameters(['id']);\n\n $grid = $this->get('grid');\n $grid->setId('posts')\n ->setSource($source)\n ->setDefaultOrder('id', 'desc')\n ->addColumn($formColumn, 2)\n ->addRowAction($viewAction)\n ->addRowAction($deleteAction);\n\n return $grid->getGridResponse('@OpiferCms/Backend/Post/list.html.twig');\n }", "public function get_content_posts() {\r\n\t\tglobal $wpdb;\r\n\t\t$options = get_option( 'mf_timeline' );\r\n\t\t\r\n\t\tif( isset( $options['options']['wp']['content']) && !empty($options['options']['wp']['content'] ) ) {\t\t\t\r\n\t\t\t/**\r\n\t\t\t * // HACK\r\n\t\t\t * Wordpress $wpdb->prepare() doesn't handle passing multiple arrays to its values. So we have to merge them.\r\n\t\t\t * It is also unable to determine how many placeholders are needed for handling array values, so we have to work out how many we need.\r\n\t\t\t * To be blunt, this is crap and needs to be looked at by the Wordpress dev team.\r\n\t\t\t **/\r\n\t\t\t$post_types = array_keys( $options['options']['wp']['content'] );\r\n\t\t\t\r\n\t\t\tforeach( $post_types as $post_type ) {\r\n\t\t\t\t$post_types_escape[] = '%s';\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t$since = date('Y-m-01', strtotime('-1 months'));\r\n\t\t\t$sql = \"SELECT {$wpdb->posts}.ID AS id, {$wpdb->posts}.post_title AS title, {$wpdb->posts}.post_content AS content, {$wpdb->posts}.post_excerpt AS excerpt, {$wpdb->posts}.post_date AS date, {$wpdb->posts}.post_author AS author, {$wpdb->terms}.term_id AS term_id\r\n\t\t\t\tFROM `{$wpdb->posts}` \r\n\t\t\t\tINNER JOIN {$wpdb->term_relationships} ON ({$wpdb->posts}.ID = {$wpdb->term_relationships}.object_id) \r\n\t\t\t\tINNER JOIN {$wpdb->term_taxonomy} ON ({$wpdb->term_relationships}.term_taxonomy_id = $wpdb->term_taxonomy.term_taxonomy_id)\r\n\t\t\t\tINNER JOIN {$wpdb->terms} ON ({$wpdb->term_taxonomy}.term_id = {$wpdb->terms}.term_id)\r\n\t\t\t\tWHERE {$wpdb->posts}.post_status = 'publish' AND {$wpdb->posts}.post_date >= '$since'\r\n\t\t\t\tAND {$wpdb->posts}.post_type IN (\".implode(',', $post_types_escape).\")\";\r\n\t\t\t\r\n\t\t\t// Check if we are filtering the post types by hireachrical taxonomy terms\r\n\t\t\tif( isset( $options['options']['wp']['filter']['taxonomy'] ) && !empty( $options['options']['wp']['filter']['taxonomy'] ) ) {\r\n\t\t\t\t$term_ids = array_keys( $options['options']['wp']['filter']['taxonomy'] );\r\n\t\t\t\t\r\n\t\t\t\tforeach( $term_ids as $term_id ) {\r\n\t\t\t\t\t$term_ids_escape[] = '%d';\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// Check if we are filter the post types by non-hireachrical taxonomy terms\r\n\t\t\tif( isset($options['options']['wp']['filter']['term'] ) && !empty( $options['options']['wp']['filter']['term'] ) ) {\r\n\t\t\t\tforeach( $options['options']['wp']['filter']['term'] as $taxonomy_name=>$terms ) {\r\n\t\t\t\t\tforeach( explode( ',', $terms ) as $term ) {\r\n\t\t\t\t\t\t$the_term = get_term_by( 'slug', str_replace( ' ', '-', trim( $term ) ), $taxonomy_name );\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif( $the_term != false ) {\r\n\t\t\t\t\t\t\t$term_ids[] = $the_term->term_id;\r\n\t\t\t\t\t\t\t$term_ids_escape[] = '%d';\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// Append the filters to the SQL statement\r\n\t\t\tif( isset( $term_ids_escape ) && !empty( $term_ids_escape ) ) {\r\n\t\t\t\t$sql .= \"AND {$wpdb->terms}.term_id IN (\" . implode( ',', $term_ids_escape ) . \")\";\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t$sql .= \"GROUP BY {$wpdb->posts}.ID\";\r\n\t\t\t\r\n\t\t\t$query = $wpdb->prepare( $sql, array_merge( (array) $post_types, (array) $term_ids ) );\r\n\t\t\t$results = $wpdb->get_results( $query, 'ARRAY_A' );\r\n\t\t\t\r\n\t\t\tforeach($results as $post) {\r\n\t\t\t\t$date_group = date( 'F Y', strtotime( $post['date'] ) );\r\n\t\t\t\t$post['source'] = 'wp';\r\n\t\t\t\t$posts[$date_group][] = $post;\r\n\t\t\t}\r\n\t\t\r\n\t\t\treturn $posts;\r\n\t\t}\r\n\t\telse {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "public function revisionOverview(PrintArticleInterface $print_article) {\n $account = $this->currentUser();\n $langcode = $print_article->language()->getId();\n $langname = $print_article->language()->getName();\n $languages = $print_article->getTranslationLanguages();\n $has_translations = (count($languages) > 1);\n $print_article_storage = $this->entityManager()\n ->getStorage('print_article');\n\n $build['#title'] = $has_translations ? $this->t('@langname revisions for %title', [\n '@langname' => $langname,\n '%title' => $print_article->label(),\n ]) : $this->t('Revisions for %title', ['%title' => $print_article->label()]);\n $header = [$this->t('Revision'), $this->t('Operations')];\n\n $revert_permission = (($account->hasPermission(\"revert all print article revisions\") || $account->hasPermission('administer print article entities')));\n $delete_permission = (($account->hasPermission(\"delete all print article revisions\") || $account->hasPermission('administer print article entities')));\n\n $rows = [];\n\n $vids = $print_article_storage->revisionIds($print_article);\n\n $latest_revision = TRUE;\n\n foreach (array_reverse($vids) as $vid) {\n /** @var \\Drupal\\thunder_print\\PrintArticleInterface $revision */\n $revision = $print_article_storage->loadRevision($vid);\n // Only show revisions that are affected by the language that is being\n // displayed.\n if ($revision->hasTranslation($langcode) && $revision->getTranslation($langcode)->isRevisionTranslationAffected()) {\n $username = [\n '#theme' => 'username',\n '#account' => $revision->getRevisionUser(),\n ];\n\n // Use revision link to link to revisions that are not active.\n $date = $this->dateFormatter->format($revision->revision_created->value, 'short');\n if ($vid != $print_article->getRevisionId()) {\n $link = $this->l($date, new Url('entity.print_article.revision', [\n 'print_article' => $print_article->id(),\n 'print_article_revision' => $vid,\n ]));\n }\n else {\n $link = $print_article->link($date);\n }\n\n $row = [];\n $column = [\n 'data' => [\n '#type' => 'inline_template',\n '#template' => '{% trans %}{{ date }} by {{ username }}{% endtrans %}{% if message %}<p class=\"revision-log\">{{ message }}</p>{% endif %}',\n '#context' => [\n 'date' => $link,\n 'username' => $this->renderer->renderPlain($username),\n 'message' => [\n '#markup' => $revision->revision_log_message->value,\n '#allowed_tags' => Xss::getHtmlTagList(),\n ],\n ],\n ],\n ];\n $row[] = $column;\n\n if ($latest_revision) {\n $row[] = [\n 'data' => [\n '#prefix' => '<em>',\n '#markup' => $this->t('Current revision'),\n '#suffix' => '</em>',\n ],\n ];\n foreach ($row as &$current) {\n $current['class'] = ['revision-current'];\n }\n $latest_revision = FALSE;\n }\n else {\n $links = [];\n if ($revert_permission) {\n $links['revert'] = [\n 'title' => $this->t('Revert'),\n 'url' => $has_translations ? Url::fromRoute('entity.print_article.translation_revert', [\n 'print_article' => $print_article->id(),\n 'print_article_revision' => $vid,\n 'langcode' => $langcode,\n ]) : Url::fromRoute('entity.print_article.revision_revert', [\n 'print_article' => $print_article->id(),\n 'print_article_revision' => $vid,\n ]),\n ];\n }\n\n if ($delete_permission) {\n $links['delete'] = [\n 'title' => $this->t('Delete'),\n 'url' => Url::fromRoute('entity.print_article.revision_delete', [\n 'print_article' => $print_article->id(),\n 'print_article_revision' => $vid,\n ]),\n ];\n }\n\n $row[] = [\n 'data' => [\n '#type' => 'operations',\n '#links' => $links,\n ],\n ];\n }\n\n $rows[] = $row;\n }\n }\n\n $build['print_article_revisions_table'] = [\n '#theme' => 'table',\n '#rows' => $rows,\n '#header' => $header,\n ];\n\n return $build;\n }", "public function revisionOverview(LogInterface $log) {\n $account = $this->currentUser();\n $langcode = $this->languageManager()->getCurrentLanguage(LanguageInterface::TYPE_CONTENT)->getId();\n $langname = $this->languageManager()->getLanguageName($langcode);\n $languages = $log->getTranslationLanguages();\n $has_translations = (count($languages) > 1);\n $log_storage = $this->entityManager()->getStorage('log');\n $type = $log->getType();\n\n $build['#title'] = $has_translations ? $this->t('@langname revisions for %title', ['@langname' => $langname, '%title' => $log->label()]) : $this->t('Revisions for %title', ['%title' => $log->label()]);\n $header = array($this->t('Revision'), $this->t('Operations'));\n\n $revert_permission = (($account->hasPermission(\"revert $type revisions\") || $account->hasPermission('revert all revisions') || $account->hasPermission('administer logs')) && $log->access('update'));\n $delete_permission = (($account->hasPermission(\"delete $type revisions\") || $account->hasPermission('delete all revisions') || $account->hasPermission('administer logs')) && $log->access('delete'));\n\n $rows = array();\n\n $vids = $log_storage->revisionIds($log);\n\n $latest_revision = TRUE;\n\n foreach (array_reverse($vids) as $vid) {\n /** @var \\Drupal\\log\\LogInterface $revision */\n $revision = $log_storage->loadRevision($vid);\n if ($revision->hasTranslation($langcode) && $revision->getTranslation($langcode)->isRevisionTranslationAffected()) {\n $username = [\n '#theme' => 'username',\n '#account' => $revision->getRevisionAuthor(),\n ];\n\n // Use revision link to link to revisions that are not active.\n $date = $this->dateFormatter->format($revision->revision_timestamp->value, 'short');\n if ($vid != $log->getRevisionId()) {\n $link = $this->l($date, new Url('entity.log.revision', ['log' => $log->id(), 'log_revision' => $vid]));\n }\n else {\n $link = $log->link($date);\n }\n\n $row = [];\n $column = [\n 'data' => [\n '#type' => 'inline_template',\n '#template' => '{% trans %}{{ date }} by {{ username }}{% endtrans %}{% if message %}<p class=\"revision-log\">{{ message }}</p>{% endif %}',\n '#context' => [\n 'date' => $link,\n 'username' => $this->renderer->renderPlain($username),\n 'message' => ['#markup' => $revision->revision_log->value, '#allowed_tags' => Xss::getHtmlTagList()],\n ],\n ],\n ];\n // @todo Simplify once https://www.drupal.org/log/2334319 lands.\n $this->renderer->addCacheableDependency($column['data'], $username);\n $row[] = $column;\n\n if ($latest_revision) {\n $row[] = [\n 'data' => [\n '#prefix' => '<em>',\n '#markup' => $this->t('Current revision'),\n '#suffix' => '</em>',\n ],\n ];\n foreach ($row as &$current) {\n $current['class'] = ['revision-current'];\n }\n $latest_revision = FALSE;\n }\n else {\n $links = [];\n if ($revert_permission) {\n $links['revert'] = [\n 'title' => $this->t('Revert'),\n 'url' => $has_translations ?\n Url::fromRoute('log.revision_revert_translation_confirm', ['log' => $log->id(), 'log_revision' => $vid, 'langcode' => $langcode]) :\n Url::fromRoute('log.revision_revert_confirm', ['log' => $log->id(), 'log_revision' => $vid]),\n ];\n }\n\n if ($delete_permission) {\n $links['delete'] = [\n 'title' => $this->t('Delete'),\n 'url' => Url::fromRoute('log.revision_delete_confirm', ['log' => $log->id(), 'log_revision' => $vid]),\n ];\n }\n\n $row[] = [\n 'data' => [\n '#type' => 'operations',\n '#links' => $links,\n ],\n ];\n }\n\n $rows[] = $row;\n }\n }\n\n $build['log_revisions_table'] = array(\n '#theme' => 'table',\n '#rows' => $rows,\n '#header' => $header,\n '#attached' => array(\n 'library' => array('log/drupal.log.admin'),\n ),\n );\n\n return $build;\n }", "function listRevisions($bugid, $patch)\n\t{\n\t\t$query = '\n\t\t\tSELECT revision FROM bugdb_patchtracker\n\t\t\tWHERE bugdb_id = ? AND patch = ?\n\t\t\tORDER BY revision DESC\n\t\t';\n\t\treturn $this->_dbh->prepare($query)->execute([$bugid, $patch])->fetchAll(PDO::FETCH_NUM);\n\t}", "function p2_get_supported_post_formats( $type = 'all' ) {\n\t$post_formats = array( 'link', 'quote', 'status' );\n\n\tswitch ( $type ) {\n\t\tcase 'post-format':\n\t\t\tbreak;\n\t\tcase 'category':\n\t\t\t$post_formats[] = 'post';\n\t\t\tbreak;\n\t\tcase 'all':\n\t\tdefault:\n\t\t\tarray_push( $post_formats, 'post', 'standard' );\n\t\t\tbreak;\n\t}\n\n\treturn apply_filters( 'p2_get_supported_post_formats', $post_formats );\n}", "public function showRevision($id)\n {\n }", "function wp_ajax_get_revision_diffs()\n {\n }", "function _wp_upgrade_revisions_of_post($post, $revisions)\n {\n }", "function getRevisions( $id )\n\t{\t$query = \"SELECT bylaws.approved\n\t\t\tFROM bylaws, bylaws_index\n\t\t\tWHERE bylaws_index.id = ?\n\t\t\t\tAND bylaws_index.bylawId = bylaws.id\";\n\t\treturn $this->_db->fetchCol( $query, array($id) );\n\t}", "public static function getRevisionRecords($options = [])\n {\n $options = Util::prepareOptions($options, [\n 'indexField' => false,\n 'conditions' => [],\n 'order' => false,\n 'limit' => false,\n 'offset' => 0,\n ]);\n\n\n $select = (new Select())->setTable(static::getHistoryTable());\n\n if ($options['conditions']) {\n $select->where(join(') AND (', static::_mapConditions($options['conditions'])));\n }\n\n if ($options['order']) {\n $select->order(join(',', static::_mapFieldOrder($options['order'])));\n }\n\n if ($options['limit']) {\n $select->limit(sprintf('%u,%u', $options['offset'], $options['limit']));\n }\n\n if ($options['indexField']) {\n return DB::table(static::_cn($options['indexField']), $select);\n } else {\n return DB::allRecords($select);\n }\n }", "function get_archives($type = '', $limit = '', $format = 'html', $before = '', $after = '', $show_post_count = \\false)\n {\n }", "public static function list_posts_by_type_array( $type ) {\n $list = array();\n $list[''] = '- Select a '.$type.' -';\n $args = array();\n $args['sort_order'] = 'ASC';\n $args['sort_column'] = 'post_title';\n $args['post_type'] = $type;\n $args['post_status'] = 'publish';\n $pages = get_pages($args); \n if($pages!=false){\n foreach($pages as $page){\n $list[$page->ID] = $page->post_title;\n }\n }\n return $list;\n }", "function _wp_post_revision_data($post = array(), $autosave = \\false)\n {\n }", "protected function _executeGetList() {\n // Init\n $list = array();\n\n $pid = (int)$this->_postVar['pid'];\n $offset = (int)$this->_postVar['start'];\n $limit = (int)$this->_postVar['limit'];\n $itemsPerPage = (int)$this->_postVar['pagingSize'];\n $depth = (int)$this->_postVar['depth'];\n $sysLanguage = (int)$this->_postVar['sysLanguage'];\n $listType = (string)$this->_postVar['listType'];\n\n // Store last selected language\n $GLOBALS['BE_USER']->setAndSaveSessionData('TQSeo.sysLanguage', $sysLanguage);\n\n if (!empty($pid)) {\n $page = \\TYPO3\\CMS\\Backend\\Utility\\BackendUtility::getRecord('pages', $pid);\n\n $fieldList = array();\n\n switch ($listType) {\n case 'metadata':\n $fieldList = array_merge(\n $fieldList,\n array(\n 'keywords',\n 'description',\n 'abstract',\n 'author',\n 'author_email',\n 'lastupdated',\n )\n );\n\n $list = $this->_listDefaultTree($page, $depth, $fieldList, $sysLanguage);\n\n unset($row);\n foreach ($list as &$row) {\n if (!empty($row['lastupdated'])) {\n $row['lastupdated'] = date('Y-m-d', $row['lastupdated']);\n } else {\n $row['lastupdated'] = '';\n }\n }\n unset($row);\n break;\n\n case 'geo':\n $fieldList = array_merge(\n $fieldList,\n array(\n 'tx_tqseo_geo_lat',\n 'tx_tqseo_geo_long',\n 'tx_tqseo_geo_place',\n 'tx_tqseo_geo_region'\n )\n );\n\n $list = $this->_listDefaultTree($page, $depth, $fieldList, $sysLanguage);\n break;\n\n case 'searchengines':\n $fieldList = array_merge(\n $fieldList,\n array(\n 'tx_tqseo_canonicalurl',\n 'tx_tqseo_is_exclude',\n 'tx_tqseo_priority',\n )\n );\n\n $list = $this->_listDefaultTree($page, $depth, $fieldList, $sysLanguage);\n break;\n\n case 'url':\n $fieldList = array_merge(\n $fieldList,\n array(\n 'title',\n 'url_scheme',\n 'alias',\n 'tx_realurl_pathsegment',\n 'tx_realurl_pathoverride',\n 'tx_realurl_exclude',\n )\n );\n\n $list = $this->_listDefaultTree($page, $depth, $fieldList, $sysLanguage);\n break;\n\n case 'pagetitle':\n $fieldList = array_merge(\n $fieldList,\n array(\n 'tx_tqseo_pagetitle',\n 'tx_tqseo_pagetitle_rel',\n 'tx_tqseo_pagetitle_prefix',\n 'tx_tqseo_pagetitle_suffix',\n )\n );\n\n $list = $this->_listDefaultTree($page, $depth, $fieldList, $sysLanguage);\n break;\n\n case 'pagetitlesim':\n $buildTree = FALSE;\n $list = $this->_listPageTitleSim($page, $depth, $sysLanguage);\n break;\n\n default:\n // Not defined\n return;\n break;\n }\n }\n\n $ret = array(\n 'results' => count($list),\n 'rows' => array_values($list),\n );\n\n return $ret;\n }", "function ee_get_post_types($post_types, $args)\n {\n }", "public function actionIndex()\n {\n $searchModel = new SearchPost();\n $dataProvider = $searchModel->search(Yii::$app->request->queryParams);\n $status = Helpers::getStatus();\n $post_types = ArrayHelper::map(PostType::find()\n ->where(['status' => Yii::$app->params['active']])\n ->all(), 'id', 'name');\n\n return $this->render('index', [\n 'dataProvider' => $dataProvider,\n 'searchModel' => $searchModel,\n 'status' => $status,\n 'post_types' => $post_types,\n ]);\n }", "function OPS_get_post($id) {\r\n\tglobal $wpdb;\r\n\t$post = $wpdb->get_results(\"SELECT * FROM $wpdb->posts WHERE ID=$id\");\r\n\tif ($post->post_type == \"revision\"){\r\n\t\t$id = $post->post_parent;\r\n\t\t$post = $wpdb->get_results(\"SELECT * FROM $wpdb->posts WHERE ID=$id\");\r\n\t}\r\n\treturn $post[0];\r\n}", "public static function get_cms_post_url_list($post_type)\n\t{\n\t\t$links = array();\n\t\t$links[] = self::get_cms_post_url($post_type, Helper_PostModeration::NORMAL);\n\t\t$links[] = self::get_cms_post_url($post_type, Helper_PostModeration::DISAPPROVED);\n\t\t$links[] = self::get_cms_post_url($post_type, Helper_PostModeration::DELETED);\n\t\t$links[] = self::get_cms_post_url($post_type, Helper_PostModeration::APPROVED);\n\t\t$links[] = self::get_cms_post_url($post_type, Helper_PostModeration::IN_REVIEW);\n\t\t\n\t\treturn $links;\n\t}", "function acf_get_post_types($args = array())\n{\n}", "public function index($type='json',$print='Yes')\n\t{\n\t\tif ($type == 'json') \n\t\t{\n\t\t\t$this->all_json();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif ($print == 'Yes') \n\t\t\t{\n\t\t\t\t//var_dump($this->all());\n\t\t\t\t$this->load->library('bcs_qs',$this->all());\n\t\t\t\t$this->bcs_qs->html();\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\treturn $this->all();\n\t\t\t}\n\t\t\t\n\t\t}\n\n\t}", "public function dump( $args = array(), $assoc_args = array() ) {\n\n\t\tglobal $wpdb;\n\t\t$revs = $wpdb->get_var( \"SELECT COUNT(*) FROM $wpdb->posts WHERE post_type = 'revision'\" );\n\n\t\tif ( $revs < 1 ) {\n\t\t\tWP_CLI::success( 'No revisions.' );\n\t\t\treturn;\n\t\t}\n\n\t\tWP_CLI::confirm( sprintf( 'Remove all %d revisions?', $revs ), $assoc_args );\n\n\t\tif ( isset( $assoc_args['hard'] ) ) {\n\t\t\tWP_CLI::run_command( array( 'revisions', 'clean', -1 ), array( 'hard' => '' ) );\n\t\t\treturn;\n\t\t}\n\n\t\t$wpdb->query( \"DELETE FROM $wpdb->posts WHERE post_type = 'revision'\" );\n\n\t\t// @todo: Are there caches to clear?\n\n\t\tWP_CLI::success( 'Finished removing all revisions.' );\n\n\t}", "public function adminUi()\n\t{\n\t\tif(empty($_GET['post_type'])) return;\n\n\t\t$this->postType = esc_attr($_GET['post_type']);\n\t\t$this->tax = (isset($_GET['reorder_tax']) ? esc_attr($_GET['reorder_tax']) : false);\n\t\t$this->term = (isset($_GET['reorder_term']) ? esc_attr($_GET['reorder_term']) : false);\n\n\t\t$typeObj = get_post_type_object($this->postType);\n\t\t$title = $typeObj->labels->name;\n\n\t\t$this->getOptions();\n\n\t\trequire_once( $this->viewDir . '/list.php' );\n\t}", "public function listPost()\n {\n $this->areaAdmin->verifyAdmin();\n\n $posts = $this->postManager->getList(\"admin\");\n\n $this->renderview->generateView(array('name' => \"AdminPost\", 'function' => $posts, 'nameFunction' => 'posts'), 'layoutPageAdmin');\n }", "public function revisions()\n {\n return $this->morphMany(Revision::class, 'revisionable');\n }", "function wp_restore_post_revision($revision, $fields = \\null)\n {\n }", "function acf_get_post_latest_revision($post_id)\n{\n}", "public function kiwip_action_delete_revisions_adm_msg(){\n\t\tif(current_user_can('manage_options')){\n\t \techo '<div id=\"message\" class=\"updated fade\"><p><strong>All posts revisions have been deleted correctly.</strong></p></div>';\n\t }\n\t}", "public function dump( $args = array(), $assoc_args = array() ) {\n\n\t\tglobal $wpdb;\n\t\t$revs = $wpdb->get_var( \"SELECT COUNT(*) FROM $wpdb->posts WHERE post_type = 'revision'\" ); // phpcs:ignore WordPress.VIP.DirectDatabaseQuery.DirectQuery,WordPress.VIP.DirectDatabaseQuery.NoCaching\n\n\t\tif ( $revs < 1 ) {\n\t\t\tWP_CLI::success( 'No revisions.' );\n\t\t\treturn;\n\t\t}\n\n\t\tWP_CLI::confirm( sprintf( 'Remove all %d revisions?', $revs ), $assoc_args );\n\n\t\tif ( isset( $assoc_args['hard'] ) ) {\n\t\t\tWP_CLI::run_command( array( 'revisions', 'clean', -1 ), array( 'hard' => '' ) );\n\t\t\treturn;\n\t\t}\n\n\t\t$wpdb->query( \"DELETE FROM $wpdb->posts WHERE post_type = 'revision'\" ); // phpcs:ignore WordPress.VIP.DirectDatabaseQuery.DirectQuery,WordPress.VIP.DirectDatabaseQuery.NoCaching\n\n\t\tWP_CLI::success( 'Finished removing all revisions.' );\n\n\t}", "public function getAllRevisions()\n {\n // Retrieves username associated with an id. \n $this->ui_ids = array();\n\n /**\n * Retrieves list of previous versions of data dictionary.\n */\n $pid = $_GET[\"pid\"];\n $previous_versions = array();\n $sql = \"select p.pr_id, p.ts_approved, p.ui_id_requester, p.ui_id_approver,\n if(l.description = 'Approve production project modifications (automatic)',1,0) as automatic\n from redcap_metadata_prod_revisions p left join redcap_log_event l\n on p.project_id = l.project_id and p.ts_approved*1 = l.ts\n where p.project_id = $pid and p.ts_approved is not null order by p.pr_id\";\n\n if ($result = $this->query($sql))\n {\n // Cycle through results\n $rev_num = 0;\n $num_rows = $result->num_rows;\n while ($row = $result->fetch_object())\n {\n if ($rev_num == 0)\n {\n $previous_versions[] = array(\n \"id\" => $row->pr_id,\n \"label\" => \"Moved to Production\",\n \"requester\" => $this->getUsernameFirstLast($row->ui_id_requester),\n \"approver\" => $this->getUsernameFirstLast($row->ui_id_approver),\n \"automatic_approval\" => $row->automatic,\n \"ts_approved\" => $row->ts_approved,\n );\n }\n else\n {\n $previous_versions[] = array(\n \"id\" => $row->pr_id,\n \"label\" => \"Production Revision #$rev_num\",\n \"requester\" => $this->getUsernameFirstLast($row->ui_id_requester),\n \"approver\" => $this->getUsernameFirstLast($row->ui_id_approver),\n \"automatic_approval\" => $row->automatic,\n \"ts_approved\" => $row->ts_approved\n );\n }\n\n if ($rev_num == $num_rows - 1)\n {\n // Current revision will be mapped to timestamp and approver of last row\n $current_revision_ts_approved = $row->ts_approved;\n $current_revision_approver = $this->getUsernameFirstLast($row->ui_id_approver);\n $current_revision_requester = $this->getUsernameFirstLast($row->ui_id_requester);\n $current_revision_automatic = $row->automatic;\n }\n\n $rev_num++;\n }\n\n $result->close();\n \n // Sort by most recent version.\n $previous_versions = array_reverse($previous_versions);\n }\n\n // Shift timestamps, approvers, requesters, and automatic approval down by one,\n // as the correct info for each one is when the previous version was archived. \n $last_key = null;\n foreach($previous_versions as $key => $version)\n {\n if ($last_key !== null)\n {\n $previous_versions[$last_key][\"ts_approved\"] = $previous_versions[$key][\"ts_approved\"];\n $previous_versions[$last_key][\"requester\"] = $previous_versions[$key][\"requester\"];\n $previous_versions[$last_key][\"approver\"] = $previous_versions[$key][\"approver\"];\n $previous_versions[$last_key][\"automatic_approval\"] = $previous_versions[$key][\"automatic_approval\"];\n }\n $last_key = $key;\n }\n\n // Get correct production timestamp,\n // and the person who moved it to production\n if (!empty($previous_versions))\n {\n // Get correct production timestamp\n $sql = \"select production_time from redcap_projects where project_id = $pid\";\n if ($result = $this->query($sql))\n {\n while ($row = $result->fetch_object()){\n $timestamp = $row->production_time;\n $previous_versions[sizeof($previous_versions)-1][\"ts_approved\"] = $timestamp;\n }\n $result->close();\n }\n\n if (!empty($timestamp))\n {\n // Retrieve person who moved to production, as it's stored separately. \n $sql = \"select u.ui_id from redcap_user_information u, redcap_log_event l\n where u.username = l.user and l.description = 'Move project to production status' and l.project_id = $pid \n and l.ts = '\" . str_replace(array(' ',':','-'), array('','',''), $timestamp) . \"' order by log_event_id desc limit 1\";\n\n if ($result = $this->query($sql))\n {\n while ($row = $result->fetch_object()){\n $previous_versions[sizeof($previous_versions)-1][\"approver\"] = $this->getUsernameFirstLast($row->ui_id);\n }\n $result->close();\n }\n }\n }\n\n // Add current revision\n if (isset($current_revision_approver) && \n isset($current_revision_ts_approved) && \n isset($current_revision_automatic) && \n isset($current_revision_requester))\n {\n array_unshift($previous_versions, array(\n \"id\" => \"current\",\n \"label\" => \"Production Revision #$rev_num <b>(Current Revision)</b>\",\n \"requester\" => $current_revision_requester,\n \"approver\" => $current_revision_approver,\n \"automatic_approval\" => $current_revision_automatic,\n \"ts_approved\" => $current_revision_ts_approved\n ));\n }\n\n return $previous_versions;\n }", "public function getVersions($id, Array $options = [])\r\n {\r\n }", "function wp_is_post_revision($post)\n {\n }", "function get_post_objects( $query_args ) {\n$args = wp_parse_args( $query_args, array(\n 'post_type' => 'post',\n) );\n$posts = get_posts( $args );\n$post_options = array();\nif ( $posts ) {\n foreach ( $posts as $post ) {\n $post_options [ $post->ID ] = $post->post_title;\n }\n}\nreturn $post_options;\n}", "function get_section_post_types(){\n $id = vezba_get_option( 'ddlSections' );\n\n $section = wp_remote_get( 'http://www.iwa-network.org/wp-json/wp/v2/sections/'. $id );\n $body = wp_remote_retrieve_body( $section );\n $data = json_decode( $body, true );\n\n // Get all section post types\n foreach( $data as $key => $value ) {\n if( is_array( $value ) ) {\n $counter = 0;\n foreach( $value as $item ) {\n $links = $value['wp:post_type']; \n }\n }\n } \n return $links;\n}", "public function GetAll($options = array())\n {\n $records = $this->dbHelper->GetAll();\t\n $contentTypes = array();\n foreach ($records as $record)\n {\n $contentTypes[] = PrepareRecord($this->db, __CLASS__, $record);\n }\n return $contentTypes;\n }", "public function massDeleteRevisionsAction()\n {\n $ids = $this->getRequest()->getParam('revision');\n if (!is_array($ids)) {\n $this->_getSession()->addError($this->__('Please select revision(s).'));\n }\n else {\n try {\n $userId = Mage::getSingleton('admin/session')->getUser()->getId();\n $accessLevel = Mage::getSingleton('gri_cms/config')->getAllowedAccessLevel();\n\n foreach ($ids as $id) {\n $revision = Mage::getSingleton('gri_cms/page_revision')\n ->loadWithRestrictions($accessLevel, $userId, $id);\n\n if ($revision->getId()) {\n $revision->delete();\n }\n }\n $this->_getSession()->addSuccess(\n $this->__('Total of %d record(s) have been deleted.', count($ids))\n );\n } catch (Mage_Core_Exception $e) {\n $this->_getSession()->addError($e->getMessage());\n } catch (Exception $e) {\n Mage::logException($e);\n $this->_getSession()->addError(\n Mage::helper('gri_cms')->__('An error occurred while deleting revisions.')\n );\n }\n }\n $this->_redirect('*/*/edit', array('_current' => true, 'tab' => 'revisions'));\n\n return $this;\n }", "function test_get_revisions_gets_the_posts_revisions() {\n\n\t\t$post = get_post( $this->mock_post_id );\n\n\t\t$post->post_content = 'update 1';\n\n\t\twp_update_post( $post );\n\n\t\t$post->post_content = 'update 2';\n\n\t\twp_update_post( $post );\n\n\t\t$post->post_content = 'update 3';\n\n\t\twp_update_post( $post );\n\n\t\t$revisions = wp_get_post_revisions( $this->mock_post_id );\n\n\t\t$revisions_data = array();\n\n\t\t$last_month = date( 'm', strtotime( 'last day of -1 month' ) );\n\t\t$this_year = date( 'Y', strtotime( 'last day of this month' ) );\n\t\t$next_month = date( 'm', strtotime( 'last day of +1 month' ) );\n\n\t\t$revisions_counter = 0;\n\n\t\t$first_revision = false;\n\n\t\tforeach ( $revisions as $key => $revision ) {\n\n\t\t\t$month = ( $revisions_counter >= 1 ) ? $last_month : $next_month;\n\n\t\t\tif ( 1 == $revisions_counter ) {\n\n\t\t\t\t$second_revision = $revision;\n\n\t\t\t}\n\n\t\t\t$revisions_data[ $revision->ID ] = array(\n\n\t\t\t\t'month' => $month,\n\t\t\t\t'day' => $revisions_counter + 1 . '',\n\t\t\t\t'year' => $this_year,\n\t\t\t\t'hour' => '12',\n\t\t\t\t'minute' => '30',\n\n\t\t\t);\n\n\t\t\t$revisions_counter++;\n\n\t\t}\n\n\t\tupdate_post_meta( $this->mock_post_id, 'dep_revisions_data', json_encode( $revisions_data ) );\n\n\t\t$args = array(\n\t\t\t'p' => $this->mock_post_id,\n\t\t\t'post_type' => 'page',\n\t\t);\n\n\t\t$query = new \\WP_Query( $args );\n\n\t\tif ( $query->have_posts() ) {\n\n\t\t\twhile ( $query->have_posts() ) {\n\n\t\t\t\t$query->the_post();\n\n\t\t\t\t$actual = $this->dep_page_versions_controller->get_revision( $post->post_content );\n\n\t\t\t}\n\t\t}\n\n\t\t$this->assertEquals( $second_revision->post_content, $actual );\n\n\t}", "function simple_history_print_nav() {\n\n\tglobal $wpdb;\n\t$tableprefix = $wpdb->prefix;\n\t\n\t// fetch all types that are in the log\n\tif (isset($_GET[\"simple_history_type_to_show\"])) {\n\t\t$simple_history_type_to_show = $_GET[\"simple_history_type_to_show\"];\n\t} else {\n\t\t$simple_history_type_to_show = \"\";\n\t}\n\n\t// Get all object types and object subtypes\n\t// order by the number of times they occur\n\t$sql = \"SELECT \n\t\t\t\tcount(object_type) AS object_type_count,\n\t\t\t\tobject_type, object_subtype \n\t\t\tFROM {$tableprefix}simple_history \n\t\t\tGROUP BY object_type, object_subtype\n\t\t\tORDER BY object_type_count DESC, object_type, object_subtype\n\t\t\";\n\t$arr_types = $wpdb->get_results($sql);\n\n\t$css = \"\";\n\tif (empty($simple_history_type_to_show)) {\n\t\t$css = \"class='selected'\";\n\t}\n\n\t// Reload-button\n\t$str_reload_button = sprintf('<a class=\"simple-fields-reload\" title=\"%1$s\" href=\"#\"><span>Reload</span></a>', esc_attr__(\"Reload history\", \"simple-history\"));\n\techo $str_reload_button;\n\n\t// Begin select\n\t$str_types_select = \"\";\n\t$str_types_select .= \"<select name='' class='simple-history-filter simple-history-filter-type'>\";\n\n\t$total_object_num_count = 0;\n\tforeach ( $arr_types as $one_type ) {\n\t\t$total_object_num_count += $one_type->object_type_count;\n\t}\n\n\t// First filter is \"all types\"\n\t$link = esc_html(add_query_arg(\"simple_history_type_to_show\", \"\"));\n\t$str_types_desc = __(\"All types\", 'simple-history');\n\n\t$str_types_select .= sprintf('<option data-simple-history-filter-type=\"\" data-simple-history-filter-subtype=\"\" value=\"%1$s\">%2$s (%3$d)</option>', $link, esc_html($str_types_desc), $total_object_num_count );\n\n\t// Loop through all types\n\t// $one_type->object_type = user | post | attachment | comment | plugin | attachment | post | Reply | Topic | Widget | Wordpress_core\n\t// $one_type->object_subtype = page | nav_menu_item | ...\n\t#sf_d($arr_types);\n\tforeach ($arr_types as $one_type) {\n\n\t\t$css = \"\";\n\t\t$option_selected = \"\";\n\t\tif ($one_type->object_subtype && $simple_history_type_to_show == ($one_type->object_type.\"/\".$one_type->object_subtype)) {\n\t\t\t$css = \"class='selected'\";\n\t\t\t$option_selected = \" selected \";\n\t\t} elseif (!$one_type->object_subtype && $simple_history_type_to_show == $one_type->object_type) {\n\t\t\t$css = \"class='selected'\";\n\t\t\t$option_selected = \" selected \";\n\t\t}\n\n\t\t// Create link to filter this type + subtype\n\t\t$arg = \"\";\n\t\tif ($one_type->object_subtype) {\n\t\t\t$arg = $one_type->object_type.\"/\".$one_type->object_subtype;\n\t\t} else {\n\t\t\t$arg = $one_type->object_type;\n\t\t}\n\t\t$link = esc_html(add_query_arg(\"simple_history_type_to_show\", $arg));\n\n\t\t// Begin option\n\t\t$str_types_select .= sprintf(\n\t\t\t'<option %1$s data-simple-history-filter-type=\"%2$s\" data-simple-history-filter-subtype=\"%3$s\" value=\"%4$s\">',\n\t\t\t$option_selected, // 1\n\t\t\t$one_type->object_type, // 2\n\t\t\t$one_type->object_subtype, // 3\n\t\t\t$link // 4\n\t\t);\n\t\t\n\t\t// Some built in types we translate with built in translation, the others we use simple history for\n\t\t// TODO: use WP-function to get all built in types?\n\t\t$object_type_translated = \"\";\n\t\t$object_subtype_translated = \"\";\n\n\t\t// Get built in post types\n\t\t$arr_built_in_post_types = get_post_types( array(\"_builtin\" => true) );\n\n\t\t$object_type_translated = \"\";\n\t\t$object_subtype_translated = \"\";\n\n\t\t// For built in types\n\t\tif ( in_array( $one_type->object_type, $arr_built_in_post_types ) ) {\n\t\t\t\n\t\t\t// Get name of main type\n\t\t\t$object_post_type_object = get_post_type_object( $one_type->object_type );\n\t\t\t$object_type_translated = $object_post_type_object->labels->name;\n\t\t\t\n\t\t\t// Get name of subtype\n\t\t\t$object_subtype_post_type_object = get_post_type_object( $one_type->object_subtype );\n\t\t\tif ( ! is_null( $object_subtype_post_type_object ) ) {\n\t\t\t\t$object_subtype_translated = $object_subtype_post_type_object->labels->name;;\n\t\t\t}\n\n\t\t}\n\t\t\n\t\tif ( empty( $object_type_translated ) ) {\n\t\t\t$object_type_translated = ucfirst( esc_html__( $one_type->object_type, \"simple-history\") );\n\t\t}\n\n\t\tif ( empty( $object_subtype_translated ) ) {\n\t\t\t$object_subtype_translated = ucfirst( esc_html__( $one_type->object_subtype, \"simple-history\") );\n\t\t}\n\t\t\n\t\t// Add name of type (post / attachment / user / etc.)\n\t\t\n\t\t// built in types use only subtype\n\t\tif ( in_array( $one_type->object_type, $arr_built_in_post_types ) && ! empty($object_subtype_translated) ) {\n\n\t\t\t$str_types_select .= $object_subtype_translated;\n\n\t\t} else {\n\t\t\t\n\t\t\t$str_types_select .= $object_type_translated;\n\n\t\t\t// And subtype, if different from main type\n\t\t\tif ($object_subtype_translated && $object_subtype_translated != $object_type_translated) {\n\t\t\t\t$str_types_select .= \"/\" . $object_subtype_translated;\n\t\t\t}\n\n\t\t}\n\t\t// Add object count\n\t\t$str_types_select .= sprintf(' (%d)', $one_type->object_type_count);\n\t\t\n\t\t// Close option\n\t\t$str_types_select .= \"\\n</option>\";\n\t\t\n\t\t// debug\n\t\t#$str_types .= \" type: \" . $one_type->object_type;\n\t\t#$str_types .= \" type: \" . ucfirst($one_type->object_type);\n\t\t#$str_types .= \" subtype: \" . $one_type->object_subtype. \" \";\n\t\t\n\t} // foreach arr types\n\n\t$str_types_select .= \"\\n</select>\";\n\n\t// Output filters\n\tif ( ! empty( $arr_types ) ) {\n\t\t// echo $str_types;\n\t\techo $str_types_select;\n\t}\n\n\t// fetch all users that are in the log\n\t$sql = \"SELECT DISTINCT user_id FROM {$tableprefix}simple_history WHERE user_id <> 0\";\n\t$arr_users_regular = $wpdb->get_results($sql);\n\tforeach ($arr_users_regular as $one_user) {\n\t\t$arr_users[$one_user->user_id] = array(\"user_id\" => $one_user->user_id);\n\t}\n\t\n\tif ( ! empty( $arr_users ) ) {\n\t\n\t\tforeach ($arr_users as $user_id => $one_user) {\n\t\t\t$user = get_user_by(\"id\", $user_id);\n\t\t\tif ($user) {\n\t\t\t\t$arr_users[$user_id][\"user_login\"] = $user->user_login;\n\t\t\t\t$arr_users[$user_id][\"user_nicename\"] = $user->user_nicename;\n\t\t\t\tif (isset($user->first_name)) {\n\t\t\t\t\t$arr_users[$user_id][\"first_name\"] = $user->first_name;\n\t\t\t\t}\n\t\t\t\tif (isset($user->last_name)) {\n\t\t\t\t\t$arr_users[$user_id][\"last_name\"] = $user->last_name;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t}\n\n\tif (isset($arr_users) && $arr_users) {\n\n\t\tif (isset($_GET[\"simple_history_user_to_show\"])) {\n\t\t\t$simple_history_user_to_show = $_GET[\"simple_history_user_to_show\"];\n\t\t} else {\n\t\t\t$simple_history_user_to_show = \"\";\n\t\t}\n\n\t\t$str_users_select = \"\";\n\t\t$str_users_select .= \"<select name='' class='simple-history-filter simple-history-filter-user'>\";\n\n\t\t$css = \"\";\n\t\t$option_selected = \"\";\n\t\tif (empty($simple_history_user_to_show)) {\n\t\t\t$css = \" class='selected' \";\n\t\t\t$option_selected = \" selected \";\n\t\t}\n\n\t\t// All users\n\t\t$link = esc_html(add_query_arg(\"simple_history_user_to_show\", \"\"));\n\n\t\t$str_users_select .= sprintf(\n\t\t\t\t'<option data-simple-history-filter-user-id=\"%4$s\" value=\"%3$s\" %2$s>%1s</option>', \n\t\t\t\t__(\"By all users\", 'simple-history'), // 1\n\t\t\t\t$option_selected, // 2\n\t\t\t\t$link, // 3\n\t\t\t\t\"\" // 4\n\t\t\t);\n\n\t\tforeach ($arr_users as $user_id => $user_info) {\n\n\t\t\t$user = new WP_User($user_id);\n\t\t\tif ( ! $user->exists() ) continue;\n\n\t\t\t$link = esc_html(add_query_arg(\"simple_history_user_to_show\", $user_id));\n\t\t\t\n\t\t\t$css = \"\";\n\t\t\t$option_selected = \"\";\n\n\t\t\tif ($user_id == $simple_history_user_to_show) {\n\t\t\t\t$css = \" class='selected' \";\n\t\t\t\t$option_selected = \" selected \";\n\t\t\t}\n\n\t\t\t// all users must have username and email\n\t\t\t$str_user_name = sprintf('%1$s (%2$s)', esc_attr($user->user_login), esc_attr($user->user_email));\n\t\t\t// if ( ! empty( $user_info[\"first_name\"] ) $user_info[\"last_name\"] );\n\t\t\t\n\t\t\t$str_users_select .= sprintf(\n\t\t\t\t'<option data-simple-history-filter-user-id=\"%4$s\" %2$s value=\"%1$s\">%1$s</option>',\n\t\t\t\t$str_user_name, // 1\n\t\t\t\t$option_selected, // 2\n\t\t\t\t$link, // 3\n\t\t\t\t$user_id\n\t\t\t);\n\n\t\t}\n\n\t\t$str_users_select .= \"</select>\";\n\n\t\tif ( ! empty($str_users_select) ) {\n\t\t\techo $str_users_select;\n\t\t}\n\n\t}\n\t\n\t// search\n\t$str_search = __(\"Search\", 'simple-history');\n\t$search = \"<p class='simple-history-filter simple-history-filter-search'>\n\t\t<input type='text' />\n\t\t<input type='button' value='$str_search' class='button' />\n\t</p>\";\n\techo $search;\n\t\n}", "function get_post_objects( $query_args ) {\n $args = wp_parse_args( $query_args, array(\n 'post_type' => 'post',\n ) );\n $posts = get_posts( $args );\n $post_options = array();\n if ( $posts ) {\n foreach ( $posts as $post ) {\n $post_options [ $post->ID ] = $post->post_title;\n }\n }\n return $post_options;\n}", "function wp_get_revision_ui_diff($post, $compare_from, $compare_to)\n {\n }", "protected function get_posts_query_args($post_type)\n {\n }", "function get_translatable_documents($icl_post_types)\n {\n }", "function display()\n\t{\n\t\treturn $this->db->select('pages.*, revisions.*')\n\t\t\t\t\t->where('pages.id', $this->attribute('id'))\n\t\t\t\t\t->or_where('pages.slug', $this->attribute('slug'))\n\t\t\t\t\t->where('status', 'live')\n\t\t\t\t\t->join('revisions', 'pages.revision_id = revisions.id', 'LEFT')\n\t\t\t\t\t->get('pages')\n\t\t\t\t\t->row_array();\n\t}", "public static function getPostsByType($type) {\n $args = array(\n \t'posts_per_page' => 100,\n \t'offset' => 0,\n \t'orderby' => 'menu_order',\n \t'order' => 'DESC',\n \t'post_type' => $type,\n \t'post_status' => 'publish',\n \t'suppress_filters' => true\n );\n\n $posts = get_posts( $args );\n self::postSort($posts);\n\n return $posts;\n }", "public function index() {\n\t\t\t$this->data[\"content\"] = $this->mongo_db->order_by(array(\"_id\"))->get(\"content_types\");\n\t\t\t$this->returndata();\n\t\t}", "function get_posts_data()\n{\n $args = array(\n 'post_type' => $_POST['post_type'],\n 'order' => 'ASC',\n 'orderby' => 'title'\n );\n $allowed_keys = ['post_title', 'post_name', 'ID'];\n $queried = get_posts($args);\n echo \"{\\\"data\\\":\".json_encode($queried).\"}\";\n wp_die();\n}", "public function revision($id){\n $users = User::orderBy('id','desc')->get();\n\n $posts = Post::with('comments', 'user', 'project')->orderBy('id', 'desc')->limit(20)->get();\n\n $tasks = DB::table('tasks')\n ->leftJoin('users', 'tasks.user_id', '=', 'users.id')\n ->leftJoin('projects', 'tasks.project_id', '=', 'projects.id')\n ->select('tasks.*', 'users.first_name', 'users.last_name', 'users.profile_image', 'projects.project_name')\n ->orderBy('id', 'desc')\n ->get();\n\n $user = User::find($id);\n //fetch folder by ID\n $revision = Review::find($id);\n $folders = Folder::with('files', 'user')->orderBy('id', 'desc')->limit(20)->get();\n //fetch user by ID\n $user = User::find($id);\n $notes = DB::table('notes')\n ->leftJoin('users', 'notes.user_id', '=', 'users.id')\n ->select('notes.*', 'users.first_name', 'users.last_name', 'users.profile_image')\n ->orderBy('notes.id', 'desc')\n ->get();\n $colors = ColorSettings::orderBy('id', 'desc')->limit('1')->get();\n\n $logos = WorkspaceLogoSetting::orderBy('id', 'desc')->limit('1')->get();\n\n //dd($posts); die();\n\n return view('document_control.revision', [\n 'posts' => $posts,\n 'tasks' => $tasks,\n 'revision'=> $revision,\n 'folders'=> $folders,\n 'notes' => $notes,\n 'colors' => $colors,\n 'logos' => $logos,\n 'users' => $users,\n 'user' => $user,\n ]);\n\n }", "function wp_revisions_to_keep($post)\n {\n }", "public function lists($options = [])\n {\n\t\treturn $this->method('list', $options);\n }", "public function get_admin_list() {\n //Grab all blog posts\n $posts = Post::paginate($this->perPage);\n\n //Create a data array\n $data = array(\n 'section' => 'post',\n 'pageTitle' => 'Blog Post List',\n 'posts' => $posts,\n );\n\n //Build the view\n return View::make('admin.post.list', $data);\n }", "public function status( $args = array(), $assoc_args = array() ) {\n\n\t\tif ( defined( 'WP_POST_REVISIONS' ) ) {\n\t\t\tif ( true === WP_POST_REVISIONS ) {\n\t\t\t\tWP_CLI::success( 'WP_POST_REVISIONS is true. Keeps all revisions.' );\n\t\t\t} else {\n\t\t\t\tWP_CLI::success( sprintf( 'Keeping the last %d revisions', WP_POST_REVISIONS ) );\n\t\t\t}\n\t\t} else {\n\t\t\tWP_CLI::success( 'WP_POST_REVISIONS is undefined.' );\n\t\t}\n\n\t}", "public function status( $args = array(), $assoc_args = array() ) {\n\n\t\tif ( defined( 'WP_POST_REVISIONS' ) ) {\n\t\t\tif ( true === WP_POST_REVISIONS ) {\n\t\t\t\tWP_CLI::success( 'WP_POST_REVISIONS is true. Keeps all revisions.' );\n\t\t\t} else {\n\t\t\t\tWP_CLI::success( sprintf( 'Keeping the last %d revisions', WP_POST_REVISIONS ) );\n\t\t\t}\n\t\t} else {\n\t\t\tWP_CLI::success( 'WP_POST_REVISIONS is undefined.' );\n\t\t}\n\n\t}", "public function actionRestList() {\n\t $this->doRestList();\n\t}", "public function getPageList($cat=false, $term=false, $type=false, $format=0, $msv){\n\t\tglobal $db, $site;\n\n\t\t$this->from = $this->getPerPage()*($this->getPage()-1);\n\t\t$this->to = $this->getPerPage()*$this->getPage();\n\n\t\t$select = \"SELECT \n\t\t\tp.guid, p.title, template_title, template, locked, offline, publishable,\n\t\t\tdate_created, created_by, created_by_email, o_date_modified, created_by_username, \n\t\t\tdate_modified, modified_by, date_published, published_by, \n\t\t\tIF(o_date_created>o_date_modified,date_created,IF(o_date_modified>o_date_published,date_modified,date_published)) AS date_updated,\n\t\t\tIF (o_date_created>o_date_modified,created_by,IF(o_date_modified>o_date_published,modified_by,published_by)) AS updated_by,\n\t\t\tIF (o_date_created>o_date_modified,'created',IF(o_date_modified>o_date_published,'modified','published')) AS updated_action\n\t\t\tFROM get_page_properties p \";\n\n\t\t$type=($type)?\"AND parent='\".$type.\"' \":'';\n\t\t\n\t\t$exceptions = \"AND template_type=1 \";\t// Default to pages.\n\t\tif ($format==1) $exceptions = \"AND template_type=2 AND template!=23 \";\t// Panels\n\n\t\t// Search for pages/panels by title\n\t\tif($cat=='title' && $term){ \n\t\t\t$total_query = \"SELECT guid FROM get_page_properties p\n\t\t\t\tWHERE msv=$msv \".$type.$exceptions.\" \n\t\t\t\tAND p.guid != '\".($site->id+0).\"'\n\t\t\t\tAND title LIKE '%\". $term .\"%'\";\n\t\t\t$query=$select.\"\n\t\t\t\tWHERE msv=$msv \".$type.$exceptions.\" \n\t\t\t\tAND p.guid != '\".($site->id+0).\"'\n\t\t\t\tAND title LIKE '%\". $term .\"%' \n\t\t\t\tORDER BY title ASC \n\t\t\t\tLIMIT \". $this->from .\",\". $this->getPerPage();\n\t\t}\n\t\t// Search for pages/panels based on content\n\t\telse if($cat=='content' && $term){ \n\t\t\t$total_query = \"SELECT guid FROM get_page_content_properties p\n\t\t\t\tWHERE msv=$msv \".$type.$exceptions.\" \n\t\t\t\tAND p.guid != '\".($site->id+0).\"'\n\t\t\t\tAND revision_id = 0 AND content LIKE '%\". $term .\"%'\";\n\t\t\t$query = $select. \"\n\t\t\t\tLEFT JOIN content c ON p.guid=c.parent\n\t\t\t\tWHERE msv=$msv \".$type.$exceptions.\" \n\t\t\t\tAND p.guid != '\".($site->id+0).\"'\n\t\t\t\tAND revision_id = 0 \n\t\t\t\tAND content LIKE '%\". $term .\"%' \n\t\t\t\tORDER by p.title ASC\n\t\t\t\tLIMIT \". $this->from .\",\". $this->getPerPage();\n\t\t}\n\t\telse if($cat=='tags' && $term){ // TAGS\n\t\t\t$total_query = \"SELECT p.guid FROM get_page_content_properties p, \n\t\t\t\ttag_relationships tr, tags t \n\t\t\t\tWHERE p.msv=$msv \".$type.$exceptions.\" \n\t\t\t\tAND p.guid != '\".($site->id+0).\"'\n\t\t\t\tAND p.guid = tr.guid AND tr.tag_id = t.id AND p.revision_id = 0 \n\t\t\t\tAND t.tag LIKE '%\". $term .\"%' \n\t\t\t\tGROUP BY p.guid\";\n\t\t\t$query = $select .\", tag_relationships tr, tags t \n\t\t\t\tWHERE p.msv=$msv \".$type.$exceptions.\" \n\t\t\t\tAND p.guid != '\".($site->id+0).\"'\n\t\t\t\tAND p.guid = tr.guid AND tr.tag_id = t.id \n\t\t\t\tAND t.tag LIKE '%\". $term .\"%' \n\t\t\t\tGROUP BY p.guid \n\t\t\t\tORDER BY p.title\n\t\t\t\tLIMIT \". $this->from .\",\". $this->getPerPage();\n\t\t}\n\t\telse{\n\t\t\t$total_query = \"SELECT guid FROM get_page_properties p\n\t\t\t\tWHERE msv=$msv \".$type.$exceptions .\" \n\t\t\t\tAND p.guid != '\".($site->id+0).\"'\n\t\t\t\t\";\n\t\t\t$query = $select.\"\n\t\t\t\tWHERE msv=$msv \".$type.$exceptions .\" \n\t\t\t\tAND p.guid != '\".($site->id+0).\"'\n\t\t\t\tORDER BY o_date_modified DESC,title ASC \n\t\t\t\tLIMIT \". $this->from .\",\". $this->getPerPage();\n\n\t\t}\n\t\t\n\t\t// Get total results and set number of pages etc...\n\t\t//print \"$total_query<br>\\n\";\n\t\t$db->query($total_query);\n\t\t$this->setTotal($db->num_rows);\t\n\t\t$this->setTotalPages($db->num_rows);\t\n\t\t$db->flush();\n\t\t\n\t\t////niceError($query);\n\t\t//print \"$query<br>\\n\";\n\t\t$pages = $db->get_results($query);\n\t\tif(sizeof($pages)>0) return $pages;\n\t\telse return false;\n\t}", "function get_all($post_type) {\n\n\treturn new WP_Query(\n\t\tarray(\n\t\t\t'post_type'\t\t\t=> $post_type,\n\t\t\t'posts_per_page'\t=> -1\n\t\t)\n\t);\n\n}", "function get_post_types() {\n\tglobal $rf_custom_posts;\n\n\t$post = new PostType();\n\t$cpts = $post->get_admin_post_pages();\n\n\t$cpts = array_merge($cpts, $rf_custom_posts);\n\t$cpts = apply_filters(\"admin/post_types\", $cpts);\n\n\treturn $cpts;\n}", "public function get_posts($params) {\n\t\t$error = $this->_validate_capabilities(array('edit_posts'));\n\t\tif (!empty($error)) return $error;\n\n\t\t// check paged parameter; if empty set to defaults\n\t\t$paged = !empty($params['paged']) ? (int) $params['paged'] : 1;\n\t\t$numberposts = !empty($params['numberposts']) ? (int) $params['numberposts'] : 10;\n\t\t$offset = ($paged - 1) * $numberposts;\n\n\t\t$args = array(\n\t\t\t'posts_per_page' => $numberposts,\n\t\t\t'paged' => $paged,\n\t\t\t'offset' => $offset,\n\t\t\t'post_type' => 'post',\n\t\t\t'post_status' => 'publish,private,draft,pending,future',\n\t\t);\n\n\t\tif (!empty($params['keyword'])) {\n\t\t\t$args['s'] = $params['keyword'];\n\t\t}\n\n\t\t$query = new WP_Query($args);\n\t\t$result = $query->posts;\n\n\t\t$count_posts = (int) $query->found_posts;\n\t\t$page_count = 0;\n\t\t\n\t\tif ($count_posts > 0) {\n\t\t\t$page_count = absint($count_posts / $numberposts);\n\t\t\t$remainder = absint($count_posts % $numberposts);\n\t\t\t$page_count = ($remainder > 0) ? ++$page_count : $page_count;\n\t\t}\n\t\t\n\t\t$info = array(\n\t\t\t'page' => $paged,\n\t\t\t'pages' => $page_count,\n\t\t\t'results' => $count_posts,\n\t\t\t'items_from' => (($paged * $numberposts) - $numberposts) + 1,\n\t\t\t'items_to' => ($paged == $page_count) ? $count_posts : $paged * $numberposts,\n\t\t);\n\n\t\t$posts = array();\n\t\tif (!empty($result)) {\n\t\t\tforeach ($result as $post) {\n\t\t\t\tarray_push($posts, array('ID' => $post->ID, 'title' => $post->post_title));\n\t\t\t}\n\t\t}\n\n\t\t$response = array(\n\t\t\t'posts' => $posts,\n\t\t\t'info' => $info\n\t\t);\n\t\treturn $this->_response($response);\n\t}", "public function actionList() {\n $models = Post::model()->findAll();\n $rows = array();\n foreach($models as $model) \n $rows[] = $model->attributes;\n\t\t$data_response = array(\n\t\t\t'error'=> array('status'=>200, 'message'=>''),\n\t\t\t'datas'=>$rows\n\t\t);\n $this->response($data_response);\n }", "function getList()\r\n\t{\r\n\t\tglobal $mainframe;\r\n\t\t$db\t=& $this->getDBO();\r\n\r\n\t\t// Determine paging variables\r\n\t\t$limit = $mainframe->getUserStateFromRequest( \"viewlistlimit\", 'limit', 10 );\r\n\t\t$limitstart = $mainframe->getUserStateFromRequest( \"viewlimitstart\", 'limitstart', 0 );\r\n\r\n\t\t// Determine basic variables \r\n\t\t$option = JRequest::getVar('option', '', '', 'string');\r\n\t\t$version = JRequest::getVar('version', '', '', 'string');\r\n\t\t$type = JRequest::getVar('type', '', '', 'string');\r\n\t\t$name = JRequest::getVar('name', '', '', 'string');\r\n\t\t$this->_list['option'] = JRequest::getVar('option', '', '', 'string'); \r\n\t\t$this->_list['version'] = $version;\r\n\t\t$this->_list['stype'] = $type;\r\n\t\t$this->_list['sname'] = $name;\r\n\r\n\t\t// Create option field for servertype\r\n\t\t$types[] = Array();\r\n\t\t$array = Array (0 => Array ('component', JText::_( 'Component')),\r\n\t \t 1 => Array ('module', JText::_( 'Module')),\r\n\t\t 2 => Array ('plugin', JText::_( 'Plugin')),\r\n\t \t 3 => Array ('template', 'Template'),\r\n\t \t 4 => Array ('language', JText::_( 'Language'))\r\n );\r\n\r\n\t\t$types[] = mosHTML::makeOption( '', JText::_('Select Type'));\r\n\t\tfor ($i=0; $i<count($array); $i++) {\r\n\t\t\t$types[] = mosHTML::makeOption( $array[$i][0], $array[$i][1] );\r\n\t\t} # End for\r\n\t\t$this->_list['type'] = mosHTML::selectList( $types, 'type', 'class=\"inputbox\" size=\"1\"' . 'onchange=\"document.adminForm.submit();\"', 'value', 'text', $type);\r\n\r\n\t\t// Create option field for package names.\r\n\t\t$query = \"SELECT name FROM #__jpackagedir_packages GROUP BY 1\";\r\n\t\t$db->setQuery($query);\r\n\t\t$rows = $db->loadObjectList();\r\n\r\n\t\t$names[] = mosHTML::makeOption( '', JText::_('Select Package'));\r\n\t\tforeach ($rows as $row) {\r\n\t\t\t$names[] = mosHTML::makeOption( $row->name, $row->name );\r\n\t\t} # End for\r\n\t\t$this->_list['name'] = mosHTML::selectList( $names, 'name', 'class=\"inputbox\" size=\"1\"' . 'onchange=\"document.adminForm.submit();\"', 'value', 'text', $name);\r\n\r\n\t\t// Determine where clause\r\n\t\t$this->_list['rows'] = Array();\r\n\t\t$where = Array();\r\n\t\tif (!empty($type)) { $where[] = \"type = '$type'\"; }\r\n\t\tif (!empty($name)) { $where[] = \"name = '$name'\"; }\r\n\t\tif (!empty($version)) { $where[] = \"version = '$version'\"; }\r\n\t\t$where = (count($where) ? \"\\n WHERE \".implode(' AND ', $where) : '');\r\n\r\n\t\t// Get the total number of records, this is used for paging option\r\n\t\t// in form.\r\n\t\t$query = \"SELECT COUNT(*) FROM #__jpackagedir_packages\" . $where;\r\n\t\t$db->setQuery( $query );\r\n\t\t$total = $db->loadResult();\r\n\r\n\t\t// Now read the current dataset, and pass it on...\r\n\t\t$query = \"SELECT * FROM #__jpackagedir_packages $where ORDER BY version\";\r\n\t\t$db->setQuery( $query, $limitstart, $limit );\r\n\t\t$this->_list['rows'] = $this->_db->loadObjectList();\r\n\t\tif ($db->getErrorNum()) {\r\n\t\t\treturn false;\r\n\t\t} # End if\r\n\r\n\r\n\t\t// Initialize the paging, offer the total number of records, the first record\r\n\t\t// for current page and the number of records to render.\r\n\t\tinclude_once(JPATH_BASE.DS.\"includes\".DS.\"pageNavigation.php\");\r\n\t\t$this->_list['pagenav'] = new mosPageNav( $total, $limitstart, $limit );\r\n\r\n\t\treturn $this->_list;\r\n\t}", "function MWX__list_pages($args = '')\n{\n $defaults = array(\n 'depth' => 0, 'show_date' => '',\n 'date_format' => get_option('date_format'),\n 'child_of' => 0, 'exclude' => '',\n 'title_li' => __('Pages'), 'echo' => 1,\n 'authors' => '', 'sort_column' => 'menu_order, post_title',\n 'link_before' => '', 'link_after' => ''\n );\n\n $r = wp_parse_args( $args, $defaults );\n extract( $r, EXTR_SKIP );\n\n $output = '';\n $current_page = 0;\n\n // sanitize, mostly to keep spaces out\n $r['exclude'] = preg_replace('/[^0-9,]/', '', $r['exclude']);\n\n // Allow plugins to filter an array of excluded pages\n $r['exclude'] = implode(',', apply_filters('wp_list_pages_excludes', explode(',', $r['exclude'])));\n\n // Query pages.\n $r['hierarchical'] = 0;\n $pages = MWX__get_pages($r);\n\n if ( !empty($pages) ) {\n if ( $r['title_li'] )\n $output .= '<li class=\"pagenav\">' . $r['title_li'] . '<ul>';\n\n global $wp_query;\n if ( is_page() || is_attachment() || $wp_query->is_posts_page )\n $current_page = $wp_query->get_queried_object_id();\n $output .= walk_page_tree($pages, $r['depth'], $current_page, $r);\n\n if ( $r['title_li'] )\n $output .= '</ul></li>';\n }\n\n $output = apply_filters('wp_list_pages', $output);\n\n if ( $r['echo'] )\n echo $output;\n else\n return $output;\n}", "function drush_restapi_list() {\n\n $resources = restapi_get_resources();\n $last_module = NULL;\n $rows = [\n [dt('Module'), dt('Path'), dt('Class')],\n ];\n\n foreach($resources as $resource) {\n if ($last_module != $resource->getModule()) {\n $module = $last_module = $resource->getModule();\n }\n else {\n $module = '';\n }\n $rows[] = [$module, $resource->getPath(), $resource->getClass()];\n }\n\n drush_print_table($rows, TRUE);\n drush_log(dt('Displaying !count total resources', [\n '!count' => count($resources),\n ]), 'ok');\n\n}", "function acf_get_taxonomies_for_post_type($post_types = 'post')\n{\n}", "function sr_admin_actions() { \n\tadd_options_page(\"Standards Reader\", \"Standards Reader\", \"edit_published_posts\", \"sr_options\", \"sr_admin\");\n}", "public static function getAllEntries() {\n global $_module;\n\n $result = lC_Product_variants_Admin::getAllEntries($_GET[$_module]);\n $result['rpcStatus'] = RPC_STATUS_SUCCESS;\n\n echo json_encode($result);\n }", "function wp_post_revision_field($value, $field_name, $post = \\null, $direction = \\false)\n {\n }" ]
[ "0.7891996", "0.6746695", "0.67321306", "0.62400454", "0.5947285", "0.57904476", "0.5750635", "0.5735336", "0.56583726", "0.5609997", "0.56023806", "0.55723524", "0.55667967", "0.55667967", "0.5557464", "0.54731536", "0.5445834", "0.53963214", "0.539069", "0.53585106", "0.53410584", "0.5332101", "0.531143", "0.53050584", "0.5278717", "0.52563375", "0.5242223", "0.5219672", "0.52192163", "0.5182358", "0.5180263", "0.5179022", "0.5166698", "0.5164555", "0.5153242", "0.5119832", "0.5106712", "0.5104322", "0.50943047", "0.5087115", "0.5085", "0.5064292", "0.5032375", "0.5023521", "0.5000832", "0.4999423", "0.49985513", "0.499312", "0.49846336", "0.49824566", "0.49615535", "0.49607596", "0.49534246", "0.49209815", "0.49198025", "0.49083313", "0.49065247", "0.49059582", "0.49045464", "0.49045244", "0.4901322", "0.48982885", "0.48736733", "0.48648867", "0.48489225", "0.48318675", "0.4821626", "0.4816839", "0.4805958", "0.47989303", "0.4798335", "0.4784616", "0.47801164", "0.47706118", "0.47634107", "0.47605783", "0.47600853", "0.4759417", "0.47386783", "0.47356275", "0.47345605", "0.47341195", "0.47328755", "0.4731322", "0.47281793", "0.47270983", "0.47270983", "0.47229064", "0.47212955", "0.47200793", "0.47134244", "0.47095388", "0.47093394", "0.4693122", "0.46837646", "0.46827376", "0.46823502", "0.46776652", "0.46771923", "0.46722364" ]
0.64980507
3
Get revision status OPTIONS EXAMPLES wp revisions status
public function status( $args = array(), $assoc_args = array() ) { if ( defined( 'WP_POST_REVISIONS' ) ) { if ( true === WP_POST_REVISIONS ) { WP_CLI::success( 'WP_POST_REVISIONS is true. Keeps all revisions.' ); } else { WP_CLI::success( sprintf( 'Keeping the last %d revisions', WP_POST_REVISIONS ) ); } } else { WP_CLI::success( 'WP_POST_REVISIONS is undefined.' ); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_options() {\n\t\t$options = parent::get_options();\n\n\t\t$options['show_in_admin_status_list'] = true;\n\n\t\t$label_value = __( 'Pending Revisions <span class=\"count\">(%s)</span>', 'wp-safe-edit' );\n\t\t$options['label_count'] = _n_noop( $label_value, $label_value );\n\n\t\treturn $options;\n\t}", "public static function getStatusOptions() : array\n {\n return [\n static::PUBLISHED => trans('admin.published'),\n static::DRAFT => trans('admin.draft'),\n ];\n }", "function _dataone_admin_version_options() {\n\n $options = array();\n\n $versions = _dataone_api_versions();\n if (!empty($versions)) {\n foreach ($versions as $version_id => $version_data) {\n $options[$version_id] = $version_data['name'];\n }\n }\n\n return $options;\n}", "function wp_ajax_get_revision_diffs()\n {\n }", "function wp_list_post_revisions($post = 0, $type = 'all')\n {\n }", "function wp_revisions_enabled($post)\n {\n }", "public function statusOptions()\n\t{\n\t\treturn array('pending', 'processing', 'complete', 'on_hold');\n\t}", "function node_revision_overview($node) {\n drupal_set_title(t('Revisions for %title', array('%title' => $node->title)));\n\n $header = array(t('Revision'), array('data' => t('Operations'), 'colspan' => 2));\n\n $revisions = node_revision_list($node);\n\n $rows = array();\n $revert_permission = FALSE;\n if ((user_access('revert revisions') || user_access('administer nodes')) && node_access('update', $node)) {\n $revert_permission = TRUE;\n }\n $delete_permission = FALSE;\n if ((user_access('delete revisions') || user_access('administer nodes')) && node_access('delete', $node)) {\n $delete_permission = TRUE;\n }\n foreach ($revisions as $revision) {\n $row = array();\n $operations = array();\n\n if ($revision->current_vid > 0) {\n $row[] = array('data' => t('!date by !username', array('!date' => l(format_date($revision->timestamp, 'small'), \"node/$node->nid\"), '!username' => theme('username', $revision)))\n . (($revision->log != '') ? '<p class=\"revision-log\">'. filter_xss($revision->log) .'</p>' : ''),\n 'class' => 'revision-current');\n $operations[] = array('data' => theme('placeholder', t('current revision')), 'class' => 'revision-current', 'colspan' => 2);\n }\n else {\n $row[] = t('!date by !username', array('!date' => l(format_date($revision->timestamp, 'small'), \"node/$node->nid/revisions/$revision->vid/view\"), '!username' => theme('username', $revision)))\n . (($revision->log != '') ? '<p class=\"revision-log\">'. filter_xss($revision->log) .'</p>' : '');\n if ($revert_permission) {\n $operations[] = l(t('revert'), \"node/$node->nid/revisions/$revision->vid/revert\");\n }\n if ($delete_permission) {\n $operations[] = l(t('delete'), \"node/$node->nid/revisions/$revision->vid/delete\");\n }\n }\n $rows[] = array_merge($row, $operations);\n }\n\n return theme('table', $header, $rows);\n}", "function &getStatusOptions() {\n\t\t$statusOptions = array(\n\t\t\tSUBSCRIPTION_STATUS_ACTIVE => 'subscriptions.status.active',\n\t\t\tSUBSCRIPTION_STATUS_NEEDS_INFORMATION => 'subscriptions.status.needsInformation',\n\t\t\tSUBSCRIPTION_STATUS_NEEDS_APPROVAL => 'subscriptions.status.needsApproval',\n\t\t\tSUBSCRIPTION_STATUS_AWAITING_MANUAL_PAYMENT => 'subscriptions.status.awaitingManualPayment',\n\t\t\tSUBSCRIPTION_STATUS_AWAITING_ONLINE_PAYMENT => 'subscriptions.status.awaitingOnlinePayment',\n\t\t\tSUBSCRIPTION_STATUS_OTHER => 'subscriptions.status.other'\n\t\t);\n\n\t\treturn $statusOptions;\n\t}", "function _wp_get_post_revision_version($revision)\n {\n }", "function getDetailedStatus() ;", "function wp_get_post_revisions($post = 0, $args = \\null)\n {\n }", "public function getStatus() {\r\n\t\t$status = array();\r\n\t\tif ($this -> draft) {\r\n\t\t\t$status['type'] = 0;\r\n\t\t\t$status['condition'] = 'draft';\r\n\t\t\treturn $status;\r\n\t\t}\r\n\t\tif ($this -> is_approved) {\r\n\t\t\t$status['type'] = 2;\r\n\t\t\t$status['condition'] = 'approved';\r\n\t\t}\r\n\t\telse {\r\n\t\t\t$status['type'] = 1;\r\n\t\t\t$status['condition'] = 'pending';\r\n\t\t}\r\n\t\treturn $status;\r\n\t}", "function wp_get_post_revisions_url($post = 0)\n {\n }", "function wp_get_post_revision(&$post, $output = \\OBJECT, $filter = 'raw')\n {\n }", "public function getStatusList()\n {\n return ['0' => __('修改'), '1' => __('提议'), '2' => __('新增'), '3' => __('废止')];\n }", "public function isRevisionsEnabled()\n {\n return (bool) $this->enable_revisions;\n }", "public function getStatus();", "public function getStatus();", "public function getStatus();", "public function getStatus();", "public function getStatus();", "public function getStatus();", "public function getStatus();", "public function getStatus();", "public function getStatus();", "public function getStatus();", "public function describe_client_options() {\n echo '<p>The following options configure what URL to access when a post is published in this blog.</p>';\n }", "public function getStatus(){\n return $this->getParameter('status');\n }", "function get_blog_status($id, $pref)\n {\n }", "function pafd_metabox_status_cb() {\n\n\tglobal $post, $pafd_textdomain;\n\n\t// Prepare status for use with K\n\t$statuses[ '' ] = __( 'None', $pafd_textdomain );\n\t$status_terms = get_terms( 'pafd_status', 'hide_empty=0' ); \n\tforeach ( $status_terms as $status_term ) {\n\t\t$statuses[ $status_term->term_id ] = $status_term->name;\n\t}\n\n\t// Get the file current status id\n\tif ( $post ) {\n\t\t$post_status_terms = wp_get_object_terms( $post->ID, 'pafd_status' );\n\t\t$post_status_term = array_shift( $post_status_terms );\n\t\tif( ! empty( $post_status_term ) ) {\n\t\t\t$post_status_id = $post_status_term->term_id;\n\t\t} else {\n\t\t\t$post_status_id = '';\n\t\t}\n\t}\n\n\t// Print the statuses\n\tK::select(\n\t\t'pafd-status',\n\t\tnull,\n\t\tarray(\n\t\t\t'options' => $statuses,\n\t\t\t'selected' => $post_status_id,\n\t\t)\n\t);\n\n\t// Print a nonce field\n\tK::input(\n\t\t'pafd-status-nonce',\n\t\tarray(\n\t\t\t'type' => 'hidden',\n\t\t\t'value' => wp_create_nonce( 'pafd_save_status' ),\n\t\t)\n\t);\n}", "public function kiwip_action_delete_revisions(){\n\t\tglobal $wpdb;\n\n\t\t$this->delete_revision = $wpdb->query('DELETE FROM wp_posts WHERE post_type = \"revision\";');\n\n\t\tadd_action('admin_notices', array(&$this, 'kiwip_action_delete_revisions_adm_msg'));\n\t\t$updated_option = array('delete_revisions' => 0);\n\t\tupdate_option('Kiwip', $updated_option);\n\t\t$this->options['delete_revisions'] == 0;\n\t}", "public function getRevisions(): array;", "abstract protected function getStatusesInfos();", "public abstract function getSelectedStatuses();", "public function display_status() {\n\t\t$banner_status = get_option( 'cookieproCCPASettingsPreview' );\n\t\t$banner_behavior_status = get_option( 'cookieproCCPABehaviorSettingsPreview' );\n\t\t$this->settings_status = 'Draft';\n\t\t$this->settings_publish_time = '';\n\t\tif( ! empty( $banner_status ) && ! empty( $banner_behavior_status ) ){\n\t\t\tif ( 'Published' === $banner_status['publishStatus'] && 'Published' === $banner_behavior_status['publishStatus'] ) {\n\t\t\t\t$this->settings_status = 'Published';\n\t\t\t}\n\t\t\t$this->settings_publish_time = $banner_status['lastPublished'];\n\t\t}\n\t\treturn array(\n\t\t\t'status' => $this->settings_status,\n\t\t\t'lastpublished' => $this->settings_publish_time,\n\t\t);\n\t}", "function getRevisions( $id )\n\t{\t$query = \"SELECT bylaws.approved\n\t\t\tFROM bylaws, bylaws_index\n\t\t\tWHERE bylaws_index.id = ?\n\t\t\t\tAND bylaws_index.bylawId = bylaws.id\";\n\t\treturn $this->_db->fetchCol( $query, array($id) );\n\t}", "public function getRevision() {}", "public function getDetailedStatus() {}", "public function getStatusList()\n {\n $option = '';\n $query = $this->db->query(\"SELECT * FROM status\");\n while ($rdata = mysqli_fetch_assoc($query)) {\n $option .= '<option value=\"' . $rdata['idStatus'] . '\">' . mb_strtoupper(\n $rdata['nombreStatus']\n ) . '</option>';\n }\n\n return $option;\n }", "public function getStatuses() {\n\t}", "public function getStatus()\n {\n return $this->getParameter('status');\n }", "function getStatus() ;", "function getStatus() ;", "function getStatus() ;", "function rstatus() {\n\t\t$this->checkOnce();\n\t\t$versionPath = $this->getVersionPath();\n\t\t$remoteCmd = 'cd '.$versionPath.' && hg status';\n\t\t$this->ssh_exec($remoteCmd);\n\t}", "public function getVerbosity();", "function get_status_for_reports_html_options()\r\n{\r\n\t$reports_cfg = config_get('reportsCfg');\r\n\t$results = config_get('results');\r\n\t\r\n\tforeach($reports_cfg->exec_status as $verbose_status => $status_label)\r\n\t{\r\n\t\t$code = $results['status_code'][$verbose_status];\r\n\t\t$html_options[$code] = lang_get($status_label);\r\n\t}\r\n\t\r\n\treturn $html_options;\r\n}", "public function status_filter() {\n\n\t\tglobal $typenow;\n\n\t\tif ( ('ticket' != $typenow ) || isset( $_GET['post_status'] ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\t$this_sort = isset( $_GET['dev_status'] ) ? filter_input( INPUT_GET, 'dev_status', FILTER_SANITIZE_STRING ) : '';\n\t\t$all_selected = ( '' === $this_sort ) ? 'selected=\"selected\"' : '';\n\t\t$open_selected = ( ! isset( $_GET['dev_status'] ) && true === (bool) dev_get_option( 'hide_closed' ) || 'open' === $this_sort ) ? 'selected=\"selected\"' : '';\n\t\t$closed_selected = ( 'closed' === $this_sort ) ? 'selected=\"selected\"' : '';\n\t\t$dropdown = '<select id=\"dev_status\" name=\"dev_status\">';\n\t\t$dropdown .= \"<option value='' $all_selected>\" . __( 'Any Status', TEXTDOMAIN ) . \"</option>\";\n\t\t$dropdown .= \"<option value='open' $open_selected>\" . __( 'Open', TEXTDOMAIN ) . \"</option>\";\n\t\t$dropdown .= \"<option value='closed' $closed_selected>\" . __( 'Closed', TEXTDOMAIN ) . \"</option>\";\n\t\t$dropdown .= '</select>';\n\n\t\techo $dropdown;\n\n\t}", "abstract public static function getStatuses();", "function listStatus($con, $def_status)\n\t{\n\t\tswitch ($def_status) \n\t\t{\n\t\t\tcase 0:\n\t\t\t\t$statusText = \"Inactive/Archived\";\n\t\t\t\tbreak;\n\t\t\tcase 1: \n\t\t\t\t$statusText = \"Active\";\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\t$statusText = \"Pending\";\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\t$statusText = \"Undetermined\";\n\t\t\t\tbreak;\n\t\t}\n\n\t\treturn $statusText;\n\t}", "function wpmantis_get_status_translation()\n{\n\t$options = get_option('wp_mantis_options');\n\textract($options);\n\t$client = new SoapClient($mantis_soap_url);\n\ttry\n\t{\t\n\t\t$results = $client->mc_enum_status($mantis_user, $mantis_password);\n\t\t\n\t\tforeach ($results as $result)\n\t\t{\n\t\t\t\t$id = $result->id;\n\t\t\t\t$name = $result->name;\n\t\t\t\t\n\t\t\t\t$mantis_statuses[$id] = $name;\n\t\t}\n\t\t$options['mantis_statuses'] = $mantis_statuses;\n\t\tupdate_option('wp_mantis_options', $options);\n\t\t\n\t\t?>\n <div id=\"message\" class=\"updated fade\">\n <p><?php _e('Options saved.', 'wp-mantis'); ?></p>\n </div>\n <?php\n\t}\n\tcatch(SoapFault $e)\n\t{\n\t\tthrow $e;\n\t\t?>\n <div id=\"message\" class=\"error fade\">\n <p><?php printf(__('Error: %s', 'wp-mantis'), $e->getMessage()); ?></p>\n </div>\n <?php\n\t}\n}", "public static function getStatusOptions() {\n\t\t$opt = array();\n\t\tforeach (self::$member_codes as $code=>$defs){\n\t\t\t$opt[$code] = $defs[0];\n\t\t}\n\t\treturn $opt;\n\t}", "public function getStatusesList(){\n return $this->_get(1);\n }", "public function get_status()\n {\n }", "public function get_status()\n {\n }", "public function getVerbosity()\n {\n }", "public function getAllRevisions()\n {\n // Retrieves username associated with an id. \n $this->ui_ids = array();\n\n /**\n * Retrieves list of previous versions of data dictionary.\n */\n $pid = $_GET[\"pid\"];\n $previous_versions = array();\n $sql = \"select p.pr_id, p.ts_approved, p.ui_id_requester, p.ui_id_approver,\n if(l.description = 'Approve production project modifications (automatic)',1,0) as automatic\n from redcap_metadata_prod_revisions p left join redcap_log_event l\n on p.project_id = l.project_id and p.ts_approved*1 = l.ts\n where p.project_id = $pid and p.ts_approved is not null order by p.pr_id\";\n\n if ($result = $this->query($sql))\n {\n // Cycle through results\n $rev_num = 0;\n $num_rows = $result->num_rows;\n while ($row = $result->fetch_object())\n {\n if ($rev_num == 0)\n {\n $previous_versions[] = array(\n \"id\" => $row->pr_id,\n \"label\" => \"Moved to Production\",\n \"requester\" => $this->getUsernameFirstLast($row->ui_id_requester),\n \"approver\" => $this->getUsernameFirstLast($row->ui_id_approver),\n \"automatic_approval\" => $row->automatic,\n \"ts_approved\" => $row->ts_approved,\n );\n }\n else\n {\n $previous_versions[] = array(\n \"id\" => $row->pr_id,\n \"label\" => \"Production Revision #$rev_num\",\n \"requester\" => $this->getUsernameFirstLast($row->ui_id_requester),\n \"approver\" => $this->getUsernameFirstLast($row->ui_id_approver),\n \"automatic_approval\" => $row->automatic,\n \"ts_approved\" => $row->ts_approved\n );\n }\n\n if ($rev_num == $num_rows - 1)\n {\n // Current revision will be mapped to timestamp and approver of last row\n $current_revision_ts_approved = $row->ts_approved;\n $current_revision_approver = $this->getUsernameFirstLast($row->ui_id_approver);\n $current_revision_requester = $this->getUsernameFirstLast($row->ui_id_requester);\n $current_revision_automatic = $row->automatic;\n }\n\n $rev_num++;\n }\n\n $result->close();\n \n // Sort by most recent version.\n $previous_versions = array_reverse($previous_versions);\n }\n\n // Shift timestamps, approvers, requesters, and automatic approval down by one,\n // as the correct info for each one is when the previous version was archived. \n $last_key = null;\n foreach($previous_versions as $key => $version)\n {\n if ($last_key !== null)\n {\n $previous_versions[$last_key][\"ts_approved\"] = $previous_versions[$key][\"ts_approved\"];\n $previous_versions[$last_key][\"requester\"] = $previous_versions[$key][\"requester\"];\n $previous_versions[$last_key][\"approver\"] = $previous_versions[$key][\"approver\"];\n $previous_versions[$last_key][\"automatic_approval\"] = $previous_versions[$key][\"automatic_approval\"];\n }\n $last_key = $key;\n }\n\n // Get correct production timestamp,\n // and the person who moved it to production\n if (!empty($previous_versions))\n {\n // Get correct production timestamp\n $sql = \"select production_time from redcap_projects where project_id = $pid\";\n if ($result = $this->query($sql))\n {\n while ($row = $result->fetch_object()){\n $timestamp = $row->production_time;\n $previous_versions[sizeof($previous_versions)-1][\"ts_approved\"] = $timestamp;\n }\n $result->close();\n }\n\n if (!empty($timestamp))\n {\n // Retrieve person who moved to production, as it's stored separately. \n $sql = \"select u.ui_id from redcap_user_information u, redcap_log_event l\n where u.username = l.user and l.description = 'Move project to production status' and l.project_id = $pid \n and l.ts = '\" . str_replace(array(' ',':','-'), array('','',''), $timestamp) . \"' order by log_event_id desc limit 1\";\n\n if ($result = $this->query($sql))\n {\n while ($row = $result->fetch_object()){\n $previous_versions[sizeof($previous_versions)-1][\"approver\"] = $this->getUsernameFirstLast($row->ui_id);\n }\n $result->close();\n }\n }\n }\n\n // Add current revision\n if (isset($current_revision_approver) && \n isset($current_revision_ts_approved) && \n isset($current_revision_automatic) && \n isset($current_revision_requester))\n {\n array_unshift($previous_versions, array(\n \"id\" => \"current\",\n \"label\" => \"Production Revision #$rev_num <b>(Current Revision)</b>\",\n \"requester\" => $current_revision_requester,\n \"approver\" => $current_revision_approver,\n \"automatic_approval\" => $current_revision_automatic,\n \"ts_approved\" => $current_revision_ts_approved\n ));\n }\n\n return $previous_versions;\n }", "public function kiwip_action_delete_revisions_adm_msg(){\n\t\tif(current_user_can('manage_options')){\n\t \techo '<div id=\"message\" class=\"updated fade\"><p><strong>All posts revisions have been deleted correctly.</strong></p></div>';\n\t }\n\t}", "function getStatus();", "function dokan_get_post_status( $status ) {\n switch ($status) {\n case 'publish':\n return __( 'Online', 'dokan' );\n break;\n\n case 'draft':\n return __( 'Draft', 'dokan' );\n break;\n\n case 'pending':\n return __( 'Pending Review', 'dokan' );\n break;\n\n case 'future':\n return __( 'Scheduled', 'dokan' );\n break;\n\n default:\n return '';\n break;\n }\n}", "public function getStatus() {}", "public function getStatus() {}", "public function getStatus() {}", "public function getStatus() {}", "public function getStatus() {}", "public function getStatus() {}", "public function getStatus() {}", "public function getStatus() {}", "public function getStatus() {}", "public function getStatus() {}", "public function getStatus() {}", "public function getStatus() {}", "public function getStatus() {}", "public function getStatus() {}", "public function getStatus() {}", "public function getStatus() {}", "public function getStatus() {}", "public function getStatus() {}", "public function getStatus() {}", "public function getStatus() {}", "public function getStatus() {}", "function getStatus() {\n\t\treturn $this->getData('status');\n\t}", "public function getRevisions(): array\n {\n return $this->revs;\n }", "public function getRevision() ;", "public function get_status() {\n\t\t$status = $this->post->post_status;\n\n\t\tif ( $status === 'publish' ) {\n\t\t\t$status = 'active';\n\t\t}\n\t\telseif ( $status === 'aw-disabled' ) {\n\t\t\t$status = 'disabled';\n\t\t}\n\n\t\treturn $status;\n\t}", "function mfcs_get_request_status_list_options($option = NULL, $hidden = FALSE, $disabled = FALSE) {\n $options = array();\n $options_all = array();\n\n if ($hidden) {\n $options_all[MFCS_REQUEST_STATUS_NONE] = 'None';\n }\n\n $options_all[MFCS_REQUEST_STATUS_DELETED] = 'Deleted';\n $options_all[MFCS_REQUEST_STATUS_UNLOCKED] = 'Queued (Unlocked)';\n $options_all[MFCS_REQUEST_STATUS_LOCKED] = 'Queued (Locked)';\n $options_all[MFCS_REQUEST_STATUS_CLOSED_ACCEPTED] = 'Accepted';\n $options_all[MFCS_REQUEST_STATUS_CLOSED_DENIED] = 'Denied';\n $options_all[MFCS_REQUEST_STATUS_CLOSED_UNAVAILABLE] = 'Room Unavailable';\n $options_all[MFCS_REQUEST_STATUS_CLOSED_DUE_TO_LOCK] = 'Room Unavailable (due to lock)';\n $options_all[MFCS_REQUEST_STATUS_CANCELLED] = 'Cancelled';\n $options_all[MFCS_REQUEST_STATUS_CLOSED_ACCEPTED_CANCELLED] = 'Accepted (Cancelled)';\n\n if ($option == 'select') {\n $options[''] = '- Select -';\n }\n\n foreach ($options_all as $option_id => $option_name) {\n $options[$option_id] = $option_name;\n }\n\n if ($option == 'search') {\n unset($options[MFCS_REQUEST_STATUS_DELETED]);\n }\n\n asort($options);\n\n return $options;\n}", "function _dataone_admin_online_options() {\n $options = &drupal_static(__FUNCTION__);\n if (empty($options)) {\n $options = array(\n DATAONE_API_STATUS_PRODUCTION => t('!label - This node is tested, ready and available for access.', array('!label' => '<strong>PRODUCTION</strong>')),\n DATAONE_API_STATUS_DEVELOPMENT => t('!label - This node is offline for development.', array('!label' => '<strong>DEVELOPMENT</strong>')),\n DATAONE_API_STATUS_OFF => t('!label - This node is not accessible to anyone.', array('!label' => '<strong>OFF</strong>')),\n );\n }\n\n return $options;\n}", "public function getStatus()\n {\n return $this->status = $this->get()->post_status;\n }", "public function get_status() {\n\t\tif ( array_key_exists( self::STATUS, $this->ryte_option ) ) {\n\t\t\treturn $this->ryte_option[ self::STATUS ];\n\t\t}\n\n\t\treturn self::CANNOT_FETCH;\n\t}", "public function status() { return $this->post->post_status; }", "function admin_list( $status = 'all')\n\t{\n\t\t\n\t\t$conditions = array();\n\t\t\n\t\tif($status != 'all')\n\t\t{\n\t\t\t$conditions['Order.status'] = $status;\n\t\t}\n\t\t\n\t\t$this->Order->virtualFields = array(\n\t\t\t'completed_articles_count' => '(SELECT COUNT(*) FROM writer_assignments wa1 LEFT JOIN writer_orders wo1 ON ( wa1.writer_order_id = wo1.id ) WHERE ( wo1.order_id = Order.id ) AND ( wa1.status = \"completed\" ) )'\n\t\t);\n\t\t\n\t\t$this->paginate\t= array(\n\t\t\t'conditions' \t=>\t$conditions,\n\t\t\t'limit'\t\t\t=>\t20,\n\t\t\t'recursive' \t=> 3\n\t\t);\n\t\t\n \t$orders =\t$this->paginate('Order');\t\t\n\t\t\n\t\t$this->set('orders', $orders);\t\t\n\t\t$this->set('status', $status);\n\t\t\t\t\n\t}", "function get_status() {\n return $this->status;\n }", "static public function getStatusList() {\n return array(\n self::STATUS_SHOW => Yii::t('main', 'Show'),\n self::STATUS_HIDE => Yii::t('main', 'Hide'),\n );\n }", "static public function getStatusList() {\n return array(\n self::STATUS_SHOW => Yii::t('main', 'Show'),\n self::STATUS_HIDE => Yii::t('main', 'Hide'),\n );\n }", "public function revisionOverview(EventContentInterface $event_content) {\n $account = $this->currentUser();\n $langcode = $event_content->language()->getId();\n $langname = $event_content->language()->getName();\n $languages = $event_content->getTranslationLanguages();\n $has_translations = (count($languages) > 1);\n $event_content_storage = $this->entityManager()->getStorage('event_content');\n\n $build['#title'] = $has_translations ? $this->t('@langname revisions for %title', ['@langname' => $langname, '%title' => $event_content->label()]) : $this->t('Revisions for %title', ['%title' => $event_content->label()]);\n $header = [$this->t('Revision'), $this->t('Operations')];\n\n $revert_permission = (($account->hasPermission(\"revert all event content revisions\") || $account->hasPermission('administer event content entities')));\n $delete_permission = (($account->hasPermission(\"delete all event content revisions\") || $account->hasPermission('administer event content entities')));\n\n $rows = [];\n\n $vids = $event_content_storage->revisionIds($event_content);\n\n $latest_revision = TRUE;\n\n foreach (array_reverse($vids) as $vid) {\n /** @var \\Drupal\\event_content\\EventContentInterface $revision */\n $revision = $event_content_storage->loadRevision($vid);\n // Only show revisions that are affected by the language that is being\n // displayed.\n if ($revision->hasTranslation($langcode) && $revision->getTranslation($langcode)->isRevisionTranslationAffected()) {\n $username = [\n '#theme' => 'username',\n '#account' => $revision->getRevisionUser(),\n ];\n\n // Use revision link to link to revisions that are not active.\n $date = \\Drupal::service('date.formatter')->format($revision->getRevisionCreationTime(), 'short');\n if ($vid != $event_content->getRevisionId()) {\n $link = $this->l($date, new Url('entity.event_content.revision', ['event_content' => $event_content->id(), 'event_content_revision' => $vid]));\n }\n else {\n $link = $event_content->link($date);\n }\n\n $row = [];\n $column = [\n 'data' => [\n '#type' => 'inline_template',\n '#template' => '{% trans %}{{ date }} by {{ username }}{% endtrans %}{% if message %}<p class=\"revision-log\">{{ message }}</p>{% endif %}',\n '#context' => [\n 'date' => $link,\n 'username' => \\Drupal::service('renderer')->renderPlain($username),\n 'message' => ['#markup' => $revision->getRevisionLogMessage(), '#allowed_tags' => Xss::getHtmlTagList()],\n ],\n ],\n ];\n $row[] = $column;\n\n if ($latest_revision) {\n $row[] = [\n 'data' => [\n '#prefix' => '<em>',\n '#markup' => $this->t('Current revision'),\n '#suffix' => '</em>',\n ],\n ];\n foreach ($row as &$current) {\n $current['class'] = ['revision-current'];\n }\n $latest_revision = FALSE;\n }\n else {\n $links = [];\n if ($revert_permission) {\n $links['revert'] = [\n 'title' => $this->t('Revert'),\n 'url' => $has_translations ?\n Url::fromRoute('entity.event_content.translation_revert', ['event_content' => $event_content->id(), 'event_content_revision' => $vid, 'langcode' => $langcode]) :\n Url::fromRoute('entity.event_content.revision_revert', ['event_content' => $event_content->id(), 'event_content_revision' => $vid]),\n ];\n }\n\n if ($delete_permission) {\n $links['delete'] = [\n 'title' => $this->t('Delete'),\n 'url' => Url::fromRoute('entity.event_content.revision_delete', ['event_content' => $event_content->id(), 'event_content_revision' => $vid]),\n ];\n }\n\n $row[] = [\n 'data' => [\n '#type' => 'operations',\n '#links' => $links,\n ],\n ];\n }\n\n $rows[] = $row;\n }\n }\n\n $build['event_content_revisions_table'] = [\n '#theme' => 'table',\n '#rows' => $rows,\n '#header' => $header,\n ];\n\n return $build;\n }", "function wp_print_revision_templates()\n {\n }", "public function desbanearDeLasRevisiones() {\n\t\tglobal $wpdb;\n\t\treturn $wpdb->query($wpdb->prepare('\n\t\t\t\tUPDATE wp_revisiones_ban\n\t\t\t\tSET status = %d\n\t\t\t\tWHERE user_id = %d', self::DESBANEADO, $this->user_id));\n\t}", "public function status()\n {\n return [\n 'publish' => trans('dashboard::post/base.status_list.publish'),\n 'draft' => trans('dashboard::post/base.status_list.draft'),\n ];\n }" ]
[ "0.60944456", "0.5858499", "0.5848752", "0.5838015", "0.5801546", "0.57626396", "0.5668595", "0.566656", "0.5630827", "0.559559", "0.55646354", "0.5533587", "0.5458645", "0.54525495", "0.5438445", "0.5402061", "0.5387825", "0.5381174", "0.5381174", "0.5381174", "0.5381174", "0.5381174", "0.5381174", "0.5381174", "0.5381174", "0.5381174", "0.5381174", "0.537073", "0.5367789", "0.5366097", "0.5354684", "0.535462", "0.534866", "0.53433347", "0.53350043", "0.53148377", "0.5313303", "0.5289217", "0.52881867", "0.52840245", "0.52794015", "0.52769816", "0.52662736", "0.52662736", "0.52654505", "0.52582127", "0.5257669", "0.5240754", "0.52387726", "0.52373844", "0.5231559", "0.52154225", "0.5208597", "0.5208172", "0.5207762", "0.5207762", "0.5195914", "0.51808363", "0.5174417", "0.5172765", "0.51690614", "0.5166032", "0.5166032", "0.5166032", "0.5166032", "0.5166032", "0.5166032", "0.5166032", "0.5166032", "0.5166032", "0.5166032", "0.5166032", "0.5166032", "0.5166032", "0.5166032", "0.5166032", "0.5166032", "0.5166032", "0.51642615", "0.51642615", "0.51642615", "0.51642615", "0.51544136", "0.51350087", "0.51326007", "0.5131687", "0.5126885", "0.51266444", "0.5123203", "0.5114256", "0.51126754", "0.5106842", "0.5104025", "0.50897026", "0.50897026", "0.5080332", "0.5077262", "0.50728214", "0.5061399" ]
0.6198615
1
Delete old revisions OPTIONS [] : Number of revisions to keep per post. Defaults to WP_POST_REVISIONS if it is an integer [post_type=] : Clean revisions for given post type(s). Default: any [afterdate=] : Clean revisions published on or after this date. Default: none. [beforedate=] : Clean revisions published on or before this date. Default: none. [post_id=] : Clean revisions for given post. [hard] : Hard delete. Slower, uses wp_delete_post_revision(). [dryrun] : Dry run, just a test, no actual cleaning done. EXAMPLES wp revisions clean wp revisions clean 5 wp revisions clean post_id=2 wp revisions clean 5 post_type=post,page wp revisions clean afterdate=20151101 beforedate=20151230 wp revisions clean afterdate=20151101 beforedate=20151230 dryrun
public function clean( $args = array(), $assoc_args = array() ) { global $wpdb; if ( ! empty( $assoc_args['post_id'] ) ) { $posts = array( $assoc_args['post_id'] ); } else { if ( empty( $assoc_args['post_type'] ) ) { $post_types = $this->supports_revisions(); } else { $post_types = explode( ',', $assoc_args['post_type'] ); } $where = ''; $post_type_where = array(); foreach ( $post_types as $post_type ) { $post_type_where[] = $wpdb->prepare( 'post_type = %s', $post_type ); } $where = ' AND (' . implode( ' OR ', $post_type_where ) . ')'; if ( isset( $assoc_args['after-date'] ) && isset( $assoc_args['before-date'] ) ) { $where .= $wpdb->prepare( ' AND (post_date < %s AND post_date > %s)', $assoc_args['before-date'], $assoc_args['after-date'] ); } else if ( isset( $assoc_args['after-date'] ) ) { $where .= $wpdb->prepare( ' AND post_date > %s', $assoc_args['after-date'] ); } else if ( isset( $assoc_args['before-date'] ) ) { $where .= $wpdb->prepare( ' AND post_date < %s', $assoc_args['before-date'] ); } // get all IDs for posts in given post type(s). $posts = $wpdb->get_col( "SELECT ID FROM $wpdb->posts WHERE 1=1 {$where}" ); // phpcs:ignore WordPress.VIP.DirectDatabaseQuery.DirectQuery,WordPress.VIP.DirectDatabaseQuery.NoCaching,WordPress.DB.PreparedSQL.NotPrepared -- $where is prepared above } $total = count( $posts ); $notify = \WP_CLI\Utils\make_progress_bar( sprintf( 'Cleaning revisions for %d post(s)', $total ), $total ); if ( isset( $args[0] ) ) { $keep = intval( $args[0] ); } else if ( true === WP_POST_REVISIONS ) { WP_CLI::error( 'WP_POST_REVISIONS is set to true (keeps all revisions). Please pass a number.' ); } else { $keep = WP_POST_REVISIONS; } $total_deleted = 0; foreach ( $posts as $post_id ) { $revisions = get_children( array( 'order' => 'DESC', 'orderby' => 'date ID', 'post_parent' => $post_id, 'post_type' => 'revision', 'post_status' => 'inherit', // trust me on these. 'update_post_meta_cache' => false, 'update_post_term_cache' => false, 'fields' => 'ids', ) ); if ( ! $revisions ) { $notify->tick(); continue; } $count = count( $revisions ); if ( $count > $keep ) { if ( $keep > 0 ) { $revisions = array_slice( $revisions, $keep, null, true ); } $total_deleted += count( $revisions ); if ( isset( $assoc_args['hard'] ) ) { foreach ( $revisions as $id ) { if ( empty( $assoc_args['dry-run'] ) ) { wp_delete_post_revision( $id ); } } } else { $delete_ids = implode( ',', $revisions ); if ( empty( $assoc_args['dry-run'] ) ) { $wpdb->query( "DELETE FROM $wpdb->posts WHERE ID IN ($delete_ids)" ); // phpcs:ignore WordPress.VIP.DirectDatabaseQuery.DirectQuery,WordPress.VIP.DirectDatabaseQuery.NoCaching } } } $wpdb->flush(); $notify->tick(); } $notify->finish(); if ( ! empty( $assoc_args['dry-run'] ) ) { WP_CLI::success( sprintf( 'Dry Run: Will remove %d old revisions.', $total_deleted ) ); } else { WP_CLI::success( sprintf( 'Finished removing %d old revisions.', $total_deleted ) ); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function kiwip_action_delete_revisions(){\n\t\tglobal $wpdb;\n\n\t\t$this->delete_revision = $wpdb->query('DELETE FROM wp_posts WHERE post_type = \"revision\";');\n\n\t\tadd_action('admin_notices', array(&$this, 'kiwip_action_delete_revisions_adm_msg'));\n\t\t$updated_option = array('delete_revisions' => 0);\n\t\tupdate_option('Kiwip', $updated_option);\n\t\t$this->options['delete_revisions'] == 0;\n\t}", "public function wp_sql_clean_revision() {\n\n\t\t$bdd = Bdd::getInstance();\n\n\t\t$sql = $bdd->dbh->prepare('DELETE FROM '.$this->_table_prefix.'posts WHERE post_type = \"revision\"');\n\t\t\n\t\treturn $sql->execute();\n\t}", "public static function cron_revision_cleanup($limit = 100) {\n global $wpdb;\n\n $post_types = 'post, product, product_variation';\n\n // Revisions of posts that were last modified a long time ago (3 months) are\n // no longer necessary and can be cleaned up.\n $revision_ids = $wpdb->get_col($wpdb->prepare(\"SELECT revision.ID\nFROM $wpdb->posts revision\nINNER JOIN $wpdb->posts parent ON parent.ID = revision.post_parent AND parent.post_type IN ($post_types)\nWHERE revision.post_type = 'revision' AND revision.post_modified_gmt < %s AND revision.post_name NOT LIKE '%autosave%'\nLIMIT 0,%d\n\", date('Y-m-d', strtotime('today - ' . static::CRON_EVENT_REVISION_CLEANUP_RETAIN_DAYS . ' days')), $limit));\n foreach ($revision_ids as $revision_id) {\n wp_delete_post_revision($revision_id);\n }\n }", "public function dump( $args = array(), $assoc_args = array() ) {\n\n\t\tglobal $wpdb;\n\t\t$revs = $wpdb->get_var( \"SELECT COUNT(*) FROM $wpdb->posts WHERE post_type = 'revision'\" ); // phpcs:ignore WordPress.VIP.DirectDatabaseQuery.DirectQuery,WordPress.VIP.DirectDatabaseQuery.NoCaching\n\n\t\tif ( $revs < 1 ) {\n\t\t\tWP_CLI::success( 'No revisions.' );\n\t\t\treturn;\n\t\t}\n\n\t\tWP_CLI::confirm( sprintf( 'Remove all %d revisions?', $revs ), $assoc_args );\n\n\t\tif ( isset( $assoc_args['hard'] ) ) {\n\t\t\tWP_CLI::run_command( array( 'revisions', 'clean', -1 ), array( 'hard' => '' ) );\n\t\t\treturn;\n\t\t}\n\n\t\t$wpdb->query( \"DELETE FROM $wpdb->posts WHERE post_type = 'revision'\" ); // phpcs:ignore WordPress.VIP.DirectDatabaseQuery.DirectQuery,WordPress.VIP.DirectDatabaseQuery.NoCaching\n\n\t\tWP_CLI::success( 'Finished removing all revisions.' );\n\n\t}", "public function massDeleteRevisionsAction()\n {\n $ids = $this->getRequest()->getParam('revision');\n if (!is_array($ids)) {\n $this->_getSession()->addError($this->__('Please select revision(s).'));\n }\n else {\n try {\n $userId = Mage::getSingleton('admin/session')->getUser()->getId();\n $accessLevel = Mage::getSingleton('gri_cms/config')->getAllowedAccessLevel();\n\n foreach ($ids as $id) {\n $revision = Mage::getSingleton('gri_cms/page_revision')\n ->loadWithRestrictions($accessLevel, $userId, $id);\n\n if ($revision->getId()) {\n $revision->delete();\n }\n }\n $this->_getSession()->addSuccess(\n $this->__('Total of %d record(s) have been deleted.', count($ids))\n );\n } catch (Mage_Core_Exception $e) {\n $this->_getSession()->addError($e->getMessage());\n } catch (Exception $e) {\n Mage::logException($e);\n $this->_getSession()->addError(\n Mage::helper('gri_cms')->__('An error occurred while deleting revisions.')\n );\n }\n }\n $this->_redirect('*/*/edit', array('_current' => true, 'tab' => 'revisions'));\n\n return $this;\n }", "public function dump( $args = array(), $assoc_args = array() ) {\n\n\t\tglobal $wpdb;\n\t\t$revs = $wpdb->get_var( \"SELECT COUNT(*) FROM $wpdb->posts WHERE post_type = 'revision'\" );\n\n\t\tif ( $revs < 1 ) {\n\t\t\tWP_CLI::success( 'No revisions.' );\n\t\t\treturn;\n\t\t}\n\n\t\tWP_CLI::confirm( sprintf( 'Remove all %d revisions?', $revs ), $assoc_args );\n\n\t\tif ( isset( $assoc_args['hard'] ) ) {\n\t\t\tWP_CLI::run_command( array( 'revisions', 'clean', -1 ), array( 'hard' => '' ) );\n\t\t\treturn;\n\t\t}\n\n\t\t$wpdb->query( \"DELETE FROM $wpdb->posts WHERE post_type = 'revision'\" );\n\n\t\t// @todo: Are there caches to clear?\n\n\t\tWP_CLI::success( 'Finished removing all revisions.' );\n\n\t}", "function wp_delete_post_revision($revision)\n {\n }", "protected function revisionableCleanUp()\n {\n $relation = $this->model->getRevisionHistoryName();\n $relationObject = $this->model->{$relation}();\n\n $revisionLimit = property_exists($this->model, 'revisionableLimit')\n ? (int) $this->model->revisionableLimit\n : self::DEFAULT_REVISION_LIMIT;\n\n $toDelete = $relationObject\n ->orderBy('id', 'desc')\n ->skip($revisionLimit)\n ->limit(self::CLEANUP_REVISION_BATCH)\n ->get();\n\n foreach ($toDelete as $record) {\n $record->delete();\n }\n }", "public static function delete_older_revisions( $type ) {\n\t\tglobal $wpdb;\n\n\t\t// only run this delete once every 12hrs\n\t\tif ( ! get_transient( 'pp_delete_revisions' ) ) {\n\t\t\t// table name\n\t\t\t$table = \"{$wpdb->base_prefix}pp_revisions\";\n\n\t\t\t// get total count of record in db\n\t\t\t$count = $wpdb->get_var( \"SELECT COUNT(*) FROM {$wpdb->base_prefix}pp_revisions WHERE type = '$type'\" );\n\n\t\t\t// if total record is greater than 5, delete the older record save for the latest 5\n\t\t\tif ( $count > 5 ) {\n\n\t\t\t\t/** @see http://stackoverflow.com/questions/12382250/mysql-delete-order-by */\n\t\t\t\t$sql = \"DELETE FROM $table WHERE type = %s AND id IN (\n\t\t\t\t\t\tselect * FROM (\n\t\t\t\t\t\t\tSELECT id FROM $table WHERE type = %s ORDER BY date ASC limit %d\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\tAS t\n\t\t\t)\";\n\n\t\t\t\t$wpdb->query( $wpdb->prepare( $sql, $type, $type, $count - 5 ) );\n\t\t\t}\n\n\t\t\tset_transient( 'pp_delete_revisions', 'active', 12 * HOUR_IN_SECONDS );\n\t\t}\n\t}", "function pafd_action_delete_revisions( $post_ID ) {\n\n\tglobal $pafd_helper, $post;\n\n\t/**\n\t * Get the uploads basedir,\n\t * don't add $post_ID when global $post is not empty\n\t */\n\t$pafd_helper[ 'pafd_alter_upload_dir' ] = true;\n\t$upload_dir = wp_upload_dir();\n\tif( empty( $post ) ) {\n\t\t$post_upload_basedir = $upload_dir[ 'basedir' ] . \"/$post_ID\";\n\t} else {\n\t\t$post_upload_basedir = $upload_dir[ 'basedir' ];\n\t}\n\t$pafd_helper[ 'pafd_alter_upload_dir' ] = false;\n\n\t// Do nothing if directory doesn't exist\n\tif ( ! is_dir( $post_upload_basedir ) ) {\n\t\treturn;\n\t}\n\n\t// Delete files\n\t$files = glob( $post_upload_basedir . '/*' );\n\tforeach ( $files as $file ) {\n\t\tunlink( $file );\n\t}\n\n\t// Delete directory \"wp-content/uploads/pafd-files/$post_ID\"\n\trmdir( $post_upload_basedir );\n}", "public function deleteRevision()\n {\n // Ajax only controller\n if (!Request::ajax()) {\n return Response::notFound();\n }\n\n $postID = Input::get('postID');\n $userID = Input::get('userID');\n if ($postID > 0 && Mrcore::user()->isAuthenticated()) {\n $post = Post::find($postID);\n if (isset($post)) {\n if ($userID > 0) {\n // Delete the only one by post and user\n if ($post->hasPermission('write')) {\n $revision = Revision::where('post_id', '=', $postID)\n ->where('created_by', '=', $userID)\n ->where('revision', '=', 0)\n ->first();\n if (isset($revision)) {\n $revision->delete();\n }\n } else {\n return Response::notFound();\n }\n } else {\n // Delete all by post\n if ($post->hasPermission('write')) {\n $revisions = Revision::where('post_id', '=', $postID)\n ->where('revision', '=', 0)\n ->get();\n if (isset($revisions)) {\n foreach ($revisions as $revision) {\n $revision->delete();\n }\n }\n } else {\n return Response::notFound();\n }\n }\n } else {\n return Response::notFound();\n }\n } else {\n return Response::notFound();\n }\n }", "public function generate( $args = array(), $assoc_args = array() ) {\n\n\t\tglobal $wpdb;\n\n\t\tif ( ! empty( $assoc_args['post_id'] ) ) {\n\n\t\t\t$posts = array( $assoc_args['post_id'] );\n\t\t\t$posts = array_filter( $posts, 'get_post' );\n\n\t\t} else {\n\n\t\t\tif ( empty( $assoc_args['post_type'] ) ) {\n\t\t\t\t$post_types = $this->supports_revisions();\n\t\t\t} else {\n\t\t\t\t$post_types = explode( ',', $assoc_args['post_type'] );\n\t\t\t}\n\n\t\t\t$where = '';\n\t\t\tforeach ( $post_types as $post_type ) {\n\t\t\t\t$where .= $wpdb->prepare( ' OR post_type = %s', $post_type );\n\t\t\t}\n\n\t\t\t// get all IDs for posts in given post type(s).\n\t\t\t$posts = $wpdb->get_col( \"SELECT ID FROM $wpdb->posts WHERE 1=2 {$where}\" );\n\n\t\t}\n\n\t\t$total = count( $posts );\n\n\t\t$notify = \\WP_CLI\\Utils\\make_progress_bar( sprintf( 'Generating revisions for %d post(s)', $total ), $total );\n\n\t\t$count = isset( $args[0] ) ? intval( $args[0] ) : 15;\n\n\t\t$this->start_bulk_operation();\n\n\t\tremove_all_filters( 'wp_revisions_to_keep' );\n\t\tadd_filter( 'wp_save_post_revision_check_for_changes', '__return_false' );\n\t\t$inc = 0;\n\t\tforeach ( $posts as $post_id ) {\n\t\t\t$notify->tick();\n\n\t\t\tfor ( $i = 0; $i < $count; $i++ ) {\n\n\t\t\t\twp_save_post_revision( $post_id );\n\t\t\t}\n\t\t\t$inc++;\n\t\t\tif ( $inc % 10 === 0 ) {\n\t\t\t\t$this->stop_the_insanity();\n\t\t\t}\n\t\t}\n\n\t\t$this->end_bulk_operation();\n\n\t\t$notify->finish();\n\t\tWP_CLI::success( 'Finished generating revisions.' );\n\n\t}", "public function DeleteArticleRevisions() {\n\t\t\t$this->objArticleRevisions->Delete();\n\t\t}", "public function generate( $args = array(), $assoc_args = array() ) {\n\n\t\tglobal $wpdb;\n\n\t\tif ( ! empty( $assoc_args['post_id'] ) ) {\n\n\t\t\t$posts = array( $assoc_args['post_id'] );\n\n\t\t} else {\n\n\t\t\tif ( empty( $assoc_args['post_type'] ) ) {\n\t\t\t\t$post_types = $this->supports_revisions();\n\t\t\t} else {\n\t\t\t\t$post_types = explode( ',', $assoc_args['post_type'] );\n\t\t\t}\n\n\t\t\t$where = '';\n\t\t\tforeach ( $post_types as $post_type ) {\n\t\t\t\t$where .= $wpdb->prepare( ' OR post_type = %s', $post_type );\n\t\t\t}\n\n\t\t\t// get all IDs for posts in given post type(s).\n\t\t\t$posts = $wpdb->get_col( \"SELECT ID FROM $wpdb->posts WHERE 1=2 {$where}\" ); // phpcs:ignore WordPress.VIP.DirectDatabaseQuery.DirectQuery,WordPress.VIP.DirectDatabaseQuery.NoCaching,WordPress.DB.PreparedSQL.NotPrepared -- $where is prepared above\n\n\t\t}\n\n\t\t$total = count( $posts );\n\n\t\t$notify = \\WP_CLI\\Utils\\make_progress_bar( sprintf( 'Generating revisions for %d post(s)', $total ), $total );\n\n\t\t$count = isset( $args[0] ) ? intval( $args[0] ) : 15;\n\n\t\tforeach ( $posts as $post_id ) {\n\t\t\t$notify->tick();\n\n\t\t\t$p = get_post( $post_id );\n\t\t\t$content = $p->post_content;\n\t\t\tfor ( $i = 0; $i < $count; $i++ ) {\n\t\t\t\tif ( '&nbsp;' === substr( $content, -6 ) ) {\n\t\t\t\t\t$content = substr( $content, 0, -6 );\n\t\t\t\t} else {\n\t\t\t\t\t$content .= '&nbsp;';\n\t\t\t\t}\n\t\t\t\twp_update_post( 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}\n\t\t}\n\n\t\t$notify->finish();\n\t\tWP_CLI::success( 'Finished generating revisions.' );\n\n\t}", "public function clean( $args = array(), $assoc_args = array() ) {\n\n\t\tglobal $wpdb;\n\n\t\tif ( ! empty( $assoc_args['post_id'] ) ) {\n\n\t\t\t$posts = array( $assoc_args['post_id'] );\n\t\t\t$posts = array_map( 'absint', $posts );\n\n\t\t} else {\n\n\t\t\tif ( empty( $assoc_args['post_type'] ) ) {\n\t\t\t\t$post_types = $this->supports_revisions();\n\t\t\t} else {\n\t\t\t\t$post_types = wp_parse_slug_list( $assoc_args['post_type'] );\n\t\t\t}\n\n\t\t\t$post_types = array_map( function( $i ) {\n\t\t\t\treturn sprintf( \"'%s'\", esc_sql( $i ) );\n\t\t\t}, $post_types );\n\t\t\t$where = sprintf( 'AND post_type IN ( %s )', implode( ',', $post_types ) );\n\n\t\t\t// verify dates\n\t\t\tif ( isset( $assoc_args['after-date'] ) || isset( $assoc_args['before-date'] ) ) {\n\n\t\t\t\t$strto_aft = isset( $assoc_args['after-date'] ) ? strtotime( $assoc_args['after-date'] ) : false;\n\t\t\t\t$strto_bef = isset( $assoc_args['before-date'] ) ? strtotime( $assoc_args['before-date'] ) : false;\n\n\t\t\t\t$aft_date = $strto_aft ? date( 'Y-m-d', $strto_aft ) : false;\n\t\t\t\t$bef_date = $strto_bef ? date( 'Y-m-d', $strto_bef ) : false;\n\n\t\t\t\tif ( $aft_date && $bef_date ) {\n\t\t\t\t\t$where .= $wpdb->prepare( ' AND (post_date < %s AND post_date > %s)', $bef_date, $aft_date );\n\t\t\t\t} else if ( $aft_date ) {\n\t\t\t\t\t$where .= $wpdb->prepare( ' AND post_date > %s', $aft_date );\n\t\t\t\t} else if ( $bef_date ) {\n\t\t\t\t\t$where .= $wpdb->prepare( ' AND post_date < %s', $bef_date );\n\t\t\t\t}\n\n\t\t\t\tif (\n\t\t\t\t\t( isset( $assoc_args['after-date'] ) && ! $aft_date ) ||\n\t\t\t\t\t( isset( $assoc_args['before-date'] ) && ! $bef_date )\n\t\t\t\t) {\n\t\t\t\t\tWP_CLI::log( 'Invalid date provided' );\n\t\t\t\t\tWP_CLI::log( 'Date: Given -> Computed' );\n\t\t\t\t\tif ( isset( $assoc_args['after-date'] ) ) {\n\t\t\t\t\t\tWP_CLI::log( sprintf( 'After: %s -> %s', $assoc_args['after-date'], $aft_date ?: 'none' ) );\n\t\t\t\t\t}\n\t\t\t\t\tif ( isset( $assoc_args['before-date'] ) ) {\n\t\t\t\t\t\tWP_CLI::log( sprintf( 'Before: %s -> %s', $assoc_args['before-date'], $bef_date ?: 'none' ) );\n\t\t\t\t\t}\n\t\t\t\t\tWP_CLI::confirm( 'Proceed?' );\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// get all IDs for posts in given post type(s).\n\t\t\t$posts = $wpdb->get_col( \"SELECT ID FROM $wpdb->posts WHERE 1=1 {$where}\" );\n\n\t\t}\n\n\t\t$total = count( $posts );\n\n\t\t$notify = \\WP_CLI\\Utils\\make_progress_bar( sprintf( 'Cleaning revisions for %d post(s)', $total ), $total );\n\n\t\tif ( isset( $args[0] ) ) {\n\t\t\t$keep = intval( $args[0] );\n\t\t} else if ( true === WP_POST_REVISIONS ) {\n\t\t\tWP_CLI::error( 'WP_POST_REVISIONS is set to true (keeps all revisions). Please pass a number.' );\n\t\t} else {\n\t\t\t$keep = WP_POST_REVISIONS;\n\t\t}\n\t\t$keep = absint( $keep );\n\n\t\t$total_deleted = 0;\n\n\t\t$this->start_bulk_operation();\n\n\t\tforeach ( $posts as $post_id ) {\n\n\t\t\t// phpcs:ignore WordPressVIPMinimum.Functions.RestrictedFunctions.get_posts_get_children\n\t\t\t$revisions = get_children( array(\n\t\t\t\t'order' => 'DESC',\n\t\t\t\t'orderby' => 'date ID',\n\t\t\t\t'post_parent' => $post_id,\n\t\t\t\t'post_type' => 'revision',\n\t\t\t\t'post_status' => 'inherit',\n\t\t\t\t// trust me on these.\n\t\t\t\t'update_post_meta_cache' => false,\n\t\t\t\t'update_post_term_cache' => false,\n\t\t\t\t'fields' => 'ids',\n\t\t\t) );\n\n\t\t\tif ( ! $revisions ) {\n\t\t\t\t$notify->tick();\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tif ( isset( $assoc_args['filter-keep'] ) ) {\n\t\t\t\t$keep = wp_revisions_to_keep( get_post( $post_id ) );\n\t\t\t}\n\n\t\t\t$count = count( $revisions );\n\n\t\t\tif ( $count > $keep ) {\n\t\t\t\tif ( $keep > 0 ) {\n\t\t\t\t\t$revisions = array_slice( $revisions, $keep, null, true );\n\t\t\t\t}\n\n\t\t\t\t$total_deleted += count( $revisions );\n\n\t\t\t\tif ( isset( $assoc_args['hard'] ) ) {\n\t\t\t\t\tforeach ( $revisions as $id ) {\n\t\t\t\t\t\tif ( empty( $assoc_args['dry-run'] ) ) {\n\t\t\t\t\t\t\twp_delete_post_revision( $id );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t$delete_ids = implode( ',', $revisions );\n\t\t\t\t\tif ( empty( $assoc_args['dry-run'] ) ) {\n\t\t\t\t\t\t$wpdb->query( \"DELETE FROM $wpdb->posts WHERE ID IN ($delete_ids)\" );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$wpdb->flush();\n\n\t\t\t$notify->tick();\n\t\t}\n\n\t\t$this->end_bulk_operation();\n\n\t\t$notify->finish();\n\n\t\tif ( ! empty( $assoc_args['dry-run'] ) ) {\n\t\t\tWP_CLI::success( sprintf( 'Dry Run: Will remove %d old revisions.', $total_deleted ) );\n\t\t} else {\n\t\t\tWP_CLI::success( sprintf( 'Finished removing %d old revisions.', $total_deleted ) );\n\t\t}\n\n\t}", "function wp_revisions_to_keep($post)\n {\n }", "public function status( $args = array(), $assoc_args = array() ) {\n\n\t\tif ( defined( 'WP_POST_REVISIONS' ) ) {\n\t\t\tif ( true === WP_POST_REVISIONS ) {\n\t\t\t\tWP_CLI::success( 'WP_POST_REVISIONS is true. Keeps all revisions.' );\n\t\t\t} else {\n\t\t\t\tWP_CLI::success( sprintf( 'Keeping the last %d revisions', WP_POST_REVISIONS ) );\n\t\t\t}\n\t\t} else {\n\t\t\tWP_CLI::success( 'WP_POST_REVISIONS is undefined.' );\n\t\t}\n\n\t}", "public function status( $args = array(), $assoc_args = array() ) {\n\n\t\tif ( defined( 'WP_POST_REVISIONS' ) ) {\n\t\t\tif ( true === WP_POST_REVISIONS ) {\n\t\t\t\tWP_CLI::success( 'WP_POST_REVISIONS is true. Keeps all revisions.' );\n\t\t\t} else {\n\t\t\t\tWP_CLI::success( sprintf( 'Keeping the last %d revisions', WP_POST_REVISIONS ) );\n\t\t\t}\n\t\t} else {\n\t\t\tWP_CLI::success( 'WP_POST_REVISIONS is undefined.' );\n\t\t}\n\n\t}", "public function deleted(Post $post)\n {\n Category::where('id', $post->category)\n ->where('num', '>', 0)->decrement('num');\n Tag::whereIn('id', explode(',', $post->tags))\n ->where('num', '>', 0)->decrement('num');\n Archive::where('month', $post->archive)->where('num', '>', 0)->decrement('num');\n Archive::where('num', 0)->forceDelete();\n }", "function borrar_posts_previos($tipo)\n{\n $args = array(\n 'post_type' => $tipo,\n 'posts_per_page' => -1,\n );\n\n // Query\n $query = new WP_Query($args);\n\n // Contador de posts borrados\n $count = 0;\n\n if ($query->have_posts()): while ($query->have_posts()): $query->the_post();\n\n $id = get_the_ID();\n\n wp_delete_post($id);\n\n $count++;\n\n endwhile;endif;\n wp_reset_postdata();\n\n return $count;\n\n}", "public function run($request) {\n\t\t$posts = BlogPost::get()->filter(array('WordpressID:GreaterThan' => 0));\n\t\t$count = 0;\n\t\tforeach($posts as $post) {\n\t\t\t$count++;\n\t\t\tif (class_exists('Comments')) {\n\t\t\t\tforeach($post->AllComments() as $comment) {\n\t\t\t\t\t$comment->delete();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tforeach ($post->Tags() as $tag) {\n\t\t\t\t$post->Tags()->remove($tag);\n\t\t\t}\n\t\t\tforeach ($post->Categories() as $cat) {\n\t\t\t\t$post->Categories()->remove($cat);\n\t\t\t}\n\t\t\tforeach ($post->Authors() as $a) {\n\t\t\t\t$post->Authors()->remove($a);\n\t\t\t}\n\t\t\t$post->deleteFromStage('Stage');\n\t\t\t$post->deleteFromStage('Live');\n\t\t}\n\t\techo 'Deleted ' . $count . ' posts';\n\t}", "public function postDelete()\n {\n if ((!isset($this->revisionEnabled) || $this->revisionEnabled)\n && $this->isSoftDelete()\n && $this->isRevisionable('deleted_at')\n ) {\n $revisions[] = array(\n 'revisionable_type' => get_class($this),\n 'revisionable_id' => $this->getKey(),\n 'key' => 'deleted_at',\n 'old_value' => null,\n 'new_value' => $this->deleted_at,\n 'user_id' => $this->getSystemUserId(),\n 'created_at' => new \\DateTime(),\n 'updated_at' => new \\DateTime(),\n 'activity_id' => $this->getActivityId()\n );\n $revision = new \\Venturecraft\\Revisionable\\Revision;\n \\DB::table($revision->getTable())->insert($revisions);\n }\n }", "public function limit_post_revisions() {\n\t}", "public function onDelete($objDc)\n\t{\n\t\t// just reset relation if reset is called\n\t\tif($this->strAction == 'reset')\n\t\t{\n\t\t\t$objModel = new DraftableModel($objDc->activeRecord, false, $this->strTable);\n\t\t\t\n\t\t\tif($objModel->hasRelated())\n\t\t\t{\n\t\t\t\t$objReleated = $objModel->getRelated();\n\t\t\t\t$objReleated->draftRelated = 0;\n\t\t\t\t$objReleated->save();\n\t\t\t}\n\t\t\t\n\t\t\treturn;\n\t\t}\n\t\telseif($this->blnDraftMode)\n\t\t{\n\t\t\t// delete all mode, do nothing here. applyDraft is handling the delete task\n\t\t\tif(Input::post('IDS') != '')\n\t\t\t{\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\t$objModel = new DraftableModel($objDc->activeRecord, false, $this->strTable);\n\n\t\t\t// delete new elements\n\t\t\tif($objModel->hasState('new'))\n\t\t\t{\n\t\t\t\treturn;\n\t\t\t}\n\t\t\telseif($objModel->hasState('delete'))\n\t\t\t{\n\t\t\t\t// no state set, let's delete it\n\t\t\t\tif(!$objModel->hasState('visibility') && !$objModel->hasState('modified') && !$objModel->hasState('sorted'))\n\t\t\t\t{\n\t\t\t\t\t$objRelated = $objModel->getRelated();\n\t\t\t\t\t\n\t\t\t\t\tif($objRelated !== null)\n\t\t\t\t\t{\n\t\t\t\t\t\t$objRelated->draftRelated = 0;\n\t\t\t\t\t\t$objRelated->save();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\t$objModel->removeState('delete');\n\t\t\t}\n\t\t\telse \n\t\t\t{\n\t\t\t\t$objModel->setState('delete');\n\t\t\t}\n\t\t\t\n\t\t\t// save and redirect so element is not deleted\n\t\t\t$objModel->save();\n\t\t\t$this->redirect($this->getReferer());\n\t\t}\n\t\t\n\t\t// add draft element to tl_undo as well\n\t\telseif($objDc->activeRecord->draftRelated > 0)\n\t\t{\n\t\t\t// get last undo\n\t\t\t$objUndo = $this->Database->prepare('SELECT * FROM tl_undo WHERE fromTable=? AND pid=? ORDER BY id DESC')->limit(1)->executeUncached($this->strTable, $this->User->id);\n\n\t\t\t// no undo set found, just delete it\n\t\t\tif($objUndo->numRows < 1)\n\t\t\t{\n\t\t\t\t$objDc->setId($objDc->activeRecord->draftRelated);\n\t\t\t\t$objDc->delete(true);\n\t\t\t\t$objDc->setId($objDc->activeRecord->id);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\t// store draft in tl_undo\n\t\t\t// TODO: handle ctable elements\n\t\t\t$objSave = DraftableModel::findOneBy($this->strTable, 'draftRelated', $objDc->id);\n\t\t\t\n\t\t\tif($objSave === null)\n\t\t\t{\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\t$arrData = unserialize($objUndo->data);\n\t\t\t$arrData[$this->strTable][$objSave->id] = $objSave->row();\n\t\t\n\t\t\t$arrSet = array\n\t\t\t(\n\t\t\t\t'tstamp'\t=> time(),\n\t\t\t\t'data'\t\t=> $arrData,\n\t\t\t\t'affectedRows'\t=> $objUndo->affectedRows+1,\n\t\t\t);\n\t\t\t\n\t\t\t$this->Database->prepare('UPDATE tl_undo %s WHERE id=?')->set($arrSet)->execute($objUndo->id);\n\t\t\t$objSave->delete();\n\t\t}\n\t}", "public static function clean() {\n\t\tglobal $egDraftsCleanRatio;\n\n\t\t// Only perform this action a fraction of the time\n\t\tif ( rand( 0, $egDraftsCleanRatio ) == 0 ) {\n\t\t\t// Get database connection\n\t\t\t$dbw = wfGetDB( DB_PRIMARY );\n\t\t\t// Removes expired drafts from database\n\t\t\t$dbw->delete( 'drafts',\n\t\t\t\t[\n\t\t\t\t\t'draft_savetime < ' .\n\t\t\t\t\t\t$dbw->addQuotes(\n\t\t\t\t\t\t\t$dbw->timestamp( self::getDraftAgeCutoff() )\n\t\t\t\t\t\t)\n\t\t\t\t],\n\t\t\t\t__METHOD__\n\t\t\t);\n\t\t}\n\t}", "function netrics_clear_month_data( $query_ids = null ) {\n if ( ! isset( $query_ids->posts ) ) {\n $query_ids = netrics_get_pubs_ids( 2000 );\n }\n\n $log = '';\n foreach ( $query_ids->posts as $post_id ) {\n $del_articles = delete_post_meta( $post_id, 'nn_articles_new' );\n $del_errors = delete_post_meta( $post_id, 'nn_error' );\n $del_flag = wp_remove_object_terms( $post_id, array( 6178, 6179 ), 'flag' ); //'0Feed' and '1PageSpeed'.\n\n $log .= \"$post_id $del_articles/$del_errors/$del_flag\";\n }\n\n return $log;\n}", "function wp_get_post_revisions($post = 0, $args = \\null)\n {\n }", "function kala_revision_batch_delete_form() {\n // Initialize Vars.\n $form = array();\n\n // Date text field.\n $form['date'] = array(\n '#type' => 'textfield',\n '#title' => t('Delete nodes revisions before this time.'),\n '#description' => t('Enter as a -1 day, 1-year, etc. Defaults to -90 days.'),\n '#default_value' => t('-90 days'),\n '#required' => TRUE,\n );\n\n $form['submit'] = array(\n '#type' => 'submit',\n '#value' => t('Delete These Revisions!'),\n '#submit' => array('kala_revision_batch_delete_form_submit'),\n );\n\n return $form;\n}", "function remove_unpublished_posts($post_ID_query){\n\tglobal $wpdb;\n\t$date_object = count($post_ID_query);\n\t\n\t//build query to find is posts within the results are not published\n\t$post_query .= \"SELECT ID FROM $wpdb->posts WHERE post_status != 'publish' AND (\";\n\tfor($i=0; $i<$date_object;$i++){\n\t\t$current_object = $post_ID_query[$i];\n\t\t$post_query .= \"ID='$current_object->post_id'\";\n\t\tif ($i<($date_object-1)){//add or at the end of each query, expect the last one\n\t\t\t$post_query .= \" OR \";\n\t\t} else{\n\t\t\t$post_query .= \");\";\n\t\t}\n\t}\n\t$trashed_post_id = $wpdb->get_results($post_query);\n\t//make array of id's of trashed posts\n\t$trashed_post_id = get_just_post_ids($trashed_post_id);\n\t//cycle though results or date query, unsetting trashed id's\n\tif (is_array($trashed_post_id)){//check to see $trashed_post_id has results\n\t\tforeach($post_ID_query as $key=>$post){\n\t\t\t//is post id in trashed list?\n\t\t\n\t\t\tif(in_array($post->post_id,$trashed_post_id)){\n\t\t\t\tunset($post_ID_query[$key]);\n\t\t\t}\n\t\t}\n\t} \n\treturn $post_ID_query;\n}", "public function mf_delete_makers( $args, $assoc_args ) {\n\n\t\t$args = array(\n\t\t\t'posts_per_page' => 2000,\n\t\t\t'post_type' => 'maker',\n\t\t\t'post_status' => 'any',\n\n\t\t\t// Prevent new posts from affecting the order\n\t\t\t'orderby' => 'ID',\n\t\t\t'order' => 'ASC',\n\n\t\t\t// Speed this up\n\t\t\t'no_found_rows' => true,\n\t\t\t'update_post_meta_cache' => false,\n\t\t\t'update_post_term_cache' => false,\n\t\t);\n\n\t\t// Get the first set of posts\n\t\t$query = new WP_Query( $args );\n\n\t\twhile ( $query->have_posts() ) : $query->the_post();\n\t\t\n\t\t$title = get_the_title( get_the_ID() );\n\n\t\t$del = wp_delete_post( get_the_ID() );\n\n\t\tif ( $del ) {\n\t\t\tWP_CLI::success( 'Deleted ' . $title );\n\t\t} else {\n\t\t\tWP_CLI::warning( 'Failed to delete ' . $title );\n\t\t}\n\t\tendwhile;\n\t}", "public function deletePerformancesCommand(\n $dryRun = true,\n $period = 'pastOnly',\n $date = '',\n $storagePageIds = '',\n $limit = 1000\n ) {\n $settings = $this->createSettings($period, $date, $storagePageIds, $limit);\n\n $performanceDemand = $this->performanceDemandFactory->createFromSettings($settings);\n $performances = $this->performanceRepository->findDemanded($performanceDemand);\n\n $deletedPerformances = count($performances);\n\n $output = 'Found ' . $deletedPerformances . ' matching performances.';\n\n if (!$dryRun) {\n $output = 'Deleted ' . $deletedPerformances . ' performances';\n\n foreach ($performances as $performance) {\n $this->performanceRepository->remove($performance);\n }\n }\n\n $this->outputLine($output);\n }", "function kala_revision_batch_delete_form_submit($form, &$form_state) {\n // Initalize vars.\n $operations = array();\n $values = $form_state['values'];\n\n // Grab the string date.\n if (isset($values['date'])) {\n $time = strtotime($values['date']);\n }\n\n // If we have the time, lets do this!\n if (isset($time)) {\n // Grab all vids before our time stamp.\n $sql = \"SELECT r.vid FROM {node_revision} r WHERE r.timestamp < :time ORDER BY r.timestamp DESC;\";\n $query = db_query($sql, array(':time' => $time));\n $vids = $query->fetchAllKeyed(0,0);\n $count = count($vids);\n\n // Throw our chunks into the batch.\n $chunks = array_chunk($vids, 50);\n foreach ($chunks as $chunk) {\n $operations[] = array(\"kala_revision_batch_delete_batch_process\", array($chunk, $count));\n }\n\n // Engage.\n $batch = array(\n 'title' => t('Deleting Revisions...'),\n 'init_message' => t('Grabbing Revisions to Delete.'),\n 'operations' => $operations,\n 'finished' => 'kala_revision_batch_delete_batch_finished',\n 'file' => drupal_get_path('module', 'kala_revision_batch_delete') . '/includes/kala_revision_batch_delete.batch.inc',\n );\n\n batch_set($batch);\n }\n}", "function iron_delete_post ( $post_id ) {\n\tglobal $wpdb;\n\n\tif ( $post = $wpdb->get_row($wpdb->prepare(\"SELECT * FROM $wpdb->posts WHERE ID = %d\", $post_id)) )\n\t{\n\t\tif ( 'page' == $post->post_type) {\n\t\t\t// if the page is defined in option page_on_front or post_for_posts,\n\t\t\t// adjust the corresponding options\n\t\t\tif ( get_iron_option('page_for_albums') == $post_id ) {\n\t\t\t\treset_iron_option('page_for_albums');\n\t\t\t}\n\t\t\tif ( get_iron_option('page_for_events') == $post_id ) {\n\t\t\t\treset_iron_option('page_for_events');\n\t\t\t}\n\t\t\tif ( get_iron_option('page_for_videos') == $post_id ) {\n\t\t\t\treset_iron_option('page_for_videos');\n\t\t\t}\n\t\t\tif ( get_iron_option('page_for_photos') == $post_id ) {\n\t\t\t\treset_iron_option('page_for_photos');\n\t\t\t}\n\t\t}\n\t}\n}", "public function trash_changeset_post($post)\n {\n }", "function _wp_delete_customize_changeset_dependent_auto_drafts($post_id)\n {\n }", "public function do_batch() {\n\t\t$post_ids = array_map( 'intval', $this->get_post_ids() );\n\t\tforeach( $post_ids as $post_to_delete ) {\n\t\t\tadd_filter( Toolset_Association_Cleanup_Post::IS_DELETING_FILTER, '__return_true' );\n\t\t\twp_delete_post( $post_to_delete, true );\n\t\t\tremove_filter( Toolset_Association_Cleanup_Post::IS_DELETING_FILTER, '__return_true' );\n\t\t}\n\n\t\t$this->deleted_posts = count( $post_ids );\n\t}", "public function kiwip_action_delete_revisions_adm_msg(){\n\t\tif(current_user_can('manage_options')){\n\t \techo '<div id=\"message\" class=\"updated fade\"><p><strong>All posts revisions have been deleted correctly.</strong></p></div>';\n\t }\n\t}", "public function removeRepost( $parameters = ['postID' => ''] )\r\n\t{\r\n\t\treturn $this->delete('https://api.gab.com/v1.0/posts/' .$parameters['postID']. '/repost');\r\n }", "public function reset( $args, $assoc_args ) {\n\t\tglobal $wpdb;\n\t\tWP_CLI::confirm( 'Are you sure you want to empty all amp_validated_url posts and amp_validation_error taxonomy terms?', $assoc_args );\n\n\t\t// Delete all posts.\n\t\t$count = $wpdb->get_var( $wpdb->prepare( \"SELECT COUNT(*) FROM $wpdb->posts WHERE post_type = %s\", AMP_Validated_URL_Post_Type::POST_TYPE_SLUG ) );\n\t\t$query = $wpdb->prepare( \"SELECT ID FROM $wpdb->posts WHERE post_type = %s\", AMP_Validated_URL_Post_Type::POST_TYPE_SLUG );\n\t\t$posts = new WP_CLI\\Iterators\\Query( $query, 10000 );\n\n\t\t$progress = WP_CLI\\Utils\\make_progress_bar(\n\t\t\tsprintf( 'Deleting %d amp_validated_url posts...', $count ),\n\t\t\t$count\n\t\t);\n\n\t\tforeach ( $posts as $post ) {\n\t\t\twp_delete_post( $post->ID, true );\n\t\t\t$progress->tick();\n\t\t}\n\n\t\t$progress->finish();\n\n\t\t// Delete all terms. Note that many terms should get deleted when their post counts go to zero above.\n\t\t$count = $wpdb->get_var( $wpdb->prepare( \"SELECT COUNT( * ) FROM $wpdb->term_taxonomy WHERE taxonomy = %s\", AMP_Validation_Error_Taxonomy::TAXONOMY_SLUG ) );\n\t\t$query = $wpdb->prepare( \"SELECT term_id FROM $wpdb->term_taxonomy WHERE taxonomy = %s\", AMP_Validation_Error_Taxonomy::TAXONOMY_SLUG );\n\t\t$terms = new WP_CLI\\Iterators\\Query( $query, 10000 );\n\n\t\t$progress = WP_CLI\\Utils\\make_progress_bar(\n\t\t\tsprintf( 'Deleting %d amp_taxonomy_error terms...', $count ),\n\t\t\t$count\n\t\t);\n\n\t\tforeach ( $terms as $term ) {\n\t\t\twp_delete_term( $term->term_id, AMP_Validation_Error_Taxonomy::TAXONOMY_SLUG );\n\t\t\t$progress->tick();\n\t\t}\n\n\t\t$progress->finish();\n\n\t\tWP_CLI::success( 'All AMP validation data has been removed.' );\n\t}", "function undelete_posts()\r\n\t{\r\n\t\tglobal $auth, $config, $db, $phpbb_root_path, $phpEx, $user;\r\n\r\n\t\tif (sizeof($this->undelete['p']))\r\n\t\t{\r\n\t\t\t$sql_data = array(\r\n\t\t\t\t'post_deleted'\t\t\t=> 0,\r\n\t\t\t\t'post_deleted_time'\t\t=> 0,\r\n\t\t\t);\r\n\t\t\t$sql = 'UPDATE ' . POSTS_TABLE . '\r\n\t\t\t\tSET ' . $db->sql_build_array('UPDATE', $sql_data) . '\r\n\t\t\t\t\tWHERE ' . $db->sql_in_set('post_id', $this->undelete['p']);\r\n\t\t\t$db->sql_query($sql);\r\n\r\n\t\t\t// Add the post info to the search index since we are undeleting it\r\n\t\t\t$this->update_search_index($this->undelete['p'], false);\r\n\r\n\t\t\tforeach ($this->undelete['p'] as $id)\r\n\t\t\t{\r\n\t\t\t\t$topic_id = intval($this->post_data[$id]['topic_id']);\r\n\t\t\t\t$forum_id = intval($this->post_data[$id]['forum_id']);\r\n\r\n\t\t\t\t// Update the first/last topic info if we must\r\n\t\t\t\tif ($this->topic_data[$topic_id]['topic_deleted'] != 0)\r\n\t\t\t\t{\r\n\t\t\t\t\t// Since the topic was deleted, undelete it\r\n\t\t\t\t\t$this->undelete['t'][] = $topic_id;\r\n\r\n\t\t\t\t\tif ($this->topic_data[$topic_id]['topic_poster'] != $user->data['user_id'])\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tadd_log('mod', $forum_id, $topic_id, 'LOG_UNDELETE_TOPIC', $this->topic_data[$topic_id]['topic_title']);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tif ($this->post_data[$id]['poster_id'] != $user->data['user_id'])\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tadd_log('mod', $forum_id, $topic_id, 'LOG_UNDELETE_POST', $this->post_data[$id]['post_subject']);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif ($this->topic_data[$topic_id]['topic_first_post_id'] > $id)\r\n\t\t\t\t{\r\n\t\t\t\t\t$this->update_first_post_topic($topic_id);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif ($this->topic_data[$topic_id]['topic_last_post_id'] < $id)\r\n\t\t\t\t{\r\n\t\t\t\t\t$this->update_last_post_topic($topic_id);\r\n\t\t\t\t}\r\n\r\n\t\t\t\t$sql = 'UPDATE ' . TOPICS_TABLE . '\r\n\t\t\t\t\tSET topic_deleted_reply_count = topic_deleted_reply_count - 1\r\n\t\t\t\t\t\tWHERE topic_id = ' . $topic_id;\r\n\t\t\t\t$db->sql_query($sql);\r\n\t\t\t\t$this->topic_data[$topic_id]['topic_deleted_reply_count']--;\r\n\r\n\t\t\t\t// If there is a shadow topic, we will update it too.\r\n\t\t\t\tif (array_key_exists($topic_id, $this->shadow_topic_ids))\r\n\t\t\t\t{\r\n\t\t\t\t\t$sql = 'UPDATE ' . TOPICS_TABLE . '\r\n\t\t\t\t\t\tSET topic_deleted_reply_count = topic_deleted_reply_count - 1\r\n\t\t\t\t\t\t\tWHERE topic_id = ' . intval($this->shadow_topic_ids[$topic_id]);\r\n\t\t\t\t\t$db->sql_query($sql);\r\n\r\n\t\t\t\t\t$this->topic_data[$this->shadow_topic_ids[$topic_id]]['topic_deleted_reply_count']--;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// If the topic is a global announcement, do not attempt to do any updates to forums\r\n\t\t\t\tif ($this->topic_data[$topic_id]['topic_type'] != POST_GLOBAL)\r\n\t\t\t\t{\r\n\t\t\t\t\t// Update the last post info for the forum if we must\r\n\t\t\t\t\tif ($this->forum_data[$forum_id]['forum_last_post_id'] < $id)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$this->update_last_post_forum($forum_id);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (array_key_exists($topic_id, $this->shadow_topic_ids))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif ($this->forum_data[$this->topic_data[$this->shadow_topic_ids[$topic_id]]['forum_id']]['forum_last_post_id'] == $id)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t$this->update_last_post_forum($this->topic_data[$this->shadow_topic_ids[$topic_id]]['forum_id']);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t$sql = 'UPDATE ' . FORUMS_TABLE . '\r\n\t\t\t\t\t\tSET forum_deleted_reply_count = forum_deleted_reply_count - 1\r\n\t\t\t\t\t\t\tWHERE forum_id = ' . $forum_id;\r\n\t\t\t\t\t$db->sql_query($sql);\r\n\t\t\t\t\t$this->forum_data[$forum_id]['forum_deleted_reply_count']--;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t// Undelete the topics\r\n\t\t\t$this->undelete_topics();\r\n\t\t}\r\n\t}", "function test_get_revisions_gets_the_posts_revisions() {\n\n\t\t$post = get_post( $this->mock_post_id );\n\n\t\t$post->post_content = 'update 1';\n\n\t\twp_update_post( $post );\n\n\t\t$post->post_content = 'update 2';\n\n\t\twp_update_post( $post );\n\n\t\t$post->post_content = 'update 3';\n\n\t\twp_update_post( $post );\n\n\t\t$revisions = wp_get_post_revisions( $this->mock_post_id );\n\n\t\t$revisions_data = array();\n\n\t\t$last_month = date( 'm', strtotime( 'last day of -1 month' ) );\n\t\t$this_year = date( 'Y', strtotime( 'last day of this month' ) );\n\t\t$next_month = date( 'm', strtotime( 'last day of +1 month' ) );\n\n\t\t$revisions_counter = 0;\n\n\t\t$first_revision = false;\n\n\t\tforeach ( $revisions as $key => $revision ) {\n\n\t\t\t$month = ( $revisions_counter >= 1 ) ? $last_month : $next_month;\n\n\t\t\tif ( 1 == $revisions_counter ) {\n\n\t\t\t\t$second_revision = $revision;\n\n\t\t\t}\n\n\t\t\t$revisions_data[ $revision->ID ] = array(\n\n\t\t\t\t'month' => $month,\n\t\t\t\t'day' => $revisions_counter + 1 . '',\n\t\t\t\t'year' => $this_year,\n\t\t\t\t'hour' => '12',\n\t\t\t\t'minute' => '30',\n\n\t\t\t);\n\n\t\t\t$revisions_counter++;\n\n\t\t}\n\n\t\tupdate_post_meta( $this->mock_post_id, 'dep_revisions_data', json_encode( $revisions_data ) );\n\n\t\t$args = array(\n\t\t\t'p' => $this->mock_post_id,\n\t\t\t'post_type' => 'page',\n\t\t);\n\n\t\t$query = new \\WP_Query( $args );\n\n\t\tif ( $query->have_posts() ) {\n\n\t\t\twhile ( $query->have_posts() ) {\n\n\t\t\t\t$query->the_post();\n\n\t\t\t\t$actual = $this->dep_page_versions_controller->get_revision( $post->post_content );\n\n\t\t\t}\n\t\t}\n\n\t\t$this->assertEquals( $second_revision->post_content, $actual );\n\n\t}", "public function handleDelete()\n {\n Craft::$app->getDb()->createCommand()\n ->delete(Table::REVISIONS, ['id' => $this->owner->revisionId])\n ->execute();\n }", "public function hard_delete()\n\t{\n\t\tif (!$this->topic->topic_posts)\n\t\t{\n\t\t\tif (!$this->topic->load($this->topic_id))\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\t// Update the postcount for the topic\n\t\t$this->update_topic_postcount(true);\n\n\t\t// Set the visibility appropriately if no posts are visibile to the public/authors\n\t\t$flags = count::get_flags(access::PUBLIC_LEVEL);\n\t\tif (count::from_db($this->topic->topic_posts, $flags) <= 0)\n\t\t{\n\t\t\t// There are no posts visible to the public, change it to authors level access\n\t\t\t$this->topic->topic_access = access::AUTHOR_LEVEL;\n\n\t\t\t$flags = count::get_flags(access::AUTHOR_LEVEL);\n\t\t\tif (count::from_db($this->topic->topic_posts, $flags) <= 0)\n\t\t\t{\n\t\t\t\t// There are no posts visible to authors, change it to teams level access\n\t\t\t\t$this->topic->topic_access = access::TEAM_LEVEL;\n\t\t\t}\n\t\t}\n\n\t\t// Sync the first topic post if required\n\t\tif ($this->post_id == $this->topic->topic_first_post_id)\n\t\t{\n\t\t\t$this->topic->sync_first_post($this->post_id);\n\t\t}\n\n\t\t// Sync the last topic post if required\n\t\tif ($this->post_id == $this->topic->topic_last_post_id)\n\t\t{\n\t\t\t$this->topic->sync_last_post($this->post_id);\n\t\t}\n\n\t\t// Submit the topic to store the updated information\n\t\t$this->topic->submit();\n\n\t\t// Remove from the search index\n\t\t$this->search_manager->delete($this->post_type, $this->post_id);\n\n\t\t// @todo remove attachments and other things\n\n\t\t// Remove any attention items\n\t\t$sql = 'DELETE FROM ' . TITANIA_ATTENTION_TABLE . '\n\t\t\tWHERE attention_object_type = ' . ext::TITANIA_POST . '\n\t\t\t\tAND attention_object_id = ' . $this->post_id;\n\t\tphpbb::$db->sql_query($sql);\n\n\t\t// Decrement the user's postcount if we must\n\t\tif (!$this->post_deleted && $this->post_approved && in_array($this->post_type, titania::$config->increment_postcount))\n\t\t{\n\t\t\tphpbb::update_user_postcount($this->post_user_id, '-');\n\t\t}\n\n\t\t$this->forum_queue_hard_delete();\n\n\t\t// Initiate self-destruct mode\n\t\tparent::delete();\n\n\t\t// Update topics posted table\n\t\t$this->topic->update_posted_status('remove', $this->post_user_id);\n\n\t\t// Check if the topic is empty\n\t\t$flags = count::get_flags(access::TEAM_LEVEL, true, true);\n\t\tif (count::from_db($this->topic->topic_posts, $flags) <= 0)\n\t\t{\n\t\t\t$this->topic->delete();\n\t\t}\n\t}", "public function destroy(Request $request)\n {\n $item = Item::find($request->input('id'));\n $pc = Pc::where('item_id',$request->input('id'))->first();\n $revision_detallada_del = DB::table('revision_detalladas')->where('item_id',$request->input('id'));\n $revision_detallada = DB::table('revision_detalladas')\n ->select('revision_id')\n ->where('item_id', $request->input('id'))\n ->get();\n $array_id = array();\n foreach($revision_detallada as $rev) {\n $array_id[] = $rev->revision_id;\n }\n //$rev = json_decode($revision_detallada[0]->revision_id);\n //$ids = json_encode($array_id)\n $revs = DB::table('revisions')\n ->whereIn('id', $array_id);\n if (!empty($revision_detallada_del)) {\n $revision_detallada_del->delete();\n }\n if (!empty($revs)) {\n $revs->delete();\n }\n if (!empty($pc)) {\n $pc->delete(); \n }\n if ($item->delete()) {\n return 'Mobiliario Eliminado Correctamente';\n }\n }", "function wp_delete_auto_drafts()\n {\n }", "#[CLI\\Command(name: self::DELETE, aliases: ['wd-del', 'wd-delete', 'wd', 'watchdog-delete'])]\n #[CLI\\Argument(name: 'substring', description: 'Delete all log records with this text in the messages.')]\n #[CLI\\Option(name: 'severity', description: 'Delete messages of a given severity level.')]\n #[CLI\\Option(name: 'type', description: 'Delete messages of a given type.')]\n #[CLI\\Usage(name: 'drush watchdog:delete', description: 'Delete all messages.')]\n #[CLI\\Usage(name: 'drush watchdog:delete 64', description: 'Delete messages with id 64.')]\n #[CLI\\Usage(name: 'drush watchdog:delete \"cron run succesful\"', description: 'Delete messages containing the string \"cron run succesful\".')]\n #[CLI\\Usage(name: '@usage drush watchdog:delete --severity=Notice', description: 'Delete all messages with a severity of notice.')]\n #[CLI\\Usage(name: 'drush watchdog:delete --type=cron', description: 'Delete all messages of type cron.')]\n #[CLI\\ValidateModulesEnabled(modules: ['dblog'])]\n #[CLI\\Complete(method_name_or_callable: 'watchdogComplete')]\n #[CLI\\Bootstrap(level: DrupalBootLevels::FULL)]\n public function delete($substring = '', $options = ['severity' => self::REQ, 'type' => self::REQ]): void\n {\n if ($substring == 'all') {\n $this->output()->writeln(dt('All watchdog messages will be deleted.'));\n if (!$this->io()->confirm(dt('Do you really want to continue?'))) {\n throw new UserAbortException();\n }\n $ret = $this->connection->truncate('watchdog')->execute();\n $this->logger()->success(dt('All watchdog messages have been deleted.'));\n } elseif (is_numeric($substring)) {\n $this->output()->writeln(dt('Watchdog message #!wid will be deleted.', ['!wid' => $substring]));\n if (!$this->io()->confirm(dt('Do you want to continue?'))) {\n throw new UserAbortException();\n }\n $affected_rows = $this->connection->delete('watchdog')->condition('wid', $substring)->execute();\n if ($affected_rows == 1) {\n $this->logger()->success(dt('Watchdog message #!wid has been deleted.', ['!wid' => $substring]));\n } else {\n throw new \\Exception(dt('Watchdog message #!wid does not exist.', ['!wid' => $substring]));\n }\n } else {\n if ((empty($substring)) && (!isset($options['type'])) && (!isset($options['severity']))) {\n throw new \\Exception(dt('No options provided.'));\n }\n $where = $this->where($options['type'], $options['severity'], $substring, 'OR');\n $this->output()->writeln(dt('All messages with !where will be deleted.', ['!where' => preg_replace(\"/message LIKE %$substring%/\", \"message body containing '$substring'\", strtr($where['where'], $where['args']))]));\n if (!$this->io()->confirm(dt('Do you want to continue?'))) {\n throw new UserAbortException();\n }\n $affected_rows = $this->connection->delete('watchdog')\n ->where($where['where'], $where['args'])\n ->execute();\n $this->logger()->success(dt('!affected_rows watchdog messages have been deleted.', ['!affected_rows' => $affected_rows]));\n }\n }", "function hard_delete_posts()\r\n\t{\r\n\t\tglobal $auth, $config, $db, $phpbb_root_path, $phpEx, $user;\r\n\r\n\t\tif (sizeof($this->hard_delete['p']))\r\n\t\t{\r\n\t\t\t$sql = 'DELETE FROM ' . POSTS_TABLE . '\r\n\t\t\t\tWHERE ' . $db->sql_in_set('post_id', $this->hard_delete['p']);\r\n\t\t\t$db->sql_query($sql);\r\n\r\n\t\t\tforeach ($this->hard_delete['p'] as $id)\r\n\t\t\t{\r\n\t\t\t\t$topic_id = intval($this->post_data[$id]['topic_id']);\r\n\t\t\t\t$forum_id = intval($this->post_data[$id]['forum_id']);\r\n\t\t\t\t$sql_data = $sql_data1 = '';\r\n\r\n\t\t\t\tif ($this->topic_data[$topic_id]['topic_deleted'] != 0 && (($this->topic_data[$topic_id]['topic_first_post_id'] == $id && $this->topic_data[$topic_id]['topic_last_post_id'] == $id) || ($this->topic_data[$topic_id]['topic_deleted_reply_count'] == 1 && $this->topic_data[$topic_id]['topic_replies_real'] == 0)))\r\n\t\t\t\t{\r\n\t\t\t\t\t$this->hard_delete['t'][] = $topic_id;\r\n\t\t\t\t\tadd_log('mod', $forum_id, $topic_id, 'LOG_HARD_DELETE_TOPIC', $this->topic_data[$topic_id]['topic_title']);\r\n\r\n\t\t\t\t\tif (array_key_exists($topic_id, $this->shadow_topic_ids))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$this->hard_delete['t'][] = $this->shadow_topic_ids[$topic_id];\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif ($this->topic_data[$topic_id]['topic_type'] != POST_GLOBAL && $this->forum_data[$forum_id]['forum_deleted_topic_count'] > 0)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$sql_data1 .= 'forum_deleted_topic_count = forum_deleted_topic_count - 1, ';\r\n\t\t\t\t\t\t$this->forum_data[$forum_id]['forum_deleted_topic_count']--;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tadd_log('mod', $forum_id, $topic_id, 'LOG_HARD_DELETE_POST', $this->post_data[$id]['post_subject']);\r\n\r\n\t\t\t\t\tif ($this->topic_data[$topic_id]['topic_replies'] > 0)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$sql_data .= 'topic_replies = topic_replies - 1, ';\r\n\t\t\t\t\t\t$this->topic_data[$topic_id]['topic_replies']--;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif ($this->topic_data[$topic_id]['topic_replies_real'] > 0)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$sql_data .= 'topic_replies_real = topic_replies_real - 1, ';\r\n\t\t\t\t\t\t$this->topic_data[$topic_id]['topic_replies_real']--;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif ($this->topic_data[$topic_id]['topic_deleted_reply_count'] > 0)\r\n\t\t\t\t{\r\n\t\t\t\t\t$sql_data .= 'topic_deleted_reply_count = topic_deleted_reply_count - 1, ';\r\n\t\t\t\t\t$this->topic_data[$topic_id]['topic_deleted_reply_count']--;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif ($this->topic_data[$topic_id]['topic_type'] != POST_GLOBAL && $this->forum_data[$forum_id]['forum_deleted_reply_count'] > 0)\r\n\t\t\t\t{\r\n\t\t\t\t\t$sql_data1 .= 'forum_deleted_reply_count = forum_deleted_reply_count - 1, ';\r\n\t\t\t\t\t$this->forum_data[$forum_id]['forum_deleted_reply_count']--;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif ($this->topic_data[$topic_id]['topic_type'] != POST_GLOBAL && $this->forum_data[$forum_id]['forum_posts'] > 0)\r\n\t\t\t\t{\r\n\t\t\t\t\t$sql_data1 .= 'forum_posts = forum_posts - 1, ';\r\n\t\t\t\t\t$this->forum_data[$forum_id]['forum_posts']--;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif ($sql_data != '')\r\n\t\t\t\t{\r\n\t\t\t\t\t$sql = 'UPDATE ' . TOPICS_TABLE . '\r\n\t\t\t\t\t\tSET ' . $sql_data;\r\n\t\t\t\t\t$sql = substr($sql, 0, -2);\r\n\t\t\t\t\t$sql .= ' WHERE topic_id = ' . $topic_id;\r\n\t\t\t\t\t$db->sql_query($sql);\r\n\t\t\t\t}\r\n\t\t\t\tif ($sql_data1 != '' && $this->topic_data[$topic_id]['topic_type'] != POST_GLOBAL)\r\n\t\t\t\t{\r\n\t\t\t\t\t$sql = 'UPDATE ' . FORUMS_TABLE . '\r\n\t\t\t\t\t\tSET ' . $sql_data1;\r\n\t\t\t\t\t\t$sql = substr($sql, 0, -2);\r\n\t\t\t\t\t\t$sql .= ' WHERE forum_id = ' . $forum_id;\r\n\t\t\t\t\t$db->sql_query($sql);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t$this->delete_attachment_data();\r\n\r\n\t\t\t$sql = 'DELETE FROM ' . TERMMAP_TABLE . '\r\n\t\t\t\tWHERE topic_id = ' . (int) $topic_id;\r\n\t\t\t$db->sql_query($sql);\r\n\t\t\t\r\n\t\t\t$this->hard_delete_topics();\r\n\t\t}\r\n\t}", "public function destroy(Request $request)\n {\n \n if ($request->status=='publish') {\n if ($request->ids) {\n\n foreach ($request->ids as $id) {\n $post=Terms::find($id);\n $post->status=1;\n $post->save(); \n }\n \n }\n }\n elseif ($request->status=='trash') {\n if ($request->ids) {\n foreach ($request->ids as $id) {\n $post=Terms::find($id);\n $post->status=0;\n $post->save(); \n }\n \n }\n }\n elseif ($request->status=='delete') {\n if ($request->ids) {\n foreach ($request->ids as $id) {\n Terms::destroy($id);\n \n }\n }\n }\n return response()->json('Success');\n\n }", "public static function deleteAll($threadIDs, $deletePosts = true, $reason = '') {\n\t\tif (empty($threadIDs)) return;\n\t\t\n\t\t$trashIDs = '';\n\t\t$deleteIDs = '';\n\t\tif (THREAD_ENABLE_RECYCLE_BIN) {\n\t\t\t// recylce bin enabled\n\t\t\t// first of all we check which threads are already in recylce bin\n\t\t\t$sql = \"SELECT \tthreadID, isDeleted\n\t\t\t\tFROM \twbb\".WBB_N.\"_thread\n\t\t\t\tWHERE \tthreadID IN (\".$threadIDs.\")\";\n\t\t\t$result = WCF::getDB()->sendQuery($sql);\n\t\t\twhile ($row = WCF::getDB()->fetchArray($result)) {\n\t\t\t\tif ($row['isDeleted']) {\n\t\t\t\t\t// thread in recylce bin\n\t\t\t\t\t// delete completely\n\t\t\t\t\tif (!empty($deleteIDs)) $deleteIDs .= ',';\n\t\t\t\t\t$deleteIDs .= $row['threadID'];\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t// move thread to recylce bin\n\t\t\t\t\tif (!empty($trashIDs)) $trashIDs .= ',';\n\t\t\t\t\t$trashIDs .= $row['threadID'];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\t// no recylce bin\n\t\t\t// delete all threads completely\n\t\t\t$deleteIDs = $threadIDs;\n\t\t}\n\t\t\n\t\tself::trashAll($trashIDs, $deletePosts, $reason);\n\t\tself::deleteAllCompletely($deleteIDs, $deletePosts);\n\t}", "function wp_list_post_revisions($post = 0, $type = 'all')\n {\n }", "function wiki_delete_page($page_id)\n{\n if (php_function_allowed('set_time_limit')) {\n @set_time_limit(0);\n }\n\n // Get page details\n $pages = $GLOBALS['SITE_DB']->query_select('wiki_pages', array('*'), array('id' => $page_id), '', 1);\n if (!array_key_exists(0, $pages)) {\n warn_exit(do_lang_tempcode('MISSING_RESOURCE', 'wiki_page'));\n }\n $page = $pages[0];\n $_description = $page['description'];\n $_title = $page['title'];\n\n // Delete posts\n $start = 0;\n do {\n $posts = $GLOBALS['SITE_DB']->query_select('wiki_posts', array('id'), array('page_id' => $page_id), '', 500, $start);\n foreach ($posts as $post) {\n wiki_delete_post($post['id']);\n }\n //$start += 500; No, we just deleted, so offsets would have changed\n } while (array_key_exists(0, $posts));\n\n // Log revision\n $log_id = log_it('WIKI_DELETE_PAGE', strval($page_id), $_title);\n if (addon_installed('actionlog')) {\n require_code('revisions_engine_database');\n $revision_engine = new RevisionEngineDatabase();\n $revision_engine->add_revision(\n 'wiki_page',\n strval($page_id),\n strval($page_id),\n get_translated_text($_title),\n get_translated_text($_description),\n $page['submitter'],\n $page['add_date'],\n $log_id\n );\n }\n\n // Delete and update caching...\n\n delete_lang($_description);\n delete_lang($_title);\n $GLOBALS['SITE_DB']->query_delete('wiki_pages', array('id' => $page_id), '', 1);\n $GLOBALS['SITE_DB']->query_delete('wiki_children', array('parent_id' => $page_id));\n $GLOBALS['SITE_DB']->query_delete('wiki_children', array('child_id' => $page_id));\n\n if (addon_installed('catalogues')) {\n update_catalogue_content_ref('wiki_page', strval($page_id), '');\n }\n\n if ((addon_installed('commandr')) && (!running_script('install')) && (!get_mass_import_mode())) {\n require_code('resource_fs');\n expunge_resource_fs_moniker('wiki_page', strval($page_id));\n }\n\n require_code('sitemap_xml');\n notify_sitemap_node_delete('_SEARCH:wiki:browse:' . strval($page_id));\n}", "public function delete() {\n\t\t$query = new WP_Query( array(\n\t\t\t'name' => $this->params['post_name'],\n\t\t\t'post_type' => $this->params['post_type']\n\t\t) );\n\n\t\t$post = array_shift( $query->posts );\n\n\t\t// die('<pre>'.var_export($post,true).'</pre>');\n\n\t\tif ( $post ) {\n\t\t\t$current_action = $this->get_current_action();\n\t\t\t$this->action_results[ 'status' ] = 'success';\n\t\t\t$this->action_results[ 'messages' ][ $post->post_type ][ $post->ID ][ 'note' ] = __( 'The information has been deleted', 'kickpress' );\n\t\t\t$this->action_results[ 'data' ][ 'post_id' ] = $post->ID;\n\n\t\t\twp_trash_post( $post->ID );\n\t\t}\n\t}", "public function delete_child_posts( $post_id ) {\n\t\t$post = get_post( $post_id );\n\t\t$children = get_posts( array(\n\t\t\t'post_type' => $post->post_type,\n\t\t\t'post_parent' => $post->ID,\n\t\t) );\n\t\tforeach ( $children as $child ) {\n\t\t\twp_trash_post( $child->ID );\n\t\t\tclean_post_cache( $child );\n\t\t\t$this->clear_linked_cache( $child->ID );\n\t\t}\n\t}", "public static function getRevisions($options = [])\n {\n return static::instantiateRecords(static::getRevisionRecords($options));\n }", "function delete_ch8bt_bug() {\r\n\t// Check that user has proper security level\r\n\tif ( !current_user_can( 'manage_options' ) ) {\r\n\t\twp_die( 'Not allowed' );\r\n\t}\r\n\r\n\t// Check if nonce field is present\r\n\tcheck_admin_referer( 'ch8bt_deletion' );\r\n\r\n\t// If bugs are present, cycle through array and call SQL\r\n\t// command to delete entries one by one\r\n\tif ( !empty( $_POST['bugs'] ) ) {\r\n\t\t// Retrieve array of bugs IDs to be deleted\r\n\t\t$bugs_to_delete = $_POST['bugs'];\r\n\r\n\t\tglobal $wpdb;\r\n\r\n\t\tforeach ( $bugs_to_delete as $bug_to_delete ) {\r\n\t\t\t$query = 'DELETE from ' . $wpdb->get_blog_prefix() . 'ch8_bug_data ';\r\n\t\t\t$query .= 'WHERE bug_id = %d';\r\n\t\t\t$wpdb->query( $wpdb->prepare( $query, intval( $bug_to_delete ) ) );\r\n\t\t}\r\n\t}\r\n\r\n\t// Redirect the page to the admin form\r\n\twp_redirect( add_query_arg( 'page', 'ch8bt-bug-tracker', admin_url( 'options-general.php' ) ) );\r\n\texit;\r\n}", "function admin_blogsBuild($data,$db) {\n\t$data->output['delete']='';\n\tif(empty($data->action[3]) || !is_numeric($data->action[3])) {\n\t\t$data->output['abort']=true;\n\t\t$data->output['abortMessage']='<h2>'.$data->phrases['core']['invalidID'].'</h2>';\n\t} else {\n\t\tif(checkPermission('postDelete','blogs',$data)) {\n\n\t\t\tif(!checkPermission('accessOthers','blogs',$data))\n\t\t\t{\n\t\t\t\t$qHandle=$db->prepare('getBlogByIdAndOwner','admin_blogs');\n\t\t\t\t$qHandle->execute(array(\n\t\t\t\t\t':id' => $data->action[3],\n\t\t\t\t\t':owner' => $data->user['id']\n\t\t\t\t));\n\t\t\t} else {\n\t\t\t\t$qHandle=$db->prepare('getBlogByPost','admin_blogs');\n\t\t\t\t$qHandle->execute(array(\n\t\t\t\t\t':postId' => $data->action[3]\n\t\t\t\t));\n\t\t\t}\n\t\t\tif(($data->output['thisBlog']=$qHandle->fetch())==FALSE)\n\t\t\t{\n\t\t\t\t$data->output['abort']=true;\n\t\t\t\t$data->output['abortMessage']='<h2>'.$data->phrases['core']['invalidID'].'</h2>';\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\t\n\t\t\tif(isset($_POST['fromForm']) && $_POST['fromForm']==$data->action[3]) {\n\t\t\t\tif(!empty($_POST['delete'])) {\n\t\t\t\t\t$statement=$db->prepare('deleteBlogPostById','admin_blogs');\n\t\t\t\t\t$statement->execute(array(\n\t\t\t\t\t\t':id' => $data->action[3]\n\t\t\t\t\t));\n\t\t\t\t\t// now delete across other language tables\n\t\t\t\t\tcommon_deleteFromLanguageTables($data,$db,'blog_posts','id',$data->action[3]);\n\t\t\t\t\t\n\t\t\t\t\t$data->output['deleteCount']=$statement->rowCount();\n\t\t\t\t\tif($data->output['deleteCount']>0) {\n\t\t\t\t\t\t$data->output['delete']='deleted';\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$data->output['rejectError']=$data->phrases['core']['databaseErrorHeading'];\n\t\t\t\t\t\t$data->output['rejectText']=$data->phrases['core']['databaseErrorMessage'];\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t/* from form plus not deleted must==cancelled. */\n\t\t\t\t\t$data->output['delete']='cancelled';\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n $data->output['abort']=true;\n $data->output['abortMessage']='<h2>'.$data->phrases['core']['accessDeniedHeading'].'</h2>'.$data->phrases['core']['accessDeniedMessage'];\n\t\t}\n\t}\n}", "function wp_restore_post_revision($revision, $fields = \\null)\n {\n }", "public function deleteCommand($pid = null, $dryRun = false, $memoryLimit = null)\n\t{\n\t\tif (is_null($pid)) {\n\t\t\techo 'Please specify pid!' . \"\\n\";\n\t\t\texit;\n\t\t}\n\n\t\tif ($memoryLimit) {\n\t\t\tini_set('memory_limit', $memoryLimit);\n\t\t\techo 'Set memory_limit to: ' . ini_get('memory_limit') . \"\\n\";\n\t\t}\n\n\t\t// Get all page ids\n\t\t$queryGenerator = GeneralUtility::makeInstance(\\TYPO3\\CMS\\Core\\Database\\QueryGenerator::class);\n\t\t$list = $queryGenerator->getTreeList($pid, 99, 0, '1=1');\n\n\t\t$this->total = count(explode(',', $list));\n\t\t$this->count = 0;\n\n\t\tif ($dryRun) {\n\t\t\techo 'These are the pages that would be deleted:' . \"\\n\";\n\t\t\techo $list . \"\\n\";\n\t\t\techo 'That\\'s a total of ' . $this->total . ' pages!' . \"\\n\";\n\t\t\texit;\n\t\t}\n\n\t\t// Make CLI user an admin, so we're allowed to delete everything!\n\t\t$GLOBALS['BE_USER']->user['admin'] = 1;\n\t\t$GLOBALS['BE_USER']->setWorkspace(0);\n\n\t\t$this->dataProvider = GeneralUtility::makeInstance(\\TYPO3\\CMS\\Backend\\Tree\\Pagetree\\DataProvider::class);\n\n\t\t// Start deleting page(s)\n\t\t$this->deleteNodeRecursively($pid);\n\n\t\techo 'Deleted page ' . $pid . ' and all of the subpages and records on them!' . \"\\n\";\n\t}", "public function delete()\n {\n foreach ($this->versions as $version)\n {\n $version->delete();\n }\n\n parent::delete();\n }", "public function removeLastPostFromBlog() {}", "function _wp_upgrade_revisions_of_post($post, $revisions)\n {\n }", "function wp_restore_post_revision($post_id, $revision_id)\n {\n }", "protected function cleanHistory()\n\t{\n\t\t$this->taskHistoryRepository->deleteOlderThanDays($this->maxHistoryDays);\n\t\t$this->taskHistoryRepository->deleteOverCount($this->maxHistoryRecords);\n\t}", "public static function cleanup( $date = null )\n {\n // Set default time to a month ago\n if( $date == null ) $date = date( \"Y-m-d H:i:s\", strtotime( \"-1 month\" ) ); \n\n try\n {\n // Prepare the necessary query\n $delete = Database::prepare( self::$SQL_CLEAN );\n\n // Execute the query\n $delete->execute( array( $date ) );\n\n // Return rows deleted\n return $delete->rowCount();\n }\n catch( PDOException $e )\n {\n echo \"Error: \" . $e;\n return false;\n }\n }", "public function unset_future_post_option_on_delete( $post_id ) {\n\n\t\tglobal $blog_id, $nginx_purger;\n\n\t\tif (\n\t\t\t! $this->options['enable_purge'] ||\n\t\t\tempty( $this->options['future_posts'] ) ||\n\t\t\tempty( $this->options['future_posts'][ $blog_id ] ) ||\n\t\t\tisset( $this->options['future_posts'][ $blog_id ][ $post_id ] ) ||\n\t\t\twp_is_post_revision( $post_id )\n\t\t) {\n\t\t\treturn;\n\t\t}\n\n\t\t$nginx_purger->log( 'Unset future_posts option ( post id = ' . $post_id . ' and blog id = ' . $blog_id . ' )' );\n\n\t\tunset( $this->options['future_posts'][ $blog_id ][ $post_id ] );\n\n\t\tif ( ! count( $this->options['future_posts'][ $blog_id ] ) ) {\n\t\t\tunset( $this->options['future_posts'][ $blog_id ] );\n\t\t}\n\n\t\tupdate_site_option( 'rt_wp_nginx_helper_options', $this->options );\n\t}", "function wp_delete_post($postid = 0, $force_delete = \\false)\n {\n }", "public function execute($inputs = array(), $async = false, $store_results = true)\n {\n return new Google_Drive_Revisions_Delete_Execution($this->session, $this, $inputs, $async, $store_results);\n }", "function CleanUp () {\n global $zOLDAPPLE;\n\n $criteria = array (\"groupInformation_tID\" => $this->tID,\n \"Body\" => DELETED_GROUP_ENTRY);\n $this->groupContent->SelectByMultiple ($criteria);\n\n // Break out if no deleted posts left. \n if ($this->groupContent->CountResult() == 0) return (TRUE);\n\n while ($this->groupContent->FetchArray ()) {\n $CHILDREN = new cGROUPCONTENT ();\n $childcriteria = array (\"parent_tID\" => $this->groupContent->tID,\n \"groupInformation_tID\" => $this->tID,\n \"Context\" => $zOLDAPPLE->Context);\n $CHILDREN->SelectByMultiple ($childcriteria);\n\n // If no children, delete.\n if ($CHILDREN->CountResult () == 0) {\n $this->groupContent->Delete ();\n $this->CleanUp ();\n } // if\n unset ($CHILDREN);\n } // while\n }", "public function destroy($id)\n {\n $rev = Revision_Tecnica::findOrFail($id);\n $modelo = class_basename($rev);\n HasBitacora::Created($modelo,$rev->id_revision);\n $rev->delete();\n return redirect()->route('revisiones_tecnicas.index')->with('success','la revision tecnica se ha eliminado');\n }", "function soft_delete_posts()\r\n\t{\r\n\t\tglobal $auth, $config, $db, $phpbb_root_path, $phpEx, $user;\r\n\r\n\t\tif (sizeof($this->soft_delete['p']))\r\n\t\t{\r\n\t\t\t$sql_data = array(\r\n\t\t\t\t'post_deleted'\t\t\t=> $user->data['user_id'],\r\n\t\t\t\t'post_deleted_time'\t\t=> time(),\r\n\t\t\t);\r\n\t\t\t$sql = 'UPDATE ' . POSTS_TABLE . '\r\n\t\t\t\tSET ' . $db->sql_build_array('UPDATE', $sql_data) . '\r\n\t\t\t\t\tWHERE ' . $db->sql_in_set('post_id', $this->soft_delete['p']);\r\n\t\t\t$db->sql_query($sql);\r\n\r\n\t\t\t// Update the search index to remove any posts we have soft deleted\r\n\t\t\t$this->update_search_index($this->soft_delete['p'], true);\r\n\r\n\t\t\tforeach ($this->soft_delete['p'] as $id)\r\n\t\t\t{\r\n\t\t\t\t$topic_id = intval($this->post_data[$id]['topic_id']);\r\n\t\t\t\t$forum_id = intval($this->post_data[$id]['forum_id']);\r\n\r\n\t\t\t\t// Update the first/last topic info if we must\r\n\t\t\t\tif (($this->topic_data[$topic_id]['topic_first_post_id'] == $id && $this->topic_data[$topic_id]['topic_last_post_id'] == $id) || ($this->topic_data[$topic_id]['topic_deleted_reply_count'] == ($this->topic_data[$topic_id]['topic_replies_real'])))\r\n\t\t\t\t{\r\n\t\t\t\t\t// Since we are deleting the only post left we shall soft delete the topic\r\n\t\t\t\t\t$this->soft_delete['t'][] = $topic_id;\r\n\r\n\t\t\t\t\tif ($this->topic_data[$topic_id]['topic_poster'] != $user->data['user_id'])\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tadd_log('mod', $forum_id, $topic_id, 'LOG_SOFT_DELETE_TOPIC', $this->topic_data[$topic_id]['topic_title']);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\t// Update the first or last post if we have to.\r\n\t\t\t\t\tif ($this->topic_data[$topic_id]['topic_first_post_id'] == $id)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$this->update_first_post_topic($topic_id);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if ($this->topic_data[$topic_id]['topic_last_post_id'] == $id)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$this->update_last_post_topic($topic_id);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif ($this->post_data[$id]['poster_id'] != $user->data['user_id'])\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tadd_log('mod', $forum_id, $topic_id, 'LOG_SOFT_DELETE_POST', $this->post_data[$id]['post_subject']);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// Fix post reported\r\n\t\t\t\tif ($this->post_data[$id]['post_reported'])\r\n\t\t\t\t{\r\n\t\t\t\t\t$sql = 'UPDATE ' . POSTS_TABLE . '\r\n\t\t\t\t\t\tSET post_reported = 0\r\n\t\t\t\t\t\t\tWHERE post_id = ' . $id;\r\n\t\t\t\t\t$db->sql_query($sql);\r\n\r\n\t\t\t\t\t$this->post_data[$id]['post_reported'] = 0;\r\n\r\n\t\t\t\t\t$some_reported = false;\r\n\t\t\t\t\t$sql = 'SELECT post_reported FROM ' . POSTS_TABLE . '\r\n\t\t\t\t\t\tWHERE topic_id = ' . $topic_id;\r\n\t\t\t\t\t$result = $db->sql_query($sql);\r\n\t\t\t\t\twhile ($row = $db->sql_fetchrow($result))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif ($row['post_reported'])\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t$some_reported = true;\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t$db->sql_freeresult($result);\r\n\r\n\t\t\t\t\t// If none of the posts in this topic are reported anymore, reset it for the topic\r\n\t\t\t\t\tif (!$some_reported)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$sql = 'UPDATE ' . TOPICS_TABLE . '\r\n\t\t\t\t\t\t\tSET topic_reported = 0\r\n\t\t\t\t\t\t\t\tWHERE topic_id = ' . $topic_id;\r\n\t\t\t\t\t\t$db->sql_query($sql);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// Update the deleted reply count for the topic\r\n\t\t\t\t$sql = 'UPDATE ' . TOPICS_TABLE . '\r\n\t\t\t\t\tSET topic_deleted_reply_count = topic_deleted_reply_count + 1\r\n\t\t\t\t\t\tWHERE topic_id = ' . $topic_id;\r\n\t\t\t\t$db->sql_query($sql);\r\n\t\t\t\t$this->topic_data[$topic_id]['topic_deleted_reply_count']++;\r\n\r\n\t\t\t\t// Update the deleted reply count for the shadow topics\r\n\t\t\t\tif (array_key_exists($topic_id, $this->shadow_topic_ids))\r\n\t\t\t\t{\r\n\t\t\t\t\t$sql = 'UPDATE ' . TOPICS_TABLE . '\r\n\t\t\t\t\t\tSET topic_deleted_reply_count = topic_deleted_reply_count + 1\r\n\t\t\t\t\t\t\tWHERE topic_id = ' . intval($this->shadow_topic_ids[$topic_id]);\r\n\t\t\t\t\t$db->sql_query($sql);\r\n\t\t\t\t\t$this->topic_data[$this->shadow_topic_ids[$topic_id]]['topic_deleted_reply_count']++;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// If the topic is a global announcement, do not attempt to do any updates to forums\r\n\t\t\t\tif ($this->topic_data[$topic_id]['topic_type'] != POST_GLOBAL)\r\n\t\t\t\t{\r\n\t\t\t\t\t// Update the deleted reply count for the forum\r\n\t\t\t\t\t$sql = 'UPDATE ' . FORUMS_TABLE . '\r\n\t\t\t\t\t\tSET forum_deleted_reply_count = forum_deleted_reply_count + 1\r\n\t\t\t\t\t\t\tWHERE forum_id = ' . $forum_id;\r\n\t\t\t\t\t$db->sql_query($sql);\r\n\t\t\t\t\t$this->forum_data[$forum_id]['forum_deleted_reply_count']++;\r\n\r\n\t\t\t\t\t// Update the last post info for the forum if we must\r\n\t\t\t\t\tif ($this->forum_data[$forum_id]['forum_last_post_id'] == $id)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$this->update_last_post_forum($forum_id);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (array_key_exists($topic_id, $this->shadow_topic_ids))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif ($this->forum_data[$this->topic_data[$this->shadow_topic_ids[$topic_id]]['forum_id']]['forum_last_post_id'] == $id)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t$this->update_last_post_forum($this->topic_data[$this->shadow_topic_ids[$topic_id]]['forum_id']);\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\r\n\t\t\t// Soft delete the topics\r\n\t\t\t$this->soft_delete_topics();\r\n\t\t}\r\n\t}", "public function deleteContentAndCopyDraftPage() {}", "public function delete_post($id)\n\t{\n\t\t$data = array(\n\t\t\t\t\t\t'deleted_at' \t => date(\"Y-m-d H:i:s\"),\n\t\t\t\t\t\t'status' \t => 0,\n\t\t\t\t\t\t'allow_comments' => 0,\n\t\t\t\t\t );\n\n\t\t$result = $this->common_model->UpdateDB('blog_post',array('id' => $id),$data);\n\n\t\tif ($result) \n\t\t{\n\t\t\tset_flashdata('success','Post Trashed Successfully');\n\t\t\tredirect('blog/posts/manage_posts','refresh');\n\t\t} \n\t}", "public function deleteAll( $args = array() )\n\t{\n\t\t$terms = $this->retrieveAll( array( 'fields' => 'ids' ) );\n\n\t\tif( false !== $terms ) {\n\t\t\tforeach ( $terms as $termId ) {\n\t\t\t\twp_delete_term( $termId, $this->taxomomyStr, $args );\n\t\t\t}\n\t\t}\t\n\t}", "public function skyword_delete_post( $args = '' ) {\n\t\tglobal $wp_xmlrpc_server;\n\t\t$wp_xmlrpc_server->escape( $args );\n\t\t$response = $wp_xmlrpc_server->wp_deletePost ($args);\n\t\treturn $response;\n\t}", "function remove_entries ($pinged = null) {\n\tglobal $wpdb;\n\n\t$catid = get_category_id();\n\n\t//just posts in category \"webonary\"\n\t$sql = \"DELETE FROM \" . $wpdb->prefix . \"posts \" .\n\t\" WHERE post_type IN ('post', 'revision') AND \" .\n\t\" ID IN (SELECT object_id FROM \" . $wpdb->prefix . \"term_relationships WHERE \" . $wpdb->prefix . \"term_relationships.term_taxonomy_id = \" . $catid .\")\";\n\tif(isset($pinged))\n\t{\n\t\t$sql .= \" AND pinged = '\" . $pinged . \"'\";\n\t}\n\n\t$wpdb->query( $sql );\n\n\t$sql = \"DELETE FROM \" . $wpdb->prefix . \"term_relationships WHERE term_taxonomy_id = \" . $catid;\n\tif(isset($pinged))\n\t{\n\t\t$sql .= \" AND object_id NOT IN (SELECT ID FROM $wpdb->posts WHERE post_type = 'post')\";\n\t}\n\t\n\t$return_value = $wpdb->get_var( $sql );\n}", "public function deleted_post($post_id)\n {\n }", "public function delete()\n {\n $post['id'] = $this->request->getParameter('id'); // récupérer le paramètre de l'ID\n $this->post->deletePost($post['id']);\n $this->redirect(\"admin\", \"chapters\"); // une fois le post supprimé, je redirige vers la vue chapters\n }", "function wprss_old_truncate_posts() {\n global $wpdb;\n $general_settings = get_option( 'wprss_settings_general' );\n\n if ( $general_settings['limit_feed_items_db'] == 0 ) {\n return;\n }\n\n // Set your threshold of max posts and post_type name\n $threshold = $general_settings['limit_feed_items_db'];\n $post_types = apply_filters( 'wprss_truncation_post_types', array( 'wprss_feed_item' ) );\n $post_types_str = array_map( 'wprss_return_as_string', $post_types );\n\n $post_type_list = implode( ',' , $post_types_str );\n\n // Query post type\n // $wpdb query allows me to select specific columns instead of grabbing the entire post object.\n $query = \"\n SELECT ID, post_title FROM $wpdb->posts\n WHERE post_type IN ($post_type_list)\n AND post_status = 'publish'\n ORDER BY post_modified DESC\n \";\n\n $results = $wpdb->get_results( $query );\n\n // Check if there are any results\n $i = 0;\n if ( count( $results ) ){\n foreach ( $results as $post ) {\n $i++;\n\n // Skip any posts within our threshold\n if ( $i <= $threshold )\n continue;\n\n // Let the WordPress API do the heavy lifting for cleaning up entire post trails\n $purge = wp_delete_post( $post->ID, true );\n }\n }\n }", "function del ( $arguments = \"\" ) {\n $arguments = func_get_args ();\n $rc = new ReflectionClass('tdel');\n return $rc->newInstanceArgs ( $arguments );\n}", "public function deletePost($data) {\n\t\t\t\n\t\t\t// Set the initial status value\n\t\t\t$rvalue = Engine::DATABASE_ERROR_COULD_NOT_ACCESS_DATABASE;\n\t\t\t\n\t\t\t// Check to see if the type of post matches the supported features of the module\n\t\t\tif (isset($data['type']) && $data['type'] == $this->MODULE_FEATURE) {\n\n\t\t\t\t// Attempt to delete the selected post from the database\n\t\t\t\t$result = $this->database_module->queryDatabase(\"DELETE FROM scms_comments WHERE post = \".$data['id'].\";\");\n\t\t\t\t$result = $this->database_module->queryDatabase(\"DELETE FROM scms_posts WHERE id = \".$data['id'].\";\");\n\t\t\t\t\n\t\t\t\t// Check on the success of the delete\n\t\t\t\tif (count($result) > 0) {\n\t\t\t\t\t$rvalue = Engine::DATABASE_ERROR_NO_ERROR;\n\t\t\t\t} else {\n\t\t\t\t\t$rvalue = Engine::DATABASE_ERROR_NO_QUERY_RESULTS;\n\t\t\t\t}\n\t\t\t}\t\n\n\t\t\t// Return the value\n\t\t\treturn $rvalue;\n\t\t}", "public function actionDelete($q = 1)\n {\n if ($q != 1 AND $q != 2 AND $q != 3 AND $q != 5 AND $q != 15 AND $q != 30) {\n echo 'error';\n }\n $time = new \\DateTime('now');\n date_sub($time, date_interval_create_from_date_string($q . ' days'));\n $today = $time->format('Y-m-d');\n echo $today;\n $comments = Comments::deleteAll(['<', 'data', $today]);\n echo \"Was removed \" . $comments . \" records\";\n }", "public function unpublish_content() {\n\t\tglobal $_wp_post_type_features;\n\n\t\t$post_types = array();\n\t\tforeach ( $_wp_post_type_features as $post_type => $features ) {\n\t\t\tif ( ! empty( $features[ self::$supports_key ] ) ) {\n\t\t\t\t$post_types[] = $post_type;\n\t\t\t}\n\t\t}\n\n\t\t$args = array(\n\t\t\t'fields' => 'ids',\n\t\t\t'post_type' => $post_types,\n\t\t\t'post_status' => 'any',\n\t\t\t'posts_per_page' => 40,\n\t\t\t'meta_query' => array(\n\t\t\t\tarray(\n\t\t\t\t\t'meta_key' => self::$post_meta_key,\n\t\t\t\t\t'meta_value' => current_time( 'timestamp' ),\n\t\t\t\t\t'compare' => '<',\n\t\t\t\t\t'type' => 'NUMERIC',\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t'meta_key' => self::$post_meta_key,\n\t\t\t\t\t'meta_value' => current_time( 'timestamp' ),\n\t\t\t\t\t'compare' => 'EXISTS',\n\t\t\t\t),\n\t\t\t),\n\t\t);\n\t\t$query = new WP_Query( $args );\n\n\t\tif ( $query->have_posts() ) {\n\t\t\tforeach ( $query->posts as $post_id ) {\n\t\t\t\twp_trash_post( $post_id );\n\t\t\t}\n\t\t} else {\n\t\t\t// There are no posts scheduled to unpublish, we can safely remove the old cron.\n\t\t\twp_clear_scheduled_hook( self::$deprecated_cron_key );\n\t\t}\n\t}", "public function deleteStaleOrders($dry_run = false)\n {\n Propel::setForceMasterConnection(true);\n $orders = OrdersQuery::create()\n ->filterByBillingMethod(['dibs', 'pensio'], Criteria::NOT_IN)\n ->_or()\n ->filterByBillingMethod(null, Criteria::ISNULL)\n ->filterByState(0, Criteria::LESS_THAN)\n ->filterByState(Orders::STATE_ERROR_PAYMENT, Criteria::GREATER_THAN)\n ->filterByUpdatedAt(date('Y-m-d H:i:s', strtotime('2 hours ago')), Criteria::LESS_THAN)\n ->filterByCreatedAt(date('Y-m-d H:i:s', strtotime('6 month ago')), Criteria::GREATER_THAN)\n ->filterByInEdit(false)\n ->find()\n ;\n\n $count = 0;\n /** @var \\Hanzo\\Model\\Orders $order */\n foreach ($orders as $order) {\n $attributes = $order->getAttributes();\n\n // only delete orders which has no payment info attached\n if (empty($attributes->payment) || empty($attributes->payment->transact)) {\n $count++;\n if ($dry_run) {\n error_log('['.date('Y-m-d H:i:s').'] Order: #'.$order->getId().' will be deleted, state is: '.$order->getState());\n continue;\n }\n\n $order->setIgnoreDeleteConstraints(true);\n $order->setDBConnection(Propel::getConnection());\n $this->ordersService->deleteOrder($order);\n }\n }\n\n return $count;\n\n Propel::setForceMasterConnection(false);\n }", "function rest_delete()\n{\n global $build;\n add_log('Build #' . $build->Id . ' removed manually', 'buildAPI');\n remove_build($build->Id);\n}", "public function desbanearDeLasRevisiones() {\n\t\tglobal $wpdb;\n\t\treturn $wpdb->query($wpdb->prepare('\n\t\t\t\tUPDATE wp_revisiones_ban\n\t\t\t\tSET status = %d\n\t\t\t\tWHERE user_id = %d', self::DESBANEADO, $this->user_id));\n\t}", "function rssmi_delete_feed_post_admin()\n{\n rssmi_delete_posts_admin();\n}", "public static function get_builder_revisions( $type, $id ) {\n\t\tglobal $wpdb;\n\t\t$sql = \"SELECT id, date FROM {$wpdb->base_prefix}pp_revisions WHERE type = '$type' AND parent_id = '$id' ORDER BY date DESC LIMIT 5\";\n\n\t\treturn $wpdb->get_results( $sql, 'ARRAY_A' );\n\t}", "public function delete_all_posts_of_type($post_type) {\n $allposts= get_posts([\n 'post_type' => $post_type,\n 'numberposts'=> -1,\n ]);\n\n foreach($allposts as $eachpost) {\n wp_delete_post( $eachpost->ID, true );\n }\n }", "public function deletePosts( $params ){\r\n $this->validateReadLists( $params[\"id\"] );\r\n\r\n $sql = \"\r\n DELETE FROM \r\n \" . $this->table . \"\r\n WHERE\r\n \" . $this->table . \".id = \" . $params[\"id\"] . \"\r\n \";\r\n \r\n $result = $this->db->query( $sql );\r\n\r\n if (!$result) {\r\n throw new Exception(\"Unable to delete new post!\");\r\n }\r\n\r\n return $result;\r\n }", "public function deletePostTree($a_node)\n\t{\n\t\tglobal $ilDB;\n\t\t\n\t\t// GET LEFT AND RIGHT VALUES\n\t\t$res = $ilDB->queryf('\n\t\t\tSELECT * FROM frm_posts_tree\n\t\t\tWHERE thr_fk = %s \n\t\t\tAND pos_fk = %s\n\t\t\tAND parent_pos = %s',\n\t\t\tarray('integer', 'integer', 'integer'), \n\t\t\tarray($a_node['tree'], $a_node['pos_pk'], $a_node['parent']));\n\t\t\n\t\twhile($row = $res->fetchRow(DB_FETCHMODE_OBJECT))\n\t\t{\n\t\t\t$a_node[\"lft\"] = $row->lft;\n\t\t\t$a_node[\"rgt\"] = $row->rgt;\n\t\t}\n\n\t\t$diff = $a_node[\"rgt\"] - $a_node[\"lft\"] + 1;\t\t\n\t\t\n\t\t// get data of posts\n\t\t$result = $ilDB->queryf('\n\t\t\tSELECT * FROM frm_posts_tree \n\t\t\tWHERE lft BETWEEN %s AND %s\n\t\t\tAND thr_fk = %s',\n\t\t\tarray('integer', 'integer', 'integer'),\n\t\t\tarray($a_node['lft'], $a_node['rgt'], $a_node['tree']));\n\t\t\n\t\t$del_id = array();\n\t\t\n\t\twhile ($treeData = $result->fetchRow(DB_FETCHMODE_ASSOC))\n\t\t{\n\t\t\t$del_id[] = $treeData[\"pos_fk\"];\n\t\t}\n\t\t\n\t\t// delete subtree\n\t\t$statement = $ilDB->manipulateF('\n\t\t\tDELETE FROM frm_posts_tree\n\t\t\tWHERE lft BETWEEN %s AND %s\n\t\t\tAND thr_fk = %s',\n\t\t\tarray('integer', 'integer', 'integer'),\n\t\t\tarray($a_node['lft'], $a_node['rgt'], $a_node['tree']));\n\n\t\t\n\t\t// close gaps\n\t\t$statement = $ilDB->manipulateF('\n\t\t\tUPDATE frm_posts_tree \n\t\t\tSET lft = CASE \n\t\t\t\t\t\tWHEN lft > %s\n\t\t\t\t\t\tTHEN lft - %s\n\t\t\t\t\t\tELSE lft \n\t\t\t\t\t\tEND, \n\t\t\t\trgt = CASE \n\t\t\t\t\t\tWHEN rgt > %s\n\t\t\t\t\t\tTHEN rgt - %s\n\t\t\t\t\t\tELSE rgt \n\t\t\t\t\t\tEND \n\t\t\tWHERE thr_fk = %s',\n\t\t\tarray('integer', 'integer', 'integer', 'integer', 'integer'),\n\t\t\tarray($a_node['lft'], $diff, $a_node['lft'], $diff, $a_node['tree']));\n\t\t\n\t\treturn $del_id;\n\n\t}", "public static function action_clean_post_cache( $post_id ) {\n\t\t$type = get_post_type( $post_id );\n\t\t// Ignore revisions, which aren't ever displayed on the site.\n\t\tif ( $type && 'revision' === $type ) {\n\t\t\treturn;\n\t\t}\n\t\tpantheon_wp_clear_edge_keys( array( 'post-' . $post_id, 'rest-post-' . $post_id ) );\n\t}", "function delete_all()\n {\n $this->Admin_model->package = 'POSTS_PKG';\n $this->Admin_model->procedure = 'POST_DELETE';\n\n\n /*if ($_SERVER['REQUEST_METHOD'] == 'POST') {*/\n for ($i = 0; $i < count($this->p_delete); $i++) {\n $this->Admin_model->package = 'POSTS_PKG';\n $this->Admin_model->delete($this->p_delete[$i]);\n //Modules::run('admin/Post_Categories/delete', $this->p_delete[$i]);\n }\n\n /* } else {\n redirect('admin/Posts/display_cat');\n }\n redirect('admin/Posts/display_cat');*/\n }", "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 deleteById($postsId);", "public function delete()\n\t{\n\t\t// Delete the comments\n\t\t$this->comments()->delete();\n\n\t\t// Delete the blog post\n\t\treturn parent::delete();\n\t}", "public function delete()\n\t{\n\t\t// Delete the comments\n\t\t$this->comments()->delete();\n\n\t\t// Delete the blog post\n\t\treturn parent::delete();\n\t}", "public static function deletePost($post_id,$forever = false)\n\t{\n\t\tglobal $wpdb;\n\n\t\tif(self::postWithIdExists($post_id)){\n\t\t\tif($forever){\n\t\t\t\t// Delete the post forever\n\t\t\t\t$wpdb->delete(\n\t\t\t\t\t$wpdb->posts,\n\t\t\t\t\tarray('ID' => $post_id)\n\t\t\t\t);\n\t\t\t}\n\t\t\telse{\n\t\t\t\t// Moving post to draft\n\t\t\t\t$result = $wpdb->update(\n\t\t\t\t\t$wpdb->posts,\n\t\t\t\t\tarray('post_status' => 'trash'),\n\t\t\t\t\tarray('ID' => $post_id)\n\t\t\t\t);\n\n\t\t\t\tif($result === false){\n\t\t\t\t\tthrow new \\Exception(\"Error has occured during the moving to draft.\");\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t\telse{\n\t\t\t// There is no post with the given ID\n\t\t\tthrow new \\Exception(\"Post with the given ID is not exists.\");\n\t\t}\n\t}", "public function trashed_posts()\n\t{\n\t\t$data['posts'] = $this->common_model->getAllData('blog_post','*','',array('deleted_at !=' => 'Null'));\n\n\t\t$data['page'] = \"blog/trashed_posts\";\n \t$this->template->template_view($data);\t\n\t}", "public function onCut($objDc)\n\t{\n\t\t$objModel = DraftableModel::findByPK($this->strTable, Input::get('id'), array('uncached'=>true));\n\t\t$objModel->setVersioning(false);\n\t\t\n\t\t$objRelated = DraftableModel::findOneByDraftRelated($this->strTable, Input::get('id'), array('uncached'=>true));\n\t\t$objRelated->setVersioning(false);\n\t\t\t\t\n\t\t// no related exists, nothing to do\n\t\tif($objRelated === null)\n\t\t{\t\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t// NOTE: isDraft is not up to date here, because it checks draftState which is not yet updated\n\t\t\n\t\t// model, which was a draft, was moved into live mode, remove relation\n\t\t// model, which was a live version, was moved into draft mode, remove relation\n\t\tif((!$this->blnDraftMode && $objModel->isDraft() && !$objRelated->isDraft()) || ($this->blnDraftMode && !$objModel->isDraft() && $objRelated->isDraft()))\n\t\t{\n\t\t\tif($this->blnDraftMode)\n\t\t\t{\n\t\t\t\t$objModel->setState('draft');\n\t\t\t\t$objRelated->setState('draft');\n\t\t\t}\n\t\t\telse \n\t\t\t{\n\t\t\t\t$objModel->draftState = 0;\n\t\t\t\t$objModel->draftState = 0;\n\t\t\t}\n\t\t\t\n\t\t\t$objRelated->draftRelated = 0;\n\t\t\t$objModel->save();\n\t\t\t\t\n\t\t\t$objModel->draftRelated = 0;\n\t\t\t$objModel->save();\n\t\t}\n\t\t\n\t\t// model has not moved to new parent, update sortings\n\t\telseif(!$this->blnDraftMode && $objRelated->isDraft() && $objModel->pid == $objRelated->pid)\n\t\t{\t\t\t\n\t\t\t$strQuery \t= 'SELECT t.id, t.draftState, j.sorting FROM ' . $this->strTable . ' t'\n\t\t\t\t\t\t. ' LEFT JOIN ' . $this->strTable . ' j ON j.id = t.draftRelated'\n\t\t\t\t\t\t. ' WHERE t.pid=? AND t.draftState > 0 AND t.sorting != j.sorting';\n\t\t\t\t\t\t\t\n\t\t\t$objResult = $this->Database->prepare($strQuery)->execute($objModel->pid);\n\t\n\t\t\tif($objResult->numRows < 1)\n\t\t\t{\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\twhile($objResult->next()) \n\t\t\t{\n\t\t\t\t// sorting will be updated because live sorting is used by select\n\t\t\t\t$objNew = new DraftableModel($objResult, true, $this->strTable);\n\t\t\t\t$objNew->tstamp = time();\n\t\t\t\t$objNew->save();\n\t\t\t}\n\t\t}\n\t\t\t\n\t\t// element was moved into live, move draft to new place as well\n\t\telseif(!$this->blnDraftMode && $objModel->pid != $objRelated->pid)\n\t\t{\n\t\t\t// model was a draft, delete old draft or\t\n\t\t\t// delete it because we do not know if new ptable is also draftable, will not happen until #5234 is fixed \n\t\t\tif($objModel->isDraft() || $objRelated->ptable != $GLOBALS['TL_DCA'][$this->strTable]['config']['ptable'])\n\t\t\t{\n\t\t\t\t$objModel->draftRelated = 0;\n\t\t\t\t$objModel->draftState = 0;\n\t\t\t\t$objModel->save();\n\t\t\t\t\n\t\t\t\t$objRelated->delete();\n\t\t\t}\n\t\t\t\n\t\t\t// it is in the same ptable, so move draft as well\n\t\t\telse\n\t\t\t{\n\t\t\t\t$objRelated->pid = $objModel->pid;\n\t\t\t\t$objRelated->ptable = $objModel->ptable;\n\t\t\t\t$objRelated->setState('draft');\n\t\t\t\t$objRelated->sorting = $objModel->sorting;\n\t\t\t\t$objRelated->save();\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\t// draft was moved to new parent, label original as to delete\n\t\telseif($this->blnDraftMode && $objModel->pid != $objRelated->pid)\n\t\t{\n\t\t\t// model was a live element, now it's a draft, delete related draft\n\t\t\tif(!$objModel->isDraft())\n\t\t\t{\n\t\t\t\t$objModel->setState('draft');\n\t\t\t\t$objModel->draftRelated = 0;\n\t\t\t\t$objModel->save();\n\t\t\t\t\n\t\t\t\t$objRelated->delete();\n\t\t\t}\n\t\t\t\n\t\t\t// model was a draft, create new related for objRelated and label as delete\n\t\t\telse\n\t\t\t{\n\t\t\t\t$objModel->draftRelated = 0;\n\t\t\t\t$objModel->save();\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t$objNew = clone $objModel;\n\t\t\t\t$objNew->pid = $objRelated->pid;\n\t\t\t\t$objNew->ptable = $objRelated->ptable;\n\t\t\t\t$objNew->draftRelated = $objRelated->id;\n\t\t\t\t$objNew->sorting = $objRelated->sorting;\t\n\t\t\t\t$objNew->setState('delete');\n\t\t\t\t$objNew->setState('draft');\n\t\t\t\t$objNew->setVersioning(true);\n\t\t\t\t$objNew->save(true);\n\t\t\t\t\t\n\t\t\t\t$objRelated->draftRelated = $objNew->id;\n\t\t\t\t$objRelated->setVersioning(false);\n\t\t\t\t$objRelated->save();\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t}", "public function purge(): bool\n {\n // Get limit (in months) from option\n $limit = $this->plugin()->option('deleteAfter', false);\n\n if ($limit !== false) {\n // Get cutoff date by subtracting limit from today\n $time = strtotime('-' . $limit . ' month');\n $cutoff = date('Y-m-d 00:00:00', $time);\n\n /** @var \\Kirby\\Database\\Query $table */\n $table = $this->table()->bindings(['cutoff' => $cutoff]);\n\n return $table->delete('strftime(\"%s\", date) < strftime(\"%s\", :cutoff)');\n }\n\n return true;\n }" ]
[ "0.6599362", "0.65212613", "0.6222286", "0.6169399", "0.61172783", "0.60924274", "0.60416883", "0.5992328", "0.58222145", "0.5733337", "0.55849504", "0.5481437", "0.5458273", "0.5418884", "0.5399394", "0.53792614", "0.52681464", "0.52681464", "0.52084756", "0.517311", "0.5129085", "0.511533", "0.50102663", "0.49359712", "0.48843914", "0.4867339", "0.4860537", "0.48538443", "0.48497397", "0.48392224", "0.48312008", "0.4813008", "0.47940606", "0.4781229", "0.4768575", "0.47484744", "0.4744427", "0.47440773", "0.47056344", "0.46883732", "0.4674505", "0.46561137", "0.46333486", "0.4632013", "0.4599969", "0.4597872", "0.45959657", "0.4586986", "0.45598772", "0.45494646", "0.4539473", "0.45367694", "0.45333165", "0.4532419", "0.45306972", "0.45261785", "0.45238093", "0.4513635", "0.45133334", "0.4489176", "0.4484426", "0.4470795", "0.446913", "0.4463467", "0.44519132", "0.44505665", "0.4448951", "0.4448903", "0.44447577", "0.4441452", "0.4435999", "0.4423922", "0.44140148", "0.4400297", "0.4399675", "0.4390336", "0.43895185", "0.43812603", "0.43731704", "0.43728292", "0.4370833", "0.4365981", "0.43656138", "0.4364469", "0.43584266", "0.43554068", "0.43499956", "0.4347378", "0.4345007", "0.43445742", "0.43414032", "0.43343297", "0.43322915", "0.4320206", "0.4320197", "0.4320197", "0.43132892", "0.43118528", "0.4303457", "0.42998293" ]
0.564778
10
Generate revisions OPTIONS [] : Number of revisions to generate per post. Default 15 [post_type=] : Generate revisions for given post type(s). Default any [post_id=] : Generate revisions for given post. EXAMPLES wp revisions generate 10 wp revisions generate post_id=2 wp revisions generate 2 post_type=post,page
public function generate( $args = array(), $assoc_args = array() ) { global $wpdb; if ( ! empty( $assoc_args['post_id'] ) ) { $posts = array( $assoc_args['post_id'] ); } else { if ( empty( $assoc_args['post_type'] ) ) { $post_types = $this->supports_revisions(); } else { $post_types = explode( ',', $assoc_args['post_type'] ); } $where = ''; foreach ( $post_types as $post_type ) { $where .= $wpdb->prepare( ' OR post_type = %s', $post_type ); } // get all IDs for posts in given post type(s). $posts = $wpdb->get_col( "SELECT ID FROM $wpdb->posts WHERE 1=2 {$where}" ); // phpcs:ignore WordPress.VIP.DirectDatabaseQuery.DirectQuery,WordPress.VIP.DirectDatabaseQuery.NoCaching,WordPress.DB.PreparedSQL.NotPrepared -- $where is prepared above } $total = count( $posts ); $notify = \WP_CLI\Utils\make_progress_bar( sprintf( 'Generating revisions for %d post(s)', $total ), $total ); $count = isset( $args[0] ) ? intval( $args[0] ) : 15; foreach ( $posts as $post_id ) { $notify->tick(); $p = get_post( $post_id ); $content = $p->post_content; for ( $i = 0; $i < $count; $i++ ) { if ( '&nbsp;' === substr( $content, -6 ) ) { $content = substr( $content, 0, -6 ); } else { $content .= '&nbsp;'; } wp_update_post( array( 'ID' => $post_id, 'post_content' => $content, ) ); } } $notify->finish(); WP_CLI::success( 'Finished generating revisions.' ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function generate( $args = array(), $assoc_args = array() ) {\n\n\t\tglobal $wpdb;\n\n\t\tif ( ! empty( $assoc_args['post_id'] ) ) {\n\n\t\t\t$posts = array( $assoc_args['post_id'] );\n\t\t\t$posts = array_filter( $posts, 'get_post' );\n\n\t\t} else {\n\n\t\t\tif ( empty( $assoc_args['post_type'] ) ) {\n\t\t\t\t$post_types = $this->supports_revisions();\n\t\t\t} else {\n\t\t\t\t$post_types = explode( ',', $assoc_args['post_type'] );\n\t\t\t}\n\n\t\t\t$where = '';\n\t\t\tforeach ( $post_types as $post_type ) {\n\t\t\t\t$where .= $wpdb->prepare( ' OR post_type = %s', $post_type );\n\t\t\t}\n\n\t\t\t// get all IDs for posts in given post type(s).\n\t\t\t$posts = $wpdb->get_col( \"SELECT ID FROM $wpdb->posts WHERE 1=2 {$where}\" );\n\n\t\t}\n\n\t\t$total = count( $posts );\n\n\t\t$notify = \\WP_CLI\\Utils\\make_progress_bar( sprintf( 'Generating revisions for %d post(s)', $total ), $total );\n\n\t\t$count = isset( $args[0] ) ? intval( $args[0] ) : 15;\n\n\t\t$this->start_bulk_operation();\n\n\t\tremove_all_filters( 'wp_revisions_to_keep' );\n\t\tadd_filter( 'wp_save_post_revision_check_for_changes', '__return_false' );\n\t\t$inc = 0;\n\t\tforeach ( $posts as $post_id ) {\n\t\t\t$notify->tick();\n\n\t\t\tfor ( $i = 0; $i < $count; $i++ ) {\n\n\t\t\t\twp_save_post_revision( $post_id );\n\t\t\t}\n\t\t\t$inc++;\n\t\t\tif ( $inc % 10 === 0 ) {\n\t\t\t\t$this->stop_the_insanity();\n\t\t\t}\n\t\t}\n\n\t\t$this->end_bulk_operation();\n\n\t\t$notify->finish();\n\t\tWP_CLI::success( 'Finished generating revisions.' );\n\n\t}", "function wp_list_post_revisions($post = 0, $type = 'all')\n {\n }", "public function limit_post_revisions() {\n\t}", "function wp_get_post_revisions($post = 0, $args = \\null)\n {\n }", "function generate_revision($post) {\n $revision = BlogRevision::_generateWith($post);\n return $revision;\n}", "public static function get_builder_revisions( $type, $id ) {\n\t\tglobal $wpdb;\n\t\t$sql = \"SELECT id, date FROM {$wpdb->base_prefix}pp_revisions WHERE type = '$type' AND parent_id = '$id' ORDER BY date DESC LIMIT 5\";\n\n\t\treturn $wpdb->get_results( $sql, 'ARRAY_A' );\n\t}", "public function massDeleteRevisionsAction()\n {\n $ids = $this->getRequest()->getParam('revision');\n if (!is_array($ids)) {\n $this->_getSession()->addError($this->__('Please select revision(s).'));\n }\n else {\n try {\n $userId = Mage::getSingleton('admin/session')->getUser()->getId();\n $accessLevel = Mage::getSingleton('gri_cms/config')->getAllowedAccessLevel();\n\n foreach ($ids as $id) {\n $revision = Mage::getSingleton('gri_cms/page_revision')\n ->loadWithRestrictions($accessLevel, $userId, $id);\n\n if ($revision->getId()) {\n $revision->delete();\n }\n }\n $this->_getSession()->addSuccess(\n $this->__('Total of %d record(s) have been deleted.', count($ids))\n );\n } catch (Mage_Core_Exception $e) {\n $this->_getSession()->addError($e->getMessage());\n } catch (Exception $e) {\n Mage::logException($e);\n $this->_getSession()->addError(\n Mage::helper('gri_cms')->__('An error occurred while deleting revisions.')\n );\n }\n }\n $this->_redirect('*/*/edit', array('_current' => true, 'tab' => 'revisions'));\n\n return $this;\n }", "public function kiwip_action_delete_revisions(){\n\t\tglobal $wpdb;\n\n\t\t$this->delete_revision = $wpdb->query('DELETE FROM wp_posts WHERE post_type = \"revision\";');\n\n\t\tadd_action('admin_notices', array(&$this, 'kiwip_action_delete_revisions_adm_msg'));\n\t\t$updated_option = array('delete_revisions' => 0);\n\t\tupdate_option('Kiwip', $updated_option);\n\t\t$this->options['delete_revisions'] == 0;\n\t}", "public static function getRevisions($options = [])\n {\n return static::instantiateRecords(static::getRevisionRecords($options));\n }", "function wp_get_post_revisions_url($post = 0)\n {\n }", "function wp_print_revision_templates()\n {\n }", "function create_versions($numversions, $params) {\n $policy = add_policy($params);\n\n for ($i = 2; $i <= $numversions; $i++) {\n $formdata = api::form_policydoc_data($policy);\n $formdata->revision = 'v'.$i;\n api::form_policydoc_update_new($formdata);\n }\n\n $list = api::list_policies($policy->get('policyid'));\n\n return $list[0]->draftversions;\n}", "public function addVersioningFields(FormBuilderInterface $builder, array $options = []): void\n {\n \n $listEntries = $this->listHelper->getEntries('appSettings', 'revisionHandlingForPage');\n $choices = [];\n $choiceAttributes = [];\n foreach ($listEntries as $entry) {\n $choices[$entry['text']] = $entry['value'];\n $choiceAttributes[$entry['text']] = ['title' => $entry['title']];\n }\n $builder->add('revisionHandlingForPage', ChoiceType::class, [\n 'label' => $this->__('Revision handling for page') . ':',\n 'label_attr' => [\n 'class' => 'tooltips',\n 'title' => $this->__('Adding a limitation to the revisioning will still keep the possibility to revert pages to an older version. You will loose the possibility to inspect changes done earlier than the oldest stored revision though.')\n ],\n 'help' => $this->__('Adding a limitation to the revisioning will still keep the possibility to revert pages to an older version. You will loose the possibility to inspect changes done earlier than the oldest stored revision though.'),\n 'empty_data' => 'unlimited',\n 'attr' => [\n 'class' => '',\n 'title' => $this->__('Choose the revision handling for page.')\n ],\n 'required' => true,\n 'choices' => $choices,\n 'choice_attr' => $choiceAttributes,\n 'multiple' => false,\n 'expanded' => false\n ]);\n \n $listEntries = $this->listHelper->getEntries('appSettings', 'maximumAmountOfPageRevisions');\n $choices = [];\n $choiceAttributes = [];\n foreach ($listEntries as $entry) {\n $choices[$entry['text']] = $entry['value'];\n $choiceAttributes[$entry['text']] = ['title' => $entry['title']];\n }\n $builder->add('maximumAmountOfPageRevisions', ChoiceType::class, [\n 'label' => $this->__('Maximum amount of page revisions') . ':',\n 'empty_data' => '25',\n 'attr' => [\n 'class' => '',\n 'title' => $this->__('Choose the maximum amount of page revisions.')\n ],\n 'required' => false,\n 'placeholder' => $this->__('Choose an option'),\n 'choices' => $choices,\n 'choice_attr' => $choiceAttributes,\n 'multiple' => false,\n 'expanded' => false\n ]);\n \n $builder->add('periodForPageRevisions', DateIntervalType::class, [\n 'label' => $this->__('Period for page revisions') . ':',\n 'empty_data' => 'P1Y0M0DT0H0M0S',\n 'attr' => [\n 'maxlength' => 255,\n 'class' => '',\n 'title' => $this->__('Choose the period for page revisions.')\n ],\n 'required' => false,\n 'labels' => [\n 'years' => $this->__('Years'),\n 'months' => $this->__('Months'),\n 'days' => $this->__('Days'),\n 'hours' => $this->__('Hours'),\n 'minutes' => $this->__('Minutes'),\n 'seconds' => $this->__('Seconds')\n ],\n 'placeholder' => [\n 'years' => $this->__('Years'),\n 'months' => $this->__('Months'),\n 'days' => $this->__('Days'),\n 'hours' => $this->__('Hours'),\n 'minutes' => $this->__('Minutes'),\n 'seconds' => $this->__('Seconds')\n ],\n 'input' => 'string',\n 'widget' => 'choice',\n 'with_years' => true,\n 'with_months' => true,\n 'with_weeks' => false,\n 'with_days' => true,\n 'with_hours' => true,\n 'with_minutes' => true,\n 'with_seconds' => true\n ]);\n \n $builder->add('showPageHistory', CheckboxType::class, [\n 'label' => $this->__('Show page history') . ':',\n 'label_attr' => [\n 'class' => 'tooltips',\n 'title' => $this->__('Whether to show the version history to editors or not.')\n ],\n 'help' => $this->__('Whether to show the version history to editors or not.'),\n 'attr' => [\n 'class' => '',\n 'title' => $this->__('The show page history option')\n ],\n 'required' => false,\n ]);\n }", "function generate() {\n\t\t// List of post types to generate content\n\t\t$types = array(); \n\n\t\t// Per-type content \n\t\t$lorems = array();\n\t\t$photos = array();\n\n\t\t// Per-type per-post content counts\n\t\t$nposts = array();\n\t\t$nparas = array();\n\t\t$nphotos = array();\n\n\t\t// Post titles\n\t\t$titles = array();\n\n\t\t// Time spread of posts\n\t\t$months = $this->option( 'spread' );\n\n\t\t// Total counts\n\t\t$totalposts = 0;\n\t\t$total_text = 0;\n\t\t$total_photos = 0;\n\n\t\t$this->result( \"<p>Generating dummy content...</p>\" );\n\n\t\t$post_types = $this->param( 'post_types' );\n\t\tif( !$post_types ) $post_types = array();\n\n\t\t// Get Lorem content for each post type given the options\n\t\tforeach( $post_types as $type ) {\n\t\t\t$lengths = array();\n\n\t\t\t$type_nposts = $this->param( 'post_type_count', $type ); \n\t\t\t$nposts[$type] = is_numeric( $type_nposts ) ? $type_nposts : 0;\n\n\t\t\t$type_nparas = $this->param( 'post_type_paragraphs', $type );\n\t\t\t$nparas[$type] = is_numeric( $type_nparas ) ? $type_nparas : 0;\n\t\t\t\n\t\t\tif($nposts[$type] <= 0 || $nparas[$type] <= 0) $errors[] = \"Invalid parameters for $type\";\n\n\t\t\t$contents = array();\n\t\t\t$lorems[$type] = array();\n\n\t\t\t$type_contents = $this->param( 'post_content', $type );\n\t\t\tif( count( $type_contents ) ) {\n\t\t\t\tforeach( $type_contents as $content ) {\n\t\t\t\t\tif( $content == 'lists' ) $contents = array_merge($contents, array('ul', 'ol', 'dl'));\n\t\t\t\t\telse $contents[] = $content;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$type_lengths = $this->param( 'post_length', $type );\n\t\t\t\n\t\t\tif( count( $type_lengths ) ) {\n\t\t\t\t$num = $nparas[$type];\n\n\t\t\t\twhile($num > 0) {\n\t\t\t\t\tforeach( $type_lengths as $length ) {\n\t\t\t\t\t\t$rand = rand(1, $num - 1);\n\t\t\t\t\t\t$lengths[$length] += $rand;\n\t\t\t\t\t\t$num -= $rand;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$type_post_kind = $this->param( 'post_kind', $type );\n\n\t\t\tif( in_array( 'simple', $type_post_kind ) ) {\n\t\t\t\tif( count($lengths) ) {\n\t\t\t\t\tforeach( $lengths as $size => $count ) {\n\t\t\t\t\t\t$this->result( '<p>Gathering <strong>' . esc_html( $count ) . '</strong> paragraphs of <strong>' . esc_html( $size ) . '</strong> length for <strong>' . esc_html( $type ) . '</strong> posts...</p>' );\n\t\t\t\t\t\t$result = wp_remote_get( 'http://loripsum.net/api/' . $count . '/' . implode( '/', $contents ) . '/' . $size );\n\t\t\t\t\t\t$lorems[$type] = array_merge($lorems[$type], explode(\"\\n\\n\", trim($result['body'])));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tif($type == \"page\") {\n \t$this->result( '<p>Gathering <strong>' . esc_html( $numparas ) . '</strong> paragraphs for <strong>' . esc_html( $type ) . '</strong> posts...</p>' );\n \t$result = wp_remote_get( 'http://loripsum.net/api/' . implode( '/', $contents ) . '/' . $nparas[$type] );\n \t$lorems[$type] = explode( \"\\n\\n\", trim( $result['body'] ) );\n \t}\n if($type == \"post\") {\n $this->result( '<p>Gathering <strong>' . esc_html( $numparas ) . '</strong> paragraphs for <strong>' . '</strong> posts...</p>' );\n \t$result = wp_remote_get( 'http://loripsum.net/api/' . implode( '/', $contents ) . '/' . $nparas[$type] );\n \t$lorems[$type] = explode( \"\\n\\n\", trim( $result['body'] ) );\n }\n\t\t\t\t}\n\t\t\t\t$total_text += count( $lorems[$type] );\n\t\t\t}\n\n\t\t\tif( in_array( 'photos', $type_post_kind ) ) {\n\t\t\t\t$nphotos[$type] = $this->param( 'post_type_photos', $type );\n\t\t\t\t$total_photos += $nphotos[$type] * $nposts[$type];\n\t\t\t}\n\n\t\t\t$totalposts += $nposts[$type];\n\t\t\t$types[] = $type;\n\t\t}\n\n\t\tif( $totalposts > 0 ) {\n\t\t\t$this->result( '<p>Gathering <strong>' . esc_html( $totalposts ) . '</strong> tidbits for post titles...</p>' );\n\n\t\t\t$titles = $this->gather($totalposts, 10);\n\t\t}\n\n\t\tif( $total_photos > 0 ) {\n\t\t\tif( $this->option( 'flickrkey' ) ) {\n\t\t\t\t$this->result( '<p>Gathering <strong>' . esc_html( $total_photos ) . '</strong> photos from flickr for post images...</p>' );\n\t\t\t\t\t\n\t\t\t\t$photos = $this->gatherphotos($total_photos);\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$this->result( \"<p>Can't gather photos from flickr because: no flickr app key specified.</p>\" );\n\t\t\t}\n\t\t}\n\n\t\tif( $total_text > 0 ) {\n\t\t\t$this->result( \"<p>Text content generated. Lorem Ipsum generated from <a href='http://loripsum.net/#info'>LorIpsum.net</a>...</p>\\n\" );\n\t\t} else {\n\t\t\t$this->result( \"<p>No post text content generated.</p>\" );\n\t\t}\n\n\t\t// Process and gather taxonomy options\n\t\t$totalterms = 0;\n\t\t$connections = array();\n\t\t$newterms = array();\n\t\t$create_taxonomies = $this->param( 'taxonomies' );\n\t\tif( !$create_taxonomies ) $create_taxonomies = array();\n\n\t\tforeach( $create_taxonomies as $tax ) {\n\t\t\t$nterms = (int) $this->param( 'taxonomy_count', $tax );\n\n\t\t\tif($nterms > 0)\n\t\t\t\t$totalterms += $nterms;\n\t\t\telse $nterms = 0;\n\n\t\t\tif($links <= 0 && $nterms <= 0) {\n\t\t\t\t$errors[] = \"No terms created for taxonomy <strong>$tax</strong>\";\n\t\t\t\tcontinue;\n\t\t\t}\n\t\n\t\t\t$newterms[$tax] = $nterms;\n\t\t}\n\n\t\t$link_make_connections = $this->param( 'make_connections' );\n\t\tif( !$link_make_connections ) $link_make_connections = array();\n\n\t\tforeach( $link_make_connections as $tax ) {\n\t\t\t$links = $this->param( 'connections', $tax );\n\n\t\t\tif($links > 0) {\n\t\t\t\t$connections[$tax] = array();\n\t\t\t\t$connect_tax_types = $this->param( 'connect_type', $tax );\n\t\t\t\tif( empty( $connect_tax_types ) )\n\t\t\t\t\t$connect_tax_types = $this->post_types();\n\t\t\t\telse\n\t\t\t\t\t$connect_tax_types = $connect_tax_types;\n\n\t\t\t\tforeach( $connect_tax_types as $type ) \n\t\t\t\t\t$connections[$tax][$type] = $links;\n\t\t\t}\n\t\t}\n\n\t\tif( $totalterms > 0 )\t {\n\t\t\t$this->result( \"<p>Gathering <strong>$totalterms</strong> tidbits for taxonomy terms...</p>\" );\n\n\t\t\t$terms = $this->gather( $totalterms, -3 );\n\t\t}\n\t\t\n\t\tforeach( $types as $type ) {\n\t\t\tunset( $photo );\n\t\t\t\n\t\t\tif($type == \"page\") {\n \t$this->result( \"<p>Generating {$nposts[$type]} <strong>$type</strong> posts...</p>\" );\n }\n if($type == \"post\") {\n \t$this->result( \"<p>Generating {$nposts[$type]} posts...</p>\" );\n }\n\t\t\t$alignments = $this->param( 'photo_align', $type );\n\n\t\t\tif( empty( $alignments ) )\n\t\t\t\t$alignments = array( 'left','right','center','' );\n\n\t\t\t$sizes = array(); \n\n\t\t\t$type_photo_size = $this->param( 'photo_size', $type );\n\t\t\tif( is_array( $type_photo_size ) ) foreach( $type_photo_size as $size ) \n\t\t\t\tif( preg_match( '/^t|m|z$/', $size ) ) $sizes[] = substr( $size, 0, 1 );\n\n\t\t\tif( empty( $sizes ) ) \n\t\t\t\t$sizes = array( 't', 'm', 'z' );\n\n\t\t\tfor( $i = 0; $i < $nposts[ $type ]; $i++ ) {\n\t\t\t\t$paras = array();\n\t\t\t\t$copy = $lorems[ $type ];\n\t\t\t\t// Generate number of paragraphs specified +- 20%\n\t\t\t\t$num = $nparas[ $type ] + (rand(0, ceil($nparas[ $type ] * .4)) - floor($nparas[ $type ] * .2));\n\t\t\t\tfor( $j = 0; $j < $num; $j++ ) {\n\t\t\t\t\t// Reset copy of $lorems if we've run out of paragraphs\n\t\t\t\t\tif(count($copy) == 0) $copy = $lorems[ $type ];\n\t\t\t\t\t$para = implode('', array_splice($copy, rand(0, count($copy) - 1), 1));\n\t\t\t\t\t$paras[] = $para;\n\t\t\t\t}\n\t\t\t\tif( isset( $photos ) && !empty( $photos ) && $nphotos[$type] > 0 ) {\n\t\t\t\t\t$copy = $photos;\n\t\t\t\t\t$num = $nphotos[$type] + (rand(0, ceil($nphotos[$type] * .4)) - floor($nphotos[$type] * .2));\n\t\t\t\t\t\n\t\t\t\t\tfor($j = 0; $j < $num; $j++) {\n\t\t\t\t\t\t$photo = implode('', array_splice($copy, mt_rand(0, count($copy) - 1), 1));\n\t\t\t\t\t\t$photo = sprintf( $photo, $sizes[(int)mt_rand(0,count($sizes)-1)] );\n\t\t\t\t\t\t$align = $alignments[(int)mt_rand(0,count($alignments)-1)];\n\t\t\t\t\t\tif( $align ) $align = 'class=\"align' . esc_attr( $align ) . '\"';\n\t\t\t\t\t\tarray_splice( $paras, rand( 0, count( $paras ) - 1 ), 0, array( '<img $align src=\"' . esc_attr( $photo ) . '\" />' ) );\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t\t$title = implode('', array_splice($titles, rand(0, count($titles) - 1), 1));\n\t\t\t\tif( $title ) {\n\t\t\t\t\t$post_data = array(\n\t\t\t\t\t\t'post_title' => $title,\n\t\t\t\t\t\t'post_type' => $type,\n\t\t\t\t\t\t'post_content' => implode(\"\\n\\n\", $paras),\n\t\t\t\t\t\t'post_status' => 'publish',\n\t\t\t\t\t\t'post_author' => 1,\n\t\t\t\t\t\t'post_date' => date('Y-m-d H:i:s', time() - (mt_rand()/mt_getrandmax())*(60*60*24*30*$months))\n\t\t\t\t\t);\n\t\t\t\t\t\n\t\t\t\t\t$post_ID = wp_insert_post( $post_data );\n\t\t\t\t\t\n\t\t\t\t\tupdate_post_meta( $post_ID, $this->meta_key_dummy, 1 );\n\t\t\n\t\t\t\t\t$post = get_post( $post_ID );\n\t\t\t\t\t\n\t\t\t\t\tif( $post ) {\n\t\t\t\t\t\t$result_message = '<a target=\"postPreview\" href=\"' . get_permalink( $post->ID ) . '\">Post ID #'. esc_html( $post->ID ) . ': ' . esc_html( $post->post_title ) . '</a> <strong>' . esc_html( $type ) . '</strong> #' . esc_html( $i + 1 ) . ' (' . esc_html( $num ) . ' paragraphs)';\n\n\t\t\t\t\t\tif( isset( $photo ) && $this->param( 'photo_featured', $type ) ) {\n\t\t\t\t\t\t\t$attachment_id = $this->sideload( $photo, $post );\n\n\t\t\t\t\t\t\tif( is_wp_error( $attachment_id ) || !$attachment_id ) {\n\t\t\t\t\t\t\t\t$result_message .= ', failed to download featured image at URL <em>' . esc_url( $photo ) . '</em>: ' . esc_html( $attachment_id->get_error_message() );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\tupdate_post_meta( $post_ID, '_thumbnail_id', $attachment_id );\n\t\t\t\t\t\t\t\t$result_message .= ', featured image: ' . esc_url( $photo ) . ', attachment #' . esc_html( $attachment_id );\n\t\t\t\t\t\t\t\tupdate_post_meta( $attachment_id, $this->meta_key_dummy, 1 );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$this->result( '<p><a href=\"#post-$post->ID\" onclick=\"preview($post->ID)\">' . $result_message . ' (preview)</a></p>' );\n\t\t\t\t\t\t$this->result( '<div id=\"' . esc_attr( \"post-$post->ID\" ) . '\" style=\"height: 0; overflow: hidden\">' . apply_filters( 'the_content', $post->post_content ) . '</div>' );\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t$this->result( \"<p>Stupid! I couldn't come up with a title!!</p>\" );\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\n\t\t$created_terms = get_option( 'oomph_dummy_terms' );\n\n\t\tif( !$created_terms ) $created_terms = array();\n\n\t\tforeach( $newterms as $tax => $count ) {\n\t\t\t$this->result( '<p>Creating <strong>' . esc_html( $count ) . '</strong> terms for taxonomy <strong>' . esc_html( $tax ) . '</strong></p>' );\n\t\t\t$created_terms[ $tax ] = array();\n\t\t\t$this->result( '<ul class=\"term-list\">' );\n\t\t\tfor($i = 0; $i < $count; $i++ ) {\n\t\t\t\t$term = implode('', array_splice($terms, mt_rand(0, count($terms) - 1), 1));\n\t\t\t\t$result = wp_insert_term( $term, $tax ); \n\t\t\t\t\n\t\t\t\t// Since there's no taxonomy meta, we've got to save all of the created terms\n\t\t\t\t// into an options field\n\t\t\t\tif( !is_wp_error( $result ) )\n\t\t\t\t\t$created_terms[ $tax ][] = $result['term_id'];\n\n\t\t\t\t$this->result( '<li>' . esc_html( $term ) . '</li>' );\n\t\t\t}\n\t\t\t$this->result( '</ul>' );\n\t\t}\n\n\t\tupdate_option( 'oomph_dummy_terms', $created_terms );\n\n\t\tforeach( $connections as $tax => $types ) {\n\t\t\t$terms = get_terms( $tax, array( 'hide_empty' => false, 'exclude' => $this->param( 'ignore_default', $tax ) ? 1 : 0 ) );\n\n\t\t\tforeach( $types as $type => $count ) {\n\t\t\t\t$this->result( '<p>Creating <strong>' . esc_html( $count ) . '</strong> connections from taxonomy <strong>' . esc_html( $tax ) . '</strong> to <strong>' . esc_html( $type ) . '</strong> posts...</p>' );\n\n\t\t\t\t$post_query = \"post_type=$type&orderby=rand&posts_per_page=-1\";\n\n\t\t\t\t$reset = false;\n\t\t\t\t// Special case for categories: Only assign new categories to posts in Uncategorized, or ID 1\n\t\t\t\tif( $type == 'post' && $tax == 'category' ) {\n\t\t\t\t\t$reset = true;\n\t\t\t\t\t$post_query .= '&category=1';\n\t\t\t\t}\n\n\t\t\t\t$posts = get_posts( $post_query );\n\n\t\t\t\t$this->result( \"<ol>\" );\n\t\t\t\tforeach($posts as $post) {\n\t\t\t\t\tfor($i = 0; $i < $count; $i++) {\n\t\t\t\t\t\t$term = array_slice( $terms, mt_rand( 0, count( $terms ) ) - 1, 1 );\n\t\t\t\t\t\t$this->result( \"<li>({$post->ID}) {$post->post_name} -> ({$term[0]->term_id}) {$term[0]->name}</li>\\n\" );\n\t\t\t\t\t\twp_set_object_terms( $post->ID, (int)$term[0]->term_id, $tax, !($reset && $i == 0) );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t$this->result( \"</ol>\" );\n\t\t\t}\n\t\t}\n\n\t\tif( isset( $errors ) && count( $errors ) ) print_r( $errors );\n\n\t\t$this->result( \"<h3>Done!</h3>\" );\n\t\t$this->result( \"<p>Enjoy your new dummy content!</p>\" );\n\n\t\tif( $this->async ) \n\t\t\t$this->dummy_content_count();\n\t}", "function post_revisions_meta_box($post)\n {\n }", "public function getRevisions(): array;", "public function revisionsAction()\n {\n $this->_initVersion();\n $this->_initPage();\n\n $this->loadLayout();\n $this->renderLayout();\n\n return $this;\n }", "function test_get_revisions_gets_the_posts_revisions() {\n\n\t\t$post = get_post( $this->mock_post_id );\n\n\t\t$post->post_content = 'update 1';\n\n\t\twp_update_post( $post );\n\n\t\t$post->post_content = 'update 2';\n\n\t\twp_update_post( $post );\n\n\t\t$post->post_content = 'update 3';\n\n\t\twp_update_post( $post );\n\n\t\t$revisions = wp_get_post_revisions( $this->mock_post_id );\n\n\t\t$revisions_data = array();\n\n\t\t$last_month = date( 'm', strtotime( 'last day of -1 month' ) );\n\t\t$this_year = date( 'Y', strtotime( 'last day of this month' ) );\n\t\t$next_month = date( 'm', strtotime( 'last day of +1 month' ) );\n\n\t\t$revisions_counter = 0;\n\n\t\t$first_revision = false;\n\n\t\tforeach ( $revisions as $key => $revision ) {\n\n\t\t\t$month = ( $revisions_counter >= 1 ) ? $last_month : $next_month;\n\n\t\t\tif ( 1 == $revisions_counter ) {\n\n\t\t\t\t$second_revision = $revision;\n\n\t\t\t}\n\n\t\t\t$revisions_data[ $revision->ID ] = array(\n\n\t\t\t\t'month' => $month,\n\t\t\t\t'day' => $revisions_counter + 1 . '',\n\t\t\t\t'year' => $this_year,\n\t\t\t\t'hour' => '12',\n\t\t\t\t'minute' => '30',\n\n\t\t\t);\n\n\t\t\t$revisions_counter++;\n\n\t\t}\n\n\t\tupdate_post_meta( $this->mock_post_id, 'dep_revisions_data', json_encode( $revisions_data ) );\n\n\t\t$args = array(\n\t\t\t'p' => $this->mock_post_id,\n\t\t\t'post_type' => 'page',\n\t\t);\n\n\t\t$query = new \\WP_Query( $args );\n\n\t\tif ( $query->have_posts() ) {\n\n\t\t\twhile ( $query->have_posts() ) {\n\n\t\t\t\t$query->the_post();\n\n\t\t\t\t$actual = $this->dep_page_versions_controller->get_revision( $post->post_content );\n\n\t\t\t}\n\t\t}\n\n\t\t$this->assertEquals( $second_revision->post_content, $actual );\n\n\t}", "function _wp_post_revision_data($post = array(), $autosave = \\false)\n {\n }", "function wp_revisions_enabled($post)\n {\n }", "public function dump( $args = array(), $assoc_args = array() ) {\n\n\t\tglobal $wpdb;\n\t\t$revs = $wpdb->get_var( \"SELECT COUNT(*) FROM $wpdb->posts WHERE post_type = 'revision'\" );\n\n\t\tif ( $revs < 1 ) {\n\t\t\tWP_CLI::success( 'No revisions.' );\n\t\t\treturn;\n\t\t}\n\n\t\tWP_CLI::confirm( sprintf( 'Remove all %d revisions?', $revs ), $assoc_args );\n\n\t\tif ( isset( $assoc_args['hard'] ) ) {\n\t\t\tWP_CLI::run_command( array( 'revisions', 'clean', -1 ), array( 'hard' => '' ) );\n\t\t\treturn;\n\t\t}\n\n\t\t$wpdb->query( \"DELETE FROM $wpdb->posts WHERE post_type = 'revision'\" );\n\n\t\t// @todo: Are there caches to clear?\n\n\t\tWP_CLI::success( 'Finished removing all revisions.' );\n\n\t}", "public function dump( $args = array(), $assoc_args = array() ) {\n\n\t\tglobal $wpdb;\n\t\t$revs = $wpdb->get_var( \"SELECT COUNT(*) FROM $wpdb->posts WHERE post_type = 'revision'\" ); // phpcs:ignore WordPress.VIP.DirectDatabaseQuery.DirectQuery,WordPress.VIP.DirectDatabaseQuery.NoCaching\n\n\t\tif ( $revs < 1 ) {\n\t\t\tWP_CLI::success( 'No revisions.' );\n\t\t\treturn;\n\t\t}\n\n\t\tWP_CLI::confirm( sprintf( 'Remove all %d revisions?', $revs ), $assoc_args );\n\n\t\tif ( isset( $assoc_args['hard'] ) ) {\n\t\t\tWP_CLI::run_command( array( 'revisions', 'clean', -1 ), array( 'hard' => '' ) );\n\t\t\treturn;\n\t\t}\n\n\t\t$wpdb->query( \"DELETE FROM $wpdb->posts WHERE post_type = 'revision'\" ); // phpcs:ignore WordPress.VIP.DirectDatabaseQuery.DirectQuery,WordPress.VIP.DirectDatabaseQuery.NoCaching\n\n\t\tWP_CLI::success( 'Finished removing all revisions.' );\n\n\t}", "function testRevisionGenerationForEntity() {\n\t\t$entity_id = wl_create_post( 'Original content', 'entity-1', uniqid( 'entity', true ), 'publish', 'entity' );\n\t\t$revisions = wp_get_post_revisions( $entity_id );\n\n\t\t// Just a simple sanity check.\n\t\t$this->assertCount( 1 , $revisions );\n\n\t\t// Check that a revision is generated on change.\n\t\t$post_data = array(\n\t\t 'ID' => $entity_id,\n\t\t 'post_content' => 'This is the updated content.',\n\t\t);\n\n\t\twp_update_post( $post_data );\n\t\t$revisions = wp_get_post_revisions( $entity_id );\n\t\t$this->assertCount( 2 , $revisions );\n\t}", "function acf_save_post_revision($post_id = 0)\n{\n}", "function _wp_upgrade_revisions_of_post($post, $revisions)\n {\n }", "function cmb2_get_post_options( $query_args ) {\n\n $args = wp_parse_args( $query_args, array(\n 'post_type' => 'post',\n 'numberposts' => 10,\n ) );\n\n $posts = get_posts( $args );\n\n $post_options = array();\n if ( $posts ) {\n foreach ( $posts as $post ) {\n $post_options[ $post->ID ] = $post->post_title;\n }\n }\n\n return $post_options;\n}", "static function generatePostsParameter($post_type){\n //get only published post\n return array(\n \"post_type\" =>$post_type,\n \"post_status\" => 'publish',\n 'numberposts'\t=> -1,\n 'suppress_filters' => false\n );\n }", "public function revision($id){\n $users = User::orderBy('id','desc')->get();\n\n $posts = Post::with('comments', 'user', 'project')->orderBy('id', 'desc')->limit(20)->get();\n\n $tasks = DB::table('tasks')\n ->leftJoin('users', 'tasks.user_id', '=', 'users.id')\n ->leftJoin('projects', 'tasks.project_id', '=', 'projects.id')\n ->select('tasks.*', 'users.first_name', 'users.last_name', 'users.profile_image', 'projects.project_name')\n ->orderBy('id', 'desc')\n ->get();\n\n $user = User::find($id);\n //fetch folder by ID\n $revision = Review::find($id);\n $folders = Folder::with('files', 'user')->orderBy('id', 'desc')->limit(20)->get();\n //fetch user by ID\n $user = User::find($id);\n $notes = DB::table('notes')\n ->leftJoin('users', 'notes.user_id', '=', 'users.id')\n ->select('notes.*', 'users.first_name', 'users.last_name', 'users.profile_image')\n ->orderBy('notes.id', 'desc')\n ->get();\n $colors = ColorSettings::orderBy('id', 'desc')->limit('1')->get();\n\n $logos = WorkspaceLogoSetting::orderBy('id', 'desc')->limit('1')->get();\n\n //dd($posts); die();\n\n return view('document_control.revision', [\n 'posts' => $posts,\n 'tasks' => $tasks,\n 'revision'=> $revision,\n 'folders'=> $folders,\n 'notes' => $notes,\n 'colors' => $colors,\n 'logos' => $logos,\n 'users' => $users,\n 'user' => $user,\n ]);\n\n }", "function wp_delete_post_revision($revision)\n {\n }", "function wp_widget_multi_pages($args, $number = 1)\n {\n extract($args);\n $options = get_option('widget_multi_pages');\n \n \n $sortby = empty($options[$number]['sortby']) ? 'menu_order' : $options[$number]['sortby'];\n $exclude = empty($options[$number]['exclude']) ? '' : '&exclude=' . $options[$number]['exclude'];\n $headpage = empty($options[$number]['headpage']) ? '' : '&child_of=' . $options[$number]['headpage'];\n $posts = empty($options[$number]['posts']) ? '' : $options[$number]['posts'];\n \n if ($sortby == 'menu_order') {\n $sortby = 'menu_order, post_title';\n }\n $title = $options[$number]['title'];\n \n if ($posts != '') {\n $out = '';\n echo $before_widget . $before_title . $title . $after_title . \"<ul>\";\n global $post;\n $myposts = get_posts('include=' . $posts);\n foreach ($myposts as $post) {\n setup_postdata($post);\n echo '<li><a href=\"';\n the_permalink();\n echo '\">';\n the_title();\n echo '</a></li>';\n }\n echo \"</ul>\" . $after_widget;\n } else {\n $out = wp_list_pages('title_li=&echo=0&sort_column=' . $sortby . $exclude . $headpage);\n \n if (!empty($title) && !empty($out)) {\n $out = $before_widget . $before_title . $title . $after_title . \"<ul>\" . $out . \"</ul>\" . $after_widget;\n }\n \n \n if (!empty($out)) {\n?>\n <?php\n echo $out;\n?>\n <?php\n }\n }\n }", "function cmb2_get_your_post_type_post_options() {\n return cmb2_get_post_options( array( 'post_type' => 'page', 'numberposts' => 5 ) );\n}", "function wp_get_post_revision(&$post, $output = \\OBJECT, $filter = 'raw')\n {\n }", "private function renderRevisions($oldestRevNumToPull = null, $limit = null)\n {\n if ($limit === null) {\n $limit = $this->revisions->getLimit();\n }\n if ($oldestRevNumToPull !== null) {\n // make sure oldestRevNumToPull is an int if it isn't null\n $oldestRevNumToPull = (int) $oldestRevNumToPull;\n }\n return $this->revisionsRenderer->renderRevisions($limit, $oldestRevNumToPull);\n }", "public static function delete_older_revisions( $type ) {\n\t\tglobal $wpdb;\n\n\t\t// only run this delete once every 12hrs\n\t\tif ( ! get_transient( 'pp_delete_revisions' ) ) {\n\t\t\t// table name\n\t\t\t$table = \"{$wpdb->base_prefix}pp_revisions\";\n\n\t\t\t// get total count of record in db\n\t\t\t$count = $wpdb->get_var( \"SELECT COUNT(*) FROM {$wpdb->base_prefix}pp_revisions WHERE type = '$type'\" );\n\n\t\t\t// if total record is greater than 5, delete the older record save for the latest 5\n\t\t\tif ( $count > 5 ) {\n\n\t\t\t\t/** @see http://stackoverflow.com/questions/12382250/mysql-delete-order-by */\n\t\t\t\t$sql = \"DELETE FROM $table WHERE type = %s AND id IN (\n\t\t\t\t\t\tselect * FROM (\n\t\t\t\t\t\t\tSELECT id FROM $table WHERE type = %s ORDER BY date ASC limit %d\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\tAS t\n\t\t\t)\";\n\n\t\t\t\t$wpdb->query( $wpdb->prepare( $sql, $type, $type, $count - 5 ) );\n\t\t\t}\n\n\t\t\tset_transient( 'pp_delete_revisions', 'active', 12 * HOUR_IN_SECONDS );\n\t\t}\n\t}", "public static function cron_revision_cleanup($limit = 100) {\n global $wpdb;\n\n $post_types = 'post, product, product_variation';\n\n // Revisions of posts that were last modified a long time ago (3 months) are\n // no longer necessary and can be cleaned up.\n $revision_ids = $wpdb->get_col($wpdb->prepare(\"SELECT revision.ID\nFROM $wpdb->posts revision\nINNER JOIN $wpdb->posts parent ON parent.ID = revision.post_parent AND parent.post_type IN ($post_types)\nWHERE revision.post_type = 'revision' AND revision.post_modified_gmt < %s AND revision.post_name NOT LIKE '%autosave%'\nLIMIT 0,%d\n\", date('Y-m-d', strtotime('today - ' . static::CRON_EVENT_REVISION_CLEANUP_RETAIN_DAYS . ' days')), $limit));\n foreach ($revision_ids as $revision_id) {\n wp_delete_post_revision($revision_id);\n }\n }", "public function generatePosts()\n {\n if (request('quantityOfPosts') > 50) {\n return 'Du kannst maximal 50 Posts generieren lassen';\n }\n Post::factory()->count(request('quantityOfPosts'))->create();\n return redirect()->back();\n }", "function import_manual_revisions($data, $info, $callback) {\n\n\tglobal $db;\n\n\tcall_user_func($callback, 'Importing Revisions', 'proc');\n\tcall_user_func($callback, 'Loading...', 'current');\n\n\t$idmap = $info['idmap'];\n\n\tfor ($i = 0, $num = count($data); $i < $num; $i++) {\n\n\t\tif ($i % 100 == 0) {\n\t\t\tcall_user_func($callback, 'Loading set ' . (($i%0) + 1) . ' of ' . (ceil($num / 100)), 'current');\n\t\t}\n\n\t\t/******************************\n\t\t* Get revision and map pageid to new ID\n\t\t******************************/\n\n\t\t$rev = $data[$i];\n\n\t\tif (!$idmap[$rev['pageid']]) {\n\t\t\tcontinue;\n\t\t}\n\n\t\t$rev['pageid'] = $idmap[$rev['pageid']];\n\n\t\t/******************************\n\t\t* Insert revision\n\t\t******************************/\n\n\t\t$db->query(\"\n\t\t\tINSERT INTO manual_revisions SET\n\t\t\t\tpageid = $rev[pageid],\n\t\t\t\trevisionid = \" . intval($rev['revisionid']) . \",\n\t\t\t\tcontent = '\" . $db->escape($rev['value']) . \"',\n\t\t\t\ttimestamp = \" . intval($rev['timestamp']) . \",\n\t\t\t\ttechid = \" . intval($rev['techid']) . \"\n\t\t\");\n\t}\n}", "function wp_revisions_to_keep($post)\n {\n }", "public function revisionsTable();", "function wp_restore_post_revision($revision, $fields = \\null)\n {\n }", "public function generate_posts(){\n $this->generate_post(\n 'Key of C', \n array(\n 'root_major' => 'C',\n 'root_minor' => 'Am',\n 'major2' => 'F',\n 'major3' => 'G',\n 'minor2' => 'Dm',\n 'minor3' => 'Em'\n )\n );\n $this->generate_post(\n 'Key of G', \n array(\n 'root_major' => 'G',\n 'root_minor' => 'Em',\n 'major2' => 'C',\n 'major3' => 'D',\n 'minor2' => 'Am',\n 'minor3' => 'Bm'\n )\n );\n $this->generate_post(\n 'Key of F', \n array(\n 'root_major' => 'F',\n 'root_minor' => 'Dm',\n 'major2' => 'Bb',\n 'major3' => 'C',\n 'minor2' => 'Gm',\n 'minor3' => 'Am'\n )\n );\n $this->generate_post(\n 'Key of E', \n array(\n 'root_major' => 'E',\n 'root_minor' => 'C#m',\n 'major2' => 'A',\n 'major3' => 'B',\n 'minor2' => 'F#m',\n 'minor3' => 'G#m'\n )\n );\n $this->generate_post(\n 'Key of Eb', \n array(\n 'root_major' => 'Eb',\n 'root_minor' => 'Cm',\n 'major2' => 'Ab',\n 'major3' => 'Bb',\n 'minor2' => 'Fm',\n 'minor3' => 'Gm'\n )\n );\n }", "public static function fetchAllRevisions($postId) {\n\t\t$criteria = new CDbCriteria();\n\t\t$criteria->addColumnCondition(array('post_id' => $postId));\n\t\treturn self::model()->findAll($criteria);\n\t}", "public function _add_revision($type, $action, $ids = false)\n {\n if (empty($ids) || empty($action) || empty($type)) {\n return false;\n }\n if ( ! is_array($ids) && (int) $ids) {\n $ids = [(int) $ids];\n }\n\n $ids_with_comma = implode(',', $ids);\n\n //check SQL confs for getting data\n if ( ! isset($this->all_queries[$type])) {\n return false;\n }\n\n $revision_db = $this->get_revision_db($type);\n $all_data = [];\n\n if ($action != 'delete') {\n $revision_sql = 'SELECT item_id, data FROM (SELECT item_id, data FROM ' . $revision_db . ' WHERE item_id IN (' . $ids_with_comma . ') ORDER BY id DESC) as r GROUP BY item_id';\n $all_last_revision = db()->get_2d($revision_sql);\n foreach ($this->all_queries[$type] as $key => $info) {\n $sql_res = db()->query('SELECT * FROM ' . db($info['table']) . ' WHERE ' . $info['field'] . ' IN (' . $ids_with_comma . ');');\n foreach ($ids as $k => $id) {\n $all_data[$id][$key] = [];\n }\n while ($row = db()->fetch_assoc($sql_res)) {\n $complex_key = $row[$info['field']];\n if ($info['multi']) {\n $all_data[$complex_key][$key][] = $row;\n } else {\n $all_data[$complex_key][$key] = $row;\n }\n }\n }\n }\n $add_rev_date = time();\n $insert_array = [];\n foreach ($ids as $id) {\n if ($action == 'delete') {\n $insert_array[] = [\n 'user_id' => (int) (main()->ADMIN_ID) ?: (int) ($_GET['admin_id']),\n 'add_date' => $add_rev_date,\n 'action' => $action,\n 'item_id' => $id,\n 'data' => '',\n ];\n continue;\n }\n if ( ! isset($all_data[$id])) {\n continue;\n }\n $new_revision = $all_data[$id];\n if (is_array($new_revision)) {\n foreach ((array) $this->temp_fields[$type] as $k => $v) {\n _class('utils')->recursive_unset($new_revision, $v);\n }\n }\n $new_revision = json_encode($new_revision);\n if (isset($all_last_revision[$id])) {\n $old_revision = $all_last_revision[$id];\n if ($old_revision == $new_revision) {\n continue;\n }\n }\n\n $insert_array[] = [\n 'user_id' => (int) (main()->ADMIN_ID) ?: (int) ($_GET['admin_id']),\n 'add_date' => $add_rev_date,\n 'action' => $action,\n 'item_id' => $id,\n 'data' => $new_revision ?: '',\n ];\n }\n if ( ! empty($insert_array)) {\n //\t\t\t$insert_array = array_chunk($insert_array, 100);\n foreach ($insert_array as $insert_item) {\n db()->insert_safe($revision_db, $insert_item);\n $revision_ids[] = db()->insert_id();\n }\n }\n return $revision_ids;\n }", "function tc_generates_featured_pages() {\r\n $default = array(\r\n 'dropdown' => array(\r\n 'one' => __( 'Home featured page one' , 'customizr' ),\r\n 'two' => __( 'Home featured page two' , 'customizr' ),\r\n 'three' => __( 'Home featured page three' , 'customizr' )\r\n ),\r\n 'text' => array(\r\n 'one' => __( 'Featured text one (200 car. max)' , 'customizr' ),\r\n 'two' => __( 'Featured text two (200 car. max)' , 'customizr' ),\r\n 'three' => __( 'Featured text three (200 car. max)' , 'customizr' )\r\n )\r\n );\r\n\r\n //declares some loop's vars and the settings array\r\n $priority = 70;\r\n $incr = 0;\r\n $fp_setting_control = array();\r\n\r\n //gets the featured pages id from init\r\n $fp_ids = apply_filters( 'tc_featured_pages_ids' , TC_init::$instance -> fp_ids);\r\n\r\n //dropdown field generator\r\n foreach ( $fp_ids as $id ) {\r\n $priority = $priority + $incr;\r\n $fp_setting_control['tc_theme_options[tc_featured_page_'. $id.']'] = array(\r\n 'label' => isset($default['dropdown'][$id]) ? $default['dropdown'][$id] : sprintf( __('Custom featured page %1$s' , 'customizr' ) , $id ),\r\n 'section' => 'tc_frontpage_settings' ,\r\n 'type' => 'dropdown-pages' ,\r\n 'priority' => $priority\r\n );\r\n $incr += 10;\r\n }\r\n\r\n //text field generator\r\n $incr = 10;\r\n foreach ( $fp_ids as $id ) {\r\n $priority = $priority + $incr;\r\n $fp_setting_control['tc_theme_options[tc_featured_text_' . $id . ']'] = array(\r\n 'sanitize_callback' => array( $this , 'tc_sanitize_textarea' ),\r\n 'transport' => 'postMessage',\r\n 'control' => 'TC_controls' ,\r\n 'label' => isset($default['text'][$id]) ? $default['text'][$id] : sprintf( __('Featured text %1$s (200 car. max)' , 'customizr' ) , $id ),\r\n 'section' => 'tc_frontpage_settings' ,\r\n 'type' => 'textarea' ,\r\n 'notice' => __( 'You need to select a page first. Leave this field empty if you want to use the page excerpt.' , 'customizr' ),\r\n 'priority' => $priority,\r\n );\r\n $incr += 10;\r\n }\r\n\r\n return $fp_setting_control;\r\n }", "public function revisionOverview(EventContentInterface $event_content) {\n $account = $this->currentUser();\n $langcode = $event_content->language()->getId();\n $langname = $event_content->language()->getName();\n $languages = $event_content->getTranslationLanguages();\n $has_translations = (count($languages) > 1);\n $event_content_storage = $this->entityManager()->getStorage('event_content');\n\n $build['#title'] = $has_translations ? $this->t('@langname revisions for %title', ['@langname' => $langname, '%title' => $event_content->label()]) : $this->t('Revisions for %title', ['%title' => $event_content->label()]);\n $header = [$this->t('Revision'), $this->t('Operations')];\n\n $revert_permission = (($account->hasPermission(\"revert all event content revisions\") || $account->hasPermission('administer event content entities')));\n $delete_permission = (($account->hasPermission(\"delete all event content revisions\") || $account->hasPermission('administer event content entities')));\n\n $rows = [];\n\n $vids = $event_content_storage->revisionIds($event_content);\n\n $latest_revision = TRUE;\n\n foreach (array_reverse($vids) as $vid) {\n /** @var \\Drupal\\event_content\\EventContentInterface $revision */\n $revision = $event_content_storage->loadRevision($vid);\n // Only show revisions that are affected by the language that is being\n // displayed.\n if ($revision->hasTranslation($langcode) && $revision->getTranslation($langcode)->isRevisionTranslationAffected()) {\n $username = [\n '#theme' => 'username',\n '#account' => $revision->getRevisionUser(),\n ];\n\n // Use revision link to link to revisions that are not active.\n $date = \\Drupal::service('date.formatter')->format($revision->getRevisionCreationTime(), 'short');\n if ($vid != $event_content->getRevisionId()) {\n $link = $this->l($date, new Url('entity.event_content.revision', ['event_content' => $event_content->id(), 'event_content_revision' => $vid]));\n }\n else {\n $link = $event_content->link($date);\n }\n\n $row = [];\n $column = [\n 'data' => [\n '#type' => 'inline_template',\n '#template' => '{% trans %}{{ date }} by {{ username }}{% endtrans %}{% if message %}<p class=\"revision-log\">{{ message }}</p>{% endif %}',\n '#context' => [\n 'date' => $link,\n 'username' => \\Drupal::service('renderer')->renderPlain($username),\n 'message' => ['#markup' => $revision->getRevisionLogMessage(), '#allowed_tags' => Xss::getHtmlTagList()],\n ],\n ],\n ];\n $row[] = $column;\n\n if ($latest_revision) {\n $row[] = [\n 'data' => [\n '#prefix' => '<em>',\n '#markup' => $this->t('Current revision'),\n '#suffix' => '</em>',\n ],\n ];\n foreach ($row as &$current) {\n $current['class'] = ['revision-current'];\n }\n $latest_revision = FALSE;\n }\n else {\n $links = [];\n if ($revert_permission) {\n $links['revert'] = [\n 'title' => $this->t('Revert'),\n 'url' => $has_translations ?\n Url::fromRoute('entity.event_content.translation_revert', ['event_content' => $event_content->id(), 'event_content_revision' => $vid, 'langcode' => $langcode]) :\n Url::fromRoute('entity.event_content.revision_revert', ['event_content' => $event_content->id(), 'event_content_revision' => $vid]),\n ];\n }\n\n if ($delete_permission) {\n $links['delete'] = [\n 'title' => $this->t('Delete'),\n 'url' => Url::fromRoute('entity.event_content.revision_delete', ['event_content' => $event_content->id(), 'event_content_revision' => $vid]),\n ];\n }\n\n $row[] = [\n 'data' => [\n '#type' => 'operations',\n '#links' => $links,\n ],\n ];\n }\n\n $rows[] = $row;\n }\n }\n\n $build['event_content_revisions_table'] = [\n '#theme' => 'table',\n '#rows' => $rows,\n '#header' => $header,\n ];\n\n return $build;\n }", "protected function createPageDepthOptions() {}", "public function getRevision();", "function vip_get_random_posts( $number = 1, $post_type = 'post', $return_ids = false ) {\n\t$query = new WP_Query( array( 'posts_per_page' => 100, 'fields' => 'ids', 'post_type' => $post_type ) );\n\n\t$post_ids = $query->posts;\n\tshuffle( $post_ids );\n\t$post_ids = array_splice( $post_ids, 0, $number );\n\n\tif ( $return_ids )\n\t\treturn $post_ids;\n\n\t$random_posts = get_posts( array( 'post__in' => $post_ids, 'numberposts' => count( $post_ids ), 'post_type' => $post_type ) );\n\n\treturn $random_posts;\n}", "function acf_get_post_latest_revision($post_id)\n{\n}", "function wp_post_revision_fields($fields, $post = \\null)\n {\n }", "function cmb2_get_post_options( $query_args ) {\n\n\t$args = wp_parse_args( $query_args, array(\n\t\t'post_type' => 'post',\n\t\t'numberposts' => 10,\n\t) );\n\n\t$posts = get_posts( $args );\n\n\t$post_options = array();\n\tif ( $posts ) {\n\t\tforeach ( $posts as $post ) {\n $post_options[ $post->ID ] = $post->post_title;\n\t\t}\n\t}\n\n\treturn $post_options;\n}", "public function run()\n {\n for ($i=0; $i < 10; $i++) { \n \n $new_post = new Post();\n $new_post->title = \"Titolo post \".($i + 1); \n $new_post->slug = Str::slug($new_post->title, '-');\n $new_post->content = ($i + 1) . \" Lorem ipsum dolor sit amet consectetur adipisicing elit. Dignissimos assumenda eos dolore minus cumque vel quaerat omnis sapiente? Repellendus similique mollitia ad quod cupiditate praesentium a quas unde adipisci ut.\"; \n $new_post->save(); \n }\n }", "abstract protected function createPages($count = 10): array;", "public function getAllRevisions()\n {\n // Retrieves username associated with an id. \n $this->ui_ids = array();\n\n /**\n * Retrieves list of previous versions of data dictionary.\n */\n $pid = $_GET[\"pid\"];\n $previous_versions = array();\n $sql = \"select p.pr_id, p.ts_approved, p.ui_id_requester, p.ui_id_approver,\n if(l.description = 'Approve production project modifications (automatic)',1,0) as automatic\n from redcap_metadata_prod_revisions p left join redcap_log_event l\n on p.project_id = l.project_id and p.ts_approved*1 = l.ts\n where p.project_id = $pid and p.ts_approved is not null order by p.pr_id\";\n\n if ($result = $this->query($sql))\n {\n // Cycle through results\n $rev_num = 0;\n $num_rows = $result->num_rows;\n while ($row = $result->fetch_object())\n {\n if ($rev_num == 0)\n {\n $previous_versions[] = array(\n \"id\" => $row->pr_id,\n \"label\" => \"Moved to Production\",\n \"requester\" => $this->getUsernameFirstLast($row->ui_id_requester),\n \"approver\" => $this->getUsernameFirstLast($row->ui_id_approver),\n \"automatic_approval\" => $row->automatic,\n \"ts_approved\" => $row->ts_approved,\n );\n }\n else\n {\n $previous_versions[] = array(\n \"id\" => $row->pr_id,\n \"label\" => \"Production Revision #$rev_num\",\n \"requester\" => $this->getUsernameFirstLast($row->ui_id_requester),\n \"approver\" => $this->getUsernameFirstLast($row->ui_id_approver),\n \"automatic_approval\" => $row->automatic,\n \"ts_approved\" => $row->ts_approved\n );\n }\n\n if ($rev_num == $num_rows - 1)\n {\n // Current revision will be mapped to timestamp and approver of last row\n $current_revision_ts_approved = $row->ts_approved;\n $current_revision_approver = $this->getUsernameFirstLast($row->ui_id_approver);\n $current_revision_requester = $this->getUsernameFirstLast($row->ui_id_requester);\n $current_revision_automatic = $row->automatic;\n }\n\n $rev_num++;\n }\n\n $result->close();\n \n // Sort by most recent version.\n $previous_versions = array_reverse($previous_versions);\n }\n\n // Shift timestamps, approvers, requesters, and automatic approval down by one,\n // as the correct info for each one is when the previous version was archived. \n $last_key = null;\n foreach($previous_versions as $key => $version)\n {\n if ($last_key !== null)\n {\n $previous_versions[$last_key][\"ts_approved\"] = $previous_versions[$key][\"ts_approved\"];\n $previous_versions[$last_key][\"requester\"] = $previous_versions[$key][\"requester\"];\n $previous_versions[$last_key][\"approver\"] = $previous_versions[$key][\"approver\"];\n $previous_versions[$last_key][\"automatic_approval\"] = $previous_versions[$key][\"automatic_approval\"];\n }\n $last_key = $key;\n }\n\n // Get correct production timestamp,\n // and the person who moved it to production\n if (!empty($previous_versions))\n {\n // Get correct production timestamp\n $sql = \"select production_time from redcap_projects where project_id = $pid\";\n if ($result = $this->query($sql))\n {\n while ($row = $result->fetch_object()){\n $timestamp = $row->production_time;\n $previous_versions[sizeof($previous_versions)-1][\"ts_approved\"] = $timestamp;\n }\n $result->close();\n }\n\n if (!empty($timestamp))\n {\n // Retrieve person who moved to production, as it's stored separately. \n $sql = \"select u.ui_id from redcap_user_information u, redcap_log_event l\n where u.username = l.user and l.description = 'Move project to production status' and l.project_id = $pid \n and l.ts = '\" . str_replace(array(' ',':','-'), array('','',''), $timestamp) . \"' order by log_event_id desc limit 1\";\n\n if ($result = $this->query($sql))\n {\n while ($row = $result->fetch_object()){\n $previous_versions[sizeof($previous_versions)-1][\"approver\"] = $this->getUsernameFirstLast($row->ui_id);\n }\n $result->close();\n }\n }\n }\n\n // Add current revision\n if (isset($current_revision_approver) && \n isset($current_revision_ts_approved) && \n isset($current_revision_automatic) && \n isset($current_revision_requester))\n {\n array_unshift($previous_versions, array(\n \"id\" => \"current\",\n \"label\" => \"Production Revision #$rev_num <b>(Current Revision)</b>\",\n \"requester\" => $current_revision_requester,\n \"approver\" => $current_revision_approver,\n \"automatic_approval\" => $current_revision_automatic,\n \"ts_approved\" => $current_revision_ts_approved\n ));\n }\n\n return $previous_versions;\n }", "public function run()\n {\n $version= new TravelVersion;\n $version->travel_grant_id=1;\n $version->travel_request_status_id=1;\n $version->comments=\"Comments\";\n $version->save();\n\n $version= new TravelVersion;\n $version->travel_grant_id=2;\n $version->travel_request_status_id=1;\n $version->comments=\"Comments\";\n $version->save();\n\n $version= new TravelVersion;\n $version->travel_grant_id=3;\n $version->travel_request_status_id=1;\n $version->comments=\"Comments\";\n $version->save();\n\n $version= new TravelVersion;\n $version->travel_grant_id=4;\n $version->travel_request_status_id=1;\n $version->comments=\"Comments\";\n $version->save();\n\n $version= new TravelVersion;\n $version->travel_grant_id=5;\n $version->travel_request_status_id=1;\n $version->comments=\"Comments\";\n $version->save();\n\n $version= new TravelVersion;\n $version->travel_grant_id=6;\n $version->travel_request_status_id=1;\n $version->comments=\"Comments\";\n $version->save();\n\n $version= new TravelVersion;\n $version->travel_grant_id=7;\n $version->travel_request_status_id=1;\n $version->comments=\"Comments\";\n $version->save();\n\n $version= new TravelVersion;\n $version->travel_grant_id=8;\n $version->travel_request_status_id=1;\n $version->comments=\"Comments\";\n $version->save();\n\n $version= new TravelVersion;\n $version->travel_grant_id=9;\n $version->travel_request_status_id=1;\n $version->comments=\"Comments\";\n $version->save();\n\n $version= new TravelVersion;\n $version->travel_grant_id=10;\n $version->travel_request_status_id=1;\n $version->comments=\"Comments\";\n $version->save();\n }", "public function run() {\n \n $content = \"aaaaaaaaaaa xxxxxxxxx zzzzzzzzz\";\n for ($i = 1; $i < 20; $i++) {\n\n $post = new Post();\n \n $post->title =\"${i} posts\";\n $post->author_id = 1;\n $post->read_more = substr($content,0,120);\n $post->content = $content;\n \n $post->save();\n \n $maxComments = mt_rand(3, 15);\n \n \n for($j = 0;$j<=$maxComments;$j++){\n \n $comment = new \\App\\Model\\Comment();\n $comment->commenter = 'no name';\n $comment->comment = substr($content, 0,120);\n $comment->email = 'xyz@gmail.com';\n $comment->approved = 1;\n $post->comments()->save($comment);\n $post->increment('comment_count');\n \n \n }\n }\n }", "function audioman_generate_post_array( $post_type = 'post' ) {\n\t$output = array();\n\t$posts = get_posts( array(\n\t\t'post_type' => $post_type,\n\t\t'post_status' => 'publish',\n\t\t'suppress_filters' => false,\n\t\t'posts_per_page' => -1,\n\t\t)\n\t);\n\n\t$output['0']= esc_html__( '-- Select --', 'audioman' );\n\n\tforeach ( $posts as $post ) {\n\t\t$output[ $post->ID ] = ! empty( $post->post_title ) ? $post->post_title : sprintf( __( '#%d (no title)', 'audioman' ), $post->ID );\n\t}\n\n\treturn $output;\n}", "function _wp_get_post_revision_version($revision)\n {\n }", "public function register_revision_routes( $routes ) {\n\t\t$routes[ $this->base . '/(?P<id>\\d+)/revisions' ] = array(\n\t\t\tarray( array( $this, 'get_revisions' ), WP_JSON_Server::READABLE ),\n\t\t);\n\t\treturn $routes;\n\t}", "public function revisionOverview(PrintArticleInterface $print_article) {\n $account = $this->currentUser();\n $langcode = $print_article->language()->getId();\n $langname = $print_article->language()->getName();\n $languages = $print_article->getTranslationLanguages();\n $has_translations = (count($languages) > 1);\n $print_article_storage = $this->entityManager()\n ->getStorage('print_article');\n\n $build['#title'] = $has_translations ? $this->t('@langname revisions for %title', [\n '@langname' => $langname,\n '%title' => $print_article->label(),\n ]) : $this->t('Revisions for %title', ['%title' => $print_article->label()]);\n $header = [$this->t('Revision'), $this->t('Operations')];\n\n $revert_permission = (($account->hasPermission(\"revert all print article revisions\") || $account->hasPermission('administer print article entities')));\n $delete_permission = (($account->hasPermission(\"delete all print article revisions\") || $account->hasPermission('administer print article entities')));\n\n $rows = [];\n\n $vids = $print_article_storage->revisionIds($print_article);\n\n $latest_revision = TRUE;\n\n foreach (array_reverse($vids) as $vid) {\n /** @var \\Drupal\\thunder_print\\PrintArticleInterface $revision */\n $revision = $print_article_storage->loadRevision($vid);\n // Only show revisions that are affected by the language that is being\n // displayed.\n if ($revision->hasTranslation($langcode) && $revision->getTranslation($langcode)->isRevisionTranslationAffected()) {\n $username = [\n '#theme' => 'username',\n '#account' => $revision->getRevisionUser(),\n ];\n\n // Use revision link to link to revisions that are not active.\n $date = $this->dateFormatter->format($revision->revision_created->value, 'short');\n if ($vid != $print_article->getRevisionId()) {\n $link = $this->l($date, new Url('entity.print_article.revision', [\n 'print_article' => $print_article->id(),\n 'print_article_revision' => $vid,\n ]));\n }\n else {\n $link = $print_article->link($date);\n }\n\n $row = [];\n $column = [\n 'data' => [\n '#type' => 'inline_template',\n '#template' => '{% trans %}{{ date }} by {{ username }}{% endtrans %}{% if message %}<p class=\"revision-log\">{{ message }}</p>{% endif %}',\n '#context' => [\n 'date' => $link,\n 'username' => $this->renderer->renderPlain($username),\n 'message' => [\n '#markup' => $revision->revision_log_message->value,\n '#allowed_tags' => Xss::getHtmlTagList(),\n ],\n ],\n ],\n ];\n $row[] = $column;\n\n if ($latest_revision) {\n $row[] = [\n 'data' => [\n '#prefix' => '<em>',\n '#markup' => $this->t('Current revision'),\n '#suffix' => '</em>',\n ],\n ];\n foreach ($row as &$current) {\n $current['class'] = ['revision-current'];\n }\n $latest_revision = FALSE;\n }\n else {\n $links = [];\n if ($revert_permission) {\n $links['revert'] = [\n 'title' => $this->t('Revert'),\n 'url' => $has_translations ? Url::fromRoute('entity.print_article.translation_revert', [\n 'print_article' => $print_article->id(),\n 'print_article_revision' => $vid,\n 'langcode' => $langcode,\n ]) : Url::fromRoute('entity.print_article.revision_revert', [\n 'print_article' => $print_article->id(),\n 'print_article_revision' => $vid,\n ]),\n ];\n }\n\n if ($delete_permission) {\n $links['delete'] = [\n 'title' => $this->t('Delete'),\n 'url' => Url::fromRoute('entity.print_article.revision_delete', [\n 'print_article' => $print_article->id(),\n 'print_article_revision' => $vid,\n ]),\n ];\n }\n\n $row[] = [\n 'data' => [\n '#type' => 'operations',\n '#links' => $links,\n ],\n ];\n }\n\n $rows[] = $row;\n }\n }\n\n $build['print_article_revisions_table'] = [\n '#theme' => 'table',\n '#rows' => $rows,\n '#header' => $header,\n ];\n\n return $build;\n }", "private function supports_revisions() {\n\n\t\t$supports_revisions = array();\n\n\t\tforeach ( get_post_types() as $post_type ) {\n\t\t\tif ( post_type_supports( $post_type, 'revisions' ) ) {\n\t\t\t\t$supports_revisions[] = $post_type;\n\t\t\t}\n\t\t}\n\n\t\treturn $supports_revisions;\n\n\t}", "private function supports_revisions() {\n\n\t\t$supports_revisions = array();\n\n\t\tforeach ( get_post_types() as $post_type ) {\n\t\t\tif ( post_type_supports( $post_type, 'revisions' ) ) {\n\t\t\t\t$supports_revisions[] = $post_type;\n\t\t\t}\n\t\t}\n\n\t\treturn $supports_revisions;\n\n\t}", "public function kiwip_action_delete_revisions_adm_msg(){\n\t\tif(current_user_can('manage_options')){\n\t \techo '<div id=\"message\" class=\"updated fade\"><p><strong>All posts revisions have been deleted correctly.</strong></p></div>';\n\t }\n\t}", "function transfer_pages() {\n\tglobal $post;\n\t$args = [\n\t\t'post_type' => 'page',\n\t\t'posts_per_page' => -1,\n\t\t'post_status' => 'any',\n\t\t'meta_key' => '_cfct_build_data_backup',\n\t\t'meta_compare' => 'NOT EXISTS',\n\t];\n\n\t$posts = get_posts($args);\n\n\tvar_dump(count($posts));\n\n\t$i = 0;\n\tforeach ($posts as $post) {\n\t\tsetup_postdata($post);\n\t\tvar_dump($post->post_title);\n\t\ttransform_meta_to_elementor();\n\t\t$i++;\n\t\tif($i > 30)\n\t\t\tbreak;\n\t}\n\n\twp_reset_postdata();\n}", "public function getRevisions(): array\n {\n return $this->revs;\n }", "function wp_restore_post_revision($post_id, $revision_id)\n {\n }", "function control() {\r\n $options = get_option('ace_widget_recent_posts');\r\n \r\n if ( !is_array($options) )\r\n $options = array('title'=>'',\r\n\t\t 'count' => $this->count,\r\n\t\t 'hierarchical' => $this->hierarchical,\r\n\t\t 'dropdown' => $this->dropdown );\r\n \r\n \r\n if ( !empty($_POST['ace-recent-posts-submit']) ) \r\n {\r\n \r\n\t\t\t$options['title'] = trim(strip_tags(stripslashes($_POST['ace-recent-posts-title'])));\r\n\t\t\t$options['number'] = (int) $_POST['ace-recent-posts-number'];\r\n\t\t\t\r\n\t\t\tif ($options['number'] > 15) $options['number'] = 15;//The limit\r\n\r\n\t\t update_option('ace_widget_recent_posts', $options);\r\n } \r\n\r\n\t\t$title = attribute_escape( $options['title'] );\r\n\t\t$number = (int) $options['number'];\r\n\r\n\r\n?>\r\n\t\t\t<p>\r\n\t\t\t\t<label for=\"recent-posts-title\">\r\n\t\t\t\t\t<?php _e( 'Title:' ); ?>\r\n\t\t\t\t\t<input class=\"widefat\" id=\"recent-posts-title\" name=\"ace-recent-posts-title\" type=\"text\" value=\"<?php echo $title; ?>\" />\r\n\t\t\t\t</label>\r\n\t\t\t</p>\r\n\r\n\t\t\t<p>\r\n\t\t\t\t<label for=\"recent-posts-number\"><?php _e('Number of posts to show:'); ?> <input style=\"width: 25px; text-align: center;\" id=\"recent-posts-number\" name=\"ace-recent-posts-number\" type=\"text\" value=\"<?php echo $number; ?>\" />\r\n\t\t\t\t</label>\r\n\t\t\t\t<br />\r\n\t\t\t\t<small><?php _e('(at most 15)'); ?></small>\r\n\t\t\t</p>\r\n\r\n\t\t\t<input type=\"hidden\" name=\"ace-recent-posts-submit\" value=\"1\" />\r\n<?php\r\n }", "public function generate_post_type() {\n\t\t$doc_types = get_option( 'ibx_docs_type' );\n\t\t$doc_types = maybe_unserialize( $doc_types );\n\n\t\tif ( empty( $doc_types ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\t$count = 1;\n\n\t\tforeach ( $doc_types as $option ) {\n\t\t\t$labels = array(\n\t\t\t\t'name' => _x( $option['title'], 'Post type general name', 'plugintest' ),\n\t\t\t\t'singular_name' => _x( $option['title'], 'Post type singular name', 'plugintest' ),\n\t\t\t);\n\n\t\t\t$args = array(\n\t\t\t\t'labels' => $labels,\n\t\t\t\t'public' => true,\n\t\t\t\t'publicly_queryable' => true,\n\t\t\t\t'show_ui' => true,\n\t\t\t\t'show_in_menu' => true,\n\t\t\t\t'query_var' => true,\n\t\t\t\t'rewrite' => array( 'slug' => $option['slug'] ),\n\t\t\t\t'capability_type' => 'post',\n\t\t\t\t'hierarchical' => false,\n\t\t\t\t'has_archive' => true,\n\t\t\t);\n\n\t\t\tregister_post_type( $option['slug'], $args );\n\t\t\t// add_rewrite_rule( '^docs/' . $option['slug'] . '/([^/]+)/?$', 'index.php?post_type=' . $option['slug'] . '&name=$matches[1]', 'top' );\n\t\t\t//add_rewrite_rule( '^docs/' . $option['slug'], 'index.php?post_type=' . $option['slug'], 'top' );\n\t\t\tadd_rewrite_rule( 'ibx/' . $option['slug'] . '/(.*)/?$', 'index.php?' . $option['slug'] . '=$matches[1]', 'top' );\n\t\t\tadd_rewrite_rule( 'ibx/' . $option['slug'], 'index.php?post_type=' . $option['slug'], 'top' );\n\n\t\t\t$category_labels = array(\n\t\t\t\t'name' => esc_html__( 'Categories', 'plugintest' ),\n\t\t\t\t'singular_name' => esc_html__( 'Category', 'plugintest' ),\n\t\t\t);\n\n\t\t\t$category_args = array(\n\t\t\t\t'hierarchical' => true,\n\t\t\t\t'public' => true,\n\t\t\t\t'labels' => $category_labels,\n\t\t\t\t'show_ui' => true,\n\t\t\t\t'show_admin_column' => true,\n\t\t\t\t'has_archive' => true,\n\t\t\t\t'rewrite' => array( 'slug' => 'category-' . $count ),\n\t\t\t);\n\n\t\t\tregister_taxonomy( 'cat-' . $option['slug'], $option['slug'], $category_args );\n\t\t\tadd_rewrite_rule( 'ibx/cat-' . $option['slug'] . '/(.*)/?$', 'index.php?cat-' . $option['slug'] . '=$matches[1]', 'top' );\n\n\t\t\t$count++;\n\t\t}\n\t\tflush_rewrite_rules();\n\t}", "public function revisions()\n {\n return $this->morphMany(Revision::class, 'revisionable');\n }", "function mt_add_pages(){\r\n\t// Add a new submenu under Options:\r\n\tadd_options_page('theVerse', 'theVerse', 8, 'theverse', 'mt_options_page');\r\n}", "public function getRevisions()\n {\n /** @var WebApplication|ConsoleApplication $this */\n return $this->get('revisions');\n }", "function wp_prepare_revisions_for_js($post, $selected_revision_id, $from = \\null)\n {\n }", "public function run()\n {\n for($i = 1; $i <= 10; $i++) {\n\n $newPost = new Post();\n\n $newPost->title = 'Articolo ' . $i;\n $newPost->slug = Str::slug($newPost->title, '-');\n $newPost->content = 'Lorem, ipsum dolor sit amet consectetur adipisicing elit. Placeat repellendus esse ratione saepe hic reiciendis quibusdam maxime amet corrupti vel tempore provident corporis, non reprehenderit laudantium mollitia magnam possimus iste id perferendis sunt. Nulla doloremque vel recusandae architecto voluptatum magni corrupti et. Voluptatem recusandae beatae aspernatur blanditiis commodi? Adipisci vero rem cupiditate aliquid fugit iste, quod perspiciatis eveniet tempora labore, iusto minima similique harum cumque. Ab sapiente omnis ullam accusamus mollitia tempore tempora, aut quaerat rem optio nam delectus placeat odio officiis non voluptatum ratione, esse commodi quidem consequatur repudiandae, quod perferendis? Molestiae nemo dolorum culpa delectus itaque quis earum?';\n $newPost->save();\n }\n }", "function Get_revisions($query = \"select * from Revisions\"){\n\t\t$sqlResult = sqlsrv_query($this->conn,$query);\n\t\t$temp =\"\";\n\t\twhile ($row = sqlsrv_fetch_array($sqlResult))\n\t\t{\n\t\t\t$temp .= '{\"Id\":\"'.$row['Id'].'\",';\n\t\t\t$temp .= '\"Revision\": \"'.$row['Revision'].'\",';\n\t\t\t$temp .= '\"Status\": \"'.$row['Status'].'\",';\n\t\t\t$temp .= '\"Active\": \"'.$row['Active'].'\",';\n\t\t\t$temp .= '\"Path\": \"'.$row['Active'].'\",';\n\t\t\t$temp .= '\"Dept\": \"'.$row['Dept'].'\"},';\n\n\t\t}\n\t\t$temp = substr($temp,0, -1);\n\t\t$json ='{\"All\":\"algo\",\"dataset\":[ '.$temp.']}';\n\t\tprint $json;\n\t\t$object = json_decode($json);\n\t\techo $object;\n\t\treturn $object;\n\t\t\n\t}", "function wp_get_revision_ui_diff($post, $compare_from, $compare_to)\n {\n }", "function generate($type, $data = NULL, $content = NULL) {\n\t\t$registerLoginButtons = $_SERVER['DOCUMENT_ROOT'].'/resources/markup/account_panel/register_login.html';\n\t\t$adminLogoutButtons = $_SERVER['DOCUMENT_ROOT'].'/resources/markup/account_panel/admin_logout.html';\n\t\t$accountLogoutButtons = $_SERVER['DOCUMENT_ROOT'].'/resources/markup/account_panel/account_logout.html';\n\t\t$posts = $_SERVER['DOCUMENT_ROOT'].'/database/posts.txt';\n\n\t\t$Backend = new Backend(); //create object to run backend processes\n\n\t\t$this->content = NULL;\t\t\t\t\n\t\tswitch ($type) {\n\t\t\tcase 'posts':\n\t\t\tcase 'posts_page':\n\t\t\tcase 'posts_admin':\n\t\t\t\t$this->handle = fopen($posts, 'r');\n\t\t\t\twhile($line = fgets($this->handle)) {\n\t\t\t\t\t$postId = explode('::', $line); //[0] = title, [1] = id, [2] = link, [3] = type, [4] = author\n\n foreach ($postId as $element)\n $element = str_replace(\"\\r\\n\", \"\", $element);\n //$postId[1] = str_replace(\"\\r\\n\",\"\",$postId[1]);\n\n\t\t\t\t\tswitch ($type) {\n\t\t\t\t\t\tcase 'posts':\n $subText = $postId[3];\n switch ($subText) {\n case 'image_link':\n $subText = 'Image';\n break;\n case 'text_area':\n $subText = 'Text';\n break;\n case 'link':\n $subText = 'Link';\n break;\n }\n\t\t\t\t\t\t\t$this->content = $this->content.'<a href=\"/post/'.$postId[1].'/\" class=\"list-group-item\"><h4 class=\"list-group-item-heading\">'.$postId[0].'</h4><p class=\"list-group-item-text\">'.$subText.'</p></a>';\n\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\tcase 'posts_admin':\n\t\t\t\t\t\t\t$this->content = $this->content.'<a href=\"/post/'.$postId[1].'/\" class=\"list-group-item\"><h4 class=\"list-group-item-heading\">'.$postId[0].'</h4><p class=\"list-group-item-text\"><form id=\"submit\" action=\"/admin/remove/\" method=\"post\"><input type=\"hidden\" name=\"id\" value='.$postId[1].'><input type=\"hidden\" name=\"type\" value=\"posts\"><button type=\"submit\" class=\"btn btn-default btn-xs\">Remove</button></form></p></a>';\n\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\tcase 'posts_page':\n if (strcmp($data, $postId[1]) == 0) {\n\t\t\t\t\t\t\t $this->content = $Backend->generatePostContent($postId);\n global $postFound;\n $postFound = TRUE;\n break 2;\n }\n $this->content = '<h2 class=\"center\">Post not found.</h2>';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\tfclose($this->handle);\n\t\t \tbreak;\n\t\t\tcase 'account_panel':\n\t\t\t\tif (!isset($_SESSION))\n\t\t\t\t\tsession_start();\n\n\t\t\t\tif (isset ($_SESSION['userString'])) {\n\t\t\t\t\t$this->content = '<body>'.$_SESSION['userString'].'</body>';\n\t\t\t\t\tswitch ($this->levelCheck($_SESSION['userLevel'])) {\n\t\t\t\t\t\tcase 2: //user is an admin\n\t\t\t\t\t\t\t$this->content = $this->content.file_get_contents($adminLogoutButtons);\n\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\tcase 1:\n\t\t\t\t\t\t\t$this->content = $this->content.file_get_contents($accountLogoutButtons);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse //no one is logged in\n\t\t\t\t\t$this->content = $this->content.file_get_contents($registerLoginButtons);\n\t\t \tbreak;\n\n\t\t\tcase 'accounts_admin': //list the accounts with admin options to remove\n\t\t\t\t$accounts = $_SERVER['DOCUMENT_ROOT'].'/database/accounts.txt';\n\t\t\t\t$this->handle = fopen($accounts, 'r');\n\n\t\t\t\twhile($line = fgets($this->handle)) {\n\t\t\t\t\t$credentials = explode('::', $line);\n\n\t\t\t\t\tforeach ($credentials as $element)\n\t\t\t\t\t\t$element = str_replace(\"\\r\\n\", \"\", $element);\n\n\t\t\t\t\t$this->content = $this->content.'<a href=\"\" class=\"list-group-item\"><h4 class=\"list-group-item-heading\">'.$credentials[0].'</h4><p class=\"list-group-item-text\"><form id=\"submit\" action=\"/admin/remove/\" method=\"post\"><input type=\"hidden\" name=\"username\" value=\"'.$credentials[0].'\"><input type=\"hidden\" name=\"type\" value=\"accounts\"><button type=\"submit\" class=\"btn btn-default btn-xs\">Remove</button></form></p></a>';\n\t\t\t\t}\n\t\t\t break;\n\n case 'notices_admin':\n $notices = $_SERVER['DOCUMENT_ROOT'].'/database/notices.txt';\n $this->handle = fopen($notices,'r');\n\n while($line = fgets($this->handle)) {\n $this->content = $this->content.$line.'<form id=\"submit\" action=\"/admin/remove/\" method=\"post\"><input type=\"hidden\" name=\"type\" value=\"notices\"><input type=\"hidden\" name=\"notice\" value=\"'.$line.'\"><button type=\"submit\" class=\"btn btn-default btn-xs\">Remove</button></form>';\n }\n fclose($this->handle);\n break;\n\n case 'comments':\n $this->handle = fopen($posts, 'r');\n while($line = fgets($this->handle)) {\n $postId = explode('::', $line); //[0] = title, [1] = id, [2] = link, [3] = type, [4] = author\n foreach ($postId as $element)\n $element = str_replace(\"\\r\\n\", \"\", $element);\n if (strcmp($data, $postId[1]) == 0) {\n $this->content = $this->content.$Backend->generateComments($postId); //postid array and post id string\n }\n }\n fclose($this->handle);\n break;\n\n case 'notices':\n $notices = $_SERVER['DOCUMENT_ROOT'].'/database/notices.txt';\n $this->handle = fopen($notices,'r');\n\n while($line = fgets($this->handle)) {\n $this->content = $this->content.$this->generateError($line);\n }\n fclose($this->handle);\n break;\n\t\t}\n\t\treturn $this->content;\n\n\t exit();\n\t}", "function fl_export_wp( $post_ids = array() ) {}", "public function setRevision($value) {}", "public function run()\n {\n\n $posts = \\App\\Models\\Post::all();\n if($posts->count() == 0){\n $this->command->info('please create some posts');\n return ;\n }\n $nbrComments= (int)$this->command->ask(\"how many of comments you want generate ?\" , 100);\n \\App\\Models\\Comment::factory($nbrComments)->make()->each(function($comment) use ($posts){\n $comment->post_id= $posts->random()->id ;\n $comment->save();\n });\n }", "private function runPost()\n {\n $numDraftPost = (int) $this->ask('How many records do you want to create for the draft posts table?');\n $numPublicPost = (int) $this->ask('How many records do you want to create for the public posts table?');\n\n $sum = (int) ($numDraftPost + $numPublicPost);\n\n for ($i = 0; $i < $sum; $i++) {\n factory(Post::class)->create(\n [\n 'publication_status' => ($i < $numDraftPost) ? 'draft' : 'public',\n ]\n );\n }\n }", "function node_revision_overview($node) {\n drupal_set_title(t('Revisions for %title', array('%title' => $node->title)));\n\n $header = array(t('Revision'), array('data' => t('Operations'), 'colspan' => 2));\n\n $revisions = node_revision_list($node);\n\n $rows = array();\n $revert_permission = FALSE;\n if ((user_access('revert revisions') || user_access('administer nodes')) && node_access('update', $node)) {\n $revert_permission = TRUE;\n }\n $delete_permission = FALSE;\n if ((user_access('delete revisions') || user_access('administer nodes')) && node_access('delete', $node)) {\n $delete_permission = TRUE;\n }\n foreach ($revisions as $revision) {\n $row = array();\n $operations = array();\n\n if ($revision->current_vid > 0) {\n $row[] = array('data' => t('!date by !username', array('!date' => l(format_date($revision->timestamp, 'small'), \"node/$node->nid\"), '!username' => theme('username', $revision)))\n . (($revision->log != '') ? '<p class=\"revision-log\">'. filter_xss($revision->log) .'</p>' : ''),\n 'class' => 'revision-current');\n $operations[] = array('data' => theme('placeholder', t('current revision')), 'class' => 'revision-current', 'colspan' => 2);\n }\n else {\n $row[] = t('!date by !username', array('!date' => l(format_date($revision->timestamp, 'small'), \"node/$node->nid/revisions/$revision->vid/view\"), '!username' => theme('username', $revision)))\n . (($revision->log != '') ? '<p class=\"revision-log\">'. filter_xss($revision->log) .'</p>' : '');\n if ($revert_permission) {\n $operations[] = l(t('revert'), \"node/$node->nid/revisions/$revision->vid/revert\");\n }\n if ($delete_permission) {\n $operations[] = l(t('delete'), \"node/$node->nid/revisions/$revision->vid/delete\");\n }\n }\n $rows[] = array_merge($row, $operations);\n }\n\n return theme('table', $header, $rows);\n}", "function wp_post_revision_fields( $fields, $post = null ) {\n\n\t\t\t// validate page\n\t\t\tif ( acf_is_screen( 'revision' ) || acf_is_ajax( 'get-revision-diffs' ) ) {\n\n\t\t\t\t// bail early if is restoring\n\t\t\t\tif ( acf_maybe_get_GET( 'action' ) === 'restore' ) {\n\t\t\t\t\treturn $fields;\n\t\t\t\t}\n\n\t\t\t\t// allow\n\n\t\t\t} else {\n\n\t\t\t\t// bail early (most likely saving a post)\n\t\t\t\treturn $fields;\n\n\t\t\t}\n\n\t\t\t// vars\n\t\t\t$append = array();\n\t\t\t$order = array();\n\t\t\t$post_id = acf_maybe_get( $post, 'ID' );\n\n\t\t\t// compatibility with WP < 4.5 (test)\n\t\t\tif ( ! $post_id ) {\n\n\t\t\t\tglobal $post;\n\t\t\t\t$post_id = $post->ID;\n\n\t\t\t}\n\n\t\t\t// get all postmeta\n\t\t\t$meta = get_post_meta( $post_id );\n\n\t\t\t// bail early if no meta\n\t\t\tif ( ! $meta ) {\n\t\t\t\treturn $fields;\n\t\t\t}\n\n\t\t\t// loop\n\t\t\tforeach ( $meta as $name => $value ) {\n\n\t\t\t\t// attempt to find key value\n\t\t\t\t$key = acf_maybe_get( $meta, '_' . $name );\n\n\t\t\t\t// bail early if no key\n\t\t\t\tif ( ! $key ) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\t// update vars\n\t\t\t\t$value = $value[0];\n\t\t\t\t$key = $key[0];\n\n\t\t\t\t// Load field.\n\t\t\t\t$field = acf_get_field( $key );\n\t\t\t\tif ( ! $field ) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\t// get field\n\t\t\t\t$field_title = $field['label'] . ' (' . $name . ')';\n\t\t\t\t$field_order = $field['menu_order'];\n\t\t\t\t$ancestors = acf_get_field_ancestors( $field );\n\n\t\t\t\t// ancestors\n\t\t\t\tif ( ! empty( $ancestors ) ) {\n\n\t\t\t\t\t// vars\n\t\t\t\t\t$count = count( $ancestors );\n\t\t\t\t\t$oldest = acf_get_field( $ancestors[ $count - 1 ] );\n\n\t\t\t\t\t// update vars\n\t\t\t\t\t$field_title = str_repeat( '- ', $count ) . $field_title;\n\t\t\t\t\t$field_order = $oldest['menu_order'] . '.1';\n\n\t\t\t\t}\n\n\t\t\t\t// append\n\t\t\t\t$append[ $name ] = $field_title;\n\t\t\t\t$order[ $name ] = $field_order;\n\n\t\t\t\t// hook into specific revision field filter and return local value\n\t\t\t\tadd_filter( \"_wp_post_revision_field_{$name}\", array( $this, 'wp_post_revision_field' ), 10, 4 );\n\n\t\t\t}\n\n\t\t\t// append\n\t\t\tif ( ! empty( $append ) ) {\n\n\t\t\t\t// vars\n\t\t\t\t$prefix = '_';\n\n\t\t\t\t// add prefix\n\t\t\t\t$append = acf_add_array_key_prefix( $append, $prefix );\n\t\t\t\t$order = acf_add_array_key_prefix( $order, $prefix );\n\n\t\t\t\t// sort by name (orders sub field values correctly)\n\t\t\t\tarray_multisort( $order, $append );\n\n\t\t\t\t// remove prefix\n\t\t\t\t$append = acf_remove_array_key_prefix( $append, $prefix );\n\n\t\t\t\t// append\n\t\t\t\t$fields = $fields + $append;\n\n\t\t\t}\n\n\t\t\t// return\n\t\t\treturn $fields;\n\n\t\t}", "public function getRevision() {}", "public function SaveArticleRevisions() {\n\t\t\ttry {\n\t\t\t\t// Update any fields for controls that have been created\n\t\t\t\tif ($this->lstArticle) $this->objArticleRevisions->ArticleId = $this->lstArticle->SelectedValue;\n\t\t\t\tif ($this->lstVisitor) $this->objArticleRevisions->VisitorId = $this->lstVisitor->SelectedValue;\n\n\t\t\t\t// Update any UniqueReverseReferences (if any) for controls that have been created for it\n\t\t\t\tif ($this->lstArticleContent) $this->objArticleRevisions->ArticleContent = ArticleContent::Load($this->lstArticleContent->SelectedValue);\n\n\t\t\t\t// Save the ArticleRevisions object\n\t\t\t\t$this->objArticleRevisions->Save();\n\n\t\t\t\t// Finally, update any ManyToManyReferences (if any)\n\t\t\t} catch (QCallerException $objExc) {\n\t\t\t\t$objExc->IncrementOffset();\n\t\t\t\tthrow $objExc;\n\t\t\t}\n\t\t}", "function wp_dropdown_posts($args = '', $name='post_id') {\n\t$defaults = array(\n\t\t'depth' => 0, \n\t\t'post_parent' => 0,\n\t\t'selected' => 0, \n\t\t'echo' => 1,\n\t\t//'name' => 'page_id', // With this line, get_posts() doesn't work properly. \n\t\t'id' => '',\n\t\t'show_option_none' => '', 'show_option_no_change' => '',\n\t\t'option_none_value' => '', \n\t\t'post_type' => 'post', 'post_status' => 'publish',\n\t\t'suppress_filters' => false,\n\t\t'numberposts' => -1\n\t);\n\n\t$r = wp_parse_args( $args, $defaults );\n\textract( $r, EXTR_SKIP );\n\n\t$pages = get_posts($r);\n\t$output = '';\n\t// Back-compat with old system where both id and name were based on $name argument\n\tif ( empty($id) )\n\t\t$id = $name;\n\n\tif ( ! empty($pages) ) {\n\t\t$output = \"<select name='\" . esc_attr( $name ) . \"' id='\" . esc_attr( $id ) . \"'>\\n\";\n\t\tif ( $show_option_no_change )\n\t\t\t$output .= \"\\t<option value=\\\"-1\\\">$show_option_no_change</option>\";\n\t\tif ( $show_option_none )\n\t\t\t$output .= \"\\t<option value=\\\"\" . esc_attr($option_none_value) . \"\\\">$show_option_none</option>\\n\";\n\t\t$output .= walk_page_dropdown_tree($pages, $depth, $r);\n\t\t$output .= \"</select>\\n\";\n\t}\n\n\t$output = apply_filters('wp_dropdown_posts', $output);\n\n\tif ( $echo )\n\t\techo $output;\n\n\treturn $output;\n}", "public function run()\n {\n for($i=0; $i<10; $i++){\n $new_post= new Post();\n $new_post->title = \"Post numero: \" .($i + 1);\n $new_post->slug = Str::slug($new_post->title, '-');\n $new_post->content= ($i + 1). \"Lorem ipsum dolor sit amet consectetur, adipisicing elit. Praesentium exercitationem veritatis, cumque eligendi similique, \n itaque sint eaque alias illo consequuntur nesciunt repellat laudantium eveniet quae voluptate reprehenderit error odit necessitatibus?\";\n $new_post->save();\n }\n }", "function pages_handle_on_new_revision($page, $version, $by) {\n if(instance_of($page, 'Page')) {\n $page->sendToSubscribers('pages/new_revision', array(\n 'created_by_url' => $by->getViewUrl(), \n 'created_by_name' => $by->getDisplayName(), \n 'revision_num' => $page->getRevisionNum(), \n 'old_url' => $version->getViewUrl(), \n 'old_name' => $version->getName(), \n 'old_body' => $version->getFormattedBody(), \n 'new_url' => $page->getViewUrl(), \n 'new_name' => $page->getName(), \n 'new_body' => $page->getFormattedBody(),\n ), $by->getId());\n } // if\n }", "public function revisionIds(MentorInterface $entity);", "function wp_post_revision_title($revision, $link = \\true)\n {\n }", "public function testPage() {\n $build = [\n 'view_arg1' => [\n '#prefix' => '<div class=\"view-test-form-multiple-1\">',\n '#suffix' => '</div>',\n '#type' => 'view',\n '#name' => 'test_form_multiple',\n '#display_id' => 'default',\n '#arguments' => ['arg1'],\n '#embed' => TRUE,\n ],\n 'view_arg2' => [\n '#prefix' => '<div class=\"view-test-form-multiple-2\">',\n '#suffix' => '</div>',\n '#type' => 'view',\n '#name' => 'test_form_multiple',\n '#display_id' => 'default',\n '#arguments' => ['arg2'],\n '#embed' => TRUE,\n ],\n ];\n return $build;\n }", "public function DeleteArticleRevisions() {\n\t\t\t$this->objArticleRevisions->Delete();\n\t\t}", "function blogslog_post_choices() {\n $posts = get_posts( array( 'numberposts' => -1 ) );\n $choices = array();\n $choices[0] = esc_html__( '--Select--', 'blogslog' );\n foreach ( $posts as $post ) {\n $choices[ $post->ID ] = $post->post_title;\n }\n return $choices;\n}", "public function run()\n {\n /**\n * 1\n */\n Prive::create([\n 'name' => 'superuser',\n 'discription' => 'Суперпользователь'\n ]);\n \n /**\n * 2\n */\n Prive::create([\n 'name' => 'admin_access',\n 'discription' => 'Вход в админку'\n ]);\n\n /**\n * 3\n */\n Prive::create([\n 'name' => 'user_index',\n 'discription' => 'Просмотр пользователей'\n ]);\n\n /**\n * 4\n */\n Prive::create([\n 'name' => 'user_create',\n 'discription' => 'Создание пользователей'\n ]);\n \n /**\n * 5\n */\n Prive::create([\n 'name' => 'user_update',\n 'discription' => 'Редактирование пользователей'\n ]);\n \n /**\n * 6\n */\n Prive::create([\n 'name' => 'user_delete',\n 'discription' => 'Удаление пользователей'\n ]);\n \n /**\n * 7\n */\n Prive::create([\n 'name' => 'prive_update',\n 'discription' => 'Редактирование прав'\n ]);\n\n /**\n * 8\n */\n Prive::create([\n 'name' => 'page_index',\n 'discription' => 'Просмотр и сортировка страниц'\n ]);\n\n /**\n * 9\n */\n Prive::create([\n 'name' => 'page_create',\n 'discription' => 'Создание страниц'\n ]);\n\n /**\n * 10\n */\n Prive::create([\n 'name' => 'page_update',\n 'discription' => 'Редактирование страниц'\n ]);\n\n /**\n * 11\n */\n Prive::create([\n 'name' => 'page_delete',\n 'discription' => 'Удаление страниц'\n ]);\n\n /**\n * 12\n */\n Prive::create([\n 'name' => 'block_create',\n 'discription' => 'Создание блоков'\n ]);\n\n /**\n * 13\n */\n Prive::create([\n 'name' => 'block_update',\n 'discription' => 'Редактирование блоков'\n ]);\n\n /**\n * 14\n */\n Prive::create([\n 'name' => 'block_delete',\n 'discription' => 'Удаление блоков'\n ]);\n\n /**\n * 15\n */\n Prive::create([\n 'name' => 'element_create',\n 'discription' => 'Создание элементов'\n ]);\n\n /**\n * 16\n */\n Prive::create([\n 'name' => 'element_update',\n 'discription' => 'Редактирование элементов'\n ]);\n\n /**\n * 17\n */\n Prive::create([\n 'name' => 'element_delete',\n 'discription' => 'Удаление элементов'\n ]);\n\n /**\n * 18\n */\n Prive::create([\n 'name' => 'review_index',\n 'discription' => 'Создание отзывов'\n ]);\n\n /**\n * 19\n */\n Prive::create([\n 'name' => 'review_create',\n 'discription' => 'Создание отзывов'\n ]);\n\n /**\n * 20\n */\n Prive::create([\n 'name' => 'review_update',\n 'discription' => 'Редактирование отзывов'\n ]);\n\n /**\n * 21\n */\n Prive::create([\n 'name' => 'review_delete',\n 'discription' => 'Удаление отзывов'\n ]);\n\n /**\n * 22\n */\n Prive::create([\n 'name' => 'message_index',\n 'discription' => 'Просмотр списка сообщений'\n ]);\n\n /**\n * 23\n */\n Prive::create([\n 'name' => 'message_show',\n 'discription' => 'Чтение сообщения'\n ]);\n\n /**\n * 24\n */\n Prive::create([\n 'name' => 'message_delete',\n 'discription' => 'Удаление сообщений'\n ]);\n\n /**\n * 25\n */\n Prive::create([\n 'name' => 'settings_update',\n 'discription' => 'Управление настройками сайта'\n ]);\n\n\n }", "public function run($options)\n\t{\n\t\tclass_exists('Blog_m') OR $this->load->model('blog/blog_m');\n\n\t\t// sets default number of posts to be shown\n\t\tempty($options['limit']) AND $options['limit'] = 5;\n\n\t\t// retrieve the records using the blog module's model\n\t\t$blog_widget = $this->blog_m->limit($options['limit'])->get_many_by(array('status' => 'live'));\n\n\t\t// returns the variables to be used within the widget's view\n\t\treturn array('blog_widget' => $blog_widget);\n\t}", "function sr_admin_actions() { \n\tadd_options_page(\"Standards Reader\", \"Standards Reader\", \"edit_published_posts\", \"sr_options\", \"sr_admin\");\n}", "public function __construct(Revisions $revisions)\n {\n parent::__construct();\n $this->revisions = $revisions;\n }", "function wp_post_revision_field($value, $field_name, $post = \\null, $direction = \\false)\n {\n }", "public function get_content_posts() {\r\n\t\tglobal $wpdb;\r\n\t\t$options = get_option( 'mf_timeline' );\r\n\t\t\r\n\t\tif( isset( $options['options']['wp']['content']) && !empty($options['options']['wp']['content'] ) ) {\t\t\t\r\n\t\t\t/**\r\n\t\t\t * // HACK\r\n\t\t\t * Wordpress $wpdb->prepare() doesn't handle passing multiple arrays to its values. So we have to merge them.\r\n\t\t\t * It is also unable to determine how many placeholders are needed for handling array values, so we have to work out how many we need.\r\n\t\t\t * To be blunt, this is crap and needs to be looked at by the Wordpress dev team.\r\n\t\t\t **/\r\n\t\t\t$post_types = array_keys( $options['options']['wp']['content'] );\r\n\t\t\t\r\n\t\t\tforeach( $post_types as $post_type ) {\r\n\t\t\t\t$post_types_escape[] = '%s';\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t$since = date('Y-m-01', strtotime('-1 months'));\r\n\t\t\t$sql = \"SELECT {$wpdb->posts}.ID AS id, {$wpdb->posts}.post_title AS title, {$wpdb->posts}.post_content AS content, {$wpdb->posts}.post_excerpt AS excerpt, {$wpdb->posts}.post_date AS date, {$wpdb->posts}.post_author AS author, {$wpdb->terms}.term_id AS term_id\r\n\t\t\t\tFROM `{$wpdb->posts}` \r\n\t\t\t\tINNER JOIN {$wpdb->term_relationships} ON ({$wpdb->posts}.ID = {$wpdb->term_relationships}.object_id) \r\n\t\t\t\tINNER JOIN {$wpdb->term_taxonomy} ON ({$wpdb->term_relationships}.term_taxonomy_id = $wpdb->term_taxonomy.term_taxonomy_id)\r\n\t\t\t\tINNER JOIN {$wpdb->terms} ON ({$wpdb->term_taxonomy}.term_id = {$wpdb->terms}.term_id)\r\n\t\t\t\tWHERE {$wpdb->posts}.post_status = 'publish' AND {$wpdb->posts}.post_date >= '$since'\r\n\t\t\t\tAND {$wpdb->posts}.post_type IN (\".implode(',', $post_types_escape).\")\";\r\n\t\t\t\r\n\t\t\t// Check if we are filtering the post types by hireachrical taxonomy terms\r\n\t\t\tif( isset( $options['options']['wp']['filter']['taxonomy'] ) && !empty( $options['options']['wp']['filter']['taxonomy'] ) ) {\r\n\t\t\t\t$term_ids = array_keys( $options['options']['wp']['filter']['taxonomy'] );\r\n\t\t\t\t\r\n\t\t\t\tforeach( $term_ids as $term_id ) {\r\n\t\t\t\t\t$term_ids_escape[] = '%d';\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// Check if we are filter the post types by non-hireachrical taxonomy terms\r\n\t\t\tif( isset($options['options']['wp']['filter']['term'] ) && !empty( $options['options']['wp']['filter']['term'] ) ) {\r\n\t\t\t\tforeach( $options['options']['wp']['filter']['term'] as $taxonomy_name=>$terms ) {\r\n\t\t\t\t\tforeach( explode( ',', $terms ) as $term ) {\r\n\t\t\t\t\t\t$the_term = get_term_by( 'slug', str_replace( ' ', '-', trim( $term ) ), $taxonomy_name );\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif( $the_term != false ) {\r\n\t\t\t\t\t\t\t$term_ids[] = $the_term->term_id;\r\n\t\t\t\t\t\t\t$term_ids_escape[] = '%d';\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// Append the filters to the SQL statement\r\n\t\t\tif( isset( $term_ids_escape ) && !empty( $term_ids_escape ) ) {\r\n\t\t\t\t$sql .= \"AND {$wpdb->terms}.term_id IN (\" . implode( ',', $term_ids_escape ) . \")\";\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t$sql .= \"GROUP BY {$wpdb->posts}.ID\";\r\n\t\t\t\r\n\t\t\t$query = $wpdb->prepare( $sql, array_merge( (array) $post_types, (array) $term_ids ) );\r\n\t\t\t$results = $wpdb->get_results( $query, 'ARRAY_A' );\r\n\t\t\t\r\n\t\t\tforeach($results as $post) {\r\n\t\t\t\t$date_group = date( 'F Y', strtotime( $post['date'] ) );\r\n\t\t\t\t$post['source'] = 'wp';\r\n\t\t\t\t$posts[$date_group][] = $post;\r\n\t\t\t}\r\n\t\t\r\n\t\t\treturn $posts;\r\n\t\t}\r\n\t\telse {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "public function run()\n\t{\n\t\t$content = 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. ';\n\n\t\tfor($i = 1; $i <= 20; $i++ )\n\t\t{\n\t\t\t$post = new Post;\n\t\t\t$post->title = \"Post no $i\";\n\t\t\t$post->read_more = substr($content, 0, 120);\n\t\t\t$post->content = $content;\n\t\t\t$post->save();\n\n\t\t\t$maxComments = mt_rand(3,15);\n\t\t\tfor($j = 1; $j <= $maxComments; $j++)\n\t\t\t{\n\t\t\t\t$comment = new Comment;\n\t\t\t\t$comment->commenter = 'xyz';\n\t\t\t\t$comment->comment = substr($content, 0, 120);\n\t\t\t\t$comment->email = 'xyz@xmail.com';\n\t\t\t\t$comment->approved = 1;\n\t\t\t\t$post->comments()->save($comment);\n\t\t\t\t$post->increment('comment_count');\n\t\t\t}\n\t\t}\n\t}", "function wps_recent_posts() {\r\n echo '<ol>'.\"\\n\";\r\n\t\t global $post;\r\n\t\t $args = array( 'numberposts' => 50, 'post_type' => array('hotel', 'restaurant', 'shop', 'activity', 'itinerary', 'library', 'article'), 'orderby' => 'date', 'order' => 'DESC' );\r\n\t\t $myposts = get_posts( $args );\r\n\t\t\t\tforeach( $myposts as $post ) : setup_postdata($post);\r\n\t\t\t\t\t$destinationstree = destinationstree();\r\n\t\t\t\t\t$dest = $destinationstree['dest'];\r\n\t\t\t\t\t$posttype = get_post_type( $post );\r\n\t\t\t\t\t$postobj = get_post_type_object( $posttype );\r\n\t\t\t\t\t$postobjname = $postobj->labels->singular_name;\r\n\t\t\t\t\techo '<li><h4>'.get_the_title().' | <span class=\"details\"><a href=\"/wp-admin/post.php?post='.$post->ID.'&action=edit\">E</a> | <a target=\"_blank\" href=\"'.get_permalink().'\">V</a> | '.$dest->name.' | '.$postobjname.' | '.get_the_author_meta( 'display_name', $post->post_author ).' | <abbr>'.get_the_date('n/d/y').'</abbr></span></h4></li>'.\"\\n\";\r\n\t\t \t\tendforeach;\r\n echo '</ol>'.\"\\n\";\r\n}" ]
[ "0.7513711", "0.5894565", "0.57371473", "0.5715674", "0.5692922", "0.5621847", "0.55517787", "0.54163873", "0.5381741", "0.53710145", "0.5245642", "0.5210281", "0.5173635", "0.5151525", "0.50716025", "0.50613564", "0.50142866", "0.5010523", "0.49938467", "0.4987133", "0.49240485", "0.48725545", "0.48159954", "0.48019916", "0.4800634", "0.4788892", "0.47832182", "0.47831452", "0.4783141", "0.47746664", "0.47721583", "0.47584742", "0.4737987", "0.47213516", "0.47008258", "0.4674864", "0.46390048", "0.46366236", "0.46053135", "0.4596946", "0.4590162", "0.4573196", "0.4569076", "0.45547703", "0.45410502", "0.4539052", "0.45312965", "0.45088845", "0.45062202", "0.4504525", "0.44970816", "0.44912106", "0.44803223", "0.44797495", "0.4473686", "0.44649094", "0.4458253", "0.44478682", "0.44398367", "0.4429257", "0.44206598", "0.44206598", "0.44202495", "0.44191995", "0.44168353", "0.44110286", "0.4408549", "0.44057247", "0.4401342", "0.43982342", "0.43817827", "0.43729973", "0.43655705", "0.43602037", "0.43582952", "0.43445367", "0.43413687", "0.43343604", "0.4331079", "0.43202356", "0.4316001", "0.43106395", "0.4308146", "0.43059886", "0.42986673", "0.42978844", "0.4297737", "0.42939773", "0.4290365", "0.42876062", "0.42850083", "0.4269274", "0.42642546", "0.42523408", "0.42511934", "0.42344624", "0.42335114", "0.42305186", "0.42278776", "0.42238957" ]
0.74718297
1
Supports Revisions Get list of post types that support revisions
private function supports_revisions() { $supports_revisions = array(); foreach ( get_post_types() as $post_type ) { if ( post_type_supports( $post_type, 'revisions' ) ) { $supports_revisions[] = $post_type; } } return $supports_revisions; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function wp_list_post_revisions($post = 0, $type = 'all')\n {\n }", "function wp_get_post_revisions($post = 0, $args = \\null)\n {\n }", "public function revisions()\n {\n return $this->morphMany(Revision::class, 'revisionable');\n }", "public function getRevisions(): array;", "function wp_revisions_enabled($post)\n {\n }", "function wp_get_post_revision(&$post, $output = \\OBJECT, $filter = 'raw')\n {\n }", "function wp_is_post_revision($post)\n {\n }", "public function limit_post_revisions() {\n\t}", "function wp_get_post_revisions_url($post = 0)\n {\n }", "public static function fetchAllRevisions($postId) {\n\t\t$criteria = new CDbCriteria();\n\t\t$criteria->addColumnCondition(array('post_id' => $postId));\n\t\treturn self::model()->findAll($criteria);\n\t}", "public static function get_builder_revisions( $type, $id ) {\n\t\tglobal $wpdb;\n\t\t$sql = \"SELECT id, date FROM {$wpdb->base_prefix}pp_revisions WHERE type = '$type' AND parent_id = '$id' ORDER BY date DESC LIMIT 5\";\n\n\t\treturn $wpdb->get_results( $sql, 'ARRAY_A' );\n\t}", "function post_revisions_meta_box($post)\n {\n }", "function get_post_types() {\n\tglobal $rf_custom_posts;\n\n\t$post = new PostType();\n\t$cpts = $post->get_admin_post_pages();\n\n\t$cpts = array_merge($cpts, $rf_custom_posts);\n\t$cpts = apply_filters(\"admin/post_types\", $cpts);\n\n\treturn $cpts;\n}", "public function getRevisions(): array\n {\n return $this->revs;\n }", "public function getRevisions()\n {\n /** @var WebApplication|ConsoleApplication $this */\n return $this->get('revisions');\n }", "function _wp_upgrade_revisions_of_post($post, $revisions)\n {\n }", "function wp_revisions_to_keep($post)\n {\n }", "function _getReviewObjectTypesEditorPages() {\n\t\treturn array(\n\t\t\t\t\t'reviewObjectTypes',\n\t\t\t\t\t'createReviewObjectType',\n\t\t\t\t\t'editReviewObjectType',\n\t\t\t\t\t'updateReviewObjectType',\n\t\t\t\t\t'previewReviewObjectType',\n\t\t\t\t\t'deleteReviewObjectType',\n\t\t\t\t\t'activateReviewObjectType',\n\t\t\t\t\t'deactivateReviewObjectType',\n\t\t\t\t\t'copyReviewObjectType',\n\t\t\t\t\t'updateOrInstallReviewObjectTypes',\n\t\t\t\t\t'reviewObjectMetadata',\n\t\t\t\t\t'createReviewObjectMetadata',\n\t\t\t\t\t'editReviewObjectMetadata',\n\t\t\t\t\t'updateReviewObjectMetadata',\n\t\t\t\t\t'deleteReviewObjectMetadata',\n\t\t\t\t\t'moveReviewObjectMetadata',\n\t\t\t\t\t'copyOrUpdateReviewObjectMetadata'\n\t\t\t\t);\n\t}", "function _wp_post_revision_data($post = array(), $autosave = \\false)\n {\n }", "function OPS_get_post($id) {\r\n\tglobal $wpdb;\r\n\t$post = $wpdb->get_results(\"SELECT * FROM $wpdb->posts WHERE ID=$id\");\r\n\tif ($post->post_type == \"revision\"){\r\n\t\t$id = $post->post_parent;\r\n\t\t$post = $wpdb->get_results(\"SELECT * FROM $wpdb->posts WHERE ID=$id\");\r\n\t}\r\n\treturn $post[0];\r\n}", "function elb_get_supported_post_types() {\n\tglobal $elb_options;\n\n\t$post_types = !empty( $elb_options['post_types'] ) ? $elb_options['post_types'] : array( 'post' );\n\n\treturn apply_filters( 'elb_post_types', $post_types );\n}", "function _wp_get_post_revision_version($revision)\n {\n }", "public function get_post_types(){ return $this->post_types; }", "function test_get_revisions_gets_the_posts_revisions() {\n\n\t\t$post = get_post( $this->mock_post_id );\n\n\t\t$post->post_content = 'update 1';\n\n\t\twp_update_post( $post );\n\n\t\t$post->post_content = 'update 2';\n\n\t\twp_update_post( $post );\n\n\t\t$post->post_content = 'update 3';\n\n\t\twp_update_post( $post );\n\n\t\t$revisions = wp_get_post_revisions( $this->mock_post_id );\n\n\t\t$revisions_data = array();\n\n\t\t$last_month = date( 'm', strtotime( 'last day of -1 month' ) );\n\t\t$this_year = date( 'Y', strtotime( 'last day of this month' ) );\n\t\t$next_month = date( 'm', strtotime( 'last day of +1 month' ) );\n\n\t\t$revisions_counter = 0;\n\n\t\t$first_revision = false;\n\n\t\tforeach ( $revisions as $key => $revision ) {\n\n\t\t\t$month = ( $revisions_counter >= 1 ) ? $last_month : $next_month;\n\n\t\t\tif ( 1 == $revisions_counter ) {\n\n\t\t\t\t$second_revision = $revision;\n\n\t\t\t}\n\n\t\t\t$revisions_data[ $revision->ID ] = array(\n\n\t\t\t\t'month' => $month,\n\t\t\t\t'day' => $revisions_counter + 1 . '',\n\t\t\t\t'year' => $this_year,\n\t\t\t\t'hour' => '12',\n\t\t\t\t'minute' => '30',\n\n\t\t\t);\n\n\t\t\t$revisions_counter++;\n\n\t\t}\n\n\t\tupdate_post_meta( $this->mock_post_id, 'dep_revisions_data', json_encode( $revisions_data ) );\n\n\t\t$args = array(\n\t\t\t'p' => $this->mock_post_id,\n\t\t\t'post_type' => 'page',\n\t\t);\n\n\t\t$query = new \\WP_Query( $args );\n\n\t\tif ( $query->have_posts() ) {\n\n\t\t\twhile ( $query->have_posts() ) {\n\n\t\t\t\t$query->the_post();\n\n\t\t\t\t$actual = $this->dep_page_versions_controller->get_revision( $post->post_content );\n\n\t\t\t}\n\t\t}\n\n\t\t$this->assertEquals( $second_revision->post_content, $actual );\n\n\t}", "function acf_get_post_latest_revision($post_id)\n{\n}", "public static function getRevisions($options = [])\n {\n return static::instantiateRecords(static::getRevisionRecords($options));\n }", "private function get_supported_post_types()\n {\n return array('post');\n }", "function post_types()\n{\n $collection = collect(get_post_types(array( '_builtin' => false ), 'objects'))\n ->pluck('label', 'name')\n ->except(array( 'acf-field', 'acf-field-group', 'wp_stream_alerts', 'wp_area' ))\n ->prepend(get_post_type_object('page')->labels->name, 'page')\n ->prepend(get_post_type_object('post')->labels->name, 'post')\n ->all();\n\n return $collection;\n}", "function wp_getPostTypes( $args ) {\n\n global $wp_xmlrpc_server;\n $wp_xmlrpc_server->escape( $args );\n\n $blog_ID = (int) $args[0];\n $username = $args[1];\n $password = $args[2];\n\n if ( ! $user = $wp_xmlrpc_server->login( $username, $password ) )\n return $wp_xmlrpc_server->error;\n\n $post_types = get_post_types( '','objects' );\n\n $struct = array();\n\n foreach( $post_types as $post_type ) {\n\n // capability check for post_types\n if( ! current_user_can( $post_type->cap->edit_posts ) )\n continue;\n\n $post_type = (array)$post_type;\n\n $post_type_data = array(\n 'labels' => $post_type['labels'],\n 'description' => $post_type['description'],\n 'capability_type' => $post_type['capability_type'],\n 'cap' => $post_type['cap'],\n 'map_meta_cap' => $post_type['map_meta_cap'],\n 'hierarchical' => $post_type['hierarchical'],\n 'menu_position' => $post_type['menu_position'],\n 'taxonomies' => get_object_taxonomies( $post_type['name'] ),\n );\n\n $struct[ $post_type['name'] ] = $post_type_data;\n\n }\n\n return $struct;\n \n}", "public function kiwip_action_delete_revisions(){\n\t\tglobal $wpdb;\n\n\t\t$this->delete_revision = $wpdb->query('DELETE FROM wp_posts WHERE post_type = \"revision\";');\n\n\t\tadd_action('admin_notices', array(&$this, 'kiwip_action_delete_revisions_adm_msg'));\n\t\t$updated_option = array('delete_revisions' => 0);\n\t\tupdate_option('Kiwip', $updated_option);\n\t\t$this->options['delete_revisions'] == 0;\n\t}", "function ee_get_post_types($post_types, $args)\n {\n }", "public function isRevisionsEnabled()\n {\n return (bool) $this->enable_revisions;\n }", "public function wp_sql_clean_revision() {\n\n\t\t$bdd = Bdd::getInstance();\n\n\t\t$sql = $bdd->dbh->prepare('DELETE FROM '.$this->_table_prefix.'posts WHERE post_type = \"revision\"');\n\t\t\n\t\treturn $sql->execute();\n\t}", "function wp_post_revision_fields( $fields, $post = null ) {\n\n\t\t\t// validate page\n\t\t\tif ( acf_is_screen( 'revision' ) || acf_is_ajax( 'get-revision-diffs' ) ) {\n\n\t\t\t\t// bail early if is restoring\n\t\t\t\tif ( acf_maybe_get_GET( 'action' ) === 'restore' ) {\n\t\t\t\t\treturn $fields;\n\t\t\t\t}\n\n\t\t\t\t// allow\n\n\t\t\t} else {\n\n\t\t\t\t// bail early (most likely saving a post)\n\t\t\t\treturn $fields;\n\n\t\t\t}\n\n\t\t\t// vars\n\t\t\t$append = array();\n\t\t\t$order = array();\n\t\t\t$post_id = acf_maybe_get( $post, 'ID' );\n\n\t\t\t// compatibility with WP < 4.5 (test)\n\t\t\tif ( ! $post_id ) {\n\n\t\t\t\tglobal $post;\n\t\t\t\t$post_id = $post->ID;\n\n\t\t\t}\n\n\t\t\t// get all postmeta\n\t\t\t$meta = get_post_meta( $post_id );\n\n\t\t\t// bail early if no meta\n\t\t\tif ( ! $meta ) {\n\t\t\t\treturn $fields;\n\t\t\t}\n\n\t\t\t// loop\n\t\t\tforeach ( $meta as $name => $value ) {\n\n\t\t\t\t// attempt to find key value\n\t\t\t\t$key = acf_maybe_get( $meta, '_' . $name );\n\n\t\t\t\t// bail early if no key\n\t\t\t\tif ( ! $key ) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\t// update vars\n\t\t\t\t$value = $value[0];\n\t\t\t\t$key = $key[0];\n\n\t\t\t\t// Load field.\n\t\t\t\t$field = acf_get_field( $key );\n\t\t\t\tif ( ! $field ) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\t// get field\n\t\t\t\t$field_title = $field['label'] . ' (' . $name . ')';\n\t\t\t\t$field_order = $field['menu_order'];\n\t\t\t\t$ancestors = acf_get_field_ancestors( $field );\n\n\t\t\t\t// ancestors\n\t\t\t\tif ( ! empty( $ancestors ) ) {\n\n\t\t\t\t\t// vars\n\t\t\t\t\t$count = count( $ancestors );\n\t\t\t\t\t$oldest = acf_get_field( $ancestors[ $count - 1 ] );\n\n\t\t\t\t\t// update vars\n\t\t\t\t\t$field_title = str_repeat( '- ', $count ) . $field_title;\n\t\t\t\t\t$field_order = $oldest['menu_order'] . '.1';\n\n\t\t\t\t}\n\n\t\t\t\t// append\n\t\t\t\t$append[ $name ] = $field_title;\n\t\t\t\t$order[ $name ] = $field_order;\n\n\t\t\t\t// hook into specific revision field filter and return local value\n\t\t\t\tadd_filter( \"_wp_post_revision_field_{$name}\", array( $this, 'wp_post_revision_field' ), 10, 4 );\n\n\t\t\t}\n\n\t\t\t// append\n\t\t\tif ( ! empty( $append ) ) {\n\n\t\t\t\t// vars\n\t\t\t\t$prefix = '_';\n\n\t\t\t\t// add prefix\n\t\t\t\t$append = acf_add_array_key_prefix( $append, $prefix );\n\t\t\t\t$order = acf_add_array_key_prefix( $order, $prefix );\n\n\t\t\t\t// sort by name (orders sub field values correctly)\n\t\t\t\tarray_multisort( $order, $append );\n\n\t\t\t\t// remove prefix\n\t\t\t\t$append = acf_remove_array_key_prefix( $append, $prefix );\n\n\t\t\t\t// append\n\t\t\t\t$fields = $fields + $append;\n\n\t\t\t}\n\n\t\t\t// return\n\t\t\treturn $fields;\n\n\t\t}", "public function get_envira_types( $post ) {\n\n $types = array(\n 'default' => __( 'Default', 'envira-gallery' )\n );\n\n return apply_filters( 'envira_gallery_types', $types, $post );\n\n }", "function wp_save_post_revision_check_for_changes($return, $last_revision, $post)\n {\n }", "public function isRevisionable();", "function generate_revision($post) {\n $revision = BlogRevision::_generateWith($post);\n return $revision;\n}", "public function revisionsTable();", "public function posts()\n {\n \treturn $this->morphedByMany(Post::class, 'videoable');\n }", "function Get_revisions($query = \"select * from Revisions\"){\n\t\t$sqlResult = sqlsrv_query($this->conn,$query);\n\t\t$temp =\"\";\n\t\twhile ($row = sqlsrv_fetch_array($sqlResult))\n\t\t{\n\t\t\t$temp .= '{\"Id\":\"'.$row['Id'].'\",';\n\t\t\t$temp .= '\"Revision\": \"'.$row['Revision'].'\",';\n\t\t\t$temp .= '\"Status\": \"'.$row['Status'].'\",';\n\t\t\t$temp .= '\"Active\": \"'.$row['Active'].'\",';\n\t\t\t$temp .= '\"Path\": \"'.$row['Active'].'\",';\n\t\t\t$temp .= '\"Dept\": \"'.$row['Dept'].'\"},';\n\n\t\t}\n\t\t$temp = substr($temp,0, -1);\n\t\t$json ='{\"All\":\"algo\",\"dataset\":[ '.$temp.']}';\n\t\tprint $json;\n\t\t$object = json_decode($json);\n\t\techo $object;\n\t\treturn $object;\n\t\t\n\t}", "public function getEntryRevisions()\n {\n /** @var WebApplication|ConsoleApplication $this */\n return $this->get('entryRevisions');\n }", "function get_all_post_type_supports($post_type)\n {\n }", "public function postTypes()\n {\n return $this->morphedByMany(\n PostType::class,\n 'metable',\n 'metables',\n 'meta_id',\n );\n }", "function p2_get_supported_post_formats( $type = 'all' ) {\n\t$post_formats = array( 'link', 'quote', 'status' );\n\n\tswitch ( $type ) {\n\t\tcase 'post-format':\n\t\t\tbreak;\n\t\tcase 'category':\n\t\t\t$post_formats[] = 'post';\n\t\t\tbreak;\n\t\tcase 'all':\n\t\tdefault:\n\t\t\tarray_push( $post_formats, 'post', 'standard' );\n\t\t\tbreak;\n\t}\n\n\treturn apply_filters( 'p2_get_supported_post_formats', $post_formats );\n}", "function wp_restore_post_revision($post_id, $revision_id)\n {\n }", "function acf_get_post_types($args = array())\n{\n}", "function wp_post_revision_fields($fields, $post = \\null)\n {\n }", "public function getAllRevisions()\n {\n // Retrieves username associated with an id. \n $this->ui_ids = array();\n\n /**\n * Retrieves list of previous versions of data dictionary.\n */\n $pid = $_GET[\"pid\"];\n $previous_versions = array();\n $sql = \"select p.pr_id, p.ts_approved, p.ui_id_requester, p.ui_id_approver,\n if(l.description = 'Approve production project modifications (automatic)',1,0) as automatic\n from redcap_metadata_prod_revisions p left join redcap_log_event l\n on p.project_id = l.project_id and p.ts_approved*1 = l.ts\n where p.project_id = $pid and p.ts_approved is not null order by p.pr_id\";\n\n if ($result = $this->query($sql))\n {\n // Cycle through results\n $rev_num = 0;\n $num_rows = $result->num_rows;\n while ($row = $result->fetch_object())\n {\n if ($rev_num == 0)\n {\n $previous_versions[] = array(\n \"id\" => $row->pr_id,\n \"label\" => \"Moved to Production\",\n \"requester\" => $this->getUsernameFirstLast($row->ui_id_requester),\n \"approver\" => $this->getUsernameFirstLast($row->ui_id_approver),\n \"automatic_approval\" => $row->automatic,\n \"ts_approved\" => $row->ts_approved,\n );\n }\n else\n {\n $previous_versions[] = array(\n \"id\" => $row->pr_id,\n \"label\" => \"Production Revision #$rev_num\",\n \"requester\" => $this->getUsernameFirstLast($row->ui_id_requester),\n \"approver\" => $this->getUsernameFirstLast($row->ui_id_approver),\n \"automatic_approval\" => $row->automatic,\n \"ts_approved\" => $row->ts_approved\n );\n }\n\n if ($rev_num == $num_rows - 1)\n {\n // Current revision will be mapped to timestamp and approver of last row\n $current_revision_ts_approved = $row->ts_approved;\n $current_revision_approver = $this->getUsernameFirstLast($row->ui_id_approver);\n $current_revision_requester = $this->getUsernameFirstLast($row->ui_id_requester);\n $current_revision_automatic = $row->automatic;\n }\n\n $rev_num++;\n }\n\n $result->close();\n \n // Sort by most recent version.\n $previous_versions = array_reverse($previous_versions);\n }\n\n // Shift timestamps, approvers, requesters, and automatic approval down by one,\n // as the correct info for each one is when the previous version was archived. \n $last_key = null;\n foreach($previous_versions as $key => $version)\n {\n if ($last_key !== null)\n {\n $previous_versions[$last_key][\"ts_approved\"] = $previous_versions[$key][\"ts_approved\"];\n $previous_versions[$last_key][\"requester\"] = $previous_versions[$key][\"requester\"];\n $previous_versions[$last_key][\"approver\"] = $previous_versions[$key][\"approver\"];\n $previous_versions[$last_key][\"automatic_approval\"] = $previous_versions[$key][\"automatic_approval\"];\n }\n $last_key = $key;\n }\n\n // Get correct production timestamp,\n // and the person who moved it to production\n if (!empty($previous_versions))\n {\n // Get correct production timestamp\n $sql = \"select production_time from redcap_projects where project_id = $pid\";\n if ($result = $this->query($sql))\n {\n while ($row = $result->fetch_object()){\n $timestamp = $row->production_time;\n $previous_versions[sizeof($previous_versions)-1][\"ts_approved\"] = $timestamp;\n }\n $result->close();\n }\n\n if (!empty($timestamp))\n {\n // Retrieve person who moved to production, as it's stored separately. \n $sql = \"select u.ui_id from redcap_user_information u, redcap_log_event l\n where u.username = l.user and l.description = 'Move project to production status' and l.project_id = $pid \n and l.ts = '\" . str_replace(array(' ',':','-'), array('','',''), $timestamp) . \"' order by log_event_id desc limit 1\";\n\n if ($result = $this->query($sql))\n {\n while ($row = $result->fetch_object()){\n $previous_versions[sizeof($previous_versions)-1][\"approver\"] = $this->getUsernameFirstLast($row->ui_id);\n }\n $result->close();\n }\n }\n }\n\n // Add current revision\n if (isset($current_revision_approver) && \n isset($current_revision_ts_approved) && \n isset($current_revision_automatic) && \n isset($current_revision_requester))\n {\n array_unshift($previous_versions, array(\n \"id\" => \"current\",\n \"label\" => \"Production Revision #$rev_num <b>(Current Revision)</b>\",\n \"requester\" => $current_revision_requester,\n \"approver\" => $current_revision_approver,\n \"automatic_approval\" => $current_revision_automatic,\n \"ts_approved\" => $current_revision_ts_approved\n ));\n }\n\n return $previous_versions;\n }", "function wp_print_revision_templates()\n {\n }", "function voicewp_news_post_types() {\n\t/**\n\t * Filters the post types whose content is included in the bundled News skill.\n\t *\n\t * @param array $post_types Post type names.\n\t */\n\treturn apply_filters( 'voicewp_post_types', array( 'post' ) );\n}", "public function get_allowed_post_types() {\n return array( 'post', 'page' );\n }", "public function generate( $args = array(), $assoc_args = array() ) {\n\n\t\tglobal $wpdb;\n\n\t\tif ( ! empty( $assoc_args['post_id'] ) ) {\n\n\t\t\t$posts = array( $assoc_args['post_id'] );\n\n\t\t} else {\n\n\t\t\tif ( empty( $assoc_args['post_type'] ) ) {\n\t\t\t\t$post_types = $this->supports_revisions();\n\t\t\t} else {\n\t\t\t\t$post_types = explode( ',', $assoc_args['post_type'] );\n\t\t\t}\n\n\t\t\t$where = '';\n\t\t\tforeach ( $post_types as $post_type ) {\n\t\t\t\t$where .= $wpdb->prepare( ' OR post_type = %s', $post_type );\n\t\t\t}\n\n\t\t\t// get all IDs for posts in given post type(s).\n\t\t\t$posts = $wpdb->get_col( \"SELECT ID FROM $wpdb->posts WHERE 1=2 {$where}\" ); // phpcs:ignore WordPress.VIP.DirectDatabaseQuery.DirectQuery,WordPress.VIP.DirectDatabaseQuery.NoCaching,WordPress.DB.PreparedSQL.NotPrepared -- $where is prepared above\n\n\t\t}\n\n\t\t$total = count( $posts );\n\n\t\t$notify = \\WP_CLI\\Utils\\make_progress_bar( sprintf( 'Generating revisions for %d post(s)', $total ), $total );\n\n\t\t$count = isset( $args[0] ) ? intval( $args[0] ) : 15;\n\n\t\tforeach ( $posts as $post_id ) {\n\t\t\t$notify->tick();\n\n\t\t\t$p = get_post( $post_id );\n\t\t\t$content = $p->post_content;\n\t\t\tfor ( $i = 0; $i < $count; $i++ ) {\n\t\t\t\tif ( '&nbsp;' === substr( $content, -6 ) ) {\n\t\t\t\t\t$content = substr( $content, 0, -6 );\n\t\t\t\t} else {\n\t\t\t\t\t$content .= '&nbsp;';\n\t\t\t\t}\n\t\t\t\twp_update_post( 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}\n\t\t}\n\n\t\t$notify->finish();\n\t\tWP_CLI::success( 'Finished generating revisions.' );\n\n\t}", "public function posts()\n\t{\n\t\treturn $this->morphMany(Post::class, 'scopeable');\n\t}", "public function dmaps_get_post_types() {\n\t\t\t\t\n\t\t$args = array(\n\t\t 'public' => true,\n\t\t '_builtin' => false\n\t\t);\n\n\t\t$post_types = get_post_types( $args ); \n\t\t$post_arr = array( 'post' => 'Post', 'page' => 'Page' );\n\n\t\tforeach ( $post_types as $post_type ) {\n\n\t\t\t$arr = array($post_type => $post_type);\n\t\t\t$post_arr += $arr;\n\n\t\t}\n\t\t\n\t\treturn $post_arr;\t\n\n\t}", "public function getPostsTypes()\n\t {\n\t \t$args = array(\n\t\t\t 'public' => true,\n\t\t\t '_builtin' => false\n\t\t\t);\n\n\t\t\t$output = 'names'; // names or objects, note names is the default\n\t\t\t$operator = 'and'; // 'and' or 'or'\n\t\t\t$post_types = get_post_types( $args, $output, $operator ); \n\n\t\t\treturn $post_types;\n\t }", "function my_et_builder_post_types( $post_types ) {\n $post_types[] = 'listing';\n\n return $post_types;\n}", "public function generate( $args = array(), $assoc_args = array() ) {\n\n\t\tglobal $wpdb;\n\n\t\tif ( ! empty( $assoc_args['post_id'] ) ) {\n\n\t\t\t$posts = array( $assoc_args['post_id'] );\n\t\t\t$posts = array_filter( $posts, 'get_post' );\n\n\t\t} else {\n\n\t\t\tif ( empty( $assoc_args['post_type'] ) ) {\n\t\t\t\t$post_types = $this->supports_revisions();\n\t\t\t} else {\n\t\t\t\t$post_types = explode( ',', $assoc_args['post_type'] );\n\t\t\t}\n\n\t\t\t$where = '';\n\t\t\tforeach ( $post_types as $post_type ) {\n\t\t\t\t$where .= $wpdb->prepare( ' OR post_type = %s', $post_type );\n\t\t\t}\n\n\t\t\t// get all IDs for posts in given post type(s).\n\t\t\t$posts = $wpdb->get_col( \"SELECT ID FROM $wpdb->posts WHERE 1=2 {$where}\" );\n\n\t\t}\n\n\t\t$total = count( $posts );\n\n\t\t$notify = \\WP_CLI\\Utils\\make_progress_bar( sprintf( 'Generating revisions for %d post(s)', $total ), $total );\n\n\t\t$count = isset( $args[0] ) ? intval( $args[0] ) : 15;\n\n\t\t$this->start_bulk_operation();\n\n\t\tremove_all_filters( 'wp_revisions_to_keep' );\n\t\tadd_filter( 'wp_save_post_revision_check_for_changes', '__return_false' );\n\t\t$inc = 0;\n\t\tforeach ( $posts as $post_id ) {\n\t\t\t$notify->tick();\n\n\t\t\tfor ( $i = 0; $i < $count; $i++ ) {\n\n\t\t\t\twp_save_post_revision( $post_id );\n\t\t\t}\n\t\t\t$inc++;\n\t\t\tif ( $inc % 10 === 0 ) {\n\t\t\t\t$this->stop_the_insanity();\n\t\t\t}\n\t\t}\n\n\t\t$this->end_bulk_operation();\n\n\t\t$notify->finish();\n\t\tWP_CLI::success( 'Finished generating revisions.' );\n\n\t}", "private function get_post_types() {\n\n\t\t$output = 'names'; // names or objects, note names is the default\n\t\t$operator = 'and'; // 'and' or 'or'\n\n\t\t// Collate builtin and custom post-types\n\t\t$builtin_post_types = get_post_types( array( 'public' => true, '_builtin' => true ), $output, $operator );\n\t\t$custom_post_types = get_post_types( array( \n\t\t\t// Perhaps later introduce an option to select whether to include non-public CPTs as well.\n\t\t\t//'public' => true, \n\t\t\t'_builtin' => false \n\t\t\t), \n\t\t$output, $operator );\n\t\t$post_types = array_merge( $builtin_post_types, $custom_post_types );\n\n\t\treturn $post_types;\n\t}", "protected function customPostTypes(): array\n {\n\n return [];\n }", "function wp_restore_post_revision($revision, $fields = \\null)\n {\n }", "function vcex_theme_post_types() {\n\tif ( function_exists( 'wpex_theme_post_types' ) ) {\n\t\treturn wpex_theme_post_types();\n\t}\n\treturn array();\n}", "public function get_post_types() {\n\n\t\treturn [\n\t\t\tPost_Type_Movie::SLUG,\n\t\t];\n\n\t}", "public function getModifiedPosts(): array\n {\n return $this->modifiedPosts;\n }", "function acf_get_taxonomies_for_post_type($post_types = 'post')\n{\n}", "function acf_save_post_revision($post_id = 0)\n{\n}", "function get_section_post_types(){\n $id = vezba_get_option( 'ddlSections' );\n\n $section = wp_remote_get( 'http://www.iwa-network.org/wp-json/wp/v2/sections/'. $id );\n $body = wp_remote_retrieve_body( $section );\n $data = json_decode( $body, true );\n\n // Get all section post types\n foreach( $data as $key => $value ) {\n if( is_array( $value ) ) {\n $counter = 0;\n foreach( $value as $item ) {\n $links = $value['wp:post_type']; \n }\n }\n } \n return $links;\n}", "private function get_registered_post_types() {\n\t\t$post_types = get_post_types( array(), 'names' );\n\t\t$post_types = array_diff( $post_types, array( 'attachment', 'revision', 'nav_menu_item', 'customize_changeset', 'custom_css', 'oembed_cache', 'user_request', 'wp_block' ) );\n\t\t$data = array();\n\t\tforeach ( $post_types as $post_type ) {\n\t\t\t$data[] = $post_type;\n\t\t}\n\t\treturn $data;\n\t}", "function registerPostTypes()\n{\n register_post_type('destination', [\n 'public' => true,\n 'label' => 'Destinations',\n 'supports' => ['title', 'editor', 'thumbnail']\n ]);\n register_post_type('review', [\n 'public' => true,\n 'label' => 'Reviews',\n 'supports' => ['title', 'editor']\n ]);\n}", "public static function get_revision_type( $id ) {\n\t\tglobal $wpdb;\n\t\t$sql = \"SELECT type FROM {$wpdb->base_prefix}pp_revisions WHERE id = $id\";\n\n\t\treturn $wpdb->get_var( $sql );\n\t}", "public function listPost()\n {\n //Your code goes here\n $data['posts'] = PostModel::where('status',1)->orWhere('status',2)->orderBy('id','desc')->get();\n $data['pagemode'] = 'edit';\n return admin_view('Posts::List', $data);\n }", "function wtfdivi099_add_post_types($post_types) {\r\n\tforeach(get_post_types() as $pt) {\r\n\t\tif (!in_array($pt, $post_types) and post_type_supports($pt, 'editor')) {\r\n\t\t\t$post_types[] = $pt;\r\n\t\t}\r\n\t} \r\n\treturn $post_types;\r\n}", "public function posts()\n {\n return $this->morphedByMany(Post::class, 'taggable', 'taxonomy_relationships')->withTimestamps();\n }", "function TS_VCSC_GetPublicPostTypes() {\r\n // Check if Routine is necessary\r\n $this->TS_VCSC_PublicPostRequireCheck\t\t\t\t\t\t\t= array();\r\n $this->TS_VCSC_PublicPostRequireCheck[] = (isset($this->TS_VCSC_Visual_Composer_Elements['TS Posts Isotope Grid']['active']) ? $this->TS_VCSC_Visual_Composer_Elements['TS Posts Isotope Grid']['active'] : \"false\");\r\n $this->TS_VCSC_PublicPostRequireCheck[] = (isset($this->TS_VCSC_Visual_Composer_Elements['TS Posts Image Grid']['active']) ? $this->TS_VCSC_Visual_Composer_Elements['TS Posts Image Grid']['active'] : \"false\"); \r\n $this->TS_VCSC_PublicPostRequireCheck[] = (isset($this->TS_VCSC_Visual_Composer_Elements['TS Posts Slider']['active']) ? $this->TS_VCSC_Visual_Composer_Elements['TS Posts Slider']['active'] : \"false\");\r\n $this->TS_VCSC_PublicPostRequireCheck[] = (isset($this->TS_VCSC_Visual_Composer_Elements['TS Posts Ticker']['active']) ? $this->TS_VCSC_Visual_Composer_Elements['TS Posts Ticker']['active'] : \"false\");\r\n $this->TS_VCSC_PublicPostRequireCheck[] = (isset($this->TS_VCSC_Visual_Composer_Elements['TS Posts Timeline']['active']) ? $this->TS_VCSC_Visual_Composer_Elements['TS Posts Timeline']['active'] : \"false\");\r\n if (in_array(\"true\", $this->TS_VCSC_PublicPostRequireCheck)) {\r\n // Get All Public Custom Post Types\t\t\t\r\n $this->TS_VCSC_PublicPostTypesSelect\t\t\t\t\t\t= array();\r\n $this->TS_VCSC_PublicPostTypesDepend\t\t\t\t\t\t= array();\r\n $this->TS_VCSC_PublicPostTypesFound\t\t\t\t\t\t\t= get_post_types(array('public' => true, '_builtin' => false,), 'object', 'and');\r\n $this->TS_VCSC_PublicPostTypesSelect[__( \"Standard Post Type\", \"ts_visual_composer_extend\" )] = \"post\";\r\n foreach ($this->TS_VCSC_PublicPostTypesFound as $post_type) {\r\n if (post_type_supports($post_type->name, 'editor')) {\r\n $this->TS_VCSC_PublicPostTypesSelect[$post_type->label . ' (' . $post_type->name . ')']\t= $post_type->name;\r\n array_push($this->TS_VCSC_PublicPostTypesDepend, $post_type->name);\t\t\t\t\r\n }\r\n }\r\n // Get All Public Custom Taxonomies\r\n $this->TS_VCSC_PublicPostTaxosSelect \t\t\t\t\t\t= array();\r\n $this->TS_VCSC_PublicPostTaxosFound\t\t\t\t\t\t\t= get_taxonomies(array('public' => true, '_builtin' => false), 'objects', 'and');\t\t\t\r\n if ($this->TS_VCSC_PublicPostTaxosFound) {\r\n foreach ($this->TS_VCSC_PublicPostTaxosFound as $taxonomy) {\r\n if (array_key_exists(0, $taxonomy->object_type)) { \r\n $this->TS_VCSC_PublicPostTaxosSelect[$taxonomy->label . ' (' . $taxonomy->object_type[0] . ')'] = $taxonomy->name;\r\n } else if (array_key_exists(1, $taxonomy->object_type)) {\r\n $this->TS_VCSC_PublicPostTaxosSelect[$taxonomy->label . ' (' . $taxonomy->object_type[1] . ')'] = $taxonomy->name;\r\n }\r\n }\r\n }\r\n // Unset Variables\r\n unset($this->TS_VCSC_PublicPostTypesFound);\r\n unset($this->TS_VCSC_PublicPostTaxosFound);\r\n }\r\n unset($this->TS_VCSC_PublicPostRequireCheck);\r\n\t\t}", "public function get_post_type() {\n\n\t\treturn array(\n\t\t\tPost_Type_Movie::SLUG,\n\t\t);\n\n\t}", "function wps_recent_posts() {\r\n echo '<ol>'.\"\\n\";\r\n\t\t global $post;\r\n\t\t $args = array( 'numberposts' => 50, 'post_type' => array('hotel', 'restaurant', 'shop', 'activity', 'itinerary', 'library', 'article'), 'orderby' => 'date', 'order' => 'DESC' );\r\n\t\t $myposts = get_posts( $args );\r\n\t\t\t\tforeach( $myposts as $post ) : setup_postdata($post);\r\n\t\t\t\t\t$destinationstree = destinationstree();\r\n\t\t\t\t\t$dest = $destinationstree['dest'];\r\n\t\t\t\t\t$posttype = get_post_type( $post );\r\n\t\t\t\t\t$postobj = get_post_type_object( $posttype );\r\n\t\t\t\t\t$postobjname = $postobj->labels->singular_name;\r\n\t\t\t\t\techo '<li><h4>'.get_the_title().' | <span class=\"details\"><a href=\"/wp-admin/post.php?post='.$post->ID.'&action=edit\">E</a> | <a target=\"_blank\" href=\"'.get_permalink().'\">V</a> | '.$dest->name.' | '.$postobjname.' | '.get_the_author_meta( 'display_name', $post->post_author ).' | <abbr>'.get_the_date('n/d/y').'</abbr></span></h4></li>'.\"\\n\";\r\n\t\t \t\tendforeach;\r\n echo '</ol>'.\"\\n\";\r\n}", "function workbench_post_get_node_user_types() {\n $revision_author = new RevisionAuthorType('revision author');\n $author = new AuthorType('author');\n\n $users = array();\n $users[$revision_author->user_string] = $revision_author;\n $users[$author->user_string] = $author;\n\n return $users;\n}", "static public function post_types() {\n\t\t$post_types = get_post_types(array(\n\t\t\t'public'\t=> true,\n\t\t\t'show_ui'\t=> true,\n\t\t), 'objects');\n\n\t\tunset( $post_types['attachment'] );\n\t\tunset( $post_types['fl-builder-template'] );\n\t\tunset( $post_types['fl-theme-layout'] );\n\n\t\treturn $post_types;\n\t}", "function rest_get_route_for_post_type_items($post_type)\n {\n }", "private function get_latest_approved_revisions()\n\t{\n\t\t$revisions = [];\n\n\t\t// Start transaction\n\t\t$this->db->sql_transaction('begin');\n\n\t\t$sql = 'SELECT *\n\t\t\t\tFROM ' . $this->contribs_table . '\n\t\t\t\tWHERE contrib_type = ' . ext::TITANIA_TYPE_EXTENSION;\n\n\t\t$result = $this->db->sql_query($sql);\n\n\t\twhile ($row = $this->db->sql_fetchrow($result))\n\t\t{\n\t\t\t// For every extension, get the latest approved revision\n\t\t\t$revision_sql = 'SELECT r.*, a.*\n\t\t\t\tFROM ' . $this->revisions_table . ' r\n\t\t\t\t\tLEFT JOIN ' . $this->attachments_table . ' a\n\t\t\t\t\t\tON a.attachment_id = r.attachment_id\n\t\t\t\tWHERE r.contrib_id = ' . (int) $row['contrib_id'] . '\n\t\t\t\tAND r.revision_status = ' . ext::TITANIA_REVISION_APPROVED . '\n\t\t\t\tORDER BY r.revision_id DESC';\n\n\t\t\t$revision_result = $this->db->sql_query_limit($revision_sql, 1);\n\t\t\t$revision_row = $this->db->sql_fetchrow($revision_result);\n\n\t\t\tif ($revision_row)\n\t\t\t{\n\t\t\t\t// Only bother if the contribution has approved revisions\n\t\t\t\t$revision_row['contrib_name'] = $row['contrib_name'];\n\t\t\t\t$revisions[] = $revision_row;\n\t\t\t}\n\t\t}\n\n\t\t// End transaction\n\t\t$this->db->sql_freeresult($result);\n\t\t$this->db->sql_transaction('commit');\n\n\t\treturn $revisions;\n\t}", "public function getRelatedPosts() {}", "protected function get_post_types() {\n\t\t$args = array(\n\t\t\t'show_ui' => true,\n\t\t);\n\t\tif (! is_array($types = get_post_types($args)))\n\t\t\treturn array();\n\n\t\tunset($types['attachment']);\n\t\treturn $types;\n\t}", "function tab_slug_post_type() {\n\n $tab = get_post_types();\n $tab_slug_post_type = FALSE;\n\n if ($tab) {\n foreach ($tab as $key => $value) {\n\n if ($key != 'post' && $key != 'page' && $key != 'attachment' && $key != 'revision' && $key != 'nav_menu_item' && $key != 'custom_css' && $key != 'customize_changeset' && $key != 'oembed_cache' && $key != 'user_request') {\n\n $tab_slug_post_type[] = $value;\n }\n }\n }\n return $tab_slug_post_type;\n}", "function listRevisions($bugid, $patch)\n\t{\n\t\t$query = '\n\t\t\tSELECT revision FROM bugdb_patchtracker\n\t\t\tWHERE bugdb_id = ? AND patch = ?\n\t\t\tORDER BY revision DESC\n\t\t';\n\t\treturn $this->_dbh->prepare($query)->execute([$bugid, $patch])->fetchAll(PDO::FETCH_NUM);\n\t}", "public function restore_post_revision( $post_id, $revision_id ) {\n\t\tif ( papi_is_empty( papi_get_entry_type_by_meta_id( $post_id, 'post' ) ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\t$meta = get_post_meta( $revision_id );\n\n\t\tforeach ( $meta as $key => $value ) {\n\t\t\tif ( $key[0] === '_' && $key !== papi_get_page_type_key() ) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tpapi_data_update( $post_id, $key, array_shift( $value ) );\n\t\t}\n\t}", "function get_registered_post_types() {\n\n $post_types = get_post_types();\n\n unset($post_types['revision']);\n\n unset($post_types['attachment']);\n\n unset($post_types['nav_menu_item']);\n\n return $post_types;\n\n }", "function testRevisionGenerationForEntity() {\n\t\t$entity_id = wl_create_post( 'Original content', 'entity-1', uniqid( 'entity', true ), 'publish', 'entity' );\n\t\t$revisions = wp_get_post_revisions( $entity_id );\n\n\t\t// Just a simple sanity check.\n\t\t$this->assertCount( 1 , $revisions );\n\n\t\t// Check that a revision is generated on change.\n\t\t$post_data = array(\n\t\t 'ID' => $entity_id,\n\t\t 'post_content' => 'This is the updated content.',\n\t\t);\n\n\t\twp_update_post( $post_data );\n\t\t$revisions = wp_get_post_revisions( $entity_id );\n\t\t$this->assertCount( 2 , $revisions );\n\t}", "public function get_post_types() {\n\n\t\treturn $this->post_type;\n\n\t}", "function custom_post_type() {\n $supports = array(\n 'title',\n 'editor',\n // 'excerpt',\n // 'custom-fields',\n 'author',\n 'thumbnail',\n );\n\n $labels = array(\n 'name' => _x('Reviews', 'plural'),\n 'singular_name' => _x('Review', 'singular'),\n 'name_admin_bar' => _x('All Reviews', 'admin bar'),\n 'menu_name' => _x('Reviews', 'admin menu'),\n 'add new' => _x('Add new', 'add new'),\n 'add_new_item' => __('Add new Review'),\n 'all_items' => __('All Reviews'),\n 'new_item' => __('Add New Review'),\n 'search_items' => __('Search Reviews'),\n 'not_found' => __('No reviews found'),\n 'view_item' => __('View Review'),\n );\n\n $args = array(\n 'supports' => $supports,\n 'labels' => $labels,\n 'public' => true,\n 'label' => 'Reviews', // Las reviews son visibles para todos tanto en el backend como en el frontend\n 'query_var' => true, // Nuestro custom post type estará presente en la queryvar general de wp\n 'rewrite' => array('slug' => 'lostguides-reviews'), // Establecer el slug para nuestro custom post type\n 'has_archive' => true, // Permitir usar la plantilla archive-{custom-post-type}.php\n 'hierarchical' => false, // Indica que nuestro custom-post-type no tiene hijos\n 'menu_position' => 7, // Posicion en el menu\n 'show_in_menu' => true, // Para hacer que me funcione el menu position\n 'menu_icon' => 'dashicons-games',\n // 'show_in_rest' => true, // Habilita el editor gutemberg para tu custom post type\n );\n \n register_post_type('lostguides-reviews', $args);\n register_taxonomy_for_object_type('category', 'lostguides-reviews'); // Habilitamos las categorias para nuestro CPT\n register_taxonomy_for_object_type('post_tag', 'lostguides-reviews'); // Habilitamos los tags para nuestro CPT\n }", "function wp_ajax_get_revision_diffs()\n {\n }", "function farmhouse_post_type_support() {\n\n $post_type_supports = genesis_get_config( 'post-type-supports' );\n\n foreach ( $post_type_supports as $post_type => $args ) {\n add_post_type_support( $post_type, $args );\n }\n\n}", "function get_custom_post_types() {\n\t$args = array(\n\t\t'public' => true,\n\t\t'_builtin' => false\n\t);\n\t$post_types = get_post_types( $args, 'names');\n\treturn $post_types;\n}", "function wp_get_revision_ui_diff($post, $compare_from, $compare_to)\n {\n }", "public function list_( $args = array(), $assoc_args = array() ) {\n\n\t\t// Default fields to return.\n\t\t$fields = WP_CLI\\Utils\\get_flag_value(\n\t\t\t$assoc_args,\n\t\t\t'fields'\n\t\t);\n\n\t\tif ( is_string( $fields ) ) {\n\t\t\t$fields = wp_parse_list( $fields );\n\t\t}\n\n\t\t// Whitelist the fields we allow to avoid spurious queries.\n\t\t$allowed_fields = [\n\t\t\t'ID',\n\t\t\t'post_author',\n\t\t\t'post_date',\n\t\t\t'post_date_gmt',\n\t\t\t'post_content',\n\t\t\t'post_title',\n\t\t\t'post_excerpt',\n\t\t\t'post_status',\n\t\t\t'comment_status',\n\t\t\t'ping_status',\n\t\t\t'post_name',\n\t\t\t'post_modified',\n\t\t\t'post_modified_gmt',\n\t\t\t'post_password',\n\t\t\t'to_ping',\n\t\t\t'pinged',\n\t\t\t'post_content_filtered',\n\t\t\t'post_parent',\n\t\t\t'guid',\n\t\t\t'menu_order',\n\t\t\t'post_type',\n\t\t\t'post_mime_type',\n\t\t\t'comment_count',\n\t\t];\n\n\t\t// Don't allow fields that aren't in the above whitelist.\n\t\t// Note: we do not use array_filter to remove empty elements (in\n\t\t// case of an empty `--fields` flag). This way the error message\n\t\t// will still be triggered instead of running invalid SQL\n\t\t$excluded_fields = array_diff( $fields, $allowed_fields );\n\n\t\tif ( ! empty( $excluded_fields ) ) {\n\t\t\tWP_CLI::error( 'Invalid values provided in the fields argument.' );\n\t\t}\n\n\t\t$fields = array_map( 'esc_sql',\t$fields\t);\n\t\t$fields = implode( ',', $fields );\n\n\t\tglobal $wpdb;\n\t\tif ( ! empty( $assoc_args['post_id'] ) ) {\n\n\t\t\t$revs = $wpdb->get_results(\n\t\t\t\t$wpdb->prepare(\n\t\t\t\t\t\"SELECT SQL_CALC_FOUND_ROWS {$fields} FROM $wpdb->posts WHERE post_type = 'revision' AND post_parent = %d\",\n\t\t\t\t\t$assoc_args['post_id']\n\t\t\t\t)\n\t\t\t);\n\n\t\t} else if ( ! empty( $assoc_args['post_type'] ) ) {\n\n\t\t\t$post_types = array_map( function( $i ) {\n\t\t\t\treturn sprintf( \"'%s'\", esc_sql( $i ) );\n\t\t\t}, wp_parse_slug_list( $assoc_args['post_type'] ) );\n\t\t\t$where = sprintf( 'AND post_type IN ( %s )', implode( ',', $post_types ) );\n\n\t\t\t// get all IDs for posts in given post type(s).\n\t\t\t$ids = $wpdb->get_col( \"SELECT ID FROM $wpdb->posts WHERE 1=2 {$where}\" );\n\n\t\t\t// Prepare the IDs for inclusion in the query.\n\t\t\t$post__in = array_map( 'esc_sql', $ids );\n\t\t\t$post__in = implode( ',', $ids );\n\n\t\t\t// get revisions of those IDs.\n\t\t\t$revs = $wpdb->get_results(\n\t\t\t\t\"SELECT SQL_CALC_FOUND_ROWS {$fields} FROM $wpdb->posts WHERE post_type = 'revision' AND post_parent IN ({$post__in}) ORDER BY post_parent DESC\"\n\t\t\t);\n\n\t\t} else {\n\n\t\t\t$revs = $wpdb->get_results(\n\t\t\t\t\"SELECT SQL_CALC_FOUND_ROWS {$fields} FROM $wpdb->posts WHERE post_type = 'revision' ORDER BY post_parent DESC\"\n\t\t\t);\n\n\t\t}\n\n\t\t$total = $wpdb->get_var( 'SELECT FOUND_ROWS()' );\n\n\t\tif ( $total > 100 ) {\n\t\t\tWP_CLI::confirm( sprintf( 'List all %d revisions?', $total ), $assoc_args );\n\t\t}\n\n\t\t$formatter = new \\WP_CLI\\Formatter( $assoc_args, array( 'ID', 'post_parent', 'post_title' ), 'revisions' );\n\t\t$formatter->display_items( $revs );\n\n\t}", "private function handlePagePressReviewList($get, $post) {\r\n\t\t$pressreviewController = new PressReviewController();\r\n\t\tif (isset($get[$pressreviewController->parameterPage])) {\r\n\t\t\t$t = $pressreviewController->prepareTemplateForList(true, false, $pressreviewController->elementsByPage, $get[$pressreviewController->parameterPage],$this->linkPaginationDefaultPressReview);\r\n\t\t}\r\n\t\telse {\r\n\t\t\t$t = $pressreviewController->prepareTemplateForListDefault(true, false, $this->linkPaginationDefaultPressReview);\r\n\t\t}\r\n\t\t\r\n\t\t$t = $this->prepareDatasForNewsPanel($t);\r\n\t\t$t->central = $this->targetPagePressReviewList;\r\n\t\t$t->template = $this->templateSimple;\r\n\t\treturn $t;\r\n\t}", "function press_post() {\n\t$labels = array(\n\t\t'name' => __( 'Press Releases' ),\n\t\t'singular_name' => __( 'Press Release' ),\n\t\t'add_new' => __( 'New Press Release' ),\n\t\t'add_new_item' => __( 'Add New Press Release' ),\n\t\t'edit_item' => __( 'Edit Press Release' ),\n\t\t'new_item' => __( 'New Press Release' ),\n\t\t'view_item' => __( 'View Press Release' ),\n\t\t'search_items' => __( 'Search Press Releases' ),\n\t\t'not_found' => __( 'No Press Releases Found' ),\n\t\t'not_found_in_trash' => __( 'No Press Releases found in Trash' ),\n\t);\n\t$args = array(\n\t\t'labels' => $labels,\n\t\t'has_archive' => 'press-releases',\n\t\t'public' => true,\n\t\t'hierarchical' => false,\n\t\t'exclude_from_search' => false,\n\t\t'supports' => array(\n\t\t\t'title',\n\t\t\t'editor',\n\t\t\t'excerpt',\n\t\t\t'thumbnail',\n\t\t)\n\t);\n\tregister_post_type( 'press-release', $args );\n}", "public static function getPostsByType($type) {\n $args = array(\n \t'posts_per_page' => 100,\n \t'offset' => 0,\n \t'orderby' => 'menu_order',\n \t'order' => 'DESC',\n \t'post_type' => $type,\n \t'post_status' => 'publish',\n \t'suppress_filters' => true\n );\n\n $posts = get_posts( $args );\n self::postSort($posts);\n\n return $posts;\n }", "public static function activePostTypes(): array\n {\n return apply_filters('notification_center/activated_posttypes', get_post_types(array('public' => true)));\n }", "public function createPostTypes()\n {\n }" ]
[ "0.8256165", "0.7108253", "0.660713", "0.6596662", "0.6509994", "0.6456841", "0.6366298", "0.6352576", "0.63499725", "0.63397956", "0.6235941", "0.6168031", "0.6151986", "0.6146598", "0.60435367", "0.6022692", "0.59562576", "0.5894682", "0.5879661", "0.584853", "0.5800979", "0.57950944", "0.57819295", "0.57683814", "0.5759031", "0.5753877", "0.5739659", "0.571856", "0.5679999", "0.5656519", "0.56547827", "0.5606457", "0.55876154", "0.55710256", "0.5567111", "0.5565102", "0.5553566", "0.55498415", "0.5533443", "0.552837", "0.55194294", "0.55053204", "0.550469", "0.5481549", "0.54686815", "0.54545444", "0.5454167", "0.5442506", "0.54400975", "0.54313946", "0.54133236", "0.54090023", "0.54017484", "0.5401704", "0.5391758", "0.5383449", "0.5368716", "0.5365697", "0.53507465", "0.53394127", "0.53247064", "0.53246236", "0.5318493", "0.5313597", "0.53074276", "0.5304178", "0.52943724", "0.52592623", "0.52574456", "0.52342665", "0.52241683", "0.5211522", "0.5207729", "0.52046233", "0.5196701", "0.5195901", "0.51935124", "0.5189283", "0.5184509", "0.51791453", "0.51749414", "0.5162058", "0.5161249", "0.5161036", "0.51442546", "0.51439977", "0.5142054", "0.51305455", "0.51216024", "0.5121211", "0.51207405", "0.5117533", "0.510907", "0.5106429", "0.5103625", "0.5101271", "0.5101206", "0.5100405", "0.50991976" ]
0.75754637
2
Composes an encoded message used for internal messaging within the server complex. \param $command One of the Command constants. \param $message An array containing relevant data for this command. \return Returns a formatted message string.
public static function composeMsg (int $command, array $message) : string { if (!Command::isCommand ($command)) { return Command::INVALID; } return "$command:".json_encode ($message); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function buildMessage(Message $message)\n {\n $msg = array(\n 'external_user_name' => str_replace(\" \", \"\", $message->getFrom()['name']),\n 'content' => $message->getBody()\n );\n\n $tags = $message->getTags();\n if (is_array($this->tags) && !empty($this->tags))\n $tags = array_merge($tags, $this->tags);\n\n if (!empty($tags))\n $msg['tags'] = $tags;\n\n return $msg;\n }", "protected function formatMessage($message)\n {\n if (is_array($message)) {\n return var_export($message, true);\n }\n\n return $message;\n }", "private function parse(Message $message): string\n {\n return strtr($this->messageFormat, [\n '{date}' => date('Y/m/d', $message->getTime()),\n '{time}' => date('H:i:s', $message->getTime()),\n '{level}' => $message->getLevel(),\n '{message}' => $message->getMessage(),\n ]);\n }", "private function formatMessage($message)\n {\n $message = $message instanceof Message\n ? $message->toArray()\n : $message;\n\n if (isset($message['data']) && $this->encode) {\n $message['data'] = base64_encode($message['data']);\n }\n\n if (!array_key_exists('data', $message) && !array_key_exists('attributes', $message)) {\n throw new InvalidArgumentException(\n 'At least one of $data or $attributes must be specified on each\n message, but neither was given.'\n );\n }\n\n return $message;\n }", "protected function formatMessage($message): string {\n $parts = preg_split('#(?:(/quote|/code-?)|(/code-)([a-z0-9]+))\\s+#ui', $message, null, PREG_SPLIT_DELIM_CAPTURE|PREG_SPLIT_NO_EMPTY);\n $context = null;\n $message = '';\n $language = '';\n while (null !== $part = array_shift($parts)) {\n switch ($part) {\n case '/code':\n case '/code-':\n if (!empty($context)) {\n $message .= '</' . $context . '>';\n }\n $context = 'code';\n if ('/code-' === $part) {\n $language = mb_strtolower($this->escape(array_shift($parts)));\n $message .= '<code class=\"language-' . $language . '\">';\n } else {\n $message .= '<code>';\n }\n break;\n case '/quote':\n if (!empty($context)) {\n $message .= '</' . $context . '>';\n }\n $message .= '<blockquote>';\n $context = 'blockquote';\n break;\n default:\n switch ($context) {\n case 'code':\n $part = $this->highlight($part, $language);\n break;\n default:\n $part = strip_tags($part);\n $part = strtr($part, $this->smileys);\n $part = $this->replaceColors($part);\n $part = $this->replaceLinks($part);\n }\n $message .= $part;\n break;\n }\n }\n\n if (!empty($context)) {\n $message .= '</' . $context . '>';\n }\n\n return $message;\n }", "public static function serializeMessage($message)\n {\n return json_encode($message);\n }", "protected function format(array $message)\n\t{\n\t\t$output = self::DEFAULT_FORMAT_ECHO;\n\t\tforeach($message as $part => $value)\n\t\t{\n\t\t\tif('extra' == $part && count($value))\n\t\t\t{\n\t\t\t\t$value = $this->normalize($value);\n\t\t\t}\n\t\t\telse if('extra' == $part)\n\t\t\t{\n\t\t\t\t// Don't print an empty array\n\t\t\t\t$value = '';\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$value = $this->normalize($value);\n\t\t\t}\n\t\t\t$output = str_replace(\"%$part%\", $value, $output);\n\t\t}\n\t\treturn $output;\n\t}", "public static function getFormatedMessage($message)\n {\n return \"<br/>\".date(\"d/m\").' - '.$message;\n }", "protected function buildMessagePayload(Message $message)\n\t{\n\t\t$payload = array();\n\n\t\tif (isset($message->mailboxId)) {\n\t\t\t$payload['mailbox_id'] = $message->mailboxId;\n\t\t}\n\n\t\tif (isset($message->staffId)) {\n\t\t\t$payload['staff_id'] = $message->staffId;\n\t\t}\n\n\t\t$payload['id'] = $message->ticketId;\n\t\t$payload['subject'] = (string) $message->subject;\n\t\t$payload['message'] = $message->message;\n\t\t$payload['attachments'] = array();\n\t\t$payload['tags'] = $message->tags;\n\t\t$payload['scope'] = $message->scope ?: 'public';\n\n\t\tif (isset($message->from)) {\n\t\t\t$payload['from'][] = array('name' => $message->from['name'], 'address' => $message->from['address']);\t\t\t\n\t\t}\n\n\t\tforeach (array('to', 'bcc', 'cc') as $type) {\n\t\t\tforeach ($message->{$type} as $name => $address) {\n\t\t\t\tif (is_numeric($name)) $name = $address;\n\t\t\t\t$payload[$type][] = compact('name', 'address');\n\t\t\t}\n\t\t}\n\n\t\treturn json_encode($payload);\n\t}", "public function sendComplexMessage($message)\n {\n return $this->sendComplexMeesage($message);\n }", "public function prepareCommand($command)\n {\n $encodedCommand = gzcompress(json_encode($command), 1);\n\n return hex2bin(str_pad(dechex(strlen($encodedCommand)), 8, '0', STR_PAD_LEFT)) . $encodedCommand;\n }", "function getEncodedMessage(): string {\n return \\chr(static::COMMAND_ID).$this->rewrittenQuery;\n }", "public function encodeMessage(string $message, string $key): string\n {\n $splitKey = str_split($key);\n\n $sortedKey = $this->sortKey($splitKey);\n $numericKey = $this->calculateNumericKey($splitKey, $sortedKey);\n\n $iterator = 0;\n $chunkSize = \\strlen($key) - 1;\n $rowNumber = 0;\n $encoding = [];\n\n foreach (str_split($message) as $char) {\n if (!isset($encoding[$rowNumber])) {\n $encoding[$rowNumber] = [];\n }\n\n $encoding[$rowNumber][$numericKey[$iterator] - 1] = $char;\n\n $iterator++;\n\n if ($iterator > $chunkSize) {\n ksort($encoding[$rowNumber]);\n $iterator = 0;\n $rowNumber++;\n }\n }\n\n $encodedMessage = '';\n\n // Fill up missing places that can happen on last row\n $lastRow = \\count($encoding) - 1;\n if (\\count($encoding[$lastRow]) < $chunkSize + 1) {\n for ($i = 0; $i < $chunkSize; $i++) {\n if (!isset($encoding[$lastRow][$i])) {\n $encoding[$lastRow][$i] = ' ';\n }\n }\n ksort($encoding[$lastRow]);\n }\n\n foreach ($encoding as $row) {\n foreach ($row as $char) {\n $encodedMessage .= $char;\n }\n }\n\n return $encodedMessage;\n }", "protected function message($message)\r\n {\r\n return sprintf($message, $this->getName(), $this->aspect->getName());\r\n }", "protected function encodeMessage($message, $encoding) {\n\t\tswitch($encoding) {\n\t\t\tcase 'base64':\n\t\t\t\treturn chunk_split(base64_encode($message), 60);\n\t\t\tcase 'quoted-printable':\n\t\t\t\treturn quoted_printable_encode($message);\n\t\t\tdefault:\n\t\t\t\treturn $message;\n\t\t}\n\t}", "public function sendComplexMeesage($message)\n {\n return $this->gate->request(Gate::URL_MESSAGES, $message->getDataForCall());\n }", "protected function prepareBody($message) {\n return json_encode($message, JSON_UNESCAPED_UNICODE || JSON_PRETTY_PRINT, 9999999);\n }", "protected function buildMessagePayload(Message $message)\n\t{\n\t\t$payload = array();\n\n\t\tif (isset($message->mailboxId)) {\n\t\t\t$payload['mailbox_id'] = $message->mailboxId;\n\t\t}\n\n\t\tif (isset($message->staffId)) {\n\t\t\t$payload['staff_id'] = $message->staffId;\n\t\t}\n\n\t\t$payload['id'] = $message->ticketId;\n\t\t$payload['subject'] = (string) $message->subject;\n\t\t$payload['message'] = $message->message;\n\t\t$payload['attachments'] = array();\n\t\t$payload['tags'] = $message->tags;\n\t\t$payload['scope'] = $message->scope ?: 'public';\n\t\t$payload['status'] = $message->keepWaiting ? 'waiting' : null;\n\n\t\tif ($message->system)\n\t\t{\n\t\t\t$payload['system'] = true;\n\t\t}\n\n\t\tif (isset($message->from)) {\n\t\t\t$payload['from'][] = array('name' => $message->from['name'], 'address' => $address = $message->from['address']);\n\t\t\tif (filter_var($address, FILTER_VALIDATE_EMAIL) === false)\n\t\t\t{\n\t\t\t\tthrow new \\InvalidArgumentException(\"Invalid e-mail address [$address].\");\n\t\t\t}\n\t\t}\n\n\t\tforeach (array('to', 'bcc', 'cc') as $type) {\n\t\t\tforeach ($message->{$type} as $name => $address) {\n\t\t\t\tif (is_numeric($name)) $name = $address;\n\t\t\t\t$payload[$type][] = compact('name', 'address');\n\t\t\t\tif (filter_var($address, FILTER_VALIDATE_EMAIL) === false)\n\t\t\t\t{\n\t\t\t\t\tthrow new \\InvalidArgumentException(\"Invalid e-mail address [$address].\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t$payload['contact_extras'] = $message->contactExtras;\n\n\t\treturn json_encode($payload);\n\t}", "public function getFormattedMessage(string $message): string;", "public function composeParameters(Message $message)\n {\n $formattedNumbers = $message->formatNumber();\n $formattedMessage = $message->getContent();\n \n $params = array(\n 'apikey' => $this->config->getApiKey(),\n 'number' => $formattedNumbers,\n 'message' => $formattedMessage,\n 'sendername' => $this->getSender($message)\n );\n\n return $params;\n }", "function utilmessage($message){\n return $message;\n }", "public function format(array $message);", "public function encode($message, $connection) \n {\n return strval($message);\n }", "protected function makeRequest($message)\n {\n\n $request =\n \"<e:{$this->method}.Execute>\"\n . \"<e:Nfsecabecmsg>\"\n . \"&lt;cabecalho versao=\\\"201001\\\"&gt;&lt;versaoDados&gt;V2010&lt;/versaoDados&gt;&lt;/cabecalho&gt;\"\n . \"</e:Nfsecabecmsg>\"\n . \"<e:Nfsedadosmsg>\"\n . $message\n . \"</e:Nfsedadosmsg>\"\n . \"</e:{$this->method}.Execute>\";\n return $request;\n }", "public static function message($message = null) {\n\t\treturn String::insert(static::$format, array(\n\t\t\t'name' => ($message) ? : '{:name}',\n\t\t\t'environment' => Environment::get(),\n\t\t));\n\t}", "function build_message($part)\n {\n \n $message = $part[ \"message\"];\n $message = chunk_split(base64_encode($message));\n $encoding = \"base64\";\n \n return \"Content-Type: \".$part[ \"ctype\"].\n ($part[ \"name\"]? \"; name = \\\"\".$part[ \"name\"]. \"\\\"\" : \"\").\n \"\\nContent-Transfer-Encoding: $encoding\\n\\n$message\\n\";\n \n }", "public static function treatMessage($message) {\n return $message;\n }", "function raw($message);", "public function formatMessage($message)\n\t{\n\t\t[$text, $level, $category, $timestamp] = $message;\n\t\t$level = \\yii\\log\\Logger::getLevelName($level);\n\t\tif (!\\is_string($text)) {\n\t\t\t// exceptions may not be serializable if in the call stack somewhere is a Closure\n\t\t\tif ($text instanceof \\Throwable || $text instanceof \\Exception) {\n\t\t\t\t$text = (string) $text;\n\t\t\t} else {\n\t\t\t\t$text = \\yii\\helpers\\VarDumper::export($text);\n\t\t\t}\n\t\t}\n\t\t$traces = '';\n\t\tif (isset($message[4])) {\n\t\t\t$traces = $message[4];\n\t\t}\n\t\tif ('' !== $category) {\n\t\t\t$category = '[' . $category . ']';\n\t\t}\n\t\t$micro = explode('.', $timestamp);\n\t\t$micro = end($micro);\n\n\t\treturn date('Y-m-d H:i:s', $timestamp) . \".$micro [$level]$category - $text\"\n\t\t\t. (empty($traces) ? '' : \"\\n\" . $traces);\n\t}", "private function buildMessage(string $message, int $timerRef = null, bool $newLineAfter = false): string\n {\n return $message . $this->formatTime($timerRef) . ($newLineAfter ? PHP_EOL : '');\n }", "function createMessagePayload($message) {\n\tglobal $config;\n\treturn [\n\t\t'chat_id' => $config['chatId'],\n\t\t'text' => $message,\n\t\t'parse_mode' => 'HTML',\n\t];\n}", "private function prepareMessage($message, $mainSequence = \"\")\n {\n $message = $this->parseInlineParam($message, $mainSequence);\n $message = $this->parseInlineIcons($message);\n $result = $message . Others::RESET;\n\n return $result;\n }", "protected function render(): Message\n {\n $headers = '';\n foreach ($this->buildHeaders() as $header => $value) {\n $headers .= \"{$header}: {$value}\" . self::CRLF;\n }\n $message = implode(self::CRLF, $this->buildMessage());\n\n return new Message($headers, $message);\n }", "protected function buildMessage() {\n $msg = $this->getMethod() . ' ' . $this->getUri() . ' ';\n $msg.= 'HTTP/' . $this->getHttpVersion() . \"\\r\\n\";\n \n foreach ($this->getAllHeaders() as $header => $value) {\n $msg.= \"$header: $value\\r\\n\";\n }\n $msg.= \"\\r\\n\" . $this->getBody();\n \n return $msg;\n }", "private function generateMessage($message, array $context): String\n {\n foreach ($context as $key => $value) {\n if (stripos($message, $key) !== false) {\n $message = str_replace(\"{\" . $key . \"}\", $value, $message);\n }\n }\n return $message;\n }", "private function convertYiisMessageToString($message): string\n {\n if ($message instanceof \\Throwable) {\n $this->exception = $message;\n\n return \\get_class($message) . ': ' . $message->getMessage();\n }\n\n return VarDumper::export($message);\n }", "public function getMessagefromArray($array){\n\t\tunset($array[0]);\n\t\treturn implode(' ', $array);\n\t}", "public function setMessage($message)\n {\n return $this->mergeData([static::messageKey() => (string) $message]);\n }", "function message($status, $message) {\n\t\treturn array(\"status\" => $status, \"data\" => $message);\n\t}", "public function translate($command)\n {\n $args = explode('-', $command);\n foreach ($args as & $a) {\n $a = ucfirst($a);\n }\n return join('', $args) . 'Command';\n }", "function system_message($message) {\n\treturn system_messages($message, \"messages\");\n}", "protected function prepareMessage(Message $message): void\n {\n $data = $message->getData();\n\n if ($data) {\n $message->setMessage(Arr::toString($data));\n }\n }", "private function commandToArray($command) {\n $dump = array(\n 'name' => $command->getName(),\n 'description' => $command->getShortdesc(),\n 'longdesc' => $command->getLongdesc(),\n );\n\n foreach ($command->getSubcommands() as $subcommand) {\n $dump['subcommands'][] = $this->commandToArray($subcommand);\n }\n\n if (empty($dump['subcommands'])) {\n $dump['synopsis'] = (string)$command->getSynopsis();\n }\n\n return $dump;\n }", "public function message($message);", "public function toMessage(): array;", "public function formatMessage($message){\n\n $formattedMessage = explode('.' , $message);\n\n switch(count($formattedMessage)){\n case 1:\n return [\n \"lang\" => DEFAULT_LANGUAGE,\n \"module\" => DEFAULT_LANGUAGE_MODULE,\n \"type\" => DEFAULT_MESSAGE_SUBGROUP,\n \"subtype\" => $formattedMessage[1],\n ];\n break;\n case 2:\n return [\n \"lang\" => DEFAULT_LANGUAGE,\n \"module\" => $formattedMessage[0],\n \"type\" => DEFAULT_MESSAGE_SUBGROUP,\n \"subtype\" => $formattedMessage[1],\n ];\n break;\n case 3:\n return [\n \"lang\" => $formattedMessage[0],\n \"module\" => $formattedMessage[1],\n \"type\" => DEFAULT_MESSAGE_SUBGROUP,\n \"subtype\" => $formattedMessage[3],\n ];\n break;\n case 4:\n return [\n \"lang\" => $formattedMessage[0],\n \"module\" => $formattedMessage[1],\n \"type\" => $formattedMessage[2],\n \"subtype\" => $formattedMessage[3],\n ];\n break;\n default:\n throw new Exception('Invalid number of parameters ('.$message.') on '.Lang::class.'/formatMessage()');\n break;\n\n }\n\n }", "public function nativeMessageProcessing($message): array\n\t{\n\t\treturn $message;\n\t}", "public function buildMessage() {\n\t\t\t$message = array();\n\t\t\t\n\t\t\t$message[] = $this->highway;\n\t\t\t$message[] = $this->direction;\n\t\t\t\n\t\t\tif ($this->location) {\n\t\t\t\t$message[] = $this->location;\n\t\t\t}\n\t\t\t\n\t\t\tif ($this->from_at && $this->to) {\n\t\t\t\t$message[] = 'From ' . $this->from_at . ' to ' . $this->to;\n\t\t\t}\n\t\t\telse if ($this->from_at && !$this->to) {\n\t\t\t\t$message[] = 'At ' . $this->from_at;\n\t\t\t}\n\t\t\telse if (!$this->from_at && $this->to) {\n\t\t\t\t$message[] = 'To ' . $this->to;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tthrow new Exception('from_at and to are both empty?!' . print_r($this, true));\n\t\t\t}\n\t\t\t\n\t\t\t$message[] = '-';\n\t\t\t\n\t\t\tif ($this->reason == 'Other') {\n\t\t\t\t$reason = 'Incident';\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$reason = $this->reason;\n\t\t\t}\n\t\t\t\n\t\t\t// \"All Lanes Closed due to Serious Collision\"\n\t\t\tif ($this->lanes_affected == 'All Lanes Closed') {\n\t\t\t\t$message[] = 'All Lanes Closed Due to';\n\t\t\t\tif ($this->traffic_impact) {\n\t\t\t\t\t$message[] = $this->traffic_impact;\n\t\t\t\t}\n\t\t\t\t$message[] = $reason;\n\t\t\t}\n\t\t\t// \"Serious Collision Affecting 1 Right Lane\"\n\t\t\telse {\n\t\t\t\tif ($this->traffic_impact) {\n\t\t\t\t\t$message[] = $this->traffic_impact;\n\t\t\t\t}\n\t\t\t\t$message[] = $reason;\n\t\t\t\t$message[] = 'Affecting';\n\t\t\t\t$message[] = $this->lanes_affected; \n\t\t\t}\n\t\t\t\n\t\t\t$this->message = implode(' ', $message);\n\t\t}", "protected static function encodeAndOutputMessage($message){\nif(substr(Application::$format,0,4)=='json'){\n echo json_encode(array('timestamp'=>gmdate(\"Y-m-d H:i:s\").'Z','error'=>$message)).\"\\n\";\n }\nelseif(substr(Application::$format,0,3)=='xml'){\n $msg=str_replace(array( \"&\",\"<\", \">\", \"\\\"\", \"'\"),\n array(\"&amp;\",\"&lt;\", \"&gt;\", \"&quot;\", \"&apos;\"), $message); //Encode for XML\n echo '<?xml version=\"1.0\" encoding=\"UTF-8\"?>'.\"\\n\";\n echo '<response timestamp=\"'.gmdate(\"Y-m-d H:i:s\").'Z\">'.\n '<error>'.$msg.'</error>'.\n '</response>'.\"\\n\";\n }\nelseif(substr(Application::$format,0,4)=='html'){\n if(!Application::$errorTemplateFile || !file_exists(Application::$errorTemplateFile)){\n Logger::log(self::$systemErrorLog,\"format is html, but templateFile (\".Application::$errorTemplateFile.\") not set.\");\n echo '<html><head><title>Error</title></head><body>'.htmlspecialchars($message).'</body></html>';\n }\n else{\n include_once(Application::$errorTemplateFile);\n }\n }\nelse echo gmdate(\"Y-m-d H:i:s\").'Z:'.$message.\"\\n\";\n}", "public function message($message)\n {\n return $this->setMessage($message);\n }", "protected function formatMessage(string $message, bool $needsEncoding): string\n {\n $message = preg_replace(\"/\\r\\n|\\n/\", \"\\r\\n\", $message);\n if ($needsEncoding) {\n $message = quoted_printable_encode($message);\n }\n\n return $message;\n }", "public function formate($message, array $content) {\n foreach ($content as $placeholder => $value) {\n\n $replacement['{' . $placeholder . '}'] = (string) $value;\n }\n\n return \\strtr($message, $replacement);\n }", "public function translate($message, $params = array())\n {\n // Update the current message with the domain translation, if we have one.\n if(isset($this->messages[$message]) && ! empty($this->messages[$message])) {\n $message = $this->messages[$message];\n }\n\n if(empty($params)) {\n return $message;\n }\n\n // Standard Message formatting, using the standard PHP Intl and its MessageFormatter.\n // The message string should be formatted using the standard ICU commands.\n return \\MessageFormatter::formatMessage($this->locale, $message, $params);\n\n // The VSPRINTF alternative for Message formatting, for those die-hard against ICU.\n // The message string should be formatted using the standard PRINTF commands.\n //return vsprintf($message, $arguments);\n }", "protected function buildMessage($event)\n {\n $message = $event['test'];\n\n if ($event['message']) {\n $message .= PHP_EOL . $event ['message'];\n }\n\n return $message;\n }", "function message(Message $message);", "public function withMessage($message)\n {\n return $this->json([\n 'message' => $message,\n ]);\n }", "function constructMessage($data, $length) {\n\n $command[0] = 2;\n $command[1] = 2;\n $command[2] = 6;\n\n $isResponse = 0;\n\n $msg[0] = $length % 256;\n $msg[1] = (int) ($length / 256);\n $msg[2] = 0;\n $msg[3] = 0;\n $msg[4] = 1; // group address. kokeilisko 1\n $msg[5] = 1; // unit address. kokeilisko 1\n $msg[6] = $this->sequence % 256;\n $msg[7] = (int) ($this->sequence / 256);\n $msg[8] = $command[0];\n $msg[9] = $command[1];\n $msg[10] = $command[2];\n $msg[11] = $isResponse;\n\n for ($i = 12; $i < 12 + strlen($data); $i++) {\n $msg[$i] = ord($data[$i - 12]);\n }\n\n $sum = array_sum($msg);\n $checksum1 = $sum % 256;\n $checksum2 = (int) ($sum / 256);\n\n $this->sequence++;\n\n for ($i = 0; $i < count($msg); $i++) {\n $chrMsg = $chrMsg . chr($msg[$i]);\n }\n\n $message = 'U' . chr(0xa7) . chr($checksum1) . chr($checksum2) . $chrMsg;\n\n return $message;\n }", "private function buildEncodedPayload($message, $options = array())\n {\n $payload = array(\n 'aps' => array(\n 'alert' => $message,\n 'badge' => isset($options['badge']) ? $options['badge'] : 1,\n 'sound' => isset($options['sound']) ? $options['sound'] : 'default'\n ),\n 'color' => isset($options['color']) ? $options['color'] : 'green'\n );\n\n $this->detectAndSetCustomData($payload, $message);\n\n return $encodedPayload = json_encode($payload);\n }", "public function getMessage() {\n\t\treturn preg_replace('%(\\r\\n|\\r|\\n)%', self::$crlf, $this->message . (MAIL_SIGNATURE ? self::$crlf . self::$crlf . MAIL_SIGNATURE : ''));\n\t}", "public function __toString()\n\t{\n\t\treturn (string) $this->message;\n\t}", "static public function compact(&$message)\r\n\t{\r\n\t\t$message = str_replace(array(\"\\r\\n\", \"\\n\", \"\\r\", \"\\t\"), ' ', $message);\r\n\t\t$message = preg_replace('@\\s+@', ' ', $message);\r\n\t}", "public function __toString()\n\t{\n\t\t$str = '' ;\n\t\tif ($this->code != 0) {\n\t\t\t$str .= $this->code . ': ';\n\t\t}\n\t\treturn $str . $this->message;\n\t}", "public function process(Message $command);", "protected function createPayload($token, $message)\n {\n $jsonBody = json_encode($message, JSON_FORCE_OBJECT);\n $token = preg_replace(\"/[^0-9A-Fa-f]/\", \"\", $token);\n $payload = chr(0) . pack(\"n\", 32) . pack(\"H*\", $token) . pack(\"n\", strlen($jsonBody)) . $jsonBody;\n\n return $payload;\n }", "protected function finishMessage($message)\n {\n return $message.self::EOL.self::EOL;\n }", "private function formatMessage()\n { \n $body = '--' . $this->boundary . $this->breakLine .\n 'Content-type: text/plain; charset=' . $this->charset . $this->breakLine .\n 'Content-Transfer-Encoding: ' . $this->encoding . $this->breakLine . $this->breakLine .\n $this->altMessage . $this->breakLine . $this->breakLine;\n $body .= '--' . $this->boundary . $this->breakLine .\n 'Content-type: text/html; charset=' . $this->charset . $this->breakLine .\n 'Content-Transfer-Encoding: ' . $this->encoding . $this->breakLine . $this->breakLine .\n $this->message . $this->breakLine . $this->breakLine;\n $this->message = $body;\n }", "private static function conjugate(Message $message)\n {\n // Accord verb\n $verb = Accord\\Tense::past($message->verb);\n $verb = Accord::verb($verb);\n\n // Save it\n $message->verb = $verb;\n\n return $message;\n }", "protected function buildFinalCommand( Command $command ) {\n\t\t$wrappers = $this->wrappers;\n\t\tusort( $wrappers, static function ( Wrapper $a, Wrapper $b ) {\n\t\t\treturn $a->getPriority() <=> $b->getPriority();\n\t\t} );\n\t\tforeach ( $wrappers as $wrapper ) {\n\t\t\t$wrapper->wrap( $command );\n\t\t}\n\n\t\tif ( $command->getIncludeStderr() ) {\n\t\t\t$command->unsafeCommand( $command->getCommandString() . ' 2>&1' );\n\t\t}\n\t}", "function messageToString($Message)\n{\n // with older versions without having to maintain a lot of conditionals\n $table = [\n 10000 => 'IPS_BASE',\n 10001 => 'IPS_KERNELSTARTED',\n 10002 => 'IPS_KERNELSHUTDOWN',\n 10100 => 'IPS_KERNELMESSAGE',\n 10101 => 'KR_CREATE',\n 10102 => 'KR_INIT',\n 10103 => 'KR_READY',\n 10104 => 'KR_UNINIT',\n 10105 => 'KR_SHUTDOWN',\n 10200 => 'IPS_LOGMESSAGE',\n 10201 => 'KL_MESSAGE',\n 10202 => 'KL_SUCCESS',\n 10203 => 'KL_NOTIFY',\n 10204 => 'KL_WARNING',\n 10205 => 'KL_ERROR',\n 10206 => 'KL_DEBUG',\n 10207 => 'KL_CUSTOM',\n 10300 => 'IPS_MODULEMESSAGE',\n 10301 => 'ML_LOAD',\n 10302 => 'ML_UNLOAD',\n 10400 => 'IPS_OBJECTMESSAGE',\n 10401 => 'OM_REGISTER',\n 10402 => 'OM_UNREGISTER',\n 10403 => 'OM_CHANGEPARENT',\n 10404 => 'OM_CHANGENAME',\n 10405 => 'OM_CHANGEINFO',\n 10406 => 'OM_CHANGETYPE',\n 10407 => 'OM_CHANGESUMMARY',\n 10408 => 'OM_CHANGEPOSITION',\n 10409 => 'OM_CHANGEREADONLY',\n 10410 => 'OM_CHANGEHIDDEN',\n 10411 => 'OM_CHANGEICON',\n 10412 => 'OM_CHILDADDED',\n 10413 => 'OM_CHILDREMOVED',\n 10414 => 'OM_CHANGEIDENT',\n 10415 => 'OM_CHANGEDISABLED',\n 10500 => 'IPS_INSTANCEMESSAGE',\n 10501 => 'IM_CREATE',\n 10502 => 'IM_DELETE',\n 10503 => 'IM_CONNECT',\n 10504 => 'IM_DISCONNECT',\n 10505 => 'IM_CHANGESTATUS',\n 10506 => 'IM_CHANGESETTINGS',\n 10507 => 'IM_CHANGEATTRIBUTE',\n 10508 => 'IM_ADDATTRIBUTE',\n 10509 => 'IM_REMOVEATTRIBUTE',\n 10510 => 'IM_SEARCHMESSAGE',\n 10511 => 'IM_SEARCHSTART',\n 10512 => 'IM_SEARCHSTOP',\n 10513 => 'IM_SEARCHUPDATE',\n 10521 => 'IM_FORMFIELDCREATE',\n 10522 => 'IM_FORMFIELDDELETE',\n 10523 => 'IM_FORMFIELDUPDATE',\n 10524 => 'IM_FORMRELOAD',\n 10600 => 'IPS_VARIABLEMESSAGE',\n 10601 => 'VM_CREATE',\n 10602 => 'VM_DELETE',\n 10603 => 'VM_UPDATE',\n 10604 => 'VM_CHANGEPROFILENAME',\n 10605 => 'VM_CHANGEPROFILEACTION',\n 10700 => 'IPS_SCRIPTMESSAGE',\n 10701 => 'SM_CREATE',\n 10702 => 'SM_DELETE',\n 10703 => 'SM_CHANGEFILE',\n 10704 => 'SM_BROKEN',\n 10705 => 'SM_UPDATE',\n 10800 => 'IPS_EVENTMESSAGE',\n 10801 => 'EM_CREATE',\n 10802 => 'EM_DELETE',\n 10803 => 'EM_UPDATE',\n 10804 => 'EM_CHANGEACTIVE',\n 10805 => 'EM_CHANGELIMIT',\n 10806 => 'EM_CHANGEACTION',\n 10807 => 'EM_CHANGETRIGGER',\n 10808 => 'EM_CHANGETRIGGERVALUE',\n 10809 => 'EM_CHANGETRIGGEREXECUTION',\n 10810 => 'EM_CHANGECYCLIC',\n 10811 => 'EM_CHANGECYCLICDATEFROM',\n 10812 => 'EM_CHANGECYCLICDATETO',\n 10813 => 'EM_CHANGECYCLICTIMEFROM',\n 10814 => 'EM_CHANGECYCLICTIMETO',\n 10815 => 'EM_ADDSCHEDULEACTION',\n 10816 => 'EM_REMOVESCHEDULEACTION',\n 10817 => 'EM_CHANGESCHEDULEACTION',\n 10818 => 'EM_ADDSCHEDULEGROUP',\n 10819 => 'EM_REMOVESCHEDULEGROUP',\n 10820 => 'EM_CHANGESCHEDULEGROUP',\n 10821 => 'EM_ADDSCHEDULEGROUPPOINT',\n 10822 => 'EM_REMOVESCHEDULEGROUPPOINT',\n 10823 => 'EM_CHANGESCHEDULEGROUPPOINT',\n 10824 => 'EM_ADDCONDITION',\n 10825 => 'EM_REMOVECONDITION',\n 10826 => 'EM_CHANGECONDITION',\n 10827 => 'EM_ADDCONDITIONVARIABLERULE',\n 10828 => 'EM_REMOVECONDITIONVARIABLERULE',\n 10829 => 'EM_CHANGECONDITIONVARIABLERULE',\n 10830 => 'EM_ADDCONDITIONDATERULE',\n 10831 => 'EM_REMOVECONDITIONDATERULE',\n 10832 => 'EM_CHANGECONDITIONDATERULE',\n 10833 => 'EM_ADDCONDITIONTIMERULE',\n 10834 => 'EM_REMOVECONDITIONTIMERULE',\n 10835 => 'EM_CHANGECONDITIONTIMERULE',\n 10836 => 'EM_ADDCONDITIONDAYOFTHEWEEKRULE',\n 10837 => 'EM_REMOVECONDITIONDAYOFTHEWEEKRULE',\n 10838 => 'EM_CHANGECONDITIONDAYOFTHEWEEKRULE',\n 10900 => 'IPS_MEDIAMESSAGE',\n 10901 => 'MM_CREATE',\n 10902 => 'MM_DELETE',\n 10903 => 'MM_CHANGEFILE',\n 10904 => 'MM_AVAILABLE',\n 10905 => 'MM_UPDATE',\n 10906 => 'MM_CHANGECACHED',\n 11000 => 'IPS_LINKMESSAGE',\n 11001 => 'LM_CREATE',\n 11002 => 'LM_DELETE',\n 11003 => 'LM_CHANGETARGET',\n 11100 => 'IPS_FLOWMESSAGE',\n 11101 => 'FM_CONNECT',\n 11102 => 'FM_DISCONNECT',\n 11103 => 'FM_CHILDADDED',\n 11104 => 'FM_CHILDREMOVED',\n 11200 => 'IPS_ENGINEMESSAGE',\n 11201 => 'SE_UPDATE',\n 11202 => 'SE_EXECUTE',\n 11203 => 'SE_RUNNING',\n 11300 => 'IPS_PROFILEMESSAGE',\n 11301 => 'PM_CREATE',\n 11302 => 'PM_DELETE',\n 11303 => 'PM_CHANGETEXT',\n 11304 => 'PM_CHANGEVALUES',\n 11305 => 'PM_CHANGEDIGITS',\n 11306 => 'PM_CHANGEICON',\n 11307 => 'PM_ASSOCIATIONADDED',\n 11308 => 'PM_ASSOCIATIONREMOVED',\n 11309 => 'PM_ASSOCIATIONCHANGED',\n 11400 => 'IPS_TIMERMESSAGE',\n 11401 => 'TM_REGISTER',\n 11402 => 'TM_UNREGISTER',\n 11403 => 'TM_CHANGEINTERVAL',\n 11500 => 'IPS_ACTIONMESSAGE',\n 11501 => 'AM_FORMFIELDCREATE',\n 11502 => 'AM_FORMFIELDDELETE',\n 11503 => 'AM_FORMFIELDUPDATE',\n 11504 => 'AM_FORMRELOAD'\n ];\n\n if (isset($table[$Message])) {\n return $table[$Message];\n }\n return $Message;\n}", "function messageBox(string $message): string {\n $line = str_repeat('━', strlen($message) + 2);\n $topline = \"┏{$line}┓\";\n $bottomline = \"┗{$line}┛\";\n\n return sprintf(\"%s\\n┃ %s ┃\\n%s\\n\\n\", $topline, $message, $bottomline);\n}", "public function __toString()\n {\n return (string) $this->message;\n }", "protected function prepareMessage(ShortMessageContract $message)\n {\n return [\n 'from' => $this->from,\n 'to' => $message->receivers(),\n 'text' => $message->body(),\n ];\n }", "static public function rawSuccess($message)\n {\n return PMA_Message::raw($message, PMA_Message::SUCCESS);\n }", "public function rawMessage(){\n $return = array(\n 'message' => '',\n 'options' => array(),\n );\n if ($this->getWillLend() && $this->isItHome()) {\n $return['message'] = 'bibdk_holding_material_is_home';\n }\n else if (!$this->isItHome() && $this->getExpectedDelivery()) {\n $return['message'] = 'bibdk_holding_material_will_be_home @date';\n $return['options'] = array('@date' => format_date($this->getExpectedDelivery(), 'custom', 'd.m.Y'));\n }\n else if ($note = $this->hasNote()){\n $return['message'] = $note;\n }\n else if ($error = $this->getErrorMessage()) {\n $return['message'] = $error;\n }\n else {\n $return['message'] = 'bibdk_holding_someting_went_wrong';\n }\n\n return $return;\n }", "public function getFormattedString()\r\n {\r\n $string = (string) $this->code;\r\n\r\n if (null !== $this->message) {\r\n $string = $string . ' ' . $this->message;\r\n }\r\n\r\n return $string;\r\n }", "public function set_message($message)\n {\n $this->messages[] = $message;\n\n return $message;\n }", "protected abstract function _message();", "public function get_message(){\n return implode(', ', $this->messages);\n }", "protected function renderOne($message)\n\t{\n\t\treturn str_replace($this->placeholder, $message['message'], $this->config->get('outmess::styles.' . $this->style . '.' . $message['type'])); \n\t}", "public function transform(Message $message)\n {\n return $message->toArray();\n }", "function formatMessage($detail_code,$message_sequence){\n\t\t//preparing message object\n\t\t$message = array();\n\t\t//adding the fields of the message\n\t\t$message[\"msg_type\"] = \"\";\n\t\t$message[\"msg_seq\"] = \"\";\n\t\t$message[\"code\"] = \"\";\n\t\t$message[\"code_msg\"] = \"\";\n\t\t$message[\"code_details\"] = \"\";\n\t\t\n\t\t//finding out the detail code sent and filling the message fields depending on it.\n\t\tswitch($detail_code){\n\t\t\tcase $this->SUCCESS:\n\t\t\t\t$message[\"msg_type\"] = $this->ACK;\n\t\t\t\t$message[\"msg_seq\"] = $message_sequence;\n\t\t\t\t$message[\"code\"] = $this->SUCCESS;\n\t\t\t\t$message[\"code_msg\"] = \"success\";\n\t\t\t\t$message[\"code_details\"] = \"Message executed successfully\";\n\t\t\t\t$this->logEvent(\"Message(sequence = \".$message_sequence.\") executed successfully.\");\n\t\t\t\tbreak;\n\t\t\tcase $this->UNAUTHORIZED:\n\t\t\t\t$message[\"msg_type\"] = $this->ERROR;\n\t\t\t\t$message[\"code\"] = $this->UNAUTHORIZED;\n\t\t\t\t$message[\"code_msg\"] = \"unauthorized\";\n\t\t\t\t$message[\"code_details\"] = \"This connection is unauthorized so it will be closed!\";\n\t\t\t\tbreak;\n\t\t\tcase $this->NOT_REGISTERED:\n\t\t\t\t$message[\"msg_type\"] = $this->ERROR;\n\t\t\t\t$message[\"msg_seq\"] = $message_sequence;\n\t\t\t\t$message[\"code\"] = $this->NOT_REGISTERED;\n\t\t\t\t$message[\"code_msg\"] = \"not registered\";\n\t\t\t\t$message[\"code_details\"] = \"Station not registered in the database!\";\n\t\t\t\tbreak;\n\t\t\tcase $this->MESSAGE_PARSING_ERROR:\n\t\t\t\t$message[\"msg_type\"] = $this->ERROR;\n\t\t\t\t$message[\"code\"] = $this->INVALID_MESSAGE;\n\t\t\t\t$message[\"code_msg\"] = \"invalid message\";\n\t\t\t\t$message[\"code_details\"] = \"Error while parsing the message!\";\n\t\t\t\tbreak;\n\t\t\tcase $this->MESSAGE_TYPE_CONTENT_MISMATCH:\n\t\t\t\t$message[\"msg_type\"] = $this->ERROR;\n\t\t\t\t$message[\"msg_seq\"] = $message_sequence;\n\t\t\t\t$message[\"code\"] = $this->INVALID_MESSAGE;\n\t\t\t\t$message[\"code_msg\"] = \"invalid message\";\n\t\t\t\t$message[\"code_details\"] = \"message type doesn't match its content!\";\n\t\t\t\tbreak;\n\t\t\tcase $this->MESSAGE_TYPE_ERROR:\n\t\t\t\t$message[\"msg_type\"] = $this->ERROR;\n\t\t\t\t$message[\"msg_seq\"] = $message_sequence;\n\t\t\t\t$message[\"code\"] = $this->INVALID_MESSAGE;\n\t\t\t\t$message[\"code_msg\"] = \"invalid message\";\n\t\t\t\t$message[\"code_details\"] = \"Invalid message Type\";\n\t\t\t\tbreak;\n\t\t\tcase $this->HIGHWAY_NOT_FOUND:\n\t\t\t\t$message[\"msg_type\"] = $this->ERROR;\n\t\t\t\t$message[\"msg_seq\"] = $message_sequence;\n\t\t\t\t$message[\"code\"] = $this->EXECUTION_ERROR;\n\t\t\t\t$message[\"code_msg\"] = \"execution error\";\n\t\t\t\t$message[\"code_details\"] = \"Could not get the highway name from the given long,lat\";\n\t\t\t\tbreak;\n\t\t\tcase $this->STATION_REGITRATION_ERROR:\n\t\t\t\t$message[\"msg_type\"] = $this->ERROR;\n\t\t\t\t$message[\"msg_seq\"] = $message_sequence;\n\t\t\t\t$message[\"code\"] = $this->EXECUTION_ERROR;\n\t\t\t\t$message[\"code_msg\"] = \"execution error\";\n\t\t\t\t$message[\"code_details\"] = \"Error while registering the station!\";\n\t\t\t\tbreak;\n\t\t\tcase $this->PASS_ADDING_ERROR:\n\t\t\t\t$message[\"msg_type\"] = $this->ERROR;\n\t\t\t\t$message[\"msg_seq\"] = $message_sequence;\n\t\t\t\t$message[\"code\"] = $this->EXECUTION_ERROR;\n\t\t\t\t$message[\"code_msg\"] = \"execution error\";\n\t\t\t\t$message[\"code_details\"] = \"Error while adding new pass!\";\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\t$message[\"msg_type\"] = $this->ERROR;\n\t\t\t\t$message[\"msg_seq\"] = $message_sequence;\n\t\t\t\t$message[\"code\"] = $this->EXECUTION_ERROR;\n\t\t\t\t$message[\"code_msg\"] = \"execution error\";\n\t\t\t\t$message[\"code_details\"] = \"Unknown error occurred during execution!\";\n\t\t\t\tbreak;\n\t\t}\n\t\treturn json_encode($message);\n\t}", "public function compose() {\n return $this->createMessage();\n }", "protected function parseWatsonMessage($message)\n {\n return $message;\n }", "function message($message = '')\n\t{\n\t\tif (!$message)\n\t\t\treturn;\n\t\t\n\t\t//if the message needs to be wrapped, do it now.\n\t\tif ($this->config['wordwrap'])\n\t\t\t$this->message = $this->wrap_message($message, $this->config['wraplength'], ($this->config['mailtype'] == 'html'));\n\t\telse\n\t\t\t$this->message = $message;\n\t}", "protected function parseCode($message)\n {\n return implode(\n '<span style=\"font-family: monospace;\">',\n explode('<code>', implode('</span>', explode('</code>', $message)))\n );\n }", "private static function convertCommandToArray($command, array $data)\n {\n if ($command == '') {\n return [];\n }\n\n $commandParts = explode(':', $command);\n $part = $commandParts[0];\n unset($commandParts[0]);\n $command = implode(':', $commandParts);\n\n if ($command != '') {\n $result[$part] = self::convertCommandToArray($command, $data);\n } else {\n $result[$part] = $data;\n }\n\n return $result;\n }", "private function formatCommand(string $command): string\n {\n $parts = explode(' ', $command);\n\n if (count($parts) > 2 && $parts[1] === \"'artisan'\") {\n array_shift($parts);\n array_shift($parts);\n }\n\n return implode(' ', $parts);\n }", "public function toMessage(OpenID_Message $message)\n {\n // Make sure we have a valid alias name\n if (empty($this->alias) || in_array($this->alias, self::$reserved)) {\n throw new OpenID_Extension_Exception(\n 'Invalid extension alias' . $this->alias,\n OpenID_Exception::INVALID_VALUE\n );\n }\n\n $namespaceAlias = 'openid.ns.' . $this->alias;\n\n // Make sure the alias doesn't collide\n if ($message->get($namespaceAlias) !== null) {\n throw new OpenID_Extension_Exception(\n 'Extension alias ' . $this->alias . ' is already set',\n OpenID_Exception::INVALID_VALUE\n );\n }\n\n // Add alias assignment? (SREG 1.0 Doesn't use one)\n if ($this->useNamespaceAlias) {\n $message->set($namespaceAlias, $this->namespace);\n }\n\n foreach ($this->values as $key => $value) {\n $message->set('openid.' . $this->alias . '.' . $key, $value);\n }\n }", "public static function encrypt($message, $key, $encode = false) {\n list($encKey, $authKey) = self::splitKeys($key);\n $ciphertext = parent::encrypt($message, $encKey);\n $mac = hash_hmac(self::HASH_ALGORITHM, $ciphertext, $authKey, true);\n if ($encode)\n return base64_encode($mac.$ciphertext);\n\n return $mac.$ciphertext;\n }", "protected function messageToString($level, $message, array $context)\n {\n if (!empty($context)) {\n $message .= ' '.json_encode($context, JSON_UNESCAPED_UNICODE | JSON_PARTIAL_OUTPUT_ON_ERROR);\n }\n\n return $message;\n }", "function addMessage( $message )\n {\n if ( isset($message['errorMessage']) )\n {\n $this->messages[] = array_merge($this->empty_message,$message);\n } else if ( isset($message[0]) && isset($message[0]['errorMessage']) ) {\n foreach ( $message as $m )\n {\n $this->messages[] = array_merge($this->empty_message,$m);\n }\n }\n }", "function handle_commit_command($command) {\n $output = '';\n $ref = $this->checkAndGet($command, 'ref');\n $mark = $this->checkAndGet($command, 'mark', FALSE);\n $author = $this->checkAndGetAuthor($command, 'author', FALSE);\n $committer = $this->checkAndGetAuthor($command, 'committer');\n $message = $this->checkAndGet($command, 'message');\n $from = $this->checkAndGet($command, 'from', FALSE);\n $merge = $this->checkAndGet($command, 'merge', FALSE);\n $ops = $this->checkAndGet($command, 'operations', FALSE);\n\n $output .= sprintf(\"commit %s\\n\", $ref);\n $output .= $this->handleMark($mark);\n if (!empty($author)) {\n $output .= $this->handleAuthor('author', $author);\n }\n $output .= $this->handleAuthor('committer', $committer);\n $output .= $this->handleData($message);\n if (!empty($from)) {\n $output .= sprintf(\"from %s\\n\", $from);\n }\n\n if ($merge) {\n foreach ($merge as $id) {\n $output .= sprintf(\"merge %s\\n\", $id);\n }\n }\n foreach ($ops as $op) {\n $output .= $this->handleOperation($op);\n }\n // not necessary in newer versions of git.\n $output .= \"\\n\";\n\n return $output;\n }", "public function buildChangedMessage() {\n\t\t\tvar_dump(array_diff($this->data, $this->original_data));\n\t\t\t$message = array();\n\t\t\t$this->changed_message = implode(' ', $message);\n\t\t}", "public function writeMessage($message);", "function str(MessageInterface $message)\n{\n if ($message instanceof RequestInterface) {\n $msg = $message->getMethod().' '.$message->getRequestTarget().' HTTP/'.$message->getProtocolVersion();\n if (!$message->hasHeader('host')) {\n $msg .= \"\\r\\nHost: \".$message->getUri()->getHost();\n }\n } elseif ($message instanceof ResponseInterface) {\n $msg = 'HTTP/'.$message->getProtocolVersion().' '.$message->getStatusCode().' '.$message->getReasonPhrase();\n } else {\n throw new \\InvalidArgumentException(\"Unknown message type\");\n }\n\n foreach ($message->getHeaders() as $name => $value) {\n $msg .= \"\\r\\n{$name}: \".(strtolower($name) === 'cookie' ? implode('; ', $value) : implode(', ', $value));\n }\n\n $msg .= \"\\r\\n\\r\\n\".$message->getBody();\n return $msg;\n}", "protected function compileComplexAggregate(CompilableClause $query)\n {\n list($function, $column) = $query->statements['aggregate'];\n\n $query->statements['aggregate'] = null;\n $query->statements['columns'] = $column === '*' ? [] : [['column' => $column, 'alias' => null]];\n\n return 'SELECT '.$this->compileAggregate($query, $function, '*', false).' FROM ('.$this->doCompileSelect($query).') as derived_query';\n }", "public function message()\n {\n if (null === $this->standardMessage) {\n $this->standardMessage = $this->toStandardMessage(\n $this->message\n );\n }\n\n return $this->standardMessage;\n }", "function string_to_finalmessage($message) {\n $finalmessage = \"\";\n $sss = \"\";\n for ($i = 0; $i < mb_strlen($message, \"UTF-8\"); $i++) {\n $sss = mb_substr($message, $i, 1, \"utf-8\");\n $a = 0;\n $abc = \"&#\" . ordutf8($sss, $a) . \";\";\n $finalmessage .= $abc;\n }\n return $finalmessage;\n}", "public static function format($message, $args) {\n\t\t# Format message\n\t\t# Only neccessary if additional arguments were passed.\n\t\t# To allow NULL-arguments also, the usage of sizeof()\n\t\t# over iset() is favored:\n\t\t$formated_message = (sizeof($args))\n\t\t\t? vsprintf($message, $args)\n\t\t\t: $message;\n\n\t\treturn $formated_message;\n\t}", "public static function ConvMessageToAPI(ConversationMessage $message) : array {\n\n\t\t$data = array();\n\n\t\t$data[\"ID\"] = $message->get_id();\n\t\t$data[\"ID_user\"] = $message->get_userID();\n\t\t$data[\"time_insert\"] = $message->get_time_sent();\n\t\t$data[\"message\"] = $message->has_message() ? $message->get_message() : \"\";\n\t\t$data[\"image_path\"] = $message->has_image_path() ? $message->get_image_url() : null;\n\n\t\treturn $data;\n\n\t}" ]
[ "0.6160508", "0.60131663", "0.599321", "0.59019834", "0.5895488", "0.5894015", "0.58741874", "0.582721", "0.5757294", "0.5757237", "0.57307124", "0.5660144", "0.5616979", "0.56113935", "0.5605648", "0.55458385", "0.5535334", "0.55250305", "0.550072", "0.5430943", "0.5427746", "0.5397902", "0.53485864", "0.5332647", "0.5328301", "0.5308696", "0.5300006", "0.5268887", "0.5233719", "0.5228555", "0.51716167", "0.51691794", "0.5148296", "0.5130732", "0.5127094", "0.51243424", "0.51115376", "0.5107049", "0.5092251", "0.5091008", "0.5090377", "0.50863034", "0.5068173", "0.5060583", "0.5058674", "0.50352263", "0.50267565", "0.50070566", "0.49789175", "0.49729577", "0.4971784", "0.49661806", "0.49657565", "0.49645248", "0.49577528", "0.4956394", "0.49544382", "0.4951352", "0.4951047", "0.49502942", "0.49441493", "0.49429083", "0.49226603", "0.4922058", "0.49105674", "0.49055657", "0.4901203", "0.49008963", "0.48958555", "0.48880947", "0.4883626", "0.48825696", "0.48776314", "0.48756438", "0.48740786", "0.4862538", "0.4860562", "0.48566887", "0.48489696", "0.48474687", "0.48465815", "0.48327535", "0.483189", "0.48267207", "0.48242372", "0.48180485", "0.48166078", "0.4805046", "0.47897518", "0.47603256", "0.4758835", "0.47526336", "0.47480974", "0.47433504", "0.47341955", "0.47288418", "0.47265235", "0.472468", "0.4724172", "0.4722396" ]
0.81614375
0
Decomposes an encoded message and decodes it into useable component. If the message cannot be decoded, an invalid message array is returned with Command::INVALID in its 0 index and nothing in 1 index. \param $msg Message to decode. \return Returns an array containing the decoded message. 0 index holds the Command value and 1 index the decoded message.
public static function decomposeMsg (string $msg) : array { if (($pos = strpos ($msg, ':')) === false || ($command = \DataLib::isInt (substr ($msg, 0, $pos))) === false || !Command::isCommand ($command)) { return [ Command::INVALID ]; } return [ $command, json_decode (substr ($msg, $pos + 1), true) ]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function decode($msg)\n {\n try {\n $data = json_decode($msg, true);\n\n return $data;\n } catch (\\Exception $e) {\n throw new \\InvalidArgumentException('Invalid json format');\n }\n }", "private function ParseMsg($msg) {\n\t\t$parts = explode(\"&\",$msg);\n\t\t$result = array();\n\t\tforeach($parts as $i => $value) {\n\t\t\t$bits = explode(\"=\", $value, 2);\n\t\t\t$result[$bits[0]] = urldecode($bits[1]);\n\t\t}\n\n\t\treturn $result;\n\t}", "function ParseMsg($msg) {\n\t$parts = explode(\"&\",$msg);\n\t$result = array();\n\tforeach($parts as $i => $value) {\n\t\t$bits = explode(\"=\", $value, 2);\n\t\t$result[$bits[0]] = urldecode($bits[1]);\n\t}\n\n\treturn $result;\n}", "public static function extractMsg (string $msg) : string {\n\t\tif (($pos = strpos ($msg, ':')) === false || ($command = \\DataLib::isInt (substr ($msg, 0, $pos))) === false || !Command::isCommand ($command)) {\n\t\t\treturn '';\n\t\t}\n\t\treturn substr ($msg, $pos + 1);\n\t}", "private function getMsg($code){\n\t\t\t$msg = $this->msgcode[$code]['message'];\n\t\t\t$status = $this->msgcode[$code]['status'];\n\t\t\tif ($msg && $status !== NULL) return array($msg, $status);\n\t\t\telse return array($this->msgcode['000']['message'], $this->msgcode['000']['status']);\n\t\t}", "private function cleaningAttrFromMsg($msg):array{\n\n $return = [\n 'msg' => $msg,\n 'behavior' => null\n ];\n\n if(strpos($msg, '{alert}:') === 0){\n $return['msg'] = substr($msg, 8);\n $return['behavior'] = 'alert';\n }\n\n return $return;\n }", "public static function readMetaProperties($msg)\n {\n $properties = array();\n\n foreach ($msg as $_prop) {\n if (!empty($_prop)) {\n list($name, $value) = explode(':', $_prop);\n $name = strtolower(str_replace('-', '_', trim($name)));\n\n $properties[$name] = trim($value);\n }\n }\n\n return $properties;\n }", "public function parseCommand():array\n {\n $text = $this->message->text ?? $this->edited_message->text ?? '';\n\n if (preg_match('/^(\\:|\\/)(\\S+)(.*?)?$/', $text, $matches)) {\n return [\n mb_strtolower($matches[2]),\n trim($matches[3])\n ];\n }\n\n return [null, null];\n }", "protected function unwrap($msg,$bytes){ return substr($msg,1,$bytes-2); }", "static function decodeToken($token) {\n return (array)Ak::fromJson(Ak::blowfishDecrypt(base64_decode($token), Ak::getSetting(self::getSettingsNamespace(), 'token_key')));\n }", "public function decode($challenge_message);", "public function decode(string $content): array;", "public function parse(): array\n {\n // Text.\n if ($this->type === 'text') {\n return [\n 'text' => $this->message,\n ];\n }\n\n // Template.\n if ($this->type === 'template') {\n $payload = Arr::get($this->message, 'attachments.0.payload');\n\n // Generic template.\n if (Arr::get($payload, 'template_type') === 'generic') {\n return [\n 'generic' => $this->parseGenericTempalte($payload),\n ];\n }\n }\n\n // Image\n if ($this->type === 'image') {\n $payload = Arr::get($this->message, 'attachments.0.payload');\n return [\n 'image' => $this->parseImageAttachment($payload),\n ];\n }\n\n // This for unsupported messages.\n return [];\n }", "public function nativeMessageProcessing($message): array\n\t{\n\t\treturn $message;\n\t}", "public function fromMessageResponse(OpenID_Message $message)\n {\n $values = array();\n $alias = null;\n\n foreach ($message->getArrayFormat() as $ns => $value) {\n if (!preg_match('/^openid[.]ns[.]([^.]+)$/', $ns, $matches)) {\n continue;\n }\n $nsFromMessage = $message->get('openid.ns.' . $matches[1]);\n if ($nsFromMessage !== null && $nsFromMessage != $this->namespace) {\n continue;\n }\n $alias = $matches[1];\n }\n\n if ($alias === null) {\n return $values;\n }\n\n if (count($this->responseKeys)) {\n // Only use allowed response keys\n foreach ($this->responseKeys as $key) {\n $value = $message->get('openid.' . $alias . '.' . $key);\n if ($value !== null) {\n $values[$key] = $value;\n }\n }\n } else {\n // Just grab all message components\n foreach ($message->getArrayFormat() as $key => $value) {\n if (preg_match('/^openid[.]' . $alias . '[.](.*+)$/', $key, $matches)) {\n $values[$matches[1]] = $value;\n }\n }\n }\n return $values;\n }", "public function decodeMessage(AbiType $abi, string $message): DecodedMessageBody\n {\n return new DecodedMessageBody(\n $this->tonClient->request(\n 'abi.decode_message',\n [\n 'abi' => $abi,\n 'message' => $message,\n ]\n )->wait()\n );\n }", "private function _formatMsgResponse($msg)\n {\n $msgType = isset($msg['msgType']) ? $msg['msgType'] : '';\n if ($msgType == self::MESSAGE_TEXT) {\n return $msg;\n } else if ($msgType == self::MESSAGE_NEWS) {\n $articles = $msg['articles'];\n $count = count($articles);\n //replace url with picUrl\n for ($i = 0; $i < $count; $i++) {\n $msg['articles'][$i]['picUrl'] = $msg['articles'][$i]['url'];\n unset($msg['articles'][$i]['url']);\n }\n\n //add articles to content\n $result['content'] = ['articles' => $msg['articles']];\n $result['msgType'] = $msgType;\n } else if ($msgType == self::MESSAGE_URL) {\n //add url to content\n $result['content'] = $msg['url'];\n $result['msgType'] = $msgType;\n } else if ($msgType == self::MESSAGE_MPNEWS) {\n $articles = $msg['articles'];\n $count = count($articles);\n //replace url with picUrl\n for ($i = 0; $i < $count; $i++) {\n $msg['articles'][$i]['picUrl'] = $msg['articles'][$i]['url'];\n unset($msg['articles'][$i]['url']);\n }\n\n //add articles to content\n $result['content'] = ['articles' => $msg['articles']];\n $result['msgType'] = $msgType;\n } else {\n $result['msgType'] = false;\n }\n\n return $result;\n }", "public function decode(string $token): array;", "protected function tryParseCommands()\n {\n $result = [];\n\n for($dataLen = strlen($this->buffer); $dataLen >= 4;) {\n // reading length of received command\n $commandLenBytes = substr($this->buffer, 0, 4);\n $commandLen = intval(bin2hex($commandLenBytes), 16);\n if($dataLen < $commandLen+4) {\n // waiting more bytes to parse\n break;\n }\n $commandBytes = gzuncompress(substr($this->buffer, 4, $commandLen));\n $command = json_decode($commandBytes, true);\n $result[] = $command;\n // cut parsed bytes from buffer\n $this->buffer = substr($this->buffer, $commandLen + 4);\n $dataLen = strlen($this->buffer);\n }\n\n return $result;\n }", "public function decode($buffer, $connection)\n { \n return new Message($buffer);\n }", "private function readMessage()\n {\n $fromIp = \"\";\n $fromPort = 0;\n $msg = null;\n \n if (!@socket_recvfrom($this->socket, $msg, 65535, 0, $fromIp, $fromPort)) {\n $err_no = socket_last_error($this->socket);\n if ($err_no == 4) {\n \techo \"\\n\\nCaught SIGINT, quiting...\\n\";\n \t$this->keepRunning = false;\n }\n }\n\n if (!$msg) {\n \treturn false;\n }\n\n if ($this->fromIp === null && $this->fromPort === null) {\n \t$this->fromIp = $fromIp;\n \t$this->fromPort = $fromPort;\n } else if ($this->fromIp != $fromIp || $this->fromPort != $fromPort) {\n \tdie(sprintf(\"Error: sender changed from %s:%d to %s:%d, aborting...\\n\", $this->fromIp, $this->fromPort, $fromIp, $fromPort));\n }\n \n return [\n \t\"timestamp\"\t=> microtime(true),\n \t\"msg\" \t\t=> $msg,\n \t\"from_ip\" \t=> $fromIp,\n \t\"from_port\"\t=> $fromPort\n ];\n }", "protected function getCodifiedErrorMessage($msg, array $tags = [])\n {\n if ($tags) {\n $fTags = [];\n foreach ($tags as $k => $v) {\n $fTags[$this->codifiedErrorsBeginTag . $k . $this->codifiedErrorsEndTag] = $v;\n }\n $msg = str_replace(array_keys($fTags), array_values($fTags), $msg);\n }\n return $msg;\n }", "protected function decodeMessage($message)\n {\n $message = preg_replace('/<br ?\\/?>\\r?\\n?/', \"\\n\", $message);\n $message = strip_tags($message);\n\n return htmlspecialchars_decode($message, ENT_QUOTES);\n }", "public function decode(string $data): Package\n {\n $cmd = '';\n $ext = [];\n $map = (array)unserialize($data, ['allowed_classes' => false]);\n\n // Find message route\n if (isset($map['cmd'])) {\n $cmd = (string)$map['cmd'];\n unset($map['cmd']);\n }\n\n if (isset($map['data'])) {\n $body = $map['data'];\n $ext = $map['ext'] ?? [];\n } else {\n $body = $map;\n }\n\n return Package::new($cmd, $body, $ext);\n }", "public static function composeMsg (int $command, array $message) : string {\n\t\tif (!Command::isCommand ($command)) {\n\t\t\treturn Command::INVALID;\n\t\t}\n\t\treturn \"$command:\".json_encode ($message);\n\t}", "public function parseMessage($str)\n\t{\n\t\t$strExp = explode(':', $str);\n\n\t\t$nick = explode('!', $strExp[1])[0];\n\t\tunset($strExp[0]);\n\t\tunset($strExp[1]);\n\t\t$message = implode(':', $strExp);\n\n\t\treturn array('nick' => $nick, 'content' => $message);\n\t}", "protected function formatErrorMessage($msg)\n {\n // Remove prefix like \"WebPAC Error\" or \"XCirc error\"\n $msg = preg_replace('/.* [eE]rror\\s*:\\s*/', '', $msg);\n // Handle non-ascii characters that are returned in a wrongly encoded format\n // (e.g. {u00E4} instead of \\u00E4)\n $msg = preg_replace_callback(\n '/\\{u([0-9a-fA-F]{4})\\}/',\n function ($matches) {\n return mb_convert_encoding(\n pack('H*', $matches[1]), 'UTF-8', 'UCS-2BE'\n );\n },\n $msg\n );\n return $msg;\n }", "private static function convertCommandToArray($command, array $data)\n {\n if ($command == '') {\n return [];\n }\n\n $commandParts = explode(':', $command);\n $part = $commandParts[0];\n unset($commandParts[0]);\n $command = implode(':', $commandParts);\n\n if ($command != '') {\n $result[$part] = self::convertCommandToArray($command, $data);\n } else {\n $result[$part] = $data;\n }\n\n return $result;\n }", "public static function getType($message) : array\n{\n\n $str = substr($message, 0, 5);\n $str2 = substr($message, 5);\n\n switch ($str) {\n\n case \"%GPS \":\n // $str2 = str_replace(' ', '', $str2); // remove space after GPS. (\"%GPS 32.333---\")\n return array('gps', $str2);\n break;\n case \"%BIN \":\n return array('bin', $str2);\n break;\n case \"%JSON\":\n return array('json', substr($message, 5));\n break;\n default:\n return array('txt', $message);\n break;\n }\n }", "abstract public static function decode($string): array;", "private function decode($data) {\n\t\t\t$iv = substr(hash('sha256', $this->iv ), 0, 16 );\n\t\t\t$decode = openssl_decrypt(base64_decode($data), \"AES-256-CBC\", $this->key, 0, $iv );\n\t\t\treturn explode(\"|\", $decode);\n\t\t}", "public function toMessage(): array;", "public function getMessage($code) {\n return $this->_codes[$code];\n }", "public function onMessage(ConnectionInterface $from, $msg)\n {\n// $numRecv= count($this->clients) - 1;\n\n echo \"\\n\".\"from:\".\"\\n\";\n var_dump($from->resourceId);\n\n echo \"\\n\".\"msg:\".\"\\n\";\n $decode = json_decode($msg);\n var_dump($decode);\n echo \"\\n\";\n\n switch ($decode->command) {\n case \"login\":\n include __DIR__ . \"/api/login.php\";\n// $this->subscriptions[$conn->resourceId] = $data->channel;\n break;\n\n case \"validation\":\n // validate disposable code\n include __DIR__ . \"/api/validation.php\";\n break;\n default:\n\n }\n\n }", "public function getMessageData()\n {\n return (array) array();\n }", "private function getMessage($errorcode, $email, $vars, $message = '', $success = false): array\n {\n return [\n 'success' => $success,\n 'errorCode' => $errorcode,\n 'message' => $message,\n 'values' => [\n 'email' => $email,\n 'vars' => $vars\n ]\n ];\n }", "private function send_die_message($msg){\n\t\t$die_msg_arr['error']['code'] = 1;\n\t\t$die_msg_arr['error']['msg'] = $msg;\n\t\treturn $die_msg_arr;\n\t}", "function DecodeMessage($mid) {\n\n\t\t//Select Message to Decode\n $msgq = \"SELECT Message FROM Messages WHERE mid = $mid\";\n $msgqu = $this->query($msgq);\n //while ($row = sqlsrv_fetch_array($msgqu, SQLSRV_FETCH_ASSOC)) {\n\t\tforeach ($msgqu as $row){\n $Message = $row['Message'];\n }\n\n\t\t//Decode the HTML\n $dmsg = html_entity_decode($Message);\n\n\t\t//Echo the Message\n echo \"<br>Decoded Message:<br> \" . $dmsg . \"\";\n }", "public function decode($data)\n {\n $out = array();\n\n $this->_data = $data;\n $this->_datalen = strlen($data);\n $this->_ptr = 0;\n\n while ($this->_curr() !== false) {\n $this->_rfc822SkipLwsp();\n\n $this->_rfc822ParseMimeToken($param);\n\n if (is_null($param) || ($this->_curr() != '=')) {\n break;\n }\n\n ++$this->_ptr;\n $this->_rfc822SkipLwsp();\n\n $value = '';\n\n if ($this->_curr() == '\"') {\n try {\n $this->_rfc822ParseQuotedString($value);\n } catch (Horde_Mail_Exception $e) {\n break;\n }\n } else {\n $this->_rfc822ParseMimeToken($value);\n if (is_null($value)) {\n break;\n }\n }\n\n $out[$param] = $value;\n\n $this->_rfc822SkipLwsp();\n if ($this->_curr() != ';') {\n break;\n }\n\n ++$this->_ptr;\n }\n\n return $out;\n }", "public function receiveMsg() {\n\n $rawData = file_get_contents(\"php://input\");\n $input = json_decode($rawData, true);\n\n return $input;\n }", "public function onPrivmsg()\n {\n // Populate the methods cache if needed\n if (empty($this->methods)) {\n $this->populateMethodCache();\n }\n\n // Check for a prefixed message\n $msg = $this->plugins->message->getMessage();\n if ($msg === false) {\n return;\n }\n\n // Separate the command and arguments\n $parsed = preg_split('/\\s+/', $msg, 2);\n $command = strtolower(array_shift($parsed));\n $args = count($parsed) ? array_shift($parsed) : '';\n\n // Resolve aliases to their corresponding commands\n $aliases = $this->getConfig('command.aliases', array());\n $result = preg_grep(\n '/^' . preg_quote($command, '/')\n . '$/i', array_keys($aliases)\n );\n\n if ($result) {\n $command = $aliases[array_shift($result)];\n }\n\n // Check to ensure the command exists\n $method = self::METHOD_PREFIX . ucfirst($command);\n if (empty($this->methods[$method])) {\n return;\n }\n\n // If no arguments are passed...\n if (empty($args)) {\n\n // If the method requires no arguments, call it\n if (empty($this->methods[$method]['required'])) {\n $this->getPluginHandler()->$method();\n }\n\n } else {\n // If arguments are passed...\n\n // Parse the arguments\n if ('\"' == substr($args, 0, 1)) {\n preg_match_all('/(\"[^\"]*\")|(\\S+)/', $args, $args);\n $argsIn = $args[0];\n $i = 1;\n $args = array();\n $methodArgsTotal = $this->methods[$method]['total'];\n foreach ($argsIn as $arg) {\n if ($i < $methodArgsTotal) {\n $args[] = $arg;\n $i++;\n } else {\n if (empty($args[$methodArgsTotal])) {\n $args[$methodArgsTotal] = $arg;\n } else {\n $args[$methodArgsTotal] .= ' '.$arg;\n }\n }\n }\n $args = array_values($args);\n } else {\n $args = preg_split('/\\s+/', $args, $this->methods[$method]['total']);\n }\n\n // If the minimum arguments are passed, call the method\n if ($this->methods[$method]['required'] <= count($args)) {\n call_user_func_array(\n array($this->getPluginHandler(), $method),\n $args\n );\n }\n }\n\n }", "public function RSADecrypt($encrypted_msg): string\n {\n if (is_null($this->ppk)) {\n throw new Exception(\"Returned message is encrypted while you did not provide private key!\");\n }\n\n $encrypted_msg = base64_decode($encrypted_msg);\n\n $offset = 0;\n $chunk_size = 256;\n\n $decrypted = \"\";\n while ($offset < strlen($encrypted_msg)) {\n $decrypted_chunk = \"\";\n $chunk = substr($encrypted_msg, $offset, $chunk_size);\n\n if (openssl_private_decrypt($chunk, $decrypted_chunk, $this->ppk, OPENSSL_PKCS1_OAEP_PADDING)) {\n $decrypted .= $decrypted_chunk;\n } else {\n var_dump($decrypted);\n\n throw new exception(\"Problem decrypting the message.\");\n }\n $offset += $chunk_size;\n }\n\n return $decrypted;\n }", "public static function decode(WebSocketClient $sender, $message)\n {\n $request = json_decode($message, true);\n\n if (is_null($request) || empty($request[0]) || empty($request[1]))\n {\n return;\n }\n\n $controllerName = str_replace(' ', '', ucwords(str_replace('-', ' ', $request[0]))) . 'Controller';\n $actionName = 'action' . str_replace(' ', '', ucwords(str_replace('-', ' ', $request[1])));\n\n if (!isset(static::$controllers[$controllerName]))\n {\n if (!class_exists($controllerName))\n {\n return;\n }\n\n static::$controllers[$controllerName] = new $controllerName();\n }\n\n $controller = static::$controllers[$controllerName];\n static::$sender = $sender;\n\n if (!empty($request[2]) && is_array($request[2]))\n {\n static::$parameters = $request[2];\n }\n\n if (is_callable(array($controller, $actionName)))\n {\n $controller->$actionName();\n }\n }", "public function callReflectHandler($msg) {\n \n // Check on valid params\n if (0 == strlen($msg->getMethod())) {\n throw new IllegalArgumentException('No method name passed.');\n }\n\n // Create message from request data\n $class= XPClass::forName($this->package.'.'.ucfirst($msg->getHandlerClass()).'Handler');\n\n // Check if method can be handled\n if (!$class->hasMethod($msg->getMethod())) {\n throw new IllegalArgumentException(\n $class->getName().' cannot handle method '.$msg->getMethod()\n );\n }\n\n with ($method= $class->getMethod($msg->getMethod())); {\n\n // Check if this method is a webmethod\n if (!$method->hasAnnotation('webmethod')) {\n throw new IllegalAccessException('Cannot access non-web method '.$msg->getMethod());\n }\n \n // Create instance and invoke method\n $inst= $class->newInstance();\n if ($this->cat && is('util.log.Traceable', $inst)) $inst->setTrace($this->cat);\n return $method->invoke($inst, $msg->getData());\n }\n }", "static function MessageToArray($Message = null)\r\n {\r\n if ($Message === null)\r\n {\r\n return null;\r\n }\r\n else\r\n {\r\n $MessageArray = array();\r\n\r\n $MessageArray['id'] = $Message->getId(); \r\n $MessageArray['contest'] = $Message->getContest();\r\n $MessageArray['idUserFrom'] = $Message->getIdUserFrom();\r\n $MessageArray['idUserTo'] = $Message->getIdUserTo();\r\n $MessageArray['seen'] = $Message->getSeen();\r\n $MessageArray['received'] = $Message->getReceived();\r\n $MessageArray['time'] = $Message->getTime();\r\n\r\n return $MessageArray;\r\n }\r\n }", "private function _error($msg = '')\n {\n return array('error' => $msg);\n }", "private function parseMessage() {\n\n\t\t# Regexp to parse a formatted message\n\t\t# The message should come in format of\n\t\t# :(.*)\\!(.*)\\@(.*) PRIVMSG #channelname \\:(.*) for regular chatter\n\t\t# thus returning nickname, realname, hostmask, (command, arguments) || (botname: command (arguments)) || (chatter)\n\t\t$matched = false;\n\n # Try to match against the bots name!\n # This could mean it is a direct message in chan followed by a command request\n if(!$matched) {\n $pattern = '/:(.*)\\!(.*)\\@(.*) PRIVMSG '.$this->config['destinationChannel'].' \\:('.$this->config['username'].')\\:(?: +)?([^\\s]*) (.*)/';\n preg_match($pattern, $this->inbound, $matches);\n if(count($matches) > 1) {\n $matched = true;\n $this->lastMessage = array(\n 'nickname' => $matches[1],\n 'realname' => $matches[2],\n 'hostname' => $matches[3],\n 'command' => $matches[5],\n 'args' => rtrim($matches[6],\"\\n\\r\"),\n 'chatter' => ''\n );\n # Have to match a case whereby a command of 'botname: command' with no args is provided (for help)\n # If this case occurs we have to do some arg movement otherwise the command parser won't get a hit\n if($this->lastMessage['args'] != \"\" && $this->lastMessage['command'] == '') {\n $this->lastMessage['command'] = $this->lastMessage['args'];\n $this->lastMessage['args'] = \"\";\n }\n }\n }\n\n\t\tif(!$matched) {\n\t\t\t$pattern = '/:(.*)\\!(.*)\\@(.*) PRIVMSG '.$this->config['destinationChannel'].' \\:(.*)/';\n\t\t\tpreg_match($pattern, $this->inbound, $matches);\n\t\t\tif(count($matches) > 1) {\n\t\t\t\t$this->lastMessage = array(\n\t\t\t\t\t'nickname' => $matches[1],\n\t\t\t\t\t'realname' => $matches[2],\n\t\t\t\t\t'hostname' => $matches[3],\n\t\t\t\t\t'command' => '',\n\t\t\t\t\t'args' => '',\n\t\t\t\t\t'chatter' => rtrim($matches[4],\"\\n\\r\")\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\t}", "public function getMessages(): array\n {\n $result = [];\n foreach (array_keys($this->__data) as $key) {\n $result[$key] = $this->__data[$key]->message;\n }\n\n return $result;\n }", "public function getAsArray() {\n return $this->message;\n }", "public static function construct(ChatServer $server, ChatClient $client, $msg) {\n\t\t$words = explode(\" \", $msg);\n\t\tif ($msg === \"\" || count($words) == 0)\n\t\t\treturn null;\n\n\t\t$first = array_shift($words);\n\t\t$rest = implode(\" \", $words);\n\n\t\tif (array_key_exists($first, self::$commandTypes)) {\n\t\t\t$constructor = self::$commandTypes[$first];\n\t\t\treturn call_user_func($constructor, $server, $client, $rest);\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}", "public static function err($msg, $status = 0)\n {\n return ['status' => $status, 'msg' => $msg];\n }", "public function deserialize($param)\n {\n if ($param === null) {\n return;\n }\n if (array_key_exists(\"Code\",$param) and $param[\"Code\"] !== null) {\n $this->Code = $param[\"Code\"];\n }\n\n if (array_key_exists(\"Msg\",$param) and $param[\"Msg\"] !== null) {\n $this->Msg = $param[\"Msg\"];\n }\n\n if (array_key_exists(\"Desc\",$param) and $param[\"Desc\"] !== null) {\n $this->Desc = $param[\"Desc\"];\n }\n\n if (array_key_exists(\"ConvertedCode\",$param) and $param[\"ConvertedCode\"] !== null) {\n $this->ConvertedCode = $param[\"ConvertedCode\"];\n }\n\n if (array_key_exists(\"NeedConvert\",$param) and $param[\"NeedConvert\"] !== null) {\n $this->NeedConvert = $param[\"NeedConvert\"];\n }\n }", "abstract function decode($bytes);", "public function transform(Message $message)\n {\n return $message->toArray();\n }", "public function decode(mixed $value): mixed {\n if (is_array($value)) {\n return $this->decodeArray($value);\n }\n $original_value = $value;\n $decoder = $this->config['decoder']['message'];\n\n if ($value !== null) {\n if ($decoder === 'utf-8') {\n $decoded_values = $this->mime_header_decode($value);\n $tempValue = \"\";\n foreach ($decoded_values as $decoded_value) {\n $tempValue .= $this->convertEncoding($decoded_value->text, $decoded_value->charset);\n }\n if ($tempValue) {\n $value = $tempValue;\n } else if (extension_loaded('imap')) {\n $value = \\imap_utf8($value);\n }else if (function_exists('iconv_mime_decode')){\n $value = iconv_mime_decode($value, ICONV_MIME_DECODE_CONTINUE_ON_ERROR, \"UTF-8\");\n }else{\n $value = mb_decode_mimeheader($value);\n }\n }elseif ($decoder === 'iconv') {\n $value = iconv_mime_decode($value, ICONV_MIME_DECODE_CONTINUE_ON_ERROR, \"UTF-8\");\n }else if ($this->is_uft8($value)) {\n $value = mb_decode_mimeheader($value);\n }\n\n if ($this->notDecoded($original_value, $value)) {\n $value = $this->convertEncoding($original_value, $this->getEncoding($original_value));\n }\n }\n\n return $value;\n }", "private function correctRequest($msg){\n return array(\"error\" => false,\"msg\" => $msg);\n }", "public function decode ($raw) {\n\t\t$this->data = $raw;\n\t\t$this->data = $raw;\n\t\treturn array();\n\t}", "private function jsonDecode(string $board): array\n {\n $board = json_decode($board);\n $factory = new Factory();\n $response = [];\n for ($row = 0; $row < count($board); ++$row) {\n $response[] = [];\n for ($col = 0; $col < count($board[$col]); ++$col) {\n if ($board[$row][$col]->type === '.') {\n $response[count($response) - 1][] = null;\n continue;\n }\n\n $response[count($response) - 1][] =\n $factory->getPiece(\n $board[$row][$col]->type,\n $col,\n $row,\n $board[$row][$col]->movesCounter,\n isset($board[$row][$col]->enPassant) ? $board[$row][$col]->enPassant : null\n );\n }\n }\n return $response;\n }", "function retrieveErrorMessages($error_msg, &$arrErrors) {\n\n // Error messages are separated using \"^\" as delimiter.\n $arrErrors = explode(\"^\", $error_msg);\n\n // The error message is the last token.\n // Note: \"^\" can be not present in the string; i.e. \"\".\n $error_msg = $arrErrors[count($arrErrors) - 1];\n\n return $error_msg;\n}", "public function parse(array $content, string $model): array {\n \n $parsedResponse = [];\n\n switch($model) {\n\n case Response::MODEL_DOCUMENT_LIST: /** ANY was replaced by DOCUMENT in 0.8.x but this is backward compatible with 0.7.x */\n case Response::MODEL_DOCUMENT: /** ANY was replaced by DOCUMENT in 0.8.x but this is backward compatible with 0.7.x */\n case Response::MODEL_USER_LIST: /** [FIELDS ADDED in 0.8.x] passwordUpdate */\n case Response::MODEL_USER: /** [FIELDS ADDED in 0.8.x] passwordUpdate */\n case Response::MODEL_COLLECTION_LIST:\n case Response::MODEL_COLLECTION:\n case Response::MODEL_FILE_LIST:\n case Response::MODEL_FILE:\n case Response::MODEL_FUNCTION_LIST:\n case Response::MODEL_FUNCTION:\n case Response::MODEL_TAG_LIST:\n case Response::MODEL_TAG:\n case Response::MODEL_EXECUTION_LIST:\n case Response::MODEL_EXECUTION:\n case Response::MODEL_TEAM_LIST:\n case Response::MODEL_TEAM:\n case Response::MODEL_MEMBERSHIP_LIST:\n case Response::MODEL_MEMBERSHIP:\n case Response::MODEL_SESSION_LIST: /** [FIELDS ADDED in 0.8.x] provider, providerUid, providerToken */\n case Response::MODEL_SESSION: /** [FIELDS ADDED in 0.8.x] provider, providerUid, providerToken */\n case Response::MODEL_JWT:\n case Response::MODEL_LOG_LIST:\n case Response::MODEL_TOKEN:\n case Response::MODEL_LOCALE:\n case Response::MODEL_COUNTRY_LIST:\n case Response::MODEL_PHONE_LIST:\n case Response::MODEL_CONTINENT_LIST:\n case Response::MODEL_CURRENCY_LIST:\n case Response::MODEL_LANGUAGE_LIST:\n case Response::MODEL_ANY:\n case Response::MODEL_PREFERENCES: /** ANY was replaced by PREFERENCES in 0.8.x but this is backward compatible with 0.7.x */\n case Response::MODEL_NONE:\n $parsedResponse = $content; \n break;\n default:\n throw new Exception('Received invalid model : '.$model);\n }\n\n return $parsedResponse;\n }", "private function onApiBadInterpretation($msg)\n {\n if (null !== $this->onApiBadInterpretationCb) {\n call_user_func($this->onApiBadInterpretationCb, $msg);\n }\n throw new ApiBadInterpretationException($msg);\n }", "protected function _decode($encoded)\n {\n $decoded = array();\n // find the Punycode prefix\n if(!preg_match('!^' . preg_quote($this->_punycode_prefix, '!') . '!', $encoded))\n {\n $this->_error('This is not a punycode string');\n return false;\n }\n $encode_test = preg_replace('!^' . preg_quote($this->_punycode_prefix, '!') . '!', '', $encoded);\n // If nothing left after removing the prefix, it is hopeless\n if(!$encode_test)\n {\n $this->_error('The given encoded string was empty');\n return false;\n }\n // Find last occurence of the delimiter\n $delim_pos = strrpos($encoded, '-');\n if($delim_pos > strlen($this->_punycode_prefix))\n {\n for($k = strlen($this->_punycode_prefix); $k < $delim_pos; ++$k)\n {\n $decoded[] = ord($encoded{$k});\n }\n }\n $deco_len = count($decoded);\n $enco_len = strlen($encoded);\n \n // Wandering through the strings; init\n $is_first = true;\n $bias = $this->_initial_bias;\n $idx = 0;\n $char = $this->_initial_n;\n \n for($enco_idx = ($delim_pos)? ($delim_pos + 1) :0; $enco_idx < $enco_len; ++$deco_len)\n {\n for($old_idx = $idx, $w = 1, $k = $this->_base; 1; $k += $this->_base)\n {\n $digit = $this->_decode_digit($encoded{$enco_idx ++});\n $idx += $digit * $w;\n $t = ($k <= $bias)? $this->_tmin :(($k >= $bias + $this->_tmax)? $this->_tmax :($k - $bias));\n if($digit < $t)\n break;\n $w = (int)($w * ($this->_base - $t));\n }\n $bias = $this->_adapt($idx - $old_idx, $deco_len + 1, $is_first);\n $is_first = false;\n $char += (int)($idx / ($deco_len + 1));\n $idx %= ($deco_len + 1);\n if($deco_len > 0)\n {\n // Make room for the decoded char\n for($i = $deco_len; $i > $idx; $i --)\n $decoded[$i] = $decoded[($i - 1)];\n }\n $decoded[$idx ++] = $char;\n }\n return $this->_ucs4_to_utf8($decoded);\n }", "public function getEnumValues()\n {\n return array(\n 'CMD_UNKNOWN' => self::CMD_UNKNOWN,\n 'CMD_START_TASK' => self::CMD_START_TASK,\n 'CMD_PAUSE_TASK' => self::CMD_PAUSE_TASK,\n 'CMD_RESUME_TASK' => self::CMD_RESUME_TASK,\n 'CMD_RETRY_TASK' => self::CMD_RETRY_TASK,\n 'CMD_FINISH_TASK' => self::CMD_FINISH_TASK,\n 'CMD_ADD_NODE' => self::CMD_ADD_NODE,\n 'CMD_CANCEL_SUBTASK' => self::CMD_CANCEL_SUBTASK,\n 'CMD_CANCEL_SVR_SUBTASK' => self::CMD_CANCEL_SVR_SUBTASK,\n 'CMD_DO_SUBTASK' => self::CMD_DO_SUBTASK,\n 'CMD_REDO_TASK' => self::CMD_REDO_TASK,\n 'CMD_REDO_SVR_POOL' => self::CMD_REDO_SVR_POOL,\n 'CMD_REDO_SUBTASK' => self::CMD_REDO_SUBTASK,\n 'CMD_IGNORE_SUBTASK' => self::CMD_IGNORE_SUBTASK,\n 'CMD_FREEZE_TASK' => self::CMD_FREEZE_TASK,\n 'CMD_UNFREEZE_TASK' => self::CMD_UNFREEZE_TASK,\n 'CMD_UPDATE_TASK' => self::CMD_UPDATE_TASK,\n 'CMD_DEL_NODE' => self::CMD_DEL_NODE,\n );\n }", "private function decodeToken($encoded)\n {\n try {\n $payload = $this->decoder->decodeToken($encoded);\n } catch(\\Exception $e) { // intercept all\n $message = 'Cannot decode token credentials.';\n if ($e->getMessage() == 'Expired Token') { // ignore error (our verify method takes care of this exception)\n $message = $e->getMessage();\n }\n throw new BadCredentialsException($message);\n }\n\n return $payload;\n }", "function getMessage( $msg_id ){\n\t$msg_id = mysql_escape_string($msg_id);\n\t\n\t// Performing SQL query\n\t$query \t\t= sprintf(\"select * from messages where message_id=%d\",$msg_id);\n\t$result \t= mysql_query($query);\n\t$data \t\t= $result->fetch();\t\n\t$message \t= array();\n\t\n\tif(!empty($data)) {\n\t\t$message['id']=$data['message_id'];\n\t\t$message['date']=$data['message_date'];\n\t\t$message['from']=$data['message_from'];\n\t\t$message['url']=$data['message_audio_url'];\n\t}\n\treturn $message;\n}", "public function dispatch($messageEntity, $request): array\n {\n if ($this->container === null) {\n // should throw new exception\n throw new \\Exception('Container not found.');\n }\n\n // Fill the container with variables about the\n // request.\n $this->container->set('messageEntity', $messageEntity);\n\n // parse the message entity string\n $entityStr = substr(\n $request->message->text,\n $messageEntity->offset,\n $messageEntity->length\n );\n $this->container->set('messageEntityStr', $entityStr);\n\n // if message entity handler found for the given message entity,\n // dispatch the handler.\n if (isset($this->handlers[$entityStr])) {\n $params = Dispatcher::reflectDependencies(\n $this->container,\n $this->handlers[$entityStr],\n ['request' => $request]\n );\n $this->logger->debug('message entity handler found');\n return [\n $this->handlers[$entityStr],\n $params,\n ];\n } elseif ($this->defaultHandler !== null) {\n $params = Dispatcher::reflectDependencies(\n $this->container,\n $this->defaultHandler,\n ['request' => $request]\n );\n $this->logger->debug('default message entity handler found');\n return [\n $this->defaultHandler,\n $params,\n ];\n }\n\n // no message entity handler found for the given message entity string.\n $this->logger->debug('message entity handler not found: ' . $entityStr);\n throw new \\Exception('message entity handler not found: ' . $entityStr);\n return [null, []]; // return an array for list to extract anyway\n }", "public function & getMessageArray() {\n\t\tif (null === $this->messages) {\n\t\t\t$this->getMessages();\n\t\t}\n\t\treturn $this->messages;\n\t}", "public static function deadCmd()\r\n {\r\n $return = array();\r\n foreach (eqLogic::byType('baro') as $baro) {\r\n foreach ($baro->getCmd() as $cmd) {\r\n preg_match_all(\"/#([0-9]*)#/\", $cmd->getConfiguration('infoName', ''), $matches);\r\n foreach ($matches[1] as $cmd_id) {\r\n if (!cmd::byId(str_replace('#', '', $cmd_id))) {\r\n $return[] = array('detail' => __('baro', __FILE__) . ' ' . $baro->getHumanName() . ' ' . __('dans la commande', __FILE__) . ' ' . $cmd->getName(), 'help' => __('Nom Information', __FILE__), 'who' => '#' . $cmd_id . '#');\r\n }\r\n }\r\n preg_match_all(\"/#([0-9]*)#/\", $cmd->getConfiguration('calcul', ''), $matches);\r\n foreach ($matches[1] as $cmd_id) {\r\n if (!cmd::byId(str_replace('#', '', $cmd_id))) {\r\n $return[] = array('detail' => __('baro', __FILE__) . ' ' . $baro->getHumanName() . ' ' . __('dans la commande', __FILE__) . ' ' . $cmd->getName(), 'help' => __('Calcul', __FILE__), 'who' => '#' . $cmd_id . '#');\r\n }\r\n }\r\n }\r\n }\r\n return $return;\r\n }", "public function parseCommand($text)\n {\n if (trim($text) === '') {\n throw new \\InvalidArgumentException('Message is empty, Cannot parse for command');\n }\n\n preg_match('/^\\/([^\\s@]+)@?(\\S+)?\\s?(.*)$/s', $text, $matches);\n\n return $matches;\n }", "private function Decode ($src){\n for ($i = 1; $i < count($src)/2 + 1; $i++) {\n $a = $this->fromHexChar($src[$i*2-1]);\n if ($a == -1) {\n throw new \\Exception(\"Error: Invalid Byte Error 1\");\n }\n $b = $this->fromHexChar($src[$i*2]);\n if ($b == -1) {\n throw new \\Exception(\"Error: Invalid Byte Error 2\");\n }\n $src[$i] = ($a << 4) | $b;\n }\n if (count($src)%2 == 1) {\n // Check for invalid char before reporting bad length,\n // since the invalid char (if present) is an earlier problem.\n throw new \\Exception(\"Error: Error Lenght\");\n }\n return array_slice($src,0,$i-1);\n }", "function parseMessage(string $message): array\n{\n $result = [\n 'code' => null,\n 'amount' => null,\n 'receiver' => null,\n ];\n\t\n\t\n\t// The first - check for yandex account number 41001XXXXX..XXX\n\t// Y.M. test accounts: 41003XXXXX..XXX\n preg_match_all('/(^(?:.*?\\D|))(4100[\\d\\-]{7,})((?:[\\s.,].*?|)$)/isu', $message, $matches, PREG_SET_ORDER);\n if (empty($matches)) {\n throw new \\Exception('Receiver not found');\n }\n if (count($matches) > 1) {\n throw new \\Exception('Multiple receivers found');\n }\n\t\n $result['receiver'] = preg_replace('/\\D+/', '', $matches[0][2]);\n\n\t// Exclude found entity from next searches\n $message = $matches[0][1] . $matches[0][count($matches[0]) - 1];\n\t\n\t\n\t// Detect amount of money transfered\n\t// It may have 1-2 fractional digits, and may not (integer amount)\n\t// Also fractional part may apeears in different formats - \".\", \",\" \n\t// or even smth like \"XXX р. YY к.\" (\"...YY коп\")\n\t$rurReg = 'р\\.|р\\b|руб|rub|rur|₽|&\\#8381;';\n\t$rurFracReg = 'к\\.|к\\b|коп|kop';\n preg_match_all(\n\t\t\"/(^(?:.*?\\\\s|))(\n\t\t\t(\\\\d+)((,|\\\\.|\\\\s*(?:{$rurReg})\\\\s*)(\\\\d{1,2})|)\\\\s*(?:{$rurReg}|{$rurFracReg})\n\t\t)((?:[\\\\s.,].*?|)$)/isux\", $message, $matches, PREG_SET_ORDER);\n if (empty($matches)) {\n throw new \\Exception('Amount not found');\n }\n if (count($matches) > 1) {\n throw new \\Exception('Multiple amounts found');\n }\n $result['amount'] = floatval($matches[0][3] . '.' . $matches[0][6]);\n\n $message = $matches[0][1] . $matches[0][count($matches[0]) - 1];\n\t\n\n\t// Detect verification code (verification password)\n\t// For now, we sincerelly believe it must be just set of 4-6 digits\n preg_match_all('/(^|\\D)(\\d{4,})(\\D|$)/isu', $message, $matches, PREG_SET_ORDER);\n if (empty($matches)) {\n throw new \\Exception('Code not found');\n }\n if (count($matches) > 1) {\n throw new \\Exception('Multiple codes found');\n }\n $result['code'] = $matches[0][2];\n\n return $result;\n}", "public function InputMessageContent(string $msg, string $parse_mode = 'HTML', ?array $entities=null, bool $web_page_preview = true): array\n {\n return $this->DeleteEmpty([\n 'message_text' => $msg,\n 'parse_mode' => $parse_mode,\n 'entities' => $entities,\n 'disable_web_page_preview' => !$web_page_preview,\n ]);\n }", "protected function mungeMessage(&$msg) {\n list($msg['first_name'], $msg['last_name']) = wmf_civicrm_janky_split_name( $msg['full_name'] );\n $msg['currency'] = strtoupper($msg['currency']);\n $msg['original_currency'] = strtoupper($msg['original_currency']);\n parent::mungeMessage($msg);\n }", "public static function create( $msg, $code = null, array $data = null ) {\n\t\tif ( $msg instanceof IApiMessage ) {\n\t\t\treturn $msg;\n\t\t} elseif ( $msg instanceof RawMessage ) {\n\t\t\treturn new ApiRawMessage( $msg, $code, $data );\n\t\t} else {\n\t\t\treturn new ApiMessage( $msg, $code, $data );\n\t\t}\n\t}", "public static function message(array $message, int $code): array\n {\n Yii::$app->response->setStatusCode($code);\n return $message;\n }", "public function Msghandle(){\n\n\t\t\t$this->message = $this->msglog = $this->asciilog = $this->status = NULL;\n\t\t\t$this->showclassnames = TRUE;\n\n\t\t\t$this->msgcode = array(\n\t\t\t\t\t\t\t\t\t\t\"000\" => array(\"message\" => \"Message code not found\", \"status\" => \"Error\"),\n\t\t\t\t\t\t\t\t\t\t\"001\" => array(\"message\" => \"Connection resource is not set\", \"status\" => \"Error\"),\n\t\t\t\t\t\t\t\t\t\t\"002\" => array(\"message\" => \"Missing parameters\", \"status\" => \"Error\"),\n\t\t\t\t\t\t\t\t\t\t\"003\" => array(\"message\" => \"Statement is not valid\", \"status\" => \"Error\"),\n\t\t\t\t\t\t\t\t\t\t\"004\" => array(\"message\" => \"Email address already taken\", \"status\" => \"Error\"),\n\t\t\t\t\t\t\t\t\t\t\"005\" => array(\"message\" => \"No row affected\", \"status\" => \"Error\"),\n\t\t\t\t\t\t\t\t\t\t\"006\" => array(\"message\" => \"Password not found\", \"status\" => \"Error\"),\n\t\t\t\t\t\t\t\t\t\t\"007\" => array(\"message\" => \"User data not found\", \"status\" => \"Error\"),\n\t\t\t\t\t\t\t\t\t\t\"008\" => array(\"message\" => \"Username doesn't exist\", \"status\" => \"Error\"),\n\t\t\t\t\t\t\t\t\t\t\"009\" => array(\"message\" => \"Wrong password\", \"status\" => \"Error\"),\n\t\t\t\t\t\t\t\t\t\t\"010\" => array(\"message\" => \"URL format is not valid\", \"status\" => \"Error\"),\n\t\t\t\t\t\t\t\t\t\t\"011\" => array(\"message\" => \"No URL specified\", \"status\" => \"Error\"),\n\t\t\t\t\t\t\t\t\t\t\"012\" => array(\"message\" => \"BabelNet connection failed\", \"status\" => \"Error\"),\n\t\t\t\t\t\t\t\t\t\t\"013\" => array(\"message\" => \"Method is not valid\", \"status\" => \"Error\"),\n\t\t\t\t\t\t\t\t\t\t\"014\" => array(\"message\" => \"Parameters are not valid\", \"status\" => \"Error\"),\n\t\t\t\t\t\t\t\t\t\t\"015\" => array(\"message\" => \"Conflictual settings\", \"status\" => \"Error\"),\n\t\t\t\t\t\t\t\t\t\t\"016\" => array(\"message\" => \"Required attribute not found\", \"status\" => \"Error\"),\n\t\t\t\t\t\t\t\t\t\t\"017\" => array(\"message\" => \"Microsoft Translator auth token not valid\", \"status\" => \"Error\"),\n\t\t\t\t\t\t\t\t\t\t\"018\" => array(\"message\" => \"A parameter is an array\", \"status\" => \"Error\"),\n\t\t\t\t\t\t\t\t\t\t\"019\" => array(\"message\" => \"A parameter is not an array\", \"status\" => \"Error\"),\n\n\t\t\t\t\t\t\t\t\t\t\"998\" => array(\"message\" => \"Operation successful\", \"status\" => \"Notice\"),\n\t\t\t\t\t\t\t\t\t\t\"999\" => array(\"message\" => \"Class instanced successfully\", \"status\" => \"Notice\"),\n\t\t\t\t\t\t\t\t\t);\n\t\t\t\n\t\t\t$this->log(\"999\", __METHOD__);\n\t\t}", "public function receive()\n {\n $messages = array();\n\n if (apcu_exists($this->key)) {\n $messages = apcu_fetch($this->key);\n apcu_delete($this->key);\n }\n\n return $messages;\n }", "public static function decode($data)\n {\n return explode(\"\\x00\", base64_decode($data), 2);\n }", "public function decode(string $json): array;", "abstract public function decode($data);", "public static function Decode($version, $domain, $msg, $key)\n\t\t{\n\t\t// base64_decode message.\n\t\tif(!($message = base64_decode($msg)))\n\t\t\tthrow new SwiftAPI_Exception('SwiftAPI::Decode(): Message is not base64 encoded.');\n\n\t\t// Fetch initialization vector size.\n\t\t$ivlen = mcrypt_get_iv_size(MCRYPT_RIJNDAEL_256, MCRYPT_MODE_CBC);\n\n\t\t// Split message into data and initialization vector components.\n\t\t$iv = substr($message, 0, $ivlen);\n\t\t$data = substr($message, $ivlen);\n\n\t\t// Decrypt data and trim trailing NULL bytes.\n\t\t$json = rtrim(mcrypt_decrypt(MCRYPT_RIJNDAEL_256, $key, $data, MCRYPT_MODE_CBC, $iv), \"\\0\");\n\n\t\t// Decode json object.\n\t\tif(!($fields = json_decode($json))) {\n\t\t\tthrow new SwiftAPI_Exception('SwiftAPI::Decode(): ' . json_last_error_msg());\n\t\t}\n\n\t\t// Create a SwiftAPI_Request object.\n\t\t$request = SwiftAPI_Request::Create($fields);\n\n\t\t// Validate domain.\n\t\tif($request -> domain !== $fields -> domain)\n\t\t\tthrow new SwiftAPI_Exception('SwiftAPI::Decode(): Encoded domain does not match requested domain.');\n\n\t\t// Return request.\n\t\treturn $request;\n\t\t}", "public static function decode($encoded) {\n return parent::decode($encoded);\n }", "private function ProcessMessage($message) {\n\t\tif($message !== false) {\n\t\t\t$message = json_decode($message, true);\n\t\t\tif($message !== false) {\n\t\t\t\t$this->Consume($message['id'], $message['content']);\n\t\t\t} else throw new Exception('Error while decoding json message');\n\t\t}\n\t}", "public static function ConvMessageToAPI(ConversationMessage $message) : array {\n\n\t\t$data = array();\n\n\t\t$data[\"ID\"] = $message->get_id();\n\t\t$data[\"ID_user\"] = $message->get_userID();\n\t\t$data[\"time_insert\"] = $message->get_time_sent();\n\t\t$data[\"message\"] = $message->has_message() ? $message->get_message() : \"\";\n\t\t$data[\"image_path\"] = $message->has_image_path() ? $message->get_image_url() : null;\n\n\t\treturn $data;\n\n\t}", "public static function getListMessage()\n\t{\n\t\tif (!isset($_SESSION[__CLASS__]))\n\t\t\t$_SESSION[__CLASS__] = array();\n\n\t\t// Prepare message list\n\t\t$list = array();\n\n\t\t// Retrieve message\n\t\tforeach ($_SESSION[__CLASS__] AS $message)\n\t\t\tarray_push($list, unserialize($message));\n\n\t\t// Clear the session from old message\n\t\t$_SESSION[__CLASS__] = array();\n\n\t\treturn $list;\n\t}", "private static function _getUserInput($msg) {\n print $msg . \": \";\n\n $fr = fopen(\"php://stdin\", \"r\");\n $input = fgets($fr, 128);\n $input = rtrim($input);\n fclose($fr);\n return $input;\n }", "public function mime_header_decode(string $text): array {\n if (extension_loaded('imap')) {\n $result = \\imap_mime_header_decode($text);\n return is_array($result) ? $result : [];\n }\n $charset = $this->getEncoding($text);\n return [(object)[\n \"charset\" => $charset,\n \"text\" => $this->convertEncoding($text, $charset)\n ]];\n }", "function msg_get($umd=NULL){\n $keys = is_null($umd)?$this->domain_seq:(array)$umd;\n $res = array();\n foreach($keys as $ck) $res[$ck] = $this->domains[$ck]->msg_get();\n return is_array($umd)?$res:array_shift($res);\n }", "private function decode_raw_message($raw_message, $decode_bodies = TRUE) {\n\n /*\n * Cached content exists?\n */\n// $cache_key = \"MIME_DECODED_MESSAGE_\" . md5($raw_message);\n// $mime_decoded_message_cached = $this->get_cache($cache_key);\n// if (is_object($mime_decoded_message_cached)) {\n// return $mime_decoded_message_cached;\n// }\n\n $mime_decode = new Mail_mimeDecode($raw_message);\n\n $decode_params = array(\n 'include_bodies' => TRUE,\n 'decode_bodies' => $decode_bodies,\n 'decode_headers' => TRUE,\n 'rfc_822bodies' => TRUE\n );\n\n /*\n * add error suppression to avoid \"Deprecated: preg_replace(): The /e modifier \n * is deprecated, use preg_replace_callback instead in \n * ..../roundcube/vendor/pear-pear.php.net/Mail_mimeDecode/Mail/mimeDecode.php on line 762\"\n */\n $decoded = @$mime_decode->decode($decode_params);\n\n /*\n * add mime_id attributes to '$decoded' array items (pass by reference)\n */\n $mime_decode->getMimeNumbers($decoded);\n\n /*\n * Store cached content\n */\n// $this->update_cache($cache_key, $decoded);\n\n return $decoded;\n }", "public function readMsg()\n\t{\n\t\tglobal $_THRESH, $_LOCKTHRESH;\n\t\t\n\t\tif($this->_SERIAL->_ckOpened() == false) { return \"fail\";}\n\t\t$this->_SERIAL->serialflush();\n\t\t\n\t\t$result = -5;\n\t\t$data = \"\";\n\t\t$i = 0;\n\t\t\n\t\t//This regex looks for any whitespace characters (\\n, char(10), etc.)\n\t\twhile (!preg_match(\"/[\\s,]+/\", $data))\n\t\t{\n\t\t\tif($i >=75000) {\n\t\t\t\treturn \"failed to read data. Value of loop: \".$i;\n\t\t\t}\n\t\t\n\t\t\t$i++;\n\t\t\t$data .= $this->_SERIAL->readPort();\n\t\t}\n\n\t\t$arr = str_split($data);\n\n\t\t// First byte of incoming message determines what type it is.\n\t\t$resultID = $arr[0];\n\n\t\t// after type is determined these statements extract relevant data from rest of the message.\n\t\tif ($resultID == \"s\")\n\t\t{\n\t\t\t$value = (ord($arr[3])*256)+ord($arr[4]);\n\n\t\t\tif($value > $_THRESH)\n\t\t\t\t$result = 1; // Filled\n\t\t\telse \n\t\t\t\t$result = 0; // UnFilled\n\t\t}\n\t\telseif ($resultID == \"l\")\n\t\t{\n\t\t\t$value = (ord($arr[3])*256)+ord($arr[4]);\n\n\t\t\tif($value < $_LOCKTHRESH) \n\t\t\t\t$result = 1; // UnLocked\n\t\t\telse \n\t\t\t\t$result = 0; // locked\n\t\t}\n\t\telseif ($resultID == \"a\")\n\t\t{\n\t\t\t$result = 1; // message was confirmed\n\t\t}\n\t\telseif ($resultID == \"n\")\n\t\t{\n\t\t\t$iDplusCol = Array(0 => ord($arr[1]), 1 => ord($arr[2]));\n\t\t\treturn $iDplusCol; // new column was found return the number of boxes\n\t\t}\n\t\telseif ($resultID == \"t\")\n\t\t{\n\t\t\t$result= ord($arr[3]); // returns the size of queried box\n\t\t}\n\t\t\n\t\treturn $result;\n\t}", "private function get_msg_from_session()\n {\n if ( ! empty( $_SESSION[ self::$SESSION_KEY ] ) ) {\n $sess_unser = @unserialize( $_SESSION[ self::$SESSION_KEY ] );\n if ( ! is_array( $sess_unser ) ) {\n $sess_unser = array();\n };\n foreach ( $sess_unser as $nth_msg ) {\n if ( empty( $nth_msg[ 'msg_txt' ] ) ) {\n continue;\n };\n $msg_mode =empty( $nth_msg[ 'msg_mode' ])?'info':$nth_msg[ 'msg_mode' ];\n $is_dismiss =empty( $nth_msg[ 'is_dismiss' ])?false:$nth_msg[ 'is_dismiss' ];\n\n $this->messages[]=[\n 'msg_txt'=>$nth_msg[ 'msg_txt' ],\n 'msg_mode'=>$msg_mode,\n 'is_dismiss'=>$is_dismiss,\n ];\n };\n };\n unset($_SESSION[ self::$SESSION_KEY ]);\n// rasolo_debug_to_file($messages_array,'get_mess_from_sess');\n// rasolo_debug_to_file(true,null);\n\n }", "protected function getStatusChangeConfirmation ($cmd) {\n\n $command = json_decode($cmd);\n $myCmd = self::CMD;\n $statusChangeConfirmationCommand = Dictionary::getDaliMessageStatusChangeConfirmationCommandByCode(hexdec($command->$myCmd->cmd));\n if (!$statusChangeConfirmationCommand) {\n return;\n }\n $response = parent::sendCommand(json_encode(\n array(\n self::CMD => array(\n 'lc_id' => $command->$myCmd->lc_id,\n 'dvc_id' => $command->$myCmd->dvc_id,\n 'cmd' => dechex($statusChangeConfirmationCommand),\n 'rsp' => Dictionary::getDaliRequiresResponseByCode($statusChangeConfirmationCommand)\n )\n )\n ));\n\n if (Dictionary::getDaliRequiresResponseByCode($statusChangeConfirmationCommand) == 'Y') {\n return $this->getResultFromResponse(json_decode($response));\n }\n\n }", "public function alert($msg)\n\t{\n\t\tif (is_array($msg))\n\t\t{\n\t\t\t$msg = join(\"\\n\", $msg);\n\t\t}\n\n\t\t$this->last_selector = null;\n\n\t\treturn $this->cmd(1, array($this->typecast($msg, true)));\n\t}", "public function decode($request): array;", "function &getMessageObjects() {\n\t\t$res=$this->getMessages();\n\t\t$return = array();\n\t\twhile ($arr = db_fetch_array($res)) {\n\t\t\t$return[] = new ArtifactMessage($this, $arr);\n\t\t}\n\t\treturn $return;\n\t}", "public function decode(string $row): array\n {\n return [$row];\n }", "private function _read_messages() {\n\n\t\tif( $this->messages ) {\n\t\t\treturn $this->messages;\n\t\t}\n\n\t\tif( !isset( $_COOKIE[ $this->cookie_handle ] ) || $_COOKIE[ $this->cookie_handle ] == \"null\" ) {\n\t\t\treturn array();\n\t\t}\n\n\t\treturn $this->parse_cookie( $_COOKIE[ $this->cookie_handle ] );\n\t}", "private function err_to_array() {\n return array(\n 'code' => $this->code,\n 'reason' => $this->http_status_code_string($this->code),\n 'message' => $this->message,\n );\n }", "private function parseDigestMessage($message) {\n\t\t\t$to_parse = array(\"username\", \"nonce\", \"response\", \"opaque\", \"uri\", \"cnonce\");\n\t\t\t$data = array();\n\n\t\t\tforeach($to_parse as $name) {\n\t\t\t\tpreg_match('/' . $name . '=\"([^\"]+)\"/', $message, $tmp);\n\t\t\t\t$data[$name] = $tmp[1];\n\t\t\t}\n\n\t\t\tpreg_match('/qop=\"?([^,\\s\"]+)/', $message, $tmp); $data[\"qop\"] = $tmp[1];\n\t\t\tpreg_match('/nc=([^,\\s]+)/', $message, $tmp); $data[\"nc\"] = $tmp[1];\n\n\t\t\treturn $data;\n\t\t}", "public function parseResponse($message);" ]
[ "0.66439223", "0.6207615", "0.5959225", "0.55546576", "0.54595155", "0.51822895", "0.5025923", "0.4950033", "0.49315083", "0.4922565", "0.4902607", "0.48963267", "0.48959005", "0.4863099", "0.48382077", "0.47677565", "0.4762695", "0.4747821", "0.47203514", "0.470913", "0.46767002", "0.4664718", "0.46520385", "0.46514514", "0.46492139", "0.4636749", "0.4623811", "0.4617223", "0.45935485", "0.45882493", "0.4587988", "0.45666936", "0.45540813", "0.45516315", "0.45120075", "0.45064548", "0.44957548", "0.4470873", "0.44602126", "0.44593915", "0.44583938", "0.443179", "0.44314283", "0.44260412", "0.44118094", "0.44052285", "0.44016027", "0.43786433", "0.43757838", "0.43639156", "0.43619952", "0.43576276", "0.43437558", "0.4331666", "0.43227375", "0.43220276", "0.43161806", "0.43143624", "0.43130693", "0.43059453", "0.4303884", "0.4302782", "0.4294852", "0.42862052", "0.42831984", "0.42760205", "0.42736286", "0.42673916", "0.42599204", "0.4259287", "0.4248432", "0.4248273", "0.42390895", "0.42259347", "0.42197976", "0.42182636", "0.42036647", "0.41906142", "0.41798088", "0.41773823", "0.41765928", "0.41689783", "0.41679552", "0.41663936", "0.4162258", "0.41595358", "0.41576284", "0.4156735", "0.41531703", "0.41501483", "0.4136966", "0.4135868", "0.41252527", "0.4122434", "0.41222396", "0.41218033", "0.41189295", "0.41163737", "0.40905622", "0.40901712" ]
0.7982795
0
Extracts and returns the message part of an internal message (Command is excluded). \param $msg A message string in internal message format. \return Returns the extracted section or an empty string on failure.
public static function extractMsg (string $msg) : string { if (($pos = strpos ($msg, ':')) === false || ($command = \DataLib::isInt (substr ($msg, 0, $pos))) === false || !Command::isCommand ($command)) { return ''; } return substr ($msg, $pos + 1); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function filtrarMensage($msg) {\n $INI = strpos($msg, '<?xml');\n $FIN = strpos($msg, ':Envelope>');\n return substr($msg, $INI, ($FIN + strlen(':Envelope>')) - $INI);\n }", "abstract public function getFullMessage($msgNo);", "protected function unwrap($msg,$bytes){ return substr($msg,1,$bytes-2); }", "private function getMsg()\n {\n return $this->msg;\n }", "function ParseMsg($msg) {\n\t$parts = explode(\"&\",$msg);\n\t$result = array();\n\tforeach($parts as $i => $value) {\n\t\t$bits = explode(\"=\", $value, 2);\n\t\t$result[$bits[0]] = urldecode($bits[1]);\n\t}\n\n\treturn $result;\n}", "private function ParseMsg($msg) {\n\t\t$parts = explode(\"&\",$msg);\n\t\t$result = array();\n\t\tforeach($parts as $i => $value) {\n\t\t\t$bits = explode(\"=\", $value, 2);\n\t\t\t$result[$bits[0]] = urldecode($bits[1]);\n\t\t}\n\n\t\treturn $result;\n\t}", "protected function getMsg( $msgId )\n\t{\n\t\t$msgText = wfMsgExt( $msgId );\n\t\t\n\t\tif ( wfEmptyMsg( $msgId, $msgText ))\n\t\t\treturn null;\n\t\t\t\n\t\treturn $msgText;\t\t\t\n\t}", "private function retrieveMessage() : ?string {\n $message = [];\n\n // The regex to find the head of the message wrapper (message lies between head and foot wrapper)\n $messageHeadWrapperRegex = $this->buildRegex([\n self::REGEX_CONTENT_HEAD ,\n self::REGEX_MESSAGE_WRAPPER_BODY,\n \"(\\s{2})\"\n ], \"\", \"\");\n\n // The regex to find the foot of the message wrapper (message lies between head and foot wrapper)\n $messageFootWrapperRegex = $this->buildRegex([\n self::REGEX_CONTENT_HEAD,\n self::REGEX_MESSAGE_WRAPPER_BODY\n ], \"\", \"\");\n\n // The regex for querying the message, including its queried wrapper\n $messageRegex = $this->buildRegex([\n $messageHeadWrapperRegex,\n self::REGEX_ALL,\n $messageFootWrapperRegex\n ]);\n\n // Querying the message\n preg_match($messageRegex, $this->currentEmail, $message);\n\n // If the message not found, there is most likely no message, so return null\n // Use index \"4\", because the regex group which represents the message only is at index \"4\"\n if (!isset($message[4]))\n return null;\n\n // Return the quoted-printable decoded and trimmed message\n // Use index \"4\", because the regex group which represents the message only is at index \"4\"\n $message = quoted_printable_decode($message[4]);\n return trim($message);\n }", "public function get_message_part($uid, $message_part=0, $peek=false, $max=false, &$maxReached=false) {\n//\t\t$this->clean($uid, 'uid');\n//\n//\t\t$peek_str = $peek ? '.PEEK' : '';\n//\n//\t\tif (empty($message_part)) {\n//\t\t\t$command = \"UID FETCH $uid BODY\".$peek_str.\"[]\\r\\n\";\n//\t\t}\n//\t\telse {\n//\t\t\t//$this->clean($message_part, 'msg_part');\n//\t\t\t$command = \"UID FETCH $uid BODY\".$peek_str.\"[$message_part]\\r\\n\";\n//\t\t}\n//\t\t$this->send_command($command);\n//\n//\t\t$result = $this->get_response($max, true);\n//\n//\t\t$status = $this->check_response($result, true, false);\n//\n//\t\t$res = '';\n//\t\tforeach ($result as $vals) {\n//\t\t\tif ($vals[0] != '*') {\n//\t\t\t\tcontinue;\n//\t\t\t}\n//\t\t\t$search = true;\n//\t\t\tforeach ($vals as $v) {\n//\t\t\t\tif ($v != ']' && !$search) {\n//\t\t\t\t\t$res = trim(preg_replace(\"/\\s*\\)$/\", '', $v));\n//\t\t\t\t\tbreak 2;\n//\t\t\t\t}\n//\t\t\t\tif (stristr(strtoupper($v), 'BODY')) {\n//\t\t\t\t\t$search = false;\n//\t\t\t\t}\n//\t\t\t}\n//\t\t}\n//\t\treturn $res;\n\n\t\t$str = '';\n\t\t$this->get_message_part_start($uid,$message_part, $peek);\n\t\twhile ($line = $this->get_message_part_line()) {\n\t\t\t$str .= $line;\n\t\t}\n\t\treturn $str;\n\t}", "public static function info(string $msg): string\n {\n $msg = 'Info: ' . $msg;\n $space = self::tabSpaces($msg);\n $out = static::colorize(str_pad(' ', $space), Color::FG_WHITE, Color::AT_BOLD, Color::BG_BLUE) . PHP_EOL;\n $out .= static::colorize(' ' . $msg . ' ', Color::FG_WHITE, Color::AT_BOLD, Color::BG_BLUE) . PHP_EOL;\n $out .= static::colorize(str_pad(' ', $space), Color::FG_WHITE, Color::AT_BOLD, Color::BG_BLUE) . PHP_EOL;\n\n return $out;\n }", "public function get_msg() {\r\n return $this->msg;\r\n }", "public static function decomposeMsg (string $msg) : array {\n\t\tif (($pos = strpos ($msg, ':')) === false || ($command = \\DataLib::isInt (substr ($msg, 0, $pos))) === false || !Command::isCommand ($command)) {\n\t\t\treturn [ Command::INVALID ];\n\t\t}\n\t\treturn [\n\t\t\t$command,\n\t\t\tjson_decode (substr ($msg, $pos + 1), true)\n\t\t];\n\t}", "abstract public function get_message();", "function getMessage($msg_id) {\n\t\tif (!$msg_id) {\n\t\t\treturn false;\n\t\t}\n\t\treturn db_query_params ('SELECT * FROM artifact_message_user_vw WHERE id=$1',\n\t\t\tarray($msg_id));\n\t}", "public function getMsg()\n {\n return $this->msg;\n }", "public function getMsg()\n {\n return $this->msg;\n }", "function shGetMosMsg($string)\n{\n\t$matches = array();\n\t$result = preg_match('/(&|\\?)mosmsg=[^&]*/i', $string, $matches);\n\tif (!empty($matches))\n\t\treturn JString::trim($matches[0], '&?');\n\telse\n\t\treturn '';\n}", "public function returnImapMailBoxmMsgInfoObj(){\n return imap_mailboxmsginfo($this->stream); \n\t}", "public static function readMetaProperties($msg)\n {\n $properties = array();\n\n foreach ($msg as $_prop) {\n if (!empty($_prop)) {\n list($name, $value) = explode(':', $_prop);\n $name = strtolower(str_replace('-', '_', trim($name)));\n\n $properties[$name] = trim($value);\n }\n }\n\n return $properties;\n }", "function getMessage($msgid)\n{\n\tglobal $lang;\n\n\t$message = \\dal\\messages\\getMessage($msgid, 'recipient');\n\n\tif ($message)\n\t{\n\t\t$message['sender'] = \\bl\\general\\uid2nick($message['uid_sender']);\n\t\t$messageDate = \\DWDateTime::createFromFormat('Y-m-d H:i:s', $message['create_datetime']);\n\t\t$message['sentDate'] = $messageDate->format($lang['messageTimeFormat']);\n\t}\n\n\t$parser = new \\bl\\wikiParser\\WikiParser();\n\t$message['message'] = preg_replace('#(\\\\\\\\r\\\\\\\\n|\\\\\\\\\\\\\\\\r\\\\\\\\\\\\\\\\n|\\\\\\\\n|\\\\\\\\\\\\\\\\n)#', \"\\r\\n\", $message['message']);\n\t$message['message'] = $parser->parseIt($message['message']);\n\n\treturn $message;\n}", "private function _formatMsgResponse($msg)\n {\n $msgType = isset($msg['msgType']) ? $msg['msgType'] : '';\n if ($msgType == self::MESSAGE_TEXT) {\n return $msg;\n } else if ($msgType == self::MESSAGE_NEWS) {\n $articles = $msg['articles'];\n $count = count($articles);\n //replace url with picUrl\n for ($i = 0; $i < $count; $i++) {\n $msg['articles'][$i]['picUrl'] = $msg['articles'][$i]['url'];\n unset($msg['articles'][$i]['url']);\n }\n\n //add articles to content\n $result['content'] = ['articles' => $msg['articles']];\n $result['msgType'] = $msgType;\n } else if ($msgType == self::MESSAGE_URL) {\n //add url to content\n $result['content'] = $msg['url'];\n $result['msgType'] = $msgType;\n } else if ($msgType == self::MESSAGE_MPNEWS) {\n $articles = $msg['articles'];\n $count = count($articles);\n //replace url with picUrl\n for ($i = 0; $i < $count; $i++) {\n $msg['articles'][$i]['picUrl'] = $msg['articles'][$i]['url'];\n unset($msg['articles'][$i]['url']);\n }\n\n //add articles to content\n $result['content'] = ['articles' => $msg['articles']];\n $result['msgType'] = $msgType;\n } else {\n $result['msgType'] = false;\n }\n\n return $result;\n }", "public function getMessage()\n {\n return $this->msg;\n }", "public function get_message() {\n\n\t\t$entity = $this->get_current_entity();\n\n\t\tswitch ($entity) {\n\t\t\tcase self::$ARTICLE:\n\t\t\t\treturn $this->maybe_get_restricted_excerpt() .\n\t\t\t\t $this->maybe_get_restricted_message() .\n\t\t\t\t $this->maybe_get_before_html() .\n\t\t\t\t $this->maybe_get_login_form() .\n\t\t\t\t $this->maybe_get_after_html();\n\n\t\t\tcase self::$ARCHIVE:\n\t\t\t\treturn MKB_Options::option('restrict_topic_message');\n\n\t\t\tcase self::$HOME:\n\t\t\t\treturn MKB_Options::option('restrict_page_message');\n\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t}\n\n\t\treturn '';\n\t}", "function getMsg($param) {\n global $msg;\n $msg = \"\";\n $msgCount = 1;\n for($i = 0; $i < strlen('$str'); $i++) {\n if($str[$i] != \"*\" && $msgCount == $param && $activeMsg) {\n $msg .= $str[$i];\n } else if($str[$i] == \"*\") {\n $msgCount++;\n $activeAuthor = true;\n $activeMsg = false;\n } else if($str[$i] == \":\") {\n $activeAuthor = false;\n $activeMsg = true;\n }\n }\n }", "public static function message($msg)\n {\n if (is_array($msg)) {\n $msg = print_r($msg, true);\n }\n\n $prefix = 'Spry: ';\n if (isset(self::$prefix['message'])) {\n $prefix = self::$prefix['message'];\n }\n\n return self::log($prefix.$msg, 'message');\n }", "private function getMessage(String $page, String $messageCode) {\n $locale = fopen($this->langFolder.$page.'.lang', 'r');\n $messageCode .= ': ';\n while (!feof($locale)) {\n $line = fgets($locale);\n if (startsWith($line, $messageCode)) {\n fclose($locale);\n return substr($line, strpos($messageCode, ':') + 2, strlen($line));\n }\n }\n fclose($locale);\n return '';\n }", "public function get_message($msg_type=false) \n {\n $sess_msg= Session::instance()->get(\"hana_message\", array());\n if(!empty($sess_msg)) $this->message=$sess_msg;\n \n if($msg_type)\n {\n return $this->message[$msg_type];\n }\n else\n {\n return $this->message;\n }\n }", "public function getMsg()\n {\n return $this->Msg;\n }", "public static function returnDetail($msg_code) {\n if (!self::$_program) {\n self::$_program = new Angel_Exception_Program('');\n }\n self::$_program->setMessageCode($msg_code);\n\n return self::$_program->getDetail();\n }", "public function getMessage( $data ) \n {\n return $data->message;\n }", "function &getMessage() {\r\n\t\t\treturn $this->msg;\r\n\t\t}", "public function get_message_part($uid, $part = 1, $o_part = null, $print = null, $fp = null, $skip_charset_conv = false) {\n\n // Retrieve message record\n $message_metadata = $this->get_message_record($uid);\n if (!$message_metadata) {\n // not found\n return FALSE;\n }\n\n // ACLs check ('read' grant required )\n $ACLs = $this->_get_acl(NULL, $message_metadata['mailbox_idnr']);\n if (!is_array($ACLs) || !in_array(self::ACL_READ_FLAG, $ACLs)) {\n // Unauthorized!\n return FALSE;\n }\n\n // Get mime content\n $mime = $this->fetch_part_lists($message_metadata['physmessage_id']);\n\n // Decode raw message\n $mime_decoded = $this->decode_raw_message($mime->header . $mime->body);\n if (!$mime_decoded) {\n return FALSE;\n }\n\n // Get message body\n $body = $this->get_message_part_body($mime_decoded, $part);\n\n if ($print) {\n // Print message!\n echo $body;\n }\n return $body;\n }", "public function detail()\n {\n return $this->_msg;\n }", "public function extract_outlook_message($body) \n\t{\n\t\t$strpos = strpos($body, 'divRplyFwdMsg');\n\t\tif($strpos === false) {\n\t\t\treturn $body;\n\t\t} else {\n\t\t\t// Cut off \n\t\t\t$body = strstr($body, 'divRplyFwdMsg', true);\n\t\t\treturn $body;\n\t\t}\n\t\treturn $body;\n\t}", "public static function toString($msg) {\n\t\tif (!is_string($msg)) {\n\t\t\treturn print_r($msg, true);\n\t\t}\n\n\t\treturn $msg;\n\t}", "public function getMessage() {\n $ret = \"\";\n if ($this->message !== \"\") {\n $ret = <<<EOF\n <p class=\"dice-message\">{$this->message}</p>\nEOF;\n }\n return $ret;\n }", "public function getMessageById($msg_id)\n {\n $query = \"SELECT * FROM message_to_advertiser WHERE id = $msg_id\";\n return $this->getQueryData($query, $this->getConnection());\n }", "private function cleaningAttrFromMsg($msg):array{\n\n $return = [\n 'msg' => $msg,\n 'behavior' => null\n ];\n\n if(strpos($msg, '{alert}:') === 0){\n $return['msg'] = substr($msg, 8);\n $return['behavior'] = 'alert';\n }\n\n return $return;\n }", "public function msg($msg);", "public function message($msg = \"\")\n\t{\n\t\tif(!empty($msg))\n\t\t{\n\t\t\t$_SESSION[\"message\"] = $msg;\n\t\t}\n\t\telse\n\t\t{\t\n\t\t\treturn $this->_message;\n\t\t}\n\t}", "function getMsgReceived($account, $profile_id='%%', $conv_id='%%', $msg_id='%%', $template='%%', $watson_msg='%%', $watson_try='%%', $is_read='%%'){\n\t\tglobal $db;\n\t\t$profile_id = empty($profile_id)?'%%':$profile_id;\n\t\t$conv_id = empty($conv_id)?'%%':$conv_id;\n\t\t$msg_id = empty($msg_id)?'%%':$msg_id;\n\t\t$template = empty($template)?'%%':$template;\n\t\t$watson_msg = getType($watson_msg)!='boolean'?'%%':intval($watson_msg);\n\t\t$watson_try = getType($watson_try)!='boolean'?'%%':intval($watson_try);\n\t\t$is_read = getType($is_read)!='boolean'?'%%':intval($is_read);\n\n\t\t$statement = $db->prepare('SELECT * FROM msg_conversation WHERE by_bot=0 AND profile_id LIKE :profile_id AND conv_id LIKE :conv_id AND msg_id LIKE :msg_id AND template_msg LIKE :template AND watson_msg LIKE :watson_msg AND watson_try LIKE :watson_try AND is_read LIKE :is_read AND accountID=:account ORDER BY date');\n\t\t$statement->execute(array(':profile_id'=>$profile_id, ':conv_id'=>$conv_id, ':msg_id'=>$msg_id, ':template'=>$template, ':watson_msg'=>$watson_msg, ':watson_try'=>$watson_try, ':is_read'=>$is_read, ':account'=>$account));\n\t\treturn $statement->rowCount()==0?null:$statement->fetchAll(PDO::FETCH_ASSOC);\n\t}", "public function getMessage();", "public function getMessage();", "public function getMessage();", "public function getMessage();", "public function getMessage();", "public function getMessage();", "public function getMessage();", "public function getMessage();", "public function getMessage();", "public function getMessage();", "public function getMessage();", "public function getMessage();", "public function getMessage();", "public function get_message_part_line() {\n\n\t\t$line=false;\n\t\t$leftOver = $this->message_part_size-$this->message_part_read;\n\t\tif($leftOver>0){\n\n\t\t\t//reading exact length doesn't work if the last char is just one char somehow.\n\t\t\t//we cut the left over later with substr.\n\t\t\t$blockSize = 1024;//$leftOver>1024 ? 1024 : $leftOver;\n\t\t\t$line = fgets($this->handle,$blockSize);\n\t\t\t$this->message_part_read+=strlen($line);\n\t\t}\n\n\t\tif ($this->message_part_size < $this->message_part_read) {\n\n\t\t\t$line = substr($line, 0, ($this->message_part_read-$this->message_part_size)*-1);\n\t\t}\n\n\t\tif($line===false){\n\n\t\t\t//read and check left over response.\n\t\t\t$response=$this->get_response();\n\t\t\t$this->check_response($response);\n\n\t\t}\n\t\treturn $line;\n\t}", "function msg_get($umd=NULL){\n $keys = is_null($umd)?$this->domain_seq:(array)$umd;\n $res = array();\n foreach($keys as $ck) $res[$ck] = $this->domains[$ck]->msg_get();\n return is_array($umd)?$res:array_shift($res);\n }", "public function get_message_part_start($uid, $message_part=0, $peek=false) {\n\t\t$this->clean($uid, 'uid');\n\n\t\t$peek_str = $peek ? '.PEEK' : '';\n\n\t\tif (empty($message_part)) {\n\t\t\t$command = \"UID FETCH $uid BODY\".$peek_str.\"[]\\r\\n\";\n\t\t}\n\t\telse {\n\t\t\t//$this->clean($message_part, 'msg_part');\n\t\t\t$command = \"UID FETCH $uid BODY\".$peek_str.\"[$message_part]\\r\\n\";\n\t\t}\n\t\t$this->send_command($command);\n\t\t$result = fgets($this->handle);\n\t\t\n\t\t$size = false;\n\t\tif (preg_match(\"/\\{(\\d+)\\}\\r\\n/\", $result, $matches)) {\n\t\t\t$size = $matches[1];\n\t\t}\n\n//\t\tif(!$size)\n//\t\t\treturn false;\n\n\t\t$this->message_part_size=$size;\n\t\t$this->message_part_read=0;\n\n//\t\t\\GO::debug(\"Part size: \".$size);\n\t\treturn $size;\n\t}", "public function setMsg($var)\n {\n GPBUtil::checkString($var, True);\n $this->msg = $var;\n\n return $this;\n }", "public function getMessage()\n {\n $rtn = $this->data['message'];\n\n return $rtn;\n }", "public function message()\n {\n return $this->msg;\n }", "public function message()\n {\n return $this->msg;\n }", "public function message()\n {\n return $this->msg;\n }", "public function getMessage(): string\n {\n return $this->requireString('message');\n }", "private function getMsg($code){\n\t\t\t$msg = $this->msgcode[$code]['message'];\n\t\t\t$status = $this->msgcode[$code]['status'];\n\t\t\tif ($msg && $status !== NULL) return array($msg, $status);\n\t\t\telse return array($this->msgcode['000']['message'], $this->msgcode['000']['status']);\n\t\t}", "public function getMessagePart(): ?MessagePart\n {\n return $this->messagePart;\n }", "public function readMsg()\n\t{\n\t\tglobal $_THRESH, $_LOCKTHRESH;\n\t\t\n\t\tif($this->_SERIAL->_ckOpened() == false) { return \"fail\";}\n\t\t$this->_SERIAL->serialflush();\n\t\t\n\t\t$result = -5;\n\t\t$data = \"\";\n\t\t$i = 0;\n\t\t\n\t\t//This regex looks for any whitespace characters (\\n, char(10), etc.)\n\t\twhile (!preg_match(\"/[\\s,]+/\", $data))\n\t\t{\n\t\t\tif($i >=75000) {\n\t\t\t\treturn \"failed to read data. Value of loop: \".$i;\n\t\t\t}\n\t\t\n\t\t\t$i++;\n\t\t\t$data .= $this->_SERIAL->readPort();\n\t\t}\n\n\t\t$arr = str_split($data);\n\n\t\t// First byte of incoming message determines what type it is.\n\t\t$resultID = $arr[0];\n\n\t\t// after type is determined these statements extract relevant data from rest of the message.\n\t\tif ($resultID == \"s\")\n\t\t{\n\t\t\t$value = (ord($arr[3])*256)+ord($arr[4]);\n\n\t\t\tif($value > $_THRESH)\n\t\t\t\t$result = 1; // Filled\n\t\t\telse \n\t\t\t\t$result = 0; // UnFilled\n\t\t}\n\t\telseif ($resultID == \"l\")\n\t\t{\n\t\t\t$value = (ord($arr[3])*256)+ord($arr[4]);\n\n\t\t\tif($value < $_LOCKTHRESH) \n\t\t\t\t$result = 1; // UnLocked\n\t\t\telse \n\t\t\t\t$result = 0; // locked\n\t\t}\n\t\telseif ($resultID == \"a\")\n\t\t{\n\t\t\t$result = 1; // message was confirmed\n\t\t}\n\t\telseif ($resultID == \"n\")\n\t\t{\n\t\t\t$iDplusCol = Array(0 => ord($arr[1]), 1 => ord($arr[2]));\n\t\t\treturn $iDplusCol; // new column was found return the number of boxes\n\t\t}\n\t\telseif ($resultID == \"t\")\n\t\t{\n\t\t\t$result= ord($arr[3]); // returns the size of queried box\n\t\t}\n\t\t\n\t\treturn $result;\n\t}", "public function readMessage($id) {\n\t\t$response = null;\n\t\tif ($id) {\n\t\t\t$urlMessage = \"{$this->apiHost}/read_message\";\n\t\t\t$postData = sprintf ( \"id=%s&uh=%s\", $id, $this->modHash );\n\t\t\t$response = $this->runCurl ( $urlMessage, $postData );\n\t\t}\n\t\treturn $response;\n\t}", "public function getMessage() {\n\t\treturn preg_replace('%(\\r\\n|\\r|\\n)%', self::$crlf, $this->message . (MAIL_SIGNATURE ? self::$crlf . self::$crlf . MAIL_SIGNATURE : ''));\n\t}", "public function extract_gmail_message($body) \n\t{\n\t\t$strpos = strpos($body, \"gmail_extra\");\n\t\tif($strpos === false) {\n\t\t\treturn $body;\n\t\t} else {\n\t\t\t// Cut off \n\t\t\t$body = strstr($body, 'gmail_extra', true);\n\t\t\treturn $body;\n\t\t}\n\t\treturn $body;\n\t}", "public function getMessageText() {\n\treturn ($this->messageText);\n}", "protected function truncar_msg($msg)\n\t{\n\t\tif (strlen($msg) > self::$limite_mensaje) {\n\t\t\t$msg = substr($msg, 0, self::$limite_mensaje).\n\t\t\t\t\t\"..TEXTO CORTADO POR EXCEDER EL LIMITE DE \".\n\t\t\t\t\tself::$limite_mensaje.\n\t\t\t\t\t\" bytes\";\n\t\t}\n\t\treturn $msg;\n\t}", "function get($msg_index) {\n if (isset($this->inbox[$msg_index])) \n {\n return $this->inbox[$msg_index];\n }else\n {\n return false;\n }\n }", "public function getMessage() : ?string\n {\n $rtn = $this->data['message'];\n\n return $rtn;\n }", "private function parseMessage() {\n\n\t\t# Regexp to parse a formatted message\n\t\t# The message should come in format of\n\t\t# :(.*)\\!(.*)\\@(.*) PRIVMSG #channelname \\:(.*) for regular chatter\n\t\t# thus returning nickname, realname, hostmask, (command, arguments) || (botname: command (arguments)) || (chatter)\n\t\t$matched = false;\n\n # Try to match against the bots name!\n # This could mean it is a direct message in chan followed by a command request\n if(!$matched) {\n $pattern = '/:(.*)\\!(.*)\\@(.*) PRIVMSG '.$this->config['destinationChannel'].' \\:('.$this->config['username'].')\\:(?: +)?([^\\s]*) (.*)/';\n preg_match($pattern, $this->inbound, $matches);\n if(count($matches) > 1) {\n $matched = true;\n $this->lastMessage = array(\n 'nickname' => $matches[1],\n 'realname' => $matches[2],\n 'hostname' => $matches[3],\n 'command' => $matches[5],\n 'args' => rtrim($matches[6],\"\\n\\r\"),\n 'chatter' => ''\n );\n # Have to match a case whereby a command of 'botname: command' with no args is provided (for help)\n # If this case occurs we have to do some arg movement otherwise the command parser won't get a hit\n if($this->lastMessage['args'] != \"\" && $this->lastMessage['command'] == '') {\n $this->lastMessage['command'] = $this->lastMessage['args'];\n $this->lastMessage['args'] = \"\";\n }\n }\n }\n\n\t\tif(!$matched) {\n\t\t\t$pattern = '/:(.*)\\!(.*)\\@(.*) PRIVMSG '.$this->config['destinationChannel'].' \\:(.*)/';\n\t\t\tpreg_match($pattern, $this->inbound, $matches);\n\t\t\tif(count($matches) > 1) {\n\t\t\t\t$this->lastMessage = array(\n\t\t\t\t\t'nickname' => $matches[1],\n\t\t\t\t\t'realname' => $matches[2],\n\t\t\t\t\t'hostname' => $matches[3],\n\t\t\t\t\t'command' => '',\n\t\t\t\t\t'args' => '',\n\t\t\t\t\t'chatter' => rtrim($matches[4],\"\\n\\r\")\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\t}", "protected function formatErrorMessage($msg)\n {\n // Remove prefix like \"WebPAC Error\" or \"XCirc error\"\n $msg = preg_replace('/.* [eE]rror\\s*:\\s*/', '', $msg);\n // Handle non-ascii characters that are returned in a wrongly encoded format\n // (e.g. {u00E4} instead of \\u00E4)\n $msg = preg_replace_callback(\n '/\\{u([0-9a-fA-F]{4})\\}/',\n function ($matches) {\n return mb_convert_encoding(\n pack('H*', $matches[1]), 'UTF-8', 'UCS-2BE'\n );\n },\n $msg\n );\n return $msg;\n }", "abstract public function getMsgError();", "static function getMessage( $messid ) {\n\t\tglobal $wgUser;\n\t\t$userid = $wgUser->getId();\n\n\t\t$dbr = wfGetDB( DB_SLAVE );\n\t\t# get the users lists\n\t\t$conds = array( 'id' => $messid );\n\n\t\t$res = $dbr->select(\n\t\t\t'intercom_message',\n\t\t\tarray( 'id', 'summary', 'message', 'author', 'list', 'timestamp', 'parsed' ),\n\t\t\t$conds,\n\t\t\t__METHOD__,\n\t\t\tarray( 'ORDER BY' => 'timestamp DESC', 'LIMIT' => 1 )\n\t\t);\n\n\t\tif ( $res ) {\n\t\t\tif ( $res->numRows() > 0 ) {\n\t\t\t\t$row = $res->fetchRow();\n\t\t\t\t$groupName = $row['list'] == 'intercom-urgent' ? wfMessage( 'intercom-urgentlist' )->text() : $row['list'];\n\t\t\t\t$mess = array(\n\t\t\t\t\t'id' => $row['id'],\n\t\t\t\t\t'summary' => $row['summary'],\n\t\t\t\t\t'text' => $row['message'],\n\t\t\t\t\t'sender' => User::newFromId( $row['author'] )->getName(),\n\t\t\t\t\t'senderid' => $row['author'],\n\t\t\t\t\t'group' => $groupName,\n\t\t\t\t\t'time' => $row['timestamp'],\n\t\t\t\t\t'parsed' => $row['parsed'],\n\t\t\t\t\t'realgroup' => $row['list']\n\t\t\t\t);\n\t\t\t}\n\t\t\t$res->free();\n\t\t}\n\n\t\tif ( $mess ) {\n\t\t\treturn Intercom::_rendermessage( $mess, $userid, false );\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public function getMessage(){\n\t\treturn $this->message;\n\t}", "public function getMessage () {\n\t\treturn $this->message;\n\t}", "public static function returnDetail($msg_code) {\n if (!self::$_author) {\n self::$_author = new Angel_Exception_Author('');\n }\n self::$_author->setMessageCode($msg_code);\n\n return self::$_author->getDetail();\n }", "function shCleanUpMosMsg($string)\n{\n\treturn ShlSystem_Strings::pr('/(&|\\?)mosmsg=[^&]*/i', '', $string);\n}", "public function extractMessage($object);", "public function getMessage() \n\t{\n\t\treturn $this->message;\n\t}", "private function getpart($mbox,$mid,$p,$partno)\n\t{\n\t\t\n\t\t// DECODE DATA\n\t\t$data = ($partno) ?\n\t\timap_fetchbody($mbox,$mid,$partno): // multipart\n\t\timap_body($mbox,$mid); // simple\n\t\n\t\t// Any part may be encoded, even plain text messages, so check everything.\n\t\tif\t($p->encoding==4)\n\t\t\t$data = quoted_printable_decode($data);\n\t\telseif ($p->encoding==3)\n\t\t$data = base64_decode($data);\n\t\n\t\t// PARAMETERS\n\t\t// get all parameters, like charset, filenames of attachments, etc.\n\t\t$params = array();\n\t\tif ($p->parameters)\n\t\t\tforeach ($p->parameters as $x)\n\t\t\t$params[strtolower($x->attribute)] = $x->value;\n\t\tif ($p->dparameters)\n\t\t\tforeach ($p->dparameters as $x)\n\t\t\t$params[strtolower($x->attribute)] = $x->value;\n\t\n\t\t// ATTACHMENT\n\t\t// Any part with a filename is an attachment,\n\t\t// so an attached text file (type 0) is not mistaken as the message.\n\t\tif ($params['filename'] || $params['name']) {\n\t\t\t// filename may be given as 'Filename' or 'Name' or both\n\t\t\t$filename = ($params['filename'])? $params['filename'] : $params['name'];\n\t\t\t// filename may be encoded, so see imap_mime_header_decode()\n\t\t\t$fname = tempnam(null,'blog-file-');\n\t\t\t$file = fopen($fname,'w');\n\t\t\tfwrite($file,$data);\n\t\t\tfclose($file);\n\t\t\tchmod($fname,0644);\n\t\n\t\t\t$this->filenames[] = array('filename'=>$fname,'name'=>$filename);\n\t\t}\n\t\n\t\t// TEXT\n\t\tif ($p->type==0 && $data) {\n\t\t\t// Messages may be split in different parts because of inline attachments,\n\t\t\t// so append parts together with blank row.\n\t\t\tif (strtolower($p->subtype)=='plain')\n\t\t\t\t$this->text.= trim($data) .\"\\n\\n\";\n\t\t\telse\n\t\t\t\t$this->html.= $data .\"<br><br>\";\n\t\t\t$charset = $params['charset']; // assume all parts are same charset\n\t\t}\n\t\n\t\t// EMBEDDED MESSAGE\n\t\t// Many bounce notifications embed the original message as type 2,\n\t\t// but AOL uses type 1 (multipart), which is not handled here.\n\t\t// There are no PHP functions to parse embedded messages,\n\t\t// so this just appends the raw source to the main message.\n\t\telseif ($p->type==2 && $data) {\n\t\t\t$this->text.= $data.\"\\n\\n\";\n\t\t}\n\t\n\t\t// SUBPART RECURSION\n\t\tif ($p->parts) {\n\t\t\tforeach ($p->parts as $partno0=>$p2)\n\t\t\t\t$this->getpart($mbox,$mid,$p2,$partno.'.'.($partno0+1)); // 1.2, 1.2.1, etc.\n\t\t}\n\t}", "public function t($msg,$params=array()){\n \n $msgarray=array();\n \n if(strlen($msg)>=$this->cfg_keylen){\n $key=substr($msg,0,$this->cfg_keylen);\n if($file=$this->getMsgFile($key)){ \n if(is_array($file)){\n $msgarray=$file; \n }\n else{\n $msgarray=include($file);\n // add to cache\n $this->msgcache[$this->deriveFileNameFromKey($key)]=$msgarray; \n }\n }\n \n if(array_key_exists($key,$msgarray)){\n $msg=vsprintf($msgarray[$key],$params);\n }\n else{\n\t\t\t\tif(!$this->cfg_returnkey) $msg='';\n\t\t\t}\n \n }\n else{\n\t\t\tif(!$this->cfg_returnkey) $msg='';\n\t\t}\n \n return $msg;\n }", "function board_msg_split($body){\n\t\t$return[0] = preg_replace(\"/^(.+?)::/i\",\"\",$body);\n\n\t\t// 1 is the subject\n\t\tif(preg_match(\"/^(.+?)::/i\",$body,$match))\n\t\t\t$return[1] = $match[1];\n\t\telse\n\t\t\t$return[1] = '';\n\n\t\treturn $return;\n\t}", "final private function _emsg($msg){\n return '['.get_class($this).\"] $msg\";\n }", "public function getMessage()\n {\n return Arr::get($this->getData(true), static::messageKey());\n }", "public function getpart($mbox,$mid,$p,$partno) \n\t{\n\t global $htmlmsg,$plainmsg,$charset,$attachments;\n\n\t $mbox = $this->connection;\n\n\t // DECODE DATA\n\t $data = ($partno)?\n\t imap_fetchbody($mbox,$mid,$partno,FT_PEEK): // multipart\n\t imap_body($mbox,$mid,FT_PEEK); // simple\n\t // Any part may be encoded, even plain text messages, so check everything.\n\t if ($p->encoding==4)\n\t $data = quoted_printable_decode($data);\n\t elseif ($p->encoding==3)\n\t $data = base64_decode($data);\n\n\t // PARAMETERS\n\t // get all parameters, like charset, filenames of attachments, etc.\n\t $params = array();\n\t if (isset($p->parameters) && $p->parameters)\n\t foreach ($p->parameters as $x)\n\t $params[strtolower($x->attribute)] = $x->value;\n\t if (isset($p->dparameters) && $p->dparameters)\n\t foreach ($p->dparameters as $x)\n\t $params[strtolower($x->attribute)] = $x->value;\n\n\t // ATTACHMENT\n\t // Any part with a filename is an attachment,\n\t // so an attached text file (type 0) is not mistaken as the message.\n\t /*if ( (isset($params['filename']) && $params['filename']) || (isset($params['name']) && $params['name']) ) {\n\t // filename may be given as 'Filename' or 'Name' or both\n\t $filename = ($params['filename'])? $params['filename'] : $params['name'];\n\t // filename may be encoded, so see imap_mime_header_decode()\n\t $attachments[$filename] = $data; // this is a problem if two files have same name\n\t }*/\n\n\t // TEXT\n\t if ($p->type==0 && $data) {\n\t // Messages may be split in different parts because of inline attachments,\n\t // so append parts together with blank row.\n\t if (strtolower($p->subtype)=='plain')\n\t $plainmsg .= trim($data) .\"\\n\\n\";\n\t else\n\t $htmlmsg .= $data .\"<br><br>\";\n\t $charset = $params['charset']; // assume all parts are same charset\n\t }\n\n\t // EMBEDDED MESSAGE\n\t // Many bounce notifications embed the original message as type 2,\n\t // but AOL uses type 1 (multipart), which is not handled here.\n\t // There are no PHP functions to parse embedded messages,\n\t // so this just appends the raw source to the main message.\n\t elseif ($p->type==2 && $data) {\n\t $plainmsg .= $data.\"\\n\\n\";\n\t }\n\n\t // SUBPART RECURSION\n\t if (isset($p->parts) && $p->parts) {\n\t foreach ($p->parts as $partno0=>$p2)\n\t $this->getpart($mbox,$mid,$p2,$partno.'.'.($partno0+1)); // 1.2, 1.2.1, etc.\n\t }\n\t}", "public function getMessage() {\n\t\treturn $this->message;\n\t}", "public function getMessage() {\n\t\treturn $this->message;\n\t}", "public function getMessage() {\n\t\treturn $this->message;\n\t}", "public function getMessage() {\n\t\treturn $this->message;\n\t}", "public static function extractWsEndpoint( $msg )\n\t{\n\t\t// REF: node_modules\\puppeteer\\lib\\Launcher.js:161\n\t\t// line.match(/^DevTools listening on (ws:\\/\\/.*)$/);\n\t\tif ( preg_match('/^DevTools listening on (ws:\\/\\/.*)$/m', $msg, $match) ) {\n\t\t\treturn $match[1];\n\t\t}\n\n\t\treturn false;\n\t}", "public function RSADecrypt($encrypted_msg): string\n {\n if (is_null($this->ppk)) {\n throw new Exception(\"Returned message is encrypted while you did not provide private key!\");\n }\n\n $encrypted_msg = base64_decode($encrypted_msg);\n\n $offset = 0;\n $chunk_size = 256;\n\n $decrypted = \"\";\n while ($offset < strlen($encrypted_msg)) {\n $decrypted_chunk = \"\";\n $chunk = substr($encrypted_msg, $offset, $chunk_size);\n\n if (openssl_private_decrypt($chunk, $decrypted_chunk, $this->ppk, OPENSSL_PKCS1_OAEP_PADDING)) {\n $decrypted .= $decrypted_chunk;\n } else {\n var_dump($decrypted);\n\n throw new exception(\"Problem decrypting the message.\");\n }\n $offset += $chunk_size;\n }\n\n return $decrypted;\n }", "function getMessage()\n {\n return (string) $this->_sMessage;\n }", "function getMessage()\n {\n return (string) $this->_sMessage;\n }", "function getArchivedMessage($msgid)\n{\n\tglobal $lang;\n\n\t$message = \\dal\\messages\\getMessage($msgid, 'recipient', 1);\n\n\tif ($message)\n\t{\n\t\t$message['sender'] = \\bl\\general\\uid2nick ($message['uid_sender']);\n\t\t$messageDate = \\DWDateTime::createFromFormat('Y-m-d H:i:s', $message['create_datetime']);\n\t\t$message['sentDate'] = $messageDate->format($lang['messageTimeFormat']);\n\t}\n\n\t$parser = new \\bl\\wikiParser\\WikiParser();\n\t$message['message'] = preg_replace('#(\\\\\\\\r\\\\\\\\n|\\\\\\\\\\\\\\\\r\\\\\\\\\\\\\\\\n|\\\\\\\\n|\\\\\\\\\\\\\\\\n)#', \"\\r\\n\", $message['message']);\n\t$message['message'] = $parser->parseIt($message['message']);\n\n\treturn $message;\n}", "public function getMessage()\n {\n if (is_null($this->message)) {\n /** @psalm-var ?string $data */\n $data = $this->raw(self::FIELD_MESSAGE);\n if (is_null($data)) {\n return null;\n }\n $this->message = (string) $data;\n }\n\n return $this->message;\n }", "public function getMessage()\n {\n return $this->_message;\n }" ]
[ "0.6068569", "0.58877313", "0.5806645", "0.56553346", "0.56464255", "0.56463575", "0.56363153", "0.56151634", "0.55802166", "0.55301875", "0.5524571", "0.5500352", "0.5457466", "0.5455055", "0.54509574", "0.54509574", "0.5430473", "0.53847754", "0.53782636", "0.53549004", "0.5354186", "0.53387207", "0.533578", "0.5287251", "0.5269364", "0.5265576", "0.52482873", "0.52304953", "0.522663", "0.5138199", "0.5137133", "0.5114053", "0.5081673", "0.50791836", "0.5056092", "0.5050929", "0.50350267", "0.50279146", "0.5020013", "0.5018644", "0.5005204", "0.49878514", "0.49878514", "0.49878514", "0.49878514", "0.49878514", "0.49878514", "0.49878514", "0.49878514", "0.49878514", "0.49878514", "0.49878514", "0.49878514", "0.49878514", "0.49705452", "0.4968426", "0.49652436", "0.49209088", "0.4906539", "0.48900738", "0.48900738", "0.48900738", "0.48672533", "0.48561814", "0.48469773", "0.4846295", "0.48395333", "0.48379242", "0.4836526", "0.48327237", "0.483113", "0.4820593", "0.48165172", "0.48157695", "0.48144782", "0.48141494", "0.48108706", "0.48088473", "0.48088455", "0.48033506", "0.4797216", "0.47798702", "0.47792318", "0.47710678", "0.4766145", "0.47608808", "0.47540414", "0.47528425", "0.47499472", "0.47448203", "0.47448203", "0.47448203", "0.47448203", "0.47418267", "0.47411907", "0.4737907", "0.4737907", "0.47332883", "0.47331366", "0.4725254" ]
0.7633782
0
Creates a post for authorised users
public function store(PostStoreRequest $request): JsonResource { $newPost = $request->user()->posts()->create([ 'title' => $request->title, 'body' => $request->body, 'slug' => makeSlug($request->title), ]); return PostResource::make($newPost); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function create(User $user, Post $post);", "public function creating(Post $post)\n {\n // Se ejecute si no se esta ingresando registros desde la consola\n if (! \\App::runningInConsole()) {\n $post->user_id = auth()->user()->id;\n }\n }", "public function create()\n {\n $json = [\n 'status' => false,\n 'message' => 'You cannot create post',\n ];\n\n if($this->isUserAuth()){\n $template = new Template();\n\n $template->data['post_id'] = 0;\n\n $json = [\n 'status' => true,\n 'html' => $template->fetch('add_post_form'),\n ];\n }\n\n $this->jsonAnswer($json);\n }", "public function create()\n {\n $this->authorize('create', Post::class);\n\n return view('post-detail', ['msg' => 'User can create post']); \n }", "public function create()\n {\n $this->authorize('create', \\App\\Post::class);\n return view('post.create');\n }", "public function createPost()\n {\n if ($this->issetPostSperglobal('title') &&\n $this->issetPostSperglobal('description') &&\n $this->issetPostSperglobal('content') &&\n $this->issetPostSperglobal('categorie') &&\n $this->issetPostSperglobal('publish'))\n {\n $empty_field = 0;\n foreach ($_POST as $key => $post) {\n if ($key !== 'publish' && empty(trim($post))) {\n $empty_field++;\n }\n }\n if ($empty_field === 0) {\n $User = $this->session->read('User');\n $this->posts_manager->create($_POST, $User->getIdUser());\n $this->session->writeFlash('success', \"L'article a été créé avec succès.\");\n $this->redirect('dashboard');\n } else {\n $this->session->writeFlash('danger', \"Certains champs sont vides.\");\n }\n } else {\n $this->session->writeFlash('danger', \"Certains champs sont manquants.\");\n }\n $_post = $this->getSpecificPost($_POST);\n $categories = $this->categories_manager->listAll();\n $this->render('admin_post', ['head'=>['title'=>'Création d\\'un article', 'meta_description'=>''], 'categories'=>$categories, '_post'=>isset($_post) ? $_post : ''], 'admin');\n }", "public function create(UsersRepository $user,Post $post)\n {\n // return $user->role==='root';\n return true;\n }", "public function create()\n {\n session_start();\n\n // Falls der Benutzer eingeloggt ist wird ihm die Create View angezeigt, ansonsten ein Fehler\n if (isset($_SESSION['isLoggedIn']) && !empty($_SESSION['isLoggedIn'])) {\n $view = new View('post/create');\n $view->title = 'Post erstellen';\n $view->display();\n } else {\n header('Location: /user/index/?error=Du bist nicht eingeloggt!');\n }\n }", "public function doCreate()\n {\n session_start();\n\n //Falls der Benutzer eingeloggt ist funktioniert es, ansonsten bekomment er einen Fehler\n if (isset($_SESSION['isLoggedIn']) && !empty($_SESSION['isLoggedIn'])) {\n if (isset($_POST)) {\n if (!$this->post_is_valid($_POST['title'], $_POST['text'])) {\n header('Location: /post/create');\n exit();\n }\n // Durch htmlspecialchars XSS verhindern\n $title = htmlspecialchars($_POST['title']);\n $text = htmlspecialchars($_POST['text']);\n $this->postRepository->create($title, $text);\n }\n } else {\n header('Location: /user/index/?error=Du bist nicht eingeloggt!');\n }\n }", "public function create()\n { \n // $this->authorize('post.create');\n //sert a afficher le formulaire d'ajout\n return view('posts.create');\n }", "public function creating(Post $post)\n {\n $post->slug = Str::slug($post->title);\n $post->author_id = Auth::user()->id;\n }", "public function create(User $user, $post)\n { \n return true;\n }", "function user_can_create_post($user_id, $blog_id = 1, $category_id = 'None')\n {\n }", "public function createPost(User $user, $for = '')\n {\n $role = $user->role;\n if ($role == 'Admin' || $role == 'Writer')\n return true;\n else {\n if ($for == 'can') //is in blade , only return true false\n return false;\n\n return abort(403, 'Sorry! You Can\\'t Create Post');\n }\n }", "public function create()\n {\n $post = Post::create([\n 'title' => session('title'),\n 'description' => session('description'),\n 'create_user_id' => Auth::id(),\n 'updated_user_id' => Auth::id(),\n ]);\n log::info('created post:');\n log::info($post);\n return $post;\n }", "public function store(CreatePostRequest $request)\n {\n $request->user()->posts()->create([\n 'title' => $request->input('title'),\n 'description' => $request->input('description'),\n 'publication_date' => now()\n ]);\n\n Cache::tags('posts')->flush();\n\n return redirect('dashboard');\n }", "public function create()\n\t{\n\t\tself::deny('posts_create');\n\n\t\treturn view('posts.create');\n\t}", "function canCreatePost() {\n return ($this->isAdmin() || ($this->userType == 'author'));\n }", "public function p_add() {\n $_POST['user_id'] = $this->user->user_id;\n\n # Unix timestamp of when this post was created / modified\n $_POST['created'] = Time::now();\n $_POST['modified'] = Time::now();\n\n # Insert\n # Note we didn't have to sanitize any of the $_POST data because we're using the insert method which does it for us\n DB::instance(DB_NAME)->insert('posts', $_POST);\n\n \t\tRouter::redirect('/posts/myposts');\n }", "public function store(CreatePostRequest $request)\n {\n if (!auth()->user()->ability('admin', 'create_posts')) {\n return abort(403);\n }\n $post = auth()->user()->posts()->create($request->all());\n if ($request->images && count($request->images) > 0) {\n store_image_for_posts($post, $request);\n }\n if ($request->status == 1) {\n Cache::forget('recent_posts');\n }\n return redirect()->route('admin.posts.index')->with([\n 'message' => 'Post created successfully',\n 'alert-type' => 'success',\n ]);\n }", "public function created(Post $post)\n {\n //\n }", "public function createPost()\n {\n $this->validate(['body' => 'required|min:15']);\n $post = auth()->user()->posts()->create(['body' => $this->body]);\n\n $this->emit('postAdded', $post->id); //emit de l'event\n\n $this->body = \"\"; //vidage du body\n\n }", "public function create(Request $request)\n {\n if($request->user() && $request->user()->id) {\n return view('posts.create');\n } else {\n return redirect('/')->withErrors('Insufficient permissions to perform this operation');\n }\n }", "public function create(StoreAuthorPost $requst)\n {\n author::create([\n 'name'=>$requst->name,\n 'age'=>$requst->age,\n 'books'=>$requst->books\n ]);\n Session::flash('alert-success', 'User Added');\n return redirect()->route('blogs'); \n\n }", "public function test_a_user_create_a_post()\n {\n // 1. Having\n $title = 'Esta es una pregunta';\n $content = 'Este es el contenido';\n\n $this->actingAs($this->defaultUser())\n\n// ->assertViewHas($title, 'title')\n// ->assertViewHas($content, 'content')\n // 2. When\n ->post(route('posts.create'))\n\n ->press('Publicar');\n\n // 3. Then\n// $this->assertDatabaseHas('posts',[\n// 'title' => $title,\n// 'content' => $content,\n// 'pending' => true,\n// ]);\n\n\n // Test a user is redirected to the posts details after creating it.\n// $this->assertViewHas($title);\n }", "public function store()\n\t{\n $post = new Post;\n //$post->title='test title';\n //$post->body='test body';\n $data = [\n 'title'=>'title',\n 'body'=>'body',\n 'user_id'=>1\n ];;\n Posts::create($data);\n $post->save();\n\t}", "public function createPost($content , $user_id)\n\t{\n\n\t\t// Prepare data.\n\t\t$data = $this->prepareData($content, $user_id);\n\n\t\t// Create catagory.\n\t\t$post = Post::create($data);\n\n\t\treturn $post;\n\t}", "public function create()\n {\n $user = Auth::user();\n if ( $user ) // we are logged in and can create posts\n return view('comments.create');\n else // not logged in, can not make posts. redirect to index\n return redirect('/posts');\n }", "public function p_add() {\n\t\t\t#print_r($_POST);\n\t\t\t\n\t\t\t\n\t\t\t$_POST['created'] = Time::now();\n \t\t\t$_POST['modified'] = Time::now();\n\t\t\t$_POST['poster'] = $this->user->user_id;\n\t\t\t\n\t\t\t#Write Post to the Database\n\t\t $post_id= DB::instance(DB_NAME)->insert('posts', $_POST);\n\t\t\t#Call the parser to look for hashtags: \n\t\t\t$_POST['post'] = $this->parse(\"#\",$_POST['post'],$post_id);\n\t\t\t#Call the parser to look for mentions, and the 'reply_to' for the post\n\t\t\t$_POST['post'] = $this->parse(\"@\",$_POST['post'],$post_id);\n\t\t\t#Update the Post record with new post, updated in the parser:\n\t\t\tDB::instance (DB_NAME)->update('posts',$_POST,\"where post_id = '\".$post_id.\"'\");\t\n\t\t\t\n\t\t Router::redirect('/users/');\n\t\t\t\n\t\t\t\t\t\t\n\t\t}", "public function store(Request $request)\n { \n $this->authorize('create', Post::class);\n $request['title'] = Str::random(15);\n $request['user_id'] = Auth::user()->id;\n\n $this->validate($request, [\n 'title' => 'required',\n ]);\n\n $data = $request->all();\n $post = Post::create($data);\n\n return response()->json([\n 'post' => $post\n ]);\n }", "public function create(Request $request)\n {\n $post= new Post;\n $post->text=$request->text;\n $post->user_id=Auth::id();\n $post->save();\n return redirect('posts/admin');\n }", "public function actionCreate()\n {\n\t$this->layout='wide';\n $post=new Post;\n if(isset($_POST['Post']))\n {\n $post->attributes=$_POST['Post'];\n if(isset($_POST['previewPost']))\n $post->validate();\n else if(isset($_POST['submitPost']) && $post->save())\n {\n if(Yii::app()->user->status==User::STATUS_VISITOR)\n {\n Yii::app()->user->setFlash('message','Thank you for your post. Your post will be posted once it is approved.');\n $this->redirect(Yii::app()->homeUrl);\n }\n $this->redirect(array('show','slug'=>$post->slug));\n }\n }\n $this->pageTitle=Yii::t('lan','New Post');\n $this->render('create',array('post'=>$post));\n }", "public function create() {\n// user must be logged in\n if (User::is_logged_in()) {\n// preventing double submitting\n $token = md5(time());\n $_SESSION[$token] = true;\n\n// get all categories for the select box in form\n $categories = Category::all();\n// show post creation form\n require_once('views/posts/create.php');\n }\n }", "public function store(PostCreateRequest $request)\n {\n $request['user_id'] = auth()->user()->id;\n $post = Post::create($request->all());\n\n return response()->json(['data' => $post->id, 'message' => 'new post created']);\n }", "public function create()\n {\n // ver se está autenticado\n if (!Auth::check()) {\n return redirect('login');\n }\n\n return view('pages.createpost', ['needsFilter' => 0, 'tags'=>[]]);\n }", "public function testSeeCreatePostTest()\n {\n $response = $this->actingAs(\\App\\User::firstOrFail())->get('/posts/create');\n\n $response->assertStatus(200);\n $response->assertSeeText(config('app.name'));\n }", "public function create()\n\t{\n\t\tif (Auth::check()) {\n\t\t\treturn View::make('posts.create');\n\t\t} else {\n\t\t\treturn $this->showMissing();\n\t\t}\n\t\t\n\t}", "public function create() {\n\t\treturn view('post.post_create');\n\t}", "public function nuevo() {\n // Create a new post without validating.\n $new_post = Post::create(['author_id' => $this->current_user->id], false);\n redirect('/backend/posts/edit', [], ['id' => $new_post->id]);\n }", "public function store(CreatePostRequest $request)\n {\n // $post->title = $request->get('title');\n // $post->body = $request->get('body');\n // $post->is_published = $request->get('is_published', false);\n\n // $post->save();\n\n $data = $request->validated();\n\n // $newPost = Post::create($data);\n\n $newPost = auth()->user()->posts()->create($data);\n\n $newPost->tags()->attach($data['tags']); // mozemo koristiti sync umjesto attach\n // $newPost = Post::create([\n // 'title' => $request->get('title'),\n // 'body' => $request->get('body'),\n // 'is_published' => $request->get('is_published'),\n // 'user_id' => auth()->user()->id,\n // ]);\n\n return redirect(route('post', ['post' => $newPost]));\n }", "function create_new_user_posts($user_id){\n if (!$user_id>0)\n return;\n //here we know the user has been created so to create \n //3 posts we call wp_insert_post 3 times.\n // Create post object\n $user = get_user_by('id', $user_id); \n $streamer_account = array(\n 'post_title' => $user->user_nicename,\n 'post_status' => 'publish',\n 'post_author' => $user_id,\n 'post_type' => 'streamers'\n );\n\n // Insert the post into the database\n $streamer_act = wp_insert_post( $streamer_account );\n update_user_meta( $user_id, 'useracct', $streamer_act ); //this gets the id of the use, adds a meta useracct and places the added post id for the account, so that there will be only 1 streamer post per user account\n wp_update_post();\n\n}", "public function actionCreate()\n {\n $model = new Post();\n if (\\Yii::$app->user->can('createPost'))\n {\n if ($model->load(Yii::$app->request->post()) && $model->validate() && $model->savePost()) {\n return $this->redirect(['view', 'id' => $model->id]);\n }\n else\n {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }\n else\n {\n throw new ForbiddenHttpException('Доступ Закрыт');\n }\n }", "public function createPost($data) {\n $stmt = $this->pdo->prepare('INSERT INTO posts (post_title, post_src, id_user, created_at, view_count)\n VALUES (:post_title, :post_src, :id_user, :created_at, :view_count)');\n $stmt->bindValue(':post_title', $data['title']);\n $stmt->bindValue(':post_src', $data['src']);\n $stmt->bindValue(':id_user', $data['id_user']);\n $stmt->bindValue(':created_at', $data['created_at']);\n $stmt->bindValue(':view_count', '0');\n $stmt->execute();\n }", "public function run()\n {\n if(User::role('Writer')->exists()){\n factory(Post::class,4)->create();\n }\n }", "public function test_user_can_create_post()\n {\n $this->signIn();\n $attributes = [\n 'title' => 'my title',\n 'description' => 'my description',\n 'notes' => 'my notes'\n ];\n\n $response = $this->post('/api/projects', $attributes)->assertStatus(201);\n\n $response->assertJson([\n 'data' => [\n 'type' => 'projects',\n 'attributes' => [\n 'title' => $attributes['title'],\n 'notes' => $attributes['notes'],\n 'description' => $attributes['description'],\n 'user_id' => auth()->id()\n ]\n ]\n ]);\n }", "public function create()\n {\n $users = User::all();\n return view(\"posts.create\", compact(\"users\"));\n }", "public function create(Request $request)\n {\n auth()->user()->posts()->create($request->except('_token'));\n return redirect()->back();\n }", "protected function check_create_permission($post)\n {\n }", "public function store(Request $request)\n {\n $this->validate($request,[\n 'body'=>'required|string',\n ]);\n\n $post=new Post;\n $post->body=$request->input('body');\n $post->user_id=auth()->user()->id; //user_id=auth()->user()->id;\n $post->save();\n return response(['message'=>'Post Created successfully']); \n\n }", "public function create()\n {\n $user = auth()->user();\n $user_id = $user->id;\n $introductions = Introduction::all();\n $introduction = new Introduction();\n \n // ユーザーとプロフィールを結びつける?\n // ポスト一つをとる\n \n $my_introduction = $introduction->where('user_id', $user_id)->get()->first(); // プロフィールを取得\n $profile_image_path = $my_introduction->profile_image_path;\n // postのイントロダクションをとる\n return view('posts.create', [\n 'user' => $user,\n 'my_introduction' => $my_introduction,\n 'profile_image_path' => $profile_image_path\n ]);\n }", "function create(Request $request)\n {\n\n $post = new Post();\n\n $post->lang = $request->get('lang', app()->getLocale());\n $post->title = $request->get('title');\n $post->excerpt = $request->get('excerpt');\n $post->content = $request->get('content');\n $post->image_id = $request->get('image_id', 0);\n $post->media_id = $request->get('media_id', 0);\n $post->lang = $this->user->lang;\n $post->user_id = $this->user->id;\n $post->status = $request->get(\"status\", 1);\n $post->format = $request->get(\"format\", \"post\");\n\n // Validate and save requested user\n if (!$post->validate()) {\n\n // return validation error\n return $this->response($post->errors(), \"validation error\");\n }\n\n if ($post->save()) {\n\n // Saving categories\n $categories = $request->get(\"category_ids\", []);\n $post->categories()->sync($categories);\n\n // Saving tags\n if ($request->filled(\"tag_ids\")) {\n $tags = $request->get(\"tag_ids\", []);\n $post->tags()->sync($tags);\n } elseif ($request->filled(\"tag_names\")) {\n $tags = Tag::saveNames($request->get(\"tag_names\"));\n $post->tags()->sync($tags);\n }\n\n return $this->response($post);\n }\n\n }", "public function create()\n {\n $this->authorize('create', Post::class);\n $post = new Post();\n $tags = Tag::all();\n\n return view('posts.create', compact('post', 'tags'));\n }", "public function create()\n {\n $categories = Category::all();\n $users = User::where('level', 'adviser')->get();\n return view('adviser.posts.create')->withCategories($categories)->withUsers($users);\n }", "public function store(FormPostRequest $request){\n $data = [\n 'desc' => $request->validated()['desc'],\n 'user_id' => $request->user()->id\n ];\n $post = Post::create($data);\n\n return new PostResource($post);\n }", "public function store()\n {\n $input = array(\n 'title' => Binput::get('title'),\n 'summary' => Binput::get('summary'),\n 'body' => Binput::get('body'),\n 'user_id' => $this->getUserId(),\n );\n\n $rules = Post::$rules;\n\n $val = Validator::make($input, $rules);\n if ($val->fails()) {\n return Redirect::route('blog.posts.create')->withInput()->withErrors($val->errors());\n }\n\n $post = PostProvider::create($input);\n\n Session::flash('success', 'Your post has been created successfully.');\n return Redirect::route('blog.posts.show', array('posts' => $post->getId()));\n }", "public function create()\n {\n if (!auth()->user()->ability('admin', 'create_posts')) {\n return abort(403);\n }\n $categories = Category::active()->pluck('name', 'id');\n return view('backend.posts.create', compact('categories'));\n }", "public function create()\n {\n return view('admin.post.post'); \n // return view('user.post'); \n \n\n }", "public function store(PostRequest $request)\n\t{\n $post = new Post($request->all());\n\t\tAuth::user()->posts()->save($post);\n\n return redirect('posts')->with('flash_message','Post added!');\n\t}", "public function post()\n\t{\n\t\t$crud = $this->generate_crud('blog_posts');\n\t\t$crud->columns('author_id', 'category_id', 'title', 'image_url', 'tags', 'publish_time', 'status');\n\t\t$crud->set_field_upload('image_url', UPLOAD_BLOG_POST);\n\t\t$crud->set_relation('category_id', 'blog_categories', 'title');\n\t\t$crud->set_relation_n_n('tags', 'blog_posts_tags', 'blog_tags', 'post_id', 'tag_id', 'title');\n\t\t\n\t\t$state = $crud->getState();\n\t\tif ($state==='add')\n\t\t{\n\t\t\t$crud->field_type('author_id', 'hidden', $this->mUser->id);\n\t\t\t$this->unset_crud_fields('status');\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$crud->set_relation('author_id', 'admin_users', '{first_name} {last_name}');\n\t\t}\n\n\t\t$this->mPageTitle = 'Blog Posts';\n\t\t$this->render_crud();\n\t}", "public function store()\n\t{\n\t\t$post = Post::validateAndCreate(Request::instance(), User::first());\n\n\t\treturn Redirect::action('PostsController@show', $post->id)->withInput();\t\n\t}", "public function store(Request $request)\n {\n \n $createPost=$request->post;\n dd($createPost);\n $post = new Post();\n $post->id=$request->id;\n $post->title=$request->title;\n $post->body=$request->body;\n $post->user()->createMany(\n );\n $post->category()->createMany();\n $post->save();\n return \"the record successfully stored #\" . $post->id .'with name'.$post->name; \n }", "public function store(PostCreateRequest $request)\n {\n $post = Post::create($request->postFillData());\n $post->syncTags($request->get('tags', []));\n\n Session::set('_new-post', trans('canvas::messages.create_success', ['entity' => 'post']));\n\n return redirect()->route('canvas.admin.post.edit', $post->id);\n }", "public function create()\n {\n $categories = Category::all();\n $tags = Tag::all();\n return view('author.author_post.ApostCreate',compact('categories','tags'));\n }", "public function actionCreate()\n\t{\t\t\n\t\t// Check Access\n\t\tcheckAccessThrowException('op_blog_addposts');\n\t\t\n\t\t$model = new BlogPost;\n\t\t\n\t\tif( isset( $_POST['BlogPost'] ) ) {\n\t\t\t$model->attributes = $_POST['BlogPost'];\n\t\t\tif( isset( $_POST['submit'] ) ) {\n\t\t\t\tif( $model->save() ) {\n\t\t\t\t\tfok(at('Page Created.'));\n\t\t\t\t\talog(at(\"Created Blog Post '{name}'.\", array('{name}' => $model->title)));\n\t\t\t\t\t$this->redirect(array('blog/index'));\n\t\t\t\t}\n\t\t\t} else if( isset( $_POST['preview'] ) ) {\n\t\t\t\t$model->attributes = $_POST['BlogPost'];\n\t\t\t}\n\t\t}\n\t\t\n\t\t$roles = AuthItem::model()->findAll(array('order'=>'type DESC, name ASC'));\n\t\t$_roles = array();\n\t\tif( count($roles) ) {\n\t\t\tforeach($roles as $role) {\n\t\t\t\t$_roles[ AuthItem::model()->types[ $role->type ] ][ $role->name ] = $role->name;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Add Breadcrumb\n\t\t$this->addBreadCrumb(at('Creating New Post'));\n\t\t$this->title[] = at('Creating New Post');\n\t\t\n\t\t// Display form\n\t\t$this->render('form', array( 'roles' => $_roles, 'model' => $model ));\n\t}", "public function create(Request $request)\n {\n if(Auth::user()){\n $validate = $request->validate([\n 'title' => 'required|string|max:60|min:3',\n 'content' => 'required|string|max:8000',\n 'categories' => 'array|exists:categories,title',\n ]);\n\n $post = Post::create([\n 'user_id' => Auth::id(),\n 'title' => $validate['title'],\n 'content' => $validate['content'],\n 'categories' => Implode(', ', $validate['categories']),\n ]);\n\n $response = [\n '' => '============Post Created Successfully !============',\n 'post' => $post,\n ];\n\n return response($response, 201);}\n else{\n return response(['You\\'re not Logged in!'], 401);\n };\n }", "public function insert(){\n\t\t// $post->title = 'A post from the insert method';\n\t\t// $post->body = 'Some random ghibberrish';\n\t\t// $post->save();\n\n\t\t$data = array(\n\t\t\t'title' => 'A post from the insert method, using the data array',\n\t\t\t'body' => 'Some random ghibberrish, using the data array',\n\t\t\t'user_id' => 1\n\t\t);\n\n\t\tPost::create($data);\n\n\t\tdd('post inserted');\n\t}", "public function create()\n {\n return view ('admin.post.create');\n }", "public function createPost()\n {\n return view('post_create');\n }", "public function create()\n {\n if (Gate::denies('posts.create')) {\n abort(403);\n }\n $postStatuses = Post::postStatuses();\n $allCategories = Category::get();\n $allTags = Tag::get();\n $categories = $allCategories->groupBy('parent_id');\n $categories['root'] = $categories[''];\n unset($categories['']);\n\n return view('admin.posts.create', compact('postStatuses', 'categories', 'allTags'));\n }", "public function createPost()\n {\n // create a new post\n $data['title'] = __('posts.add');\n $data['post'] = $this->schema;\n $data['post']['categories'] = CategoryModel::all();\n $data['post']['form'] = config('app.admin_prefix').'/post/store';\n\n return admin_view('Posts::CreateEdit', $data);\n }", "public function create() {\n\t\treturn view('post.create');\n\t}", "public function create()\n {\n $inputs = $this->validate([\n 'title' => 'required|min_length[5]',\n 'description' => 'required|min_length[5]',\n ]);\n\n if (!$inputs) {\n return view('posts/create', [\n 'validation' => $this->validator\n ]);\n }\n\n $this->post->save([\n 'title' => $this->request->getVar('title'),\n 'description' => $this->request->getVar('description')\n ]);\n session()->setFlashdata('success', 'Success! post created.');\n return redirect()->to(site_url('/posts'));\n }", "public function create()\n {\n $author = CustomAuth::user()->first_name;\n $tagsChoice = Tag::orderBy('name')->get();\n return view('Pages/posts/postNew', compact('author', 'tagsChoice'));\n }", "public function store(PostStoreRequest $request)\n\t{\n\t\tself::deny('posts_create');\n\n\t\tPost::create(['title' => $request->title, 'description' => $request->description, 'user_id' => auth()->user()->id ]);\n\t\treturn redirect()->route('posts.index')->with('success', 'Post created successfully!');\n\t}", "public function test_store_post()\n {\n $topic = Topic::factory()->create();\n $resp =\n $this->actingAs($this->user)\n ->withHeaders([\n 'Content-Type' => 'application/json',\n 'Accept' => 'application/json',\n ])\n ->postJson(\n '/api/topics/' . $topic->id . '/posts',\n [\n \"body\" => \"testsqx test\",\n ]\n );\n $resp->assertStatus(201);\n }", "public function store(Request $request)\n {\n $request->validate([\n 'title' => 'required|string|max:255',\n 'content' => 'required',\n 'slug' => 'string|alpha_dash|nullable|unique:posts|max:255'\n ]);\n\n $data = [\n 'user_id' => $this->id()\n ];\n\n if ($request->filled('slug')) {\n $request->slug = strtolower($request->slug);\n } else {\n $title = preg_replace(\"/[^a-zA-Z\\s]/\", \"\", $request->title);\n $slug = str_replace(' ', '-', strtolower($title));\n $data['slug'] = $slug;\n }\n\n $request->merge($data);\n\n $post = Post::create($request->all());\n $post->category()->attach($request->category);\n\n return redirect('user/post')->with('success', 'Success Create New Post');\n }", "public function create(Request $request) {\n $post = new Post;\n $post->user_id = $request->session()->get('user_id');\n $post->body = $request->body;\n $post->save();\n\n return new PostResource($post);\n }", "public function store(Request $request)\n {\n $this->validate($request,[\n 'title' => 'required|max:255',\n 'category_id' => 'required|numeric',\n 'content' => 'required',\n ]);\n\n $data = $request->all();\n if(Auth::check()) {\n $data['user_id'] = Auth::user()->id;\n }\n\n $result = Posts::create($data);\n\n $request->session()->flash('admin-post-created',1);\n return redirect('admin-posts');\n }", "public function p_add() {\n $_POST['user_id'] = $this->user->user_id;\n\n # Unix timestamp of when this post was created / modified\n $_POST['created'] = Time::now();\n $_POST['modified'] = Time::now();\n\n # Insert\n # Note didn't have to sanitize $_POST data because the insert method does it for us\n DB::instance(DB_NAME)->insert('posts', $_POST); //insert('table-name', array from forms post method)\n\n\t\techo \"<br/>***<br/>\";\n\t\t# current post\n print_r($_POST);\n\t\techo \"<br/>***<br/>\";\n\n # Quick and dirty feedback\n echo \"Your post has been added. <a href='/posts/add'>Add another</a>\";\n\n }", "public function create()\n {\n //\n $post = new Post;\n $categoryDropdownOptions = self::getCategoryDropdownOptions();\n \n return view('admin.posts.createOrEdit', ['post'=>$post, 'categoryDropdownOptions'=>$categoryDropdownOptions]); // , 'roleDropdownOptions'=>$roleDropdownOptions\n }", "public function store(Request $request)\n {\n $inputs = $request->only('title', 'description', 'user_id');\n\n Post::create($inputs);\n\n return redirect()->route('posts.index');\n }", "public function create()\n {\n\n $attributes = request()->validate([\n 'post_heading' => ['required', 'max:255'],\n 'post_title' => ['required', 'max:255'],\n 'post_content' => ['required'],\n 'thumbnail' => ['image', 'required']\n ]);\n $attributes['post_content'] = addslashes(preg_replace(\"@[\\n\\r]@\", \"\", $attributes['post_content']));\n $path = request()->file('thumbnail')->store('thumb');\n Post::create(array_merge($attributes, [\n 'user_id' => auth()->user()->id,\n 'thumbnail' => $path\n ]));\n return redirect('/')->with('success', 'Post was successfully published.');\n }", "public function store(Request $request)\n {\n //\n $input = $request->all();\n $validator = Validator::make($input,[\n 'title'=>'required',\n 'description'=>'required'\n ]);\n if ($validator->fails()) {\n return $this->sendError('Validate Error',$validator->errors() );\n }\n\n $user = Auth::user();\n $input['user_id'] = $user->id;\n $post = Post::create($input);\n // return $this->sendResponse($post, 'Post added Successfully!' );\n }", "public function p_add() {\n $_POST['user_id'] = $this->user->user_id;\n\n # Unix timestamp of when this post was created / modified\n $_POST['created'] = Time::now();\n $_POST['modified'] = Time::now();\n\n\n # Insert\n # Note we didn't have to sanitize any of the $_POST data because we're using the insert method which does it for us\n DB::instance(DB_NAME)->insert('activities', $_POST);\n\n # Send them back to home page\n Router::redirect('/activities/index');\n\n }", "public function store(StorePostRequest $request)\n {\n if($request->user()->cannot('create', Post::class)){\n abort(403);\n }\n\n $data = $request->only(['title', 'content', 'published', 'slug', 'description']);\n $validated = $request->validated();\n \n $created = Auth::user()->posts()->create($validated);\n\n if($created){\n return redirect(route('post.index'))->with('status', 'Post created!');\n }\n }", "public function create()\n {\n //Authorize using Laravel Policies\n $this->authorize('create', Post::class);\n\n //Select all categories from the database so we can assign them from the view.\n $categories = Category::all('id', 'name');\n\n //Pass an empty laravel eloquent class so we could use the same form for both update & store\n $post = new Post;\n\n return view('posts.create', compact('categories', 'post'));\n }", "public function store(Request $request)\n {\n $request['created_by'] = auth()->user()->id;\n $data = $this->validate($request,[\n 'title'=>'required|max:255',\n 'text'=>'required|max:50000',\n 'created_by'=>'required|exists:users,id',\n ]);\n $data['created_by'] = auth()->user()->id;\n $data['is_published'] = 0;\n $data['published_by'] = null;\n $post = Post::create($data);\n\n $post->categories()->attach($request->categories);\n return response()->json(['post'=>$post,'categories'=>$request->categories]);\n }", "public function test_created_post_found()\n {\n\n $post = Mockery::mock(Post::class);\n $user = Mockery::mock(User::class);\n\n $postCrud = new CRUDPostClass($post, $user);\n\n $user->shouldReceive('find')->andReturn($user);\n $post->shouldReceive('newInstance')->once()->andReturn($post);\n $post->shouldReceive('setAttribute')->with('user_id', '1')->once()->andReturn($post);\n $post->shouldReceive('setAttribute')->with('title', 'title1')->once()->andReturn($post);\n $post->shouldReceive('setAttribute')->with('content', 'content1')->once()->andReturn($post);\n $post->shouldReceive('save')->once()->andReturn($post);\n\n $data = array(\n 'user_id' => '1',\n 'title' => 'title1',\n 'content' => 'content1'\n );\n\n $result = $postCrud->create($data);\n \n $this->assertTrue((boolean)$result);\n }", "public function store(CreatePostRequest $request)\n {\n $categories = [];\n foreach($request->categories as $category) {\n $foundCategory = $this->categoryRepository->findWhere([\n 'name' => $category\n ])->first();\n if(empty($foundCategory)) {\n return $this->sendError( $category.'category not found.');\n }\n $categories[] = $foundCategory;\n }\n\n $post = $this->postService->store(\n $request->only('title', 'body', 'excerpt', 'status'),\n// $request->tags,\n $categories\n );\n\n\n $post->addMediaFromBase64($request->image)->toMediaCollection();\n\n return $this->sendResponse($post, 'Post created successfully.');\n }", "public function create()\n {\n\n return view('post.createpost');\n }", "public function store(PostRequest $request)\n {\n return new PostResource(Post::create([\n 'user_id' => 120,\n 'body' => $request->body,\n 'status' => $request->has('status') ? $request->status : 'draft'\n ]));\n }", "public function createPost(array $post)\n {\n $post[\"porcelain\"] = null; // wp-Cli returns only id\n return intval($this->runWpCliCommand('post', 'create', $post));\n }", "public function store(Request $request)\n \t{\n \t\t$post = new Post();\n\n \t\t$post->user_id = $request->input(\"user_id\");\n $post->body = $request->input(\"body\");\n\n \t\t$post->save();\n\n \t\treturn redirect()->route('home')->with('message', 'Item created successfully.');\n \t}", "public function createPost($uid, $content){\n $cols = array(\"UID\", \"CID\", \"title\", \"author\", \"likes\", \"image\", \"body\", \"created_at\", \"updated_at\");\n $vals = $content;\n return self::insert($cols, $vals);\n }", "public function store(Request $request)\n {\n $request->validate([\n 'title' => 'required',\n 'body' => 'required'\n ]);\n\n # Create post\n # Add the user_id to the $request\n $request->merge( ['user_id' => Auth::user()->id] );\n # For each field in request, get it and save it to the table\n Post::create($request->all());\n # ^^^ Expanded version of this ^^^\n #$post = new Post;\n #$post->title = $request['title'];\n #$post->body = $request['body'];\n #$post->user_id = auth()->user()->id;\n #$post->save();\n\n return redirect('/posts')->with('success', 'Post created.');\n }", "public function actionCreate()\n {\n $model = new Post();\n\n if ($model->load(Yii::$app->request->post())) {\n $model->alias = Inflector::slug($model->title);\n $model->created_date = time();\n $model->publish_date = time();\n if($model->save()) {\n \\Yii::$app->session->setFlash('success', Module::t('general', 'Create post successfull'));\n return $this->redirect(['view', 'id' => $model->id]);\n }\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "private function createPost($user)\n {\n $post = app(Rogue::class)->createPost(array_merge([\n 'northstar_id' => $user->id,\n ], $this->postData));\n\n info('Created post', ['post' => $post['data']['id'], 'user' => $user->id]);\n\n return $post['data'];\n }", "public function created(Post $post)\n {\n $post->recordActivity('created');\n }", "public function create()\n {\n return view('post.create');\n }", "public static function create()\n {\n if(isset($_POST['create_post']) && Html::form()->validate())\n {\n $postId = Blog::post()->insert(array(\n 'user_id' => User::current()->id,\n 'title' => $_POST['title'],\n 'slug' => String::slugify($_POST['title']),\n 'body' => $_POST['body']\n ));\n\n if($postId)\n {\n foreach($_POST['category_id'] as $catId)\n {\n Db::table('categories_posts')->insert(array(\n 'category_id' => $catId,\n 'post_id' => $postId\n ));\n }\n\n Message::ok('Post created successfully.');\n $_POST = array(); // Clear form\n }\n else\n Message::error('Error creating post. Please try again.');\n }\n\n $formData[] = array(\n 'fields' => array(\n 'title' => array(\n 'title' => 'Title',\n 'type' => 'text',\n 'validate' => array('required')\n ),\n 'body' => array(\n 'title' => 'Body',\n 'type' => 'textarea',\n 'attributes' => array('class' => 'tinymce')\n ),\n 'category_id[]' => array(\n 'title' => 'Category',\n 'type' => 'select',\n 'options' => self::_getSelectCategories(),\n 'attributes' => array(\n 'multiple' => 'multiple'\n ),\n 'validate' => array('required')\n ),\n 'create_post' => array(\n 'type' => 'submit',\n 'value' => 'Create Post'\n )\n )\n );\n\n return array(\n 'title' => 'Create Post',\n 'content' => Html::form()->build($formData)\n );\n }", "public function create($post)\n {\n // validate the data\n $this->validate($post);\n\n\t\t// storage data\n\t\t$data = array(\n\t\t\t'job_id' \t\t\t=> $post['job_id'],\n\t\t\t'client_id' \t\t=> $post['client_id'],\n 'name' \t\t\t\t=> $post['name'],\n 'email' \t\t\t=> $post['email'],\n 'previous_job_title' => $post['previous_job_title'],\n 'cover_letter' \t\t=> !empty($post['cover_letter']) ? $post['cover_letter'] : NULL,\n 'resume' \t\t\t=> !empty($post['resume']) ? $post['resume'] : NULL,\n\t\t\t'created_ts' \t\t=> time()\n\t\t);\n\n\t\treturn $this->_db->insert('applicants', $data);\n }" ]
[ "0.7637963", "0.7389153", "0.7297689", "0.71601677", "0.7120808", "0.7100221", "0.7034133", "0.70314175", "0.7010948", "0.7010796", "0.693909", "0.69299364", "0.68251115", "0.6819708", "0.6790058", "0.6758375", "0.6681173", "0.66781783", "0.6665244", "0.66367984", "0.6596452", "0.6586391", "0.6577955", "0.65777504", "0.6551353", "0.6543294", "0.65406734", "0.65187204", "0.65034896", "0.6501854", "0.6467927", "0.6465211", "0.64650655", "0.6464433", "0.6462138", "0.6459113", "0.6441027", "0.64400536", "0.6438568", "0.64283055", "0.6426094", "0.64221525", "0.64111644", "0.64057654", "0.6405378", "0.6375301", "0.6371045", "0.63662255", "0.6363947", "0.63597804", "0.6356387", "0.6347884", "0.6345972", "0.63447386", "0.63314795", "0.6328472", "0.63274395", "0.63248384", "0.6319335", "0.6294546", "0.628999", "0.6277554", "0.62732726", "0.62712616", "0.62658364", "0.62567997", "0.62544286", "0.6252412", "0.62449694", "0.6241402", "0.6229376", "0.6227239", "0.6226026", "0.6224517", "0.6223493", "0.6215806", "0.62016493", "0.6192642", "0.61848134", "0.6184726", "0.6183587", "0.61821055", "0.618088", "0.6179627", "0.6177605", "0.6176908", "0.61731166", "0.6172371", "0.6170481", "0.6169221", "0.6165011", "0.61582005", "0.61560184", "0.6155895", "0.615088", "0.61507815", "0.61481297", "0.61448294", "0.61439776", "0.6142337", "0.6134974" ]
0.0
-1
Displays all the posts created from all users
public function index(Request $request) { // stores index into the cache return Cache::remember('posts_' . $request->offset, 10, function () use ($request) { $query = Post::query(); // if title is specified as a param show posts with title otherwise show all posts if (!empty($request->title)) { return PostResource::collection($query->byName($request->title)->orderBy('id', 'desc')->offset($request->offset)->limit(5)->get()); } else { return PostResource::collection($query->orderBy('id', 'desc')->offset($request->offset)->limit(5)->get()); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function index() {\n\t\t$this->template->content = View::instance(\"v_posts_index\");\n\t\t$this->template->title = \"All the posts\";\n\t\t\t\n\t\t# Figure out the connections\n\t\t$q = \"SELECT *\n\t\t\tFROM users_users\n\t\t\tWHERE user_id = \".$this->user->user_id;\n\t\t\t\n\t\t$connections = DB::instance(DB_NAME)->select_rows($q);\n\t\t\t\t\t\t\n\t\t$connections_string = \"\";\n\t\t\n\t\tforeach($connections as $k => $v) {\n\t\t\t$connections_string .= $v['user_id_followed'].\",\";\n\t\t}\t\t\t\t\n\t\t\n\t\t# Trim off the last comma\n\t\t\t$connections_string = substr($connections_string, 0, -1);\n\t\t\n\t\t# Grab all the posts\n\t\t$q = \"SELECT *\n\t\t\tFROM posts\n\t\t\tJOIN users USING(user_id)\n\t\t\tWHERE posts.user_id IN (\".$connections_string.\")\";\n\t\t\t\t\t\n\t\t$posts = DB::instance(DB_NAME)->select_rows($q);\n\t\t\t\t \n\t\t# Pass data to the view\n\t\t$this->template->content->posts = $posts;\n\t\t\n\t\t\t\n\t\t# Render the view\n\t\techo $this->template;\n\t\n\t}", "public function myposts() {\n\t\t$this->template->content = View::instance('v_posts_myposts');\n\t\t$this->template->title = \"My Posts\";\n\n\t\t# only select posts created by the logged in user\n\t\t# the latest modified one is on the top\n\t\t$q = \"SELECT *\n\t\t\tFROM posts where user_id = \" . $this->user->user_id .\n\t\t\t\" ORDER BY modified DESC\";\n\t\t\t\n// echo $q;\t\t\t\n\n\t\t# Run the query\n\t\t$posts = DB::instance(DB_NAME)->select_rows($q);\n\n\t\t# Pass data to the View\n\t\t$this->template->content->posts = $posts;\n\n\t\t# Render the View\n\t\techo $this->template;\n\t}", "public function listPostsAction() {\n $this->session->start();\n if ($this->session->get('user_id') != NULL) {\n $vars = $this->getUserLoggedInformation();\n $user = Users::findFirstByUser_id($this->session->get('user_id'));\n if ($user->user_type_id < 3) {\n $posts = Posts::find(array(\n \"order\" => \"post_date_posted DESC\"\n ));\n }\n elseif ($user->user_type_id == 3) {\n $usr = Users::find(array(\n \"conditions\" => \"user_type_id > :user_type_id: OR user_id = :user_id: \",\n \"bind\" => array(\n \"user_type_id\" => $user->user_type_id,\n \"user_id\" => $user->user_id\n )\n ));\n foreach ($usr as $u) {\n $arr_id_users[] = $u->user_id;\n }\n $string_users = implode(\",\", $arr_id_users);\n $posts = Posts::find(array(\n \"conditions\" => \"post_author IN ({$string_users})\",\n \"order\" => \"post_date_posted DESC\"\n ));\n }\n else {\n $posts = Posts::findByPost_author($user->user_id);\n }\n $vars['menus'] = $this->getSideBarMenus();\n $vars['posts'] = $posts;\n $vars['categories'] = $this->getCategoriesByPost($posts);\n\n $this->view->setVars($vars);\n $this->view->render(\"post\", \"listPosts\");\n }\n else {\n $this->response->redirect(URL_PROJECT . 'admin');\n }\n }", "public function user_posts_all(Request $request)\n {\n //\n $user = $request->user();\n $posts = Posts::where('author_id',$user->id)->orderBy('created_at','desc')->paginate(5);\n $title = $user->name;\n return view('posts.show-all')->withPosts($posts)->withTitle($title);\n }", "public function index()\n {\n $userTO = new UserTO();\n $userTO->setId(Auth::id());\n $all_post_by_user = $this->postRepository->allPostbyUser($userTO);\n return view('home', compact('all_post_by_user'));\n }", "public function actionIndex()\n {\n $userId = Yii::$app->user->getId();\n $posts = new ActiveDataProvider([\n 'query' => Post::find()\n ->where(['user_id'=> $userId])\n ->orderBy('updated_at DESC'),\n 'pagination' => [\n 'pageSize' => 20,\n ]\n ]);\n return $this->render('index',[\n 'posts'=> $posts,\n ]);\n }", "public function index()\n {\n $posts = $this->user()->post()->select('id', 'title', 'slug', 'created_at')->orderBy('id', 'desc')->paginate(10);\n return view('user.post.index', ['posts' => $posts]);\n }", "public function index() {\n\t\t\n\t\t# Set up view\n\t\t$this->template->content = View::instance('v_posts_index');\n\n\n\t\t$q = 'SELECT *\n\t\t\t\tFROM posts\n\t\t\t\tINNER JOIN users \n\t\t\t\t ON posts.user_id = users.user_id';\n\t\t# Set up query\n\t\t/*$q = 'SELECT \n\t\t\t posts.content,\n\t\t\t posts.created,\n\t\t\t posts.user_id AS post_user_id,\n\t\t\t users_users.user_id AS follower_id,\n\t\t\t users.first_name,\n\t\t\t users.last_name\n\t\t\tFROM posts\n\t\t\tINNER JOIN users_users \n\t\t\t ON posts.user_id = users_users.user_id_followed\n\t\t\tINNER JOIN users \n\t\t\t ON posts.user_id = users.user_id\n\t\t\tWHERE users_users.user_id = '.$this->user->user_id;*/\n\t\t\n\t\t# Run query\t\n\t\t$posts = DB::instance(DB_NAME)->select_rows($q);\n\t\t\n\t\t# Pass $posts array to the view\n\t\t$this->template->content->posts = $posts;\n\t\t\n\t\t# Render view\n\t\techo $this->template;\n\t\t\n\t}", "public function index() {\n\t\n\t\t# Set up the View\n\t\t$this->template->content = View::instance('v_posts_index');\n\t\t$this->template->title = \"All Posts\";\n\n\t\t# Query\n\t\t$q = 'SELECT \n\t\t\t\tposts.content,\n\t\t\t\tposts.created,\n\t\t\t\tposts.user_id AS post_user_id,\n\t\t\t\tusers_users.user_id AS follower_id,\n\t\t\t\tusers.first_name,\n\t\t\t\tusers.last_name\n\t\t\tFROM posts\n\t\t\tINNER JOIN users_users \n\t\t\t\tON posts.user_id = users_users.user_id_followed\n\t\t\tINNER JOIN users \n\t\t\t\tON posts.user_id = users.user_id\n\t\t\tWHERE users_users.user_id = '.$this->user->user_id;\n\n\t\t# Run the query, store the results in the variable $posts\n\t\t$posts = DB::instance(DB_NAME)->select_rows($q);\n\n\t\t# Pass data to the View\n\t\t$this->template->content->posts = $posts;\n\n\t\t# Render the View\n\t\techo $this->template;\n\n\t}", "public function users() {\n\t\t$this->template->content = View::instance(\"v_posts_users\");\n\t\t\n\t\t\n\t\t# Grab all the users\n\t\t$q = \"SELECT * \n\t\t\tFROM users WHERE email <> '\".$this->user->email.\"'\";\n\t\t\n\t\t$users = DB::instance(DB_NAME)->select_rows($q);\n\t\t\n\t\t# Figure out the connections\n\t\t$q = \"SELECT * \n\t\t\tFROM users_users \n\t\t\tWHERE user_id = \".$this->user->user_id;\n\t\t\n\t\t$connections = DB::instance(DB_NAME)->select_array($q, 'user_id_followed');\n\t\t\n\t\t#echo Debug::dump($connections,\"connections\");\n\t\t\n\t\n\t\t# Pass data to the view\n\t\t$this->template->content->connections = $connections;\n\t\t$this->template->content->users = $users;\n\t\t\n\t\t# Render the view\n\t\techo $this->template;\n\t\n\t}", "public function posts()\n {\n session_start();\n $posts = new PostManager;\n $resultat = $posts->getPosts(100);\n echo $this->getRender()->render('listPostsView.twig', [\n 'posts' => $resultat,\n 'session' => $this->getSuperglobals()->get_SESSION()\n ]);\n }", "public function index()\n {\n $posts = Posts::where('user_id',Auth::user()->id)->get();\n\n return view('posts.userPosts',['posts' => $posts]);\n }", "function get_all_user_posts(){\n\treturn query(\"SELECT * FROM posts WHERE user_id = \".loggedInUserId().\"\");\n}", "public function index()\n {\n $user = User::findOrFail((int) auth()->user()->id);\n\n $posts = Post::where('user_id',$user->id)\n ->orderBy('created_at', 'desc')\n ->paginate(15);\n return view('users.show', [\n 'posts' => $posts,\n 'user' => $user,\n ]);\n }", "public function index()\n {\n $posts = Post::where('user_id', auth()->user()->id)->orderByRaw('id')->get();\n $lastPosts = Post::orderBy('id', 'desc')->skip(0)->take(10)->get();\n return view('admin.viewposts', compact('posts', 'lastPosts'));\n }", "public function index()\n\t{\n\t\t$posts = $this->user->posts()->orderBy('id', 'desc')->paginate(10);\n\n\t\treturn View::make('posts.index', compact('posts'));\n\t}", "public function index() {\n\t\t$this->template->content = View::instance('v_posts_index');\n\t\t$this->template->title = \"Posts\";\n\n $q = 'SELECT \n posts.content,\n posts.created,\n\t\t\tposts.post_id,\n posts.user_id AS post_user_id,\n users_users.user_id AS follower_id,\n users.first_name,\n users.last_name\n FROM posts\n INNER JOIN users_users \n ON posts.user_id = users_users.user_id_followed\n INNER JOIN users \n ON posts.user_id = users.user_id\n WHERE users_users.user_id = ' . $this->user->user_id;\n\t\t\t\t\n\t\t# Run the query\n\t\t$posts = DB::instance(DB_NAME)->select_rows($q);\n\n\t\t# Pass data to the View\n\t\t$this->template->content->posts = $posts;\n\n\t\t# Render the View\n\t\techo $this->template;\n\t}", "public function index()\n {\n $posts = Post::withCount('users')->get();\n\n return view('posts.index', ['posts' => $posts]);\n }", "public function index() {\n\n\t # Set up the View\n\t $this->template->content = View::instance('v_posts_index');\n\t $this->template->title = \"All Posts\";\n\n\t # Build the query\n\t $q = 'SELECT \n\t\t\t\tposts.post_id,\n\t\t\t\tposts.venue,\n\t posts.content,\n\t posts.created,\n\t\t\t\tposts.modified,\n\t posts.user_id AS post_user_id,\n\t users_users.user_id AS follower_id,\n\t users.first_name,\n\t users.last_name\n\t FROM posts\n\n\t INNER JOIN users_users \n\t ON posts.user_id = users_users.user_id_followed\n\n\t\t\tINNER JOIN users_venues \n\t ON posts.venue = users_venues.venue_followed\n\n\t INNER JOIN users \n\t ON posts.user_id = users.user_id\n\n\t WHERE users_users.user_id = '.$this->user->user_id.\n\t\t\t\t' AND users_venues.user_id = '.$this->user->user_id.\n\t\t\t' ORDER BY posts.user_id';\n\n\t # Run the query\n\t $posts = DB::instance(DB_NAME)->select_rows($q);\n\n\t # Pass data to the View\n\t $this->template->content->posts = $posts;\n\n\t # Render the View\n\t echo $this->template;\n\n\t}", "public function index()\n {\n DB::listen(function ($query) {\n info($query->sql);\n });\n\n // $posts = Post::published()->get();\n $posts = Post::published()->paginate(15);\n\n\n // $users = User::with(['posts' => function ($qb) {\n // $qb->where('is_published', true);\n // }])\n // ->where('email', 'like', '%@%')->get();\n // echo $users;\n\n\n return view('posts.index', compact('posts'));\n }", "public function index () \n {\n $posts = Post::whereIn('id', function($query){\n $query->selectRaw('max(id)')\n ->from('posts')\n ->groupBy('user_id');\n })->latest()\n ->take(10)\n ->get();\n \n return view('index',[\n /*layout*/\n 'me' => Auth::user(),\n 'themes' => Theme::all(),\n //'owner' => false, //if you own content on this page\n 'main' => true, //if it's main page\n //'myBlog' => false, //if it's your blog page\n /* index */\n 'posts' => $posts, //last posts from 10 different users\n ]);\n }", "public function index()\n {\n $posts = Post::where('user_id', Auth::id())->orderBy('id', 'DESC')->get();\n dd($posts);\n }", "public function index()\n {\n // $posts = Post::where('title', '!=', '')->orderBy('created_at', 'desc')->get();\n $user = User::find(Auth::id());\n //call the posts function to get the relation for user_id\n $posts = $user->posts()->orderBy('created_at', 'desc')->get();\n $count = $user->posts()->where('title', '!=', '')->count();\n return view('posts.index', compact('posts', 'count'));\n }", "public function index()\n {\n return Post::where('user_id', auth()->id())->get();\n }", "public function index()\n {\n return View::make('admin.posts.index')\n ->with(\n 'posts',\n Auth::user()->posts()\n ->orderBy('updated_at', 'desc')\n ->paginate(25)\n );\n }", "public function index()\n {\n $posts = Post::where('user_id', Auth::id())->get();\n\n return view('registred.posts.index', compact('posts'));\n }", "public function index()\n {\n return view('user.user_post');\n }", "public function index() {\n $posts = $this->postModel->getPosts();\n\n // Check whether user like some post\n if (isLoggedIn()) {\n foreach ($posts as $post) {\n $likes = $this->postModel->getLikesByPostId($post->postId);\n\n foreach ($likes as $like) {\n if ($like->user_id === $_SESSION['user_id']) {\n // Add field with likes\n $post->isLiked = true;\n }\n }\n }\n }\n\n $data = [\n 'posts' => $posts\n ];\n\n $this->view('posts/index', $data);\n }", "public function user_posts($id)\n {\n $posts = Posts::where('author_id',$id)->where('active',1)->orderBy('created_at','desc')->paginate(5);\n $title = User::find($id)->name;\n\n return view('home')->withPosts($posts)->withTitle($title);\n }", "public function index()\n\t{\n $posts=Auth::user()->posts()->orderBy('id', 'DESC')->paginate(1);\n\n return view('account.posts.index', ['posts'=>$posts]);\n\t}", "public function index()\n {\n return view('frontend.blog.post.index')\n ->withPosts($this->postRepository->getPaginatedByUser(auth()->user()));\n }", "public function index(){\n \t\n \t$users = auth()->user()->following()->pluck('profiles.user_id');\n \t\n \t$posts = post::whereIn('user_id', $users)->latest()->get();\n\n \treturn view('posts.index', compact('posts'));\n }", "public function user_post() {\n $this->loadModel('Image');\n $id = $this->Auth->user('id');\n $this->layout = 'front_end';\n $allImage = $this->Image->getAllimage($id);\n $data = $this->User->userData($id);\n $this->loadModel('Post');\n $post = $this->Post->postList();\n $this->set('image', $allImage);\n $this->set('user', $data);\n $this->set('post', $post);\n $this->render('/Users/user_post');\n }", "public function index()\n {\n // We connect to users we are following through their profile, but the posts are associated to users, not profiles\n $users = auth()->user()->following()->pluck('profiles.user_id');\n\n // with('user') refers to Post model user, and is there to optimize queries to the database (which shows with a limit 1 on Telescope)\n //$posts = Post::whereIn('user_id', $users)->orderBy('created_at', 'DESC')->get();\n $posts = Post::whereIn('user_id', $users)->with('user')->latest()->paginate(5);\n\n return view('posts.index', compact('posts'));\n }", "public function showPosts() {\r\n\t\t$allposts = $this->renderPostTemplate();\r\n\t\tforeach($allposts as $post) {\r\n\t\t\techo $post;\r\n\t\t}\r\n\t}", "public function AllPost()\n {\n $posts = DB::select('select * from posts where status=\"posted\"');\n return view ('home', ['posts' => $posts]);\n }", "public function index()\n {\n $posts = Auth::user()->admin ? Post::all() : Auth::user()->posts;\n return view('admin.posts.index', ['posts' => $posts]);\n }", "public function index()\n {\n // Get the currently authenticated user...\n $user = Auth::user();\n\n // Let's get all user's post with published status 1, and order by publication_date.\n // Let's include also, a pagination by 10/page.\n $posts = $user->posts()->where('published', 1)\n ->orderBy('publication_date', 'desc')\n ->paginate(10);\n\n // Let's return our view, called welcome with the posts data to it.\n return view('home', [\n 'user' => $user,\n 'posts' => $posts\n ]);\n }", "public function index()\n {\n $user = Auth::user();\n\n if ($user->admin) {\n // if User is admin, index all Posts\n $posts = Post::orderBy('created_at', 'desc')\n ->orderBy('id', 'desc')\n ->simplePaginate(10);\n } else {\n // else index Posts only from followed Users\n $userIds = array_merge([$user->id], $user->following->pluck('id')->all());\n $posts = Post::whereIn('user_id', $userIds)\n ->orderBy('created_at', 'desc')\n ->orderBy('id', 'desc')\n ->simplePaginate(10);\n }\n\n return view('home', [\n 'user' => $user,\n 'posts' => $posts\n ]);\n }", "public function index()\n {\n if (Auth::check()) {\n \n // Todos los posts con sus usuarios paginados (ver modelo de posts)\n $posts = Post::withUsers();\n \n return view('posts/index.twig', [\n 'posts' => $posts,\n ]);\n }\n \n return redirect('/');\n }", "public function index()\n {\n $myPosts = MyPosts::find('all', array(\n 'limit' => 5,\n 'order' => array(\n 'created_at' => 'DESC',\n )\n ));\n //Send the $my_posts object to our view\n return compact('myPosts');\n }", "public function index()\n {\n if(auth()->user()->profile->role_id <= 2) {\n // Para Administrador e Revisor\n $posts = Post::orderBy('id','DESC')->paginate(6);\n } else {\n // utilizador normal vo ve o que lhe pertence\n $posts = Post::orderBy('id','DESC')\n ->where('user_id', auth()->user()->id)\n ->paginate(6);\n }\n\n return view('admin.posts.index', compact('posts'));\n }", "public function index()\n {\n $posts = auth()->user()->posts()->orderBy('created_at', 'desc')->simplePaginate(5);\n\n return view('front.posts.index', compact('posts'));\n\n }", "public function allPosts($id){\n $posts = $this->fixedPosts();\n $users = User::all();\n $output = array();\n foreach ($posts as $post){\n if($post->user_id == $id){\n array_push($output, $post);\n }\n }\n\n if(count($output) > 0) {\n return view('blog')\n ->with('blog_posts', $output)\n ->with('users', $users);\n } else {\n return redirect()->route('posts.index');\n }\n }", "public function index()\n {\n // *Using Eloquent ORM\n $posts = Post::withCount('users', 'comments', 'usersReports')->get();\n\n return view('posts', ['posts' => $posts]);\n }", "public function index()\n {\n $posts = Post::all();\n $user = Auth::user();\n return view('admin.posts.index', compact('posts', 'user'));\n }", "private function my_posts_list()\n\t{\n\t\t$posts = ORM::factory('forum_cat_post')\n\t\t\t->select('forum_cat_posts.*, forum_cats.name, forum_cats.url')\n\t\t\t->with('forum_cat_post_comment')\n\t\t\t->join('forum_cats', 'forum_cats.id', 'forum_cat_posts.forum_cat_id')\n\t\t\t->where('forum_cat_post_comment.owner_id', $this->owner->get_user()->id)\n\t\t\t->orderby(\"forum_cat_post_comment.$this->sort_by\", $this->order)\n\t\t\t->find_all();\n\t\tif(0 == $posts->count())\n\t\t\treturn 'No posts created yet.';\n\n\t\t$view\t\t\t= new View('public_forum/posts_list');\t\n\t\t$view->posts \t= $posts;\n\t\treturn $view;\n\t}", "public function getPosts()\n {\n $posts = Post::where('author_id',Auth::user()->id)->orderBy('id','DESC')->paginate(15);\n return view('/home',compact('posts'));\n }", "public function index()\n {\n $user = \\Auth::guard('canvas')->user();\n $data = Post::query();\n\n if ($user->role == \\Canvas\\Meta\\Constants::ROLE_USER) {\n $data->user($user->id);\n }\n\n $data = $data->get();\n\n return view('canvas::backend.post.index', compact('data'));\n }", "public function indexAction()\n {\n $arr = Post::getAll();\n View::renderTemplate('Post/index.html', [\n 'data' => $arr\n ]);\n }", "public function users() {\n\t $this->template->content = View::instance('v_posts_users');\n\t $this->template->title = \"Users\";\n\n\t # Build the query to get all the users\n\t $q = \"SELECT *\n\t FROM users\";\n\n\t # Execute the query to get all the users. \n\t # Store the result array in the variable $users\n\t $users = DB::instance(DB_NAME)->select_rows($q);\n\n\t # Build the query to figure out what connections does this user already have? \n\t # I.e. who are they following\n\t $q = \"SELECT * \n\t FROM users_users\n\t WHERE user_id = \".$this->user->user_id;\n\n\t # Execute this query with the select_array method\n\t # select_array will return our results in an array and use the \"users_id_followed\" field as the index.\n\t # This will come in handy when we get to the view\n\t # Store our results (an array) in the variable $connections\n\t $connections = DB::instance(DB_NAME)->select_array($q, 'user_id_followed');\n\n\t # Pass data (users and connections) to the view\n\t $this->template->content->users = $users;\n\t $this->template->content->connections = $connections;\n\n\t # Render the view\n\t echo $this->template;\n\t}", "public function indexAction()\n {\n $limit = \\App\\Config::getConfig('pagination_frontend');\n $page = $this->routeParams['page'];\n $posts = $this->postModel->getAll(true, $limit, $page);\n foreach ($posts as $post) {\n $tagIds = $this->postModel->getPostTagIds($post->id);\n $post->tags = $this->tagModel->getAllBy('id', $tagIds);\n }\n $totalRows = $this->postModel->countBy(['is_active' => 1]);\n $paginator = $this->paginator->init($totalRows, $limit, $page, $this->routeParams);\n View::renderTemplate('Cms::frontend/post/index.html', [\n 'posts' => $posts,\n 'paginator' => $paginator\n ]);\n }", "public function users() {\n\t\t$this->template->content = View::instance(\"v_posts_users\");\n\t\t$this->template->title = \"Users\";\n\n\t\t# Build the query to get all the users\n\t\t// $q = \"SELECT *\n\t\t\t// FROM users\";\n\n\t\t// build the query to get all users except the logged-in user\n\t\t$q = \"SELECT *\n\t\t\tFROM users WHERE user_id != \" . $this->user->user_id;\n\t\t\t\n\t\t# Execute the query to get all the users. \n\t\t# Store the result array in the variable $users\n\t\t$users = DB::instance(DB_NAME)->select_rows($q);\n\n\t\t# Build the query to figure out what connections does this user already have? \n\t\t# I.e. who are they following\n\t\t$q = \"SELECT * \n\t\t\tFROM users_users\n\t\t\tWHERE user_id = \".$this->user->user_id;\n\n\t\t# Execute this query with the select_array method\n\t\t# select_array will return our results in an array and use the \"users_id_followed\" field as the index.\n\t\t# This will come in handy when we get to the view\n\t\t# Store our results (an array) in the variable $connections\n\t\t$connections = DB::instance(DB_NAME)->select_array($q, 'user_id_followed');\n\n\t\t# Pass data (users and connections) to the view\n\t\t$this->template->content->users = $users;\n\t\t$this->template->content->connections = $connections;\n\n\t\t$client_files_head = Array(\"/css/posts_users.css\");\n\t\t$this->template->client_files_head = Utils::load_client_files($client_files_head);\n\n\t\t# Render the view\n\t\techo $this->template;\n\t}", "public function index()\n {\n $posts=Post::with(\"user\")->get(); \n \n return view('home',compact(\"posts\"));\n }", "public function index()\n {\n $posts = Post::with('user')->latest('updated_at')->paginate(10);\n return view('pages.posts.index', compact('posts'));\n }", "public function index() {\n if(!$this->user) {\n Router::redirect('/');\n }\n \n \n # First, set the content of the template with a view file\n\t$this->template->content = View::instance('v_users_index');\n \n #pass the user_id over to the actual view\n $this->template->content->user_id = $this->user->user_id;\n \n\t# Now set the <title> tag\n\t$this->template->title = \"OPA!\";\n $q = 'SELECT \n\t posts.content,\n \t posts.created,\n\t posts.user_id AS post_user_id,\n \t users_users.user_id AS follower_id,\n\t users.first_name,\n \t users.last_name\n\t FROM posts\n \tINNER JOIN users_users \n\t ON posts.user_id = users_users.user_id_followed\n \tINNER JOIN users \n\t ON posts.user_id = users.user_id\n\t WHERE users_users.user_id = '.$this->user->user_id;\n\n\t\t$posts = DB::instance(DB_NAME)->select_rows($q);\n\t\t$this->template->content->posts = $posts;\n\t\t\n\t# Render the view\n\techo $this->template;\n \n }", "public function index()\n {\n // $data = User::with(['posts','comments'])\n // ->where('id',\\Auth::user()->id)\n // ->first();\n // return $data->posts;\n return Post::with('posteable')->get();\n }", "public function index()\n {\n $posts = Auth::user()->posts()->simplePaginate(10);\n return view('posts.index', compact('posts'));\n }", "public function index()\n {\n //\n $posts = $this->users->paginate(20);\n return $posts;\n }", "public function index()\n {\n $posts = Post::orderBy('created_at', 'desc')->get();\n\n return view('back.teacher.posts.posts', compact('posts'));\n }", "public function index()\n {\n return Post::with('category:id,name,slug', 'user:id,name,email')\n ->select([\n 'id', 'title', 'slug', 'content', 'image', 'category_id', 'user_id'\n ])\n ->paginate(); // json_encode(Post::all());\n }", "public function index2() {\n\t\t\n\t\t# Set up the view\n\t\t$this->template->content = View::instance(\"v_posts_index\");\n\t\t$this->template->title = \"All the posts\";\n\t\n\t\t$q = \"SELECT posts.*, users.first_name, users.last_name\n\t\t\t\tFROM posts\n\t\t\t\tLEFT JOIN users \n\t\t\t\t\tON posts.user_id = users.user_id\n\t\t\t\tLEFT JOIN users_users\n\t\t\t\t\tON users.user_id = users_users.user_id_followed\n\t\t\t\tWHERE users_users.user_id = \".$this->user->user_id;\n\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t$posts = DB::instance(DB_NAME)->select_rows($q);\n\t\t \n\t\t# Pass data to the view\n\t\t$this->template->content->posts = $posts;\n\t\t\t\n\t\t# Render the view\n\t\techo $this->template;\n\t\n\t}", "public function index()\n {\n $posts = Post::orderBy('id','desc')->paginate(10);\n $users = User::all()->where('type','default')->count();\n $pages = Analytics::fetchMostVisitedPages(Period::days(1));\n\n return view('admin.posts.index')->withUsers($users)->withPosts($posts)->withPages($pages);\n }", "public function getAllPostsByUser(User $user){\n $posts = $user->textPosts()->paginate(10);\n return view('text.list', ['posts' => $posts]);\n }", "public function indexAction()\n {\n $posts = PostService::readAll();\n\n View::renderTemplate('Posts/index.html', [\n 'posts' => $posts\n ]);\n }", "public function index()\n\t{\n //$posts = Posts::all();\n $posts = Posts::with('user')->get();\n //$posts = Posts::where('title','like','%post%')->get();\n //$posts = Posts::where('title','like','%post%')->take(1)->skip(1)->get();\n return View::make('post.list',compact('posts'));\n\t}", "public function index()\n {\n $user_id = auth()->user()->id;\n $user = User::find($user_id);\n // return view('profile')->with('posts', $user->posts);\n return view('profile', ['posts' => $user->posts->sortByDesc('created_at'), 'user' => $user]);\n }", "public function index()\n {\n // $user = auth()->user()->name; // User name for naming the image folder\n $posts = Post::latest()->paginate(30); // This will return last created post on top\n return view('posts.index')->with('posts', $posts);\n }", "public function users() {\n\n\t\t# Set up the View\n\t\t$this->template->content = View::instance(\"v_posts_users\");\n\t\t$this->template->title = \"Users\";\n\n\t\t# Build the query to get all the users\n\t\t$q = \"SELECT *\n\t\t\tFROM users\";\n\n\t\t# Execute the query to get all the users. \n\t\t# Store the result array in the variable $users\n\t\t$users = DB::instance(DB_NAME)->select_rows($q);\n\n\t\t# Build the query to figure out what connections does this user already have? \n\t\t# I.e. who are they following\n\t\t$q = \"SELECT * \n\t\t\tFROM users_users\n\t\t\tWHERE user_id = \".$this->user->user_id;\n\n\t\t# Execute this query with the select_array method\n\t\t# select_array will return our results in an array and use the \"users_id_followed\" field as the index.\n\t\t# This will come in handy when we get to the view\n\t\t# Store our results (an array) in the variable $connections\n\t\t$connections = DB::instance(DB_NAME)->select_array($q, 'user_id_followed');\n\n\t\t# Pass data (users and connections) to the view\n\t\t$this->template->content->users = $users;\n\t\t$this->template->content->connections = $connections;\n\n\t\t# Render the view\n\t\techo $this->template;\n\t}", "public function index()\n {\n $user_id = Auth::User()->id;\n $posts = post::where('poster_id',$user_id)->get();\n return view('freelance.post.show', compact('posts'));\n }", "public function showAllPosts()\n {\n foreach ($this->_postsArray as $post) {\n $post['content']= substr($post['content'], 0, 160).'...';\n echo postsTemplate($this->_view, $post);\n };\n }", "public function index()\n {\n if (Auth::user()->role === \"member\") {\n $data = Post::where('author', Auth::id())->get();\n } else\n $data = Post::all();\n return view('admin.post.index', compact('data'));\n }", "public function index()\n {\n return view('dashboard', [\n 'posts' => $this->post->getUserPosts()\n ]);\n }", "public function index()\n {\n $posts = Auth::user()->posts()->latest()->get();\n return view('author.author_post.ApostIndex',compact('posts'));\n }", "public function index()\n {\n $posts = Post::with(['user', 'category', 'tags', 'comments'])->paginate(10);\n\n return view('admin.posts.index', compact('posts'));\n }", "public function getAllAction()\n {\n /** @var \\AppBundle\\Repository\\PostRepository $postRepository */\n $postRepository = $this->getDoctrine()->getRepository(Post::class);\n $totalPosts = $postRepository->countTotals();\n \n if ($totalPosts == 0) {\n throw $this->createNotFoundException('No posts found');\n }\n \n $exportingForm = $this->getExportingForm();\n \n $posts = $postRepository->getAll();\n \n return $this->render('post/getall.html.twig', array(\n 'form' => $exportingForm->createView()\n , 'totals' => $totalPosts\n , 'posts' => $posts\n // TODO - Set up following param in config files\n , 'upload_dir' => basename($this->getParameter('uploaded_resources_dir'))\n ));\n }", "public function index()\n {\n $users = User::all();\n\n $posts = $this->fixedPosts();\n return view('blog')\n ->with('blog_posts', $posts)\n ->with('users', $users);\n }", "public function index() {\n // ! Not so good if you have millions post in Database\n // $posts = Post::get();\n\n // Pagination for our post\n // arg. takes how many posts inside the page\n // * Post::with(['user', 'likes']) is used something called \"eager loader\". We can bundle those query together\n // * so we don't create seperated query for a user and likes, so a user that has a post and a likes for example that is bundled together for a single query\n // * If we don't have this solution, then we would be overloaded to many queries and makes website slow\n // * orderBy('created_at', 'desc') will get the latest post on the top\n $posts = Post::orderBy('created_at', 'desc')->with(['user', 'likes'])->paginate(20);\n\n return view('posts.index', [\n 'posts' => $posts,\n ]);\n }", "public function all(){\n\t\t$posts = $this->repository->all();\n SEOMeta::setTitle(\"Blog\");\n SEOMeta::setDescription(\"Blog público com as opiniões de diversos alunos e professores da plataforma\");\n\n\t\treturn view('posts.all', ['posts' => $posts]);\n }", "public function index()\n {\n // create a variable and store all the blog momentums in it from the database\n $post = Post::orderBy('created_at', 'desc')->paginate(7);\n\n return view('posts.index')->withPosts($post);\n }", "public function index()\n {\n\t\t//if(auth()->user()->isAdmin == 1) {\n\t\t\t$posts = DB::table('users')->leftjoin('posts', 'users.id', '=', 'posts.author')->paginate(10);\n\t\t//}else{\n\t\t\t//$posts = DB::table('users')->leftjoin('posts', 'users.id', '=', 'posts.author')->where('users.id', '=', Auth::user()->id)->paginate(10);\n\t\t//}\n\t\t//echo \"<pre>\";\n\t\t//print_r($posts);exit;\n return view('home', ['posts' => $posts]);\n }", "public function posts()\n\t{\n\t\t$this -> template = 'default_1';\n\t\t$url = $this -> basepath();\n\n\t\t$posts = \\App\\App::getInstance() -> getTable('postsManager');\n\t\t$posts = $posts -> getPosts();\n\t\t$categories = \\App\\App::getInstance() -> getTable('categoriesManager');\n\t\t$categories = $categories -> getCategories();\n\t\t$this -> page('posts/posts', compact('posts', 'categories', 'url'));\n\t}", "public function indexAction() {\n\t\t// recebendo posts do método get posts\n\t\t$posts = $this->model->getPosts ();\n\t\t\n\t\t// criando variável de view (posts) os posts recebidos\n\t\t$this->view->posts = $posts;\n\t}", "public function index()\n {\n return view('home', ['posts' => Post::query()->whereIn('user_id', Auth::user()->followings()->where('status', 1)->get()->pluck('id')->push(Auth::id()))->with(['user.media','media','comments','likes'])->latest()->get()]);\n }", "public function adminPosts()\n {\n $adminSettings = DB::table('settings')->get();\n $adminUsers = DB::table('users');\n $adminPosts = DB::table('posts');\n\n return view('adminpanel::admin.posts')->with([\n 'settings' => $adminSettings,\n 'adminUsers' => $adminUsers,\n 'adminPosts' => $adminPosts,\n ]);\n }", "public function indexAction()\n {\n $conn1 = Doctrine_Manager::getInstance()->getConnection('one');\n $posts = Doctrine_Query::create($conn1)\n ->from('Model_Post p')\n ->orderBy('p.created_at DESC')\n ->execute();\n \n $conn2 = Doctrine_Manager::getInstance()->getConnection('two');\n $dummy = Doctrine_Query::create($conn2)\n ->from('Model_Post p')\n ->select('p.content')\n ->where('p.author = ?', 'danceric')\n ->execute();\n \n $this->view->posts = $posts;\n }", "public function index()\n {\n return view('home')->with('posts', Post::query()->with('user')->paginate());\n }", "public function index()\n {\n return view('manage.posts.index')->withPosts(\n Post::orderBy('id','desc')->paginate(5)\n );\n }", "public function index()\n { \n return view('home',['post'=>$this->userModel->getAllPosts()]);\n }", "public function index()\n {\n $user = Auth::user();\n\n $threads = DB::table('threads')->where('user_id', '=', $user->id)->get();\n\n $count_posts = DB::table('posts')->where('user_id', '=', $user->id)->count();\n\n $count_threads = DB::table('threads')->where('user_id', '=', $user->id)->count();\n\n return view('users/index', ['user' => $user, 'count_posts' => $count_posts, 'count_threads' => $count_threads, 'threads' => $threads]);\n\n }", "public function index()\n {\n $posts = Post::orderBy('created_at','desc')->with(['user','likes'])->paginate(5);\n\n return view('post.index', [\n 'posts' => $posts\n ]);\n }", "public function index()\n\t{\n\t\treturn view('posts.index')->withPosts($this->post->all());\n\t}", "public function index() {\n if (isset($_POST['delete'])) {\n $this->deletePosts($this->input->post('checked'));\n }\n\n // Finished handling the post, now display the list\n $posts = $this->post_model->where('deleted', 0)->find_all();\n\n Template::set('publicaciones', $posts);\n Template::render();\n }", "public function index()\n {\n // $posts = Post::all();\n\n // Cela permet d'optimiser le nombre de requêtes a faire au serveur pour recupérer la catégorie de chaque post\n // $posts = Post::with('category')->get();\n\n $posts = Post::with('category', 'user')->latest()->get();\n\n return view('posts.index', compact('posts'));\n }", "public function adminPosts()\n {\n $adminSettings = DB::table('settings')->get();\n $adminUsers = DB::table('users');\n $adminPosts = DB::table('posts');\n return view('admin.posts')->with([\n 'settings' => $adminSettings,\n 'adminUsers' => $adminUsers,\n 'adminPosts' => $adminPosts, \n ]);\n }", "public function posts(){\n // get all the posts by this user\n return $this->hasMany('cms\\Post');\n }", "public function listPost()\n {\n $this->areaAdmin->verifyAdmin();\n\n $posts = $this->postManager->getList(\"admin\");\n\n $this->renderview->generateView(array('name' => \"AdminPost\", 'function' => $posts, 'nameFunction' => 'posts'), 'layoutPageAdmin');\n }", "public function posts($user)\n {\n return view('posts.posts')->with('posts', $this->masterController->posts($user));\n }", "public function index()\n {\n // Query Post model for all posts\n // 1st version\n //$posts = Post::all();\n //dd($posts);\n\n // adding category and user\n // Query Post model for all posts\n // latest() sort by created_at desc\n // with('user') compliments the information of user, running the function user()\n // with('category') compliments the information of category, running the function category()\n // paginate() the results using the constant MAX_POSTS\n $posts = Post::latest()\n ->with('user')\n ->with('category')\n ->paginate(self::MAX_POSTS);\n\n // show the view 'blog\\index.blade.php' sending the $posts result\n return view('blog.index', compact('posts'));\n }", "public function index()\n {\n $this->view_all_posts();\n }", "public function OwnPostings()\n {\n \t$posts = DB::table('posts')/*->select ('title', 'body', 'id')*/\n \t\t\t\t\t\t\t\t->where ('user_id', '=', Auth::user()->id)\n \t\t\t\t\t\t\t\t->where('status','posted')\n \t\t\t\t\t\t\t\t->get();\n \treturn view ('post', ['posts'=>$posts]);\n }" ]
[ "0.7724312", "0.7610338", "0.7585624", "0.7517787", "0.74786776", "0.743168", "0.73849696", "0.73272705", "0.7297283", "0.7294067", "0.72832924", "0.72826076", "0.7261532", "0.72454137", "0.7233125", "0.72168195", "0.7216107", "0.7211977", "0.7184555", "0.7179266", "0.7144929", "0.7138443", "0.7131318", "0.71207637", "0.7111081", "0.71054786", "0.70967585", "0.7076878", "0.70546484", "0.70536166", "0.7052148", "0.704689", "0.70447105", "0.70446914", "0.7034412", "0.70241225", "0.7016581", "0.70151454", "0.70011246", "0.6986463", "0.69828755", "0.6980651", "0.6963904", "0.69634473", "0.69600976", "0.6946031", "0.6942451", "0.69366485", "0.6930628", "0.6928806", "0.6912321", "0.6901709", "0.69010913", "0.68937576", "0.68895334", "0.6882033", "0.687327", "0.6861782", "0.68602943", "0.68540996", "0.6851113", "0.68395764", "0.6838237", "0.68358696", "0.6829651", "0.68232924", "0.68232083", "0.6810892", "0.680778", "0.68073136", "0.6806452", "0.6798619", "0.67984337", "0.678632", "0.67837894", "0.67830735", "0.6780575", "0.6780027", "0.67772794", "0.6768456", "0.6768089", "0.6767318", "0.6764321", "0.67631143", "0.6753429", "0.67505455", "0.6748728", "0.6743589", "0.6739779", "0.6735442", "0.67308855", "0.6730522", "0.67276376", "0.6725492", "0.6722581", "0.67200816", "0.67165446", "0.67106533", "0.6707363", "0.670014", "0.6695537" ]
0.0
-1
Gets a post from its id
public function show(Request $request, Post $post): JsonResource { return PostResource::make($post); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function get($id) {\n return get_post($id);\n }", "public static function getPostById($id) {\n\t\t$em = dbconnection::getInstance()->getEntityManager() ;\n\n\t\t$postRepository = $em->getRepository('post');\n\t\t$post = $postRepository->findOneById(array('id' => $id));\n\n\t\treturn $post; \n\t}", "public function getById($id)\n {\n return Post::find($id);\n }", "public function getPost($id) {\n\t\treturn $this->postDAL->getPost($id);\n\t}", "public function getById($id)\n {\n $post = Post::find($id);\n\n return $post;\n }", "public function getById($id): Post\n {\n return $this->post->where('id', $id)->get();\n }", "static function get_post_by_id($post){\n\t\treturn self::$db->where('token_id',$post)->get('blog')->results();\n\t}", "public function get_post($id) {\n\n\t\t$post = $this->get_posts(array('ID' => $id, 'limit'=>1 ), true);\n\n\t\tif (isset($post[0]) && !empty($post[0]) ) {\n\t\t\treturn $post[0]; // return first post\n\t\t}\n\t\telse {\n\t\t\treturn null;\n\t\t}\t\n\t}", "public function findPostById($id)\n {\n return $this->postDao->findPostById($id);\n }", "public function show($id)\n {\n // \\Log::info($id);\n $post = Post::find($id);\n return $post;\n }", "public function getPostByPostId($id=null)\n\t{\n\t\tif(is_null($id)){\n\t\t\t$this->logger->logError('No ID provided.','Input Error');\n\t\t\treturn false;\n\t\t}\n\t\t$q = \"SELECT * FROM in_posts WHERE id=:id\";\n\t\t$vars = array(\n\t\t\t\":id\"=>(int)$id\n\t\t);\n\t\t$ps = $this->execute($q,$vars);\n\t\t$result = $this->getDataRowAsObject($ps,'Post');\n\t\treturn $result;\n\t}", "public function getById(int $id): ?Post;", "public function postOfId(PostId $id);", "public function getPostById(int $id): object\n {\n return Post::where('id', $id) ->first();\n }", "function getPost($id){\n $posts = $this->postManager->getPosts()->fetchAll();\n $post = $this->postManager->getPost($id);\n $comments = $this->commentManager->getComments($id)->fetchAll();\n $commentsNumber = count($comments);\n $total = count($this->postManager->getPosts()->fetchAll());\n $key = array_search($post['id'], array_column($posts, 'id'));\n require 'views/front/single.php';\n }", "public function show($id)\n {\n return Post::find($id);\n }", "public function show($id)\n\t{\n\t\treturn Post::find($id);\n\t}", "public static function getOne($id)\n\t{\n\t\t$db = DBConnection::getConnection();\n\t\t$query = \"SELECT * FROM POSTS WHERE id = ?\";\n\n\t\t$stmt = $db->prepare($query);\n\n\t\t$stmt->execute([$id]);\n\n\t\tif($fila = $stmt->fetch(PDO::FETCH_ASSOC)) {\n\t\t\t$post = new Posts;\n\t\t\t$post->loadDataFromRow($fila);\n\t\t\treturn $post;\n\t\t} else {\n\t\t\tthrow new Exception(\"El post que estas buscando no existe.\");\n\t\t}\n\t}", "public function getOne(int $id)\n {\n $db = Db::connect();\n $sql = \"SELECT * FROM post WHERE id = :id\";\n\n $result = $db->prepare($sql);\n $result->bindParam(':id', $id, PDO::PARAM_INT);\n $result->execute();\n\n return $result->fetch(PDO::FETCH_ASSOC);\n }", "function get_post_by_id($id) {\n\n\treturn new WP_Query(\n\t\tarray(\n\t\t\t'post_type'\t=> 'any',\n\t\t\t'p'\t\t\t=> $id\n\t\t)\n\t);\n\n}", "public function findOnePostById($id)\n {\n $query = \"\"\n . \"SELECT post.*, user.name as author \"\n . \"FROM post \"\n . \"LEFT JOIN user ON post.id_user = user.id \"\n . \"WHERE post.id = '%s'\";\n $query = sprintf($query, $this->db->real_escape_string($id));\n if ($result = $this->db->query($query)) {\n $row = $result->fetch_assoc();\n $post = [\n 'id' => $row['id'],\n 'title' => $row['title'],\n 'content' => $row['content'],\n 'author' => $row['author'],\n 'date_created' => $row['date_created'],\n 'comment' => $this->findAllCommentsByPostId($row['id']),\n 'tags' => '' //$row['firstname']\n ];\n $result->close();\n } else {\n die($this->db->error);\n }\n return $post;\n }", "public function show($id)\n {\n return $this->post->find($id, array('id','title'));\n }", "public function viewPostById($post) {\n $db = $this->dbConnect();\n $req = $db->prepare('SELECT id, title, content, DATE_FORMAT(creation_date, \\'%d/%m/%Y à %Hh%imin%ss\\') AS creation_date_fr FROM posts WHERE id = ?');\n $req->execute(array($post->getId()));\n\n $postById = $req->fetch();\n\n return $postById;\n }", "public function takePost($idPost){\r\n $db = $this->connectDB();\r\n $post = $db->prepare('SELECT id, title, text, DATE_FORMAT(date, \"le %d %b %Y à %H:%i\") AS datePost FROM oui.posts WHERE id = ?');\r\n $post->execute(array($idPost));\r\n \r\n return $post;\r\n }", "public static function getPost(int $id): ?Post\n {\n // NEKAD, NEKAD nelikt $id vai citu $ iekš $query funkcijas, jo tad var uztaisīt SQL injekcijas, kad kāds DROP TABLE sev mūsu datu bāzi. Jātaisa SQL prepaired statements. \n // labāk jarakstīt šitā\n\n // $query = DB::$connection->prepare(\"SELECT * FROM posts WHERE id = ?\");\n // $query->execute([$id]);\n\n $query = DB::$connection->prepare(\"SELECT * FROM posts WHERE id = :id\");\n $query->execute(['id' =>$id]);\n\n \n $post = $query->fetchObject('Post');\n // $posts = self::getPosts(); //Šitā dabū visus Posts\n // foreach ($posts as $post) {\n // if ($post->id == $id) {\n // return $post;\n // }\n // }\n\n\n if(!$post) {\n return null;\n }\n\n // $postObj = new Post();\n // $postObj->id = $post['id'];\n // $postObj->title = $post['title'];\n // $postObj->text = $post['text'];\n\n return $post;\n }", "public static function findById($idPost) {\n\t\t$db = self::getDB();\n\t\t$sql = \"SELECT *\n\t\t\t\tFROM posts \n\t\t\t\tWHERE\n\t\t\t\t\tidPost = :idPost \";\n\t\t$query = $db->prepare($sql);\n\t\t$query->execute([\n\t\t\t':idPost' => $idPost\n\t\t]);\n\t\t$dados = $query->fetch();\n\t\t$post = new Post();\n\t\t$post->setIdPost($idPost);\n\t\t$post->setNome( $dados['nome'] );\n\t\t$post->setConteudo( $dados['conteudo'] );\n\t\t$post->setFkIdUsuario( $dados['fk_idUsuario'] );\n\t\t$post->setFkIdTopico( $dados['fk_idTopico'] );\n\t\t$post->setDataDeCriacao( $dados['dataDeCriacao'] );\n\t\treturn $post;\n\t}", "public function findPostById($id)\n {\n $this->db->query('SELECT * FROM posts WHERE id = :id');\n $this->db->bind(':id', $id);\n $row = $this->db->single();\n return $row;\n }", "public function show($id)\n {\n return Posts::find($id);\n }", "public function find(int $post_id);", "public function show($id)\n {\n return Post::findOrfail($id);\n }", "public function show($id)\n {\n return Post::withTrashed()->where('id', $id)->first();\n }", "public function show($id)\n {\n return Post::find($id)->where('user_id', auth()->id())->firstOrFail();\n }", "public static function _getPostFromId( $_post_id ) {\n global $post_id;\n $post_id = $_post_id;\n $post = get_post( $post_id );\n setup_postdata( $post );\n return new WPOO_Post( $post );\n }", "public function getPostDetailsById($id){\n\t\t$criteria = new CDbCriteria;\n\t\t$criteria->select = '*';\n\t\t$criteria->condition = \" id = :id \";\t\n\t\t$criteria->params = array(':id'=>(int)$id);\t\t\n\t\treturn $post = NePosts::model()->find($criteria);\n\t}", "public function getPostDetailsById($id){\n\t\t$criteria = new CDbCriteria;\n\t\t$criteria->select = '*';\n\t\t$criteria->condition = \" id = :id \";\t\n\t\t$criteria->params = array(':id'=>(int)$id);\t\t\n\t\treturn $post = NePosts::model()->find($criteria);\n\t}", "public function view($id)\n {\n return Post::find($id);\n }", "public function show(int $id): Post;", "public function show($id)\n {\n $post = Post::find($id);\n\n if(!isset($post)){\n return response(['error' => 'Post not found!'], 404);\n }\n\n return $post;\n }", "public function getPostById($id)\n {\n $this->db->query('SELECT \n posts.id as postId,\n posts.title as title,\n posts.body as body,\n posts.content as content,\n users.id as userId,\n users.first_name as first_name,\n users.last_name as last_name,\n users.level as userLevel,\n posts.created_at as postDate,\n users.created_at as userDate,\n categories.id as categorieId,\n categories.name as categorie\n FROM posts\n INNER JOIN users ON posts.user_id = users.id\n INNER JOIN categories on posts.categories = categories.id\n WHERE posts.id = :id\n ORDER BY posts.created_at DESC\n ');\n\n $this->db->bind(':id', $id);\n\n // get single row\n $row = $this->db->single();\n if ($this->db->rowcount() == 0) {\n return null;\n } else {\n return $row;\n }\n }", "public static function searchID($id) {\n $db = Db::getInstance();\n $id = intval($id);\n $req = $db->prepare('SELECT * FROM postinfo WHERE postID = :id AND visibility = 1');\n $req->execute(array('id' => $id));\n $post = $req->fetch();\n if (!empty($post)) {\n return new Post($post['postID'], $post['memberID'], $post['categoryID'], $post['title'], $post['author'], $post['about'], $post['category'], $post['datePosted'], $post['dateUpdated'], $post['excerpt'], $post['content']);\n } else {\n return $post = NULL;\n }\n }", "public function getPostById($id){\n $this->db->query('SELECT *,\n posts.id as postId,\n users.id as userId,\n posts.created_at as postCreated,\n users.created_at as userCreated,\n posts.user_id as postOwner\n FROM posts\n join users\n on posts.user_id = users.id\n Where posts.id = :id');\n $this->db->bind(':id',$id);\n $row = $this->db->single();\n if($row){\n return $row;\n }else{\n return false;\n }\n }", "public function loadPost($id=null)\n {\n if($this->_post===null)\n {\n if($id!==null || isset($_GET['id']))\n $this->_post=Post::model()->findbyPk($id!==null ? $id : $_GET['id']);\n if($this->_post===null ||\n\t\t\tYii::app()->user->status!=User::STATUS_ADMIN\n\t\t\t&& Yii::app()->user->status!=User::STATUS_WRITER\n\t\t\t&& $this->_post->status!=Post::STATUS_PUBLISHED\n\t\t\t&& $this->_post->publishTime<time() )\n throw new CHttpException(404,'The requested page does not exist.');\n }\n return $this->_post;\n }", "public static function getPostItemById($id)\n {\n $id = intval($id);\n\n if ($id) {\n $db = Db::getConnection();\n $result = $db->query('SELECT * FROM publication WHERE id_publ =' . $id);\n $result->setFetchMode(\\PDO::FETCH_ASSOC);\n $postItem = $result->fetch();\n\n return $postItem;\n }\n }", "function get_post_from_id($id){\n\t\t$hsl = $this->db->query(\"SELECT * FROM `jsts_post` WHERE `keywords` LIKE '%\".$id.\"%'\");\n\t\treturn $hsl;\n\t}", "public function getPost($id)\n\t{\n\t\t// make sure we have the latest state of posts\n\t\tif (!isset($this->metadata['posts'])) {\n\t\t\t$this->regeneratePostsMetadata();\n\t\t}\n\t\t// get the file: metadata for the post contains type => use it for constructing the path\n\t\t$output = array();\n\t\tif (isset($this->metadata['posts'][$id])) {\n\t\t\t$postMeta = $this->metadata['posts'][$id];\n\t\t\t$postType = $postMeta['type'];\n\t\t\t$postJSON = file_get_contents($this->rootFolder . '/contents/' . $postType . '/' . $id . '.json');\n\t\t\tif ($postJSON != '') {\n\t\t\t\t$output = json_decode($postJSON, true);\n\t\t\t}\n\t\t}\n\n\t\treturn $output;\n\t}", "public static function getPostById ($post_id)\n {\n return TblPost::findOne($post_id);\n }", "public function findOne($postId)\r\n {\r\n $req = $this->connexion->connect()->prepare('SELECT id, title, content, DATE_FORMAT(dateposts, \\' % d /%m /%Y à % Hh % imin % ss\\') AS date_creation_fr FROM posts WHERE id = ?');\r\n $req->execute(array($postId));\r\n $data = $req->fetch();\r\n $post = new Article($data);\r\n\r\n return $post;\r\n }", "public function show($id)\n {\n return $this->postService->show($id);\n }", "public function show($id)\n {\n //find post by id\n $post = Post::find($id);\n //if post id is found return the post content\n if($post){\n return $this->apiResponse(new PostResource($post));\n }else{\n return $this->notFoundResponse();\n }\n \n }", "public function postById($id)\n {\n $sql = '\n SELECT p.id, p.title, p.chapo, p.content, p.date_creation, p.date_modification, p.category_id, u.pseudo, ca.name As category, COUNT(co.id) AS numberComments\n FROM posts AS p\n LEFT JOIN users AS u ON u.id = p.user_id\n LEFT JOIN categories AS ca ON ca.id = p.category_id\n LEFT JOIN comments AS co ON co.post_id = p.id\n WHERE p.id=:id';\n return $this->db->request($sql, ['id' => $id], 'posts', false);\n }", "public function show($id)\n {\n return $post=Post::find($id);\n }", "public function show($id)\n {\n return Post::where('category_id', '=' , $id)->get();\n }", "public function get_post( $post_id )\n\t{\n\t\t// revisions are not supported for this post type, but still check for future proofing\n\t\t$post_id = ( wp_is_post_revision( $post_id ) ) ? wp_is_post_revision( $post_id ) : $post_id;\n\n\t\t// attempt to get the post\n\t\t$post = get_post( $post_id );\n\n\t\t// confirm that the post exists and is usable\n\t\tif ( ! isset( $post->post_type ) || $post->post_type != $this->post_type_name )\n\t\t{\n\t\t\treturn FALSE;\n\t\t}\n\n\t\t// return the post if found\n\t\treturn $post;\n\t}", "public function readPost ($id) \n {\n //we can accidently be redirected here again\n if (session(\"deleted-$id\")) {\n return $this->safeRedirect();\n }\n \n $post = Post::find($id);\n \n //if post not found\n if ($post == NULL) {\n abort(404);\n }\n \n $user = $post->user;\n //check if it's your post\n $owner = Auth::check() ? Auth::id() == $user->id : false;\n \n //if it's private\n if ($post->private && !$owner) {\n abort(403);\n }\n \n return view('read',[\n 'me' => Auth::user(),\n 'themes' => Theme::all(),\n 'post' => $post,\n 'owner' => $owner, //if you own content on this page\n 'user' => $user //user who own content on this page\n ]);\n }", "public function show($id)\n {\n return PostResource::make(Post::included()->sort()->findOrFail($id)); //Para una sola respuesta\n }", "public static function getById($id)\n {\n $db = Mysql::getInstance();\n $data = $db->select('posttag', '`id` = :id', array('id' => $id));\n return static::init($data->fetch_one());\n }", "public function show($id)\n {\n $post = Post::included()->findOrFail($id);\n return PostResource::make($post);\n }", "public function show($id)\n {\n //\n $post = \\App\\Models\\Post::find($id);\n if (is_null($post)) {\n return $this->sendError('Post not found!' );\n }\n // return $this->sendResponse(new PostResource($post), 'Post retireved Successfully!' );\n }", "public function getPost($id) {\n $title = 'Blog | Post';\n //dd($id);\n $post = DB::table('post as p')\n ->join('users as u', 'p.users_id', '=', 'u.users_id')\n ->where('p.post_id', $id)\n ->first();\n\n $comments = DB::table('comments as c')\n ->join('users as u','u.users_id','=','c.users_id')\n ->where('c.post_id','=', $id)\n ->orderBy('c.updated_at','desc')\n ->get();\n\n return view('frontend.post', compact('post','comments'));\n }", "function get_post($id) {\n $ci = & get_instance();\n $ci->db->from('post');\n $ci->db->where('post_id', $id);\n $post = $ci->db->get()->result();\n\n if (!(is_array($post) && count($post) == 1)) {\n return NULL;\n }\n\n $ci->db->from('comment');\n $ci->db->where('post_id', $post[0]->post_id);\n\n $comments = build_comments($ci->db->get()->result());\n\n $ci->db->from('text_post');\n $ci->db->where('post_id', $post[0]->post_id);\n $text_posts = $ci->db->get()->result();\n\n if (is_array($text_posts) && count($text_posts) == 1) {\n $text_post = build_text_post($post[0], $text_posts[0]->post_text);\n $text_post->comments = $comments;\n return $text_post;\n } else {\n $ci->db->from('link_post');\n $ci->db->where('post_id', $post[0]->post_id);\n $link_posts = $ci->db->get()->result();\n\n if (is_array($link_posts) && count($link_posts) == 1) {\n $link_post = build_link_post($post[0], $link_posts[0]->post_link);\n $link_post->comments = $comments;\n return $link_post;\n } else {\n return NULL;\n }\n }\n }", "public function id() { return $this->post->ID; }", "public function onePost($id)\n {\n $query = 'SELECT *\n FROM \n blog_post\n JOIN authors USING(author_id)\n WHERE post_id = :id\n AND deleted = 0';\n\n $stmt = static::$dbh->prepare($query);\n\n $params = array (\n ':id' => $id\n );\n\n $stmt->execute($params);\n\n $result = $stmt->fetchAll(\\PDO::FETCH_ASSOC);\n \n return $result;\n }", "public static function getPostToEdit($id)\n {\n \t//if (!self::isAdmin()) return redirect('/');\n \t \n \t$post = new Post;\n \tif ($id != null || $id != \"\") {\n \t\t$hashids = new \\Hashids\\Hashids(\"\", Config::get(\"weixin.minhashlength\"));\n \t\t// hashStr to id number\n \t\tif (!is_numeric($id)) {\n \t\t\t$ids = $hashids->decode($id);\n \t\t\tif (isset($ids[0])) {\n \t\t\t\t$id = $ids[0];\n \t\t\t}\n \t\t}\n \t\t$post = Post::findOrFail($id);\n \t\t$post = $post->attributesToArray();\n \t}\n \t\t \n \treturn response()->view('edit', ['data' => $post, 'url' => $post['url'], 'isadmin' => self::isAdmin() ]);\n }", "function getPublicPostingInfo($id = 0) {\n return getOne(\"SELECT * FROM posting WHERE id = ?\", [$id]);\n}", "static function get_post_by_cat_id($post){\n\t\treturn self::$db->where('cat_id',$post)->get('blog')->row();\n\t}", "public function show($id)\n {\n if (!is_null(post::find($id))) {\n return response()->json([\n 'post' => post::find($id)\n ], 200);\n }\n }", "public static function getPublishedPostById(int $id)\n {\n return Post::where('id', $id)\n ->whereDate('published_at', '<=', now())\n ->first();\n }", "public function get()\n {\n return $this->object = get_post($this->id);\n }", "function find_post($id){\n\t$db_connection = db_connection();\n\t$query = sprintf(\"select posts.title, posts.body,posts.user_id, users.username from posts, users where posts.user_id = users.id and posts.id = %s\",mysql_escape_string($id));\n\t$result = mysql_query($query);\n\t$number_of_posts = mysql_num_rows($result);\n\tif($number_of_posts == 0){\n\t\treturn false;\n\t}\n\t$row = mysql_fetch_array($result);\n\treturn $row;\n}", "public function getPost($postId, $findWithTrashed = false)\n {\n $posts = $this->posts();\n\n if ($findWithTrashed) {\n $post = $posts->withTrashed();\n }\n\n $post = $posts->find($postId);\n\n return $post;\n }", "function getPostById($id) {\n $link = openDatabaseConnection();\n $id = mysqli_real_escape_string($link, $id);\n $query = mysqli_query($link,\"SELECT title, description FROM post WHERE id = {$id}\");\n $row = mysqli_fetch_assoc($query);\n closeDatabasesConnection($link);\n return $row;\n}", "public function getPost($postId)\n {\n $dbName = $this->dbConnect();\n $req = $dbName->prepare('SELECT blogpost.id, title,chapo, content,status, user_id,user.login,DATE_FORMAT(dateLastModification, \\'%d/%m/%Y à %Hh%imin%ss\\') \n AS dateLastModification FROM blogpost INNER JOIN user ON blogpost.user_id = user.id WHERE blogpost.id = ? AND blogpost.status = 1');\n $req->execute(array($postId));\n\n while ($row = $req->fetch(PDO::FETCH_ASSOC)) {\n\n $post = new BlogPost();\n $login = new User();\n $login->setLogin($row['login']);\n $post->setId($row['id']);\n $post->setTitle($row['title']);\n $post->setContent($row['content']);\n $post->setDate($row['dateLastModification']);\n $post->setStatus($row['status']);\n $post->setUserId($row['login']);\n $post->setChapo($row['chapo']);\n $posts[] = $post;\n }\n return $posts;\n }", "public function show($id)\n {\n $post = Post::find($id);\n return new postresource($post);\n }", "public function single(Post $post)\n {\n// auth()->loginUsingId(1);\n// if (Gate::allows('show-post',$post)){\n// return $post;\n// }\n// abort(403,'not access');\n\n// authorization services by ACL PostPolicy\n auth()->loginUsingId(1);\n if (Gate::allows('view',$post)){\n return $post;\n }\n abort(403,'not access');\n }", "protected function viewPostById()\n {\n $post = $this->posts->postById($_GET['id']);\n $comments = $this->comments->commentsById($_GET['id']);\n $this->render('postById', compact('post', 'comments'));\n }", "function getPost($pid)\n {\n $post= $this->db->getPost($pid);\n if ($post)\n {\n //show a quick reference url, poster and posted datetime\n $post['posttitle'] = \"Posted by {$post['poster']} on {$post['postdate']}\";\n \n $post['downloadurl'] = $this->conf['this_script'] . \"?dl=$pid\";\n $post['deleteurl'] = $this->conf['this_script'] . \"?erase=$pid\";\n $post['pid'] = $pid;\n }\n else\n {\n $post['code'] = '<b>Unknown post id, it may have been deleted</b><br />';\n $this->errors[] = 'Unknown post id, it may have expired or been deleted';\n } \n \n return $post;\n }", "function getPostByID( $postID )\n\t\t{\n\t\t\t\n\t\t\ttry {\n\n\t\t\t\t$query = $this->_db->prepare( \"SELECT post_id, post_title, post_description, post_content, post_date FROM blog_posts WHERE post_id = :postID\" );\n\n\t\t\t\t$query->bindParam( ':postID', $postID, PDO::PARAM_INT );\n\n\t\t\t\t$query->execute();\n\n\t\t\t\t$row = $query->fetch();\n\n\t\t\t\tif( $row[ \"post_id\" ] == \"\") \n\t\t\t\t{\n\n\t\t\t\t\theader( \"Location: index.php\" );\n\n\t\t\t\t\texit;\n\n\t\t\t\t} else {\n\t\t\t\t\t\n\t\t\t\t\treturn $row;\n\t\t\t\t\t\n\t\t\t\t}\n\n\t\t\t} catch ( PDOException $e ) {\n\n\t\t\t\techo $e->getMessage();\n\n\t\t\t}\n\t\t\t\n\t\t}", "public function findOneByPost($postId)\n {\n $qb = $this->repository->createQueryBuilder('t');\n $qb->select('t')\n ->leftJoin('t.posts', 'p')\n ->where('p.id = :postId')\n ->setParameter('postId', $postId);\n\n $query = $qb->getQuery();\n\n return $query->getOneOrNullResult();\n }", "function get_post($id){\n $sql = \"select * from post where id=?\";\n $posts = DB::select($sql, array($id));\n if (count($posts)!=1){\n die(\"Something has gone wrong:$sql\");\n }\n $post = $posts[0];\n return $post;\n}", "public function findPostBySlug($post_id) {\n $sql = \"SELECT * \n FROM posts p \n INNER JOIN users u ON p.author_id = u.id \n INNER JOIN categories c ON p.cat_id = c.cat_id\n WHERE p.post_id = $post_id\";\n return mysqli_query($this->conn, $sql)->fetch_assoc();\n }", "public function edit($id)\n\t{\n\t\treturn Post::find($id);\n\t}", "public function getPost()\n {\n return $this->hasOne(Posts::className(), ['id' => 'post_id']);\n }", "public function getById($id)\n {\n $postId = intval($id);\n $Post = $this->postFactory->create();\n $Post->load($postId);\n if (!$Post->getId()) {\n throw new NoSuchEntityException(__('The CMS Post with the \"%1\" ID doesn\\'t exist.', $postId));\n }\n $result = $Post;\n return $result;\n }", "public function show($id)\n {\n $post = Notes::find($id);\n if (!$post) {\n return response()->json([\n \"status\" => false,\n \"message\" => \"Post not found\"\n ])->setStatusCode(404);\n }\n\n return $post;\n }", "function horsaw_get_post($post_id = null, $model = null) {\n\tif ( is_null( $post_id ) ) {\n\t\t$post_id = get_the_id();\n\t}\n\n\t// Invalid\n\tif ( empty( $post_id ) ) {\n\t\treturn false;\n\t}\n}", "function getPostOfUser($idUser)\n {\n }", "public function edit($id)\n {\n return $this->post->find($id);\n }", "public function show($id)\n {\n $post = Post::find($id);\n if (empty($post)) {\n return $this->sendError('Post not found!');\n }\n return $this->sendResponse(new PostResource($post), 'Post retrieved successfully');\n }", "function getPost($post_id) {\n $result = pg_query_params($GLOBALS['web_db_conn'], \"SELECT title, content FROM posts WHERE post_id = $1\", array($post_id));\n\n $row = pg_fetch_row($result);\n\n $title = $row[0];\n $content = $row[1];\n\n return array($title, $content);\n}", "public function getPost()\n {\n return $this->hasOne(Post::className(), ['id' => 'post_id']);\n }", "public function GetAuthorPostByid($id){\n\t\t$this->db->where('Id', $id);\n\t\t$query=$this->db->get('tblauthorpost');\n\t\tif($query->num_rows()==1)\n\t\t{\n\t\t\treturn $query->result();\n\t\t}\n\t\telse{\n\t\t\tredirect('home');\n\t\t}\n\t}", "public function show(string $id)\n {\n $result = $this->postService->get($id);\n\n return $result;\n }", "public function getPostDirect($postId)\n {\n $sql = \"select * from wp_posts where ID = '\" . $postId . \"' and\n post_status = 'publish'\";\n $data = $wpdb->get_results($sql);\n\n return $data[0];\n }", "private function getPost($post)\n {\n if ($post instanceof WP_post) {\n return $post;\n } elseif (is_int($post) === true) {\n return $this->objectHandler->getPost($post);\n } elseif (isset($post->ID) === true) {\n return $this->objectHandler->getPost($post->ID);\n }\n\n return false;\n }", "public function show($id)\n {\n //show the post with the id\n $posts = Posts::find($id);\n\n return response($posts);\n }", "public function show($id)\n {\n return Post::findOrFail($id)->load('tags');\n }", "public function findPostcardById($id)\n\t{\n\t\treturn $this->repository->findOneById($id);\n\t}", "public function getPost($id){\n $answer = array();\n $id = self::cleanSQL(self::$conn, $id);\n $sql = \"SELECT * FROM \" . self::getTable() . \" WHERE POSTID = '\" . $id . \"'\";\n $result = self::query($sql);\n if(!$result){\n return false;\n }else{\n while($row = $result->fetch_row()){\n $buffer = array(\n 'POSTID' => $row[0],\n 'UID' => $row[1],\n 'CID' => $row[2],\n 'title' => $row[3],\n 'author' => $row[4],\n 'likes' => $row[5],\n 'image' => $row[6],\n 'category' => $row[7],\n 'created_at' => $row[8],\n 'updated_at' => $row[9]\n ); \n array_push($answer, $buffer); \n }\n return $answer;\n }\n }", "function OPS_get_post($id) {\r\n\tglobal $wpdb;\r\n\t$post = $wpdb->get_results(\"SELECT * FROM $wpdb->posts WHERE ID=$id\");\r\n\tif ($post->post_type == \"revision\"){\r\n\t\t$id = $post->post_parent;\r\n\t\t$post = $wpdb->get_results(\"SELECT * FROM $wpdb->posts WHERE ID=$id\");\r\n\t}\r\n\treturn $post[0];\r\n}", "public function show($id)\n {\n\n $post = $this->post->with('tags')->find($id);\n //dd($post);// = unserialize($post->photo);\n return $post;\n //return $this->post->with('tags')->find($id);\n }", "public function get( $id );" ]
[ "0.8248129", "0.80028415", "0.7964995", "0.796487", "0.7798485", "0.77628696", "0.7745554", "0.76678884", "0.76442486", "0.76322913", "0.76246387", "0.75863767", "0.75758725", "0.7543944", "0.7516545", "0.74303496", "0.7428975", "0.7410425", "0.74083424", "0.7401713", "0.7394099", "0.7343564", "0.7332937", "0.7321452", "0.72936976", "0.72853184", "0.7268815", "0.72637933", "0.72361326", "0.7228769", "0.7206333", "0.71662", "0.7133568", "0.71176195", "0.71176195", "0.7104717", "0.70989764", "0.70922136", "0.7053021", "0.7043382", "0.70385206", "0.7021035", "0.6998155", "0.6997828", "0.6975016", "0.6955767", "0.69555277", "0.69359887", "0.69204116", "0.6909131", "0.6896603", "0.68878365", "0.6881693", "0.6863324", "0.6846522", "0.68445265", "0.6841341", "0.6839013", "0.6838863", "0.6836028", "0.68248284", "0.68220127", "0.68035585", "0.68005705", "0.6771826", "0.6768173", "0.6766865", "0.6752664", "0.67518973", "0.6743511", "0.6718929", "0.6715221", "0.67143625", "0.6697857", "0.6694247", "0.6681806", "0.66814375", "0.6680864", "0.66714", "0.6669258", "0.66689765", "0.66644686", "0.66611505", "0.6658975", "0.6654557", "0.663077", "0.6630441", "0.66278535", "0.6624953", "0.6622426", "0.66181934", "0.66142863", "0.6585229", "0.6581291", "0.6578135", "0.6576405", "0.6576099", "0.6575114", "0.6571901", "0.6565847", "0.6544692" ]
0.0
-1
Updates a post for the authorised owner
public function update(UpdatePostRequest $request, Post $post): JsonResource { $post->title = $request->title; $post->body = $request->body; $post->slug = makeSlug($request->title); $post->saveOrFail(); return PostResource::make($post); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function update(User $user, Post $post);", "public function update(PostRequest $request, Post $post)\n {\n //se hace referencia al Policy asociado al User\n $this->authorize('author', $post);\n\n $post->update($request->all());\n\n // Si se actualliza una imagen se hace esto, se pregunta si esta mandando alguna imagen\n if ($request->file('file')) {\n $url = Storage::put('posts', $request->file('file'));\n\n //Preguntamos si este post ya contaba con una imagen, la borramos\n if ($post->image) {\n Storage::delete($post->image->url);\n\n $post->image()->update([\n 'url' => $url\n ]);\n }else{\n $post->image()->create([ //se crea un nuevo registro, y en el campo url coloca la imagen que acabammos de subir\n 'url' => $url\n ]);\n }\n \n }\n if ($request->tags) {\n $post->tags()->sync($request->tags);//El metodo sync sincroniza la coleccion que se esta mandando por este metodo con los registros que tengmos actualmente en la tabla intermedia postag\n }\n return redirect()->route('admin.posts.edit', $post)->with('info', 'El Post se actualizo con exito'); \n }", "public function wpcd_change_app_owner_before_save_post( $post_id ) {\n\t\t$user_id = get_current_user_id();\n\t\t$users = wpcd_get_users_in_team( $post_id );\n\t\t$post_author = get_post( $post_id )->post_author;\n\t\tif ( ! in_array( $post_author, $users, true ) ) {\n\t\t\tarray_push( $users, $post_author );\n\t\t}\n\n\t\t$wpcd_app_owner = filter_input( INPUT_POST, 'wpcd_app_owner', FILTER_VALIDATE_INT );\n\n\t\tif ( ! wpcd_is_admin() && ! in_array( $user_id, $users, true ) && (int) $post_author !== (int) $wpcd_app_owner ) {\n\t\t\twp_die( esc_html( __( 'You are not allowed to change the owner.', 'wpcd' ) ) );\n\t\t}\n\n\t\t// Update the post author.\n\t\t$post = get_post( $post_id );\n\t\t$post->post_author = $wpcd_app_owner;\n\t\twp_update_post( $post );\n\t}", "public function update(Request $request, Post $post)\n {\n if (!Gate::allows(\"post-owner\", $post)) {\n abort(403);\n }\n\n $request->validate([\n \"title\" => [\n \"required\",\n Rule::unique(\"posts\")->ignore($post->id),\n \"max:290\",\n ],\n \"content\" => [\"required\"],\n \"image\" => [\"image\", \"max:1999\"],\n \"category\" => [\"nullable\", \"exists:categories,id\"],\n ]);\n\n if ($request->hasFile(\"image\")) {\n $path = $request->file(\"image\")->store(\"images\", \"public\");\n // Delete previous non-default image\n if ($post->image !== Post::DEFAULT_IMAGE_PATH) {\n Storage::disk(\"public\")->delete($post->image);\n }\n } else {\n $path = $post->image;\n }\n\n Post::where(\"id\", $post->id)->update([\n \"title\" => $request->title,\n \"slug\" => Str::slug($request->title),\n \"content\" => $request->content,\n \"image\" => $path,\n \"user_id\" => $request->user()->id,\n \"category_id\" => $request->category,\n ]);\n\n return redirect(route(\"dashboard.posts.index\"))->with(\n \"status\",\n \"Pomyślnie edytowano wpis\"\n );\n }", "public function update($post);", "public function update(UserFormRequest $request, Post $post)\n {\n $this->authorize('delete', $post);\n \n $post->title = $request->input('title');\n $post->content = $request->input('content');\n $post->save();\n return redirect()->route('posts.edit',['post' => $post])->with('message','Post actualizado');\n }", "public function update(Post $post): Post\n\t{\n\t}", "public function update(PostFormRequest $request, Posts $post)\n {\n //if($post->user_id !== Auth::user()->id) abort(401); //AuthPolicy\n $this->authorize('update',$post);\n \n $post = $request->validated();\n if($request->image){\n $post['image'] = $request->image->store('images');\n }\n $post->update($post);\n\n return redirect()->route('posts.index');\n }", "public function update(CreatePostRequest $request, Post $post)\n {\n if (!auth()->user()->ability('admin', 'update_posts')) {\n return abort(403);\n }\n $post->update($request->all());\n\n if ($request->images && count($request->images) > 0) {\n store_image_for_posts($post, $request);\n }\n\n return redirect()->route('admin.posts.index')->with([\n 'message' => 'Post updated successfully',\n 'alert-type' => 'success',\n ]);\n }", "public function update() {\n\t\t$db = self::getDB();\n\t\t$sql = \"UPDATE posts SET\n\t\t\t\t\tnome = :nome,\n\t\t\t\t\tconteudo = :conteudo,\n\t\t\t\t\tfk_idUsuario = :fk_idUsuario,\n\t\t\t\t\tfk_idTopico = :fk_idTopico,\n\t\t\t\t\tdataDeCriacao = :dataDeCriacao\n\t\t\t\tWHERE\n\t\t\t\t\tidPost = :idPost \";\n\t\t$query = $db->prepare($sql);\n\t\t$query->execute([\n\t\t\t':idPost' => $this->getIdPost(), \n\t\t\t':nome' => $this->getNome(),\n\t\t\t':conteudo' => $this->getConteudo(), \n\t\t\t':fk_idUsuario' => $this->getFkIdUsuario(),\n\t\t\t':fk_idTopico' => $this->getFkIdTopico(),\n\t\t\t':dataDeCriacao' => $this->getDataDeCriacao()\n\t\t]);\n\t}", "public function update(Request $request, Post $post)\n {\n $this->authorize('update',$post);\n if($request->has('status')){\n $post->status = $request->status;\n }\n if($request->has('likes')){\n $post->likes = $request->likes;\n }\n if($request->has('body')){\n $post->body = $request->body;\n }\n $post->save();\n return new PostResource($post);\n }", "public function update()\n\t{\n\t\tif(isset($_SESSION['admin']))\n\t\t{\n\t\t\tif(isset($_POST['id']))\n\t\t\t{\n\t\t\t\t$id = $_POST['id'];\n\t\t\t\t$title = $_POST['title'];\n\t\t\t\t$image = $this->_imageMng->check();\n\t\t\t\t$content = $_POST['content'];\n\t\t\t\t$this->_adminMng->updatePost($title,$content,$image,$id);\n\t\t\t\t$this->message(4);\n\t\t\t\theader('Location: index.php');\n\t\t\t}\n\t\t\telse{throw new Exception(\"Identifiant de post introuvable\");}\n\t\t}\n\t\telse{header('Location: login.php');}\n\t}", "public function update(User $user, Post $post)\n {\n return $user->isAuthorOf($post) || $user->isAdmin();\n }", "public function update(User $user, Post $post)\n {\n //\n }", "public function updated(Post $post)\n {\n //\n $user = $this->userRepository->find($post->user_id, 'name');\n\n $body = [\n 'title' => $post->title,\n 'content' => $post->content,\n 'username' => $user ? $user->name : __('app.anonymous'),\n ];\n\n $this->postElasticSearch->updateDoc($post->id, $body);\n }", "public function edit(Posts $post)\n {\n //if($post->user_id !== Auth::user()->id) abort(401); //AuthPolicy\n //$this->authorize('update',$post); // edit == update , set as global based Authorizaton\n return view('posts.edit',[\n 'post' => Posts::where('id',$post->id)->firstOrFail()\n ]);\n }", "public function update(Request $request, Posts $post)\n {\n // die($post->user->is(auth()->user()));\n $this->authorize('update',$post);\n $this->validatePosts();\n $post->title=request('title');\n $post->summary=request('summary');\n $post->body=request('body');\n \n $post->save();\n if(request('categories')){\n $post->categories()->detach();\n $post->categories()->attach(request('categories'));\n }\n \n return redirect( route('postDetails',$post));\n \n //$posts->categories()->attach(request('categories'));\n\n ///return redirect( route('postDetails',$posts));\n\n //$posts->update($this->validatePosts());\n\n \n /*$posts->title=request('title');\n $posts->summary=request('summary');\n $posts->body=request('body');\n\n $posts->save();*/\n }", "public function actionUpdate()\n {\n\t$this->layout='wide';\n $post=$this->loadPost();\n $post->content=($post->contentbig)?$post->contentbig:$post->contentshort;\n\n if(isset($_POST['Post']))\n {\n $post->attributes=$_POST['Post'];\n if(isset($_POST['previewPost']))\n $post->validate();\n else if(isset($_POST['submitPost']) && $post->save())\n $this->redirect(array('show','slug'=>$post->slug));\n }\n $this->pageTitle=Yii::t('lan','Update Post');\n $this->render('update',array('post'=>$post));\n }", "public function edit_postAction() {\r\n\t\t$info = $this->getPost(array('sort', 'id', 'ad_type', 'ad_ptype', \r\n\t\t\t\t'title', 'link', 'activity', 'clientver', 'img', 'start_time', 'end_time', 'status',\r\n\t\t\t\t'hits', 'channel_id', 'module_id', 'cid', 'channel_code', 'ptype_id', 'is_recommend', 'action'));\r\n\t\t$info = $this->_cookData($info);\r\n\t\t$ret = Gou_Service_Ad::updateAd($info, intval($info['id']));\r\n\t\tif (!$ret) $this->output(-1, '操作失败');\r\n\t\t$this->output(0, '操作成功.'); \t\t\r\n\t}", "public function update(Request $request, Post $post)\n\t{\n\t\t$post->update($request->only('title', 'description'));\n\t\t\n\t\tself::deny('posts_edit', $post);\n\n\t\treturn redirect()->route('posts.index')->with('success', 'Post updated successfully!');\n\t}", "public function update(PostRequest $request, Post $post)\n {\n $post->revisions++;\n $user = Auth::user()->id;\n\n $request['updated_by'] = $user;\n $post->update($request->all());\n\n $tags = explode(',', $request['selectedTags']);\n\n $post->tags()->sync($tags);\n\n $categories = explode(',', $request['selectedCategories']);\n $post->categories()->sync($categories);\n\n $post->photos()->detach();\n $post->photos()->attach($request['indexPhoto']);\n\n if($request['draft'] === '0'){\n Session::flash('warning', 'پست با موفقیت ویرایش و منتشر شد');\n return redirect(route('posts.index'));\n }else{\n Session::flash('warning', 'پست با موفقیت ویرایش و پیش نویس شد');\n return redirect(route('posts.draft'));\n }\n }", "public function edit(Post $post)\n {\n $response = Gate::inspect('update', $post);\n if (!$response->allowed()) {\n //return with 403 status code\n return response()->view(\"posts.edit\", [\"post\" => $post, \"errorMsg\" => $response->message()], 403);\n }\n return response()->view(\"posts.edit\", [\"post\" => $post], 201);\n }", "public function update(PostRequest $request, Post $post)\n {\n $this->authorize('update', $post);\n\n $post->update([\n 'title' => $request->get('title'),\n 'content' => $request->get('contents')\n ]);\n\n return redirect(route('posts.show', $post->id))->with('flash_message', '수정이 완료 되었습니다.');\n }", "public function update(Request $request, Post $post)\n {\n if ($this->isScheduling($request) && $this->isPublishing($request)) {\n return response()->json([\n 'error' => 'Bad Request',\n ], 400);\n }\n\n $client = $request->user();\n\n if ($client->cannot('edit_article')\n && !$post->users()->contains($client)) {\n return response()->json([\n 'error' => 'Forbidden',\n ], 403);\n }\n\n if ($request->has(['add_authors'])) {\n if ($client->cannot('invite_author')) {\n return response()->json([\n 'error' => 'Forbidden',\n ], 403);\n }\n\n $post->users()->syncWithoutDetaching($request->add_authors);\n }\n\n if ($request->has(['remove_authors'])) {\n if ($client->cannot('remove_author')) {\n return response()->json([\n 'error' => 'Forbidden',\n ], 403);\n }\n\n $post->users()->detach($request->remove_authors);\n }\n\n if ($this->isScheduling($request)\n && $client->cannot('schedule_article')) {\n return response()->json([\n 'error' => 'Forbidden',\n ], 403);\n }\n\n if ($this->isPublishing($request)\n && $client->cannot('publish_article')) {\n return response()->json([\n 'error' => 'Forbidden',\n ], 403);\n }\n else if ($this->isPublishing($request)) {\n $request->request->add(['published_at' => \\Carbon\\Carbon::now()]);\n }\n\n $post->update($request->only([\n 'title',\n 'excerpt',\n 'content',\n 'featured_image',\n 'category',\n 'tag',\n 'status',\n 'published_at',\n ]));\n\n if (!$this->isPublishing($request) && $this->isScheduling($request)) {\n $post->schedule()->create([\n 'scheduled_at' => $request->scheduled_at,\n ]);\n }\n\n return $this->jsonResponse(new PostResource($post));\n }", "public function updatePost(Request $request)\n {\n \t//if (!self::isAdmin()) return redirect('/');\n \t\n\t if ($request->id != null && $request->id != \"\") {\n\t \n\t\t $id = $request->id;\n\t\t $post = Post::find($id);\n\t\t \n\t\t $url = urldecode(trim($request->url));\n\t\t $parse = parse_url($url);\n\t\t $sourcedomain = $parse['host'];\n\t\t \n\t\t $post->url = $url;\n\t\t $post->sourcedomain = $sourcedomain;\n\t\t $post->title = trim($request->title);\n\t\t $post->description = trim($request->description);\n\t\t if (is_array($request->tags) && (count($request->tags) >= 1)) {\n \t\t\t// tags separated by ',' , such as 'a,b,c,d'\n \t\t\t$post->tags = trim(implode(\",\", $request->tags));\n \t\t} else {\n \t\t\t$post->tags = \"\";\n \t\t}\n\t\t $post->isfeatured = $request->isfeatured;\n\t\t $post->hasvideo = $request->hasvideo;\n\t\t $post->ogimage = trim($request->ogimage);\n\t\t $post->content = trim($request->editor1);\n\t\t \n\t\t $post->save();\n\t\t \n\t\t return redirect('/admin/edit/'.$id);\n\t }\n \n \treturn redirect('/admin/list');\n }", "public function update(Request $request, Post $post)\n {\n //user情報取得\n $user = \\Auth::user();\n if ($user) {\n $login_user_id = $user->id;\n } else {\n $login_user_id = \"\";\n }\n\n /**\n * post_mainをDBへ保存\n */\n //更新用過去データ準備\n $preMainId = $request->preMainId;\n $postMain = Post::find($preMainId);\n\n $ImageFactory = new ImageFactory;\n\n // 画像の投稿がある場合は、保存\n if (!empty($request->file('main_photo'))) {\n //画像を保存し、ファイル名を返す\n $imageName = $ImageFactory->storeImage($request->file('main_photo'));\n $postMain->photo = $imageName;\n }\n\n $postMain->title = $request->title;\n $postMain->area = $request->area;\n $postMain->impression = $request->impression;\n $postMain->budget_id = $request->budget;\n $postMain->year = $request->year;\n $postMain->month = $request->month;\n $postMain->term_id = $request->term;\n $postMain->save();\n //tag情報を格納 where('post_id', 'like', $post_sub_id)->value('tag_id');\n $tagMap = Tag_map::where('post_id', $preMainId)->first();\n $tagMap->tag_id = $request->tag;\n $tagMap->save();\n\n /**\n * post_subをDBへ保存\n */\n\n $count = $request->totalCount + 1;\n\n for ($i=1; $i < $count ; $i++) {\n //更新用$i番目過去データ準備\n $preSubPost = sub_Post::where('post_main_id', $preMainId)\n ->where('post_order', $i)\n ->first();\n\n //delFlagが立っていた場合は、削除\n $delFlag = 'delFlag_'.$i;\n if ($request->$delFlag === \"1\") {\n // 画像を削除\n if ($preSubPost['photo']) {\n $pathdel = public_path('storage/postedImages/'. $preSubPost['photo']);\n \\File::delete($pathdel);\n }\n // tag_mapを削除\n tag_Map::where('post_id', $preSubPost['post_sub_id'])\n ->delete();\n // sub_postを削除\n sub_post::where('post_sub_id', $preSubPost['post_sub_id'])\n ->where('post_order', $i)\n ->delete();\n continue;\n }\n\n //新たに登録用のレコード用意\n $subPost = new sub_Post;\n\n $comment = 'comment_'.$i;\n $tag = 'tag_'.$i;\n //一意のpost_sub_idを生成\n $post_sub_id = $user->id.time().$i;\n\n $subPost->post_sub_id = $post_sub_id;\n $subPost->post_main_id = $preMainId;\n $subPost->post_order = $i;\n\n //画像を保存\n if (!empty($request->file('sub_photo_'.$i))) { // 写真が更新された場合\n //画像を保存しファイル名を返す\n $imageName = $ImageFactory->storeImage($request->file('sub_photo_'.$i));\n $subPost->photo = $imageName;\n //旧写真削除\n if (!empty($preSubPost['photo'])) {\n $pathdel = public_path('storage/postedImages/'. $preSubPost['photo']);\n \\File::delete($pathdel);\n }\n } elseif (!empty($preSubPost['photo'])) { // 写真が更新されない&元々画像があった場合\n $subPost->photo = $preSubPost['photo'];\n } else { // 写真が削除されている場合\n // 未実装\n }\n\n //コメントを保存\n if (!empty($request->$comment)) {\n $subPost->comment = $request->$comment;\n }\n $subPost->save();\n\n //tag情報を格納\n if (!empty($request->$tag)) {\n $tagMap = new Tag_map;\n $tagMap->post_id = $post_sub_id;\n $tagMap->tag_id = $request->$tag;\n $tagMap->save();\n }\n\n // 旧レコードを削除\n if (!empty($preSubPost['post_sub_id'])) {\n Tag_map::where('post_id', $preSubPost['post_sub_id'])\n ->delete();\n sub_post::where('post_sub_id', $preSubPost['post_sub_id'])\n ->where('post_order', $i)\n ->delete();\n }\n }\n return redirect()->route('postShow', ['post_id' => $preMainId]);\n }", "public function update(Request $request, Post $post)\n{\n if ($post->user_id !== auth()->id()) {\n return redirect()->route('posts.index')\n ->with('error', 'You cannot edit this post');\n }\n $validator = Validator::make($request->all(), [\n 'title' => 'required|string|max:20',\n 'content' => 'required|string',\n 'comment' => 'string'\n ]);\n if ($validator->fails()) {\n return redirect()\n ->route('posts.create')\n ->withErrors($validator)\n ->withInput();\n }\n $post->update([\n 'title' => $request->input('title'),\n 'slug' => Str::slug($request->input('title')),\n 'content' => $request->input('content'),\n 'user_id' => auth()->user()->id,\n 'comment' => $request->input('comment')\n ]);\n return redirect()->route('posts.show', $post->slug)\n ->with('success', 'Post updated successfully');\n }", "public function update(PostRequest $request, Post $post)\n {\n $this->authorize('update', $post);\n\n $input = $request->only('title', 'body', 'category_id');\n\n if ($request->hasFile('image')) {\n $input['image'] = $request->file('image')->store('covers');\n }\n\n $post->update($input);\n\n $post->tags()->sync($request->get('tags'));\n\n return redirect()->route('posts.index');\n }", "public function update(PostRequest $request, Post $post)\n {\n $user_id = Auth::id();\n $post->title = $request->title;\n $post->body = $request->body;\n\n if ($request->image) {\n $post->image = now() . '_' . $request->user_id . '.jpg';\n $image = Storage::disk('s3')->putFileAs('/post_images', $request->image, now().'_'.$request->user_id.'.jpg', 'public');\n }\n $post->save();\n return redirect('posts/' . $post->id)->with('success_msg', '活動状況を編集しました');\n }", "public function updatePost(\\post\\model\\Post $post) {\n\t\t//Update in system.\n\t\t$this->postDAL->updatePost($post);\n\t}", "public function update() {\n $this->post->update($this->post_params());\n\n if ($this->post->is_valid()) {\n $flash = ['notice' => 'Saved Successfully'];\n } else {\n $flash = ['error' => $this->post->errors_as_string()];\n }\n\n redirect('/backend/posts/edit', $flash, ['id' => $this->post->id]);\n }", "public function edit_postAction(){\n\t\t$info = $this->getPost(array('id','name', 'root_id', 'parent_id', 'sort'));\n\t\t\n\t\t//检测重复\n\t\t$area = Ola_Service_Area::getBy(array('name'=>$info['name']));\n\t\tif ($area && $area['id'] != $info['id']) $this->output(-1, $info['name'].'已存在.');\n\t\t\n\t\t$ret = Ola_Service_Area::update($info, $info['id']);\n\t\tif (!$ret) {\n\t\t $this->output(-1, '操作失败.');\n\t\t}\n\t\t$this->output(0, '操作成功.');\n\t}", "public function doUpdate()\n {\n session_start();\n\n //Falls der Benutzer eingeloggt ist funktioniert es, ansonsten bekomment er einen Fehler\n if (isset($_SESSION['isLoggedIn']) && !empty($_SESSION['isLoggedIn'])) {\n if (isset($_POST)) {\n if (!$this->update_is_valid($_POST['post_id'], $_POST['title'], $_POST['text'])) {\n header('Location: /post/index');\n exit();\n }\n // Durch htmlspecialchars XSS verhindern\n $title = htmlspecialchars($_POST['title']);\n $text = htmlspecialchars($_POST['text']);\n $post_id = $_POST['post_id'];\n $this->postRepository->update($post_id, $title, $text);\n }\n } else {\n header('Location: /user/index/?error=Du bist nicht eingeloggt!');\n }\n }", "public function update(User $user, Post $post): array|bool\n {\n return $user->ability(roles: 'admin', permissions: 'update_posts');\n }", "public function handleRestUpdatePost($post)\n {\n if (\"publish\" == $post->post_status) {\n $this->indexPost($post->ID);\n }\n }", "protected function check_update_permission($post)\n {\n }", "protected function check_update_permission($post)\n {\n }", "public function update(Request $request, $post)\n {\n $data = [];\n $feildsToValues = [\n 'title',\n 'body',\n 'category_id'\n ];\n\n foreach ($feildsToValues as $feild)\n {\n\n if($request->get($feild))\n {\n $data[$feild] = $request->get($feild);\n }\n\n }\n\n if($request->get('photo_id'))\n {\n $photo = Photo::addPhotoToPublic($request);\n $data['photo_id'] = $photo->id;\n }\n\n Post::where(['id'=>$post])->update($data);\n\n return redirect('/admin/posts');\n }", "public function update(Request $request, Post $post) {\n //\n }", "public function update(UpdatePost $request, Post $post)\n {\n $data = $request->only(['title','description','published_at','content','category_id']);\n //check if a new image\n if($request->hasFile('image')){\n //upload it\n $image = $request->image->store('posts');\n //delete old image\n $post->deleteImage();\n $data['image'] = $image;\n };\n\n if($request->tags){\n $post->Tags()->sync($request->tags); //sync to db if user unselect, not select.. help for m2m relationship\n }\n //update atrr\n $post->update($data);\n session()->flash('success','Post Updated');\n return redirect(route('posts.index'));\n }", "public function update(Request $request, Post $post)\n {\n //\n }", "public function update(Request $request, Post $post)\n {\n //\n }", "public function update(Request $request, Post $post)\n {\n //\n }", "public function update(Request $request, Post $post)\n {\n //\n }", "public function update(Request $request, Post $post)\n {\n //\n }", "public function update(Request $request, Post $post)\n {\n //\n }", "public function update(Request $request, Post $post)\n {\n //\n }", "public function update(Request $request, Post $post)\n {\n //\n }", "public function update(Request $request, Post $post)\n {\n //\n }", "public function update(Request $request, Post $post)\n {\n //\n }", "public function update(Request $request, Post $post)\n {\n //\n }", "public function update(Request $request, Post $post)\n {\n //\n }", "public function update(Request $request, Post $post)\n {\n //\n }", "public function update(Request $request, Post $post)\n {\n //\n }", "public function update(Request $request, Post $post)\n {\n //\n }", "public function update(Request $request, Post $post)\n {\n //\n }", "public function editPost() {\n\n if ($this->request->is('post')) {\n\n $this->Post->create();\n\n $id = $this->request->data['Post']['id'];\n\n if (!$id) {\n throw new NotFoundException(__('Invalid post'));\n }\n\n $post = $this->Post->findById($id);\n\n if (!$post) {\n throw new NotFoundException(__('Invalid post'));\n }\n\n if ($this->request->is('post') || $this->request->is('put')) {\n $this->Post->id = $id;\n $data = $this->getPreparedPostData($this->request);\n if ($this->Post->save($data)) {\n $this->Session->setFlash('Your post has been updated.');\n $this->redirect(array('action' => 'index'));\n } else {\n $this->Session->setFlash('Unable to update your post.');\n }\n }\n\n if (!$this->request->data) {\n $this->request->data = $post;\n }\n }\n }", "public function update(){\n \n //Validate before updating\n $this->validate([\n 'title'=>'required',\n 'content'=>'required'\n ]);\n \n //Check if the specific record id is submited\n if($this->ids)\n {\n\n $post = Post::find($this->ids);\n\n $post->update([\n 'title' => $this->title,\n 'content' => $this->content,\n ]);\n \n //Set session flash message\n session()->flash('update','Post updated Successfully!');\n \n //Reset the input fields to empty\n $this->resetInputFields();\n \n //Emit To Close Modal after updating\n $this->emit('postUpdated');\n }\n }", "public function update(Request $request, Post $post)\n {\n //\n }", "public function update(Request $request)\n {\n //\n $post_id = $request->input('post_id');\n $post = Post::find($post_id);\n if($post && ($post->author_id == $request->user()->id || $request->user()->isAdmin()))\n {\n $title = $request->input('title');\n $slug = str_slug($title);\n $duplicate = Post::where('slug',$slug)->first();\n if($duplicate)\n {\n if($duplicate->id != $post_id)\n {\n return redirect('edit/'.$post->slug)->withErrors('Title Already Exists.')->withInput();\n }\n else\n {\n $post->slug = $slug;\n }\n }\n\n $post->title = $title;\n $post->body = $request->input('body');\n $post->slug=$slug;\n\n $message = 'Post updated successfully';\n $landing = $post->slug;\n\n $post->save();\n return redirect($landing)->withMessage($message);\n }\n else\n {\n return redirect('/')->withErrors('You have not sufficient Permissions');\n }\n }", "public function update(Request $request, Post $post)\n {\n $validator = Validator::make($request->all(), [\n 'title' => 'required',\n 'description' => 'required',\n ]);\n\n if ($validator->fails()) {\n return $this->sendError('Please validate error', $validator->errors());\n }\n if ($post->user_id != Auth::id()) {\n return $this->sendError('unauthorized');\n }\n $input = $request->all();\n $post->title = $input['title'];\n $post->description = $input['description'];\n $post->save();\n\n return $this->sendResponse(new PostResource($post), 'Post updated successfully');\n }", "public function update(Request $request, Post $post, $id)\n {\n\n \n $p = Post::where('id', $id)\n ->update([ \n 'title' => $request->title, \n 'content' => $request->content, \n 'category_id'=> $request->category_id\n ]);\n\n \n return redirect('/');\n \n \n }", "public function update(Request $request, Post $post)\n {\n $data = [\n 'title'=>$request->title,\n 'content'=>$request->content,\n 'category_id'=>$request->category_id,\n // 'published_at'=>($request->published_at =='on')?1:0,\n ];\n\n if($request->file(\"cover\")) {\n Storage::delete(\"public/covers/blog/\" . $post->cover);\n Storage::delete(\"public/covers/blog/thumbnail/\" . $post->cover);\n $data += [\"cover\" => $this->uploadImage($request->file(\"cover\"))]; \n } else {\n $data += [\"cover\" => $post->cover]; \n }\n\n $post->update($data);\n $post->tags()->sync($request->input('tags', []));\n return redirect()->route('posts.index');\n // $post->update([\n // 'title'=>$request->title,\n // 'content'=>$request->content,\n // 'category_id'=>$request->category_id,\n // 'published'=>($request->published =='on')?1:0,\n // ]);\n \n // return redirect()->route('posts.index');\n \n }", "public function update(StorePost $request, $id)\n {\n //ici on va stocker les donner recuperer a partir du \n // formulaire EDIT via le Request\n // aussi on a utiliser StorePost la class qui sert\n // a verifier les condition required ... pour les \n // donnes envoyer via le formulaire\n\n ## on recupere l'element a modifier a partir de son id\n $post = Post::findOrFail($id);\n\n // on verifier si l'utilisateur connecter a les previleges\n // pour modifier le Post : \n // if (Gate::denies('post.update', $post)) {\n // // si denies() return true, l'utilisateur\n // // n'a pas de priveleges\n // // abort(403) permet d'afficher page error 403\n // abort(403, \"You don't Have Access dude :p \");\n // }\n \n $this->authorize('update', $post);\n\n if ($request->hasFile('picture')) {\n\n // store the picture and get the link\n // posts : le nom du dossier qui contient les images\n $path = $request->file('picture')->store('posts');\n \n \n // on verifier si le post a modifier, contient deja une image\n if ($post->image) {\n # on supprime l'ancienne image physiquement : \n Storage::delete($post->image->path);\n # image exist, on la modifier avec la nouvelle valeur\n // du path qu'on a recupere : \n $post->image->path = $path;\n $post->image->save();\n\n }else{\n // if the post doesn't contain an image, on la cree : \n // dans le cas d'utilisation de imageable\n // on utilise :make, ou lieu de :create\n $post->image()->save(Image::make([\n 'path' => $path\n ]));\n }\n //store picture link into DB : \n $image = new Image([\n 'path' => $path\n ]);\n \n // liee l'image avec le Post,\n # image() : la methode de liaison definit au niveau du Post Model\n # $image : the variable that contain the Path of the Picture\n $post->image()->save($image);\n }\n\n $post->title = $request->input('title');\n $post->content = $request->input('content');\n $post->slug = Str::slug( $post->title, '-');\n\n $post->save();\n\n // delete cache from show()\n Cache::forget(\"post-show-{$post->id}\");\n // delete cache from show()\n Cache::forget('postList');\n\n $request->session()->flash('status', 'Post Updated Success');\n return redirect(route('posts.show', ['post'=>$post->id]));\n\n }", "public function update(Request $request, Post $post)\n {\n $request->validate($this->validationData());\n\n if (!Auth::check()) {\n abort('404');\n }\n\n\n\n $requested_data = $request->all();\n $post->title = $requested_data['title'];\n $post->content = $requested_data['content'];\n $post->user_id = Auth::id();\n // $path = $request->file('image')->store('images', 'public');\n // $post->image = $path;\n\n if (isset($requested_data['image'])) {\n $path = $request->file('image')->store('images', 'public');\n $post->image = $path;\n\n } else {\n $post->image = '';\n }\n\n $post->update();\n\n $post->save();\n\n\n return redirect()->route('posts.show', $post);\n\n }", "public function update(Request $request, Post $post)\n {\n $response = Gate::inspect('update', $post);\n if (!$response->allowed()) {\n return response()->view(\"posts.edit\", [\"post\" => $post, \"errorMsg\" => $response->message()], 403);\n }\n\n\n $post->title = $request[\"title\"];\n $post->body = $request[\"body\"];\n\n try {\n $post->save();\n } catch (QueryException $e) {\n return response()->view(\"posts.edit\", [\"post\" => $post, \"errorMsg\" => \"There was an error!\"], 400);\n }\n\n return redirect(\"/\");\n }", "public function update(Request $request, $id)\n {\n //تحيث البيانات بعد تعديلها\n \n $post= Post::find($id);\n if (auth()->user()->can('update', $post)) {\n $post->body=$request->get('body');\n $post->save();\n return redirect('post/'.$id);\n }\n else\n return redirect('not_found'); \n\n }", "public function noticia_update_action()\r\n {\r\n $post = new PostFix();\r\n $id_post = Inputs::input($_POST['id_post']);\r\n $post->updateInfo($id_post, $_POST['titulo'], $_POST['subtitulo'], $_POST['corpo'], $_POST['id_user']);\r\n header(\"Location:\" . BASE_URL . \"noticias/noticia_update_form/?id=\" . $id_post);\r\n exit;\r\n }", "public function update(PostRequest $request, $id)\n {\n\n /* $post = Post::findOrFail($id);\n $post->update([\n 'title' => $request->title,\n 'content' => $request->content,\n 'user_id' => auth()->user()->id\n ]); */\n\n $post = Post::findOrFail($id);\n $post->update($request->all());\n\n return redirect('admin/post')->with('status', 'Updated post successfully.');\n }", "function updatePost($id){\n //get input data from edit post blade\n $title=request('title');\n $image=request('image');\n $content=request('content');\n\n \n //update data in db(require update id)\n $updateData=Post::find($id);\n $updateData->title=$title;\n $updateData->content=$content;\n\n if($image){\n //move image file to public path\n $imageName=uniqid().'_'.$image->getClientOriginalName();\n $image->move(public_path('images/postPhotos'),$imageName);\n //image name to db\n $updateData->image=$imageName;\n }\n $updateData->update();\n //return back\n return back()->with('message',\"updated post\"); \n }", "function editPost($role_id)\n\t{\n\t\tglobal $conn, $title, $post_slug, $body, $published, $isEditingPost, $post_id;\n\t\t$sql = \"SELECT * FROM posts WHERE id=$role_id LIMIT 1\";\n\t\t$result = mysqli_query($conn, $sql);\n\t\t$post = mysqli_fetch_assoc($result);\n\t\t// set form values on the form to be updated\n\t\t$title = $post['title'];\n\t\t$body = $post['body'];\n\t\t$published = $post['published'];\n\t}", "public function edit(Post $post)\n {\n if (Gate::denies('edit-owner', $post)) {\n return redirect('/posts/'. $post->id);\n }\n return view('posts.edit', compact('post'));\n }", "public function edit_postAction() {\n\t\t$info = $this->getPost(array('status','id','award'));\n\t\t$ret = Gc_Service_OrderShow::updateOrderShow($info, intval($info['id']));\n\t\tif (!$ret) $this->output(-1, '操作失败');\n\t\t$this->output(0, '操作成功.');\n\t}", "public function update(UsersRepository $user, Post $post)\n {\n return $user->role==='root';\n }", "public function edit_postAction() {\r\n\t\t$info = $this->getPost(array('id', 'sort', 'title', 'img', 'status', 'hits'));\r\n\t\t$info = $this->_cookData($info);\r\n\t\t$ret = Game_Service_Category::updateCategory($info, intval($info['id']));\r\n\t\tif (!$ret) $this->output(-1, '操作失败');\r\n\t\t$this->output(0, '操作成功.'); \t\t\r\n\t}", "public function update(PostFormRequest $request, Post $post)\n {\n $post->title = title_case($request->title);\n $post->slug = str_slug($request->title, '-');\n $post->category_id = $request->post_category;\n $post->user = $request->post_user;\n $post->content = $request->content;\n // $post->status = $request->post_status;\n\n $post->save();\n\n $this->assignStatus($post, $request);\n\n $post->tags()->detach();\n \n $post->tags()->attach($request->tag);\n\n return redirect()->route('post.edit', $post->slug)->with('status', 'Post updated successfully!');\n \n }", "public function update() {\n // without an id we just redirect to the error page as we need the post id to find it in the database\n if (!isset($_GET['id']))\n return call('pages', 'error');\n \n // we use the given id to get the right post and delete from the database\n $post = Post::update($_GET['id']);\n require_once('view/posts/submit.php');\n }", "public function update(Request $request, Post $post)\n {\n // Validar datos del post\n $request->validate([\n 'name' => 'required|max:255',\n 'slug' => 'required|max:255|unique:posts,slug,'. $post->id,\n 'extract' => 'required',\n 'body' => 'required',\n 'category_id' => 'required|exists:categories,id',\n 'user_id' => 'required|exists:users,id'\n ]);\n\n $post->update($request->all());\n return PostResource::make($post);\n }", "public function __invoke(UpdateRequest $request, Post $post)\n {\n $post->update([\n \"title\" => request()->has('title') ? request()->input('title') : $post->title,\n \"description\" => request()->has('description') ? request()->input('description') : $post->description,\n ]);\n return redirect('dashboard')->with(\"message\", __('Post updated successfully'));\n }", "public function edit($id)\n {\n $post=Post::find($id);\n\n\n //Check if the user is the owner of that post\n\n if(auth()->user()->id !==$post->user_id)\n {\n return view('/posts')->with('error','You are not the owner of this post');\n }\n\n return view('posts.edit')->with('post',$post);\n }", "public function update(Request $request, $id)\n { \n $post = Post::find($id);\n $this->authorize('update', $post);\n $request['title'] = Str::random(15);\n $request['user_id'] = Auth::user()->id;\n\n $this->validate($request, [\n 'title' => 'required',\n ]);\n\n \n $data = $request->all();\n $post->update($data);\n\n return response()->json([\n 'post' => $post\n ]);\n\n //}\n }", "public function edit_postAction() {\n\t\t$info = $this->getPost(array('id', 'status'));\n\t\t$ret = Activity_Service_ShareQq::update($info, intval($info['id']));\n\t\tif (!$ret) $this->output(-1, '操作失败');\n\t\t$this->output(0, '操作成功.');\n\t}", "public function editPost ($id) \n {\n //we can accidently be redirected here again\n if (session(\"deleted-$id\")) {\n return $this->safeRedirect();\n }\n \n $post = Auth::user()->getPost($id);\n \n //if post not found or it's not yours\n if ($post == NULL) {\n abort(404);\n }\n \n return view('edit',[\n 'me' => Auth::user(),\n 'themes' => Theme::all(),\n 'post' => $post,\n 'owner' => true, //if you own content on this page\n 'user' => Auth::user() //user who own content on this page\n ]);\n }", "public function update(PostSaveRequest $request, $post)\n {\n $post = $this->repository->find($post);\n $this->authorize('update', $post);\n\n $this->service->update($request->validated(), $post);\n\n // $this->notifyAdminViaSlack(\"This message will send to admin\");\n return redirect()->route('post.show', $post->id);\n }", "public function update(UpdatePostPut $request, Post $post)\n {\n\n // dd($request->tags_id);\n\n //$post->tags()->attach(1);\n \n $post->tags()->sync($request->tags_id);\n\n $post->update($request->validated());\n return back()->with('status', 'Post actualizado con exito');\n }", "public static function update( $post_data )\n\t\t{\n\t\t\t\n\t\t\t$company_id = Security::decr( $post_data['company_id'] );\t\n\t\t\n\t\t\tDB::table(self::$table)\n\t\t\t\t->where('hash', '=', $post_data['hash'])\n\t\t\t\t->update(\n\t\t\t\t\tarray(\n\t\t\t\t\t\t'title' \t\t=> (string) $post_data['title'],\n\t\t\t\t\t\t'description'\t=> (string) $post_data['description'],\n\t\t\t\t\t\t'status'\t\t=> (string) $post_data['status'],\n\t\t\t\t\t\t'company_id'\t=> (string) $company_id\n\t\t\t\t\t)\n\t\t\t\t);\n\t\t}", "public function update(Request $request, Post $post)\n {\n $request->validate([\n 'title' => 'required',\n 'body' => 'required',\n ]);\n if (isset($request->image)) {\n Storage::delete('public/' . $post->featured_image);\n $path = $request->file('image')->store('featured_images', 'public');\n $post->featured_image = $path;\n }\n $post->title = $request->title;\n $post->body = $request->body;\n $post->published_at = $request->published_at;\n if(isset($request->author)){\n $post->user_id = $request->author;\n }\n $post->save();\n $post->categories()->sync($request->categories);\n \n //postavlja poruku koja vazi samo 1 request, osim ako se ne obnovi (flash i with rade isto)\n //$request->session()->flash('success','Uspešno ste izmenili članak');\n return redirect()->back()->with('success', 'Uspešno ste izmenili članak');\n }", "public function edit(Post $post)\n {\n if (! Gate::allows('admin-post', $post)) {\n abort(403);\n }\n \n $categories = Category::all();\n\n // $post = Post::with('category')->whereHas('user', function ($query) {\n // return $query->where('user_id', auth()->user()->id);\n // })->first();\n\n // Possible depuis laravel 8.57 et plus opti\n $post = Post::with('category')->whereRelation('user', 'user_id', auth()->user()->id)->first();\n\n return view('posts.edit', compact('post', 'categories'));\n }", "public function update(CreateUpdatePost $request, Post $post)\n {\n $post->update([\n 'title' => $request['title'],\n 'content' => $request['content']\n ]);\n\n return Redirect::route('posts.show', [$post->id]);\n }", "public function wpcd_change_app_owner_after_save_post( $post_id ) {\n\n\t\t// Remove the wpcd_app_owner meta - we dont' want a separate meta since that could be confusing.\n\t\t// The post author is the owner so no need to have a separate meta stored in the db.\n\t\tdelete_post_meta( $post_id, 'wpcd_app_owner' );\n\n\t}", "public function update(Request $request, $id)\n {\n $this->validate(request(),[\n 'title' => 'required|min:5|unique:posts,slug,.($id)',\n //'image' => 'image|mimes:jpeg,jpg,png,gif|max:10000',\n 'categories' => 'required',\n //'tags' => 'required',\n 'body' => 'required|min:20',\n ]);\n $post= Post::find($id);\n $post->title= $request['title'];\n function make_slug($string) {\n $trim_data= preg_replace('/\\s+/u', '-', trim($string));\n $lower_data= strtolower($trim_data) ;\n return $lower_data;\n }\n $post->slug= make_slug($request->title);\n // IMAGE\n if($request->image !=''){\n $destinationPath = public_path('/images/post');\n $file = $request->image;\n $ext = $request->image->getClientOriginalExtension();\n $fileName = make_slug($request->title).'.'.$ext;\n if(file_exists($destinationPath.'/'.$fileName)){\n @unlink($destinationPath.'/'.$fileName);\n }\n $file->move($destinationPath, $fileName);\n $post->image = $fileName;\n }\n // image\n $post->body= $request['body'];\n if(isset($request->status)){\n $post->status=true;\n }\n else{\n $post->status=false;\n }\n // only for admin\n $post->is_approved= 1;\n //$post->user_id= Auth::user()->id;\n\n // $post->user_id= \\Auth::user()->id; // no need auth id when update\n\n \n $post->update();\n // category and ppost data goes to pivot table [category_post],[post_tag] table\n $post->categories()->sync($request->categories);\n $post->tags()->sync($request->tags);\n session()->flash('msg', 'Successfully Update Post');\n return redirect()->back();\n }", "public function editPost(int $postId, array $post) {\n $userController = new UserController();\n $userController->redirectIfNotConnected();\n\n if ( count($this->getErrors() ) == 0) {\n $postModel = new PostModel();\n $postModel->updatePost($postId, $post);\n\n $role = $_SESSION['user']['role'];\n $userId = $_SESSION['user']['id'];\n\n header(\"Location: index.php?action=account&id=$userId\");\n\n } else {\n \n $_SESSION['userEditPost']['errors'] = $this->getErrors();\n\n header(\"Location:index.php?id=$postId&action=editPostView\");\n }\n }", "public function edit(Post $post)\n {\n if($post->user_id != Auth::id())\n {\n Toastr::error('Unauthorized access denied!','Error');\n return redirect()->back();\n }\n\n $categories = Category::all();\n $tags = Tag::all();\n return view('author.author_post.ApostEdit',compact('post','categories','tags'));\n }", "public function update(Post $post,PostRequest $request)\n\t{\n\t\t$post->update($request->all());\n return redirect('posts')->with('flash_message','Post updated!');\n\t}", "function editnewsfeed(){\n if($_SERVER['REQUEST_METHOD'] === 'POST'){\n $post_id=$this->helper->getUriSegment(2);\n $user_id=$_POST['user_id'];\n $content=$_POST['content'];\n if(intval($user_id) == 0 || strlen($content) == 0 || intval($post_id) == 0 ){\n $arr[0]['Result'] = 0;\n\t $arr[0]['MSG'] = 'please send all required data';\n echo json_encode($arr);\n die;\n }\n $details = $this->post->getpost($post_id);\n if(!$details){\n $arr[0]['Result'] = 0;\n\t $arr[0]['MSG'] = 'invalid post id';\n echo json_encode($arr);\n die; \n }\n if($details['author'] != $user_id){\n $arr[0]['Result'] = 0;\n\t $arr[0]['MSG'] = 'You are not authorized to update this post.';\n echo json_encode($arr);\n die; \n }\n $args=array(\n 'post_type'=>'newsfeed',\n 'content'=>$content,\n 'author'=>$user_id\n );\n $where = array( 'ID' => $post_id );\n $update=$this->post->update_post($args,$where);\n\n if(isset($_FILES[\"image\"])){\n\n $validextensions = array(\"jpeg\", \"jpg\", \"png\");\n $temporary = explode(\".\", $_FILES[\"image\"][\"name\"]);\t\t\t\n $file_extension = end($temporary);\n $newfilename='';\n\n if (($_FILES[\"image\"][\"type\"] == \"image/png\") || ($_FILES[\"image\"][\"type\"] == \"image/jpg\") || ($_FILES[\"image\"][\"type\"] == \"image/jpeg\")) {\n $sourcePath = $_FILES['image']['tmp_name']; \n $t=time();\n $path = dirname($_SERVER[\"SCRIPT_FILENAME\"]).'/images/posts/';\n $newfilename = $t.\".\".($file_extension == 'jpeg' ? 'jpg' : $file_extension);\n\t $targetPath = $path.$newfilename; \n move_uploaded_file($sourcePath,$targetPath);\n $this->post->add_post_meta($post_id,'feature_image',$newfilename);\n } \n }\n\n \t $json[0]['result']=1;\n\t $json[0]['msg']='News updated successfully';\n\t echo json_encode($json);\n\t die; \n }else{\n $arr[0]['Result'] = 0;\n\t$arr[0]['MSG'] = 'please call required method';\n echo json_encode($arr);\n }\n }", "public function edit()\n {\n session_start();\n\n // Falls der Benutzer eingeloggt ist wird ihm die Edit View angezeigt, ansonsten ein Fehler\n if (isset($_SESSION['isLoggedIn']) && !empty($_SESSION['isLoggedIn'])) {\n $post = $this->postRepository->readById($_GET['id']);\n $view = new View('post/edit');\n $view->title = 'Post editieren';\n $view->post = $post;\n $view->display();\n } else {\n header('Location: /user/index/?error=Du bist nicht eingeloggt!');\n }\n }", "public function update(UpdatePostRequest $request, Post $post)\n {\n $this->authorize('update', $post);\n\n $post->excerpt = $request->get('excerpt', $post->excerpt);\n $post->body = $request->get('body', $post->body);\n $post->active = $request->get('active', $post->active);\n\n if($request->featured){\n $post->featured = $this->storeFile($request->featured, $post->slug);\n }\n\n if ($post->active)\n {\n $post->published_at = now();\n }\n\n $post->save();\n\n return new PostResource($post);\n }", "public function update($post_id, Request $request)\n {\n $post = Post::findOrFail($post_id);\n\n $validatedData = $request->validate([\n 'title' => 'required|max:512',\n 'picture' => 'required',\n ]);\n\n $post->title = $validatedData['title'];\n $post->edited = 1;\n\n $post->save();\n\n $post->tags()->detach();\n\n if(!is_null($request['tag_checkbox_1']))\n {\n $post->tags()->attach($request['tag_checkbox_1']);\n }\n\n if(!is_null($request['tag_checkbox_2']))\n {\n $post->tags()->attach($request['tag_checkbox_2']);\n }\n\n $post->image()->delete();\n $post->image()->create(['filename' => $validatedData['picture']]);\n\n session()->flash('message', 'Post edited successfully');\n\n return $this->show_per_user($post->user_id);\n }", "public function edit(Post $post)\n {\n //\n }", "public function update(Request $request, Post $post)\n {\n $this->authorize('update', $post);\n\n $validData = $request->validate($post->validations($post->id));\n\n if ($request->hasFile('banner_path')) {\n\n $post->removeBannerImage();\n $validData['banner_path'] = request()->file('banner_path')->store('posts/images', 'public');\n\n }\n\n if ($request->hasFile('card_path')) {\n\n $post->removeCardImage();\n $validData['banner_path'] = request()->file('card_path')->store('posts/images', 'public');\n\n }\n\n $post->update($validData);\n\n return redirect(route('user-posts', $post->user->name))->with('flash', [\n 'type' => 'success',\n 'message' => 'Post updated.'\n ]);\n }", "public function edit_postAction(){\n\t\t$info = $this->getPost(array('id', 'content', 'status'));\n\t\t$info = $this->_cookData($info);\n\t\t\n\t\t$ret = Gou_Service_ForumReply::updateForumReply($info, $info['id']);\n\t\tif (!$ret) $this->output(-1, '操作失败.');\n\t\t$this->output(0, '操作成功.');\n\t}" ]
[ "0.6813018", "0.6665578", "0.66590816", "0.66521055", "0.6634157", "0.6611153", "0.6598903", "0.6502485", "0.64940155", "0.6474352", "0.6469266", "0.64361596", "0.6431349", "0.6417117", "0.63941264", "0.6376334", "0.6357697", "0.6327405", "0.6311723", "0.62975204", "0.62891304", "0.62746525", "0.6271327", "0.62699705", "0.62594104", "0.62410676", "0.6217918", "0.6211879", "0.6198275", "0.6189279", "0.6184463", "0.61583585", "0.61322945", "0.61218876", "0.6116591", "0.61110693", "0.61110693", "0.6104513", "0.6104414", "0.61003196", "0.6095887", "0.6095887", "0.6095887", "0.6095887", "0.6095887", "0.6095887", "0.6095887", "0.6095887", "0.6095887", "0.6095887", "0.6095887", "0.6095887", "0.6095887", "0.6095887", "0.6095887", "0.6095887", "0.6089542", "0.6086176", "0.6075776", "0.60710925", "0.6063667", "0.6063564", "0.605639", "0.6055739", "0.6044611", "0.6020527", "0.6020523", "0.60020995", "0.60018134", "0.6001128", "0.5995339", "0.59952265", "0.5993678", "0.59890115", "0.5988241", "0.5986083", "0.5982032", "0.5962528", "0.5962253", "0.5960814", "0.59581065", "0.5955807", "0.5951982", "0.59488595", "0.5947287", "0.593467", "0.593006", "0.59297633", "0.592148", "0.5919096", "0.5917869", "0.59169334", "0.5915886", "0.5915651", "0.59129846", "0.590898", "0.5908649", "0.5905693", "0.5902824", "0.5898669", "0.58938855" ]
0.0
-1
Deletes a post for the authorised owner
public function delete(Request $request, Post $post): JsonResponse { // checks if the user is the owner of the post $this->authorize('delete', $post); $post->tags()->detach(); $post->delete(); return new JsonResponse([], 202); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function deletePost() {\n\t\tif( !isset($_SESSION['id']) ) {\n\t\t\treturn;\n\t\t}\n\t\t// Make sure the user owns this post\n\t\t$postID = $this->dbc->real_escape_string($_GET['postid']);\n\t\t$userID = $_SESSION['id'];\n\t\t$privilege = $_SESSION['privilege'];\n\t\t\n\t\t// If the user is not an admin\n\t\tif( $privilege != 'admin' ) {\n\t\t\t$sql .= \" AND user_id = $userID\";\n\t\t}\n\t\t// Run this query\n\t\t$result = $this->dbc->query($sql);\n\t\t// If the query failed\n\t\t// Either post doesn't exist, or you don't own the post\n\t\tif( !$result || $result->num_rows == 0 ) {\n\t\t\treturn;\n\t\t}\n\t\t$result = $result->fetch_assoc();\n\t\t\n\t\t// Prepare the SQL\n\t\t$sql = \"DELETE FROM posts\n\t\t\t\tWHERE id = $postID\";\n\t\t// Run the query\n\t\t$this->dbc->query($sql);\n\t\t// Redirect the user back to blog\n\t\t// This post is dead :(\n\t\theader('Location: index.php?page=blog');\n\t\tdie();\n\t}", "public function destroy(Post $post)\n {\n //se hace referencia al Policy asociado al User\n $this->authorize('author', $post);\n\n $post->delete();\n return redirect()->route('admin.posts.index')->with('info', 'El Post se elimino con exito'); \n }", "public function deleteAction()\n {\n $postId = (int)$this->params()->fromRoute('id', -1);\n \n // Validate input parameter\n if ($postId<0) {\n $this->getResponse()->setStatusCode(404);\n return;\n }\n \n $post = $this->entityManager->getRepository(Post::class)\n ->findOneById($postId); \n if ($post == null) {\n $this->getResponse()->setStatusCode(404);\n return; \n }\n \n if (!$this->access('post.own.delete', ['post'=>$post])) {\n return $this->redirect()->toRoute('not-authorized');\n }\n \n $this->postManager->removePost($post);\n $this->imageManager->removePost($postId);\n $this->videoManager->removePost($postId);\n $this->audioManager->removePost($postId);\n \n // Redirect the user to \"admin\" page.\n return $this->redirect()->toRoute('posts', ['action'=>'admin']); \n \n }", "public function destroy(Post $post)\n {\n/* \n $user = Auth::user();\n if (Gate::forUser($user)->denies('delete-post', $post)) {\n return redirect()->back();\n } */\n\n /* if (Auth::user()->cant('delete', $post)) {\n return redirect()->route('posts.my')->with('message','No tienes permisos para eliminar este post');\n } */\n\n $this->authorize('delete', $post);\n $post->delete();\n \n return redirect()->route('posts.index')->with('message','Post Eliminado');\n \n }", "public function destroy(Post $post)\n {\n if (!Gate::allows(\"post-owner\", $post)) {\n abort(403);\n }\n\n // Delete previous non-default image\n if ($post->image !== Post::DEFAULT_IMAGE_PATH) {\n Storage::disk(\"public\")->delete($post->image);\n }\n\n $post->delete();\n\n return redirect(route(\"dashboard.posts.index\"))->with(\n \"status\",\n \"Pomyślnie usunięto wpis\"\n );\n }", "public function destroy(Posts $post)\n {\n $this->authorize('delete',$post);\n $post->delete();\n return redirect()->route('posts.index');\n }", "public function delete() {\n\t\t$db = self::getDB();\n\t\t$sql = \"DELETE FROM posts \n\t\t\t\tWHERE\n\t\t\t\t\tidPost = :idPost \";\n\t\t$query = $db->prepare($sql);\n\t\t$query->execute([\n\t\t\t':idPost' => $this->getIdPost()\n\t\t]);\n\t}", "public function destroy(Post $post) {\n $this -> authorize('delete', $post); // this will throw an exception and render out status code 403\n $post -> delete();\n\n return back();\n }", "public function destroy(Post $post)\n {\n if ($post->user_id != Auth::id()) {\n abort(403);\n }\n\n $post->delete();\n\n return redirect()->action([__CLASS__, 'index']);\n }", "public function destroy(Post $post)\n {\n if($post->user_id != auth()->user()->id && auth()->user()->is_admin == false) {\n flash()->overlay(\"You can't delete other peoples post.\");\n return redirect('/admin/posts');\n }\n\n $post->delete();\n flash()->overlay('Post deleted successfully.');\n\n return redirect('/admin/posts');\n }", "public function destroy(Post $post)\n {\n /*\n Constraint: ON DELETE=RESTRICTED\n Before deleting any post is necessary to remove any constraint between tags and posts\n Using sync() removes all previous tags and adds the new ones but if the array is empty it adds nothing\n */\n // Removing all the tags connected to the post to be deleted\n $post->tags()->sync([]);\n // Deleting the post\n $post->delete();\n return redirect()->route('admin.posts.index');\n }", "public function destroy(Post $post)\n {\n if ($post->user_id != auth()->user()->id && auth()->user()->is_admin == false) {\n flash()->overlay(\"You can't delete other peoples post.\");\n return redirect('/admin/posts');\n }\n\n $post->delete();\n flash()->overlay('Post deleted successfully.');\n\n return redirect('/admin/posts');\n }", "public function delete(User $user, Post $post);", "public function destroy(Post $post)\n {\n if (! Gate::allows('admin-post', $post)) {\n abort(403);\n }\n\n $post->delete();\n\n return redirect()->route('dashboard')->with('success', 'Votre post a bien été supprimé');\n }", "public function destroy(Post $post)\n {\n $post->delete();\n return redirect()->route('ownposts');\n }", "public function destroy(Post $post){\n $post->delete();\n }", "public function destroy(Post $post)\n {\n $this->authorize('delete', $post);\n\n $name = $post->user->name;\n\n $post->delete();\n\n return redirect(route('user-posts', $name))->with('flash', [\n 'type' => 'danger',\n 'message' => 'Post deleted.'\n ]);\n }", "public function destroy(Post $post)\n {\n\n $post->delete();\n\n redirect('/posts');\n }", "public function destroy(Post $post)\n {\n $post->delete();\n\n if (Auth::user()->admin && Auth::id() !== $post->user_id) {\n // if Post was deleted by an admin user, send notification to User who posted post\n $post->user->notify(new PostDeletedByAdmin());\n }\n\n return redirect()\n ->route('home')\n ->with('message', 'Post deleted.');\n }", "public function destroy(post $post)\n {\n //\n }", "public function destroy($post)\n {\n $post->delete();\n return redirect()->route('dashboard.posts.index');\n }", "public function destroy(Post $post) {\n //\n }", "public function deleteAction() {\n\t\t// if($post->delete()) {\n\t\t// \tSession::message([\"Post <strong>$post->name</strong> deleted!\" , \"success\"]);\n\t\t// \tredirect_to('/posts/index');\n\t\t// } else {\n\t\t// \tSession::message([\"Error saving! \" . $error->get_errors() , \"success\"]);\n\t\t// }\n\t}", "public function destroy(Post $post)\n {\n //\n }", "public function destroy(Post $post)\n {\n //\n }", "public function destroy(Post $post)\n {\n //\n }", "public function destroy(Post $post)\n {\n //\n }", "public function destroy(Post $post)\n {\n //\n }", "public function destroy(Post $post)\n {\n //\n }", "public function destroy(Post $post)\n {\n //\n }", "public function destroy(Post $post)\n {\n //\n }", "public function destroy(Post $post)\n {\n //\n }", "public function destroy(Post $post)\n {\n //\n }", "public function destroy(Post $post)\n {\n //\n }", "public function destroy(Post $post)\n {\n //\n }", "public function destroy(Post $post)\n {\n //\n }", "public function destroy(Post $post)\n {\n //\n }", "public function destroy(Post $post)\n {\n //\n }", "public function destroy(Post $post)\n {\n //\n }", "public function destroy(Post $post)\n {\n $response = Gate::inspect('delete', $post);\n if (!$response->allowed()) {\n return redirect(\"/\");\n }\n\n $post->delete();\n return redirect(\"/dashboard\");\n }", "public function delete() {\n\t\t$query = new WP_Query( array(\n\t\t\t'name' => $this->params['post_name'],\n\t\t\t'post_type' => $this->params['post_type']\n\t\t) );\n\n\t\t$post = array_shift( $query->posts );\n\n\t\t// die('<pre>'.var_export($post,true).'</pre>');\n\n\t\tif ( $post ) {\n\t\t\t$current_action = $this->get_current_action();\n\t\t\t$this->action_results[ 'status' ] = 'success';\n\t\t\t$this->action_results[ 'messages' ][ $post->post_type ][ $post->ID ][ 'note' ] = __( 'The information has been deleted', 'kickpress' );\n\t\t\t$this->action_results[ 'data' ][ 'post_id' ] = $post->ID;\n\n\t\t\twp_trash_post( $post->ID );\n\t\t}\n\t}", "public function destroy(Post $post)\n{\n if ($post->user_id !== auth()->id()) {\n return redirect()->route('posts.index')\n ->with('error', 'You cannot delete this post');\n }\n $post->delete();\n return redirect()->route('posts.index')\n ->with('success', 'Post deleted successfully');\n}", "public function destroy(Post $post)\n {\n $post->delete();\n return redirect()->route('admin.posts.index');\n }", "public function destroy(Post $post)\n {\n if (!auth()->user()->ability('admin', 'delete_posts')) {\n return abort(403);\n }\n if ($post->media->count() > 0) {\n foreach ($post->media as $media) {\n if (File::exists('assets/posts/' . $media->file_name)) {\n unlink('assets/posts/' . $media->file_name);\n }\n }\n }\n $post->media()->delete();\n $post->delete();\n\n return redirect()->route('admin.posts.index')->with([\n 'message' => 'Post deleted successfully',\n 'alert-type' => 'success',\n ]);\n }", "public function destroy(Post $post)\n {\n //return $post;\n if($post->user_id != Auth::id())\n {\n Toastr::error('Unauthorized access denied!','Error');\n return redirect()->back();\n }\n \n if($post)\n {\n try\n {\n if(File::exists(public_path('/upload/post/'.$post->image)))\n {\n File::delete(public_path('/upload/post/'.$post->image));\n \n }\n $post->categories()->detach(); \n $post->tags()->detach(); \n $post->delete();\n Toastr::success('The Post Successfully Deleted.', 'Success');\n return redirect()->route('author.post.index');\n }\n catch(\\Exception $e)\n {\n Toastr::error($e->getMessage());\n return redirect()->back();\n }\n }\n else\n {\n return redirect()->back();\n\n }\n }", "public function destroy(Post $post)\n {\n $post->delete();\n return redirect('/post');\n }", "public function destroy(Post $post, Request $request)\n {\n $this->authorize('delete', $post);\n\n $request->session()->put('postName', $post->title);\n Session::flash('success');\n\n if (isset($post->image)) {\n Storage::delete('public/' . $post->image);\n }\n\n $post->tags()->detach();\n $post->delete();\n\n return redirect('posts');\n }", "public function destroy(post $post)\n {\n $post->delete();\n \n return redirect()->route('posts.index'); \n }", "public function delete(){\n global $db;\n $delete = $db->prepare('DELETE FROM posts WHERE id = :id');\n $delete->bindValue(':id', $this->_id, PDO::PARAM_INT);\n $delete->execute();\n }", "public function destroy(Post $post)\n {\n $post->load('page');\n if ($post->page->user_id === auth()->user()->id || auth()->user()->role === 9) {\n $post->delete();\n\n return response(['message' => 'Removido com sucesso.']);\n }\n\n return response(['error' => 'Unauthorized'], 401);\n }", "public function delete()\n {\n $post['id'] = $this->request->getParameter('id'); // récupérer le paramètre de l'ID\n $this->post->deletePost($post['id']);\n $this->redirect(\"admin\", \"chapters\"); // une fois le post supprimé, je redirige vers la vue chapters\n }", "public function destroy(Post $post ,Request $request){\n\n // $this->authorize('delete', $notice);\n\n\n $post->delete();\n\n $request->session()->flash('message', 'Post was deleted');\n\n return back();\n }", "public function destroy() {\n $this->post->destroy();\n redirect('/backend/posts', ['notice' => 'Successfully destroyed']);\n }", "public function destroy(Post $post)\n {\n\n\n Storage::delete($post->profile);\n $post->delete();\n return redirect(route('posts.index'))->with('status', 'Delete Post Successfully!');\n }", "public function destroy(Post $post)\n {\n $this->authorize('delete', $post);\n\n foreach ($post->comments()->get() as $comment) {\n $comment->delete();\n }\n\n $post->delete();\n\n return redirect(route('posts.index'))->with('flash_message', $post->id . '번 포스트가 삭제되었습니다');\n }", "public function destroy(Post $post)\n {\n $post->delete();\n\n return \"ok\";\n }", "public function destroy(Post $post)\n {\n // gestisco la cancellazione dell'immagine, se presente. POtrei lasciare solo post->delete, ma in questo modo cancello anche il file da public, così non appesantisco il sito di file inutili\n if($post->cover) {\n Storage::delete($post->cover);\n }\n\n\n $post->delete();\n //non mi serve la cancellazione della riga nella tabella ponte, perchè è gestito da onDelete Cascade. In alternativa uso:\n // $post->tags()->detach();\n \n // faccio un redirect all'index, with ci serve per aggiungere dati alla sessione (flash). passo una chiave 'deleted' e come valore il dato che voglio fare viaggiare, nel caso voglia fare un alert con il titolo dell'articolo che voglio eliminare\n return redirect()\n ->route('admin.posts.index')\n ->with('deleted', $post->title);\n }", "public function destroy(Post $post)\n\t{\n\t\tself::deny('posts_delete');\n\n\t\ttry {\n\t\t\t$post->delete();\n\t\t\treturn redirect()->route('posts.index')->with('success', 'Post deleted successfully!');\n\t\t} catch (\\Throwable $th) {\n\t\t\tabort(400, $th);\n\t\t}\n\t}", "public function destroy($post)\n {\n $post = Post::find($post);\n $post -> delete();\n return redirect()->back();\n }", "public function destroy(Post $post)\n {\n return view('post-detail', ['msg' => 'user can delete post']); \n }", "public function destroy(Post $post)\n {\n $this->authorize('delete',$post);\n Post::destroy($post->id);\n return response()->json([\n 'message'=>'the post has deleted'\n ]);\n }", "public function deleteAction(Request $request, Post $post)\n {\n $form = $this->createDeleteForm($post);\n $form->handleRequest($request);\n\n if(!$this->getUser()){\n $this->addFlash('notice', 'You must be identified to access this section');\n return $this->redirectToRoute('post_index');\n }\n\n if ($form->isSubmitted() && $form->isValid()) {\n $em = $this->getDoctrine()->getManager();\n $em->remove($post);\n $em->flush($post);\n }\n\n return $this->redirectToRoute('post_index');\n }", "public function deleted(Post $post)\n {\n //\n $this->postElasticSearch->deleteDoc($post->id);\n }", "public function destroy(Post $post)\n {\n //$post = Post::find($id); commentata perche usiamo la versione short (Post $post)à\n\n $title = $post->title; //assegnamo il titolo ad una variabile $title\n $image = $post->path_img; //assegnamo ad img ad una variabile $image\n\n $post->tags()->detach(); //cancellare la relazine tra posts e tags\n $deleted = $post->delete(); //metodo per cancellare il titolo\n\n if ($deleted) { //verifica se c'è un post associato\n if (!empty($image)) {\n Storage::disk('public')->delete($image);\n }\n return redirect()->route('posts.index')->with('post-deleted', $title);\n } else {\n return redirect()->route('home');\n }\n }", "public function deleteActionPost(): object\n {\n // Connects to db\n $this->app->db->connect();\n\n $contentId = getPost(\"contentId\");\n\n if (!is_numeric($contentId)) {\n return $this->app->response->redirect(\"admin\");\n }\n\n if (hasKeyPost(\"doDelete\")) {\n $contentId = getPost(\"contentId\");\n\n // Executes SQL statement\n $this->admin->deleteBlogpost($contentId);\n\n // Redirects\n return $this->app->response->redirect(\"admin\");\n }\n }", "public function destroy(Post $post)\n {\n $post->delete();\n return ['message'=>'Deleted successfully'];\n }", "public function destroy(Request $request, Post $post)\n {\n $post->delete();\n\n if ($request->user()->hasRole('admin')) {\n return redirect()\n ->route('models.show', [\n 'user' => $post->user\n ])\n ->with('success', 'Successfully removed post');\n }\n\n return redirect()\n ->route('admin.posts.index')\n ->with('success', 'Successfully removed post');\n }", "public function destroy(post $post)\n {\n $post->delete();\n return redirect()->route('post.index');\n\n }", "public function delete(User $user, Post $post)\n {\n //\n }", "public function destroy(post $post)\n {\n $post->delete();\n return redirect()->route('posts.index')->with('message', 'Deleted successful!');\n }", "public function destroy(Post $post)\n {\n $post->delete();\n\n return redirect(route('post.index'));\n }", "public function deletePost(\\post\\model\\Post $post) {\n\t\t//Remove the post.\n\t\t$this->postDAL->deletePost($post);\n\t}", "public function destroy($id)\n {\n $post=Post::find($id);\n\n if((auth()->user()->id !==$post->user_id) && (auth()->user()->name !='admin') )\n {\n return view('/posts')->with('error','You are not the owner of this post');\n }\n $post->delete();\n if(auth()->user()->name==='admin')\n {\n return redirect('/home/admin/posts')->with('success','Vehicle removed');\n }\n return redirect('/posts')->with('success','Vehicle removed');\n }", "public function delete(Post $post)\n {\n $this->authorize('delete', $post);\n\n return view('posts.delete', compact('post'));\n }", "public function destroy(Post $post)\n {\n if ($post->user_id != Auth::id()) {\n return $this->sendError('unauthorized');\n }\n $post->delete();\n return $this->sendResponse(new PostResource($post), 'Post deleted successfully');\n }", "public function destroy(Request $request, Post $post)\n {\n $client = $request->user();\n\n if ($client->cannot('delete_article')) {\n return response()->json([\n 'error' => 'Forbidden',\n ], 403);\n }\n\n $post->delete();\n\n return response()->json(null, 204);\n }", "public function destroy(Post $post)\n {\n// unlink($category->image);\n $post->delete();\n return redirect(route('post.index'));\n }", "function delete ($post) {\n \tif ( !isset($post['id']) || !User::exists($post['id']) ) {\n \t\t$_SESSION['fail'] = \"You must select a user\";\n \t\theader( 'Location: index.php?action=index');\n \t\texit;\n \t}\n \t\n \t// delete the record\n \t$user = User::find( $post['id']);\n \t$user->delete();\n \t\n \t// set our success redirect\n \t$_SESSION['success'] = 'The user was deleted successfully.';\n \theader( 'Location: index.php?action=index');\n \texit;\n }", "public function destroy(Post $post)\n {\n $this->authorize('delete', $post);\n $post->delete();\n return response()->json([\n 'message' => 'deleted success',\n ]);\n }", "public function destroy(Post $post)\n {\n $post->delete();\n\n Session::flash('info', 'Post deleted');\n return redirect()->route('post.trashed');\n }", "public function destroy( Post $post ){\n\n $post ->delete();\n return redirect()->route('posts.index')->with(['success' => 'supprimer avec succès']);\n }", "public function destroy(Request $request, Post $post)\n {\n try {\n $post->update(['updated_by' => Auth::user()->id]);\n $post->delete();\n }catch (\\Exception $exception){\n dd($exception->getMessage());\n }\n\n Session::flash('danger', 'پست مورد نظر با موفقیت پاک شد');\n\n if($request->header('referer') == URL::to('/posts/drafts')) {\n return redirect(route('posts.draft'));\n }\n\n return redirect(route('posts.index'));\n }", "public function delete($idPost);", "public function destroy($id)\n {\n //\n $post = Post::find($id);\n /* if ($post->user_id==auth()->user()->id) { */\n if (auth()->user()->can('delete', $post)) {\n $post->delete();\n return redirect('user/posts');\n }\n else\n return redirect('not_found'); \n }", "public function destroy(Post $post)\n {\n $post->delete();\n return redirect()->route('home');\n }", "public function deleting(Post $post)\n {\n //-------we delete picture and comments before deletd post -----------\n\n $post->picture()->delete();\n $post->comments()->delete();\n // delete picture physicly and comments before delete physic post and after post is deleted logic =>(picture,comments was deleted)\n if($post->deleted_at)\n {\n $post->comments()->forceDelete();\n $post->picture()->forceDelete();\n }\n }", "public function destroy(Post $post)\n {\n $post->delete();\n\n return redirect()->back();\n }", "public function destroy(Post $post)\n {\n $post->delete();\n\n Session::flash('Deleted', \"Post deleted successfully!\");\n return redirect()->route('posts.index');\n }", "public function destroy(Post $post)\n {\n $post->delete();\n\n return redirect()->route('posts.index');\n }", "public function deleteAction() {\n\n //GET POST SUBJECT\n $post = Engine_Api::_()->core()->getSubject('sitereview_post');\n\n //GET LISTING SUBJECT\n $sitereview = $post->getParent('sitereview_listing');\n\n //GET VIEWER\n $viewer = Engine_Api::_()->user()->getViewer();\n\n if (!$sitereview->isOwner($viewer) && !$post->isOwner($viewer)) {\n return $this->_helper->requireAuth->forward();\n }\n\n //AUTHORIZATION CHECK\n if (!$this->_helper->requireAuth()->setAuthParams($sitereview, null, \"view_listtype_$sitereview->listingtype_id\")->isValid())\n return;\n\n //MAKE FORM\n $this->view->form = $form = new Sitereview_Form_Post_Delete();\n\n //CHECK METHOD\n if (!$this->getRequest()->isPost()) {\n return;\n }\n\n //FORM VALIDATION\n if (!$form->isValid($this->getRequest()->getPost())) {\n return;\n }\n\n //PROCESS\n $table = Engine_Api::_()->getDbTable('posts', 'sitereview');\n $db = $table->getAdapter();\n $db->beginTransaction();\n $topic_id = $post->topic_id;\n try {\n $post->delete();\n $db->commit();\n } catch (Exception $e) {\n $db->rollBack();\n throw $e;\n }\n\n //GET TOPIC\n $topic = Engine_Api::_()->getItem('sitereview_topic', $topic_id);\n\n $href = ( null == $topic ? $sitereview->getHref() : $topic->getHref() );\n return $this->_forwardCustom('success', 'utility', 'core', array(\n 'closeSmoothbox' => true,\n 'parentRedirect' => $href,\n 'messages' => array(Zend_Registry::get('Zend_Translate')->_('Post deleted.')),\n ));\n }", "public function destroy($post_id)\n {\n\n }", "public function deleting(Post $post)\n {\n if ($post->image) {\n Storage::delete([$post->image->url]);\n }\n }", "public function delete($post_id) {\n //get user id.\n if (!isset($user_id)) {\n $user_id = $this->Session->read('Auth.User.id');\n }\n //check if is any\n $conditions = array('id' => $post_id, 'uid' => $user_id);\n if ($this->SocialPosts->hasAny($conditions)) {\n $delete_update['SocialPosts']['id'] = $post_id;\n $delete_update['SocialPosts']['deleted'] = 1;\n //remove post from everywhere \n if ($this->SocialPosts->save($delete_update)) {\n //check if any scheduled\n $cond = array('post_id' => $post_id);\n if ($this->SocialScheduled->hasAny($cond)) {\n $delete = array('post_id' => $post_id);\n //remove scheduled\n $this->SocialScheduled->deleteAll($delete);\n }\n $this->Session->setFlash(__(\"Post Succesfully Removed.\"), 'cake-success');\n $this->redirect(array('action' => 'index'));\n } else {\n $this->Session->setFlash(__(\"Something Went Wrong! Please try again later.\"), 'cake-error');\n $this->redirect(array('action' => 'index'));\n }\n } else {\n //hmmm somebody sending http requests trying to delete posts?!\n $this->Session->setFlash(__(\"You are not authorized to perform this operation!\"), 'cake-error');\n $this->redirect(array('action' => 'index'));\n }\n }", "public function delete($post_id = NULL) {\n\t\t\n\t\t# Sanitize by ensuring $post_id is numeric \n\t\tif (is_numeric($post_id)) {\n\t\t\t\n\t\t\t# Ensure post to be deleted matches on post_id AND user_id of current user\n\t\t\t# to prevent users from altering URL to delete other people's posts\n\t\t\t$where_condition = \"WHERE\n\t\t\t\tuser_id = \".$this->user->user_id.\"\n\t\t\t\tAND post_id = \".$post_id;\n\t\t\t\t\n\t\t\tDB::instance(DB_NAME)->delete(\"posts\", $where_condition);\n\t\t\t\n\t\t\tRouter::redirect('/posts/stream/yours');\n\t\t}\n\t\telse {\n\t\t\tRouter::redirect('/posts/stream/yours');\n\t\t\treturn false;\n\t\t}\n\t\t\n\t}", "public function deleted(Post $post)\n {\n $post->recordActivity('deleted');\n }", "public function destroy(Post $post)\n {\n $post->delete();\n\n return redirect()->route('post.index')->with('success','post deleted successfully');\n }", "public function wpcd_app_delete_post( $post_id ) {\n\n\t\tif ( get_post_type( $post_id ) === 'wpcd_app' && ! wpcd_is_admin() ) {\n\t\t\t$user_id = (int) get_current_user_id();\n\t\t\t$post_author = (int) get_post( $post_id )->post_author;\n\t\t\tif ( ! wpcd_user_can( $user_id, 'delete_app_record', $post_id ) && $post_author !== $user_id ) {\n\t\t\t\twp_die( esc_html( __( 'You don\\'t have permission to delete this post.', 'wpcd' ) ) );\n\t\t\t}\n\t\t}\n\n\t}", "public function destroy(Post $post)\n {\n $post->delete();\n\n Session::flash('delete-message', 'Post deleted successfully');\n return redirect()->route('posts.index');\n }", "public function delete()\n\n {\n Customers::find($this->deleteId)->delete();\n session()->flash('message', 'Post Deleted Successfully.');\n\n }", "public function action_delete_post( $post_id ) {\n\n\t\tif ( ! current_user_can( 'edit_post', $post_id ) || 'revision' === get_post_type( $post_id ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\tdo_action( 'ep_delete_post', $post_id );\n\n\t\tep_delete_post( $post_id );\n\t}" ]
[ "0.7831913", "0.77858514", "0.7572588", "0.7532595", "0.7419666", "0.73531777", "0.7253379", "0.7232076", "0.72218746", "0.71948373", "0.71920097", "0.71916157", "0.718747", "0.7153811", "0.71469504", "0.7142044", "0.71060634", "0.7060825", "0.7050047", "0.7020096", "0.69910765", "0.69850296", "0.69755584", "0.69701415", "0.69701415", "0.69701415", "0.69701415", "0.69701415", "0.69701415", "0.69701415", "0.69701415", "0.69701415", "0.69701415", "0.69701415", "0.69701415", "0.69701415", "0.69701415", "0.69701415", "0.69701415", "0.69680214", "0.6952024", "0.69415635", "0.69413924", "0.69374406", "0.6931885", "0.6922644", "0.6915057", "0.6914295", "0.6913264", "0.6897429", "0.6873198", "0.68597466", "0.68562454", "0.68502325", "0.68484783", "0.68284327", "0.6828016", "0.6818546", "0.68178135", "0.68161386", "0.68084264", "0.67999965", "0.67999446", "0.6793492", "0.6792176", "0.67863554", "0.6781948", "0.67791903", "0.67785037", "0.67780185", "0.67562574", "0.67502195", "0.6746895", "0.6740065", "0.67362756", "0.67341477", "0.6732976", "0.6726189", "0.6725101", "0.6722749", "0.67108333", "0.6706355", "0.66981274", "0.6695687", "0.6692877", "0.6692443", "0.669184", "0.6690808", "0.6680835", "0.66763496", "0.6675618", "0.6671695", "0.6666482", "0.6665262", "0.66639566", "0.6654456", "0.6653452", "0.66399753", "0.66393447", "0.663601" ]
0.6709906
81
Adds a tag to the post
public function attach(AttachTagToPostRequest $request, Post $post) { $tag = Tag::find($request->tag_id); return $post->tags()->attach($tag); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function addTag()\n {\n $params = array();\n $params['db_link'] = $this->db;\n $params['ticket_id'] = $_REQUEST['ticket_id'];\n \n $data = array();\n $tagTitle = stripslashes(trim($_REQUEST['tag']));\n $tag = Utils::sanitize($tagTitle);\n \n $Tickets = new Tickets($params);\n $Tickets->addTag($tag, $tagTitle);\n \n echo '[{\"isError\":0, \"message\":\"Successfully added tag\"}]';\n exit;\n }", "public function addTagToPostInTheMiddle() {}", "function add_tag($tag) {\n array_push($this->tags, $tag);\n }", "public function addTag( $data = array() ) { \t\n\n $url = $this->_base_url . 'tags';\n $options['data']['tag'] = $data;\n $options['post'] = true;\n $this->_callAPI($url, $options);\n }", "public function add() {\n\t\t$this->display ( 'admin/tag/add.html' );\n\t}", "function add_tag($tag) {\n if (!is_object($tag)) {\n return false;\n }\n if (!isset($tag->name) or\n !isset($tag->value) or\n !isset($tag->ticketid) or\n isset($tag->id)){\n\n return false;\n }\n\n if (!insert_record('helpdesk_ticket_tag', $tag)) {\n return false;\n }\n\n // Lets make an update saying we added this tag.\n $dat = new stdClass;\n $dat->ticketid = $this->id;\n $dat->notes = get_string('tagaddedwithnameof', 'block_helpdesk') . $tag->name;\n $dat->status = HELPDESK_NATIVE_UPDATE_TAG;\n $dat->type = HELPDESK_UPDATE_TYPE_DETAILED;\n\n if(!$this->add_update($dat)) {\n notify(get_string('cantaddupdate', 'block_helpdesk'));\n }\n\n // Update modified time and refresh the ticket.\n $this->store();\n $this->fetch();\n return true;\n }", "public function insert(Tag $tag);", "public function addTag($tag)\n {\n $this->tags[] = $tag;\n $this->processTags();\n }", "private function _addTags()\n {\n $metadata = $this->getRecordMetadata();\n $this->_record->addTags($metadata[self::TAGS]);\n }", "public function tagged( $tag );", "public function addTag($tag)\r\n {\r\n if (!empty($this->data['props']['taglist'])) {\r\n $this->data['props']['taglist'] .= ',' . $tag;\r\n } else {\r\n $this->data['props']['taglist'] = $tag;\r\n }\r\n }", "function tagAdd($pid, $post = array('tag_list' => ''), $query = array(), $rawJson = false) {\n \t\t/**\n \t\t * We currently have to do the following to bypass a php to\n \t\t * rails conflict with the meaning of [] in form field names.\n \t\t * With the following, we only need to name our field \"taggable\",\n \t\t * or tag_list, but \"taggable[tag_list]\" is also supported\n \t\t */\n \t if ( isset($post['tagging']) ) {\n \t $tmp = $post['tagging'];\n \t\t unset($post['tagging']);\n \t\t if ( is_array($post['tagging']) ) {\n \t\t foreach ($tmp as $key => $value)\n \t\t $post[\"tagging[$key]\"] = $value;\n \t\t} else {\n \t\t $post['tagging[tag_list]'] = $tmp;\n \t\t}\n \t\t} elseif ( isset($post['tag_list']) ) {\n \t\t $tmp = $post['tag_list'];\n \t\t unset($post['tag_list']);\n \t\t $post['tagging[tag_list]'] = $tmp;\n \t\t}\n \t\t\n \t\t$post['tagging[tag_list]'] = stripslashes($post['tagging[tag_list]']);\n \t\t\n \t\tif ( $json = $this->_post('/merchants/'.$pid.'/taggings.json', $post, 'post', $query, true) )\n \t\t return $this->_parseApi($json, $rawJson);\n \t\telse\n \t\t\treturn false;\n \t}", "public function attachTagToPostAtTheEnd() {}", "public function addTag($tag) {\n $this->init(); //it would actually work without it\n\n if (!in_array($tag,$this->tags)) {\n $tag = trim($tag);\n\n $this->tags['new'][] = $tag;\n return true;\n }\n\n return false;\n }", "public function actionAdd()\n\t{\n\t\t$tag = array(\n\t\t\t'tag_id' => 0\n\t\t);\n\n\t\treturn $this->_getTagAddEditResponse($tag);\n\t}", "public function inserirTag(Tag $tag){\n $this->tag[] = $tag;\n }", "function admin_add() {\n\t\tif (!empty($this->data)) {\n\t\t\tif (isset($this->data['Post']['new_tags'])) {\n\t\t\t\t$new_tags = explode(',', $this->data['Post']['new_tags']);\n\n\t\t\t\tforeach($new_tags as $new_tag) {\n\t\t\t\t\t$tag['Tag']['name'] = ucfirst(strtolower(trim($new_tag)));\n\t\t\t\t\t$this->Post->Tag->create();\n\t\t\t\t\tif ($this->Post->Tag->save($tag)) {\n\t\t\t\t\t\t$this->data['Tag']['Tag'][] = $this->Post->Tag->id;\n\t\t\t\t\t\t// unset( $this->Post->Tag->id );\n\t\t\t\t\t}\n\n\t\t\t\t\tunset($tag);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$this->Post->create();\n\t\t\tif ($this->Post->saveAll($this->data)) {\n\t\t\t\t$this->Session->setFlash('Your post has been saved.');\n\t\t\t\t$this->redirect(array('action' => 'index'));\n\t\t\t}\n\t\t}\n\n\t\t$tags = $this->Post->Tag->find('list');\n\t\t$this->set(compact('tags'));\n\t}", "public function add_tag($tag, $message = null) {\n\t\t\tif ($message === null) {\n\t\t\t\t$message = $tag;\n\t\t\t}\n\t\t\treturn $this->run(\"tag -a $tag -m \" . escapeshellarg($message));\n\t\t}", "public function add(Post $post);", "public function add(Post $post);", "public function addNewTag($tagName) {\n $sql = \"INSERT INTO t_tags VALUES(?)\";\n $select = $this->con->prepare($sql);\n $select->bind_param(\"s\", $tagName);\n $select->execute();\n $select->close();\n }", "public function addTag(Tag $tag)\n {\n $tag->addArticle($this);\n $this->tags[] = $tag;\n }", "public function tag($tag) {\n $this->tag = $tag;\n }", "public function tag(Request $request)\n {\n $id = $request->input('id');\n $tagId = $request->input('tag_id');\n $timestamp = $request->input('timestamp');\n\n $accessToken = $this->currentUser->pocket_access_token;\n\n $tag = $this->currentUser->tags()->findOrFail($tagId);\n\n $this->pocketClient->addTag($accessToken, $id, $tag->name);\n $this->currentUser->saveLastArticleTime($timestamp);\n }", "public function addTags($tags) {\n foreach ($tags as $tag) {\n Database::insert(\"post_tags\", [\n \"post_id\" => $this->getId(),\n \"tag_id\" => $tag\n ]);\n }\n }", "public function addTag($tagData)\n {\n $this->clickButton('add_new_tag');\n $this->fillTagSettings($tagData);\n $this->saveForm('save_tag');\n }", "public function addTag($key, $data)\n {\n $this->tags[$key] = $data;\n //echo $key.'=>'.$data.'<br />';\n }", "public function tag()\n\t{\n\t\t$crud = $this->generate_crud('blog_tags');\n\t\t$this->mPageTitle = 'Blog Tags';\n\t\t$this->render_crud();\n\t}", "static function addTag($tags){\n\t\t//fetch corresponding tagids\n\t\t$length = count($tags);\n\t\t$db = (new Database)->connectToDatabase();\n\t\tfor($i=0;$i<$length;$i++){\n\t\t\t$db->query(\"SELECT * FROM tag_table WHERE tag_name='$tags[i]'\");\n\t\t\tif($db->returned_rows==0){\n\t\t\t\t//no tag found in tag table... so add it\n\t\t\t\t$db->query(\"INSERT INTO tag_table (tag_name) VALUES ('$tag[i]')\");\n\t\t\t}\n\t\t\telse{\n\t\t\t\t//check if tag already there with post?\n\t\t\t\t\n\t\t\t}\n\t\t}\n\n\t\t\n\t}", "public function addTagsToPost(Request $request, $id) {\n $tags_id = $request->get('tags_id');\n foreach($tags_id as $tag_id) {\n // check tag is exist\n if(PostTag::where('post_id', $id)->where('tag_id', $tag_id)->count() == 0) {\n $postTag = new PostTag();\n $postTag->post_id = $id;\n $postTag->tag_id = $tag_id;\n $postTag->save();\n }\n }\n $post = Post::findOrFail($id)->load('tags');\n\n return $this->responseJson('success', $post);\n }", "public function addTag(Tag $tag)\n {\n $tag->addTask($this);\n $this->tags->add($tag);\n }", "public function addTag(Tag $tag): self\n {\n $tag->addPost($this);\n $this->tags[] = $tag;\n\n return $this;\n }", "private function linkTag($postId, $tagId) {\n\t\t$this->db->table('nsbulletin_post_tags')\n\t\t\t->insert(['postid' => $postId, 'tagid' => $tagId]);\n\t}", "public function addTag($tag)\n {\n $tag = \"{$tag}\";\n if (!in_array($tag, $this->_tags)) {\n $this->_tags[] = $tag;\n }\n return $this;\n }", "public function givePostATag($postID, $tagID) {\n $stmt = $this->connection->prepare(\"INSERT INTO \".DB_POSTTAG_TABLE.\"(\".COL_POSTTAG_POST.\", \".COL_POSTTAG_TAG.\")\n VALUES (?, ?)\");\n $stmt->bind_param(\"ii\", $postID, $tagID);\n return $stmt->execute();\n }", "public function addTag($id){\n\t\t$crl = curl_init();\n\t\tcurl_setopt($crl, CURLOPT_URL, $this->buildTagUrl($id) );\n\t\tcurl_setopt($crl, CURLOPT_CUSTOMREQUEST, \"PUT\"); \n\t\tcurl_setopt($crl, CURLOPT_RETURNTRANSFER, true);\n\t\tcurl_setopt($crl, CURLOPT_HTTPHEADER, array( \n\t\t\t\t'Authorization: Bearer '.$this->getToken(), \n\t\t\t 'Content-Type: application/json',\n\t\t\t 'Accept: application/vnd.vimeo.*+json;version=3.4'\n\t\t\t) \n\t\t);\n\t\tcurl_setopt($crl, CURLOPT_SSL_VERIFYPEER, true); \n\t\t$result = curl_exec($crl);\n\t}", "function add_hashTags( $ID, $post ) {\n\t\t\t$post = get_post( $ID );\n\t\t\t$url1 = $post->$post_name; // get the slug\n\t\t\t$url= bloginfo('url') .'/'. $url1;// your post title\n\t\t\t$APPLICATION_ID = '4ecd9e16';\n\t\t$APPLICATION_KEY='be54f0e53443501357865cbc055538aa';\n\t\t $ch = curl_init('https://api.aylien.com/api/v1/hashtags');\n\t\t curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\t\t curl_setopt($ch, CURLOPT_HTTPHEADER, array(\n\t\t\t'Accept: application/json',\n\t\t\t'X-AYLIEN-TextAPI-Application-Key: ' . APPLICATION_KEY,\n\t\t\t'X-AYLIEN-TextAPI-Application-ID: '. APPLICATION_ID\n\t\t ));\n\t\t curl_setopt($ch, CURLOPT_POST, true);\n\t\t curl_setopt($ch, CURLOPT_POSTFIELDS, $url);\n\t\t $response = curl_exec($ch);\n\t\t $keywords= json_decode($response);\n\t\t wp_set_post_tags( $ID, $keywords, true );\n\t\t}", "public static function add_tag($name) {\n global $wpdb;\n $data = array(\n 'name' => $name\n );\n\n // Si no se inserta nada, retornamos false\n if (!$wpdb->insert('XTB_TAGS', $data, array('%s'))) {\n return null;\n }\n\n return $wpdb->insert_id;\n //return true;\n }", "function wp_ajax_add_tag()\n {\n }", "protected function addTag($tag_name, $value = null)\n {\n $this->startElement($tag_name);\n\n if ($value !== null) {\n $this->writeRaw($value);\n }\n\n $this->endElement();\n }", "public function create()\n {\n $tag = new Tag();\n $this->vars['tag'] = $tag;\n $this->title = __('system.tag_add');\n $this->template = 'admin.tag';\n \n return $this->renderOutput();\n }", "public function addTag($id, $tag)\n {\n $this->db->update(array('id'=>$id), array('$addToSet'=>array('tags'=>$tag)));\n }", "function hashtags_insert_post( $id, $data ) {\n if (preg_match_all(\"/\".HASHTAGS_REGEXP.\"/i\", $data->post_content, $match)) {\n $tags = implode(\", \", $match[2]);\n\n wp_add_post_tags( $data->post_parent, $tags );\n }\n \n return $id;\n}", "private function addTag($tagName)\n\t{\n\t\tif (is_null($tagName) || $tagName == '') return;\n\n\t\t// return Builder\n $tag = Tag::where('tag', '=', $tagName)->first();\n\t\t\n\t\tif (is_object($tag))\n\t\t{\n\t\t\t// To increment count number to exists tag\n\t\t\tTagUtil::incrementCount($tagName, 1, $tag);\n\n\t\t\t// return collection object\n\t\t\t$tagPivot = $this->tags()->wherePivot('tag_id', '=', $tag->id)->get();\n\t\t\t\n\t if ($tagPivot->count() === 0)\n\t {\n\t\t\t\t// To attach a related item to taggable\n\t \t$this->tags()->attach($tag->id);\n\t }\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$tag = new Tag(['tag' => $tagName]);\n\t\t\t\n\t\t\t$this->tags()->save($tag);\t\n\t\t}\n\t}", "function add_tags($tags) {\n array_merge($this->tags, $tags);\n }", "function TestRun_add_tag($run_id, $tag_name) {\n\t// Create call\n\t$call = new xmlrpcmsg('TestRun.add_tag', array(new xmlrpcval($run_id, \"int\"), new xmlrpcval($tag_name, \"string\")));\n\n\t// Do call and return value\n\treturn do_call($call);\n}", "private function createNewTag(object $tag) \n {\n if(Tag::find($tag->id)) return;\n\n $newTag = new Tag;\n \n $newTag->id = $tag->id;\n $newTag->name = $tag->name;\n $newTag->description = $tag->description;\n\n if(isset($tag->category->id)){\n\n $category = Category::firstOrCreate([\n 'id' => $tag->category->id,\n 'name' => $tag->category->name,\n 'description' => $tag->category->description,\n ]);\n\n $newTag->category()->associate($category->fresh());\n }\n\n $newTag->save();\n }", "function addATag() {\n $query = \"INSERT INTO PushpinTags SET tags = '$this->tag', pushpin_ID = LAST_INSERT_ID();\";\n\n // prepare query\n $stmt = $this->conn->prepare($query);\n\n // execute query\n if($stmt->execute()){\n return true;\n }\n return false;\n }", "public function addTag($imageId, $tag) {\n $dataToInsert = [\n 'image_id' => $imageId,\n 'tag' => filter_var($tag, FILTER_SANITIZE_STRING)\n ];\n $result = Db::insert('tags', $dataToInsert);\n\n return $result;\n }", "function TestCase_add_tag($case_id, $tag_name) {\n\t// Create call\n\t$call = new xmlrpcmsg('TestCase.add_tag', array(new xmlrpcval($case_id, \"int\"), new xmlrpcval($tag_name, \"string\")));\n\n\t// Do call and return value\n\treturn do_call($call);\n}", "public function postAction() {\n\t\t$rawData = json_decode($this->_request->getRawBody(), true);\n\t\tif (!empty($rawData)) {\n\t\t\t$rawData['name'] = ucfirst($rawData['name']);\n\t\t\t$result = Models_Mapper_Tag::getInstance()->save($rawData);\n\t\t} else {\n\t\t\t$this->_error();\n\t\t}\n\t\tif ($result === null) {\n\t\t\t$this->_error('This tag already exists', self::REST_STATUS_BAD_REQUEST);\n\t\t} else {\n\t\t\treturn $result->toArray();\n\t\t}\n\t}", "public function addTags($tags, $post_id)\n {\n $tags_arr = array_map(function($t) {return trim($t);}, explode(',', $tags));\n //Get all the tags in the tags table\n $tags_list = $this->getTags();\n //Get all the tags associated with the entry\n $postTags = array_map(function($t) { return $t['name'];}, $this->getTagsByPostID($post_id));\n\n foreach ($tags_arr as $tag) {\n //Check if $tag is already in the tags table\n if (!in_array($tag, $tags_list)) {\n //if not, add the tag to the tags table\n $tag_id = $this->addSingleTag($tag);\n } else {\n //otherwise get the id of the tag\n $tag_id = $this->getTagId($tag)['id']; \n }\n\n //Check if $tag is already associated to the entry\n if (!in_array($tag, $postTags)) {\n //if not, add the entry id and the tag id to the enries_tags table\n try {\n $result = $this->database->prepare(\n 'INSERT INTO posts_tags (posts_id, tags_id) VALUES (:posts_id, :tags_id)');\n $result->bindParam(\"posts_id\", $post_id);\n $result->bindParam(\"tags_id\", $tag_id);\n $result->execute();\n } catch (Exception $e) {\n $e->getMessage();\n }\n }\n }\n\n foreach ($postTags as $tag1) {\n //Check if the user removes a tag for the selected entry\n if (!in_array($tag1, $tags_arr)) {\n //if so get the tag id\n $tag_id = $this->getTagId($tag1)['id'];\n //and remove all rows with the current $entry_id and $tag_id\n $result1 = $this->deletePostTag($post_id, $tag_id);\n }\n }\n \n return true;\n }", "function InfAddTag($inf_contact_id, $inf_tag_id) {\n\treturn Infusionsoft_ContactService::addToGroup($inf_contact_id, $inf_tag_id);\t\t\n}", "protected function add_dyntag($tag, $val)\r\n\t{\r\n\t\t$this->$tag = $val;\r\n\t}", "public function store(PostRequest $request, TagRequest $tagRequest)\n {\n //Enregistrement en base de données\n //Eloquent\n $post = new Post;\n $post->title = $request->title;\n $post->post = $request->post;\n $post->user_id = CustomAuth::id();\n $post->postable_type = get_class(CustomAuth::user());\n $post->postable_id = CustomAuth::id();\n $post->save();\n //Gestion Tags\n $post->tagsAttach($tagRequest);\n return redirect()->route('posts.index')\n ->with('info', 'Votre post a été ajouté avec succès !');\n }", "public function created(Tags $tag): void\n {\n $user = auth()->user(); \n $tag->author()->associate($user)->save();\n }", "public function add_tag(Request $request, $campaign_id, $tag_id)\n {\n\n if ($request->ajax()) {\n $campaign = Campaign::find($campaign_id);\n //dd($campaign);\n $tag_id = [$tag_id];\n if ($campaign->tags()->attach($tag_id)) {\n return 200;\n } else {\n return 500;\n }\n }\n }", "function tag2post ( ) {\r\n\t\t$posts = get_option('stpimp_posts');\r\n\t\t\r\n\t\t// null out our results\r\n\t\t$tags_added = 0;\r\n\t\t\r\n\t\t// loop through each post and add its tags to the db\r\n foreach ( $posts as $this_post ) {\r\n \r\n\t\t\t$the_post = (int) $this_post->post_id;\r\n $the_tag = $this_post->tag_name;\r\n\r\n\t\t\t// try to add the tag\r\n\t\t\twp_add_post_tags($the_post, $the_tag);\r\n\r\n\t\t\t$tags_added++;\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t// that's it, all posts should be linked to their tags properly, pending any errors we just spit out!\r\n\t\treturn $tags_added;\r\n\t\t\r\n\t\t\r\n\t}", "public function addPost($post)\n {\n $this->post[] = $post;\n }", "public function createTag()\n {\n $this->di->common->verifyAdmin();\n $form = new Form('tag-form', Models\\Tag::class);\n if ($this->di->request->getMethod() == 'POST') {\n if ($this->di->tag->createFromForm($form)) {\n $this->di->common->redirectMessage('admin/tag', 'Taggen <strong>' . htmlspecialchars($form->getModel()->name) . '</strong> har skapats.');\n }\n }\n \n return $this->di->common->renderMain('tag/edit', [\n 'tag' => $form->getModel(),\n 'update' => false,\n 'form' => $form\n ], 'Skapa tagg');\n }", "public function addTag($tag_name)\n\t{\n\t\t$tag = PortfolioTag::getTagByName($tag_name, true);\n\n\t\t$command = Yii::app()->db->createCommand('INSERT INTO {{portfolio_portfolio_tag}} SET portfolio_id = :model_id, tag_id = :tag_id');\n\n\t\t$command->bindValues(\n\t\t\tarray(\n\t\t\t\t':model_id' => $this->id,\n\t\t\t\t':tag_id' => $tag->id,\n\t\t\t)\n\t\t);\n\n\t\treturn $command->execute();\n\t}", "public function addTag(string $name, TagInterface $tag, string $placement = null);", "public function addTag(Dklab_Cache_Frontend_Tag $tag)\n {\n if ($tag->getBackend() !== $this->_getBackend()) {\n Zend_Cache::throwException(\"Backends for tag \" . get_class($tag) . \" and slot \" . get_class($this) . \" must be same\");\n }\n $this->_tags[] = $tag;\n }", "public function store(AdminTagCreate $request)\n {\n $request->validated();\n $post = new Tag();\n $data = $request->all();\n $post->fill($data);\n// $post->title = $request->title;\n// $post->subtitle = $request->subtitle;\n// $post->slug = $request->slug;\n// $post->body = $request->body;\n $post->save();\n\n //TODO redirect to created post\n return redirect(route('tag.index'));\n }", "public function postTag($slug) {\n // 'name' che è il nome per esteso del tag\n // 'slug' che è lo slug ricavato dal nome per esteso del tag\n // questa funzione riceve in ingresso lo slug ($slug) del tag\n // e deve ricavare l'elenco di tutti i posts che hanno quel tag associato\n // identificati dallo slug ricevuto come parametro in ingresso.\n // Poi la funzione richiama una view e le passa l'elenco di tutti i posts trovati\n // e l'oggetto categoria, quella identificata dallo slug ricevuto in ingresso\n\n // cerco nella colonna 'slug' della mia tabella 'tags', il tag (record) con slug uguale al parametro ricevuto\n $tag = Tag::where('slug', $slug)->first();\n\n // verifico se la select fatta sul DB mi ha ritornato qualcosa per il tag ricercato tramite slug\n // ad esempio l'utente potrebbe modificare la stringa nella barra indirizzi, alterando il nome\n // dello slug e scrivendo un qualcosa che non esiste e non corrisponde a nessun tag del DB\n if (!empty($tag)) {\n // qui sfrutto la relazione fra tags e posts, cioè la relazione fra le entità/modelli\n // Tag e Post. Nella classe Tag è definito un metodo posts()\n // (cioè col nome dell'entità verso la quale è definita la relazione)\n // posts() ritorna $this->hasMany('App\\Post');\n // chiamo la proprietà posts (in questa maniera'$tag->posts')\n // che restituisce i post che sono legati da relazione in base al tag\n $posts_by_tag = $tag->posts;\n\n // chiamo una view per visualizzare tutti i post del tag ricercato,\n // gli passo il tag e l'elenco dei posts\n return view('public.posts.posts-by-tag', [\n 'tag' => $tag,\n 'posts' => $posts_by_tag\n ]);\n } else {\n // ritorno la pagina di errore \"Page not found\" poichè lo slug ricevuto in ingresso\n // non ha corrispondenza nel mio DB (tabella 'tags')\n return abort(404);\n }\n }", "public function store(StoreBlogTagRequest $request)\n {\n $inputs = $request->except('_token','seo_title', 'seo_description', 'seo_keyword', 'page_title');\n $inputs['slug'] = str_slug($request->slug);\n $tag = BlogTag::create($inputs);\n\n $tag->seo()->create([\n 'seo_title' => $request->seo_title ?? '',\n 'seo_keyword' => $request->seo_keyword ?? '',\n 'seo_description' => $request->seo_description ?? '',\n 'page_title' => $request->page_title ?? '',\n ]);\n\n Helper::custom_session_flash('success','store');\n return redirect()->back();\n }", "public function add_postAction() {\n\t\t$info = $this->getPost(array('sort', 'title', 'ad_type', 'ad_ptype', 'link', 'img', 'icon', 'start_time', 'end_time', 'status'));\n\t\t$info['ad_type'] = $this->ad_type;\n\t\t$info = $this->_cookData($info);\n\t\t\n\t\tif($info['ad_ptype'] == 1){\n\t\t\t$adInfo = Resource_Service_Games::getResourceGames($info['link']);\n\t\t\t$tip = \"内容\";\n\t\t} else if($info['ad_ptype'] == 2){\n\t\t\t$adInfo = Resource_Service_Attribute::getResourceAttributeByTypeId($info['link'],1);\n\t\t\t$tip = \"分类\";\n\t\t} else if($info['ad_ptype'] == 3){\n\t\t\t$adInfo = Client_Service_Subject::getSubject($info['link']);\n\t\t\t$tip = \"专题\";\n\t\t}\n\t\t$msg = $this->_getMsg($adInfo, $tip,$info['ad_ptype'],$info['link']);\n\t\t$result = Client_Service_Ad::addAd($info);\n\t\tif (!$result) $this->output(-1, '操作失败');\n\t\t$this->output(0, '操作成功');\n\t}", "public function setTag($tag) {\n $this->_tag = $tag;\n }", "public function setTag($tag) {\n $this->_tag = $tag;\n }", "public function store(Request $request)\n {\n $this ->validate($request,['new-post-tag'=>'required']);\n\n $tag = new Tag(array(\n 'title' => $request->get('new-post-tag'),\n 'slug' => str_slug($request->get('new-post-tag'))\n ));\n $tag->save();\n\n\n return $this->getAllTags();\n }", "public function create($idArticulo,$idTag){\n\n $articulo = Article::find($idArticulo);\n $tag = Tag::find($idTag);\n $articulo->tags()->attach($tag);\n }", "public function add_postAction() {\n $info = $this->getPost(array('title', 'ad_ptype', 'img_day', 'img_night', 'start_time', 'end_time', 'status'));\n $info['ad_type'] = self::AD_TYPE;\n $this->cookData($info);\n $this->mergeImgParam($info);\n $result = Client_Service_Ad::addAd($info);\n if (! $result) $this->output(- 1, '操作失败');\n $this->output(0, '操作成功');\n }", "public function addPost($post)\n {\n $this->posts[] = $post;\n }", "public static function addTagToLog($name){\n\t\tself::$tag_log[] = $name;\n\t}", "public function testPostTag() : void\n {\n $request = [\n 'name' => static::$tagName\n ];\n\n $response = $this->actingAs(static::$user, 'api')\n ->post('/api/tag', $request);\n\n $response->assertStatus(201);\n\n $response->assertJsonStructure([\n 'id',\n 'name'\n ]);\n }", "public function store(Request $request)\n {\n $request->validate([\n 'title' => 'required|min:3',\n 'content' => 'required',\n 'category_id' => 'required|numeric'\n ]);\n\n \n $post = new Post;\n $post->title = $request->title;\n $post->user_id = Auth::user()->id;\n $post->content = $request->content;\n $post->category_id = $request->category_id;\n $post->save();\n\n $post->tags()->attach($request->tags);\n\n //Post::create($request->except('_token'));\n \n Session::flash('success', 'This posts is created successfully ');\n return redirect('admin/post');\n }", "function TestPlan_add_tag($plan_id, $tag_name) {\n\t// Create call\n\t$call = new xmlrpcmsg('TestPlan.add_tag', array(new xmlrpcval($plan_id, \"int\"), new xmlrpcval($tag_name, \"string\")), \"array\");\n\n\t// Do call and return value\n\treturn do_call($call);\n}", "protected function addHeadTag($tag)\n {\n array_push($this->head_tags, $tag);\n }", "public function addPPTag($key, $data)\n {\n $this->postParseTags[$key] = $data;\n }", "public function create()\n {\n return view('tag.add_tag');\n }", "function addTag($line)\n{\n\t$elem = $this->parser->parseLine($line);\n\n\tif (isset($elem['after'])) {\n\t\t$this->elements = $this->insertAfter($this->elements, \n\t\t\tarray($elem['id'] => $elem), $elem['after']\n\t\t);\n\t}\n\telse {\n\t\t$this->elements[$elem['id']] = $elem;\n\t}\n}", "public function tag(string $tag): self\n {\n $this->options['tags'][] = $tag;\n\n return $this;\n }", "function tag($post_id,$Cookie,$ua,$idx,$idx2,$idx3,$idx4,$idx5,$idx6,$idx7,$idx8,$idx9,$idx10,$idx11,$idx12,$idx13,$idx14){\r\n $caption = \"@$idx | @$idx2 | @$idx3 | @$idx4 | @$idx5 | @$idx6 | @$idx7 | @$idx8 | @$idx9 | @$idx10 | @$idx11 | @$idx12 | @$idx13 | @$idx14 \";\r\n $caption = preg_replace(\"/\\r|\\n/\", \"\", $caption);\r\n $url= 'media/'.$post_id.'/edit_media/';\r\n $data= hook('{\"media_id\":\"'.$post_id.'\",\"caption\":\"'.trim($caption).'\"}');\r\n $action = request(1,$ua,$url,$Cookie,$data) ;\r\n return $action[1];\r\n}", "protected function checkPostTag($postTag){\n $postTag = mb_strtolower($postTag, 'UTF-8');\n if (!in_array($postTag, $this->tags)){\n $createdTag = Tag::create(['tag' => $postTag]);\n $this->tags[$createdTag->id] = $postTag ;\n return $createdTag->id;\n } \n return array_search($postTag, $this->tags);\n }", "public function attachTag(Tag $tag)\n {\n $elementTagClass = $this->getElementTagClass();\n\n $transaction = static::getDb()->beginTransaction();\n try {\n // open space to add composite\n $elementTag = Yii::createObject($elementTagClass);\n $elementTag->{$this->getElementIdColumn()} = $this->id;\n $elementTag->{$this->getTagIdColumn()} = $tag->id;\n $status = $elementTag->save();\n $transaction->commit();\n } catch(\\Exception $e) {\n $transaction->rollBack();\n $status = false;\n }\n return $status;\n }", "function setTag($tag) {\n $this->fields['tag'] = $tag;\n return $this;\n }", "function setTag($tag) {\n $this->fields['tag'] = $tag;\n return $this;\n }", "function setTag($tag) {\n $this->fields['tag'] = $tag;\n return $this;\n }", "function setTag($tag) {\n $this->fields['tag'] = $tag;\n return $this;\n }", "function setTag($tag) {\n $this->fields['tag'] = $tag;\n return $this;\n }", "public function addTag(string $name, string $description): void\n {\n $this->tags[$name] = $description;\n }", "function associate_tag($tag_id, $tip_id) {\n $sql = '\n INSERT INTO\n tips_tags (tip_id, tag_id)\n VALUES\n (?, ?)';\n \n return $this->prep_and_exec($sql, [$tip_id, $tag_id]);\n }", "public function setTag($value)\n {\n if ($value !== null) {\n $this->_params['tag'] = $value;\n } else {\n unset($this->_params['tag']);\n }\n }", "public function store(TagRequest $request)\n {\n try {\n\n DB::beginTransaction();\n if (isset($request->is_active) && $request->is_active == 1)\n $request->request->add(['is_active' => 1]);\n else\n $request->request->add(['is_active' => 0]);\n\n $request->request->add(['slug' => \\Str::slug($request->slug)]);\n\n // return $request->except('_token','type');\n $Tag = Tag::create($request->except('_token'));\n\n //save translations\n // $Tag->name = $request->name;\n // $Tag->save();\n\n // return $Tag;\n DB::commit();\n return redirect()->route('Tag.index')->with(['success' => 'تم ألاضافة بنجاح']);\n } catch (\\Exception $ex) {\n DB::rollback();\n return redirect()->route('Tag.index')->with(['error' => 'حدث خطا ما برجاء المحاوله لاحقا']);\n }\n }", "public function addPost( $post ) {\n if ( count( $this->posteTyps ) < 5 ) {\n $this->posteTyps[] = $post;\n }\n }", "public function store(TagRequest $request)\n {\n $input = $request->all();\n\n empty(!$input['metadata_title']) ? $input['metadata_title'] : $input['metadata_title'] = $input['name'];\n\n $metadata = Metadata::create([\n 'title' => $input['metadata_title'],\n 'description' => $input['metadata_description'],\n 'keywords' => $input['metadata_keywords'],\n ]);\n\n $tag = Tag::create([\n 'name' => $input['name'],\n 'slug' => str_slug($input['name']),\n 'metadata_id' => $metadata['id'],\n ]);\n\n if (App::isLocale('pl')) {\n return redirect()->route('tags.index')->with('status', 'Tag &#8222;'.$tag->name.'&#8221; został wprowadzony do bazy!');\n } else {\n return redirect()->route('tags.index')->with('status', 'The tag &#8222;'.$tag->name.'&#8221; has been added!');\n }\n }", "public function addTag(Tag $tag)\n {\n throw new \\RuntimeException('Adding a tag on an ImageVariant is not supported.', 1371237593);\n }", "function AddTopic()\n{\n global $context, $txt, $mbname, $db_prefix;\n\n // Check permission\n $a_add = allowedTo('smftags_add');\n\n if ($a_add == false)\n fatal_error($txt['cannot_smftags_add'],false);\n\n // get query results to build array of all tags\n $query = db_query(\"\n SELECT t.tag AS tag, t.ID_TAG AS ID_TAG, COUNT(l.ID_TAG) AS quantity, t.approved AS approved\n FROM {$db_prefix}tags AS t\n LEFT JOIN {$db_prefix}tags_log AS l ON t.ID_TAG = l.ID_TAG\n GROUP BY t.ID_TAG\n ORDER BY t.tag ASC\",\n __FILE__, __LINE__);\n\n $context['tags'] = array();\n while ($row = mysql_fetch_assoc($query))\n {\n $context['tags'][] = array(\n 'ID_TAG' => $row['ID_TAG'],\n 'tag' => $row['tag'],\n 'quantity' => $row['quantity'],\n 'approved' => $row['approved'],\n 'tagged' => 0,\n );\n }\n // don't load the subtemplate\n}", "public function store(TagRequest $request)\n {\n\n }", "protected function createNewTag($tags, $relation)\n {\n if($tags) {\n foreach( $tags as $val) {\n $tag = $this->tag->create([ 'nama' => $val ]);\n $relation->tag()->attach($tag);\n }\n }\n }" ]
[ "0.7579557", "0.72814846", "0.72732437", "0.6943208", "0.6823434", "0.6823237", "0.6774614", "0.67431575", "0.6618017", "0.6590846", "0.6569803", "0.6562905", "0.65330315", "0.65317404", "0.6517574", "0.6456015", "0.64541173", "0.6394168", "0.6393686", "0.6393686", "0.6370359", "0.63574886", "0.63375133", "0.6337149", "0.6314852", "0.62888354", "0.6286709", "0.6277092", "0.6276094", "0.6263758", "0.62501866", "0.6243588", "0.62407285", "0.62373513", "0.6215003", "0.6188957", "0.6134438", "0.6106172", "0.6034517", "0.60022205", "0.59326535", "0.5909893", "0.5907124", "0.5897953", "0.58953017", "0.5858243", "0.5856392", "0.5824227", "0.58233947", "0.58051217", "0.5799879", "0.5784643", "0.5776955", "0.57745266", "0.5766978", "0.57574093", "0.57559043", "0.57537806", "0.57230395", "0.57208395", "0.57178146", "0.57155985", "0.56986374", "0.569177", "0.5674994", "0.5673033", "0.56515706", "0.56437933", "0.56437933", "0.56302106", "0.56259143", "0.56138784", "0.5610357", "0.56102395", "0.5596875", "0.55875397", "0.55822366", "0.5579574", "0.55783784", "0.55754703", "0.55569565", "0.55508554", "0.5550471", "0.55492073", "0.5547905", "0.5541999", "0.5541999", "0.5541999", "0.5541999", "0.5541999", "0.5510726", "0.5501725", "0.5499274", "0.54941225", "0.54898226", "0.54754686", "0.54674214", "0.54657346", "0.54655904", "0.5454258" ]
0.5608156
74
/ COLUMN REFERENCE NAME [INTEGER] payroll_paper_sizes_id [INTEGER] shop_id [VARCHAR] paper_size_name [DOUBLE] paper_size_width [DOUBLE] paper_size_height [INTEGER] paper_archived
public function scopegetpaper($query ,$shop_id = 0, $paper_archived = 0) { $query->where('shop_id',$shop_id)->where('paper_archived', $paper_archived); return $query; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function withPaperSize(PaperSize $size);", "function db2_field_display_size($stmt, $column)\n{\n}", "public function size() {\n return $this->belongsTo('\\App\\Size');\n }", "public function setPaperSize($paperSize);", "public function sel_arr_image_draw_size()\n\t{\n\t\t$arr_bind_param = array();\n\n\t\t$query_str = \"select \";\n\t\t$query_str .= \"\tm_draw_size.draw_size_id, \";\n\t\t$query_str .= \"\tm_draw_size.draw_size_name, \";\n\t\t$query_str .= \"\tm_draw_size.width, \";\n\t\t$query_str .= \"\tm_draw_size.height \";\n\t\t$query_str .= \"from \";\n\t\t$query_str .= \"\tm_draw_size \";\n\t\t$query_str .= \"where \";\n\t\t$query_str .= \"\texists( \";\n\t\t$query_str .= \"\t\tselect \";\n\t\t$query_str .= \"\t\t\tm_draw_area.draw_area_id \";\n\t\t$query_str .= \"\t\tfrom \";\n\t\t$query_str .= \"\t\t\tm_draw_area \";\n\t\t$query_str .= \"\t\twhere \";\n\t\t$query_str .= \"\t\t\tm_draw_area.draw_size_id = m_draw_size.draw_size_id and \";\n\t\t$query_str .= \"\t\t\tm_draw_area.del_flag = 0 \";\n\t\t$query_str .= \"\t) and \";\n\t\t$query_str .= \"\tm_draw_size.del_flag = 0 \";\n\t\t$query_str .= \"order by \";\n\t\t$query_str .= \"\tm_draw_size.width desc, \";\n\t\t$query_str .= \"\tm_draw_size.height desc, \";\n\t\t$query_str .= \"\tm_draw_size.draw_size_name, \";\n\t\t$query_str .= \"\tm_draw_size.draw_size_id desc \";\n\n\t\t$query = DB::query(Database::SELECT, $query_str);\n\t\t$query->parameters($arr_bind_param);\n\n\t\treturn $query->execute($this->db, true);\n\t}", "public function saveProductSize(Request $request,$id){\n $this->setNavigation(['menu-item-catalog','menu-item-products']);\n #$this->validate($request, ProductValidator::PRODUCT_SIZE);\n try{\n /*delete all foraign keys based on product sizes*/\n ProductStock::where('product_id',$id)->delete();\n ProductSetPrice::where('product_id',$id)->delete();\n ProductSet::where('product_id',$id)->delete();\n $arr_sizes = $values_product_sizes = array();\n $arr_original_price = array();\n $arr_set_price = array();\n $values_product_sets = array();\n $curr_time = Carbon::now();\n # Step 1: get the unique size names and original price and insert into table\n foreach ($request->arr_product_size as $item) {\n array_push($arr_sizes, $item['_size_name']);\n $arr_original_price[$item['_size_name']] = $item['_o_price'];\n $temp = [\n '_size_name' => $item['_size_name'],\n '_min_qty' => $item['_min_qty'],\n '_max_qty' => $item['_max_qty'],\n '_s_price' => $item['_s_price']\n ];\n array_push($arr_set_price, $temp);\n }\n $arr_sizes = array_unique($arr_sizes);\n foreach ($arr_sizes as $value) {\n $temp = [\n 'product_id' => $id,\n 'size' => $value,\n 'price' => $arr_original_price[$value],\n 'updated_at' => $curr_time,\n 'created_at' => $curr_time\n ]; \n array_push($values_product_sizes, $temp);\n }\n ProductSize::where('product_id',$id)->delete();\n ProductSize::insert($values_product_sizes);\n\n # Step 2: get unique sets of each sizes and insert into table\n $product_sizes = ProductSize::where('product_id',$id)->get();\n foreach ($product_sizes as $size) {\n foreach ($arr_set_price as $value) {\n if ($value['_size_name'] == $size->size) {\n $temp = ['product_id' => $id, 'product_size_id' => $size->id, 'set_min' => $value['_min_qty'], 'set_max' => $value['_max_qty']];\n $record = ProductSet::create($temp);\n # prepare record for insert into product_set_prices\n $temp['product_set_id'] = $record->id;\n $temp['price'] = $value['_s_price'];\n $temp['updated_at'] = $curr_time;\n $temp['created_at'] = $curr_time;\n array_push($values_product_sets, $temp);\n }\n }\n }\n # Step 3: insert into product set prices\n ProductSetPrice::insert($values_product_sets);\n return response()->json($id);\n }catch(\\Exception $e){\n return response()->json(['error'=>$e->getMessage()], 403);\n }\n }", "function hometown_woocommerce_product_available_sizes_save($post_id)\n{\n $woocommerce_custom_product_text_field = $_POST['_xs_available_sizes'];\n update_post_meta($post_id, '_xs_available_sizes', esc_attr($woocommerce_custom_product_text_field));\n\n $woocommerce_custom_product_text_field = $_POST['_s_available_sizes'];\n update_post_meta($post_id, '_s_available_sizes', esc_attr($woocommerce_custom_product_text_field));\n\n $woocommerce_custom_product_text_field = $_POST['_m_available_sizes'];\n update_post_meta($post_id, '_m_available_sizes', esc_attr($woocommerce_custom_product_text_field));\n\n $woocommerce_custom_product_text_field = $_POST['_l_available_sizes'];\n update_post_meta($post_id, '_l_available_sizes', esc_attr($woocommerce_custom_product_text_field));\n\n $woocommerce_custom_product_text_field = $_POST['_xl_available_sizes'];\n update_post_meta($post_id, '_xl_available_sizes', esc_attr($woocommerce_custom_product_text_field));\n\n $woocommerce_custom_product_text_field = $_POST['_xxl_available_sizes'];\n update_post_meta($post_id, '_xxl_available_sizes', esc_attr($woocommerce_custom_product_text_field));\n\n $woocommerce_custom_product_text_field = $_POST['_3xl_available_sizes'];\n update_post_meta($post_id, '_3xl_available_sizes', esc_attr($woocommerce_custom_product_text_field));\n\n $woocommerce_custom_product_text_field = $_POST['_4xl_available_sizes'];\n update_post_meta($post_id, '_4xl_available_sizes', esc_attr($woocommerce_custom_product_text_field));\n}", "public function save_catalogue_size_details($size,$iCatalogueId)\n {\n /* save catalogue size */\n for($i=0;$i<10;$i++){\n if($size['vSizeName'.$i] != '' && $size['fSizePrice'.$i] != ''){\n $query = $this->db->query(\"insert into r_app_size_catalogue set iCatelogueId = '\".$iCatalogueId.\"',vSizeName = '\".$size['vSizeName'.$i].\"',\n vSizeColor = '\".$size['vSizeColor'.$i].\"',\n fSizePrice = '\".$size['fSizePrice'.$i].\"'\");\n }\n }\n return true;\n }", "public function getSizeDetails();", "public function photographEdits($scaledSize = null)\n {\n $query = $this->hasMany(PhotographEdit::class);\n if ($scaledSize) {\n $query = $query->where('scaled_size', '=', $scaledSize);\n }\n return $query;\n }", "public function getAllSize(){\n $query = \"SELECT * FROM tbl_size ORDER BY sizeId DESC\";\n $result = $this->db->select($query);\n return $result;\n }", "protected function export_product_att_table($sql, $filename)\n {\n \n $fh = $this->create_file($filename);\n if (!$fh) {\n $this->comments_style('error','Could not create the file ' . $filename . ' path','problem with file');\n $this->logProfiler('Could not create the file ' . $filename . ' path');\n return;\n }\n \n $columns = $this->write_headers($sql, $fh);\n \n $sql->limit(100000000, 0);\n \n //Get Relevant Categories for the query.\n $categoriesForStore = implode(',', $this->_getAllCategoriesForStore());\n \n //Don't run the query at all if no categories were found to match the current store view.\n if (!$categoriesForStore || !count($categoriesForStore)) {\n $this->logProfiler(\"Total rows: 0\");\n fclose($fh);\n return;\n }\n \n $productCollection = Mage::getResourceModel('catalog/product_collection')->addStoreFilter($this->_fStore_id)->getColumnValues('entity_id');\n $relevant_products = implode(',', $productCollection);\n \n $table = $sql->getPart('from');\n $table = array_shift($table);\n $sql->where(\"{$table['tableName']}.`entity_id` IN ({$relevant_products})\");\n \n $secondSql = clone($sql);\n \n $sql->where('`store_id` = ?', $this->_fStore_id);\n \n //Get list of rows with this specific store view, to exclude when running on the default store view.\n $sql->columns('entity_id');\n $sql->columns('attribute_id');\n $query = $sql->query();\n $processedRows = array();\n while ($row = $query->fetch()) {\n $processedRows[] = $row['attribute_id'] . '-' . $row['entity_id'];\n }\n $sql->setPart('columns', $columns);\n $sql->order('entity_id', 'ASC');\n \n //Run the query on each row and save results to the file.\n $this->export_table_rows($sql, NULL, $fh);\n \n //Prepare the second query.\n $secondSql->where('store_id = 0');\n if (count($processedRows)) {\n $secondSql->where(\"CONCAT(`attribute_id`, '-', `entity_id`) NOT IN (?)\", $processedRows);\n }\n \n $secondSql->order('entity_id', 'ASC');\n \n //Run for the second time, now with the default store view.\n $this->export_table_rows($secondSql, NULL, $fh);\n \n fclose($fh);\n //self::stopProfiling(__FUNCTION__. \"({$filename})\");\n }", "public function wr_isSize($id = 0, $data = false) {\n $id = (int)$id;\n if ($id <= 0) return false;\n $this->db\n ->select('id, price')\n ->from('site_wardrobe_size')\n ->where('id = '.$this->db->escape($id))\n ->where('visible = 1')\n ->limit(1)\n ;\n\n $res = $this->db->get();\n if ($res->num_rows() <= 0) return false;\n $res = $res->row_array();\n\n if ($data) return $res;\n return true;\n }", "function size()\n\t\t\t{\n\t\t\t\treturn $this->db->order_by('size_id')->get('size');\n\t\t\t}", "public function saveDefinedDiskSizesToDB()\n\t{\n\t\t$this->definedDiskSizes = $this->getCurrentDiskSizesForDefinedDiskSizes(true);\n\t}", "public function sizes(){\n\t\t$meta = ProductMeta::where('product_id', $this->id)->where('meta', 'product_packages_id')->get();\n\t\t$metaGroup = array();\n\t\tif($meta){\n\t\t\tforeach($meta as $each){\n\t\t\t\t$metaGroup[] = $each->value;\n\t\t\t}\n\t\t}\n\t\treturn ProductPackage::find($metaGroup);\n\t}", "public function formatSizeDataProvider() {}", "public function add_size($data) {\n\t\t$this->db->insert('tbl_size', $data);\n\t}", "public function getSizeDetail($sizeId = null, $storeId = null) {\n $sizeDetail = $this->find('first', array('conditions' => array('Size.store_id' => $storeId, 'Size.id' => $sizeId)));\n if ($sizeDetail) {\n return $sizeDetail;\n }\n }", "public static function getSizes()\n {\n $db = DataBase::connect();\n\n $sortOrder = SIZE_SORT_ORDER ? \"ASC\" : \"DESC\" ;\n $result = $db->query(\"SELECT * FROM `size` ORDER BY `id` {$sortOrder}\");\n\n $sizes = [];\n\n $i = 1;\n\n while($row = $result->fetch()) {\n $sizes[$i]['size'] = $row['size'];\n $sizes[$i]['leonardo_prices'] = $row['leonardo_prices'];\n $sizes[$i]['frodo_prices'] = $row['frodo_prices'];\n $sizes[$i]['back_leg'] = $row['back_leg'];\n $sizes[$i]['image_size'] = $row['image_size'];\n\n $i++;\n }\n return $sizes;\n }", "protected function _prepareColumns()\n {\n\n $this->addColumn(\n 'entity_id',\n array(\n 'header' => Mage::helper('bs_docwise')->__('Id'),\n 'index' => 'entity_id',\n 'type' => 'number'\n )\n );\n\n $this->addColumn(\n 'in_docwisements',\n array(\n 'header_css_class' => 'a-center',\n 'type' => 'checkbox',\n 'name' => 'in_docwisements',\n 'values'=> $this->_getSelectedDocwisements(),\n 'align' => 'center',\n 'index' => 'entity_id'\n )\n );\n\n $this->addColumn(\n 'doc_name',\n array(\n 'header' => Mage::helper('bs_docwise')->__('Document Name'),\n 'align' => 'left',\n 'index' => 'doc_name',\n )\n );\n\n\n $this->addColumn(\n 'doc_type',\n array(\n 'header' => Mage::helper('bs_docwise')->__('Document Type'),\n 'index' => 'doc_type',\n 'type' => 'options',\n 'options' => Mage::helper('bs_docwise')->convertOptions(\n Mage::getModel('bs_docwise/docwisement_attribute_source_doctype')->getAllOptions(false)\n )\n\n )\n );\n $this->addColumn(\n 'doc_date',\n array(\n 'header' => Mage::helper('bs_docwise')->__('Date'),\n 'index' => 'doc_date',\n 'type'=> 'date',\n\n )\n );\n\n $this->addColumn(\n 'download',\n array(\n 'header' => Mage::helper('bs_docwise')->__('View/Download'),\n 'type' =>'text',\n 'renderer' => 'bs_docwise/adminhtml_helper_column_renderer_download',\n\n 'filter' => false,\n 'sortable' => false,\n )\n );\n\n $this->addColumn(\n 'position',\n array(\n 'header' => Mage::helper('catalog')->__('Position'),\n 'name' => 'position',\n 'width' => 60,\n 'type' => 'number',\n 'validate_class' => 'validate-number',\n 'index' => 'position',\n 'editable' => true,\n )\n );\n $this->addColumn(\n 'action',\n array(\n 'header' => Mage::helper('bs_docwise')->__('Action'),\n 'width' => '100',\n 'type' => 'action',\n 'getter' => 'getId',\n 'actions' => array(\n array(\n 'caption' => Mage::helper('bs_docwise')->__('Edit'),\n 'url' => array('base'=> '*/docwise_docwisement/edit'),\n 'field' => 'id'\n )\n ),\n 'filter' => false,\n 'is_system' => true,\n 'sortable' => false,\n )\n );\n }", "public function getProductsBySize(int $size)\n {\n $collectionIds = Collection::getCollectionIdBySize($size);\n foreach($collectionIds as $key=> $ids)\n {\n $this->collectionIds[] = $ids['id'];\n }\n $products = Product::select('id','sku')->whereIn('collection_id', $this->collectionIds)->get();\n return $products;\n }", "protected function _prepareColumns() {\r\n $this->addColumn('entity_id', array(\r\n 'header' => Mage::helper('catalog')->__('ID'),\r\n 'width' => '50px',\r\n 'index' => 'entity_id',\r\n )); //Product Id\r\n $this->addColumn('name', array(\r\n 'header' => Mage::helper('catalog')->__('Name'),\r\n 'index' => 'name',\r\n )); //Product name\r\n\r\n $store = $this->_getStore();\r\n if ($store->getId()) {\r\n $this->addColumn('custom_name', array(\r\n 'header' => Mage::helper('catalog')->__('Name in %s', $store->getName()),\r\n 'index' => 'custom_name',\r\n ));\r\n }//Store Information \r\n\r\n $this->addColumn('type', array(\r\n 'header' => Mage::helper('catalog')->__('Type'),\r\n 'width' => '60px',\r\n 'index' => 'type_id',\r\n 'type' => 'options',\r\n 'options' => Mage::getSingleton('catalog/product_type')->getOptionArray(),\r\n )); //Product Type\r\n\r\n $sets = Mage::getResourceModel('eav/entity_attribute_set_collection')\r\n ->setEntityTypeFilter(Mage::getModel('catalog/product')->getResource()->getTypeId())\r\n ->load()\r\n ->toOptionHash();\r\n\r\n $this->addColumn('sku', array(\r\n 'header' => Mage::helper('catalog')->__('SKU'),\r\n 'width' => '80px',\r\n 'index' => 'sku',\r\n )); //Product unique id SKU\r\n\r\n $store = $this->_getStore();\r\n $this->addColumn('price', array(\r\n 'header' => Mage::helper('catalog')->__('Price'),\r\n 'type' => 'price',\r\n 'currency_code' => $store->getBaseCurrency()->getCode(),\r\n 'index' => 'price',\r\n )); //Product Price\r\n\r\n\r\n\r\n $this->addColumn('reqcoupon_status', array(\r\n 'header' => Mage::helper('catalog')->__('Request Coupon Status'),\r\n 'width' => '70px',\r\n 'index' => 'reqcoupon_status',\r\n 'type' => 'options',\r\n 'options' => Mage::getSingleton('catalog/product_status')->getOptionArray(),\r\n )); //Status of the Product \r\n\r\n /**\r\n * To export the Grid date in XML / CSV file\r\n */\r\n $this->addExportType('*/*/exportCsv', Mage::helper('reqforcoupon')->__('CSV'));\r\n $this->addExportType('*/*/exportXml', Mage::helper('reqforcoupon')->__('XML'));\r\n\r\n return parent::_prepareColumns();\r\n }", "protected function _prepareColumns()\n {\n $this->addColumn('increment_id', array(\n 'header' => Mage::helper('sales')->__('Shipment #'),\n 'index' => 'increment_id',\n 'filter_index' => 'main_table.increment_id',\n 'type' => 'text',\n ));\n $this->addColumn('shipment_id', array(\n 'header' => Mage::helper('sales')->__('Shipment #'),\n 'index' => 'entity_id',\n 'filter_index' => 'main_table.entity_id',\n 'type' => 'text',\n ));\n\n $this->addColumn('canpar_shipment_id', array(\n 'header' => Mage::helper('sales')->__('Canpar Shipment #'),\n 'index' => 'canpar_shipment_id',\n 'filter_index' => 'ch_shipment.shipment_id',\n 'type' => 'text',\n ));\n\n $this->addColumn('manifest_id', array(\n 'header' => Mage::helper('sales')->__('Canpar Manifest #'),\n 'index' => 'manifest_id',\n 'renderer' => 'canparmodule/adminhtml_canparshipment_renderer_manifestId',\n 'filter_index' => 'ch_shipment.manifest_id',\n ));\n\n $this->addColumn('created_at', array(\n 'header' => Mage::helper('sales')->__('Date Shipped'),\n 'index' => 'created_at',\n 'filter_index' =>'main_table.created_at',\n 'type' => 'datetime',\n ));\n\n $this->addColumn('order_increment_id', array(\n 'header' => Mage::helper('sales')->__('Order #'),\n 'index' => 'order_increment_id',\n 'filter_index'=> 'o.increment_id',\n 'type' => 'text',\n ));\n\n $this->addColumn('order_created_date', array(\n 'header' => Mage::helper('sales')->__('Order Date'),\n 'index' => 'order_created_date',\n 'filter_index' =>'o.created_at',\n 'type' => 'datetime',\n ));\n\n $this->addColumn('total_qty', array(\n 'header' => Mage::helper('sales')->__('Total Qty'),\n 'index' => 'total_qty',\n 'type' => 'number',\n ));\n\n $this->addColumn('action',\n array(\n 'header' => Mage::helper('sales')->__('Action'),\n 'width' => '50px',\n 'type' => 'action',\n 'getter' => 'getId',\n 'actions' => array(\n array(\n 'caption' => Mage::helper('sales')->__('View'),\n 'url' => array('base'=>'*/sales_shipment/view'),\n 'field' => 'shipment_id'\n )\n ),\n 'filter' => false,\n 'sortable' => false,\n 'is_system' => true\n ));\n\n $this->addExportType('*/*/exportCsv', Mage::helper('sales')->__('CSV'));\n $this->addExportType('*/*/exportExcel', Mage::helper('sales')->__('Excel XML'));\n\n return parent::_prepareColumns();\n }", "public function getSizeById($id){\n $query = \"SELECT * FROM tbl_size WHERE sizeId = '$id' \";\n $result = $this->db->select($query);\n return $result;\n }", "function estcalcpaperinfo($quoteid) {\n global $conn, $lang,$userid,$active_company;\n $recordSet=&$conn->Execute('select estprpricestockusagestock.numberout,estprpricestockusagestock.numberup,estprpricestockusagestock.cuts,estquotestdsize.width,estquotestdsize.length,estquotesubstock.inchesperm from estquote,estprprice,estprpricestockusage,estprpricestockusagestock,estquotesubstock,estquotestdsize where estquotestdsize.id=estprprice.estquotestdsizeid and estquote.id='.sqlprep($quoteid).' and estprprice.id=estquote.prpriceid and estprpricestockusage.prpriceid=estprprice.id and estprpricestockusagestock.stockusageid=estprpricestockusage.id and estquotesubstock.id=estprpricestockusagestock.substockid');\n if ($recordSet&&!$recordSet->EOF) {\n $numberout=$recordSet->fields[0];\n $numberup=$recordSet->fields[1];\n $cuts=$recordSet->fields[2];\n $width=$recordSet->fields[3];\n $length=$recordSet->fields[4];\n $height=$recordSet->fields[5];\n };\n if ($numberup==0) $numberup=1;\n $recordSet=&$conn->Execute('select max(estquotesubstock.parts), sum(estquotestdsize.length) from estquote,estprprice,estprpricestockusage,estprpricestockusagestock,estquotesubstock,estquotestdsize where estquotestdsize.id=estprprice.estquotestdsizeid and estquote.id='.sqlprep($quoteid).' and estprprice.id=estquote.prpriceid and estprpricestockusage.prpriceid=estprprice.id and estprpricestockusagestock.stockusageid=estprpricestockusage.id and estquotesubstock.id=estprpricestockusagestock.substockid');\n if ($recordSet&&!$recordSet->EOF) {\n $parts=$recordSet->fields[0];\n $totlength=$recordSet->fields[1];\n };\n $stuff=array(\"parts\" => $parts, \"numberout\" => $numberout, \"numberup\" => $numberup, \"cuts\" => $cuts, \"width\" => $width, \"length\" => $length, \"height\" => $height, \"totlength\" => $totlength);\n return $stuff;\n }", "function quadro_jetpack_related_thumb( $size ) {\n\t\n\tglobal $_wp_additional_image_sizes;\n\t\n\t// Return if we have no sizes to set\n\tif ( !isset($_wp_additional_image_sizes['quadro-med-thumb']) )\n\t\treturn $size;\n\n\t$size = array(\n\t\t'width' => $_wp_additional_image_sizes['quadro-med-thumb']['width'],\n\t\t'height' => $_wp_additional_image_sizes['quadro-med-thumb']['height']\n\t);\n\n\treturn $size;\n\n}", "public function setSize($size);", "function format_size($row) {\n if (is_null($row['job_size'])) {\n return \"...\";\n }\n $size = sprintf(\"%.2f\", $row['job_size']/1024).\" kb\";\n if (identity_can('job-view-source', $row)) {\n return format_link(url_job_view_source($row['id']), $size);\n }\n return $size;\n }", "public function setPaperSize($size = 0)\n {\n // Measurements\n // 1 inch = 1440 twips\n // 1 cm = 567 twips\n // 1 mm = 56.7 twips\n $inch = 1440;\n $mm = 56.7;\n // 1 => Letter (8.5 x 11 inch)\n // 2 => Legal (8.5 x 14 inch)\n // 3 => Executive (7.25 x 10.5 inch)\n // 4 => A3 (297 x 420 mm)\n // 5 => A4 (210 x 297 mm)\n // 6 => A5 (148 x 210 mm)\n // 7 => Wochenspiegel Format (209.85 x 297.01 mm)\n // Orientation considered as Portrait\n\n switch ($size) {\n case 1:\n $this->page_width = floor(8.5 * $inch);\n $this->page_height = floor(11 * $inch);\n $this->page_size = 1;\n break;\n case 2:\n $this->page_width = floor(8.5 * $inch);\n $this->page_height = floor(14 * $inch);\n $this->page_size = 5;\n break;\n case 3:\n $this->page_width = floor(7.25 * $inch);\n $this->page_height = floor(10.5 * $inch);\n $this->page_size = 7;\n break;\n case 4:\n $this->page_width = floor(297 * $mm);\n $this->page_height = floor(420 * $mm);\n $this->page_size = 8;\n break;\n case 5:\n default:\n $this->page_width = floor(210 * $mm);\n $this->page_height = floor(297 * $mm);\n $this->page_size = 9;\n break;\n case 6:\n $this->page_width = floor(148 * $mm);\n $this->page_height = floor(210 * $mm);\n $this->page_size = 10;\n break;\n case 7:\n $width = 209.85;\n $height = 297.01;\n $this->page_width = floor($width * $mm);\n $this->page_height = floor($height * $mm);\n $this->margins['left'] = floor($this->page_width / ($width / 10));\n $this->margins['right'] = 6637;\n $this->margins['top'] = floor($this->page_width / ($width / 10));\n $this->margins['bottom'] = floor($this->page_width / ($width / 10));\n $this->page_size = 11;\n break;\n }\n }", "function editSize($data) {\n\t\t\t$conn = $this->connect();\n\t\t\t$size = $this->modify(mysqli_real_escape_string($conn, $data['size']));\n\t\t\t$uid = $_SESSION['userid'];\n\t\t\t$pid = $_SESSION['pid'];\n\t\t\tif(empty($size)) {\n\t\t\t\t$this->re_direct(\"mypost_details\", \"post_id=\".$pid.\"&Empty\");\n\t\t\t} else {\n\t\t\t\tif(preg_match(\"/^[0-9]+$/\", $size)) {\n\t\t\t\t\tif($this->length($size, 8, 2)) {\n\t\t\t\t\t\t$result = $this->changepost('newpost', 'post_size', $size, $uid , $pid);\n\t\t\t\t\t\tif($result == true) {\n\t\t\t\t\t\t\t$this->re_direct(\"mypost_details\", \"post_id=\".$pid.\"&Successfully_Changed\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$this->re_direct(\"mypost_details\", \"post_id=\".$pid.\"&Failed!\");\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$this->re_direct(\"mypost_details\", \"post_id=\".$pid.\"&length=tooBigOrSmall\");\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t$this->re_direct(\"mypost_details\", \"post_id=\".$pid.\"&invalid=type\");\n\t\t\t\t}\n\t\t\t}\n\t\t}", "function bt_new_loop_shop_per_page( $cols ) {\n // $cols contains the current number of products per page based on the value stored on Options -> Reading\n // Return the number of products you wanna show per page.\n $cols = 12;\n return $cols;\n}", "public function morph()\n {\n $this->morphTable('lgsa055', [\n 'columns' => [\n new Column(\n 'recnum',\n [\n 'type' => Column::TYPE_BIGINTEGER,\n 'notNull' => true,\n 'autoIncrement' => true,\n 'size' => 1,\n 'first' => true\n ]\n ),\n new Column(\n 'field_1',\n [\n 'type' => Column::TYPE_DECIMAL,\n 'default' => \"0\",\n 'notNull' => true,\n 'size' => 2,\n 'after' => 'recnum'\n ]\n ),\n new Column(\n 'field_2',\n [\n 'type' => Column::TYPE_VARCHAR,\n 'default' => \" \",\n 'notNull' => true,\n 'size' => 12,\n 'after' => 'field_1'\n ]\n ),\n new Column(\n 'field_3',\n [\n 'type' => Column::TYPE_DATE,\n 'default' => \"01/01/0001\",\n 'notNull' => true,\n 'size' => 1,\n 'after' => 'field_2'\n ]\n ),\n new Column(\n 'field_4',\n [\n 'type' => Column::TYPE_DECIMAL,\n 'default' => \"0\",\n 'notNull' => true,\n 'size' => 4,\n 'scale' => 2,\n 'after' => 'field_3'\n ]\n ),\n new Column(\n 'field_5',\n [\n 'type' => Column::TYPE_VARCHAR,\n 'default' => \" \",\n 'notNull' => true,\n 'size' => 7,\n 'after' => 'field_4'\n ]\n ),\n new Column(\n 'field_6',\n [\n 'type' => Column::TYPE_VARCHAR,\n 'default' => \" \",\n 'notNull' => true,\n 'size' => 54,\n 'after' => 'field_5'\n ]\n ),\n new Column(\n 'field_7',\n [\n 'type' => Column::TYPE_VARCHAR,\n 'default' => \" \",\n 'notNull' => true,\n 'size' => 12,\n 'after' => 'field_6'\n ]\n ),\n new Column(\n 'field_8',\n [\n 'type' => Column::TYPE_VARCHAR,\n 'default' => \" \",\n 'notNull' => true,\n 'size' => 40,\n 'after' => 'field_7'\n ]\n ),\n new Column(\n 'field_9',\n [\n 'type' => Column::TYPE_VARCHAR,\n 'default' => \" \",\n 'notNull' => true,\n 'size' => 40,\n 'after' => 'field_8'\n ]\n )\n ],\n 'indexes' => [\n new Index('lgsa055_index00', ['recnum'], null),\n new Index('lgsa055_index01', ['field_6'], null),\n new Index('lgsa055_index02', ['recnum', 'field_6', 'field_8'], null)\n ],\n ]\n );\n }", "function parseSize ($size) {\n\tif ($size[0]!=\"*\"){\n\t$paperSize = explode(\" x \", $size);\n\t$paperSize[0] -= EDGEMARGIN;\n\t$paperSize[1] -= GRIPMARGIN;\n\treturn $paperSize;\n\t}\n}", "static function updatePaperConfig($PaperConfig = null)\r\n {\r\n if ($PaperConfig === null)\r\n {\r\n return false;\r\n }\r\n\r\n $tablePaperConfig = DatabaseManager::getNameTable('TABLE_PAPER_CONFIG');\r\n\r\n $id = $PaperConfig->getId();\r\n\r\n $baptismCertX = $PaperConfig->getBaptismCertX();\r\n $baptismCertY = $PaperConfig->getBaptismCertY();\r\n $copyBaptismCertX = $PaperConfig->getCopyBaptismCertX();\r\n $copyBaptismCertY = $PaperConfig->getCopyBaptismCertY();\r\n \r\n $communionCertX = $PaperConfig->getCommunionCertX();\r\n $communionCertY = $PaperConfig->getCommunionCertY();\r\n $copyCommunionCertX = $PaperConfig->getCopyCommunionCertX();\r\n $copyCommunionCertY = $PaperConfig->getCopyCommunionCertY();\r\n \r\n $confirmationCertX = $PaperConfig->getConfirmationCertX();\r\n $confirmationCertY = $PaperConfig->getConfirmationCertY();\r\n $copyConfirmationCertX= $PaperConfig->getCopyConfirmationCertX();\r\n $copyConfirmationCertY= $PaperConfig->getCopyConfirmationCertY();\r\n\r\n $marriageCertX = $PaperConfig->getMarriageCertX();\r\n $marriageCertY = $PaperConfig->getMarriageCertY();\r\n $marriageConstancyX = $PaperConfig->getMarriageConstancyX();\r\n $marriageConstancyY = $PaperConfig->getMarriageConstancyY();\r\n $marriageNoticeX = $PaperConfig->getMarriageNoticeX();\r\n $marriageNoticeY = $PaperConfig->getMarriageNoticeY();\r\n $marriageExhortX = $PaperConfig->getMarriageExhortX();\r\n $marriageExhortY = $PaperConfig->getMarriageExhortY(); \r\n $marriageTraslationX = $PaperConfig->getMarriageTraslationX();\r\n $marriageTraslationY = $PaperConfig->getMarriageTraslationY();\r\n\r\n $query = \"UPDATE $tablePaperConfig\r\n SET baptismCertX = $baptismCertX, \r\n baptismCertY = $baptismCertY, \r\n copyBaptismCertX = $copyBaptismCertX, \r\n copyBaptismCertY = $copyBaptismCertY,\r\n communionCertX = $communionCertX,\r\n communionCertY = $communionCertY,\r\n copyCommunionCertX = $copyCommunionCertX,\r\n copyCommunionCertY = $copyCommunionCertY,\r\n confirmationCertX = $confirmationCertX,\r\n confirmationCertY = $confirmationCertY,\r\n copyConfirmationCertX = $copyConfirmationCertX,\r\n copyConfirmationCertY = $copyConfirmationCertY,\r\n marriageCertX = $marriageCertX,\r\n marriageCertY = $marriageCertY,\r\n marriageConstancyX = $marriageConstancyX,\r\n marriageConstancyY = $marriageConstancyY,\r\n marriageNoticeX = $marriageNoticeX,\r\n marriageNoticeY = $marriageNoticeY,\r\n marriageExhortX = $marriageExhortX,\r\n marriageExhortY = $marriageExhortY,\r\n marriageTraslationX = $marriageTraslationX,\r\n marriageTraslationY = $marriageTraslationY\r\n WHERE $tablePaperConfig.id = $id\";\r\n\r\n return DatabaseManager::singleAffectedRow($query);\r\n }", "public function updateSizeDetail($size, $stock, $price)\n {\n $this->saveAs($size, $stock, $price);\n $this->save();\n }", "public function customColumns($book_id);", "public function getMoreSixRate($panel_id, $flat_id, $cradle_id, $square_feet, $quantity, $width, $height)\n {\n // Create connection\n\t\t$dbh = new mysqli($this->servername, $this->username, $this->password, $this->dbname);\n\t\tif ($dbh->connect_error) {\n\t\t\tdie(\"Connection failed: \" . $dbh->connect_error);\n\t\t}\n\n\t\t// values to build our query\n\t\t$price = '1234';\n\t\t$price_total = '0';\n\t\t$product_type = '1_2';\n\t\t$thickness = \"1/8\";\n\t\t$thicknessPlusPercentage = 0;\n\t\t$cradlePlusPercentage = 0;\n\t\t$db_price = 0;\n\t\t$debug_panel_price = 0;\n\t\t\n\t\t// debug - database price\n\t\t$d_db_price = 0;\n\t\t// debug - square foot price total\n\t\t$d_sf_price = 0;\n\t\t// debug - price after qualtity discount\n\t\t$d_after_quantity_price = 0;\n\t\t// debug - price per square inch\n\t\t$d_square_inch_price = 0;\n\t\t// debug - cradle price\n\t\t$d_cradle_price = 0;\n\t\t\n\t\t\n\t\tif($panel_id == 1 || $panel_id == 2 || $panel_id == 3 || $panel_id == 4)\n\t\t\t$product_type = '1_1';\n\t\t\t\n\t\t\t\n\t\tif($panel_id == 5 || $panel_id == 6)\n\t\t\t$product_type = '1_3';\n\t\t\t\n\t\tif($panel_id == 7)\n\t\t\t$product_type == '1_2';\n\t\t\n\t\t\n\t\tif($flat_id == 1)\n\t\t\t$thickness = \"1/8\";\n\t\tif($flat_id == 2)\n\t\t\t$thickness = \"1/4\";\n\t\t\n\t\t\t\n\t\t// STEPS\n\t\t\n\t\t// 1. Get price from nearest size\n\t\t$query = \"select * from tl_price_chart_large WHERE width = '\".$thickness.\"'\";\n\t\t$result = $dbh->query($query);\n\t\tif($result) {\n\t\t\t\n\t\t\twhile($row = $result->fetch_assoc()) {\n\t\t\t\t$price = $row[$product_type];\n\t\t\t\t$db_price = $row[$product_type];\n\t\t\t\t$d_db_price = $row[$product_type];\n\t\t\t}\n\t\t} else {\n\t\t\treturn \"Something has gone wrong! \".$sql->errorno;\n\t\t}\n\t\t\n\t\t// multiply the price based on the quantity\n\t\t$price = $price * $square_feet;\n\t\t\n\t\t$d_sf_price = $price;\n\t\t\n\t\t// add a quantity discount\n\t\t$quantity_discount = 0.10;\n\t\tif($quantity == 2)\n\t\t\t$quantity_discount = 0.20;\n\t\tif($quantity == 3)\n\t\t\t$quantity_discount = 0.30;\n\t\tif($quantity >= 4 && $quantity <= 9)\n\t\t\t$quantity_discount = 0.40;\n\t\tif($quantity >= 10)\n\t\t\t$quantity_discount = 0.50;\n\t\t\t\n\t\t$price = $price - ($price * $quantity_discount);\n\t\t\n\t\t$d_after_quantity_price = $price;\n\t\n\t\t\n\t\t// DETERMINE THE CRADLE PRICE\n\t\t\n\t\t// figure out the every X inch size\n\t\t$every_x_inches = 12.01;\n\t\tif( $cradle_id == 5 || $cradle_id == 6 || $cradle_id == 7 || $cradle_id == 8 )\n\t\t\t$every_x_inches = 24.01;\n\t\t\t\n\t\t// figure out the price per linear inch price\n\t\t$price_per_inch = 0;\n\t\t\n\t\t\n\t\t/*\n\t\tif($cradle_id == 3)\n\t\t\t$price_per_inch = 0.44;\n\t\tif($cradle_id == 4)\n\t\t\t$price_per_inch = 0.50;\n\t\tif($cradle_id == 5)\n\t\t\t$price_per_inch = 0.52;\n\t\tif($cradle_id == 6)\n\t\t\t$price_per_inch = 0.55;\n\t\tif($cradle_id == 7)\n\t\t\t$price_per_inch = 0.58;\n\t\tif($cradle_id == 8)\n\t\t\t$price_per_inch = 0.60;\n\t\t*/\n\t\t\n\t\t\n\t\t$cradle_table = '';\n\t\tswitch($cradle_id) {\n\t\t\tcase 3:\n\t\t\t\t$cradle_table = \"3_4_inch\";\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\t$cradle_table = \"1_inch\";\n\t\t\t\tbreak;\n\t\t\tcase 5:\n\t\t\t\t$cradle_table = \"1_5_inch\";\n\t\t\t\tbreak;\n\t\t\tcase 6:\n\t\t\t\t$cradle_table = \"2_inch\";\n\t\t\t\tbreak;\n\t\t\tcase 7:\n\t\t\t\t$cradle_table = \"2_5_inch\";\n\t\t\t\tbreak;\n\t\t\tcase 8:\n\t\t\t\t$cradle_table = \"3_inch\";\n\t\t\t\tbreak;\n\t\t}\n\t\t\n\t\t\n\t\t$query = \"select * from tl_cradle_prices\";\n\t\t$result = $dbh->query($query);\n\t\tif($result) {\n\t\t\t\n\t\t\twhile($row = $result->fetch_assoc()) {\n\t\t\t\t$price_per_inch = $row[$cradle_table];\n\t\t\t}\n\t\t} else {\n\t\t\treturn \"Something has gone wrong! \".$sql->errorno;\n\t\t}\n\t\t\n\t\t//return $price_per_inch;\n\t\t$d_square_inch_price = $price_per_inch;\n\t\t\t\n\t\t// step one is divide width by every_x and divide height by every_y;\n\t\t$cross_width = ceil($width / $every_x_inches);\n\t\t$cross_height = ceil($height / $every_x_inches);\n\t\t\n\t\t$linear_inch_width = ($cross_width + 1) * $height;\n\t\t$linear_inch_height = ($cross_height + 1) * $width;\n\t\t\n\t\t$cradle_price = ($linear_inch_width + $linear_inch_height) * $price_per_inch;\n\t\t\n\t\t$d_cradle_price = $cradle_price;\n\t\t\n\t\t// if we have a cradle selected, take 15% off the panel\n\t\tif($cradle_id == 3 || $cradle_id == 4 || $cradle_id == 5 || $cradle_id == 6 || $cradle_id == 7 || $cradle_id == 8)\n\t\t\t$cradle_price = $cradle_price - ($cradle_price * 0.15);\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t// cradle price total is price multiplied by how many\n\t\t//$cradle_price = $cradle_price * $quantity;\n\t\t\n\t\t// price total is the price multiplied by how many\n\t\t//$price_total = $price * $quantity;\n\t\t\n\t\t\n\t\t$price_total = $price + $cradle_price;\n\t\t\n\t\t//if 48\" add ten percent;\n\t\tif($width == 48)\n\t\t\t$price_total = $price_total + ($price_total * 0.10);\n\t\t\t\n\t\t\t\n\t\t// multiply by quantity\n\t\t\n\t\t$price_total = $price_total * $quantity;\n\t\t\n\t\t// add the cradle price onto the total\n\t\t//$price_total = $price_total + $cradle_price;\n\t\t\n\t\t// if we see 9999 that means this function finished but we didnt get back what we wanted from it\n\t\t//return $price_total;\n\t\t//return $db_price;\n\t\t\n\t\t// Debug - send email with values\n\t\t//$this->pushDebugMessage($d_db_price, $d_sf_price, $d_after_quantity_price, $d_square_inch_price, $d_cradle_price);\n\t\t\n\t\treturn $price_total;\n\t\t//return $price_per_inch;\n\t\t\n\t\t\n\t\t\n }", "public function loadItemProperties()\n {\n $data = Yii::app()->db->createCommand()\n ->select('t1.title,t1.il,t1.iwa,t1.iww,t1.iwt,t1.ils,t1.iws,t1.iwp,t1.iwss,t1.iwcb,t1.bw,t1.vpr,t1.rpli,t1.iwar,t1.iwwr,t2.stretch')\n ->from('itemsize as t1')\n ->leftJoin('item as t2','t2.id=t1.item_id')\n ->where('t1.item_id=:item_id', array(':item_id'=>$this->itemId))\n ->queryAll();\n \n foreach($data as $itemSize)\n {\n foreach($itemSize as $key=>$value) \n {\n if($key!='title') {\n $this->itemProperties[$itemSize['title'].'_'.$this->itemS[$key]]=$value;\n $this->sizeList[$itemSize['title']]=$itemSize['title'];\n } \n }\n }\n //Helper::myPrint_r($this->itemProperties);\n }", "function esiUpdateApiContractItems() {\n $table = db_asocquery(\"DESCRIBE `apicontractitems`;\");\n $found = FALSE;\n foreach ($table as $column) {\n if ($column['Field']=='rawQuantity' && $column['Type']=='int(11)') {\n $found = TRUE;\n }\n } \n if ($found === FALSE) {\n return db_uquery(\"ALTER TABLE `apicontractitems` ADD COLUMN `rawQuantity` int(11) NULL DEFAULT NULL AFTER `quantity`;\");\n }\n return TRUE;\n}", "public function save() {\n\t\tif (!is_null($this->getId())) {\n\t\t\t$sql = 'update cart_orders_products_attributes set ';\n\t\t} else {\n\t\t\t$sql = 'insert into cart_orders_products_attributes set ';\n\t\t}\n\t\tif (!is_null($this->getOrderid())) {\n\t\t\t$sql .= '`orders_id`=\"' . e($this->getOrderid()) . '\", ';\n\t\t}\n\t\tif (!is_null($this->getProductid())) {\n\t\t\t$sql .= '`orders_products_id`=\"' . e($this->getProductid()) . '\", ';\n\t\t}\n\t\tif (!is_null($this->getProducts_options())) {\n\t\t\t$sql .= '`products_options`=\"' . e($this->getProducts_options()) . '\", ';\n\t\t}\n\t\tif (!is_null($this->getProducts_options_values())) {\n\t\t\t$sql .= '`products_options_values`=\"' . e($this->getProducts_options_values()) . '\", ';\n\t\t}\n\t\tif (!is_null($this->getOptions_values_price())) {\n\t\t\t$sql .= '`options_values_price`=\"' . e($this->getOptions_values_price()) . '\", ';\n\t\t}\n\t\tif (!is_null($this->getPrice_prefix())) {\n\t\t\t$sql .= '`price_prefix`=\"' . e($this->getPrice_prefix()) . '\", ';\n\t\t}\n\t\tif (!is_null($this->getProduct_attribute_is_free())) {\n\t\t\t$sql .= '`product_attribute_is_free`=\"' . e($this->getProduct_attribute_is_free()) . '\", ';\n\t\t}\n\t\tif (!is_null($this->getProducts_attributes_weight())) {\n\t\t\t$sql .= '`products_attributes_weight`=\"' . e($this->getProducts_attributes_weight()) . '\", ';\n\t\t}\n\t\tif (!is_null($this->getProducts_attributes_weight_prefix())) {\n\t\t\t$sql .= '`products_attributes_weight_prefix`=\"' . e($this->getProducts_attributes_weight_prefix()) . '\", ';\n\t\t}\n\t\tif (!is_null($this->getAttributes_discounted())) {\n\t\t\t$sql .= '`attributes_discounted`=\"' . e($this->getAttributes_discounted()) . '\", ';\n\t\t}\n\t\tif (!is_null($this->getAttributes_price_base_included())) {\n\t\t\t$sql .= '`attributes_price_base_included`=\"' . e($this->getAttributes_price_base_included()) . '\", ';\n\t\t}\n\t\tif (!is_null($this->getAttributes_price_onetime())) {\n\t\t\t$sql .= '`attributes_price_onetime`=\"' . e($this->getAttributes_price_onetime()) . '\", ';\n\t\t}\n\t\tif (!is_null($this->getAttributes_price_factor())) {\n\t\t\t$sql .= '`attributes_price_factor`=\"' . e($this->getAttributes_price_factor()) . '\", ';\n\t\t}\n\t\tif (!is_null($this->getAttributes_price_factor_offset())) {\n\t\t\t$sql .= '`attributes_price_factor_offset`=\"' . e($this->getAttributes_price_factor_offset()) . '\", ';\n\t\t}\n\t\tif (!is_null($this->getAttributes_price_factor_onetime())) {\n\t\t\t$sql .= '`attributes_price_factor_onetime`=\"' . e($this->getAttributes_price_factor_onetime()) . '\", ';\n\t\t}\n\t\tif (!is_null($this->getAttributes_price_factor_onetime_offset())) {\n\t\t\t$sql .= '`attributes_price_factor_onetime_offset`=\"' . e($this->getAttributes_price_factor_onetime_offset()) . '\", ';\n\t\t}\n\t\tif (!is_null($this->getAttributes_qty_prices())) {\n\t\t\t$sql .= '`attributes_qty_prices`=\"' . e($this->getAttributes_qty_prices()) . '\", ';\n\t\t}\n\t\tif (!is_null($this->getAttributes_qty_prices_onetime())) {\n\t\t\t$sql .= '`attributes_qty_prices_onetime`=\"' . e($this->getAttributes_qty_prices_onetime()) . '\", ';\n\t\t}\n\t\tif (!is_null($this->getAttributes_price_words())) {\n\t\t\t$sql .= '`attributes_price_words`=\"' . e($this->getAttributes_price_words()) . '\", ';\n\t\t}\n\t\tif (!is_null($this->getAttributes_price_words_free())) {\n\t\t\t$sql .= '`attributes_price_words_free`=\"' . e($this->getAttributes_price_words_free()) . '\", ';\n\t\t}\n\t\tif (!is_null($this->getAttributes_price_letters())) {\n\t\t\t$sql .= '`attributes_price_letters`=\"' . e($this->getAttributes_price_letters()) . '\", ';\n\t\t}\n\t\tif (!is_null($this->getAttributes_price_letters_free())) {\n\t\t\t$sql .= '`attributes_price_letters_free`=\"' . e($this->getAttributes_price_letters_free()) . '\", ';\n\t\t}\n\t\tif (!is_null($this->getProducts_options_id())) {\n\t\t\t$sql .= '`products_options_id`=\"' . e($this->getProducts_options_id()) . '\", ';\n\t\t}\n\t\tif (!is_null($this->getProducts_options_values_id())) {\n\t\t\t$sql .= '`products_options_values_id`=\"' . e($this->getProducts_options_values_id()) . '\", ';\n\t\t}\n\t\tif (!is_null($this->getProducts_prid())) {\n\t\t\t$sql .= '`products_prid`=\"' . e($this->getProducts_prid()) . '\", ';\n\t\t}\n\t\tif (!is_null($this->getId())) {\n\t\t\t$sql .= 'orders_products_attributes_id=\"' . e($this->getId()) . '\" where orders_products_attributes_id=\"' . e($this->getId()) . '\"';\n\t\t} else {\n\t\t\t$sql = trim($sql, ', ');\n\t\t}\n\t\tDatabase::singleton()->query($sql);\n\t\tif (is_null($this->getId())) {\n\t\t\t$this->setId(Database::singleton()->lastInsertedID());\n\t\t\tself::__construct($this->getId());\n\t\t}\n\t}", "function save_size_catalogue($iCatalogueId,$mydata)\n\t{\n\t\t/** Delete before add **/\n\t\t$this->delete_catalogue_size($iCatalogueId,$mydata);\n\t\t\n\t\t/** save catalogue sizes **/\n\t\tfor($i=0;$i<3;$i++){\n\t\t\t/** check data is available **/\n\t\t\tif($mydata['vSizeName'.$i] != '' && $mydata['vSizeColor'.$i] != '' && $mydata['fSizePrice'.$i] != '')\n\t\t\t{\n\t\t\t\t/** app size catalogue **/\n\t\t\t\t$insert = \"insert into r_app_size_catalogue set vSizeName = '\".$mydata['vSizeName'.$i].\"',\n\t\t\t\t\tvSizeColor = '\".$mydata['vSizeColor'.$i].\"',\n\t\t\t\t\tfSizePrice = '\".$mydata['fSizePrice'.$i].\"',\n\t\t\t\t\tiCatelogueId = '\".$iCatalogueId.\"'\";\n\t\t\t\t/** query **/\n\t\t\t\t$query = $this->db->query($insert);\n\t\t\t}\n\t\t}\n\t\treturn $query;\n\t}", "public function addSize($item_id, $item_numberofs, $item_numberofm, $item_numberofl, $item_numberofxl, $item_numberofxxl)\n\t{\n\t\t$db = $this->dbConnect();\n\n\t\t$req = $db->prepare('INSERT INTO items_size (item_id, item_numberofs, item_numberofm, item_numberofl, item_numberofxl, item_numberofxxl) VALUES (?, ?, ?, ?, ?, ?)');\n\t\t$req->execute([$item_id, $item_numberofs, $item_numberofm, $item_numberofl, $item_numberofxl, $item_numberofxxl]);\n\t}", "public function getSixRate($panel_id, $flat_id, $cradle_id, $square_feet, $quantity, $width, $height)\n\t{\n\t\t\n\t\t// Create connection\n\t\t$dbh = new mysqli($this->servername, $this->username, $this->password, $this->dbname);\n\t\tif ($dbh->connect_error) {\n\t\t\tdie(\"Connection failed: \" . $dbh->connect_error);\n\t\t}\n\n\t\t\n\t\t// values to build our query\n\t\t$price = '9999';\n\t\t$product_type = 'unselected';\n\t\t$thicknessPlusPercentage = 0;\n\t\t$cradlePlusPercentage = 0;\n\t\t\n\t\t\n\t\t// if uncradled, otherwise use 3/4 sizes\n\t\tif($cradle_id == 'none')\n\t\t{\n\t\t\t// set which price field to grab based on which panel is selected\n\t\t\tif($panel_id == 1 || $panel_id == 2 || $panel_id == 3 || $panel_id == 4)\n\t\t\t\t$product_type = '1_8_1';\n\t\t\telse if($panel_id == 5 || $panel_id == 6)\n\t\t\t\t$product_type = '1_8_2';\n\t\t\telse if($panel_id == 7)\n\t\t\t\t$product_type = '1_8_3';\n\t\t} else {\n\t\t\tif($panel_id == 7)\n\t\t\t\t$product_type = '3_4_1';\n\t\t\telse\n\t\t\t\t$product_type = '3_4_2';\n\t\t}\n\t\t\n\t\t// add 15% if thickness is 1/4\n\t\tif($flat_id == 2)\n\t\t\t$thicknessPlusPercentage = 15;\n\t\t\n\t\t// add 20% if cradle is 1\" through 2\"\n\t\tif($cradle_id == 4 || $cradle_id == 5 || $cradle_id == 6)\n\t\t\t$cradlePlusPercentage = 20;\n\t\telse if($cradle_id == 7 || $cradle_id == 8)\n\t\t\t$cradlePlusPercentage = 25;\n\t\t\n\t\t\n\t\t// STEPS\n\t\t\n\t\t// 1. Get price from nearest size\n\t\t$query = \"select * from tl_price_chart WHERE square_feet >= \".$square_feet.\" ORDER BY square_feet ASC LIMIT 1\";\n\t\t$result = $dbh->query($query);\n\t\tif($result) {\n\t\t\t\n\t\t\twhile($row = $result->fetch_assoc()) {\n\t\t\t\t$price = $row[$product_type];\n\t\t\t}\n\t\t} else {\n\t\t\treturn \"Something has gone wrong! \".$sql->errorno;\n\t\t}\n\t\t\n\t\t\n\t\t// add our thickness plus percentage\n\t\t$price = $price + ($price * ($thicknessPlusPercentage/100));\n\t\t\n\t\t// add our cradle plus percentage\n\t\t$price = $price + ($price * ($cradlePlusPercentage/100));\n\t\t\n\t\t// add 20% for lengths of 72 or higher\n\t\tif($height >= 72)\n\t\t\t$price = $price + ($price * (20/100));\n\n\t\t// multiply the price based on the quantity\n\t\t$price = $price * $quantity;\n\t\t\n\t\t\n\t\t// add a quantity discount\n\t\t$quantity_discount = 0;\n\t\tif($quantity >= 10 && $quantity <= 24)\n\t\t\t$quantity_discount = 0.15;\n\t\tif($quantity >= 25 && $quantity <= 49)\n\t\t\t$quantity_discount = 0.20;\n\t\tif($quantity >= 50 && $quantity <= 99)\n\t\t\t$quantity_discount = 0.25;\n\t\tif($quantity >= 100 && $quantity <= 249)\n\t\t\t$quantity_discount = 0.30;\n\t\tif($quantity >= 250 && $quantity <= 499)\n\t\t\t$quantity_discount = 0.40;\n\t\tif($quantity >= 500)\n\t\t\t$quantity_discount = 0.50;\n\t\t\t\n\t\t$price = $price - ($price * $quantity_discount);\n\t\t\n\t\t\n\t\t// if we see 9999 that means this function finished but we didnt get back what we wanted from it\n\t\treturn $price;\n\t}", "function convert_shop( &$obj )\n\t{\n\t\t// set default photo\n\t\t$obj->default_photo = $this->get_default_photo( $obj->id, 'shop' );\n\n\t\t// set default icon \n\t\t$obj->default_icon = $this->get_default_photo( $obj->id, 'shop-icon' );\n\n\t\t// touch count\n\t\t$obj->touch_count = $this->CI->Touch->count_all_by(array(\"type_id\" => $obj->id, \"type_name\" => \"shop\"));\n\n\t\t//rating details \n\t\t\n\t\t// $obj->like_count = $this->CI->Like->count_all_by(array(\"product_id\" => $obj->id));\n\n\t\t\n\t\t$total_rating_count = 0;\n\t\t$total_rating_value = 0;\n\n\t\t$five_star_count = 0;\n\t\t$five_star_percent = 0;\n\n\t\t$four_star_count = 0;\n\t\t$four_star_percent = 0;\n\n\t\t$three_star_count = 0;\n\t\t$three_star_percent = 0;\n\n\t\t$two_star_count = 0;\n\t\t$two_star_percent = 0;\n\n\t\t$one_star_count = 0;\n\t\t$one_star_percent = 0;\n\n\t\t//Rating Total how much ratings for this product\n\t\t$conds_rating['shop_id'] = $obj->id;\n\t\t$total_rating_count = $this->CI->Shop_rate->count_all_by($conds_rating);\n\t\t$sum_rating_value = $this->CI->Shop_rate->sum_all_by($conds_rating)->result()[0]->rating;\n\n\t\t//Rating Value such as 3.5, 4.3 and etc\n\t\tif($total_rating_count > 0) {\n\t\t\t$total_rating_value = number_format((float) ($sum_rating_value / $total_rating_count), 1, '.', '');\n\t\t} else {\n\t\t\t$total_rating_value = 0;\n\t\t}\n\n\t\t//For 5 Stars rating\n\n\t\t$conds_five_star_rating['rating'] = 5;\n\t\t$conds_five_star_rating['shop_id'] = $obj->id;\n\t\t$five_star_count = $this->CI->Shop_rate->count_all_by($conds_five_star_rating);\n\t\tif($total_rating_count > 0) {\n\t\t\t$five_star_percent = number_format((float) ((100 / $total_rating_count) * $five_star_count), 1, '.', '');\n\t\t} else {\n\t\t\t$five_star_percent = 0;\n\t\t}\n\n\t\t//For 4 Stars rating\n\t\t$conds_four_star_rating['rating'] = 4;\n\t\t$conds_four_star_rating['shop_id'] = $obj->id;\n\t\t$four_star_count = $this->CI->Shop_rate->count_all_by($conds_four_star_rating);\n\t\tif($total_rating_count > 0) {\n\t\t\t$four_star_percent = number_format((float) ((100 / $total_rating_count) * $four_star_count), 1, '.', '');\n\t\t} else {\n\t\t\t$four_star_percent = 0;\n\t\t}\n\n\n\t\t//For 3 Stars rating\n\t\t$conds_three_star_rating['rating'] = 3;\n\t\t$conds_three_star_rating['shop_id'] = $obj->id;\n\t\t$three_star_count = $this->CI->Shop_rate->count_all_by($conds_three_star_rating);\n\t\tif($total_rating_count > 0) {\n\t\t\t$three_star_percent = number_format((float) ((100 / $total_rating_count) * $three_star_count), 1, '.', '');\n\t\t} else {\n\t\t\t$three_star_percent = 0;\n\t\t}\n\n\n\t\t//For 2 Stars rating\n\t\t$conds_two_star_rating['rating'] = 2;\n\t\t$conds_two_star_rating['shop_id'] = $obj->id;\n\t\t$two_star_count = $this->CI->Shop_rate->count_all_by($conds_two_star_rating);\n\n\t\tif($total_rating_count > 0) {\n\t\t\t$two_star_percent = number_format((float) ((100 / $total_rating_count) * $two_star_count), 1, '.', '');\n\t\t} else {\n\t\t\t$two_star_percent = 0;\n\t\t}\n\n\t\t//For 1 Stars rating\n\t\t$conds_one_star_rating['rating'] = 1;\n\t\t$conds_one_star_rating['shop_id'] = $obj->id;\n\t\t$one_star_count = $this->CI->Shop_rate->count_all_by($conds_one_star_rating);\n\n\t\tif($total_rating_count > 0) {\n\t\t$one_star_percent = number_format((float) ((100 / $total_rating_count) * $one_star_count), 1, '.', '');\n\t\t} else {\n\t\t\t$one_star_percent = 0;\n\t\t}\n\n\n\t\t$rating_std = new stdClass();\n\t\t@$rating_std->five_star_count = $five_star_count; \n\t\t$rating_std->five_star_percent = $five_star_percent;\n\n\t\t$rating_std->four_star_count = $four_star_count;\n\t\t$rating_std->four_star_percent = $four_star_percent;\n\n\t\t$rating_std->three_star_count = $three_star_count;\n\t\t$rating_std->three_star_percent = $three_star_percent;\n\n\t\t$rating_std->two_star_count = $two_star_count;\n\t\t$rating_std->two_star_percent = $two_star_percent;\n\n\t\t$rating_std->one_star_count = $one_star_count;\n\t\t$rating_std->one_star_percent = $one_star_percent;\n\n\t\t$rating_std->total_rating_count = $total_rating_count;\n\t\t$rating_std->total_rating_value = $total_rating_value;\n\n\n\t\t$obj->rating_details = $rating_std;\n\n\t\t// grocery branch object\n\t\tif ( isset( $obj->id )) {\n\t\t\t$conds['shop_id'] = $obj->id;\n\t\t\t$tmp_grocery_branch_count = $this->CI->Grocery_branch->count_all_by( $conds );\n\t\t\tif( $tmp_res_branch_count > 0 ) {\n\t\t\t\t$tmp_grocery_branch = $this->CI->Grocery_branch->get_all_by( $conds )->result();\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\t$tmp_grocery_branch[] = $this->CI->Grocery_branch->get_empty_object();\n\t\t\t}\n\t\t\t$obj->grocery_branch = $tmp_grocery_branch;\n\t\t}\n\n\t\tif($need_return)\n\t\t{\n\t\t\treturn $obj;\n\t\t}\t\n\t}", "public function size_matrix()\n {\n return $this->hasMany('App\\Size_Matrix');\n }", "function twentytwelve_store_store_columns( $columns ) {\n return $columns = 3;\n}", "public function morph()\n {\n $this->morphTable('rpsa0437', [\n 'columns' => [\n new Column(\n 'recnum',\n [\n 'type' => Column::TYPE_BIGINTEGER,\n 'notNull' => true,\n 'autoIncrement' => true,\n 'size' => 1,\n 'first' => true\n ]\n ),\n new Column(\n 'filial',\n [\n 'type' => Column::TYPE_DECIMAL,\n 'default' => \"0\",\n 'notNull' => true,\n 'size' => 2,\n 'after' => 'recnum'\n ]\n ),\n new Column(\n 'numero',\n [\n 'type' => Column::TYPE_DECIMAL,\n 'default' => \"0\",\n 'notNull' => true,\n 'size' => 8,\n 'after' => 'filial'\n ]\n ),\n new Column(\n 'serie',\n [\n 'type' => Column::TYPE_VARCHAR,\n 'default' => \" \",\n 'notNull' => true,\n 'size' => 5,\n 'after' => 'numero'\n ]\n ),\n new Column(\n 'emissao',\n [\n 'type' => Column::TYPE_DATE,\n 'default' => \"01/01/0001\",\n 'notNull' => true,\n 'size' => 1,\n 'after' => 'serie'\n ]\n ),\n new Column(\n 'situacao',\n [\n 'type' => Column::TYPE_VARCHAR,\n 'default' => \" \",\n 'notNull' => true,\n 'size' => 1,\n 'after' => 'emissao'\n ]\n ),\n new Column(\n 'valor_servicos',\n [\n 'type' => Column::TYPE_DECIMAL,\n 'default' => \"0\",\n 'notNull' => true,\n 'size' => 10,\n 'scale' => 2,\n 'after' => 'situacao'\n ]\n ),\n new Column(\n 'valor_deducoes',\n [\n 'type' => Column::TYPE_DECIMAL,\n 'default' => \"0\",\n 'notNull' => true,\n 'size' => 10,\n 'scale' => 2,\n 'after' => 'valor_servicos'\n ]\n ),\n new Column(\n 'csp',\n [\n 'type' => Column::TYPE_DECIMAL,\n 'default' => \"0\",\n 'notNull' => true,\n 'size' => 8,\n 'after' => 'valor_deducoes'\n ]\n ),\n new Column(\n 'aliquota',\n [\n 'type' => Column::TYPE_DECIMAL,\n 'default' => \"0\",\n 'notNull' => true,\n 'size' => 4,\n 'scale' => 2,\n 'after' => 'csp'\n ]\n ),\n new Column(\n 'iss_retido',\n [\n 'type' => Column::TYPE_VARCHAR,\n 'default' => \" \",\n 'notNull' => true,\n 'size' => 1,\n 'after' => 'aliquota'\n ]\n ),\n new Column(\n 'iss_valor',\n [\n 'type' => Column::TYPE_DECIMAL,\n 'default' => \"0\",\n 'notNull' => true,\n 'size' => 10,\n 'scale' => 2,\n 'after' => 'iss_retido'\n ]\n ),\n new Column(\n 'tomador_emp',\n [\n 'type' => Column::TYPE_DECIMAL,\n 'default' => \"0\",\n 'notNull' => true,\n 'size' => 2,\n 'after' => 'iss_valor'\n ]\n ),\n new Column(\n 'tomador_cod',\n [\n 'type' => Column::TYPE_DECIMAL,\n 'default' => \"0\",\n 'notNull' => true,\n 'size' => 8,\n 'after' => 'tomador_emp'\n ]\n ),\n new Column(\n 'tomador',\n [\n 'type' => Column::TYPE_DECIMAL,\n 'default' => \"0\",\n 'notNull' => true,\n 'size' => 10,\n 'scale' => 2,\n 'after' => 'tomador_cod'\n ]\n ),\n new Column(\n 'valor_cofins',\n [\n 'type' => Column::TYPE_DECIMAL,\n 'default' => \"0\",\n 'notNull' => true,\n 'size' => 10,\n 'scale' => 2,\n 'after' => 'tomador'\n ]\n ),\n new Column(\n 'valor_csll',\n [\n 'type' => Column::TYPE_DECIMAL,\n 'default' => \"0\",\n 'notNull' => true,\n 'size' => 10,\n 'scale' => 2,\n 'after' => 'valor_cofins'\n ]\n ),\n new Column(\n 'valor_inss',\n [\n 'type' => Column::TYPE_DECIMAL,\n 'default' => \"0\",\n 'notNull' => true,\n 'size' => 10,\n 'scale' => 2,\n 'after' => 'valor_csll'\n ]\n ),\n new Column(\n 'valor_irpj',\n [\n 'type' => Column::TYPE_DECIMAL,\n 'default' => \"0\",\n 'notNull' => true,\n 'size' => 10,\n 'scale' => 2,\n 'after' => 'valor_inss'\n ]\n ),\n new Column(\n 'valor_pis',\n [\n 'type' => Column::TYPE_DECIMAL,\n 'default' => \"0\",\n 'notNull' => true,\n 'size' => 10,\n 'scale' => 2,\n 'after' => 'valor_irpj'\n ]\n ),\n new Column(\n 'condicao_pagto',\n [\n 'type' => Column::TYPE_VARCHAR,\n 'default' => \" \",\n 'notNull' => true,\n 'size' => 7,\n 'after' => 'valor_pis'\n ]\n ),\n new Column(\n 'qitens',\n [\n 'type' => Column::TYPE_DECIMAL,\n 'default' => \"0\",\n 'notNull' => true,\n 'size' => 4,\n 'after' => 'condicao_pagto'\n ]\n ),\n new Column(\n 'outras_inf',\n [\n 'type' => Column::TYPE_TEXT,\n 'size' => 1,\n 'after' => 'qitens'\n ]\n ),\n new Column(\n 'msg_corpo_rps',\n [\n 'type' => Column::TYPE_VARCHAR,\n 'default' => \" \",\n 'notNull' => true,\n 'size' => 208,\n 'after' => 'outras_inf'\n ]\n ),\n new Column(\n 'desc_servicos',\n [\n 'type' => Column::TYPE_TEXT,\n 'size' => 1,\n 'after' => 'msg_corpo_rps'\n ]\n ),\n new Column(\n 'status_rps',\n [\n 'type' => Column::TYPE_VARCHAR,\n 'default' => \" \",\n 'notNull' => true,\n 'size' => 1,\n 'after' => 'desc_servicos'\n ]\n ),\n new Column(\n 'num_nfse',\n [\n 'type' => Column::TYPE_DECIMAL,\n 'default' => \"0\",\n 'notNull' => true,\n 'size' => 8,\n 'after' => 'status_rps'\n ]\n ),\n new Column(\n 'emi_nfse',\n [\n 'type' => Column::TYPE_DATE,\n 'default' => \"01/01/0001\",\n 'notNull' => true,\n 'size' => 1,\n 'after' => 'num_nfse'\n ]\n ),\n new Column(\n 'exp_rps_data',\n [\n 'type' => Column::TYPE_DATE,\n 'default' => \"01/01/0001\",\n 'notNull' => true,\n 'size' => 1,\n 'after' => 'emi_nfse'\n ]\n ),\n new Column(\n 'imp_nfse_data',\n [\n 'type' => Column::TYPE_DATE,\n 'default' => \"01/01/0001\",\n 'notNull' => true,\n 'size' => 1,\n 'after' => 'exp_rps_data'\n ]\n ),\n new Column(\n 'log',\n [\n 'type' => Column::TYPE_VARCHAR,\n 'default' => \" \",\n 'notNull' => true,\n 'size' => 10,\n 'after' => 'imp_nfse_data'\n ]\n ),\n new Column(\n 'log_data',\n [\n 'type' => Column::TYPE_DATE,\n 'default' => \"01/01/0001\",\n 'notNull' => true,\n 'size' => 1,\n 'after' => 'log'\n ]\n ),\n new Column(\n 'log_hora',\n [\n 'type' => Column::TYPE_DECIMAL,\n 'default' => \"0\",\n 'notNull' => true,\n 'size' => 4,\n 'scale' => 2,\n 'after' => 'log_data'\n ]\n ),\n new Column(\n 'log_filial',\n [\n 'type' => Column::TYPE_DECIMAL,\n 'default' => \"0\",\n 'notNull' => true,\n 'size' => 2,\n 'after' => 'log_hora'\n ]\n )\n ],\n 'indexes' => [\n new Index('rpsa0437_index00', ['recnum'], null),\n new Index('rpsa0437_index01', ['numero', 'serie', 'filial'], null),\n new Index('rpsa0437_index02', ['emissao', 'filial', 'numero', 'serie'], null)\n ],\n ]\n );\n }", "function uploadShopProduct(){\t\n\n $inputFileName = $_FILES['xlsFile']['tmp_name'];\n\n // Read your Excel workbook\n\n try {\n\n $inputFileType = PHPExcel_IOFactory::identify($inputFileName);\n\n $objReader = PHPExcel_IOFactory::createReader($inputFileType);\n\n $objPHPExcel = $objReader->load($inputFileName);\n\n } catch (Exception $e) {\n\n die('Error loading file \"' . pathinfo($inputFileName, PATHINFO_BASENAME)\n\n . '\": ' . $e->getMessage());\n\n }\n\n\n\n $sheet = $objPHPExcel->getSheet(0);\n\n $highestRow = $sheet->getHighestRow();\n\n $highestColumn = $sheet->getHighestColumn();\n\n\t\t\t\t\t\t\n\n\t\t\t\t\t\t\n\n\n\n $headingFlg = 0;\n\n $headChkColumn = 0;\n\n $headingData = array();\n\n $dataCounter = 0;\n\n for ( $row = 2; $row <= $highestRow; $row++ )\n\n {\n\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$fileData = $sheet->rangeToArray( 'A' . $row . ':' . $highestColumn . $row, NULL, TRUE, FALSE );\n\t\t\t\t\t\t\t\n\n/*\n\n$pname = $fileData[0][1];\n\n\t\t\tFor MyStore work Start\n\n\n\n*/\n\n\n$pname = $fileData[0][1];\n$sqlproddup = \"select * from ketechprod where pname = '\".addslashes($pname).\"'\";\n$resultadP = mysql_query( $sqlproddup );\n/*echo $sqlproddup;\necho \"<hr/>\";*/\n\n\n$total = mysql_num_rows( $resultadP );\n\nif( $total > 0 ) {\n\n$rowadP = mysql_fetch_array( $resultadP );\n\n/*echo \"<hr/>\";\necho \"<pre>\";\nprint_r( $rowadP );*/\n\n$p_id = $rowadP['id'];\n\n$vpArray['pid'] = \t $rowadP['id'];\n\n$vpArray['b_cat'] = \t $rowadP['pcategory'];\n\n$vpArray['p_cat'] = \t $rowadP['p_parent_cat'];\n\n$vpArray['sub_cat_text'] = \t$rowadP['sub_cat_text'];\n\n\n$ART_NO = $fileData[0][0];\n\n$SUPPL_NO = $fileData[0][2];\n\n$SUPPL_NAME = $fileData[0][3];\n\n$SUPPL_ART_NO = $fileData[0][4];\n\n$BUYER_UID = $fileData[0][5];\n\n$CONT_BUY_UNIT = $fileData[0][6];\n\n$ART_GRP_NO = $fileData[0][7];\n\n$ART_GRP_DESCR = $fileData[0][8];\n\n$ART_GRP_SUB_NO = $fileData[0][9];\n\n$ART_GRP_SUB_DESCR = $fileData[0][10];\n\n$DEPT_NO\t = $fileData[0][11];\n\n$DEPT_DESCR = $fileData[0][12];\n\n$SELL_PR\t = $fileData[0][13];\n\n$SELL_VAT = $fileData[0][14];\n\n$SPAT\t = $fileData[0][15];\n\n$MRP_PRICE = $fileData[0][16];\n\n$VAT_MY = $fileData[0][17];\n\n$BUY_VAT_NO = $fileData[0][18];\n\n$BUY_VAT_PERC = $fileData[0][19];\n\n$Offer_No = $fileData[0][20];\n\n$DMS = $fileData[0][21];\n\n$stock = $fileData[0][22];\n\n$ON_ORDER = $fileData[0][23];\n\n$LAST_DELDAY = $fileData[0][24];\n\n$LAST_SALEDAY = $fileData[0][25];\n\n$MFG_Date = $fileData[0][26];\n\n$Exp_Date = $fileData[0][27];\n\n$ART_STATUS = $fileData[0][28];\n\n$STORE = $fileData[0][29];\n\n\n\n\n\n$vpArray['vid'] = \t$_SESSION['vid'];\n\n$vpArray['baseprice'] = \t$MRP_PRICE;\n\n$vpArray['sellprice'] = \t$MRP_PRICE;\n\n$vpArray['modify_baseprice'] = \t0;\n\n$vpArray['modify_sellprice'] = \t0;\n\n$vpArray['admin_approval'] = \t1;\n\n$vpArray['f_product'] = \t0;\n\n$vpArray['mpq_fp'] = \t1;\n\n$vpArray['stock'] = \t$stock;\n\n$vpArray['status'] = \t0;\n\n$vpArray['max_buy_limit'] = \t100;\n\n$vpArray['ART_NO'] = \t$ART_NO;\n\n$vpArray['SUPPL_NO'] = \t$SUPPL_NO;\n\n$vpArray['SUPPL_NAME'] = \t$SUPPL_NAME;\n\n$vpArray['SUPPL_ART_NO'] = \t$SUPPL_ART_NO;\n\n$vpArray['BUYER_UID'] = \t$BUYER_UID;\n\n$vpArray['CONT_BUY_UNIT'] = \t$CONT_BUY_UNIT;\n\n$vpArray['ART_GRP_NO'] = \t$ART_GRP_NO;\n\n$vpArray['ART_GRP_DESCR'] = \t$ART_GRP_DESCR;\n\n$vpArray['ART_GRP_SUB_NO'] = \t$ART_GRP_SUB_NO;\n\n$vpArray['ART_GRP_SUB_DESCR'] = \t$ART_GRP_SUB_DESCR;\n\n$vpArray['DEPT_NO'] = \t$DEPT_NO;\n\n$vpArray['DEPT_DESCR'] = \t$DEPT_DESCR;\n\n$vpArray['SELL_PR'] = \t$SELL_PR;\n\n$vpArray['SELL_VAT'] = \t$SELL_VAT;\n\n$vpArray['SPAT'] = \t$SPAT;\n\n$vpArray['MRP_PRICE'] = \t$MRP_PRICE;\n\n$vpArray['VAT_MY'] = \t$VAT_MY;\n\n$vpArray['BUY_VAT_NO'] = \t$BUY_VAT_NO;\n\n$vpArray['BUY_VAT_PERC'] = \t$BUY_VAT_PERC;\n\n$vpArray['Offer_No'] = \t$Offer_No;\n\n$vpArray['DMS'] = \t$DMS;\n\n$vpArray['ON_ORDER'] = \t$ON_ORDER;\n\n$vpArray['LAST_DELDAY'] = \t$LAST_DELDAY;\n\n$vpArray['LAST_SALEDAY'] = \t$LAST_SALEDAY;\n\n$vpArray['MFG_Date'] = \t$MFG_Date;\n\n$vpArray['Exp_Date'] = \t$Exp_Date;\n\n$vpArray['ART_STATUS'] = \t$ART_STATUS;\n\n$vpArray['STORE'] = \t$STORE;\n\n$vpK = array();\n\n$vpV = array();\n\nforeach( $vpArray as $vpArrayK => $vpArrayV )\n\n{\n\n\t$vpK[] = $vpArrayK;\n\n\t$vpV[] = \"'\".addslashes($vpArrayV).\"'\";\n\t\n\t$vpupdate[] = $vpArrayK.\" = '\".addslashes($vpArrayV).\"'\";\n\n\n\n}\n\n\n\n$queryk =implode(\",\",$vpK);\n\n$queryv = implode(\",\",$vpV);\n\n$queryupdate = implode(\",\",$vpupdate);\n\n\n\t\t\t\t\t\t\t$sqlcatdup = \"select * from ketechvp_\".$_SESSION['vid'].\" where pid = '\".$p_id.\"'\";\n\n\t\t\t\t\t\t\t$result = mysql_query( $sqlcatdup );\n\n\t\t\t\t\t\t\t$total = mysql_num_rows( $result );\n\n\t\t\t\t\t\t\tif( $total > 0 )\n\n\t\t\t\t\t\t\t{\n\n\t\t\t\t\t\t\t\t$sqlVprodU = \"update ketechvp_\".$_SESSION['vid'].\" SET \".$queryupdate.\" where pid = \".$p_id.\"\";\n\t\t\t\t\t\t\t\t/*echo $sqlVprodU;\n\t\t\t\t\t\t\t\techo \"<hr/>\";*/\n\t\t\t\t\t\t\t\tmysql_query( $sqlVprodU );\n\n\t\t\t\t\t\t\t\t\n\n\t\t\t\t\t\t\t}else\n\n\t\t\t\t\t\t\t{\n\n\t\t\t\t\t\t\t\n\n\n\n\n\n/*echo $queryk;\n\necho \"<hr/>\";\n\necho $queryv;\n\necho \"<pre>\";*/\n\n/*echo count( $vpArray );\n\nprint_r( $vpV );*/\n\n\t\t\t\t\t\n\n\t\t\t\t\t\t\t\t//insert parent cat\n\n\t\t\t\t\t\t\t\t/*$sqlVprod = \"insert into ketechvp_clone( pid,b_cat,p_cat,sub_cat_text,baseprice,sellprice,modify_baseprice,modify_sellprice,admin_approval,stock,status,ART_NO,SUPPL_NO,SUPPL_NAME,SUPPL_ART_NO,BUYER_UID,CONT_BUY_UNIT,ART_GRP_NO,ART_GRP_DESCR,ART_GRP_SUB_NO,ART_GRP_SUB_DESCR,DEPT_NO,DEPT_DESCR,SELL_PR,SELL_VAT,SPAT,MRP_PRICE,VAT_MY,BUY_VAT_NO,BUY_VAT_PERC,Offer_No,DMS,ON_ORDER,LAST_DELDAY,LAST_SALEDAY,MFG_Date,Exp_Date,ART_STATUS,STORE)values(\".$p_id.\",'\".$Ccat_id.\"','\".$pcat_id.\"','*\".$Ccat_id.\"*',\".$MRP_PRICE.\",\".$MRP_PRICE.\",'0','0',1,'\".$stock.\"',1,'\".$ART_NO.\"','\".$SUPPL_NO.\"','\".$SUPPL_NAME.\"','\".$BUYER_UID.\"','\".$CONT_BUY_UNIT.\"','\".$ART_GRP_NO.\"','\".$ART_GRP_DESCR.\"','\".$ART_GRP_SUB_NO.\"','\".$ART_GRP_SUB_DESCR.\"','\".$DEPT_NO.\"','\".$DEPT_DESCR.\"','\".$SELL_PR.\"','\".$SELL_VAT.\"','\".$SPAT.\"','\".$MRP_PRICE.\"','\".$VAT_MY.\"','\".$BUY_VAT_NO.\"','\".$BUY_VAT_PERC.\"','\".$Offer_No.\"','\".$DMS.\"','\".$ON_ORDER.\"','\".$LAST_DELDAY.\"','\".$LAST_SALEDAY.\"','\".$MFG_Date.\"','\".$Exp_Date.\"','\".$ART_STATUS.\"','\".$STORE.\"')\";*/\n\n\t\t\t\t\t\t\t\t\n\n\t\t\t\t\t\t\t\t$sqlVprod = \"insert into ketechvp_\".$_SESSION['vid'].\"(\".$queryk.\")values(\".$queryv.\")\";\n\n\t\t\t\t\t\t\t\t\n\n\t\t\t\t\t\t\t\t/*echo $sqlVprod;\n\n\t\t\t\t\t\t\t\techo \"<hr/>\".$dataCounter;\t*/\n\n\t\t\t\t\t\t\t\t\n\n\t\t\t\t\t\t\t\t\n\n\t\t\t\t\t\t\t\t$resultest\t= mysql_query( $sqlVprod );\n\n\t\t\t\t\t\t\t\tif( !$resultest ){\n\n\t\t\t\t\t\t\t\t\t\t\t/*echo $sqlVprod;\n\n\t\t\t\t\t\t\t\t\t\t\techo \"<hr/>\";\t*/\n\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t//$p_id = mysql_insert_id();\n\n\t\t\t\t\t\t\t //$pcat_id = mysql_insert_id();\n\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\n\n\t\t\t\t\t\t\t\n\n\t\t\t\t\t\t\t/*echo \"<pre>\";\n\n\t\t\t\t\t\t\tprint_r( $fileData );*/\n\n\t\t\t\t\t\t\t//die();\n\n\t\t\t\t\t\t\t\n\n\t\t\t\t\t\t\t/*echo \"Location: index.php?v=\".$_POST['c'].\"&f=\".$_POST['f'].\"&vid=\".$_SESSION['vid'].\"\";\n\n\t\t\t\t\t\t\techo \"<hr/>\";*/\n\n\t\t\t\t\t\t \n\n\t\t\t\t\t\t\t\n\n\t\t\t\t\t\t\t\tif( $dataCounter > 60 )\n\n\t\t\t\t\t\t\t\t{\n\n\t\t\t\t\t\t\t\t //die();\n\n\t\t\t\t\t\t\t\t } \n\n\t\t\t\t\t\t\t\n\n }else{\n\t\t\t\t\t\t\t\t/*echo $pname;\n\t\t\t\t\t\t\t\techo \"<br/>\";*/\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t}\n}\t\t\t\t\t\t\n\n\t\t\t\t\t\t\n\n\t\t\t\t\t\theader( \"Location: index.php?v=\".$_POST['c'].\"&f=\".$_POST['f'].\"&vid=\".$_SESSION['vid'].\"\" );\n}", "protected function _prepareColumns()\n {\n $this->addColumn('in_products', array(\n 'header_css_class' => 'a-center',\n 'type' => 'checkbox',\n 'field_name' => 'in_products',\n 'values' => $this->_getSelectedProducts(),\n 'align' => 'center',\n 'index' => 'entity_id'\n ));\n\n /*$this->addColumn('entity_id',\n array(\n 'header'=> Mage::helper('catalog')->__('ID'),\n 'width' => 50,\n 'sortable' => true,\n 'type' => 'number',\n 'index' => 'entity_id',\n ));*/\n $this->addColumn('product_name',\n array(\n 'header'=> Mage::helper('catalog')->__('Name'),\n 'index' => 'name',\n ));\n\n $this->addColumn('type',\n array(\n 'header' => Mage::helper('catalog')->__('Type'),\n 'width' => 100,\n 'index' => 'type_id',\n 'type' => 'options',\n 'options' => Mage::getSingleton('catalog/product_type')->getOptionArray(),\n ));\n\n $sets = Mage::getResourceModel('eav/entity_attribute_set_collection')\n ->setEntityTypeFilter(Mage::getModel('catalog/product')->getResource()->getTypeId())\n ->load()\n ->toOptionHash();\n\n $this->addColumn('set_name',\n array(\n 'header' => Mage::helper('catalog')->__('Attrib. Set Name'),\n 'width' => 100,\n 'index' => 'attribute_set_id',\n 'type' => 'options',\n 'options' => $sets,\n ));\n\n $this->addColumn('sku',\n array(\n 'header'=> Mage::helper('catalog')->__('SKU'),\n 'width' => 80,\n 'index' => 'sku',\n ));\n\n $this->addColumn('price',\n array(\n 'header' => Mage::helper('catalog')->__('Price'),\n 'type' => 'price',\n 'currency_code' => Mage::app()->getStore()->getBaseCurrency()->getCode(),\n 'index' => 'price',\n ));\n\n $this->addColumn('visibility',\n array(\n 'header' => Mage::helper('catalog')->__('Visibility'),\n 'width' => 100,\n 'index' => 'visibility',\n 'type' => 'options',\n 'options' => Mage::getModel('catalog/product_visibility')->getOptionArray(),\n ));\n\n $this->addColumn('status',\n array(\n 'header' => Mage::helper('catalog')->__('Status'),\n 'width' => 70,\n 'index' => 'status',\n 'type' => 'options',\n 'options' => Mage::getSingleton('catalog/product_status')->getOptionArray(),\n ));\n\n $this->addColumn('source_store',\n array(\n 'header'=> Mage::helper('catalog')->__('Source Store'),\n 'width' => '100px',\n 'sortable' => false,\n 'index' => 'source_store_view',\n 'type' => 'options',\n 'options' => Mage::getModel('unl_core/store_source_filter')->toOptionArray(),\n ));\n\n return parent::_prepareColumns();\n }", "public function hasSize($sqlType);", "public function get_bagsize_by_baglayout($bag_layout='')\n {\n $this->db->select('id,bag_size');\n $this->db->order_by('bag_size','asc');\n return $this->db->get_where('ecom_bagsize',array('bag_layout' => $bag_layout))->result();\n }", "public function run()\n\t{\n\t//\t\\DB::table('quote_glass_types')->truncate();\n\t\\DB::table('quote_glass_type_thickness')->insert([\n \t[\n\n'quote_glass_type_id_fk'=>'2',\n'thickness'=>'4mm',\n'created_at'=>\\Carbon\\Carbon::createFromDate(2016,4,17)->toDateTimeString(),\n'updated_at'=>\\Carbon\\Carbon::createFromDate(2016,4,17)->toDateTimeString(),\n],\n\n \t[\n\n'quote_glass_type_id_fk'=>'2',\n'thickness'=>'5mm',\n'created_at'=>\\Carbon\\Carbon::createFromDate(2016,4,17)->toDateTimeString(),\n'updated_at'=>\\Carbon\\Carbon::createFromDate(2016,4,17)->toDateTimeString(),\n],\n \t[\n\n'quote_glass_type_id_fk'=>'2',\n'thickness'=>'6mm',\n'created_at'=>\\Carbon\\Carbon::createFromDate(2016,4,17)->toDateTimeString(),\n'updated_at'=>\\Carbon\\Carbon::createFromDate(2016,4,17)->toDateTimeString(),\n],\n \t[\n\n'quote_glass_type_id_fk'=>'2',\n'thickness'=>'8mm',\n'created_at'=>\\Carbon\\Carbon::createFromDate(2016,4,17)->toDateTimeString(),\n'updated_at'=>\\Carbon\\Carbon::createFromDate(2016,4,17)->toDateTimeString(),\n],\n \t[\n\n'quote_glass_type_id_fk'=>'2',\n'thickness'=>'10mm',\n'created_at'=>\\Carbon\\Carbon::createFromDate(2016,4,17)->toDateTimeString(),\n'updated_at'=>\\Carbon\\Carbon::createFromDate(2016,4,17)->toDateTimeString(),\n],\n \t[\n\n'quote_glass_type_id_fk'=>'2',\n'thickness'=>'12mm',\n'created_at'=>\\Carbon\\Carbon::createFromDate(2016,4,17)->toDateTimeString(),\n'updated_at'=>\\Carbon\\Carbon::createFromDate(2016,4,17)->toDateTimeString(),\n],\n\t[\n\n'quote_glass_type_id_fk'=>'3',\n'thickness'=>'4mm',\n'created_at'=>\\Carbon\\Carbon::createFromDate(2016,4,17)->toDateTimeString(),\n'updated_at'=>\\Carbon\\Carbon::createFromDate(2016,4,17)->toDateTimeString(),\n],\n\n[\n\n'quote_glass_type_id_fk'=>'3',\n'thickness'=>'5mm',\n'created_at'=>\\Carbon\\Carbon::createFromDate(2016,4,17)->toDateTimeString(),\n'updated_at'=>\\Carbon\\Carbon::createFromDate(2016,4,17)->toDateTimeString(),\n],\n[\n\n'quote_glass_type_id_fk'=>'3',\n'thickness'=>'6mm',\n'created_at'=>\\Carbon\\Carbon::createFromDate(2016,4,17)->toDateTimeString(),\n'updated_at'=>\\Carbon\\Carbon::createFromDate(2016,4,17)->toDateTimeString(),\n],\n[\n\n'quote_glass_type_id_fk'=>'3',\n'thickness'=>'8mm',\n'created_at'=>\\Carbon\\Carbon::createFromDate(2016,4,17)->toDateTimeString(),\n'updated_at'=>\\Carbon\\Carbon::createFromDate(2016,4,17)->toDateTimeString(),\n],\n[\n\n'quote_glass_type_id_fk'=>'3',\n'thickness'=>'10mm',\n'created_at'=>\\Carbon\\Carbon::createFromDate(2016,4,17)->toDateTimeString(),\n'updated_at'=>\\Carbon\\Carbon::createFromDate(2016,4,17)->toDateTimeString(),\n],\n[\n\n'quote_glass_type_id_fk'=>'3',\n'thickness'=>'12mm',\n'created_at'=>\\Carbon\\Carbon::createFromDate(2016,4,17)->toDateTimeString(),\n'updated_at'=>\\Carbon\\Carbon::createFromDate(2016,4,17)->toDateTimeString(),\n],\n\t[\n\n'quote_glass_type_id_fk'=>'4',\n'thickness'=>'5mm',\n'created_at'=>\\Carbon\\Carbon::createFromDate(2016,4,17)->toDateTimeString(),\n'updated_at'=>\\Carbon\\Carbon::createFromDate(2016,4,17)->toDateTimeString(),\n],\n[\n\n'quote_glass_type_id_fk'=>'4',\n'thickness'=>'6mm',\n'created_at'=>\\Carbon\\Carbon::createFromDate(2016,4,17)->toDateTimeString(),\n'updated_at'=>\\Carbon\\Carbon::createFromDate(2016,4,17)->toDateTimeString(),\n],\n\t[\n\n'quote_glass_type_id_fk'=>'5',\n'thickness'=>'4mm',\n'created_at'=>\\Carbon\\Carbon::createFromDate(2016,4,17)->toDateTimeString(),\n'updated_at'=>\\Carbon\\Carbon::createFromDate(2016,4,17)->toDateTimeString(),\n],\n\t[\n\n'quote_glass_type_id_fk'=>'6',\n'thickness'=>'4mm',\n'created_at'=>\\Carbon\\Carbon::createFromDate(2016,4,17)->toDateTimeString(),\n'updated_at'=>\\Carbon\\Carbon::createFromDate(2016,4,17)->toDateTimeString(),\n],\n[\n\n'quote_glass_type_id_fk'=>'6',\n'thickness'=>'5mm',\n'created_at'=>\\Carbon\\Carbon::createFromDate(2016,4,17)->toDateTimeString(),\n'updated_at'=>\\Carbon\\Carbon::createFromDate(2016,4,17)->toDateTimeString(),\n],\n[\n\n'quote_glass_type_id_fk'=>'6',\n'thickness'=>'6mm',\n'created_at'=>\\Carbon\\Carbon::createFromDate(2016,4,17)->toDateTimeString(),\n'updated_at'=>\\Carbon\\Carbon::createFromDate(2016,4,17)->toDateTimeString(),\n],\n[\n\n'quote_glass_type_id_fk'=>'6',\n'thickness'=>'8mm',\n'created_at'=>\\Carbon\\Carbon::createFromDate(2016,4,17)->toDateTimeString(),\n'updated_at'=>\\Carbon\\Carbon::createFromDate(2016,4,17)->toDateTimeString(),\n],\n[\n\n'quote_glass_type_id_fk'=>'6',\n'thickness'=>'10mm',\n'created_at'=>\\Carbon\\Carbon::createFromDate(2016,4,17)->toDateTimeString(),\n'updated_at'=>\\Carbon\\Carbon::createFromDate(2016,4,17)->toDateTimeString(),\n],\n[\n\n'quote_glass_type_id_fk'=>'6',\n'thickness'=>'12mm',\n'created_at'=>\\Carbon\\Carbon::createFromDate(2016,4,17)->toDateTimeString(),\n'updated_at'=>\\Carbon\\Carbon::createFromDate(2016,4,17)->toDateTimeString(),\n],\n\t[\n\n'quote_glass_type_id_fk'=>'8',\n'thickness'=>'5mm',\n'created_at'=>\\Carbon\\Carbon::createFromDate(2016,4,17)->toDateTimeString(),\n'updated_at'=>\\Carbon\\Carbon::createFromDate(2016,4,17)->toDateTimeString(),\n],\n[\n\n'quote_glass_type_id_fk'=>'8',\n'thickness'=>'6mm',\n'created_at'=>\\Carbon\\Carbon::createFromDate(2016,4,17)->toDateTimeString(),\n'updated_at'=>\\Carbon\\Carbon::createFromDate(2016,4,17)->toDateTimeString(),\n],\n[\n\n'quote_glass_type_id_fk'=>'8',\n'thickness'=>'8mm',\n'created_at'=>\\Carbon\\Carbon::createFromDate(2016,4,17)->toDateTimeString(),\n'updated_at'=>\\Carbon\\Carbon::createFromDate(2016,4,17)->toDateTimeString(),\n],\n[\n\n'quote_glass_type_id_fk'=>'8',\n'thickness'=>'10mm',\n'created_at'=>\\Carbon\\Carbon::createFromDate(2016,4,17)->toDateTimeString(),\n'updated_at'=>\\Carbon\\Carbon::createFromDate(2016,4,17)->toDateTimeString(),\n],\n[\n\n'quote_glass_type_id_fk'=>'8',\n'thickness'=>'12mm',\n'created_at'=>\\Carbon\\Carbon::createFromDate(2016,4,17)->toDateTimeString(),\n'updated_at'=>\\Carbon\\Carbon::createFromDate(2016,4,17)->toDateTimeString(),\n],\n\t[\n\n'quote_glass_type_id_fk'=>'9',\n'thickness'=>'5mm',\n'created_at'=>\\Carbon\\Carbon::createFromDate(2016,4,17)->toDateTimeString(),\n'updated_at'=>\\Carbon\\Carbon::createFromDate(2016,4,17)->toDateTimeString(),\n],\n[\n\n'quote_glass_type_id_fk'=>'9',\n'thickness'=>'6mm',\n'created_at'=>\\Carbon\\Carbon::createFromDate(2016,4,17)->toDateTimeString(),\n'updated_at'=>\\Carbon\\Carbon::createFromDate(2016,4,17)->toDateTimeString(),\n],\n[\n\n'quote_glass_type_id_fk'=>'9',\n'thickness'=>'8mm',\n'created_at'=>\\Carbon\\Carbon::createFromDate(2016,4,17)->toDateTimeString(),\n'updated_at'=>\\Carbon\\Carbon::createFromDate(2016,4,17)->toDateTimeString(),\n],\n[\n\n'quote_glass_type_id_fk'=>'9',\n'thickness'=>'10mm',\n'created_at'=>\\Carbon\\Carbon::createFromDate(2016,4,17)->toDateTimeString(),\n'updated_at'=>\\Carbon\\Carbon::createFromDate(2016,4,17)->toDateTimeString(),\n],\n[\n\n'quote_glass_type_id_fk'=>'9',\n'thickness'=>'12mm',\n'created_at'=>\\Carbon\\Carbon::createFromDate(2016,4,17)->toDateTimeString(),\n'updated_at'=>\\Carbon\\Carbon::createFromDate(2016,4,17)->toDateTimeString(),\n],\n\t[\n\n'quote_glass_type_id_fk'=>'10',\n'thickness'=>'5mm',\n'created_at'=>\\Carbon\\Carbon::createFromDate(2016,4,17)->toDateTimeString(),\n'updated_at'=>\\Carbon\\Carbon::createFromDate(2016,4,17)->toDateTimeString(),\n],\n[\n\n'quote_glass_type_id_fk'=>'10',\n'thickness'=>'6mm',\n'created_at'=>\\Carbon\\Carbon::createFromDate(2016,4,17)->toDateTimeString(),\n'updated_at'=>\\Carbon\\Carbon::createFromDate(2016,4,17)->toDateTimeString(),\n],\n\t[\n\n'quote_glass_type_id_fk'=>'11',\n'thickness'=>'4mm',\n'created_at'=>\\Carbon\\Carbon::createFromDate(2016,4,17)->toDateTimeString(),\n'updated_at'=>\\Carbon\\Carbon::createFromDate(2016,4,17)->toDateTimeString(),\n],\n[\n\n'quote_glass_type_id_fk'=>'11',\n'thickness'=>'5mm',\n'created_at'=>\\Carbon\\Carbon::createFromDate(2016,4,17)->toDateTimeString(),\n'updated_at'=>\\Carbon\\Carbon::createFromDate(2016,4,17)->toDateTimeString(),\n],\n[\n\n'quote_glass_type_id_fk'=>'11',\n'thickness'=>'6mm',\n'created_at'=>\\Carbon\\Carbon::createFromDate(2016,4,17)->toDateTimeString(),\n'updated_at'=>\\Carbon\\Carbon::createFromDate(2016,4,17)->toDateTimeString(),\n],\n[\n\n'quote_glass_type_id_fk'=>'11',\n'thickness'=>'8mm',\n'created_at'=>\\Carbon\\Carbon::createFromDate(2016,4,17)->toDateTimeString(),\n'updated_at'=>\\Carbon\\Carbon::createFromDate(2016,4,17)->toDateTimeString(),\n],\n[\n\n'quote_glass_type_id_fk'=>'11',\n'thickness'=>'10mm',\n'created_at'=>\\Carbon\\Carbon::createFromDate(2016,4,17)->toDateTimeString(),\n'updated_at'=>\\Carbon\\Carbon::createFromDate(2016,4,17)->toDateTimeString(),\n],\n[\n\n'quote_glass_type_id_fk'=>'11',\n'thickness'=>'12mm',\n'created_at'=>\\Carbon\\Carbon::createFromDate(2016,4,17)->toDateTimeString(),\n'updated_at'=>\\Carbon\\Carbon::createFromDate(2016,4,17)->toDateTimeString(),\n],\n\t[\n\n'quote_glass_type_id_fk'=>'13',\n'thickness'=>'6mm',\n'created_at'=>\\Carbon\\Carbon::createFromDate(2016,4,17)->toDateTimeString(),\n'updated_at'=>\\Carbon\\Carbon::createFromDate(2016,4,17)->toDateTimeString(),\n],\n[\n\n'quote_glass_type_id_fk'=>'13',\n'thickness'=>'8mm',\n'created_at'=>\\Carbon\\Carbon::createFromDate(2016,4,17)->toDateTimeString(),\n'updated_at'=>\\Carbon\\Carbon::createFromDate(2016,4,17)->toDateTimeString(),\n],\n[\n\n'quote_glass_type_id_fk'=>'13',\n'thickness'=>'10mm',\n'created_at'=>\\Carbon\\Carbon::createFromDate(2016,4,17)->toDateTimeString(),\n'updated_at'=>\\Carbon\\Carbon::createFromDate(2016,4,17)->toDateTimeString(),\n],\n[\n\n'quote_glass_type_id_fk'=>'13',\n'thickness'=>'12mm',\n'created_at'=>\\Carbon\\Carbon::createFromDate(2016,4,17)->toDateTimeString(),\n'updated_at'=>\\Carbon\\Carbon::createFromDate(2016,4,17)->toDateTimeString(),\n],\n[\n\n'quote_glass_type_id_fk'=>'14',\n'thickness'=>'6mm',\n'created_at'=>\\Carbon\\Carbon::createFromDate(2016,4,17)->toDateTimeString(),\n'updated_at'=>\\Carbon\\Carbon::createFromDate(2016,4,17)->toDateTimeString(),\n],\n\n[\n\n'quote_glass_type_id_fk'=>'14',\n'thickness'=>'8mm',\n'created_at'=>\\Carbon\\Carbon::createFromDate(2016,4,17)->toDateTimeString(),\n'updated_at'=>\\Carbon\\Carbon::createFromDate(2016,4,17)->toDateTimeString(),\n],\n[\n\n'quote_glass_type_id_fk'=>'14',\n'thickness'=>'10mm',\n'created_at'=>\\Carbon\\Carbon::createFromDate(2016,4,17)->toDateTimeString(),\n'updated_at'=>\\Carbon\\Carbon::createFromDate(2016,4,17)->toDateTimeString(),\n],\n\n[\n\n'quote_glass_type_id_fk'=>'14',\n'thickness'=>'12mm',\n'created_at'=>\\Carbon\\Carbon::createFromDate(2016,4,17)->toDateTimeString(),\n'updated_at'=>\\Carbon\\Carbon::createFromDate(2016,4,17)->toDateTimeString(),\n],\n\n[\n\n'quote_glass_type_id_fk'=>'15',\n'thickness'=>'6mm',\n'created_at'=>\\Carbon\\Carbon::createFromDate(2016,4,17)->toDateTimeString(),\n'updated_at'=>\\Carbon\\Carbon::createFromDate(2016,4,17)->toDateTimeString(),\n],\n[\n\n'quote_glass_type_id_fk'=>'15',\n'thickness'=>'8mm',\n'created_at'=>\\Carbon\\Carbon::createFromDate(2016,4,17)->toDateTimeString(),\n'updated_at'=>\\Carbon\\Carbon::createFromDate(2016,4,17)->toDateTimeString(),\n],\n[\n\n'quote_glass_type_id_fk'=>'15',\n'thickness'=>'10mm',\n'created_at'=>\\Carbon\\Carbon::createFromDate(2016,4,17)->toDateTimeString(),\n'updated_at'=>\\Carbon\\Carbon::createFromDate(2016,4,17)->toDateTimeString(),\n],\n[\n\n'quote_glass_type_id_fk'=>'15',\n'thickness'=>'12mm',\n'created_at'=>\\Carbon\\Carbon::createFromDate(2016,4,17)->toDateTimeString(),\n'updated_at'=>\\Carbon\\Carbon::createFromDate(2016,4,17)->toDateTimeString(),\n],\n\n[\n\n'quote_glass_type_id_fk'=>'16',\n'thickness'=>'6mm',\n'created_at'=>\\Carbon\\Carbon::createFromDate(2016,4,17)->toDateTimeString(),\n'updated_at'=>\\Carbon\\Carbon::createFromDate(2016,4,17)->toDateTimeString(),\n],\n[\n\n'quote_glass_type_id_fk'=>'16',\n'thickness'=>'8mm',\n'created_at'=>\\Carbon\\Carbon::createFromDate(2016,4,17)->toDateTimeString(),\n'updated_at'=>\\Carbon\\Carbon::createFromDate(2016,4,17)->toDateTimeString(),\n],\n[\n\n'quote_glass_type_id_fk'=>'16',\n'thickness'=>'10mm',\n'created_at'=>\\Carbon\\Carbon::createFromDate(2016,4,17)->toDateTimeString(),\n'updated_at'=>\\Carbon\\Carbon::createFromDate(2016,4,17)->toDateTimeString(),\n],\n[\n\n'quote_glass_type_id_fk'=>'16',\n'thickness'=>'12mm',\n'created_at'=>\\Carbon\\Carbon::createFromDate(2016,4,17)->toDateTimeString(),\n'updated_at'=>\\Carbon\\Carbon::createFromDate(2016,4,17)->toDateTimeString(),\n],\n\n[\n\n'quote_glass_type_id_fk'=>'17',\n'thickness'=>'6mm',\n'created_at'=>\\Carbon\\Carbon::createFromDate(2016,4,17)->toDateTimeString(),\n'updated_at'=>\\Carbon\\Carbon::createFromDate(2016,4,17)->toDateTimeString(),\n],\n\n[\n\n'quote_glass_type_id_fk'=>'17',\n'thickness'=>'8mm',\n'created_at'=>\\Carbon\\Carbon::createFromDate(2016,4,17)->toDateTimeString(),\n'updated_at'=>\\Carbon\\Carbon::createFromDate(2016,4,17)->toDateTimeString(),\n],\n[\n\n'quote_glass_type_id_fk'=>'17',\n'thickness'=>'10mm',\n'created_at'=>\\Carbon\\Carbon::createFromDate(2016,4,17)->toDateTimeString(),\n'updated_at'=>\\Carbon\\Carbon::createFromDate(2016,4,17)->toDateTimeString(),\n],\n[\n\n'quote_glass_type_id_fk'=>'17',\n'thickness'=>'12mm',\n'created_at'=>\\Carbon\\Carbon::createFromDate(2016,4,17)->toDateTimeString(),\n'updated_at'=>\\Carbon\\Carbon::createFromDate(2016,4,17)->toDateTimeString(),\n]\n\n]);\n\t}", "public function store(Request $request)\n {\n $rule = [\n 'description' => 'required|max:50',\n 'dimension' => 'required|max:20',\n ];\n\n $request->validate($rule);\n\n $paper_size = PaperSize::create($request->all());\n\n foreach (PrintQuality::select('id')->get() as $pq) {\n ServiceRate::create([\n 'type' => ServiceTransaction::PRINT,\n 'print_quality_id' => $pq->id,\n 'paper_size_id' => $paper_size->id,\n 'rate' => 0\n ]);\n }\n\n return $paper_size;\n }", "function readChpt(){\n $query = \"SELECT\n lightnovel_id, chpt_id, chpt_thumb,chpt_sum,chpt_num\n FROM\n \" . $this->table_name2 . \" \n \n WHERE\n lightnovel_id = ?\n \n ORDER BY\n chpt_num DESC\"; \n \n $stmt = $this->conn->prepare( $query );\n \n // bind id of product to be updated\n $stmt->bindParam(1, $this->lightnovel_id);\n \n // execute query\n $stmt->execute();\n \n // get retrieved row\n return $stmt;\n\n}", "public function getPriceCodeAndName()\n {\n return DB::table($this->table_wrist)\n ->select(DB::raw('wristband_style.code AS `style_code`, wristband_style.name AS `style_name`, wristband_size.code AS `size_code`, wristband_size.name AS `size_name`, price.qty, price.price'))\n ->join('wristband_style', 'price.style_id', '=', 'wristband_style.id')\n ->join('wristband_size', 'price.size_id', '=', 'wristband_size.id')\n ->get();\n }", "protected function _saveProducts()\n {\n $priceIsGlobal = $this->_catalogData->isPriceGlobal();\n $productLimit = null;\n $productsQty = null;\n $entityLinkField = $this->getProductEntityLinkField();\n\n while ($bunch = $this->_dataSourceModel->getNextBunch()) {\n $entityRowsIn = [];\n $entityRowsUp = [];\n $attributes = [];\n $this->websitesCache = [];\n $this->categoriesCache = [];\n $tierPrices = [];\n $mediaGallery = [];\n $labelsForUpdate = [];\n $imagesForChangeVisibility = [];\n $uploadedImages = [];\n $previousType = null;\n $prevAttributeSet = null;\n $existingImages = $this->getExistingImages($bunch);\n\n foreach ($bunch as $rowNum => $rowData) {\n // reset category processor's failed categories array\n $this->categoryProcessor->clearFailedCategories();\n\n if (!$this->validateRow($rowData, $rowNum)) {\n continue;\n }\n if ($this->getErrorAggregator()->hasToBeTerminated()) {\n $this->getErrorAggregator()->addRowToSkip($rowNum);\n continue;\n }\n $rowScope = $this->getRowScope($rowData);\n\n $rowData[self::URL_KEY] = $this->getUrlKey($rowData);\n\n $rowSku = $rowData[self::COL_SKU];\n\n if (null === $rowSku) {\n $this->getErrorAggregator()->addRowToSkip($rowNum);\n continue;\n } elseif (self::SCOPE_STORE == $rowScope) {\n // set necessary data from SCOPE_DEFAULT row\n $rowData[self::COL_TYPE] = $this->skuProcessor->getNewSku($rowSku)['type_id'];\n $rowData['attribute_set_id'] = $this->skuProcessor->getNewSku($rowSku)['attr_set_id'];\n $rowData[self::COL_ATTR_SET] = $this->skuProcessor->getNewSku($rowSku)['attr_set_code'];\n }\n\n // 1. Entity phase\n if ($this->isSkuExist($rowSku)) {\n // existing row\n if (isset($rowData['attribute_set_code'])) {\n $attributeSetId = $this->catalogConfig->getAttributeSetId(\n $this->getEntityTypeId(),\n $rowData['attribute_set_code']\n );\n\n // wrong attribute_set_code was received\n if (!$attributeSetId) {\n throw new LocalizedException(\n __(\n 'Wrong attribute set code \"%1\", please correct it and try again.',\n $rowData['attribute_set_code']\n )\n );\n }\n } else {\n $attributeSetId = $this->skuProcessor->getNewSku($rowSku)['attr_set_id'];\n }\n\n $entityRowsUp[] = [\n 'updated_at' => (new \\DateTime())->format(DateTime::DATETIME_PHP_FORMAT),\n 'attribute_set_id' => $attributeSetId,\n $entityLinkField => $this->getExistingSku($rowSku)[$entityLinkField]\n ];\n } else {\n if (!$productLimit || $productsQty < $productLimit) {\n $entityRowsIn[strtolower($rowSku)] = [\n 'attribute_set_id' => $this->skuProcessor->getNewSku($rowSku)['attr_set_id'],\n 'type_id' => $this->skuProcessor->getNewSku($rowSku)['type_id'],\n 'sku' => $rowSku,\n 'has_options' => isset($rowData['has_options']) ? $rowData['has_options'] : 0,\n 'created_at' => (new \\DateTime())->format(DateTime::DATETIME_PHP_FORMAT),\n 'updated_at' => (new \\DateTime())->format(DateTime::DATETIME_PHP_FORMAT),\n ];\n $productsQty++;\n } else {\n $rowSku = null;\n // sign for child rows to be skipped\n $this->getErrorAggregator()->addRowToSkip($rowNum);\n continue;\n }\n }\n\n if (!array_key_exists($rowSku, $this->websitesCache)) {\n $this->websitesCache[$rowSku] = [];\n }\n // 2. Product-to-Website phase\n if (!empty($rowData[self::COL_PRODUCT_WEBSITES])) {\n $websiteCodes = explode($this->getMultipleValueSeparator(), $rowData[self::COL_PRODUCT_WEBSITES]);\n foreach ($websiteCodes as $websiteCode) {\n $websiteId = $this->storeResolver->getWebsiteCodeToId($websiteCode);\n $this->websitesCache[$rowSku][$websiteId] = true;\n }\n }\n\n // 3. Categories phase\n if (!array_key_exists($rowSku, $this->categoriesCache)) {\n $this->categoriesCache[$rowSku] = [];\n }\n $rowData['rowNum'] = $rowNum;\n $categoryIds = $this->processRowCategories($rowData);\n foreach ($categoryIds as $id) {\n $this->categoriesCache[$rowSku][$id] = true;\n }\n unset($rowData['rowNum']);\n\n // 4.1. Tier prices phase\n if (!empty($rowData['_tier_price_website'])) {\n $tierPrices[$rowSku][] = [\n 'all_groups' => $rowData['_tier_price_customer_group'] == self::VALUE_ALL,\n 'customer_group_id' => $rowData['_tier_price_customer_group'] ==\n self::VALUE_ALL ? 0 : $rowData['_tier_price_customer_group'],\n 'qty' => $rowData['_tier_price_qty'],\n 'value' => $rowData['_tier_price_price'],\n 'website_id' => self::VALUE_ALL == $rowData['_tier_price_website'] ||\n $priceIsGlobal ? 0 : $this->storeResolver->getWebsiteCodeToId($rowData['_tier_price_website']),\n ];\n }\n\n if (!$this->validateRow($rowData, $rowNum)) {\n continue;\n }\n\n // 5. Media gallery phase\n list($rowImages, $rowLabels) = $this->getImagesFromRow($rowData);\n $storeId = !empty($rowData[self::COL_STORE])\n ? $this->getStoreIdByCode($rowData[self::COL_STORE])\n : Store::DEFAULT_STORE_ID;\n $imageHiddenStates = $this->getImagesHiddenStates($rowData);\n foreach (array_keys($imageHiddenStates) as $image) {\n if (array_key_exists($rowSku, $existingImages)\n && array_key_exists($image, $existingImages[$rowSku])\n ) {\n $rowImages[self::COL_MEDIA_IMAGE][] = $image;\n $uploadedImages[$image] = $image;\n }\n\n if (empty($rowImages)) {\n $rowImages[self::COL_MEDIA_IMAGE][] = $image;\n }\n }\n\n $rowData[self::COL_MEDIA_IMAGE] = [];\n\n /*\n * Note: to avoid problems with undefined sorting, the value of media gallery items positions\n * must be unique in scope of one product.\n */\n $position = 0;\n foreach ($rowImages as $column => $columnImages) {\n foreach ($columnImages as $columnImageKey => $columnImage) {\n if (!isset($uploadedImages[$columnImage])) {\n $uploadedFile = $this->uploadMediaFiles($columnImage);\n $uploadedFile = $uploadedFile ?: $this->getSystemFile($columnImage);\n if ($uploadedFile) {\n $uploadedImages[$columnImage] = $uploadedFile;\n } else {\n $this->addRowError(\n ValidatorInterface::ERROR_MEDIA_URL_NOT_ACCESSIBLE,\n $rowNum,\n null,\n null,\n ProcessingError::ERROR_LEVEL_NOT_CRITICAL\n );\n }\n } else {\n $uploadedFile = $uploadedImages[$columnImage];\n }\n\n if ($uploadedFile && $column !== self::COL_MEDIA_IMAGE) {\n $rowData[$column] = $uploadedFile;\n }\n\n if ($uploadedFile && !isset($mediaGallery[$storeId][$rowSku][$uploadedFile])) {\n if (isset($existingImages[$rowSku][$uploadedFile])) {\n $currentFileData = $existingImages[$rowSku][$uploadedFile];\n if (isset($rowLabels[$column][$columnImageKey])\n && $rowLabels[$column][$columnImageKey] !=\n $currentFileData['label']\n ) {\n $labelsForUpdate[] = [\n 'label' => $rowLabels[$column][$columnImageKey],\n 'imageData' => $currentFileData\n ];\n }\n\n if (array_key_exists($uploadedFile, $imageHiddenStates)\n && $currentFileData['disabled'] != $imageHiddenStates[$uploadedFile]\n ) {\n $imagesForChangeVisibility[] = [\n 'disabled' => $imageHiddenStates[$uploadedFile],\n 'imageData' => $currentFileData\n ];\n }\n } else {\n if ($column == self::COL_MEDIA_IMAGE) {\n $rowData[$column][] = $uploadedFile;\n }\n $mediaGallery[$storeId][$rowSku][$uploadedFile] = [\n 'attribute_id' => $this->getMediaGalleryAttributeId(),\n 'label' => isset($rowLabels[$column][$columnImageKey])\n ? $rowLabels[$column][$columnImageKey]\n : '',\n 'position' => ++$position,\n 'disabled' => isset($imageHiddenStates[$columnImage])\n ? $imageHiddenStates[$columnImage] : '0',\n 'value' => $uploadedFile,\n ];\n }\n }\n }\n }\n\n // 6. Attributes phase\n $rowStore = (self::SCOPE_STORE == $rowScope)\n ? $this->storeResolver->getStoreCodeToId($rowData[self::COL_STORE])\n : 0;\n $productType = isset($rowData[self::COL_TYPE]) ? $rowData[self::COL_TYPE] : null;\n if ($productType !== null) {\n $previousType = $productType;\n }\n if (isset($rowData[self::COL_ATTR_SET])) {\n $prevAttributeSet = $rowData[self::COL_ATTR_SET];\n }\n if (self::SCOPE_NULL == $rowScope) {\n // for multiselect attributes only\n if ($prevAttributeSet !== null) {\n $rowData[self::COL_ATTR_SET] = $prevAttributeSet;\n }\n if ($productType === null && $previousType !== null) {\n $productType = $previousType;\n }\n if ($productType === null) {\n continue;\n }\n }\n\n $productTypeModel = $this->_productTypeModels[$productType];\n if (!empty($rowData['tax_class_name'])) {\n $rowData['tax_class_id'] =\n $this->taxClassProcessor->upsertTaxClass($rowData['tax_class_name'], $productTypeModel);\n }\n\n if ($this->getBehavior() == Import::BEHAVIOR_APPEND ||\n empty($rowData[self::COL_SKU])\n ) {\n $rowData = $productTypeModel->clearEmptyData($rowData);\n }\n\n $rowData = $productTypeModel->prepareAttributesWithDefaultValueForSave(\n $rowData,\n !$this->isSkuExist($rowSku)\n );\n $product = $this->_proxyProdFactory->create(['data' => $rowData]);\n\n foreach ($rowData as $attrCode => $attrValue) {\n $attribute = $this->retrieveAttributeByCode($attrCode);\n\n if ('multiselect' != $attribute->getFrontendInput() && self::SCOPE_NULL == $rowScope) {\n // skip attribute processing for SCOPE_NULL rows\n continue;\n }\n $attrId = $attribute->getId();\n $backModel = $attribute->getBackendModel();\n $attrTable = $attribute->getBackend()->getTable();\n $storeIds = [0];\n\n if ('datetime' == $attribute->getBackendType()\n && (\n in_array($attribute->getAttributeCode(), $this->dateAttrCodes)\n || $attribute->getIsUserDefined()\n )\n ) {\n $attrValue = $this->dateTime->formatDate($attrValue, false);\n } elseif ('datetime' == $attribute->getBackendType() && strtotime($attrValue)) {\n $attrValue = gmdate(\n 'Y-m-d H:i:s',\n $this->_localeDate->date($attrValue)->getTimestamp()\n );\n } elseif ($backModel) {\n $attribute->getBackend()->beforeSave($product);\n $attrValue = $product->getData($attribute->getAttributeCode());\n }\n if (self::SCOPE_STORE == $rowScope) {\n if (self::SCOPE_WEBSITE == $attribute->getIsGlobal()) {\n // check website defaults already set\n if (!isset($attributes[$attrTable][$rowSku][$attrId][$rowStore])) {\n $storeIds = $this->storeResolver->getStoreIdToWebsiteStoreIds($rowStore);\n }\n } elseif (self::SCOPE_STORE == $attribute->getIsGlobal()) {\n $storeIds = [$rowStore];\n }\n if (!$this->isSkuExist($rowSku)) {\n $storeIds[] = 0;\n }\n }\n foreach ($storeIds as $storeId) {\n if (!isset($attributes[$attrTable][$rowSku][$attrId][$storeId])) {\n $attributes[$attrTable][$rowSku][$attrId][$storeId] = $attrValue;\n }\n }\n // restore 'backend_model' to avoid 'default' setting\n $attribute->setBackendModel($backModel);\n }\n }\n\n foreach ($bunch as $rowNum => $rowData) {\n if ($this->getErrorAggregator()->isRowInvalid($rowNum)) {\n unset($bunch[$rowNum]);\n }\n }\n\n $this->saveProductEntity(\n $entityRowsIn,\n $entityRowsUp\n )->_saveProductWebsites(\n $this->websitesCache\n )->_saveProductCategories(\n $this->categoriesCache\n )->_saveProductTierPrices(\n $tierPrices\n )->_saveMediaGallery(\n $mediaGallery\n )->_saveProductAttributes(\n $attributes\n )->updateMediaGalleryVisibility(\n $imagesForChangeVisibility\n )->updateMediaGalleryLabels(\n $labelsForUpdate\n );\n\n $this->_eventManager->dispatch(\n 'catalog_product_import_bunch_save_after',\n ['adapter' => $this, 'bunch' => $bunch]\n );\n }\n\n return $this;\n }", "public function getProductPrice(Request $request){\n $data = $request->all();\n // echo '<pre>'; print_r($data); die;\n $prodArray = explode(\"-\", $data['idSize']);\n // echo $prodArray[0]; echo $prodArray[1]; die;\n $prodAttr = ProductsAttribute::where(['product_id' => $prodArray[0], 'size' => $prodArray[1]])->first();\n echo $prodAttr->price;\n echo \"#\";\n echo $prodAttr->stock;\n }", "function custom_sizes() {\n\n}", "public function update(Request $request, $id)\n {\n $sizes = FLSize::all();\n // validate rules prices\n $prices_rules = [];\n foreach ($sizes as $size) {\n $prices_rules[] = 'prices.' . $size->name = 'required|regex:/^\\d*(\\.\\d{1,2})?$/';\n }\n\n // validate the data\n $this->validate($request, array_merge([\n 'name' => 'required|max:255',\n 'slug' => 'required|alpha_dash|min:1|max:255|unique:flowers,slug,'.$id,\n 'dscr' => 'required',\n ], $prices_rules));\n\n\n // store in the database\n $flower = Flower::find($id);\n $flower->name = $request->input('name');\n $flower->slug = $request->input('slug');\n $flower->stock = $request->input('stock');\n $flower->best = $request->input('best');\n $flower->new = $request->input('new');\n $flower->sale = $request->input ('sale');\n $flower->dscr = $request->input ('dscr');\n\n if ($request->hasFile('image1')) {\n $image = $request->file('image1');\n $filename = time() . $image->getClientOriginalName();\n $location = public_path('images/product/' . $filename);\n Image::make($image)->resize(600, 800)->save($location);\n $flower->image1 = $filename;\n }\n $flower->save();\n\n if ($request->input('collections')) {\n $flower->collections()->sync($request->collections);\n } else {\n $flower->collections()->sync(array());\n }\n\n // attach prices of sizes\n $req_sizes = $request->input('prices');\n foreach ( $req_sizes as $size => $price) {\n $size_id = FLSize::where('name', $size)->first()->id;\n $flower->sizes()->updateExistingPivot($size_id, ['price' => $price]);\n }\n\n\n return redirect()->route('products.show', $flower->id);\n}", "function setPaperHeight($paperHeight) {\t \r\n\t $this->paperHeight = $paperHeight;\r\n\t}", "function getShipSize($typeId)\r\n{\r\n\t$db = connectToDB();\r\n\t\r\n\t$sql = \"SELECT s.shipSize, s.allowed FROM ship_size s, eve_staticdata.invTypes t WHERE t.typeID = $typeId and t.groupID = s.groupID\";\r\n\r\n\t$res = $db->query($sql);\r\n\t\r\n\tif ($res->num_rows == 0)\r\n\t\treturn 0;\r\n\t$row = $res->fetch_array();\r\n\tif ($row['allowed'] == 1)\r\n\t\treturn $row['shipSize'];\r\n\telse\r\n\t\treturn -1;\r\n}", "public function get_bagsize()\n {\n $this->db->select('s.*,eb.bag_type,ebl.bag_layout');\n $this->db->from($this->table.' s');\n $this->db->join('ecom_baglayout as ebl','s.bag_layout = ebl.id','left');\n $this->db->join('ecom_bagtype as eb','s.bag_type = eb.id','left');\n $this->db->order_by('bag_size','asc');\n $this->db->where(array('s.status' => 1));\n return $this->db->get()->result();\n }", "protected function updatePartition()\n {\n $ShopNumber = DB::select('SELECT COUNT(*) as total FROM `ShopList`')[0]->total;\n\n if($ShopNumber > 0)\n {\n DB::unprepared('ALTER TABLE SaleList PARTITION BY HASH(C_Branch) PARTITIONS '.strval($ShopNumber));\n DB::unprepared('ALTER TABLE SaleDetail PARTITION BY HASH(C_Branch) PARTITIONS '.strval($ShopNumber));\n DB::unprepared('ALTER TABLE GoodList PARTITION BY HASH(C_Branch) PARTITIONS '.strval($ShopNumber));\n DB::unprepared('ALTER TABLE GoodCategory PARTITION BY HASH(C_Branch) PARTITIONS '.strval($ShopNumber));\n }\n }", "public function update($printer){\r\n\t\t$sql = 'UPDATE printer SET supplier_id = ?, style_id = ?, name = ?, bed_x = ?, bed_y = ?, bed_z = ?, product_url = ?, discontinued = ?, model_number = ?, print_speed_max = ?, print_speed_max_height = ?, layer_max = ?, layer_min = ?, print_surface = ? WHERE printer_id = ?';\r\n\t\t$sqlQuery = new SqlQuery($sql);\r\n\t\t\n $sqlQuery->setNumber($printer->supplierId);\n $sqlQuery->setNumber($printer->styleId);\n $sqlQuery->set($printer->name);\r\n $sqlQuery->set($printer->bedX);\n $sqlQuery->set($printer->bedY);\n $sqlQuery->set($printer->bedZ);\n $sqlQuery->set($printer->productUrl);\n $sqlQuery->set($printer->discontinued);\n $sqlQuery->set($printer->modelNumber);\n $sqlQuery->setNumber($printer->printSpeedMax);\n $sqlQuery->set($printer->printSpeedMaxHeight);\n $sqlQuery->set($printer->layerMax);\n $sqlQuery->set($printer->layerMin);\n $sqlQuery->set($printer->printSurface);\n\r\n\t\t$sqlQuery->setNumber($printer->printerId);\r\n\t\treturn $this->executeUpdate($sqlQuery);\r\n\t}", "function dlts_image_field_schema_7001($field) {\n field_cache_clear();\n return array(\n 'columns' => array(\n 'fid' => array(\n 'description' => 'The {file_managed}.fid being referenced in this field.',\n 'type' => 'int',\n 'not null' => FALSE,\n 'unsigned' => TRUE,\n ),\n 'djakota_width' => array(\n 'description' => 'The width of the image in pixels.',\n 'type' => 'int',\n 'unsigned' => TRUE,\n ),\n 'djakota_height' => array(\n 'description' => 'The height of the image in pixels.',\n 'type' => 'int',\n 'unsigned' => TRUE,\n ),\n 'djakota_levels' => array(\n 'description' => 'Djatoka Jpeg 2000 Image Server levels values of the image.',\n 'type' => 'int',\n 'unsigned' => TRUE,\n ),\n 'djakota_dwtLevels' => array(\n 'description' => 'Djatoka Jpeg 2000 Image Server dwtLevels values of the image.',\n 'type' => 'int',\n 'unsigned' => TRUE,\n ),\n 'djakota_compositingLayerCount' => array(\n 'description' => 'Djatoka Jpeg 2000 Image Server compositing layer count of the image.',\n 'type' => 'int',\n 'unsigned' => TRUE,\n ),\n 'width' => array(\n 'description' => 'The width of the image in pixels.',\n 'type' => 'int',\n 'unsigned' => TRUE,\n ),\n 'height' => array(\n 'description' => 'The height of the image in pixels.',\n 'type' => 'int',\n 'unsigned' => TRUE,\n ),\n ),\n 'indexes' => array(\n 'fid' => array('fid'),\n ),\n 'foreign keys' => array(\n 'fid' => array(\n 'table' => 'file_managed',\n 'columns' => array('fid' => 'fid'),\n ),\n ),\n );\n}", "protected function getSizePrice(SizePriceCanvas $rpsizeModel){\n\n if (Auth::check()){\n\n $prsize = $rpsizeModel->getAllPriceSize();\n \n return view('admin.sizeprice')->withPrsize($prsize);\n \n }else{\n\n return redirect()->back();\n }\n\n }", "protected function _prepareColumns()\n {\n/*\n $this->addColumn('version_number', array(\n 'header' => Mage::helper('gri_cms')->__('Version #'),\n 'width' => 100,\n 'index' => 'version_number',\n 'type' => 'options',\n 'options' => Mage::helper('gri_cms')->getVersionsArray($this->getPage())\n ));\n*/\n $this->addColumn('label', array(\n 'header' => Mage::helper('gri_cms')->__('Version Label'),\n 'index' => 'label',\n 'type' => 'options',\n 'options' => $this->getCollection()\n ->getAsArray('label', 'label')\n ));\n\n $this->addColumn('owner', array(\n 'header' => Mage::helper('gri_cms')->__('Owner'),\n 'index' => 'username',\n 'type' => 'options',\n 'options' => $this->getCollection()->getUsersArray(false),\n 'width' => 250\n ));\n\n $this->addColumn('access_level', array(\n 'header' => Mage::helper('gri_cms')->__('Access Level'),\n 'index' => 'access_level',\n 'type' => 'options',\n 'width' => 100,\n 'options' => Mage::helper('gri_cms')->getVersionAccessLevels()\n ));\n\n $this->addColumn('revisions', array(\n 'header' => Mage::helper('gri_cms')->__('Revisions Qty'),\n 'index' => 'revisions_count',\n 'type' => 'number'\n ));\n\n $this->addColumn('created_at', array(\n 'width' => 150,\n 'header' => Mage::helper('gri_cms')->__('Created At'),\n 'index' => 'created_at',\n 'type' => 'datetime',\n ));\n\n return parent::_prepareColumns();\n }", "public function editFormPrint(Request $request)\n\t{\n\n\t\t$order_id = $request->id;\n\t\t//order info\n\t\t$order= DB::table('mr_order_entry AS OE')\n\t\t\t\t\t->where('OE.order_id', $order_id)\n\t\t\t\t\t->select([\n\t\t\t\t\t\t\"OE.order_id\",\n\t\t\t\t\t\t\"OE.order_code\",\n\t\t\t\t\t\t\"OE.unit_id\",\n\t\t\t\t\t\t\"u.hr_unit_name\",\n\t\t\t\t\t\t\"b.b_name\",\n\t\t\t\t\t\t\"br.br_name\",\n\t\t\t\t\t\t\"s.se_name\",\n\t\t\t\t\t\t\"stl.stl_no\",\n\t\t\t\t\t\t\"OE.mr_style_stl_id\",\n\t\t\t\t\t\t\"OE.order_ref_no\",\n\t\t\t\t\t\t\"OE.order_qty\",\n\t\t\t\t\t\t\"OE.order_delivery_date\",\n\t\t \t\t\t\"stl.stl_img_link\"\n\t\t\t\t\t])\n\t\t\t\t\t->leftJoin('hr_unit AS u', 'u.hr_unit_id', 'OE.unit_id')\n\t\t\t\t\t->leftJoin('mr_buyer AS b', 'b.b_id', 'OE.mr_buyer_b_id')\n\t\t\t\t\t->whereIn('b.b_id', auth()->user()->buyer_permissions())\n\t\t\t\t\t->leftJoin('mr_brand AS br', 'br.br_id', 'OE.mr_brand_br_id')\n\t\t\t\t\t->leftJoin('mr_season AS s', 's.se_id', 'OE.mr_season_se_id')\n\t\t\t\t\t->leftJoin('mr_style AS stl', 'stl.stl_id', \"OE.mr_style_stl_id\")\n\t\t\t\t\t->first();\n\n\t\t//id= Style Id\n\t\t$id= $order->mr_style_stl_id;\n\n\t\t// Other Costs of style for showing\n\t\t$style_other_costing= BomOtherCosting::where('mr_style_stl_id', $id)->first();\n\n //sampleTypes\n\t\t$samples = DB::table(\"mr_stl_sample AS ss\")\n\t\t\t\t\t\t->select(DB::raw(\"GROUP_CONCAT(st.sample_name SEPARATOR ', ') AS name\"))\n\t\t\t\t\t\t->leftJoin(\"mr_sample_type AS st\", \"st.sample_id\", \"ss.sample_id\")\n\t\t\t\t\t\t->where(\"ss.stl_id\", $id)\n\t\t\t\t\t\t->first();\n\n //operations\n\t\t$operations = DB::table(\"mr_style_operation_n_cost AS oc\")\n\t\t\t\t\t\t->select(\"o.opr_name\")\n\t\t\t\t\t\t->select(DB::raw(\"GROUP_CONCAT(o.opr_name SEPARATOR ', ') AS name\"))\n\t\t\t\t\t\t->leftJoin(\"mr_operation AS o\", \"o.opr_id\", \"oc.mr_operation_opr_id\")\n\t\t\t\t\t\t->where(\"oc.mr_style_stl_id\", $id)\n\t\t\t\t\t\t->first();\n\n //machines\n\t\t$machines = DB::table(\"mr_style_sp_machine AS sm\")\n\t\t\t\t\t\t->select(DB::raw(\"GROUP_CONCAT(m.spmachine_name SEPARATOR ', ') AS name\"))\n\t\t\t\t\t\t->leftJoin(\"mr_special_machine AS m\", \"m.spmachine_id\", \"sm.spmachine_id\")\n\t\t\t\t\t\t->where(\"sm.stl_id\", $id)\n\t\t\t\t\t\t->first();\n\n\t\t/*\n\t\t* LOAD BOM ITEM DATA\n\t\t*---------------------------------------------\n\t\t*/\n\t\t$boms = DB::table(\"mr_order_bom_costing_booking AS b\")\n\t\t->select(\n\t\t\t\"b.*\",\n\t\t\t\"c.mcat_name\",\n\t\t\t\"i.item_name\",\n\t\t\t\"i.item_code\",\n\t\t\t\"mc.clr_code\",\n\t\t\t\"s.sup_name\",\n\t\t\t\"a.art_name\",\n\t\t\t\"com.comp_name\",\n\t\t\t\"con.construction_name\",\n\t\t\t\"OE.order_qty\"\n\t\t)\n\t\t->leftJoin(\"mr_material_category AS c\", function($join) {\n\t\t\t$join->on(\"c.mcat_id\", \"=\", \"b.mr_material_category_mcat_id\");\n\t\t})\n\t\t->leftJoin(\"mr_cat_item AS i\", function($join) {\n\t\t\t$join->on(\"i.mcat_id\", \"=\", \"b.mr_material_category_mcat_id\");\n\t\t\t$join->on(\"i.id\", \"=\", \"b.mr_cat_item_id\");\n\t\t})\n\t\t->leftJoin(\"mr_material_color AS mc\", \"mc.clr_id\", \"b.clr_id\")\n\t\t->leftJoin(\"mr_supplier AS s\", \"s.sup_id\", \"b.mr_supplier_sup_id\")\n\t\t->leftJoin(\"mr_article AS a\", \"a.id\", \"b.mr_article_id\")\n\t\t->leftJoin(\"mr_composition AS com\", \"com.id\", \"b.mr_composition_id\")\n\t\t->leftJoin(\"mr_construction AS con\", \"con.id\", \"b.mr_construction_id\")\n\t\t->where(\"b.order_id\", $order_id)\n\t\t->leftJoin('mr_order_entry AS OE', 'OE.order_id', 'b.order_id')\n\t\t->leftJoin(\"mr_material_sub_cat as scat\", \"i.mr_material_sub_cat_id\", \"scat.msubcat_id\")\n\t\t->orderBy(\"i.tab_index\")\n\t\t->orderBy(\"scat.subcat_index\");\n\n\t\t$boms_pluck = $boms->pluck('mcat_name','id')->toArray();\n\t\t$boms = $boms->get();\n\n\t\t// echo \"<pre>\"; print_r($boms);exit;\n\t\t$bomItemData = \"\";\n\t\t$previousCategory = null;\n\t\t$previousCategoryName = null;\n\t\t$loop = 0;\n\t\t$sub_stl_cost=0;\n\t\t$subtotalName = \"no_category\";\n\t #------------------------------------\n\t $boms_pluck_count = array_count_values($boms_pluck);\n\t\tforeach ($boms as $bom)\n\t\t{\n\t\t\t#---- Style Total Cost for showing ----------------#\n\t\t\tif($bom->mr_style_stl_id!=null){\n\t\t\t\t$stl_total= DB::table('mr_stl_bom_n_costing')\n\t\t\t\t->where('id', $bom->mr_style_stl_id)\n\t\t\t\t->where('mr_material_category_mcat_id', $bom->mr_material_category_mcat_id)\n\t\t\t\t->where('mr_cat_item_id', $bom->mr_cat_item_id)\n\t\t\t\t->select([\n\t\t\t\t\t'consumption',\n\t\t\t\t\t'precost_unit_price'\n\t\t\t\t])\n\t\t\t\t->first();\n\t\t\t\t//dd($stl_total);\n\n\t\t\t\tif($stl_total){\n\t\t\t\t \t$stl_extra_qty = ($bom->consumption/100)*$bom->extra_percent;\n\n\t\t\t\t\t$stl_consumptionEx = $bom->consumption + $stl_extra_qty;\n\n\t\t\t\t\t$stl_cost = $stl_consumptionEx*$stl_total->precost_unit_price;\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\t$stl_cost=0;\n\n\t\t\t\t}\n\n\n\t\t\t}\n\t\t\telse{\n\t\t\t\t$stl_cost=0;\n\t\t\t}\n\t\t\t//--- Style Total Cost for showing\n\n\t\t\t//$total_price = $bom->consumption*$bom->precost_unit_price;\n\t\t\t// show subtotal\n\t\t\tif ($loop == 0)\n\t\t\t{\n\t\t\t\t$previousCategory = $bom->mr_material_category_mcat_id;\n\t\t\t\t$previousCategoryName = $bom->mcat_name;\n\t\t\t}\n\t\t\telse if (($previousCategory != $bom->mr_material_category_mcat_id))\n\t\t\t{\n\t\t\t\tif ($previousCategory==1)\n\t\t\t\t{\n\t\t\t\t\t$subtotalName = \"total_fabric\";\n\t\t\t\t}\n\t\t\t\telse if ($previousCategory==2)\n\t\t\t\t{\n\t\t\t\t\t$subtotalName = \"total_sewing\";\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$subtotalName = \"total_finishing\";\n\t\t\t\t}\n\n\t\t\t\t$bomItemData .= \"<tr><td class='no-border-right'><b> Total $previousCategoryName Price</b></td><td class='no-border-right'>&nbsp;</td><td class='no-border-right'>&nbsp;</td><td class='no-border-right'>&nbsp;</td><td class='no-border-right'>&nbsp;</td><td class='no-border-right'>&nbsp;</td><td class='no-border-right'>&nbsp;</td><td class='no-border-right'>&nbsp;</td><td class='no-border-right'>&nbsp;</td><td class='no-border-right'>&nbsp;</td><td class='no-border-right'>&nbsp;</td><td class='no-border-right'>&nbsp;</td><td class='no-border-right'>&nbsp;</td><td class='no-border-right'>&nbsp;</td><td >&nbsp;</td><td class='no-border-right'></td><td class='no-border-right'></td><td></td><td><input name=\\\"$subtotalName\\\" id=\\\"$subtotalName\\\" type=\\\"text\\\" class=\\\"fob form-control input-sm subtotal\\\" data-subtotal=\\\"$previousCategory\\\" placeholder=\\\"Sub Total\\\" readonly value=\\\"0\\\" step=\\\"any\\\"/></td>\n\t\t\t\t<td><input name=\\\"stl_$subtotalName\\\" type=\\\"text\\\" class=\\\"form-control input-sm _style_subtotal\\\" style-data-subtotal=\\\"$previousCategory\\\" placeholder=\\\"Style Sub Total\\\" readonly value=\\\"$sub_stl_cost\\\" style='background: #feffb6 !important'></td>\n\t\t\t\t<td></td>\n\t\t\t\t<td></td>\n\t\t\t\t</tr>\";\n\t\t\t\t//newAdd\n\t\t\t\tif($subtotalName == 'total_finishing'){\n\t\t\t\t\t$bomItemData .= \"<tr>\n\t\t\t\t\t\t<td class='no-border-right'><b> Total Sewing and Finishing Accessories Price</b></td>\n\t\t\t\t\t\t<td class='no-border-right'>&nbsp;</td><td class='no-border-right'>&nbsp;</td>\n\t\t\t\t\t\t<td class='no-border-right'>&nbsp;</td><td class='no-border-right'>&nbsp;</td>\n\t\t\t\t\t\t<td class='no-border-right'>&nbsp;</td><td class='no-border-right'>&nbsp;</td>\n\t\t\t\t\t\t<td class='no-border-right'>&nbsp;</td><td class='no-border-right'>&nbsp;</td>\n\t\t\t\t\t\t<td class='no-border-right'>&nbsp;</td><td class='no-border-right'>&nbsp;</td>\n\t\t\t\t\t\t<td class='no-border-right'>&nbsp;</td><td class='no-border-right'>&nbsp;</td>\n\t\t\t\t\t\t<td class='no-border-right'>&nbsp;</td><td class='no-border-right'>&nbsp;</td>\n\t\t\t\t\t\t<td class='no-border-right'></td>\n\t\t\t\t\t\t<td class='no-border-right'></td>\n\t\t\t\t\t\t<td class='no-border-right'></td>\n\t\t\t\t\t\t<td class='no-border-right'></td>\n\t\t\t\t\t\t<td class='no-border-right'></td>\n\t\t\t\t\t\t<td></td>\n\t\t\t\t\t\t<td style=\\\"padding: 8px 4px 8px 0px;\\\"> \n\t\t\t\t\t\t\t<input type=\\\"text\\\" name=\\\"total_sewing_n_finishing_price\\\" id=\\\"total_sewing_n_finishing_price\\\" class=\\\"form-control input-sm\\\" readonly=\\\"readonly\\\" style='background: #feff00 !important; color: black;'>\n\t\t\t\t\t\t</td>\n\t\t\t\t\t\t</tr>\";\n\t\t\t\t}\n\n\t\t\t\t$previousCategory = $bom->mr_material_category_mcat_id;\n\t\t\t\t$previousCategoryName = $bom->mcat_name;\n\t\t\t\t$sub_stl_cost=0;\n\t\t\t}\n\t\t\t// ---------------------------------\n\n\t\t\t$extra_qty = ($bom->consumption/100)*$bom->extra_percent;\n\t\t\t$consumptionEx = $bom->consumption + $extra_qty;\n\t\t\t$total_price = $consumptionEx*$bom->precost_unit_price;\n\t\t\t$total = $bom->consumption+$extra_qty;\n\t\t\t$precost_req_pre = ($bom->consumption * $bom->extra_percent)/100;\n\t\t\t$precost_req_qty = ($bom->consumption + $precost_req_pre) * $order->order_qty;\n\t\t\t$total_value = $bom->precost_unit_price * $precost_req_qty;\n\t\t\t$trRowColor = '';\n\t\t\tif($bom->po_no != null) {\n\t\t\t\t$trRowColor = \"style='background-color: lightgoldenrodyellow;'\";\n\t\t\t}\n\t\t\tif(isset($boms_pluck_count[$bom->mcat_name])) {\n\t\t\t\t$row_count = $boms_pluck_count[$bom->mcat_name];\n\t\t\t\t$mcat_name = \"<td rowspan='$row_count'>$bom->mcat_name</td>\";\n\t\t\t\tunset($boms_pluck_count[$bom->mcat_name]);\n\t\t\t} else {\n\t\t\t\t$mcat_name = '';\n\t\t\t}\n\t\t\t$bomItemData .= \"<tr $trRowColor>\n\t\t\t$mcat_name\n\t\t\t<td>$bom->item_name</td>\n\t\t\t<td>$bom->item_code</td>\n\t\t\t<td>$bom->item_description</td>\n\t\t\t<td><span class='label' style=\\\"color:#87B87F;border:1px solid;background:$bom->clr_code\\\">$bom->clr_code</span></td>\n\t\t\t<td>$bom->size</td>\n\t\t\t<td>$bom->art_name</td>\n\t\t\t<td>$bom->comp_name</td>\n\t\t\t<td>$bom->construction_name</td>\n\t\t\t<td>$bom->sup_name</td>\n\t\t\t<td class='consumption'>\n\t\t\t<input type=\\\"hidden\\\" name=\\\"mr_style_stl_id\\\" value=\\\"$id\\\"/>\n\t\t\t<input type=\\\"hidden\\\" name=\\\"id[]\\\" value=\\\"$bom->id\\\"/>\n\t\t\t$bom->consumption\n\t\t\t</td>\n\t\t\t<td class='extra'>$bom->extra_percent</td>\n\t\t\t<td>$bom->uom</td>\n\t\t\t<td>\n\t\t\t<div class=\\\"radio\\\" style=\\\"margin:0\\\">\n\t\t\t<label style=\\\"font-size:9px;min-height:0\\\">\n\t\t\t<input type=\\\"radio\\\" name=\\\"bom_term[$loop]\\\" value=\\\"FOB\\\" class=\\\"bom_term\\\" style=\\\"margin-top:0\\\" \".($bom->bom_term=='FOB'?'checked':null).\"> FOB\n\t\t\t</label>\n\t\t\t</div>\n\t\t\t<div class=\\\"radio\\\" style=\\\"margin:0\\\">\n\t\t\t<label style=\\\"font-size:9px;min-height:0\\\">\n\t\t\t<input type=\\\"radio\\\" name=\\\"bom_term[$loop]\\\" value=\\\"C&F\\\" class=\\\"bom_term\\\" style=\\\"margin-top:0\\\" \".($bom->bom_term=='C&F'?'checked':null).\"> C&F\n\t\t\t</label>\n\t\t\t</div>\n\t\t\t</td>\n\t\t\t<td><input name=\\\"precost_fob[]\\\" type=\\\"text\\\" class=\\\"fob form-control input-sm\\\" placeholder=\\\"FOB\\\" value=\\\"$bom->precost_fob\\\" step=\\\"any\\\" data-validation=\\\"required\\\" autocomplete=\\\"off\\\" \".($bom->bom_term=='C&F'?'readonly':null).\"/></td>\n\t\t\t<td><input name=\\\"precost_lc[]\\\" type=\\\"text\\\" class=\\\"lc form-control input-sm\\\" placeholder=\\\"L/C\\\" value=\\\"$bom->precost_lc\\\" step=\\\"any\\\" data-validation=\\\"required\\\" autocomplete=\\\"off\\\" \".($bom->bom_term=='C&F'?'readonly':null).\"/></td>\n\t\t\t<td><input name=\\\"precost_freight[]\\\" type=\\\"text\\\" class=\\\"freight form-control input-sm\\\" placeholder=\\\"Freight\\\" value=\\\"$bom->precost_freight\\\" step=\\\"any\\\" data-validation=\\\"required\\\" autocomplete=\\\"off\\\" \".($bom->bom_term=='C&F'?'readonly':null).\"/></td>\n\t\t\t<td><input name=\\\"precost_unit_price[]\\\" type=\\\"text\\\" min='0' step=\\\"any\\\" class=\\\"form-control input-sm unit_price\\\" placeholder=\\\"Unit Price\\\" value=\\\"$bom->precost_unit_price\\\" data-validation=\\\"required\\\" autocomplete=\\\"off\\\"/></td>\n\t\t\t<td><input type=\\\"text\\\" class=\\\"form-control input-sm total_price total_category_price\\\" data-cat-id=\\\"$bom->mr_material_category_mcat_id\\\" placeholder=\\\"Total Price\\\" value=\\\"$total_price\\\" step=\\\"any\\\" data-validation=\\\"required\\\" readonly/></td>\n\t\t\t<td><input type=\\\"text\\\" class=\\\"form-control stl_total_price input-sm\\\" name=\\\"style_cost[]\\\" placeholder=\\\"Style Total Price\\\" value=\\\"\".$stl_cost.\"\\\" step=\\\"any\\\" readonly style='background: #feffb6 !important'></td>\n\n\t\t\t<td><input name=\\\"precost_req_qty[]\\\" readonly type=\\\"text\\\" class=\\\"form-control input-sm required_qty\\\" placeholder=\\\"Req. Qty\\\" value=\\\"\".($precost_req_qty).\"\\\" step=\\\"any\\\" data-validation=\\\"required\\\" autocomplete=\\\"off\\\"/></td>\n\t\t\t<td><input name=\\\"precost_value[]\\\" readonly type=\\\"text\\\" class=\\\"form-control input-sm total_val\\\" placeholder=\\\"Precost Value\\\" value=\\\"$total_value\\\" step=\\\"any\\\" data-validation=\\\"required\\\" autocomplete=\\\"off\\\"/></td>\n\t\t\t</tr>\";\n\n\t\t\t$sub_stl_cost= (float)$sub_stl_cost+ (float)$stl_cost;\n\t\t\t// show subtotal\n\t\t\tif ($loop+1 == sizeof($boms))\n\t\t\t{\n\t\t\t\tif ($previousCategory==1)\n\t\t\t\t{\n\t\t\t\t\t$subtotalName = \"total_fabric\";\n\t\t\t\t}\n\t\t\t\telse if ($previousCategory==2)\n\t\t\t\t{\n\t\t\t\t\t$subtotalName = \"total_sewing\";\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$subtotalName = \"total_finishing\";\n\t\t\t\t}\n\t\t\t\t$bomItemData .= \"<tr><td class='no-border-right'><b> Total $previousCategoryName Price</b></td><td class='no-border-right'>&nbsp;</td><td class='no-border-right'>&nbsp;</td><td class='no-border-right'>&nbsp;</td><td class='no-border-right'>&nbsp;</td><td class='no-border-right'>&nbsp;</td><td class='no-border-right'>&nbsp;</td><td class='no-border-right'>&nbsp;</td><td class='no-border-right'>&nbsp;</td><td class='no-border-right'>&nbsp;</td><td class='no-border-right'>&nbsp;</td><td class='no-border-right'>&nbsp;</td><td class='no-border-right'>&nbsp;</td><td class='no-border-right'>&nbsp;</td><td >&nbsp;</td><td class='no-border-right'></td><td class='no-border-right'></td><td></td><td><input name=\\\"$subtotalName\\\" id=\\\"$subtotalName\\\" type=\\\"text\\\" class=\\\"fob form-control input-sm subtotal\\\" data-subtotal=\\\"$previousCategory\\\" placeholder=\\\"Sub Total\\\" readonly value=\\\"0\\\" step=\\\"any\\\"/></td>\n\t\t\t\t<td><input name=\\\"stl_$subtotalName\\\" type=\\\"text\\\" class=\\\"form-control input-sm _style_subtotal\\\" style-data-subtotal=\\\"$previousCategory\\\" placeholder=\\\"Style Sub Total\\\" readonly value=\\\"$sub_stl_cost\\\" style='background: #feffb6 !important'></td>\n\t\t\t\t<td></td>\n\t\t\t\t<td></td>\n\t\t\t\t</tr>\";\n\t\t\t\t//newAdd\n\t\t\t\tif($subtotalName == 'total_finishing'){\n\t\t\t\t\t$bomItemData .= \"<tr>\n\t\t\t\t\t\t<td class='no-border-right'><b> Total Sewing and Finishing Accessories Price</b></td>\n\t\t\t\t\t\t<td class='no-border-right'>&nbsp;</td><td class='no-border-right'>&nbsp;</td>\n\t\t\t\t\t\t<td class='no-border-right'>&nbsp;</td><td class='no-border-right'>&nbsp;</td>\n\t\t\t\t\t\t<td class='no-border-right'>&nbsp;</td><td class='no-border-right'>&nbsp;</td>\n\t\t\t\t\t\t<td class='no-border-right'>&nbsp;</td><td class='no-border-right'>&nbsp;</td>\n\t\t\t\t\t\t<td class='no-border-right'>&nbsp;</td><td class='no-border-right'>&nbsp;</td>\n\t\t\t\t\t\t<td class='no-border-right'>&nbsp;</td><td class='no-border-right'>&nbsp;</td>\n\t\t\t\t\t\t<td class='no-border-right'>&nbsp;</td><td class='no-border-right'>&nbsp;</td>\n\t\t\t\t\t\t<td class='no-border-right'></td>\n\t\t\t\t\t\t<td class='no-border-right'></td>\n\t\t\t\t\t\t<td class='no-border-right'></td>\n\t\t\t\t\t\t<td class='no-border-right'></td>\n\t\t\t\t\t\t<td class='no-border-right'></td>\n\t\t\t\t\t\t<td></td>\n\t\t\t\t\t\t<td style=\\\"padding: 8px 4px 8px 0px;\\\"> \n\t\t\t\t\t\t\t<input type=\\\"text\\\" name=\\\"total_sewing_n_finishing_price\\\" id=\\\"total_sewing_n_finishing_price\\\" class=\\\"form-control input-sm\\\" readonly=\\\"readonly\\\" style='background: #feff00 !important; color: black; '>\n\t\t\t\t\t\t</td>\n\t\t\t\t\t\t</tr>\";\n\t\t\t\t}\n\n\t\t\t\t$sub_stl_cost=0;\n\t\t\t}\n\t\t\t// ---------------------------------\n\n\t\t\t$loop++;\n\t\t}\n\t\t/*\n\t\t* LOAD STYLE OPERATION & COST\n\t\t*---------------------------------------------\n\t\t*/\n\t\t$special_operation = DB::table(\"mr_order_operation_n_cost AS oc\")\n\t\t->select(\n\t\t\t\"oc.*\",\n\t\t\t\"o.opr_name\"\n\t\t)\n\t\t->leftJoin(\"mr_operation AS o\", \"o.opr_id\", \"=\", \"oc.mr_operation_opr_id\")\n\t\t->where(\"oc.mr_order_entry_order_id\", $request->segment(3))\n\t\t->where(\"oc.opr_type\", 2)\n\t\t->get();\n\n\t\t//dd($special_operation);\n\n\t\tforeach ($special_operation as $spo)\n\t\t{\n\t\t\t$bomItemData .= \"\n\t\t\t<tr>\n\t\t\t<td ><b>$spo->opr_name</b></td>\n\t\t\t<td></td>\n\t\t\t<td></td>\n\t\t\t<td></td>\n\t\t\t<td></td>\n\t\t\t<td></td>\n\t\t\t<td></td>\n\t\t\t<td></td>\n\t\t\t<td></td>\n\t\t\t<td></td>\n\t\t\t<td>1</td>\n\t\t\t<td>0</td>\n\t\t\t<td>\".$spo->uom.\"</td>\n\t\t\t<td></td>\n\t\t\t<td></td>\n\t\t\t<td></td>\n\t\t\t<td></td>\n\t\t\t<td>\n\t\t\t<input type=\\\"hidden\\\" name=\\\"style_op_id[]\\\" value=\\\"$spo->order_op_id\\\"/>\n\t\t\t<input type=\\\"text\\\" min='0' step=\\\"any\\\" name=\\\"unit_price[]\\\" class=\\\"form-control input-sm sp_price\\\" placeholder=\\\"Unit Price\\\" value=\\\"$spo->unit_price\\\"/>\n\t\t\t</td>\n\t\t\t<td>\n\t\t\t<input type=\\\"text\\\" class=\\\"form-control input-sm sp_total_price total_price\\\" placeholder=\\\"Total Price\\\" value=\\\"$spo->unit_price\\\" step=\\\"any\\\" readonly/>\n\t\t\t</td>\n\t\t\t<td><input type=\\\"text\\\" class=\\\"form-control input-sm _style_subtotal\\\" placeholder=\\\"Style Unit Price\\\" value=\\\"$spo->unit_price\\\" readonly style='background: #feffb6 !important' ></td>\n\t\t\t<td></td>\n\t\t\t<td></td>\n\t\t\t</tr>\";\n\t\t}\n\t\t/*\n\t\t* LOAD OTHER COST\n\t\t*---------------------------------------------\n\t\t*/\n\t\t$other_cost = OrderBomOtherCosting::where('mr_order_entry_order_id', $request->segment(3))->first(); //dd($other_cost);\n\t\tif($other_cost!=null){\n\n\t\t\t$buyer_commision = floatval($other_cost->buyer_fob) - floatval($other_cost->net_fob);\n\t\t\t$agent_commision = floatval($other_cost->agent_fob) - floatval($other_cost->buyer_fob);\n\t\t\t$style_buyer_commision = $style_other_costing->buyer_fob - $style_other_costing->net_fob;\n\t\t\t$style_agent_commision = $style_other_costing->agent_fob - $style_other_costing->buyer_fob;\n\t }\n\t else{\n\t \t$buyer_commision = 0;\n\t \t$agent_commision = 0;\n\t \t$style_buyer_commision = 0;\n\t \t$style_agent_commision = 0;\n\t }\n\n\t\t$bomItemData .= \"\n\n\t\t<tr>\n\t\t<td ><b>Testing Cost</b></td>\n\t\t<td></td>\n\t\t<td></td>\n\t\t<td></td>\n\t\t<td></td>\n\t\t<td></td>\n\t\t<td></td>\n\t\t<td></td>\n\t\t<td></td>\n\t\t<td></td>\n\t\t<td class='consumption'><input type=\\\"hidden\\\" name=\\\"other_cost_id\\\" value=\\\"$other_cost->id\\\"/>1</td>\n\t\t<td>0</td>\n\t\t<td>Piece</td>\n\t\t<td></td>\n\t\t<td></td>\n\t\t<td></td>\n\t\t<td></td>\n\t\t<td>\n\t\t<input name=\\\"testing_cost\\\" type=\\\"number\\\" min='0' step=\\\"any\\\" class=\\\"form-control input-sm sp_price\\\" placeholder=\\\"Unit Price\\\" value=\\\"$other_cost->testing_cost\\\"/>\n\t\t</td>\n\t\t<td>\n\t\t<input type=\\\"text\\\" class=\\\"form-control input-sm total_price sp_total_price\\\" placeholder=\\\"Total Price\\\" value=\\\"$other_cost->testing_cost\\\" step=\\\"any\\\" readonly/>\n\t\t</td>\n\t\t<td><input type=\\\"text\\\" class=\\\"form-control input-sm _style_subtotal\\\" placeholder=\\\"Testing Cost\\\" value=\\\"$style_other_costing->testing_cost\\\" step=\\\"any\\\" readonly style='background: #feffb6 !important'></td>\n\t\t<td></td>\n\t\t<td></td>\n\t\t</tr>\n\t\t<tr>\n\t\t<td ><b>CM</b></td>\n\t\t<td></td>\n\t\t<td></td>\n\t\t<td></td>\n\t\t<td></td>\n\t\t<td></td>\n\t\t<td></td>\n\t\t<td></td>\n\t\t<td></td>\n\t\t<td></td>\n\t\t<td class='consumption'>1</td>\n\t\t<td>0</td>\n\t\t<td>Piece</td>\n\t\t<td></td>\n\t\t<td></td>\n\t\t<td></td>\n\t\t<td></td>\n\t\t<td>\n\t\t<input name=\\\"cm\\\" type=\\\"number\\\" min='0' step=\\\"any\\\" class=\\\"form-control input-sm sp_price\\\" placeholder=\\\"Unit Price\\\" value=\\\"$other_cost->cm\\\"/>\n\t\t</td>\n\t\t<td>\n\t\t<input type=\\\"text\\\" class=\\\"form-control input-sm total_price sp_total_price\\\" placeholder=\\\"Total Price\\\" value=\\\"$other_cost->cm\\\" step=\\\"any\\\" readonly/>\n\t\t</td>\n\t\t<td><input type=\\\"text\\\" class=\\\"form-control input-sm _style_subtotal\\\" placeholder=\\\"CM\\\" value=\\\"$style_other_costing->cm\\\" readonly style='background: #feffb6 !important' ></td>\n\t\t<td></td>\n\t\t<td></td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td><b>Commercial cost</b></td>\n\t\t\t<td></td>\n\t\t\t<td></td>\n\t\t\t<td></td>\n\t\t\t<td></td>\n\t\t\t<td></td>\n\t\t\t<td></td>\n\t\t\t<td></td>\n\t\t\t<td></td>\n\t\t\t<td></td>\n\t\t\t<td class='text-left'></td>\n\t\t\t<td></td>\n\t\t\t<td></td>\n\t\t\t<td></td>\n\t\t\t<td></td>\n\t\t\t<td></td>\n\t\t\t<td></td>\n\t\t\t<td>\n\t\t\t\t<input name=\\\"commercial_cost\\\" type=\\\"number\\\" min='0' step=\\\"any\\\" class=\\\"form-control input-sm sp_price\\\" placeholder=\\\"Price Unit\\\" value=\\\"$other_cost->commercial_cost\\\"/>\n\t\t\t</td>\n\t\t\t<td>\n\t\t\t\t<input type=\\\"text\\\" class=\\\"form-control input-sm sp_total_price total_price\\\" placeholder=\\\"Commercial cost\\\" value=\\\"$other_cost->commercial_cost\\\" step=\\\"any\\\" readonly/>\n\t\t\t</td>\n\t\t\t<td><input type=\\\"text\\\" class=\\\"form-control input-sm _style_subtotal\\\" placeholder=\\\"Style Commercial cost\\\" value=\\\"$style_other_costing->commercial_cost\\\" readonly style='background: #feffb6 !important' ></td>\n\t\t\t<td></td>\n\t\t\t<td></td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td ><b>Net FOB</b> </td>\n\t\t\t<td></td>\n\t\t\t<td></td>\n\t\t\t<td></td>\n\t\t\t<td></td>\n\t\t\t<td></td>\n\t\t\t<td></td>\n\t\t\t<td></td>\n\t\t\t<td></td>\n\t\t\t<td></td>\n\t\t\t<td></td>\n\t\t\t<td></td>\n\t\t\t<td></td>\n\t\t\t<td></td>\n\t\t\t<td></td>\n\t\t\t<td></td>\n\t\t\t<td></td>\n\t\t\t<td></td>\n\t\t\t<td>\n\t\t\t\t<input name=\\\"net_fob\\\" type=\\\"text\\\" class=\\\"form-control input-sm net_fob\\\" placeholder=\\\"Net FOB\\\" value=\\\"$other_cost->net_fob\\\" step=\\\"any\\\" readonly/>\n\t\t\t</td>\n\t\t\t<td><input type=\\\"text\\\" class=\\\"form-control input-sm _style_subtotal\\\" placeholder=\\\"Style Net FOB\\\" value=\\\"$style_other_costing->net_fob\\\" readonly style='background: #feffb6 !important' ></td>\n\t\t\t<td></td>\n\t\t\t<td></td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td ><b>Buyer Commision</b></td>\n\t\t\t<td></td>\n\t\t\t<td></td>\n\t\t\t<td></td>\n\t\t\t<td></td>\n\t\t\t<td></td>\n\t\t\t<td></td>\n\t\t\t<td></td>\n\t\t\t<td></td>\n\t\t\t<td></td>\n\t\t\t<td><input name=\\\"buyer_comission_percent\\\" type=\\\"number\\\" min='0' step=\\\"any\\\" class=\\\"form-control input-sm buyer_comission_percent\\\" placeholder=\\\"Buyer Commision\\\" value=\\\"$other_cost->buyer_comission_percent\\\" style=\\\"width:56px\\\"></td>\n\t\t\t<td class='text-left'>%</td>\n\t\t\t<td></td>\n\t\t\t<td></td>\n\t\t\t<td></td>\n\t\t\t<td></td>\n\t\t\t<td></td>\n\t\t\t<td>\n\t\t\t\t<input type=\\\"text\\\" name=\\\"buyer_commision\\\" class=\\\"form-control input-sm buyer_price sp_price\\\" placeholder=\\\"Unit Price\\\" value=\\\"$buyer_commision\\\" step=\\\"any\\\" readonly/>\n\t\t\t</td>\n\t\t\t<td>\n\t\t\t\t<input type=\\\"text\\\" class=\\\"form-control input-sm buyer_total_price sp_total_price\\\" placeholder=\\\"Buyer Commision \\\" value=\\\"$buyer_commision\\\" step=\\\"any\\\" readonly/>\n\t\t\t</td>\n\t\t\t<td><input type=\\\"text\\\" class=\\\"form-control input-sm _style_subtotal\\\" placeholder=\\\"Style Buyer Commision\\\" value=\\\"$style_buyer_commision\\\" readonly style='background: #feffb6 !important' ></td>\n\t\t\t<td></td>\n\t\t\t<td></td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td ><b>Buyer FOB</b> </td>\n\t\t\t<td></td>\n\t\t\t<td></td>\n\t\t\t<td></td>\n\t\t\t<td></td>\n\t\t\t<td></td>\n\t\t\t<td></td>\n\t\t\t<td></td>\n\t\t\t<td></td>\n\t\t\t<td></td>\n\t\t\t<td></td>\n\t\t\t<td></td>\n\t\t\t<td></td>\n\t\t\t<td></td>\n\t\t\t<td></td>\n\t\t\t<td></td>\n\t\t\t<td></td>\n\t\t\t<td></td>\n\t\t\t<td>\n\t\t\t\t<input name=\\\"buyer_fob\\\" type=\\\"text\\\" class=\\\"form-control input-sm buyer_fob\\\" placeholder=\\\"Buyer FOB\\\" value=\\\"$other_cost->buyer_fob\\\" step=\\\"any\\\" readonly/>\n\t\t\t</td>\n\t\t\t<td><input type=\\\"text\\\" class=\\\"form-control input-sm _style_subtotal\\\" placeholder=\\\"Style Buyer FOB\\\" value=\\\"$style_other_costing->buyer_fob\\\" readonly style='background: #feffb6 !important' ></td>\n\t\t\t<td></td>\n\t\t\t<td></td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td ><b>Agent Commision</b></td>\n\t\t\t<td></td>\n\t\t\t<td></td>\n\t\t\t<td></td>\n\t\t\t<td></td>\n\t\t\t<td></td>\n\t\t\t<td></td>\n\t\t\t<td></td>\n\t\t\t<td></td>\n\t\t\t<td></td>\n\t\t\t<td><input name=\\\"agent_comission_percent\\\" type=\\\"number\\\" min='0' step=\\\"any\\\" class=\\\"form-control input-sm agent_comission_percent\\\" placeholder=\\\"Agent Commision\\\" value=\\\"$other_cost->agent_comission_percent\\\" style=\\\"width:56px\\\"></td>\n\t\t\t<td class='text-left'>%</td>\n\t\t\t<td></td>\n\t\t\t<td></td>\n\t\t\t<td></td>\n\t\t\t<td></td>\n\t\t\t<td></td>\n\t\t\t<td>\n\t\t\t\t<input type=\\\"text\\\" name=\\\"agent_commision\\\" class=\\\"form-control input-sm agent_price sp_price\\\" placeholder=\\\"Unit Price\\\" value=\\\"$agent_commision\\\" step=\\\"any\\\" readonly />\n\t\t\t</td>\n\t\t\t<td>\n\t\t\t\t<input type=\\\"text\\\" class=\\\"form-control input-sm agent_total_price sp_total_price\\\" placeholder=\\\"Agent Commision \\\" value=\\\"$agent_commision\\\" step=\\\"any\\\" readonly/>\n\t\t\t</td>\n\t\t\t<td><input type=\\\"text\\\" class=\\\"form-control input-sm _style_subtotal\\\" placeholder=\\\"Style Buyer Commision\\\" value=\\\"$style_agent_commision\\\" readonly style='background: #feffb6 !important' ></td>\n\t\t\t<td></td>\n\t\t\t<td></td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td ><b>Total FOB </b></td>\n\t\t\t<td></td>\n\t\t\t<td></td>\n\t\t\t<td></td>\n\t\t\t<td></td>\n\t\t\t<td></td>\n\t\t\t<td></td>\n\t\t\t<td></td>\n\t\t\t<td></td>\n\t\t\t<td></td>\n\t\t\t<td></td>\n\t\t\t<td></td>\n\t\t\t<td></td>\n\t\t\t<td></td>\n\t\t\t<td></td>\n\t\t\t<td></td>\n\t\t\t<td></td>\n\t\t\t<td></td>\n\t\t\t<td>\n\t\t\t\t<input name=\\\"agent_fob\\\" type=\\\"text\\\" class=\\\"form-control input-sm agent_fob\\\" placeholder=\\\"Agent FOB\\\" value=\\\"$other_cost->agent_fob\\\" step=\\\"any\\\" readonly/>\n\t\t\t\t<input name=\\\"final_fob\\\" type=\\\"hidden\\\" class=\\\"form-control input-sm total_fob\\\" placeholder=\\\"Commision FOB\\\" value=\\\"$other_cost->agent_fob\\\" readonly/>\n\t\t\t</td>\n\t\t\t<td><input type=\\\"text\\\" class=\\\"form-control input-sm _style_subtotal\\\" placeholder=\\\"Style Agent FOB\\\" value=\\\"$style_other_costing->agent_fob\\\" readonly style='background: #feffb6 !important' ><input type=\\\"hidden\\\" class=\\\"form-control input-sm style_final_fob\\\" placeholder=\\\"Final FOB\\\" value=\\\"$style_other_costing->agent_fob\\\" readonly style='background: #feffb6 !important'></td>\n\t\t\t<td></td>\n\t\t\t<td></td>\n\t\t</tr>\";\n\n\t\t/*\n\t\t* Approval Button\n\t\t*/\n\t\t$buttons = $this->approvalButtons($order_id,$order->unit_id);\n\t\t/*\n\n\t\t/*\n\t\t* LOAD STYLE OPERATION & COST\n\t\t*---------------------------------------------\n\t\t*/\n\n\t\t$check_booking = OrderBOM::where('order_id', $order_id)\n\t\t\t\t\t\t\t->where('booking_qty', '!=', null)\n\t\t\t\t\t\t\t->exists();\n\t\treturn view(\"merch.order_costing.order_costing_print\", compact(\n\t\t\"order\",\n\t\t\"samples\",\n\t\t\"operations\",\n\t\t\"machines\",\n\t\t\"bomItemData\",\n\t\t\"buttons\",\n\t\t\"check_booking\"\n\t\t));\n\t}", "function kvell_edge_woocommerce_product_thumbnail_column_size() {\n\t\t$thumbs_number_meta = kvell_edge_options()->getOptionValue( 'woo_number_of_thumb_images' );\n\t\t$thumbs_number = ! empty ( $thumbs_number_meta ) ? intval( $thumbs_number_meta ) : 4;\n\t\t\n\t\treturn apply_filters( 'kvell_edge_number_of_thumbnails_per_row_single_product', $thumbs_number );\n\t}", "public function updateSize($objectId) {}", "private function addUPSSmallAttributes($installer, $eavSetup)\n {\n $attributes = $this->attrNames;\n if ($this->mageVersion < '2.2.5') {\n unset($attributes['dropship'], $attributes['dropship_location']);\n $count = 65;\n foreach ($attributes as $key => $attr) {\n $isExist = $this->eavConfig\n ->getAttribute('catalog_product', 'en_'.$attr.'')->getAttributeId();\n if ($isExist == null) {\n $this->getAttributeArray(\n $eavSetup,\n 'en_'.$attr,\n \\Magento\\Framework\\DB\\Ddl\\Table::TYPE_DECIMAL,\n ucfirst($attr),\n 'text',\n '',\n $count\n );\n }\n $count++;\n }\n }\n\n $isendropshipExist = $this->eavConfig->getAttribute('catalog_product', 'en_dropship')->getAttributeId();\n\n if ($isendropshipExist == null) {\n $this->getAttributeArray(\n $eavSetup,\n 'en_dropship',\n 'int',\n 'Enable Drop Ship',\n 'select',\n 'Magento\\Eav\\Model\\Entity\\Attribute\\Source\\Boolean',\n 71\n );\n }\n\n $isdropshiplocationExist = $this->eavConfig\n ->getAttribute('catalog_product', 'en_dropship_location')->getAttributeId();\n if ($isdropshiplocationExist == null) {\n $this->getAttributeArray(\n $eavSetup,\n 'en_dropship_location',\n 'int',\n 'Drop Ship Location',\n 'select',\n 'Eniture\\UPSSmallPackageQuotes\\Model\\Source\\DropshipOptions',\n 72\n );\n } else {\n $dataArr = [\n 'source_model' => 'Eniture\\UPSSmallPackageQuotes\\Model\\Source\\DropshipOptions',\n ];\n $this->connection\n ->update($this->tableNames['eav_attribute'], $dataArr, \"attribute_code = 'en_dropship_location'\");\n }\n\n $isHazmatExist = $this->eavConfig->getAttribute('catalog_product', 'en_hazmat')->getAttributeId();\n\n if ($isHazmatExist == null) {\n $this->getAttributeArray(\n $eavSetup,\n 'en_hazmat',\n 'int',\n 'Hazardous Material',\n 'select',\n 'Magento\\Eav\\Model\\Entity\\Attribute\\Source\\Boolean',\n 73\n );\n }\n\n $isInsurance = $this->eavConfig->getAttribute('catalog_product', 'en_insurance')->getAttributeId();\n\n if ($isInsurance == null) {\n $this->getAttributeArray(\n $eavSetup,\n 'en_insurance',\n 'int',\n 'Insure this item',\n 'select',\n 'Magento\\Eav\\Model\\Entity\\Attribute\\Source\\Boolean',\n 74\n );\n }\n $installer->endSetup();\n }", "function setSize($size)\n\t{\n\t\t$this->size = 0+$size;\n\t}", "public function sel_arr_image_draw_size_by_image_id($image_id)\n\t{\n\t\t$query_str = \"select \";\n\t\t$query_str .= \"\tm_draw_size.draw_size_id, \";\n\t\t$query_str .= \"\tm_draw_size.draw_size_name, \";\n\t\t$query_str .= \"\tm_draw_size.width, \";\n\t\t$query_str .= \"\tm_draw_size.height \";\n\t\t$query_str .= \"from \";\n\t\t$query_str .= \"\tm_draw_size \";\n\t\t$query_str .= \"where \";\n\t\t$query_str .= \"\texists( \";\n\t\t$query_str .= \"\t\tselect \";\n\t\t$query_str .= \"\t\t\t1 \";\n\t\t$query_str .= \"\t\tfrom \";\n\t\t$query_str .= \"\t\t\tt_image_draw_size_rela \";\n\t\t$query_str .= \"\t\tjoin \";\n\t\t$query_str .= \"\t\t\tm_image \";\n\t\t$query_str .= \"\t\ton \";\n\t\t$query_str .= \"\t\t\tt_image_draw_size_rela.image_id = m_image.image_id and \";\n\t\t$query_str .= \"\t\t\tm_image.image_id = :image_id and \";\n\t\tif(isset($this->client_id)){\n\t\t\t$query_str .= \"\t\t\tm_image.client_id = :client_id and \";\n\t\t}\n\t\t$query_str .= \"\t\t\tm_image.del_flag = 0 \";\n\t\t$query_str .= \"\t\twhere \";\n\t\t$query_str .= \"\t\t\tm_draw_size.draw_size_id = t_image_draw_size_rela.draw_size_id and \";\n\t\t$query_str .= \"\t\t\tt_image_draw_size_rela.del_flag = 0 \";\n\t\t$query_str .= \"\t) and \";\n\t\t$query_str .= \"\tm_draw_size.del_flag = 0 \";\n\t\t$query_str .= \"order by \";\n\t\t$query_str .= \"\tm_draw_size.draw_size_name, \";\n\t\t$query_str .= \"\tm_draw_size.draw_size_id desc \";\n\n\t\t$arr_bind_param = array();\n\t\t$arr_bind_param[\":image_id\"] = $image_id;\n\t\tif(isset($this->client_id)){\n\t\t\t$arr_bind_param[\":client_id\"] = $this->client_id;\n\t\t}\n\n\t\t$query = DB::query(Database::SELECT, $query_str);\n\t\t$query->parameters($arr_bind_param);\n\n\t\treturn $query->execute($this->db, true);\n\t}", "function quote($method = '') {\r\n\r\n\t\tglobal $order, $shipping_weight, $shipping_num_boxes, $transittime, $dispinsure, $packing;\r\n\r\n\t\tif ($this->dimensions_support > 0 && is_object($packing)) {\r\n\r\n\t\t\tif ($this->dimensions_support == 1) { // # only ready to ship items are set with dimensions\r\n\r\n\t\t\t\tfor ($i = 0; $i < sizeof($boxesToShip); $i++) {\r\n\t\t\t\t\tif ($boxesToShip[$i]['item_length'] == 0) { // size wasn't set\r\n\t\t\t\t\t\tif ($boxesToShip[$i]['item_weight'] > 60) { // use module estimated dimesions when size not set\r\n\t\t\t\t\t\t\tlist($length, $width, $height) = explode(', ', MODULE_SHIPPING_USPS_PKG_SIZE_OVER60);\r\n\t\t\t\t\t\t} elseif ($boxesToShip[$i]['item_weight'] > 50) {\r\n\t\t\t\t\t\t\tlist($length, $width, $height) = explode(', ', MODULE_SHIPPING_USPS_PKG_SIZE_OVER50);\r\n\t\t\t\t\t\t} elseif ($boxesToShip[$i]['item_weight'] > 40) {\r\n\t\t\t\t\t\t\tlist($length, $width, $height) = explode(', ', MODULE_SHIPPING_USPS_PKG_SIZE_OVER40);\r\n\t\t\t\t\t\t} elseif ($boxesToShip[$i]['item_weight'] > 30) {\r\n\t\t\t\t\t\t\tlist($length, $width, $height) = explode(', ', MODULE_SHIPPING_USPS_PKG_SIZE_OVER30);\r\n\t\t\t\t\t\t} elseif ($boxesToShip[$i]['item_weight'] > 20) {\r\n\t\t\t\t\t\t\tlist($length, $width, $height) = explode(', ', MODULE_SHIPPING_USPS_PKG_SIZE_OVER20);\r\n\t\t\t\t\t\t} elseif ($boxesToShip[$i]['item_weight'] > 10) {\r\n\t\t\t\t\t\t\tlist($length, $width, $height) = explode(', ', MODULE_SHIPPING_USPS_PKG_SIZE_OVER10);\r\n\t\t\t\t\t\t} elseif ($boxesToShip[$i]['item_weight'] > 5) {\r\n\t\t\t\t\t\t\tlist($length, $width, $height) = explode(', ', MODULE_SHIPPING_USPS_PKG_SIZE_OVER5);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tlist($length, $width, $height) = explode(', ', MODULE_SHIPPING_USPS_PKG_SIZE_LESS5);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t$boxesToShip[$i]['item_length'] = $length;\r\n\t\t\t\t\t\t$boxesToShip[$i]['item_width'] = $width;\r\n\t\t\t\t\t\t$boxesToShip[$i]['item_height'] = $height;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t$numBoxes = $packing->getNumberOfBoxes();\r\n\r\n\t\t\tif (SHIPPING_UNIT_LENGTH == 'CM') { // must convert centimeters to inches before getting quote\r\n\t\t\t\tfor ($i = 0; $i < sizeof($boxesToShip); $i++) {\r\n\t\t\t\t\t$boxesToShip[$i]['item_length'] *= 0.39370079;\r\n\t\t\t\t\t$boxesToShip[$i]['item_width'] *= 0.39370079;\r\n\t\t\t\t\t$boxesToShip[$i]['item_height'] *= 0.39370079;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} else { // # The old method. tell us how many boxes plus the box weight\r\n\r\n\t\t\tif ($shipping_weight > 60) { // these are defined in inches and don't need converting\r\n\t\t\t\tlist($length, $width, $height) = explode(', ', MODULE_SHIPPING_USPS_PKG_SIZE_OVER60);\r\n\t\t\t} elseif ($shipping_weight > 50) {\r\n\t\t\t\tlist($length, $width, $height) = explode(', ', MODULE_SHIPPING_USPS_PKG_SIZE_OVER50);\r\n\t\t\t} elseif ($shipping_weight > 40) {\r\n\t\t\t\tlist($length, $width, $height) = explode(', ', MODULE_SHIPPING_USPS_PKG_SIZE_OVER40);\r\n\t\t\t} elseif ($shipping_weight > 30) {\r\n\t\t\t\tlist($length, $width, $height) = explode(', ', MODULE_SHIPPING_USPS_PKG_SIZE_OVER30);\r\n\t\t\t} elseif ($shipping_weight > 20) {\r\n\t\t\t\tlist($length, $width, $height) = explode(', ', MODULE_SHIPPING_USPS_PKG_SIZE_OVER20);\r\n\t\t\t} elseif ($shipping_weight > 10) {\r\n\t\t\t\tlist($length, $width, $height) = explode(', ', MODULE_SHIPPING_USPS_PKG_SIZE_OVER10);\r\n\t\t\t} elseif ($shipping_weight > 5) {\r\n\t\t\t\tlist($length, $width, $height) = explode(', ', MODULE_SHIPPING_USPS_PKG_SIZE_OVER5);\r\n\t\t\t} else {\r\n\t\t\t\tlist($length, $width, $height) = explode(', ', MODULE_SHIPPING_USPS_PKG_SIZE_LESS5);\r\n\t\t\t}\r\n\r\n\t\t\t$package = array('item_weight' => $shipping_weight,\r\n\t\t\t\t'item_price' => round($order->info['subtotal'] / $shipping_num_boxes, 2),\r\n\t\t\t\t'item_length' => $length,\r\n\t\t\t\t'item_width' => $width,\r\n\t\t\t\t'item_height' => $height);\r\n\r\n\t\t\t$boxesToShip = array();\r\n\r\n\t\t\tfor ($i = 0; $i < $shipping_num_boxes; $i++) {\r\n\t\t\t\t$boxesToShip[] = $package;\r\n\t\t\t}\r\n\r\n\t\t\t$totalWeight = round($shipping_weight * $shipping_num_boxes, 2);\r\n\t\t\t$numBoxes = $shipping_num_boxes;\r\n\t\t}\r\n\t\tif (SHIPPING_UNIT_WEIGHT == 'KGS') { // # must convert kilograms to pounds before getting quote\r\n\t\t\tfor ($i = 0; $i < sizeof($boxesToShip); $i++) {\r\n\t\t\t\t$boxesToShip[$i]['item_weight'] *= 2.2046226;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif ($this->display_weight) {\r\n\t\t\t$shiptitle = sprintf(MODULE_SHIPPING_USPS_TEXT_WEIGHT_DISPLAY, $numBoxes, $totalWeight);\r\n\t\t} else {\r\n\t\t\t$shiptitle = '';\r\n\t\t}\r\n\t\t$this->dest_zip = str_replace(' ', '', $order->delivery['postcode']);\r\n\t\tif ($order->delivery['country']['id'] == SHIPPING_ORIGIN_COUNTRY) { // domestic quote\r\n\t\t\t$this->dest_zip = substr($this->dest_zip, 0, 5);\r\n\t\t\t$dmstcquotes = array();\r\n\t\t\tif( $this->display_transit ){\r\n\t\t\t\t$trnstime = $this->_getDmstcTransitTimes();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t$error = false;\r\n\t\t\tforeach ($boxesToShip as $package) {\r\n\t\t\t\t$pkgQuote = $this->_getDmstcQuote($package, $method);\r\n\t\t\t\tif (isset($pkgQuote['error'])) {\r\n\t\t\t\t\t$uspsQuote = $pkgQuote;\r\n\t\t\t\t\t$error = true;\r\n\t\t\t\t\tbreak; // stop if an error is returned\r\n\t\t\t\t}\r\n\t\t\t\tforeach ($pkgQuote as $quote) { // combine quotes for package with the quotes for other packages\r\n\t\t\t\t\tif (isset($dmstcquotes[$quote['id']])) { // already set for this mail type?\r\n\t\t\t\t\t\t$dmstcquotes[$quote['id']]['retailavail'] = ($dmstcquotes[$quote['id']]['retailavail'] && $quote['retailavail']);\r\n\t\t\t\t\t\t$dmstcquotes[$quote['id']]['onlineavail'] = ($dmstcquotes[$quote['id']]['onlineavail'] && $quote['onlineavail']);\r\n\t\t\t\t\t\t$dmstcquotes[$quote['id']]['retailrate'] += $quote['retailrate'];\r\n\t\t\t\t\t\t$dmstcquotes[$quote['id']]['onlinerate'] += $quote['onlinerate'];\r\n\t\t\t\t\t\t$dmstcquotes[$quote['id']]['retailinsval'] += $quote['retailinsval'];\r\n\t\t\t\t\t\t$dmstcquotes[$quote['id']]['onlineinsval'] += $quote['onlineinsval'];\r\n\t\t\t\t\t\t$dmstcquotes[$quote['id']]['count']++;\r\n\t\t\t\t\t} else { // create combined quote since it didn't exist\r\n\t\t\t\t\t\t$dmstcquotes[$quote['id']] = $quote;\r\n\t\t\t\t\t\t$dmstcquotes[$quote['id']]['count'] = 1;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (!$error) {\r\n\t\t\t\t$methods = array();\r\n\t\t\t\t$transtypes = array();\r\n\t\t\t\tforeach ($dmstcquotes as $quote) {\r\n\t\t\t\t\tif ($quote['count'] != $numBoxes) continue; // skip methods that don't work for all packages\r\n\t\t\t\t\tif( (MODULE_SHIPPING_USPS_DMSTC_RATE == 'Internet') && $quote['onlineavail'] ){\r\n\t\t\t\t\t\t$title = $quote['name']; //$this->types[$quote['id']];\r\n\t\t\t\t\t\tif ($this->display_insurance && ($quote['onlineinsval'] > 0)) $title .= '<br />---' . MODULE_SHIPPING_USPS_TEXT_INSURED . '$' . (ceil($quote['onlineinsval'] * 100) / 100);\r\n\t\t\t\t\t\tif ($this->display_confirmation && tep_not_null($quote['onlineconf'])) $title .= '<br />---' . $quote['onlineconf'];\r\n\t\t\t\t\t\tif ($this->display_transit && ($trnstime !== false)) {\r\n\t\t\t\t\t\t\t$time = '';\r\n\t\t\t\t\t\t\tif ((strpos($quote['id'], 'First') !== false) || (strpos($quote['id'], 'Priority') !== false)) {\r\n\t\t\t\t\t\t\t\t$time = $trnstime['priority'];\r\n\t\t\t\t\t\t\t} elseif (strpos($quote['id'], 'Express') !== false) {\r\n\t\t\t\t\t\t\t\t$time = $trnstime['express'];\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t$time = $trnstime['parcel'];\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tif( $time != '' ){\r\n\t\t\t\t\t\t\t\t$title .= '<br />' . $time;\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 (MODULE_SHIPPING_USPS_HANDLING_TYPE == 'Per Shipment') {\r\n\t\t\t\t\t\t\t$cost = $quote['onlinerate'] + $this->dmstc_handling[$quote['id']];\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t$cost = $quote['onlinerate'] + ($this->dmstc_handling[$quote['id']] * $numBoxes);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t$methods[] = array(\r\n\t\t\t\t\t\t\t'id' => $quote['id'],\r\n\t\t\t\t\t\t\t'title' => $title,\r\n\t\t\t\t\t\t\t'cost' => $cost\r\n\t\t\t\t\t\t);\r\n\t\t\t\t\t} elseif( $quote['retailavail'] ){\r\n\t\t\t\t\t\t$title = $quote['name']; //$this->types[$quote['id']];\r\n\t\t\t\t\t\tif ($this->display_insurance && ($quote['retailinsval'] > 0)) $title .= '<br />---' . MODULE_SHIPPING_USPS_TEXT_INSURED . '$' . (ceil($quote['retailinsval'] * 100) / 100);\r\n\t\t\t\t\t\tif ($this->display_confirmation && tep_not_null($quote['retailconf'])) $title .= '<br />---' . $quote['retailconf'];\r\n\t\t\t\t\t\tif ($this->display_transit && ($trnstime !== false)) {\r\n\t\t\t\t\t\t\t$time = '';\r\n\t\t\t\t\t\t\tif ((strpos($quote['id'], 'First') !== false) || (strpos($quote['id'], 'Priority') !== false)) {\r\n\t\t\t\t\t\t\t\t$time = $trnstime['priority'];\r\n\t\t\t\t\t\t\t} elseif (strpos($quote['id'], 'Express') !== false) {\r\n\t\t\t\t\t\t\t\t$time = $trnstime['express'];\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t$time = $trnstime['parcel'];\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tif( $time != '' ){\r\n\t\t\t\t\t\t\t\t$title .= '<br />' . $time;\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 (MODULE_SHIPPING_USPS_HANDLING_TYPE == 'Per Shipment') {\r\n\t\t\t\t\t\t\t$cost = $quote['retailrate'] + $this->dmstc_handling[$quote['id']];\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t$cost = $quote['retailrate'] + ($this->dmstc_handling[$quote['id']] * $numBoxes);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t$methods[] = array(\r\n\t\t\t\t\t\t\t'id' => $quote['id'],\r\n\t\t\t\t\t\t\t'title' => $title,\r\n\t\t\t\t\t\t\t'cost' => $cost\r\n\t\t\t\t\t\t);\r\n\t\t\t\t\t}\r\n\t\t\t\t} // end foreach $dmstcquotes\r\n\t\t\t\tif (empty($methods)) { // no quotes valid for all packages\r\n\t\t\t\t\t$uspsQuote = false;\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$uspsQuote = $methods;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif( sizeof($this->dmstc_type_change) > 0 ){\r\n\t\t\t\t$this->logTypeChange(array(\r\n\t\t\t\t\t'type' => 'Domestic',\r\n\t\t\t\t\t'changes' => $this->dmstc_type_change,\r\n\t\t\t\t));\r\n\t\t\t}\r\n\t\t} else { // # international quote\r\n\t\t\t$maxinsurance_query = tep_db_query(\"SELECT DISTINCT(max_insurance) FROM USPS_intl_maxins WHERE insurable AND country_code = '\" . tep_db_input($order->delivery['country']['iso_code_2']) . \"' ORDER BY max_insurance\");\r\n\t\t\t$this->intl_maxinsure = array();\r\n\r\n\t\t\twhile ($x = tep_db_fetch_array($maxinsurance_query)) {\r\n\t\t\t\t$this->intl_maxinsure[] = $x['max_insurance'];\r\n\t\t\t}\r\n\r\n\t\t\t$intlquotes = array();\r\n\t\t\tforeach ($boxesToShip as $package) {\r\n\t\t\t\t$pkgQuote = $this->_getIntlQuote($package, $method);\r\n\t\t\t\tif (isset($pkgQuote['error'])) {\r\n\t\t\t\t\t$uspsQuote = $pkgQuote;\r\n\t\t\t\t\t$error = true;\r\n\t\t\t\t\tbreak; // stop if an error is returned\r\n\t\t\t\t}\r\n\t\t\t\tforeach ($pkgQuote as $quote) { // combine quotes for package with the quotes for other packages\r\n\t\t\t\t\tif (isset($intlquotes[$quote['id']])) { // already set for this mail type?\r\n\t\t\t\t\t\t$intlquotes[$quote['id']]['retailavail'] = ($intlquotes[$quote['id']]['retailavail'] && $quote['retailavail']);\r\n\t\t\t\t\t\t$intlquotes[$quote['id']]['onlineavail'] = ($intlquotes[$quote['id']]['onlineavail'] && $quote['onlineavail']);\r\n\t\t\t\t\t\t$intlquotes[$quote['id']]['retailrate'] += $quote['retailrate'];\r\n\t\t\t\t\t\t$intlquotes[$quote['id']]['onlinerate'] += $quote['onlinerate'];\r\n\t\t\t\t\t\t$intlquotes[$quote['id']]['retailinsval'] += $quote['retailinsval'];\r\n\t\t\t\t\t\t$intlquotes[$quote['id']]['onlineinsval'] += $quote['onlineinsval'];\r\n\t\t\t\t\t\t$intlquotes[$quote['id']]['count']++;\r\n\t\t\t\t\t} else { // create combined quote since it didn't exist\r\n\t\t\t\t\t\t$intlquotes[$quote['id']] = $quote;\r\n\t\t\t\t\t\t$intlquotes[$quote['id']]['count'] = 1;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (!$error) {\r\n\t\t\t\t$methods = array();\r\n\t\t\t\t$transtypes = array();\r\n\t\t\t\tforeach ($intlquotes as $quote) {\r\n\t\t\t\t\tif ($quote['count'] != $numBoxes) continue; // skip methods that don't work for all packages\r\n\t\t\t\t\tif ((MODULE_SHIPPING_USPS_INTL_RATE == 'Internet') && $quote['onlineavail']) {\r\n\t\t\t\t\t\t$title = $quote['name'];\r\n\t\t\t\t\t\tif ($this->display_insurance && ($quote['onlineinsval'] > 0)) $title .= '<br />---' . MODULE_SHIPPING_USPS_TEXT_INSURED . '$' . (ceil($quote['onlineinsval'] * 100) / 100);\r\n\t\t\t\t\t\tif ($this->display_transit && tep_not_null($quote['transtime'])) {\r\n\t\t\t\t\t\t\t$title .= '<br />---' . MODULE_SHIPPING_USPS_TEXT_ESTIMATED . $quote['transtime'];\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (MODULE_SHIPPING_USPS_HANDLING_TYPE == 'Per Shipment') {\r\n\t\t\t\t\t\t\t$cost = $quote['onlinerate'] + $this->intl_handling[$quote['id']];\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t$cost = $quote['onlinerate'] + ($this->intl_handling[$quote['id']] * $numBoxes);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t$methods[] = array('id' => $quote['id'],\r\n\t\t\t\t\t\t\t'title' => $title,\r\n\t\t\t\t\t\t\t'cost' => $cost);\r\n\t\t\t\t\t} elseif ($quote['retailavail']) {\r\n\t\t\t\t\t\t$title = $quote['name'];\r\n\t\t\t\t\t\tif ($this->display_insurance && ($quote['retailinsval'] > 0)) $title .= '<br />---' . MODULE_SHIPPING_USPS_TEXT_INSURED . '$' . (ceil($quote['retailinsval'] * 100) / 100);\r\n\t\t\t\t\t\tif ($this->display_transit && tep_not_null($quote['transtime'])) {\r\n\t\t\t\t\t\t\t$title .= '<br />' . MODULE_SHIPPING_USPS_TEXT_ESTIMATED . $quote['transtime'];\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (MODULE_SHIPPING_USPS_HANDLING_TYPE == 'Per Shipment') {\r\n\t\t\t\t\t\t\t$cost = $quote['retailrate'] + $this->intl_handling[$quote['id']];\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t$cost = $quote['retailrate'] + ($this->intl_handling[$quote['id']] * $numBoxes);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t$methods[] = array('id' => $quote['id'],\r\n\t\t\t\t\t\t\t'title' => $title,\r\n\t\t\t\t\t\t\t'cost' => $cost);\r\n\t\t\t\t\t}\r\n\t\t\t\t} // end foreach $intlquotes\r\n\t\t\t\tif (empty($methods)) { // no quotes valid for all packages\r\n\t\t\t\t\t$uspsQuote = false;\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$uspsQuote = $methods;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// if there's been a change detected, log it..\r\n\t\t\tif( sizeof($this->intl_type_change) > 0 ){\r\n\t\t\t\t$this->logTypeChange(array(\r\n\t\t\t\t\t'type' => 'International',\r\n\t\t\t\t\t'changes' => $this->intl_type_change,\r\n\t\t\t\t));\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (is_array($uspsQuote)) {\r\n\t\t\tif (isset($uspsQuote['error'])) {\r\n\t\t\t\t$this->quotes = array('module' => $this->title . $shiptitle,\r\n\t\t\t\t\t'error' => $uspsQuote['error']);\r\n\t\t\t} else {\r\n\t\t\t\t$quotesort = array();\r\n\t\t\t\tforeach ($uspsQuote as $method) {\r\n\t\t\t\t\t$quotesort[$method['id']] = $method['cost'];\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif( $this->shipping_method_sort_direction == 'desc' ){\r\n\t\t\t\t\tarsort($quotesort); // sort methods by cost high to low\r\n\t\t\t\t} else {\r\n\t\t\t\t\tasort($quotesort);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t$methods = array();\r\n\t\t\t\tforeach ($quotesort as $key => $cost) {\r\n\t\t\t\t\tforeach ($uspsQuote as $method) {\r\n\t\t\t\t\t\tif ($method['id'] == $key) $methods[] = $method;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t$this->quotes = array('id' => $this->code,\r\n\t\t\t\t\t'module' => $this->title . $shiptitle,\r\n\t\t\t\t\t'methods' => $methods);\r\n\t\t\t\tif ($this->tax_class > 0) {\r\n\t\t\t\t\t$this->quotes['tax'] = tep_get_tax_rate($this->tax_class, $order->delivery['country']['id'], $order->delivery['zone_id']);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} else { // quotes was empty\r\n\t\t\t$this->quotes = array('module' => $this->title . $shiptitle,\r\n\t\t\t\t'error' => MODULE_SHIPPING_USPS_TEXT_ERROR);\r\n\t\t}\r\n\t\tif (tep_not_null($this->icon)) $this->quotes['icon'] = tep_image($this->icon, $this->title);\r\n\t\t\r\n// \t\tprint_r( $this->quotes );\r\n\t\t\r\n\t\treturn $this->quotes;\r\n\t}", "public function UpdateSize($size)\n\t\t{\n\t\t\t$tContext = new AppTransaction();\n\t\t\t$sizeDAL = new SizeDAL($this->_userinfo);\n\t\t\ttry\n\t\t\t{\n\t\t\t\t$tContext->BeginTransaction();\n\t\t\t\t$sizeDAL->UpdateSize($size, $tContext);\n\t\t\t\t$tContext->CommitTransaction();\n\t\t\t}\n\t\t\tcatch (Exception $ex)\n\t\t\t{\n\t\t\t\t$tContext->RollbackTransaction();\n\t\t\t\tthrow $ex;\n\t\t\t}\n\t\t}", "function new_loop_shop_per_page( $cols ) {\n // Return the number of products you wanna show per page.\n $cols = 18;\n return $cols;\n}", "public function update(Request $request, $id) {\n $product = Product::findOrFail($id);\n $input = $request->all();\n\n $product_id = $id;\n \n $price_size = new Price_size();\n $price_size['size'] = $request['size'];\n $price_size['quality'] = $request['quality'];\n $price_size['price'] = $request['price'];\n $price_size['quantity'] = $request['quantity'];\n $price_size['product_id'] = $product_id;\n $price_size->save();\n\n if ($file = $request->file('link_image')) {\n $year = date('Y');\n $month = date('m');\n $day = date('d');\n $sub_folder = $year . '/' . $month . '/' . $day . '/';\n $upload_url = 'images/' . $sub_folder;\n\n if (!File::exists(public_path() . '/' . $upload_url)) {\n File::makeDirectory(public_path() . '/' . $upload_url, 0777, true);\n }\n $name = time() . $file->getClientOriginalName();\n $file->move($upload_url, $name);\n\n $image = Image::create(['link_image' => $upload_url . $name,$product_id]);\n \n $price_sizes = Price_size::create(['size','quality','price','quantity', 'product_id'=>$id]);\n \n } else {\n \n }\n \n \n $product->update($input);\n return redirect('/admin/products');\n }", "public function testUpdatePackingPlanCustomFields()\n {\n }", "function es_populating_custom_product_columns( $column_name, $post_id ) {\n switch( $column_name ) {\n case 'member_price':\n\t\t$member_price = get_post_meta( $post_id, 'member_price', true );\n\t\tif( $member_price > 0 )\n\t\t\techo '<div id=\"member_price-' . $post_id . '\" data-price=\"' . $member_price . '\">' . wc_price( $member_price ) . '</div>';\n \n\t\tbreak;\n }\n}", "function wp_store_loop_columns() {\r\n\t\t\tif(get_theme_mod('wp_store_woocommerce_setting_product_rows') && get_theme_mod('wp_store_woocommerce_setting_product_rows')>0){\r\n\t\t\t\t$xr = get_theme_mod('wp_store_woocommerce_setting_product_rows');\r\n\t\t\t} else {\r\n\t\t\t\t$xr = 3;\r\n\t\t\t}\r\n\t\t\treturn intval($xr); \r\n\t\t}", "function new_loop_shop_per_page( $cols ) {\r\n // Return the number of products you wanna show per page.\r\n $cols = 12;\r\n\r\n return $cols;\r\n\r\n}", "function setSize($size) {\n\t\t$this->size = $size;\n\t}", "function new_loop_shop_per_page( $cols ) {\n // Return the number of products you wanna show per page.\n $cols = 12;\n return $cols;\n}", "public function setPaperType($paperType):self;", "function calc_size()\n\t{\n\t}", "public function getSizeInfo() {\n $sql = <<< EOF\n SELECT\n DB_NAME(db.database_id) DatabaseName,\n (CAST(mfrows.RowSize AS FLOAT)*8)/1024 RowSizeMB,\n (CAST(mflog.LogSize AS FLOAT)*8)/1024 LogSizeMB,\n (CAST(mfstream.StreamSize AS FLOAT)*8)/1024 StreamSizeMB,\n (CAST(mftext.TextIndexSize AS FLOAT)*8)/1024 TextIndexSizeMB\nFROM sys.databases db\n LEFT JOIN (SELECT database_id, SUM(size) RowSize FROM sys.master_files WHERE type = 0 GROUP BY database_id, type) mfrows ON mfrows.database_id = db.database_id\n LEFT JOIN (SELECT database_id, SUM(size) LogSize FROM sys.master_files WHERE type = 1 GROUP BY database_id, type) mflog ON mflog.database_id = db.database_id\n LEFT JOIN (SELECT database_id, SUM(size) StreamSize FROM sys.master_files WHERE type = 2 GROUP BY database_id, type) mfstream ON mfstream.database_id = db.database_id\n LEFT JOIN (SELECT database_id, SUM(size) TextIndexSize FROM sys.master_files WHERE type = 4 GROUP BY database_id, type) mftext ON mftext.database_id = db.database_id\n WHERE DB_NAME(db.database_id) = :database\nEOF;\n // Database is defaulted from active connection.\n $options = $this->connection->getConnectionOptions();\n $database = $options['database'];\n return $this->connection->query($sql, [':database' => $database])\n ->fetchObject();\n }", "public function sampleSize()\n {\n return $this->hasMany('App\\Models\\Article\\SampleSize', 'population_id');\n }", "protected function checkThumbSizeSettings()\n {\n\n if ($this->gc_size_albumlisting == \"\")\n {\n $this->gc_size_albumlisting = serialize(array(\"110\", \"110\", \"crop\"));\n }\n if ($this->gc_size_detailview == \"\")\n {\n $this->gc_size_detailview = serialize(array(\"110\", \"110\", \"crop\"));\n }\n }", "function uc_op_products_edit_table() {\n $table = array(\n '#type' => 'tapir_table',\n '#tree' => TRUE,\n '#attributes' => array('id' => 'order-edit-products', 'class' => array('order-pane-table')),\n );\n\n $table['#columns']['remove'] = array(\n 'cell' => t('Remove'),\n 'weight' => 0,\n );\n $table['#columns']['qty'] = array(\n 'cell' => theme('uc_qty_label'),\n 'weight' => 1,\n );\n $table['#columns']['title'] = array(\n 'cell' => t('Name'),\n 'weight' => 2,\n );\n $table['#columns']['model'] = array(\n 'cell' => t('SKU'),\n 'weight' => 3,\n );\n $table['#columns']['weight'] = array(\n 'cell' => t('Weight'),\n 'weight' => 4,\n );\n $table['#columns']['weight_units'] = array(\n 'cell' => t('Units'),\n 'weight' => 5,\n );\n $table['#columns']['cost'] = array(\n 'cell' => t('Cost'),\n 'weight' => 6,\n );\n $table['#columns']['price'] = array(\n 'cell' => t('Price'),\n 'weight' => 7,\n );\n\n $table['#columns']['vat_rate'] = array(\n 'cell' => t('VAT rate'),\n 'weight' => 8,\n );\n\n return $table;\n}", "public function SPPriceHistory()\n {\n // hasMany(RelatedModel, foreignKeyOnRelatedModel = sellerProduct_id, localKey = id)\n return $this->hasMany('App\\SPPriceHitory','sp_id','sp_id');\n }", "public function setSizeIdAttribute($input)\n {\n $this->attributes['size_id'] = $input ? $input : null;\n }", "function es_managing_custom_product_columns( $columns, $post_type ) {\n if ( $post_type == 'product' )\n $columns[ 'member_price' ] = 'Member Price';\n return $columns;\n}", "public function SparesServerSide()\n {\n $table = 'spares';\n\n // Table's primary key\n $primaryKey = 'spare_id';\n\n // Array of database columns which should be read and sent back to DataTables.\n // The `db` parameter represents the column name in the database, while the `dt`\n // parameter represents the DataTables column identifier. In this case simple\n // indexes\n $columns = array(\n array( 'db' => 'spare_id', 'dt' => 0 ),\n array( 'db' => 'spare_part_no', 'dt' => 1 ),\n array( 'db' => 'spare_hsn', 'dt' => 2 ),\n array( 'db' => 'spare_name', 'dt' => 3 ),\n array( 'db' => 'spare_size', 'dt' => 4 ),\n array( 'db' => 'spare_price', 'dt' => 5 ),\n array( 'db' => 'spare_quantity', 'dt' => 6 ),\n\t\t\tarray(\n\t\t\t\t'db' => 'spare_reorder_level',\n\t\t\t\t'dt' => 7,\n\t\t\t\t'formatter' => function( $d, $row ) {\n\t\t\t\t\tif($d == 'active')\n\t\t\t\t\t{\n\t\t\t\t\t\t$btn = \"btn btn-success btn-xs\";\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$btn = \"btn btn-danger btn-xs\";\n\t\t\t\t\t}\n\t\t\t\t\treturn '<button type=\"button\" id=\"btnstatus\" class=\"'.$btn.'\">'.$d.'</button>';\n\t\t\t\t}\n\t\t\t),\n array(\n 'db' => 'status',\n 'dt' => 8,\n 'formatter' => function( $d, $row ) {\n if($d == 'active')\n {\n $btn = \"btn btn-success btn-xs\";\n }\n else\n {\n $btn = \"btn btn-danger btn-xs\";\n }\n return '<button type=\"button\" id=\"btnstatus\" class=\"'.$btn.'\">'.$d.'</button>';\n }\n ),\n\n array(\n 'db' => 'status',\n 'dt' => 9,\n 'formatter' => function( $d, $row ) {\n return '<button type=\"button\" id=\"btnview\" class=\"btn btn-success btn-xs\" title=\"View\"><i class=\"fa fa-eye\" aria-hidden=\"true\"></i></button> &nbsp; \n <button type=\"button\" id=\"btnedit\" class=\"btn btn-primary btn-xs\" title=\"Edit\"><i class=\"fa fa-pencil-square-o\" aria-hidden=\"true\"></i></button>\n &nbsp; <button type=\"button\" id=\"btndelete\" class=\"btn btn-danger btn-xs\" title=\"Delete\"><i class=\"fa fa-trash-o\" aria-hidden=\"true\"></i></button>';\n }\n )\n );\n\n // SQL server connection information\n $sql_details = array(\n 'user' => $this->db->username,\n 'pass' => $this->db->password,\n 'db' => $this->db->database,\n 'host' => $this->db->hostname\n );\n\n\n /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\n * If you just want to use the basic configuration for DataTables with PHP\n * server-side, there is no need to edit below this line.\n */\n\n echo json_encode(\n SSP::simple( $_GET, $sql_details, $table, $primaryKey, $columns )\n );\n }", "public function convertSaleItemsData();", "public function create()\n {\n $sizes = collect([\n ['mm' => '0.80', 'sieve' => '+0000-000', 'carat' => '0.003'],\n ['mm' => '0.90', 'sieve' => '+000-00', 'carat' => '0.004'],\n ['mm' => '1.00', 'sieve' => '+00-0', 'carat' => '0.005'],\n ['mm' => '1.10', 'sieve' => '+0-1.0', 'carat' => '0.006'],\n ['mm' => '1.10', 'sieve' => '+1.0-1.5', 'carat' => '0.007'],\n ['mm' => '1.20', 'sieve' => '+1.5-2.0', 'carat' => '0.008'],\n ['mm' => '1.20', 'sieve' => '+2.0-2.5', 'carat' => '0.009'],\n ['mm' => '1.30', 'sieve' => '+2.5-3.0', 'carat' => '0.010'],\n ['mm' => '1.30', 'sieve' => '+3.0-3.5', 'carat' => '0.011'],\n ['mm' => '1.40', 'sieve' => '+3.5-4.0', 'carat' => '0.012'],\n ['mm' => '1.40', 'sieve' => '+4.0-4.5', 'carat' => '0.014'],\n ['mm' => '1.50', 'sieve' => '+4.5-5.0', 'carat' => '0.015'],\n ['mm' => '1.50', 'sieve' => '+5.0-5.5', 'carat' => '0.017'],\n ['mm' => '1.60', 'sieve' => '+5.5-6.0', 'carat' => '0.020'],\n ['mm' => '1.70', 'sieve' => '+6.0-6.5', 'carat' => '0.023'],\n ['mm' => '1.80', 'sieve' => '+6.5-7.0', 'carat' => '0.027'],\n ['mm' => '1.90', 'sieve' => ' +7.0-7.5', 'carat' => '0.030'],\n ['mm' => '2.00', 'sieve' => '+7.5-8.0', 'carat' => '0.035'],\n ['mm' => '2.10', 'sieve' => ' +8.0-8.5', 'carat' => '0.040'],\n ['mm' => '2.20', 'sieve' => '+8.5-9.0', 'carat' => '0.045'],\n ['mm' => '2.30', 'sieve' => ' +9.0-9.5', 'carat' => '0.053'],\n ['mm' => '2.40', 'sieve' => '+9.5-10.0', 'carat' => '0.060'],\n ['mm' => '2.50', 'sieve' => '+10.0-10.5', 'carat' => '0.070'],\n ['mm' => '2.60', 'sieve' => ' +10.5-11.0', 'carat' => '0.075'],\n ['mm' => '2.70', 'sieve' => '+11.0-11.5', 'carat' => '0.080'],\n ['mm' => '2.80', 'sieve' => '+11.5-12.0', 'carat' => '0.090'],\n ['mm' => '2.90', 'sieve' => ' +12.0-12.5', 'carat' => '0.100'],\n ['mm' => '3.00', 'sieve' => '+12.5-13.0', 'carat' => '0.110'],\n ['mm' => '3.10', 'sieve' => '+13.0-13.5', 'carat' => '0.120'],\n ['mm' => '3.20', 'sieve' => '+13.5-14.0', 'carat' => '0.135'],\n ['mm' => '3.30', 'sieve' => '+14.0-14.5', 'carat' => '0.150'],\n ['mm' => '3.40', 'sieve' => ' +14.5-15.0', 'carat' => '0.160'],\n ['mm' => '3.50', 'sieve' => '+15.0-15.5', 'carat' => '0.170'],\n ['mm' => '3.60', 'sieve' => '+15.5-16.0', 'carat' => '0.180'],\n ['mm' => '3.70', 'sieve' => ' +16.0-16.5', 'carat' => '0.190'],\n ['mm' => '3.80', 'sieve' => '+16.5-17.0', 'carat' => '0.210'],\n ['mm' => '3.90', 'sieve' => '+17.0-17.5', 'carat' => '0.230'],\n ['mm' => '4.00', 'sieve' => ' +17.5-18.0', 'carat' => '0.250'],\n ['mm' => '4.10', 'sieve' => '+18.0-18.5', 'carat' => '0.270'],\n ['mm' => '4.20', 'sieve' => '+18.5-19.0', 'carat' => '0.300'],\n ['mm' => '4.30', 'sieve' => ' +19.0-19.5', 'carat' => '0.320'],\n ['mm' => '4.40', 'sieve' => '+19.5-20.0', 'carat' => '0.340'],\n ]);\n\n // return $sizes;\n return view('sellers.create', compact('sizes'));\n }", "function setSize($size)\n {\n $this->size = $size;\n }", "protected function postUpPrSize(SizePriceCanvas $rpsizeModel, Request $request){\n\n $valid = Validator::make($request->all(), [\n\n 'up_pr_size_title' => 'required|max:55',\n 'up_pr_size_size' => 'required|max:5',\n 'up_pr_size_price' => 'required|max:5',\n 'up_pr_size_width' => 'required|max:10',\n 'up_pr_size_height' => 'required|max:10',\n\n ]);\n\n if($valid->fails())\n return redirect()->back()->with('errorsadmin', 'Incorrectly filleds!');\n\n $data['title'] = $request->input('up_pr_size_title');\n $data['size'] = $request->input('up_pr_size_size');\n $data['price'] = $request->input('up_pr_size_price');\n $data['width'] = $request->input('up_pr_size_width');\n $data['height'] = $request->input('up_pr_size_height');\n $data['id'] = $request->input('up_pr_size_id');\n\n $up = $rpsizeModel->upPrSize($data);\n\n if($up)\n return redirect()->back()->with('successadmin', 'Update Price and Size!');\n else\n return redirect()->back()->with('errorsadmin', 'Error!');\n\n }", "public function morph()\n {\n $this->morphTable('esta573', [\n 'columns' => [\n new Column(\n 'recnum',\n [\n 'type' => Column::TYPE_BIGINTEGER,\n 'notNull' => true,\n 'autoIncrement' => true,\n 'size' => 1,\n 'first' => true\n ]\n ),\n new Column(\n 'filial',\n [\n 'type' => Column::TYPE_DECIMAL,\n 'default' => \"0\",\n 'notNull' => true,\n 'size' => 2,\n 'after' => 'recnum'\n ]\n ),\n new Column(\n 'doc_tipo',\n [\n 'type' => Column::TYPE_VARCHAR,\n 'default' => \" \",\n 'notNull' => true,\n 'size' => 3,\n 'after' => 'filial'\n ]\n ),\n new Column(\n 'doc_filial',\n [\n 'type' => Column::TYPE_DECIMAL,\n 'default' => \"0\",\n 'notNull' => true,\n 'size' => 2,\n 'after' => 'doc_tipo'\n ]\n ),\n new Column(\n 'doc_serie',\n [\n 'type' => Column::TYPE_VARCHAR,\n 'default' => \" \",\n 'notNull' => true,\n 'size' => 3,\n 'after' => 'doc_filial'\n ]\n ),\n new Column(\n 'doc_num',\n [\n 'type' => Column::TYPE_DECIMAL,\n 'default' => \"0\",\n 'notNull' => true,\n 'size' => 10,\n 'after' => 'doc_serie'\n ]\n ),\n new Column(\n 'doc_num1',\n [\n 'type' => Column::TYPE_DECIMAL,\n 'default' => \"0\",\n 'notNull' => true,\n 'size' => 2,\n 'after' => 'doc_num'\n ]\n ),\n new Column(\n 'doc_emissao',\n [\n 'type' => Column::TYPE_DATE,\n 'default' => \"01/01/0001\",\n 'notNull' => true,\n 'size' => 1,\n 'after' => 'doc_num1'\n ]\n ),\n new Column(\n 'doc_forn_emp',\n [\n 'type' => Column::TYPE_DECIMAL,\n 'default' => \"0\",\n 'notNull' => true,\n 'size' => 2,\n 'after' => 'doc_emissao'\n ]\n ),\n new Column(\n 'doc_forn_cod',\n [\n 'type' => Column::TYPE_DECIMAL,\n 'default' => \"0\",\n 'notNull' => true,\n 'size' => 8,\n 'after' => 'doc_forn_emp'\n ]\n ),\n new Column(\n 'doc_codigo',\n [\n 'type' => Column::TYPE_VARCHAR,\n 'default' => \" \",\n 'notNull' => true,\n 'size' => 50,\n 'after' => 'doc_forn_cod'\n ]\n ),\n new Column(\n 'es',\n [\n 'type' => Column::TYPE_VARCHAR,\n 'default' => \" \",\n 'notNull' => true,\n 'size' => 1,\n 'after' => 'doc_codigo'\n ]\n ),\n new Column(\n 'log',\n [\n 'type' => Column::TYPE_VARCHAR,\n 'default' => \" \",\n 'notNull' => true,\n 'size' => 10,\n 'after' => 'es'\n ]\n ),\n new Column(\n 'log_data',\n [\n 'type' => Column::TYPE_DATE,\n 'default' => \"01/01/0001\",\n 'notNull' => true,\n 'size' => 1,\n 'after' => 'log'\n ]\n ),\n new Column(\n 'log_hora',\n [\n 'type' => Column::TYPE_DECIMAL,\n 'default' => \"0\",\n 'notNull' => true,\n 'size' => 4,\n 'scale' => 2,\n 'after' => 'log_data'\n ]\n )\n ],\n 'indexes' => [\n new Index('esta573_index00', ['recnum'], null),\n new Index('esta573_index01', ['filial', 'doc_codigo', 'doc_tipo'], null),\n new Index('esta573_index02', ['doc_serie', 'doc_num', 'doc_num1', 'filial', 'doc_tipo', 'doc_filial'], null),\n new Index('esta573_index03', ['doc_serie', 'filial', 'doc_tipo', 'doc_filial', 'doc_num', 'doc_emissao'], null),\n new Index('esta573_index04', ['filial', 'doc_tipo', 'doc_filial', 'doc_serie', 'doc_num', 'doc_num1', 'doc_forn_emp', 'doc_forn_cod'], null),\n new Index('esta573_index05', ['recnum', 'log_data'], null)\n ],\n ]\n );\n }", "function setOrderPaid($object) { \n /* you can itentify the item with $object->Item->ShopId */ \n}", "public function morph()\n {\n $this->morphTable('lispre06', [\n 'columns' => [\n new Column(\n 'recnum',\n [\n 'type' => Column::TYPE_BIGINTEGER,\n 'notNull' => true,\n 'autoIncrement' => true,\n 'size' => 1,\n 'first' => true\n ]\n ),\n new Column(\n 'id_numero',\n [\n 'type' => Column::TYPE_DECIMAL,\n 'default' => \"0\",\n 'notNull' => true,\n 'size' => 10,\n 'after' => 'recnum'\n ]\n ),\n new Column(\n 'uf',\n [\n 'type' => Column::TYPE_VARCHAR,\n 'default' => \" \",\n 'notNull' => true,\n 'size' => 2,\n 'after' => 'id_numero'\n ]\n ),\n new Column(\n 'desc01',\n [\n 'type' => Column::TYPE_DECIMAL,\n 'default' => \"0\",\n 'notNull' => true,\n 'size' => 8,\n 'scale' => 4,\n 'after' => 'uf'\n ]\n ),\n new Column(\n 'desc02',\n [\n 'type' => Column::TYPE_DECIMAL,\n 'default' => \"0\",\n 'notNull' => true,\n 'size' => 8,\n 'scale' => 4,\n 'after' => 'desc01'\n ]\n ),\n new Column(\n 'desc03',\n [\n 'type' => Column::TYPE_DECIMAL,\n 'default' => \"0\",\n 'notNull' => true,\n 'size' => 8,\n 'scale' => 4,\n 'after' => 'desc02'\n ]\n ),\n new Column(\n 'desc04',\n [\n 'type' => Column::TYPE_DECIMAL,\n 'default' => \"0\",\n 'notNull' => true,\n 'size' => 8,\n 'scale' => 4,\n 'after' => 'desc03'\n ]\n ),\n new Column(\n 'desc05',\n [\n 'type' => Column::TYPE_DECIMAL,\n 'default' => \"0\",\n 'notNull' => true,\n 'size' => 8,\n 'scale' => 4,\n 'after' => 'desc04'\n ]\n ),\n new Column(\n 'desc06',\n [\n 'type' => Column::TYPE_DECIMAL,\n 'default' => \"0\",\n 'notNull' => true,\n 'size' => 8,\n 'scale' => 4,\n 'after' => 'desc05'\n ]\n ),\n new Column(\n 'desc07',\n [\n 'type' => Column::TYPE_DECIMAL,\n 'default' => \"0\",\n 'notNull' => true,\n 'size' => 8,\n 'scale' => 4,\n 'after' => 'desc06'\n ]\n ),\n new Column(\n 'aum01',\n [\n 'type' => Column::TYPE_DECIMAL,\n 'default' => \"0\",\n 'notNull' => true,\n 'size' => 8,\n 'scale' => 4,\n 'after' => 'desc07'\n ]\n ),\n new Column(\n 'aum02',\n [\n 'type' => Column::TYPE_DECIMAL,\n 'default' => \"0\",\n 'notNull' => true,\n 'size' => 8,\n 'scale' => 4,\n 'after' => 'aum01'\n ]\n ),\n new Column(\n 'aum03',\n [\n 'type' => Column::TYPE_DECIMAL,\n 'default' => \"0\",\n 'notNull' => true,\n 'size' => 8,\n 'scale' => 4,\n 'after' => 'aum02'\n ]\n ),\n new Column(\n 'aum04',\n [\n 'type' => Column::TYPE_DECIMAL,\n 'default' => \"0\",\n 'notNull' => true,\n 'size' => 8,\n 'scale' => 4,\n 'after' => 'aum03'\n ]\n ),\n new Column(\n 'aum05',\n [\n 'type' => Column::TYPE_DECIMAL,\n 'default' => \"0\",\n 'notNull' => true,\n 'size' => 8,\n 'scale' => 4,\n 'after' => 'aum04'\n ]\n ),\n new Column(\n 'aum06',\n [\n 'type' => Column::TYPE_DECIMAL,\n 'default' => \"0\",\n 'notNull' => true,\n 'size' => 8,\n 'scale' => 4,\n 'after' => 'aum05'\n ]\n ),\n new Column(\n 'aum07',\n [\n 'type' => Column::TYPE_DECIMAL,\n 'default' => \"0\",\n 'notNull' => true,\n 'size' => 8,\n 'scale' => 4,\n 'after' => 'aum06'\n ]\n ),\n new Column(\n 'fator_promocao',\n [\n 'type' => Column::TYPE_DECIMAL,\n 'default' => \"0\",\n 'notNull' => true,\n 'size' => 6,\n 'scale' => 4,\n 'after' => 'aum07'\n ]\n ),\n new Column(\n 'id_reg',\n [\n 'type' => Column::TYPE_DECIMAL,\n 'default' => \"0\",\n 'notNull' => true,\n 'size' => 12,\n 'after' => 'fator_promocao'\n ]\n ),\n new Column(\n 'log',\n [\n 'type' => Column::TYPE_VARCHAR,\n 'default' => \" \",\n 'notNull' => true,\n 'size' => 15,\n 'after' => 'id_reg'\n ]\n ),\n new Column(\n 'log_data',\n [\n 'type' => Column::TYPE_DATE,\n 'default' => \"01/01/0001\",\n 'notNull' => true,\n 'size' => 1,\n 'after' => 'log'\n ]\n ),\n new Column(\n 'log_hora',\n [\n 'type' => Column::TYPE_DECIMAL,\n 'default' => \"0\",\n 'notNull' => true,\n 'size' => 4,\n 'scale' => 2,\n 'after' => 'log_data'\n ]\n ),\n new Column(\n 'log_aplic',\n [\n 'type' => Column::TYPE_VARCHAR,\n 'default' => \" \",\n 'notNull' => true,\n 'size' => 15,\n 'after' => 'log_hora'\n ]\n ),\n new Column(\n 'log_data_aplic',\n [\n 'type' => Column::TYPE_DATE,\n 'default' => \"01/01/0001\",\n 'notNull' => true,\n 'size' => 1,\n 'after' => 'log_aplic'\n ]\n ),\n new Column(\n 'log_hora_aplic',\n [\n 'type' => Column::TYPE_DECIMAL,\n 'default' => \"0\",\n 'notNull' => true,\n 'size' => 4,\n 'scale' => 2,\n 'after' => 'log_data_aplic'\n ]\n )\n ],\n 'indexes' => [\n new Index('lispre06_index00', ['recnum'], null),\n new Index('lispre06_index01', ['id_numero', 'uf'], null),\n new Index('lispre06_index02', ['recnum', 'log_data'], null),\n new Index('lispre06_index03', ['log_data_aplic', 'recnum'], null)\n ],\n ]\n );\n }" ]
[ "0.51098686", "0.502228", "0.5003987", "0.4963403", "0.48802125", "0.4799457", "0.4788982", "0.47494632", "0.46439052", "0.46099564", "0.4609778", "0.45606092", "0.4553706", "0.4541301", "0.45398748", "0.45381844", "0.45370486", "0.45236656", "0.452174", "0.45216554", "0.45176703", "0.45146084", "0.4507865", "0.44801688", "0.44583648", "0.44457185", "0.44441468", "0.44422576", "0.44262472", "0.4423217", "0.44227913", "0.4421085", "0.4420038", "0.44187492", "0.44055942", "0.43970022", "0.4395291", "0.43925232", "0.43919185", "0.43907654", "0.43870085", "0.43811598", "0.43699464", "0.4368731", "0.4368159", "0.4351888", "0.4348307", "0.43463844", "0.43418503", "0.4321129", "0.43189234", "0.43178615", "0.43122944", "0.43099186", "0.42950514", "0.42943844", "0.42910483", "0.42880547", "0.42813945", "0.42797148", "0.4278789", "0.42765087", "0.4269417", "0.42689034", "0.4256637", "0.42508134", "0.42498714", "0.42497823", "0.4249643", "0.42488408", "0.4245649", "0.42420834", "0.42373163", "0.4230104", "0.42278445", "0.42251724", "0.42224804", "0.42155465", "0.4213164", "0.4210604", "0.41993007", "0.4198796", "0.41968542", "0.4190378", "0.4187911", "0.4185042", "0.41786784", "0.4177952", "0.41745225", "0.41710436", "0.41585198", "0.41551524", "0.41533008", "0.41525128", "0.41509396", "0.41508025", "0.41449797", "0.41391435", "0.41390535", "0.4132465", "0.41313902" ]
0.0
-1
Register hooks and actions.
public function register() { add_action( 'wp_enqueue_scripts', [ $this, 'enqueue_scripts' ] ); add_action( 'wp_enqueue_scripts', [ $this, 'enqueue_styles' ] ); add_action( 'init', [ $this, 'init' ] ); add_action( 'admin_init', [ $this, 'admin_init' ] ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function hooks() {\n\t\t// Register rewrite tags.\n\t\tadd_action( 'wct_add_rewrite_tags', array( $this, 'add_rewrite_tags' ) );\n\n\t\t// Register the rewrite rules\n\t\tadd_action( 'wct_add_rewrite_rules', array( $this, 'add_rewrite_rules' ) );\n\n\t\t// Register the permastructs\n\t\tadd_action( 'wct_add_permastructs', array( $this, 'add_permastructs' ) );\n\t}", "public function register_hooks() {\n\t\tadd_action( 'admin_init', [ $this, 'admin_init' ] );\n\t}", "public function registerHooks()\n {\n add_action('wp_enqueue_scripts', [$this, 'load_scripts_n_styles']);\n add_action('after_setup_theme', [$this, 'add_theme_support']);\n add_action('widgets_init', [$this, 'tf_widgets_init']);\n add_action('after_setup_theme', [$this, 'register_menus']);\n\n if( function_exists('acf_add_options_page') ) {\n acf_add_options_page();\n }\n }", "public function register_hooks() {\n\t\t\\add_action( 'edited_term', array( $this, 'save_meta' ), PHP_INT_MAX, 3 );\n\t\t\\add_action( 'delete_term', array( $this, 'delete_meta' ), PHP_INT_MAX, 3 );\n\t}", "public function add_hooks()\n {\n }", "public function add_hooks()\n {\n }", "private function define_hooks() {\n\n\t\tadd_action( 'add_meta_boxes', array( $this, 'hook_add_meta_boxes' ), 10, 1 );\n\n\t\tadd_action( 'save_post', array( $this, 'hook_save_post' ), 10, 1 );\n\n\t\treturn;\n\t}", "public function registerHooks() {\n\t\t// Nothing to do here right now\n\t\t// Others might want to know about this and get a chance to do their own work (like messing with our's :) )\n\t\tdo_action( 'pixelgrade_portfolio_registered_hooks' );\n\t}", "public function define_hooks()\n\t{\n\t\t$base = new Base;\n\t\t$this->loader->add_action('init', $base, 'add_post_types');\n\t}", "private function hooks(): void {\n\t\t// Steps loader hooks.\n\n\t\tadd_filter(\n\t\t\t'learndash_breezy_localize_script_data',\n\t\t\t$this->container->callback( Steps\\Loader::class, 'add_scripts_data' )\n\t\t);\n\t\tadd_action(\n\t\t\t'wp_ajax_' . Steps\\Loader::$sub_steps_ajax_action_name,\n\t\t\t$this->container->callback( Steps\\Loader::class, 'handle_sub_steps_ajax_request' )\n\t\t);\n\t\tadd_action(\n\t\t\t'wp_ajax_nopriv_' . Steps\\Loader::$sub_steps_ajax_action_name,\n\t\t\t$this->container->callback( Steps\\Loader::class, 'handle_sub_steps_ajax_request' )\n\t\t);\n\t}", "public function hooks() {\n\t\tregister_activation_hook( __FILE__, array( $this, '_activate' ) );\n\t\tregister_deactivation_hook( __FILE__, array( $this, '_deactivate' ) );\n\n\t\tadd_action( 'init', array( $this, 'init' ) );\n\t}", "abstract public function register_hook_callbacks();", "protected function registerHooks() {\n\t\t$hooks = $this->elgg()->hooks;\n\t\t\n\t\t$hooks->registerHandler('action:validate', 'notifications/settings', __NAMESPACE__ . '\\Notifications::saveUserNotificationsSettings');\n\t\t$hooks->registerHandler('entity:url', 'object', __NAMESPACE__ . '\\Widgets::widgetTitleURL');\n\t\t$hooks->registerHandler('export:counters', 'elasticsearch', __NAMESPACE__ . '\\Elasticsearch::exportCounter');\n\t\t$hooks->registerHandler('group_tool_widgets', 'widget_manager', __NAMESPACE__ . '\\Widgets::groupToolBasedWidgets');\n\t\t$hooks->registerHandler('handlers', 'widgets', __NAMESPACE__ . '\\Widgets::registerHandlers');\n\t\t$hooks->registerHandler('prepare', 'notification:create:object:thewire', __NAMESPACE__ . '\\Notifications::prepareNotificationSubject', 600);\n\t\t$hooks->registerHandler('prepare', 'notification:create:object:thewire', __NAMESPACE__ . '\\Notifications::prepareReshareNotification', 700);\n\t\t$hooks->registerHandler('register', 'menu:entity', __NAMESPACE__ . '\\Menus::entityRegisterImprove', 501);\n\t\t$hooks->registerHandler('register', 'menu:social', __NAMESPACE__ . '\\Menus::entityRegisterReshare');\n\t\t$hooks->registerHandler('register', 'menu:entity', __NAMESPACE__ . '\\Menus::entityRegisterFeature');\n\t\t$hooks->registerHandler('register', 'menu:owner_block', __NAMESPACE__ . '\\Menus::ownerBlockRegister');\n\t\t$hooks->registerHandler('register', 'menu:page', __NAMESPACE__ . '\\Menus::pageRegister');\n\t\t$hooks->registerHandler('supported_types', 'entity_tools', __NAMESPACE__ . '\\Migrate::registerClass');\n\t}", "public function set_hooks()\n\t{\n\t\tadd_action('init', 'register_shortcodes');\n\t}", "public function hooks() {\n $service = new Service($this->license_base);\n add_action('admin_menu', array($this, 'register_license_page'));\n add_action('admin_enqueue_scripts', array($this, 'admin_scripts'), 10);\n // Validate service\n add_action('wp_ajax_validate_service', array($service, 'validate_service'), 10);\n }", "abstract protected function register_hook_callbacks();", "public function attach_hooks() {\n\t\t$this->define_hooks();\n\t}", "private function init_hooks() {\n\t\t\tadd_action( 'init', array( $this, 'init' ), 0 );\n\t\t}", "public static function register_hooks()\n\t{\n\t\tif (static::$hooks_registered) {\n\t\t\treturn;\n\t\t}\n\n\t\t// register all the scripts\n\t\tadd_action('wp_enqueue_scripts', [__CLASS__, '_wp_enqueue_scripts']);\n\n\t\t// add defer/async attributes if they are specified\n\t\tadd_filter('script_loader_tag', [__CLASS__, '_script_loader_tag'], 10, 2);\n\n\t\tadd_action('wp_footer', [__CLASS__, '_wp_footer'], static::$footer_scripts_priority);\n\n\t\tstatic::$hooks_registered = true;\n\t}", "function registerHooks()\n{\n add_action('after_setup_theme', 'setupTheme');\n add_action('rest_api_init', 'registerEndpoints');\n}", "public function register_hooks() {\n\t\t\\add_action( 'admin_action_duplicate_post_check_changes', [ $this, 'check_changes_action_handler' ] );\n\t}", "public function hook() {\n\t\t// the WPML API is not included by default\n\t\trequire_once ICL_PLUGIN_PATH . '/inc/wpml-api.php';\n\n\t\t$this->hook_actions();\n\t\t$this->hook_filters();\n\t}", "public function init_hooks() {\n\t}", "protected function setup_hooks(){\n add_action('add_meta_boxes', [$this, 'add_custom_meta_box']);\n add_action('save_post', [$this, 'save_post_meta_data']);\n }", "public function load_hooks() {\n\t\tadd_action( 'init', [ $this, 'updater' ] );\n\t\t$this->load_settings();\n\t}", "public function attach_hooks() {\n\n\t\t$this->define_hooks();\n\n\t}", "public function initialize_hooks() {\n\t\t\n add_action( 'add_meta_boxes', array( $this, 'add_meta_box' ) );\n\t\tadd_action( 'save_post', array( $this, 'save_post' ) );\n\t\t\n\t}", "public function register_hooks() {\n\t\t// This would only happen if a theme supports BOTH site-logo and custom-logo for some reason\n\t\tif ( current_theme_supports( 'custom-logo' ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\tadd_action( 'wp_head', array( $this, 'head_text_styles' ) );\n\t\tadd_action( 'customize_register', array( $this, 'customize_register' ) );\n\t\tadd_action( 'customize_preview_init', array( $this, 'preview_enqueue' ) );\n\t\tadd_action( 'delete_attachment', array( $this, 'reset_on_attachment_delete' ) );\n\t\tadd_filter( 'body_class', array( $this, 'body_classes' ) );\n\t\tadd_filter( 'image_size_names_choose', array( $this, 'media_manager_image_sizes' ) );\n\t\tadd_filter( 'display_media_states', array( $this, 'add_media_state' ) );\n\t}", "private function add_hooks(){\n\t\n\t\tadd_action( 'plugin_action_links_' . UCLACOMPONENTSWP_PLUGIN_BASE, array( $this, 'add_plugin_action_link' ), 20 );\n\t\tadd_action( 'admin_enqueue_scripts', array( $this, 'enqueue_backend_scripts_and_styles' ), 20 );\n\t\tadd_action( 'wp_enqueue_scripts', array( $this, 'enqueue_public_scripts_and_styles' ), 20 );\n\t\n\t}", "public function hooks()\n {\n foreach ($this->getActions() as $key => $action) {\n switch (true) {\n case $action instanceof HooksAdminInterface:\n if (is_admin()) {\n $action->hooks();\n }\n break;\n case $action instanceof HooksFrontInterface:\n if (!is_admin()) {\n $action->hooks();\n }\n break;\n case $action instanceof HooksInterface:\n $action->hooks();\n break;\n }\n }\n }", "private function init_hooks() {\n\t\t\tadd_action( 'init', array( $this, 'init' ), 0 );\n\t\t\tregister_activation_hook( __FILE__, array( $this, 'activate' ) );\n\n\t\t\t// Plugin update notifications\n\t\t\tadd_action( 'admin_init', array( $this, 'plugin_update' ) );\n\t\t}", "public function hooks() {\n\t\tadd_action( 'add_meta_boxes', [ $this, 'add_boxes' ] );\n\t\tadd_action( 'save_post', [ $this, 'save' ] );\n\n\t\tforeach ( $this->taxonomy_allowed as $taxonomy ) {\n\t\t\tadd_action( \"{$taxonomy}_edit_form_fields\", [ $this, 'display_taxonomy_boxes' ], 99 );\n\t\t\tadd_action( \"edited_{$taxonomy}\", [ $this, 'save_taxonomy' ] );\n\t\t}\n\t}", "public function register(\\WpOrg\\Requests\\Hooks $hooks)\n {\n }", "public function register(\\WpOrg\\Requests\\Hooks $hooks)\n {\n }", "public function set_hooks() {\n\t\tadd_action( 'init', array( $this, 'manage_linked_taxonomy_caps' ), 50 );\n\t\tadd_filter( 'tmsc_register_taxonomy_object_types', array( $this, 'register_linked_taxonomies' ), 20, 2 );\n\n\n\t\tif ( is_admin() || defined( 'DOING_CRON' ) || ( defined( 'WP_CLI' ) && WP_CLI ) ) {\n\t\t\t// Save our linked taxonomies when a post is created/edited.\n\t\t\tforeach ( $this->linked_types as $post_type => $tax ) {\n\t\t\t\t// Our link save post logic\n\t\t\t\tadd_action( \"save_post_{$post_type}\", array( $this, 'save_linked_taxonomy' ), 20,3 );\n\t\t\t}\n\t\t}\n\n\t\t// Ensure we delete the term data when we delete a post.\n\t\tadd_action( 'before_delete_post', array( $this, 'delete_linked_taxonomy' ) );\n\t\tadd_action( 'before_delete_post', array( $this, 'delete_child_posts' ) );\n\t}", "public function setup_hooks() {\n\t\t$taxonomies = get_taxonomies( array( 'show_ui' => true ) );\n\t\t$global = $this;\n\t\tarray_map(\n\t\t\tfunction ( $taxonomy ) use ( $global ) {\n\t\t\t\tadd_action( $taxonomy . '_add_form_fields', array( $global, 'add_taxonomy_fields' ) );\n\t\t\t\tadd_action( $taxonomy . '_edit_form_fields', array( $global, 'edit_taxonomy_fields' ) );\n\t\t\t\tadd_action( 'create_' . $taxonomy, array( $global, 'save_taxonomy_custom_meta' ) );\n\t\t\t\tadd_action( 'edited_' . $taxonomy, array( $global, 'save_taxonomy_custom_meta' ) );\n\t\t\t},\n\t\t\t$taxonomies\n\t\t);\n\n\t\t// Add ordering metaboxes.\n\t\tadd_action( 'add_meta_boxes', array( $this, 'taxonomy_ordering' ), 10, 2 );\n\t\tadd_action( 'save_post', array( $this, 'save_taxonomy_ordering' ), 10, 4 );\n\t}", "public function register_actions() {\n\t\t}", "private function init_hooks() {\n\n register_activation_hook( __FILE__, array( 'IWJ_Install', 'install' ) );\n register_deactivation_hook( __FILE__, array('IWJ_Install', 'deactive') );\n\n add_action('plugins_loaded', array('IWJ_Install', 'update'));\n add_action('wp_loaded', array('IWJ_Install', 'update2'));\n\n add_action( 'wpmu_new_blog', array( 'IWJ_Install', 'new_blog' ), 10, 6 );\n add_action( 'delete_blog', array( 'IWJ_Install', 'delete_blog' ), 10, 2 );\n\n add_action( 'after_setup_theme', array( $this, 'setup_environment' ) );\n add_action( 'init', array( $this, 'init' ), 0 );\n\n add_action('wp_logout', array($this, 'end_session'));\n add_action('wp_login', array($this, 'end_session'));\n\n //add_action('activated_plugin',array($this, 'active_plugin_error'));\n }", "public function init_hooks()\n {\n register_activation_hook(__FILE__, array($this, 'run_install'));\n register_deactivation_hook(__FILE__, array($this, 'run_uninstall'));\n }", "public function register_hooks() {\n\t\tadd_action( 'admin_init', [ $this, 'intercept_save_update_notification' ] );\n\t}", "protected function defineActivationHooks(): void {\n\t\t$backend = $this->getBackend();\n\t\t$pluginName = $this->getFilename();\n\t\t$handlers = [\"activate\", \"deactivate\", \"uninstall\"];\n\t\tforeach ($handlers as $handler) {\n\t\t\t\n\t\t\t// for each of our handlers, we hook an action handler to our\n\t\t\t// backend component. the purpose of the BackendInterface is\n\t\t\t// to guarantee that we have three methods, one for each of\n\t\t\t// these hooks.\n\t\t\t\n\t\t\t$hook = $handler . \"_\" . $pluginName;\n\t\t\t$this->loader->addAction($hook, $backend, $handler);\n\t\t}\n\t}", "public function hook()\n {\n \\add_action(\n $this->tag,\n $this->callback,\n $this->priority,\n $this->acceptedParams\n );\n }", "public function register() {\n\t\tadd_action( 'plugins_loaded', [ $this, 'register_services' ] );\n\t\tadd_action( 'init', [ $this, 'register_assets_handler' ] );\n\t}", "public function register() {\n\t\tparent::register();\n\t\tadd_action( 'load-theme-editor.php', array( $this, 'get_edition_data' ) );\n\t\tadd_action( 'load-plugin-editor.php', array( $this, 'get_edition_data' ) );\n\t\tadd_filter( 'wp_redirect', array( $this, 'log_changes' ) );\n\t}", "private function define_admin_hooks()\n {\n $this->loader->add_action('init',$this,'load_options');\n $this->loader->add_action('plugins_loaded','WordPress_Reactro_Admin', 'load_framework');\n }", "private function hooks() {\n\t\t\t// check for EDD when plugin is activated\n\t\t\tadd_action( 'admin_init', array( $this, 'activation' ), 1 );\n\t\t\t\n\t\t\t// plugin meta\n\t\t\tadd_filter( 'plugin_row_meta', array( $this, 'plugin_meta' ), null, 2 );\n\n\t\t\t// settings link on plugin page\n\t\t\tadd_filter( 'plugin_action_links_' . $this->basename, array( $this, 'settings_link' ), 10, 2 );\n\t\t\t\n\t\t\t// insert actions\n\t\t\tdo_action( 'edd_sd_setup_actions' );\n\t\t}", "public static function boot()\n {\n $hooks = config('hooks');\n $actions = $hooks['actions'];\n $filters = $hooks['filters'];\n\n foreach ($actions as $action) {\n add_action($action[0], $action[1]);\n }\n\n foreach ($filters as $event => $callback) {\n add_filter($event, $callback);\n }\n }", "function init_hooks() {\n\tregister_activation_hook( __FILE__, __NAMESPACE__ . '\\activate_plugin' );\n\tregister_deactivation_hook( __FILE__, __NAMESPACE__ . '\\deactivate_plugin' );\n\tregister_uninstall_hook( __FILE__, __NAMESPACE__ . '\\uninstall_plugin' );\n}", "public function boot() {\n\n\t\tadd_action( 'init', array( $this, 'hook_init' ) );\n\n\t}", "private function setup_actions() {\n\n\t\t\t// Register managers, sections, settings, and controls.\n\t\t\tadd_action( 'butterbean_register', array( $this, 'register' ), 10, 2 );\n\t\t}", "public function init_hooks() {\n\t\tadd_action( 'vc_after_mapping', array( $this, 'vc_after_mapping' ) );\n\t}", "private function setup_hooks() {\n\t\tadd_action( 'bp_register_admin_settings', array( $this, 'register_settings' ) );\n\t}", "public function register_hooks() {\n\t\tadd_action( 'enqueue_block_editor_assets', array( $this, 'enqueue_block_editor_assets' ) );\n\t\tadd_filter( 'block_categories', array( $this, 'add_block_category' ) );\n\n\t\t$block_integrations = array(\n\t\t\tnew WPSEO_How_To_Block(),\n\t\t\tnew WPSEO_FAQ_Block(),\n\t\t);\n\n\t\tforeach ( $block_integrations as $block_integration ) {\n\t\t\t$block_integration->register_hooks();\n\t\t}\n\t}", "private function init_hooks() {\n\t\t\tadd_action( 'after_setup_theme', array( $this, 'include_template_functions' ), 11 );\n\t\t\tadd_action( 'init', array( $this, 'init' ), 0 );\n\t\t\tregister_activation_hook( __FILE__, array( $this, 'activate' ) );\n\t\t}", "public function add_hooks() {\n\n\t\t// Add action hooks\n\t\t$this->add_actions();\n\n\t\t// Add filter hooks\n\t\t$this->add_filters();\n\n\t\treturn null;\n\n\t}", "function registerHooks(): void\n{\n\tregister_activation_hook( __FILE__, __NAMESPACE__ . '\\\\flushRewriteRules' );\n\tregister_deactivation_hook( __FILE__, __NAMESPACE__ . '\\\\flushRewriteRules' );\n\tregister_uninstall_hook( __FILE__, __NAMESPACE__ . '\\\\flushRewriteRules' );\n}", "private function hooks() {\n\n\t\t\t// plugin meta\n\t\t\tadd_filter( 'plugin_row_meta', array( $this, 'plugin_meta' ), null, 2 );\n\n\t\t\t// Add template folder\n\t\t\tadd_filter( 'affwp_template_paths', array( $this, 'template' ) );\n\n\t\t}", "public function register_actions() {\n\t\tadd_action( 'wp_enqueue_scripts', array( $this, 'register_jquery' ) );\n\t\tadd_action( 'wp_enqueue_scripts', array( $this, 'register_public_scripts' ) );\n\t\tadd_action( 'admin_enqueue_scripts', array( $this, 'register_admin_scripts' ) );\n\t\tadd_action( 'login_enqueue_scripts', array( $this, 'register_login_scripts' ) );\n\t\tadd_action( 'wp_head', array( $this, 'header_scripts' ) );\n\t\tadd_action( 'wp_after_body', array( $this, 'body_scripts' ) );\n\t}", "public function load_hooks() {\n\t\tadd_action( 'admin_init', [ $this, 'addons_page_init' ] );\n\n\t\t$this->add_settings_tabs();\n\t}", "public function register_hooks() {\n\t\tif ( $this->page_helper->get_current_yoast_seo_page() === 'wpseo_dashboard' ) {\n\t\t\t\\add_action( 'admin_init', [ $this, 'maybe_cleanup_notification' ] );\n\t\t}\n\n\t\tif ( $this->indexing_helper->has_reason() ) {\n\t\t\t\\add_action( 'admin_init', [ $this, 'maybe_create_notification' ] );\n\t\t}\n\n\t\t\\add_action( self::NOTIFICATION_ID, [ $this, 'maybe_create_notification' ] );\n\t}", "private function hooks() {\n\n\t\t\t/** Actions *******************************************************************/\n\n\t\t\t// Build the submenus.\n\t\t\tadd_action( 'admin_menu', array( $this, 'admin_menus' ), 10 );\n\n\t\t\t// Loading the talks edit screen\n\t\t\tadd_action( 'load-edit.php', array( $this, 'load_edit_talk' ) );\n\n\t\t\t// Make sure Editing a plugin's taxonomy highlights the plugin's nav\n\t\t\tadd_action( 'load-edit-tags.php', array( $this, 'taxonomy_highlight' ) );\n\n\t\t\t// Add metaboxes for the post type\n\t\t\tadd_action( \"add_meta_boxes_{$this->post_type}\", array( $this, 'add_metaboxes' ), 10, 1 );\n\t\t\t// Save metabox inputs\n\t\t\tadd_action( \"save_post_{$this->post_type}\", array( $this, 'save_metaboxes' ), 10, 3 );\n\n\t\t\t// Display upgrade notices\n\t\t\tadd_action( 'admin_notices', array( $this, 'admin_notices' ) );\n\n\t\t\t// Register the settings\n\t\t\tadd_action( 'admin_init', array( $this, 'register_admin_settings' ) );\n\n\t\t\tadd_action( 'load-settings_page_wc_talks', array( $this, 'settings_load' ) );\n\n\t\t\t// Talks columns (in post row)\n\t\t\tadd_action( \"manage_{$this->post_type}_posts_custom_column\", array( $this, 'column_data' ), 10, 2 );\n\n\t\t\t// Maybe neutralize quick edit\n\t\t\tadd_action( 'post_row_actions', array( $this, 'talk_row_actions' ), 10, 2 );\n\n\t\t\t// Do some global stuff here (custom css rule)\n\t\t\tadd_action( 'admin_head', array( $this, 'admin_head' ), 10 );\n\n\t\t\t/** Filters *******************************************************************/\n\n\t\t\t// Updated message\n\t\t\tadd_filter( 'post_updated_messages', array( $this, 'talks_updated_messages' ), 10, 1 );\n\t\t\tadd_filter( 'bulk_post_updated_messages', array( $this, 'talks_updated_bulk_messages' ), 10, 2 );\n\n\t\t\t// Redirect\n\t\t\tadd_filter( 'redirect_post_location', array( $this, 'redirect_talk_location' ), 10, 2 );\n\n\t\t\t// Filter the WP_List_Table views to include custom views.\n\t\t\tadd_filter( \"views_edit-{$this->post_type}\", array( $this, 'talk_views' ), 10, 1 );\n\n\t\t\t// temporarly remove bulk edit\n\t\t\tadd_filter( \"bulk_actions-edit-{$this->post_type}\", array( $this, 'talk_bulk_actions' ), 10, 1 );\n\n\t\t\t// Talks column headers.\n\t\t\tadd_filter( \"manage_{$this->post_type}_posts_columns\", array( $this, 'column_headers' ) );\n\n\t\t\t// Add a link to About & settings page in plugins list\n\t\t\tadd_filter( 'plugin_action_links', array( $this, 'modify_plugin_action_links' ), 10, 2 );\n\n\t\t\t/** Specific case: ratings ****************************************************/\n\n\t\t\t// Only sort by rates & display people who voted if ratings is not disabled.\n\t\t\tif ( ! wct_is_rating_disabled() ) {\n\t\t\t\tadd_action( \"manage_edit-{$this->post_type}_sortable_columns\", array( $this, 'sortable_columns' ), 10, 1 );\n\n\t\t\t\t// Manage votes\n\t\t\t\tadd_filter( 'wct_admin_get_meta_boxes', array( $this, 'ratings_metabox' ), 9, 1 );\n\t\t\t\tadd_action( 'load-post.php', array( $this, 'maybe_delete_rate' ) );\n\n\t\t\t\t// Custom feedback\n\t\t\t\tadd_filter( 'wct_admin_updated_messages', array( $this, 'ratings_updated' ), 10, 1 );\n\n\t\t\t\t// Help tabs\n\t\t\t\tadd_filter( 'wct_get_help_tabs', array( $this, 'rates_help_tabs' ), 11, 1 );\n\t\t\t}\n\t\t}", "private function run_actions() {\n\t\tadd_action( 'admin_menu', [ $this, 'register' ] );\n\t\tadd_action( 'admin_enqueue_scripts', [ $this, 'enqueue' ] );\n\t\tadd_action( 'init', array( $this, 'register_settings' ) );\n\t}", "private function hooks() {\n\t\t$this->include_tabs();\n\t\t$this->include_tabs_server();\n\n\t\t// Enable the REST API if the settings allow for it.\n\t\tif ( true === (bool) wpcd_get_early_option( 'wordpress_app_rest_api_enable' ) ) {\n\t\t\t$this->include_rest_api();\n\t\t}\n\n\t\t// Make sure WordPress loads up our css and js scripts.\n\t\tadd_action( 'admin_enqueue_scripts', array( $this, 'wpapp_enqueue_scripts' ), 10, 1 );\n\n\t\t// Show any admin notices related to upgrades.\n\t\tadd_action( 'admin_notices', array( $this, 'wpapp_upgrades_admin_notice' ) );\n\n\t\t// Actions send from the front-end when installing servers and sites.\n\t\tadd_action( \"wpcd_server_{$this->get_app_name()}_action\", array( &$this, 'do_instance_action' ), 10, 3 );\n\t\tadd_action( \"wpcd_app_{$this->get_app_name()}_action\", array( &$this, 'do_app_action' ), 10, 3 );\n\n\t\tadd_filter( \"wpcd_command_{$this->get_app_name()}_logs_done\", array( &$this, 'get_logs_done' ), 10, 4 );\n\t\tadd_filter( \"wpcd_command_{$this->get_app_name()}_logs_intermed\", array( &$this, 'get_logs_intermed' ), 10, 4 );\n\t\tadd_action( \"wpcd_command_{$this->get_app_name()}_completed\", array( &$this, 'command_completed' ), 10, 2 );\n\t\tadd_filter( 'wpcd_server_script_args', array( $this, 'add_script_args_server' ), 10, 2 );\n\t\tadd_filter( 'wpcd_app_script_args', array( $this, 'add_script_args_app' ), 10, 2 );\n\t\tadd_filter( 'wpcd_actions', array( $this, 'add_post_actions' ), 10, 2 );\n\t\tadd_filter( \"wpcd_script_placeholders_{$this->get_app_name()}\", array( $this, 'script_placeholders' ), 10, 6 );\n\t\tadd_filter( 'wpcd_app_server_admin_list_local_status_column', array( &$this, 'app_server_admin_list_local_status_column' ), 10, 2 ); // Show the server status.\n\t\tadd_filter( 'wpcd_app_server_admin_list_local_status_column', array( &$this, 'app_server_admin_list_upgrade_status' ), 11, 2 ); // Show the upgrade status in the local status column - function located in trait file upgrade.php.\n\t\tadd_filter( 'wpcd_app_admin_list_summary_column', array( &$this, 'app_admin_list_upgrade_status' ), 11, 2 ); // Show the upgrade status in the TITLE column of the app list - function located in trait file upgrade.php.\n\n\t\t// Push commands and callbacks from servers.\n\t\tadd_action( \"wpcd_{$this->get_app_name()}_command_server_status_completed\", array( &$this, 'push_command_server_status_completed' ), 10, 4 ); // When a server sends us it's daily status report, part 1 - see bash script #24.\n\t\tadd_action( \"wpcd_{$this->get_app_name()}_command_sites_status_completed\", array( &$this, 'push_command_sites_status_completed' ), 10, 4 ); // When a server sends us it's daily status report, part 2 - see bash script #24.\n\t\tadd_action( \"wpcd_{$this->get_app_name()}_command_maldet_scan_completed\", array( &$this, 'push_command_maldet_scan_completed' ), 10, 4 ); // When a server sends us a report of maldet scan results - see bash script #26.\n\t\tadd_action( \"wpcd_{$this->get_app_name()}_command_server_restart_completed\", array( &$this, 'push_command_server_restart_completed' ), 10, 4 ); // When a server sends us a report of restart or shutdown.\n\t\tadd_action( \"wpcd_{$this->get_app_name()}_command_monit_log_completed\", array( &$this, 'push_command_monit_log_completed' ), 10, 4 ); // When a server sends us a monit alert or report.\n\t\tadd_action( \"wpcd_{$this->get_app_name()}_command_start_domain_backup_completed\", array( &$this, 'push_command_domain_backup_v1_started' ), 10, 4 ); // When a server sends us a notification telling us a scheduled backup was started for a domain.\n\t\tadd_action( \"wpcd_{$this->get_app_name()}_command_end_domain_backup_completed\", array( &$this, 'push_command_domain_backup_v1_completed' ), 10, 4 ); // When a server sends us a notification telling us a scheduled backup was completed for a domain.\n\t\tadd_action( \"wpcd_{$this->get_app_name()}_command_server_config_backup_completed\", array( &$this, 'push_command_server_config_backup' ), 10, 4 ); // When a server sends us a notification telling us a backup of the server configuration has started or ended.\n\t\tadd_action( \"wpcd_{$this->get_app_name()}_command_test_rest_api_completed\", array( &$this, 'push_command_test_rest_api_completed' ), 10, 4 ); // When a server sends us a test notification (initiated from the TOOLS tab on a server screen).\n\n\t\t// Push commands and callbacks from sites.\n\t\tadd_action( \"wpcd_{$this->get_app_name()}_command_schedule_site_sync_completed\", array( &$this, 'push_command_schedule_site_sync' ), 10, 4 ); // When a scheduled site sync has started or ended.\n\n\t\t// After server prepare action hooks.\n\t\t$this->wpcd_after_server_prepare_action_hooks();\n\n\t\t// When we're querying to find out the status of a server.\n\t\tadd_filter( 'wpcd_is_server_available_for_commands', array( &$this, 'wpcd_is_server_available_for_commands' ), 10, 2 );\n\n\t\t// When an app cleanup script is being run.\n\t\tadd_action( 'wpcd_cleanup_app_after', array( $this, 'wpcd_cleanup_app_after' ), 10, 1 );\n\n\t\t// When a server cleanup script is being run.\n\t\tadd_action( 'wpcd_cleanup_server_after', array( $this, 'wpcd_cleanup_server_after' ), 10, 1 );\n\n\t\t// When WP has been installed, add temp domain to DNS if configured.\n\t\tadd_action( 'wpcd_command_wordpress-app_completed_after_cleanup', array( $this, 'wpcd_wpapp_install_complete' ), 10, 4 );\n\n\t\t// Ajax Hooks.\n\t\tadd_action( \"wp_ajax_wpcd_{$this->get_app_name()}\", array( &$this, 'ajax_server' ) ); // For ajax calls dealing with servers in wp-admin.\n\t\tadd_action( \"wp_ajax_wpcd_app_{$this->get_app_name()}\", array( &$this, 'ajax_app' ) ); // for ajax calls dealing with apps in wp-admin.\n\t\tif ( wpcd_is_woocommerce_activated() ) {\n\t\t\tadd_action( 'wp_ajax_wpcd_wpapp_frontend', array( &$this, 'ajax_wpapp_frontend' ) ); // for ajax calls from the front-end - code in trait files.\n\t\t}\n\n\t\t// Add welcome message to the settings screen.\n\t\tadd_filter( 'wpcd_general_settings_after_welcome_message', array( $this, 'welcome_message_settings' ), 10, 1 );\n\n\t\t// Add some additional instructions to the \"no application servers found\" message.\n\t\tadd_filter( 'wpcd_no_app_servers_found_msg', array( $this, 'no_app_servers_found_msg' ), 10, 1 );\n\n\t\t// Add a state called \"WordPress\" to the app when its shown on the app list.\n\t\tadd_filter( 'display_post_states', array( $this, 'display_post_states' ), 20, 2 );\n\n\t\t// Background actions for SERVER.\n\t\tadd_action( 'wpcd_wordpress_deferred_actions_for_server', array( $this, 'do_deferred_actions_for_server' ), 10 );\n\n\t\t// Background actions for APPS.\n\t\tadd_action( 'wpcd_wordpress_deferred_actions_for_apps', array( $this, 'do_deferred_actions_for_app' ), 10 );\n\n\t\t// Delete temp log files.\n\t\tadd_action( 'wpcd_wordpress_file_watcher', array( $this, 'file_watcher_delete_temp_files' ) );\n\n\t\t/* Do not allow WooCommerce to redirect to their account page */\n\t\tadd_filter( 'woocommerce_prevent_admin_access', array( $this, 'wc_subscriber_admin_access' ), 20, 1 );\n\n\t\t/*********************************************\n\t\t* Hooks and filters for screens in wp-admin\n\t\t*/\n\n\t\t// Filter hook to add new columns to the APP list.\n\t\tadd_filter( 'manage_wpcd_app_posts_columns', array( $this, 'app_posts_app_table_head' ), 10, 1 );\n\n\t\t// Action hook to add values in new columns in the APP list.\n\t\tadd_action( 'manage_wpcd_app_posts_custom_column', array( $this, 'app_posts_app_table_content' ), 10, 2 );\n\n\t\t// Filter hook to add new columns to the SERVER list.\n\t\tadd_filter( 'manage_wpcd_app_server_posts_columns', array( $this, 'app_server_table_head' ), 10, 1 );\n\n\t\t// Show some app details in the wp-admin list of apps.\n\t\tadd_filter( 'wpcd_app_admin_list_summary_column', array( &$this, 'app_admin_list_summary_column' ), 10, 2 );\n\n\t\t// Add the INSTALL WordPress button to the server list.\n\t\tadd_filter( 'wpcd_app_server_table_content', array( &$this, 'app_server_table_content' ), 10, 3 );\n\n\t\t// Filter hook to add a REMOVE SITE link to the hover action on an app.\n\t\tadd_filter( 'post_row_actions', array( $this, 'post_row_actions' ), 10, 2 );\n\n\t\t// Meta box display callback.\n\t\tadd_action( 'add_meta_boxes_wpcd_app', array( $this, 'app_admin_add_meta_boxes' ) );\n\n\t\t// Save Meta Values.\n\t\tadd_action( 'save_post', array( $this, 'app_admin_save_meta_values' ), 10, 2 );\n\n\t\t// Add Metabox.IO metaboxes for the WordPress app into the APP details CPT screen.\n\t\tadd_filter( \"wpcd_app_{$this->get_app_name()}_metaboxes\", array( $this, 'add_meta_boxes' ), 10, 1 );\n\n\t\t// Add Metabox.IO metaboxes for the SERVER CPT into the server details CPT screen.\n\t\tadd_filter( 'rwmb_meta_boxes', array( $this, 'register_server_metaboxes' ), 10, 1 ); // Register application metabox stub with filter. Note that this is a METABOX.IO filter, not a core WP filter.\n\t\tadd_filter( \"wpcd_server_{$this->get_app_name()}_metaboxes\", array( $this, 'add_meta_boxes_server' ), 10, 1 );\n\n\t\t// Action hook to fire on new site created on WP Multisite.\n\t\tadd_action( 'wp_initialize_site', array( $this, 'wpapp_schedule_events_for_new_site' ), 10, 2 );\n\n\t\t// Action hook to set transient if directory is readable and .txt files are accessible.\n\t\tadd_action( 'admin_init', array( $this, 'wpapp_admin_init' ) );\n\n\t\t// Action hook to handle ajax request to set transient if user closed the readable notice check.\n\t\tadd_action( 'wp_ajax_set_readable_check', array( $this, 'set_readable_check' ) );\n\n\t\t// Action hook to handle ajax request to set transient if user clicked the \"check again\" option in the \"readable check\" notice.\n\t\tadd_action( 'wp_ajax_readable_check_again', array( $this, 'readable_check_again' ) );\n\n\t\t// Action hook to extend admin filter options.\n\t\tadd_action( 'restrict_manage_posts', array( $this, 'wpapp_wpcd_app_table_filtering' ) );\n\n\t\t// Filter hook to filter app listing on custom meta data.\n\t\tadd_filter( 'parse_query', array( $this, 'wpapp_wpcd_app_parse_query' ), 10, 1 );\n\n\t\t// Action hook to handle ajax request to set transient if user closed the notice for cron check.\n\t\tadd_action( 'wp_ajax_set_cron_check', array( $this, 'set_cron_check' ) );\n\t}", "public static function initHooks() {\n\t\t$m = self::pw('modules')->get('DpagesMar');\n\n\t\t$m->addHook('Page(pw_template=arproc)::subfunctionUrl', function($event) {\n\t\t\t$event->return = self::subfunctionUrl($event->arguments(0));\n\t\t});\n\n\t\t$m->addHook('Page(pw_template=arproc)::arprocUrl', function($event) {\n\t\t\t$event->return = self::arprocUrl($event->arguments(0));\n\t\t});\n\n\t\t$m->addHook('Page(pw_template=arproc)::glmainUrl', function($event) {\n\t\t\t$event->return = self::glmainUrl($event->arguments(0));\n\t\t});\n\t}", "public function _setup()\n {\n add_action('admin_init', array($this, 'register'));\n add_action('plugin_action_links_' . CD_SLL_NAME, array($this, 'link'));\n }", "public function installHooks()\n {\n if (\\current_user_can('edit_posts') || $this->isWpCLI()) {\n \\add_action('future_to_publish', [$this, 'handleFutureToPublish']);\n\n foreach ($this->getConfig()->allowedPostTypes() as $postType) {\n \\add_action(\"rest_after_insert_{$postType}\", [$this, 'handleRestUpdatePost']);\n }\n\n \\add_action('save_post', [$this, 'handleSavePost'], 99, 1);\n\n \\add_action('transition_post_status', [$this, 'handleTransitionPostStatus'], 99, 3);\n \\add_action('trashed_post', [$this, 'handleTrashedPost']);\n\n\n \\add_action('swiftype_batch_post_index', [$this, 'handlePostBatchIndex']);\n \\add_action('swiftype_batch_post_delete', [$this, 'handlePostBatchDelete']);\n }\n }", "public function hook();", "public function set_hooks() {\n\t\tadd_action( 'wp_head', array( $this, 'do_meta_tags' ), 0 );\n\t\t\tadd_filter( 'document_title_parts', array( $this, 'filter__the_title_parts' ), 1, 4 );\n\t}", "public function run() {\n\t\tforeach ( $this->filters as $hook ) {\n\t\t\tadd_filter( $hook['hook'], $hook['callback'], $hook['priority'], $hook['accepted_args'] );\n\t\t}\n\n\t\tforeach ( $this->actions as $hook ) {\n\t\t\tadd_action( $hook['hook'], $hook['callback'], $hook['priority'], $hook['accepted_args'] );\n\t\t}\n\t}", "public function actions() {\n\t\trequire_once( WPEX_FRAMEWORK_DIR .'hooks/hooks.php' );\n\t\trequire_once( WPEX_FRAMEWORK_DIR .'hooks/actions.php' );\n\t\trequire_once( WPEX_FRAMEWORK_DIR .'hooks/partials.php' );\n\t}", "protected function setup_hooks() {\n\t\tadd_action( 'wp_ajax_nopriv_load_more', [ $this, 'ajax_script_post_load_more' ] );\n\t\tadd_action( 'wp_ajax_load_more', [ $this, 'ajax_script_post_load_more' ] );\n\n\t\t/**\n\t\t * Create a short code.\n\t\t *\n\t\t * Usage echo do_shortcode('[post_listings]');\n\t\t */\n\t\tadd_shortcode( 'post_listings', [ $this, 'post_script_load_more' ] );\n\t}", "private function setup_actions() {\n\n\t\t// Register panels, sections, settings, controls, and partials.\n\t\tadd_action( 'customize_register', array( $this, 'sections' ) );\n\n\t}", "public function run() {\n\t\tforeach ( $this->filters as $hook ) {\n\t\t\tadd_filter( $hook['hook'], [\n\t\t\t\t$hook['component'],\n\t\t\t\t$hook['callback']\n\t\t\t], $hook['priority'], $hook['acc_args'] );\n\t\t}\n\t\tforeach ( $this->actions as $hook ) {\n\t\t\tadd_action( $hook['hook'], [\n\t\t\t\t$hook['component'],\n\t\t\t\t$hook['callback']\n\t\t\t], $hook['priority'], $hook['acc_args'] );\n\t\t}\n\t}", "protected function wp_hooks() {\n\t\tadd_action( 'category_add_form_fields', array( &$this, 'setup_add_category_form_view' ), 10 );\n\n\t\t// Display populated custom form fields while editing a category\n\t\tadd_action( 'category_edit_form_fields', array( &$this, 'setup_edit_category_form_view' ), 10, 2 );\n\n\t\t// Save custom form field data when category is created\n\t\tadd_action( 'created_category', array( &$this, 'save_category_form' ), 10, 2 );\n\n\t\t// Save custom form field data when category is edited\n\t\tadd_action( 'edited_category', array( &$this, 'save_category_form' ), 10, 2 );\n\n\t\t// Delete custom form field data when a category is deleted\n\t\tadd_action( 'delete_category', array( &$this, 'delete_category_form_data' ) );\n\n\t}", "public function setup_actions() {\n\t\tadd_action( 'wp_enqueue_scripts', array( $this, 'register_scripts' ) );\n\t\tadd_action( 'wp_enqueue_scripts', array( $this, 'enqueue_scripts' ) );\n\t\t\n\t\t/** Dequeue GMAP Script */\n\t\tadd_filter( 'facetwp_assets', array( $this, 'dequeue_gmap' ) );\n\n\t\t/** Theme Support */\n\t\tadd_action( 'after_setup_theme', array( $this, 'add_theme_support' ) );\n\t}", "public function hook() {\n\t\tadd_action( 'admin_print_scripts', [ $this, 'admin_scripts' ] );\n\t\t// Elementor support.\n\t\tadd_action( 'elementor/editor/after_enqueue_scripts', [ $this, 'admin_scripts' ] );\n\t\t// UGH! Beaver Builder hack.\n\t\tif ( isset( $_GET['fl_builder'] ) ) { // phpcs:ignore\n\t\t\tadd_action( 'wp_enqueue_scripts', [ $this, 'admin_scripts' ] );\n\t\t}\n\n\t\tadd_action( 'advanced-sidebar-menu/widget/category/after-form', [ $this, 'init_widget_js' ], 1000 );\n\t\tadd_action( 'advanced-sidebar-menu/widget/page/after-form', [ $this, 'init_widget_js' ], 1000 );\n\t\tadd_action( 'advanced-sidebar-menu/widget/navigation-menu/after-form', [ $this, 'init_widget_js' ], 1000 );\n\t}", "private function setup_actions() {\r\n\r\n\t\t// Register panels, sections, settings, controls, and partials.\r\n\t\tadd_action( 'customize_register', array( $this, 'sections' ) );\r\n\r\n\t\t// Register scripts and styles for the controls.\r\n\t\tadd_action( 'customize_controls_enqueue_scripts', array( $this, 'enqueue_control_scripts' ), 0 );\r\n\t}", "private function public_hooks()\n\t{\n\t}", "public function register_hooks() {\n\t\tadd_filter( 'acf/pre_render_fields', array( $this, 'fields_on_translated_options_page' ), 10, 2 );\n\t\tadd_filter( 'acf/update_value', array( $this, 'overwrite_option_value' ), 10, 4 );\n\t\tadd_filter( 'acf/validate_post_id', [ $this, 'append_language_code_for_option_pages' ] );\n\t}", "private function hooks() {\n\n\t\t$plugin_admin = shortbuild_bu_hooks();\n add_filter( 'advanced_import_demo_lists', array( $plugin_admin, 'add_demo_lists' ), 10, 1 );\n add_filter( 'admin_menu', array( $plugin_admin, 'import_menu' ), 10, 1 );\n add_filter( 'wp_ajax_shortbuild_bu_getting_started', array( $plugin_admin, 'install_advanced_import' ), 10, 1 );\n add_filter( 'admin_enqueue_scripts', array( $plugin_admin, 'enqueue_styles' ), 10, 1 );\n add_filter( 'admin_enqueue_scripts', array( $plugin_admin, 'enqueue_scripts' ), 10, 1 );\n\n /*Replace terms and post ids*/\n add_action( 'advanced_import_replace_term_ids', array( $plugin_admin, 'replace_term_ids' ), 20 );\n }", "private function setup_actions() {\n\n\t\t// Register panels, sections, settings, controls, and partials.\n\t\tadd_action( 'customize_register', array( $this, 'sections' ) );\n\n\t\t// Register scripts and styles for the controls.\n\t\tadd_action( 'customize_controls_enqueue_scripts', array( $this, 'enqueue_control_scripts' ), 0 );\n\t}", "private function setup_actions() {\n\n\t\t// Register panels, sections, settings, controls, and partials.\n\t\tadd_action( 'customize_register', array( $this, 'sections' ) );\n\n\t\t// Register scripts and styles for the controls.\n\t\tadd_action( 'customize_controls_enqueue_scripts', array( $this, 'enqueue_control_scripts' ), 0 );\n\t}", "public function init() {\n\t\tadd_action( 'init', array( $this, 'register' ) );\n\t}", "static function hooks() {\n\t\tadd_action( 'after_setup_theme', __CLASS__ . '::custom_header' );\n\n\t\t// Setup the Theme Customizer settings and controls...\n\t\tadd_action( 'customize_register', __CLASS__ . '::register' );\n\n\t\t// Output custom CSS to live site\n\t\tadd_action( 'wp_head', __CLASS__ . '::header_output' );\n\t}", "private function setup_actions() {\n\n\t\tadd_action( 'init', array( $this, 'action_init' ) );\n\n\t\tadd_action( 'p2p_init', array( $this, 'action_p2p_init' ) );\n\n\t\tadd_action( 'pre_get_posts', array( $this, 'action_pre_get_posts' ) );\n\n\t\tadd_action( 'add_attachment', array( $this, 'action_add_attachment' ) );\n\n\t\tadd_action( 'wp_enqueue_scripts', array( $this, 'action_wp_enqueue_scripts' ) );\n\n\t}", "static public function init() {\n\n\t\tadd_action( 'plugins_loaded', __CLASS__ . '::setup_hooks' );\n\t}", "private function init_hooks() {\n\t\tadd_action( 'plugins_loaded', array( $this, 'localization' ) );\n\t\tadd_action( 'plugins_loaded', array( $this, 'includes' ) );\n\t\tadd_filter( 'woocommerce_payment_gateways', array( $this, 'add_gateway' ) );\n\t\t\n\t\tadd_action( 'admin_enqueue_scripts', array( $this, 'load_custom_scripts'));\n\n\t}", "public function addHooks() {\n\t\tadd_action( 'after_setup_theme', array( $this, 'bufferStart' ) );\n\t\tadd_action( 'wp_shutdown', array( $this, 'bufferEnd' ) );\n\t}", "public function init_hooks() {\n add_action( 'dokan_settings_form_bottom', [ $this, 'dokan_live_chat_seller_settings' ], 15, 2 );\n add_action( 'dokan_store_profile_saved', [ $this, 'dokan_live_chat_save_seller_settings' ], 15 );\n }", "public function add_hooks() {\n\t\tadd_action( 'pre_post_update', array( $this, 'migrate_location' ) );\n\t\tadd_action( 'save_post', array( $this, 'queue_save_post_actions' ), PHP_INT_MAX, 2 );\n\t\tadd_action( 'wpml_pb_resave_post_translation', array( $this, 'resave_post_translation_in_shutdown' ), 10, 1 );\n\t\tadd_action( 'icl_st_add_string_translation', array( $this, 'new_translation' ), 10, 1 );\n\t\tadd_action( 'wpml_pb_finished_adding_string_translations', array( $this, 'process_pb_content_with_hidden_strings_only' ), 9, 2 );\n\t\tadd_action( 'wpml_pb_finished_adding_string_translations', array( $this, 'save_translations_to_post' ), 10 );\n\t\tadd_action( 'wpml_pro_translation_completed', array( $this, 'cleanup_strings_after_translation_completed' ), 10, 3 );\n\n\t\tadd_filter( 'wpml_tm_translation_job_data', array( $this, 'rescan' ), 9, 2 );\n\n\t\tadd_action( 'wpml_pb_register_all_strings_for_translation', [ $this, 'register_all_strings_for_translation' ] );\n\t\tadd_filter( 'wpml_pb_register_strings_in_content', [ $this, 'register_strings_in_content' ], 10, 3 );\n\t\tadd_filter( 'wpml_pb_update_translations_in_content', [ $this, 'update_translations_in_content'], 10, 2 );\n\n\t\tadd_action( 'wpml_start_GB_register_strings', [ $this, 'initialize_string_clean_up' ], 10, 1 );\n\t\tadd_action( 'wpml_end_GB_register_strings', [ $this, 'clean_up_strings' ], 10, 1 );\n\t}", "protected function setupHooks() \n {\n\n /**\n * Actions.\n */\n add_action('init', [ $this, 'customPostType' ]);\n\n\n if ($this->isContactFormActivated()) {\n add_filter('manage_sunset-contact_posts_columns', [ $this, 'sunsetSetContactColumns']);\n add_action('manage_sunset-contact_posts_custom_column', [ $this, 'sunsetContactCustomColumns'], 10, 2);\n }\n }", "public function hook_init() {\n\n\t\t$this->register_blocks();\n\t\t$this->register_assets();\n\n\t}", "function setup(){\n\t\t$n = function( $function ){\n\t\t\treturn __NAMESPACE__ . '\\\\' . $function;\n\t\t};\n\t\t\n\t\t//add the hooks and filters here\n\t\tadd_action( \"init\", $n(\"register_block\") );\n\t}", "private function _actions()\n {\n add_action('init', array($this, 'add_short_code'));\n add_action('wp_enqueue_scripts', array($this, 'cyl_enqueue_script'));\n }", "public static function setup_actions() {\n\t\tadd_action( 'after_switch_theme', array( __CLASS__, 'after_switch_theme' ), 10, 2 );\n\t}", "public function hooks() {\n\t\tif ( Helper::get_settings( 'general.beta_optin' ) ) {\n\t\t\t$beta_optin = new Beta_Optin();\n\t\t\t$beta_optin->hooks();\n\t\t}\n\n\t\tif (\n\t\t\tHelper::is_advanced_mode() && (\n\t\t\t\t! Helper::is_plugin_active_for_network() ||\n\t\t\t\tcurrent_user_can( 'setup_network' )\n\t\t\t)\n\t\t) {\n\t\t\t$this->filter( 'rank_math/tools/pages', 'add_status_page' );\n\t\t\t$this->filter( 'rank_math/tools/default_tab', 'change_default_tab' );\n\t\t}\n\n\t\t$this->filter( 'rank_math/admin/dashboard_view', 'network_admin_view', 10, 2 );\n\t\t$this->filter( 'rank_math/admin/dashboard_nav_links', 'network_admin_dashboard_tabs' );\n\t\t$this->action( 'admin_enqueue_scripts', 'enqueue', 20 );\n\n\t\tif ( $this->should_add_json() ) {\n\t\t\t/* translators: Placeholder is version number. */\n\t\t\tHelper::add_json( 'rollbackConfirm', esc_html__( 'Are you sure you want to install version %s?', 'rank-math' ) );\n\t\t}\n\t}", "function register() {\n // Para el back-end\n add_action('admin_enqueue_scripts', array($this, 'put_in_queue'));\n // Para el front-end\n add_action('wp_enqueue_scripts', array($this, 'put_in_queue'));\n // Generar nuestro custom post type\n add_action('init', array($this, 'custom_post_type'));\n\n // Añadir una metabox a nuestro custom post type backend\n add_action('add_meta_boxes', array($this, 'reviews_meta_box'));\n // Guardar los cambios que hagamos en los custom post type backend\n add_action('save_post', array($this, 'save_review'));\n\n // Crear un enlace para los settings del plugin en el admin area\n add_action('admin_menu', array($this, 'add_admin_pages'));\n }", "public\tfunction\tactionsFiltersHooks() {\n\t\t\t/**\n\t\t\t * Handle actions here.\n\t\t\t */\n\t\t\t\n\t\t\t//If this is not a network admin install.\n\t\t\tif (!is_multisite()) {\n\t\t\t\t//Add an action to implement the administrative menues.\n\t\t\t\tadd_action('admin_menu', array($this, 'adminMenues'));\n\t\t\t} else {\n\t\t\t\t//Add an action to implement the network administrative menues.\n\t\t\t\tadd_action('network_admin_menu', array($this, 'adminMenues'));\n\t\t\t}\n\t\t\t\n\t\t\t//If the user is not logged into the administration panel.\n\t\t\tif (!is_admin()) {\n\t\t\t\t//Add an action to load site related content.\n\t\t\t\tadd_action('after_setup_theme', array($this, 'enqueueSite'), 18);\n\t\t\t}\n\t\t\t\n\t\t\t/**\n\t\t\t * Handle filters here.\n\t\t\t */\n\t\t\t\t\n\t\t\t//Add a filter to run meta content for the plugin.\n\t\t\tadd_filter('plugin_row_meta', array($this, 'meta'), 10, 2);\n\t\t\t\t\n\t\t\t/**\n\t\t\t * Handle hooks here.\n\t\t\t*/\n\t\t\t\t\n\t\t\t//Register an activation hook to install.\n\t\t\tregister_activation_hook(__FILE__, array($this, 'install'));\n\t\t\t\t\n\t\t\t//Register an activation hook to uninstall.\n\t\t\tregister_activation_hook(__FILE__, array($this, 'uninstall'));\n\t\t}", "public function register_hooks() {\n\t\t\\add_filter( 'category_description', [ $this, 'add_shortcode_support' ] );\n\t\t\\add_filter( 'term_description', [ $this, 'add_shortcode_support' ] );\n\t}", "private function define_admin_hooks() {\n\t\t$plugin_admin = new MySuperCalendar_Admin( $this->get_plugin_name() );\n\t\t$this->loader->add_action( 'admin_enqueue_scripts', $plugin_admin, 'enqueue_styles' );\n\t\t$this->loader->add_action( 'admin_enqueue_scripts', $plugin_admin, 'enqueue_scripts' );\n\t\t$this->loader->add_action( 'init', $plugin_admin, 'register_Calendar_post_type' );\n\t\t$this->loader->add_action( 'add_meta_boxes', $plugin_admin, 'add_datepicker_meta_box' );\n\t\t$this->loader->add_action( 'save_post', $plugin_admin, 'save_calendar_post' );\n\t\t$this->loader->add_action( 'admin_menu', $plugin_admin, 'register_plugin_menu_page' );\n\n\n\t}" ]
[ "0.8078851", "0.7774043", "0.77427673", "0.7711915", "0.770123", "0.770123", "0.76092446", "0.76028043", "0.75588423", "0.7538118", "0.7524399", "0.74864393", "0.7485304", "0.7407045", "0.73875827", "0.73744655", "0.736782", "0.73586625", "0.733962", "0.7334913", "0.732281", "0.73158246", "0.73157996", "0.73139167", "0.73000157", "0.72755504", "0.7237091", "0.722569", "0.7208535", "0.72044927", "0.7173255", "0.71580964", "0.7117323", "0.7117323", "0.71142304", "0.71113205", "0.71110505", "0.71083665", "0.71038413", "0.7089889", "0.7084566", "0.7077088", "0.7069052", "0.70552325", "0.70512086", "0.7046406", "0.7033806", "0.69644165", "0.69623464", "0.69540125", "0.6943234", "0.6928376", "0.6923049", "0.68914574", "0.68875647", "0.6868255", "0.6862951", "0.6854265", "0.6853931", "0.68294007", "0.6823471", "0.6823245", "0.6818012", "0.68164206", "0.6814371", "0.6813756", "0.68127084", "0.67893416", "0.67562246", "0.675031", "0.6744992", "0.6735924", "0.67317605", "0.6714855", "0.670284", "0.6702735", "0.66963506", "0.6695926", "0.66664976", "0.66653615", "0.66635215", "0.66635215", "0.66596884", "0.665824", "0.66512406", "0.6644138", "0.6643775", "0.6634123", "0.66334254", "0.6630171", "0.6617502", "0.6609414", "0.66078347", "0.6605047", "0.66008234", "0.65962523", "0.6585138", "0.65725577", "0.6554", "0.65534896" ]
0.68845767
55
Run actions that need to happen at init, and allow other plugins to hook into core init.
public function init() { /** * Allow adding plugins and themes to hook into core init. */ do_action( 'fimc_init' ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function init()\n {\n add_action('plugins_loaded', array(self::instance(), '_setup'));\n }", "protected function _init(){\n\t\t//Hook called at the beginning of self::run();\n\t}", "private function init_hooks() {\n\t\t\tadd_action( 'init', array( $this, 'init' ), 0 );\n\t\t}", "public static function init() {\n\t\tself::setup_actions();\n\t}", "private function setup_actions() {\n\t\tadd_option( self::OPTION_ACTIVE_PLUGINS, array() );\n\n\t\t// Loaded at priority 5 because all plugins are typically loaded before 'plugins_loaded'\n\t\tadd_action( 'plugins_loaded', array( $this, 'include_active_plugins' ), 5 );\n\n\t\tadd_action( 'init', array( $this, 'action_init' ) );\n\t}", "static public function init() {\n\n\t\tadd_action( 'plugins_loaded', __CLASS__ . '::setup_hooks' );\n\t}", "public function init() {\n\t\t$this->load_actions();\n\t}", "public function init()\n {\n $this->addAction('doStuff', 'performThingA');\n $this->addAction('doMoreStuff', 'performThingB');\n }", "private function init_hooks() {\n\t\t\tadd_action( 'init', array( $this, 'init' ), 0 );\n\t\t\tregister_activation_hook( __FILE__, array( $this, 'activate' ) );\n\n\t\t\t// Plugin update notifications\n\t\t\tadd_action( 'admin_init', array( $this, 'plugin_update' ) );\n\t\t}", "public function init() {\r\n if ( ! $this->_initiated ) {\r\n $this->_init_hooks();\r\n }\r\n }", "private function init() {\n\n\t\tif ( ! $this->should_load() ) {\n\t\t\treturn;\n\t\t}\n\t\t$this->setup_admin();\n\t\t$this->setup_api();\n\t}", "public function init_hooks() {\n\t}", "private function init_hooks() {\n\n register_activation_hook( __FILE__, array( 'IWJ_Install', 'install' ) );\n register_deactivation_hook( __FILE__, array('IWJ_Install', 'deactive') );\n\n add_action('plugins_loaded', array('IWJ_Install', 'update'));\n add_action('wp_loaded', array('IWJ_Install', 'update2'));\n\n add_action( 'wpmu_new_blog', array( 'IWJ_Install', 'new_blog' ), 10, 6 );\n add_action( 'delete_blog', array( 'IWJ_Install', 'delete_blog' ), 10, 2 );\n\n add_action( 'after_setup_theme', array( $this, 'setup_environment' ) );\n add_action( 'init', array( $this, 'init' ), 0 );\n\n add_action('wp_logout', array($this, 'end_session'));\n add_action('wp_login', array($this, 'end_session'));\n\n //add_action('activated_plugin',array($this, 'active_plugin_error'));\n }", "public function init() {\n\n\t\t// Bail on non admin.\n\t\tif ( ! is_admin() ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Handle our actions.\n\t\tadd_action( 'admin_enqueue_scripts', array( $this, 'load_scripts_styles' ) );\n\t\tadd_action( 'post_submitbox_misc_actions', array( $this, 'submitbox_new_datetime' ) );\n\t}", "protected function init() {\n // Provides info to parent class, so do it early.\n if (is_admin() ) {\n $this->pluginAdmin = new Yfp_Ganalytics_Basic_Admin(__FILE__);\n }\n else {\n $this->pluginCommon = new Yfp_Ganalytics_Basic_Common();\n\n // Don't track if we aren't enabled.\n if ($this->pluginCommon->optIsEnabled()) {\n // The location of the code depends on the inHead option.\n add_action(\n $this->pluginCommon->optInHead() ? self::TOP_HOOK : self::BOTTOM_HOOK,\n array($this, 'insert_js_code')\n );\n }\n else {\n // Add a comment so we can tell the plugin is functioning, but disabled.\n add_action(\n $this->pluginCommon->optInHead() ? self::TOP_HOOK : self::BOTTOM_HOOK,\n array($this, 'disabled_message')\n );\n }\n }\n }", "public function init(){\n\t\tadd_action( 'admin_init', array( $this, 'init_plugin' ), 20 );\n\t}", "public function init() {\n\t\tdo_action( get_called_class() . '_before_init' );\n\t\tdo_action( get_called_class() . '_after_init' );\n\t\tadd_action( 'wp_enqueue_scripts', array( get_called_class(), 'enqueue_scripts' ), 20 );\n\t\tnew Display();\n\t\tnew Term_Meta();\n\t}", "public function _before_init(){}", "public function init() {\n\t\tadd_filter( 'plugin_action_links_meta-box/meta-box.php', [ $this, 'plugin_links' ], 20 );\n\n\t\t// Add a shared top-level admin menu and Dashboard page. Use priority 5 to show Dashboard at the top.\n\t\tadd_action( 'admin_menu', [ $this, 'add_menu' ], 5 );\n\t\tadd_action( 'admin_menu', [ $this, 'add_submenu' ], 5 );\n\n\t\t// If no admin menu, then hide the About page.\n\t\tadd_action( 'admin_head', [ $this, 'hide_page' ] );\n\n\t\t// Redirect to about page after activation.\n\t\tadd_action( 'activated_plugin', [ $this, 'redirect' ], 10, 2 );\n\t}", "public function initialize() {\n\n // callback to run after theme is loaded\n add_action(\"init\", function() {\n $this->addServiceProvider( FractalProvider::class );\n $this->addServiceProvider( RouterProvider::class );\n });\n\n\n /**\n * This causes the plugin's routes to kick in only if WordPress experiences a 404\n */\n add_action(\"wp\", function() {\n\n if( is_404() )\n $this->dispatch();\n\n });\n\n // code to run when admin is loaded\n add_action(\"admin_init\", function() {\n $this->addServiceProvider( PlatesProvider::class );\n });\n\n //\n add_action(\"admin_menu\", function() {\n\n new SettingsPage($this);\n\n });\n }", "function init_hooks() {\n\tregister_activation_hook( __FILE__, __NAMESPACE__ . '\\activate_plugin' );\n\tregister_deactivation_hook( __FILE__, __NAMESPACE__ . '\\deactivate_plugin' );\n\tregister_uninstall_hook( __FILE__, __NAMESPACE__ . '\\uninstall_plugin' );\n}", "public function init_hooks()\n {\n register_activation_hook(__FILE__, array($this, 'run_install'));\n register_deactivation_hook(__FILE__, array($this, 'run_uninstall'));\n }", "function init()\n{\n\t$this->_init();\n\t$this->onInit();\n}", "public function init() {\n\t\tadd_action( 'init', array( $this, 'register' ) );\n\t}", "protected function _beforeInit() {\n\t}", "function __construct(){\n //Actions\n add_action('init', array($this, 'init'), 1);\n \n }", "public function init() {\n\t\t$this->define_constants();\n\t\t$this->load_dependencies();\n\t\tdo_action( 'wprmprc_init' );\n\t\tadd_filter( 'wprm_addon_active', array( $this, 'addon_active' ), 10, 2 );\n\t}", "function action_init_for_admin() {\n\t\tif ( ! $this->ef_module->is_enabled() ) {\n\t\t\treturn;\n\t\t}\n\n\t\t$this->check_active_plugins();\n\n\t\tif ( $this->should_apply_compat() ) {\n\t\t\tforeach ( $this->hooks as $hook => $callback ) {\n\t\t\t\tif ( is_callable( [ $this, $callback ] ) ) {\n\t\t\t\t\tremove_action( $hook, array( $this->ef_module, $callback ) );\n\t\t\t\t\tadd_action( $hook, array( $this, $callback ) );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public function init() {\r\n\r\n // Check WooLentor Free version\r\n if( !is_plugin_active('woolentor-addons/woolentor_addons_elementor.php') ){\r\n add_action( 'admin_notices', [ $this, 'admin_notice_missing_main_plugin' ] );\r\n return;\r\n }\r\n\r\n // Include File\r\n $this->include_files();\r\n\r\n // After Active Plugin then redirect to setting page\r\n $this->plugin_redirect_option_page();\r\n\r\n }", "private function setup_actions() {\n\n\t\tadd_action( 'init', array( $this, 'action_init' ) );\n\n\t\tadd_action( 'p2p_init', array( $this, 'action_p2p_init' ) );\n\n\t\tadd_action( 'pre_get_posts', array( $this, 'action_pre_get_posts' ) );\n\n\t\tadd_action( 'add_attachment', array( $this, 'action_add_attachment' ) );\n\n\t\tadd_action( 'wp_enqueue_scripts', array( $this, 'action_wp_enqueue_scripts' ) );\n\n\t}", "public function init()\n {\n // TODO: initialize by config ordering\n foreach ($this->plugins as $name => $plugin) {\n $plugin->init();\n }\n }", "private function init_hooks() {\n\t\tadd_action( 'plugins_loaded', array( $this, 'localization' ) );\n\t\tadd_action( 'plugins_loaded', array( $this, 'includes' ) );\n\t\tadd_filter( 'woocommerce_payment_gateways', array( $this, 'add_gateway' ) );\n\t\t\n\t\tadd_action( 'admin_enqueue_scripts', array( $this, 'load_custom_scripts'));\n\n\t}", "protected function initAction()\n {\n }", "public function init_actions() {\n\t\t\tif ( apply_filters( $this->theme_name . '_enable_setup_wizard', true ) && current_user_can( 'manage_options' ) ) {\n\t\t\t\tadd_action( 'after_switch_theme', array( $this, 'switch_theme' ) );\n\n\t\t\t\tif ( class_exists( 'TGM_Plugin_Activation' ) && isset( $GLOBALS['tgmpa'] ) ) {\n\t\t\t\t\tadd_action( 'init', array( $this, 'get_tgmpa_instanse' ), 30 );\n\t\t\t\t\tadd_action( 'init', array( $this, 'set_tgmpa_url' ), 40 );\n\t\t\t\t}\n\n\t\t\t\tadd_action( 'admin_menu', array( $this, 'admin_menus' ) );\n\t\t\t\tadd_action( 'admin_enqueue_scripts', array( $this, 'enqueue_scripts' ) );\n\t\t\t\tadd_action( 'admin_init', array( $this, 'admin_redirects' ), 30 );\n\t\t\t\tadd_action( 'admin_init', array( $this, 'init_wizard_steps' ), 30 );\n\t\t\t\tadd_action( 'admin_init', array( $this, 'setup_wizard' ), 30 );\n\t\t\t\tadd_filter( 'tgmpa_load', array( $this, 'tgmpa_load' ), 10, 1 );\n\t\t\t\tadd_action( 'wp_ajax_envato_setup_plugins', array( $this, 'ajax_plugins' ) );\n\t\t\t}\n\t\t\tadd_action( 'upgrader_post_install', array( $this, 'upgrader_post_install' ), 10, 2 );\n\t\t}", "public function init() {\r\n\t\tadd_action( 'admin_init', array( $this, '_attach' ) );\r\n\t\tadd_action( 'profile_update', array( $this, '_save' ), 10, 1 );\r\n\t\tadd_action( 'user_register', array( $this, '_save' ), 10, 1 );\r\n\t}", "public function init() {\n\n // register plugin controller under /gallery/\n DatawrapperHooks::register(DatawrapperHooks::GET_PLUGIN_CONTROLLER, array($this, 'process'));\n\n DatawrapperHooks::register(DatawrapperHooks::ALTERNATIVE_SIGNIN, array($this, 'showTwitterSignInButton'));\n\n $this->checkLogin();\n }", "private function setup_actions() {\r\n\t\tadd_action( 'init', array( $this, 'is_edd_activated' ), 1 );\r\n\r\n\t\tadd_filter( 'template_include', array( $this, 'template_loader' ) );\r\n\t\tadd_action( 'init', array( $this, 'endpoints' ) );\r\n\t\t\r\n\t\tdo_action( 'atcf_setup_actions' );\r\n\r\n\t\t$this->load_textdomain();\r\n\t}", "public function initialize() {\n $this->add_hooks_and_filters();\n }", "public function init() {\n // The settings variable will hold our plugin settings.\n self::$instance->plugin_settings = self::$instance->get_plugin_settings();\n\n // The subs variable won't be interacted with directly.\n // Instead, the subs() methods will act as wrappers for it.\n self::$instance->subs = new NF_Subs();\n\n // Get our notifications up and running.\n self::$instance->notifications = new NF_Notifications();\n\n // Get our step processor up and running.\n // We only need this in the admin.\n if ( is_admin() ) {\n self::$instance->step_processing = new NF_Step_Processing();\n self::$instance->download_all_subs = new NF_Download_All_Subs();\n }\n\n // Fire our Ninja Forms init action.\n // This will allow other plugins to register items to the instance.\n do_action( 'nf_init', self::$instance );\n }", "public function init() {\r\n\t\t// Add Google Analytics auth scopes.\r\n\t\tadd_filter( 'beehive_google_auth_scopes', array( $this, 'auth_scopes' ) );\r\n\r\n\t\t// Setup profiles after authentication.\r\n\t\tadd_action( 'beehive_google_auth_completed', array( $this, 'setup_profiles' ), 10, 3 );\r\n\r\n\t\t// Stats menu is required only when logged in.\r\n\t\tif ( Helper::instance()->can_get_stats( $this->is_network() ) ) {\r\n\t\t\t// Setup widgets.\r\n\t\t\tadd_action( 'widgets_init', array( $this, 'widgets' ) );\r\n\t\t}\r\n\r\n\t\t// Initialize sub classes.\r\n\t\tAdmin::instance()->init();\r\n\t\tStats::instance()->init();\r\n\t\tTracking::instance()->init();\r\n\r\n\t\t// Rest API.\r\n\t\tEndpoints\\Stats::instance();\r\n\t\tEndpoints\\Data::instance();\r\n\t}", "public function load()\n {\n // Register initialization method.\n add_action('init', [$this, 'init'], 10, 0);\n }", "public function boot() {\n\n\t\tadd_action( 'init', array( $this, 'hook_init' ) );\n\n\t}", "public function actionInit()\n {\n $this->initRoles($this->roles);\n $this->initPermissions($this->permissions);\n $this->initDependencies($this->dependencies);\n }", "public static function run()\n\t{\n\t\tself::initialize(__class__);\n\t\t# Add post-init hooks here\n\t}", "public function init() {\n\t\t$this->add_cpt_support();\n\n\t\t$this->init_components();\n\n\t\tdo_action( 'elementor/init' );\n\t}", "private function init_hooks() {\n\t\t\tadd_action( 'after_setup_theme', array( $this, 'include_template_functions' ), 11 );\n\t\t\tadd_action( 'init', array( $this, 'init' ), 0 );\n\t\t\tregister_activation_hook( __FILE__, array( $this, 'activate' ) );\n\t\t}", "public function init(){\n\n\t\t$this->constants();\n\t\t$this->includes();\n\n\t\tadd_filter( 'automatewoo/triggers', array( $this, 'add_to_team_trigger' ), 10, 1 );\n\n\t}", "public function init() {\n // Check if Elementor installed and activated\n if ( ! did_action( 'elementor/loaded' ) ) {\n add_action( 'admin_notices', array( $this, 'admin_notice_missing_main_plugin' ) );\n return;\n }\n\n // Check for required Elementor version\n if ( ! version_compare( ELEMENTOR_VERSION, MINIMUM_ELEMENTOR_VERSION, '>=' ) ) {\n add_action( 'admin_notices', array( $this, 'admin_notice_minimum_elementor_version' ) );\n return;\n }\n\n // Check for required PHP version\n if ( version_compare( PHP_VERSION, MINIMUM_PHP_VERSION, '<' ) ) {\n add_action( 'admin_notices', array( $this, 'admin_notice_minimum_php_version' ) );\n return;\n }\n\n // Once we get here, We have passed all validation checks so we can safely include our plugin\n require_once( 'plugin.php' );\n }", "public function hooks() {\n\t\tregister_activation_hook( __FILE__, array( $this, '_activate' ) );\n\t\tregister_deactivation_hook( __FILE__, array( $this, '_deactivate' ) );\n\n\t\tadd_action( 'init', array( $this, 'init' ) );\n\t}", "protected function initializeAction() {}", "protected function initializeAction() {}", "protected function initializeAction() {}", "protected function __construct() {\n\t\t\tadd_action( 'init', array( $this, 'action__init' ), 11 );\n\t\t}", "public function init(): void\n {\n add_action(self::CRON_JOB_HOOK, [$this, 'runCronJob'], 10, 0);\n }", "public function initialize(): void\n {\n if (!$this->isInitialized()) {\n $this->addFilter('timber/loader/loader', 'addTimberNamespaces');\n $this->addAction('wp_enqueue_scripts', 'addAssets');\n $this->addAction('after_setup_theme', 'prepareTheme');\n }\n }", "protected function _afterInit() {\n\t}", "public static function run () {\n if( ! defined('ICL_SITEPRESS_VERSION') ) return;\n\n // init our plugin on the p2p_init action hook\n if(isset($_REQUEST['icl_ajx_action']) && function_exists('_p2p_init') ){\n add_action('init', array(__CLASS__, 'early_init') );\n }\n else {\n add_action('p2p_init', array(__CLASS__, 'init'), 14 );\n }\n\n // shows admin notices\n add_action('admin_notices', array(__CLASS__,'admin_notices') );\n\n }", "public function init() {\n\n\t\t// Run an action so we can hook in beforehand\n\t\t$this->before( 'ubc_press_before_create_all_cpts' );\n\n\t\t// Determine which CPTs to create\n\t\t$this->determine();\n\n\t\t// Create the CPTs\n\t\t$this->create();\n\n\t\t// Run an action so we can hook in afterwards\n\t\t$this->after( 'ubc_press_after_create_all_cpts' );\n\n\t}", "public function _setup()\n {\n add_action('admin_init', array($this, 'register'));\n add_action('plugin_action_links_' . CD_SLL_NAME, array($this, 'link'));\n }", "public function init()\n {\n add_action('after_setup_theme', [$this, 'themeSetup']);\n }", "protected function __onInit()\n\t{\n\t}", "public function init_plugin()\n {\n }", "public function setup() {\n\t\tadd_action( 'plugins_loaded', array( $this, 'manually_load_api' ), 100 );\n\t\tadd_action( 'plugins_loaded', array( $this, 'load_textdomain' ) );\n\t\tadd_filter( 'plugin_row_meta', array( $this, 'filter_plugin_row_meta' ), 10, 4 );\n\t\tadd_action( 'admin_notices', array( $this, 'permalink_warning' ) );\n\t\tadd_action( 'admin_init', array( $this, 'flush_rewrites' ), 10000 );\n\t}", "public function setup_actions() {}", "function init() {\n\t\tevent_declare('EVENT_MANAGE_USER_FORM');\n\t\tplugin_event_hook('EVENT_MANAGE_USER_FORM', 'DefUgroup');\n\t\t// Delete usergroups when user is deleted\n\t\tevent_declare('EVENT_ACCOUNT_DELETED');\n\t\tplugin_event_hook('EVENT_ACCOUNT_DELETED', 'DelUgroup');\n\t}", "public function init() {\n\t\tif (is_admin()) {\n\t\t\tadd_action('admin_init', array($this, 'autoupdate'));\n\n\t\t\t$pages = array(\n\t\t\t\t'post',\n\t\t\t\t'post-new',\n\t\t\t);\n\t\t\tif (in_array(self::$page_base, $pages)) {\n\t\t\t\tadd_action('add_meta_boxes', array($this, 'add_meta_box'));\n\t\t\t\tadd_action('save_post', array($this, 'save_meta_data'));\n\t\t\t}\n\n\t\t\tif ('plugins' === self::$page_base)\n\t\t\t\tadd_action('in_plugin_update_message-'.basename(dirname(__FILE__)).'/'.basename(__FILE__), array($this, 'update_message'), 10, 2);\n\t\t} else {\n\t\t\tadd_action('wp_enqueue_scripts', array($this, 'enqueue_additional_css_file'));\n\t\t\tadd_action('wp_print_styles', array($this, 'print_additional_css'));\n\t\t}\n\t}", "public function init()\n {\n parent::init();\n $this->trigger(self::EVENT_INIT);\n }", "public function init()\n {\n parent::init();\n $this->trigger(self::EVENT_INIT);\n }", "public function init()\n {\n parent::init();\n $this->trigger(self::EVENT_INIT);\n }", "public function init()\n {\n parent::init();\n $this->trigger(self::EVENT_INIT);\n }", "function _initialize()\n {\n $CFG =& \\O2System\\load_class('Config', 'core');\n\n // If hooks are not enabled in the config file\n // there is nothing else to do\n\n if ($CFG->item('enable_hooks') == FALSE)\n {\n return;\n }\n\n // Grab the \"hooks\" definition file.\n // If there are no hooks, we're done.\n\n if (defined('ENVIRONMENT') AND is_file(APPPATH.'config/'.ENVIRONMENT.'/hooks.php'))\n {\n include(APPPATH.'config/'.ENVIRONMENT.'/hooks.php');\n }\n elseif (is_file(APPPATH.'config/hooks.php'))\n {\n include(APPPATH.'config/hooks.php');\n }\n\n\n if ( ! isset($hook) OR ! is_array($hook))\n {\n return;\n }\n\n $this->hooks =& $hook;\n $this->enabled = TRUE;\n }", "private function run_actions() {\n\t\tadd_action( 'admin_menu', [ $this, 'register' ] );\n\t\tadd_action( 'admin_enqueue_scripts', [ $this, 'enqueue' ] );\n\t\tadd_action( 'init', array( $this, 'register_settings' ) );\n\t}", "public function action_admin_init() {\n\t\t$this->maybe_upgrade();\n\t}", "public function init() {\n\t\t// Display settings page.\n\t\tadd_action( 'beehive_settings_page_content', [ $this, 'settings_page_content' ] );\n\n\t\t// Show success message.\n\t\tadd_action( 'beehive_admin_settings_processed', [ $this, 'updated_message' ] );\n\n\t\t// Render onboarding modals.\n\t\tadd_action( 'beehive_add_modals', [ $this, 'render_onboarding' ] );\n\t}", "public function init_hooks() {\n add_action( 'dokan_settings_form_bottom', [ $this, 'dokan_live_chat_seller_settings' ], 15, 2 );\n add_action( 'dokan_store_profile_saved', [ $this, 'dokan_live_chat_save_seller_settings' ], 15 );\n }", "public function setup_actions() {\n\t\tadd_action( 'wp_enqueue_scripts', array( $this, 'register_scripts' ) );\n\t\tadd_action( 'wp_enqueue_scripts', array( $this, 'enqueue_scripts' ) );\n\t\t\n\t\t/** Dequeue GMAP Script */\n\t\tadd_filter( 'facetwp_assets', array( $this, 'dequeue_gmap' ) );\n\n\t\t/** Theme Support */\n\t\tadd_action( 'after_setup_theme', array( $this, 'add_theme_support' ) );\n\t}", "protected function initRegistrationHooks()\n\t{\n\t\t$pluginPath = CommentsEncryptMain::PATH_PLUGIN_NAME . '/main.php';\n\t\tregister_activation_hook($pluginPath, array($this, 'activationHook'));\n\t\tregister_uninstall_hook($pluginPath, array($this, 'uninstallHook'));\t\t\n\t}", "public function wp_init() {\n\t\n\t\t// (re)load our settings\n\t\t$this->load_settings();\n\n\t\tload_plugin_textdomain('wp-united', false, 'wp-united/languages/');\n\t\t\n\t\trequire_once($this->get_plugin_path() . 'template-tags.php');\n\t\t\n\t\t// some login integration routines may be needed even when user integration is disabled.\t\n\t\trequire_once($this->get_plugin_path() . 'user-integrator.php'); \n\t\t\n\t\tif($this->get_setting('xposting')) {\t\t\n\t\t\trequire_once($this->get_plugin_path() . 'cross-posting.php');\n\t\t\t$this->xPoster = new WPU_Plugin_XPosting($this->settings);\n\t\t}\n\n\n\t\t// add new actions and filters\n\t\t$this->add_actions();\n\t\t$this->add_filters();\n\t\tunset($this->actions, $this->filters);\n\n\t}", "public static function setup_actions() {\n\t\tadd_action( 'after_switch_theme', array( __CLASS__, 'after_switch_theme' ), 10, 2 );\n\t}", "protected function initialize() {\n\t add_action( 'widgets_init' , array( $this , 'register_widgets' ) );\n\t $this->add_hooks_and_filters();\n }", "public function initializeAction() {}", "public function initializeAction() {}", "public function initializeAction() {}", "public function initializeAction() {}", "public function initializeAction() {}", "public function hook_init() {\n\n\t\t$this->register_blocks();\n\t\t$this->register_assets();\n\n\t}", "public function init()\n\t{\n\t\t$this->resolvePackagePath();\n\t\t$this->registerCoreScripts();\n\t\tparent::init();\n\t}", "static function init(){\n\t\t\t\t\t\t\n\t\t//creating table to store information if the crm is down\n\t\tregister_activation_hook(CRMGRAVITYFILE, array(get_class(), 'create_offline_table'));\n\t\tregister_deactivation_hook(CRMGRAVITYFILE, array(get_class(), 'deactivate_scheduler'));\n\n\t\tadd_action(self::hook, array(get_class(), 'process_scheduler'));\n\t\t\n\t\t//add_action('init', array(get_class(), 'test'));\n\t}", "public function Init() {\r\n do_action('vcff_supports_before_init',$this);\r\n // Include the admin class\r\n require_once(VCFF_SUPPORTS_DIR.'/functions.php');\r\n // Initalize core logic\r\n add_action('vcff_init_core',array($this,'__Init_Core'),5);\r\n // Initalize context logic\r\n add_action('vcff_init_context',array($this,'__Init_Context'),5);\r\n // Initalize misc logic\r\n add_action('vcff_init_misc',array($this,'__Init_Misc'),5);\r\n // Fire the shortcode init action\r\n do_action('vcff_supports_init',$this);\r\n // Fire the shortcode init action\r\n do_action('vcff_supports_after_init',$this);\r\n }", "public function __construct() {\n\t add_action( 'init', array( $this, 'init_setup' ), 10, 1 );\n\t\tadd_action( 'cmb2_render_image_select', array( $this, 'cmb2_render_image_select' ), 10, 5 );\n\t\tadd_action( 'plugins_loaded', array( $this, 'setup_plugin_updater' ), 10, 1 );\n\n\t}", "public function action_init() {\n\t\t// Allow people to customize what capability is required in order to view this menu\n\t\t$this->capability = apply_filters( 'wpcom_vip_plugins_ui_capability', $this->capability );\n\n\t\t// Controls where this menu is added\n\t\t$this->parent_menu_slug = apply_filters( 'wpcom_vip_plugins_ui_parent_menu_slug', $this->parent_menu_slug );\n\n\t\t// Allows hiding of certain plugins from the UI\n\t\t$this->hidden_plugins = apply_filters( 'wpcom_vip_plugins_ui_hidden_plugins', $this->hidden_plugins );\n\n\t\tadd_action( 'admin_menu', array( $this, 'action_admin_menu_add_menu_item' ) );\n\n\t\tadd_action( 'wpcom_vip_plugins_ui_menu_page', array( $this, 'cleanup_active_plugins_option' ) );\n\n\t\tadd_action( 'admin_post_' . self::ACTION_PLUGIN_ACTIVATE, array( $this, 'action_admin_post_plugin_activate' ) );\n\t\tadd_action( 'admin_post_' . self::ACTION_PLUGIN_DEACTIVATE, array( $this, 'action_admin_post_plugin_deactivate' ) );\n\n\t\tadd_action( 'admin_enqueue_scripts', array( $this, 'action_enqueue_scripts' ) );\n\t}", "public static function init()\n {\n // add_action('wp_head', array(__CLASS__, 'html5shiv'), 1);\n\n // add_action('wp_head', array(__CLASS__, 'favicon'));\n //add_action('wp_head', array(__CLASS__, 'fontloader'));\n\n // Use only if supporting IE8\n // add_action('wp_head', array(__CLASS__, 'ieResponsive'));\n\n add_action('wp_enqueue_scripts', array(__CLASS__, 'stylesheet'));\n add_action('wp_enqueue_scripts', array(__CLASS__, 'javascript'));\n //add_action('wp_footer', array(__CLASS__, 'googleAnalytics'));\n\n }", "public function initializeAction() {\n\n\t}", "public static function init() {\n\t\tadd_action( 'add_meta_boxes', array( 'ReplyContextPlugin', 'add_meta_boxes' ) );\n\t\tadd_action( 'save_post', array( 'ReplyContextPlugin', 'save_postdata' ), 5, 1 );\n\n\t\tadd_filter( 'webmention_links', array( 'ReplyContextPlugin', 'webmention_links' ), 10, 2 );\n\t\tadd_action( 'loop_start', array( 'ReplyContextPlugin', 'loop_start' ) );\n\t}", "public static function init( )\n {\n $config = \\Painless::load( 'system/common/config' );\n $triggers = $config->get( 'triggers.*' );\n \n if ( ! empty( $triggers ) )\n {\n foreach( $triggers as $name => $callback )\n {\n self::register( $name, $callback );\n }\n }\n }", "public function init() {\n \t$plugin_updater = new X_Plugin_Updater;\n \t$theme_updater = new X_Theme_Updater;\n }", "function test_init_action_is_run() {\n\t}", "public function init()\n {\n // Nothing needs to be done initially, huzzah!\n }", "protected function initHookObjects() {}", "protected function initHookObjects() {}" ]
[ "0.81310123", "0.7985896", "0.7975205", "0.7955344", "0.7798518", "0.7794718", "0.77837783", "0.77829164", "0.7700742", "0.76111144", "0.747201", "0.7415867", "0.73753446", "0.7365326", "0.73392165", "0.73121846", "0.72980577", "0.7263861", "0.72630537", "0.7243642", "0.7237638", "0.7235115", "0.7229616", "0.7227603", "0.7203698", "0.72005945", "0.71827215", "0.7175523", "0.7174411", "0.7154497", "0.7144423", "0.714391", "0.7126262", "0.7118493", "0.710109", "0.7098982", "0.709163", "0.7085842", "0.706597", "0.7060127", "0.7043817", "0.7033005", "0.7031705", "0.7031127", "0.70262855", "0.70147264", "0.70084524", "0.7003361", "0.70024973", "0.7000434", "0.7000434", "0.7000246", "0.6999163", "0.6984641", "0.6972515", "0.6959101", "0.6954937", "0.69506013", "0.69494134", "0.69444144", "0.693743", "0.6933795", "0.6926801", "0.6926396", "0.69236755", "0.69214123", "0.6914549", "0.6914549", "0.6914549", "0.6914549", "0.69021845", "0.68773323", "0.68761927", "0.6866341", "0.68620527", "0.68391913", "0.6830359", "0.6829548", "0.6829242", "0.682531", "0.68251824", "0.68251824", "0.68251824", "0.68251824", "0.68251824", "0.6821539", "0.6819603", "0.68170065", "0.6815927", "0.6806327", "0.6805682", "0.6803977", "0.6803619", "0.67796385", "0.67693174", "0.6766295", "0.6766229", "0.6764357", "0.6763238", "0.6763238" ]
0.72666126
17
Admin init action, handles anything that's needed on admin init.
public function admin_init() {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function admin_init()\n {\n }", "public function action_admin_init() {\n\t\t$this->maybe_upgrade();\n\t}", "public function admin_init() {\n $this->add_actions();\n $this->apply_editor_wrap();\n $this->activate_builder_callbacks();\n }", "public static function init()\n {\n $instance = self::getInstance();\n $instance->initAdmin();\n }", "public function admin_init(){\n\n\t}", "public function admin_init() {\n // Check and update our version number.\n self::$instance->update_version_number();\n\n // Add our \"Add Form\" button and modal to the tinyMCE editor\n self::$instance->add_form_button = new NF_Admin_AddFormModal();\n\n // Get our admin notices up and running.\n self::$instance->notices = new NF_Notices();\n\n // Register our admin scripts\n self::$instance->register_admin_scripts();\n\n // Fire our Ninja Forms init action.\n do_action( 'nf_admin_init', self::$instance );\n }", "public function admin_init() {\n\n\t\t// set the settings\n\n\t\t$this->setting_api->set_sections( $this->get_settings_sections());\n\t\t$this->setting_api->set_fields( $this->get_settings_fields() );\n\n\t\t// initialize settings\n\t\t$this->setting_api->admin_init();\n\t}", "function manager_admin_init(){\t \n\n\t\t\n\n\t\t\t\n\t}", "public function init()\n {\n parent::init();\n Yii::setPathOfAlias('admin',dirname(__FILE__));\n Yii::app()->setComponents(array(\n 'errorHandler'=>array(\n 'class'=>'CErrorHandler',\n 'errorAction'=>$this->getId().'/default/error',\n ),\n 'user'=>array(\n 'class'=>'WebUser',\n 'stateKeyPrefix'=>'admin',\n 'loginUrl'=>Yii::app()->createUrl($this->getId().'/default/login'),\n ),\n 'widgetFactory' => array(\n 'class'=>'CWidgetFactory',\n 'widgets' => array()\n )\n ), false);\n $this->setImport(array(\n 'admin.models.*',\n 'admin.components.*',\n ));\n }", "public function admin_setup()\n\t{\n\t\t\n\t}", "public function initializeAdminPanel() {}", "function init() {\n $this.getAdminOptions();\n }", "public static function mla_admin_init_action( ) {\r\n\t\tself::$default_columns =& MLAQuery::$default_columns;\r\n\t\tself::$default_hidden_columns =& MLAQuery::$default_hidden_columns;\r\n\t\tself::$default_sortable_columns =& MLAQuery::$default_sortable_columns;\r\n\t}", "public function admin_init() {\n\t\t// Maybe connect with SocialFlow.\n\t\t$this->maybe_authorize();\n\n\t\t// Register our settings in the global \"whitelist_settings\".\n\t\tregister_setting( 'socialflow', 'socialflow', array( $this, 'save_settings' ) );\n\t}", "public function init()\n\t{\n\t\t// you may place code here to customize the module or the application\n\n\t\t// import the module-level models and components\n\t\t$this->setImport(array(\n\t\t\t\t'admin.models.*',\n\t\t\t\t'admin.components.*',\n\t\t));\n\n\t}", "public function init()\n\t{\n\t\t// you may place code here to customize the module or the application\n\n\t\t// import the module-level models and components\n\t\t$this->setImport(array(\n\t\t\t'admin.models.*',\n\t\t\t'admin.components.*',\n\t\t));\n\t}", "public function admin_init()\n\t\t{\n\t\t\t$this->register_settings();\n\t\t\t$region = $this->get_option('region');\n\t\t\t$apiKey = $this->get_option('apiKey');\n\t\t\t$useAPI = $this->get_option('useAPI');\n\t\t\t$password = $this->get_option('password');\n\n\t\t\tadd_action('admin_notices', array(&$this, 'admin_notices'));\n\t\t}", "public function admin_init() {\n\t\t\tdo_action( 'learndash_settings_page_init', $this->settings_page_id );\n\t\t}", "public function admin_init () {\n $data = get_plugin_data(__FILE__);\n $this->plugin_name = $data['Name'];\n $this->plugin_version = $data['Version'];\n $this->plugin_slug = plugin_basename(__FILE__, '.php');\n $this->plugin_name_sanitized = basename(__FILE__, '.php');\n\n // init updater class to plugin updates check\n $this->updater();\n }", "public function actionInit()\n {\n $this->initRoles($this->roles);\n $this->initPermissions($this->permissions);\n $this->initDependencies($this->dependencies);\n }", "public function init(){\n\t\tadd_action( 'admin_init', array( $this, 'init_plugin' ), 20 );\n\t}", "private function init() {\n\n\t\tif ( ! $this->should_load() ) {\n\t\t\treturn;\n\t\t}\n\t\t$this->setup_admin();\n\t\t$this->setup_api();\n\t}", "public function init()\n\t{\n\t\t// you may place code here to customize the module or the application\n\n\t\t// import the module-level models and components\n\t\t$this->setImport(array(\n\t\t\t'admin.models.*',\n\t\t\t'admin.components.*',\n\t\t));\n\n\t\t$this->_initBootstrap();\n\t\t$this->_initJsCss();\n\t}", "protected function initialize(){\n\t\tif (!$this->session->has(\"admin_name\")){\n\t\t\t$this->dispatcher->forward(array(\n\t\t\t\"controller\" => \"login\",\n\t\t\t\"action\" => \"login\",\t\t\t\n\t\t\t)\n\t\t);\n\t\t}\n\t}", "public function init() {\n\n\t\t// Bail on non admin.\n\t\tif ( ! is_admin() ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Handle our actions.\n\t\tadd_action( 'admin_enqueue_scripts', array( $this, 'load_scripts_styles' ) );\n\t\tadd_action( 'post_submitbox_misc_actions', array( $this, 'submitbox_new_datetime' ) );\n\t}", "public function init()\n {\n new Admin(); // Admin class\n }", "public function admin_init ( )\n\t{\n\t\tif ( ! function_exists('curl_init') )\n return false;\n\t\t\n\t\t$admin_class = get_class($this) . 'Admin';\n\t\t$this->admin = new $admin_class($this->icon_small);\n\t}", "function initPlugin()\n {\n $this->getAdminOptions();\n }", "public function InitializeAdmin()\n\t{\n\t\t//$this->CreateParameter('notification', '', $this->Lang('help_param_notification'));\t\n\t\t//$this->CreateParameter('var_*', '', $this->Lang('help_param_var_'));\t\n\t}", "function simple_initialize_recipes_admin() {\n\t\tSimple_Recipes_Admin::init();\n\t}", "public function admin_init()\n\t{\n\t\tforeach( (array) $this->InstanceRegistred as $id => $args ) :\n\t\t\t\\register_setting( $this->page, $args['name'] );\n\t\tendforeach;\n\t}", "public function init() {\n\t\tadd_action( 'admin_menu', array( $this, 'add_options_page' ) );\n\t\tadd_action( 'admin_init', array( $this, 'settings_page_init' ) );\n\t}", "public static function init() {\n\t\tself::setup_actions();\n\t}", "public function init() {\n\t\t$this->load_actions();\n\t}", "protected function init()\n {\n\n $this->viewPath = '/modules/promocode/views/';\n $this->layoutPath = App::$config['adminLayoutPath'];\n App::$breadcrumbs->addItem(['text' => 'AdminPanel', 'url' => 'adminlte']);\n App::$breadcrumbs->addItem(['text' => 'Promocode', 'url' => 'promocode']);\n }", "public function action_init()\n\t{\n\t\t$this->add_template( 'addon_preview', dirname(__FILE__) . '/templates/addon_preview.php' );\n\t\t$this->add_template( 'addon', dirname(__FILE__) . '/templates/addon.php' );\n\t\t\n\t\t$this->add_rule('\"retrieve_addonlist\"', 'retrieve_addonlist');\n\t\t$this->add_rule('\"install_addons\"', 'install_addons');\n\n\t}", "public function initialize(): void\n {\n // Initalise a new content object, with the content-database as argument.\n $this->admin = new Admin($this->app->db);\n }", "public function init()\r\n\t{\r\n\t\tif(!$this->_adminService){\r\n\t\t\t$this->_adminService = new Application_Service_Administrator();\r\n\t\t}\r\n\t}", "public function admin_init() {\n\n\t\tif ( $this->cahnrs_units_schema_version !== get_option( 'cahnrs_units_schema_version', false ) ) {\n\t\t\t$this->load_units();\n\t\t\tupdate_option( 'cahnrs_units_schema_version', $this->cahnrs_units_schema_version );\n\t\t}\n\t\t\n\t\tif ( $this->cahnrs_topics_schema_version !== get_option( 'cahnrs_topics_schema_version', false ) ) {\n\t\t\t$this->load_topics();\n\t\t\tupdate_option( 'cahnrs_topics_schema_version', $this->cahnrs_topics_schema_version );\n\t\t}\n\n\t}", "public static function init() {\n if (self::$_initialised) return;\n self::$_initialised = true;\n\n session_start();\n\n add_action(\"admin_init\", array(\"Medium_Admin\", \"admin_init\"));\n add_action(\"admin_notices\", array(\"Medium_Admin\", \"admin_notices\"));\n\n add_action(\"show_user_profile\", array(\"Medium_Admin\", \"show_user_profile\"));\n add_action(\"edit_user_profile\", array(\"Medium_Admin\", \"show_user_profile\"));\n\n add_action(\"personal_options_update\", array(\"Medium_Admin\", \"personal_options_update\"));\n add_action(\"edit_user_profile_update\", array(\"Medium_Admin\", \"personal_options_update\"));\n\n add_action(\"add_meta_boxes_post\", array(\"Medium_Admin\", \"add_meta_boxes_post\"));\n\n add_action(\"save_post\", array(\"Medium_Admin\", \"save_post\"), 10, 2);\n }", "static function admin_init ()\n {\n add_menu_page(\n __x('People', 'admin menu page title'),\n __x('People', 'admin menu title'),\n 'read',\n 'epfl-people',\n null, // Render callback\n 'dashicons-calendar', // Icon type\n 70 // Position\n );\n }", "public function action_init()\n\t{\n\t\t$this->add_template( 'menus_admin', dirname( __FILE__ ) . '/menus_admin.php' );\n\t\t$this->add_template( 'menu_iframe', dirname( __FILE__ ) . '/menu_iframe.php' );\n\t\t$this->add_template( 'block.menu', dirname( __FILE__ ) . '/block.menu.php' );\n\n\t\t// formcontrol for tokens\n\t\t$this->add_template( 'text_tokens', dirname( __FILE__ ) . '/formcontrol_tokens.php' );\n\t}", "private function initSettings()\n {\n add_action('admin_menu', [__CLASS__, 'menus']);\n add_action('admin_init', [__CLASS__, 'sections']);\n add_action('admin_init', [__CLASS__, 'fields']);\n }", "public function init() {\r\n\t\tadd_action( 'admin_init', array( $this, '_attach' ) );\r\n\t\tadd_action( 'profile_update', array( $this, '_save' ), 10, 1 );\r\n\t\tadd_action( 'user_register', array( $this, '_save' ), 10, 1 );\r\n\t}", "public function init()\n\t{\n\t\t// you may place code here to customize the module or the application\n\n\t\t// import the module-level models and components\n\t\t$this->setImport(array(\n\t\t\t'admin.models.*',\n\t\t\t'admin.components.*',\n\t\t));\n $this->layoutPath = Yii::getPathOfAlias('admin.views.layouts');\n $this->layout = 'main';\n $this->publishCssFile('admin.assets', '/styles.css');\n\n //$this->publishJsFile('admin.assets', '/vendors/modernizr-2.6.2-respond-1.1.0.min.js');\n Yii::app()->clientScript->registerCoreScript('jquery');\n Yii::app()->clientScript->registerCoreScript('jquery.ui');\n //$this->publishJsFile('admin.assets', '/vendors/jquery-1.9.1.min.js');\n //$this->publishJsFile('admin.assets', '/vendors/jquery-ui-1.10.3.js');\n //$this->publishJsFile('admin.assets', '/bootstrap/js/bootstrap.js');\n //$this->publishJsFile('admin.assets', '/vendors/datatables/js/jquery.dataTables.min.js');\n $this->publishJsFile('admin.assets', '/scripts.js');\n //$this->publishJsFile('admin.assets', '/DT_bootstrap.js');\n Yii::app()->errorHandler->errorAction = '/admin/default/error';\n\n\n\t}", "public function startup() {\n\t\tA('AdminInterface')->bind('GatherAdminPages', array(\n\t\t\t'Core Settings' => array(\n\t\t\t\t'config' => $this->config,\n\t\t\t\t'fields' => array(\n\t\t\t\t\tSETTING_DEFAULT_BASE_PATH => array( \n\t\t\t\t\t\t'title' => 'Base Path',\n\t\t\t\t\t\t'type' => 'string',\n\t\t\t\t\t\t'value' => $this->config->getConfigValue(SETTING_DEFAULT_BASE_PATH)),\n\t\t\t\t\tSETTING_SITE_URL => array(\n\t\t\t\t\t\t'title' => 'Base URL',\n\t\t\t\t\t\t'type' => 'string',\n\t\t\t\t\t\t'value' => $this->config->getConfigValue(SETTING_SITE_URL, '')),\t\n\t\t\t\t\tSETTING_ENVIRONMENT => array(\n\t\t\t\t\t\t'title' => 'Environment',\n\t\t\t\t\t\t'type' => 'select',\n\t\t\t\t\t\t'values' => array(\"Development\" => ENV_DEVELOPMENT, \"Test\" => ENV_TEST, \"Production\" => ENV_PRODUCTION),\n\t\t\t\t\t\t'selected' => $this->config->getConfigValue(SETTING_ENVIRONMENT)),\n\t\t\t\t),\n\t\t\t)\n\t\t));\n\t}", "public function admin_init() {\n\t\t$meta_type = papi_get_meta_type();\n\t\t$meta_type = ucfirst( $meta_type );\n\t\t$class_name = 'Papi_Admin_Entry_' . $meta_type;\n\n\t\t// A custom class is not required, e.g\n\t\t// options don't have one.\n\t\tif ( class_exists( $class_name ) ) {\n\t\t\t$class = call_user_func( [$class_name, 'instance'] );\n\n\t\t\tif ( ! $class->setup() ) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\n\t\t// Setup entry type.\n\t\tif ( $entry_type = $this->get_entry_type() ) {\n\t\t\t$entry_type->setup();\n\t\t}\n\t}", "public function adminInit()\n {\n if (true === isset($_GET['page'])) {\n switch ($_GET['page']) {\n case 'gf_settings':\n // add our settings page to the Gravity Forms settings menu\n RGForms::add_settings_page('BitPay Payments', array($this, 'optionsAdmin'));\n break;\n default:\n // not used\n }\n }\n }", "public function init()\n {\n $this->ctrlModel = new Admin_Model_Acl_ControllersActions();\n $this->dbCtrl = new Admin_Model_DbTable_Acl_ModuleController();\n }", "public function init() {\n // you may place code here to customize the module or the application\n // import the module-level models and components\n $this->setImport(array(\n 'admin.models.*',\n 'admin.components.*',\n ));\n\n // set theme\n $theme_name = 'admin';\n Yii::app()->themeManager->setBaseUrl(Yii::app()->request->baseUrl . '/' . 'module-assets/');\n $theme_path = 'application.modules.admin.themes';\n Yii::app()->themeManager->basePath = Yii::getPathOfAlias($theme_path);\n Yii::app()->theme = $theme_name;\n\n\n // set view path\n $vPath = Yii::getPathOfAlias($theme_path . '.' . $theme_name . '.views');\n $this->setViewPath($vPath);\n\n Yii::app()->errorHandler->errorAction = 'admin/account/error';\n }", "public function init() {\n\t\tadd_action( 'admin_notices', [ $this, 'showWelcomeMessage' ] );\n\t}", "public function init()\n\t{\n\t\t$this -> view -> navigation = $navigation = Engine_Api::_() -> getApi('menus', 'core') -> getNavigation('advmenusystem_admin_main', array(), 'advmenusystem_admin_global_settings');\n\t}", "public function init()\r\n {\r\n $this->admin = Shopware()->Modules()->Admin();\r\n $this->basket = Shopware()->Modules()->Basket();\r\n $this->session = Shopware()->Session();\r\n $this->db = Shopware()->Db();\r\n $this->moduleManager = Shopware()->Modules();\r\n $this->eventManager = Shopware()->Events();\r\n }", "public static function init() {\n\t\t\tadd_action( 'admin_menu', __CLASS__ . '::simple_recipes_create_menu' );\n\t\t\n\t\t}", "protected function initAction()\n {\n }", "public function init()\n {\n $this->ctrlActionModel = new Admin_Model_Acl_ControllersActions();\n $this->dbController = new Admin_Model_DbTable_Acl_ModuleController();\n $this->dbAction = new Admin_Model_DbTable_Acl_Action();\n }", "public function admin_init() {\n\t\tregister_setting( $this->options_key, $this->options_key, array( $this, 'save_settings' ) );\n\t}", "public function admin_init() {\n\n\t\t\t$name = $this->options['slug'];\n\t\t\t$this->slug = strtolower(THEME_NAME.'_'.$name);\n\t\t\n\t\t\tadd_option($this->slug.'_fields', '', '', 'yes');\n\t\t\tupdate_option($this->slug.'_fields', $this->options['options']);\n\n\t\t\tadd_action('post_edit_form_tag', array($this, 'set_form_multipart'), 10, 1);\n\t\t\tadd_action('add_meta_boxes'.'_'.$this->screen, array($this, 'register_meta_box'));\n\t\t}", "public function init()\n {\n // Name might be set from outside\n if (!$this->MCONF['name']) {\n $this->MCONF = $GLOBALS['MCONF'];\n }\n $this->id = (int)GeneralUtility::_GP('id');\n $this->CMD = GeneralUtility::_GP('CMD');\n $this->perms_clause = $this->getBackendUser()->getPagePermsClause(1);\n $this->menuConfig();\n $this->handleExternalFunctionValue();\n }", "protected function init()\n {\n\n $this->viewPath = '/modules/product/views/productcat';\n $this->layoutPath = App::$config['adminLayoutPath'];\n App::$breadcrumbs->addItem(['text' => 'AdminPanel', 'url' => 'adminlte']);\n App::$breadcrumbs->addItem(['text' => 'Attribute', 'url' => 'productcat']);\n }", "public function initializeAction() {\n parent::initializeAction();\n $this->umDiv = new Tx_Magenerator_Domain_UserManagement_Div();\n }", "public function init() {\n\t\tadd_filter( 'plugin_action_links_meta-box/meta-box.php', [ $this, 'plugin_links' ], 20 );\n\n\t\t// Add a shared top-level admin menu and Dashboard page. Use priority 5 to show Dashboard at the top.\n\t\tadd_action( 'admin_menu', [ $this, 'add_menu' ], 5 );\n\t\tadd_action( 'admin_menu', [ $this, 'add_submenu' ], 5 );\n\n\t\t// If no admin menu, then hide the About page.\n\t\tadd_action( 'admin_head', [ $this, 'hide_page' ] );\n\n\t\t// Redirect to about page after activation.\n\t\tadd_action( 'activated_plugin', [ $this, 'redirect' ], 10, 2 );\n\t}", "public function initialize(){\n\t\tadd_action('admin_menu', array(&$this, 'addsc_adminmenu'));\n\t}", "public function init()\r\n {\r\n\t\t//$this -> _helper -> layout -> disableLayout();\r\n\t\t\r\n\t\t$auth = Zend_Auth::getInstance();\r\n\t\tif (!$auth->hasIdentity()) {\r\n\t\t\t$this->_redirect('/admin/login/auth');\r\n\t\t}\r\n\t\t\t\r\n\t\t\r\n\t\t$this->translate = Zend_Registry::get('Zend_Translate');\r\n\t\t$this->flashMessenger = $this->_helper->getHelper('FlashMessenger');\r\n }", "public function init() {\n\t\t// Display settings page.\n\t\tadd_action( 'beehive_settings_page_content', [ $this, 'settings_page_content' ] );\n\n\t\t// Show success message.\n\t\tadd_action( 'beehive_admin_settings_processed', [ $this, 'updated_message' ] );\n\n\t\t// Render onboarding modals.\n\t\tadd_action( 'beehive_add_modals', [ $this, 'render_onboarding' ] );\n\t}", "public function init()\n {\n \t$this->_helper->layout()->setLayout('admin');\n }", "public function init()\n {\n $this->_helper->layout->setLayout('admin');\n\t\t$this->view->headTitle()->prepend('Admin');\n\t\t\n\t\t$storage = new Zend_Auth_Storage_Session();\n $data = $storage->read();\n if(empty($data)){\n\t\t\t$controller = $this->getRequest()->getControllerName();\n\t\t\t$action = $this->getRequest()->getActionName();\n\t\t\tif($action != 'login'){\n\t\t\t\t$this->_helper->redirector('index','admin_login');\n\t\t\t}\n } else {\n\t\t\t$usersGroups = new Application_Model_UsersGroups;\n\t\t\t$usersGroupsMapper = new Application_Model_UsersGroupsMapper;\n\t\t\t\n\t\t\t$usersGroupsMapper->find($data->group, $usersGroups);\n\t\t\t\n\t\t\t$rest = unserialize($usersGroups->getRestrictions());\n\t\t\t$this->rest = $rest;\n\t\t\t\n\t\t}\n\t\t\n\t\t$this->view->headScript()->appendFile('/js/admin-pages.js');\n\t\t\n }", "public function Init() {\n\t\t\n\t\t$this->exceptions = TRUE;\n\t\t$this->SetAccess(self::ACCESS_ANY);\n\t\t$this->access_groups = array('admin','user','any');\n\t\t$this->current_group = 'any';\n\t\t$this->AccessMode(1);\n\t\t$this->SetModel(SYS.M.'menudata');\n\t\t$this->only_registered(FALSE);\n\t\tif(Helper::Get('admin'.S.'menu') == '')\n\t\t//$this->SetView(SYS.V . \"elements:nav\");\n\t\t$this->Inc(SYS.M.'model');\n\t}", "function init() {\n\t\t\tadd_filter( 'mv_custom_schema', array( $this, 'custom_tables' ) );\n\n\t\t\tself::$models = MV_DBI::get_models(\n\t\t\t\tarray(\n\t\t\t\t\t$this->table_name,\n\t\t\t\t)\n\t\t\t);\n\t\t\t$this->settings_api = new Settings_API();\n\n\t\t\tadd_action( 'rest_api_init', array( $this, 'routes' ) );\n\t\t}", "public function init()\n {\n // you may place code here to customize the module or the application\n }", "public function init() {\n \n // Instantiate the class\n (new MidrubBaseAdminCollectionFrontendControllers\\Init)->view();\n \n }", "public function _before_init(){}", "public function init()\n\t{\n\t\t// you may place code here to customize the module or the application\n\n\t\t// import the module-level models and components\n\t\t$this->setImport(array(\n\t\t\t'user.models.*',\n\t\t\t'user.components.*',\n\t\t\t'application.modules.system.models.*',\n\t\t\t'application.modules.system.components.*',\n\t\t\t'application.modules.storage.models.*',\n\t\t\t'application.modules.storage.components.*'\n\t\t));\n\t}", "protected function __onInit()\n\t{\n\t}", "public function init()\n\t{\n\t\tadd_action( 'admin_init', array( $this, 'enqueue_assets' ) );\n\t\tadd_action( 'wp_ajax_download_link_title', array( $this, 'download_link_title' ) );\n\t}", "function initFox() { \n\t\t\t$this->getAdminOptions();\n\t\t}", "public static function init()\n\t{\n\t\tif ( get_option( 'Activated_Plugin' ) == 'jh-data-tables' ) \n\t\t{\n\t\t\tdelete_option( 'Activated_Plugin' );\n\n\t\t\t// eg. flush the perma-link structure\n\t\t\tglobal $wp_rewrite;\n\t \t\t$wp_rewrite->flush_rules( true );\n\t\t}\n\t\t\n\t\twp_register_style( 'jh-data-tables-admin-css', plugins_url('admin.css', __FILE__) );\n\t\twp_register_script( 'jh-data-tables-ui-util-js', plugins_url('ui-util.js', __FILE__) );\n\t\twp_register_script( 'jh-data-tables-admin-js', plugins_url('admin.js', __FILE__) );\n\t\twp_register_script( 'jh-data-tables-tinymce-js', plugins_url( 'tinymce/tinymce.min.js', __FILE__) );\n\t\tadd_action( 'admin_enqueue_scripts', array('JHDataTablesAdmin', 'admin_scripts') );\n\t\t\n\t\tadd_action( 'add_meta_boxes', array('JHDataTablesAdmin', 'add_table_editor') );\n\t\tadd_action( 'save_post', array('JHDataTablesAdmin', 'save_table') );\n\t\t//add_action('admin_menu', array('JHDataTablesAdmin', 'add_admin_menus'));\n\t}", "protected function initializeAction() {\n\t\t$this->feusers = $this->feusersRepository->findByUid( $GLOBALS['TSFE']->fe_user->user['uid'] ) ;\n\t\t$this->schule = $this->feusers->getSchule();\n\t\n\t\t$this->extKey = $this->request->getControllerExtensionKey();\n\t\t$this->extPath = t3lib_extMgm::extPath($this->extKey);\n\t\n\t\t$this->importClassFile = $this->extPath.'Classes/tmp/class.importtext.php';\n\t\t$this->importClass = 'ImportText';\n\t \n\t\tif ( $this->settings[pidAjaxContainerKlassenuebersicht] > 0) $this->pidAjaxContainerKlassenuebersicht = (int) $this->settings[pidAjaxContainerKlassenuebersicht];\n\t\n\t}", "protected function initializeAction() {\n\t\t$this->frontendUserRepository = t3lib_div::makeInstance('Tx_GrbFeusermanager_Domain_Repository_FrontendUserRepository');\n\t}", "protected function init()\n {\n if (in_array('users', Mongez::getStored('modules'))) {\n $this->isUserModuleExits = true;\n }\n\n $this->info('Preparing data...');\n $this->initController();\n $this->initModel();\n $this->initResource();\n $this->initRepository();\n $this->initData();\n }", "public function init()\n {\n $authorization = Zend_Auth::getInstance();\n $storage = $authorization->getStorage();\n $sessionRead = $storage->read();\n if ($authorization->hasIdentity())\n {\n $admin = $sessionRead->name;\n if ($this->_request->getActionName() != 'login' && $admin != 'admin')\n {\n $this->redirect(\"admin/login\");\n } \n }\n else {\n if ($this->_request->getActionName() != 'login') {\n $this->redirect(\"admin/login\");\n }\n }\n }", "public function init() {\n\n\t\t// Gets lcars to load\n \t$lcars = & Lcars_Framework::_lcarsframework_lcars();\n\n\t\t// Checks if lcars are available\n \tif ( $lcars ) {\n\n\t\t\t// Add the lcars page and menu item.\n\t\t\tadd_action( 'admin_menu', array( $this, 'add_lcars_page' ) );\n\n\t\t\t// Add the required scripts and styles\n\t\t\tadd_action( 'admin_enqueue_scripts', array( $this, 'enqueue_admin_styles' ) );\n\t\t\tadd_action( 'admin_enqueue_scripts', array( $this, 'enqueue_admin_scripts' ) );\n\n\t\t\t// Settings need to be registered after admin_init\n\t\t\tadd_action( 'admin_init', array( $this, 'settings_init' ) );\n\n\t\t\t// Adds lcars menu to the admin bar\n\t\t\tadd_action( 'wp_before_admin_bar_render', array( $this, 'lcarsframework_admin_bar' ) );\n\n\t\t} else {\n\t\t\t// Display a notice if lcars aren't present in the theme\n\t\t\tadd_action( 'admin_notices', array( $this, 'lcars_notice' ) );\n\t\t\tadd_action( 'admin_init', array( $this, 'lcars_notice_ignore' ) );\n\t\t}\n\n }", "public function admin_init()\n \t{\t\t\t\n \t\t// Add metaboxes\n \t\tadd_action('add_meta_boxes', array($this, 'add_meta_boxes'));\n\t\t\t\n\t\t\t// Add scripts\n\t\t\tadd_action( 'admin_enqueue_scripts', array($this, 'prfx_image_enqueue'));\n \t}", "public function __construct() {\r\n\t\t\t// Register actions.\r\n\t\t\t\tadd_action( 'admin_init', array( &$this, 'admin_init' ) );\r\n\t\t\tadd_action( 'admin_menu', array( &$this, 'add_menu' ) );\r\n\t\t}", "function splashgate_admin_init(){\n\t\t\tregister_setting(\tSPLASHGATE_SETTINGS_GROUP, 'splashgate_options' ); // 'options' will be an array holding everything\n\t\t}", "function init()\n\t{\n\t\tglobal $Options, $User_Options;\n\t\t$Options\t= $this->options\t=\t$this->get( NULL , NULL , TRUE );\n\t\t// Only when aauth is enabled\n\t\tif( Modules::is_active( 'aauth' ) )\n\t\t{\n\t\t\t$User_Options = $this->user_options = $this->get( NULL , $this->events->apply_filters( 'user_id' , 0 ) );\n\t\t}\n\t\t\n\t\t\n\t\t/**\n\t\t * If language is set on dashboard\n\t\t * @since 3.0.5\n\t\t**/\n\t\tif( riake( 'site_language', $Options ) ) {\n\t\t\tget_instance()->config->set_item( 'site_language', $Options[ 'site_language' ] );\n\t\t}\n\n\t\t/** \n\t \t * Load Language\n\t\t**/\n\t\t\n\t\t$this->lang->load( 'system' );\t\n\t}", "public static function init() {\n\t\tif ( ! is_admin() ) {\n\t\t\treturn;\n\t\t}\n\n\t\tself::$theme = wp_get_theme();\n\t\tself::$version = self::$theme->get( 'Version' );\n\n\t\tself::setup_actions();\n\t}", "public function init() {\n\n\t\t// Determine whether the admin pages should show or not.\n\t\t// Default is enabled.\n\t\t$this->admin_enabled = apply_filters( 'graphql_show_admin', true );\n\t\t$this->graphiql_enabled = apply_filters( 'graphql_enable_graphiql', get_graphql_setting( 'graphiql_enabled', true ) );\n\n\t\t// This removes the menu page for WPGraphiQL as it's now built into WPGraphQL\n\t\tif ( $this->graphiql_enabled ) {\n\t\t\tadd_action( 'admin_menu', function() {\n\t\t\t\tremove_menu_page( 'wp-graphiql/wp-graphiql.php' );\n\t\t\t} );\n\t\t}\n\n\t\t// If the admin is disabled, prevent admin from being scaffolded.\n\t\tif ( false === $this->admin_enabled ) {\n\t\t\treturn;\n\t\t}\n\n\t\t$this->settings = new Settings();\n\t\t$this->settings->init();\n\n\t\tif ( 'on' === $this->graphiql_enabled || true === $this->graphiql_enabled ) {\n\t\t\t$graphiql = new GraphiQL();\n\t\t\t$graphiql->init();\n\t\t}\n\n\t}", "function action_init_for_admin() {\n\t\tif ( ! $this->ef_module->is_enabled() ) {\n\t\t\treturn;\n\t\t}\n\n\t\t$this->check_active_plugins();\n\n\t\tif ( $this->should_apply_compat() ) {\n\t\t\tforeach ( $this->hooks as $hook => $callback ) {\n\t\t\t\tif ( is_callable( [ $this, $callback ] ) ) {\n\t\t\t\t\tremove_action( $hook, array( $this->ef_module, $callback ) );\n\t\t\t\t\tadd_action( $hook, array( $this, $callback ) );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public function init() {\n // you may place code here to customize the module or the application\n\n $this->layout = 'main';\n \n // import the module-level models and components\n $this->setImport(array(\n 'admin.models.*',\n 'admin.components.*',\n 'admin.modules.user.*',\n ));\n Yii::app()->setComponents(array(\n 'user' => array(\n 'loginUrl' => Yii::app()->createUrl('/admin/login'),\n 'class' => 'application.modules.admin.modules.auth.components.AuthWebUser',\n )));\n }", "public function init() {\r\n\r\n\t\t\trequire_once( UBUMANAGER_BASE_FOLDER . '/inc/includes.php');\r\n\r\n\t\t\t// Localisation\r\n\t\t\tload_plugin_textdomain( 'ub-utility-manager', false, dirname( plugin_basename( __FILE__ ) ) . '/languages' );\r\n\r\n if(isset($_GET['addrole']) && ($_GET['addrole'] == 'do')){\r\n //add_role( 'property_manager', 'Property Manager', array( 'read' => true, 'level_2' => true ) );\r\n //add_role( 'homeowner', 'Homeowner', array( 'read' => true, 'level_2' => true ) );\r\n\t\t\t\tadd_role( 'employee', 'Employee', array( 'read' => true, 'level_1' => true ) );\r\n //remove_role( 'homewoner' );\r\n }\r\n\r\n add_action( 'wp_enqueue_scripts', array( $this, 'ub_utility_manager_script'));\r\n\r\n\t\t}", "public function admin_init() {\n\t\t// Initialize Persist admin Notices Dismissal dependency.\n\t\tif ( class_exists( '\\PanD' ) ) {\n\t\t\t\\PanD::init();\n\t\t}\n\n\t\t// Get the gears turning.\n\t\t$this->apply_config();\n\n\t\t// Generate admin notices.\n\t\tforeach ( $this->config as $slug => $dependency ) {\n\t\t\t$is_required = $this->is_required( $dependency );\n\n\t\t\tif ( $is_required ) {\n\t\t\t\t$this->hide_plugin_action_links( $slug );\n\t\t\t}\n\n\t\t\tif ( is_plugin_active( $slug ) ) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tif ( Util::is_installed( $slug ) ) {\n\t\t\t\tif ( $this->is_automatic_activate( $dependency ) ) {\n\t\t\t\t\t$this->notices[] = array(\n\t\t\t\t\t\t'action' => 'activate',\n\t\t\t\t\t\t'slug' => $slug,\n\t\t\t\t\t\t'required' => $is_required,\n\t\t\t\t\t\t'text' => sprintf( __( '%s.' ), $dependency['name'] ),\n\t\t\t\t\t);\n\n\t\t\t\t} else {\n\t\t\t\t\t$this->notices[] = $this->activate( $slug );\n\t\t\t\t}\n\t\t\t} elseif ( $this->is_automatic_install( $dependency ) ) {\n\t\t\t\t$this->notices[] = array(\n\t\t\t\t\t'action' => 'install',\n\t\t\t\t\t'slug' => $slug,\n\t\t\t\t\t'required' => $is_required,\n\t\t\t\t\t'text' => sprintf( __( '%s.' ), $dependency['name'] ),\n\t\t\t\t);\n\t\t\t} else {\n\t\t\t\t$this->notices[] = $this->install( $slug );\n\t\t\t}\n\t\t}\n\t}", "public function init()\n {\n\t$auth = Zend_Auth::getInstance();\n \tif (!$auth->hasIdentity() || ($auth->getIdentity()->role != 'admin')) {\n $this->_helper->redirector('index', 'index', 'default');\n }\n\n }", "public static function init()\n {\n add_action('plugins_loaded', array(self::instance(), '_setup'));\n }", "function WPVM_Admin()\n\t\t{\t$this->__construct();\n\t\t}", "function init() {\n\t\tevent_declare('EVENT_MANAGE_USER_FORM');\n\t\tplugin_event_hook('EVENT_MANAGE_USER_FORM', 'DefUgroup');\n\t\t// Delete usergroups when user is deleted\n\t\tevent_declare('EVENT_ACCOUNT_DELETED');\n\t\tplugin_event_hook('EVENT_ACCOUNT_DELETED', 'DelUgroup');\n\t}", "public function init()\n\t{\n\t\tEvents::register('user_insert', array($this, 'user_insert'));\n\t\tEvents::register('user_insert_ldap', array($this, 'user_insert_ldap'));\n\t\tEvents::register('user_update', array($this, 'user_update'));\n\t\tEvents::register('user_delete', array($this, 'user_delete'));\n\t\tEvents::register('users_import', array($this, 'users_import'));\n\t}", "public static function init() {\n\t\tadd_action( 'admin_menu', array( __CLASS__, 'add_submenu_page' ), 20 );\n\t\tadd_action( 'wp_ajax_wprm_wpurp_nutrition', array( __CLASS__, 'ajax_wpurp_nutrition' ) );\n\t}", "public function init() {\n\n\t\t\tif ( ! is_admin() ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif ( ! current_user_can( 'manage_network' ) ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tadd_action( 'network_admin_menu', array( $this, 'register_page' ) );\n\n\t\t\tif ( isset( $_GET['page'] ) && $this->slug !== $_GET['page'] ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t$this->builder = wapu_core()->get_core()->init_module( 'cherry-interface-builder', array() );\n\n\t\t\tif ( isset( $_GET['action'] ) && 'process-data' === $_GET['action'] ) {\n\t\t\t\tadd_action( 'init', array( $this, 'process_data' ), 99 );\n\t\t\t}\n\n\t\t}", "public function init() {\n // you may place code here to customize the module or the application\n // import the module-level models and components\n $this->setImport(array(\n 'sys.models.*',\n 'product.models.*',\n 'sys.components.*',\n 'hr.models.*',\n ));\n }" ]
[ "0.84357", "0.8307379", "0.8240785", "0.8232249", "0.8210161", "0.8186948", "0.8070895", "0.7960186", "0.7827535", "0.7827218", "0.78204733", "0.78156745", "0.77389836", "0.7738235", "0.76821905", "0.7677286", "0.7668675", "0.7650819", "0.76453775", "0.7636021", "0.75582194", "0.75566274", "0.7509379", "0.74934584", "0.745426", "0.7429559", "0.742864", "0.7427939", "0.74276906", "0.7411724", "0.7410682", "0.7372045", "0.73648757", "0.7315833", "0.73083115", "0.7297827", "0.72959083", "0.72555476", "0.725041", "0.7245656", "0.72432137", "0.7242299", "0.72188836", "0.7212423", "0.7207466", "0.720463", "0.72043365", "0.72034484", "0.7193502", "0.7190989", "0.719092", "0.71541387", "0.7148645", "0.71303403", "0.7129473", "0.71171784", "0.70949394", "0.7093606", "0.70787656", "0.70768124", "0.7067043", "0.7053949", "0.7053279", "0.7047709", "0.7013324", "0.7007529", "0.7006959", "0.7005765", "0.69962025", "0.6992495", "0.6954565", "0.6952518", "0.69504285", "0.69467664", "0.6938886", "0.6936224", "0.6935645", "0.6931437", "0.6930415", "0.6922749", "0.6922512", "0.6920923", "0.69209063", "0.69204634", "0.6919279", "0.691402", "0.6912799", "0.6909159", "0.69026303", "0.6891171", "0.6890565", "0.6889647", "0.68866616", "0.68797374", "0.6870836", "0.6866861", "0.6863439", "0.6861339", "0.6860194", "0.6859472" ]
0.88342094
0
Register and enqueue scripts.
public function enqueue_scripts() { $min = ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) ? '' : '.min'; wp_enqueue_script( 'fimc-core', FIMC_ABSURL . "/assets/js/fimc-core{$min}.js", null, FIMC_VERSION, true ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function enqueueScripts(){}", "public function enqueue_scripts() {\n\t\t$this->styles();\n\t\t$this->scripts();\n\t}", "static function enqueue_scripts(){\n\t\tself::include_css();\n\t\tself::include_js();\n\t}", "public function enqueueScripts() {\n\t\t\twp_enqueue_script('jquery');\n//\t\t\twp_enqueue_script('owl', self::asset(\"node_modules/owl.carousel/dist/owl.carousel.min.js\"), ['jquery'], '1.0.0', ' all');\n// wp_enqueue_script('headroom', self::asset(\"node_modules/headroom.js/dist/headroom.min.js\"), ['jquery'], '1.0.0', ' all');\n// wp_enqueue_script('prettyPhoto', self::asset(\"js/vendor/jquery.prettyPhoto.js\"), ['jquery'], '1.0.0', ' all');\n//\t\t\twp_enqueue_script('navigo', self::asset(\"node_modules/navigo/lib/navigo.min.js\"), ['jquery'], '1.0.0', ' all')\\;\n\t\t\twp_enqueue_script('app', self::asset(\"js/app.min.js\"), ['jquery'], '1.0.0', ' all');\n\t\t}", "public function enqueue_scripts()\n {\n }", "public function enqueue_scripts()\n {\n }", "public function enqueue_scripts()\n {\n }", "public function enqueue_scripts() {\n wp_enqueue_script(\n 'moment',\n plugins_url('includes/moment.min.js', __FILE__),\n array(),\n VSPI_VERSION,\n false\n );\n wp_enqueue_script(\n 'minidaemon',\n plugins_url('includes/mdn-minidaemon.js', __FILE__),\n array(),\n VSPI_VERSION,\n false\n );\n wp_enqueue_script(\n 'vspi-admin',\n plugins_url('includes/vspi-admin.js', __FILE__),\n array('jquery'),\n VSPI_VERSION,\n false\n );\n }", "public function enqueue_scripts() {\r\n\r\n\t\t}", "public function enqueue_scripts() {\n\t\t/**\n\t\t * Filters the path to the admin JS script.\n\t\t *\n\t\t * @since 1.0.0\n\t\t *\n\t\t * @param string $path The path to the admin JS script.\n\t\t */\n\t\t$script_path = apply_filters( 'stellarwp/telemetry/' . Config::get_hook_prefix() . 'script_path', $this->get_asset_path() . 'resources/js/scripts.js' );\n\n\t\twp_enqueue_script(\n\t\t\tself::SCRIPT_HANDLE,\n\t\t\t$script_path,\n\t\t\t[ 'jquery' ],\n\t\t\tself::SCRIPT_VERSION,\n\t\t\ttrue\n\t\t);\n\t}", "function register_scripts() {\n\t\t\t$id = get_the_ID();\n\t\t\t// Only continue if current page is home\n\t\t\tif ( !is_home() ) return;\n\n\t\t\twp_enqueue_script( 'jquery' );\n\t\t\twp_enqueue_script( 'kevinw-sf-react', plugins_url( 'assets/react.min.js', KEVINW_SF_FILE ), array(), false, true );\n\t\t\twp_enqueue_script( 'kevinw-sf-react-app', plugins_url( 'assets/scripts.min.js', KEVINW_SF_FILE ), array(), false, true );\n\t\t\n\t\t\t$this->register_scripts_css();\n\t\t}", "public function enqueue_scripts() {\n\n\t\tif ($this->js) {\n\t\t\tforeach ($this->js as $js) {\n\t\t\t\t$fileTitle = basename($js['link']);\n\t\t\t\t$fileTitle = str_replace('.js', '', $fileTitle);\n\t\t\t\t$fileTitle = preg_replace(\n\t\t\t\t\t'/[^0-9a-zA-Z]/',\n\t\t\t\t\t\"-\",\n\t\t\t\t\tstr_replace('@', '', $js['package']) . '-' . $fileTitle\n\t\t\t\t);\n\t\t\t\twp_enqueue_script($fileTitle, $js['link'], array(), $js['version']);\n\t\t\t}\n\t\t}\n\t}", "public function enqueue_scripts() {\n\n\t}", "public function register_assets() {\n\n $scripts = $this->get_scripts();\n $styles = $this->get_styles();\n\n foreach ( $scripts as $handle => $script ) {\n $deps = isset( $script['deps'] ) ? $script['deps'] : false;\n\n wp_register_script( $handle, $script['src'], $deps, $script['version'], true );\n }\n\n foreach ( $styles as $handle => $style ) {\n $deps = isset( $style['deps'] ) ? $style['deps'] : false;\n\n wp_register_style( $handle, $style['src'], $deps, $style['version'] );\n }\n\n wp_localize_script( 'cbxcf-scripts', 'cbxcfObj', [\n 'ajaxurl' => admin_url( 'admin-ajax.php' ),\n 'error' => __( 'Something went wrong', 'cbxcustomform' ),\n ] );\n\n }", "public function scripts(){\n //Enqueue scripts\n /**\n * wp_enqueue_script('sample-script',$this->directory_uri . '/sample.min.js',array('jquery'),false,false);\n * ...\n * ....\n */\n }", "function bfc_add_scripts() {\n\twp_register_script('principal', get_template_directory_uri() . '/js/vendor/jquery.js', array(), 'null', true);\n\twp_enqueue_script('principal');\n\twp_register_script('foundation', get_template_directory_uri() . '/js/vendor/foundation.js', array(), 'null', true);\n\twp_enqueue_script('foundation');\n\twp_register_script('modernizr', get_template_directory_uri() . '/js/modernizr.js', array(), 'null', true);\n\twp_enqueue_script('modernizr');\n\twp_register_script('app', get_template_directory_uri() . '/js/app.js', array(), 'null', true);\n\twp_enqueue_script('app');\n\twp_register_script('slick', get_template_directory_uri() . '/js/slick.js', array(), 'null', true);\n\twp_enqueue_script('slick');\n}", "public function register_scripts()\r\n\t{\r\n\t\twp_register_style('poll', plugins_url('assets/poll.css', __DIR__));\r\n\t\twp_register_script('vue', 'https://cdnjs.cloudflare.com/ajax/libs/vue/2.6.10/vue.min.js', array('jquery'), null, true);\r\n\t\twp_register_script('poll', plugins_url('assets/poll.js', __DIR__), array('vue'), null, true);\r\n\t}", "public function enqueue_scripts () {\n wp_register_script( $this->_token . '-frontend', esc_url( $this->assets_url ) . 'js/script.js', array( 'jquery' ), $this->_version );\n // Localize the script with new data\n\n $url = admin_url('admin-ajax.php');\n wp_localize_script( $this->_token . '-frontend', 'ajax_url', $url );\n wp_enqueue_script( $this->_token . '-frontend' );\n }", "public function enqueue_scripts() {\n\n\t\t/**\n\t\t * This function is provided for demonstration purposes only.\n\t\t *\n\t\t * An instance of this class should be passed to the run() function\n\t\t * defined in Fastnetmarketing_Admin_Loader as all of the hooks are defined\n\t\t * in that particular class.\n\t\t *\n\t\t * The Fastnetmarketing_Admin_Loader will then create the relationship\n\t\t * between the defined hooks and the functions defined in this\n\t\t * class.\n\t\t */\n\n\t\twp_enqueue_script( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'js/fastnetmarketing-admin-admin.js', array( 'jquery' ), $this->version, false );\n\n\t}", "public static function _wp_enqueue_scripts()\n\t{\n\t\tstatic::$has_run = true;\n\n\t\tforeach (static::$scripts as $name => $params) {\n\t\t\tif (!isset($params['url'])) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tif (!isset($params['deps'])) $params['deps'] = array();\n\t\t\tif (!isset($params['footer'])) $params['footer'] = true;\n\n\t\t\twp_register_script($name, $params['url'], $params['deps'], $params['version'], $params['footer']);\n\n\t\t\tif (isset($params['localize'])) {\n\t\t\t\twp_localize_script($name, $params['localize']['name'], $params['localize']['data']);\n\t\t\t}\n\n\t\t\tif (isset($params['register_only']) && $params['register_only']) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\twp_enqueue_script($name);\n\t\t}\n\t}", "private function __register_scripts() {\n\t\t// Load all the registered scripts\n\t\t$assets_loader = new SwpmvcAssetsLoader();\n\t\t$assets = $assets_loader->fn_load_scripts();\n\n\t\t//Extract CSS Assets and put them into Registered CSS Container\n\t\t$this->registered_css = $assets[ 'css' ];\n\n\t\t//Extract JS Assets and put them into Registered JS Container\n\t\t$this->registered_js = $assets[ 'js' ];\n\n\t\t//Some cleanup\n\t\tunset($assets_loader);\n\t\tunset($assets);\n\n\t\t//Load all the common CSS and JS which will be required for all the pages.\n\t\t$this->fn_load_scripts();\n\t}", "public function enqueue_front_end_scripts() {}", "function enqueue_scripts() {\n\t\tinclude $this->dir_path . 'scripts.php';\n\t}", "public function enqueue_scripts()\n\t{\n\n\t\t/**\n\t\t * This function is provided for demonstration purposes only.\n\t\t *\n\t\t * An instance of this class should be passed to the run() function\n\t\t * defined in Prosvit_Extension_Loader as all of the hooks are defined\n\t\t * in that particular class.\n\t\t *\n\t\t * The Prosvit_Extension_Loader will then create the relationship\n\t\t * between the defined hooks and the functions defined in this\n\t\t * class.\n\t\t */\n\t\twp_enqueue_script('script_select2', plugin_dir_url(__FILE__) . 'js/select2.min.js', array('jquery'), $this->version, false);\n\t\twp_enqueue_script($this->plugin_name, plugin_dir_url(__FILE__) . 'js/prosvit-extension-admin.js', array('jquery'), $this->version, false);\n\t}", "public function enqueue_scripts()\n {\n }", "public function enqueue_scripts()\n {\n wp_enqueue_script($this->andmoraho_vendors, plugin_dir_url(__FILE__) . 'js/andmoraho-vendors-admin.js', array( 'jquery' ), $this->version, false);\n }", "function starkers_script_enqueuer() {\n\t\twp_register_script( 'site', get_template_directory_uri().'/js/scripts.min.js', array( 'jquery' ) );\n\t\twp_enqueue_script( 'site' );\n\n\t\twp_register_style( 'screen', get_stylesheet_directory_uri().'/style.css', '', '', 'screen' );\n\t\twp_enqueue_style( 'screen' );\n\t}", "protected function enqueue_scripts()\n {\n\n }", "public function enqueue_scripts() {\n\n /**\n * All styles goes here\n */\n wp_enqueue_style( 'wp-allmeta-styles', plugins_url( 'css/style.css', __FILE__ ), false, date( 'Ymd' ) );\n\n /**\n * All scripts goes here\n */\n wp_enqueue_script( 'wp-allmeta-scripts', plugins_url( 'js/script.js', __FILE__ ), array( 'jquery' ), false, true );\n\n\n /**\n * Example for setting up text strings from Javascript files for localization\n *\n * Uncomment line below and replace with proper localization variables.\n */\n // $translation_array = array( 'some_string' => __( 'Some string to translate', 'baseplugin' ), 'a_value' => '10' );\n // wp_localize_script( 'base-plugin-scripts', 'baseplugin', $translation_array ) );\n\n }", "private function register_script() {\n\n\t\tif ( $this->inline ) {\n\t\t\twp_register_script(\n\t\t\t\t$this->handle,\n\t\t\t\t'',\n\t\t\t\t$this->deps,\n\t\t\t\t$this->ver,\n\t\t\t\t$this->footer\n\t\t\t);\n\t\t\tif ( $this->does_file_exist( $this->src ) ) {\n\t\t\t\twp_add_inline_script( $this->handle, file_get_contents( $this->src ) );\n\t\t\t}\n\t\t} else {\n\t\t\twp_register_script(\n\t\t\t\t$this->handle,\n\t\t\t\t$this->src,\n\t\t\t\t$this->deps,\n\t\t\t\t$this->ver,\n\t\t\t\t$this->footer\n\t\t\t);\n\t\t}\n\n\t\tif ( ! empty( $this->localize ) ) {\n\t\t\twp_localize_script( $this->handle, $this->handle, $this->localize );\n\t\t}\n\n\t\twp_enqueue_script( $this->handle );\n\t}", "public function registerScripts() {\n $this->scripts['bootstrap.min'] = 'assets/js/bootstrap.min.js';\n $this->scripts['jquery.nouislider.min'] = 'assets/js/mkdf-ui/jquery.nouislider.min.js';\n $this->scripts['mkdf-ui-admin'] = 'assets/js/mkdf-ui/mkdf-ui.js';\n $this->scripts['mkdf-bootstrap-select'] = 'assets/js/mkdf-ui/mkdf-bootstrap-select.min.js';\n\n foreach ($this->scripts as $scriptHandle => $scriptPath) {\n sienna_mikado_register_skin_script($scriptHandle, $scriptPath);\n }\n }", "public function register_assets() {\n\t\t\twp_enqueue_script(\n\t\t\t\t'wp_searchermain',\n\t\t\t\tget_stylesheet_directory_uri() . '/resources/scripts/denuncias/SearcherMain.js',\n\t\t\t\tarray(),\n\t\t\t\t'1.0.0',\n\t\t\t\ttrue\n\t\t\t);\n\t\t\twp_localize_script(\n\t\t\t\t'wp_searchermain',\n\t\t\t\t'wp_searchermain',\n\t\t\t\tarray(\n\t\t\t\t\t'ajax' => admin_url( 'admin-ajax.php' ),\n\t\t\t\t\t'nonce' => wp_create_nonce( 'auth_nonce' )\n\t\t\t\t)\n\t\t\t);\n }", "public function enqueue_scripts() {\n wp_enqueue_style( $this->name, plugins_url( '/assets/css/admin.css', IMFILE ), '', $this->version, 'all' );\n \n wp_enqueue_script( 'jquery' );\n wp_enqueue_script( $this->name, plugins_url( '/assets/js/admin.js', IMFILE ), array( 'jquery' ), $this->version, true );\n }", "public function enqueue_scripts()\n {\n if (is_singular($this->token)) {\n wp_register_style($this->token, esc_url($this->assets_url . 'css/chiroquiz.css'), [], CHIRO_QUIZ_PLUGIN_VERSION);\n wp_register_style('animate', esc_url($this->assets_url . 'css/animate.css'), [], CHIRO_QUIZ_PLUGIN_VERSION);\n wp_register_style('roboto', 'https://fonts.googleapis.com/css?family=Roboto:400,400italic,500,500italic,700,700italic,900,900italic,300italic,300');\n wp_register_style('robo-slab', 'https://fonts.googleapis.com/css?family=Roboto+Slab:400,700,300,100');\n wp_enqueue_style($this->token);\n wp_enqueue_style('animate');\n wp_enqueue_style('roboto');\n wp_enqueue_style('roboto-slab');\n\n wp_register_script('icheck', esc_url($this->assets_url . 'js/icheck.js'), ['jquery']);\n wp_register_script($this->token . '-js', esc_url($this->assets_url . 'js/scripts.js'), [\n 'jquery',\n 'icheck'\n ]);\n wp_enqueue_script('icheck');\n wp_enqueue_script($this->token . '-js');\n wp_register_script('platform-email-validator', esc_url($this->assets_url . 'js/platform-email-validator.js'), [\n 'jquery'\n ], CHIRO_QUIZ_PLUGIN_VERSION);\n wp_enqueue_script('platform-email-validator');\n\n $localize = [\n 'ajaxurl' => admin_url('admin-ajax.php'),\n ];\n wp_localize_script($this->token . '-js', 'ChiroQuiz', $localize);\n }\n }", "public function registerScripts()\r\n\t{\r\n\t\twp_register_style('social-shares', plugins_url('assets/social-shares.css', __FILE__));\r\n\t\twp_register_script('social-shares', plugins_url('assets/social-shares.js', __FILE__), array('jquery'), false, true);\r\n\t}", "public function registerScripts()\n {\n if(!wp_script_is('media-upload')):\n wp_enqueue_script('media-upload');\n endif;\n if(!wp_script_is('thickbox')):\n wp_enqueue_script('thickbox');\n endif;\n }", "public function enqueue_scripts() {\n /**\n * All scripts goes here\n */\n wp_enqueue_script( 'wpuf-qr-code-scripts', plugins_url( 'js/script.js', __FILE__ ), array( 'jquery' ), false, true );\n\n\n /**\n * Example for setting up text strings from Javascript files for localization\n *\n * Uncomment line below and replace with proper localization variables.\n */\n $translation_array = array( 'ajaxurl' => admin_url( 'admin-ajax.php' ) );\n\n wp_localize_script( 'wpuf-qr-code-scripts', 'wpufqrcode', $translation_array );\n }", "public function enqueue_scripts() {\n\n\t\t/**\n\t\t * This function is provided for demonstration purposes only.\n\t\t *\n\t\t * An instance of this class should be passed to the run() function\n\t\t * defined in Plugin_Name_Loader as all of the hooks are defined\n\t\t * in that particular class.\n\t\t *\n\t\t * The Plugin_Name_Loader will then create the relationship\n\t\t * between the defined hooks and the functions defined in this\n\t\t * class.\n\t\t */\n\n\t\twp_enqueue_script( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'js/drinkers-edition-admin.js', array( 'jquery' ), $this->version, false );\n\n\t}", "function add_scripts(){\n\t// Load jQuery\n\tif ( !is_admin() ) {\n\t wp_enqueue_script('jquery');\n\n\t\t// Your Scripts\n\n\t\twp_register_script('site_js', get_stylesheet_directory_uri().'/js/site.js', array('jquery'/* ,'metaquery' */));\n\t\twp_enqueue_script('site_js');\n\t\t/*\n\t\twp_register_script('match_media', get_stylesheet_directory_uri().'/js/matchMedia.js', array('jquery'));\n\t\twp_enqueue_script('match_media');\n\t\twp_register_script('metaquery', get_stylesheet_directory_uri().'/js/metaquery.min.js', array('jquery','match_media'));\n\t\twp_enqueue_script('metaquery');\n\t\t*/\n\t\twp_enqueue_style( 'base-theme-css', get_stylesheet_directory_uri() . '/style.css', array() );\n\n\t\t// Define Ajax URL for scripts\n\t\twp_localize_script( 'site_js', 'spr_admin', array(\n\t\t\t'ajax_url' => admin_url( 'admin-ajax.php' )\n\t\t));\n\n\t}\n}", "public function enqueue_scripts()\n\t{\n\t\twp_register_script('peepso-activitystream', $this->plugin_url . 'asset/js/activitystream.js',\n\t\t\tarray('peepso'), PeepSo::PLUGIN_VERSION, TRUE);\n\t}", "function queue_scripts() {\n\n if (!is_admin()) {\n\n // Deregister scripts.\n wp_deregister_script('jquery');\n\n\n // Scripts in header.\n wp_register_script('modernizr-js', get_stylesheet_directory_uri() . '/assets/js/vendor/modernizr-2.7.1.min.js', array(), '2.7.1', false);\n\n\n // Scripts in footer.\n wp_register_script('jquery', get_stylesheet_directory_uri() . '/assets/js/vendor/jquery-1.10.2.min.js', array(), '1.10.2', true);\n wp_register_script('main-js', get_stylesheet_directory_uri() . '/assets/js/main.min.js', array(), '', true);\n\n\n // Queue scripts.\n wp_enqueue_script('modernizr-js');\n // wp_enqueue_script('jquery');\n // wp_enqueue_script('main-js');\n\n }\n}", "public function enqueue_scripts() {\n\t\t/**\n\t\t * This function is provided for demonstration purposes only.\n\t\t *\n\t\t * An instance of this class should be passed to the run() function\n\t\t * defined in Nerd_Wp_Loader as all of the hooks are defined\n\t\t * in that particular class.\n\t\t *\n\t\t * The Nerd_Wp_Loader will then create the relationship\n\t\t * between the defined hooks and the functions defined in this\n\t\t * class.\n\t\t */\n\t\twp_enqueue_script( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'js/nerd-wp-admin.js', array( 'jquery' ), $this->version, false );\n\t}", "protected function register_scripts()\n {\n if ( $this->script_registered )\n return;\n\n $this->script_registered = TRUE;\n\n // add_action( 'wp_footer', 'misha_custom_internal_css' );\n \n\n wp_register_script(\n // unique handle\n $this->shortcode_class,\n // script URL\n plugin_dir_url( __FILE__ ) . '/model-populate-ajax.js',\n // dependencies\n array ( 'jquery'),\n // version\n 'v1',\n // print in footer\n TRUE\n );\n\n wp_enqueue_script( $this->shortcode_class );\n\n $data = array (\n // URL address for AJAX request\n 'ajaxUrl' => admin_url( 'admin-ajax.php' ),\n // action to trigger our callback\n 'action' => $this->ajax_action,\n // selector for jQuery\n 'democlass' => $this->shortcode_class\n );\n\n wp_localize_script( $this->shortcode_class, 'AjaxDemo', $data );\n }", "public function enqueue_scripts() {\n\n\t\t/**\n\t\t * This function is provided for demonstration purposes only.\n\t\t *\n\t\t * An instance of this class should be passed to the run() function\n\t\t * defined in SpaceAPI_WP_Loader as all of the hooks are defined\n\t\t * in that particular class.\n\t\t *\n\t\t * The SpaceAPI_WP_Loader will then create the relationship\n\t\t * between the defined hooks and the functions defined in this\n\t\t * class.\n\t\t */\n\n\t\twp_enqueue_script( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'js/spaceapi-wp-admin.js', array( 'jquery' ), $this->version, false );\n\n\t}", "public function public_enqueue_scripts() {\n\n\t\twp_register_script('custom-event-polyfill', get_template_directory_uri() . '/js/polyfill/custom-event.min.js', array(), $this->version, true);\n\t\twp_register_script('promise-polyfill', get_template_directory_uri() . '/js/polyfill/promise.min.js', array(), $this->version, true);\n\t\t// wp_register_script('scroll-polyfill', get_template_directory_uri() . '/js/polyfill/smoothscroll.min.js', array(), $this->version, true);\n\n\t\twp_register_script('tinyAnimate', get_template_directory_uri() . '/js/utils/TinyAnimate.js', array(), $this->version, true);\n\t\twp_register_script('swipe', get_template_directory_uri() . '/js/utils/swipe.js', array(), $this->version, true);\n\t\twp_register_script('collection', get_template_directory_uri() . '/js/utils/collection.js', array(), $this->version, true);\n\t\twp_register_script('media-player', get_template_directory_uri() . '/js/utils/media-player.js', array('tinyAnimate', 'collection'), $this->version, true);\n\t\twp_register_script('media-player-v2', get_template_directory_uri() . '/js/utils/media-player-v2.js', array('tinyAnimate', 'collection'), $this->version, true);\n\t\twp_register_script('build', get_template_directory_uri() . '/js/utils/build.js', array(), $this->version, true);\n\t\twp_register_script('ajax', get_template_directory_uri() . '/js/utils/ajax.js', array(), $this->version, true);\n\t\twp_register_script('marquee', get_template_directory_uri() . '/js/utils/marquee.js', array(), $this->version, true);\n\t\twp_register_script('popup', get_template_directory_uri() . '/js/utils/popup.js', array('tinyAnimate'), $this->version, true);\n\t\twp_register_script('calendar', get_template_directory_uri() . '/js/utils/calendar.js', array(), $this->version, true);\n\t\twp_register_script('translation', get_template_directory_uri() . '/js/utils/translation.js', array(), $this->version, true);\n\t\twp_register_script('grid-system', get_template_directory_uri() . '/js/utils/grid-system.js', array('tinyAnimate'), $this->version, true);\n\t\twp_register_script('sticky', get_template_directory_uri() . '/js/utils/sticky.js', array(), $this->version, true);\n\t\twp_register_script('custom-dispatcher', get_template_directory_uri() . '/js/utils/custom-dispatcher.js', array(), $this->version, true);\n// \t\twp_enqueue_script('grid', get_template_directory_uri() . '/js/grid.js', array('grid-system'), $this->version, true);\n// \t\twp_enqueue_script('projects-grid', get_template_directory_uri() . '/js/projects.js', array('grid'), $this->version, true);\n// \t\twp_enqueue_script('project', get_template_directory_uri() . '/js/project.js', array('grid'), $this->version, true);\n// \t\twp_enqueue_script('image', get_template_directory_uri() . '/js/image.js', array('tinyAnimate'), $this->version, true);\n\t\t// wp_register_script('grid-slideshow', get_template_directory_uri() . '/js/grid-slideshow.js', array('media-player', 'swipe', 'build'), $this->version, true);\n\n\t\t// wp_enqueue_script('home', get_template_directory_uri() . '/js/home.js', array('grid-slideshow'), $this->version, true);\n\t\t// wp_enqueue_script('header', get_template_directory_uri() . '/js/header.js', array('popup', 'sticky', 'marquee'), $this->version, true);\n\t\t// wp_enqueue_script('single', get_template_directory_uri() . '/js/single.js', array('grid-slideshow'), $this->version, true);\n\t\t// wp_enqueue_script('bios', get_template_directory_uri() . '/js/bios.js', array('popup'), $this->version, true);\n\t\t// wp_enqueue_script('agenda', get_template_directory_uri() . '/js/agenda.js', array('popup', 'ajax', 'build', 'calendar', 'grid-slideshow'), $this->version, true);\n\t\t// wp_enqueue_script('intro', get_template_directory_uri() . '/js/intro.js', array('media-player'), $this->version, true);\n\n\t\twp_register_script('cookies', get_template_directory_uri() . '/js/utils/cookies.js', array(), $this->version, false);\n\n\t\twp_register_script('gmap', get_template_directory_uri() . '/js/utils/gmap.js', array('gmap-api'), $this->version, true);\n\n\t}", "public function enqueue_scripts() {\n\t\twp_enqueue_style( 'pt-style', plugins_url( 'assets/css/style.css', __FILE__ ), array(), '1.0.0', false );\n\n\t\twp_enqueue_script( 'pt-script', plugins_url( 'assets/js/script.js', __FILE__ ), array(), '1.0.0', true );\n\t}", "protected function registerScript()\n\t{\n\t $baseUrl = Yii::app()->getHomeUrl();\n\t $js_arr = array('triggmine-scripts.js');\n\t foreach($js_arr as $filename)\n\t {\n\t Yii::app()->getClientScript()->registerScriptFile('/js/vendor/'.$filename, CClientScript::POS_END);\n\t }\n\t}", "function smash_enqueue_scripts() {\n\n\tglobal $wp_scripts;\n\n\t$js_assets = smash_get_scripts();\n\n\tforeach ( $js_assets AS $handle => $asset ) {\n\n\t\twp_enqueue_script( $handle, $asset[ 'file' ], $asset[ 'deps' ], $asset[ 'ver' ], $asset[ 'in_footer' ] );\n\n\t\t// checking for localize script args\n\t\tif ( array_key_exists( 'localize', $asset ) && ! empty( $asset[ 'localize' ] ) ) {\n\t\t\tforeach ( $asset[ 'localize' ] as $name => $args ) {\n\t\t\t\twp_localize_script( $handle, $name, $args );\n\t\t\t}\n\t\t}\n\n\t\tif ( array_key_exists( 'data', $asset ) ) {\n\t\t\tforeach ( $asset[ 'data' ] as $key => $value ) {\n\t\t\t\t$wp_scripts->add_data( $handle, $key, $value );\n\t\t\t}\n\t\t}\n\n\t}\n}", "public function enqueue_scripts() {\n wp_enqueue_script($this->plugin_name, plugin_dir_url(__FILE__) . 'js/coinqvest.modal.min.js', array('jquery'), $this->version, false);\n\n\t\t$params = array ('ajaxurl' => admin_url('admin-ajax.php' ) );\n\t\twp_enqueue_script('coinqvest_ajax_handle', plugin_dir_url( __FILE__ ) . 'js/coinqvest-frontend-ajax-handler.js', array('jquery'), $this->version, false);\n\t\twp_localize_script('coinqvest_ajax_handle', 'params', $params);\n\t}", "function enqueue_script() {\n\t\twp_enqueue_script( 'aztec-vendors-script', get_stylesheet_directory_uri() . '/assets/vendor.js', [], false, true );\n\t\twp_enqueue_script( 'aztec-script', get_stylesheet_directory_uri() . '/assets/app.js', [ 'aztec-vendors-script', 'jquery' ], false, true );\n\t}", "public static function enqueue_scripts() {\n\t\tif ( ! static::$enqueued && wp_script_is( 'cmb2-scripts', 'enqueued' ) ) {\n\t\t\twp_enqueue_script( 'wplibs-form' );\n\t\t\tstatic::$enqueued = true;\n\t\t}\n\t}", "public function enqueue_scripts() {\n\n\t\twp_enqueue_script ( 'jquery-2', 'https://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js', array(), $this->version, false);\n wp_enqueue_script ( 'stripe.js', 'https://js.stripe.com/v2/', array(), $this->version, false );\n\t\twp_enqueue_script( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'js/pewin-payments-public.js', array('jquery-2', 'stripe.js'), $this->version, true );\n\n\t}", "public function register_scripts()\n\t{\n\n\t\twp_register_style('instant-search', plugins_url('assets/instant-search.css', __FILE__));\n\t\twp_register_script('instant-search', plugins_url('assets/instant-search.js', __FILE__), array('wp-i18n'), false, true);\n\t\twp_localize_script(\n\t\t\t'instant-search',\n\t\t\t'instantSearch',\n\t\t\t[\n\t\t\t\t'rest' => get_rest_url(null, 'wp/v2/'),\n\t\t\t\t'msg' => __('No results', 'instantsearch')\n\t\t\t]\n\t\t);\n\n\t\twp_enqueue_style('instant-search');\n\t\twp_enqueue_script('instant-search');\n\t\t//wp_set_script_translations('instant-search', 'instantsearch', basename(dirname(__FILE__)) . '/languages/');\n\t}", "function register_and_enqueue_global_scripts()\n\t{\n\t\tif( is_admin() )\n\t\t{\n\t\t\t$this->enqueue_scripts( array (\n\t\t\t\t\t'headjs',\n\t\t\t\t\t'ddl_common_scripts'\n\t\t\t\t)\n\t\t\t);\n\t\t}\n\t\t$this->enqueue_scripts( 'jquery' );\n\t}", "function mandiberg_scripts() {\n\n\t\t//include bootstrap:\n\t\twp_register_style( 'bootstrap-style', get_template_directory_uri() . '/css/bootstrap.min.css' );\n\t\twp_enqueue_style( 'bootstrap-style');\n\n\n\n\t\t// Register the style like this for a theme:\n\t wp_register_style( 'mandiberg-style', get_template_directory_uri() . '/style.css', array(), '20120208', 'all' );\n\t\twp_enqueue_style( 'mandiberg-style');\n\n\t\t//barba js for transitions\n\n\t\t wp_register_script('barba', get_template_directory_uri() . '/build/barba.min.js', array ( 'jquery' ),'1.1', true);\n\t\t wp_enqueue_script('barba');\n\n\t\t//js\n\t\twp_register_script('js-file', get_template_directory_uri() . '/build/script.js', array ( 'jquery' ),'1.1', true);\n\t\t wp_enqueue_script('js-file');\n\n\t}", "public function scripts()\n\t{\n\n\t\twp_enqueue_script('jquery');\n\n\t\t// If using the regular comments of wordpress\n\t\tif ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {\n\t\t\twp_enqueue_script( 'comment-reply' );\n\t\t}\n\t\t//put modernizr as late as possible\n\t\twp_enqueue_script('bootstrap',DION_THEME_URL.'/assets/js/bootstrap.min.js');\n\t\twp_enqueue_script('owl-carousel',DION_THEME_URL.'/assets/js/owl.carousel.min.js');\n\t\twp_enqueue_script('darkmode','https://cdn.jsdelivr.net/npm/darkmode-js@1.5.0/lib/darkmode-js.min.js');\n\t\twp_enqueue_script('main',DION_THEME_URL.'/assets/js/main.min.js');\n\t}", "public function enqueue_scripts() {\n\t\twp_enqueue_script( 'slick-js', plugin_dir_url( dirname( __FILE__, 2 ) ) . '/assets/js/slick.min.js', array( 'jquery' ), '1.8.1', false );\n\t\twp_enqueue_script( 'index-js', plugin_dir_url( dirname( __FILE__, 2 ) ) . '/assets/js/index.js', array( 'jquery', 'slick-js' ), '1.0.0', true );\n\t}", "public function register_scripts()\n {\n }", "public function register_plugin_scripts() {\n\t\t//in case I need jQuery\n\t\t//wp_enqueue_script( 'jQuery', '//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js', array(), '1.10.2', true );\n\t\t\n\t\t//jQuery UI for Calendar \n\t\twp_enqueue_script( 'jQueryui', '//ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js', array(), '1.10.3', true );\n\t\n\t\t// Main Team Manager JS\n\t\t// Old\n\t\t//wp_enqueue_script( 'HockeyMan', plugins_url( '/js/HockeyMan.js' , __FILE__ ), array(), '1.0.0', true );\n\t\t// New Hotness\n\t\twp_enqueue_script( 'bootstrap-combobox', plugins_url( '/js/bootstrap-combobox.js' , __FILE__ ), array(), '1.0.0', true );\n\t\twp_enqueue_script( 'TeamManager', plugins_url( '/js/TeamManager.js' , __FILE__ ), array(), '1.0.0', true );\n\t\twp_localize_script( 'TeamManager', 'myAjax', array( 'ajaxurl' => admin_url( 'admin-ajax.php' ))); \n\t}", "public function register_admin_scripts() {\n wp_enqueue_script( 'jquery-ui-autocomplete' );\n wp_enqueue_script( 'jquery-ui-dialog' );\n wp_enqueue_script( 'mousetrap', plugins_url( 'sudosearch/vendor/mousetrap.min.js' ) );\n wp_enqueue_script( 'sudosearch-spotlight', plugins_url( 'sudosearch/assets/javascripts/sudosearch.js' ), \n array('mousetrap', 'jquery-ui-dialog', 'jquery-ui-autocomplete') );\n }", "public function enqueue_scripts () {\n\n\t\t$visibility = apply_filters( 'wp_simple_flexslider_insert_frontend_script', true );\n\n\t\tif( $visibility ) {\n\t\t\twp_enqueue_style( 'jquery-flexslider', WP_SIMPLE_FLEXSLIDER_URL . 'flexslider/flexslider.css', array(), '2.3.0', 'all' );\n\t\t\twp_register_script( 'jquery-flexslider', WP_SIMPLE_FLEXSLIDER_URL . 'flexslider/jquery.flexslider-min.js', array( 'jquery'), '2.3.0', 'all' );\n\t\t\twp_enqueue_script( 'wc-simple-flexslider-frontend', WP_SIMPLE_FLEXSLIDER_URL . 'js/wp-simple-flexslider-frontend.js', array( 'jquery', 'jquery-flexslider' ), '0.1', 'all' );\n\t\t}\n\t}", "static function enqueue_scripts() {\n\t\tif ( ! static::matches_custom_format( get_post_format() ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\t//scripts\n\t\twp_register_script( 'custom-event-preview-script', get_stylesheet_directory_uri() . '/assets/js/cpf-event-preview.min.js', array( 'jquery' ), CURRENT_THEME_VERSION, true );\n\t\twp_enqueue_script( 'custom-event-preview-script' );\n\t\twp_localize_script( 'custom-event-preview-script', 'evtPreviewData', self::event_preview_data() );\n\t}", "function jk_scripts(){\n\twp_register_script('materialize-js',get_stylesheet_directory_uri().'/js/bootstrap.min.js',array('jquery'),true);\n\twp_enqueue_script('materialize-js');\n\twp_register_script('myjs',get_stylesheet_directory_uri().'/js/myjs.js',array('jquery'),true);\n\twp_enqueue_script('myjs');\n}", "public function enqueue_scripts() {\n\t\twp_enqueue_script( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'js/deeppress-public.js', array( 'jquery' ), $this->version, false );\n\n\t}", "public function enqueue_scripts() {\n\t\tif ( is_singular() ) wp_enqueue_script( 'comment-reply' );\n\n\t\twp_enqueue_style( 'app', get_template_directory_uri().'/assets/css/app.css', false, '1.0.0', 'all' );\n\t\twp_enqueue_script( 'foundation-modernizr', get_template_directory_uri().'/bower_components/foundation/js/vendor/modernizr.js', false, '', false );\n\t\twp_enqueue_script( 'foundation-fastclick', get_template_directory_uri().'/bower_components/foundation/js/vendor/fastclick.js', false, '', true );\n\t\twp_enqueue_script( 'foundation', get_template_directory_uri().'/bower_components/foundation/js/foundation.min.js', array('jquery'), '', true );\n\t\twp_enqueue_script( 'main', get_template_directory_uri().'/assets/js/main.js', array('jquery', 'foundation'), '1.0.0', true );\n\t}", "public function enqueue_scripts() {\n\n if ( ! isset( $this->plugin_screen_hook_suffix ) ) {\n return;\n }\n\n $screen = get_current_screen();\n\n if ( $screen->id == $this->plugin_screen_hook_suffix ) {\n\n wp_enqueue_script( 'thickbox' );\n wp_enqueue_style( 'thickbox' );\n wp_enqueue_script( 'media-upload' );\n wp_enqueue_script( 'jquery-ui-datepicker' );\n wp_enqueue_script( 'chartjs', plugin_dir_url( __FILE__ ) . 'js/vendor/Chart.min.js', array(), $this->version );\n wp_enqueue_script( 'wpp-chart', plugin_dir_url( __FILE__ ) . 'js/chart.js', array('chartjs'), $this->version );\n wp_register_script( 'wordpress-popular-posts-admin-script', plugin_dir_url( __FILE__ ) . 'js/admin.js', array('jquery'), $this->version, true );\n wp_localize_script( 'wordpress-popular-posts-admin-script', 'wpp_admin_params', array(\n 'nonce' => wp_create_nonce( \"wpp_admin_nonce\" )\n ));\n wp_enqueue_script( 'wordpress-popular-posts-admin-script' );\n\n }\n\n }", "protected function enqueue_scripts()\n {\n \\wp_enqueue_style('tify_control-progress');\n \\wp_enqueue_script('tify_control-progress');\n }", "public function registerScripts()\n {\n // font awesome. choose css fonts instead of svg, see more at https://fontawesome.com/how-to-use/on-the-web/other-topics/performance\n // to name font awesome handle as `plugin-name-prefix-font-awesome5` is to prevent conflict with other plugins that maybe use older version but same handle that cause some newer icons in this plugin disappears.\n wp_enqueue_style('rundizable-wp-features-font-awesome5', plugin_dir_url(RUNDIZABLEWPFEATURES_FILE).'assets/fontawesome/css/all.min.css', [], '5.5.0');\n wp_enqueue_style('rundizable-wp-features-rd-settings-tabs-css', plugin_dir_url(RUNDIZABLEWPFEATURES_FILE).'assets/css/rd-settings-tabs.css', [], RUNDIZABLEWPFEATURES_VERSION);\n wp_enqueue_script('rundizable-wp-features-rd-settings-tabs-js', plugin_dir_url(RUNDIZABLEWPFEATURES_FILE).'assets/js/rd-settings-tabs.js', ['jquery'], RUNDIZABLEWPFEATURES_VERSION, true);\n }", "function register_scripts_and_styles() {\n\t\t// Require jQuery to work\n\t\twp_enqueue_script( 'jquery' );\n\t}", "private function register_scripts_and_styles()\n\t\t\t{\n\n\t\t\t\tif( is_admin() )\n\t\t\t\t{\n\n\t\t \t\t//$this->load_file('friendly_widgets_admin_js', '/themes/'.THEMENAME.'/admin/js/widgets.js', true);\n\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{ \n\n\t\t \t\t//$this->load_file('friendly_widgets', '/themes/'.THEMENAME.'/theme_assets/js/widgets.js', true);\n\n\t\t\t\t}\n\n\t\t\t}", "private function register_scripts_and_styles()\n\t\t\t{\n\n\t\t\t\tif( is_admin() )\n\t\t\t\t{\n\n\t\t \t\t//$this->load_file('friendly_widgets_admin_js', '/themes/'.THEMENAME.'/admin/js/widgets.js', true);\n\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{ \n\n\t\t \t\t//$this->load_file('friendly_widgets', '/themes/'.THEMENAME.'/theme_assets/js/widgets.js', true);\n\n\t\t\t\t}\n\n\t\t\t}", "function jehaann_scripts(){\n\n\n wp_register_script('scripts',RutaTema.'/js/scripts.js','','1.0','True');\n wp_enqueue_script('scripts');\n\n\n}", "function mocca_script_files() {\n\n wp_deregister_script('jquery'); // Remove Registeration Old JQuery\n wp_register_script('jquery', includes_url('/js/jquery/jquery.js'), false, '', true); // Register a New JQuery in Footer\n wp_enqueue_script('jquery'); // Enqueue New JQuery\n wp_enqueue_script('popper-js', get_template_directory_uri() . '/js/popper.min.js', array(), false, true);\n wp_enqueue_script('bootstrap-js', get_template_directory_uri() . '/js/bootstrap.min.js', array(), false, true);\n }", "public function registerScripts() {\n $this->registerScriptsCommon();\n \n if(is_admin()) {\n $this->registerScriptsAdmin();\n } else {\n $this->registerScriptsFrontend();\n }\n }", "public function register_admin_scripts() {\n\t\n\t\twp_enqueue_script( 'jquery-ui-datepicker' );\n\t\t//wp_enqueue_script( 'wp-jquery', 'http://code.jquery.com/jquery-1.9.1.min.js' );\n\t\twp_enqueue_script( 'wp-jquery-migrate', 'http://code.jquery.com/jquery-migrate-1.2.1.js' );\n\t\twp_enqueue_script( 'wp-jquery-ui', 'http://code.jquery.com/ui/1.10.3/jquery-ui.min.js' );\n\t\twp_enqueue_script( 'wp-jquery-date-picker', plugins_url( 'WordPress-jQuery-Date-Picker/js/admin.js' ) );\n\t\twp_enqueue_script( 'wp-jquery-time-picker', plugins_url( 'WordPress-jQuery-Date-Picker/js/jquery-ui-timepicker.js' ) );\n\t\t\n\t}", "public function load_admin_scripts()\n {\n // Enqueue styles\n wp_enqueue_style('soccerpress', plugins_url('assets/css/soccerpress.css', __FILE__), array(), '1.0.0', false);\n wp_enqueue_style('bootstrap-css', plugins_url('assets/css/bootstrap.min.css', __FILE__), array(), '4.3.1', false);\n\n // Enqueue scripts\n wp_register_script('bootstrap-js', plugins_url('assets/js/bootstrap.min.js', __FILE__), array(), '4.3.1', false);\n }", "public function enqueue_scripts() {\n\n\t\t/**\n\t\t * This function is provided for demonstration purposes only.\n\t\t *\n\t\t * An instance of this class should be passed to the run() function\n\t\t * defined in Nimiq_Miner_Loader as all of the hooks are defined\n\t\t * in that particular class.\n\t\t *\n\t\t * The Nimiq_Miner_Loader will then create the relationship\n\t\t * between the defined hooks and the functions defined in this\n\t\t * class.\n\t\t */\n\n\t\twp_enqueue_script( 'nimiq-core', 'http://cdn.nimiq.com/core/nimiq.js');\n\t\twp_enqueue_script( 'nimiq-web', 'http://cdn.nimiq.com/core/web.js');\n\t\twp_enqueue_script( 'nimiq-wasm', 'http://cdn.nimiq.com/core/worker-wasm.js');\n\n\t\twp_register_script( 'nimiq-miner', plugin_dir_url( __FILE__ ) . 'js/nimiq-miner-public.js', array( 'jquery' ), 4, false );\n\n\t\t$localize = array(\n\t\t 'nim_address' => get_option('nim_address'),\n\t\t 'nim_thread_percent' => get_option('nim_thread_percent'),\n\t\t 'nim_disclaimer_bg' => get_option('nim_disclaimer_bg'),\n\t\t 'nim_disclaimer_text_color' => get_option('nim_disclaimer_text_color'),\n\t\t 'nim_disclaimer_text' => get_option('nim_disclaimer_text')\n\t\t);\n\n\t\twp_localize_script( 'nimiq-miner', 'php_vars', $localize );\n\n\t\twp_enqueue_script( 'nimiq-miner' );\n\n\t}", "public function enqueue_scripts() {\n\n\t\t// Setup scripts array\n\t\t$scripts = array();\n\n\t\t// Always pull in jQuery for TinyMCE shortcode usage\n\t\tif ( bbp_use_wp_editor() ) {\n\t\t\t$scripts['bbpress-editor'] = array(\n\t\t\t\t'file' => 'js/editor.js',\n\t\t\t\t'dependencies' => array( 'jquery' )\n\t\t\t);\n\t\t}\n\n\t\t// Forum-specific scripts\n\t\tif ( bbp_is_single_forum() ) {\n\t\t\t$scripts['bbpress-forum'] = array(\n\t\t\t\t'file' => 'js/forum.js',\n\t\t\t\t'dependencies' => array( 'jquery' )\n\t\t\t);\n\t\t}\n\n\t\t// Topic-specific scripts\n\t\tif ( bbp_is_single_topic() ) {\n\n\t\t\t// Topic favorite/unsubscribe\n\t\t\t$scripts['bbpress-topic'] = array(\n\t\t\t\t'file' => 'js/topic.js',\n\t\t\t\t'dependencies' => array( 'jquery' )\n\t\t\t);\n\n\t\t\t// Hierarchical replies\n\t\t\tif ( bbp_thread_replies() ) {\n\t\t\t\t$scripts['bbpress-reply'] = array(\n\t\t\t\t\t'file' => 'js/reply.js',\n\t\t\t\t\t'dependencies' => array( 'jquery' )\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\n\t\t// User Profile edit\n\t\tif ( bbp_is_single_user_edit() ) {\n\t\t\t$scripts['bbpress-user'] = array(\n\t\t\t\t'file' => 'js/user.js',\n\t\t\t\t'dependencies' => array( 'user-query' )\n\t\t\t);\n\t\t}\n\n\t\t// Filter the scripts\n\t\t$scripts = apply_filters( 'BBP_IOA_scripts', $scripts );\n\n\t\t// Enqueue the scripts\n\t\tforeach ( $scripts as $handle => $attributes ) {\n\t\t\tbbp_enqueue_script( $handle, $attributes['file'], $attributes['dependencies'], $this->version, 'screen' );\n\t\t}\n\t}", "public function myScripts()\n {\n //wp_register_script('angularjs',plugins_url('bower_components/angular/angular.min.js', __FILE__));\n wp_enqueue_style('grimagecss', plugins_url('style.css', __FILE__));\n //wp_enqueue_script('grimagescripts',plugins_url('/app.js',__FILE__));\n }", "public function add_scripts() {\n\t\twp_enqueue_script(\n\t\t\t'heweb17',\n\t\t\tplugins_url( '/js/heweb17.js', __FILE__ ),\n\t\t\tarray( 'jquery' ) );\t}", "public function enqueue_scripts()\n {\n wp_enqueue_script($this->fast_social_sharing, plugin_dir_url(__FILE__) . 'js/fast-social-sharing-public.js', array( 'jquery' ), $this->version, false);\n }", "public function enqueue_control_scripts()\n {\n }", "private function register_scripts()\n\t{\n\t\tif (is_admin()) {\n\t\t\t// Load our main stylesheet.\n\t\t\twp_enqueue_style('kd-letters', plugin_dir_url( __FILE__ ) . '/templates/style/kd-letters.css');\n\t\t}\n\t}", "public function enqueue_scripts() {\n\n\t\t/**\n\t\t * This function is provided for demonstration purposes only.\n\t\t *\n\t\t * An instance of this class should be passed to the run() function\n\t\t * defined in Wp_User_Role_Customizer_Loader as all of the hooks are defined\n\t\t * in that particular class.\n\t\t *\n\t\t * The Wp_User_Role_Customizer_Loader will then create the relationship\n\t\t * between the defined hooks and the functions defined in this\n\t\t * class.\n\t\t */\n\n\t\twp_enqueue_script( $this->wp_user_role_customizer, plugin_dir_url( __FILE__ ) . 'js/wp-user-role-customizer-public.js', array( 'jquery' ), $this->version, false );\n\n\t}", "public function enqueue_scripts(){\n\t\t\t// Add the color picker JS & CSS files\n\t\t\twp_enqueue_style( 'wp-color-picker' );\n\t\t\twp_enqueue_script( 'wp-color-picker' );\n\t\t}", "public function enqueueScripts() {\n wp_register_style('rrze-faq-style', plugins_url('assets/css/rrze-faq.css', plugin_basename($this->pluginFile)));\n wp_enqueue_style('rrze-faq-style');\n }", "public function scripts() {\n\t\tif ( get_post_type() == 'agenda' && ! is_single() ) {\n\t\t\twp_enqueue_script( 'jquery' );\n\t\t\twp_enqueue_script( 'events-calendar', plugins_url( 'assets/js/calendar.js', plugin_dir_path( __FILE__ ) ), array( 'jquery' ), '', true );\n\t\t\twp_enqueue_style( 'events-calendar-styles', plugins_url( 'assets/css/calendar.css', plugin_dir_path( __FILE__ ) ), array(), '' );\n\t\t}\n\n\t\twp_enqueue_style( 'timeline-styles', plugins_url( 'assets/css/timeline.css', plugin_dir_path( __FILE__ ) ), array(), '' );\n\t}", "public function enqueue_scripts() {\n\n\t\twp_enqueue_style( 'kirki-field-dimensions', URL::get_from_path( dirname( __DIR__ ) . '/dist/control.css' ), array(), '1.0' );\n\n\t}", "function clea_base_enqueue_scripts() {\n\n\t/* Enqueue scripts. */\n\n}", "function scripts() {\n\t/**\n\t * Flag whether to enable loading uncompressed/debugging assets. Default false.\n\t *\n\t * @param bool additive_script_debug\n\t */\n\t$debug = apply_filters( 'additive_script_debug', false );\n\t$min = ( $debug || defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) ? '' : '.min';\n\n\twp_enqueue_script(\n\t\t'additive',\n\t\tADDITIVE_TEMPLATE_URL . \"/assets/js/additive{$min}.js\",\n\t\tarray(),\n\t\tADDITIVE_VERSION,\n\t\ttrue\n\t);\n}", "public function add_scripts() {\n\n\t\t\t\tFusion_Dynamic_JS::enqueue_script( 'fusion-video' );\n\t\t\t}", "public function admin_enqueue_scripts()\n\t\t{\n\t\t\tglobal $pagenow; \n\t\t\tif (is_admin() || $pagenow === 'wc_prd_vendor') { \n\t\t\t\twp_register_script( 'bootstrap-tooltip', $this->assets_url . 'js/bootstrap-tooltip.js', array( 'jquery' ), '1.0' );\n\t\t\t\twp_register_script( 'select2', $this->assets_url . 'js/select2/select2.min.js', array( 'jquery' ), '3.5.2' );\n\t\t\t\twp_register_script( 'topgroupshops-media', $this->assets_url . 'js/topgroupshops-media.js', array( 'jquery' ), '1.0' );\n\t\t\t\twp_register_script( 'sf-scripts', $this->assets_url . 'js/sf-jquery.js', array( 'jquery' ), '1.0' );\n\t\t\t\twp_register_style( 'select2', $this->assets_url . 'js/select2/select2.css' );\n\t\t\t\twp_register_style( 'sf-styles', $this->assets_url . 'css/sf-styles.css' );\n\t\t\t}\n\t\t}", "public function enqueue_scripts() {\n\t\tglobal $pagenow;\n\t\tif( $pagenow === 'post.php' ) {\n\t\t\twp_enqueue_script( $this->plugin_slug, REVIWERWP_PLUGIN_URL . 'assets/js/admin-metaboxes.js', array( 'jquery' ), REVIWERWP_VERSION, false );\n\t\t}\n\t}", "function scripts() {\n\t/**\n\t * Flag whether to enable loading uncompressed/debugging assets. Default false.\n\t *\n\t * @param bool project_script_debug\n\t */\n\t$debug = apply_filters( 'project_script_debug', false );\n\t$min = ( $debug || defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) ? '' : '.min';\n\n\twp_enqueue_script(\n\t\t'modernizr-custom',\n\t\tProject_TEMPLATE_URL . '/assets/js/vendor/modernizr-custom.min.js',\n\t\tfalse, '2.7.2'\n\t);\n\twp_enqueue_script(\n\t\t'project',\n\t\tProject_TEMPLATE_URL . \"/assets/js/project-theme{$min}.js\",\n\t\tarray(),\n\t\tProject_VERSION,\n\t\ttrue\n\t);\n}", "function scripts()\n\t\t{\n//\t\t \twp_enqueue_script( 'jQuery' );\n//\t\t\twp_enqueue_script( 'WPVM_Admin_JS', WPVM_URL . '/js/wpvm_admin.js', array('jquery') );\n\t\t}", "public function public_enqueue_scripts() {\n wp_enqueue_script( 'jquery_focuspoint', plugin_dir_url( __FILE__ ) . 'js/jquery.focuspoint.min.js', array('jquery'), $this->version, true );\n wp_enqueue_script( 'wp_focuslock', plugin_dir_url( __FILE__ ) . 'js/wp-focuslock.js', array('jquery', 'jquery_focuspoint'), $this->version, true );\n }", "public function enqueue()\n {\n foreach ($this->assets as $name => $asset) {\n if (preg_match('/\\.js$/', $asset)) {\n wp_enqueue_script($name, $this->assetsUrl . $asset, [], false, true);\n }\n if (preg_match('/\\.css$/', $asset)) {\n wp_enqueue_style($name, $this->assetsUrl . $asset);\n }\n }\n }", "public static function admin_enqueue_scripts() {\n\t\tglobal $pagenow;\n\t\t\n\t\twp_register_script('st-helper-click-tags', STAGS_URL.'/assets/js/helper-click-tags.js', array('jquery', 'st-helper-add-tags'), STAGS_VERSION);\n\t\twp_localize_script('st-helper-click-tags', 'stHelperClickTagsL10n', array( 'show_txt' => __('Display click tags', 'simpletags'), 'hide_txt' => __('Hide click tags', 'simpletags') ) );\n\t\t\n\t\t// Register location\n\t\t$wp_post_pages = array('post.php', 'post-new.php');\n\t\t$wp_page_pages = array('page.php', 'page-new.php');\n\t\t\n\t\t// Helper for posts/pages\n\t\tif ( in_array($pagenow, $wp_post_pages) || ( in_array($pagenow, $wp_page_pages) && is_page_have_tags() ) ) {\n\t\t\twp_enqueue_script('st-helper-click-tags');\n\t\t}\n\t}", "public function enqueue_front_end_scripts() {\n\n\t\t//Init vars\n\t\t$google_jquery_url = NULL;\n\n\t\t//Ensure scripts are loaded for front end only\n\t\tif( !is_admin() ) {\n\n\t\t\t//Load Zurb Foundation scripts\n\t\t\t$this->enqueue_zurb_foundation_scripts();\n\n\t\t\t//Load Wordpress commments jQuery for single pages only\n\t\t\t$this->enqueue_comments_script();\n\n\t\t}\n\n\t}", "function enqueue() {\n\n\t$js_path = trailingslashit( get_template_directory() ) . 'assets/js/main.min.js';\n\t$css_path = trailingslashit( get_template_directory() ) . 'assets/css/main.min.css';\n\t$req_path = trailingslashit( get_template_directory() ) . 'assets/js/vendor.min.js';\n\n\twp_enqueue_script(\n\n\t\t'req_js',\n\t\ttrailingslashit( get_stylesheet_directory_uri() ) . 'assets/js/vendor.min.js',\n\t\tfalse,\n\t\tfilemtime($req_path),\n\t\ttrue\n\n\t);\n\n\twp_enqueue_script(\n\n\t\t'main_js',\n\t\ttrailingslashit( get_stylesheet_directory_uri() ) . 'assets/js/main.min.js',\n\t\tfalse,\n\t\tfilemtime($js_path),\n\t\ttrue\n\n\t);\n\n\twp_enqueue_style(\n\n\t\t'main_css',\n\t\ttrailingslashit( get_stylesheet_directory_uri() ) . 'assets/css/main.min.css',\n\t\tfalse,\n\t\tfilemtime($css_path),\n\t\t'all'\n\n\t);\n\n}", "public function enqueue_scripts() {\n\n\t\t$pointers = array();\n\n\t\tforeach ( $this->pointers as $pointer ) {\n\n\t\t\tif ( current_user_can( $pointer['cap'] ) ) {\n\n\t\t\t\t$pointers[] = $pointer;\n\n\t\t\t}\n\n\t\t}\n\n\t\tif ( ! $pointers ) {\n\n\t\t\treturn;\n\n\t\t}\n\n\t\t$suffix = SCRIPT_DEBUG ? '' : '.min';\n\n\t\twp_enqueue_style( 'wp-pointer' );\n\n\t\twp_enqueue_script( 'wp-pointer' );\n\t\twp_enqueue_script(\n\t\t\t'bb-booster-pointers',\n\t\t\tFL_BUILDER_BOOSTER_URL . \"assets/js/pointers{$suffix}.js\",\n\t\t\tarray( 'jquery', 'wp-pointer' ),\n\t\t\t'0.0.1',\n\t\t\ttrue\n\t\t);\n\n\t\t$js_vars = array(\n\t\t\t'pointers' => $pointers,\n\t\t\t'ajaxurl' => admin_url( 'admin-ajax.php' ),\n\t\t);\n\n\t\twp_localize_script( 'bb-booster-pointers', 'bb_booster', $js_vars );\n\n\t}" ]
[ "0.8532897", "0.83155847", "0.81854886", "0.8164785", "0.81120163", "0.8111461", "0.8111211", "0.8095529", "0.80920035", "0.79913795", "0.796482", "0.7958704", "0.7944589", "0.79414237", "0.7931273", "0.78723335", "0.7855907", "0.7826827", "0.78242034", "0.7822309", "0.78168285", "0.78166157", "0.77912766", "0.7748234", "0.77437806", "0.7733866", "0.77249295", "0.7722438", "0.7709893", "0.770589", "0.7682654", "0.7680965", "0.7679522", "0.76792294", "0.7653728", "0.76482993", "0.76447135", "0.7641475", "0.7640525", "0.7639767", "0.76282614", "0.7619979", "0.7616407", "0.7616017", "0.76158476", "0.7615295", "0.76043826", "0.75975084", "0.75834197", "0.75703835", "0.75638473", "0.7559453", "0.7543257", "0.7534824", "0.7533234", "0.7518836", "0.7507464", "0.75041693", "0.7487905", "0.7475424", "0.7470968", "0.74678856", "0.74642503", "0.74637085", "0.74597293", "0.7458678", "0.74535906", "0.7450205", "0.7442891", "0.7430326", "0.7430326", "0.7428993", "0.7428302", "0.7425221", "0.74205995", "0.7416199", "0.741095", "0.740086", "0.74004656", "0.74000293", "0.739622", "0.7392301", "0.7392135", "0.7386074", "0.73796463", "0.73753804", "0.73639715", "0.7356451", "0.7342853", "0.7341409", "0.7336621", "0.7336284", "0.73205525", "0.73169243", "0.7316024", "0.7311465", "0.73078537", "0.7304955", "0.7303267", "0.72999024", "0.7292161" ]
0.0
-1
Register and enqueue styles.
public function enqueue_styles() { $min = ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) ? '' : '.min'; wp_enqueue_style( 'fimc-core', FIMC_CORE_ABSURL . "/assets/css/style.css", array(), FIMC_CORE_VERSION ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function registerStyles()\n {\n wp_register_style('swiper-css', THEME_DIR_URI .'/assets/css/swiper.min.css', [], false, 'all');\n wp_register_style('dist-css', THEME_DIR_URI .'/assets/css/dist.css', [], false, 'all');\n wp_register_style('regional-css', THEME_DIR_URI .'/regional.css', [], false, 'all');\n wp_register_style('regional-style', THEME_DIR_URI .'/style.css', [], false, 'all');\n\n // Default app style file\n //wp_enqueue_style('style-css');\n\n // App styles\n wp_enqueue_style('swiper-css');\n wp_enqueue_style('dist-css');\n wp_enqueue_style('regional-css');\n wp_enqueue_style('regional-style');\n }", "public function styles(){\n //Enqueue styles\n /**\n * wp_enqueue_style('sample-style',$this->directory_uri . '/sample.css');\n * ...\n * ....\n */\n }", "public function enqueueStyles() {\n\t\t\twp_enqueue_style('app', self::asset(\"css/app.css\"), NULL, '1.0.0', 'all');\n\t\t}", "public function enqueue_styles() {\n\n\t\tif ($this->css) {\n\t\t\tforeach ($this->css as $css) {\n\t\t\t\t$fileTitle = basename($css['link']);\n\t\t\t\t$fileTitle = str_replace('.css', '', $fileTitle);\n\t\t\t\t$fileTitle = preg_replace(\n\t\t\t\t\t'/[^0-9a-zA-Z]/',\n\t\t\t\t\t\"-\",\n\t\t\t\t\tstr_replace('@', '', $css['package']) . '-' . $fileTitle\n\t\t\t\t);\n\t\t\t\twp_enqueue_style($fileTitle, $css['link'], array(), $css['version'], 'all');\n\t\t\t}\n\t\t}\n\n\t}", "private function enqueue_style_css()\n\t{\n\t\twp_enqueue_style('style', get_stylesheet_uri(), array('main'));\n\t}", "public function enqueue_styles() {\n\n\t\twp_register_style( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'css/all.css', array(), $this->version, 'all' );\n\t}", "public function enqueue_styles() {\n\t\t/**\n\t\t * Filters the path to the admin CSS styles.\n\t\t *\n\t\t * @since 1.0.0\n\t\t *\n\t\t * @param string $path The path to the CSS file.\n\t\t */\n\t\t$style_path = apply_filters( 'stellarwp/telemetry/' . Config::get_hook_prefix() . 'style_path', $this->get_asset_path() . 'resources/css/styles.css' );\n\n\t\twp_enqueue_style(\n\t\t\tself::SCRIPT_HANDLE,\n\t\t\t$style_path,\n\t\t\t[],\n\t\t\tself::SCRIPT_VERSION\n\t\t);\n\t}", "public function registerStyles() {\n $this->registerStylesCommon();\n \n if(is_admin()) {\n $this->registerStylesAdmin();\n } else {\n $this->registerStylesFrontend();\n }\n }", "public function enqueue_styles() {\n\n\t\t/**\n\t\t * This function is provided for demonstration purposes only.\n\t\t *\n\t\t * An instance of this class should be passed to the run() function\n\t\t * defined in Nimiq_Miner_Loader as all of the hooks are defined\n\t\t * in that particular class.\n\t\t *\n\t\t * The Nimiq_Miner_Loader will then create the relationship\n\t\t * between the defined hooks and the functions defined in this\n\t\t * class.\n\t\t */\n\n\t\twp_enqueue_style( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'css/nimiq-miner-public.css', array(), $this->version, 'all' );\n\n\t}", "public function enqueue_styles() {\n\t\twp_enqueue_style( 'slick-css', plugin_dir_url( dirname( __FILE__, 2 ) ) . '/assets/css/slick-theme.css', array(), '1.8.1' );\n\t\twp_enqueue_style( 'style-css', plugin_dir_url( dirname( __FILE__, 2 ) ) . '/assets/css/style.css', array(), '1.0.0' );\n\t}", "function zweidrei_eins_register_styles() {\n\n\t$theme_version = wp_get_theme()->get( 'Version' ); \n\twp_enqueue_style( 'style', get_stylesheet_uri(), array(), $theme_version );\n\n\t/** \t\n\t * Add custom css\n\t * Bulma: Free, open source, and modern CSS framework based on Flexbox\n\t * https://bulma.io/ \n\t * Version: 0.9.0\n\t * Child: custom.css\n\t */\n\twp_enqueue_style( 'style1', get_template_directory_uri() . '/assets/css/bulma.min.css', array(), $theme_version );\n\twp_enqueue_style( 'style2', get_template_directory_uri() . '/assets/css/custom.css', array(), $theme_version );\n\n\t\n\n}", "public function register_styles() {\n\n\t\t\twp_register_style(\n\t\t\t\t\"$this->ID-style\",\n\t\t\t\tplugins_url( 'style.css', __FILE__ ),\n\t\t\t\tnull,\n\t\t\t\t$this->version\n\t\t\t);\n $file_tmpl = 'ui/timeago/locale/jquery.timeago.%s.js';\n wp_register_script( 'timeago-locale', WP_STREAM_URL . sprintf( $file_tmpl, 'en' ), array( 'timeago' ), '1' );\n wp_register_style( 'select2', WP_STREAM_URL . 'ui/select2/select2.css', array(), '3.5.1' );\n\t\t}", "public function enqueue_stylesheet() {\n\t\twp_register_style( self::HANDLE, $this->asset_resolver->resolve( 'css/theme.css' ), [], false );\n\t\twp_enqueue_style( self::HANDLE );\n\t}", "public function enqueue_styles() {\n\n\t\t/**\n\t\t * This function is provided for demonstration purposes only.\n\t\t *\n\t\t * An instance of this class should be passed to the run() function\n\t\t * defined in Plugin_Name_Loader as all of the hooks are defined\n\t\t * in that particular class.\n\t\t *\n\t\t * The Plugin_Name_Loader will then create the relationship\n\t\t * between the defined hooks and the functions defined in this\n\t\t * class.\n\t\t */\n\n\t\twp_enqueue_style( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'css/drinkers-edition-admin.css', array(), $this->version, 'all' );\n\n\t}", "public function addStyling()\n {\n \\wp_enqueue_style(self::REACT_WP_THEME, \\get_template_directory_uri() . '/frontend/dist/style.css', [], '0.1');\n }", "public function enqueue_styles() {\n\n\t\t/**\n\t\t * This function is provided for demonstration purposes only.\n\t\t *\n\t\t * An instance of this class should be passed to the run() function\n\t\t * defined in Fastnetmarketing_Admin_Loader as all of the hooks are defined\n\t\t * in that particular class.\n\t\t *\n\t\t * The Fastnetmarketing_Admin_Loader will then create the relationship\n\t\t * between the defined hooks and the functions defined in this\n\t\t * class.\n\t\t */\n\n\t\twp_enqueue_style( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'css/fastnetmarketing-admin-admin.css', array(), $this->version, 'all' );\n\n\t}", "public function enqueue_styles() {\n\t\twp_enqueue_style( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'css/sanoa-links-linter-public.css', array(), $this->version, 'all' );\n\t}", "public function enqueue_styles() {\n\n\t\t/**\n\t\t * This function is provided for demonstration purposes only.\n\t\t *\n\t\t * An instance of this class should be passed to the run() function\n\t\t * defined in Points_Of_Sale_Admin_Loader as all of the hooks are defined\n\t\t * in that particular class.\n\t\t *\n\t\t * The Points_Of_Sale_Admin_Loader will then create the relationship\n\t\t * between the defined hooks and the functions defined in this\n\t\t * class.\n\t\t */\n\n\t\twp_enqueue_style($this->plugin_name, plugin_dir_url(__FILE__) . 'css/points-of-sale-admin.css', array(), $this->version, 'all');\n\n\t}", "public function enqueue_styles() {\n\n\t\t/**\n\t\t * This function is provided for demonstration purposes only.\n\t\t *\n\t\t * An instance of this class should be passed to the run() function\n\t\t * defined in SpaceAPI_WP_Loader as all of the hooks are defined\n\t\t * in that particular class.\n\t\t *\n\t\t * The SpaceAPI_WP_Loader will then create the relationship\n\t\t * between the defined hooks and the functions defined in this\n\t\t * class.\n\t\t */\n\n\t\twp_enqueue_style( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'css/spaceapi-wp-admin.css', array(), $this->version, 'all' );\n\n\t}", "public function load_styles() {\n\t wp_enqueue_style( 'core', get_stylesheet_uri() );\n\t\twp_enqueue_style( 'main', get_stylesheet_directory_uri() . '/assets/css/main-style.min.css' );\n\n\t\t// ADD MORE STYLE HERE ...\n\t\t\n\t}", "public function enqueueAssets()\n {\n wp_enqueue_style( WPADW_DOMAIN . '-admin-style', WPADW_URL . '/assets/style.css' );\n }", "public function enqueue_styles() {\r\n\r\n\t\t}", "public function enqueue_style() {\n\t\twp_enqueue_style( 'aztec-style', get_stylesheet_directory_uri() . '/assets/css/styles.css' );\n\t}", "function wptheme_register_styles() {\n\t\t$theme = wp_get_theme();\n\t\t$version = $theme['Version'];\n\t\t$stylesheets = '';\n\n\t\t// Register stylesheets\n\t $stylesheets .= wp_register_style('wptheme', get_stylesheet_directory_uri().'/style.css', array(), $version, 'screen, projection');\n\n\t\t// enqueue registered styles\n\t\twp_enqueue_style('wptheme');\n\n\t}", "public function enqueue_styles()\n {\n wp_enqueue_style($this->andmoraho_vendors, plugin_dir_url(__FILE__) . 'css/andmoraho-vendors-admin.css', array(), $this->version, 'all');\n }", "public function enqueue_styles() {\n\t\twp_enqueue_style( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'css/deeppress-admin.css', array(), $this->version, 'all' );\n\t\twp_enqueue_style( \n\t\t\t$this->plugin_name.'-imageview', plugin_dir_url( __FILE__ ) . 'css/jquery.imageview.css', \n\t\t\tarray(), \n\t\t\t$this->version, 'all' \n\t\t);\n\t\twp_enqueue_style( \n\t\t\t$this->plugin_name.'-annotorious', plugin_dir_url( __FILE__ ) . 'css/jquery.selectareas.css', \n\t\t\tarray(), \n\t\t\t$this->version, 'all' \n\t\t);\n\t\twp_enqueue_style(\n\t\t\t$this->plugin_name.'-lightgallery', plugin_dir_url( __FILE__ ) . 'css/lightgallery.min.css',\n\t\t\tarray(),\n\t\t\t$this->version, 'all'\n\t\t);\n\n\t}", "public function enqueue_styles() {\n\n\t\twp_enqueue_style( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'css/content-otter-tweet.css', array(), $this->version, 'all' );\n\n\t}", "public function enqueue_styles() {\n\t\t/**\n\t\t * This function is provided for demonstration purposes only.\n\t\t *\n\t\t * An instance of this class should be passed to the run() function\n\t\t * defined in Nerd_Wp_Loader as all of the hooks are defined\n\t\t * in that particular class.\n\t\t *\n\t\t * The Nerd_Wp_Loader will then create the relationship\n\t\t * between the defined hooks and the functions defined in this\n\t\t * class.\n\t\t */\n\t\twp_enqueue_style( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'css/contact-helpdesk-admin.css', array(),\n\t\t\t$this->version, 'all' );\n\t}", "function enqueue_styles()\n\t{\n\t\twp_register_style('theme-styles', get_theme_file_uri() . '/assets/css/styles.css', array(), '0.011', 'all');\n\t\twp_enqueue_style('theme-styles');\n\n\t\t// google fonts\n\t\twp_register_style('google-fonts', 'https://fonts.googleapis.com/css?family=Poppins:200,300,600|Merriweather:400,700&display=swap', array());\n\t\twp_enqueue_style('google-fonts');\n\n\t\t// font awesome\n\t\twp_register_style('font-awesome', 'https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.11.2/css/all.css', array());\n\t\twp_enqueue_style('font-awesome');\n\t}", "public function enqueue_styles() {\n\t\t// wp_enqueue_style( $this->plugin_slug . '-plugin-styles', plugins_url( 'css/public.css', __FILE__ ), array(), self::VERSION );\n\t}", "public function enqueue_styles()\n\t{\n\n\t\t/**\n\t\t * This function is provided for demonstration purposes only.\n\t\t *\n\t\t * An instance of this class should be passed to the run() function\n\t\t * defined in Prosvit_Extension_Loader as all of the hooks are defined\n\t\t * in that particular class.\n\t\t *\n\t\t * The Prosvit_Extension_Loader will then create the relationship\n\t\t * between the defined hooks and the functions defined in this\n\t\t * class.\n\t\t */\n\n\t\twp_enqueue_style('style_select2', plugin_dir_url(__FILE__) . 'css/select2.min.css', array(), $this->version, 'all');\n\t\twp_enqueue_style($this->plugin_name, plugin_dir_url(__FILE__) . 'css/prosvit-extension-admin.css', array(), $this->version, 'all');\n\t}", "private function enqueueStyle() {\n wp_enqueue_style(\n 'shokka-forms',\n plugins_url( 'css/dist/style.css', 'shokka-forms/shokka-forms.php' ),\n array(),\n filemtime(\n sprintf(\n '%s%s%s',\n trailingslashit( WP_PLUGIN_DIR ),\n plugin_dir_path( 'shokka-forms/shokka-forms.php' ),\n wp_normalize_path( 'css/dist/style.css' )\n )\n )\n );\n }", "public function enqueue_styles() {\n\t\twp_enqueue_style($this->plugin_name, plugin_dir_url(__FILE__) . 'css/coinqvest.modal.css', array(), $this->version, 'all');\n\t}", "function styles() {\n\n\twp_enqueue_style(\n\t\t'styles',\n\t\tPLAYGROUND_THEME_TEMPLATE_URL . \"/dist/css/style.min.css\",\n\t\tfalse\n\t);\n}", "function front_end_styles()\n{\n\twp_register_style( 'front-end-normalize', get_template_directory_uri() . '/css/reset.css', array(), null, 'all' );\n wp_register_style( 'front-end-styles', get_template_directory_uri() . '/css/styles.css', array(), null, 'all' );\n wp_register_style( 'front-end-plugins', get_template_directory_uri() . '/css/plugins.css', array(), null, 'all' );\n wp_register_style( 'front-end-media-queries', get_template_directory_uri() . '/css/media-queries.css', array(), null, 'all' );\n \n \n wp_enqueue_style( 'front-end-normalize' );\n wp_enqueue_style( 'front-end-styles' );\n wp_enqueue_style( 'front-end-plugins' );\n wp_enqueue_style( 'front-end-media-queries' );\n}", "public function enqueue_styles_and_stuffs() {\n\t\t // libraries\n\t\t wp_enqueue_style( 'woocommerce_prettyPhoto_css' );\n\t\t\twp_enqueue_style( 'jquery-selectBox' );\n\t\t\twp_enqueue_style( 'yith-wcwl-font-awesome' );\n\n\t\t\t// main plugin style\n\t\t\tif ( ! wp_style_is( 'yith-wcwl-user-main', 'registered' ) ) {\n\t\t\t\twp_enqueue_style( 'yith-wcwl-main' );\n\t\t\t}\n\t\t\telse {\n\t\t\t\twp_enqueue_style( 'yith-wcwl-user-main' );\n\t\t\t}\n\n\t\t\t// theme specific style\n\t\t\tif( wp_style_is( 'yith-wcwl-theme', 'registered' ) ){\n\t\t\t wp_enqueue_style( 'yith-wcwl-theme' );;\n }\n\n\t\t\t// custom style\n\t\t\t$this->enqueue_custom_style();\n\t\t}", "function styles() {\n\twp_enqueue_style(\n\t\t'deadpoo-main',\n\t\tDIE_URL . '/assets/css/dist/main.css',\n\t\t[],\n\t\tfalse\n\t);\n}", "public function enqueue_styles() {\n\n\t\twp_enqueue_style( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'css/deeppress-public.css', array(), $this->version, 'all' );\n\n\t}", "function fincollect_styles() {\n wp_enqueue_style( 'fancybox', get_template_directory_uri() . '/assets/css/jquery.fancybox.css' );\n wp_enqueue_style( 'bootstrap', get_template_directory_uri() . '/assets/css/bootstrap.css' );\n wp_enqueue_style( 'main-style', get_stylesheet_uri() );\n }", "public function enqueue_styles() {\n wp_enqueue_style(\n $this->plugin_name,\n plugin_dir_url(__FILE__) . 'css/update-monitor-public.css',\n array(),\n $this->version,\n 'all'\n );\n }", "public function enqueue_styles() {\n\n\t\t\t/**\n\t\t\t * This function is provided for demonstration purposes only.\n\t\t\t *\n\t\t\t * An instance of this class should be passed to the run() function\n\t\t\t * defined in Advanced_Reviews_Pro_Loader as all of the hooks are defined\n\t\t\t * in that particular class.\n\t\t\t *\n\t\t\t * The Advanced_Reviews_Pro_Loader will then create the relationship\n\t\t\t * between the defined hooks and the functions defined in this\n\t\t\t * class.\n\t\t\t */\n\n\t\t\twp_enqueue_style( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'css/advanced-reviews-pro-public.css', array(), $this->version, 'all' );\n\t\t}", "function enqueues() {\n\t\twp_register_style( 'ks-thematic-actions', plugin_dir_url( __FILE__ ) . 'style.css' );\n\t wp_enqueue_style( 'ks-thematic-actions' );\n\t}", "function reverie_css_style()\n{\t\n\t// normalize stylesheet\n\t// wp_register_style( 'reverie-normalize-stylesheet', get_template_directory_uri() . '/css/normalize.css', array(), '' );\n\t\n\t// foundation stylesheet\n\twp_register_style( 'reverie-foundation-stylesheet', get_template_directory_uri() . '/css/foundation.css', array(), '' );\t\n\t\n\t// Register the main style under root directory\n\twp_register_style( 'reverie-stylesheet', get_stylesheet_directory_uri() . '/style.css', array(), '', 'all' );\n\t\n\twp_enqueue_style( 'reverie-normalize-stylesheet' );\n\twp_enqueue_style( 'reverie-foundation-stylesheet' );\n\twp_enqueue_style( 'reverie-stylesheet' );\n\t\n}", "function cm_load_styles() {\n wp_enqueue_style( 'style', get_stylesheet_uri() );\n wp_enqueue_style( 'font-awesome', get_stylesheet_directory_uri() . '/css/font-awesome.min.css' );\n wp_enqueue_style( 'bootstrap', get_stylesheet_directory_uri() . '/css/bootstrap.min.css' );\n wp_enqueue_style( 'main', get_stylesheet_directory_uri() . '/css/main.css' );\n}", "public function enqueue_styles() {\n wp_enqueue_style(\n $this->plugin_name,\n plugin_dir_url(__FILE__) . 'css/update-monitor-admin.css',\n array(),\n $this->version,\n 'all'\n );\n }", "function loadStyles() {\n\t\twp_register_style('hashee_styles', $this->pluginPath . 'css/hashee_styles.css');\n\t\twp_enqueue_style('hashee_styles');\n\t}", "public function enqueue_styles() {\n\n\t\twp_register_style( 'wpaddons_io_sitestyle', plugins_url( 'wpaddons-io-sdk/css/wpaddons-io.css', __FILE__ ) );\n\n\t\twp_enqueue_style( 'wpaddons_io_sitestyle' );\n\n\t}", "public function enqueue_styles() {\n\n\t\t/**\n\t\t * This function is provided for demonstration purposes only.\n\t\t *\n\t\t * An instance of this class should be passed to the run() function\n\t\t * defined in Cf7_GoogleMap_Loader as all of the hooks are defined\n\t\t * in that particular class.\n\t\t *\n\t\t * The Cf7_GoogleMap_Loader will then create the relationship\n\t\t * between the defined hooks and the functions defined in this\n\t\t * class.\n\t\t */\n $plugin_dir = plugin_dir_url( __FILE__ );\n\t\twp_enqueue_style( $this->plugin_name, $plugin_dir . 'css/cf7-googleMap-admin.css', array(), $this->version, 'all' );\n\n\t}", "function add_style_sheets()\n{\n\tif( !is_admin() )\n\t{\n\t\twp_enqueue_style( 'reset', get_template_directory_uri().'/style.css', 'screen' );\n\t\twp_enqueue_style( 'font', '//fonts.googleapis.com/css?family=Raleway:400,100,200,300,500,600,700,800|Lato:300,400,700,900', 'screen' );\n\t\twp_enqueue_style( 'fontawesome', '//maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css', 'screen' );\n\t\twp_enqueue_style( 'main', get_template_directory_uri().'/assets/css/style.less', 'screen' );\n\t}\n}", "function enqueue_styles() {\n\t\twp_register_style( 'github-embed', plugins_url( basename( dirname( __FILE__ ) ) . '/css/github-embed.css' ) );\n\t\twp_enqueue_style( 'github-embed' );\n\t}", "public function enqueue_styles() {\n wp_enqueue_style(\n VSPI_BASENAME,\n plugins_url('includes/vspi-admin-styles.css', __FILE__),\n array(),\n VSPI_VERSION,\n 'all'\n );\n }", "public function theme_styles()\n\t{\n\n\t\twp_enqueue_style(\n\t\t\t'sourcesanspro',\n\t\t\t'https://fonts.googleapis.com/css?family=Source+Sans+Pro&display=swap',\n\t\t\t[],\n\t\t\t'auto'\n\t\t);\n\t\twp_enqueue_style(\n\t\t\t'fontawesome',\n\t\t\tTHEME_URL . '/assets/fontawesome/css/all.min.css',\n\t\t\t[],\n\t\t\t'auto'\n\t\t);\n\t\twp_enqueue_style(\n\t\t\t'style',\n\t\t\tTHEME_URL . '/assets/css/style.min.css',\n\t\t\t[],\n\t\t\t'auto'\n\t\t);\n\t}", "function cbusds_styles()\n{\n\n wp_register_style('w3css', get_template_directory_uri() . '/css/w3.css', array(), '', 'all');\n wp_enqueue_style('w3css'); // Enqueue it!\n\n wp_register_style('normalize', get_template_directory_uri() . '/normalize.css', array(), '1.0', 'all');\n wp_enqueue_style('normalize'); // Enqueue it!\n\n wp_register_style('cbusdscss', get_template_directory_uri() . '/style.css', array(), '1.0', 'all');\n wp_enqueue_style('cbusdscss'); // Enqueue it!\n}", "function inkthemes_enqueue_styles() {\n global $themeslug, $options;\n wp_register_style($themeslug . 'storecss', get_template_directory_uri() . '/admin/theme-page-style.css');\n wp_enqueue_style($themeslug . 'storecss');\n}", "function styles() {\n\n\twp_enqueue_style(\n\t\t'styles',\n\t\tERI_SCAFFOLD_TEMPLATE_URL . '/dist/css/style.css',\n\t\t[],\n\t\tERI_SCAFFOLD_VERSION\n\t);\n\n\tif ( is_page_template( 'templates/page-styleguide.php' ) ) {\n\t\twp_enqueue_style(\n\t\t\t'styleguide',\n\t\t\tERI_SCAFFOLD_TEMPLATE_URL . '/dist/css/styleguide-style.css',\n\t\t\t[],\n\t\t\tERI_SCAFFOLD_VERSION\n\t\t);\n\t}\n}", "function styles() {\n\t/**\n\t * Flag whether to enable loading uncompressed/debugging assets. Default false.\n\t *\n\t * @param bool project_style_debug\n\t */\n\t$debug = apply_filters( 'project_style_debug', false );\n\t$min = ( $debug || defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) ? '' : '.min';\n\n\twp_enqueue_style(\n\t\t'project',\n\t\tProject_URL . \"/assets/css/project-theme{$min}.css\",\n\t\tarray(),\n\t\tProject_VERSION\n\t);\n}", "public function enqueue_styles() {\n\n if ( !isset( $this->plugin_screen_hook_suffix ) ) {\n return;\n }\n\n $screen = get_current_screen();\n\n if ( isset( $screen->id ) && $screen->id == $this->plugin_screen_hook_suffix ) {\n wp_enqueue_style( 'font-awesome', plugin_dir_url( __FILE__ ) . 'css/vendor/font-awesome.min.css', array(), '4.7.0', 'all' );\n wp_enqueue_style( 'wpp-datepicker-theme', plugin_dir_url( __FILE__ ) . 'css/datepicker.css', array(), $this->version, 'all' );\n wp_enqueue_style( 'wordpress-popular-posts-admin-styles', plugin_dir_url( __FILE__ ) . 'css/admin.css', array(), $this->version, 'all' );\n }\n\n }", "public function enqueue_styles() {\n\t\twp_enqueue_style( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'css/pewin-payments-public.css', array(), $this->version, 'all' );\n\t}", "public function enqueue_styles() {\n\t\tglobal $pagenow;\n\t\tif( $pagenow === 'post.php' ) {\n\t\t\twp_enqueue_style( $this->plugin_slug, REVIWERWP_PLUGIN_URL . 'assets/css/admin-metaboxes.css', array(), REVIWERWP_VERSION, 'all' );\n\t\t}\n\t}", "function styles() {\n\t/**\n\t * Flag whether to enable loading uncompressed/debugging assets. Default false.\n\t *\n\t * @param bool additive_style_debug\n\t */\n\t$debug = apply_filters( 'additive_style_debug', false );\n\t$min = ( $debug || defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) ? '' : '.min';\n\n\twp_enqueue_style( 'additive-fonts',\n\t\t\"https://fonts.googleapis.com/css?family=Arvo:400,700|Lato:300,400,700\",\n\t\tarray(),\n\t\tnull\n\t);\n\n\twp_enqueue_style(\n\t\t'normalize',\n\t\tADDITIVE_URL . \"/assets/css/normalize{$min}.css\",\n\t\tarray(),\n\t\tADDITIVE_VERSION\n\t);\n\n\twp_enqueue_style(\n\t\t'skeleton',\n\t\tADDITIVE_URL . \"/assets/css/skeleton{$min}.css\",\n\t\tarray(),\n\t\tADDITIVE_VERSION\n\t);\n\n\twp_enqueue_style(\n\t\t'additive',\n\t\tADDITIVE_URL . \"/assets/css/additive{$min}.css\",\n\t\tarray(),\n\t\tADDITIVE_VERSION\n\t);\n\n\twp_enqueue_style(\n\t\t'font-awesome',\n\t\tADDITIVE_URL . \"/assets/css/font-awesome{$min}.css\",\n\t\tarray(),\n\t\tADDITIVE_VERSION\n\t);\n}", "function wp_register_styles() {\n // Developer Tier Admin Stylesheet\n wp_register_style( \"{$this->namespace}-admin\", SLIDEDECK2_DEVELOPER_URLPATH . \"/css/admin.css\", array(), '2.1', 'screen' );\n // CodeMirror Library\n wp_register_style( \"codemirror\", SLIDEDECK2_DEVELOPER_URLPATH . \"/css/codemirror.css\", array(), '2.25', 'screen' );\n }", "public function enqueue_styles() {\n\t\twp_enqueue_style( $this->plugin_slug . '-plugin-styles', plugins_url( 'css/mlightbox.css', __FILE__ ), array(), self::VERSION );\n\t}", "function add_style(){\n\twp_enqueue_style('style',get_template_directory_uri().\"/css/style.css\");\n\twp_enqueue_style('bootstrap',get_template_directory_uri().\"/css/bootstrap.min.css\");\n}", "function add_style(){\n\twp_enqueue_style('style',get_template_directory_uri().\"/css/style.css\");\n\twp_enqueue_style('bootstrap',get_template_directory_uri().\"/css/bootstrap.min.css\");\n}", "public function styles(){\n\n\t\t//wp_enqueue_style('component-header_fixed-style', $this->directory_uri . '/assets/dist/css/headerFixed.css');\n\t}", "public function register_css () {\n wp_register_style(Plugin::PLUGIN_NAME, plugins_url('assets/css/styles.css', __FILE__), array(), filemtime(Plugin::getPluginPath() . '/assets/css/styles.css'));\n }", "function add_styles() {\n\t\tif ( is_active_widget( false, false, $this->id_base, true ) ) {\n\t\t\twp_enqueue_style( 'font-awesome' );\n\t\t\t\n\t\t\t//wp_enqueue_style( 'my-style', \\trends\\helper\\utils::get_widgets_uri( 'social_icons', '/assets/my-style.css') );\n\t\t\t\n\t\t}\n\t}", "public function enqueue_styles () {\n wp_enqueue_style( 'wpuf-qr-code-admin-styles', plugins_url( 'css/style.css', __FILE__ ), false, date( 'Ymd' ) );\n wp_enqueue_script( 'wpuf-qr-code-admin-scripts', plugins_url( 'js/admin-script.js', __FILE__ ), array( 'jquery' ), false, true );\n }", "function add_css() \n {\n if( $this->options['use-css-file'] ) {\n wp_register_style( 'bbquotations-style' , $this->plugin_url . 'bbquotations-style.css');\n wp_enqueue_style( 'bbquotations-style' );\n } \n }", "protected static function registerStyles() {\n\t\tforeach (static::$styles as $handle => $stylePath) {\n\t\t\tstatic::registerStyle($handle, $stylePath);\n\t\t}\n\t}", "function register_css_styles() {\n\tif (!is_admin()) {\n\t\tglobal $wp_styles;\n\t\t\n\t\t\n\t\t$cmsms_option = cmsms_get_global_options();\n\t\t\n\t\t\n\t\twp_register_style('theme-style', get_stylesheet_uri(), array(), '1.0.0', 'screen');\n\t\twp_register_style('theme-fonts', get_template_directory_uri() . '/css/fonts.php', array(), '1.0.0', 'screen');\n\t\twp_register_style('theme-adapt', get_template_directory_uri() . '/css/adaptive.css', array(), '1.0.0', 'screen');\n\t\twp_register_style('theme-retina', get_template_directory_uri() . '/css/retina.css', array(), '1.0.0', 'screen');\n\t\twp_register_style('jackbox', get_template_directory_uri() . '/css/jackbox.css', array(), '1.0.0', 'screen');\n\t\twp_register_style('fontello', get_template_directory_uri() . '/css/fonts/css/fontello.css', array(), '1.0.0', 'screen');\n\t\twp_register_style('jPlayer', get_template_directory_uri() . '/css/jquery.jPlayer.css', array(), '2.1.0', 'screen');\n\t\twp_register_style('isotope', get_template_directory_uri() . '/css/jquery.isotope.css', array(), '1.5.19', 'screen');\n\t\twp_register_script('respond', get_template_directory_uri() . '/js/respond.min.js', array(), '1.1.0', false);\n\t\t\n\t\twp_enqueue_style('theme-style');\n\t\twp_enqueue_style('theme-fonts');\n\t\twp_enqueue_style('fontello');\n\t\t\n\t\tif ($cmsms_option[CMSMS_SHORTNAME . '_responsive']) {\n\t\t\twp_enqueue_style('theme-adapt');\n\t\t}\n\t\t\n\t\tif ($cmsms_option[CMSMS_SHORTNAME . '_retina']) {\n\t\t\twp_enqueue_style('theme-retina');\n\t\t}\n\t\n\t\t\n\t\twp_enqueue_style('jackbox');\n\t\twp_enqueue_style('jPlayer');\n\t\twp_enqueue_style('isotope');\n\t\t\n\t\twp_register_style('jackbox-ie8', get_template_directory_uri() . '/css/jackbox-ie8.css', array(), '1.0.0', 'screen');\n\t\twp_register_style('jackbox-ie9', get_template_directory_uri() . '/css/jackbox-ie9.css', array(), '1.0.0', 'screen');\n\t\t\n\t\twp_enqueue_style('theme-ie', get_template_directory_uri() . '/css/ie.css', array(), '1.0.0', 'screen');\n\t\twp_enqueue_style('theme-ieCss3', get_template_directory_uri() . '/css/ieCss3.php', array(), '1.0.0', 'screen');\n\t\t\n\t\t$wp_styles->add_data('jackbox-ie8', 'conditional', 'lt IE 9');\n\t\t$wp_styles->add_data('jackbox-ie9', 'conditional', 'gt IE 8');\n\t\t\n\t\t$wp_styles->add_data('theme-ie', 'conditional', 'lt IE 9');\n\t\t$wp_styles->add_data('theme-ieCss3', 'conditional', 'lt IE 9');\n\t}\n}", "function load_stylesheets() {\n\n\twp_register_style('myCSS' , get_template_directory_uri() . '/style.css', array(), false, 'all');\n\twp_enqueue_style('myCSS');\n}", "function enqueueStyles() {\r\n $version = '0.2';\r\n $mainJS = get_template_directory_uri() . '/js/dist/main.js';\r\n $mainCSS = get_template_directory_uri() . '/css/dist/main.min.css';\r\n\r\n wp_enqueue_style('style', $mainCSS, $version, true);\r\n wp_enqueue_script('script', $mainJS, $version, true);\r\n}", "function wp_enqueue_style() {\n\t}", "function enqueue_styles() { \n \n /** REGISTER css/screen.css **/ \n wp_register_style( 'screen-style', THEME_DIR . '/style.css', array(), '1', 'all' ); \n wp_enqueue_style( 'screen-style' );\n \n}", "public static function enqueue_styles() {\n\t\tif ( ! static::$enqueued && wp_style_is( 'cmb2-styles', 'enqueued' ) ) {\n\t\t\twp_enqueue_style( 'wplibs-form' );\n\t\t\twp_enqueue_script( 'wplibs-form' );\n\n\t\t\tstatic::$enqueued = true;\n\t\t}\n\t}", "function taleronWP_resources(){\n\twp_enqueue_style('style', get_stylesheet_uri());\n}", "function rhd_enqueue_styles(){\n\tglobal $theme_opts;\n\n\twp_register_style( 'rhd-sitewide', content_url() . '/global/sitewide.css', array(), '1', 'all' );\n\twp_register_style( 'rhd-main', RHD_THEME_DIR . '/css/main.css', array(), '1', 'all' );\n\twp_register_style( 'rhd-enhanced', RHD_THEME_DIR . '/css/enhanced.css', array(), '1', 'all' );\n\twp_register_style( 'Slidebars', RHD_THEME_DIR . '/js/vendor/Slidebars/dist/slidebars.min.css', array(), null, 'all' );\n\n\t$normalize_deps = array();\n\t$normalize_deps[] = 'Slidebars';\n\n\tif ( !rhd_is_mobile() ) {\n\t\twp_enqueue_style( 'rhd-enhanced' );\n\t}\n\n\twp_register_style( 'normalize', RHD_THEME_DIR . '/css/normalize.css', $normalize_deps, null, 'all' );\n\n\twp_enqueue_style( 'rhd-main' );\n\twp_enqueue_style( 'rhd-sitewide' );\n\twp_enqueue_style( 'normalize' );\n\twp_enqueue_style( 'google-fonts' );\n}", "function fzproject_register_styles()\n{\n // register \n //wp_register_style('zoneslider_styles', plugins_url('zoneslider/style.css', __FILE__)); \n wp_register_style('fzproject_styles_theme', plugins_url('css/style.css', __FILE__));\n // enqueue \n //wp_enqueue_style('fzproject_styles'); \n wp_enqueue_style('fzproject_styles_theme');\n}", "public function enqueue_assets()\n {\n $style_path = '/assets/css/block.style.css';\n wp_enqueue_style(\n $this->namespace . '-block',\n _get_plugin_url() . $style_path,\n null,\n filemtime( _get_plugin_directory() . $style_path )\n );\n }", "public static function enqueue_styles() {\n\t\t\tif( isset( $_REQUEST['page'] ) && $_REQUEST['page'] == $this->plugin_slug ) {\n\t\t\t\twp_enqueue_style( $this->plugin_slug . '-sweetalert2', $this->plugin_url . 'assets/libs/sweetalert/sweetalert2.min.css', array(), '3.0.0', 'all' );\n\t\t\t\twp_enqueue_style( $this->plugin_slug, $this->plugin_url . 'assets/css/options.css', array(), $this->version, 'all' );\n\t\t\t}\n\t\t}", "public function register_styles() {\n\t\t\t$woocommerce_base = WC()->template_path();\n\t\t\t$assets_path = str_replace( array( 'http:', 'https:' ), '', WC()->plugin_url() ) . '/assets/';\n\n\t\t\t// register dependencies\n\t\t\twp_register_style( 'jquery-selectBox', YITH_WCWL_URL . 'assets/css/jquery.selectBox.css', array(), '1.2.0' );\n\t\t\twp_register_style( 'yith-wcwl-font-awesome', YITH_WCWL_URL . 'assets/css/font-awesome.min.css', array(), '4.7.0' );\n\t\t\twp_register_style( 'woocommerce_prettyPhoto_css', $assets_path . 'css/prettyPhoto.css' );\n\n\t\t\t// register main style\n\t\t\t$located = locate_template( array(\n\t\t\t\t$woocommerce_base . 'wishlist.css',\n\t\t\t\t'wishlist.css'\n\t\t\t) );\n\n\t\t\tif( ! $located ){\n\t\t\t wp_register_style( 'yith-wcwl-main', YITH_WCWL_URL . 'assets/css/style.css', array( 'jquery-selectBox', 'yith-wcwl-font-awesome' ), $this->version );\n\t\t\t}\n\t\t\telse{\n\t\t\t\t$stylesheet_directory = get_stylesheet_directory();\n\t\t\t\t$stylesheet_directory_uri = get_stylesheet_directory_uri();\n\t\t\t\t$template_directory = get_template_directory();\n\t\t\t\t$template_directory_uri = get_template_directory_uri();\n\n\t\t\t\t$style_url = ( strpos( $located, $stylesheet_directory ) !== false ) ? str_replace( $stylesheet_directory, $stylesheet_directory_uri, $located ) : str_replace( $template_directory, $template_directory_uri, $located );\n\n\t\t\t\twp_register_style( 'yith-wcwl-user-main', $style_url, array( 'jquery-selectBox', 'yith-wcwl-font-awesome' ), $this->version );\n }\n\n\t\t\t// theme specific assets\n $current_theme = wp_get_theme();\n\n\t\t\tif( $current_theme->exists() ){\n\t\t\t $theme_slug = $current_theme->Template;\n\n\t\t\t if( file_exists( YITH_WCWL_DIR . 'assets/css/themes/' . $theme_slug . '.css' ) ){\n\t\t\t wp_register_style( 'yith-wcwl-theme', YITH_WCWL_URL . 'assets/css/themes/' . $theme_slug . '.css', array( $located ? 'yith-wcwl-user-main' : 'yith-wcwl-main' ), $this->version );\n }\n }\n\t\t}", "function scripts_styles() {\n\n\t\t// No need to process if in admin.\n\t\tif ( is_admin() ) {\n\t\t\treturn;\n\t\t}\n\n\t\t$theme_url = get_template_directory_uri();\n\t\t$main_css_url = $theme_url . '/style.css';\n\t\t$main_css_path = get_template_directory() . '/style.css';\n\t\t$main_css_ver = file_exists( $main_css_path ) ? filemtime( $main_css_path ) : '';\n\n\t\twp_enqueue_style( 'superiocity-style', $main_css_url, null, $main_css_ver );\n\t\twp_deregister_script( 'wp-embed' );\n\t}", "function plugin_admin_styles() {\r\n\t\t\t// used by media upload\r\n\t\t\twp_enqueue_style('thickbox');\r\n\t\t\t// Register & enqueue our admin.css file \r\n\t\t\twp_register_style('framework', $this->framework_url .'framework.css');\r\n\t\t\twp_enqueue_style('framework');\r\n\t\t\t// color picker\r\n\t\t\twp_enqueue_style( 'farbtastic' );\r\n\t\t\r\n\t\t}", "function parques_styles()\n{ \n\t// add general style\n\twp_enqueue_style( 'style', get_template_directory_uri().'/style.css',array(),'3.0.2' );\n\n\t// add css bootstrap\n\twp_enqueue_style( 'bootstrap-css', get_template_directory_uri().'/bootstrap-3.2.0/css/bootstrap.min.css',array(),'3.0.2' );\n\twp_enqueue_style( 'bootstrap-theme', get_template_directory_uri().'/bootstrap-3.2.0/css/bootstrap-theme.min.css',array(),'3.0.2' );\n\twp_enqueue_style( 'bootstrap-map', get_template_directory_uri().'/bootstrap-3.2.0/css/bootstrap.css.map',array(),'3.0.2' );\n\twp_enqueue_style( 'bootstrap-theme-map', get_template_directory_uri().'/bootstrap-3.2.0/css/bootstrap-theme.css.map',array(),'3.0.2' );\n}", "function admin_stylesheet() {\n\n\t\twp_register_style( 'admin-styles', get_template_directory_uri() . '/css/admin-styles.css', false, '1.0.0' );\n\n\t\twp_enqueue_style( 'admin-styles' );\n\n\t}", "function realEDU_theme_enqueue_styles(){\n\t\twp_enqueue_style('bootstrap-base', get_template_directory_uri() . \"/node_modules/bootstrap/dist/css/bootstrap.css\");\n\t\twp_enqueue_style('font-awesome', get_template_directory_uri() . \"/node_modules/font-awesome/css/font-awesome.css\");\n\n\t\twp_enqueue_style('stylesheet-default', get_template_directory_uri() . \"/style.css\");\n\t\twp_enqueue_style('custom-styles', get_template_directory_uri() . \"/css/app.css\");\n\t}", "function tac_css_enqueuer() {\n\twp_register_style( 'tac_main', get_stylesheet_directory_uri() . '/style.css' );\n\twp_enqueue_style( 'tac_main' );\n}", "function load_css() {\n wp_register_style('main', get_template_directory_uri() . '/css/main.css', array(), false, 'all');\n wp_enqueue_style('main');\n }", "function styles() {\n\twp_register_style(\n\t\t'fontawesome',\n\t\tVINCENTRAGOSTA_COM_TEMPLATE_URL . \"/assets/lib/fontawesome/css/font-awesome.min.css\",\n\t\tarray(),\n\t\tVINCENTRAGOSTA_COM_VERSION\n\t);\n\n\twp_register_style(\n\t\t'ionicons',\n\t\tVINCENTRAGOSTA_COM_TEMPLATE_URL . \"/assets/lib/ionicons/css/ionicons.min.css\",\n\t\tarray(),\n\t\tVINCENTRAGOSTA_COM_VERSION\n\t);\n\n\twp_register_style(\n\t\t'bootstrap',\n\t\tVINCENTRAGOSTA_COM_TEMPLATE_URL . \"/assets/lib/bootstrap/dist/css/bootstrap.min.css\",\n\t\tarray( 'fontawesome' ),\n\t\tVINCENTRAGOSTA_COM_VERSION\n\t);\n\n\twp_register_style(\n\t\t'sanitize',\n\t\tVINCENTRAGOSTA_COM_TEMPLATE_URL . \"/assets/lib/sanitize/sanitize.min.css\",\n\t\tarray(),\n\t\tVINCENTRAGOSTA_COM_VERSION\n\t);\n\n\twp_enqueue_style(\n\t\t'vincentragosta',\n\t\tVINCENTRAGOSTA_COM_TEMPLATE_URL . \"/assets/css/vincentragosta---twenty-seventeen.css\",\n\t\tarray( 'bootstrap', 'fontawesome', 'ionicons', 'sanitize' ),\n\t\tVINCENTRAGOSTA_COM_VERSION\n\t);\n}", "public function admin_enqueue()\n\t{\n\t\t// styles.\n\n\t}", "public function enqueue_styles() {\n\n\t\t/**\n\t\t * This function is provided for demonstration purposes only.\n\t\t *\n\t\t * An instance of this class should be passed to the run() function\n\t\t * defined in Wp_User_Role_Customizer_Loader as all of the hooks are defined\n\t\t * in that particular class.\n\t\t *\n\t\t * The Wp_User_Role_Customizer_Loader will then create the relationship\n\t\t * between the defined hooks and the functions defined in this\n\t\t * class.\n\t\t */\n\n\t\twp_enqueue_style( $this->wp_user_role_customizer, plugin_dir_url( __FILE__ ) . 'css/wp-user-role-customizer-public.css', array(), $this->version, 'all' );\n\n\t}", "public function register_widget_styles() {\n\n wp_enqueue_style( $this->get_widget_slug().'-widget-styles', plugins_url( 'css/widget.css', __FILE__ ) );\n\n }", "public function enqueue_theme_styles() {\n\n\t\t//Register the App's specific stylesheet - NOTE if child theme is used will try to find app.css in child dir\n\t\twp_register_style( 'presso-theme-app', get_stylesheet_directory_uri() . '/dist/assets/css/app.css', array(), filemtime( get_stylesheet_directory() . '/dist/assets/css/app.css' ), 'all' );\n\n\t\t//Enqueue App's SASS produced stylesheet\n\t\twp_enqueue_style( 'presso-theme-app' );\n\n\t}", "public function registerStylesAdmin() {\n $v = Wpjb_Project::VERSION;\n $p = plugins_url().'/wpjobboard/public/css/';\n $x = plugins_url().'/wpjobboard/application/vendor/';\n \n wp_register_style(\"wpjb-admin-css\", $p.\"admin.css\", array(), $v);\n wp_register_style(\"wpjb-colorpicker-css\", $p.\"colorpicker.css\", array(), $v);\n wp_register_style(\"wpjb-vendor-ve-css\", $x.\"visual-editor/visual-editor.css\", array(), $v);\n wp_register_style(\"wpjb-multi-level-accordion-menu\", $p.\"multi-level-accordion-menu.css\", array(), $v);\n }", "function add_style()\r\n{\r\n wp_enqueue_style(\r\n 'bootstrap'\r\n , get_template_directory_uri().'/css/bootstrap.min.css'\r\n );\r\n wp_enqueue_style(\r\n 'fontawesome'\r\n , get_template_directory_uri().'/css/font-awesome.min.css'\r\n );\r\n wp_enqueue_style(\r\n 'main'\r\n , get_template_directory_uri().'/css/main.css'\r\n ); \r\n\r\n}", "public function registerStyles() {\n $this->styles['mkdf-bootstrap'] = 'assets/css/mkdf-bootstrap.css';\n $this->styles['mkdf-page-admin'] = 'assets/css/mkdf-page.css';\n $this->styles['mkdf-options-admin'] = 'assets/css/mkdf-options.css';\n $this->styles['mkdf-meta-boxes-admin'] = 'assets/css/mkdf-meta-boxes.css';\n $this->styles['mkdf-ui-admin'] = 'assets/css/mkdf-ui/mkdf-ui.css';\n $this->styles['mkdf-forms-admin'] = 'assets/css/mkdf-forms.css';\n $this->styles['mkdf-import'] = 'assets/css/mkdf-import.css';\n $this->styles['font-awesome-admin'] = 'assets/css/font-awesome/css/font-awesome.min.css';\n\n foreach ($this->styles as $styleHandle => $stylePath) {\n sienna_mikado_register_skin_style($styleHandle, $stylePath);\n }\n\n }", "function coc_styles() {\r\n\t\t\r\n\t\twp_enqueue_style( 'style1', get_template_directory_uri() . '../css/bootstrap.css',false,'1','all');\r\n\t\t\r\n\t\twp_enqueue_style( 'style2', get_stylesheet_uri() );\r\n\t\t\r\n\t\twp_enqueue_style( 'style3', get_template_directory_uri() . '../bootstrap/css/bootstrap.css',false,'1','all');\r\n\t\t\r\n\t\twp_enqueue_style( 'style4', get_template_directory_uri() . '../bootstrap/css/bootstrap.min.css',false,'1','all');\r\n\t\t\t\t\r\n\t}", "public function styles() {\n\t\t\n\t\twp_register_style( 'tinymassmailer-admin', _tinymassmailer_PATH . '/css/page-options.css' );\n\t\twp_enqueue_style( 'tinymassmailer-admin' );\n\t\t\n\t}", "function jehaann_style(){\n wp_register_style('style', get_stylesheet_uri(),'','1.0','all');\n\n //cargando hojas de estilos\n\n wp_enqueue_style('style');\n}" ]
[ "0.8283265", "0.82050395", "0.8131212", "0.80404985", "0.78899413", "0.7878242", "0.7868374", "0.78328794", "0.7824056", "0.78042084", "0.77945566", "0.7790499", "0.7786948", "0.7736724", "0.7736261", "0.7735299", "0.77316964", "0.77256405", "0.7677014", "0.7673559", "0.76664877", "0.7666171", "0.7659614", "0.76587254", "0.764498", "0.7621725", "0.7612701", "0.759312", "0.75841707", "0.7581594", "0.75803745", "0.7576785", "0.7574827", "0.7574695", "0.757173", "0.7568342", "0.7556037", "0.7542222", "0.75421286", "0.75372314", "0.75369567", "0.74987876", "0.74961805", "0.74885327", "0.7482128", "0.7479906", "0.7475785", "0.74735737", "0.7472892", "0.7465472", "0.74444056", "0.74399054", "0.74366885", "0.7434642", "0.741124", "0.74033046", "0.7391072", "0.7390555", "0.73903304", "0.7389159", "0.7388951", "0.7377393", "0.73722273", "0.73722273", "0.7363402", "0.73461276", "0.734553", "0.73340386", "0.73172855", "0.7317256", "0.73131275", "0.7310719", "0.73054284", "0.7302277", "0.7297376", "0.7296799", "0.7293006", "0.7289844", "0.72828233", "0.7282043", "0.7273617", "0.726559", "0.726309", "0.72563833", "0.7254424", "0.7253227", "0.72531766", "0.7252905", "0.72499955", "0.72480804", "0.7244796", "0.7240722", "0.7231708", "0.7230437", "0.7228359", "0.72222084", "0.7217943", "0.7214738", "0.7200226", "0.7193831" ]
0.7313564
70
Default value callback for 'uid' base field definition.
public static function getCurrentUserId() { return array(\Drupal::currentUser()->id()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_uid($uid){\n\t\t$this->uid = $uid;\n\t}", "private function value_source_uid($data){\n\t\t\tif(isset($data->id))\n\t\t\t\treturn $data->id;\n\t\t\telse\n\t\t\t\treturn null;\n\t\t}", "public function setUid($uid);", "public function setUID($uid = null)\n {\n if (empty($uid))\n {\n $uid = Uuid::uuid1()->getUrn();\n }\n $this->uid = $uid;\n return $uid;\n }", "function power_user_meta_default_on( $value, $user_id ) {\n\n\t// If a real value exists, simply return it.\n\tif ( $value ) {\n\t\treturn $value;\n\t}\n\n\t// Get the name of the field by removing the prefix from the active filter.\n\t$field = str_replace( 'get_the_author_', '', current_filter() );\n\n\t// Setup user data.\n\tif ( ! $user_id ) {\n\t\tglobal $authordata;\n\t} else {\n\t\t// phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited -- same pattern used in` get_the_author_meta()\n\t\t$authordata = get_userdata( $user_id );\n\t}\n\n\t// Just in case.\n\t$user_field = \"user_$field\";\n\tif ( isset( $authordata->$user_field ) ) {\n\t\treturn $authordata->user_field;\n\t}\n\n\t// If an empty or false value exists, return it.\n\tif ( isset( $authordata->$field ) ) {\n\t\treturn $value;\n\t}\n\n\t// If all that fails, default to true.\n\treturn 1;\n\n}", "public function set_uid($uid) {\n $this->uid = intval($uid);\n }", "public function setUid(?string $uid): void\n {\n $this->uid['value'] = $uid;\n }", "public function getUid() {}", "public function getUid() {}", "public function getUid() {}", "public function getUid() {}", "public function getUid() {}", "public function getUid() {}", "public function uid(): ?string;", "public function getUid ();", "public function __construct($uid = null)\n {\n if ($uid === null) {\n $this->generateNewUid();\n } else {\n $this->setUid($uid);\n }\n }", "public function __construct($uid)\n {\n $this->uid = $uid;\n parent::__construct();\n }", "public function setUid($value)\n {\n $this->uid = $value;\n return $this;\n }", "public function get_uid() {\n return $this->uid;\n }", "public function __construct($uid)\n {\n //\n $this->uid = $uid;\n }", "public static function set_default_values() {\n\t\t?>\n\t\tcase \"nu_phone\" :\n\t\t\tfield.label = \"Phone\";\n\t\t\tfield.isRequired = true;\n\t\t\tfield.description = \"Numbers only. e.g. 8885551212\";\n\t\t\tbreak;\n\t\t<?php\n\t}", "function setUID($uid) {\n\t\t$this->_uid = $uid;\n\t}", "public function setUid($var)\n {\n GPBUtil::checkString($var, True);\n $this->uid = $var;\n\n return $this;\n }", "public function setUid($var)\n {\n GPBUtil::checkString($var, True);\n $this->uid = $var;\n\n return $this;\n }", "public function setUid($var)\n {\n GPBUtil::checkString($var, True);\n $this->uid = $var;\n\n return $this;\n }", "public function setUid($var)\n {\n GPBUtil::checkString($var, True);\n $this->uid = $var;\n\n return $this;\n }", "public function setUid($var)\n {\n GPBUtil::checkString($var, True);\n $this->uid = $var;\n\n return $this;\n }", "public function setUid($var)\n {\n GPBUtil::checkString($var, True);\n $this->uid = $var;\n\n return $this;\n }", "public function getUid();", "public function getUid();", "function getUid() {\n return $this->uid;\n }", "function get($uid) {\n\t}", "public function checkSetUID($uid = null)\n {\n if (!empty($this->uid))\n return $this->uid;\n else\n return $this->setUID($uid);\n }", "protected function getUIDAsProperty()\n {\n $builder = self::builder('uid');\n return $builder->setValue($this->checkSetUID())->build();\n }", "public function uid(): ColumnSchemaBuilder\n {\n return $this->char(36)->notNull()->defaultValue('0');\n }", "function getUID() { \n\t\treturn $this->_uid; \n\t}", "public function uid() {\n return $this->uid;\n }", "public function getUid(): ?string\n {\n if (count($this->uid) == 0) {\n return null;\n }\n return $this->uid['value'];\n }", "public function withUid($uid);", "private static function getUid($uid = null)\n {\n $uid = $uid ?? Query::getUuid();\n $normalized_uid = str_replace('-', null, $uid);\n\n return $normalized_uid;\n }", "protected function getUid()\n\t{\n\t\treturn !empty($this->uid['0']) ? $this->uid['0'] : FALSE;\n\t}", "protected function getRealUid($uid, \\TYPO3\\CMS\\Core\\DataHandling\\DataHandler $dataHandler): int\n {\n if (GeneralUtility::isFirstPartOfStr($uid, 'NEW')) {\n $uid = $dataHandler->substNEWwithIDs[$uid];\n }\n return (int)$uid;\n }", "function power_author_box_single_default_on( $value, $user_id ) {\n\n\tif ( power_get_option( 'author_box_single' ) ) {\n\t\treturn power_user_meta_default_on( $value, $user_id );\n\t}\n\n\treturn $value;\n\n}", "function setUid($uid) {\n $this->checkChange();\n $this->uid = $uid;\n return $this;\n }", "public function setUidbase($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->uidbase !== $v) {\n $this->uidbase = $v;\n $this->modifiedColumns[AliMemberTableMap::COL_UIDBASE] = true;\n }\n\n return $this;\n }", "function defval (&$val,$default_val) {\r\n\t\tif (!isset($val) || ''==$val) {\r\n\t\t\t$val=$default_val;\r\n\t\t} elseif ('NULL' == $val) {\r\n\t\t\t$val='';\r\n\t\t}\r\n\r\n\t\tif (ereg(\"^%([^\\[]+)\\[(.+)\\]%$\",$val,$regs) ) {\r\n\t\t\t$val=$this->{$regs[1]}[$regs[2]];\r\n\t\t}\r\n\t}", "function get_default_argument($raw = FALSE) {\r\n if (!$raw && $this->options['default_argument_type'] == 'date') {\r\n return date($this->format(), time());\r\n }\r\n else {\r\n return parent::get_default_argument($raw);\r\n }\r\n }", "public function setUid($value) {\n return $this->set(self::UID, $value);\n }", "function __construct1($uid) {\n \n $this->uid = $uid;\n }", "public function setUid($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->uid !== $v) {\n $this->uid = $v;\n $this->modifiedColumns[AliMemberTableMap::COL_UID] = true;\n }\n\n return $this;\n }", "public function getUid(): ?string\n {\n return $this->uid;\n }", "public function __get($field) {\n\t\tif($field == 'userId'){\n\t\t\treturn $this-uid;\n\t\t}else{\n\t\t\treturn $this->fields($field);\n\t\t}\n\t}", "public function getUidbase()\n {\n return $this->uidbase;\n }", "protected function func_default() {}", "public function setUserfield($value);", "function ldap_autocomplete_dummy_function($l_field_def, $l_custom_field_value) {\n#\tdie(__FILE__ . ':'. __LINE__ . ' ERROR! You need the custom field event patches!');\n}", "public function setUid(?string $uid): void\n {\n $this->uid = $uid;\n }", "public function setEvnUid ($v)\n {\n // Since the native PHP type for this column is string,\n // we will cast the input to a string (if it is not).\n if ( $v !== null && !is_string ($v) )\n {\n $v = (string) $v;\n }\n if ( $this->evn_uid !== $v || $v === '' )\n {\n $this->evn_uid = $v;\n }\n }", "public function getUID() {\r\n return $this->uid;\r\n }", "function _uid_filter ($dn) { return('(uid='.dn2uid($dn).')'); }", "function acf_maybe_idval($value)\n{\n}", "public function __get($field)\n {\n if ($field == 'userId')\n {\n return $this->uid;\n }\n else \n {\n return $this->fields[$field];\n }\n }", "function only_uid($args) {\n\t\t$uid = $args['uid'];\n\t\tunset($args);\n\t\t$args['uid'] = $uid;\n\t\t\n\t\treturn $args;\n\t}", "public function get_uid() {\n\t\treturn 'create';\n\t}", "function apachesolr_userreference_indexing_callback($entity, $field_name, $index_key, array $field_info) {\n $fields = array();\n // Druapl 7 core sets all fields to use LANGUAGE_NONE even if the entity\n // (e.g. node) is flagged as being in a specific language.\n if (!empty($entity->{$field_name}) && isset($entity->{$field_name}[LANGUAGE_NONE])) {\n $index_key = apachesolr_index_key($field_info);\n foreach ($entity->{$field_name}[LANGUAGE_NONE] as $reference) {\n if ($index_value = (isset($reference['uid']) && strlen($reference['uid'])) ? $reference['uid'] : FALSE) {\n $fields[] = array(\n 'key' => $index_key,\n 'value' => $index_value,\n );\n }\n }\n }\n return $fields;\n}", "public function getUID()\n {\n return $this->uid;\n }", "public function getUid() {\n $entity = $this->getEntity();\n if (isset($entity->uid)) {\n return $entity->uid;\n }\n else {\n return 0;\n }\n }", "function hook_uuid_default_entities() {\n\n}", "public function getDefaultIdValue(): RawValue\n {\n return new RawValue('default');\n }", "public function setUid($value)\n {\n return $this->set(self::_UID, $value);\n }", "public function setUid($value)\n {\n return $this->set(self::_UID, $value);\n }", "public function setUid($value)\n {\n return $this->set(self::_UID, $value);\n }", "public function setUid($value)\n {\n return $this->set(self::_UID, $value);\n }", "public function setUid($value)\n {\n return $this->set(self::_UID, $value);\n }", "public function setUid($value)\n {\n return $this->set(self::_UID, $value);\n }", "protected function setMemberDefaults(){\n parent::setMemberDefaults();\n if(!$this->id) $this->id = UniqId::get(\"faq-\");\n }", "public function getUid()\n {\n return $this->uid;\n }", "public function getUid()\n {\n return $this->uid;\n }", "public function getUid()\n {\n return $this->uid;\n }", "public function getUid()\n {\n return $this->uid;\n }", "public function getUid()\n {\n return $this->uid;\n }", "public function getUid()\n {\n return $this->uid;\n }", "public function getUid()\n {\n return $this->uid;\n }", "public function getUid()\n {\n return $this->uid;\n }", "public function getUid()\n {\n return $this->uid;\n }", "public function getUid()\n {\n return $this->uid;\n }", "public function getUid()\n {\n return $this->uid;\n }", "public function getUserfield();", "public function __construct(){\n\t\t$this->uid = null;\n\t\t$this->fields = array('username'=>'', 'emailAddr'=>'', 'isActive'=> false);\n\t}", "public function getUid(): string\n {\n return $this->uid;\n }", "public function setFieldsDefault($event, $user=null)\r\n\t{\r\n\t\t$fields = $this->def->getFields();\r\n\t\tforeach ($fields as $fname=>$field)\r\n\t\t{\r\n\t\t\t// Currently multi-values are not supported for defaults\r\n\t\t\tif ($field->type == \"object_multi\" || $field->type == \"fkey_multi\")\r\n\t\t\t\tcontinue;\r\n\r\n\t\t\t$val = $this->getValue($fname);\r\n\t\t\t$new = $field->getDefault($val, $event, $this, $user);\r\n\r\n\t\t\t// If the default was different, then set it\r\n\t\t\tif ($new != $val)\r\n\t\t\t\t$this->setValue($fname, $new);\r\n\t\t}\r\n\t}", "public function getRootUid() {}", "function define_default($param, $value) {\n\t\t//\n\t}", "public function setCaseUid ($v)\n {\n // Since the native PHP type for this column is string,\n // we will cast the input to a string (if it is not).\n if ( $v !== null && !is_string ($v) )\n {\n $v = (string) $v;\n }\n\n if ( $this->case_uid !== $v || $v === '' )\n {\n $this->case_uid = $v;\n }\n }", "public function init($uid) {\n\t\t$this['uid'] = $uid;\n\t\t$this->fetchDetails();\n\t}", "public function field($key, $default = null);", "public function setRevisionUserId($uid);", "public function setRevisionUserId($uid);", "public function setRevisionUserId($uid);", "public function setRevisionUserId($uid);", "public function setRevisionUserId($uid);" ]
[ "0.64685255", "0.60530853", "0.603588", "0.60351723", "0.5877952", "0.58486927", "0.58157533", "0.5768655", "0.5768655", "0.5768655", "0.5768655", "0.5768191", "0.5766874", "0.5735889", "0.5731715", "0.567088", "0.5654163", "0.5652774", "0.5644181", "0.563377", "0.56337255", "0.5596172", "0.5581515", "0.5581515", "0.5581515", "0.5581515", "0.5581515", "0.5581515", "0.5569094", "0.5569094", "0.55453885", "0.55189484", "0.5501014", "0.5496933", "0.54898787", "0.5486675", "0.5483716", "0.54701775", "0.54671997", "0.5465714", "0.54447013", "0.5436557", "0.5424536", "0.5365703", "0.53586143", "0.5349633", "0.53368825", "0.53290427", "0.5327761", "0.52902114", "0.5283964", "0.5276224", "0.52629745", "0.52590364", "0.5251674", "0.524175", "0.5230877", "0.5221866", "0.5211812", "0.521039", "0.51985663", "0.5188778", "0.51861846", "0.51765573", "0.5169758", "0.5166864", "0.5166683", "0.51574314", "0.515164", "0.51472163", "0.51472163", "0.51472163", "0.51472163", "0.51472163", "0.51472163", "0.5146086", "0.5143231", "0.5143231", "0.5143231", "0.5143231", "0.5143231", "0.5143231", "0.5143231", "0.5143231", "0.5143231", "0.5143231", "0.5143231", "0.5128027", "0.51267695", "0.5123523", "0.5119886", "0.51191103", "0.51158184", "0.5112369", "0.50875235", "0.50831085", "0.50773466", "0.50773466", "0.50773466", "0.50773466", "0.50773466" ]
0.0
-1
Determine whether the update is in an archived state.
public function isArchived() { return $this->status->value == ScheduledUpdateInterface::STATUS_SUCCESSFUL || $this->status->value === ScheduledUpdateInterface::STATUS_UNSUCESSFUL; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isArchived() {\r\n\r\n\t\tself::errorReset();\r\n\t\t$this->reload();\r\n\t\treturn InputValidator::isEmpty($this->archiveDate) ? false: true;\r\n\t}", "public function isArchived() {\n return $this->getStatus() === Status::ARCHIVED;\n }", "public function isArchived()\n {\n return $this->publish_status == Status::ARCHIVED;\n }", "public function isArchived()\n {\n return $this->deleted_at !== null;\n }", "public function isArchived()\n {\n return ($this->archived);\n }", "public function getWasArchived()\n {\n if (!is_null($this->time_archived)){\n return true;\n }\n return false;\n }", "public function isArchived()\n {\n return $this->getArchived();\n }", "public function isArchived()\n {\n return $this->archived;\n }", "public function getIsArchived()\n\t{\n\t\treturn $this->is_archived;\n\t}", "public function is_archive()\n {\n }", "function getIsArchived() {\n return $this->getIsOwner() ? false : parent::getIsArchived();\n }", "public function getIsArchived()\n {\n return $this->getProperty(\"IsArchived\");\n }", "function is_archived( $id ) {\n\treturn get_blog_status($id, 'archived');\n}", "function is_archived($id)\n {\n }", "public static function isArchive()\n {\n return ( self::hasWoocommerce() && ( is_shop() || is_product_category() || is_product_tag() ) );\n }", "public function getArchived()\n {\n return $this->archived;\n }", "function custom_is_archive() {return (is_archive() || is_search());}", "public function isZipArchive(): bool;", "public static function is_in_progress(): bool {\n return Simply_Static\\Options::instance()->get('archive_start_time')\n && !Simply_Static\\Options::instance()->get('archive_end_time');\n }", "public function isStrategyArchive()\n {\n return (bool) (\n $this->config->getConfig(JobConfig::XML_PATH_PURGE_STRATEGY) == JobConfig::JOB_PURGE_STRATEGY_ARCHIVE\n );\n }", "public function setArchived($var)\n {\n GPBUtil::checkBool($var);\n $this->archived = $var;\n\n return $this;\n }", "public function setIsArchived($value)\n {\n return $this->setProperty(\"IsArchived\", $value, true);\n }", "public function ArchivedStatus() {\n\t\tif ($this->Archived == 1) {\n\t\t\treturn _t('GridField.Archived', 'Archived');\n\t\t}\n\t\treturn _t('GridField.Live', 'Live');\n\t}", "public function canArchive()\n {\n if ($this->container instanceof Space) {\n if ($this->canWrite())\n return true;\n return ($this->container->isAdmin());\n } elseif ($this->container instanceof User) {\n return false; // Not available on user profiels because there are no filters?\n }\n\n return false;\n }", "function getArchived($format = 'Y-m-d H:i:s') {\n\t\tif (null === $this->archived || null === $format) {\n\t\t\treturn $this->archived;\n\t\t}\n\t\treturn date($format, $this->archived);\n\t}", "public static function showArchive(){\n if(Cache::isStored('show_archive')) return Cache::get('show_archive');\n $row = getDatabase()->queryFirstRow(\"SELECT `value` FROM `settings` WHERE `setting` = 'show_archive'\");\n $show = $row['value'] == \"false\" ? false : true;\n Cache::store('show_archive', $show);\n return $show;\n }", "function canUnarchive(User $user) {\n // cannot unarchive company which is not archived\n if ($this->object->getState() != STATE_ARCHIVED) {\n return false;\n } // if\n\n return $this->object->isOwner() ? false : $user->isPeopleManager();\n }", "function update_archived( $id, $archived ) {\n\tupdate_blog_status($id, 'archived', $archived);\n\treturn $archived;\n}", "public function getArchiveWithDateTime()\n {\n $value = $this->_config->get('file/archive_with_datetime');\n\n if ($value === null) {\n $value = true;\n }\n\n return (bool)$value;\n }", "public function setArchived($value)\n {\n $this->setItemValue('archived', (bool)$value);\n }", "public function archive(InboxModel $inbox)\n {\n $inbox->setStatus(InboxModel::ARCHIVED);\n\n $this->em->persist($inbox);\n $this->em->flush();\n\n return true;\n }", "function archive_blog( $blog_id )\n\t{\n\t\tupdate_blog_status( $blog_id, 'archived', '1' );\n\t}", "public function isHistorical(): bool\n {\n return self::ISO_STATUS_HISTORICAL === $this->isoStatus;\n }", "public static function shouldRunEvenWhenNoVisits()\n {\n $deletedDuplicateCount = self::deleteArchiveDuplicates();\n Log::debug($deletedDuplicateCount . ' archive entries got deleted');\n\n return true;\n }", "function canArchive(User $user) {\n // companies that are not visible can't be archived\n if ($this->object->getState() < STATE_VISIBLE) {\n return false;\n } // if\n\n return $this->object->isOwner() ? false : $user->isPeopleManager() && ($user->getCompanyId() !== $this->object->getId());\n }", "function canArchive($user) {\n if($this->isOwner()) {\n return false;\n } else {\n return $user->isPeopleManager();\n } // if\n }", "public function setIsArchived($v)\n\t{\n\t\tif ($v !== null) {\n\t\t\t$v = (int) $v;\n\t\t}\n\n\t\tif ($this->is_archived !== $v || $this->isNew()) {\n\t\t\t$this->is_archived = $v;\n\t\t\t$this->modifiedColumns[] = CampaignPeer::IS_ARCHIVED;\n\t\t}\n\n\t\treturn $this;\n\t}", "protected function isRestoring()\n {\n return $this->option('restore') == 'true';\n }", "public function unarchive()\n {\n if ($this->canArchive()) {\n\n $this->archived = 0;\n $this->save();\n }\n }", "function getArchiveStatus(){\n\t\t$con = $this->con();\t\n\t\t$res=false;\n\t\t$query='select log_mode from v$database';\n\t\t$stid = oci_parse($con, $query);\n\t\toci_execute($stid);\n\t\tif($query!=null){\n\t\t\twhile ($row = oci_fetch_array($stid, OCI_ASSOC+OCI_RETURN_NULLS)) {\n\t\t\t\tif($row[\"LOG_MODE\"]==\"ARCHIVELOG\"){\n\t\t\t\t\t$res=true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\toci_close($con);\n\t\treturn $res;\n\t}", "public function getArchive() {\n\t\treturn $this->archive;\n\t}", "public static function _archiveExist($a_xmg_id, $a_archive_id)\n\t{\n\t\treturn in_array($a_archive_id, array_keys(self::_getInstanceByXmgId($a_xmg_id)->getArchives()));\n\t}", "protected function isPackageUpdated() {\n return $this->packageUpdated;\n }", "protected function _archive($dir, $files, $name, $arc) {\r\n\t\treturn false;\r\n\t}", "function allowCreateNewArchive($timestampOfLatestArchive , $timestamp = 24) {\n $yesterday = mktime() - $timestamp*3600 ;\n return ($yesterday >= $timestampOfLatestArchive) ? true : false ;\n}", "public function isDeletedOrReleased() {\n\t\treturn $this->released || $this->released;\n\t}", "function setArchived($value) {\n\t\treturn $this->setColumnValue('archived', $value, Model::COLUMN_TYPE_INTEGER_TIMESTAMP);\n\t}", "public static function archived()\n {\n return (new static )->newQueryWithoutScope(new ContentPublishingScope())->archived();\n }", "function isPublished() {\n\t\tif ($this->status == 'published') {\n\t\t\t$now = time();\n\t\t\tif ($this->datePublish <= $now) {\n\t\t\t\tif ($this->dateUnpublish > $now || $this->dateUnpublish == null) {\n\t\t\t\t\treturn true;\n\t\t\t\t} else {\n\t\t\t\t\treturn false;\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public function isReleased() {\n $strReturn = $this->getReleaseDate();\n if ($strReturn == self::$sNotFound || $strReturn == 'Not yet released') {\n return false;\n }\n\n return true;\n }", "function update_archived($id, $archived)\n {\n }", "abstract public function getArchiveInformation();", "public function setIsArchived($isArchived)\n {\n $this->isArchived = $isArchived;\n return $this;\n }", "public function isPublished()\n {\n if(!strcmp($this->getStatus(), 'approved')) {\n return true;\n }\n\n return false;\n }", "protected function is_date_archive_url( $url ) {\n\t\t$path = \\wp_parse_url( $url, \\PHP_URL_PATH );\n\t\t$path = \\ltrim( $path, '/' );\n\n\t\t$wp_rewrite = $this->wp_rewrite_wrapper->get();\n\t\t$date_rewrite = $wp_rewrite->generate_rewrite_rules( $wp_rewrite->get_date_permastruct(), \\EP_DATE );\n\t\t$date_rewrite = \\apply_filters( 'date_rewrite_rules', $date_rewrite );\n\n\t\tforeach ( (array) $date_rewrite as $match => $query ) {\n\t\t\tif ( \\preg_match( \"#^$match#\", $path ) ) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t}", "function isUpdated() {\n\t\treturn $this->_Updated;\n\t}", "public function archive($ref_id, $data)\n\t{\n\t\t$CI =& get_instance();\n\t\t$CI->load->module_model(FUEL_FOLDER, 'fuel_archives_model');\n\t\t\n\t\t// grab archive to compare it to current data values... don't want to save if it isn't different\n\t\t$last_archive = $this->get_last_archive($ref_id, TRUE);\n\t\t$last_archive_data = (!empty($last_archive['data'])) ? $last_archive['data'] : array();\n\t\t$last_archive_version = (!empty($last_archive['version'])) ? $last_archive['version'] : 0;\n\t\t\n\t\t// just return true if it's the same as the last version'\n\t\t$tmp_data = $data;\n\t\t\n\t\t// remove unimportant data from check\n\t\t$remove_from_check = array('last_modified', 'published');\n\t\tforeach($remove_from_check as $val)\n\t\t{\n\t\t\tif (!empty($last_archive_data[$val])) unset($last_archive_data[$val]);\n\t\t\tif (!empty($tmp_data[$val])) unset($tmp_data[$val]);\n\t\t}\n\t\t\n\t\tif (!empty($last_archive_data) AND $last_archive_data == $tmp_data) {\n\t\t\treturn true;\n\t\t}\n\n\t\t// save to archive\n\t\t$user = $CI->fuel->auth->user_data();\n\t\t$save['ref_id'] = $ref_id;\n\t\t$save['table_name'] = $this->table_name;\n\t\t$save['archived_user_id'] = $user['id'];\n\t\t$save['version'] = $last_archive_version + 1;\n\t\t$save['data'] = json_encode($data);\n\t\tif ($saved = $this->fuel_archives_model->save($save))\n\t\t{\n\t\t\t$num_versions = $this->fuel_archives_model->record_count(array('table_name' => $this->table_name, 'ref_id' => $ref_id));\n\t\t\tif ($num_versions > $CI->config->item('max_number_archived', 'fuel') )\n\t\t\t{\n\t\t\t\t$delete_version = ($last_archive_version - $CI->config->item('max_number_archived', 'fuel')) + 1;\n\t\t\t\t$where = array('table_name' => $this->table_name, 'ref_id' => $ref_id, 'version' => $delete_version);\n\t\t\t\t$this->fuel_archives_model->delete($where);\n\t\t\t}\n\t\t}\n\t\treturn $saved;\n\t}", "protected function isOutdated(): bool {\n $outdated = true;\n if(!$this->dry()){\n $timezone = $this->getF3()->get('getTimeZone')();\n $currentTime = new \\DateTime('now', $timezone);\n $updateTime = \\DateTime::createFromFormat(\n 'Y-m-d H:i:s',\n $this->updated,\n $timezone\n );\n $interval = $updateTime->diff($currentTime);\n if($interval->days < Universe\\BasicUniverseModel::CACHE_MAX_DAYS){\n $outdated = false;\n }\n }\n return $outdated;\n }", "public function getArchive()\n {\n return $this->options['archive'];\n }", "public function canArchive($member = false)\n {\n return Permission::check(get_class($this->owner) . '_archive');\n }", "public function getIsUnPublishScheduled()\n {\n /** @var DBDatetime $unpublish */\n $unpublish = $this->owner->dbObject('UnPublishOnDate');\n\n if ($unpublish->InFuture()) {\n return true;\n }\n\n if ((int) $this->owner->UnPublishJobID !== 0) {\n return true;\n }\n\n return false;\n }", "public function getArchive() {\r\n\t\treturn $this->options ['archive'];\r\n\t}", "public function isPublished()\n {\n return ($this->published == 1);\n }", "public function skipThisUpdate()\n { // This entire method seems obsolete, due to the SELECT ... WHERE in loadPublishablePermits().\n $result = false;\n $d = $this->getField('deleted') == 1 || $this->getField('hidden') == 1;\n if ($d || $this->getField('lastpublished', true) > $this->getField('lastmodified', true)) {\n $result = true;\n }\n return $result;\n }", "public function updateIsAvailable()\n {\n return self::INSTALLED_VERSION != $this->version;\n }", "public function restoreArchivedChannel(string $channel): bool\n {\n $uri = 'chats/channels/{channel}/restore-archived';\n $uriArguments = [\n 'channel' => $channel,\n ];\n\n $this->client->post($this->buildUrl($uri, $uriArguments));\n\n return true;\n }", "public function hasPreservationInBackups() {\n\t\treturn $this->preservationInBackups;\n\t}", "public function beenUpdated()\n {\n return count($this->updatePlan) > 0;\n }", "public function isDraft()\n {\n return $this->publish_status == Status::DRAFT;\n }", "public function publishedStatus()\n {\n if ( !$this->owner->getScheduledStatus() && !$this->owner->getExpiredStatus() ) {\n return true;\n }\n\n return false;\n }", "public function isPublished()\n\t{\n\t\treturn ($this->get('published') == self::STATE_PUBLISHED);\n\t}", "public function archive_group( $group_id ) {\n $g = $this->call( 'groupArchive', [\n 'groupIds' => is_array( $group_id ) ? $group_id : [ $group_id ],\n ] );\n\n return ( isset( $g ) && $g != false && $g->archivingResults->entityKey ) == $group_id ? true : false;\n }", "public function is_post_type_archive($post_types = '')\n {\n }", "function isActivity() {\n\t\treturn $this->repoObj->lobType == 'activity';\n\t}", "public function testArchivedItem() {\n\n $response = $this->request('GET', $this->getURIData($this->TEST_BOARD_HASH));\n\n $body = (string) $response->getBody();\n $json = json_decode($body, true);\n\n $this->assertArrayHasKey(\"stacks\", $json);\n $this->assertIsArray($json[\"stacks\"]);\n\n foreach($json[\"stacks\"] as $stack){\n $this->assertIsArray($stack);\n $this->assertArrayHasKey(\"cards\", $stack);\n\n foreach($stack[\"cards\"] as $card){\n $this->assertIsArray($card);\n $this->assertArrayHasKey(\"id\", $card);\n $this->assertArrayHasKey(\"title\", $card);\n\n if($card[\"title\"] == $this->TEST_CARD_TITLE){\n $this->assertEquals(1, $card[\"archive\"]);\n }\n }\n }\n }", "public function saveArchive(): bool\n {\n if (!$this->uploadVideoFile()) {\n $attribute = $this->isLink() ? UploadArchiveInterface::FIELD_DIRECT_URL : UploadArchiveInterface::FIELD_VIDEO_FILE;\n $errorsList = Yii::createObject(ErrorListInterface::class);\n $this->addError($attribute, $errorsList->createErrorMessage(ErrorList::FILE_INVALID));\n return false;\n }\n return true;\n }", "public function isOutdated() {}", "public function is_post_upcoming($post_id = false) {\n $post_id = (!empty($post_id)) ? $post_id : get_the_ID();\n //In order to do this check we need both a post, and an archive date field\n if (empty($post_id) || empty($this->dates['archive'])) {\n return;\n }\n //Get the archived date\n $archive_date = get_post_meta($post_id, $this->dates['archive']);\n \n //Get todays date to compare against\n $today = date('Ymd');\n \n //If we do not have an info in the archive_date post meta, stop\n if (empty($archive_date)) {\n return;\n }\n \n //Update the archive based on the inequalitys\n $post_meta_value = (intval($today) < intval($archive_date[0])) ? \"Upcoming\" : \"Past\";\n update_post_meta($post_id, '_is_upcoming', intval($today) < intval($archive_date[0]));\n //This post meta field is specifically for facets.\n //TODO: Could just be the only one?\n update_post_meta($post_id, '_event_upcoming_label', $post_meta_value);\n }", "protected function hasPublishedVersion(): bool {\n $revision = $this->getCurrentRevision();\n if (NULL === $revision) {\n return FALSE;\n }\n\n return $revision->isPublished();\n }", "public static function is_archive( $file_name, $prefix = '', $suffix = '' ) {\r\n\t\treturn preg_match( '/' . $prefix . '(.*).(zip|tar|tar.gz|tar.bz2)' . $suffix . '$/', $file_name );\r\n\t}", "public function isPublished()\n {\n return $this->published_at->lte(Carbon::now());\n }", "public function isPublished()\n {\n return $this->attribute('state') == self::STATUS_PUBLISHED;\n }", "public function isDraft() {\n return $this->getEditingStatus() != '';\n }", "public function isVersionActivelyMaintained() {}", "public function isPublished()\n {\n return $this->status == static::PUBLISHED;\n }", "public function isOutdated(): bool\n {\n return $this->getVersionsBehind() > 0;\n }", "public function isActive()\n {\n return ($this->isDraft() || $this->isExpired()) ? false : true;\n }", "public function isPublished()\n {\n # code...\n return !is_null($this->published_at) && $this->published_at < today();\n }", "public function setHasArchive($has = false){\n\t\t$this->hasArchive = $has;\n\t}", "protected function thenExistingDocumentWasArchived()\n {\n }", "public function hasIsDraft()\n {\n return $this->IsDraft !== null;\n }", "public function isReadyForPurge()\n\t{\n\t\tif($this->getStatus() != CategoryStatus::DELETED)\n\t\t\treturn false;\n\t\t\t\n\t\tif($this->getMembersCount())\n\t\t{\n\t\t\tKalturaLog::debug(\"Category still associated with [\" . $this->getMembersCount() . \"] users\");\n\t\t\treturn false;\n\t\t}\n\t\t\t\n\t\tif($this->getEntriesCount() > 0)\n\t\t{\n\t\t\tKalturaLog::debug(\"Category still associated with [\" . $this->getEntriesCount() . \"] entries\");\n\t\t\treturn false;\n\t\t}\n\t\t\t\n\t\tif($this->getDirectSubCategoriesCount() > 0)\n\t\t{\n\t\t\tKalturaLog::debug(\"Category still associated with [\" . $this->getDirectSubCategoriesCount() . \"] sub categories\");\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\treturn true;\n\t}", "public function isNeedUpdate()\n {\n if (is_null($this['episode_update_date'])){\n return true;\n }\n if (Carbon::now()->diffInDays(new Carbon($this['episode_update_date'])) > 3){\n return true;\n }\n return false;\n }", "public function isDraft();", "public function isDraft();", "public function isDraft();", "public function isDraft() {\n return $this->state === self::STATUS_DRAFT;\n }", "public function isValidUpdate() {\n\t\t// Check name of the installed package against the name of the update. Both must be identical.\n\t\tif ($this->packageInfo['name'] != $this->package->getPackage()) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t// Check if the version number of the installed package is lower than the version number to which\n\t\t// it's about to be updated.\n\t\tif (Package::compareVersion($this->packageInfo['version'], $this->package->getVersion()) != 1) {\n\t\t\treturn false;\n\t\t}\n\t\t// Check if the package provides an instructions block for the update from the installed package version\n\t\tif ($this->update === null) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "public function hasDrafts(): bool\n {\n return $this->drafts()->count() > 0;\n }", "public function getOrderArchived() {\n return array(array('id' => 0, 'value' => 'active'), array('id' => 1, 'value' => 'archived'));\n }" ]
[ "0.83365977", "0.8316082", "0.8221019", "0.82122695", "0.8198312", "0.8097187", "0.8079391", "0.8033687", "0.78205544", "0.7424922", "0.7357054", "0.7341165", "0.71116364", "0.7111003", "0.6856655", "0.67316043", "0.6647862", "0.65071785", "0.64680856", "0.6370561", "0.6237466", "0.62247354", "0.61175066", "0.60605764", "0.60475945", "0.6027913", "0.5817749", "0.5816353", "0.57045805", "0.56840277", "0.56739795", "0.5668086", "0.56666374", "0.56593895", "0.55925936", "0.5553493", "0.55449766", "0.55350906", "0.55338514", "0.5519479", "0.5512197", "0.5499982", "0.54772276", "0.54472864", "0.54322475", "0.53851306", "0.53732014", "0.53676546", "0.53609765", "0.53598624", "0.53587794", "0.5345534", "0.53380555", "0.5319906", "0.53054976", "0.53050697", "0.528569", "0.52756226", "0.52677965", "0.5267443", "0.52612907", "0.5256767", "0.52518505", "0.5235255", "0.52255714", "0.5220888", "0.5220273", "0.52200234", "0.5219119", "0.52151793", "0.5206833", "0.5203432", "0.5188739", "0.51828605", "0.518253", "0.5174559", "0.51596785", "0.5155737", "0.5143863", "0.51311517", "0.51207876", "0.511863", "0.51150113", "0.5113313", "0.51114315", "0.51103973", "0.51094484", "0.51008135", "0.5098196", "0.50832206", "0.50774", "0.5072811", "0.5068704", "0.5057872", "0.5057872", "0.5057872", "0.50523496", "0.50487125", "0.5037472", "0.50299084" ]
0.8470955
0
Returns the ID of a page from the slug.
function get_id_by_slug($page_slug) { # Try grab page by title. $obj = get_page_by_title($page_slug); if ($obj) { return $obj->ID; }else{ # If no-go, try by full page path: $obj = get_page_by_path($page_slug); return ($obj) ? $obj->ID : false; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_id_by_slug($page_slug) {\n \t$page = get_page_by_path($page_slug);\n \tif ($page) {\n \t\treturn $page->ID;\n \t} else {\n \t\treturn null;\n \t}\n }", "function get_id_by_slug($page_slug) {\n\t$page = get_page_by_path($page_slug);\n\tif($page) {\n\t\treturn $page->ID;\n\t} else {\n\t\treturn null;\n\t}\n}", "function get_ID_by_slug($page_slug)\n{\n $page = get_page_by_path($page_slug);\n if ($page) {\n return $page->ID;\n } else {\n return null;\n }\n}", "function alaya_page_id($page_slug) {\n $page = get_page_by_path($page_slug);\n if ($page) {\n return $page->ID;\n } else {\n return null;\n }\n}", "function L_getIdBySlug($page_slug) {\n\t\t\n\t\t$page = get_page_by_path($page_slug);\n\t\t\n\t\tif ($page) {\n\t\t\t\n\t\t\treturn $page->ID;\n\t\t\n\t\t} else {\n\t\t\n\t\t\treturn null;\n\t\t\n\t\t}\n\t\n\t}", "public function get_page_ID_by_slug( $slug ) {\n\t\t$page = get_page_by_path( $slug );\n\t\tif ( $page ) {\n\t\t\treturn (int) $page->ID;\n\t\t}\n\t\telse {\n\t\t\treturn null;\n\t\t}\n\t}", "public static function getIDFromSlug($slug) {\r\n \r\n $Database = (new AppCore)->getDatabaseConnection(); \r\n \r\n if (filter_var($slug, FILTER_VALIDATE_INT)) {\r\n return $slug; \r\n }\r\n \r\n $query = \"SELECT id FROM image_competition WHERE slug = ?\";\r\n $tempid = $Database->fetchOne($query, $slug);\r\n \r\n if (filter_var($tempid, FILTER_VALIDATE_INT)) {\r\n return $tempid;\r\n }\r\n \r\n $query = \"SELECT ID from image_competition WHERE title = ?\";\r\n return $Database->fetchOne($query, $slug);\r\n \r\n }", "function get_id_from_blogname($slug)\n {\n }", "function get_post_id($slug = '', $display = true) {\n\tif($slug == '') { $slug = $_GET['page']; }\n\t\n\tinclude('connect.php');\t\t\n\t\n\t$get = $db->prepare('SELECT id FROM posts WHERE slug = :slug');\n\t$get->execute(array(':slug' => $slug));\n\t\n\t$return = $get->fetch(PDO::FETCH_OBJ);\t\t\n\t\n\tif($display) echo $return->id;\n\treturn $return->id;\n}", "function getIdFromSlug($slug='') {\n\t\tif(!$slug) return 0;\n\t\t$result = $this->select('id',\"`store_id` = '\".$this->store_id.\"' AND slug = '$slug'\");\n\t\tif($result) return $result[0]['id'];\n\t\treturn 0;\n\t}", "function get_page_id($page_name){\n\tglobal $wpdb;\n\t$page_name = $wpdb->get_var(\"SELECT ID FROM $wpdb->posts WHERE post_name = '\".$page_name.\"'\");\n\treturn $page_name;\n}", "public function getResourceIdFromSlug(string $slug): int;", "private function getPageId()\n {\n return $this->getRequest()->getParam('id') ?: $this->getRequest()->getParam('page_id');\n }", "function fiorello_mikado_get_page_id() {\n\t\tif ( fiorello_mikado_is_woocommerce_installed() && fiorello_mikado_is_woocommerce_shop() ) {\n\t\t\treturn fiorello_mikado_get_woo_shop_page_id();\n\t\t}\n\n\t\tif ( fiorello_mikado_is_default_wp_template() ) {\n\t\t\treturn - 1;\n\t\t}\n\n\t\treturn get_queried_object_id();\n\t}", "public function getResourceIdFromTranslatedSlug(string $slug): int;", "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 function slugToId($slug)\n {\n $result = false;\n\n if ($slug) {\n $row = $this->find($slug, 'slug');\n if ($row) {\n $result = $row->id;\n }\n }\n\n return $result;\n }", "function get_page_id() {\n return isset($_GET['page']) && $_GET['page'] ? $_GET['page'] : 'home';\n}", "function gimme_an_id($slug) {\n\n\t$mytermID = get_term_by( 'name', $slug, 'category' );\n\treturn (int)$mytermID->term_id;\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}", "public function getPageId()\n {\n return $this->page_id;\n }", "protected function determinePageId() {}", "protected function determinePageId() {}", "function carton_get_page_id( $page ) {\n\t\t$page = apply_filters('carton_get_' . $page . '_page_id', get_option('carton_' . $page . '_page_id'));\n\t\treturn ( $page ) ? $page : -1;\n\t}", "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}", "function getPageID() \n {\n return (int) $this->getValueByFieldName( 'page_id' );\n }", "private static function get_id_from_url(string $url): string {\n\n global $wpdb;\n $query = \"SELECT ID FROM {$wpdb->posts} WHERE guid='$url'\";\n $id = $wpdb->get_var($query);\n\n return $id;\n }", "public function getPageId() {}", "public function getPageId() {}", "public function getPageId()\n {\n return $this->getPage() ?\n $this->getPage()->getId() : null;\n }", "Public function getPageId() {\n\t\tif(!empty($this->pageid))\n\t\t\treturn $this->pageid;\n\t\telse {\n\t\t\treturn false;\n\t\t}\n\t}", "function get_page_id_from_path( $path ) {\n\t$page = get_page_by_path( $path );\n\tif( $page ) {\n\t\treturn $page->ID;\n\t} else {\n\t\treturn null;\n\t};\n}", "function get_page_id_from_path( $path ) {\n\t$page = get_page_by_path( $path );\n\tif( $page ) {\n\t\treturn $page->ID;\n\t} else {\n\t\treturn null;\n\t};\n}", "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}", "public function getPageId()\n {\n return $this->_pageId;\n }", "public function getPageId() {\r\n\t\treturn $this->_id;\r\n\t}", "function fusion_wc_get_page_id( $page ) {\n\t\tif ( function_exists( 'wc_get_page_id' ) ) {\n\t\t\treturn wc_get_page_id( $page );\n\t\t} elseif ( function_exists( 'woocommerce_get_page_id' ) ) {\n\t\t\treturn woocommerce_get_page_id( $page );\n\t\t}\n\t}", "public function getIdentifier()\n {\n return $this->slug ?: $this->id;\n }", "public function getPageID(){\n\t\t\n\t\tif(self::USE_SPLASH)\n\t\t{\n\t\t\t$this->setSplashID();\n\t\t}\n\t\telse $this->setPageID();\n\t\t\n\t}", "abstract protected function determinePageId() ;", "public function get_page_id() {\n\t\t\treturn $this->current_page_id;\n\t\t}", "function get_proper_ID() {\n\n $page_id = get_the_ID();\n\n #4851\n global $wp_query;\n $page_id = $wp_query->post->ID;\n\n if ( !is_front_page() && is_home() ) {\n $page_id = ( 'page' == get_option( 'show_on_front' ) ? get_option( 'page_for_posts' ) : get_the_ID() ); // $page_id ?\n }\n\n if ( class_exists( 'woocommerce' ) ) {\n if (gecko_is_shop()) {\n $page_id = get_option( 'woocommerce_shop_page_id' );\n }\n }\n\n return $page_id;\n}", "public function slug()\n\t{\n\t\t$explode = explode('/', $this->getField('key'));\n\n\t\t// Check if the page have a parent.\n\t\tif(!empty($explode[1])) {\n\t\t\treturn $explode[1];\n\t\t}\n\n\t\treturn $explode[0];\n\t}", "public function getActivePageSlug()\n {\n $url = wp_parse_url( $this->getServerVar( 'REQUEST_URI' ) );\n\n if ( ! isset( $url['path'] ) ) return false;\n\n $url = explode( '/', untrailingslashit( $url['path'] ) );\n $offset = count( $url ) - 1;\n\n $url_offset = isset( $url[ $offset ] ) ? $url[ $offset ] : '';\n return sanitize_key( $url_offset );\n }", "function cmsPage($mIdSlug): ?Resource\\Page\n {\n /** @var Model\\Page $oModel */\n $oModel = Factory::model('Page', Constants::MODULE_SLUG);\n return $oModel->getByIdOrSlug($mIdSlug);\n }", "function ss_get_slug( $id ) {\r\n\tif ( $id==null ) $id=$post->ID;\r\n\t$post_data = get_post( $id, ARRAY_A );\r\n\t$slug = $post_data['post_name'];\r\n\treturn $slug;\r\n}", "function fs_get_page_id_from_path( $path ) {\r\n\t$page = get_page_by_path( $path );\r\n\tif ( $page ) {\r\n\t\treturn $page->ID;\r\n\t} else {\r\n\t\treturn null;\r\n\t};\r\n}", "public function set_page_id() {\n\n\t\t\t$page_id = false;\n\t\t\t$object_id = get_queried_object_id();\n\n\t\t\tif ( get_option( 'show_on_front' ) && get_option( 'page_for_posts' ) && is_home() ) {\n\t\t\t\t$page_id = get_option( 'page_for_posts' );\n\t\t\t} else {\n\n\t\t\t\t// Use the $object_id if available.\n\t\t\t\tif ( isset( $object_id ) ) {\n\t\t\t\t\t$page_id = $object_id;\n\t\t\t\t}\n\n\t\t\t\t// If we're not on a singular post, set to false.\n\t\t\t\tif ( ! is_singular() ) {\n\t\t\t\t\t$page_id = false;\n\t\t\t\t}\n\n\t\t\t\t// Front page is the posts page.\n\t\t\t\tif ( isset( $object_id ) && 'posts' == get_option( 'show_on_front' ) && is_home() ) {\n\t\t\t\t\t$page_id = $object_id;\n\t\t\t\t}\n\n\t\t\t\t// The woocommerce shop page.\n\t\t\t\tif ( class_exists( 'WooCommerce' ) && ( is_shop() || is_tax( 'product_cat' ) || is_tax( 'product_tag' ) ) ) {\n\t\t\t\t\t$page_id = get_option( 'woocommerce_shop_page_id' );\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$this->current_page_id = $page_id;\n\n\t\t\treturn $page_id;\n\t\t}", "public function getIdByPageName($page, $pdo) {\r\n $sql = \"SELECT url_id FROM urls WHERE page_address = ?\";\r\n $q = $pdo->prepare($sql);\r\n try {\r\n $q->execute(array($page));\r\n $row = $q->fetch(PDO::FETCH_NUM);\r\n } catch (PDOException $e) {\r\n echo 'get id by page name failed. '.$e->getMessage();\r\n }\r\n\r\n return $row[0];\r\n }", "public function get_url_to_postid( $url ) {\n\t\tif ( function_exists( 'url_to_postid' ) ) {\n\t\t\treturn url_to_postid( $url );\n\t\t}\n\t\tglobal $wp_rewrite;\n\n\t\t$url = apply_filters( 'tm_url_to_postid', $url );\n\n\t\t// First, check to see if there is a 'p=N' or 'page_id=N' to match against\n\t\tif ( preg_match( '#[?&](p|page_id|attachment_id)=(\\d+)#', $url, $values ) ) {\n\t\t\t$id = absint( $values[2] );\n\t\t\tif ( $id )\n\t\t\t\treturn $id;\n\t\t}\n\n\t\t// Check to see if we are using rewrite rules\n\t\t$rewrite = $wp_rewrite->wp_rewrite_rules();\n\n\t\t// Not using rewrite rules, and 'p=N' and 'page_id=N' methods failed, so we're out of options\n\t\tif ( empty( $rewrite ) )\n\t\t\treturn 0;\n\n\t\t// Get rid of the #anchor\n\t\t$url_split = explode( '#', $url );\n\t\t$url = $url_split[0];\n\n\t\t// Get rid of URL ?query=string\n\t\t$url_split = explode( '?', $url );\n\t\t$url = $url_split[0];\n\n\t\t// Add 'www.' if it is absent and should be there\n\t\tif ( FALSE !== strpos( home_url(), '://www.' ) && FALSE === strpos( $url, '://www.' ) )\n\t\t\t$url = str_replace( '://', '://www.', $url );\n\n\t\t// Strip 'www.' if it is present and shouldn't be\n\t\tif ( FALSE === strpos( home_url(), '://www.' ) )\n\t\t\t$url = str_replace( '://www.', '://', $url );\n\n\t\t// Strip 'index.php/' if we're not using path info permalinks\n\t\tif ( !$wp_rewrite->using_index_permalinks() )\n\t\t\t$url = str_replace( 'index.php/', '', $url );\n\n\t\tif ( FALSE !== strpos( $url, home_url() ) ) {\n\t\t\t// Chop off http://domain.com\n\t\t\t$url = str_replace( home_url(), '', $url );\n\t\t} else {\n\t\t\t// Chop off /path/to/blog\n\t\t\t$home_path = parse_url( home_url() );\n\t\t\t$home_path = isset( $home_path['path'] ) ? $home_path['path'] : '';\n\t\t\t$url = str_replace( $home_path, '', $url );\n\t\t}\n\n\t\t// Trim leading and lagging slashes\n\t\t$url = trim( $url, '/' );\n\n\t\t$request = $url;\n\t\t// Look for matches.\n\t\t$request_match = $request;\n\t\tforeach ( (array) $rewrite as $match => $query ) {\n\t\t\t// If the requesting file is the anchor of the match, prepend it\n\t\t\t// to the path info.\n\t\t\tif ( !empty( $url ) && ($url != $request) && (strpos( $match, $url ) === 0) )\n\t\t\t\t$request_match = $url . '/' . $request;\n\n\t\t\tif ( preg_match( \"!^$match!\", $request_match, $matches ) ) {\n\t\t\t\t// Got a match.\n\t\t\t\t// Trim the query of everything up to the '?'.\n\t\t\t\t$query = preg_replace( \"!^.+\\?!\", '', $query );\n\n\t\t\t\t// Substitute the substring matches into the query.\n\t\t\t\t$query = addslashes( WP_MatchesMapRegex::apply( $query, $matches ) );\n\n\t\t\t\t// Filter out non-public query vars\n\t\t\t\tglobal $wp;\n\t\t\t\tparse_str( $query, $query_vars );\n\t\t\t\t$query = array();\n\t\t\t\tforeach ( (array) $query_vars as $key => $value ) {\n\t\t\t\t\tif ( in_array( $key, $wp->public_query_vars ) )\n\t\t\t\t\t\t$query[ $key ] = $value;\n\t\t\t\t}\n\n\t\t\t\t// Taken from class-wp.php\n\t\t\t\tforeach ( $GLOBALS['wp_post_types'] as $post_type => $t )\n\t\t\t\t\tif ( $t->query_var )\n\t\t\t\t\t\t$post_type_query_vars[ $t->query_var ] = $post_type;\n\n\t\t\t\tforeach ( $wp->public_query_vars as $wpvar ) {\n\t\t\t\t\tif ( isset( $wp->extra_query_vars[ $wpvar ] ) )\n\t\t\t\t\t\t$query[ $wpvar ] = $wp->extra_query_vars[ $wpvar ];\n\t\t\t\t\telseif ( isset( $_POST[ $wpvar ] ) )\n\t\t\t\t\t\t$query[ $wpvar ] = $_POST[ $wpvar ];\n\t\t\t\t\telseif ( isset( $_GET[ $wpvar ] ) )\n\t\t\t\t\t\t$query[ $wpvar ] = $_GET[ $wpvar ];\n\t\t\t\t\telseif ( isset( $query_vars[ $wpvar ] ) )\n\t\t\t\t\t\t$query[ $wpvar ] = $query_vars[ $wpvar ];\n\n\t\t\t\t\tif ( !empty( $query[ $wpvar ] ) ) {\n\t\t\t\t\t\tif ( !is_array( $query[ $wpvar ] ) ) {\n\t\t\t\t\t\t\t$query[ $wpvar ] = (string) $query[ $wpvar ];\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tforeach ( $query[ $wpvar ] as $vkey => $v ) {\n\t\t\t\t\t\t\t\tif ( !is_object( $v ) ) {\n\t\t\t\t\t\t\t\t\t$query[ $wpvar ][ $vkey ] = (string) $v;\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\n\t\t\t\t\t\tif ( isset( $post_type_query_vars[ $wpvar ] ) ) {\n\t\t\t\t\t\t\t$query['post_type'] = $post_type_query_vars[ $wpvar ];\n\t\t\t\t\t\t\t$query['name'] = $query[ $wpvar ];\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Do the query\n\t\t\t\t$query = new WP_Query( $query );\n\t\t\t\tif ( !empty( $query->posts ) && $query->is_singular )\n\t\t\t\t\treturn $query->post->ID;\n\t\t\t\telse\n\t\t\t\t\treturn 0;\n\t\t\t}\n\t\t}\n\n\t\treturn 0;\n\t}", "public function get_url_to_postid($url){\n\t\tglobal $wp_rewrite;\n\n\t\t$url = apply_filters('tm_url_to_postid', $url);\n\n\t\t// First, check to see if there is a 'p=N' or 'page_id=N' to match against\n\t\tif ( preg_match('#[?&](p|page_id|attachment_id)=(\\d+)#', $url, $values) )\t{\n\t\t\t$id = absint($values[2]);\n\t\t\tif ( $id )\n\t\t\t\treturn $id;\n\t\t}\n\n\t\t// Check to see if we are using rewrite rules\n\t\t$rewrite = $wp_rewrite->wp_rewrite_rules();\n\n\t\t// Not using rewrite rules, and 'p=N' and 'page_id=N' methods failed, so we're out of options\n\t\tif ( empty($rewrite) )\n\t\t\treturn 0;\n\n\t\t// Get rid of the #anchor\n\t\t$url_split = explode('#', $url);\n\t\t$url = $url_split[0];\n\n\t\t// Get rid of URL ?query=string\n\t\t$url_split = explode('?', $url);\n\t\t$url = $url_split[0];\n\n\t\t// Add 'www.' if it is absent and should be there\n\t\tif ( false !== strpos(home_url(), '://www.') && false === strpos($url, '://www.') )\n\t\t\t$url = str_replace('://', '://www.', $url);\n\n\t\t// Strip 'www.' if it is present and shouldn't be\n\t\tif ( false === strpos(home_url(), '://www.') )\n\t\t\t$url = str_replace('://www.', '://', $url);\n\n\t\t// Strip 'index.php/' if we're not using path info permalinks\n\t\tif ( !$wp_rewrite->using_index_permalinks() )\n\t\t\t$url = str_replace('index.php/', '', $url);\n\n\t\tif ( false !== strpos($url, home_url()) ) {\n\t\t\t// Chop off http://domain.com\n\t\t\t$url = str_replace(home_url(), '', $url);\n\t\t} else {\n\t\t\t// Chop off /path/to/blog\n\t\t\t$home_path = parse_url(home_url());\n\t\t\t$home_path = isset( $home_path['path'] ) ? $home_path['path'] : '' ;\n\t\t\t$url = str_replace($home_path, '', $url);\n\t\t}\n\n\t\t// Trim leading and lagging slashes\n\t\t$url = trim($url, '/');\n\n\t\t$request = $url;\n\t\t// Look for matches.\n\t\t$request_match = $request;\n\t\tforeach ( (array)$rewrite as $match => $query) {\n\t\t\t// If the requesting file is the anchor of the match, prepend it\n\t\t\t// to the path info.\n\t\t\tif ( !empty($url) && ($url != $request) && (strpos($match, $url) === 0) )\n\t\t\t\t$request_match = $url . '/' . $request;\n\n\t\t\tif ( preg_match(\"!^$match!\", $request_match, $matches) ) {\n\t\t\t\t// Got a match.\n\t\t\t\t// Trim the query of everything up to the '?'.\n\t\t\t\t$query = preg_replace(\"!^.+\\?!\", '', $query);\n\n\t\t\t\t// Substitute the substring matches into the query.\n\t\t\t\t$query = addslashes(WP_MatchesMapRegex::apply($query, $matches));\n\n\t\t\t\t// Filter out non-public query vars\n\t\t\t\tglobal $wp;\n\t\t\t\tparse_str($query, $query_vars);\n\t\t\t\t$query = array();\n\t\t\t\tforeach ( (array) $query_vars as $key => $value ) {\n\t\t\t\t\tif ( in_array($key, $wp->public_query_vars) )\n\t\t\t\t\t\t$query[$key] = $value;\n\t\t\t\t}\n\n\t\t\t// Taken from class-wp.php\n\t\t\tforeach ( $GLOBALS['wp_post_types'] as $post_type => $t )\n\t\t\t\tif ( $t->query_var )\n\t\t\t\t\t$post_type_query_vars[$t->query_var] = $post_type;\n\n\t\t\tforeach ( $wp->public_query_vars as $wpvar ) {\n\t\t\t\tif ( isset( $wp->extra_query_vars[$wpvar] ) )\n\t\t\t\t\t$query[$wpvar] = $wp->extra_query_vars[$wpvar];\n\t\t\t\telseif ( isset( $_POST[$wpvar] ) )\n\t\t\t\t\t$query[$wpvar] = $_POST[$wpvar];\n\t\t\t\telseif ( isset( $_GET[$wpvar] ) )\n\t\t\t\t\t$query[$wpvar] = $_GET[$wpvar];\n\t\t\t\telseif ( isset( $query_vars[$wpvar] ) )\n\t\t\t\t\t$query[$wpvar] = $query_vars[$wpvar];\n\n\t\t\t\tif ( !empty( $query[$wpvar] ) ) {\n\t\t\t\t\tif ( ! is_array( $query[$wpvar] ) ) {\n\t\t\t\t\t\t$query[$wpvar] = (string) $query[$wpvar];\n\t\t\t\t\t} else {\n\t\t\t\t\t\tforeach ( $query[$wpvar] as $vkey => $v ) {\n\t\t\t\t\t\t\tif ( !is_object( $v ) ) {\n\t\t\t\t\t\t\t\t$query[$wpvar][$vkey] = (string) $v;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tif ( isset($post_type_query_vars[$wpvar] ) ) {\n\t\t\t\t\t\t$query['post_type'] = $post_type_query_vars[$wpvar];\n\t\t\t\t\t\t$query['name'] = $query[$wpvar];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t\t// Do the query\n\t\t\t\t$query = new WP_Query($query);\n\t\t\t\tif ( !empty($query->posts) && $query->is_singular )\n\t\t\t\t\treturn $query->post->ID;\n\t\t\t\telse\n\t\t\t\t\treturn 0;\n\t\t\t}\n\t\t}\n\t\treturn 0;\n\t}", "function GetPageIDFromAlias( $alias )\n\t{\n\t\tglobal $gCms;\n\t\t$db = &$gCms->GetDb();\n\n\t\tif (is_numeric($alias) && strpos($alias,'.') == FALSE && strpos($alias,',') == FALSE)\n\t\t{\n\t\t\treturn $alias;\n\t\t}\n\n\t\t$params = array($alias);\n\t\t$query = \"SELECT content_id FROM \".cms_db_prefix().\"content WHERE content_alias = ?\";\n\t\t$row = $db->GetRow($query, $params);\n\n\t\tif (!$row)\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\treturn $row['content_id'];\n\t}", "public function get_id_by_slug( $name = false ){\n\n\t\tif( $name ){\n\t\t\tglobal $wpdb;\n\n\t\t\t$query = $wpdb->prepare( \"SELECT ID FROM {$wpdb->posts} WHERE post_status = 'publish' AND post_type = 'wp_simple_flexslider' AND post_title = %s\", $name );\n\n\t\t\t$post = $wpdb->get_row( $query );\n\n\t\t\tif( isset( $post->ID ) ){\n\n\t\t\t\treturn $post->ID;\n\n\t\t\t} else {\n\n\t\t\t\treturn false;\n\n\t\t\t}\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "private function findPageForSlug($slug)\n {\n $menuItem = app(MenuItemRepository::class)->findByUriInLanguage($slug, locale());\n\n if ($menuItem) {\n return $this->page->find($menuItem->page_id);\n }\n\n return $this->page->findBySlug($slug);\n }", "public static function getGlossaryIndexPageId() {\n\t\t$glossaryPageID = apply_filters( 'cmtt_get_glossary_index_page_id', get_option( 'cmtt_glossaryID' ) );\n\t\t/*\n\t\t * WPML integration\n\t\t */\n\t\tif ( function_exists( 'icl_object_id' ) && defined( 'ICL_LANGUAGE_CODE' ) ) {\n\t\t\t$glossaryPageID = icl_object_id( $glossaryPageID, 'page', ICL_LANGUAGE_CODE );\n\t\t}\n\t\treturn $glossaryPageID;\n\t}", "public function currentPageID() {\n if(is_numeric($this->getRequest()->requestVar('ID')))\t{\n return $this->getRequest()->requestVar('ID');\n } elseif (is_numeric($this->urlParams['ID'])) {\n return $this->urlParams['ID'];\n } elseif(Session::get(\"{$this->class}.currentPage\")) {\n return Session::get(\"{$this->class}.currentPage\");\n } else {\n return 0;\n }\n }", "function get_the_slug( $id=null ){\n if( empty($id) ):\n global $post;\n if( empty($post) )\n return ''; // No global $post var available.\n $id = $post->ID;\n endif;\n $slug = basename( get_permalink($id) );\n return $slug;\n}", "public function getSlug()\n {\n return $this->slug ?? $this->id;\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}", "protected function getCurrentPageId() {}", "protected function getCurrentPageId() {}", "protected function getCurrentPageId() {}", "protected function getCurrentPageId() {}", "function kwight_term_id_by_slug( $slug, $tax = 'category' ) {\r\n\r\n\t$term = get_term_by( 'slug', $slug, $tax );\r\n\t$id = ( $term ) ? $term->term_id : false;\r\n\r\n\treturn intval( $id );\r\n\r\n}", "public static function slug($slug);", "function kleo_bp_get_page_id() {\n $current_page_id = NULL;\n $page_array = get_option('bp-pages');\n\n if (bp_is_register_page()) { /* register page */\n $current_page_id = $page_array['register'];\n } elseif( bp_is_members_directory() ) { /* members directory */\n $current_page_id = $page_array['members'];\n } elseif ( bp_is_activity_directory() ) { /* activity directory */\n $current_page_id = $page_array['activity'];\n } elseif ( bp_is_groups_directory() ) { /* groups directory */\n $current_page_id = $page_array['groups'];\n } elseif ( bp_is_activation_page() ) { /* activation page */\n $current_page_id = $page_array['activate'];\n }\n return $current_page_id;\n}", "public function getPageBySlug($slug)\n {\n return $this->findOneBy(array('slug' => $slug));\n }", "function redart_ID(){\r\n\t$post = redart_global_variables('post');\r\n\t$postID = false;\r\n\r\n\tif( ! is_404() ){\r\n\r\n\t\tif( function_exists('is_woocommerce') && is_woocommerce() ){\r\n\r\n\t\t\t$postID = woocommerce_get_page_id( 'shop' );\r\n\r\n\t\t} elseif( is_search() ){\r\n\r\n\t\t\t$postID = false;\r\n\r\n\t\t} else {\r\n\r\n\t\t\t$postID = get_the_ID();\r\n\r\n\t\t}\r\n\t}\r\n\r\n\treturn $postID;\r\n}", "public function show($slug)\n {\n $page = $this->page->where('slug', $slug)->firstOrFail();\n return $page;\n }", "public function slug($slug);", "protected function getFieldId(string $fieldSlug): string\n {\n // concat slug of page with custom-field slug\n return $this->getSlug() . '-' . $fieldSlug;\n }", "function bimber_wpml_translate_page_id( $page_id ) {\n\t$page_id = wpml_object_id_filter( $page_id, 'page', true );\n\n\treturn $page_id;\n}", "public function getSlug();", "public function getSlug();", "public function getSlug();", "public function getSlug();", "function get_blog_id_from_url($domain, $path = '/')\n {\n }", "function getPermalinkID($db, $safeButUnescapedPath) {\n $path = $db->doEscapeParam($safeButUnescapedPath);\n $query = \"SELECT * FROM permalinks WHERE path ='$path'\";\n $rows = $db->doQuery($query);\n return (count($rows) === 1) ? $rows[0]['id'] : 0;\n }", "function post_slug($display = true) {\n\t\tif($display) echo $_GET['page'];\n\t\treturn $_GET['page'];\n\t}", "function getSlugFromId($id='') {\n\t\tif(!$id) return '';\n\t\t$result = $this->select('slug',\"`store_id` = '\".$this->store_id.\"' AND id = '$id'\");\n\t\tif($result) return $result[0]['slug'];\n\t\treturn '';\n\t}", "public function get_newsletter_list_id_by_slug( string $slug = '' ) : string {\n\t\t$newsletter_lists = (array) $this->get_option( 'newsroom-settings', 'newsletter', 'mailchimp_lists', 'lists' );\n\n\t\t// Return the list id that corresponds to this slug.\n\t\tforeach ( $newsletter_lists as $list ) {\n\t\t\tif ( sanitize_title( $list['name'] ) === $slug ) {\n\t\t\t\treturn $list['id'];\n\t\t\t}\n\t\t}\n\n\t\t// Return first value as a default value.\n\t\treturn $newsletter_lists[0]['id'] ?? '';\n\t}", "private function SlugExists($slug = '')\n\t{\t$sql = 'SELECT pageid FROM pages WHERE pagename=\"' . $slug . '\"';\n\t\tif ($this->id)\n\t\t{\t$sql .= ' AND NOT pageid=' . $this->id;\n\t\t}\n\t\tif ($result = $this->db->Query($sql))\n\t\t{\tif ($row = $this->db->FetchArray($result))\n\t\t\t{\treturn $row['pageid'];\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public function getSlugFromResourceId(int $id): string;", "function pamparam_get_page_link_by_slug($page_slug, $pagenum = 0) {\n $page = get_page_by_path($page_slug);\n if ($page && $pagenum) :\n $_SERVER['REQUEST_URI'] .= '/'.$page_slug.'/';\n echo get_pagenum_link($pagenum);\n elseif ($page):\n echo get_permalink( $page->ID );\n else :\n echo \"#\";\n endif;\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}", "function findPageId($name){\n $conditions = array('Content.type' => 'pages',\n 'Content.status' => 'published',\n 'Content.title' => $name,\n \n );\n $result = $this->find('first', array('conditions' => $conditions, 'fields' => 'Content.id'));\n if(!empty($result)){\n\t\t\t\treturn $result;\n }else{\n\t\t\t\treturn false;\n\t\t\t}\n }", "public function getPage($slug)\n { \n $data = StaticPage::where('page_slug',$slug)->first();\n return $data;\n }", "public function buildPageIdFromPathAndTitle($path) {\n\t\t// MiondTouch uses double slashes to escape slashes in page titles.\n\t\t$double_slash_pos = strrpos($path, '//');\n\t\tif ($double_slash_pos !== false) {\n\t\t\t// A double-slash was found. Find the slash before it.\n\t\t\t$path_title_start = substr($path, 0, $double_slash_pos);\n\t\t\t$title_end = substr($path, $double_slash_pos + 1);\n\n\t\t\t// Break apart the path according to the slash.\n\t\t\t$path = explode('/', $path_title_start);\n\n\t\t\t// The title will be the last element of the array.\n\t\t\t$title_start = array_pop($path);\n\t\t\t$title = $title_start . $title_end;\n\t\t} else {\n\t\t\t// Break apart the path according to the slash.\n\t\t\t$path = explode('/', $path);\n\n\t\t\t// The title will be the last element of the array.\n\t\t\t$title = array_pop($path);\n\t\t}\n\n\t\t// Combine the path.\n\t\t$path = implode('/', $path);\n\n\t\t// Build the ID and return.\n\t\treturn $this->buildPageId($title, $path);\n\t}", "function get_english_post_id( string $slug )\n{\n\n return [\n\n\t\t'agile-framework' => 54907,\n\t\t'blog' => 16636,\n\t\t'cta-building-bricks' => 60772,\n\t\t'customer-success-metrics-continental' => 60849,\n\t\t'customer-success-metrics-dubai' => 60859,\n\t\t'customer-success-metrics-nc-state' => 60860,\n\t\t'customer-success-metrics-solomon-group' => 60847,\n\t\t'events' => 29360,\n\t\t'hero-newsroom' => 61349,\n\t\t'hero-cloud' => 61349,\n\t\t'homepage-block-ctas' => 54984,\n\t\t'homepage' => 12357, \n\t\t'insurance' => 60943,\n\t\t'logo-ticker-mx-world-2020' => 57127,\n\t\t'low-code-guide' => 59648,\n\t\t'low-code-news' => 59151,\n\t\t'makeshift' => 56033,\n\t\t'media-coverage' => 30061,\n\t\t'mendix-values' => 56025,\n\t\t'mxw-agenda' => 56708,\n\t\t'mxw-home' => 56707,\n\t\t'press-releases' => 30062,\n\t\t'you-build-with-mendix' => 60894,\n\n\t][$slug];\n}", "protected function getCurrentPageIdFromCurrentSiteRoot() {}", "function url_to_postid($url)\n {\n }", "public function pId()\n {\n static $id = null;\n\n if (!is_null($id)) {\n return $id;\n }\n\n $id = $this->property('id');\n\n if (strpos($id, 'http') === 0) {\n $path = explode('/', parse_url($id, PHP_URL_PATH));\n\n if ($path[1] == 'gallery') {\n $id = $path[2];\n }\n elseif ($path[1] == 'a') {\n $id = 'a/'.$path[2];\n }\n else {\n $id = $path[1];\n }\n }\n\n return $id;\n }", "protected function getPageId():int\n {\n // @extensionScannerIgnoreLine\n return (int) $GLOBALS['TSFE']->id;\n }", "abstract protected function getCurrentPageId() ;", "function ajan_nav_menu_get_item_url( $slug ) {\n\t$nav_item_url = '';\n\t$nav_menu_items = ajan_nav_menu_get_loggedin_pages();\n\n\tif ( isset( $nav_menu_items[ $slug ] ) ) {\n\t\t$nav_item_url = $nav_menu_items[ $slug ]->guid;\n\t}\n\n\treturn $nav_item_url;\n}", "public function show($slug)\n {\n $column = is_numeric($slug) ? 'id' : 'slug';\n\n return Post::where($column, $slug)->firstOrFail();\n }", "private function slug_get($id)\n\t\t{\n\t\t\t$where = '@id=\"'.utf8_encode($id).'\"';\n\t\t\t$node = $this->xml->xpath('/post/friendly/url['.$where.']');\n\n\t\t\tif($node==array())\n\t\t\t\treturn false;\n\n\t\t\treturn $node[0]->getAttribute('slug');\n\t\t}", "public function get_page($slug)\n {\n $slug = $this->security->xss_clean($slug);\n\n //index page\n if (empty($slug)) {\n redirect(base_url());\n }\n\n $data['page'] = $this->page_model->get_page($slug);\n //check page auth\n $this->checkPageAuth($data['page']);\n\n //if not exists\n if (empty($data['page']) || $data['page'] == null) {\n $this->error_404();\n } //check if page disable\n else if ($data['page']->page_active == 0 || $data['page']->link != '') {\n $this->error_404();\n } else {\n $data['title'] = get_page_title($data['page']);\n $data['description'] = get_page_description($data['page']);\n $data['keywords'] = get_page_keywords($data['page']);\n\n $this->load->view('blog/partials/_header', $data);\n $this->load->view('blog/page', $data);\n $this->load->view('blog/partials/_footer');\n\n }\n }", "public function getTypeIDBySlug ($slug = '') {\n $this->connection->where('slug', $slug);\n $result = $this->connection->select('id_type', 'types');\n\n if ($result && $result->num_rows > 0) {\n while ($row = $result->fetch_assoc()) {\n return $row['id_type'];\n }\n }\n else {\n return NULL;\n }\n }", "public function slug();" ]
[ "0.83856964", "0.8327725", "0.8323897", "0.8139405", "0.8137177", "0.77025133", "0.7325234", "0.72226626", "0.7168403", "0.70809776", "0.6767674", "0.6696837", "0.66927", "0.66521627", "0.6599901", "0.6595374", "0.6585352", "0.6580679", "0.65659124", "0.65533185", "0.6540997", "0.65390384", "0.65390384", "0.6522798", "0.6489502", "0.64728165", "0.6466291", "0.6450313", "0.6449377", "0.6446298", "0.64059854", "0.6391097", "0.6391097", "0.6387936", "0.63422227", "0.6332958", "0.63325626", "0.632859", "0.6296884", "0.62939817", "0.62914526", "0.62162054", "0.6205199", "0.61999106", "0.61715776", "0.6134353", "0.611812", "0.6103342", "0.6076442", "0.6067025", "0.6065069", "0.60626847", "0.6016247", "0.60118985", "0.6011559", "0.6009683", "0.60069084", "0.6002521", "0.59979904", "0.59827316", "0.5980479", "0.5980479", "0.5980479", "0.59702635", "0.5968299", "0.5963527", "0.596051", "0.5942349", "0.59398055", "0.5931341", "0.59260064", "0.59176654", "0.5895481", "0.5895481", "0.5895481", "0.5895481", "0.58941096", "0.5893533", "0.5893136", "0.5890885", "0.5885826", "0.5885501", "0.58771646", "0.5862469", "0.58602315", "0.5800534", "0.57547367", "0.57495654", "0.5740563", "0.5740346", "0.573963", "0.5715633", "0.57153153", "0.5714972", "0.57111573", "0.56948435", "0.56875515", "0.56615084", "0.56598157", "0.5651976" ]
0.84316176
0
Call in the top of a template with a string to set the main page heading.
function title_for_page($title) { $print = function() use($title) { echo $title; }; add_action("main_heading", $print); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getMainHeading() : string\n {\n return <<< 'MAINHEADING'\nASP.NET Model-View-Controller\nMAINHEADING;\n }", "function setTitle() {\n global $pageTitle;\n\n $pageTitle = isset($pageTitle) ? $pageTitle : 'Default' ;\n echo $pageTitle;\n }", "private function configureTemplate(){\n\t\t$template = $this->getTemplate();\n\t\t$template->setPageSubtitle($this->getModule()->getDisplayedName());\n\t}", "protected function renderPageTitle() {}", "public function prePageHeader();", "public function getMainHeading() : string\n {\n return <<< 'MAINHEADING'\nSQL Basics\nMAINHEADING;\n }", "function printPageHeader($title) {\n echo \"<html>\n <head>\n \n </head>\n <body>\n <h1>{$title}</h1>\";\n}", "public function init() {\n \tif (array_key_exists('applicationName', $this->_strings)) {\n \t\t$this->view->headTitle($this->_strings['applicationName']);\n \t\t$this->view->headerTitle = $this->_strings['applicationName'];\n \t}\n }", "function set_heading()\n\t{\n\t\t$args = func_get_args();\n\t\t$this->heading = $this->_prep_args($args);\n\t}", "function pageTitle(){\n\t\tglobal $pageTitle;\n\t\techo isset($pageTitle) ? $pageTitle : \"Default\";\n\t}", "public function addHeader(){\n$this->page.= <<<EOD\n<html>\n<head>\n</head>\n<title>\n$this->title\n</title>\n<body>\n<h1 align=\"center\">\n$this->title\n</h1>\nEOD;\n}", "function set_title() {\n \tglobal $pageTitle;\n \tif (isset($pageTitle))\n \t\techo 'Tanqeeb | ' . $pageTitle;\n \telse\n \t\techo 'Tanqeeb';\n}", "public function init()\n {\n\t\t$this->view->headTitle(Zend_Registry::get('Default Page Title'));\n\t\t$this->view->headTitle()->prepend('Partners');\n }", "function BasicHead()\n{\n print LoadTemplate(\"basic_head\");\n\n $_SESSION[\"head_printed\"] = true;\n}", "public function header($text)\n {\n return '\n\n\t<!-- MAIN Header in page top -->\n\t<h1 class=\"t3js-title-inlineedit\">' . htmlspecialchars($text) . '</h1>\n';\n }", "public function getMainHeading() : string\n {\n return <<< 'MAINHEADING'\nCookies, Sessions, and File Upload\nMAINHEADING;\n }", "public function getMainHeading() : string\n {\n return <<< 'MAINHEADING'\nUnique to Oracle\nMAINHEADING;\n }", "public function getMainHeading() : string\n {\n return <<< 'MAINHEADING'\nAdvanced Collections in C#\nMAINHEADING;\n }", "public function setPageTitle($page_name);", "public function setPageTitle($page_name);", "public function getMainHeading() : string\n {\n return <<< 'MAINHEADING'\nScripting in Bash Shell\nMAINHEADING;\n }", "public function getMainHeading() : string\n {\n return <<< 'MAINHEADING'\nXML Schemas continued..\nMAINHEADING;\n }", "public function getMainHeading() : string\n {\n return <<< 'MAINHEADING'\nWorking with Data in C#\nMAINHEADING;\n }", "public function loadPageTitle()\n \t\t{\n echo \"<title>Add Item</title>\";\n }", "public function getMainHeading() : string\n {\n return <<< 'MAINHEADING'\nOrganizational Units\nMAINHEADING;\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 PageTitle ($set = false) {\n \tif (!$set) {\n \t\treturn $this->pagetitle;\n \t}\n \telse {\n \t\t$this->pagetitle = $set . ' | ' . $this->config->item('server_name');\n \t\treturn $this->pagetitle;\n \t}\n }", "public function getMainHeading() : string\n {\n return <<< 'MAINHEADING'\nOverview of the Android Ecosystem\nMAINHEADING;\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()\n{\n\tglobal $title;\n\t$this->Ln(5);\n}", "function addHeader($title)\n {\n $this->page .= <<<EOD\n<html>\n<head>\n<title>$title</title>\n</head>\n<body>\n<h1 align=\"center\">$title</h1>\nEOD;\n }", "public function showPageHeader() {\n\n\t\techo $this->getPageHeader();\n\t}", "function getTitle(){\r\n\r\n \tglobal $pageTitle;\r\n \r\n if(isset($pageTitle)){\r\n\r\n \techo $pageTitle;\r\n\r\n }else{\r\n\r\n \techo 'Default';\r\n }\r\n\r\n }", "public function initPageHeaders()\n\t{\n\t\tinclude_once('view/main_page_header.php');\n\t}", "protected function view_getPageTitle() {\n return 'HalloPizza';\n }", "function __handler()\n {\n $this->view('index')->title('Main page');\n }", "protected function generatePageHeader($headline = \"\") \n {\t\n $headline = htmlspecialchars($headline);\n header(\"Content-type: text/html; charset=UTF-8\");\n \n\t\t\n\t\techo \"<!DOCTYPE html>\\n\";\n\t\techo \"<html lang=\\\"de\\\">\\n\";\n\t\techo \"<head>\\n\";\n\t\techo \"<meta charset=\\\"UTF-8\\\" />\\n\";\n\t\techo \"<title> $headline </title>\\n\";\n\t\techo \"<link rel=\\\"stylesheet\\\" href=\\\"style/main.css\\\"/>\\n\";\n\t\techo \"<script type=\\\"text/javascript\\\" src=\\\"js/functions.js\\\"> </script>\\n\";\n\t\techo \"</head>\\n\";\n\t\techo \"<body>\\n\";\n\t\techo \"<header><h1>$headline</h1></header>\\n\";\n // to do: output common beginning of HTML code \n // including the individual headline\n }", "public function init()\n {\n \tparent::init();\n \t$this->view->headTitle('Wedding Cakes');\n }", "protected function setPageTitle() {\r\n\t\t$pageTitleText = (empty($this->settings['news']['semantic']['general']['pageTitle']['useAlternate'])) ? $this->newsItem->getTitle() : $this->newsItem->getAlternativeTitle();\r\n\t\t$pageTitleAction = $this->settings['news']['semantic']['general']['pageTitle']['action'];\r\n\r\n\t\tif (!empty($pageTitleAction)) {\r\n\t\t\tswitch ($pageTitleAction) {\r\n\t\t\t\tcase 'prepend':\r\n\t\t\t\t\t$pageTitleText .= ': ' . $GLOBALS['TSFE']->page['title'];\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 'append':\r\n\t\t\t\t\t$pageTitleText = $GLOBALS['TSFE']->page['title'] . ': ' . $pageTitleText;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tdefault:\r\n\t\t\t}\r\n\t\t\t$this->pageTitle = html_entity_decode($pageTitleText, ENT_QUOTES, \"UTF-8\");\r\n\t\t\t$GLOBALS['TSFE']->page['title'] = $this->pageTitle;\r\n\t\t\t$GLOBALS['TSFE']->indexedDocTitle = $this->pageTitle;\r\n\t\t}\r\n\t}", "function tpl_processStartPage($ns,$context) {\n // Check if a start page exists and add it first\n global $conf;\n $pageExists = false;\n $startPageName = $conf['start'];\n if ($ns == \"\") {\n $startPageID = $startPageName;\n } else {\n $startPageID = $ns . \":\" . $startPageName;\n }\n\n $startPagePath = $startPageID;\n\n resolve_pageid($ns, $startPagePath,$pageExists);\n\n if ($pageExists) {\n // Check if page is visible\n\n $perm = auth_quickaclcheck($startPageID);\n if ($perm > 0) {\n\n // Determine Page Title from first heading\n $firstHeading = p_get_first_heading($startPageID);\n\n if ($conf['useheading'] && !empty($firstHeading)) {\n $linkName = $firstHeading;\n } else {\n $linkName = $startPageName;\n }\n // echo \"<b>\" . $conf['useheading'] .\"</b>\";\n tpl_pageLinkCreate($startPageID, '<i class=\"icon-home\"></i>'.$linkName, \"tpl_processStartPage:$context\");\n }\n\n }\n}", "public function title(){\r\n\r\n echo ISSET($this->pageSettings->page_title)?$this->pageSettings->page_title:'';\r\n\r\n }", "function pageTitle()\n{\n\techo \"TSTV :: Admin\";\n\t\n}", "public function run()\n {\n $title = 'Any successful career starts with a good Education';\n\n FrontPageHeader::create([\n 'title' => strtolower($title),\n ]);\n }", "function tpl_page($help = '', $title = '')\n{\n tpl_language();\n tpl_header($help, $title);\n tpl_footer();\n}", "function PresentHeader($PageTitle, $ViewTitle = \"\", $Extra = null)\n\t{\n\t\t$d = constant ( \"jf_jPath_Module_Delimiter\" );\n\t\t\n\t\tif (reg(\"jf/view/templates/iterative\"))\n\t\t\t$Iteration = reg(\"jf/view/templates/iterations\");\n\t\telse\n\t\t\t$Iteration = 1;\n\t\t\n\t\t$n = 0;\n\t\twhile ( $n <= $Iteration )\n\t\t{\n\t\t\t$template = new jpTrimEnd ( $ViewTitle, $d, ++ $n );\n\t\t\t$template=$template->__toString();\n\t\t\tif ($template == \"\") break;\n\t\t\t$template = $d . $template;\n\t\t\t$template = \"view\" . $d . $this->CurrentView () . $template . $d . \"_template\" . $d . \"head\";\n\t\t\t$x=new jpModule2FileSystem ( $template );\n\t\t\tif (file_exists ( $x->__toString() )) return $this->App->LoadModule ( $template, true, array (\n\t\t\t\t\"Title\" => $PageTitle, \"Extra\" => $Extra \n\t\t\t) );\n\t\t}\n\t\t$template_root = \"view\" . $d . $this->CurrentView () . $d . \"_template\" . $d . \"head\";\n\t\treturn $this->App->LoadModule ( $template_root, true, array (\n\t\t\t\"Title\" => $PageTitle, \"Extra\" => $Extra\n\t\t) );\n\t}", "public static function set_page_title($auth, $args, $tabalias, $options, $path) {\n if (!isset($options['title'])) {\n return 'Please set the template for the title in the @title parameter';\n }\n foreach($_GET as $key => $value) {\n $options['title'] = str_replace(\"#$key#\", $value, $options['title']);\n }\n hostsite_set_page_title($options['title']);\n return '';\n }", "function echo_htmlHeadTitle(){\n global $pagetitle; //define global here to access global above.\n\t\techo \"<title>\".$pagetitle.\"</title>\";\n\t}", "public function display_page_header() {\n\t\tglobal $title;\n\n\t\tprintf( '<h1>%s</h1>', esc_html( $title ) );\n\n\t\tsettings_errors( self::POST_ACTION_ID );\n\n\t\tprintf(\n\t\t\t'<p>%s</p>',\n\t\t\tesc_html(\n\t\t\t\tsprintf(\n\t\t\t\t\t/* translators: 1 is the name of the DB table, 2 is a version number, 3 is an option name. */\n\t\t\t\t\t__( 'Your custom table \"%1$s\" is ready and its current version is %2$d. This version number is stored in the (network?) option \"%3$s\".', 'autowpdb-example-plugin' ),\n\t\t\t\t\t$this->table->get_table_definition()->get_table_name(),\n\t\t\t\t\t$this->upgrader->get_db_version(),\n\t\t\t\t\t$this->upgrader->get_db_version_option_name()\n\t\t\t\t)\n\t\t\t)\n\t\t);\n\t}", "public function getPageHeader() {\n\n\t\t//this is a single call function\n\t\tif (!$this->isFirstCall(__FUNCTION__))\n\t\treturn;\n\n\t\treturn $this->renderView('page-header',array(\n\t\t\t'data' => $this->getCurrentProductDetails(),\n\t\t\t));\n\t}", "public function setTitle($str)\n\t{\n\t\t$this->headerTitle = $str;\n\t}", "function displayPageHeader($pageTitle)\r\n{\r\n $output = <<<ABC\r\n<!DOCTYPE html>\r\n<html>\r\n\r\n<head>\r\n \r\n <meta charset=\"UTF-8\" />\r\n <meta name=\"author\" content=\"Xin Tian\" />\r\n <meta name=\"description\" content=\"A site for shopping clothes\" />\r\n <meta name=\"keywords\" content=\"rainbow, clothes\" />\r\n <title>Rainbow $pageTitle</title>\r\n <link href=\"commonStyle.css\" rel=\"stylesheet\" type=\"text/css\" />\r\n <link href=\"commonStyle1.css\" rel=\"stylesheet\" type=\"text/css\" />\r\n</head>\r\n\r\n<body>\r\n<nav>\r\n \r\n <a style=\"font-size:45px\" id=\"homeTitleIn\" href=\"home.php\">RAINBOW</a>\r\n <a style=\"font-size:15px\" id=\"rightTitle1\" href=\"login.php\">Sign in</a>\r\n <a style=\"font-size:15px\" id=\"rightTitle2\" href=\"about.html\">About</a>\r\n <a style=\"font-size:15px\" id=\"bag\" href=\"shoppingCart.php\">ShoppingCart</a>\r\n \r\n </nav>\r\n\r\n \r\nABC;\r\n echo $output;\r\n}", "private function setupPage ()\n {\n $output = '<!DOCTYPE html><html lang=\"en\"><head>';\n $output .= $this->setCharacterEncoding();\n $output .= $this->setPageTitle();\n $output .= $this->setBasePath();\n $output .= $this->fixHTML5();\n $output .= $this->registerCustomResources();\n $output .= '</head><body>';\n echo $output;\n }", "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 }", "function displayHeader($section)\r\n{\r\n global $userName;\r\n\r\n echo '<div id=\"header\">';\r\n\r\n switch ($section) {\r\n case HOME:\r\n echo '<h1>Home</h1>';\r\n break;\r\n case SEARCH:\r\n echo '<h1>Search</h1>';\r\n break;\r\n case NEWLISTING:\r\n echo '<h1>Create Listing</h1>';\r\n break;\r\n case LISTING:\r\n echo '<h1>Listing</h1>';\r\n break;\r\n case REGISTER:\r\n echo '<h1>Register</h1>';\r\n break;\r\n case ADMIN:\r\n echo '<h1>Admin portal</h1>';\r\n break;\r\n }\r\n echo '</div>' . \"\\n\";\r\n}", "public function get_document_title_template()\n {\n }", "function new_heading()\n {\n }", "public function template_header() {\n\t\tget_header( 'course' );\n\t}", "function display_header() {}", "function setHeadTitel($var)\n\t{\n\t\t$this -> head_titel = $var;\n\t}", "function display_title(){\n\techo \"Menu Page\";\n}", "public function setPageTitle($title);", "public function getMainHeading() : string\n {\n return <<< 'MAINHEADING'\nMicrosoft Entity Framework\nMAINHEADING;\n }", "protected function regeneratePageTitle() {}", "Function getTitle() {\n\n global $pageTitle;\n\n if (isset($pageTitle)) {\n\n echo $pageTitle;\n\n } else {\n\n echo 'Default';\n }\n}", "protected function generatePageHeader($headline = \"\") \r\n {\r\n $headline = htmlspecialchars($headline);\r\n header(\"Content-type: text/html; charset=UTF-8\");\r\n \r\n // including the individual headline\r\n \r\n echo <<<HTML\r\n<!DOCTYPE html>\r\n <html lang=\"de\">\r\n <head>\r\n <meta charset=\"utf-8\" />\r\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\" />\r\nHTML;\r\n if ($headline == 'City Wok - Kunde') {\r\n echo <<<HTML\r\n <meta http-equiv=\"refresh\" content=\"5\" />\r\nHTML;\r\n }\r\n echo <<<HTML\r\n <link rel=\"shortcut icon\" type=\"image/x-icon\" href=\"favicon.ico\" />\r\n <link href=\"CityWok.css\" type=\"text/css\" rel=\"stylesheet\" media=\"screen\" />\r\n <title>$headline</title>\r\n </head>\r\n <body id=\"main\"> \r\n <header>\r\n <nav class=\"navbar\">\r\n <span class=\"open-slide\">\r\n <a href=\"#\" onclick=\"openSlideMenu()\">\r\n <svg width=\"30\" height=\"30\">\r\n <path d=\"M0,5 30,5\" stroke=\"#ec7f37\" stroke-width=\"5\" />\r\n <path d=\"M0,14 30,14\" stroke=\"#ec7f37\" stroke-width=\"5\" />\r\n <path d=\"M0,23 30,23\" stroke=\"#ec7f37\" stroke-width=\"5\" />\r\n </svg>\r\n </a>\r\n </span>\r\n\r\n <ul class=\"navbar-nav\">\r\n <li><a href=\"Index.php\">Bestellung</a></li>\r\n <li><a href=\"Kunde.php\">Kunde</a></li>\r\n <li><a href=\"kueche.html\">Küche</a></li>\r\n <li><a href=\"Fahrer.php\">Fahrer</a></li>\r\n </ul>\r\n </nav>\r\n </header>\r\n\r\n <article class=\"content\">\r\n <div id=\"side-menu\" class=\"side-nav\">\r\n <a href=\"#\" class=\"btn-close\" onclick=\"closeSlideMenu()\">&times;</a>\r\n <a href=\"Index.php\">Bestellung</a>\r\n <a href=\"Kunde.php\">Kunde</a>\r\n <a href=\"kueche.html\">Küche</a>\r\n <a href=\"Fahrer.php\">Fahrer</a>\r\n </div>\r\n \r\n \r\n <div class=\"title\">\r\n <img src=\"city-wok-guy-head.png\" alt=\"\" title=\"CityWok\" class=\"logo\" />\r\n <h1>CITY WOK</h1>\r\n <img src=\"city-wok-guy-head.png\" alt=\"\" title=\"CityWok\" class=\"logo\" />\r\n </div>\r\nHTML;\r\n }", "function getTitle() {\n \n global $pageTitle;\n if(isset($pageTitle)){\n echo $pageTitle;\n } else {\n echo 'Default';\n }\n}", "function shoestrap_empty_page_title() {}", "public function homePage() {\n #$this->view->loadTemplate( 'elements_example');\n $this->view->loadTemplate( LNG . '/centercontent');\n $this->commitReplace($this->view->render(), '#two', true);\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}", "function GetTitle() {\r\n global $PageTitle;\r\n if (isset($PageTitle)){echo $PageTitle;}else{echo 'BHM Accessories';}\r\n }", "function display_portal_header()\r\n {\r\n Display :: header(null);\r\n }", "function head() {\n\n\techo '<h1>ATOM.CMS</h1>';\n\t\n}", "function getTitle(){\n global $pageTitle;\n if(isset($pageTitle)) echo $pageTitle;\n else echo 'Default';\n\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}", "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 }", "function display_header_text()\n {\n }", "function StandardHeard($title)\n {\n $html = <<<EOD\n <html>\n <head>\n <title>$title</title>\n </head>\n <body>\n <h1 align=\"center\">$title</h1>\n EOD;\n $this->setHeader($html);\n }", "function Page_DataRendering(&$header) {\r\n\r\n\t\t// Example:\r\n\t\t//$header = \"your header\";\r\n\r\n\t}", "function Page_DataRendering(&$header) {\r\n\r\n\t\t// Example:\r\n\t\t//$header = \"your header\";\r\n\r\n\t}", "function Page_DataRendering(&$header) {\r\n\r\n\t\t// Example:\r\n\t\t//$header = \"your header\";\r\n\r\n\t}", "function Page_DataRendering(&$header) {\r\n\r\n\t\t// Example:\r\n\t\t//$header = \"your header\";\r\n\r\n\t}", "function Page_DataRendering(&$header) {\r\n\r\n\t\t// Example:\r\n\t\t//$header = \"your header\";\r\n\r\n\t}", "function Page_DataRendering(&$header) {\r\n\r\n\t\t// Example:\r\n\t\t//$header = \"your header\";\r\n\r\n\t}", "function Page_DataRendering(&$header) {\r\n\r\n\t\t// Example:\r\n\t\t//$header = \"your header\";\r\n\r\n\t}", "function Page_DataRendering(&$header) {\r\n\r\n\t\t// Example:\r\n\t\t//$header = \"your header\";\r\n\r\n\t}", "function Page_DataRendering(&$header) {\r\n\r\n\t\t// Example:\r\n\t\t//$header = \"your header\";\r\n\r\n\t}", "function Page_DataRendering(&$header) {\r\n\r\n\t\t// Example:\r\n\t\t//$header = \"your header\";\r\n\r\n\t}", "function Page_DataRendering(&$header) {\r\n\r\n\t\t// Example:\r\n\t\t//$header = \"your header\";\r\n\r\n\t}", "function Page_DataRendering(&$header) {\r\n\r\n\t\t// Example:\r\n\t\t//$header = \"your header\";\r\n\r\n\t}", "function od_set_page_title($orig_title) {\n\t\treturn \"Map | \"; // set the page title (could be improved, eg based on filters. Might be something the user wants to set\n\t}", "protected function page_title() {\n?>\n\t\t<h2>\n\t\t\t<?php echo __( 'Marketplace Add-ons', APP_TD ); ?>\n\t\t\t<a href=\"https://marketplace.appthemes.com/\" class=\"add-new-h2\"><?php _e( 'Browse Marketplace', APP_TD ); ?></a>\n\t\t\t<a href=\"https://www.appthemes.com/themes/\" class=\"add-new-h2\"><?php _e( 'Browse Themes', APP_TD ); ?></a>\n\t\t</h2>\n<?php\n\t}", "function 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}", "protected function setTitle()\n\t{\n\t\tglobal $APPLICATION;\n\n\t\tif ($this->arParams[\"SET_TITLE\"] == 'Y')\n\t\t\t$APPLICATION->SetTitle(Localization\\Loc::getMessage(\"SPOL_DEFAULT_TITLE\"));\n\t}", "function efSidebarHeadingRenderH1( $input, $argv, $parser ) {\n return extraTags::headerTagsCommon(\"h1\",$input,$argv,$parser);\n }", "function setHeading($h)\n\t{\n\t\t$this->_headingText=$h;\n\t}", "public function frontpage() {\n\t\t\n\t\t$this->set('page_title', 'Welcome'); // this is hardcoded for index page\n\t\t$this->render('index');\n\t}", "function PageHead($d,$e) {\n\n print \"<header class=\\\"$e\\\">\\n\";\n print \"<H1>$d</H1>\\n\";\n print \"</header>\\n\";\n\n}", "public function printHeader() {\n\t\t$template = self::$templates[$this->templateName];\n\t\trequire_once $template['path'] . $template['file-header'];\n\t}", "function start_head($extra = '')\n{\n /**\n * Starting the HTML head section\n *\n * Args:\n * $extra (str): extra data in the tag - used for adding class / ID etc.\n */\n start_tag('head', Tab(1), true, $extra) ;\n}", "private function appendMasterTitle(){\r\n\t\t$title = $this->head->GetTitle() != null ? $this->head->GetTitle() . \" | \" : \"\";\r\t\t$titleExtension = \"\";\r\t\tif(empty($this->langService) || $this->langService->IsDefaultSelected()){\r\t\t\t$titleExtension = $this->CI->config->item(\"zt_site_title\") . \" - \" . $this->CI->config->item(\"zt_site_slogan\");\t\r\t\t} else {\r\t\t\t$titleExtension = $this->CI->config->item(\"zt_site_title\") . \" - \" . $this->CI->config->item(\"zt_site_slogan_\" . $this->langService->GetLangCode());\r\t\t}\r\r\t\t$title .= $titleExtension;\r\n\t\treturn $this->head->SetTitle($title);\r\n\t}", "function showHead( $appctx )\n\t\t{\n\t\t}" ]
[ "0.68203306", "0.6707874", "0.6677217", "0.6640089", "0.6621376", "0.65955013", "0.6590533", "0.65764105", "0.6573672", "0.65572697", "0.6555606", "0.6550508", "0.6546284", "0.65159297", "0.6514595", "0.6497373", "0.64749795", "0.6460543", "0.6449819", "0.6449819", "0.6435428", "0.64350003", "0.64076716", "0.6405325", "0.64015716", "0.6401241", "0.6385104", "0.6373635", "0.6366783", "0.63662666", "0.63507825", "0.63474303", "0.63403726", "0.6314256", "0.6304789", "0.62819827", "0.62797904", "0.62628007", "0.6258023", "0.6232087", "0.62297314", "0.6228679", "0.6210471", "0.6207424", "0.6196944", "0.61892134", "0.6166327", "0.6160368", "0.6141282", "0.61363435", "0.6130904", "0.611961", "0.6102585", "0.6099456", "0.6090964", "0.60899913", "0.6089835", "0.6084012", "0.60755146", "0.6048338", "0.60411644", "0.6031127", "0.6026236", "0.60261357", "0.60122037", "0.59567505", "0.5956251", "0.59478074", "0.59441507", "0.5930055", "0.5928326", "0.59189385", "0.5918022", "0.59154934", "0.5914466", "0.5912154", "0.5910487", "0.59075606", "0.59075606", "0.59075606", "0.59075606", "0.59075606", "0.59075606", "0.59075606", "0.59075606", "0.59075606", "0.59075606", "0.59075606", "0.59075606", "0.5897235", "0.5896057", "0.58904976", "0.58866465", "0.588252", "0.5880019", "0.5876571", "0.5866752", "0.58646077", "0.5861028", "0.5860382", "0.5857549" ]
0.0
-1
Echoes 'class="current"' if the provided post/page ID matches the current one.
function is_current($id, $classname = "current_page_item", $echo = true){ global $post; if($post->ID == $id){ if($echo) printf('class="%s"', $classname); else return true; } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function checkForCurrentPage($pageTitle, $currentLink) {\n if ($pageTitle == $currentLink) {\n echo 'class=\"current\"';\n }\n}", "function is_current($dirname) {\n $dir = get_parent_dir();\n if ($dir == $dirname) {\n echo 'class=\"current\"';\n } else {\n echo '';\n } \n }", "protected function is_current_post( $id ) {\n global $post;\n return ( is_object( $post ) && property_exists( $post, 'ID' ) && $post->ID === ( int )$id ) ? true : false;\n }", "private function getClass($objId) {\r\n\t\tif($objId == $this->_currentPage) {\r\n\t\t\treturn \"current\";\r\n\t\t} else {\r\n\t\t\treturn \"non_current\";\r\n\t\t}\r\n\t}", "function isCurrent($pageName){\n\tglobal $NAV_PAGE;\n\t//If the global matches the argument set as current\n\tif ($NAV_PAGE == $pageName){\n\t\techo \"currentNavItem\";\n\t}\n}", "public function isCurrent($link_page_id)\n {\n if (!isset($this->page) or $this->page == false) {\n return false;\n }\n if ($link_page_id == $this->page->id) {\n return true;\n }\n if (\n $link_page_id == $this->page->getParent()->id and\n $this->page->getParent()->getMeta('.category')\n ) {\n return true;\n }\n return false;\n }", "function isCurrent() {\r\n if ($this->_link == $_SERVER['PHP_SELF']) {\r\n return true;\r\n }\r\n elseif ($this->_link == str_replace('index.php', '', $_SERVER['PHP_SELF'])) {\r\n return true;\r\n }\r\n elseif ($this->_link == $_SERVER['REQUEST_URI']) {\r\n return true;\r\n }\r\n return false;\r\n }", "function is_sidebar_menu_active($current)\n{\n $CI =& get_instance();\n if ($CI->uri->segment(1) == $current) {\n return 'active';\n }\n return '';\n}", "function check_current_menu($page_name, $current_page) {\n\tif ($page_name === $current_page) return \"current\";\n\telse return \"\";\n}", "function add_current_nav_class($classes, $item) {\n\tglobal $post;\n\t// Getting the post type of the current post\n\t$current_post_type = get_post_type_object(get_post_type($post->ID));\n\t$current_post_type_slug = $current_post_type->rewrite['slug'];\n\t// Getting the URL of the menu item\n\t$menu_slug = strtolower(trim($item->url));\n\t// If the menu item URL contains the current post types slug add the current-menu-item class\n\tif (strpos($menu_slug,$current_post_type_slug) !== false) {\n\t\t$classes[] = 'current-menu-item';\n\t}\n\t// Return the corrected set of classes to be added to the menu item\n\treturn $classes;\n}", "private function get_current_status_class( $status_key = '' ) {\n\n\t\t// Check for a current.\n\t\t$now_status = ! empty( $_GET['wbr-review-status'] ) ? sanitize_text_field( $_GET['wbr-review-status'] ) : '';\n\n\t\t// Set the initial (empty) class.\n\t\t$link_class = '';\n\n\t\t// First check for the \"all\" class.\n\t\tif ( empty( $_GET['wbr-product-id'] ) && empty( $now_status ) && 'all' === $status_key ) {\n\t\t\treturn 'current';\n\t\t}\n\n\t\t// Check for the single product ID.\n\t\tif ( ! empty( $_GET['wbr-review-filter'] ) && ! empty( $_GET['wbr-product-id'] ) && 'filtered' === $status_key ) {\n\t\t\treturn 'current';\n\t\t}\n\n\t\t// Check for the status matching.\n\t\tif ( ! empty( $_GET['wbr-review-filter'] ) && ! empty( $now_status ) && $now_status === $status_key ) {\n\t\t\treturn 'current';\n\t\t}\n\n\t\t// Return what we have.\n\t\treturn $link_class;\n\t}", "function sgr_show_current_cat_on_single($output) {\n\n\tglobal $post;\n\n\tif( is_single() ) {\n\n\t\t$categories = wp_get_post_categories($post->ID);\n\n\t\tforeach( $categories as $catid ) {\n\t\t\t$cat = get_category($catid);\n\t\t\t// Find cat-item-ID in the string\n\t\t\tif(preg_match('#cat-item-' . $cat->cat_ID . '#', $output)) {\n\t\t\t\t$output = str_replace('cat-item-'.$cat->cat_ID, 'cat-item-'.$cat->cat_ID . ' current-cat', $output);\n\t\t\t}\n\t\t}\n\n\t}\n\treturn $output;\n}", "private function get_current_post() {\n\n\t\tstatic $post;\n\n\t\treturn isset( $post ) ? $post : $post = \\get_post( $this->get_current_id() );\n\t}", "function ts_define_current_id()\r\n{\r\n\tdefine('CURRENT_ID',get_the_ID());\r\n}", "function add_current_nav_class($classes, $item) {\n\t\tglobal $post;\n\t\t\n\t\t// Getting the post type of the current post\n\t\t$current_post_type = get_post_type_object(get_post_type($post->ID));\n\t\t$current_post_type_slug = $current_post_type->rewrite['slug'];\n\t\t\t\n\t\t// Getting the URL of the menu item\n\t\t$menu_slug = strtolower(trim($item->url));\n\t\t\n\t\t// If the menu item URL contains the current post types slug add the current-menu-item class\n\t\tif (strpos($menu_slug,$current_post_type_slug) !== false) {\n\t\t\n\t\t $classes[] = 'current-menu-item';\n\t\t\n\t\t}\n\t\t\n\t\t// Return the corrected set of classes to be added to the menu item\n\t\treturn $classes;\n\t\n\t}", "function ntp_blogpost_nav_class($classes, $item) {\n if ( is_single() && get_post_type() !== 'ntp_project' && $item->title == \"Blog\" ) {\n $classes[] = 'current_page_item';\n }\n return $classes;\n}", "function add_current_nav_class($classes, $item) {\n\t\tglobal $post;\n\t\t\n\t\t// Getting the post type of the current post\n\t\t$current_post_type = get_post_type_object(get_post_type($post->ID));\n\t\t$current_post_type_slug = $current_post_type->rewrite[slug];\n\t\t\t\n\t\t// Getting the URL of the menu item\n\t\t$menu_slug = strtolower(trim($item->url));\n\t\t\n\t\t// If the menu item URL contains the current post types slug add the current-menu-item class\n\t\tif (strpos($menu_slug,$current_post_type_slug) !== false) {\n\t\t\n\t\t $classes[] = 'current-menu-item';\n\t\t\n\t\t}\n\t\t\n\t\t// Return the corrected set of classes to be added to the menu item\n\t\treturn $classes;\n\t\n\t}", "private function print_current_page_display() {\n\n\t\t$total = sprintf(\n\t\t\t'<span class=\"total-pages\">%s</span>',\n\t\t\tnumber_format_i18n( $this->total_pages )\n\t\t);\n\n\t\t$paging = sprintf(\n\t\t\t_x( '%1$s of %2$s', 'paging', 'multilingual-press' ),\n\t\t\tnumber_format_i18n( $this->current_page ),\n\t\t\t$total\n\t\t);\n\n\t\t$tags = array(\n\t\t\t'span' => array(\n\t\t\t\t'class' => true,\n\t\t\t),\n\t\t);\n\t\t?>\n\t\t<span class=\"paging-input\"><?php echo wp_kses( $paging, $tags ); ?></span>\n\t\t<?php\n\t}", "abstract public function isCurrent();", "function add_nav_class( $classes, $item ) {\n if ( is_page('past-events') AND $item->post_title === 'Events') {\n // Notice you can change the conditional from is_single() and $item->title\n $classes[] = \"current-menu-item\";\n }\n return $classes;\n}", "function set_current_menu_class($classes) {\n\tglobal $post;\n\t\n\t/*\n\tif( _s_is_page_template_name( 'find-an-agent' ) || is_post_type_archive( 'agent' ) || is_singular( 'agent' ) ) {\n\t\t\n\t\t$classes = array_filter($classes, \"remove_parent_classes\");\n\t\t\n\t\tif ( in_array('menu-item-206', $classes ) )\n\t\t\t$classes[] = 'current-menu-item';\n\t}\n\t*/\n\t\t\t\n\treturn $classes;\n}", "public function post_is_this_page( $id ) {\n\t\treturn (int) get_the_ID() === (int) $id;\n\t}", "public static function menu_current_class( $classes, $item ) {\n\n\t\t\t$url = trailingslashit( $item->url );\n\t\t\t$base = basename( $url );\n\n\t\t\t// Default.\n\t\t\t$classes[] = 'cz';\n\n\t\t\t// Fix anchor links\n\t\t\tif ( self::contains( $url, '/#' ) ) {\n\t\t\t\treturn $classes;\n\t\t\t}\n\n\t\t\t// Find parent menu\n\t\t\t$in_array = in_array( 'current_page_parent', $classes );\n\n\t\t\t// Current menu\n\t\t\tif ( in_array( 'current-menu-ancestor', $classes ) || in_array( 'current-menu-item', $classes ) || ( $in_array && get_post_type() === 'post' ) ) {\n\t\t\t\t$classes[] = 'current_menu';\n\t\t\t}\n\n\t\t\t// Current menu parent.\n\t\t\tif ( have_posts() ) { \n\n\t\t\t\t$c = get_post_type_object( get_post_type( self::$post->ID ) );\n\n\t\t\t\tif ( ! empty( $c ) ) {\n\n\t\t\t\t\t// Check custom link of post or page in menu.\n\t\t\t\t\t$con1 = ( is_singular() && $url === trailingslashit( get_the_permalink( self::$post->ID ) ) );\n\n\t\t\t\t\t// Check post type slug changes.\n\t\t\t\t\t$con2 = ( isset( $c->rewrite['slug'] ) && self::contains( $base, $c->rewrite['slug'] ) && $in_array );\n\n\t\t\t\t\t// Check with post type name.\n\t\t\t\t\t$con3 = ( $base === strtolower( urlencode( html_entity_decode( $c->name ) ) ) );\n\n\t\t\t\t\t// Fix multisite same name as post type name conflict.\n\t\t\t\t\tif ( $con3 && trailingslashit( get_site_url() ) === $url ) {\n\t\t\t\t\t\t$con3 = false;\n\t\t\t\t\t}\n\n\t\t\t\t\t// Check with post type label.\n\t\t\t\t\t$con4 = ( $base === strtolower( urlencode( html_entity_decode( $c->label ) ) ) );\n\t\t\t\t\t\n\t\t\t\t\t// Check if CPT name is different in menu URL and fix also for non-english lang.\n\t\t\t\t\t$con5 = ( $base === strtolower( urlencode( html_entity_decode( $c->has_archive ) ) ) );\n\n\t\t\t\t\tif ( $con1 || $con2 || $con3 || $con4 || $con5 ) {\n\t\t\t\t\t\t$classes[] = 'current_menu';\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\t// Fix: single post with category in menu.\n\t\t\tif ( in_array( 'menu-item-object-category', $classes ) && is_single() ) {\n\n\t\t\t\t$key = array_search( 'current-menu-parent', $classes );\n\n\t\t\t\tif ( isset( $classes[ $key ] ) ) {\n\t\t\t\t\tunset( $classes[ $key ] );\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\t/*\n\t\t\t// Fix: Non-english languages.\n\t\t\tif ( is_post_type_archive( 'product' ) || is_singular( 'product' ) ) {\n\n\t\t\t\t$classes_json = json_encode( $classes );\n\n\t\t\t\tif ( ! self::contains( $classes_json, 'current-' ) && ! self::contains( $classes_json, 'current_menu_' ) ) {\n\n\t\t\t\t\t$key = array_search( 'current_menu', $classes );\n\n\t\t\t\t\tif ( isset( $classes[ $key ] ) ) {\n\t\t\t\t\t\tunset( $classes[ $key ] );\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t}\n\t\t\t*/\n\n\t\t\treturn $classes;\n\t\t}", "function class_active($url) {\r\n $page = strrchr($_SERVER['PHP_SELF'], '/');\r\n if($page == $url) {\r\n return ' active ';\r\n }\r\n}", "public function isCurrentPage($page);", "function add_minutes_current_menu_item_class( $classes = array(), $menu_item = false ) {\n if ( 'board_minutes' == Extras\\get_post_type_outside_loop() && 'Meeting Minutes' == $menu_item->title && ! in_array( 'current-menu-item', $classes ) )\n $classes[] = 'current-menu-item';\n\n return $classes;\n}", "public function isActive() {\n return $this->site->page()->is($this);\n }", "public function current(): bool {\n\t\treturn boolval( $this->page['current'] ?? false );\n\t}", "function isAnswered( $current )\n\t{\n\t\ttry\n\t\t{\n\t\t\t$db = DB::getConnection();\n\t\t\t$st = $db->prepare( 'SELECT id_user FROM page_' . $current . ' WHERE id_user LIKE :id' );\n\t\t\t$st->execute( array( 'id' => $_SESSION['id'] ) );\n\t\t}\n\t\tcatch( PDOException $e ) { exit( 'PDO error ' . $e->getMessage() ); }\n\n\t\t$row = $st->fetch();\n\t\tif( $row === false )\n\t\t\treturn false;\n\t\treturn true;\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}", "function ipal_show_current_question(){\r\n\tglobal $DB;\r\n\tglobal $ipal;\r\n\t if($DB->record_exists('ipal_active_questions', array('ipal_id'=>$ipal->id))){\r\n\t $question=$DB->get_record('ipal_active_questions', array('ipal_id'=>$ipal->id));\r\n\t $questiontext=$DB->get_record('question',array('id'=>$question->question_id)); \r\n\techo \"The current question is -> \".strip_tags($questiontext->questiontext);\r\nreturn(1);\r\n\t }\r\n\telse\r\n\t {\r\n\t return(0);\r\n\t }\r\n}", "private function update_current_tag_by_page_type ()\n {\n // Check if post preview, do nothing. Post can be single and preview, used to bypass is_single\n if(is_preview()){\n return true;\n }\n // Check for single post page (is_single) and replace $this->current_tag with post tag if true\n elseif(is_single()){\n global $wp_query;\n $this->set_current_tag(\n $this->match_current_post_tags_to_prefix(\n $this->get_all_tags_for_this_post($wp_query->post->ID)\n )\n );\n }\n // Check for tag archive (is_tag) and replace $this->current_tag if true\n elseif(is_tag()){\n $this->set_current_tag(\n $this->get_the_current_archive_tag()\n );\n }\n return true;\n }", "public function isActive() {\n return (($page = Mage::registry('splash_page')) !== null) && $page->getId() === $this->getId();\n }", "protected function is_current_screen_page() {\n\n\t\tif ( Settings::PAGE_ID !== Framework\\SV_WC_Helper::get_requested_value( 'page' ) ) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// assume we are on the Connection tab by default because the link under Marketing doesn't include the tab query arg\n\t\t$tab = Framework\\SV_WC_Helper::get_requested_value( 'tab', 'connection' );\n\n\t\treturn ! empty( $tab ) && $tab === $this->get_id();\n\t}", "public function _current();", "public function isCurrentPage(int $value): bool\n {\n return $this->current === $value;\n }", "public function isCurrentPage($pageIdentifier);", "function ActiveMenu($requestUri)\n{\n $current_file_name = basename($_SERVER['REQUEST_URI'], \".php\");\n\n if ($current_file_name == $requestUri)\n echo 'class=\"active\"';\n}", "public function is_current_blog_previewed()\n {\n }", "function activation($in) {\n $directoryURI = $_SERVER['PHP_SELF'];\n $path = parse_url($directoryURI, PHP_URL_PATH);\n $components = explode('/', $path);\n $first_part = $components[1];\n\n if($first_part == $in) {\n echo 'class=\"active\"';\n }\n}", "public function checkIfCurrent() {\n if (isset($_GET['_category']) && $_GET['_category'] == $this->id) {\n $this->activate = true;\n } else {\n $this->activate = false;\n }\n }", "public function getCurentPage()\n\t{\n\t\t$pattern = '#[a-z]*.php$#';\n\t\tpreg_match($pattern, $_SERVER['REQUEST_URI'], $current_page);\n\t\tif(isset($current_page) && $current_page){\n\t\t\tforeach($current_page as $cp){\n\t\t\t\tswitch($cp){\n\t\t\t\t\tcase 'index.php': \n\t\t\t\t\treturn 'index';\n\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'rooms.php':\n\t\t\t\t\treturn 'rooms';\n\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'chat.php':\n\t\t\t\t\treturn 'chat';\n\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'contact.php': \n\t\t\t\t\treturn 'contact';\n\t\t\t\t\tbreak;\n\t\t\t\t\tdefault: \t\n\t\t\t\t\treturn 'other';\n\t\t\t\t}\n\t\t\t}\n\t\t}else{\n\t\t\t$this->goToIndex();\n\t\t}\n\t}", "function current_to_active($text)\n{\n $replace = array(\n //List of menu item classes that should be changed to \"active\"\n 'current-menu-item' => 'active',\n 'current_page_parent' => 'active',\n 'current_page_ancestor' => 'active',\n 'current_page_item' => 'active',\n );\n $text = str_replace(array_keys($replace), $replace, $text);\n return $text;\n}", "public function LinkingMode() {\n if(Controller::CurrentPage() && Controller::CurrentPage()->ClassName == 'StaffListing') {\n //check that the action is 'show' and that we have a StaffMember to work with\n if(Controller::CurrentPage()->getAction() == 'show' && $StaffMember = Controller::CurrentPage()->getStaffMember()) {\n //If the current StaffMember is the same as this return 'current' class\n return ($StaffMember->ID == $this->ID) ? 'current' : 'link';\n }\n }\n }", "function uk_active_nav_class( $class, $item ) {\n if (in_array( 'current-menu-item', $class )) {\n $class[] = 'uk-active';\n }\n return $class;\n}", "function be_menu_item_classes( $classes, $item, $args ) {\n global $post;\nif( in_array('photo-item',$classes) && is_page() && $post->post_parent ) {\n $classes[] = 'current-menu-item';\n }\n\n return $classes;\n\n}", "function posts_next() \n\t{\n\t return 'class=\"red darken-2 btn z-depth-1\"';\n\t}", "function current(){}", "function current(){}", "function current(){}", "function current(){}", "function current(){}", "public static function tab($current, $id)\n\t{\n\t\treturn HTML::attributes(array(\n\t\t\t'class' => 'tab-pane fade '.(($current == $id) ? 'active in' : ''),\n\t\t\t'id' => $id,\n\t\t\t'disabled' => ($current == $id) ? NULL : 'disabled',\n\t\t));\n\t}", "function greenfields_add_active_class($classes, $item)\n{\n if (in_array('current-menu-item', $classes)) {\n $classes[] = \"active\";\n }\n\n return $classes;\n}", "function getClass($strUrl) {\n\n echo $strUrl == $_SERVER['REQUEST_URI'] ? 'active' : '';\n}", "public function isCurrent($url){\n return (trim($this->get(), '/') == $url);\n }", "function get_spot_status($post_id) {\n\t\t\n\t\t$the_spot = get_post($post_id);\n\t\t\n\t\tswitch($the_spot->post_status) {\n\t\t\t\n\t\t\tcase 'publish':\n\t\t\t\treturn '<span class=\"published\">'.__('Published', 'btoa').'</span>';\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase 'pending':\n\t\t\t\treturn '<span class=\"pending\">'.__('Awaiting Approval', 'btoa').'</span>';\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase 'draft':\n\t\t\t\treturn '<span class=\"draft\">'.__('Draft', 'btoa').'</span>';\n\t\t\t\tbreak;\n\t\t\t\n\t\t}\n\t\t\n\t}", "function currentPageIs($location){\n $current_location = getPage();\n return $current_location === $location;\n}", "public function currentPage()\n {\n return $this->setRightOperand(PVar::CURRENT_PAGE);\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}", "function custom_post_class($classes){\n\tglobal $wp_query;\n\tif(($wp_query->current_post+1) == $wp_query->post_count) $classes[] = 'last';\n\treturn $classes;\n}", "public function currentPageID() {\n if(is_numeric($this->getRequest()->requestVar('ID')))\t{\n return $this->getRequest()->requestVar('ID');\n } elseif (is_numeric($this->urlParams['ID'])) {\n return $this->urlParams['ID'];\n } elseif(Session::get(\"{$this->class}.currentPage\")) {\n return Session::get(\"{$this->class}.currentPage\");\n } else {\n return 0;\n }\n }", "function active_nav_class($classes, $item){\n\tif (in_array('current-menu-item', $classes)) {\n\t\t$classes[] = 'active';\n\t}\n\treturn $classes;\n}", "public function PIDupinRootlineConditionMatchesCurrentPageIdWhileEditingNewPage() {}", "function ts_get_current_id()\r\n{\r\n\treturn CURRENT_ID;\r\n}", "function getCurrentPage() { return $this->m_currentPage; }", "function trucking_filter_active_class_menu( $classes){\n if(in_array('current-menu-item', $classes)) {\n $classes[] = 'active';\n }\n return $classes;\n}", "protected function getCurrentPage() {\n if (isset($this->data['page'])) return $this->data['page'];\n else return 1;\n }", "public function setCurrent($current)\n {\n if (!empty($current))\n $this->current = $current;\n }", "function sc_mailbox_boxlink_active($parm = '')\n {\n if(!$parm) { $parm = 'inbox'; }\n\n // Check if current page is the active page\n if(e107::getParser()->filter($_GET['page']) == $parm)\n {\n return 'class=\"active\"';\n }\n\n return;\n }", "public function hasCurrent()\n {\n return $this->current !== null;\n }", "function foundation_active_class($classes, $item){\n if( in_array('current-menu-item', $classes) ){\n $classes[] = 'active ';\n }\n return $classes;\n}", "function get_active_menu (string $page, string $page_active, string $class_active = \"active\") {\n return $page == $page_active ? $class_active : \"\";\n }", "function get_active_menu (string $page, string $page_active, string $class_active = \"active\") {\n return $page == $page_active ? $class_active : \"\";\n }", "function echoActiveClassIfRequestMatches($requestUri=array())\n{\n $routing_uri = $_SERVER['REQUEST_URI'];\n foreach($requestUri as $ruri) {\n if (strpos($routing_uri, $ruri) !== FALSE)\n echo ' class=\"active\"';\n }\n}", "public function hcurrent(Dispatcher $app, Context $context)\n\t{\n\t\t$app->logger->debug(sprintf('%s::%s', __CLASS__, __FUNCTION__));\n\t\t\n\t\tif( $context->has_param('race.param.number') )\n\t\t{\n\t\t\t$current_race = $context->param('race.param.number');\n\t\t\t$context->session->param('current', $current_race);\n\t\t\t$app->logger->info(sprintf('%s::%s Current race set to %s', __CLASS__, __FUNCTION__, $current_race));\n\t\t}\n\t\t\n\t\t$current = (integer)$context->session->param('current');\n\t\t$context->param('app.view.template.inline', sprintf('%s', $current));\n\t\t\n\t\treturn $app->status->handled;\n\t}", "function rwbs_add_active_class_to_nav_menu($classes) {\n if (in_array('current-menu-item', $classes, true) || in_array('current_page_item', $classes, true)) {\n $classes = array_diff($classes, array('current-menu-item', 'current_page_item', 'active'));\n $classes[] = 'active';\n }\n return $classes;\n}", "public static function guessCurrentPost()\n {\n $post = self::getPost();\n\n if (intval($post->ID) == 0) {\n foreach (array('post', 'p', 'id') as $possibleId) {\n if (isset($_REQUEST[$possibleId]) && intval($_REQUEST[$possibleId])) {\n return get_post($_REQUEST[$possibleId]);\n }\n }\n }\n\n // If given or nothing found return null\n return $post;\n }", "protected function is_active() {\n\t\treturn 'twentyfourteen' === get_template() || ( defined( 'JETPACK__VERSION' ) && get_theme_support( 'featured-content' ) );\n\t}", "public function treeLevelConditionMatchesCurrentPageIdWhileEditingNewPage() {}", "public function current();", "public function current();", "public function current();", "public function current();", "public function current();", "public function display_current()\n\t{\n\t\treturn $this->CLI->stringQuery($this->SqueezePlyrID.\" display ? ?\");\n\t}", "abstract protected function current();", "function ninja_forms_mp_check_page_conditional( $form_id = '', $current_page = '' ){\r\n\tglobal $ninja_forms_loading, $ninja_forms_processing;\r\n\r\n\tif( $current_page == '' && isset ( $ninja_forms_processing ) ) {\r\n\t\t$current_page = $ninja_forms_processing->get_extra_value( '_current_page' );\t\t\r\n\t}\r\n\r\n\t// Check to see if the next page has been rendered \"hidden\" by conditional logic.\r\n\t$page_divider_id = ninja_forms_mp_get_divider_by_page( $form_id, $current_page );\r\n\r\n\tif ( isset ( $ninja_forms_loading ) ) {\r\n\t\t$field = $ninja_forms_loading->get_field_settings( $page_divider_id );\r\n\t} else {\r\n\t\t$field = $ninja_forms_processing->get_field_settings( $page_divider_id );\t\t\r\n\t}\r\n\r\n\t$data = $field['data'];\r\n\t$show = true;\r\n\tif( function_exists( 'ninja_forms_conditionals_field_filter' ) ){\r\n\t\tif( isset( $data['conditional_action'] ) ){\r\n\t\t\tswitch( $data['conditional_action'] ){\r\n\t\t\t\tcase 'ninja_forms_show_mp_page':\r\n\t\t\t\t\tif( !isset( $data['conditional_pass'] ) OR !$data['conditional_pass'] ){\r\n\t\t\t\t\t\t$show = false;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 'ninja_forms_hide_mp_page':\r\n\t\t\t\t\tif( isset( $data['conditional_pass'] ) AND $data['conditional_pass'] ){\r\n\t\t\t\t\t\t$show = false;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\treturn $show;\r\n}", "public static function isActive ( $link )\n {\n echo $_SERVER[ \"REQUEST_URI\" ] == $link ? \"active\" : \"\";\n }", "public static function current()\n {\n }", "function CurrentPage ( )\n{\n return $this->_CurrentPage;\n}", "public function isLogged()\n {\n return $this->getID() && $this->getID() == get_current_user_id();\n }", "public function get_current_page()\n {\n return $this->current_page;\n }", "function bimber_bp_followers_nav_current( $nav_menu, $args ) {\n\t$nav_menu = explode( '<li', $nav_menu );\n\tforeach ( $nav_menu as $index => $item ) {\n\t\tif ( 'following' === bp_current_component() && strpos( $item, 'following-personal-li' ) > -1 ) {\n\t\t\t$nav_menu[ $index ] = str_replace( 'g1-tab-item', 'g1-tab-item g1-tab-item-current ', $item );\n\t\t}\n\t\tif ( 'followers' === bp_current_component() && strpos( $item, 'followers-personal-li' ) > -1 ) {\n\t\t\t$nav_menu[ $index ] = str_replace( 'g1-tab-item', 'g1-tab-item g1-tab-item-current', $item );\n\t\t}\n\t}\n\t$nav_menu = implode( '<li', $nav_menu );\n\treturn $nav_menu;\n}", "function current()\n {\n if (!isset($this->_curPage)\n || $this->_curPage->getPage() != $this->_position\n ) {\n $this->_curPage = $this->_pages->get($this->_position);\n }\n return $this->_curPage;\n }", "public function belongsToCurrent()\n {\n return Auth::id() == $this->user_id;\n }", "function current()\n {\n $movie = parent::current();\n $newMovie = str_replace('#', '|', $movie);\n $newMovie = str_replace('&', ']', $newMovie);\n $current = \"\";\n if (preg_match('/[^0-9]/', parent::current())) {\n $current = \"<td><a href=\\\"movie.php?movie=\".\n $newMovie.\"\\\">\" . $movie . \"</a></td>\";\n } else {\n $current = \"<td>\".parent::current().\"</td>\";\n }\n return $current;\n }", "function getCurrentCatID() {\n global $wp_query;\n if (is_category() || is_single()) {\n $cat_ID = get_query_var('cat');\n }\n return $cat_ID;\n}", "public function current(int $page): string;", "function oddeven_post_class ( $classes ) {\n global $current_class;\n $classes[] = $current_class;\n $current_class = ($current_class == 'odd') ? 'even' : 'odd';\n return $classes;\n}" ]
[ "0.68452275", "0.65905625", "0.6145302", "0.59675336", "0.59648985", "0.57660353", "0.57051325", "0.562141", "0.56026846", "0.560113", "0.55766416", "0.5544327", "0.5541384", "0.55385584", "0.5529484", "0.5526622", "0.55147254", "0.54919493", "0.5478149", "0.54400563", "0.54305446", "0.54017663", "0.5400779", "0.53517926", "0.5305981", "0.52628344", "0.5211548", "0.51874727", "0.5184559", "0.5178108", "0.5155518", "0.51532644", "0.51372606", "0.51291704", "0.512276", "0.51066905", "0.5096369", "0.50949275", "0.5093419", "0.50912493", "0.5091197", "0.50259936", "0.50250274", "0.50136286", "0.5009693", "0.500272", "0.4988032", "0.496253", "0.496253", "0.496253", "0.496253", "0.496253", "0.4958425", "0.49389955", "0.49363366", "0.4933202", "0.49147314", "0.49064526", "0.49050102", "0.49042016", "0.4897729", "0.48968667", "0.48923984", "0.4877401", "0.4875141", "0.48547077", "0.48533896", "0.4846355", "0.48425543", "0.48404318", "0.4834394", "0.4822521", "0.48204917", "0.48204917", "0.48109573", "0.48039237", "0.48008385", "0.47998142", "0.479936", "0.47981074", "0.4797215", "0.4797215", "0.4797215", "0.4797215", "0.4797215", "0.47959915", "0.47775593", "0.47773346", "0.4775407", "0.4756912", "0.4751486", "0.47494134", "0.47491142", "0.47406498", "0.4740154", "0.4739737", "0.47386345", "0.47305268", "0.47273475", "0.4724394" ]
0.80893636
0
Shorthand function for rendering a partial. Will automatically prepend an underscore to parameter names without an underscore in the front.
function partial($partial) { if($partial[0] != "_") { $partial = "_" . $partial; } get_template_part("partials/".$partial); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function render_partial ( $partial_name, $extra_vars=null )\n{\n $view_name = 'partials/' . $partial_name;\n\n # Call render.\n render($view_name, '', $extra_vars);\n}", "public function renderPartialWithParams(array $params = [], $container = null, $partial = null): string;", "public function render_partial($partial){\n $basename = preg_replace('/^_/', '', basename($partial));\n $path = '_' . LayoutHelper::extensionize($basename, 'html.php');\n \n return $this->render($path);\n }", "public function renderPartial($container = null, $partial = null): string;", "function renderPartial($name, $viewVars=null) {\n\t\techo $this->renderToString($name . '_partial', $viewVars, null);\n\t}", "public function partial($partialPath, $params = null);", "public function partial($partialPath){ }", "function include_common_partial($partialName, array $vars = array())\n\t{\n\t\techo get_common_partial($partialName, $vars);\n\t}", "function makePartial() {\n $partial = new Partial();\n return call_user_func_array([$partial, 'makePartial'], func_get_args());\n}", "function __render(){\r\n\tTemplate::getInstance()->renderPartial();\r\n}", "public function setPartial($partial);", "function __renderPartial($manager,$template,$data){\r\n\tTemplate::getInstance()->renderPartial($manager,$template,$data);\r\n}", "public function show(Partial $partial)\n {\n //\n }", "function granola_render($partial, $args = [])\n{\n $path = granola_resolve_template($partial);\n\n ob_start();\n\n if (file_exists($path)) {\n // Push the current partial on to the stack\n granola_push_partial($partial, $args);\n\n // Render the partial\n require $path;\n\n // Pop the current partial off the stack\n granola_pop_partial();\n }\n\n return ob_get_clean();\n}", "function frame_partial($partial, $params = array())\n{\n $partial = locate_template('partials/'.$partial.'.php', false, false);\n\n if (!empty($partial)) {\n extract($params);\n include($partial);\n }\n}", "public function getPartial();", "public function title_partial($partial_name)\n\t{\n\t\t$this->title_partial = $partial_name;\n\t\treturn $this;\n\t}", "function get_common_partial($partialName, array $vars = array())\n\t{\n\t\t$context = sfContext::getInstance();\n\n\t\t$view = new isoCommonPartialView($context, '_' . $partialName);\n\t\t$view->setPartialVars($vars);\n\n\t\treturn $view->render();\n\t}", "public function partial($view,$data=array(),$name=null)\n\t{\n\t\t/* always return */\n\t\t$partial = $this->view($view,$data,true);\n\n\t\t/*\n\t\tif name is provided then place directly into the view variable $name\n\t\tand return $this (loader) to allow chaining\n\t\t*/\n\t\tif ($name) {\n\t\t\t$this->_ci_cached_vars[$name] = $partial;\n\t\t\treturn $this;\n\t\t}\n\n\t\t/* return the partial */\n\t\treturn $partial;\n\t}", "function partial ( $_file_, $_view_data_ = array(), $__return__as__string__ = false )\n{\n\t// Create path to file to include\n\t$_include_view_file_ = TEMPLATEPATH . '/' . $_file_ . '.php';\n\n\tif ( file_exists ( $_include_view_file_ ) )\n\t{\n\t\tif ( is_array ( $_view_data_ ) )\n\t\t{\n\t\t\textract ( $_view_data_, EXTR_PREFIX_SAME, 'data' );\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$data = $_view_data_;\n\t\t}\n\n\t\tob_start();\n\t\tob_implicit_flush ( false );\n \n\t\trequire $_include_view_file_;\n \n $_response = ob_get_clean();\n \n if ( $__return__as__string__ )\n\t\t{\n\t\t\treturn $_response;\n\t\t}\n\t\telse\n\t\t{\n\t\t\techo $_response;\n\t\t}\n\t}\n}", "public function RenderPartial($id_partial) {\n //\n $html = (String) view($id_partial);\n return response()->json(['newHtml' => $html]);\n }", "public function renderPartial(\n string $partialName,\n array $parameters = [],\n string $format = 'html',\n string $section = null,\n string $language = null\n ): string {\n return $this->renderWithRootPath(\n $this->partialRootPaths,\n $partialName,\n $parameters,\n $format,\n $section,\n $language\n );\n }", "protected function fetchPartialContent($partial)\n\t{\n\t\treturn \"«partial {$partial}»\";\n\t}", "public function partials()\n {\n }", "public function testRenderWithPartials(UnitTester $I)\n {\n $I->skipTest('TODO = Check me');\n $container = $this->getDi();\n $view = $container->get('viewSimple');\n\n $expectedParams = ['cool_var' => 'FooBar'];\n\n $this->renderPartialBuffered($view, 'partials/_partial1', $expectedParams);\n expect($view->getContent())->equals('Hey, this is a partial, also FooBar');\n\n $view->setVars($expectedParams);\n\n// expect($view->render('test5/index'))->equals('Hey, this is a partial, also FooBar');\n// expect($view->render('test9/index'))->equals('Hey, this is a partial, also FooBar<br />Hey, this is a second partial, also FooBar');\n }", "public function partial($key, $view, $data = array())\n\t{\n\t\treturn $this->with($key, $this->factory->make($view, $data));\n\t}", "public function getPartial()\n {\n return $this->m_partial;\n }", "function partial($source, $payload = []){\n\t$path = '../views/';\n\t$source = strtr($source, '.', '/');\n\t$source .= '.php';\n\n\tinclude $path . $source;\n}", "public function renderPartial($view, $params = [])\n {\n\n }", "public function testRenderWithPartials(IntegrationTester $I)\n {\n $I->skipTest('TODO = Check me');\n $view = $this->container->get('viewSimple');\n\n $expectedParams = ['cool_var' => 'FooBar'];\n\n $this->renderPartialBuffered($view, 'partials/_partial1', $expectedParams);\n expect($view->getContent())->equals('Hey, this is a partial, also FooBar');\n\n $view->setVars($expectedParams);\n\n// expect($view->render('test5/index'))->equals('Hey, this is a partial, also FooBar');\n// expect($view->render('test9/index'))->equals('Hey, this is a partial, also FooBar<br />Hey, this is a second partial, also FooBar');\n }", "function partial_url($node, $action, $partial, $params=array(), $sessionStatus=SESSION_PARTIAL)\n{\n\tif (!is_array($params))\n\t$params = array();\n\t$params['atkpartial'] = $partial;\n\n\treturn session_url(dispatch_url($node, $action, $params), $sessionStatus);\n}", "function get_partial($collection, $object = NULL, $options = array()) {\n\n\t$paths = array();\n\n\t// if $object has been specified, create add the full path to the array\n\tif ( $object !== NULL ) {\n\t\t$paths[] = implode('/', ['partials', $collection, $object]) . '.php';\n\t}\n\n\t// add the \"default\" fallback path to tge array\n\t$paths[] = implode('/', ['partials', $collection, 'default']) . '.php';\n\n\tinclude(locate_template($paths));\n\n}", "public function partial($view, array $data = array())\n\t{\n\t\treturn View::make('partials.'.$view, $data)->render();\n\t}", "protected function partialRender()\n {\n $this->view->render();\n }", "public function partial($key, $view, $data = array(), $path = VIEW_PATH)\n\t{\n\t\treturn $this->with($key, new static($view, $data, $path));\n\t}", "function render($name, $data = [])\r\n{\r\n foreach ($data as $key => $value) {\r\n $$key = $value;\r\n }\r\n\r\n $name = str_replace(\".\", \"/\", $name);\r\n\r\n include VIEW_FOLDER . $name . \".php\";\r\n}", "function tev_partial($file, array $params = array()) {\n return tev_fetch('template_extras')->partial($file, $params);\n }", "function partial ($name)\n\t{\n\t\tif (file_exists(APP.\"views/partials/{$name}.html.php\")) {\n\t\t\tob_start();\n\t\t\t\tinclude_once APP.\"views/partials/{$name}.html.php\";\n\t\t\treturn ob_get_clean();\n\t\t}\n\t\telse {\n\t\t\terror_reporting(\"Partial you are looking for is missing partials/{$name}\");\n\t\t}\n\t}", "protected function viewPartial($file = \"index.php\",$var = array()){\n $cekFile = explode(\"/\",$file);\n $length = sizeof($cekFile);\n if($length>1){\n $file = $cekFile[$length-1];\n $cekFile[$length-1] = \"\";\n $folder = implode(\"/\",$cekFile);\n }else{\n $folder = $this->controller;\n }\n return $this->renderFile(\"view/$folder/$file\",$var);\n }", "public function partial($path, $vars = []) {\n if($vars) extract($vars);\n include_once PARTIALS.DS. trim($path, '/') . '.html';\n }", "public function form_element_partial($partial_name)\n\t{\n\t\t$this->form_element_partial = $partial_name;\n\t\treturn $this;\n\t}", "public function renderPartial($view, $data = null) {\r\n\t\tif (is_array($view)) {\r\n\t\t\t$controller = $view[0];\r\n\t\t\t$view = $view[1];\r\n\t\t} else {\r\n\t\t\t$controller = $this->name;\r\n\t\t}\r\n\t\t$view = PROJECTROOT.\"/views/$controller/$view.php\";\r\n\t\tif (is_array($data)) extract($data);\r\n\t\tinclude($view);\r\n\t}", "public function handle_render_partials_request()\n {\n }", "public function inject_partial( $name, $string, $data = array() ) {\n $this->_partials[ $name ] = array( 'string' => $string, 'data' => $data );\n return $this;\n }", "public function render_partial( $uri, array $context = null ) {\n\t\treturn wp_kses_post( $this->view->render_partial( $uri, $context ) );\n\t}", "public function edit(Partial $partial)\n {\n //\n }", "public static function setPartial($partial) {\n self::$_partial = $partial;\n }", "public function paymentFormPartial(): string\n {\n return 'form';\n }", "public function partial($view, array $data = array())\r\n {\r\n $layout = $this->layout;\r\n $this->layout = null;\r\n $this->render($view, $data);\r\n $this->layout = $layout;\r\n }", "public function render_callback(\\WP_Customize_Partial $partial, $context = array())\n {\n }", "protected function partial($view, $params = null, $dir = null)\n {\n $partial = clone $this->view;\n\n $vars = $this->prePartial($view, $params, $dir);\n if (isset($vars['view'])) {\n $view = $vars['view'];\n }\n if (isset($vars['params'])) {\n $params = array_merge((isset($params) ? $params : []), $vars['params']);\n }\n if (isset($vars['dir'])) {\n $dir = $vars['dir'];\n }\n\n if (is_array($params)) {\n $partial->set($params);\n }\n\n $vars = $this->postPartial($view, $params,$dir);\n if (isset($vars['view'])) {\n $view = $vars['view'];\n }\n if (isset($vars['params'])) {\n $params = array_merge((isset($params) ? $params : []), $vars['params']);\n }\n if (isset($vars['dir'])) {\n $dir = $vars['dir'];\n }\n\n return $partial->fetch($view, $dir);\n }", "public function partial($template, array $params=array())\r\n {\r\n $partial = new \\App\\Partial($template);\r\n\r\n foreach ($params as $key => $value) {\r\n $partial->set($key, $value);\r\n }\r\n\r\n return $partial;\r\n }", "public function render_nav_menu_partial($partial, $nav_menu_args)\n {\n }", "protected function renderPartial($view, $data = [])\n {\n $lay = $this->layout;\n $wid = $this->asWidget;\n\n $this->layout = null;\n $this->asWidget = false;\n $output = $this->render($view, $data);\n $this->layout = $lay;\n $this->asWidget = $wid;\n\n return $output;\n }", "public function render()\n {\n return sprintf(\n ':param %s %s: %s',\n $this->renderType(),\n $this->getName(),\n $this->getDesc()\n );\n }", "public function renderPartialView($template, array $arguments = []) \n {\n extract($arguments);\n ob_start();\n require($this->templatePath.$template);\n return ob_get_clean();\n }", "public function render_partial ($partial_name, array $locals = array(), array $options = array())\n\t{\n\t\t$factory = $this->get_viewer_factory();\n\t\tFails::$logger->info ('Rendering partial: '.$partial_name);\n\t\t$locals = array_merge ($this->get_variables_for_view(), $locals);\n\t\tif (strpos ($partial_name, '/') === false)\n\t\t\t$partial_name = Fails::$dispatcher->controller_name.'/'.$partial_name;\n\t\t$partial_name = Fails::$dispatcher->application_root().'/views/'.$partial_name.'.'.$factory->extension();\n\t\t$content = @file_get_contents ($partial_name);\n\t\tif ($content === false)\n\t\t\tthrow new ViewMissingException (\"View partial missing: '\".$file_name.\"'\");\n\t\t$processor = $this->get_processor ($content, $locals);\n\t\treturn $processor->process();\n\t}", "public function customerMethodsPartial(): string\n {\n return 'customermethods';\n }", "function common($file, $vars = array(), $dir = 'common')\n{\n return get_view()->partial($dir . '/' . $file . '.php', $vars);\n}", "public function partial()\n {\n return $this->partials['handlerMessage'];\n }", "function partial(callable $function, ...$args): callable\n{\n return function (...$inner) use ($function, $args) {\n return $function(...array_merge($args, $inner));\n };\n}", "public function renderPartial($moduleName, $actionName, $vars = array())\n {\n if (!strpos($actionName, '/'))\n {\n $actionName = '_'.$actionName;\n }\n\n $class = sfConfig::get('mod_'.strtolower($moduleName).'_partial_view_class', 'sf').'PartialView';\n $view = new $class($this->context, $moduleName, $actionName, '');\n $view->setPartialVars($vars);\n\n return $view->render();\n }", "public function render($name);", "public function partial($func, ...$args)\n {\n return function () use ($func, $args) {\n return call_user_func_array($func, array_merge($args, func_get_args()));\n };\n }", "public function getPartialPath()\n {\n if ($this->_partialPath === null) {\n $this->_partialPath = realpath($this->getLayoutPath() . DIRECTORY_SEPARATOR . 'partials');\n }\n return $this->_partialPath;\n }", "function render_field($field)\n {\n }", "function render_field($field)\n {\n }", "function render_field($field)\n {\n }", "function render_field($field)\n {\n }", "function render_field($field)\n {\n }", "function render_field($field)\n {\n }", "function render_field($field)\n {\n }", "function render_field($field)\n {\n }", "function render_field($field)\n {\n }", "function render_field($field)\n {\n }", "function render_field($field)\n {\n }", "function render_field($field)\n {\n }", "function render_field($field)\n {\n }", "function render_field($field)\n {\n }", "function render_field($field)\n {\n }", "function render_field($field)\n {\n }", "function render_field($field)\n {\n }", "function render_field($field)\n {\n }", "function render_field($field)\n {\n }", "function render_field($field)\n {\n }", "function render_field($field)\n {\n }", "function render_field($field)\n {\n }", "function render_field($field)\n {\n }", "function render_field($field)\n {\n }", "function render_field($field)\n {\n }", "function render_field($field)\n {\n }", "function render_field($field)\n {\n }", "function render_field($field)\n {\n }", "function render_field($field)\n {\n }", "function render_field($field)\n {\n }", "function render_field($field)\n {\n }", "function render_field($field)\n {\n }", "function render_field($field)\n {\n }", "public function update(Request $request, Partial $partial)\n {\n //\n }", "function render() {}" ]
[ "0.73103184", "0.696214", "0.683958", "0.66411346", "0.65500134", "0.63510484", "0.6294478", "0.62700045", "0.6248007", "0.6064179", "0.60419375", "0.60080636", "0.5962601", "0.5945746", "0.5919971", "0.5919327", "0.58942556", "0.5887785", "0.5831979", "0.58001465", "0.5686388", "0.5683164", "0.56830364", "0.5676843", "0.5657484", "0.565242", "0.56401366", "0.56047285", "0.557834", "0.55571544", "0.55471265", "0.5541733", "0.55298", "0.55208015", "0.54926", "0.5469342", "0.5424634", "0.54245996", "0.5389338", "0.531486", "0.530368", "0.53017414", "0.530002", "0.52942795", "0.5288939", "0.52601314", "0.524986", "0.519846", "0.5161039", "0.5155921", "0.51283395", "0.5089929", "0.50815094", "0.5062924", "0.5034704", "0.5027686", "0.5006696", "0.5006005", "0.4999443", "0.49964952", "0.49868983", "0.49457335", "0.4945621", "0.49225026", "0.49159756", "0.49117678", "0.49117678", "0.49117678", "0.49117678", "0.49117678", "0.49117678", "0.49117678", "0.49117678", "0.49117678", "0.49117678", "0.49117678", "0.49117678", "0.49117678", "0.49117678", "0.49117678", "0.49117678", "0.49117678", "0.49117678", "0.49117678", "0.49117678", "0.49117678", "0.49117678", "0.49117678", "0.49117678", "0.49117678", "0.49117678", "0.49117678", "0.49117678", "0.49117678", "0.49117678", "0.49117678", "0.49117678", "0.49117678", "0.49115", "0.49084708" ]
0.7440739
0
Builds a HTML link element and prints it.
function build_link($text, $page){ $format = '<a href="%2$s">%1$s</a>'; printf($format, $text, link_to($page, false)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function asLink()\n {\n $label = $this->title ?: $this->value;\n return '<a href=\"' . $this->href .'\" title=\"' . $label . '\">' . $label . '</a>';\n }", "function print_Link($id, $sub, $value)\n{\n\t$elem = $this->elements[$id];\n\t$url = $this->getUrl($elem);\n\n\tif ($sub == 'url') {\n\t\tprint $url;\n\t\treturn;\n\t}\n\tif ($sub == 'js') {\n\t\tif ($elem['popup'])\n\t\t\t$js = $this->getPopup($id, $elem['popup'], $url);\n\t\telse {\n\t\t\t$js = \"window.location='$url'\";\n\t\t\tif ($elem['hash']) {\n\t\t\t\t$js .= \"+(document.location.hash || '');\";\n\t\t\t}\n\t\t}\n\n\t\tprint $js;\n\t\treturn;\n\t}\n\n\tif ($elem['img']) {\n\t\t$lb = \"<img src=\\\"{$elem['img']}\\\" class=\\\"link\\\" alt=\\\"{$elem['lb']}\\\" title=\\\"{$elem['lb']}\\\"\".($this->useXhtml? ' />' : '>');\n\t}\n\telse {\n\t\t$lb = $elem['lb'];\n\t}\n\n\tif (!$url) {print $lb; return; }\n\n\tif ($elem['popup'])\n\t\t$url = $this->getPopup($id, $elem['popup'], $url);\n\n\tif ($elem['field'] and !$lb) {\n\t\tob_start();\n\t\t$this->print_Element($elem['field'],$sub,$value);\n\t\t$lb = ob_get_contents();\n\t\tob_end_clean();\n\t}\n\telseif (!$lb)\n\t\t$lb = (string)$value;\n\n\t$tag = array('href' => $url, 'class' => $id, '__attr' => $elem['attr']);\n\n\tif ($elem['confirm']) {\n\t\t$tag['onclick'] = \"return confirm('\".$elem['confirm'].\"')\";\n\t}\n\n\tif ($elem['html']) $tag = array_merge($tag, $elem['html']);\n\tprint $this->htmlTag('a', $tag, $lb);\n}", "protected function generateLinks()\n {\n if ( ! is_null($this->links) ) {\n foreach ( $this->links as $link ) {\n $this->addLine('<url>');\n $this->addLine('<loc>');\n $this->addLine($this->helpers->url(\n $link->link,\n $this->protocol,\n $this->host\n ));\n $this->addLine('</loc>');\n $this->addLine('<lastmod>' . date_format($link->updated_at, 'Y-m-d') . '</lastmod>');\n $this->addLine('</url>');\n }\n }\n }", "public function makelink()\n {\n /*\n * If link set directly that forces using it rather than build\n */\n if ($this->link) {\n return $this->link;\n }\n\n $pageid = static::makeParameterId($this->for);\n $parameters = $this->app['request']->query->all();\n if (array_key_exists($pageid, $parameters)) {\n unset($parameters[$pageid]);\n } else {\n unset($parameters['page']);\n }\n\n $parameters[$pageid] = '';\n $link = '?' . http_build_query($parameters);\n\n return $link;\n }", "public function makeLinkButton() {}", "function LinkToURL($url = null)\n\t{\n\t\t// Print URL link using HTML class\n\t\techo HTML::LinkToURL($url);\n\t}", "public function __toString()\n {\n ob_start();\n\n $link = '<a href=\"'. $this->_url .'\" rel=\"nofollow\">%s</a>';\n\n ?>\n\n <li>\n <header>\n <h3><?php printf( $link, $this->_title ); ?></h3>\n <div class=\"meta\"><strong><?php _e( 'Date posted', 'feed-scraper' ); ?></strong>: <time><?php echo $this->_pubDate->format( 'd/m/Y' ); ?></time></div>\n </header>\n <p><?php echo $this->_excerpt; ?></p>\n <footer>\n <?php printf( $link, __( 'Read more', 'feed-scraper' ) .' &raquo;' ); ?>\n </footer>\n </li>\n\n <?php\n\n return ob_get_clean();\n }", "public function link(): string\n {\n return $this->link;\n }", "function HTMLLink ($params) {\n $val = $params['value'];\n unset($params['value']);\n $str = '';\n foreach ($params as $k=>$v) {\n $str .= \" {$k}=\\\"{$v}\\\"\";\n }\n return \"<a {$str} >{$val}</a>\";\n }", "function format_link($p_label, $p_action, $p_arg = array(), $p_class = '', $p_style = '', $p_prop = ''){\n\treturn $t_link = '<a class=\"' . $p_class . '\" style=\"' . $p_style . '\" href=\"' . format_href($p_action, $p_arg) . '\" ' . $p_prop . '>' . $p_label . '</a>';\n}", "public function links() {\n\t\t?>\n\t\t<ul>\n\t\t\t<li>\n\t\t\t\t<a href=\"http://bit.ly/15uoww1\" target=\"_blank\"><?php echo __( 'Installation manual', $this->_google_drive_cdn->get_textdomain() ); ?></a>\n\t\t\t</li>\n\t\t\t<li>\n\t\t\t\t<a href=\"http://bit.ly/W9GDQT\" target=\"_blank\"><?php echo __( 'Frequently Asked Questions', $this->_google_drive_cdn->get_textdomain() ); ?></a>\n\t\t\t</li>\n\t\t\t<li>\n\t\t\t\t<a href=\"http://bit.ly/WW93Sk\" target=\"_blank\"><?php echo __( 'Report a bug', $this->_google_drive_cdn->get_textdomain() ); ?></a>\n\t\t\t</li>\n\t\t\t<li>\n\t\t\t\t<a href=\"http://bit.ly/11UE2lF\" target=\"_blank\"><?php echo __( 'Request a function', $this->_google_drive_cdn->get_textdomain() ); ?></a>\n\t\t\t</li>\n\t\t\t<li>\n\t\t\t\t<a href=\"http://bit.ly/XkivOW\" target=\"_blank\"><?php echo __( 'Submit a translation', $this->_google_drive_cdn->get_textdomain() ); ?></a>\n\t\t\t</li>\n\t\t\t<li>\n\t\t\t\t<a href=\"http://bit.ly/UlDG4t\" target=\"_blank\"><?php echo __( 'More cool stuff by WPBuddy', $this->_google_drive_cdn->get_textdomain() ); ?></a>\n\t\t\t</li>\n\t\t</ul>\n\t<?php\n\t}", "public function getContent() : string\n {\n return sprintf('<a href=\"%s\">%s</a>', $this->link, parent::getContent());\n }", "function crb_create_anchor($value, $link, $classes = '', $target = '_self') {\n\tif ( empty($link) || empty($link) ) {\n\t\treturn;\n\t}\n\n\tif ( $classes ) {\n\t\tif ( is_array($classes) ) {\n\t\t\t$classes = implode(' ', $classes);\n\t\t}\n\n\t\t$classes = 'class=\"' . $classes . '\"';\n\t}\n\n\tob_start();\n\t?>\n\n\t<a href=\"<?php echo $link; ?>\" target=\"<?php echo $target; ?>\" <?php echo $classes; ?>><?php\n\t\techo $value;\n\t?></a>\n\n\t<?php\n\treturn ob_get_clean();\n}", "protected function _toHtml(): string\n {\n if (false != $this->getTemplate()) {\n return parent::_toHtml();\n }\n\n return sprintf('<li><a %s>%s</a>',\n $this->getLinkAttributes(), $this->escapeHtml($this->getLabel())\n );\n }", "function render_link($text, $url) {\n return \"<a href=\\\"$url\\\">$text</a>\";\n }", "public function toHtml()\n {\n $iterator = new \\ArrayIterator((array)$this);\n\n echo \"<div style=\\\"padding-left: 16px\\\">\";\n\n $itemLink = '';\n\n while ($iterator->valid()) {\n $value = $iterator->current();\n $key = $iterator->key();\n\n if (strpos($key, 'link') !== false) {\n $itemLink = $value;\n }\n\n echo \\MIMAS\\Service\\Jorum\\Formatters\\Html::get($key, $value, $itemLink);\n\n $iterator->next();\n }\n echo \"</div>\";\n }", "public function generateLink($params)\n {\n }", "public function getLink() {}", "function do_html_URL($url, $name)\r\n{\r\n?>\r\n <br><a href=\"<?=$url?>\"><?=$name?></a><br>\r\n<?\r\n}", "function do_html_URL($url, $name)\r\n{\r\n?>\r\n <br><a href=\"<?=$url?>\"><?=$name?></a><br>\r\n<?\r\n}", "function link($text,$url = '#',$attribute = array()){ \r\n\t\t$attribute = $this->convertStringAtt($attribute);\r\n\t\tif($url){\r\n\t\t\tpreg_match(\"/([^\\?]+)?(\\?)?(.+)?/\", $url, $reg);\r\n\t\t\tif(isset($reg[3])){\r\n\t\t\t\tpreg_match_all(\"/&(amp;)?([^&]+)/\",\"&\".$reg[3], $exp);\r\n\t\r\n\t\t\t\tfor ($i=0;$i<count($exp[2]);$i++){\r\n\t\t\t\t\t$var = explode(\"=\",$exp[2][$i]);\r\n\t\t\t\t\t$exp[2][$i] = $var[0].\"=\".urlencode(isset($var[1]) ? $var[1] : '');\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\t$reg[3] = implode(\"&\",$exp[2]);\r\n\t\t\t}else{\r\n\t\t\t\t$reg[3] = '';\r\n\t\t\t}\r\n\t\t\t$stat = '';\r\n\t\t\tif(isset($attribute['state'])){\r\n\t\t\t\tif($attribute['state'] == \"*\"){\r\n\t\t\t\t\t$ex = array();\r\n\t\t\t\t}else{\r\n\t\t\t\t\t$ex = explode(\",\",$attribute['state']);\r\n\t\t\t\t}\r\n\t\t\t\t$stat = $GLOBALS['BASIC_URL']->serialize($ex);\r\n\t\t\t\tunset($attribute['state']);\r\n\t\t\t}\r\n\t\t\t$tmp = $stat.$reg[3];\r\n\t\t\t$attribute['href'] = $reg[1].($tmp ? '?' : '').$tmp;\r\n\t\t\tif(isset($attribute['path'])){\r\n\t\t\t\t$tmp = $GLOBALS['BASIC']->pathFile(\r\n\t\t\t\t\tarray(\r\n\t\t\t\t\t\t$GLOBALS['BASIC']->ini_get('root_virtual'),\r\n\t\t\t\t\t\t$attribute['href']\r\n\t\t\t\t\t)\r\n\t\t\t\t);\r\n\r\n\t\t\t\t$attribute['href'] = $tmp[0].$tmp[1];\r\n\t\t\t\tunset($attribute['path']);\r\n\t\t\t}\r\n\t\t\t$attribute['href'] = $GLOBALS['BASIC_URL']->link($attribute['href']);\r\n\t\t}else{\r\n\t\t\t$attribute['href'] = '#';\r\n\t\t}\r\n\t\treturn $this->createTag('a',$attribute,$text);\r\n\t}", "function makeLink($text, $link, $section = '', $title = '', $target = '')\n{\n\t// if there's nothing to link, don't link anything\n\tif(!$text)\n\t\treturn '';\n\n\t$ret = '<a href=\"';\n\n\tif($section != 'EXTERIOR')\n\t{\n\t\tif($section == '/')\n\t\t\t$ret .= ARC_WWW_PATH;\n\t\telse if($section)\n\t\t\t$ret .= ARC_WWW_PATH . $section . '/';\n\n\t\t$ret .= '?';\n\t}\n\n\tif($section != 'EXTERIOR' && isset($_GET['sqlprofile']) || isset($_POST['sqlprofile']))\n\t\t$link .= '&sqlprofile';\n\n\t$ret .= str_replace('&', '&amp;', $link) . '\"';\n\n\tif($title)\n\t\t$ret .= ' title=\"' . $title . '\"';\n\n\tif($target)\n\t\t$ret .= ' target=\"' . $target . '\"';\n\n\t$ret .= '>' . $text . '</a>';\n\n\treturn $ret;\n}", "public function generate_links($attr)\n\t{\n\t\t$source = \"http://www.marketingvillas.com/links_rev.php\";\n\t\t$source .= '?exc='.str_replace('uat.','www.',$_SERVER['SERVER_NAME']);\n\t\t\n\t\tif($attr['heading'] != '')\n\t\t\t$source .= '&heading='.$attr['heading'];\n\t\t\n\t\tif($attr['uriheading'] != '')\n\t\t\t$source .= '&url_heading='.$attr['uriheading'];\n\t\telse\n\t\t\t$source .= '&url_heading=h2';\n\t\t\n\t\tif($attr['what'] != '')\n\t\t\t$source .= '&what='.urlencode($attr['what']);\n\t\t\n\t\t$meme = $this->ret(ltrim($attr['sublocation']));\n\t\t$source .= '&location='.$meme['location'];\n\t\t$source .= '&area='.$meme['area'];\n\t\t//echo $source;\n\t\t$ch = curl_init();\n\t\tcurl_setopt($ch, CURLOPT_URL, $source);\n\t\tcurl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\n\t\t$output = curl_exec($ch);\n\t\tcurl_close($ch);\n\t\t\n\t\treturn $output;\n\t}", "function _build_link_list($link_count, $link, $display)\n {\n if ( substr($link, 0, 7) == 'http://' || substr($link, 0, 8) == 'https://' ||\n substr($link, 0, 7) == 'mailto:' ) {\n $this->_link_list .= \"[$link_count] $link\\n\";\n } else {\n $this->_link_list .= \"[$link_count] \" . $this->url;\n if ( substr($link, 0, 1) != '/' ) {\n $this->_link_list .= '/';\n }\n $this->_link_list .= \"$link\\n\";\n }\n\n return $display . ' [' . $link_count . ']';\n }", "function print_link_text($table) {\n\n\t$html = \"<a class=\\\"div_class\\\" href=\\\"\" . $table['link'] . \"\\\">\\n\";\n\t$html .= \"\\t<h3>\" . $table['titre'] . \"</h3>\\n\";\n\t$html .= \"\\t<p>\" . $table['texte'] . \"</p>\\n\";\n\t$html .= \"</a>\\n\";\n\n\treturn $html;\n}", "function makeLink($href,$content) {\n$link = \"<div class=\\\"entete4middle\\\">\n <table>\n <tr>\n <td><a href=\\\"$href\\\" class=\\\"link\\\" title=\\\"Cliquez poour accéder à la galerie\\\">$content</a></td>\n </tr>\n </table>\n </div>\";\n\necho $link;\n}", "public function Link()\n {\n if ($product = $this->Product()) {\n return $product->Link;\n }\n return '';\n }", "public function render()\n\t{\n\t\treturn '<li>'.$this->html->link($this->link, $this->title, $this->attributes).$this->renderNestedMenu().'</li>';\n\t}", "function alink($title=null,$url=null,$attributes=[], $secure=null,$escape=false) \n\t{\n\t\treturn app('html')->alink($title,$url,$attributes,$secure,$escape);\n\t}", "function makeLink($label, $link, $ATagParams = ''){\n\t\tif(is_array($this->conf['typolink.']))\n\t\t\t$myConf = $this->conf['typolink.'];\n\t\t$myConf['parameter'] = $link;\n\t\tif($ATagParams) {\n\t\t\t$myConf['ATagParams'] = $ATagParams;\n\t\t}\n\t\treturn $this->cObj->typoLink($label, $myConf);\n }", "public function getLink();", "public function getLink();", "function createSimpleLink($idName) {\n echo '<a href=\"index.php\" id=\"' . $idName . '\" class=\"nested\">homepage</a>';\n }", "protected function _toHtml() {\r\n\t\t$html = '';\r\n\t\t$link_options = self::getData('link_options');\r\n\r\n\t\tif(empty($link_options)) {\r\n\t\t\treturn $html;\r\n\t\t}\r\n\r\n\t\t$arr_options = explode(',', $link_options);\r\n\r\n\t\tif(is_array($arr_options) && count($arr_options)) {\r\n\t\t\tforeach($arr_options as $option) {\r\n\t\t\t\tSwitch ($option) {\r\n\t\t\t\t\tcase 'print':\r\n\t\t\t\t\t\t$html .= '<div><a href=\"javascript: window.print();\">Print</a></div>';;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase 'email':\r\n\t\t\t\t\t\t$html .= '<div><a href=\"mailto:yourcompanyemail@domain.com&subject=Inquiry\">Contact Us</a></div>';\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn $html;\r\n\t}", "public function linkTag($src = \"\", $link_text = NULL, $options = NULL)\n {\n $src = ($src != \"\") ? $src : \"javascript:void(0)\";\n $pt_str = isset($options) ? $this->options2str($options) : '';\n return '<a href=\"' . $src . '\" ' . $pt_str . '>' . $link_text . '</a>';\n }", "public function getLink() {\n\t\t\t// This is currently identical to drawLink()\n\t\t\t// but that's designed to return HTML, and may in the future contain formatting etc\n\t\t\tglobal $db;\n\t\t\t$data = $db->get_row(\"SELECT parent,name FROM pages WHERE guid = '{$this->guid}'\");\n\t\t\t$location = array();\n\t\t\t$html = '';\n\t\t\twhile ($data->parent != 0) {\n\t\t\t\t$html = '/'.$data->name.$html;\n\t\t\t\t$data = $db->get_row(\"SELECT parent,name FROM pages WHERE guid = '{$data->parent}'\");\n\t\t\t}\n\t\t\treturn $html . '/'; // .html removed and replaced by a /\n\t\t}", "protected function pakHrefAttr(): string\n {\n return \"href='{$this->link}'\";\n }", "public function link(): string {\n\t\treturn $this->page['link'] ?? '';\n\t}", "function create_link($linkName, $linkTarget='#')\n {\n return $this->createLink($linkName, $linkTarget);\n }", "function atwork_menu_link(array $variables) {\n $element = $variables['element'];\n $sub_menu = '';\n\n if ($element['#below']) {\n $sub_menu = drupal_render($element['#below']);\n }\n $output = l($element['#title'], $element['#href'], $element['#localized_options']);\n // Adding a class depending on the TITLE of the link (not constant)\n $element['#attributes']['class'][] = atwork_id_safe($element['#title']);\n // Adding a class depending on the ID of the link (constant)\n $element['#attributes']['class'][] = 'mid-' . $element['#original_link']['mlid'];\n return '<li' . drupal_attributes($element['#attributes']) . '>' . $output . $sub_menu . \"</li>\\n\";\n}", "function linkToDomElement( $appctx )\n\t\t{\n\t\t$appctx->Indent() ; echo( \"cmsnodes[$this->idx].linkToDomElement() ;\\n\" ) ;\n\t\t}", "public function getLink() {\n\t\treturn '<a rel=\"statistics\" href=\"'.self::$DISPLAY_URL.'/'.$this->id().'\">'.$this->name().'</a>';\n\t}", "public function getLink()\n {\n $link = new WebLink($this->container);\n $link->setUrl($this->userInput);\n\n return $link;\n }", "public function get_link() {\n\n\t\t$keyword_synonyms_modal_config = array(\n\t\t\t'mountHook' => '.wpseo-button-keyword-synonyms',\n\t\t\t'openButtonIcon' => '',\n\t\t\t'intl' => array(\n\t\t\t\t'open' => __( '+ Add synonyms', 'wordpress-seo' ),\n\t\t\t\t'modalAriaLabel' => sprintf(\n\t\t\t\t\t/* translators: %s expands to 'Yoast SEO Premium'. */\n\t\t\t\t\t__( 'Get %s now!', 'wordpress-seo' ), 'Yoast SEO Premium'\n\t\t\t\t),\n\t\t\t\t'heading' => sprintf(\n\t\t\t\t\t/* translators: %s expands to 'Yoast SEO Premium'. */\n\t\t\t\t\t__( 'Get %s now!', 'wordpress-seo' ), 'Yoast SEO Premium'\n\t\t\t\t),\n\t\t\t),\n\t\t\t'classes' => array(\n\t\t\t\t'openButton' => 'wpseo-keyword-synonyms button-link',\n\t\t\t),\n\t\t\t'content' => 'KeywordSynonyms',\n\t\t);\n\n\t\t$translations = new WPSEO_Keyword_Synonyms_Modal();\n\t\t$translations->enqueue_translations();\n\n\t\t$benefits = new WPSEO_Premium_Benefits_For_Synonyms_List();\n\t\t$benefits->enqueue_translations();\n\n\t\tYoast_Modal::add( $keyword_synonyms_modal_config );\n\n\t\treturn '<div class=\"wpseo-button-keyword-synonyms\"></div>';\n\t}", "public function href($link, $language) {\r\n\t\techo \"<a title='$language' href='$link'>$language</a>\";\r\n\t}", "public function link();", "function print_bracket_link( $p_link, $p_url_text ) {\r\n\t\tif ( empty( $p_link ) ) {\r\n\t\t\techo \"[ $p_url_text ]\";\r\n\t\t} else {\r\n\t\t\techo \"[ <a href=\\\"$p_link\\\">$p_url_text</a> ]\";\r\n\t\t}\r\n\t}", "public function create_links()\n {\n \t$txt = '<ul>';\n \t$last = end($this->breadcrumb);\n \tforeach($this->breadcrumb AS $breadcrumb)\n \t{\n \t\t$url = '';\n \t\t$class = FALSE;\n \t\tif($breadcrumb['active'] == '1')\n \t\t{\n \t\t\t$class = 'active';\n \t\t}\n \t\t$txt .= '<li><a href=\"'.$breadcrumb['url'].'\" class=\"'.$class.'\" title=\"'.$breadcrumb['txt'].'\">'.$breadcrumb['txt'].'</a></li>';\n \t\t$class = '';\n \t}\n \t\n \t$txt .= '</ul>';\n \treturn $txt;\n }", "public function viewLink()\n {\n return $this->html->link($this->object->path(), $this->object->getTitle(), ['target' => '_blank']);\n }", "public function drawLink() {\n\t\t\treturn $this->drawLinkByGUID($this->guid);\n\t\t\t\n\t\t\tglobal $db;\n\t\t\t$data = $db->get_row(\"SELECT parent,name FROM pages WHERE guid = '{$this->guid}'\");\n\t\t\t$location = array();\n\t\t\t$html = '';\n\t\t\tif ($data->parent == 0) {\n\t\t\t\t//$html .= '/'.$data->name.$html;\n\t\t\t\t$html = '';\n\t\t\t}\n\t\t\telse {\n\t\t\t\twhile ($data->parent != 0) {\n\t\t\t\t\t$html = '/'.$data->name.$html;\n\t\t\t\t\t$data = $db->get_row(\"SELECT parent,name FROM pages WHERE guid = '{$data->parent}'\");\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn $html . '/'; // .html removed and replaced by a /\n\t\t}", "function makeLink($title,$open_text,$save_text,$base_path,$prefix=\"\") {\n\t\tglobal $modx;\n\t\t$placeholders = array(\n\t\t\t\"[+open_url+]\" => $this->buildURL(\"debug=open\",$modx->documentIdentifier,$prefix),\n\t\t\t\"[+curl+]\" => $_SERVER[\"REQUEST_URI\"],\n\t\t\t\"[+dbg_title+]\" => $title,\n\t\t\t\"[+dbg_icon_url+]\" => $base_path.'bug.png',\n\t\t\t\"[+save_url+]\" => $this->buildURL(\"debug=save\",$modx->documentIdentifier,$prefix),\n\t\t\t\"[+open_dbg_console+]\" => $open_text,\n\t\t\t\"[+save_dbg_console+]\" => $save_text,\n\t\t);\n\t\treturn str_replace( array_keys( $placeholders ), array_values( $placeholders ), $this->templates[\"links\"]);\n\t}", "public function createLink($linkName, $linkTarget='#')\n {\n $startTag = $this->createOpenTag('a', array('href'=>$linkTarget));\n $endTag = $this->createCloseTag('a');\n return $startTag.$linkName.$endTag;\n }", "function format_jobdetail_link($val) {\n return format_link(url_job_detail($val), \"#$val\");\n }", "public static function linkField($text,$url='#',$option=array()) {\n $option['href']=$url;\n \t\treturn self::htmltag('a',$option,$text);\n\t}", "function addLink(& $story, & $pageElement) {\t\t\n\t\t$storyElement =& $this->_document->createElement('link');\n\t\t$pageElement->appendChild($storyElement);\n\t\t\n\t\t$this->addCommonProporties($story, $storyElement);\n\t\t\n \t\t// description\n\t\t$shorttext =& $this->_document->createElement('description');\n\t\t$storyElement->appendChild($shorttext);\n\t\t$shorttext->appendChild($this->_document->createTextNode(htmlspecialchars($story->getField('shorttext'))));\n \t\t\n \t\t// file\n\t\t$longertext =& $this->_document->createElement('url');\n\t\t$storyElement->appendChild($longertext);\n\t\t$longertext->appendChild($this->_document->createTextNode(htmlspecialchars($story->getField(\"url\"))));\n\t\t\n\t\t$this->addStoryProporties($story, $storyElement);\n\t}", "function getLink() {\n\t\treturn $this->getElementText(DOMIT_RSS_ELEMENT_LINK);\n\t}", "function getLink() {\n\t\treturn $this->getElementText(DOMIT_RSS_ELEMENT_LINK);\n\t}", "function getLink() {\n\t\treturn $this->getElementText(DOMIT_RSS_ELEMENT_LINK);\n\t}", "function getLink() {\n\t\treturn $this->getElementText(DOMIT_RSS_ELEMENT_LINK);\n\t}", "public function getLinkAttribute()\n\t{\n\t\treturn HTML::link('/team/view/'. $this->id, $this->name);\n\t}", "function getLink(): string;", "function makeLink($id,$text)\n {\r\n $req = & SGL_Request::singleton();\r\n\r\n $targetModule = (@strlen($this->options['targetModule'])) \r\n ? $this->options['targetModule']\r\n : $req->get('moduleName');\r\n \r\n $targetManager = (@strlen($this->options['targetManager'])) \r\n ? $this->options['targetManager']\r\n : $req->get('managerName');\r\n \r\n $targetAction = (@strlen($this->options['targetAction'])) \r\n ? $this->options['targetAction']\r\n : $req->get('managerName');\r\n\r\n $url = SGL_Url::makeLink(\r\n $targetAction,\r\n $targetManager,\r\n $targetModule\r\n );\r\n \r\n $url .= 'frmCatID/'.$id;\r\n \r\n return '<a href=\"'.$url.'\">'.$text.'</a>';\r\n }", "public function link(string $name, array $params = [], array $options = []): string;", "public function toUrl()\n {\n\n return '<a href=\"'.static::$toUrl.'&amp;objid='.$this->id.'\" >'.$this->text().'</a>';\n\n }", "function make_link($params = null) {\n $params = func_get_args();\n $name = array_shift($params);\n $url = call_user_func_array('url_for', $params);\n \n return sprintf('<a href=\"%s\">%s</a>', $url, $name);\n}", "function getLink() {\n return new Hyperlink($this->getName(),\"/user/$this->id\",'userlink');\n }", "function olink($destination='', $class='', $style='', $id='', $extra='')\n\t{\n\t\t$extra = ($extra == '' ? 'href=\"' . $destination . '\"' : $extra . ' href=\"' . $destination . '\"');\n\t\treturn $this->otag('a', $class, $style, $id, $extra);\n\t}", "function susy_menu_link(array $vars) {\n $element = $vars['element'];\n $sub_menu = '';\n\n if ($element['#below']) {\n $sub_menu = drupal_render($element['#below']);\n }\n\n $output = l($element['#title'], $element['#href'], $element['#localized_options']);\n // Adding a class depending on the TITLE of the link (not constant)\n $element['#attributes']['class'][] = drupal_html_id($element['#title']);\n // Adding a class depending on the ENGLISH title of the link (constant)\n $element['#attributes']['class'][] = drupal_html_id($element['#original_link']['link_title']);\n // Adding a class depending on the ID of the link (constant)\n if (isset($element['#original_link']['mlid']) && !empty($element['#original_link']['mlid'])) {\n $element['#attributes']['class'][] = 'mid-' . $element['#original_link']['mlid'];\n }\n return '<li' . drupal_attributes($element['#attributes']) . '>' . $output . $sub_menu . \"</li>\\n\";\n}", "function link_a($dir,$cont){\r\n return \"<a href=\\\"$dir\\\">$cont</a>\";\r\n }", "public function feed_link() {\n\t\t$post_title = self::feed_title();\n\t\t$feed_link = LivePress_Updater::instance()->get_current_post_feed_link();\n\n\t\tif ( count( $feed_link ) > 0 ) {\n\t\t\t$tag = '<link rel=\"alternate\" type=\"' . esc_attr( feed_content_type( 'rss2' ) ) . '\" ';\n\t\t\t$tag .= 'title=\"' . esc_attr( get_bloginfo( 'name' ) ) . ' &raquo; ' . esc_attr( $post_title ) . '\" ';\n\t\t\t$tag .= 'href=\"' . esc_url( $feed_link[0] ) . '\" />' . \"\\n\";\n\t\t\techo $tag;\n\t\t}\n\t}", "function Link()\n\t{\tif ($this->details[\"hblink\"])\n\t\t{\tif (strstr($this->details[\"hblink\"], \"http://\") || strstr($this->details[\"hblink\"], \"https://\"))\n\t\t\t{\treturn $this->details[\"hblink\"];\n\t\t\t} else\n\t\t\t{\treturn SITE_URL . $this->details[\"hblink\"];\n\t\t\t}\n\t\t}\n\t}", "function setUrlLink(){\n if( $this->id == 0 ) return;\n $url = $this->aFields[\"url\"]->toString();\n if( $url == \"\" ) return;\n $url = strip_tags( preg_replace( \"/[\\\"']/\", \"\", $url ) );\n if( !$this->aFields[\"url\"]->editable ) $this->aFields[\"url\"]->display = false;\n $this->aFields[\"url_link\"]->display = true;\n $this->aFields[\"url_link\"]->value = \"<a href=\\\"\".$url.\"\\\">\".$url.\"</a>\";\n }", "public function build_link_admin_li( NavWidgetLink $link, NavWidgetLink $parent = null )\n {\n ?>\n <li class=\"nav-widget-link\">\n <div class=\"title-bar\">\n <span class=\"title\"><?php echo $link->get_text(); ?></span>\n <a href=\"javascript://\" class=\"edit-link\">Edit</a>\n </div>\n <div class=\"edit-wrap\" id=\"edit-wrap-<?php echo $link->get_id(); ?>\">\n <form action=\"#widget\" method=\"post\">\n <p>\n <input type=\"hidden\" value=\"<?php echo wp_create_nonce( 'edit-link-' . $link->get_id() ); ?>\" name=\"edit_nav_menu_link[nonce]\" />\n <input type=\"hidden\" value=\"<?php echo $link->get_id(); ?>\" name=\"edit_nav_menu_link[id]\" />\n <label for=\"link-text-<?php echo $link->get_id(); ?>\">Text:</label>\n <input id=\"link-text-<?php echo $link->get_id(); ?>\" type=\"text\" class=\"widefat\" name=\"edit_nav_menu_link[text]\" value=\"<?php echo $link->get_text(); ?>\" />\n </p>\n <p>\n <label for=\"link-url-<?php echo $link->get_id(); ?>\">URL:</label>\n <input id=\"link-url-<?php echo $link->get_id(); ?>\" type=\"text\" class=\"widefat\" name=\"edit_nav_menu_link[url]\" value=\"<?php echo $link->get_url(); ?>\" />\n </p>\n <p>\n <input type=\"checkbox\" name=\"edit_nav_menu_link[open_in_new_window]\" <?php if( $link->open_in_new_window() ) echo checked( 1, 1 ); ?> value=\"1\" id=\"link-open-in-new-window-<?php echo $link->get_id(); ?>\" />\n <label for=\"link-open-in-new-window-<?php echo $link->get_id(); ?>\">Open Link In New Window:</label>\n </p>\n <p>\n <label for=\"link-parent-<?php echo $link->get_id(); ?>\">Parent</label>\n <?php\n echo $this->build_parent_link_select( 'edit_nav_menu_link', $link );\n ?>\n </p>\n <p class=\"submit\">\n <input type=\"submit\" value=\"Save Changes\" class=\"button-primary submit-butotn\" />\n <input type=\"button\" value=\"Cancel\" class=\"button-secondary cancel-button\" rel=\"edit-wrap-<?php echo $link->get_id(); ?>\" />\n </p>\n </form>\n <form action=\"#widget\" method=\"post\" class=\"del-link-form\">\n <input type=\"hidden\" name=\"delete_nav_widget_link[nonce]\" value=\"<?php echo wp_create_nonce( 'delete-link-' . $link->get_id() ); ?>\" />\n <input type=\"hidden\" name=\"delete_nav_widget_link[id]\" value=\"<?php echo $link->get_id(); ?>\" />\n <input type=\"submit\" class=\"delete-btn button-secondary\" value=\"Delete\" />\n </form>\n </div>\n <?php if( $link->has_children() ) : ?>\n <ul class=\"children\">\n <?php\n // recursion\n foreach( $link->get_children() as $child ){\n $this->build_link_admin_li( $child, $link );\n }\n ?>\n </ul>\n <?php endif; ?>\n </li>\n <?php\n }", "private function createLink($pageNum,$startRecord)\n\t{\n\t\t# want to display page 1 instead of page 0\n\t\t$pageNum=$pageNum+1;\n\n if($this->activePage==$pageNum)\n {\n $linkText = '<li class=\"active\">';\n }\n else\n {\n $linkText = '<li>';\n }\n\t\t$linkText.='<a href=\"';\n\t\t$linkText.=$this->url;\n\t\t$linkText.='?searchParam='.$this->searchParam;\n\t\t$linkText.='&amp;selectCounty='.$this->selectCounty;\n\t\t$linkText.='&amp;startRecord='.$startRecord;\n\t\t$linkText.='&amp;recordsPerPage='.$this->recordsPerPage;\n $linkText.='&amp;pageNum='.$pageNum.'\">';\n\t\t$linkText.=$pageNum;\n\t\t$linkText.='<span class=\"sr-only\">'.$pageNum.'</span>';\n\t\t$linkText.='</a></li> ';\n\n\t\treturn $linkText;\n\t}", "function the_project_link($project) {\n $link = '';\n \n if ($project['project_url']) {\n $link = '<a class=\"project-link\" href=\"'. $project['project_url'].'\" target=\"_blank\">#</a>';\n }\n \n echo $link;\n}", "public function buildLink($pageIndex, $label, $options = array())\r\n\t{\r\n\t\t$url = $options['path'];\r\n\t\t$str = str_replace('%d', $pageIndex, $options['itemLink']);\r\n\t\t\r\n\t\t/**\r\n\t\t * 10 is length of \"javascript\" (without \")\r\n\t\t */\r\n\t\tif (0 == strncasecmp($options['itemLink'], 'javascript', 10)) {\r\n\t\t\t$url = $str;\r\n\t\t} else {\r\n\t\t\t$url = rtrim($url, '/') . '/' . $str;\r\n\t\t}\r\n\t\treturn sprintf('<a href=\"%s\">%s</a>', $url, $label);\r\n\t}", "public static function link_to(){\n echo call_user_func_array('Laika::link_to', func_get_args() );\n }", "static public function link($url)\n {\n return Misc::UrlPrefix().$url;\n }", "function _formatLink($link) {\n //make sure the url is XHTML compliant (skip mailto)\n if(substr($link['url'], 0, 7) != 'mailto:') {\n $link['url'] = str_replace('&', '&amp;', $link['url']);\n $link['url'] = str_replace('&amp;amp;', '&amp;', $link['url']);\n }\n //remove double encodings in titles\n $link['title'] = str_replace('&amp;amp;', '&amp;', $link['title']);\n\n // be sure there are no bad chars in url or title\n // (we can't do this for name because it can contain an img tag)\n $link['url'] = strtr($link['url'], array('>' => '%3E', '<' => '%3C', '\"' => '%22'));\n $link['title'] = strtr($link['title'], array('>' => '&gt;', '<' => '&lt;', '\"' => '&quot;'));\n\n $ret = '';\n $ret .= $link['pre'];\n $ret .= '<a href=\"'.$link['url'].'\"';\n if(!empty($link['class'])) $ret .= ' class=\"'.$link['class'].'\"';\n if(!empty($link['target'])) $ret .= ' target=\"'.$link['target'].'\"';\n if(!empty($link['title'])) $ret .= ' title=\"'.$link['title'].'\"';\n if(!empty($link['style'])) $ret .= ' style=\"'.$link['style'].'\"';\n if(!empty($link['rel'])) $ret .= ' rel=\"'.trim($link['rel']).'\"';\n if(!empty($link['more'])) $ret .= ' '.$link['more'];\n $ret .= '>';\n $ret .= $link['name'];\n $ret .= '</a>';\n $ret .= $link['suf'];\n return $ret;\n }", "function printLink($params)\n{\n extract($params);\n $strResult = \"<a href=\\\"javascript:openWindowDialog('templates/training_request_print.html?dataID=\" . $record['id'] . \"');\\\">\" . getWords(\n \"print\"\n ) . \"</a>\";\n return $strResult;\n}", "function linktag($destination, $content, $class='', $style='', $id='', $extra='', $title_alt='')\n\t{\n\t\t$content = ($this->entitize_content) ? htmlentities('' . $content) : $content;\n\t\t$extra .= ' href=\"' . $destination . '\"';\n\t\t$extra .= ($title_alt == '' ? '' : ' alt=\"' . $title_alt . '\" title=\"' . $title_alt . '\"');\n\t\treturn $this->tag('a', $content, $class, $style, $id, $extra);\n\t}", "private function generateLink( DOMNode $root, ezcFeedLinkElement $dataNode )\n {\n $elementTag = $this->xml->createElement( 'link' );\n $root->appendChild( $elementTag );\n\n $elements = array( 'href', 'rel', 'type', 'hreflang', 'title', 'length' );\n if ( !isset( $dataNode->href ) )\n {\n $parentNode = ( $root->nodeName === 'entry' ) ? '/feed' : '';\n $parentNode = ( $root->nodeName === 'source' ) ? '/feed/entry' : $parentNode;\n\n throw new ezcFeedRequiredMetaDataMissingException( \"{$parentNode}/{$root->nodeName}/link/@href\" );\n }\n\n foreach ( $elements as $attribute )\n {\n if ( isset( $dataNode->$attribute ) )\n {\n $this->addAttribute( $elementTag, $attribute, $dataNode->$attribute );\n }\n }\n }", "function link_to($url, $title = null, $attributes = [], $secure = null, $escape = true)\n {\n return app('html')->link($url, $title, $attributes, $secure, $escape);\n }", "public function link(){\n\t\tif( $this->link ) {\n\t\t\treturn $this->link;\n\t\t}//end if\n\n\t\t$this->link = @file_get_contents( $this->base_dir.'/'.$this->dir . $this->filename . '.link');\n\t\treturn $this->link;\n\t}", "function caEditorLink($po_request, $ps_content, $ps_classname, $ps_table, $pn_id, $pa_additional_parameters=null, $pa_attributes=null, $pa_options=null) {\n\t\tif (!($vs_url = caEditorUrl($po_request, $ps_table, $pn_id, false, $pa_additional_parameters, $pa_options))) {\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\t$vs_tag = \"<a href='\".$vs_url.\"'\";\n\t\t\n\t\tif ($ps_classname) { $vs_tag .= \" class='$ps_classname'\"; }\n\t\tif (is_array($pa_attributes)) {\n\t\t\tforeach($pa_attributes as $vs_attribute => $vs_value) {\n\t\t\t\t$vs_tag .= \" $vs_attribute='\".htmlspecialchars($vs_value, ENT_QUOTES, 'UTF-8').\"'\";\n\t\t\t}\n\t\t}\n\t\t\n\t\t$vs_tag .= '>'.$ps_content.'</a>';\n\t\t\n\t\treturn $vs_tag;\n\t}", "public function get_link()\n\t{\n\t\treturn $this->link;\n\t}", "Function make_link($str_keyword, \r\n $str_prodbrand, \r\n $str_prodcategory, \r\n $resultsearch, \r\n $str_fieldname, \r\n $str_orderby)\r\n{\r\n $str_link = \"<a href=\\\"\".$_SERVER['PHP_SELF'].\"?keyword=\".$str_keyword.\"&prodbrand=\".$str_prodbrand.\"&prodcategory=\".$str_prodcategory.\"&sortfield=\".$str_fieldname.\"&orderby=\".$str_orderby.\"\\\" ALT=\\\"Sorteren op: \".$str_fieldname.\"\\\">\";\r\n return $str_link;\r\n}", "public function getLink(): string\n {\n return 'Class-' . $this->getSlug() . '.html';\n }", "public function links()\n\t{\n\t\techo view('sketchpad::help/output/links');\n\t}", "public function getLink()\n {\n return $this->link;\n }", "public function getLink()\n {\n return $this->link;\n }", "public function getLink()\n {\n return $this->link;\n }", "public function getLink()\n {\n return $this->link;\n }", "public function getLink()\n {\n return $this->link;\n }", "public function getLink()\n {\n return $this->link;\n }", "public function getLink()\n {\n return $this->link;\n }", "public function getLink()\n {\n return $this->link;\n }", "public function getLink()\n {\n return $this->link;\n }", "public function getLink()\n {\n return $this->link;\n }", "public function getLink()\n {\n return $this->link;\n }" ]
[ "0.66203696", "0.64615875", "0.6433784", "0.63271546", "0.6199171", "0.617168", "0.60845643", "0.6030973", "0.60023236", "0.6001398", "0.5957228", "0.59460187", "0.5943618", "0.59427655", "0.59338516", "0.5905559", "0.5894856", "0.5887951", "0.5866429", "0.5866429", "0.5860656", "0.5860548", "0.5855162", "0.5854349", "0.58484936", "0.5848027", "0.5847892", "0.58287185", "0.5823539", "0.580771", "0.5800714", "0.5800714", "0.5798774", "0.5789419", "0.57867247", "0.5770406", "0.5769758", "0.5730902", "0.5722796", "0.57200634", "0.5714268", "0.57128507", "0.56987536", "0.5691045", "0.5686665", "0.5686583", "0.56656253", "0.56633687", "0.56613", "0.5644733", "0.56408346", "0.56327754", "0.56318563", "0.56299317", "0.5629021", "0.5613022", "0.5613022", "0.5613022", "0.5613022", "0.56122863", "0.56095546", "0.56087875", "0.55929947", "0.5590035", "0.5589085", "0.55799854", "0.55741245", "0.5567151", "0.55544645", "0.554328", "0.5526849", "0.55192035", "0.55094254", "0.55079776", "0.55078644", "0.5504663", "0.55040854", "0.55008316", "0.5490066", "0.5485312", "0.54788953", "0.5477375", "0.5473031", "0.5472017", "0.5471078", "0.5457265", "0.5456962", "0.5455757", "0.545541", "0.54552", "0.54552", "0.54552", "0.54552", "0.54552", "0.54552", "0.54552", "0.54552", "0.54552", "0.54552", "0.54552" ]
0.66046923
1
Wrapper function for linking to pages.
function link_to($page, $echo = true){ if(is_string($page) && intval($page) == 0){ $id = get_ID_by_slug($page); if(!$id){ $link = ((strrpos($page, "http://") === false) && (strrpos($page, "https://") === false)) ? get_bloginfo("url")."/".$page : $page; }else{ $link = get_permalink($id); } }else{ if(get_permalink($page)) { $link = get_permalink($page); } else if(get_category_link($page)) { $link = get_category_link($page); } } if($echo) echo $link; else return $link; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function _wp_link_page($i)\n {\n }", "function page_path_to_page_link($page)\n{\n require_code('urls2');\n return _page_path_to_page_link($page);\n}", "function link_pages($before = '<br />', $after = '<br />', $next_or_number = 'number', $nextpagelink = 'next page', $previouspagelink = 'previous page', $pagelink = '%', $more_file = '')\n {\n }", "function _get_page_link($post = \\false, $leavename = \\false, $sample = \\false)\n {\n }", "function get_page_link($post = \\false, $leavename = \\false, $sample = \\false)\n {\n }", "function cosmetics_link_page() {\n\n wp_link_pages( array(\n 'before' => '<div class=\"page-links\">' . __( 'Pages:', 'cosmetics' ),\n 'after' => '</div>',\n 'link_before' => '<span class=\"page-number\">',\n 'link_after' => '</span>',\n ) );\n\n}", "function url_to_page_link($url, $abs_only = false, $perfect_only = true)\n{\n require_code('urls2');\n return _url_to_page_link($url, $abs_only, $perfect_only);\n}", "function quasar_get_link_pages(){\n\tglobal $post;\n\tif(!$post) return;\n\t\n\twp_link_pages( \n\t\tarray( \n\t\t\t'before'\t\t\t=>\t'<div class=\"quasar-pagination quasar-link_pages\">', \n\t\t\t'after'\t\t\t\t=>\t'</div><div class=\"clear\"></div>', \n\t\t\t'link_before'\t\t=>\t'<span class=\"page-numbers\">', \n\t\t\t'link_after'\t\t=>\t'</span>',\n\t\t\t'previouspagelink'\t=>\t'« '.__('Previous','quasar'),\n\t\t\t'nextpagelink'\t\t=>\t__('Next','quasar').' »',\n\t\t) \n\t);\n}", "function studiare_wp_link_pages() {\n\t$defaults = array(\n\t\t'before' => '<div class=\"page-numbers studiare_wp_link_pages\">',\n\t\t'after' => '</div>',\n\t\t'link_before' => '<div class=\"page-number\">',\n\t\t'link_after' => '</div>',\n\t\t'next_or_number' => 'number',\n\t\t'separator' => ' ',\n\t\t'nextpagelink' => esc_html__('Next page', 'studiare'),\n\t\t'previouspagelink' => esc_html__('Previous page', 'studiare'),\n\t\t'pagelink' => '%',\n\t\t'echo' => 1\n\t);\n\n\twp_link_pages($defaults);\n}", "function mxpress_link_pages() {\r\n global $mx_state, $wp_query, $more, $post;\r\n $defaults = array(\r\n 'before' => '<p>' . __('Pages:'), 'after' => '</p>',\r\n 'link_before' => '', 'link_after' => '',\r\n 'next_or_number' => 'number', 'nextpagelink' => __('Next page'),\r\n 'previouspagelink' => __('Previous page'), 'pagelink' => '%',\r\n 'echo' => 1\r\n );\r\n\r\n $r = wp_parse_args($args, $defaults);\r\n $r = apply_filters('wp_link_pages_args', $r);\r\n extract($r, EXTR_SKIP);\r\n//var_dump($wp_query);\r\n $page = ($wp_query->query_vars['page']) ? $wp_query->query_vars['page'] : 1;\r\n $numpages = $mx_state['num_pages'];\r\n\r\n global $post;\r\n $post_id = $post->ID;\r\n $content_saved = get_post_meta($post_id, '_mxpress_content', true);\r\n if ($content_saved != '') {\r\n $content_ar = unserialize($content_saved);\r\n $numpages = count($content_ar);\r\n $multipage = true;\r\n }\r\n\r\n\t$output = '';\r\n\t\r\n\tif ($numpages > 1)\r\n\t{\t\t\r\n\t\tif ($multipage) {\r\n\t\t\tif ('number' == $next_or_number) {\r\n\t\t\t\t$output .= $before;\r\n\t\t\t\tfor ($i = 1; $i < ($numpages + 1); $i = $i + 1) {\r\n\t\t\t\t\t$j = str_replace('%', $i, $pagelink);\r\n\t\t\t\t\t$output .= ' ';\r\n\t\t\t\t\tif (($i != $page) || ((!$more) && ($page == 1))) {\r\n\t\t\t\t\t\t$output .= _wp_link_page($i);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t$output .= $link_before . $j . $link_after;\r\n\t\t\t\t\tif (($i != $page) || ((!$more) && ($page == 1)))\r\n\t\t\t\t\t\t$output .= '</a>';\r\n\t\t\t\t}\r\n\t\t\t\t$output .= $after;\r\n\t\t\t} else {\r\n\t\t\t\tif ($more) {\r\n\t\t\t\t\t$output .= $before;\r\n\t\t\t\t\t$i = $page - 1;\r\n\t\t\t\t\tif ($i && $more) {\r\n\t\t\t\t\t\t$output .= _wp_link_page($i);\r\n\t\t\t\t\t\t$output .= $link_before . $previouspagelink . $link_after . '</a>';\r\n\t\t\t\t\t}\r\n\t\t\t\t\t$i = $page + 1;\r\n\t\t\t\t\tif ($i <= $numpages && $more) {\r\n\t\t\t\t\t\t$output .= _wp_link_page($i);\r\n\t\t\t\t\t\t$output .= $link_before . $nextpagelink . $link_after . '</a>';\r\n\t\t\t\t\t}\r\n\t\t\t\t\t$output .= $after;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tif ($echo)\r\n\t\t\techo $output;\r\n\t}\r\n\r\n return $output;\r\n}", "function add_links_page($page_title, $menu_title, $capability, $menu_slug, $callback = '', $position = \\null)\n {\n }", "protected function addLinks()\n {\n }", "function truethemes_link_pages($args = '') {\n\n$defaults = array(\n 'before' => '<div class=\"karma-pages\">',\n 'after' => '</div>',\n 'link_before' => '<span class=\"page\">',\n 'link_after' => '</span>',\n 'next_or_number' => 'number',\n\t'pagelink' => '%'\n);\n\n\t$r = wp_parse_args( $args, $defaults );\n\t$r = apply_filters( 'wp_link_pages_args', $r );\n\textract( $r, EXTR_SKIP );\n\n\tglobal $page, $numpages, $multipage, $more, $pagenow;\n\t \n\t$output = '';\n\tif ( $multipage ) {\n\t\tif ( 'number' == $next_or_number ) {\n\t\t $output .= $before;\n\t\t\t$output .= \"<span class='pages'>Page \".$page.\" of \".$numpages.\"</span>\";\n\t\t\tfor ( $i = 1; $i < ($numpages+1); $i = $i + 1 ) {\n\t\t\t\t$j = str_replace('%',$i,$pagelink);\n\t\t\t\t$output .= ' ';\n\t\t\t\tif ( ($i != $page) || ((!$more) && ($page==1)) ) {\n\t\t\t\t\t$output .= _truethemes_link_page($i);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//current page <span> class\n\t\t\t\tif($i == $page){\n\t\t\t\t$link_before = '<span class=\"current\">';\n\t\t\t\t}else{\n\t\t\t\t$link_before = '';\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//current page <span> class\n\t\t\t\tif($i == $page){\n\t\t\t\t$link_after = '</span>';\n\t\t\t\t}else{\n\t\t\t\t$link_after = '';\n\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t$output .= $link_before . $j . $link_after;\n\t\t\t\tif ( ($i != $page) || ((!$more) && ($page==1)) )\n\t\t\t\t\t$output .= '</a>';\n\t\t\t}\n\t\t\t$output .= $after;\n\t\t} \n\n\t}\n\n\t\techo $output;\n}", "function findPageUrls();", "static function page_link($startpage, $config, $goto)\n {\n global $bodyreader;\n $items = $bodyreader->parse_advance($startpage, $config, array($goto));\n \n if (empty($items[0][$goto])) return \"\";\n else return static::match_url($startpage, $items[0][$goto]);\n }", "function permalink_link()\n {\n }", "function _truethemes_link_page( $i ) {\n\tglobal $post, $wp_rewrite;\n\n\tif ( 1 == $i ) {\n\t\t$url = get_permalink();\n\t} else {\n\t\tif ( '' == get_option('permalink_structure') || in_array($post->post_status, array('draft', 'pending')) )\n\t\t\t$url = add_query_arg( 'page', $i, get_permalink() );\n\t\telseif ( 'page' == get_option('show_on_front') && get_option('page_on_front') == $post->ID )\n\t\t\t$url = trailingslashit(get_permalink()) . user_trailingslashit(\"$wp_rewrite->pagination_base/\" . $i, 'single_paged');\n\t\telse\n\t\t\t$url = trailingslashit(get_permalink()) . user_trailingslashit($i, 'single_paged');\n\t}\n \n //added extra style class \"wp_link_pages\" in case needed for styling.\n\treturn '<a class=\"page wp_link_pages\" href=\"' . esc_url( $url ) . '\">';\n}", "private static function links()\n {\n $files = ['Link'];\n $folder = static::$root.'Http/Links'.'/';\n\n self::call($files, $folder);\n\n $files = ['LinkKeyNotFoundException'];\n $folder = static::$root.'Http/Links/Exceptions'.'/';\n\n self::call($files, $folder);\n }", "function render_link($page, $text, $menu = null) {\n global $PATH;\n\n if ( file_exists( \"pages/$page.php\" ) && $PATH[0] === $page) { // if the current page is this link\n $ele = \"<span>$text</span>\";\n } else {\n if( !isset($menu) ) {\n $menu = $_GET['menu']; //copy the menu parameter if not specified\n }\n $query = array('menu' => $menu);\n $query_string = http_build_query($query);\n $ele = \"<a href='/{$page}?{$query_string}'>$text</a>\";\n }\n echo \"<li>$ele</li>\";\n}", "function build_link($text, $page){\n\t$format = '<a href=\"%2$s\">%1$s</a>';\n\n\tprintf($format, $text, link_to($page, false));\n}", "function specialPagesLink() {\n\t\treturn $this->footerLink( 'nimbus-specialpages', 'nimbus-specialpages-url' );\n\t}", "function pamparam_get_page_link_by_slug($page_slug, $pagenum = 0) {\n $page = get_page_by_path($page_slug);\n if ($page && $pagenum) :\n $_SERVER['REQUEST_URI'] .= '/'.$page_slug.'/';\n echo get_pagenum_link($pagenum);\n elseif ($page):\n echo get_permalink( $page->ID );\n else :\n echo \"#\";\n endif;\n}", "function section_pages($atts)\n{\n\textract( shortcode_atts( array(\n\t\t'jumplink' => '',\n\t\t'linkname' => '',\n\t), $atts ) );\n\n\tglobal $post;\n\t$ID = $post->ID;\n\t$thispage = '<li><a href=\"#'.$jumplink.'\">'.$linkname.'</a></li>';\n\t$pages = wp_list_pages('title_li=&sort_column=menu_order&depth=1&child_of='.$ID.'&echo=0');\n\treturn $thispage.$pages;\n}", "abstract protected function get_redirect_page();", "function adelle_theme_get_link_pages() {\r\n wp_link_pages(\r\n array(\r\n 'before' => '<p class=\"page-pagination\"><span class=\"page-pagination-title\">' . __( 'Pages:', 'adelle-theme' ) . '</span>',\r\n 'after' => '</p>',\r\n 'link_before' => '<span class=\"page-pagination-number\">',\r\n 'link_after' => '</span>',\r\n 'next_or_number' => 'number',\r\n 'nextpagelink' => __( 'Next page', 'adelle-theme' ),\r\n 'previouspagelink' => __( 'Previous page', 'adelle-theme' ),\r\n 'pagelink' => '%',\r\n 'echo' => 1\r\n )\r\n );\r\n}", "public function href();", "function bootstrap_link_pages($args = '') {\r\n\t$defaults = array(\r\n\t\t'before' => '', 'after' => '',\r\n\t\t'link_before' => '', 'link_after' => '',\r\n\t\t'next_or_number' => 'number', 'nextpagelink' => __('Next page'),\r\n\t\t'previouspagelink' => __('Previous page'), 'pagelink' => '%',\r\n\t\t'echo' => 1\r\n\t);\r\n\r\n\t$r = wp_parse_args( $args, $defaults );\r\n\t$r = apply_filters( 'wp_link_pages_args', $r );\r\n\textract( $r, EXTR_SKIP );\r\n\r\n\tglobal $page, $numpages, $multipage, $more, $pagenow;\r\n\r\n\t$output = '';\r\n\tif ( $multipage ) {\r\n\t\tif ( 'number' == $next_or_number ) {\r\n\t\t\t$output .= $before;\r\n\t\t\t$output .= '<div class=\"pagination\"><ul>';\r\n\t\t\tfor ( $i = 1; $i < ($numpages+1); $i = $i + 1 ) {\r\n\t\t\t\t$j = str_replace('%',$i,$pagelink);\r\n\t\t\t\tif ( ($i != $page) || ((!$more) && ($page==1)) ) {\r\n\t\t\t\t\t$output .= '<li>' . _wp_link_page($i);\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t\t$output .= '<li class=\"active\"><span>';\r\n\t\t\t\t$output .= $link_before . $j . $link_after;\r\n\t\t\t\tif ( ($i != $page) || ((!$more) && ($page==1)) )\r\n\t\t\t\t\t$output .= '</a>';\r\n\t\t\t\telse {\r\n\t\t\t\t\t$output .= '</span>';\r\n\t\t\t\t}\r\n\t\t\t\t$output .= '</li>';\r\n\t\t\t}\r\n\t\t\t$output .= '</ul></div>';\r\n\t\t\t$output .= $after;\r\n\t\t} else {\r\n\t\t\tif ( $more ) {\r\n\t\t\t\t$output .= $before;\r\n\t\t\t\t$i = $page - 1;\r\n\t\t\t\tif ( $i && $more ) {\r\n\t\t\t\t\t$output .= _wp_link_page($i);\r\n\t\t\t\t\t$output .= $link_before. $previouspagelink . $link_after . '</a>';\r\n\t\t\t\t}\r\n\t\t\t\t$i = $page + 1;\r\n\t\t\t\tif ( $i <= $numpages && $more ) {\r\n\t\t\t\t\t$output .= _wp_link_page($i);\r\n\t\t\t\t\t$output .= $link_before. $nextpagelink . $link_after . '</a>';\r\n\t\t\t\t}\r\n\t\t\t\t$output .= $after;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\tif ( $echo )\r\n\t\techo $output;\r\n\r\n\treturn $output;\r\n}", "function generate_page_links($user_search, $sort, $cur_page, $num_pages) {\n $page_links = '<p>';\n\n // Generate \"previous page\" link if page is not the first page\n if ($cur_page > 1) {\n // Generate back arrow as an HTML link\n $page_links .= '<a href=\"' . $_SERVER['PHP_SELF']\n . '?usersearch=' . $user_search . '&sort=' . $sort\n . '&page=' . ($cur_page - 1) . '\"><-</a> ';\n } else {\n // Generate back arrow as a non-HTML link\n $page_links .= '<- ';\n }\n\n // Generate page links for each individual page\n for ($index = 1; $index <= $num_pages; $index++) {\n // Generate clickable link if page is not current page\n if ($index == $cur_page) {\n $page_links .= ' ' . $index;\n } else {\n $page_links .= '<a href=\"' . $_SERVER['PHP_SELF']\n . '?usersearch=' . $user_search . '&sort=' . $sort\n . '&page=' . $index . '\"> ' . $index . '</a> ';\n }\n }\n\n // Generate clickable link if current page is not the last page\n if ($cur_page < $num_pages) {\n // Generate back arrow as an HTML link\n $page_links .= '<a href=\"' . $_SERVER['PHP_SELF']\n . '?usersearch=' . $user_search . '&sort=' . $sort\n . '&page=' . ($cur_page + 1) . '\"> -></a> ';\n } else {\n // Generate back arrow as a non-HTML link\n $page_links .= ' ->';\n }\n\n $page_links .= '</p>';\n\n return $page_links;\n }", "function numbered_in_page_links( $args = array () )\r\n{\r\n $defaults = array(\r\n 'before' => '<p>' . __('Pages:', 'framework')\r\n , 'after' => '</p>'\r\n , 'link_before' => ''\r\n , 'link_after' => ''\r\n , 'pagelink' => '%'\r\n , 'echo' => 1\r\n // element for the current page\r\n , 'highlight' => 'span'\r\n );\r\n\r\n $r = wp_parse_args( $args, $defaults );\r\n $r = apply_filters( 'wp_link_pages_args', $r );\r\n extract( $r, EXTR_SKIP );\r\n\r\n global $page, $numpages, $multipage, $more, $pagenow;\r\n\r\n if ( ! $multipage )\r\n {\r\n return;\r\n }\r\n\r\n $output = $before;\r\n\r\n for ( $i = 1; $i < ( $numpages + 1 ); $i++ )\r\n {\r\n $j = str_replace( '%', $i, $pagelink );\r\n $output .= ' ';\r\n\r\n if ( $i != $page || ( ! $more && 1 == $page ) )\r\n {\r\n $output .= _wp_link_page( $i ) . \"{$link_before}{$j}{$link_after}</a>\";\r\n }\r\n else\r\n { // highlight the current page\r\n // not sure if we need $link_before and $link_after\r\n $output .= \"<$highlight>{$link_before}{$j}{$link_after}</$highlight>\";\r\n }\r\n }\r\n\r\n print $output . $after;\r\n}", "abstract protected function getPage() ;", "public function link_to_page($page)\n\t{\n\t\treturn $this->config['base_url'] . $page;\n\t}", "function generate_page_links($user_search, $sort, $cur_page, $num_pages) {\n $page_links = '';\n\n // If this page is not the first page, generate the \"previous\" link\n if ($cur_page > 1) {\n $page_links .= '<a class=\"pagelinks\" href=\"' . $_SERVER['PHP_SELF'] . '?usersearch=' . $user_search . '&sort=' . $sort . '&page=' . ($cur_page - 1) . '\"><-Previous</a> ';\n }\n else {\n $page_links .= '<- ';\n }\n\n // Loop through the pages generating the page number links\n for ($i = 1; $i <= $num_pages; $i++) {\n if ($cur_page == $i) {\n $page_links .= ' ' . $i;\n }\n else {\n $page_links .= ' <a class=\"pagelinks\" href=\"' . $_SERVER['PHP_SELF'] . '?usersearch=' . $user_search . '&sort=' . $sort . '&page=' . $i . '\"> ' . $i . '</a>';\n }\n }\n\n // If this page is not the last page, generate the \"next\" link\n if ($cur_page < $num_pages) {\n $page_links .= ' <a class=\"pagelinks\"href=\"' . $_SERVER['PHP_SELF'] . '?usersearch=' . $user_search . '&sort=' . $sort . '&page=' . ($cur_page + 1) . '\">Next-></a>';\n }\n else {\n $page_links .= ' ->';\n }\n\n return $page_links;\n }", "function pagelinks($base_url, $total_results)\n\t\t{ \n\t\t\tif ($this->mmhclass->info->config['seo_urls'] == '1') {\n\t\t\t\t$base_url .= ((strpos($base_url, \"?\") === false) ? \"\" : \"&amp;\");\n\t\t\t }else{$base_url .= ((strpos($base_url, \"?\") === false) ? \"?\" : \"&amp;\");\n\t\t\t}\n\t\t\t$total_pages = ceil($total_results / $this->mmhclass->info->config['max_results']);\n\t\t\t$current_page = (($this->mmhclass->info->current_page > $total_pages) ? $total_pages : $this->mmhclass->info->current_page); \n\t\t\t\n\t\t\tif ($total_pages < 2) {\n\t\t\t\t$template_html = $this->mmhclass->lang['3384'];\n\t\t\t} else {\n\t\t\t\tif ($this->mmhclass->info->config['seo_urls'] == '1') {\n\t\t\t\t\t$template_html = (($current_page > 1) ? sprintf($this->mmhclass->lang['3484'], sprintf(\"%s%s\", $base_url, ($this->mmhclass->info->current_page - 1))) : NULL);\n\t\t\t\t}else {$template_html = (($current_page > 1) ? sprintf($this->mmhclass->lang['3484'], sprintf(\"%spage=%s\", $base_url, ($this->mmhclass->info->current_page - 1))) : NULL);}\n\t\t\t\tfor ($i = 1; $i <= $total_pages; $i++) {\n\t\t\t\t\tif ($i == $current_page) {\n\t\t\t\t\t\t$template_html .= sprintf(\"<strong>%s</strong>\", $this->mmhclass->funcs->format_number($i));\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif ($i < ($current_page - 5)) { continue; }\n\t\t\t\t\t\tif ($i > ($current_page + 5)) { break; }\n\t\t\t\t\t\tif ($this->mmhclass->info->config['seo_urls'] == '1') {\n\t\t\t\t\t\t\t$template_html .= sprintf(\"<a href=\\\"%s%s\\\">%s</a>\", $base_url, $i, $this->mmhclass->funcs->format_number($i));\n\t\t\t\t\t\t}else{$template_html .= sprintf(\"<a href=\\\"%spage=%s\\\">%s</a>\", $base_url, $i, $this->mmhclass->funcs->format_number($i));}\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif ($this->mmhclass->info->config['seo_urls'] == '1') {\n\t\t\t\t\t$template_html .= (($current_page < $total_pages) ? sprintf($this->mmhclass->lang['5475'], sprintf(\"%s%s\", $base_url, ($this->mmhclass->info->current_page + 1))) : NULL);\n\t\t\t\t}else{\n\t\t\t\t\t$template_html .= (($current_page < $total_pages) ? sprintf($this->mmhclass->lang['5475'], sprintf(\"%spage=%s\", $base_url, ($this->mmhclass->info->current_page + 1))) : NULL);\n\t\t\t\t}\n\t\t\t\t$template_html = sprintf($this->mmhclass->lang['7033'], $current_page, $total_pages, $template_html);\n\t\t\t\t /* Go To Page */\n if(isset($this->mmhclass->input->get_vars['page']) && !is_numeric($this->mmhclass->input->get_vars['page'])){\n // $this->mmhclass->templ->error(\"Page must be a number!<br /><br /><a href=\\\"javascript:void(0);\\\" onclick=\\\"history.go(-1);\\\">Return to Previous Page</a>\", true);\n\t$this->mmhclass->input->get_vars['page'] = 0;\n } else {\n\n $query = $_SERVER[\"QUERY_STRING\"];\n\n $string = ((empty($query)) ? NULL : \"?\" . $query);\n\n $currentFile = $_SERVER[\"SCRIPT_NAME\"];\n $parts = Explode('/', $currentFile);\n $currentFile = $parts[count($parts) - 1];\n $action = $currentFile . $string;\n\n $get_val = $this->mmhclass->input->get_vars['act'];\n $gal_val = (int)$this->mmhclass->input->get_vars['gal'];\n $cat_val = (int)$this->mmhclass->input->get_vars['cat'];\n $get_var = ((empty($get_val)) ? NULL : \"<input type=\\\"hidden\\\" name=\\\"act\\\" value=\\\"{$get_val}\\\">\");\n $gal_var = ((empty($gal_val)) ? NULL : \"<input type=\\\"hidden\\\" name=\\\"gal\\\" value=\\\"{$gal_val}\\\">\");\n $cat_var = ((empty($cat_val)) ? NULL : \"<input type=\\\"hidden\\\" name=\\\"cat\\\" value=\\\"{$cat_val}\\\">\");\n $hidn_vars = $get_var . $gal_var . $cat_var;\n\tif ($this->mmhclass->info->config['seo_urls'] == '1') {\n\t\t// $template_html .= \"<form action=\\\"{$base_url}\\\" method=\\\"get\\\" id=\\\"form\\\">{$hidn_vars}&nbsp;|&nbsp;Go to page:&nbsp;<input type=\\\"text\\\" name=\\\"/\\\" value=\\\"\\\" size=\\\"3\\\">&nbsp;<input class=\\\"button1\\\" type=\\\"submit\\\" value=\\\"Go\\\" /></form>\";\n\t}else {\n $template_html .= \"<form action=\\\"{$action}\\\" method=\\\"get\\\" id=\\\"form\\\">{$hidn_vars}&nbsp;|&nbsp;Go to page:&nbsp;<input type=\\\"text\\\" name=\\\"page\\\" value=\\\"\\\" size=\\\"3\\\">&nbsp;<input class=\\\"button1\\\" type=\\\"submit\\\" value=\\\"Go\\\" /></form>\";\n\t}\n }\n /* /END Go To Page */\n\t\t\t}\n\t\t\t\n\t\t\treturn sprintf($this->mmhclass->lang['5834'], $template_html);\n\t\t}", "function makeLinks($nav1)\r\n{\r\n $myReturn = '';\r\n foreach($nav1 as $url => $text){\r\n \r\n if($url == THIS_PAGE){\r\n $myReturn .= \"<li><a class=\\\"selected\\\" href=\\\"$url\\\">$text</a></li>\";\r\n }else{\r\n $myReturn .= \"<li><a href=\\\"$url\\\">$text</a></li>\";\r\n }\r\n }\r\n \r\n return $myReturn;\r\n\r\n \r\n}", "protected function getLinkHandlers() {}", "protected function getLinkHandlers() {}", "function show_page_links($base_url, $num_items, $per_page, $page)\n{\n //$base_url contains the address of the page and the order it is called with\n //e.g., 'asc' or 'desc' - the page handles this so we have to worry about it.\n\n $total_pages = ceil($num_items/$per_page);\n\n if ($total_pages == 1)\n {\n return '';\n }\n\n //initialize our $page_string variable wich will hold the links\n $page_string = '<p><span class=\"page_numbers\">';\n\n //SHOW UP TO 4 LINKS ON EITHER SIDE OF THE CURRENT PAGE\n\n //get the number of page links are available after the current page\n $num_succeeding_links = $total_pages - $page;\n\n //get the number of preceding links available before the current page\n $num_preceding_links = $page -1;\n\n //calculate our start and end values\n $start = $page - 4;\n if ( $start < 1)\n {\n $start = 1;\n }\n //if we have less than 10 total_page, use the number we have ($total_pages)\n $end = $total_pages;\n //but if end is more than 9 higher than $start, make $end 9 higher than $start\n //we only want to show 10 records per page (e.g., 1..10)\n if ( ($end - $start) > 9 )\n {\n $end= $start + 9;\n }\n\n //if the total number of succeeding links exceeds 4 show 4 and a >> at the end\n //the >> at the end is just the 5th succeeding link\n //do the same for preceding links if they are more than 4\n if ($total_pages > 10 && $page > 1) //don't show first page link except when we're not the first page\n {\n //create a << which points to the first page\n $page_string .= '<a title=\"first page\" href=\"'.$base_url.'&page=1\">&lt;&lt;</a>&nbsp;&nbsp;';\n //create a < which points to the current page -1 (shifts us left one)\n $val = $page-1;\n $page_string .= '<a title=\"previous page\" href=\"'.$base_url.'&page='.$val.'\">&lt;</a>&nbsp;&nbsp;';\n }\n for ($i=$start; $i<=$end; $i++)\n {\n if ($i == $page)\n {\n $page_string .= \" <b>[$i]</b> \";\n }\n else\n {\n $page_string .= ' <a title=\"page ' . $i . '\" href=\"'.$base_url.'&page='.$i.'\">'.$i.'</a> ';\n }\n }\n if ($total_pages > 10 && $page < $total_pages) //don't show last page link except when we're not on the last page\n {\n //create a > which points to the current page +1 (shifts us right one)\n $val = $page + 1;\n $page_string .= '&nbsp;&nbsp;<a title=\"next page\" href=\"'.$base_url.'&page='.$val.'\">&gt</a>';\n\n //create a >> which point to the last page\n $page_string .= '&nbsp;&nbsp;<a title=\"last page\" href=\"'.$base_url.'&page='.$total_pages.'\">&gt;&gt</a> ';\n }\n\n $page_string .= '</span></p>';\n\n return $page_string;\n\n}", "function create_links()\n\t{\n\t\t// If our item count or per-page total is zero there is no need to continue.\n\t\tif ($this->total_rows == 0 OR $this->per_page == 0)\n\t\t{\n\t\t\treturn '';\n\t\t}\n\n\t\t// Calculate the total number of pages\n\t\t$num_pages = ceil($this->total_rows / $this->per_page);\n\n\t\t// Is there only one page? Hm... nothing more to do here then.\n\t\tif ($num_pages == 1)\n\t\t{\n\t\t\treturn '';\n\t\t}\n\n\t\t// Set the base page index for starting page number\n\t\tif ($this->use_page_numbers)\n\t\t{\n\t\t\t$base_page = 1;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$base_page = 0;\n\t\t}\n\n\t\t// Determine the current page number.\n\t\t$CI =& get_instance();\n\n\t\tif ($CI->config->item('enable_query_strings') === TRUE OR $this->page_query_string === TRUE)\n\t\t{\n\t\t\tif ($CI->input->get($this->query_string_segment) != $base_page)\n\t\t\t{\n\t\t\t\t$this->cur_page = $CI->input->get($this->query_string_segment);\n\n\t\t\t\t// Prep the current page - no funny business!\n\t\t\t\t$this->cur_page = (int) $this->cur_page;\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif ($CI->uri->segment($this->uri_segment) != $base_page)\n\t\t\t{\n\t\t\t\t$this->cur_page = $CI->uri->segment($this->uri_segment);\n\n\t\t\t\t// Prep the current page - no funny business!\n\t\t\t\t$this->cur_page = (int) $this->cur_page;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Set current page to 1 if using page numbers instead of offset\n\t\tif ($this->use_page_numbers AND $this->cur_page == 0)\n\t\t{\n\t\t\t$this->cur_page = $base_page;\n\t\t}\n\n\t\t$this->num_links = (int)$this->num_links;\n\n\t\tif ($this->num_links < 1)\n\t\t{\n\t\t\tshow_error('Your number of links must be a positive number.');\n\t\t}\n\n\t\tif ( ! is_numeric($this->cur_page))\n\t\t{\n\t\t\t$this->cur_page = $base_page;\n\t\t}\n\n\t\t// Is the page number beyond the result range?\n\t\t// If so we show the last page\n\t\tif ($this->use_page_numbers)\n\t\t{\n\t\t\tif ($this->cur_page > $num_pages)\n\t\t\t{\n\t\t\t\t$this->cur_page = $num_pages;\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif ($this->cur_page > $this->total_rows)\n\t\t\t{\n\t\t\t\t$this->cur_page = ($num_pages - 1) * $this->per_page;\n\t\t\t}\n\t\t}\n\n\t\t$uri_page_number = $this->cur_page;\n\t\t\n\t\tif ( ! $this->use_page_numbers)\n\t\t{\n\t\t\t$this->cur_page = floor(($this->cur_page/$this->per_page) + 1);\n\t\t}\n\n\t\t// Calculate the start and end numbers. These determine\n\t\t// which number to start and end the digit links with\n\t\t$start = (($this->cur_page - $this->num_links) > 0) ? $this->cur_page - ($this->num_links - 1) : 1;\n\t\t$end = (($this->cur_page + $this->num_links) < $num_pages) ? $this->cur_page + $this->num_links : $num_pages;\n\n\t\t// Is pagination being used over GET or POST? If get, add a per_page query\n\t\t// string. If post, add a trailing slash to the base URL if needed\n\t\tif ($CI->config->item('enable_query_strings') === TRUE OR $this->page_query_string === TRUE)\n\t\t{\n\t\t\t$this->base_url = rtrim($this->base_url).'&amp;'.$this->query_string_segment.'=';\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->base_url = rtrim($this->base_url, '/') .'/';\n\t\t}\n\n\t\t// And here we go...\n\t\t$output = '';\n\n\t\t// Render the \"First\" link\n\t\tif ($this->first_link !== FALSE AND $this->cur_page > ($this->num_links + 1))\n\t\t{\n\t\t\t$first_url = ($this->first_url == '') ? $this->base_url : $this->first_url;\n\t\t\t$output .= $this->first_tag_open.'<a '.$this->anchor_class.'href=\"'.$first_url.'\">'.$this->first_link.'</a>'.$this->first_tag_close;\n\t\t}\n\n\t\t// Render the \"previous\" link\n\t\tif ($this->prev_link !== FALSE AND $this->cur_page != 1)\n\t\t{\n\t\t\tif ($this->use_page_numbers)\n\t\t\t{\n\t\t\t\t$i = $uri_page_number - 1;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$i = $uri_page_number - $this->per_page;\n\t\t\t}\n\n\t\t\tif ($i == 0 && $this->first_url != '')\n\t\t\t{\n\t\t\t\t$output .= $this->prev_tag_open.'<a '.$this->anchor_class.'href=\"'.$this->first_url.'\">'.$this->prev_link.'</a>'.$this->prev_tag_close;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$i = ($i == 0) ? '' : $this->prefix.$i.$this->suffix;\n\t\t\t\t$output .= $this->prev_tag_open.'<a '.$this->anchor_class.'href=\"'.$this->base_url.$i.'\">'.$this->prev_link.'</a>'.$this->prev_tag_close;\n\t\t\t}\n\n\t\t}\n\n\t\t// Render the pages\n\t\tif ($this->display_pages !== FALSE)\n\t\t{\n\t\t\t// Write the digit links\n\t\t\tfor ($loop = $start -1; $loop <= $end; $loop++)\n\t\t\t{\n\t\t\t\tif ($this->use_page_numbers)\n\t\t\t\t{\n\t\t\t\t\t$i = $loop;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$i = ($loop * $this->per_page) - $this->per_page;\n\t\t\t\t}\n\n\t\t\t\tif ($i >= $base_page)\n\t\t\t\t{\n\t\t\t\t\tif ($this->cur_page == $loop)\n\t\t\t\t\t{\n\t\t\t\t\t\t$output .= $this->cur_tag_open.$loop.$this->cur_tag_close; // Current page\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$n = ($i == $base_page) ? '' : $i;\n\n\t\t\t\t\t\tif ($n == '' && $this->first_url != '')\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$output .= $this->num_tag_open.'<a '.$this->anchor_class.'href=\"'.$this->first_url.'\">'.$loop.'</a>'.$this->num_tag_close;\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$n = ($n == '') ? '' : $this->prefix.$n.$this->suffix;\n\n\t\t\t\t\t\t\t$output .= $this->num_tag_open.'<a '.$this->anchor_class.'href=\"'.$this->base_url.$n.'\">'.$loop.'</a>'.$this->num_tag_close;\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// Render the \"next\" link\n\t\tif ($this->next_link !== FALSE AND $this->cur_page < $num_pages)\n\t\t{\n\t\t\tif ($this->use_page_numbers)\n\t\t\t{\n\t\t\t\t$i = $this->cur_page + 1;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$i = ($this->cur_page * $this->per_page);\n\t\t\t}\n\n\t\t\t$output .= $this->next_tag_open.'<a '.$this->anchor_class.'href=\"'.$this->base_url.$this->prefix.$i.$this->suffix.'\">'.$this->next_link.'</a>'.$this->next_tag_close;\n\t\t}\n\n\t\t// Render the \"Last\" link\n\t\tif ($this->last_link !== FALSE AND ($this->cur_page + $this->num_links) < $num_pages)\n\t\t{\n\t\t\tif ($this->use_page_numbers)\n\t\t\t{\n\t\t\t\t$i = $num_pages;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$i = (($num_pages * $this->per_page) - $this->per_page);\n\t\t\t}\n\t\t\t$output .= $this->last_tag_open.'<a '.$this->anchor_class.'href=\"'.$this->base_url.$this->prefix.$i.$this->suffix.'\">'.$this->last_link.'</a>'.$this->last_tag_close;\n\t\t}\n\n\t\t// Kill double slashes. Note: Sometimes we can end up with a double slash\n\t\t// in the penultimate link so we'll kill all double slashes.\n\t\t$output = preg_replace(\"#([^:])//+#\", \"\\\\1/\", $output);\n\n\t\t// Add the wrapper HTML if exists\n\t\t$output = $this->full_tag_open.$output.$this->full_tag_close;\n\n\t\treturn $output;\n\t}", "public function getPageUrl($reference);", "function create_links()\n\t{\n\t\t$totalItems = $this->total_records;\n\t\t$perPage = $this->size;\n\t\t$currentPage = $this->page;\n\t\t$link = $this->link;\n\t\t$totalPages = floor($totalItems / $perPage);\n\t\t$totalPages += ($totalItems % $perPage != 0) ? 1 : 0;\n\n\t\tif ($totalPages < 1 || $totalPages == 1){\n\t\t\treturn null;\n\t\t}\n\n\t\t$output = null;\t\t\t\t\n\t\t$loopStart = 1; \n\t\t$loopEnd = $totalPages;\n\n\t\tif ($totalPages > 5)\n\t\t{\n\t\t\tif ($currentPage <= 3)\n\t\t\t{\n\t\t\t\t$loopStart = 1;\n\t\t\t\t$loopEnd = 5;\n\t\t\t}\n\t\t\telse if ($currentPage >= $totalPages - 2)\n\t\t\t{\n\t\t\t\t$loopStart = $totalPages - 4;\n\t\t\t\t$loopEnd = $totalPages;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$loopStart = $currentPage - 2;\n\t\t\t\t$loopEnd = $currentPage + 2;\n\t\t\t}\n\t\t}\n\n\t\tif ($loopStart != 1){\n\t\t\t$output .= sprintf('<li class=\"disabledpage\"> <a href=\"' . $link . '\">&#171;</a> </li>', '1');\n\t\t}\n\t\t\n\t\tif ($currentPage > 1){\n\t\t\t$output .= sprintf('<li class=\"nextpage\"> <a href=\"' . $link . '\">'._previous_.'</a> </li>', $currentPage - 1);\n\t\t}\n\t\t\n\t\tfor ($i = $loopStart; $i <= $loopEnd; $i++)\n\t\t{\n\t\t\tif ($i == $currentPage){\n\t\t\t\t$output .= '<li class=\"currentpage\">' . $i . '</li> ';\n\t\t\t} else {\n\t\t\t\t$output .= sprintf('<li><a href=\"' . $link . '\">', $i) . $i . '</a> </li> ';\n\t\t\t}\n\t\t}\n\n\t\tif ($currentPage < $totalPages){\n\t\t\t$output .= sprintf('<li class=\"nextpage\"> <a href=\"' . $link . '\">'._next_.'</a> </li>', $currentPage + 1);\n\t\t}\n\t\t\n\t\tif ($loopEnd != $totalPages){\n\t\t\t$output .= sprintf('<li class=\"nextpage\"> <a href=\"' . $link . '\">&#187;</a> </li>', $totalPages);\n\t\t}\n\n\t\treturn '<div class=\"pagination\"><ul>' . $output . '</ul></div>';\n\t}", "public function provideTestLinks() {\n\t\t$extraPages = [\n\t\t\t'Elephant Page' => 'Content'\n\t\t];\n\n\t\tyield [\n\t\t\t'Link to page without display title, no link text',\n\t\t\t'Test Page',\n\t\t\t'[[Elephant Page]]',\n\t\t\t$extraPages,\n\t\t\t'Elephant Page'\n\t\t];\n\n\t\tyield [\n\t\t\t'Link to page without display title, lower case page title, no link text',\n\t\t\t'Test Page',\n\t\t\t'[[elephant Page]]',\n\t\t\t$extraPages,\n\t\t\t'elephant Page'\n\t\t];\n\n\t\tyield [\n\t\t\t'Link to page without display title, fragment, no link text',\n\t\t\t'Test Page',\n\t\t\t'[[Elephant Page#Fragment]]',\n\t\t\t$extraPages,\n\t\t\t'Elephant Page'\n\t\t];\n\n\t\tyield [\n\t\t\t'Link to page without display title, page name link text',\n\t\t\t'Test Page',\n\t\t\t'[[Elephant Page|Elephant Page]]',\n\t\t\t$extraPages,\n\t\t\t'Elephant Page'\n\t\t];\n\n\t\tyield [\n\t\t\t'Link to page without display title, page name with underscores link text',\n\t\t\t'Test Page',\n\t\t\t'[[Elephant Page|Elephant_Page]]',\n\t\t\t$extraPages,\n\t\t\t'Elephant_Page'\n\t\t];\n\n\t\tyield [\n\t\t\t'Link to page without display title, lowercase page name, page name link text',\n\t\t\t'Test Page',\n\t\t\t'[[elephant Page|Elephant Page]]',\n\t\t\t$extraPages,\n\t\t\t'Elephant Page'\n\t\t];\n\n\t\tyield [\n\t\t\t'Link to page without display title, lowercase page name, lowercase page name link text',\n\t\t\t'Test Page',\n\t\t\t'[[elephant Page|elephant Page]]',\n\t\t\t$extraPages,\n\t\t\t'elephant Page'\n\t\t];\n\n\t\tyield [\n\t\t\t'Link to page without display title, lowercase page name link text',\n\t\t\t'Test Page',\n\t\t\t'[[Elephant Page|elephant Page]]',\n\t\t\t$extraPages,\n\t\t\t'elephant Page'\n\t\t];\n\n\t\tyield [\n\t\t\t'Link to page without display title, other link text',\n\t\t\t'Test Page',\n\t\t\t'[[Elephant Page|Coyote]]',\n\t\t\t$extraPages,\n\t\t\t'Coyote'\n\t\t];\n\n\t\tyield [\n\t\t\t'Link to page without display title, lowercase page name, other link text',\n\t\t\t'Test Page',\n\t\t\t'[[elephant Page|Coyote]]',\n\t\t\t$extraPages,\n\t\t\t'Coyote'\n\t\t];\n\n\t\t// link to redirect to content page without display title\n\t\t$extraPages = [\n\t\t\t'Elephant Page' => 'Content',\n\t\t\t'Redirect To Elephant Page' => '#REDIRECT [[Elephant Page]]'\n\t\t];\n\n\t\tyield [\n\t\t\t'Redirect to page without display title, no link text',\n\t\t\t'Test Page',\n\t\t\t'[[Redirect To Elephant Page]]',\n\t\t\t$extraPages,\n\t\t\t'Elephant Page'\n\t\t];\n\n\t\tyield [\n\t\t\t'Redirect to page without display title, lower case page title, no link text',\n\t\t\t'Test Page',\n\t\t\t'[[redirect To Elephant Page]]',\n\t\t\t$extraPages,\n\t\t\t'redirect To Elephant Page'\n\t\t];\n\n\t\tyield [\n\t\t\t'Redirect to page without display title, fragment, no link text',\n\t\t\t'Test Page',\n\t\t\t'[[Redirect To Elephant Page#Fragment]]',\n\t\t\t$extraPages,\n\t\t\t'Elephant Page'\n\t\t];\n\n\t\tyield [\n\t\t\t'Redirect to page without display title, page name link text',\n\t\t\t'Test Page',\n\t\t\t'[[Redirect To Elephant Page|Redirect To Elephant Page]]',\n\t\t\t$extraPages,\n\t\t\t'Elephant Page'\n\t\t];\n\n\t\tyield [\n\t\t\t'Redirect to page without display title, page name with underscores link text',\n\t\t\t'Test Page',\n\t\t\t'[[Redirect To Elephant Page|Redirect_To_Elephant_Page]]',\n\t\t\t$extraPages,\n\t\t\t'Elephant Page'\n\t\t];\n\n\t\tyield [\n\t\t\t'Redirect to page without display title, lowercase page name, page name link text',\n\t\t\t'Test Page',\n\t\t\t'[[redirect To Elephant Page|Redirect To Elephant Page]]',\n\t\t\t$extraPages,\n\t\t\t'Elephant Page'\n\t\t];\n\n\t\tyield [\n\t\t\t'Redirect to page without display title, lowercase page name, lowercase page name link text',\n\t\t\t'Test Page',\n\t\t\t'[[redirect To Elephant Page|redirect To Elephant Page]]',\n\t\t\t$extraPages,\n\t\t\t'redirect To Elephant Page'\n\t\t];\n\n\t\tyield [\n\t\t\t'Redirect to page without display title, lowercase page name link text',\n\t\t\t'Test Page',\n\t\t\t'[[Redirect To Elephant Page|redirect To Elephant Page]]',\n\t\t\t$extraPages,\n\t\t\t'redirect To Elephant Page'\n\t\t];\n\n\t\tyield [\n\t\t\t'Redirect to page without display title, other link text',\n\t\t\t'Test Page',\n\t\t\t'[[Redirect To Elephant Page|Coyote]]',\n\t\t\t$extraPages,\n\t\t\t'Coyote'\n\t\t];\n\n\t\tyield [\n\t\t\t'Redirect to page without display title, lowercase page name, other link text',\n\t\t\t'Test Page',\n\t\t\t'[[redirect To Elephant Page|Coyote]]',\n\t\t\t$extraPages,\n\t\t\t'Coyote'\n\t\t];\n\n\t\t// link to user page without display title\n\t\t$extraPages = [\n\t\t\t'User:Elephant Page' => 'Content'\n\t\t];\n\n\t\tyield [\n\t\t\t'Link to user page without display title, no link text',\n\t\t\t'Test Page',\n\t\t\t'[[User:Elephant Page]]',\n\t\t\t$extraPages,\n\t\t\t'User:Elephant Page'\n\t\t];\n\n\t\tyield [\n\t\t\t'Link to user page without display title, lower case page title, no link text',\n\t\t\t'Test Page',\n\t\t\t'[[User:elephant Page]]',\n\t\t\t$extraPages,\n\t\t\t'User:elephant Page'\n\t\t];\n\n\t\tyield [\n\t\t\t'Link to user page without display title, fragment, no link text',\n\t\t\t'Test Page',\n\t\t\t'[[User:Elephant Page#Fragment]]',\n\t\t\t$extraPages,\n\t\t\t'User:Elephant Page'\n\t\t];\n\n\t\tyield [\n\t\t\t'Link to user page without display title, page name link text',\n\t\t\t'Test Page',\n\t\t\t'[[User:Elephant Page|User:Elephant Page]]',\n\t\t\t$extraPages,\n\t\t\t'User:Elephant Page'\n\t\t];\n\n\t\tyield [\n\t\t\t'Link to user page without display title, page name with underscores link text',\n\t\t\t'Test Page',\n\t\t\t'[[User:Elephant Page|User:Elephant_Page]]',\n\t\t\t$extraPages,\n\t\t\t'User:Elephant_Page'\n\t\t];\n\n\t\tyield [\n\t\t\t'Link to user page without display title, lowercase page name, page name link text',\n\t\t\t'Test Page',\n\t\t\t'[[User:elephant Page|User:Elephant Page]]',\n\t\t\t$extraPages,\n\t\t\t'User:Elephant Page'\n\t\t];\n\n\t\tyield [\n\t\t\t'Link to user page without display title, lowercase page name, lowercase page name link text',\n\t\t\t'Test Page',\n\t\t\t'[[User:elephant Page|User:elephant Page]]',\n\t\t\t$extraPages,\n\t\t\t'User:elephant Page'\n\t\t];\n\n\t\tyield [\n\t\t\t'Link to user page without display title, lowercase page name link text',\n\t\t\t'Test Page',\n\t\t\t'[[User:Elephant Page|User:elephant Page]]',\n\t\t\t$extraPages,\n\t\t\t'User:elephant Page'\n\t\t];\n\n\t\tyield [\n\t\t\t'Link to user page without display title, other link text',\n\t\t\t'Test Page',\n\t\t\t'[[User:Elephant Page|Coyote]]',\n\t\t\t$extraPages,\n\t\t\t'Coyote'\n\t\t];\n\n\t\tyield [\n\t\t\t'Link to user page without display title, lowercase page name, other link text',\n\t\t\t'Test Page',\n\t\t\t'[[User:elephant Page|Coyote]]',\n\t\t\t$extraPages,\n\t\t\t'Coyote'\n\t\t];\n\n\t\t// link to content page with display title\n\t\t$extraPages = [\n\t\t\t'Dingo Page' => '{{DISPLAYTITLE:Zebra}}'\n\t\t];\n\n\t\tyield [\n\t\t\t'Link to page with display title, no link text',\n\t\t\t'Test Page',\n\t\t\t'[[Dingo Page]]',\n\t\t\t$extraPages,\n\t\t\t'Zebra'\n\t\t];\n\n\t\tyield [\n\t\t\t'Link to page with display title, lower case page title, no link text',\n\t\t\t'Test Page',\n\t\t\t'[[dingo Page]]',\n\t\t\t$extraPages,\n\t\t\t'dingo Page'\n\t\t];\n\n\t\tyield [\n\t\t\t'Link to page with display title, fragment, no link text',\n\t\t\t'Test Page',\n\t\t\t'[[Dingo Page#Fragment]]',\n\t\t\t$extraPages,\n\t\t\t'Zebra'\n\t\t];\n\n\t\tyield [\n\t\t\t'Link to page with display title, page name link text',\n\t\t\t'Test Page',\n\t\t\t'[[Dingo Page|Dingo Page]]',\n\t\t\t$extraPages,\n\t\t\t'Zebra'\n\t\t];\n\n\t\tyield [\n\t\t\t'Link to page with display title, page name with underscores link text',\n\t\t\t'Test Page',\n\t\t\t'[[Dingo Page|Dingo_Page]]',\n\t\t\t$extraPages,\n\t\t\t'Zebra'\n\t\t];\n\n\t\tyield [\n\t\t\t'Link to page with display title, lowercase page name, page name link text',\n\t\t\t'Test Page',\n\t\t\t'[[dingo Page|Dingo Page]]',\n\t\t\t$extraPages,\n\t\t\t'Zebra'\n\t\t];\n\n\t\tyield [\n\t\t\t'Link to page with display title, lowercase page name, lowercase page name link text',\n\t\t\t'Test Page',\n\t\t\t'[[dingo Page|dingo Page]]',\n\t\t\t$extraPages,\n\t\t\t'dingo Page'\n\t\t];\n\n\t\tyield [\n\t\t\t'Link to page with display title, lowercase page name link text',\n\t\t\t'Test Page',\n\t\t\t'[[Dingo Page|dingo Page]]',\n\t\t\t$extraPages,\n\t\t\t'dingo Page'\n\t\t];\n\n\t\tyield [\n\t\t\t'Link to page with display title, other link text',\n\t\t\t'Test Page',\n\t\t\t'[[Dingo Page|Coyote]]',\n\t\t\t$extraPages,\n\t\t\t'Coyote'\n\t\t];\n\n\t\tyield [\n\t\t\t'Link to page with display title, lowercase page name, other link text',\n\t\t\t'Test Page',\n\t\t\t'[[dingo Page|Coyote]]',\n\t\t\t$extraPages,\n\t\t\t'Coyote'\n\t\t];\n\n\t\t// link to redirect to content page with display title\n\t\t$extraPages = [\n\t\t\t'Dingo Page' => '{{DISPLAYTITLE:Zebra}}',\n\t\t\t'Redirect To Dingo Page' => '#REDIRECT [[Dingo Page]]'\n\t\t];\n\n\t\tyield [\n\t\t\t'Redirect to page with display title, no link text',\n\t\t\t'Test Page',\n\t\t\t'[[Redirect To Dingo Page]]',\n\t\t\t$extraPages,\n\t\t\t'Zebra'\n\t\t];\n\n\t\tyield [\n\t\t\t'Redirect to page with display title, lower case page title, no link text',\n\t\t\t'Test Page',\n\t\t\t'[[redirect To Dingo Page]]',\n\t\t\t$extraPages,\n\t\t\t'redirect To Dingo Page'\n\t\t];\n\n\t\tyield [\n\t\t\t'Redirect to page with display title, fragment, no link text',\n\t\t\t'Test Page',\n\t\t\t'[[Redirect To Dingo Page#Fragment]]',\n\t\t\t$extraPages,\n\t\t\t'Zebra'\n\t\t];\n\n\t\tyield [\n\t\t\t'Redirect to page with display title, page name link text',\n\t\t\t'Test Page',\n\t\t\t'[[Redirect To Dingo Page|Redirect To Dingo Page]]',\n\t\t\t$extraPages,\n\t\t\t'Zebra'\n\t\t];\n\n\t\tyield [\n\t\t\t'Redirect to page with display title, page name with underscores link text',\n\t\t\t'Test Page',\n\t\t\t'[[Redirect To Dingo Page|Redirect_To_Dingo_Page]]',\n\t\t\t$extraPages,\n\t\t\t'Zebra'\n\t\t];\n\n\t\tyield [\n\t\t\t'Redirect to page with display title, lowercase page name, page name link text',\n\t\t\t'Test Page',\n\t\t\t'[[redirect To Dingo Page|Redirect To Dingo Page]]',\n\t\t\t$extraPages,\n\t\t\t'Zebra'\n\t\t];\n\n\t\tyield [\n\t\t\t'Redirect to page with display title, lowercase page name, lowercase page name link text',\n\t\t\t'Test Page',\n\t\t\t'[[redirect To Dingo Page|redirect To Dingo Page]]',\n\t\t\t$extraPages,\n\t\t\t'redirect To Dingo Page'\n\t\t];\n\n\t\tyield [\n\t\t\t'Redirect to page with display title, lowercase page name link text',\n\t\t\t'Test Page',\n\t\t\t'[[Redirect To Dingo Page|redirect To Dingo Page]]',\n\t\t\t$extraPages,\n\t\t\t'redirect To Dingo Page'\n\t\t];\n\n\t\tyield [\n\t\t\t'Redirect to page with display title, other link text',\n\t\t\t'Test Page',\n\t\t\t'[[Redirect To Dingo Page|Coyote]]',\n\t\t\t$extraPages,\n\t\t\t'Coyote'\n\t\t];\n\n\t\tyield [\n\t\t\t'Redirect to page with display title, lowercase page name, other link text',\n\t\t\t'Test Page',\n\t\t\t'[[redirect To Dingo Page|Coyote]]',\n\t\t\t$extraPages,\n\t\t\t'Coyote'\n\t\t];\n\n\t\t// link to user page with display title\n\t\t$extraPages = [\n\t\t\t'User:Dingo Page' => '{{DISPLAYTITLE:Zebra}}'\n\t\t];\n\n\t\tyield [\n\t\t\t'Link to user page with display title, no link text',\n\t\t\t'Test Page',\n\t\t\t'[[User:Dingo Page]]',\n\t\t\t$extraPages,\n\t\t\t'Zebra'\n\t\t];\n\n\t\tyield [\n\t\t\t'Link to user page with display title, lower case page title, no link text',\n\t\t\t'Test Page',\n\t\t\t'[[User:dingo Page]]',\n\t\t\t$extraPages,\n\t\t\t'User:dingo Page'\n\t\t];\n\n\t\tyield [\n\t\t\t'Link to user page with display title, fragment, no link text',\n\t\t\t'Test Page',\n\t\t\t'[[User:Dingo Page#Fragment]]',\n\t\t\t$extraPages,\n\t\t\t'Zebra'\n\t\t];\n\n\t\tyield [\n\t\t\t'Link to user page with display title, page name link text',\n\t\t\t'Test Page',\n\t\t\t'[[User:Dingo Page|User:Dingo Page]]',\n\t\t\t$extraPages,\n\t\t\t'Zebra'\n\t\t];\n\n\t\tyield [\n\t\t\t'Link to user page with display title, page name with underscores link text',\n\t\t\t'Test Page',\n\t\t\t'[[User:Dingo Page|User:Dingo_Page]]',\n\t\t\t$extraPages,\n\t\t\t'Zebra'\n\t\t];\n\n\t\tyield [\n\t\t\t'Link to user page with display title, lowercase page name, page name link text',\n\t\t\t'Test Page',\n\t\t\t'[[User:dingo Page|User:Dingo Page]]',\n\t\t\t$extraPages,\n\t\t\t'Zebra'\n\t\t];\n\n\t\tyield [\n\t\t\t'Link to user page with display title, lowercase page name, lowercase page name link text',\n\t\t\t'Test Page',\n\t\t\t'[[User:dingo Page|User:dingo Page]]',\n\t\t\t$extraPages,\n\t\t\t'User:dingo Page'\n\t\t];\n\n\t\tyield [\n\t\t\t'Link to user page with display title, lowercase page name link text',\n\t\t\t'Test Page',\n\t\t\t'[[User:Dingo Page|User:dingo Page]]',\n\t\t\t$extraPages,\n\t\t\t'User:dingo Page'\n\t\t];\n\n\t\tyield [\n\t\t\t'Link to user page with display title, other link text',\n\t\t\t'Test Page',\n\t\t\t'[[User:Dingo Page|Coyote]]',\n\t\t\t$extraPages,\n\t\t\t'Coyote'\n\t\t];\n\n\t\tyield [\n\t\t\t'Link to user page with display title, lowercase page name, other link text',\n\t\t\t'Test Page',\n\t\t\t'[[User:dingo Page|Coyote]]',\n\t\t\t$extraPages,\n\t\t\t'Coyote'\n\t\t];\n\t}", "function page_links($url, $nitems, $items_per_page, $start){\n // How many pages to potentially show before and after this one:\n $preshow = 3;\n $postshow = 3;\n\n $x = \"\";\n \n if ($nitems <= $items_per_page) return \"\";\n $npages = ceil($nitems / $items_per_page);\n $curpage = ceil($start / $items_per_page);\n\n // If this is not the first page, display \"previous\"\n //\n if ($curpage > 0){\n $x .= page_link(\n $url, $curpage-1, $items_per_page,\n tra(\"Previous\").\" &middot; \"\n );\n }\n\n if ($curpage - $preshow > 0) {\n $x .= page_link($url, 0, $items_per_page, \"1\");\n if ($curpage - $preshow > 1) {\n $x .= \" . . . \";\n } else {\n $x .= \" &middot; \";\n }\n }\n // Display a list of pages surrounding this one\n //\n for ($i=$curpage-$preshow; $i<=$curpage+$postshow; $i++){\n $page_str = (string)($i+1);\n if ($i < 0) continue;\n if ($i >= $npages) break;\n\n if ($i == $curpage) {\n $x .= \"<b>$page_str</b>\";\n } else {\n $x .= page_link($url, $i, $items_per_page, $page_str);\n }\n if ($i == $npages-1) break;\n if ($i == $curpage+$postshow) break;\n $x .= \" &middot; \";\n }\n\n if ($curpage + $postshow < $npages-1) {\n $x .= \" . . . \";\n $x .= page_link($url, $npages-1, $items_per_page, $npages);\n }\n // If there is a next page\n //\n if ($curpage < $npages-1){\n $x .= page_link(\n $url, $curpage+1, $items_per_page,\n \" &middot; \".tra(\"Next\")\n );\n }\n $x .= \"\\n\";\n return $x;\n}", "function PDF_add_weblink($pdfdoc, $lowerleftx, $lowerlefty, $upperrightx, $upperrighty, $url)\n{\n}", "function makeLinks($nav1)\n{\n $myReturn = '';\n foreach($nav1 as $url => $text){\n \n if($url == THIS_PAGE){\n $myReturn .= \"<li><a class=\\\"selected\\\" href=\\\"$url\\\">$text</a></li>\";\n }else{\n $myReturn .= \"<li><a href=\\\"$url\\\">$text</a></li>\";\n }\n }\n \n return $myReturn;\n}", "function index_rel_link()\n {\n }", "function get_page_uri($page = 0)\n {\n }", "function news_link() {\n global $wp;\n $current_url = home_url(add_query_arg(array(),$wp->request));\n if (stripos($current_url, 'th') !== false) {\n $page = get_page_by_path('news-events-th');\n } else {\n $page = get_page_by_path('news-events');\n }\n the_permalink($page);\n}", "function pages($translation=null) {\r\n if(strlen($translation)==0){\r\n $translation=\"pages\";\r\n }\r\n return \"<a href=\\\"javascript:void(0)\\\">\".$this->pages.\" \".ucfirst($translation).\"</a>\";\r\n }", "function get_pagenum_link($pagenum = 1, $escape = \\true)\n {\n }", "function set_page_link($newqs = array(), $newpath = null) {\n $get = $_GET;\n unset($get['request_uri']);\n $allqet = array_merge($get, $newqs);\n if (empty($newpath)) {\n $qs = http_build_query($allqet);\n return Router::$page_url . (!empty($qs) ? \"?$qs\" : null);\n }\n $qs = http_build_query($allqet);\n return \"$newpath\" . (!empty($qs) ? \"?$qs\" : null);\n}", "public static function link_to(){\n echo call_user_func_array('Laika::link_to', func_get_args() );\n }", "public function get_page();", "function build_pagelinks($data)\n\t{\n\t\t$data['leave_out'] = isset($data['leave_out']) ? $data['leave_out'] : '';\n\t\t$data['no_dropdown'] = isset($data['no_dropdown']) ? intval( $data['no_dropdown'] ) : 0;\n\t\t$data['USE_ST']\t\t = isset($data['USE_ST'])\t? $data['USE_ST']\t : '';\n\t\t$work = array( 'pages' => 0, 'page_span' => '', 'st_dots' => '', 'end_dots' => '' );\n\t\t\n\t\t$section = !$data['leave_out'] ? 2 : $data['leave_out']; // Number of pages to show per section( either side of current), IE: 1 ... 4 5 [6] 7 8 ... 10\n\t\t\n\t\t$use_st = !$data['USE_ST'] ? 'st' : $data['USE_ST'];\n\t\t\n\t\t//-----------------------------------------\n\t\t// Get the number of pages\n\t\t//-----------------------------------------\n\t\t\n\t\tif ( $data['TOTAL_POSS'] > 0 )\n\t\t{\n\t\t\t$work['pages'] = ceil( $data['TOTAL_POSS'] / $data['PER_PAGE'] );\n\t\t}\n\t\t\n\t\t$work['pages'] = $work['pages'] ? $work['pages'] : 1;\n\t\t\n\t\t//-----------------------------------------\n\t\t// Set up\n\t\t//-----------------------------------------\n\t\t\n\t\t$work['total_page'] = $work['pages'];\n\t\t$work['current_page'] = $data['CUR_ST_VAL'] > 0 ? ($data['CUR_ST_VAL'] / $data['PER_PAGE']) + 1 : 1;\n\t\t\n\t\t//-----------------------------------------\n\t\t// Next / Previous page linkie poos\n\t\t//-----------------------------------------\n\t\t\n\t\t$previous_link = \"\";\n\t\t$next_link = \"\";\n\t\t\n\t\tif ( $work['current_page'] > 1 )\n\t\t{\n\t\t\t$start = $data['CUR_ST_VAL'] - $data['PER_PAGE'];\n\t\t\t$previous_link = $this->compiled_templates['skin_global']->pagination_previous_link(\"{$data['BASE_URL']}&amp;$use_st=$start\");\n\t\t}\n\t\t\n\t\tif ( $work['current_page'] < $work['pages'] )\n\t\t{\n\t\t\t$start = $data['CUR_ST_VAL'] + $data['PER_PAGE'];\n\t\t\t$next_link = $this->compiled_templates['skin_global']->pagination_next_link(\"{$data['BASE_URL']}&amp;$use_st=$start\");\n\t\t}\n\t\t\n\t\t//-----------------------------------------\n\t\t// Loppy loo\n\t\t//-----------------------------------------\n\t\t\n\t\tif ($work['pages'] > 1)\n\t\t{\n\t\t\t$work['first_page'] = $this->compiled_templates['skin_global']->pagination_make_jump($work['pages'], $data['no_dropdown']);\n\t\t\t\n\t\t\tif ( 1 < ($work['current_page'] - $section))\n\t\t\t{\n\t\t\t\t$work['st_dots'] = $this->compiled_templates['skin_global']->pagination_start_dots($data['BASE_URL']);\n\t\t\t}\n\t\t\t\n\t\t\tfor( $i = 0, $j= $work['pages'] - 1; $i <= $j; ++$i )\n\t\t\t{\n\t\t\t\t$RealNo = $i * $data['PER_PAGE'];\n\t\t\t\t$PageNo = $i+1;\n\t\t\t\t\n\t\t\t\tif ($RealNo == $data['CUR_ST_VAL'])\n\t\t\t\t{\n\t\t\t\t\t$work['page_span'] .= $this->compiled_templates['skin_global']->pagination_current_page( ceil( $PageNo ) );\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tif ($PageNo < ($work['current_page'] - $section))\n\t\t\t\t\t{\n\t\t\t\t\t\t// Instead of just looping as many times as necessary doing nothing to get to the next appropriate number, let's just skip there now\n\t\t\t\t\t\t$i = $work['current_page'] - $section - 2;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t// If the next page is out of our section range, add some dotty dots!\n\t\t\t\t\t\n\t\t\t\t\tif ($PageNo > ($work['current_page'] + $section))\n\t\t\t\t\t{\n\t\t\t\t\t\t$work['end_dots'] = $this->compiled_templates['skin_global']->pagination_end_dots(\"{$data['BASE_URL']}&amp;$use_st=\".($work['pages']-1) * $data['PER_PAGE']);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t$work['page_span'] .= $this->compiled_templates['skin_global']->pagination_page_link(\"{$data['BASE_URL']}&amp;$use_st={$RealNo}\", ceil( $PageNo ) );\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t$work['return'] = $this->compiled_templates['skin_global']->pagination_compile($work['first_page'],$previous_link,$work['st_dots'],$work['page_span'],$work['end_dots'],$next_link,$data['TOTAL_POSS'],$data['PER_PAGE'], $data['BASE_URL'], $data['no_dropdown'], $use_st);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$work['return'] = $data['L_SINGLE'];\n\t\t}\n\t\n\t\treturn $work['return'];\n\t}", "function numbered_in_page_links( $args = array () )\n{\n $defaults = array(\n 'before' => '<div class=\"page-links\"><i class=\"icon-menu-3 pageLinksToggle\"></i><ul class=\"subpage-list\">' \n , 'after' => '</ul></div>'\n , 'link_before' => '<li>'\n , 'link_after' => '</li>'\n , 'pagelink' => '%'\n , 'echo' => 1\n // element for the current page\n , 'highlight' => 'b'\n );\n\n $r = wp_parse_args( $args, $defaults );\n $r = apply_filters( 'wp_link_pages_args', $r );\n extract( $r, EXTR_SKIP );\n\n global $page, $numpages, $multipage, $more, $pagenow;\n\n if ( ! $multipage )\n {\n return;\n }\n\n $output = $before;\n\n for ( $i = 1; $i < ( $numpages + 1 ); $i++ )\n {\n $j = str_replace( '%', $i, $pagelink );\n $output .= ' ';\n\n if ( $i != $page || ( ! $more && 1 == $page ) )\n {\n $output .= \"{$link_before}\". _wp_link_page( $i ) . \"{$j}</a>{$link_after}\";\n }\n else\n { // highlight the current page\n // not sure if we need $link_before and $link_after\n $output .= \"{$link_before}<$highlight>{$j}</$highlight>{$link_after}\";\n }\n }\n\n print $output . $after;\n}", "public function getNextPageUrl();", "public function getNextPageUrl();", "public function getPageHandler();", "function page_url($slash = TRUE)\n{\n\t$CI =& get_instance();\n\t$CI->load->library('fs_navigation');\n\t\n\tif($slash == TRUE)\n\t{\n\t\treturn $CI->config->slash_item('base_url').variable($CI->config->unslash_item('url_parts')).$CI->fs_navigation->current('path').'/';\n\t}\n\telse\n\t{\n\t\treturn $CI->config->slash_item('base_url').variable($CI->config->unslash_item('url_parts')).$CI->fs_navigation->current('path');\n\t}\n}", "public function links_load($settings);", "function permalink_anchor($mode = 'id')\n {\n }", "public static function page_link(){\n\n $page = (isset($_GET['page']))?filter_var($_GET['page'],FILTER_SANITIZE_URL):null;\n\n if($page == null)\n return;\n\n return sprintf('<a href=\"%s?page=%s\">&lt;&lt;&nbsp;%s</a>',\n admin_url('admin.php'),\n $page,\n __('back to list',PLUGIN_DOMAIN)\n );\n\n }", "protected function getPage() {}", "protected function getPage() {}", "public function link();", "function referrer_link( $format = '%link', $title = '%title', $sep = '&raquo;', $sepdirection = 'left' ) {\n\techo Smarter_Navigation::referrer_link( $format, $title, $sep, $sepdirection );\n}", "function s2_paging($page, $total_pages, $url, &$link_nav)\n{\n $return = ($hook = s2_hook('fn_paging_start')) ? eval($hook) : null;\n if ($return)\n return $return;\n\n $links = '';\n for ($i = 1; $i <= $total_pages; $i++)\n $links .= ($i == $page ? ' <span class=\"current digit\">' . $i . '</span>' : ' <a class=\"digit\" href=\"' . sprintf($url, $i) . '\">' . $i . '</a>');\n\n $link_nav = array();\n\n if ($page <= 1 || $page > $total_pages)\n $prev_link = '<span class=\"arrow left\">&larr;</span>';\n else {\n $prev_url = sprintf($url, $page - 1);\n $link_nav['prev'] = $prev_url;\n $prev_link = '<a class=\"arrow left\" href=\"' . $prev_url . '\">&larr;</a>';\n }\n\n if ($page == $total_pages)\n $next_link = ' <span class=\"arrow right\">&rarr;</span>';\n else {\n $next_url = sprintf($url, $page + 1);\n $link_nav['next'] = $next_url;\n $next_link = ' <a class=\"arrow right\" href=\"' . $next_url . '\">&rarr;</a>';\n }\n\n return '<p class=\"paging\">' . $prev_link . $links . $next_link . '</p>';\n}", "function next_post_link($format = '%link &raquo;', $link = '%title', $in_same_term = \\false, $excluded_terms = '', $taxonomy = 'category')\n {\n }", "function wp_get_links($args = '')\n {\n }", "public function getPageUrl($number);", "function makeLinks($fooArray)\n{\n $myReturn = '';\n foreach($fooArray as $url => $text)\n {\n \tif(THIS_PAGE==$url) {\n \t\t$myReturn .= '<li class=\"current\"><a href=\"' . $url . '\">' . $text . '</a></li>';\n \t}\n\t\telse {\n\t\t\t$myReturn .= '<li><a href=\"' . $url . '\">' . $text . '</a></li>';\n\t\t}\n \n } \n return $myReturn; \n}", "function GetPageURL( $pageid, $thisarea=\"\", $rooturl=false )\n{\n\t$link = ( $rooturl ) ? \"http://\".SITE_URL.BASEHREF : BASEHREF; \n\t$link .= ( REWRITE_URLS ) ? \"\" : \"?id=\"; \n\t\n\tif ( ! empty($pageid) ) {\n\t\t\n\t\t$page = Pages::FindById( $pageid ); \n\t\tif ( $page->public ) {\n\t\t return $page->get_url( $thisarea, \"\", $rooturl ); \n\t\t} else { return null; }\n\t\t\n\t} else { return null; }\n\t\n}", "function url ($link) {\r\n\treturn $link;\r\n}", "public function getPagesLinks()\r\n\t{\r\n\t\t$app = JFactory::getApplication();\r\n\t\t// Yjsg instance\r\n\t\t$yjsg = Yjsg::getInstance(); \r\n\t\t\r\n\t\t// Build the page navigation list.\r\n\t\t$data = $this->_buildDataObject();\r\n\r\n\t\t$list = array();\r\n\t\t$list['prefix'] = $this->prefix;\r\n\r\n\t\t$itemOverride = false;\r\n\t\t$listOverride = false;\r\n\r\n\t\t$chromePath \t= JPATH_THEMES . '/' . $app->getTemplate() . '/html/pagination.php';\r\n\t\t//yjsg start\r\n\t\tif (!file_exists($chromePath)){\r\n\t\t\tif($yjsg->preplugin()){\r\n\t\t\t\r\n\t\t\t\t$chromePath = YJSGPATH . 'legacy' . YJDS . 'html' . YJDS . 'pagination.php';\r\n\t\t\t\t\r\n\t\t\t}else{\r\n\t\t\t\t\r\n\t\t\t\t$chromePath = YJSGPATH . 'includes' . YJDS . 'html' . YJDS . 'pagination.php';\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\t//yjsg end\r\n\t\tif (file_exists($chromePath))\r\n\t\t{\r\n\t\t\tinclude_once $chromePath;\r\n\t\t\tif (function_exists('pagination_item_active') && function_exists('pagination_item_inactive'))\r\n\t\t\t{\r\n\t\t\t\t$itemOverride = true;\r\n\t\t\t}\r\n\t\t\tif (function_exists('pagination_list_render'))\r\n\t\t\t{\r\n\t\t\t\t$listOverride = true;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// Build the select list\r\n\t\tif ($data->all->base !== null)\r\n\t\t{\r\n\t\t\t$list['all']['active'] = true;\r\n\t\t\t$list['all']['data'] = ($itemOverride) ? pagination_item_active($data->all) : $this->_item_active($data->all);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t$list['all']['active'] = false;\r\n\t\t\t$list['all']['data'] = ($itemOverride) ? pagination_item_inactive($data->all) : $this->_item_inactive($data->all);\r\n\t\t}\r\n\r\n\t\tif ($data->start->base !== null)\r\n\t\t{\r\n\t\t\t$list['start']['active'] = true;\r\n\t\t\t$list['start']['data'] = ($itemOverride) ? pagination_item_active($data->start) : $this->_item_active($data->start);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t$list['start']['active'] = false;\r\n\t\t\t$list['start']['data'] = ($itemOverride) ? pagination_item_inactive($data->start) : $this->_item_inactive($data->start);\r\n\t\t}\r\n\t\tif ($data->previous->base !== null)\r\n\t\t{\r\n\t\t\t$list['previous']['active'] = true;\r\n\t\t\t$list['previous']['data'] = ($itemOverride) ? pagination_item_active($data->previous) : $this->_item_active($data->previous);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t$list['previous']['active'] = false;\r\n\t\t\t$list['previous']['data'] = ($itemOverride) ? pagination_item_inactive($data->previous) : $this->_item_inactive($data->previous);\r\n\t\t}\r\n\r\n\t\t$list['pages'] = array(); //make sure it exists\r\n\t\tforeach ($data->pages as $i => $page)\r\n\t\t{\r\n\t\t\tif ($page->base !== null)\r\n\t\t\t{\r\n\t\t\t\t$list['pages'][$i]['active'] = true;\r\n\t\t\t\t$list['pages'][$i]['data'] = ($itemOverride) ? pagination_item_active($page) : $this->_item_active($page);\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\t$list['pages'][$i]['active'] = false;\r\n\t\t\t\t$list['pages'][$i]['data'] = ($itemOverride) ? pagination_item_inactive($page) : $this->_item_inactive($page);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif ($data->next->base !== null)\r\n\t\t{\r\n\t\t\t$list['next']['active'] = true;\r\n\t\t\t$list['next']['data'] = ($itemOverride) ? pagination_item_active($data->next) : $this->_item_active($data->next);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t$list['next']['active'] = false;\r\n\t\t\t$list['next']['data'] = ($itemOverride) ? pagination_item_inactive($data->next) : $this->_item_inactive($data->next);\r\n\t\t}\r\n\r\n\t\tif ($data->end->base !== null)\r\n\t\t{\r\n\t\t\t$list['end']['active'] = true;\r\n\t\t\t$list['end']['data'] = ($itemOverride) ? pagination_item_active($data->end) : $this->_item_active($data->end);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t$list['end']['active'] = false;\r\n\t\t\t$list['end']['data'] = ($itemOverride) ? pagination_item_inactive($data->end) : $this->_item_inactive($data->end);\r\n\t\t}\r\n\r\n\t\tif ($this->total > $this->limit)\r\n\t\t{\r\n\t\t\treturn ($listOverride) ? pagination_list_render($list) : $this->_list_render($list);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\treturn '';\r\n\t\t}\r\n\t}", "public function getLinkFun() {}", "public function getPages();", "protected function createPageLinks()\n {\n $pageLinks = array();\n\n if ($this->totalPages > 10) {\n $startRange = $this->page - floor($this->range/2);\n $endRange = $this->page + floor($this->range/2);\n\n //Start range\n if ($startRange <= 0) {\n $startRange = 1;\n $endRange += abs($startRange) + 1;\n }\n\n // End range\n if ($endRange > $this->totalPages) {\n $startRange -= $endRange - $this->totalPages;\n $endRange = $this->totalPages;\n }\n\n // Range\n $range = range($startRange, $endRange);\n\n // Add first page\n $this->pageLinks[] = array(\n 'page' => 1,\n 'uri' => $this->createUri(1)\n );\n\n foreach ($range as $page) {\n // Skip for first and last page\n if ($page == 1 or $page == $this->totalPages) {\n continue;\n }\n\n $this->pageLinks[] = array(\n 'page' => $page,\n 'uri' => $this->createUri($page)\n );\n }\n\n // Add last page\n $this->pageLinks[] = array(\n 'page' => $this->totalPages,\n 'uri' => $this->createUri($this->totalPages)\n );\n } else {\n for ($i = 1; $i <= $this->totalPages; $i++) {\n $this->pageLinks[] = array(\n 'page' => $i,\n 'uri' => $this->createUri($i)\n );\n }\n }\n }", "function pagination() {\n echo '<div class=\"pagination\">';\n posts_nav_link(' ', '<< ', ' >>'); \n echo '</div>';\n}", "function callback_pages(array $args)\n {\n }", "function eblex_findhrefs2($page)\r\n{\r\n $using = false;\r\n $href = \"\";\r\n $hrefs[0] = \"\";\r\n $hrefcount = 0;\r\n\r\n for ($i = 0;$i < strlen($page)-1;$i++) {\r\n $a = $page[$i] . $page[$i + 1];\r\n ///\tModification\t30/06/2008\tmVicenik\tFoliovision\r\n //if ($a == \"<a\") {\r\n if ($a == \"<a\" || $a == \"<A\") {\r\n ///\tend of modification\r\n $using = true;\r\n }\r\n\t\tif ($page[$i] == \">\") {\r\n $using = false;\r\n if ($href != \"\") {\r\n $hrefs[$hrefcount] = $href . \">\";\r\n $hrefcount++;\r\n } \r\n $href = \"\";\r\n } \r\n\r\n if ($using == true) {\r\n $href .= $page[$i];\r\n } \r\n } \r\n\r\n return $hrefs;\r\n}", "public function get_links()\n {\n }", "function makeLinks($linkArray)\r\n{\r\n $myReturn = '';\r\n\r\n foreach($linkArray as $url => $text)\r\n {\r\n if($url == THIS_PAGE)\r\n {//selected page - add class reference\r\n\t \t$myReturn .= '<li><a class=\"selected\" href=\"' . $url . '\">' . $text . '</a></li>' . PHP_EOL;\r\n \t}else{\r\n\t \t$myReturn .= '<li><a href=\"' . $url . '\">' . $text . '</a></li>' . PHP_EOL;\r\n \t} \r\n }\r\n \r\n return $myReturn;\r\n}", "function makeLinks($linkArray)\n{\n $myReturn = '';\n\n foreach($linkArray as $url => $text)\n {\n if($url == THIS_PAGE)\n {//selected page - add class reference\n $myReturn .= '<li><a class=\"selected\" href=\"' . $url . '\">' . $text . '</a></li>' . PHP_EOL;\n }else{\n $myReturn .= '<li><a href=\"' . $url . '\">' . $text . '</a></li>' . PHP_EOL;\n } \n }\n \n return $myReturn; \n}", "public function getPage();", "public function getLink();", "public function getLink();", "function wiki_special_associated_pages()\n{\n\tob_start();\n\n\t?>\n\n{wiki:associated_pages}\n\n{if no_results}\n<h3>No Articles Link to {article_title}</h3>\n{/if}\n\n{header}<h3>Articles that link to {article_title}</h3>\n<p>The following pages link to <a href=\"{path:view_orig_article}\">{article_title}</a>:</p>\n<ul>\n{/header}\n\n<li><a href=\"{path:view_article}\">{title}</a></li>\n\n{footer}</ul>{/footer}\n\n{/wiki:associated_pages}\n\n\t<?php\n\t\n\t$buffer = ob_get_contents();\n\tob_end_clean();\n\t\n\treturn $buffer;\n}", "function getPagesLinks()\n\t{\n\t\tglobal $mainframe;\n\n\t\t$lang =& JFactory::getLanguage();\n\n\t\t// Build the page navigation list\n\t\t$data = $this->_buildDataObject();\n\n\t\t$list = array();\n\n\t\t$itemOverride = false;\n\t\t$listOverride = false;\n\n\t\t$chromePath = JPATH_THEMES.DS.$mainframe->getTemplate().DS.'html'.DS.'pagination.php';\n\t\tif (file_exists($chromePath))\n\t\t{\n\t\t\trequire_once ($chromePath);\n\t\t\tif (function_exists('pagination_item_active') && function_exists('pagination_item_inactive')) {\n\t\t\t\t$itemOverride = true;\n\t\t\t}\n\t\t\tif (function_exists('pagination_list_render')) {\n\t\t\t\t$listOverride = true;\n\t\t\t}\n\t\t}\n\n\t\t// Build the select list\n\t\tif ($data->all->base !== null) {\n\t\t\t$list['all']['active'] = true;\n\t\t\t$list['all']['data'] = ($itemOverride) ? pagination_item_active($data->all) : $this->_item_active($data->all);\n\t\t} else {\n\t\t\t$list['all']['active'] = false;\n\t\t\t$list['all']['data'] = ($itemOverride) ? pagination_item_inactive($data->all) : $this->_item_inactive($data->all);\n\t\t}\n\n\t\tif ($data->start->base !== null) {\n\t\t\t$list['start']['active'] = true;\n\t\t\t$list['start']['data'] = ($itemOverride) ? pagination_item_active($data->start) : $this->_item_active($data->start);\n\t\t} else {\n\t\t\t$list['start']['active'] = false;\n\t\t\t$list['start']['data'] = ($itemOverride) ? pagination_item_inactive($data->start) : $this->_item_inactive($data->start);\n\t\t}\n\t\tif ($data->previous->base !== null) {\n\t\t\t$list['previous']['active'] = true;\n\t\t\t$list['previous']['data'] = ($itemOverride) ? pagination_item_active($data->previous) : $this->_item_active($data->previous);\n\t\t} else {\n\t\t\t$list['previous']['active'] = false;\n\t\t\t$list['previous']['data'] = ($itemOverride) ? pagination_item_inactive($data->previous) : $this->_item_inactive($data->previous);\n\t\t}\n\n\t\t$list['pages'] = array(); //make sure it exists\n\t\tforeach ($data->pages as $i => $page)\n\t\t{\n\t\t\tif ($page->base !== null) {\n\t\t\t\t$list['pages'][$i]['active'] = true;\n\t\t\t\t$list['pages'][$i]['data'] = ($itemOverride) ? pagination_item_active($page) : $this->_item_active($page);\n\t\t\t} else {\n\t\t\t\t$list['pages'][$i]['active'] = false;\n\t\t\t\t$list['pages'][$i]['data'] = ($itemOverride) ? pagination_item_inactive($page) : $this->_item_inactive($page);\n\t\t\t}\n\t\t}\n\n\t\tif ($data->next->base !== null) {\n\t\t\t$list['next']['active'] = true;\n\t\t\t$list['next']['data'] = ($itemOverride) ? pagination_item_active($data->next) : $this->_item_active($data->next);\n\t\t} else {\n\t\t\t$list['next']['active'] = false;\n\t\t\t$list['next']['data'] = ($itemOverride) ? pagination_item_inactive($data->next) : $this->_item_inactive($data->next);\n\t\t}\n\t\tif ($data->end->base !== null) {\n\t\t\t$list['end']['active'] = true;\n\t\t\t$list['end']['data'] = ($itemOverride) ? pagination_item_active($data->end) : $this->_item_active($data->end);\n\t\t} else {\n\t\t\t$list['end']['active'] = false;\n\t\t\t$list['end']['data'] = ($itemOverride) ? pagination_item_inactive($data->end) : $this->_item_inactive($data->end);\n\t\t}\n\n\t\tif($this->total > $this->limit){\n\t\t\treturn ($listOverride) ? pagination_list_render($list) : $this->_list_render($list);\n\t\t}\n\t\telse{\n\t\t\treturn '';\n\t\t}\n\t}", "public function getLink() {}", "public function getPages() {}", "function _links_add_base($m)\n {\n }", "function page_url($path, $anchor = '')\n\t{\n\t\t$mark = HAS_REWRITE ? '' : '?';\n\t\t$anchor = $anchor ? '#'.$anchor : $anchor;\n\t\t// prettier without \"index\"\n\t\t$path = str_replace('/index', '', $path);\n\t\tif($path == 'index') $path = '';\n\n\t\treturn ROOT_URL.$mark.$path.$anchor;\n\t}", "function paginationLinks($perpage,$thisPage,$database,$searchThrough,$orderBy,$direction) {\n\t\n\t\t$useUrl = \"{$GLOBALS[\"fullSiteUrl\"]}?page=\";\n\t\t\n\t\t// Total entries per page\n\t\t$pagination = $perpage;\n\t\t\n\t\t// set absolute value of 0\n\t\t$zero = abs(\"0\");\n\n\t\t// Get the current page\n\t\t$page = abs($thisPage);\n\t\tif ($page != \"\") {\n\t\t\t$startat = $page * $pagination;\n\t\t} else {\n\t\t\t$startat = 0;\n\t\t}\n\t\t\n\t\tif ($page == \"0\") {\n\t\t\t$current_page = \"1\";\n\t\t} else {\n\t\t\t$current_page = $page;\n\t\t}\n\n\t\t// Initial count/setup\n\t\t$setupsql = \"select * from `{$database}`{$searchThrough}\";\n\n\t\t$load = mq($setupsql);\n\t\t$count = num($load);\n\t\t$addpages = $count / $pagination;\n\t\t$totalpages = round(floor($addpages));\n\t\t\n\t\t// Display the FIRST button\n\t\tif ($current_page != \"1\") {\n\t\t\t$next_current = $page;\n\t\t\t$nextpage = $next_current + 1;\t\n\t\t\t$first = '<a href=\"'.$useUrl.'1\">&lsaquo; First</a>';\n\t\t}\n\t\t// Display the PREVIOUS button\n\t\tif ($page > $zero && $current_page != \"1\") {\n\t\t\t$pre_current = $page;\n\t\t\t$previouspage = $pre_current - 1;\n\t\t\t$previous = '&nbsp;<a href=\"'.$useUrl.$previouspage.'\">&lt;</a>&nbsp;';\n\t\t}\n\t\t// Display list of pages\n\t\t$c=1;\n\t\t$start = $current_page - 2;\n\t\t$end = 1;\n\t\twhile ($c <= $totalpages) {\n\t\t\tif ($c >= $start && $end <= \"5\") {\n\t\t\t\tif ($c != $totalpages) { $space = \"&nbsp;\"; } else { $space = \"\"; }\n\t\t\t\tif ($c == $page) { $currentpage = ' class=\"active\"'; } else { $currentpage = \"\"; }\n\t\t\t\t$listpages .= '&nbsp;<a href=\"'.$useUrl.$c.'\"'.$currentpage.'>'.$c.'</a>'.$space;\n\t\t\t\t++$end;\n\t\t\t}\n\t\t\t++$c;\n\t\t}\n\t\t// TOTAL PAGES\n\t\tif ($c != \"1\") {\n\t\t\t$total_pages = $c - 1;\n\t\t\t$s = \"s\";\n\t\t} else {\n\t\t\t$total_pages = $c;\n\t\t\t$s = \"\";\n\t\t}\n\t\t// Display the LAST button\n\t\tif ($current_page != $total_pages) {\n\t\t\t$next_current = $page;\n\t\t\t$nextpage = $next_current + 1;\t\n\t\t\t$last = \"&nbsp;<a href='{$useUrl}{$totalpages}'> Last &rsaquo;</a>\";\n\t\t}\n\t\t// Display the NEXT button\n\t\tif (($page < $totalpages) && ($totalpages > 0) && ($current_page != $total_pages)) {\n\t\t\t$next_current = $page;\n\t\t\t$nextpage = $next_current + 1;\t\n\t\t\t$next = '&nbsp;<a href=\"'.$useUrl.$nextpage.'\">&gt;</a>';\n\t\t}\n\t\t\n\t\t// Page '.$current_page.' of '.$total_pages.' pages '.$pagination_links.'\n\t\treturn \"<p>Page {$current_page} of {$total_pages} page{$s} &nbsp;&nbsp;{$first} {$previous} {$listpages} {$next} {$last}</p>\";\n\n\t}", "function link_a($dir,$cont){\r\n return \"<a href=\\\"$dir\\\">$cont</a>\";\r\n }", "function link_to_home_page($text = null, $props = array())\n{\n if (!$text) {\n $text = option('site_title');\n }\n return '<a href=\"' . html_escape(WEB_ROOT) . '\" '. tag_attributes($props) . '>' . $text . \"</a>\\n\";\n}", "function cleanblog_links($nav1){\n global $config;\n $myReturn = '';\n \n foreach($nav1 as $url => $text){\n if (THIS_PAGE == $url){\n $url = $config->virtual_path . $url; //add virtual path\n $myReturn .= '\n <li class=\"nav-item\"><a class=\"nav-link\" href=\"' . $url . '\">' . $text . '</a></li>';\n }else{\n $url = $config->virtual_path . $url; //add virtual path\n $myReturn .= '\n <li class=\"nav-item\"><a class=\"nav-link\" href=\"' . $url . '\">' . $text . '</a></li>';\n }\n }\n \n return $myReturn;\n \n}", "function locallink($hash, $name = null, $returnonly = false) {\n global $ID;\n $name = $this->_getLinkTitle($name, $hash, $isImage);\n $hash = $this->_headerToLink($hash);\n $title = $ID.' ↵';\n\n $doc = '<a href=\"#'.$hash.'\" title=\"'.$title.'\" class=\"wikilink1\">';\n $doc .= $name;\n $doc .= '</a>';\n\n if($returnonly) {\n return $doc;\n } else {\n $this->doc .= $doc;\n }\n }", "function lqd_page_link( $link, $post_id ) {\n\tglobal $wp_query;\n\tif( isset( $wp_query->query_vars['messages-app-view'] ) ) {\n\t\treturn $link . 'messages-app-view/';\n\t}\n\treturn $link;\n}", "function links_add_target($content, $target = '_blank', $tags = array('a'))\n {\n }", "function goToPage($page) {\n\t\t$this->link->setPage($page);\n\t\tResponse::sendRedirect($this->link->toString());\n\t}", "public function getUrl($page);" ]
[ "0.73945", "0.7199301", "0.71252435", "0.69924825", "0.68903446", "0.68555397", "0.6800258", "0.67281574", "0.6677073", "0.65100145", "0.6480044", "0.64556295", "0.64524114", "0.6446016", "0.6372981", "0.6305477", "0.62856394", "0.6258099", "0.62364984", "0.6217134", "0.6201694", "0.61652887", "0.61480206", "0.6117312", "0.6112049", "0.6087908", "0.60743827", "0.60701317", "0.60538214", "0.60403824", "0.59862137", "0.5981407", "0.5979434", "0.5973474", "0.5957721", "0.5957721", "0.59556854", "0.5943912", "0.59423745", "0.593273", "0.59272987", "0.59189415", "0.5918816", "0.59163153", "0.59158283", "0.5897907", "0.58958447", "0.58919036", "0.5891338", "0.5878235", "0.5870199", "0.58661157", "0.5842735", "0.5839222", "0.58066463", "0.58066463", "0.5805488", "0.57933855", "0.57930416", "0.5792649", "0.5788724", "0.57846195", "0.5784465", "0.57841766", "0.5781957", "0.57785165", "0.57783425", "0.57595176", "0.5754095", "0.57478034", "0.5741511", "0.57395643", "0.5737514", "0.5723759", "0.5718338", "0.5716307", "0.5715302", "0.57064706", "0.5703787", "0.56980217", "0.5678536", "0.56753767", "0.5666184", "0.56596214", "0.56596214", "0.5659439", "0.5658564", "0.565323", "0.56462693", "0.56417847", "0.5640959", "0.56398004", "0.56391186", "0.5638883", "0.5637553", "0.5634663", "0.56175894", "0.56171674", "0.56147224", "0.5612771" ]
0.58286864
54
Returns the children of a page
function fetch_children($obj = null){ $parent = ($obj == null) ? get_parent() : $obj; $id = ($parent->post_parent) ? $parent->post_parent : $parent->ID; // Fetch all child pages of the parent OR siblings: return get_pages("hierarchical=0&parent=".$id."&child_of=".$id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_page_children($page_id, $pages)\n {\n }", "public function children()\n {\n if (is_a($this->children, 'Kirby\\Cms\\Pages') === true) {\n return $this->children;\n }\n\n return $this->children = Pages::factory($this->inventory()['children'], $this);\n }", "public function get_children();", "public function children()\n\t{\n\t\tif (is_null($this->children)) {\n\t\t\t$this->children = \\App::make('Illuminate\\Database\\Eloquent\\Collection');\n\t\t\tforeach (\\PagesRepository::retrieveChildren($this->id) as $child) {\n\t\t\t\t$this->children->add(\\App::make('Monal\\Pages\\Models\\FrontendPage', $child));\n\t\t\t}\n\t\t}\n\t\treturn $this->children;\n\t}", "public function children() {\n\n if(isset($this->cache['children'])) return $this->cache['children'];\n\n $this->cache['children'] = new Children($this);\n\n $inventory = $this->inventory();\n\n // with page models\n if(!empty(static::$models)) {\n foreach($inventory['children'] as $dirname) {\n $child = new Page($this, $dirname);\n // let's create a model if one is defined\n if(isset(static::$models[$child->intendedTemplate()])) {\n $model = static::$models[$child->intendedTemplate()];\n $child = new $model($this, $dirname);\n }\n $this->cache['children']->data[$child->id()] = $child;\n }\n // without page models\n } else {\n foreach($inventory['children'] as $dirname) {\n $child = new Page($this, $dirname);\n $this->cache['children']->data[$child->id()] = $child;\n }\n }\n\n return $this->cache['children'];\n\n }", "public function getChildPages(): array\n {\n return $this->childPages;\n }", "function children() {\n\t\t$this->load_children();\n\t\treturn $this->_children;\n\t}", "public function getChildren() {\n $childNodes = $this->getNode()->getChildren();\n $children = array();\n foreach ($childNodes as $childNode) {\n $child = $childNode->getPage($this->getLang());\n if ($child) {\n $children[] = $child;\n }\n }\n return $children;\n }", "function children_of_parent_page($parent_title){\n $my_wp_query = new WP_Query();\n $all_wp_pages = $my_wp_query->query(array('post_type' => 'page', 'order' => 'ASC', 'orderby' => 'menu_order', 'posts_per_page' => -1));\n $parent_page = get_page_by_title($parent_title);\n $page_children = get_page_children($parent_page->ID, $all_wp_pages);\n return $page_children; //outputs an array of child page objects\n}", "function get_child_pages($id = NULL) {\n\n\tif ( empty($id) ) {\n\t\t$id = get_the_ID();\n\t}\n\n\treturn new WP_Query(\n\t\tarray(\n\t\t\t'post_type'\t\t\t=> 'page',\n\t\t\t'post_parent'\t\t=> $id,\n\t\t\t'posts_per_page'\t=> -1\n\t\t)\n\t);\n\n}", "private function get_node_children(midgard_page $node)\n {\n $children = array();\n $mc = midgard_page::new_collector('up', $node->id);\n $mc->set_key_property('name');\n $mc->add_value_property('title');\n $mc->execute(); \n $pages = $mc->list_keys();\n foreach ($pages as $name => $array)\n {\n if (empty($name))\n {\n continue;\n }\n $children[] = array\n (\n 'uri' => \"{$_MIDCOM->context->prefix}{$name}/\", // FIXME: dispatcher::generate_url\n 'title' => $mc->get_subkey($name, 'title'),\n 'mimetype' => 'httpd/unix-directory',\n 'resource' => 'collection',\n );\n }\n \n if ($_MIDCOM->context->page->id == $_MIDCOM->context->host->root)\n {\n // Additional \"special\" URLs\n $children[] = array\n (\n 'uri' => \"{$_MIDCOM->context->prefix}__snippets/\", // FIXME: dispatcher::generate_url\n 'title' => 'Code Snippets',\n 'mimetype' => 'httpd/unix-directory',\n 'resource' => 'collection',\n );\n $children[] = array\n (\n 'uri' => \"{$_MIDCOM->context->prefix}__styles/\", // FIXME: dispatcher::generate_url\n 'title' => 'Style Templates',\n 'mimetype' => 'httpd/unix-directory',\n 'resource' => 'collection',\n );\n }\n\n return $children;\n }", "function ph_display_page_children($post)\n{\n\n $html = '';\n if ($post) {\n $args = array(\n 'post_status' => 'publish',\n 'post_type' => 'page',\n 'post_parent' => $post->ID,\n 'orderby' => 'menu_order',\n 'order' => 'ASC',\n 'nopaging' => true,\n );\n\n query_posts($args);\n\n if (have_posts()) {\n $html = '<ul class=\"page-children ph-page-children\">';\n while (have_posts()) {\n the_post();\n $html .= '<li>'.get_the_title().' · '.get_the_excerpt().'</li>';\n }\n $html .= '</ul>';\n }\n\n wp_reset_query();\n }\n\n return $html;\n}", "public function getChildren() {\n\t\t$placeRepository = t3lib_div::makeInstance('Tx_Wpj_Domain_Repository_PlaceRepository');\n\t\t$children = $placeRepository->findAllChildren($this);\n\t\treturn $children;\n\t}", "public function getChildrenForArbo()\n {\n $filtreEnfant = ' and 1=1 ';\n $oUtilisateur = Utilisateur::getConnected();\n if ($oUtilisateur && ! $oUtilisateur->isRoot()) {\n if ((sizeof(self::getForbiddenID($this->mode)) > 0)) {\n $filtreEnfant .= \" and ID_PAGE not in (\" . implode(',', self::getForbiddenID($this->mode)) . \")\";\n }\n }\n\n return $this->getChildren($filtreEnfant);\n }", "public function get_children() {\n\t\treturn $this->children;\n\t}", "public function children()\r\n\t{\r\n\t\treturn $this->children;\r\n\t}", "public function getChildren() {}", "public function getChildren() {}", "public function getChildren() {}", "function get_child_pages_by_parent_title($pageId,$limit)\n{\n // needed to use $post\n global $post;\n // used to store the result\n $pages = array();\n\n // What to select\n $args = array(\n 'post_type' => 'page',\n 'post_parent' => $pageId,\n 'posts_per_page' => $limit\n );\n $the_query = new WP_Query( $args );\n\n while ( $the_query->have_posts() ) {\n $the_query->the_post();\n $pages[] = $post;\n }\n wp_reset_postdata();\n return $pages;\n}", "public function children()\n\t{\n\t\treturn $this->descendants(1);\n\t}", "public function getChildrenQuery();", "public function Children()\n {\n return $this->Root->childrenOfSection($this->URLSegment);\n }", "public function getChild()\n {\n return $this->hasMany(Pages::className(), ['parent_id' => 'id']);\n }", "public function children() {\n return $this->descendants(1);\n }", "public function children()\n {\n $this->buildTree();\n return $this->childrenInternal();\n }", "public function getPages();", "public function getChildren();", "public function getChildren();", "public function getChildren();", "public function getChildren();", "public function getChildren();", "public function getChildren();", "public function getChildren();", "public function getChildren();", "public function getChildren();", "public function getChilds();", "public function getPages() {}", "public function getChildren()\n {\n return $this->children;\n }", "public function getPages()\n\t {\n\t \t$args = array(\n\t\t\t\t'sort_order' => 'asc',\n\t\t\t\t'sort_column' => 'post_title',\n\t\t\t\t'hierarchical' => 1,\n\t\t\t\t'child_of' => 0,\n\t\t\t\t'parent' => -1,\n\t\t\t\t'post_type' => 'page',\n\t\t\t\t'post_status' => 'publish'\n\t\t\t); \n\n\t\t\treturn get_pages($args);\n\t }", "public function getChildren() {\n\t\treturn $this->children;\n\t}", "public function getChildren() {\n\t\treturn $this->children;\n\t}", "public function getChildren()\n\t{\n\t\treturn $this->children;\n\t}", "public function getChildren()\n\t{\n\t\treturn $this->children;\n\t}", "public function getChildren() {\n\t\treturn $this->_children;\n\t}", "public function getChildren() \n {\n return $this->children;\n }", "function getChildrenForMenu($pageSlug) {\n $page = $this->findBySlug($pageSlug);\n $pages = $this->children($page[$this->name]['id']);\n if (empty($pages)) {\n return null;\n }\n $titles = Set::extract($pages, \"{n}.{$this->name}.title\");\n $urls = Set::extract($pages, \"{n}.{$this->name}.url\");\n return array_combine($titles, $urls);\n }", "public function getChildren()\n {\n return $this->_children;\n }", "public function getChildren()\n {\n return $this->children;\n }", "public function getChildren()\n {\n return $this->children;\n }", "public function getChildren()\n {\n return $this->children;\n }", "public function getChildren()\n {\n return $this->children;\n }", "public function getChildren()\n {\n return $this->children;\n }", "public function getChildren()\n {\n return $this->children;\n }", "public function getChildren()\n {\n return $this->children;\n }", "public function getChildren()\n {\n return $this->children;\n }", "function getPageChildren($parentId)\n{\n return $GLOBALS['conn']->query(\"SELECT * FROM `subjects` WHERE parent='$parentId'\");\n}", "public function iterateChildren();", "public function getChildren() {\n\t\t$children = $this->categoryRepository->findAllChildren($this);\n\t\treturn $children;\n\t}", "public function GetChildren() {\n\t\treturn $this->Children;\n\t}", "public function getChildren($activeOnly = true, $pageNo = null, $pageSize = DaoQuery::DEFAUTL_PAGE_SIZE, $orderBy = array(), &$stats = array())\n {\n \treturn self::getAllByCriteria('position like ? and rootId = ?', array($this->getPosition() . '%', $this->getRoot()->getId()), $activeOnly, $pageNo, $pageSize, $orderBy, $stats);\n }", "public function findChildren()\n {\n return self::where('code_parrent',$this->id)->get();\n }", "final public function getChildren(): ?PageInterface\n {\n $hash = key($this->index);\n\n if (isset($this->pages[$hash])) {\n return $this->pages[$hash];\n }\n\n return null;\n }", "public function children (){\n\t\treturn array();\n\t}", "public function getChildren()\n\t{\n\t\treturn $this->_auth->getItemChildren($this->_calendarId,$this->_name);\n\t}", "public function getChildren(): array;", "public function myChildren()\n {\n return File::get()->filter(\"ParentID\", $this->ID);\n }", "public function get_children() : array\n {\n return $this->children;\n }", "function block_core_page_list_nest_pages($current_level, $children)\n {\n }", "public function children($id);", "protected function findAll()\n {\n return ContainerPage::find()->contentContainer($this->contentContainer)->all();\n }", "function wpb_list_child_pages() { \n \nglobal $post; \n \nif ( is_page() && $post->post_parent )\n \n $childpages = wp_list_pages( 'sort_column=menu_order&title_li=&child_of=' . $post->post_parent . '&echo=0' );\nelse\n $childpages = wp_list_pages( 'sort_column=menu_order&title_li=&child_of=' . $post->ID . '&echo=0' );\n \nif ( $childpages ) {\n \n $string = '<ul>' . $childpages . '</ul>';\n}\n \nreturn $string;\n \n}", "public function Children()\n {\n return $this->childrenOfSection('');\n }", "public function children()\n {\n return $this->hasMany(static::class, 'parent_id')->orderBy('name', 'asc');\n }", "public function getChildren()\n {\n // Singleton: both getChild and getChildren are called\n // by the Sabre_DAV_Browser_Plugin\n if (empty($this->children)) {\n $storedFiles = $this->fileStorage->get_directory_files(\n $this->storedFile->get_contextid(),\n $this->storedFile->get_component(),\n $this->storedFile->get_filearea(),\n $this->itemId,\n $this->storedFile->get_filepath(),\n false, // recursive\n true, // includedirs\n 'filepath ASC, filename ASC' // sort\n );\n\n foreach ($storedFiles as $storedFile) {\n if ($storedFile->is_directory()) {\n $this->children[][] = new DAVRootPoolDirectory($storedFile);\n } else {\n $this->children[][] = new DAVRootPoolFile($storedFile);\n }\n }\n }\n\n return $this->children;\n }", "public function getChildren(): Collection\n {\n return $this->children;\n }", "public function getChildren(): Collection\n {\n return $this->children;\n }", "function get_children($args = '', $output = \\OBJECT)\n {\n }", "protected function getChildren()\n\t{\n\t\t$listing = $this->modelListing->getListing($this->size, $this->offset);\n\t\treturn $listing;\n\t}", "function getPages() {\n\t\t$sql = 'SELECT * FROM page WHERE vis = 1 ORDER BY psn';\n\t\t$qrh = mysqli_query($this->lnk, $sql);\n\t\t$i = 1;\n\t\t\n\t\t// iterate and extract data to be passed to view\n\t\twhile ( $res = mysqli_fetch_array($qrh)) {\n\t\t\t$results[] = array('id' => $res['id'],'name' => $res['nam']);\n\t\t\t$i++;\n\t\t}\n\t\t\n\t\treturn $results;\n\t\t\n\t}", "public function getPages()\n {\n list($page_id, $scope_pages, $scope_page_type) = array(\n $this['page_id'],\n $this['scope']['pages'],\n $this['scope']['page_type']\n );\n\n $result_pages = array();\n\n if ($scope_pages == 'this') {\n /**\n * Only current page\n */\n $result_pages[] = $page_id;\n } elseif (in_array($scope_pages, array('descendants', 'children'))) {\n /**\n * All descendants\n */\n $finder = fx::data('content')->descendantsOf($page_id);\n if ($scope_page_type) {\n $finder->where('type', $scope_page_type);\n }\n $result_pages = array_merge($result_pages, $finder->all()->getValues('id'));\n /**\n * With self page\n */\n if ($scope_pages == 'descendants') {\n $result_pages[] = $page_id;\n }\n }\n return array_unique($result_pages);\n }", "public function pages()\n {\n return $this->morphedByMany('App\\Page', 'imageable');\n }", "public function getChildren()\n {\n }", "public function getChildren()\n {\n }", "private function getPages($parent = 0)\n\t{\n\t\t//Get the pages\n\t\t$data = Database::execProcedure('GetNavigation', array('page' => $parent));\n\t\treturn $data;\n\t}", "public function getSubPages($page_id)\n {\n $this->db->select()\n ->from($this->table)\n ->where('page_parent', $page_id)\n ->order_by('page_title', 'ASC');\n return $this->db->get()->result_array();\n }", "final public function getChildren() {\n\t\treturn array();\n\t}", "public function getWikiPages()\n {\n if ($this->request->get('explore')) {\n // Fetch the pages tree to a specified page\n return $this->explorePagesTo($this->request->get('page'));\n }\n\n if ($this->request->get('wiki')) {\n // Get the root pages of a wiki\n return $this->getWikiRootPages($this->request->get('wiki'));\n }\n\n // Get the child pages of a page\n return $this->getPageChilds($this->request->get('page'));\n }", "public function childrenElements() {\n\t\treturn $this->hasMany('\\App\\Hierarchy', 'parent_id', 'id');\n\t}", "public function getPages()\n {\n return $this->getPosts();\n }", "public function childrenRecursive()\n\t\t{\n\t\t\treturn $this->children()->with('childrenRecursive');\n\t\t}", "private function get_children($parent, $level = 0) {\r\n \t\t$pages = ORM::factory('page')->where('parent_id', $parent)->orderby('display_order','asc')->find_all();\r\n\r\n \t\t// display each child\r\n \t\tforeach ($pages as $page) {\r\n \t\t// indent and display the title of this child\r\n \t\t$this->page_array[] = array($page,$level);\r\n \t\t$this->get_children($page->id, $level+1); \r\n \t\t}\r\n\t}", "public function getChildren()\r\n\t{\r\n\t\treturn $this->childrenNodes;\r\n\t}", "public function children()\n {\n return (array) $this->children;\n }", "public function set_children($children)\n {\n $childData = [];\n foreach ($children as $child) {\n $childData[] = new Page($child);\n }\n $this->data['children'] = $childData;\n }", "function has_children(){\n global $post;\n\n $pages = get_pages( 'child_of=' . $post->ID );\n return count($pages);\n}", "function has_children() {\n \n global $post;\n\n $pages = get_pages('child_of=' . $post->ID);\n \n return count($pages);\n}", "public function children()\n {\n $children = $this->getAttribute('children') ?: [];\n\n if ($children && ! is_array($children) && ! ($children instanceof Collection)) {\n return (array) $children;\n }\n\n return $children;\n }", "final public function getPages(): array\n {\n return $this->pages;\n }", "function wv_wp_page_list() {\n\n $arglist = array(\n 'sort_order' => 'ASC',\n 'sort_column' => 'post_title',\n 'hierarchical' => 1,\n 'post_type' => 'page',\n 'post_status' => 'publish'\n );\n $mypages = get_pages($arglist);\n return $mypages;\n }" ]
[ "0.8051364", "0.7997152", "0.7930303", "0.7923553", "0.77943766", "0.7578061", "0.7429271", "0.74015105", "0.7352535", "0.7303256", "0.71026856", "0.7011662", "0.6996142", "0.69599986", "0.6931279", "0.69163996", "0.6891967", "0.6891967", "0.6891967", "0.6872649", "0.6867195", "0.6863855", "0.6858418", "0.6842679", "0.6821665", "0.6816759", "0.6792654", "0.6759941", "0.6759941", "0.6759941", "0.6759941", "0.6759941", "0.6759941", "0.6759941", "0.6759941", "0.6759941", "0.67371464", "0.6728031", "0.67226225", "0.6722076", "0.6718737", "0.6718737", "0.671654", "0.671654", "0.67101574", "0.66865504", "0.666574", "0.6659934", "0.66585475", "0.66585475", "0.66585475", "0.66585475", "0.66585475", "0.66585475", "0.66585475", "0.66585475", "0.66559696", "0.66510344", "0.66450775", "0.66296786", "0.66232425", "0.66001743", "0.65911406", "0.6580763", "0.65795135", "0.65672123", "0.6555846", "0.65491045", "0.6542153", "0.6539506", "0.65107185", "0.6492974", "0.64612716", "0.6455886", "0.6441329", "0.6440607", "0.6440607", "0.64375585", "0.64340603", "0.64314866", "0.6427522", "0.64196706", "0.64143413", "0.64143413", "0.6411966", "0.64007384", "0.63936424", "0.6355482", "0.6353153", "0.6341622", "0.63333243", "0.6321181", "0.6314647", "0.6314197", "0.63128495", "0.6308672", "0.629406", "0.62921154", "0.6287262", "0.6281674" ]
0.721008
10
Returns the ID of the parent page of the current page, or a page provided as $obj.
function get_parent($obj = null){ global $wp_query; if(!$obj){ $obj = $wp_query->post; } // Checks to see if we've got a parent or not: if(empty($obj->post_parent)) return $obj->ID; else return $obj->post_parent; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getParentPageID () {return $this->getFieldValue ('parent_page_id');}", "protected function getParentPageID(){\n if( $this->displayBeneath == self::DISPLAY_PAGES_BENEATH_CURRENT ){\n return Page::getCurrentPage()->getCollectionID();\n }\n return $this->parentPageID;\n }", "Public function getParentPageId() {\n\t\tif(!empty($this->parent_pageid))\n\t\t\treturn $this->parent_pageid;\n\t\telse {\n\t\t\treturn false;\n\t\t}\n\t}", "function get_top_parent_ID($id){\n\t$page = get_page($id);\n\t$id = $page->post_parent;\n\t$parent = get_page($id);\n\t\n\tif ($parent->post_parent == 0){\n\t\treturn $id;\n\t}\n\telse{\n\t\treturn get_top_parent_ID($id);\n\t}\n}", "public function parent()\n\t{\n\t\tif ($this->parent_id) {\n\t\t\tif (is_null($this->parent)) {\n\t\t\t\t$parent = \\PagesRepository::retrieve($this->parent_id);\n\t\t\t\t$this->parent = \\App::make('Monal\\Pages\\Models\\FrontendPage', $parent);\n\t\t\t}\n\t\t}\n\t\treturn $this->parent;\n\t}", "public function getParent() : ?Page\n {\n $key = $this->getParentId();\n\n if (empty($key)) {\n return null;\n }\n\n return Page::Store()->getById($key);\n }", "function getTopParentPostID($myid){\n\t$mypage = get_page($myid);\n\tif ($mypage->post_parent == 0){\n\t\treturn $mypage->ID;\n\t}\n\telse{\n\t\treturn getTopParentPostID($mypage->post_parent);\n\t}\n}", "public function setParentObject(Page $value) : Page\n {\n return $this->setParentId($value->getId());\n }", "function _wswwpx_page_get_parent_id ( $child = 0 ) {\n\tglobal $wpdb;\n\t// Make sure there is a child ID to process\n\tif ( $child > 0 ) {\n\t\t$result = $wpdb->get_var(\"\n\t\t\t\t\t\t\t\t\tSELECT post_parent\n\t\t\t\t\t\t\t\t\t\tFROM $wpdb->posts\n\t\t\t\t\t\t\t\t\t\tWHERE ID = $child\");\n\t} else {\n\t\t// ... or set a zero result.\n\t\t$result = 0;\n\t}\n\t//\n\treturn $result;\n}", "public function getParent() {\n $parentNode = $this->getNode()->getParent();\n if (!$parentNode) {\n throw new PageException('Parent node not found (my page id is ' . $this->getId() . ')');\n }\n $parent = $parentNode->getPage($this->getLang());\n if (!$parent) {\n throw new PageException('Parent page not found (my page id is ' . $this->getId() . ')');\n }\n return $parent;\n }", "public function getParent()\n {\n return $this->hasOne(Pages::className(), ['id' => 'parent_id']);\n }", "public static function parent(object $a)\n {\n return self::$parents_index[spl_object_id($a)] ?? null;\n }", "public function getParentObject()\n\t{\n\t\treturn $this->parent_obj;\n\t}", "public function get_parent_id() {\n\t\treturn $this->post->post_parent;\n\t}", "public static function findParentPageID($pageId)\r\n {\r\n $lang = Zend_Registry::get(\"languageID\");\r\n $parentArray = new Pages();\r\n\r\n $select = $parentArray->select()\r\n ->setIntegrityCheck(false)\r\n ->from('Pages')\r\n ->joinLeft('PagesIndex', 'PI_PageID = P_ID')\r\n ->where('Pages.P_ID = ?', $pageId)\r\n ->where('PagesIndex.PI_LanguageID = ?', $lang);\r\n\r\n return $parentArray->fetchRow($select);\r\n }", "public function getGrandparent() {\n\t\t\tglobal $db;\n\t\t\t$data = $db->get_var(\"SELECT parent FROM pages WHERE guid = (SELECT parent FROM pages where guid = '{$this->guid}')\"); \n\t\t\treturn $data;\n\t\t}", "public function __invoke()\n {\n /** @var \\Laminas\\View\\Helper\\Navigation\\Breadcrumbs $breadcrumbs */\n $breadcrumbs = $this->view->navigation('navigation')->breadcrumbs();\n $active = $breadcrumbs->findActive($breadcrumbs->getContainer());\n\n if (!isset($active['page'])) {\n return null;\n }\n\n /** @var \\Laminas\\Navigation\\Page\\Mvc $page */\n $page = $active['page'];\n\n return $page->getParent();\n }", "public function getParentPages($pageID){\n\t\t\t#we don't want getRecordByID to return JSON\n\t\t\t$tempAjax = $this->ajax;\n\t\t\t$this->ajax = false;\n\t\t\t\n\t\t\t#first time through our $pageID is numeric\n\t\t\tif(is_numeric($pageID)) $pageID = array($pageID);\n\t\t\t\n\t\t\t$tempPage = $this->getRecordByID($pageID[0]);\n\t\t\t$tp = mysqli_fetch_assoc($tempPage);\n\t\t\t#change back to what it was\n\t\t\t$this->ajax = $tempAjax;\n\n\t\t\t#not a root page\n\t\t\tif(is_numeric($tp[\"parentPageID\"])){\n\t\t\t\t$tempArray = array($tp[\"parentPageID\"]);\n\t\t\t\t$tempMerged = array_merge($tempArray,$pageID);\n\t\t\t\treturn $this->getParentPages($tempMerged);\n\t\t\t}\n\t\t\t#return root page\n\t\t\telse{\n\t\t\t\treturn $pageID;\n\t\t\t}\n\t\t}", "public function get_parent();", "function wp_get_post_parent_id($post = \\null)\n {\n }", "function get_admin_page_parent($parent_page = '')\n {\n }", "public function getParentInvoiceId()\n {\n return $this->getParameter('parentInvoiceId');\n }", "public function getParentId()\n {\n if (array_key_exists(\"parentId\", $this->_propDict)) {\n return $this->_propDict[\"parentId\"];\n } else {\n return null;\n }\n }", "function ww_get_top_parent( $id = null ) {\n global $post;\n $temp_post = $id ? get_post( $id ) : $post;\n while( $temp_post->post_parent != 0 ) {\n $temp_post = get_post( $temp_post->post_parent );\n }\n return $temp_post;\n}", "function getParent($id) {\n\t\t\t$this->query(\"SELECT parent FROM usecase WHERE id={$id};\");\n\t\t\t$rs = $this->resultSet();\n\t\t\tif($rs) {\n\t\t\t\t$usecase = $rs[0];\n\t\t\t\tif($usecase[\"parent\"] == \"\")\n\t\t\t\t\treturn 'NULL';\n\t\t\t\telse\n\t\t\t\t\treturn $usecase[\"parent\"];\n\t\t\t} else\n\t\t\t\treturn 'NULL';\n\t\t}", "public function parent()\n {\n if ( !$this->loaded )\n $this->reload();\n\n if ($this->is_root())\n return NULL;\n\n if ( ! in_array('parent', $this->_objects) )\n {\n $sql = \"SELECT * FROM $this->_table_name\n WHERE \n $this->primary_column = $this->parent_key\n ORDER BY \". $this->_sorting[0] .\" \". $this->_sorting[1] .\"\n \";\n\n $result = $this->_db->query($sql);\n\n $this->_objects['parent'] = $this->factory_set($result)[0];\n }\n\n return $this->_objects['parent'];\n }", "public static function getTopLevelParent($informationObject) {\n\n if (get_class($informationObject) != 'QubitInformationObject') return;\n\n if ($informationObject->parent) {\n $topLevelParent = $informationObject->parent;\n while ($topLevelParent->parent && $topLevelParent->parent->id != QubitInformationObject::ROOT_ID)\n {\n $topLevelParent = $topLevelParent->parent;\n }\n }\n return $topLevelParent->id;\n }", "function parentID( )\r\n {\r\n return $this->ParentID;\r\n }", "public function getParentName() {\n\t\t\t$parent = new Page();\n\t\t\t$parent->loadByGUID($this->parent);\n\t\t\treturn $parent->name;\n\t\t}", "public function getParent() {\r\n\t\tif ($this->pzkParentId) {\r\n\t\t\treturn pzk_store_element($this->pzkParentId);\r\n\t\t}\r\n\t\treturn NULL;\r\n\t}", "public function parent() { return $this->post->post_parent; }", "public function getParentID()\n {\n return $this->parent_id;\n }", "protected function ParentID() {\n\treturn $this->GetFieldValue('ID_Parent');\n }", "public function currentPageID() {\n if(is_numeric($this->getRequest()->requestVar('ID')))\t{\n return $this->getRequest()->requestVar('ID');\n } elseif (is_numeric($this->urlParams['ID'])) {\n return $this->urlParams['ID'];\n } elseif(Session::get(\"{$this->class}.currentPage\")) {\n return Session::get(\"{$this->class}.currentPage\");\n } else {\n return 0;\n }\n }", "public function getParentContentObject() {}", "public function getParentDocument(): ?object\n {\n return $this->parent;\n }", "public function isParentOf($page) {\n if(!is_a($page, 'Page')) $page = page($page);\n\n return $this->is($page) ? false : $page->parent->is($this);\n }", "public function setParent($value) : Page\n {\n // Is this a scalar value representing the ID of this foreign key?\n if (is_scalar($value)) {\n return $this->setParentId($value);\n }\n\n // Is this an instance of Parent?\n if (is_object($value) && $value instanceof Page) {\n return $this->setParentObject($value);\n }\n\n // Is this an array representing a Page item?\n if (is_array($value) && !empty($value['id'])) {\n return $this->setParentId($value['id']);\n }\n\n // None of the above? That's a problem!\n throw new \\Exception('Invalid value for Parent.');\n }", "function page_parent($id_only=false) {\n\t\t\t$id = 'parent_id';\n\t\t\tif($id_only) {\n\t\t\t\treturn $id;\n\t\t\t}\n\t\t\treturn 'jQuery(\"#'.$id.' option:selected\").val()';\n\t\t}", "function tutv_get_parent_title( $page = null ) {\n global $post;\n\n if ( ! $page ) {\n $page = $post->ID;\n }\n\n\n if ( empty( $post->post_parent ) ) { // if there is no parent...\n return get_the_title( $post->ID ); // return the current page's title\n } else { // if there is a parent...\n return get_the_title( $post->post_parent ); // return the parent's title\n }\n}", "function ep_is_subpage() {\n\tglobal $post; // load details about this page\n if ( is_page() && $post->post_parent ) { // test to see if the page has a parent\n $parentID = $post->post_parent; // the ID of the parent is this\n return $parentID; // return the ID\n } else { // there is no parent so...\n return false; // ...the answer to the question is false\n };\n}", "public function getParent_id() {\n\t\treturn $this->parent_id;\n\t}", "private function getParentId($request)\n {\n return $request->getParsedBody()['parent_id'] ?? null;\n }", "public function getParentId();", "public function getParentId();", "public function getParentId();", "public function get_page_id() {\n\t\t\treturn $this->current_page_id;\n\t\t}", "public function get_parent_id()\n {\n return $this->get_default_property(self::PROPERTY_PARENT_ID);\n }", "public function get_parent_id()\n {\n return $this->get_default_property(self::PROPERTY_PARENT_ID);\n }", "public function parent(){\n return $this->where('id', $this->parent_id)->first();\n }", "public function get_plugin_parent_page(): string\n {\n return $this->plugin_parent_page;\n }", "public function getParentId()\n\t{\n\t\treturn $this->parent_id;\n\t}", "protected function _getCurrentPage() {\r\n\r\n // determine which object the current request belongs\r\n $currentPage = null;\r\n\r\n // perform \"polling\" to get who can manage this request\r\n foreach ($this->getItems() as $item) {\r\n if (($item instanceof Page) && $item->isResponsibleFor($this->_request)) {\r\n $currentPage = $item;\r\n break;\r\n }\r\n }\r\n\r\n return $currentPage;\r\n }", "public function get_parent() {\n\t\treturn $this->parent();\n\t}", "abstract protected function getCurrentPageId() ;", "function get_post_parent($post = \\null)\n {\n }", "protected function get_parent()\r\n {\r\n return $this->parent;\r\n }", "public function getParentId($objectId){\n global $Core;\n\n if(!is_numeric($objectId)){\n throw new Exception ($Core->language->error_object_id_must_be_numeric);\n }\n $objectId = intval($objectId);\n if(empty($objectId)){\n throw new Exception($Core->language->error_object_id_cannot_be_empty);\n }\n\n if(empty($this->parentField)){\n throw new Exception($Core->language->error_this_class_does_not_have_a_parent_id.' - '.get_class($this));\n }\n\n return $Core->db->result(\"SELECT `{$this->parentField}` FROM `{$Core->dbName}`.`{$this->tableName}` WHERE `id` = $objectId\");\n }", "public function getIdParent() \n\t{\n\t\treturn $this->idParent;\n\t}", "public function getParentId()\n {\n return $this->parent_id;\n }", "public function getParentId()\n {\n return $this->parent_id;\n }", "function ss_get_parent_id( $child_id ) {\r\n\t$child = get_post( $child_id );\r\n\t$parentId = $child->post_parent;\r\n\treturn $parentId;\r\n}", "function get_parent()\r\n {\r\n return $this->parent;\r\n }", "function get_parent()\r\n {\r\n return $this->parent;\r\n }", "private function buildNavHierachy($obj, $parent = 0)\n\t{\n\t\t//Get all the pages\n\t\t$pages = $this->getPages($parent);\n\n\t\t//Itterate through pages\n\t\tforeach ($pages as $page) {\n\t\t\t//Check if current page\n\t\t\t$class = array();\n\t\t\tif (in_array(Config::getItem('page-id'), array($page['id'], $page['identifier']))) {\n\t\t\t\t$class['class'] = 'current-page';\n\t\t\t}\n\n\t\t\t//Create page link\n\t\t\tif ($page['type'] === 'login') {\n\t\t\t\t$li = $this->getLoginOption();\n\t\t\t} else {\n\t\t\t\t$li = $this->linkToObject($page['name'], sprintf('%s%s', Config::getItem('url'), $page['identifier']), $class);\n\t\t\t}\n\n\t\t\t//Check for child pages\n\t\t\tif ($page['children'] > 0) {\n\t\t\t\t//Add child pages\n\t\t\t\t$li->addElement($this->buildNavHierachy(new UnorderedList(), $page['id']));\n\t\t\t}\n\n\t\t\t//Add option to object\n\t\t\t$obj->addElement($li);\n\t\t}\n\n\t\t//Return the object\n\t\treturn $obj;\n\t}", "public function getIdParent()\n {\n return $this->id_parent;\n }", "private function get_parent($id)\n\t\t{\n\t\t\t$query = \"\tSELECT\n\t\t\t\t\t\t\t`MTN`.`parent` AS 'parent'\n\t\t\t\t\t\tFROM \n\t\t\t\t\t\t\t`\".$this->tree_node.\"` `MTN`\n\t\t\t\t\t\tWHERE 1 = 1\n\t\t\t\t\t\t\tAND `MTN`.`application_release`\t= '\".$this->application_release.\"'\n\t\t\t\t\t\t\tAND `MTN`.`id`\t\t= \".$id.\"\n\t\t\t\t\t\";\n\t\t\t$result = $this->link_mt->query($query);\n\t\t\t$row = $result->fetch_array(MYSQLI_ASSOC);\t\n\t\t\treturn $row['parent'];\t\t\n\t\t}", "function get_parent($type) {\n $relationships = get_field('post_detail_page_relationship', 'option');\n $parent = null;\n foreach ($relationships as $relationship) {\n if ($relationship['post_type'] === $type) {\n return $relationship['detail_page'];\n }\n }\n}", "public final function getParentObject()\n {\n if ($this->_parentObject === null)\n {\n $this->_parentObject = $this->getOption('parent_object');\n if ($this->_parentObject === null)\n throw new InvalidArgumentException('You must pass a parent '\n .'object via options.');\n else if (!$this->_parentObject instanceof Doctrine_Record)\n throw new InvalidArgumentException('The parent object must '\n .'be an instance of Doctrine_Record.');\n }\n \n return $this->_parentObject;\n }", "function getTopParentPostTitle($myid){\n\t$mypage = get_page($myid);\n\tif ($mypage->post_parent == 0){\n\t\treturn $mypage->post_title;\n\t}\n\telse{\n\t\treturn getTopParentPostTitle($mypage->post_parent);\n\t}\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}", "function parent( $as_object = true )\r\n {\r\n if ( !$as_object )\r\n return $this->ParentID;\r\n if ( $this->ParentID != 0 )\r\n {\r\n return new eZImageCategory( $this->ParentID );\r\n }\r\n else\r\n {\r\n return 0;\r\n }\r\n }", "public function retrieveParent() {\n $prepare = $this->database->prepare(\"\n SELECT parent_object\n FROM manuscripts\n WHERE collection = :collection\n AND pointer = :pointer\n LIMIT 1\n \");\n\n $prepare->execute(array(\n \":collection\" => $this->collection,\n \":pointer\" => $this->pointer\n ));\n\n return $prepare->fetchColumn();\n }", "public function setParent ($value) {\n\t\n\t\t// validation\n\t\tif ($this->pageID) {\n\t\t\n\t\t\t// check IDs aren't identical\n\t\t\tif ($this->pageID == $value) {\n\t\t\t\t$this->setMessage(strFirst(LANG_INVALID.\" \".LANG_PARENT));\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\t\n\t\t\t// check this parent isn't a child of this page\n\t\t\t$pagesModel = new PagesModel();\n\t\t\t$ids = $pagesModel->getChildrenAsArray($this->pageID);\n\t\t\t\n\t\t\tif (in_array($value, $ids)) {\n\t\t\t\t$this->setMessage(strFirst(LANG_INVALID.\" \".LANG_PARENT));\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\n\t\t}\n\t\t\n\t\t$this->setData(\"pageParent\", intval($value));\n\t\treturn true;\n\t\n\t}", "function getParent();", "function get_parent() {\n return $this->get_mapped_property('parent');\n }", "public function getParentProperty($object);", "protected function retrieveParent()\n {\n }", "function getCatParent($id)\n\t{\n\t\tif(isNumber($id))return selectMezo(\"SELECT `cat_parent` FROM `\".$this->prefix.\"cat` WHERE `cat_id`=\".$id,\"cat_parent\");\n\t\treturn 0;\n\t}", "public function getParentId()\n {\n return $this->parentId;\n }", "public function getParentId()\n {\n return $this->parentId;\n }", "public function parentRecord()\r\n {\r\n return $this->_parent;\r\n }", "final protected function parentId() {return $this->r('originalId');}", "public function getTopPage(): ?Page\n {\n $list = [$this->owner];\n\n while (count($list) > 0) {\n /** @var DataObject|DataExtension $item */\n $item = array_shift($list);\n\n if ($item instanceof Page) {\n // trivial case\n return $item;\n }\n\n if ($item->hasExtension(DataExtension::class) && $item->TopPageID > 0) {\n // top page is stored inside data object - just fetch it via cached call\n $page = Page::get_by_id($item->TopPageID);\n\n if ($page !== null && $page->exists()) {\n return $page;\n }\n }\n\n if ($item instanceof BaseElement) {\n // parent lookup via block\n $parent = $item->Parent();\n\n if ($parent !== null && $parent->exists()) {\n array_push($list, $parent);\n }\n\n continue;\n }\n\n if ($item instanceof ElementalArea) {\n // parent lookup via elemental area\n $parent = $item->getOwnerPage();\n\n if ($parent !== null && $parent->exists()) {\n array_push($list, $parent);\n }\n\n continue;\n }\n }\n\n return null;\n }", "public function getParent()\n {\n return $this->Root->parentOfSection($this->URLSegment);\n }", "function _getParent($treeid) {\n $res = $this->CLASS['db']->query(sprintf(\"SELECT belongs_to FROM tree WHERE id=%d\",$treeid));\n $anz = $this->CLASS['db']->num_rows($res);\n\n if($anz == 1) {\n $row = $this->CLASS['db']->fetch_assoc($res);\n return $row['belongs_to'];\n } else {\n return 0;\n }\n }", "public function getParentId()\n\t{\n\t\tif( isset( $this->values[$this->prefix . 'parentid'] ) ) {\n\t\t\treturn (string) $this->values[$this->prefix . 'parentid'];\n\t\t}\n\t}", "public function getParentByGUID($guid) {\n\t\t\tglobal $db;\n\t\t\t$query = \"SELECT parent FROM pages WHERE guid = '$guid'\";\n\t\t\t$data = $db->get_var($query);\n\t\t\treturn $data;\n\t\t}", "function get_top_ancestor_id(){\n\tglobal $post;\n\tif($post->post_parent){\n\t\t$ancestors= array_reverse(get_post_ancestors($post->ID));\n\t\treturn $ancestors[0];\n\t}\t\n\treturn $post->ID;\n}", "public function set_page_id() {\n\n\t\t\t$page_id = false;\n\t\t\t$object_id = get_queried_object_id();\n\n\t\t\tif ( get_option( 'show_on_front' ) && get_option( 'page_for_posts' ) && is_home() ) {\n\t\t\t\t$page_id = get_option( 'page_for_posts' );\n\t\t\t} else {\n\n\t\t\t\t// Use the $object_id if available.\n\t\t\t\tif ( isset( $object_id ) ) {\n\t\t\t\t\t$page_id = $object_id;\n\t\t\t\t}\n\n\t\t\t\t// If we're not on a singular post, set to false.\n\t\t\t\tif ( ! is_singular() ) {\n\t\t\t\t\t$page_id = false;\n\t\t\t\t}\n\n\t\t\t\t// Front page is the posts page.\n\t\t\t\tif ( isset( $object_id ) && 'posts' == get_option( 'show_on_front' ) && is_home() ) {\n\t\t\t\t\t$page_id = $object_id;\n\t\t\t\t}\n\n\t\t\t\t// The woocommerce shop page.\n\t\t\t\tif ( class_exists( 'WooCommerce' ) && ( is_shop() || is_tax( 'product_cat' ) || is_tax( 'product_tag' ) ) ) {\n\t\t\t\t\t$page_id = get_option( 'woocommerce_shop_page_id' );\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$this->current_page_id = $page_id;\n\n\t\t\treturn $page_id;\n\t\t}", "public function getParentIdValue(BaseObject $node)\n {\n $getter = self::forgeMethodName($node, 'get', 'parent');\n return $node->$getter();\n }", "public function currentPage() {\n $id = $this->currentPageID();\n if($id && is_numeric($id) && $id > 0) {\n $folder = DataObject::get_by_id('Folder', $id);\n if($folder && $folder->exists()) {\n return $folder;\n }\n }\n return new Folder();\n }", "public function getParentCategoryId()\n {\n return (int) $this->templateContext->getRequest()->getParam('parent');\n }", "public function getParentIdentifier()\n {\n return $this->parent;\n }", "public function page_nav_pre($page_id, $page_parent_id){\n \n\t\t\t\t$page_pre_id=$page_id-1;\n\t\t\t\t$selectissue=\"SELECT * FROM `pages` WHERE `page_id`='$page_pre_id' AND `page_parent_id`='$page_parent_id'\";\n\t\t\t\t$issueresult = mysqli_query($this->db,$selectissue) or die(mysqli_connect_errno().\"Data cannot inserted\");\n \t\treturn $issueresult;\n\t\t}", "function getPageID() \n {\n return (int) $this->getValueByFieldName( 'page_id' );\n }", "public function getGrandParent();", "public function getPageId()\n {\n return $this->getPage() ?\n $this->getPage()->getId() : null;\n }", "function fiorello_mikado_get_page_id() {\n\t\tif ( fiorello_mikado_is_woocommerce_installed() && fiorello_mikado_is_woocommerce_shop() ) {\n\t\t\treturn fiorello_mikado_get_woo_shop_page_id();\n\t\t}\n\n\t\tif ( fiorello_mikado_is_default_wp_template() ) {\n\t\t\treturn - 1;\n\t\t}\n\n\t\treturn get_queried_object_id();\n\t}", "abstract protected function determinePageId() ;" ]
[ "0.7464751", "0.7331858", "0.6998033", "0.684918", "0.67837024", "0.6652426", "0.65827894", "0.65649134", "0.65512705", "0.6410758", "0.6407157", "0.6303328", "0.6271649", "0.6237726", "0.622782", "0.6128163", "0.6117899", "0.609586", "0.6094829", "0.60832363", "0.60384274", "0.6033973", "0.59921354", "0.597756", "0.59719306", "0.59478265", "0.59355575", "0.59120536", "0.5902898", "0.5875311", "0.5864253", "0.5863506", "0.5859085", "0.58522654", "0.5851584", "0.5839198", "0.5838474", "0.58291584", "0.582041", "0.5809046", "0.57964504", "0.5795906", "0.57817316", "0.57608277", "0.57608277", "0.57608277", "0.5758356", "0.5752794", "0.5752794", "0.57379985", "0.57354224", "0.57120126", "0.5709073", "0.5685039", "0.5684903", "0.56815594", "0.5673913", "0.5673658", "0.565558", "0.56548893", "0.56548893", "0.5645546", "0.5644238", "0.5644238", "0.56316495", "0.56237894", "0.5614992", "0.5613497", "0.5600786", "0.5592627", "0.5591737", "0.5580079", "0.55498755", "0.5542626", "0.5531925", "0.55268407", "0.5507925", "0.54989505", "0.5497289", "0.54956245", "0.54956245", "0.5483134", "0.5473269", "0.5462972", "0.5461137", "0.5450423", "0.5443126", "0.544258", "0.5442104", "0.5439468", "0.5437021", "0.54317445", "0.5424739", "0.54205304", "0.54149747", "0.5412292", "0.54119486", "0.5408368", "0.54014474", "0.53946227" ]
0.75965595
0
Returns the ID of the top parent page of the page with the ID $id.
function get_top_parent_ID($id){ $page = get_page($id); $id = $page->post_parent; $parent = get_page($id); if ($parent->post_parent == 0){ return $id; } else{ return get_top_parent_ID($id); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getTopParentPostID($myid){\n\t$mypage = get_page($myid);\n\tif ($mypage->post_parent == 0){\n\t\treturn $mypage->ID;\n\t}\n\telse{\n\t\treturn getTopParentPostID($mypage->post_parent);\n\t}\n}", "private function get_parent($id)\n\t\t{\n\t\t\t$query = \"\tSELECT\n\t\t\t\t\t\t\t`MTN`.`parent` AS 'parent'\n\t\t\t\t\t\tFROM \n\t\t\t\t\t\t\t`\".$this->tree_node.\"` `MTN`\n\t\t\t\t\t\tWHERE 1 = 1\n\t\t\t\t\t\t\tAND `MTN`.`application_release`\t= '\".$this->application_release.\"'\n\t\t\t\t\t\t\tAND `MTN`.`id`\t\t= \".$id.\"\n\t\t\t\t\t\";\n\t\t\t$result = $this->link_mt->query($query);\n\t\t\t$row = $result->fetch_array(MYSQLI_ASSOC);\t\n\t\t\treturn $row['parent'];\t\t\n\t\t}", "function getParentPageID () {return $this->getFieldValue ('parent_page_id');}", "public function getParentID($id) {\n return $this->getData($id, 'parent_id');\n }", "public static function get_revision_parent_id( $id ) {\n\t\tglobal $wpdb;\n\t\t$sql = \"SELECT parent_id FROM {$wpdb->base_prefix}pp_revisions WHERE id = $id\";\n\n\t\treturn $wpdb->get_var( $sql );\n\t}", "protected function getParentPageID(){\n if( $this->displayBeneath == self::DISPLAY_PAGES_BENEATH_CURRENT ){\n return Page::getCurrentPage()->getCollectionID();\n }\n return $this->parentPageID;\n }", "Public function getParentPageId() {\n\t\tif(!empty($this->parent_pageid))\n\t\t\treturn $this->parent_pageid;\n\t\telse {\n\t\t\treturn false;\n\t\t}\n\t}", "function ww_get_top_parent( $id = null ) {\n global $post;\n $temp_post = $id ? get_post( $id ) : $post;\n while( $temp_post->post_parent != 0 ) {\n $temp_post = get_post( $temp_post->post_parent );\n }\n return $temp_post;\n}", "function getParent($id) {\n\t\t\t$this->query(\"SELECT parent FROM usecase WHERE id={$id};\");\n\t\t\t$rs = $this->resultSet();\n\t\t\tif($rs) {\n\t\t\t\t$usecase = $rs[0];\n\t\t\t\tif($usecase[\"parent\"] == \"\")\n\t\t\t\t\treturn 'NULL';\n\t\t\t\telse\n\t\t\t\t\treturn $usecase[\"parent\"];\n\t\t\t} else\n\t\t\t\treturn 'NULL';\n\t\t}", "public static function getParentID($id){\n $m = PostCategory::findOne($id);\n return $m->parent_id;\n }", "function getTopParentPostTitle($myid){\n\t$mypage = get_page($myid);\n\tif ($mypage->post_parent == 0){\n\t\treturn $mypage->post_title;\n\t}\n\telse{\n\t\treturn getTopParentPostTitle($mypage->post_parent);\n\t}\n}", "function getCatParent($id)\n\t{\n\t\tif(isNumber($id))return selectMezo(\"SELECT `cat_parent` FROM `\".$this->prefix.\"cat` WHERE `cat_id`=\".$id,\"cat_parent\");\n\t\treturn 0;\n\t}", "public function tree_get_parent($id = false) {\n global $db;\n if (!$id) {\n // Root-ID ermitteln\n if (!isset($this->id_root))\n $this->id_root = $db->fetch_atom(\"SELECT ID_KAT FROM `\".$this->table.\"` WHERE ROOT=\".$this->root.\" AND PARENT=0\");\n return $this->id_root;\n } else {\n // Parent eines Elements ermitteln\n return $db->fetch_atom(\"SELECT PARENT FROM `\".$this->table.\"` WHERE ROOT=\".$this->root.\" AND ID_KAT=\".$id);\n }\n }", "public function &getParent($id)\n {\n $pid = $this->elts[$id]->parent;\n return $this->elts[$pid] ?? null;\n }", "public function fetchParent($id)\n {\n $node = $this->fetchNodeById($id);\n $parentNode = $node->getParent();\n return $parentNode !== null ? $this->fetchNodeById($parentNode->getId()) : null;\n }", "public static function findParentPageID($pageId)\r\n {\r\n $lang = Zend_Registry::get(\"languageID\");\r\n $parentArray = new Pages();\r\n\r\n $select = $parentArray->select()\r\n ->setIntegrityCheck(false)\r\n ->from('Pages')\r\n ->joinLeft('PagesIndex', 'PI_PageID = P_ID')\r\n ->where('Pages.P_ID = ?', $pageId)\r\n ->where('PagesIndex.PI_LanguageID = ?', $lang);\r\n\r\n return $parentArray->fetchRow($select);\r\n }", "function _wswwpx_page_get_parent_id ( $child = 0 ) {\n\tglobal $wpdb;\n\t// Make sure there is a child ID to process\n\tif ( $child > 0 ) {\n\t\t$result = $wpdb->get_var(\"\n\t\t\t\t\t\t\t\t\tSELECT post_parent\n\t\t\t\t\t\t\t\t\t\tFROM $wpdb->posts\n\t\t\t\t\t\t\t\t\t\tWHERE ID = $child\");\n\t} else {\n\t\t// ... or set a zero result.\n\t\t$result = 0;\n\t}\n\t//\n\treturn $result;\n}", "public function parent()\n\t{\n\t\tif ($this->parent_id) {\n\t\t\tif (is_null($this->parent)) {\n\t\t\t\t$parent = \\PagesRepository::retrieve($this->parent_id);\n\t\t\t\t$this->parent = \\App::make('Monal\\Pages\\Models\\FrontendPage', $parent);\n\t\t\t}\n\t\t}\n\t\treturn $this->parent;\n\t}", "function _getParent($treeid) {\n $res = $this->CLASS['db']->query(sprintf(\"SELECT belongs_to FROM tree WHERE id=%d\",$treeid));\n $anz = $this->CLASS['db']->num_rows($res);\n\n if($anz == 1) {\n $row = $this->CLASS['db']->fetch_assoc($res);\n return $row['belongs_to'];\n } else {\n return 0;\n }\n }", "public function getParentPages($pageID){\n\t\t\t#we don't want getRecordByID to return JSON\n\t\t\t$tempAjax = $this->ajax;\n\t\t\t$this->ajax = false;\n\t\t\t\n\t\t\t#first time through our $pageID is numeric\n\t\t\tif(is_numeric($pageID)) $pageID = array($pageID);\n\t\t\t\n\t\t\t$tempPage = $this->getRecordByID($pageID[0]);\n\t\t\t$tp = mysqli_fetch_assoc($tempPage);\n\t\t\t#change back to what it was\n\t\t\t$this->ajax = $tempAjax;\n\n\t\t\t#not a root page\n\t\t\tif(is_numeric($tp[\"parentPageID\"])){\n\t\t\t\t$tempArray = array($tp[\"parentPageID\"]);\n\t\t\t\t$tempMerged = array_merge($tempArray,$pageID);\n\t\t\t\treturn $this->getParentPages($tempMerged);\n\t\t\t}\n\t\t\t#return root page\n\t\t\telse{\n\t\t\t\treturn $pageID;\n\t\t\t}\n\t\t}", "public function getParentId()\n {\n if (array_key_exists(\"parentId\", $this->_propDict)) {\n return $this->_propDict[\"parentId\"];\n } else {\n return null;\n }\n }", "public function get_parent_id() {\n\t\treturn $this->post->post_parent;\n\t}", "function get_top_ancestor_id(){\n\tglobal $post;\n\tif($post->post_parent){\n\t\t$ancestors= array_reverse(get_post_ancestors($post->ID));\n\t\treturn $ancestors[0];\n\t}\t\n\treturn $post->ID;\n}", "public function getParent_id() {\n\t\treturn $this->parent_id;\n\t}", "function getParentId($a_node_id)\n\t{\n\t\tglobal $ilDB;\n\t\t\n\t\tif (!isset($a_node_id))\n\t\t{\n\t\t\t$this->ilErr->raiseError(get_class($this).\"::getParentId(): No node_id given! \",$this->ilErr->WARNING);\n\t\t}\n\n\t\t$query = 'SELECT parent FROM '.$this->table_tree.' '.\n\t\t\t'WHERE child = %s '.\n\t\t\t'AND '.$this->tree_pk.' = %s ';\n\t\t$res = $ilDB->queryF($query,array('integer','integer'),array(\n\t\t\t$a_node_id,\n\t\t\t$this->tree_id));\n\n\t\t$row = $ilDB->fetchObject($res);\n\t\treturn $row->parent;\n\t}", "public function getParentId();", "public function getParentId();", "public function getParentId();", "public function getParentID()\n {\n return $this->parent_id;\n }", "public function getGrandparent() {\n\t\t\tglobal $db;\n\t\t\t$data = $db->get_var(\"SELECT parent FROM pages WHERE guid = (SELECT parent FROM pages where guid = '{$this->guid}')\"); \n\t\t\treturn $data;\n\t\t}", "function get_top_ancestor_id() {\n\n global $post;\n\n if ( $post->post_parent) {\n $ancestors = array_reverse(get_post_ancestors($post->ID));\n return $ancestors[0];\n }\n return $post->ID;\n}", "public function getParentId()\n\t{\n\t\treturn $this->parent_id;\n\t}", "function get_parent($obj = null){\n\tglobal $wp_query;\n\tif(!$obj){\n\t\t$obj = $wp_query->post;\n\t}\n\t\n\t// Checks to see if we've got a parent or not:\n\tif(empty($obj->post_parent))\n\t\treturn $obj->ID;\n\telse\n\t\treturn $obj->post_parent;\n}", "function page_parent($id_only=false) {\n\t\t\t$id = 'parent_id';\n\t\t\tif($id_only) {\n\t\t\t\treturn $id;\n\t\t\t}\n\t\t\treturn 'jQuery(\"#'.$id.' option:selected\").val()';\n\t\t}", "function get_root_id($id) {\n global $db;\n\n $comment = $db->table('comments')\n ->where('id', $id)\n ->first(['id', 'parent']);\n\n if (!$comment) {\n return $id;\n }\n\n if (!empty($comment->parent)) {\n return get_root_id($comment->parent);\n }\n\n return $comment->id;\n}", "public function getParentId()\n {\n return $this->parent_id;\n }", "public function getParentId()\n {\n return $this->parent_id;\n }", "public function getParentId()\n\t{\n\t\tif( isset( $this->values[$this->prefix . 'parentid'] ) ) {\n\t\t\treturn (string) $this->values[$this->prefix . 'parentid'];\n\t\t}\n\t}", "public static function page_url_get($id) {\n\n\t\t\t\t// $k = 0;\n\t\t\t\t// $pageUrl = '/';\n\t\t\t\t//\n\t\t\t\t// do {\n\t\t\t\t//\n\t\t\t\t// \t$sql = 'SELECT\n\t\t\t\t// \t\t\t\tparent_id,\n\t\t\t\t// \t\t\t\tref\n\t\t\t\t// \t\t\tFROM\n\t\t\t\t// \t\t\t\t' . DB_T_PREFIX . 'page\n\t\t\t\t// \t\t\tWHERE\n\t\t\t\t// \t\t\t\tid = ? AND\n\t\t\t\t// \t\t\t\tdeleted = \"0000-00-00 00:00:00\"';\n\t\t\t\t//\n\t\t\t\t// \t$parameters = [];\n\t\t\t\t// \t$parameters[] = intval($pageId);\n\t\t\t\t//\n\t\t\t\t// \tif ($row = $db->fetch_row($sql, $parameters)) {\n\t\t\t\t// \t\t$pageId = $row['parent_id'];\n\t\t\t\t// \t\t$pageUrl = '/' . $row['ref'] . $pageUrl;\n\t\t\t\t// \t} else {\n\t\t\t\t// \t\treturn NULL;\n\t\t\t\t// \t}\n\t\t\t\t//\n\t\t\t\t// } while ($pageId > 0 && $k++ < 10);\n\t\t\t\t//\n\t\t\t\t// if ($pageUrl == '/home/') {\n\t\t\t\t// \treturn '/';\n\t\t\t\t// } else {\n\t\t\t\t// \treturn $pageUrl;\n\t\t\t\t// }\n\n\t\t\t}", "function get_post_top_ancestor_id(){\n global $post;\n \n if($post->post_parent){\n $ancestors = array_reverse(get_post_ancestors($post->ID));\n return $ancestors[0];\n }\n \n return $post->ID;\n}", "public function getParent() : ?Page\n {\n $key = $this->getParentId();\n\n if (empty($key)) {\n return null;\n }\n\n return Page::Store()->getById($key);\n }", "protected function ParentID() {\n\treturn $this->GetFieldValue('ID_Parent');\n }", "public function getParentId()\n {\n return $this->parentId;\n }", "public function getParentId()\n {\n return $this->parentId;\n }", "function ss_get_parent_id( $child_id ) {\r\n\t$child = get_post( $child_id );\r\n\t$parentId = $child->post_parent;\r\n\treturn $parentId;\r\n}", "public function getIdParent()\n {\n return $this->id_parent;\n }", "public function getParentName() {\n\t\t\t$parent = new Page();\n\t\t\t$parent->loadByGUID($this->parent);\n\t\t\treturn $parent->name;\n\t\t}", "public function getIdParent() \n\t{\n\t\treturn $this->idParent;\n\t}", "public function getParentId()\n\t{\n\t\t/* @var $this \\creocoder\\nestedsets\\NestedSetsBehavior */\n\t\tif ($this->parentId === null && $this->depth > 0) {\n\t\t\t$this->parentId = $this->parents(1)->select('id')->scalar();\n\t\t}\n\n\t\treturn $this->parentId;\n\t}", "function parentID( )\r\n {\r\n return $this->ParentID;\r\n }", "public function get_parent_id()\n {\n return $this->get_default_property(self::PROPERTY_PARENT_ID);\n }", "public function get_parent_id()\n {\n return $this->get_default_property(self::PROPERTY_PARENT_ID);\n }", "public static function getParentCategory($id)\n {\n $sqlParentName = \"SELECT category_name FROM categories WHERE id_category=:id\";\n $database = new Database();\n $stmtParent = $database->connect()->prepare($sqlParentName);\n $stmtParent->bindValue(\":id\", $id);\n $stmtParent->execute();\n $resultParent = $stmtParent->fetchColumn();\n\n return $resultParent;\n }", "public function parents($id, $template_id, $site_id)\n\t{\n\t\t$stmt = $this->parentsSqlStatement();\n\t\t$stmt->bindValue(':id', $id, PDO::PARAM_INT);\n\t\t$stmt->bindValue(':template_id', $template_id, PDO::PARAM_INT);\n\t\t$stmt->bindValue(':site_id', $site_id, PDO::PARAM_INT);\n\t\t$stmt->execute();\n\n\t\t$result = $stmt->fetch();\n\n\t\tif($result != FALSE) {\n\t\t\t$this->parents[] = $result['parent_id'];\n\t\t\t$this->parents($result['parent_id'], $template_id, $site_id);\n\t\t}\n\n\t\treturn $this->parents;\n\t}", "public function get_plugin_parent_page(): string\n {\n return $this->plugin_parent_page;\n }", "function tutv_get_parent_title( $page = null ) {\n global $post;\n\n if ( ! $page ) {\n $page = $post->ID;\n }\n\n\n if ( empty( $post->post_parent ) ) { // if there is no parent...\n return get_the_title( $post->ID ); // return the current page's title\n } else { // if there is a parent...\n return get_the_title( $post->post_parent ); // return the parent's title\n }\n}", "public function getParent() {\n $parentNode = $this->getNode()->getParent();\n if (!$parentNode) {\n throw new PageException('Parent node not found (my page id is ' . $this->getId() . ')');\n }\n $parent = $parentNode->getPage($this->getLang());\n if (!$parent) {\n throw new PageException('Parent page not found (my page id is ' . $this->getId() . ')');\n }\n return $parent;\n }", "public function getParent()\n {\n return $this->hasOne(Pages::className(), ['id' => 'parent_id']);\n }", "function get_admin_page_parent($parent_page = '')\n {\n }", "function getParent($treeid) {\n $hashkey = md5('getparent_'.$treeid);\n if(!($this->CLASS['cache']->load($hashkey))) {\n $data = $this->_getParent($treeid);\n $this->CLASS['cache']->save($data, $hashkey, array('system', 'tree'));\n }\n\n return $data;\n }", "public function parent(){\n return $this->where('id', $this->parent_id)->first();\n }", "function wp_get_post_parent_id($post = \\null)\n {\n }", "public function getParent() {\r\n\t\tif ($this->pzkParentId) {\r\n\t\t\treturn pzk_store_element($this->pzkParentId);\r\n\t\t}\r\n\t\treturn NULL;\r\n\t}", "public function getPreviousID($id) {\n\t\t\t$hash = $this->execSQL(\"\n\t\t\t\tSELECT (t.stdrefid, t.area)::varchar AS f\n\t\t\t\t FROM webset.std_backup AS t\n\t\t\t\t WHERE refid = \" . $id . \"\n\t\t\t\")->getOne();\n\n\t\t\t$prev_id = $this->execSQL(\"\n\t\t\t\tSELECT refid\n\t\t\t\t FROM webset.std_backup\n\t\t\t\t WHERE (stdrefid, area)::varchar = '\" . $hash . \"'\n\t\t\t\t AND refid < \" . $id . \"\n\t\t\t\t ORDER BY 1 DESC LIMIT 1\n\t\t\t\")->getOne();\n\t\t\t\n\t\t\treturn (int)$prev_id;\n\t\t}", "public function get_parent();", "function getParentIdByRelatedId($related_id)\n\t{\n\t\tglobal $conn;\n\t\t\n\t\t$sql = \t\"\n\t\t\tSELECT UserComment.*\n\t\t\tFROM user_comments AS UserComment\n\t\t\t\n\t\t\tWHERE\tUserComment.related_id = :related_id\n\t\t\tAND\tUserComment.parent_id is null\n\t\t\tLIMIT 1\n\t\t\t\";\n\t\t\n\t\t$stmt = $conn->prepare($sql);\n\t\t$stmt->execute(array('related_id' => $related_id));\n\t\t$res = $stmt->fetch();\n\t\treturn empty($res) ? 0 : $res['id'];\n\t}", "final protected function parentId() {return $this->r('originalId');}", "public function ask_get_top_level_id_quest($id)\n\t{\n\t\t$sql = \"SELECT id_quest\n\t\t\t\tFROM \".$this->table_ask.\"\n\t\t\t\tWHERE id = ?\";\n\t\t$id_quest = $id;\n\t\t$data = array();\n\t\twhile($id_quest != -1)\n\t\t{\n\t\t\t$data = array($id_quest);\n\t\t\t$query = $this->db->query($sql, $data);\n\t\t\tif( $query->row() == NULL )\n\t\t\t\treturn -1;\n\t\t\t$id_quest = $query->row()->id_quest;\n\t\t}\n\t\t\n\t\treturn $data[0];\n\t}", "public function getParentInvoiceId()\n {\n return $this->getParameter('parentInvoiceId');\n }", "protected function _getAssetParentId(JTable $table = null, $id = null)\n\t{\n\t\t// We will retrieve the parent-asset from the Asset-table\n\t\t$assetParent = JTable::getInstance('Asset');\n\n\t\t// Default: if no asset-parent can be found we take the global asset\n\t\t$assetParentId = $assetParent->getRootId();\n\n\t\t// The item has the component as asset-parent\n\t\t$assetParent->loadByName('com_labgenevet');\n\n\t\t// Return the found asset-parent-id\n\t\tif ($assetParent->id)\n\t\t{\n\t\t\t$assetParentId = $assetParent->id;\n\t\t}\n\n\t\treturn $assetParentId;\n\t}", "protected function _getAssetParentId(JTable $table = NULL, $id = NULL)\n {\n // We will retrieve the parent-asset from the Asset-table\n $assetParent = JTable::getInstance('Asset');\n // Default: if no asset-parent can be found we take the global asset\n $assetParentId = $assetParent->getRootId();\n\n // Find the parent-asset\n\n // The item has the component as asset-parent\n $assetParent->loadByName('com_svglink');\n\n\n // Return the found asset-parent-id\n if ($assetParent->id) {\n $assetParentId = $assetParent->id;\n }\n return $assetParentId;\n }", "function ss_get_parent_url( $child_id ) {\r\n\t$child = get_post( $child_id );\r\n\t$parentId = $child->post_parent;\r\n\t$linkToParent = get_permalink( $parentId );\r\n\treturn $linkToParent;\r\n}", "public function parent()\n {\n if ( !$this->loaded )\n $this->reload();\n\n if ($this->is_root())\n return NULL;\n\n if ( ! in_array('parent', $this->_objects) )\n {\n $sql = \"SELECT * FROM $this->_table_name\n WHERE \n $this->primary_column = $this->parent_key\n ORDER BY \". $this->_sorting[0] .\" \". $this->_sorting[1] .\"\n \";\n\n $result = $this->_db->query($sql);\n\n $this->_objects['parent'] = $this->factory_set($result)[0];\n }\n\n return $this->_objects['parent'];\n }", "function email_get_parentfolder($folderid) {\n\n\t// Get parent for this child\n\t$parent = get_record('email_subfolder', 'folderchildid', $folderid);\n\n\t// If has parent\n\tif ( $parent ) {\n\n\t\t$folder = email_get_folder($parent->folderparentid);\n\n\t\t// While not find parent root, searching...\n\t\twhile ( is_null($folder->isparenttype) ) {\n\t\t\t// Searching ...\n\t\t\t$parent = get_record('email_subfolder', 'folderchildid', $folder->id);\n\t\t\t$folder = email_get_folder($parent->folderparentid);\n\t\t}\n\n\t\treturn $folder;\n\n\t} else {\n\t\t// If no parent, return false => FATAL ERROR!\n\t\treturn false;\n\t}\n}", "public function getParentByGUID($guid) {\n\t\t\tglobal $db;\n\t\t\t$query = \"SELECT parent FROM pages WHERE guid = '$guid'\";\n\t\t\t$data = $db->get_var($query);\n\t\t\treturn $data;\n\t\t}", "public static function getTopLevelParent($informationObject) {\n\n if (get_class($informationObject) != 'QubitInformationObject') return;\n\n if ($informationObject->parent) {\n $topLevelParent = $informationObject->parent;\n while ($topLevelParent->parent && $topLevelParent->parent->id != QubitInformationObject::ROOT_ID)\n {\n $topLevelParent = $topLevelParent->parent;\n }\n }\n return $topLevelParent->id;\n }", "public function currentPageID() {\n if(is_numeric($this->getRequest()->requestVar('ID')))\t{\n return $this->getRequest()->requestVar('ID');\n } elseif (is_numeric($this->urlParams['ID'])) {\n return $this->urlParams['ID'];\n } elseif(Session::get(\"{$this->class}.currentPage\")) {\n return Session::get(\"{$this->class}.currentPage\");\n } else {\n return 0;\n }\n }", "public function getPageId() {\r\n\t\treturn $this->_id;\r\n\t}", "public function possibleParents($id)\n {\n $prts = array(\"\" => \"-\");\n foreach (StaticPage::model()->findAll() as $p) {\n if ($p->id == $id) continue;\n $prts[$p->id] = $p->title;\n }\n return $prts;\n }", "public function parentId(): string\n {\n return $this->parentId;\n }", "public function setParentMessageID($id) {\n $this->setParam('parent-message-id', $id);\n return $this;\n }", "public function getParentId(): string;", "private function getNavigationUrl(int $id): string\n {\n $url = (array) Model::getContainer()->get('database')->getRecord(\n 'SELECT id, url FROM backend_navigation WHERE id = ?',\n [$id]\n );\n\n if (empty($url)) {\n return '';\n }\n\n if (!empty($url['url'])) {\n return $url['url'];\n }\n\n // get the first child as fallback\n $childId = (int) Model::getContainer()->get('database')->getVar(\n 'SELECT id FROM backend_navigation WHERE parent_id = ? ORDER BY sequence ASC LIMIT 1',\n [$id]\n );\n\n return $this->getNavigationUrl($childId);\n }", "public function page_nav_pre($page_id, $page_parent_id){\n \n\t\t\t\t$page_pre_id=$page_id-1;\n\t\t\t\t$selectissue=\"SELECT * FROM `pages` WHERE `page_id`='$page_pre_id' AND `page_parent_id`='$page_parent_id'\";\n\t\t\t\t$issueresult = mysqli_query($this->db,$selectissue) or die(mysqli_connect_errno().\"Data cannot inserted\");\n \t\treturn $issueresult;\n\t\t}", "public function getPreviousRecordId($id)\n {\n return $this->model->where('id', '<', $id)->max('id');\n // return \\DB::table($this->model->getTable())->where('id', '<', $id)->orderBy('id','desc')->first()->id; // For performance testing\n }", "public function getParentItemId() {\n return $this->item->getParentItemId();\n }", "function level($id) {\n\t\tif (exist(\"pages\", \"id\", $id)) {\n\t\t\t$nextPage = query(\"SELECT * FROM `pages` WHERE `id` = '{$id}'\");\n\t\t\treturn \"&nbsp;&nbsp;&nbsp;\" . level($nextPage['parentPage']);\n\t\t}\n\t}", "function simple_pages_earliest_ancestor_page($pageId)\n{\n if ($pageId === null) {\n $page = get_current_record('simple_pages_page');\n } else {\n $page = get_db()->getTable('SimplePagesPage')->find($pageId);\n }\n\n $pageAncestors = get_db()->getTable('SimplePagesPage')->findAncestorPages($page->id);\n return end($pageAncestors);\n}", "public function get_page_id() {\n\t\t\treturn $this->current_page_id;\n\t\t}", "public function getParentIdentifier()\n {\n return $this->parent;\n }", "function & get_parent($id, $add_sql = array())\r\n\t{\r\n\t\tif (!($child = $this->get_node($id)))\r\n\t\t{\r\n \tdebug :: write_error(NESE_ERROR_NOT_FOUND,\r\n \t\t __FILE__ . ' : ' . __LINE__ . ' : ' . __FUNCTION__, \r\n \t\tarray('id' => $id)\r\n \t);\r\n\t\t\treturn false;\r\n\t\t} \r\n\r\n\t\tif ($child['id'] == $child['root_id'])\r\n\t\t{\r\n\t\t\treturn false;\r\n\t\t} \r\n\t\t// If parent node is set inside the db simply return it\r\n\t\tif (isset($child['parent_id']) && !empty($child['parent_id']))\r\n\t\t{\r\n\t\t\treturn $this->get_node($child['parent_id'], $add_sql);\r\n\t\t} \r\n\r\n\t\t$add_sql['append'][] = sprintf('AND %s.level = %s',\r\n\t\t\t$this->_node_table,\r\n\t\t\t$child['level']-1);\r\n\r\n\t\t$node_set =& $this->get_parents($id, $add_sql);\r\n\r\n\t\tif (!empty($node_set))\r\n\t\t\treturn current($node_set);\r\n\t\telse\r\n\t\t\treturn false;\r\n\t}", "public function loadParent()\n {\n $id = $this->_cache->getBackend()->getParentId($this);\n return $this->setParentId($id);\n }", "protected function get_parent()\r\n {\r\n return $this->parent;\r\n }", "public function get_parent() {\n\t\treturn $this->parent();\n\t}", "public function getParent()\n {\n return $this->Root->parentOfSection($this->URLSegment);\n }", "public function getIdWithParent($parent, $projectid) {\n\t\t\t$this->query(\"SELECT usecaseid FROM usecase WHERE parent={$parent} AND projectid = {$projectid} ORDER BY length(usecaseid) desc, usecaseid DESC LIMIT 1;\");\n\t\t\t$rs = $this->resultSet();\n\t\t\tif(!$rs) {\n\t\t\t\t$this->query(\"SELECT usecaseid FROM usecase WHERE id={$parent};\");\n\t\t\t\t$rs = $this->resultSet();\n\t\t\t\t$usecase = $rs[0];\n\t\t\t\t$id = $usecase[\"usecaseid\"].\".1\";\n\t\t\t} else {\n\t\t\t\t$usecase = $rs[0];\n\t\t\t\t$numbers = explode(\".\", $usecase[\"usecaseid\"]);\n\t\t\t\t$lastdigit = $numbers[count($numbers) - 1] + 1;\n\t\t\t\t$id = \"\";\n\t\t\t\tfor($i = 0; $i < count($numbers) - 1; ++$i)\n\t\t\t\t\t$id .= $numbers[$i].\".\";\n\t\t\t\t$id .= $lastdigit;\n\t\t\t}\n\t\t\treturn $id;\n\t\t}", "public function getParentId() : ?string\n {\n $rtn = $this->data['parent_id'];\n\n return $rtn;\n }", "protected function determineParentTariff()\n {\n if ($this->tariff === null) {\n if (!empty($this->parent_id)) {\n return $this->parent_id;\n }\n\n return null;\n }\n\n if ($this->tariff->parent_id !== null) {\n return $this->tariff->parent_id;\n }\n\n return $this->tariff->id;\n }", "private function getParentId($request)\n {\n return $request->getParsedBody()['parent_id'] ?? null;\n }", "function get_tpa(){\n\tglobal $post;\n\tif($post->post_parent){\n\t\t$ancestors = array_reverse(get_post_ancestors($post->ID));\n\t\treturn $ancestors[0];\n\t}\n\treturn $post->ID;\n}" ]
[ "0.78996795", "0.76445186", "0.7548762", "0.7524146", "0.74940497", "0.7349424", "0.7295498", "0.7255042", "0.70931756", "0.70066893", "0.6967851", "0.69583005", "0.689399", "0.68102276", "0.6723001", "0.6714475", "0.664707", "0.6606848", "0.65609664", "0.6476692", "0.6469517", "0.64517796", "0.64425486", "0.6434207", "0.6431269", "0.64303064", "0.64303064", "0.64303064", "0.6423078", "0.64205503", "0.6381484", "0.6337778", "0.6305931", "0.6286807", "0.62587416", "0.6244724", "0.6244724", "0.6239475", "0.6231907", "0.62207216", "0.6201956", "0.6201645", "0.6174366", "0.6174366", "0.6162538", "0.61578715", "0.6156699", "0.6139789", "0.612051", "0.6118625", "0.6096217", "0.6096217", "0.6082085", "0.6081629", "0.6075275", "0.6067619", "0.6060202", "0.6059433", "0.60526025", "0.60435206", "0.60268164", "0.60266495", "0.6003465", "0.59861106", "0.59832567", "0.59454036", "0.59296674", "0.59251237", "0.59219825", "0.5905362", "0.58759505", "0.58665156", "0.5862982", "0.58286715", "0.58154416", "0.58074266", "0.5801501", "0.5794439", "0.5793834", "0.5792167", "0.5788225", "0.57837504", "0.5776833", "0.5767738", "0.5764538", "0.5760527", "0.5757884", "0.5752222", "0.5745209", "0.573198", "0.5722525", "0.57219946", "0.5717617", "0.5716207", "0.570994", "0.57029486", "0.56866753", "0.56836116", "0.5674254", "0.56733197" ]
0.8683623
0
Get the the menu object from a specific location.
function get_menu_by_location( $location ) { if( empty($location) ) return false; $locations = get_nav_menu_locations(); if( ! isset( $locations[$location] ) ) return false; $menu_obj = get_term( $locations[$location], 'nav_menu' ); return $menu_obj; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_nav_menu_items_by_location( $location, $args = [] ) {\n // Get all locations\n $locations = get_nav_menu_locations();\n // Get object id by location\n $object = wp_get_nav_menu_object( $locations[$location] );\n // Get menu items by menu name\n $menu_items = wp_get_nav_menu_items( $object->name, $args );\n // Return menu post objects\n return $menu_items;\n}", "function &getMenu()\n {\n static $s_instance = NULL;\n if ($s_instance==NULL)\n {\n atkdebug(\"Creating a new menu instance\");\n $classname = atkMenu::getMenuClass();\n\n\n $filename = getClassPath($classname);\n if (file_exists($filename)) $s_instance = atknew($classname);\n else\n {\n atkerror('Failed to get menu object ('.$filename.' / '.$classname.')!');\n atkwarning('Please check your compatible_menus in themedef.inc and config_menu_layout in config.inc.php.');\n $s_instance = atknew('atk.menu.atkplainmenu');\n }\n\n // Set the dispatchfile for this menu based on the theme setting, or to the default if not set.\n // This makes sure that all calls to dispatch_url will generate a url for the main frame and not\n // within the menu itself.\n $theme = &atkinstance(\"atk.ui.atktheme\");\n $dispatcher = $theme->getAttribute('dispatcher', atkconfig(\"dispatcher\", \"dispatch.php\")); // do not use atkSelf here!\n $c = &atkinstance(\"atk.atkcontroller\");\n $c->setPhpFile($dispatcher);\n\n atkHarvestModules(\"getMenuItems\");\n }\n\n return $s_instance;\n }", "function block_core_navigation_get_menu_items_at_location($location)\n {\n }", "protected function get_menu() {\n\t\t\n\t\tif ( ( $locations = get_nav_menu_locations() )\n\t\t\t&& isset( $locations[ $this->menu_name ] ) ){\n\t\t\t$this->menu_id = $locations[ $this->menu_name ];\n\t\t}else{\n\t\t\t$this->menu_id = null;\n\t\t}\n\n\t\t$this->menu = wp_get_nav_menu_items( $this->menu_id );\n\t}", "public function getMenu(){\n\n\t\treturn $this->get();\n\t}", "function get_nav_menu_items_by_location ( $location, $args = [] ) {\n\t$menu_items = [];\n\t$locations = get_nav_menu_locations();\n\n\tif ( array_key_exists( $location, $locations ) ) {\n\t\t$object = wp_get_nav_menu_object( $locations[ $location ] );\n\t\t$menu_items = wp_get_nav_menu_items( $object->name, $args );\n\t}\n\n\treturn $menu_items;\n}", "public function getMenu();", "public function get($name) {\n\n\t\tif (isset(self::$_menus[$name])) {\n\t\t\treturn self::$_menus[$name];\n\t\t}\n\n\t\tself::$_menus[$name] = $this->app->object->create('ZlMenu', array($name));\n\n\t\treturn self::$_menus[$name];\n\t}", "function getMenuPosition();", "public function getMenu($level = 1) {\n\t\treturn singleton('ContentController')->getMenu($level);\n\t}", "public function find($position)\n {\n return $this->config->get(\"_menus.{$position}\");\n }", "public function get_menu_id($location){\n $locations=get_nav_menu_locations();\n // Get menu id from their locations \n $menu_id=$locations[$location];\n return $menu_id;\n }", "static public function getMenu() {\n $query = mysql_query(\"SELECT `menu` FROM `info` WHERE `id` = '0'\");\n return mysql_result($query, 0, 'menu');\n }", "public static function get($location)\n {\n $menu = static::getFrontendItems($location);\n\n if ($menu) {\n return $menu;\n }\n\n return [];\n }", "public static function getMenu()\n\t{\n\t\treturn self::$menu;\n\t}", "public function menu()\n {\n return $this->menu;\n }", "public function menu()\n {\n return $this->menu;\n }", "function tacensi_get_menu ( $location ) {\n\t$locations = get_nav_menu_locations();\n\t$menu_id = $locations[$location];\n\n\t// bail out if can't find the menu or the items\n\tif ( ! $menu_id ) return false;\n\n\t$nav = wp_get_nav_menu_items( $menu_id );\n\tif ( ! $nav ) return false;\n\n\t// menu_output\n\t$menu_out = '<nav class=\"site-nav\">' . \"\\n\";\n\n\t// current URL for active class\n\t$current_url = home_url() . $_SERVER[\"REQUEST_URI\"];\n\n\t// actual nav items\n\tforeach ( $nav as $item ) {\n\t\t$menu_out .= '<a href=\"' . $item->url . '\" ' .\n\t\t\t'class=\"site-nav__item';\n\n\t\tif ( strstr( $current_url, $item->url ) ) {\n\t\t\t$menu_out .= ' current';\n\t\t}\n\n\t\t$menu_out .= '\">' . $item->title . '</a>' . \"\\n\";\n\t}\n\n\t$menu_out .= '</nav>' . \"\\n\";\n\n\techo $menu_out;\n}", "public function getMenu()\n\t{\n\t\treturn $this->menu;\n\t}", "public function getMenu($instance=false){\n if ($instance && !is_object($this->_data['menu'])){\n $this->setMenu('',array('required'=>false));\n }\n return $this->_data['menu'];\n }", "public function getMenu() {\n\t\treturn $this->menu;\n\t}", "function get_menu_id_by_location( $location ) {\n\t$locations = get_nav_menu_locations();\n\n\t$menu = isset( $locations[ $location ] ) ? wp_get_nav_menu_object( $locations[ $location ] ) : '';\n\n\treturn $menu->term_id ?? false;\n}", "public function MenuCurrentItem() {\n return $this->MainMenu()->find('Code', 'KapostAdmin');\n }", "public static function getMenu()\n {\n $svalue = SessionManager::get(self::SESSION_NAME);\n return $svalue ? unserialize($svalue) : self::$menu;\n }", "public function get_menu()\n\t{\n\t\treturn $this->get_session('admin_menu_html');\n\t}", "public function getMenuItemById(int $id): object\n {\n return MenuItem::select(\n 'id',\n 'menu_id',\n 'url_type',\n 'title',\n 'url',\n 'route',\n 'icon'\n )\n ->where('id', $id)\n ->first();\n }", "public function getMenu()\n {\n if (!isset($_SESSION['centreon'])) {\n throw new \\RestUnauthorizedException('Session does not exists.');\n }\n /**\n * Initialize the language translator\n */\n $this->dependencyInjector['translator'];\n $menu = new Menu($this->pearDB, $_SESSION['centreon']->user);\n\n return $menu->getMenu();\n }", "function my_get_menu($location){\n\t$menu_locations = get_nav_menu_locations();\n\t$hero_menu = $menu_locations[$location];\n\t$menu_items = wp_get_nav_menu_items( $hero_menu );\n\t\n\t$menu_ordered = array();\n\t\n\tforeach ($menu_items as $item){\n\t\tif ($item->menu_item_parent == 0){\n\t\t\t$menu_ordered[$item->ID] = $item;\n\t\t\t$menu_ordered[$item->ID]->children = array();\n\t\t}\n\t\telse {\n\t\t\t$menu_ordered[$item->menu_item_parent]->children[] = $item;\n\t\t}\n\t}\n\t\n\treturn $menu_ordered;\n}", "public function getPageMenu() {\n\t\t\tglobal $factory_impressive_page_menu;\n\n\t\t\treturn $factory_impressive_page_menu[ $this->getMenuScope() ];\n\t\t}", "static function create_menu($menu_name, $location) {\n if (!in_array($menu_name, self::$allowed_menu_names)) {\n self::kill(__CLASS__, __FUNCTION__, 'menu_name is not in allowed_menu_names.');\n }\n\n $menu_exists = wp_get_nav_menu_object( $menu_name );\n if ($menu_exists === false) { // check if the menu already exists\n $menu_id = wp_create_nav_menu($menu_name);\n if (is_wp_error($menu_id)) {\n self::kill(__CLASS__, __FUNCTION__, $menu_id->get_error_message());\n }\n\n $menu_spots_array = get_theme_mod('nav_menu_locations');\n // activate the menu only if it's not already active\n if (!isset($menu_spots_array[$location]) or $menu_spots_array[$location] != $menu_id) {\n $menu_spots_array[$location] = $menu_id;\n set_theme_mod('nav_menu_locations', $menu_spots_array);\n }\n\n return $menu_id;\n } else {\n return $menu_exists->term_id;\n }\n }", "static function getUserMenu()\r\n {\r\n if(isset($_SESSION[Session::MENU]))\r\n return $_SESSION[Session::MENU];\r\n else return null;\r\n }", "function getMenu()\n {\n return $this->getAttribute(\"menu\");\n }", "function bf_get_menu_location_name_from_id( $location ) {\n\n\t\t$locations = get_registered_nav_menus();\n\n\t\tif ( isset( $locations[ $location ] ) ) {\n\t\t\treturn $locations[ $location ];\n\t\t}\n\n\t}", "public function getMenu()\n {\n if (!$this->hasMenu()) {\n $this->setMenu(false);\n\n $menu = $this->menuFactory->create()->load($this->_getData('nav_menu'));\n\n if ($menu->getId()) {\n $this->setMenu($menu);\n }\n }\n\n return $this->_getData('menu');\n }", "public static function menu(){\n return new sai_module_menu( 1,\n sai_module_menu::POISITION_RIGHT,\n sai_module_menu::DIVIDER_NONE,\n \\SYSTEM\\PAGE\\replace::replaceFile((new \\SYSTEM\\PSAI('modules/saimod_sys_git/tpl/menu.tpl'))->SERVERPATH()));}", "public function getMenu( string $name )\n {\n return (isset($this->menus[$name])) ? $this->menus[$name] : null;\n }", "function get_menu($param = NULL)\n\t{\n\t\tif (isset($param[\"icon\"]) and substr($param[\"icon\"], 0, 4) === \"http\")\n\t\t{\n\t\t\t$icon = $param[\"icon\"];\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$icon_name = empty($param[\"icon\"]) ? \"cog\" : $param[\"icon\"];\n\t\t\t$icon = icons::get_std_icon_url($icon_name);\n\t\t}\n\n\n\t\t$is = \"\";\n\t\tforeach($this->menus as $parent => $menudata)\n\t\t{\n\t\t\t$is .= '<div id=\"'.$parent.'\" class=\"menu\" onmouseover=\"menuMouseover(event)\">'.\"\\n${menudata}</div>\\n\";\n\t\t};\n\t\t$this->vars(array(\n\t\t\t\"ss\" => $is,\n\t\t\t\"menu_id\" => $this->menu_id,\n\t\t\t\"menu_icon\" => $icon,\n\t\t\t\"alt\" => isset($param[\"alt\"]) ? $param[\"alt\"] : null\n\t\t));\n\n\t\tif (!empty($param[\"text\"]))\n\t\t{\n\t\t\t$this->vars(array(\n\t\t\t\t\"text\" => $param[\"text\"]\n\t\t\t));\n\t\t\t$this->vars(array(\n\t\t\t\t\"HAS_TEXT\" => $href_ct = $this->parse(\"HAS_TEXT\")\n\t\t\t));\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->vars(array(\n\t\t\t\t\"HAS_ICON\" => $href_ct = $this->parse(\"HAS_ICON\")\n\t\t\t));\n\t\t}\n\n\t\tif (!empty($param[\"is_toolbar\"]))\n\t\t{\n\t\t\t$this->vars(array(\n\t\t\t\t\"IS_TOOLBAR\" => $this->parse(\"IS_TOOLBAR\")\n\t\t\t));\n\t\t}\n\t\t\n\t\tif (aw_template::bootstrap())\n\t\t{\n\t\t\t$this->vars(array(\n\t\t\t\t\"DROPDOWN\" => $this->__parse_dropdown($this->menu_id),\n\t\t\t));\n\t\t}\n\n\t\tif (is_array($param) && !empty($param[\"load_on_demand_url\"]))\n\t\t{\n\t\t\tstatic $lod_num;\n\t\t\t$lod_num++;\n\t\t\treturn \"<div id='lod_\".$this->menu_id.\"'><a href='javascript:void(0);' onClick='tb_lod\".$lod_num.\"()' class='nupp'>$href_ct</a></div>\n\t\t\t<script language=javascript>\n\t\t\tfunction tb_lod\".$lod_num.\"()\n\t\t\t{\n\t\t\t\tel = document.getElementById(\\\"lod_\".$this->menu_id.\"\\\");\n\t\t\t\tel.innerHTML=aw_get_url_contents(\\\"\".$param[\"load_on_demand_url\"].\"\\\");\n\t\t\t\tnhr=document.getElementById(\\\"href_\".$this->menu_id.\"\\\");\n\t\t\t\tif (document.createEvent) {evObj = document.createEvent(\\\"MouseEvents\\\");evObj.initEvent( \\\"click\\\", true, true );nhr.dispatchEvent(evObj);}\n\t\t\t\telse {\n\t\t\t\t\tnhr.fireEvent(\\\"onclick\\\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t</script>\n\t\t\t\";\n\t\t}\n\n\t\treturn $this->parse();\n\t}", "function loadMenu($arg_menu_name)\n{\n\tINCLUDE('menus/' . $arg_menu_name . '.mnu');\n\treturn $menu;\n}", "public static function Get_Menu_Location($namespace)\n {\n global $Options;\n }", "public function getMenu()\n {\n return $this->hasOne(\\wdmg\\menu\\models\\Menu::class, ['id' => 'menu_id']);\n }", "function get_menu_name_by_location( $location ) {\n\t$locations = get_nav_menu_locations();\n\n\t$menu = isset( $locations[ $location ] ) ? wp_get_nav_menu_object( $locations[ $location ] ) : '';\n\n\treturn $menu->name ?? '';\n}", "public function getMenu()\n {\n return null;\n }", "static public function _MENU(){\n if (b_reg::$current_module == VM_MODULE) start_VM();\n return loader::_fromCache('APImenu_vm'); \n }", "private function getMenu($restaurantId) {\n if (!array_key_exists($restaurantId, $this->menus)) {\n $this->menus[$restaurantId] = new Menu();\n }\n /** @var Menu $menu */\n return $this->menus[$restaurantId];\n }", "function menu_item($menu_name, $menu_url) {\n\telgg_deprecated_notice('menu_item() is deprecated by add_submenu_item', 1.7);\n\treturn make_register_object($menu_name, $menu_url);\n}", "public function bySlug($menuSlug)\n {\n return Menu::with('permission')->whereSlug($menuSlug)->first();\n }", "public function getModel()\n {\n return new Menu();\n }", "function get($name, array $options = array())\n {\n $node = $this->em->getRepository($this->className)->findOneByLabel($name);\n if (!$node)\n throw new \\InvalidArgumentException(sprintf('The menu \"%s\" is not defined.', $name));\n \n $menu = $this->factory->createFromNode($node); \n $menu->setCurrentUri($this->container->get('request')->getRequestUri());\n\n return $menu;\n }", "function getMenuItem($ID)\n {\n }", "static function nav_menu( $location ) {\n\t\tif ( has_nav_menu( $location ) ) {\n\t\t\twp_nav_menu(\n\t\t\t\tarray(\n\t\t\t\t\t'theme_location' => $location,\n\t\t\t\t\t'menu_class' => 'nav-menu',\n\t\t\t\t)\n\t\t\t);\n\t\t} else {\n\t\t\t_e( 'Please assign a menu to this location. See Admin Panel: Appearance > Menus ', 'qstheme' );\n\t\t}\n\t}", "public function getMenuPath(): ?string;", "public function getMenus() {}", "function _quick_menu () {\n\t\t$menu = array(\n\t\t\tarray(\n\t\t\t\t\"name\"\t=> ucfirst($_GET[\"object\"]).\" main\",\n\t\t\t\t\"url\"\t=> \"./?object=\".$_GET[\"object\"],\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t\"name\"\t=> \"\",\n\t\t\t\t\"url\"\t=> \"./?object=\".$_GET[\"object\"],\n\t\t\t),\n\t\t);\n\t\treturn $menu;\t\n\t}", "protected function getMenu() {\n $lMethods = $this->allcsvfilelist();\n natcasesort($lMethods);\n \n $lInherited = get_class_methods('CCor_Cnt');\n $lMenu = new CHtm_Vmenu(lan('sys-doc.menu'));\n foreach ( $lMethods as $lMethod ) {\n if (substr($lMethod, 0, 3) != 'act')\n continue;\n /*\n * if (substr ( $lMethod, 3, 1 ) == 'S')\n * continue;\n */\n if (in_array($lMethod, $lInherited))\n continue;\n \n $lAct = substr($lMethod, 3);\n $lMenu->addItem($lMethod, 'index.php?act=sys-doc.' . strtolower($lAct), $lAct);\n }\n \n $lMenu->setKey('act' . ucfirst($this->mAct));\n return $lMenu;\n }", "function get_nav_menu_locations()\n {\n }", "function mf_get_menu_name($location){\n if(!has_nav_menu($location)) return false;\n $menus = get_nav_menu_locations();\n $menu_title = wp_get_nav_menu_object($menus[$location])->name;\n return $menu_title;\n}", "public function getId()\n\t{\n\t\treturn $this->get(self::$menuId);\n\t}", "public function getMenuById($id) {\r\n $sql = $this->db->query(\"SELECT * FROM ms_menu WHERE menuid = '$id'\");\r\n if ($sql->num_rows() > 0) {\r\n return $sql->row_array();\r\n }\r\n return null;\r\n }", "function wp_get_nav_menu_name($location)\n {\n }", "public function menu( )\n {\n\n if( $this->view->isType( View::SUBWINDOW ) )\n {\n $view = $this->view->newWindow('WebfrapMainMenu', 'Default');\n }\n else if( $this->view->isType( View::MAINTAB ) )\n {\n $view = $this->view->newMaintab('WebfrapMainMenu', 'Default');\n $view->setLabel('Explorer');\n }\n else\n {\n $view = $this->view;\n }\n\n $view->setTitle('Webfrap Main Menu');\n\n $view->setTemplate( 'webfrap/menu/modmenu' );\n\n $modMenu = $view->newItem( 'modMenu', 'MenuFolder' );\n $modMenu->setData( DaoFoldermenu::get('webfrap/root',true) );\n\n }", "function import_menu_location(){\r\n\r\n\t\t$data = array(\r\n 'primary' => 'kleonavmenu',\r\n 'top' => 'kleotopmenu'\r\n );\r\n\t\t$menus = wp_get_nav_menus();\r\n\r\n\t\tforeach( $data as $key => $val ){\r\n\t\t\tforeach( $menus as $menu ){\r\n\t\t\t\tif( $menu->slug == $val ){\r\n\t\t\t\t\t$data[$key] = absint( $menu->term_id );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tset_theme_mod( 'nav_menu_locations', $data );\r\n\t}", "protected function getActiveMenu() {\n return $this->activeMenu;\n }", "function cloudfw_get_editing_menu_location( $nav_menu_id = NULL ) {\n\tif ( !$nav_menu_id )\n\t\t$nav_menu_id = isset( $_REQUEST['menu'] ) ? (int) $_REQUEST['menu'] : 0;\n\n\tif ( !$nav_menu_id )\n\t\t$nav_menu_id = (int) get_user_option( 'nav_menu_recently_edited' );\n\n\tif ( !$nav_menu_id )\n\t\treturn false;\n\n\tif ( cloudfw_vc_isset( __FUNCTION__, $nav_menu_id ) )\n\t\treturn cloudfw_vc_get( __FUNCTION__, $nav_menu_id );\n\n\t$locations = (array) get_nav_menu_locations();\n\t$current_location = array_search($nav_menu_id, $locations);\n\n\treturn cloudfw_vc_set( __FUNCTION__, $nav_menu_id, $current_location );\n}", "protected function getMenu(Request $request) {\n $rarg = array();\n $menuItems = array(\n // Menu Item\n $menuitem = new MenuItemModel('menuitem', 'Menu Items', 'admin_menuitem', $rarg, 'fa fa-dashboard'),\n\n // Admin Blog\n $blog = new MenuItemModel('blog', 'Blog', '', $rarg, 'fa fa-dashboard'),\n $blog->addChild(new MenuItemModel('blog_posts', 'Posts', 'admin_blog_post', $rarg, 'fa fa-dashboard')),\n\n );\n\n return $this->activateByRoute($request->get('_route'), $menuItems);\n }", "public function makeMenu() {}", "public static function getSiteMenu() {\n $menu = Yii::$app->cacheManage->site_menu;\n if (!$menu) {\n $context = new ViewHelper();\n $config = [\n 'model' => 'app\\models\\action\\Nav',\n 'parentKey' => 'parentid',\n 'primaryKey' => 'id',\n 'rootParent' => 0,\n 'orderBy' => 'listorder desc',\n ];\n $obj = new Tree($config);\n $tree = $obj->getTree(true);\n $menu = $context->getMenuChild($tree);\n Yii::$app->cacheManage->site_menu = $menu;\n }\n return $menu;\n }", "public function getParentMenuItem() {}", "public function get($id)\n {\n $menus = $this->all();\n\n return isset($menus[$id]) ? $menus[$id] : null;\n }", "function getMenuItems()\n {\n $this->menuitem(\"xp\", \"\", \"main\", array(\"xp.story\", \"admin\"));\n $this->menuitem(\"stories\", dispatch_url(\"xp.story\", \"admin\"), \"xp\", array(\"xp.story\", \"admin\"));\n }", "function GetMenu()\n {\n $sql = \"SELECT\n title,\n slug,\n id\n FROM\n pages\";\n $this->setSql($sql);\n return $this->getAll();\n }", "function readMenu() {\n\t\t\t\n\t\t \t\t// Let's cache a DB content very frecuently \n\t\t $tmpZip = $this->memCache->get(\"CFEditObjects\".$this->super->getOrganizationDefault());\n\t\t\t if(!strlen($tmpZip) || isset($_REQUEST['nocache'])) {\n\t\t\t\t unset($_CloudFrameWorkData);\n\t\t\t\t\tif($this->super->getOrganizationDefault() == 1) {\n\t\t\t \t\t$_CloudFrameWorkData['DirectoryObjects'] = \"%\"; \n\t\t\t\t\t\tif(isset($_GET['dbdebug'])) _print(\"INIT QUERY to retrieve Directory Objects: Calling query from menuObjects.php\"); \n\t\t\t\t\t $tmp = $this->db->CloudFrameWork(\"getRecords\",$_CloudFrameWorkData);\n\t\t\t\t\t} else { \n\t\t\t\t\t\tif(isset($_GET['dbdebug'])) _print(\"INIT QUERY to retrieve Directory Objects: Calling query from menuObjects.php\"); \n\t\t\t \t\t$_CloudFrameWorkData['DirectoryOrganization_Id'] = $this->super->getOrganizationDefault(); \n\t\t\t\t\t $tmp = $db->CloudFrameWork(\"getRecords\",$_CloudFrameWorkData,'Rel_DirectoryObjects_DirectoryOrganizations');\n\t\t\t\t\t}\n\t\t\t\t\t$this->memCache->set(\"CFEditObjects\".$this->super->getOrganizationDefault(),gzcompress(serialize($tmp)));\n\t\t\t } else {\n\t\t\t \t$tmp = unserialize(gzuncompress($tmpZip));\n\t\t\t }\n\t\t\t\t\n\t\t\t\t$this->objects['_title_'] = 'Select an object to Edit'; // Default title for objets\n\t\t\t\t\n\t\t\t\t$_found = false;\n\t\t for ($i=0,$j=0,$tr=count($tmp); $i < $tr; $i++) {\n\t\t $key = $tmp[$i]['DirectoryObject_Name'];\n\t\t\n\t\t\t\t\t// If the urlObject is include in the current objects\n\t\t if($this->urlObject == $key) {\n\t\t $_found=true;\n\t\t $this->objects['_title_'] = $tmp[$i]['DirectoryObject_LangEN'];\n\t\t\t\t\t\t\n\t\t\t\t\t\t// get from caché las version\n\t\t\t\t\t\t$tmpZip = $this->memCache->get(\"CFEditObject_\".$tmp[$i]['DirectoryObject_LangEN'].'_'.$this->super->getOrganizationDefault());\n\t\t\t\t\t\tif(!strlen($tmpZip) || isset($_REQUEST['nocache'])) {\n\t\t\t\t\t\t\t$this->selectedObject =$tmp[$i];\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//Read from DB Field Types\n\t\t\t\t\t\t\t$this->selectedObject['fieldDBTypes'] = $this->db->CloudFrameWork(\"getFieldTypes\",array($this->urlObject=>\"%\"));\n\t\t\t\t\t\t\t$this->processObjecFields();\n\t\t\t\t\t\t\t//_printe($this->selectedObject);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//Split Labels for the object \n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//Put in cachñe the results..\n\t\t\t\t\t\t\t$this->memCache->set(\"CFEditObject_\".$tmp[$i]['DirectoryObject_LangEN'].'_'.$this->super->getOrganizationDefault(),gzcompress(serialize($this->selectedObject)));\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$this->selectedObject = unserialize(gzuncompress($tmpZip));\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t $_active = true;\n\t\t } else $_active = false;\n\t\t \n\t\t // If level 0 \n\t\t if( !strlen($tmp[$i]['DirectoryObject_DirectoryObject_Id'])\n\t\t || (strlen($tmp[$i]['DirectoryObject_DirectoryObject_Id']) && $tmp[$i]['DirectoryObject_DirectoryObject_Id'] == $tmp[$i]['DirectoryObject_Id']) ) {\n\t\t\n\t\t $this->objects['_keys_'][] = $key; \n\t\t $this->objects[$key]['id'] = $key;\n\t\t $this->objects[$key]['name'] = $tmp[$i]['DirectoryObject_LangEN'];\n\t\t $this->objects[$key]['groupname'] = $tmp[$i]['DirectoryObjectsGroup_Name']; \n\t\t if(!$this->objects[$key]['active'])\n\t\t $this->objects[$key]['active'] = $_active;\n\t\t $j++; \n\t\t // level 1 asociated to DirectoryObject_DirectoryObject_Id \n\t\t } else {\n\t\t $this->objects[$tmp[$i]['DirectoryObject_DirectoryObject_Name']]['submenu'][] = array(\"id\"=>$key\n\t\t ,\"name\"=>$tmp[$i]['DirectoryObject_LangEN']\n\t\t ,\"groupname\"=>$tmp[$i]['DirectoryObjectsGroup_Name']\n\t\t ,\"active\"=>$_active\n\t\t ,\"parent\"=>$tmp[$i]['DirectoryObject_DirectoryObject_Name']\n\t\t );\n\t\t if($_active) $this->objects[$tmp[$i]['DirectoryObject_DirectoryObject_Name']]['active'] = $_active;\n\t\t \n\t\t }\n\t\t }\n\t\t\t\t\n\t\t\t\t// Deativate $this->urlObject if not found\n\t\t\t\tif(!$_found ) $this->urlObject = null;\n\t\t\t\tunset($tmp);\t\n\t\t\t\t\t\t\n\t\t\t\n\t\t}", "function cmsMenu($mIdSlug, array $aData = []): ?Resource\\Menu\n {\n /** @var Model\\Menu $oModel */\n $oModel = Factory::model('Menu', Constants::MODULE_SLUG);\n return $oModel->getByIdOrSlug($mIdSlug, $aData);\n }", "public function getMenu($menu){\n $menus['sidebar'] = array(\n array(\n 'id' => 'inicio',\n 'label' => 'Inicio',\n 'link' => BASE_URL \n ),\n array(\n 'id' => 'login',\n 'label' => 'Cerrar Sesión',\n 'link' => BASE_URL . \"login/cerrar\"\n ),\n array(\n 'id' => 'login',\n 'label' => 'Iniciar Sesión',\n 'link' => BASE_URL . \"login\"\n ),\n array(\n 'id' => 'registro',\n 'label' => 'Registrarse',\n 'link' => BASE_URL . \"registro\"\n )\n );\n\n $menus['top'] = array(\n array(\n 'id' => 'inicio',\n 'label' => 'Inicio',\n 'link' => BASE_URL \n ),\n array(\n 'id' => 'post',\n 'label' => 'Post',\n 'link' => BASE_URL . \"post\"\n ),\n array(\n 'id' => 'configuracion',\n 'label' => 'Configuración',\n 'link' => BASE_URL . \"configuracion\"\n )\n );\n\n return $menus[$menu];\n }", "public function get($name, array $options = array())\n {\n if (empty($name)) {\n throw new \\InvalidArgumentException('The menu name may not be empty');\n }\n\n $menu = $this->getObjectManager()->find(null, PathHelper::absolutizePath($name, $this->menuRoot));\n if ($menu === null) {\n throw new \\InvalidArgumentException(sprintf('The menu \"%s\" is not defined.', $name));\n }\n\n if (! $menu instanceof NodeInterface) {\n throw new \\InvalidArgumentException(\"Menu at '$name' is not a valid menu node\");\n }\n\n $menuItem = $this->factory->createFromNode($menu);\n if (empty($menuItem)) {\n throw new \\InvalidArgumentException(\"Menu at '$name' is misconfigured (f.e. the route might be incorrect) and could therefore not be instanciated\");\n }\n\n $menuItem->setCurrentUri($this->request->getRequestUri());\n\n return $menuItem;\n }", "public static function get(string $name): ?Menu\n {\n if (array_key_exists($name, self::$menus)) {\n return self::$menus[$name];\n }\n\n return null;\n }", "function _quick_menu () {\n\t\t$menu = array(\n\t\t\tarray(\n\t\t\t\t\"name\"\t=> ucfirst($_GET[\"object\"]).\" main\",\n\t\t\t\t\"url\"\t=> \"./?object=\".$_GET[\"object\"],\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t\"name\"\t=> \"Create common poll\",\n\t\t\t\t\"url\"\t=> \"./?object=\".$_GET[\"object\"].\"&action=create_poll\",\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t\"name\"\t=> \"\",\n\t\t\t\t\"url\"\t=> \"./?object=\".$_GET[\"object\"],\n\t\t\t),\n\t\t);\n\t\treturn $menu;\t\n\t}", "function menuObj($OA) {\n global $curPid;\n if (!isset($OA['mode'])) $OA['mode'] = '';\n \n // menu 'wrap' begin\n echo \"\\n\";\n if (!isset($OA['wrapB'])) echo '<ul>';\n else echo $OA['wrapB'].\"\\n\";\n \n // make default menu\n if ($OA['mode'] == 'default') get_navigation(get_page_slug(false));\n \n // make breadcrumb\n elseif ($OA['mode'] == 'breadcrumb') makeBreadcrumb(return_page_slug(false),1,$OA);\n\n // make language manu\n elseif (isset($OA['language'])) makeLangNav(return_page_slug(false),$OA);\n \n // make hierachical menu\n else makeMenu(return_page_slug(false),$OA);\n\n // menu 'wrap' wrap\n if (!isset($OA['wrapA'])) echo '</ul>';\n else echo $OA['wrapA'].\"\\n\\n\";\n}", "private function cargarObjeto($param){\n $obj = null;\n \n if( array_key_exists('idmenu',$param) and array_key_exists('menombre',$param)){\n $obj = new Menu();\n $objmenu = null;\n if (isset($param['idpadre'])){\n $objmenu = new Menu();\n $objmenu->setIdmenu($param['idpadre']);\n $objmenu->cargar();\n \n }\n if(!isset($param['medeshabilitado'])){\n $param['medeshabilitado']=null;\n }else{\n $param['medeshabilitado']= date(\"Y-m-d H:i:s\");\n }\n $obj->setear($param['idmenu'], $param['menombre'],$param['medescripcion'],$objmenu,$param['medeshabilitado']); \n }\n return $obj;\n }", "public static function get()\n {\n if(Session::get('sivoz_auth') !== false){\n return Menu::all();\n }else{\n return Menu::login();\n } \n }", "function get_site_menu( $user_role ) {\n if ( is_int( $user_role ) ) {\n $user_role = get_user_role();\n }\n\n if ( $user_role == '' || $user_role == null ) {\n wp_send_json( array( 'error' => 'user role not defined or incorrect user id' ) );\n die;\n }\n\n $menu_name = $user_role . '-menu';\n $wp_menu = get_menu_to_array( $menu_name );\n\n if ( $wp_menu[ 'code' ] == 'ERROR' )\n $wp_menu = array( 'error' => 'menu does not exist' );\n\n return $wp_menu;\n\n}", "public function getMenuOn( ) {\n return $this->menu;\n }", "public function get($menu, array $path = [], array $options = []): ItemInterface\n {\n return $this->helper->get($menu, $path, $options);\n }", "public function show($id)\n {\n return $this->menu->current();\n }", "public function get($key)\n {\n return $this->adminMenu->get($key);\n }", "public function menu_get_item($path = NULL, $router_item = NULL)\n {\n return menu_get_item($path, $router_item);\n }", "function get_detail_menu_by_id($id_role) {\n $sql = \"SELECT * FROM com_menu WHERE nav_id = ?\";\n $query = $this->db->query($sql, $id_role);\n if ($query->num_rows() > 0) {\n $result = $query->row_array();\n $query->free_result();\n return $result;\n } else {\n return array();\n }\n }", "public function menu_get_router()\n {\n return menu_get_router();\n }", "public function menu()\n\t{\n\t\t$this->db->order_by(\"urutan\",\"asc\");\n\t\t$hasil = $this->db->get_where(\"mainmenu\",array(\"aktif\"=>\"Y\"));\n\t\t$output = new myObject();\n\t\tif($hasil->num_rows() > 0){\n\t\t\t$data = $hasil->result();\n\t\t\t$menu = array();\n\t\t\tforeach ($data as $item) {\n\t\t\t\t$row = array();\n\t\t\t\t$row =$item;\n\t\t\t\t$row->submenu = $this->submenu($item->id_main);\n\t\t\t\t$menu[] = $row;\n\t\t\t}\n\t\t\t$output->data = $menu;\n\t\t\t$output->status = true;\n\t\t}else{\n\t\t\t$output->status = false;\n\t\t}\n\t\treturn $output;\n\t}", "public static function returnMenu() {\n return NULL;\n }", "public function get($location);", "public function menu (\\stdClass $param);", "public function getMenuPosition(): int;", "public function prefsMenu()\n {\n return Beatnik::getMenu();\n }", "static function get_nav_menu_name( $location ) {\n\t\t$locations = get_nav_menu_locations();\n\t\t$menu_id = $locations[ $location ];\n\n\t\t$nav_menu = wp_get_nav_menu_object( $menu_id );\n\t\treturn $nav_menu->name;\n\t}", "public function getMenu() {\r\n $sql = $this->db->query(\"SELECT * FROM ms_menu WHERE menu_isactive = 1 ORDER BY menu_urut\");\r\n if ($sql->num_rows() > 0) {\r\n return $sql->result_array();\r\n }\r\n return null;\r\n }", "function jet_menu_option_page() {\n\t\treturn Jet_Menu_Options_Page::get_instance();\n\t}", "abstract public function getMenuData();", "public static function getSystemsMenu()\n {\n $filePath = Help::getDocsDirectory().'/_systems_menu.html';\n return file_get_contents($filePath);\n\n }", "function getMenuItem($type, $id_admin, $top_menu, $id_parent='-1')\n{\n\tif($type == '1') //for super admin\n\t{\n\t\t$query\t\t= \"* FROM admin_menu where id_parent='\". $id_parent .\"' and status='1' and top_menu = '\". $top_menu .\"' order by sort\";\n\t}\n\telse //for sub admins\n\t{\n\t\t$query\t\t= \"* FROM admin_menu as AM, admin_access as AC where AM.id_menu = AC.id_menu and AM.id_parent='\". $id_parent .\"' and AM.status='1' and top_menu = '\". $top_menu .\"' \";\n\t\tif($type != '1')\n\t\t\t$query\t.= \"and AC.id_admin = '\". $id_admin .\"' \";\n\t\t$query\t\t.= \"order by sort\";\t\n\t}\n\treturn getLoopData($query);\n}", "public function getMenu(){\n\t\t$maConfig= new Config();\n\t\t$data['style']=$maConfig->getCouleur();\n\t\t\n\t\t$monControle= new ControlleurAccess();\n\t\tif(isset($_SESSION['nom'])){\n\t\t\tif($monControle->estConnu($_SESSION['nom'])){\n\t\t\t\t//echo\"<PRE> COntroller : réservé \";print_r($data);echo\"</PRE>\";\n\t\t\t\t$data['nom']=$_SESSION['nom'];\n\t\t\t\t$menuPrivate= new _MenuPrivateView();\n\t\t\t\treturn $menuPrivate->show($data);\n\t\t\t}else{\n\t\t\t\t//echo\"<PRE> COntroller : libre \";print_r($data);echo\"</PRE>\";\n\t\t\t\t$menuFree= new\t_MenuFreeView();\n\t\t\t\treturn $menuFree->show($data);\n\t\t\t}\n\t\t}else{\n\t\t\t//echo\"<PRE> COntroller : libre \";print_r($data);echo\"</PRE>\";\n\t\t\t$menuFree= new\t_MenuFreeView();\n\t\t\treturn $menuFree->show($data);\n\t\t}\n\t}" ]
[ "0.69431436", "0.6725632", "0.6614799", "0.65650606", "0.6546808", "0.65246564", "0.6392665", "0.63185716", "0.6282769", "0.6277547", "0.62569964", "0.6186766", "0.6125784", "0.6123267", "0.60974413", "0.60731405", "0.60731405", "0.6037053", "0.6033315", "0.6024645", "0.601166", "0.60014474", "0.59925497", "0.59764874", "0.59583735", "0.59582865", "0.5953495", "0.5900035", "0.58728975", "0.58565176", "0.5846511", "0.584302", "0.58427197", "0.5834532", "0.58224916", "0.5772401", "0.57672805", "0.573442", "0.5729989", "0.5720534", "0.57170606", "0.5691014", "0.56907624", "0.5686225", "0.5677487", "0.5661893", "0.5661482", "0.56341034", "0.563385", "0.5609406", "0.56015176", "0.55936635", "0.5583739", "0.55749875", "0.5556975", "0.55462736", "0.554462", "0.55274296", "0.5523578", "0.55168504", "0.5516066", "0.549591", "0.54909915", "0.549096", "0.547174", "0.54712975", "0.5459879", "0.54506874", "0.54461646", "0.54386413", "0.5437207", "0.5432918", "0.54218394", "0.5419088", "0.5418841", "0.5417131", "0.5415174", "0.5401522", "0.5396325", "0.53893316", "0.53621554", "0.5355342", "0.5347902", "0.5336654", "0.53288543", "0.53287834", "0.5319966", "0.5318358", "0.5316074", "0.53126377", "0.5309702", "0.53092045", "0.5295739", "0.52898103", "0.5289759", "0.5283531", "0.52783084", "0.52746665", "0.5265129", "0.5260969" ]
0.7677872
0
/ CUSTOM CONDITIONAL TAGS
function is_production() { return ENV == PRODUCTION; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function condition() {\n\t\treturn apply_filters( 'appthemes_html_term_description_condition', true, $this->get_current_taxonomy() );\n\t}", "private function parseMetaboxConditions()\n\t\t{\n\t\t\tforeach( $this->_conditions as $condition ) {\n\t\t\t\tif( !$condition ) {\n\t\t\t\t\treturn '<style>#' . $this->_id . ' { display: none !important; }</style>';\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn '';\n\t\t}", "function custom_conds( $conds = array()) {\n\n\t}", "public function conditionsProvider()\n {\n return [[[new \\Urbania\\AppleNews\\Format\\Condition()]]];\n }", "public function conditionsProvider()\n {\n return [[[new \\Urbania\\AppleNews\\Format\\Condition()]]];\n }", "public function getCondition();", "public function getCondition();", "public function getCondition();", "function mandatoryTags() \n {\n return array( $this->_target => $this->_mandatory );\n }", "function display_conditions() {\n\t\t$output = '';\n\t\tforeach($this->conditions as $id => $set) {\n\t\t\tif(is_array($set)) {\n\t\t\t\t$ret = $this->do_set($set,$id.'_container');\n\t\t\t\tif(!$ret) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\t$output .= $ret;\n\t\t\t}\n\t\t}\n//echo '<pre>'.htmlentities($output).'</pre>';\n\t\tif(strlen(trim($output))) {\n\t\t\techo '\n<script type=\"text/javascript\">\n//<![CDATA[\n\t// Dynamically Generated Javascript for CF-Meta box display control\n\tjQuery(document).ready(function(){\n'.$output.'\n\t});'.PHP_EOL;\n\t\t\tif(is_array($this->comparison_funcs)) {\n\t\t\t\tforeach($this->comparison_funcs as $id => $func) {\n\t\t\t\t\techo PHP_EOL.'\t// CF-Meta comparison function for '.$id.$func;\n\t\t\t\t}\n\t\t\t}\n\t\t\techo '\n//]]>\n</script>'.PHP_EOL;\n\t\t}\n\t}", "function allowed_tags()\n {\n }", "public function termsAndConditionAccpeted()\n\t{\n\n\t}", "public function &havingConditions();", "function termsConditions()\r\r\n\t{\r\r\n\t $this->data['content'] \t\t\t= 'general/terms_conditions';\r\r\n\t\t$this->_render_page('temp/template', $this->data);\r\r\n\t}", "public function getConditionOperator();", "function boolean_tag_attribute($key)\r\n{\r\n return tag_attribute($key, $key);\r\n}", "function get_filter_condition($conditional_symbol) {\n //explicitly prevent filters from beign automatically applied to the report query\n return '';\n }", "public function show_term_conditionAction() {\r\n\t\t$helper = Mage::helper('onestepcheckout');\r\n\t\tif ($helper->enableTermsAndConditions()) {\r\n\t\t\t$html = $helper->getTermsConditionsHtml();\r\n\t\t\techo $html;\r\n\t\t\techo '<p class=\"a-right\"><a href=\"#\" onclick=\"javascript:TINY.box.hide();return false;\">Close</a></p>';\r\n\t\t}\r\n\t}", "function yy_r20(){if (!in_array($this->yystack[$this->yyidx + -3]->minor,array('if','elseif','while'))) {\r\n $this->compiler->trigger_template_error (\"wrong syntax for tag \\\"\" . $this->yystack[$this->yyidx + -3]->minor . \"\\\"\"); \r\n }\r\n $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -3]->minor,array('if condition'=>$this->yystack[$this->yyidx + -1]->minor)); }", "public function flexformConditionStringDataProvider() {}", "public function conditionStringDataProvider() {}", "function itg_loyalty_reward_rules_condition_info() {\n return array(\n 'itg_loyalty_reward_visit_content_condition' => array(\n 'label' => t('Validate user is visiting node first time.'),\n 'parameter' => array(\n 'node' => array('type' => 'node', 'label' => t('Current Node')),\n 'user' => array('type' => 'user', 'label' => t('Current logged in user.')),\n ),\n 'group' => t('ITG'), \n ),\n );\n}", "public function hasCondition();", "function add_test($condition, $result_true, $recommend_true, $result_false, $recommend_false, $recommend_condition = FALSE) \n{\n\tglobal $recommendation, $test_result;\n\t\n\tif ($condition) {\n\t\t$test_result[] = \"<span style='color: green;'>\" . $result_true . \"</span>\";\n\t\tif (!$recommend_condition)\n\t\t\t$recommendation[] = $recommend_true;\n\t}\n\telse {\t\t\n\t\t$test_result[] = \"<span style='color: red;'>\" . $result_false . \"</span>\";\n\t\t$recommendation[] = $recommend_false;\n\t}\n}", "private function _assets_condcom($asset_tag, $condcom)\n\t{\n\t\tif($condcom)\n\t\t{\n\t\t\t$asset_tag = '<!--[if '.$condcom.']>' . $asset_tag . '<![endif]-->';\n\t\t}\n\t\t\n\t\treturn $asset_tag;\n\t}", "public function getConditions();", "public function getConditions();", "public function getConditions();", "function yy_r21(){ if (!in_array($this->yystack[$this->yyidx + -3]->minor,array('if','elseif','while'))) {\r\n $this->compiler->trigger_template_error (\"wrong syntax for tag \\\"\" . $this->yystack[$this->yyidx + -3]->minor . \"\\\"\"); \r\n }\r\n $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -3]->minor,array('if condition'=>$this->yystack[$this->yyidx + -1]->minor)); }", "public function getCondition() { \n \t\treturn $this->condition . tx_newspaper::enableFields(tx_newspaper::getTable($this)); \n \t}", "function compile_tag_if($tag_args, $elseif)\n\t{\n\t\t// Tokenize args for 'if' tag.\n\t\tpreg_match_all('/(?:\n\t\t\t\"[^\"\\\\\\\\]*(?:\\\\\\\\.[^\"\\\\\\\\]*)*\" |\n\t\t\t\\'[^\\'\\\\\\\\]*(?:\\\\\\\\.[^\\'\\\\\\\\]*)*\\' |\n\t\t\t[(),] |\n\t\t\t[^\\s(),]+)/x', $tag_args, $match);\n\n\t\t$tokens = $match[0];\n\t\t$is_arg_stack = array();\n\n\t\tfor ($i = 0; $i < sizeof($tokens); $i++)\n\t\t{\n\t\t\t$token = &$tokens[$i];\n\n\t\t\tswitch ($token)\n\t\t\t{\n\t\t\t\tcase '!==':\n\t\t\t\tcase '===':\n\t\t\t\tcase '<<':\n\t\t\t\tcase '>>':\n\t\t\t\tcase '|':\n\t\t\t\tcase '^':\n\t\t\t\tcase '&':\n\t\t\t\tcase '~':\n\t\t\t\tcase ')':\n\t\t\t\tcase ',':\n\t\t\t\tcase '+':\n\t\t\t\tcase '-':\n\t\t\t\tcase '*':\n\t\t\t\tcase '/':\n\t\t\t\tcase '@':\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase '==':\n\t\t\t\tcase 'eq':\n\t\t\t\t\t$token = '==';\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase '!=':\n\t\t\t\tcase '<>':\n\t\t\t\tcase 'ne':\n\t\t\t\tcase 'neq':\n\t\t\t\t\t$token = '!=';\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase '<':\n\t\t\t\tcase 'lt':\n\t\t\t\t\t$token = '<';\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase '<=':\n\t\t\t\tcase 'le':\n\t\t\t\tcase 'lte':\n\t\t\t\t\t$token = '<=';\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase '>':\n\t\t\t\tcase 'gt':\n\t\t\t\t\t$token = '>';\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase '>=':\n\t\t\t\tcase 'ge':\n\t\t\t\tcase 'gte':\n\t\t\t\t\t$token = '>=';\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase '&&':\n\t\t\t\tcase 'and':\n\t\t\t\t\t$token = '&&';\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase '||':\n\t\t\t\tcase 'or':\n\t\t\t\t\t$token = '||';\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase '!':\n\t\t\t\tcase 'not':\n\t\t\t\t\t$token = '!';\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase '%':\n\t\t\t\tcase 'mod':\n\t\t\t\t\t$token = '%';\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase '(':\n\t\t\t\t\tarray_push($is_arg_stack, $i);\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase 'is':\n\t\t\t\t\t$is_arg_start = ($tokens[$i-1] == ')') ? array_pop($is_arg_stack) : $i-1;\n\t\t\t\t\t$is_arg = implode(' ', array_slice($tokens, $is_arg_start, $i -\t$is_arg_start));\n\n\t\t\t\t\t$new_tokens = $this->_parse_is_expr($is_arg, array_slice($tokens, $i+1));\n\n\t\t\t\t\tarray_splice($tokens, $is_arg_start, sizeof($tokens), $new_tokens);\n\n\t\t\t\t\t$i = $is_arg_start;\n\n\t\t\t\tdefault:\n\t\t\t\t\tif (preg_match('#^((?:[a-z0-9\\-_]+\\.)+)?(\\$)?(?=[A-Z])([A-Z0-9\\-_]+)#s', $token, $varrefs))\n\t\t\t\t\t{\n\t\t\t\t\t\t$token = (!empty($varrefs[1])) ? $this->generate_block_data_ref(substr($varrefs[1], 0, -1), true, $varrefs[2]) . '[\\'' . $varrefs[3] . '\\']' : (($varrefs[2]) ? '$this->_tpldata[\\'DEFINE\\'][\\'.\\'][\\'' . $varrefs[3] . '\\']' : '$this->vars[\\'' . $varrefs[3] . '\\']');\n\t\t\t\t\t}\n\t\t\t\t\telseif (preg_match('#^\\.((?:[a-z0-9\\-_]+\\.?)+)$#s', $token, $varrefs))\n\t\t\t\t\t{\n\t\t\t\t\t\t// Allow checking if loops are set with .loopname\n\t\t\t\t\t\t// It is also possible to check the loop count by doing <!-- IF .loopname > 1 --> for example\n\t\t\t\t\t\t$blocks = explode('.', $varrefs[1]);\n\n\t\t\t\t\t\t// If the block is nested, we have a reference that we can grab.\n\t\t\t\t\t\t// If the block is not nested, we just go and grab the block from _tpldata\n\t\t\t\t\t\tif (sizeof($blocks) > 1)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$block = array_pop($blocks);\n\t\t\t\t\t\t\t$namespace = implode('.', $blocks);\n\t\t\t\t\t\t\t$varref = $this->generate_block_data_ref($namespace, true);\n\n\t\t\t\t\t\t\t// Add the block reference for the last child.\n\t\t\t\t\t\t\t$varref .= \"['\" . $block . \"']\";\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$varref = '$this->_tpldata';\n\n\t\t\t\t\t\t\t// Add the block reference for the last child.\n\t\t\t\t\t\t\t$varref .= \"['\" . $blocks[0] . \"']\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$token = \"sizeof($varref)\";\n\t\t\t\t\t}\n\t\t\t\t\telseif (!empty($token))\n\t\t\t\t\t{\n\t\t\t\t\t\t$token = '(' . $token . ')';\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\t// If there are no valid tokens left or only control/compare characters left, we do skip this statement\n\t\tif (!sizeof($tokens) || (str_replace(array(' ', '=', '!', '<', '>', '&', '|', '%', '(', ')'), '', implode('', $tokens)) == ''))\n\t\t{\n\t\t\t$tokens = array('false');\n\t\t}\n\n\t\t$code = (($elseif) ? '} elseif (' : 'if (') . (implode(' ', $tokens) . ') { ');\n\n\t\treturn $code;\n\t}", "public function hasTag($name);", "private function setupIfdef() {\n Blade::directive('ifdef', function($expression) {\n $all_params_st = $this->stringParamAsString($expression);\n $params = eval(\"return array(\".$all_params_st.\");\");\n $result = '<?php ';\n $result .= 'if (';\n \n for ($i=0;$i<count($params);$i++) {\n $result .= \"isset($\".$params[$i].\")\";\n if ($i<count($params)-1) {\n $result .=\" && \";\n }\n }\n $result .= '): ?>';\n return $result;\n });\n }", "public function getConditionsHook()\n\t{\n\t\t$conditions = array();\n\t\t\n\t\t$conditions['select'] = '`bid` AS id, `cid`, `type`, `name`, `alias`, `imptotal`, `impmade`, '\n\t\t\t\t\t\t\t\t\t\t\t\t\t.'`clicks`, `imageurl`, `clickurl`, `date`, `showBanner` AS state, `checked_out`, '\n\t\t\t\t\t\t\t\t\t\t\t\t\t.'`checked_out_time`, `editor`, `custombannercode`, `catid`, `description`, '\n\t\t\t\t\t\t\t\t\t\t\t\t\t.'`sticky`, `ordering`, `publish_up`, `publish_down`, `tags`, `params`'\t;\n\t\t\n\t\t$conditions['where'] = array();\n\t\t\n\t\treturn $conditions;\n\t}", "public static function get_conditionals() {\n\t\treturn [ Front_End_Conditional::class ];\n\t}", "public static function get_conditionals() {\n\t\treturn [ Front_End_Conditional::class ];\n\t}", "public function getConditionLabel() {\n switch ($this->condition) {\n case 0:\n // New is default - not show\n //return Lang::get(\"olabs.oims::lang.products.condition_0\");\n return \"\";\n case 1:\n return Lang::get(\"olabs.oims::lang.products.condition_1\");\n case 2:\n return Lang::get(\"olabs.oims::lang.products.condition_2\");\n default:\n return \"\";\n }\n }", "public function addCondition($attribute, $values, $operator = ComparisonOperator::EQ);", "function addition_tag($con, $tag)\n{\n echo $con ? $tag : \"\";\n}", "public function displayAddedCondition($post)\r\n {\r\n $r = Recipe::load($post['recipeid']);\r\n $s = $r->getStepById($post['stepid']); \r\n $this->context->smarty->assign(\r\n array(\r\n 'recipe' => $r,\r\n 'step' => $s, \r\n 'cpos' => $post['condition'],\r\n 'condition' => $post['conditionObject']\r\n )\r\n );\r\n $tpl = $this->context->smarty->fetch(_PS_MODULE_DIR_ . 'massivo/views/templates/admin/helpers/displayAddedCondition.tpl'); \r\n return $tpl;\r\n }", "public static function get_conditionals() {\n\t\treturn [ Headless_Rest_Endpoints_Enabled_Conditional::class ];\n\t}", "function theme_ie_conditional( $tag, $handle ) {\n if ( 'theme-ie-only' == $handle ) {\n $tag = \"<!--[if lt IE 9]>\\n\".$tag.\"<![endif]-->\\n\";\n }\n return $tag;\n}", "public static function conditional()\n {\n return [\n 'Sim' => 's',\n 'Não' => 'n'\n ];\n }", "function register_if_statement_handle(){\n $if_statement_translation_array = array(\n 'add_new_if' => __( 'Add New Condition ', IFLANG ),\n 'add_new_if_title_form' => __( 'Add new condition for restrict content ', IFLANG ),\n 'select_if_types' => __( 'Select type of conditions', IFLANG ),\n 'if_type_custom_content_admin' => __( 'Show content for administrators only', IFLANG ),\n 'if_type_custom_content_editor' => __( 'Show content for editors only', IFLANG ),\n 'if_type_custom_content_author' => __( 'Show content for authors only', IFLANG ),\n 'if_type_custom_content_contributor' => __( 'Show content for contributors only', IFLANG ),\n 'if_type_custom_content_subscriber' => __( 'Show content for subscribers only', IFLANG ),\n 'if_type_custom_content_logged_in' => __( 'Show content for users logged in', IFLANG ),\n 'if_type_custom_content_post_thumbnail' => __( 'Show content if post has thumbnail', IFLANG ),\n 'if_type_custom_content_comments_open' => __( 'Show content if comments open inside post/page', IFLANG ),\n 'if_type_custom_content_has_tag' => __( 'Show content if post has tags', IFLANG ),\n 'if_type_custom_content_is_attachment' => __( 'Show content if post/page has attachments', IFLANG ),\n 'if_type_custom_content_has_excerpt' => __( 'Show content if post/page has excerpt', IFLANG ),\n 'if_type_custom_content_pings_open' => __( 'Show content if pings open inside post/page', IFLANG ),\n 'if_type_custom_content_is_home' => __( 'Show content if the page is home page', IFLANG ),\n 'if_type_custom_content_is_rtl' => __( 'Show content if the directions for WP is RTL', IFLANG ),\n 'centent_between_if' => __( 'The content between condition', IFLANG ),\n 'centent_between_else' => __( 'The content if not true condition', IFLANG ),\n 'a_value' => '10'\n );\n wp_register_script( 'if_statement_handle', plugin_dir_url(__FILE__).'/include/editor_plugin.js' );\n wp_enqueue_script( 'if_statement_handle' );\n wp_localize_script( 'if_statement_handle', 'if_statement_text_domain', $if_statement_translation_array );\n }", "public function getCondition() \n {\n return $this->_fields['Condition']['FieldValue'];\n }", "public static function getConditionsHook()\n\t{\n\t\t$conditions = array();\n\n\t\t$conditions['select'] = '`id`, `id` AS sid, `title`, \\'\\' AS `alias`, 1 AS parent_id, `section` AS extension, `description`, `published`, `checked_out`, `checked_out_time`, `access`, `params`, `section`';\n\n\t\t$where_or = array();\n\t\t$where_or[] = \"section REGEXP '^[\\\\-\\\\+]?[[:digit:]]*\\\\.?[[:digit:]]*$'\";\n\t\t$where_or[] = \"section IN ('com_banner', 'com_contact', 'com_contact_details', 'com_content', 'com_newsfeeds', 'com_sections', 'com_weblinks' )\";\n\t\t$conditions['where_or'] = $where_or;\n\n\t\t$conditions['order'] = \"id ASC, section ASC, ordering ASC\";\t\n\n\t\treturn $conditions;\n\t}", "public function visitConditionBodyAstNode( ezcTemplateConditionBodyAstNode $cond )\n {\n // Not used, data is extracted directly for if, while and do/while\n }", "function canBeMadeConditional() {\n\tif ($this->getIsConditional()) {\n\t return false;\n\t}\n\t \n\t// DEBUG\n\treturn false;\n }", "function doTagStuff(){}", "public function condition()\n {\n return $this->condition;\n }", "function get_search_condition()\r\n {\r\n return $this->get_search_form()->get_condition();\r\n }", "function open_condition($val){\n\t\t$var_cond=$val;\n\t\t$this->condition_passed=false;\n\t\tglobal $in;\n\t\tglobal $inputval;\n\t\t$val_cond=$this->attributes['CONDITION_VALUE'];\n\t\tif ($this->attributes['HIDE']=='yes') {\n\t\t\tif (preg_match(\"/,/\", $val_cond)){\n\n\t\t\t\t$this->check_js.=\"\n\t valore=document.forms[0].\".$this->id.\".value;\n\t\t\t\t\tdocument.forms[0].\".$this->id.\".value='';\n\t\t\t\t if (document.getElementById('tr_\".$this->id.\"'))\n\t\t\t\t\t document.getElementById('tr_\".$this->id.\"').style.display='none';\n\t\t\t\t\t\";\n\t\t\t\t$vals=explode(\",\",$val_cond);\n\t\t\t\t//$this->condition_passed=false;\n\t\t\t\tforeach ($vals as $key => $value){\n\t\t\t\t\tif (isset($in['INVIOCO'])) $value_to_control=$in[$var_cond];\n\t\t\t\t\telse $value_to_control=$inputval[$var_cond];\n\t\t\t\t\tif ($value_to_control==$value) $this->condition_passed=true;\n\t\t\t\t\t$this->check_js.=\" \\n\n\t\t\t\t\t\tvalue=value_of('$var_cond', '0');\n\t\t\t\t\t\tif (value=='$value')\n\t\t\t\t\t\t{\n\t\t\t\t \tif (document.getElementById('tr_\".$this->id.\"'))\n\t\t\t\t\t\t\t\tdocument.getElementById('tr_\".$this->id.\"').style.display='';\n\t\t\t\t\t\t document.forms[0].\".$this->id.\".value=valore;\n\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\";\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\n\t\t\t\t$op ='!=';\n\t\t\t\tif (preg_match(\"/\\!/\", $val_cond)) {\n\t\t\t\t\t$val_cond=str_replace(\"!\", \"\",$val_cond);\n\t\t\t\t\t$op='==';\n\t\t\t\t}\n\t\t\t\tif (isset($in['INVIOCO'])) $value_to_control=$in[$var_cond];\n\t\t\t\telse $value_to_control=$inputval[$var_cond];\n\t\t\t\tif ($op=='==') $this->condition_passed=($value_to_control!=$val_cond);\n\t\t\t\telse $this->condition_passed=($value_to_control==$val_cond);\n\t\t\t\t//echo \"<hr>$op - $var_cond - $val_cond - {$this->attributes['VAR']}<hr>\";\n\n\t\t\t\t$this->check_js=\" \\n\n\t\t\t\t\tvalue=value_of('$var_cond', '0');\n\t\t\t\t\tif (value $op '$val_cond')\n\t\t\t\t\t{\n\t\t\t\t\t\t\";\n\t\t\t\tforeach($this->values as $key=> $val){\n\t\t\t\t\t$this->check_js.=\"\n\t\t\t\t document.forms[0].\".$key.\".checked=false;\n\t\t\t\t if (document.getElementById('tr_\".$this->id.\"')) document.getElementById('tr_\".$this->id.\"').style.display='none';\n\t\t\t\t\";\n\t\t\t\t}\n\t\t\t\t$this->check_js.=\"\n\t\t\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t if (document.getElementById('tr_\".$this->id.\"'))\n\t\t\t\t\t document.getElementById('tr_\".$this->id.\"').style.display='';\n\t\t\t\t\t\";\n\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tif ($this->attributes['HIDE_THIS']=='yes') {\n\t\t\t\tif (preg_match(\"/,/\", $val_cond)){\n\t\t\t\t\t$this->check_js.=\"\n\t valore=document.forms[0].\".$this->id.\".value;\n\t\t\t\t\tdocument.forms[0].\".$this->id.\".value='';\n\t\t\t\t \tif (document.getElementById('cell_\".$this->id.\"'))\n\t\t\t\t\t \tdocument.getElementById('cell_\".$this->id.\"').style.display='none';\n\t\t\t\t\tif (document.getElementById('cell_input\".$this->id.\"'))\n\t\t\t\t\t \tdocument.getElementById('cell_input\".$this->id.\"').style.display='none';\n\t\t\t\t\t\";\n\t\t\t\t\t$vals=explode(\",\",$val_cond);\n\t\t\t\t\t//$this->condition_passed=false;\n\t\t\t\t\tforeach ($vals as $key => $value){\n\t\t\t\t\t\tif ($in[$var_cond]==$value) $this->condition_passed=true;\n\t\t\t\t\t\t$this->check_js.=\" \\n\n\t\t\t\t\t\tvalue=value_of('$var_cond', '0');\n\t\t\t\t\t\tif (value=='$value')\n\t\t\t\t\t\t{\n\t\t\t\t \t\t\tif (document.getElementById('cell_\".$this->id.\"'))\n\t\t\t\t\t\t\t\tdocument.getElementById('cell_\".$this->id.\"').style.display='';\n\t\t\t\t\t\t\tif (document.getElementById('cell_input\".$this->id.\"'))\n\t\t\t\t\t\t\t\tdocument.getElementById('cell_input\".$this->id.\"').style.display='';\n\t\t\t\t\t\t document.forms[0].\".$this->id.\".value=valore;\n\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t$op ='!=';\n\t\t\t\t\tif (preg_match(\"/\\!/\", $val_cond)) {\n\t\t\t\t\t\t$val_cond=str_replace(\"!\", \"\",$val_cond);\n\t\t\t\t\t\t$op='==';\n\t\t\t\t\t}\n\t\t\t\t\tif ($op=='==') $this->condition_passed=($in[$var_cond]!=$val_cond);\n\t\t\t\t\telse $this->condition_passed=($in[$var_cond]==$val_cond);\n\t\t\t\t\t//echo \"<hr>$op - $var_cond - $val_cond - {$this->attributes['VAR']}<hr>\";\n\t\t\t\t\t$this->check_js=\" \\n\n\t\t\t\t\tvalue=value_of('$var_cond', '0');\n\t\t\t\t\tif (value $op '$val_cond')\n\t\t\t\t\t{\n\t\t\t\t\t\t\";\n\t\t\t\t\t$this->check_js.=\"\n\t\t\t\t\tif (document.forms[0].\".$this->id.\")\n\t\t\t\t\t\tdocument.forms[0].\".$this->id.\".value='';\n\t\t\t\t \tif (document.getElementById('cell_\".$this->id.\"'))\n\t\t\t\t\t document.getElementById('cell_\".$this->id.\"').style.display='none';\n\t\t\t\t\tif (document.getElementById('cell_input\".$this->id.\"'))\n\t\t\t\t\t document.getElementById('cell_input\".$this->id.\"').style.display='none';\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t if (document.getElementById('cell_\".$this->id.\"'))\n\t\t\t\t\t\t document.getElementById('cell_\".$this->id.\"').style.display='';\n\t\t\t\t\t if (document.getElementById('cell_input\".$this->id.\"'))\n\t\t\t\t\t \tdocument.getElementById('cell_input\".$this->id.\"').style.display='';\n\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\tif ($in[$var_cond]==$value) $this->condition_passed=true;\n\t\t\t\t$this->check_js.=\"\n\t\t\tvalue=value_of('$var_cond', '0');\n\t\t\t\t\t\tif (value!='$val_cond')\n\t\t\t\t\t\t{ \";\n\t\t\t\tforeach($this->values as $key => $val) $this->check_js.=\"\n\n\t\t\t\t\t\tdocument.forms[0].\".$key.\".checked=false;\n\t\t\t\t\t\t//document.getElementById('\".$this->id.\"').style.display='none';\n\n\t\t\t\t\t\t\";\n\t\t\t\t$this->check_js.=\"}\";\n\t\t\t}\n\t\t}\n\n\t\t$this->html=\"<tr id='\".$this->id.\"' style=\\\"display:\\\">\".$this->html.\"</tr>\";\n\t}", "public function getConditionsDescription()\n {\n return $this->conditionsDescription;\n }", "private function has_conditional_tag( $html ) {\r\n\t\treturn ( false !== strpos( $html, self::WP_ROCKET_CONDITIONAL ) );\r\n\t}", "private function ts_getCondition()\n {\n // Get table and field\n list( $table, $field ) = explode( '.', $this->curr_tableField );\n $tableField = $this->curr_tableField;\n\n // Get TS configuration array\n $conf_name = $this->conf_view[ 'filter.' ][ $table . '.' ][ $field . '.' ][ 'condition' ];\n $conf_array = $this->conf_view[ 'filter.' ][ $table . '.' ][ $field . '.' ][ 'condition.' ];\n\n // RETURN true: any condition isn't defined\n if ( empty( $conf_name ) )\n {\n if ( $this->pObj->b_drs_filter )\n {\n $prompt = $tableField . ' hasn\\'t any condition. Filter will displayed.';\n t3lib_div :: devLog( '[INFO/FILTER] ' . $prompt, $this->pObj->extKey, 0 );\n }\n return true;\n }\n // RETURN true: any condition isn't defined\n // Get condition result\n $value = $this->pObj->cObj->cObjGetSingle( $conf_name, $conf_array );\n switch ( $value )\n {\n case( false ):\n $bool_condition = false;\n if ( $this->pObj->b_drs_filter )\n {\n $prompt = 'Condition of ' . $tableField . ' is false. Filter won\\'t displayed.';\n t3lib_div :: devLog( '[INFO/FILTER] ' . $prompt, $this->pObj->extKey, 0 );\n }\n break;\n case( true ):\n default;\n $bool_condition = true;\n if ( $this->pObj->b_drs_filter )\n {\n $prompt = 'Condition of ' . $tableField . ' is true. Filter will displayed.';\n t3lib_div :: devLog( '[INFO/FILTER] ' . $prompt, $this->pObj->extKey, 0 );\n }\n break;\n }\n // Get condition result\n // RETURN condition result\n return $bool_condition;\n }", "function conditions( $conds = array())\n\t{\n\t\t// if condition is empty, return true\n\t\tif ( empty( $conds )) return true;\n\t}", "public function is_tag($tag = '')\n {\n }", "public function addCondition($condition);", "function custom_conds( $conds = array())\n\t{\n\t\t// default where clause\n\t\tif ( !isset( $conds['no_publish_filter'] )) {\n\t\t\t$this->db->where( 'status', 1 );\n\t\t}\n\t\t\n\t\t// order by\n\t\tif ( isset( $conds['order_by'] )) {\n\t\t\t$order_by_field = $conds['order_by_field'];\n\t\t\t$order_by_type = $conds['order_by_type'];\n\t\t\t\n\t\t\t$this->db->order_by( 'rt_products.'.$order_by_field, $order_by_type);\n\t\t}\n\t\t// product id condition\n\t\tif ( isset( $conds['id'] )) {\n\t\t\t$this->db->where( 'id', $conds['id'] );\t\n\t\t}\n\n\t\t// category id condition\n\t\tif ( isset( $conds['cat_id'] )) {\n\t\t\t\n\t\t\tif ($conds['cat_id'] != \"\") {\n\t\t\t\tif($conds['cat_id'] != '0'){\n\t\t\t\t\t$this->db->where( 'cat_id', $conds['cat_id'] );\t\n\t\t\t\t}\n\n\t\t\t}\t\t\t\n\t\t}\n\n\t\t// sub category id condition \n\t\tif ( isset( $conds['sub_cat_id'] )) {\n\t\t\t\n\t\t\tif ($conds['sub_cat_id'] != \"\") {\n\t\t\t\tif($conds['sub_cat_id'] != '0'){\n\t\t\t\t\n\t\t\t\t\t$this->db->where( 'sub_cat_id', $conds['sub_cat_id'] );\t\n\t\t\t\t}\n\n\t\t\t}\t\t\t\n\t\t}\n\n\t\n\t\t// cat_ordering condition\n\t\tif ( isset( $conds['shop_id'] )) {\n\t\t\t$this->db->where( 'shop_id', $conds['shop_id'] );\n\t\t}\n\n\t\t// product_name condition\n\t\tif ( isset( $conds['name'] )) {\n\t\t\t$this->db->where( 'name', $conds['name'] );\n\t\t}\n\n\t\tif ( isset( $conds['desc'] )) {\n\t\t\t$this->db->where( 'description', $conds['desc'] );\n\t\t}\n\n\t\t// product keywords\n\t\tif ( isset( $conds['search_tag'] )) {\n\t\t\t$this->db->where( 'search_tag', $conds['search_tag'] );\n\t\t}\n\n\t\t// product highlight information condition\n\t\tif ( isset( $conds['info'] )) {\n\t\t\t$this->db->where( 'highlight_information', $conds['info'] );\n\t\t}\n\n\t\t// product code\n\t\tif ( isset( $conds['code'] )){\n\t\t\t$this->db->where( 'code', $conds['code'] );\n\t\t}\n\n\t\t// product unit_value condition\n\t\tif ( isset( $conds['product_unit_value'] )) {\n\t\t\t$this->db->where( 'product_unit_value', $conds['product_unit_value'] );\n\t\t}\n\n\t\t// product unit condition\n\t\tif ( isset( $conds['product_unit'] )) {\n\t\t\t$this->db->where( 'product_unit', $conds['product_unit'] );\n\t\t}\n\n\t\t// product minimum_order\n\t\tif ( isset( $conds['minimum_order'] )){\n\t\t\t$this->db->where( 'minimum_order', $conds['minimum_order'] );\n\t\t}\n\n\t\t// product maximum_order\n\t\tif ( isset( $conds['maximum_order'] )){\n\t\t\t$this->db->where( 'maximum_order', $conds['maximum_order'] );\n\t\t}\n\n\t\t// point condition\n\t\tif ( isset( $conds['price_min'] ) || isset( $conds['price_max'] )) {\n\t\t\t$this->db->where( 'unit_price >= ', $conds['price_min'] );\n\t\t\t$this->db->where( 'unit_price <= ', $conds['price_max'] );\n\t\t}\n\n\t\t// feature products\n\t\tif ( isset( $conds['is_featured'] )) {\n\t\t\t$this->db->where( 'is_featured', $conds['is_featured'] );\n\t\t}\n\n\t\t// rating condition\n\t\tif ( isset( $conds['rating_value'] ) ) {\n\t\t\t// For Rating value with comma 3,4,5\n\t\t\t// $rating_value = explode(',', $conds['rating_value']);\n\t\t\t// $this->db->where_in( 'overall_rating', $rating_value);\n\n\t\t\t// For single rating value\n\t\t\t$this->db->where( 'overall_rating >=', $conds['rating_value'] );\n\t\t}\n\t\t\n\t\t// discount products\n\t\tif ( $this->is_filter_discount( $conds )) {\n\t\t\t$this->db->where( 'is_discount', '1' );\t\n\t\t}\n\n\t\t// available products\n\t\tif ( isset( $conds['is_available'] )) {\n\t\t\t$this->db->where( 'is_available', $conds['is_available'] );\n\t\t}\n\n\t\t// searchterm\n\t\tif ( isset( $conds['searchterm'] )) {\n\t\t\t$this->db->like( 'name', $conds['searchterm'] );\n\t\t}\n\n\n\t\tif( isset($conds['min_price'])) {\n\n\t\t\t\n\t\t\tif( $conds['min_price'] != 0 ) {\n\t\t\t\t$this->db->where( 'unit_price >=', $conds['min_price'] );\n\t\t\t}\n\n\t\t}\n\n\t\tif( isset($conds['max_price'])) {\n\t\t\tif( $conds['max_price'] != 0 ) {\n\t\t\t\t$this->db->where( 'unit_price <=', $conds['max_price'] );\n\t\t\t}\t\n\n\t\t}\n\n\t\t// product shop_status\n\t\tif ( isset( $conds['shop_status'] )){\n\t\t\t$this->db->where( 'shop_status', $conds['shop_status'] );\n\t\t}\n\n\t\t$this->db->order_by('added_date', 'desc' );\n\n\n\t}", "function dd_if_conditions_addbuttons() {\n if ( ! current_user_can('edit_posts') && ! current_user_can('edit_pages') )\n return;\n \n // Add only in Rich Editor mode\n if ( get_user_option('rich_editing') == 'true') {\n add_filter(\"mce_external_plugins\", \"dd_if_conditions_tinymce_plugin\");\n add_filter('mce_buttons', 'dd_if_conditions_button');\n }\n}", "function has_js_condition($item) {\n\t\treturn isset($item['condition']) && is_array($item['condition']);\n\t}", "protected function get_conditions( ) {\n// to decode all conditions. To learn more about weather condition codes, visit section\n// 12.6.8 - Present Weather Group of the Federal Meteorological Handbook No. 1 at\n// www.nws.noaa.gov/oso/oso1/oso12/fmh1/fmh1ch12.htm\n if (preg_match('#^(-|\\+|VC)?(NSW|TS|SH|FZ|BL|DR|MI|BC|PR|RA|DZ|SN|SG|GR|GS|PE|IC|UP|BR|FG|FU|VA|DU|SA|HZ|PY|PO|SQ|FC|SS|DS|WS//)+$#',$this->current_group_text,$pieces)) {\n $this->varConcatenate($this->wxInfo['ITEMS'][$this->tend],'CODE_CONDITIONS', $this->current_group_text);\n if (!isset($this->wxInfo['ITEMS'][$this->tend]['CONDITIONS'])) {\n//$this->wxInfo['ITEMS'][$this->tend]['CONDITIONS'] = '';\n $join = '';\n }\n else {\n $join = ', ';\n }\n if (substr($this->current_group_text,0,1) == '-') {\n $prefix = $this->get_i18nCondition('-');\n $this->current_group_text = substr($this->current_group_text,1);\n }\n elseif (substr($this->current_group_text,0,1) == '+') {\n $prefix = $this->get_i18nCondition('+');\n $this->current_group_text = substr($this->current_group_text,1);\n }\n else $prefix = ''; // moderate conditions have no descriptor\n while ($code = substr($this->current_group_text,0,2)) {\n if (!isset($this->wxInfo['ITEMS'][$this->tend]['CONDITIONS'])) {\n $this->wxInfo['ITEMS'][$this->tend]['CONDITIONS'] = '';\n }\n $this->wxInfo['ITEMS'][$this->tend]['CONDITIONS'] .= $join . $this->get_i18nCondition($code) . ' ';\n $this->current_group_text = substr($this->current_group_text,2);\n }\n if (strlen($prefix)>0) {\n $this->wxInfo['ITEMS'][$this->tend]['CONDITIONS'] .= $prefix ;\n }\n $this->current_ptr++;\n }\n else {\n if (isset($this->wxInfo['ITEMS'][$this->tend]['CONDITIONS'])) {\n//$this->wxInfo['ITEMS'][$this->tend]['CONDITIONS'] = '';\n $this->wxInfo['ITEMS'][$this->tend]['CONDITIONS'] = trim($this->wxInfo['ITEMS'][$this->tend]['CONDITIONS']);\n if ($this->wxInfo['ITEMS'][$this->tend]['CONDITIONS']=='') unset($this->wxInfo['ITEMS'][$this->tend]['CONDITIONS']);\n }\n $this->current_group++;\n }\n }", "public function termsAndConditionsAction()\r\n {\r\n\r\n return $this->render(\r\n 'AppBundle:App:termsandconditions.html.twig'\r\n );\r\n }", "function answer_status_tags_class($answer)\n {\n if(($answer['has_tags'])) {\n return 'warning';\n }\n\n return '';\n }", "public function register_conditions() {\n\n\t\t$conditions['is_front_page'] = array(\n\t\t\t'group' => __( 'General', 'wp-js-form-sample-plugin' ),\n\t\t\t'name' => __( 'The Home Page', 'wp-js-form-sample-plugin' ),\n\t\t\t'callback' => 'is_front_page',\n\t\t\t'priority' => 2,\n\t\t);\n\t\t$conditions['is_home'] = array(\n\t\t\t'group' => __( 'Posts', 'wp-js-form-sample-plugin' ),\n\t\t\t'name' => __( 'The Blog Index', 'wp-js-form-sample-plugin' ),\n\t\t\t'callback' => 'is_home',\n\t\t\t'priority' => 1,\n\t\t);\n\t\t$conditions['is_search'] = array(\n\t\t\t'group' => __( 'General', 'wp-js-form-sample-plugin' ),\n\t\t\t'name' => __( 'A Search Result Page', 'wp-js-form-sample-plugin' ),\n\t\t\t'callback' => 'is_search',\n\t\t);\n\t\t$conditions['is_404'] = array(\n\t\t\t'group' => __( 'General', 'wp-js-form-sample-plugin' ),\n\t\t\t'name' => __( 'A 404 Error Page', 'wp-js-form-sample-plugin' ),\n\t\t\t'callback' => 'is_404',\n\t\t);\n\n\t\t$conditions = array_merge( $this->generate_post_type_conditions(), $this->generate_taxonomy_conditions() );\n\n\t\t$conditions = apply_filters( 'wpjsfsp_registered_conditions', $conditions );\n\n\t\t$this->add_conditions( $conditions );\n\t}", "public function getCondition()\n {\n return $this->condition;\n }", "function timeconditions_chk($post){\n\treturn true;\n}", "function business_html_attributes() { ?>\n<!doctype html>\n<!--[if lt IE 7 ]> <html class=\"ie6\"> <![endif]-->\n<!--[if IE 7 ]> <html class=\"ie7\"> <![endif]-->\n<!--[if IE 8 ]> <html class=\"ie8\"> <![endif]-->\n<!--[if IE 9 ]> <html class=\"ie9\"> <![endif]-->\n<!--[if (gt IE 9)|!(IE)]><!--> <html class=\"\"> <!--<![endif]-->\n<html xmlns=\"http://www.w3.org/1999/xhtml\" <?php language_attributes('xhtml'); ?>>\n<head profile=\"http://gmpg.org/xfn/11\"> <?php \n}", "function custom_conds( $conds = array())\n\t{\n\t\t// rating_id condition\n\t\tif ( isset( $conds['id'] )) {\n\t\t\t$this->db->where( 'id', $conds['id'] );\n\t\t}\n\n\t\t// user_id condition\n\t\tif ( isset( $conds['user_id'] )) {\n\t\t\t$this->db->where( 'user_id', $conds['user_id'] );\n\t\t}\n\n\t\t// shop_id condition\n\t\tif ( isset( $conds['shop_id'] )) {\n\t\t\t$this->db->where( 'shop_id', $conds['shop_id'] );\n\t\t}\n\n\t\t// rating condition\n\t\tif ( isset( $conds['rating'] )) {\n\t\t\t$this->db->where( 'rating', $conds['rating'] );\n\t\t}\n\n\t\t// title condition\n\t\tif ( isset( $conds['title'] )) {\n\t\t\t$this->db->where( 'title', $conds['title'] );\n\t\t}\n\n\t\t// description condition\n\t\tif ( isset( $conds['description'] )) {\n\t\t\t$this->db->where( 'description', $conds['description'] );\n\t\t}\n\n\t\t$this->db->order_by( 'added_date', 'desc' );\n\t}", "public function is_tag_closer()\n {\n }", "public function register_email_tags() {\n\t\tedd_add_email_tag( 'browsing_history', __( 'Display the customer\\'s browsing history prior to this transaction.', 'edduh' ), array( $this, 'email_tag_browsing_history' ) );\n\t\tedd_add_email_tag( 'purchase_history', __( 'Display the customer\\'s purchase history and total lifetime value.', 'edduh' ), array( $this, 'email_tag_purchase_history' ) );\n\t}", "function apply_condition($node, $cond){\n\tif(empty($cond)){\n\t\treturn NULL;\n\t}\n\n\t// vytazeni vsech poduzlu, pokud jsou\n\t$left = apply_condition($node, $cond->left);\n\t$right = apply_condition($node, $cond->right);\n\n\tswitch($cond->type){\n\t\tcase \"op\":\n\t\t\tswitch($cond->value){\n\t\t\t\tcase \"<\":\n\t\t\t\tcase \">\":\n\t\t\t\tcase \"=\":\n\t\t\t\tcase \"CONTAINS\":\n\t\t\t\t\t// pro vsechny prvky zleva \n\t\t\t\t\tif($cond->value == '<'){\n\t\t\t\t\t\t$right = trim($right, \"\\\"\");\n\t\t\t\t\t\tif($left < $right)\n\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t\telse if($cond->value == '>'){\n\t\t\t\t\t\t$right = trim($right, \"\\\"\");\n\t\t\t\t\t\tif($left > $right)\n\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t\telse if($cond->value == '='){\n\t\t\t\t\t\t$right = trim($right, \"\\\"\");\n\t\t\t\t\t\tif($left == $right)\n\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t\telse if(preg_match(\"/CONTAINS/\", $cond->value)){\n\t\t\t\t\t\tif(!preg_match(\"/^\\\".*\\\"$/\",$right)){\n\t\t\t\t\t\t\tfwrite(STDERR,\"error - chyba dotazu\\n\");\n\t\t\t\t\t\t\texit(80);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t$right = trim($right, \"\\\"\");\n\n\t\t\t\t\t\tif(stripos($left, $right) !== false)\n\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t\treturn false;\n\t\t\t\tcase \"NOT\":\n\t\t\t\t\treturn !$left;\n\t\t\t\tdefault:\n\t\t\t\t\tfwrite(STDERR,\"error - neznamy operator ($cond->value)\\n\");\n\t\t\t\t\texit(80); \n\t\t\t}\n\t\t\tbreak;\n\t\tcase \"lit\":\n\t\t\t// jak str tak num musi vratit obsah\n\t\t\treturn $cond->value;\n\t\tcase \"elem\":\n\t\t\t// podle vyhodnoceni typu identifikatoru se ulozi do nasledujicich promennych nazvy\n\t\t\t$elem = NULL;\n\t\t\t$attr = NULL;\n\t\t\t//je to element.atribut\n\t\t\tif(preg_match(\"/^[a-zA-Z_]([a-zA-Z0-9_\\-])*\\.[a-zA-Z_]([a-zA-Z0-9_\\-])*$/\", $cond->value)){\n\t\t\t\t$spl = explode(\".\", $cond->value);\n\t\t\t\t$elem = $spl[0];\n\t\t\t\t$attr = $spl[1];\n\t\t\t}\n\t\t\t//je to element\n\t\t\telse if(preg_match(\"/^[a-zA-Z_]([a-zA-Z0-9_\\-])*$/\", $cond->value)){\n\t\t\t\t$elem = $cond->value;\n\t\t\t}\n\t\t\t//je to atribut \n\t\t\telse if(preg_match(\"/^\\.[a-zA-Z_]([a-zA-Z0-9_\\-])*$/\", $cond->value)){\n\t\t\t\t$attr = substr($cond->value, 1);\n\t\t\t}\n\t\t\t//jinak vracim chybu\n\t\t\telse {\n\t\t\t\tfwrite(STDERR,\"error - nepodporovany element\\n\");\n\t\t\t\texit(80); \n\t\t\t}\n\n\t\t\t// uvnitr $node najit vsechny vyskyty elem.attr\n\t\t\t// vratit vsechny nalezene hodnoty\n\t\t\treturn find($node, $elem, $attr);\n\t\tdefault:\n\t\t\tfwrite(STDERR,\"error - neznamy typ\\n\");\n\t\t\texit(80); \n\t}\n}", "protected function has_tags(){\n\t\tif( ! empty( $this->tags ) ){\n\t\t\treturn true;\n\t\t}else{\n\t\t\treturn false;\n\t\t}\n\n\t}", "function unknown_tag($tag, $params, $tokens) {\r\n\t\tif ($tag == 'else') {\r\n\t\t\t$this->nodelist = & $this->nodelist_false;\r\n\t\t\t$this->nodelist_false = array();\r\n\t\t} else {\r\n\t\t\tparent::unknown_tag($tag, $params, $tokens);\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t}", "protected function _buildCondition(){\n \t$aryCondition = array();\n \t\n \tif(!empty($this->postData)){\n \t\t //search\n\t\t\t \t\t\t\n\t\t\tif($this->postData['title']!=''){\n \t\t \t$aryCondition['like'][] = array(\"mt.title\"=>$this->postData['title']);\n \t\t }\t\t\t\n\t\t\tif($this->postData['page']!=''){\n \t\t \t$aryCondition['and'][] = array(\"mt.page\"=>$this->postData['page']);\n \t\t }\t\t\t\n\t\t\tif($this->postData['code']!=''){\n \t\t \t$aryCondition['like'][] = array(\"mt.code\"=>$this->postData['code']);\n \t\t }\t\t\t\n\t\t\tif($this->postData['status']!=''){\n \t\t \t$aryCondition['and'][] = array(\"mt.status\"=>$this->postData['status']);\n \t\t }\t\t\t\n\n \t}\n \treturn $aryCondition;\n }", "private function setupIfAction() {\n \n Blade::directive('if_action', function($expression) {\n $act = $this->stringParamAsString($expression); //gets act\n return '<?php '\n .' if ( (isset($show_actions) && array_search('.$act.',$show_actions)!==FALSE) || '\n . '(isset($hide_actions) && array_search('.$act.',$hide_actions)===FALSE) || '\n .' (!isset($show_actions) && !isset($hide_actions)) ): ?>';\n\n });\n }", "public function hasTag(){\n return $this->_has(1);\n }", "public function execute($condition) {\r\n \r\n }", "function unknown_tag($tag, $params, $tokens) {\r\n\t\tif ($tag == 'else') {\r\n\t\t\t$this->nodelist = & $this->nodelist_false;\r\n\t\t\t$this->nodelist_false = array();\r\n\t\t} else {\r\n\t\t\tparent::unknown_tag($tag, $params, $tokens);\r\n\t\t}\r\n\t\t\r\n\t}", "public function orderCondition(){\n try {\n // Sparql11query.g:146:3: ( ( ( ASC | DESC ) brackettedExpression ) | ( constraint | variable ) ) \n $alt23=2;\n $LA23_0 = $this->input->LA(1);\n\n if ( (($LA23_0>=$this->getToken('ASC') && $LA23_0<=$this->getToken('DESC'))) ) {\n $alt23=1;\n }\n else if ( ($LA23_0==$this->getToken('COALESCE')||$LA23_0==$this->getToken('IF')||($LA23_0>=$this->getToken('STR') && $LA23_0<=$this->getToken('REGEX'))||$LA23_0==$this->getToken('IRI_REF')||$LA23_0==$this->getToken('PNAME_NS')||$LA23_0==$this->getToken('PNAME_LN')||($LA23_0>=$this->getToken('VAR1') && $LA23_0<=$this->getToken('VAR2'))||$LA23_0==$this->getToken('OPEN_BRACE')) ) {\n $alt23=2;\n }\n else {\n $nvae = new NoViableAltException(\"\", 23, 0, $this->input);\n\n throw $nvae;\n }\n switch ($alt23) {\n case 1 :\n // Sparql11query.g:147:3: ( ( ASC | DESC ) brackettedExpression ) \n {\n // Sparql11query.g:147:3: ( ( ASC | DESC ) brackettedExpression ) \n // Sparql11query.g:148:5: ( ASC | DESC ) brackettedExpression \n {\n if ( ($this->input->LA(1)>=$this->getToken('ASC') && $this->input->LA(1)<=$this->getToken('DESC')) ) {\n $this->input->consume();\n $this->state->errorRecovery=false;\n }\n else {\n $mse = new MismatchedSetException(null,$this->input);\n throw $mse;\n }\n\n $this->pushFollow(self::$FOLLOW_brackettedExpression_in_orderCondition544);\n $this->brackettedExpression();\n\n $this->state->_fsp--;\n\n\n }\n\n\n }\n break;\n case 2 :\n // Sparql11query.g:155:3: ( constraint | variable ) \n {\n // Sparql11query.g:155:3: ( constraint | variable ) \n $alt22=2;\n $LA22_0 = $this->input->LA(1);\n\n if ( ($LA22_0==$this->getToken('COALESCE')||$LA22_0==$this->getToken('IF')||($LA22_0>=$this->getToken('STR') && $LA22_0<=$this->getToken('REGEX'))||$LA22_0==$this->getToken('IRI_REF')||$LA22_0==$this->getToken('PNAME_NS')||$LA22_0==$this->getToken('PNAME_LN')||$LA22_0==$this->getToken('OPEN_BRACE')) ) {\n $alt22=1;\n }\n else if ( (($LA22_0>=$this->getToken('VAR1') && $LA22_0<=$this->getToken('VAR2'))) ) {\n $alt22=2;\n }\n else {\n $nvae = new NoViableAltException(\"\", 22, 0, $this->input);\n\n throw $nvae;\n }\n switch ($alt22) {\n case 1 :\n // Sparql11query.g:156:5: constraint \n {\n $this->pushFollow(self::$FOLLOW_constraint_in_orderCondition562);\n $this->constraint();\n\n $this->state->_fsp--;\n\n\n }\n break;\n case 2 :\n // Sparql11query.g:157:7: variable \n {\n $this->pushFollow(self::$FOLLOW_variable_in_orderCondition570);\n $this->variable();\n\n $this->state->_fsp--;\n\n\n }\n break;\n\n }\n\n\n }\n break;\n\n }\n }\n catch (RecognitionException $re) {\n $this->reportError($re);\n $this->recover($this->input,$re);\n }\n catch(Exception $e) {\n throw $e;\n }\n \n return ;\n }", "function we_parse_tag_checkForm($attribs, $content, array $arr){\n\tif(($foo = attributFehltError($arr, array('match' => false, 'type' => false), __FUNCTION__))){\n\t\treturn $foo;\n\t}\n\n\treturn '<?php ob_start();?>' . $content . '<?php printElement(' . we_tag_tagParser::printTag('checkForm', $attribs, 'ob_get_clean()', false, true) . '); ?>';\n}", "function cacap_allowed_tags() {\n\treturn array(\n\t\t'a' => array(\n\t\t\t'href' => array(),\n\t\t\t'rel' => array(),\n\t\t),\n\t\t'b' => array(),\n\t\t'br' => array(),\n\t\t'div' => array(\n\t\t\t'align' => array(),\n\t\t),\n\t\t'h1' => array(),\n\t\t'h2' => array(),\n\t\t'h3' => array(),\n\t\t'i' => array(),\n\t\t'li' => array(),\n\t\t'p' => array(),\n\t\t'ol' => array(),\n\t\t'ul' => array(),\n\t);\n}", "function cond_quote_etag($etag) {\n return '\"' . preg_replace('/([\\\\\"])/', '\\\\\\\\$1', $etag) . '\"';\n}", "public function get_additional_conditions()\n {\n $l_type = (int) $_GET[C__GET__ID];\n\n if ($l_type > 0)\n {\n return ' AND cat_rel.isys_catg_its_type_list__isys_its_type__id = ' . $this->convert_sql_id($l_type) . ' ';\n } // if\n\n return '';\n }", "public function conditions() {\n\t\t$conditions_met = false;\n\t\t$local_post_types_wrapper = get_option( self::STORAGE_KEY );\n\t\tif (\n\t\t\t! $local_post_types_wrapper ||\n\t\t\t! is_array( $local_post_types_wrapper ) ||\n\t\t\t! isset( $local_post_types_wrapper['timestamp'] ) ||\n\t\t\t(int) $local_post_types_wrapper['timestamp'] + $this->ttl < time()\n\t\t) {\n\t\t\t$conditions_met = true;\n\t\t}\n\t\treturn $conditions_met;\n\t}", "function is_active($tag) {\n if(isset($_GET['tag'])){\n if($_GET['tag'] === $tag) {\n return 'active';\n }else {\n return '';\n }\n }else {\n if($tag === null) {\n return 'active';\n }\n }\n}", "function smarty_postfilter_process_tags ($source, Smarty_Internal_Template $template)\n{\n\t$extra = array (\n\t\t'include' => array(),\n\t\t'addon' => array(),\n\t\t'module' => array(),\n\t);\n\t$addSection = false;\n\tforeach ($template->used_tags as $tag) {\n\t\tif (!in_array($tag[0], array('addon','include','module','listing'))) {\n\t\t\t//not addon or include tag\n\t\t\tcontinue;\n\t\t}\n\t\t\t\n\t\t$vars = array();\n\t\tforeach ($tag[1] as $var) {\n\t\t\tforeach ($var as $name => $val) {\n\t\t\t\t$vars[$name] = trim($val,\"'\\\"\");\n\t\t\t}\n\t\t}\n\t\tif ($tag[0]=='include') {\n\t\t\t//go through includes as well\n\t\t\t$info = array();\n\t\t\t\n\t\t\t$info['file'] = $vars['file'];\n\t\t\t\n\t\t\tif (isset($vars['g_type'])) {\n\t\t\t\t$info['g_type'] = $vars['g_type'];\n\t\t\t}\n\t\t\tif (isset($vars['g_resource'])) {\n\t\t\t\t$info['g_resource'] = $vars['g_resource'];\n\t\t\t}\n\t\t\t//make key such that if same include is used multiple times, it is still\n\t\t\t//only added to the array once\n\t\t\t$extra['include'][implode(':',$info)] = $info;\n\t\t\tunset ($info);\n\t\t} else if ($tag[0]=='module') {\n\t\t\tif (isset($vars['tag']) && $vars['tag']) {\n\t\t\t\t$extra['module'][$vars['tag']] = $vars['tag'];\n\t\t\t}\n\t\t} else if ($tag[0] == 'addon' || $tag[0]=='listing') {\n\t\t\tif (!isset($vars['addon']) || !isset($vars['tag']) || $vars['addon']=='core') {\n\t\t\t\t//failsafe, required info missing, or this is a core tag\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t//Note: Do NOT check to see if addon is enabled and has the tag\n\t\t\t//able to be used at this point, or template would need to be re-compiled\n\t\t\t//every time addon is enabled/disabled\n\t\t\t\n\t\t\t$info = array();\n\t\t\t\n\t\t\t$info['addon'] = $vars['addon'];\n\t\t\t$info['tag'] = $vars['tag'];\n\t\t\t\n\t\t\t//make key such that if the same addon tag is used multiple times, it is\n\t\t\t//still only added to the array once\n\t\t\t$extra['addon'][implode(':',$info)] = $info;\n\t\t\tunset($info);\n\t\t}\n\t\t$addSection = true;\n\t}\n\t$template->mustCompile();\n\tif ($addSection) {\n\t\t//there is stuff to process\n\t\t\n\t\t$section = '<?php $_smarty_tpl->used_tags = '.var_export($extra,1).'; ?>';\n\t\t\n\t\t$source = str_replace('/*/%%SmartyHeaderCode%%*/?>','/*/%%SmartyHeaderCode%%*/?>'.$section,$source);\n\t}\n\treturn $source;\n}", "public function getCondition(): array\n {\n return $this->nodeConditions;\n }", "abstract public function getConditionsInstance();", "function ja_filter_bbpress_allowed_tags() {\n\n\treturn array(\n\n\n\n\t// Links\n\n\t\t\t'a' => array(\n\n\t\t\t\t\t'href' => array(),\n\n\t\t\t\t\t'title' => array(),\n\n\t\t\t\t\t'rel' => array()\n\n\t\t\t),\n\n\n\n\t\t\t// Quotes\n\n\t\t\t'blockquote' => array(\n\n\t\t\t\t\t'cite' => array()\n\n\t\t\t),\n\n\n\n\t\t\t// Code\n\n\t\t\t'code' => array(),\n\n\t\t\t'pre' => array(),\n\n\n\n\t\t\t// Formatting\n\n\t\t\t'em' => array(),\n\n\t\t\t'strong' => array(),\n\n\t\t\t'del' => array(\n\n\t\t\t\t\t'datetime' => true,\n\n\t\t\t),\n\n\n\n\t\t\t// Lists\n\n\t\t\t'ul' => array(),\n\n\t\t\t'ol' => array(\n\n\t\t\t\t\t'start' => true,\n\n\t\t\t),\n\n\t\t\t'li' => array(),\n\n\n\n\t\t\t// Images\n\n\t\t\t'img' => array(\n\n\t\t\t\t\t'src' => true,\n\n\t\t\t\t\t'border' => true,\n\n\t\t\t\t\t'alt' => true,\n\n\t\t\t\t\t'height' => true,\n\n\t\t\t\t\t'width' => true,\n\n\t\t\t)\n\n\t);\n\n}", "public function providerHasBlockTags() {\n $tests = [];\n $tests[] = ['some text', FALSE];\n $tests[] = ['<b>some text</b>', FALSE];\n $tests[] = ['<p>some text</p>', TRUE];\n $tests[] = ['some text<br />', TRUE];\n return $tests;\n }", "public function buildConditionQuery()\n\t\t\t{\n\t\t\t\t$this->sql_condition = ' user_id='.$this->CFG['user']['user_id'];\n\t\t\t}", "function we_tag_ifIsActive(array $attribs){\n\tswitch(weTag_getAttribute('_name_orig', $attribs, '', we_base_request::STRING)){\n\t\tcase 'banner':\n\t\t\treturn we_base_moduleInfo::isActive(we_base_moduleInfo::BANNER);\n\t\tcase 'customer':\n\t\t\treturn we_base_moduleInfo::isActive(we_base_moduleInfo::CUSTOMER);\n\t\tcase 'glossary':\n\t\t\treturn we_base_moduleInfo::isActive(we_base_moduleInfo::GLOSSARY);\n\t\tcase 'messaging':\n\t\t\treturn we_base_moduleInfo::isActive(we_base_moduleInfo::MESSAGING);\n\t\tcase 'newsletter':\n\t\t\treturn we_base_moduleInfo::isActive(we_base_moduleInfo::NEWSLETTER);\n\t\tcase 'object':\n\t\t\treturn we_base_moduleInfo::isActive(we_base_moduleInfo::OBJECT);\n\t\tcase 'shop':\n\t\t\treturn we_base_moduleInfo::isActive(we_base_moduleInfo::SHOP);\n\t\tcase 'scheduler':\n\t\t\treturn we_base_moduleInfo::isActive(we_base_moduleInfo::SCHEDULER);\n\t\tcase 'voting':\n\t\t\treturn we_base_moduleInfo::isActive(we_base_moduleInfo::VOTING);\n\t\tcase 'workflow':\n\t\t\treturn we_base_moduleInfo::isActive(we_base_moduleInfo::WORKFLOW);\n\n\t\tdefault:\n\t\t\treturn false;\n\t}\n}", "public function conditionsAction() {\n $last_terms = $this->getDoctrine()->getManager()->getRepository('AppBundle:Conditions')->findLast();\n return $this->render('AppBundle:Conditions:conditions.html.twig', array(\n 'last_terms' => $last_terms,\n ));\n }", "public function getCondition() {\n return $this->condition;\n }", "public function getCondition() {\n return $this->condition;\n }", "public function all_valid_tags() {\n echo \"yay!\";\n }", "public function getConditions(): \\Generator;", "public function endConditionalHtmlTag() {\n return '</html>';\n }", "public function hasTag(): bool;", "function tag($tag_name, $op, $pref = '', $nl = false, $extra = '')\n{\n echo $pref . '<' ;\n if ($op == 'close') {\n echo '/' ;\n }\n echo $tag_name ;\n if ($extra != '') {\n echo ' ' . $extra ;\n }\n echo '>' ;\n if ($nl == true) {\n NL() ;\n }\n}" ]
[ "0.62023723", "0.59281105", "0.59141576", "0.59028506", "0.59028506", "0.5854755", "0.5854755", "0.5854755", "0.581519", "0.57775754", "0.5764218", "0.5737749", "0.5699663", "0.56732744", "0.56668013", "0.56589174", "0.55807716", "0.55567926", "0.5526291", "0.5521354", "0.5517081", "0.5516336", "0.5494235", "0.54854214", "0.5484144", "0.54466766", "0.54466766", "0.54466766", "0.54434943", "0.5328257", "0.5320463", "0.52855945", "0.5266288", "0.5260657", "0.5250381", "0.5250381", "0.52490705", "0.52349555", "0.5231031", "0.521853", "0.5218037", "0.52073735", "0.5203904", "0.52004236", "0.5187762", "0.51871824", "0.517944", "0.5171689", "0.5167739", "0.515944", "0.5155907", "0.51546", "0.51515186", "0.51475996", "0.51435286", "0.513716", "0.51338", "0.51103926", "0.5092275", "0.5092008", "0.5079541", "0.5065818", "0.50518245", "0.5046286", "0.5046045", "0.50424945", "0.5038682", "0.5027688", "0.50238436", "0.5017615", "0.5009405", "0.5003701", "0.5002585", "0.49981403", "0.49944064", "0.4994083", "0.49912226", "0.4985009", "0.49829116", "0.49757966", "0.4973517", "0.4967668", "0.49666435", "0.49663442", "0.4963547", "0.49557465", "0.49537238", "0.49486098", "0.49414915", "0.492866", "0.4926519", "0.49220914", "0.4920236", "0.49180284", "0.49119627", "0.49119627", "0.4910876", "0.4909208", "0.49073902", "0.49051508", "0.49045092" ]
0.0
-1
Check if the current (or provided parameter) post's category is an event category (set from Theme Options in wpadmin). Also traverses and check applicable parent categories.
function is_event($p = null) { global $post; $p = ($p == null) ? $post : $p; $cat = get_the_category($p->ID); $option_category = get_it_option('event_category'); return $cat[0]->cat_ID == $option_category || get_top_parent_cat_ID($cat[0]) == $option_category; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function in_child_category($thecategory ){\n\t$params = array('type' => 'post',\n 'child_of' => $thecategory,\n 'hierarchical' => 0, );\n\t$cats = get_categories($params);\n\n\tforeach ($cats as $cat) {\n\t\tif ( in_category($cat->cat_ID) ){\n\t\t\treturn true;\n\t\t}\n \t} // end for children\n\treturn false;\n}", "function is_outdoors() {\n $outdoors = false;\n global $post;\n $current_id = ( is_single() ) ? $post->ID : get_query_var('cat');\n $outdoor_parent = get_category_by_slug( 'outdoors' );\n if ( is_category() && ( $current_id == $outdoor_parent->term_id || cat_is_ancestor_of( $outdoor_parent->term_id, $current_id ) ) ) {\n $outdoors = true;\n } else if ( is_single() ) {\n $categories = wp_get_post_categories( $current_id );\n foreach ( $categories as $category ) {\n if ( $category == $outdoor_parent->term_id ) {\n $outdoors = true;\n break;\n }\n }\n }\n return $outdoors;\n}", "Public function isEvent( $cat ) {\r\n\t\treturn isset( $this->events[ $cat ] );\r\n\t}", "function in_comic_category() {\n\tglobal $post, $category_tree;\n\t\n\t$comic_categories = array();\n\tforeach ($category_tree as $node) {\n\t\t$comic_categories[] = end(explode(\"/\", $node));\n\t}\n\treturn (count(array_intersect($comic_categories, wp_get_post_categories($post->ID))) > 0);\n}", "function in_project($post_id) {\n $categories = get_the_category($post_id);\n $project = get_category_by_slug('project');\n\n foreach($categories as $category) {\n if($category->category_parent == $project->term_id) {\n return TRUE;\n }\n }\n\n return FALSE;\n}", "function has_category($category = '', $post = \\null)\n {\n }", "function is_child_category($thecategory ){\n\t$params = array('type' => 'post',\n 'child_of' => $thecategory,\n 'hierarchical' => 0, );\n\t$cats = get_categories($params);\n\n\tforeach ($cats as $cat) {\n\t\tif ( is_category($cat->cat_ID) ){\n\t\t\treturn true;\n\t\t}\n \t} // end for children\n\treturn false;\n}", "public function validateCatalogEvents()\n {\n // instead of generic (we are capped by allowed store groups root categories)\n // check whether attempting to create event for wrong category\n if (self::ACTION_NEW === $this->getActionName()) {\n $categoryId = $this->_request->getParam('category_id');\n if (!$categoryId) {\n $this->_forward();\n return;\n }\n\n try {\n $category = $this->categoryRepository->get($categoryId);\n } catch (NoSuchEntityException $e) {\n $this->_forward();\n return;\n }\n\n if (!$this->_isCategoryAllowed($category) || !$this->_role->getIsWebsiteLevel()) {\n $this->_forward();\n return;\n }\n }\n }", "function is_new_category_allowed($parent_category){\n\t$max_depth = Modules::Run('site_settings/get_max_category_depth');\n\t// get current category depth\n\t$current_depth = $this->get_category_depth($parent_category);\n\t// figure out if a new category is allowed\n\tif ($current_depth < $max_depth){\n\t\treturn TRUE;\n\t} else {\n\t\treturn FALSE;\n\t}\n\n}", "function has_post_parent($post = \\null)\n {\n }", "function category_has_children() {\n global $wpdb;\n $term = get_queried_object();\n $category_children_check = $wpdb->get_results(\" SELECT * FROM wp_term_taxonomy WHERE parent = '$term->term_id' \");\n if ($category_children_check) {\n return true;\n } else {\n return false;\n }\n}", "private function is_parent()\n\t{\n\t\treturn is_null($this->category_id);\n\t}", "protected function isCategory()\n {\n return is_null($this->request->task);\n }", "function is_calendar() {\n\tglobal $wp_query;\n\tif ( 'calendar' == $wp_query->queried_object->taxonomy )\n\t\treturn true;\n}", "function emc_get_subcategory_object( $post_id = null, $parent = null ) {\r\n\r\n\t// Missing arguments? Let's bail\r\n\tif ( ! isset( $post_id, $parent ) ) return false;\r\n\r\n\t// get ID of the parent category\r\n\t$term = get_category_by_slug( $parent );\r\n\t$parent_id = $term->term_id;\r\n\r\n\t// get all categories for the current post\r\n\t$cats = get_the_category( $post_id );\r\n\tforeach ($cats as $cat) {\r\n\t\tif ( $parent_id == $cat->category_parent ) {\r\n\t\t\treturn $cat;\r\n\t\t}\r\n\t}\r\n\r\n\treturn false;\r\n\r\n}", "public function hasCategory()\n {\n return $this->category !== null;\n }", "function category_exists($cat_name, $category_parent = \\null)\n {\n }", "function _haveValidParent(&$cat) {\n\t\t$parentCat = $this->get($cat->getVar('cat_pid'));\n\t\treturn !$this->_isAlbum($parentCat);\n\t}", "function ppo_categorized_blog() {\n if (false === ( $all_the_cool_cats = get_transient('ppo_category_count') )) {\n // Create an array of all the categories that are attached to posts\n $all_the_cool_cats = get_categories(array(\n 'hide_empty' => 1,\n ));\n\n // Count the number of categories that are attached to the posts\n $all_the_cool_cats = count($all_the_cool_cats);\n\n set_transient('ppo_category_count', $all_the_cool_cats);\n }\n\n if (1 !== (int) $all_the_cool_cats) {\n // This blog has more than 1 category so ppo_categorized_blog should return true\n return true;\n } else {\n // This blog has only 1 category so ppo_categorized_blog should return false\n return false;\n }\n}", "function is_event_calendar_page() {\n\n\tif ( class_exists( 'TribeEvents' ) ) {\n\n\t\t$is_event_calendar = false; // Default is false so if everything falls through it returns that it is not an EC page\n\n\t\tif ( tribe_is_month() && ! is_tax() ) { // Month View Page\n\n\t\t\t$is_event_calendar = true;\n\n\t\t} elseif ( tribe_is_month() && is_tax() ) { // Month View Category Page\n\n\t\t\t$is_event_calendar = true;\n\n\t\t} elseif ( tribe_is_past() || tribe_is_upcoming() && ! is_tax() ) { // List View Page\n\n\t\t\t$is_event_calendar = true;\n\n\t\t} elseif ( tribe_is_past() || tribe_is_upcoming() && is_tax() ) { // List View Category Page\n\n\t\t\t$is_event_calendar = true;\n\n\t\t} elseif ( tribe_is_week() && ! is_tax() ) { // Week View Page\n\n\t\t\t$is_event_calendar = true;\n\n\t\t} elseif ( tribe_is_week() && is_tax() ) { // Week View Category Page\n\n\t\t\t$is_event_calendar = true;\n\n\t\t} elseif ( tribe_is_day() && ! is_tax() ) { // Day View Page\n\n\t\t\t$is_event_calendar = true;\n\n\t\t} elseif ( tribe_is_day() && is_tax() ) { // Day View Category Page\n\n\t\t\t$is_event_calendar = true;\n\n\t\t} elseif ( tribe_is_map() && ! is_tax() ) { // Map View Page\n\n\t\t\t$is_event_calendar = true;\n\n\t\t} elseif ( tribe_is_map() && is_tax() ) { // Map View Category Page\n\n\t\t\t$is_event_calendar = true;\n\n\t\t} elseif ( tribe_is_photo() && ! is_tax() ) { // Photo View Page\n\n\t\t\t$is_event_calendar = true;\n\n\t\t} elseif ( tribe_is_photo() && is_tax() ) { // Photo View Category Page\n\n\t\t\t$is_event_calendar = true;\n\n\t\t} elseif ( is_singular( ‘tribe_events’ ) ) { // Single Events\n\n\t\t\t$is_event_calendar = true;\n\n\t\t} elseif ( is_singular( ‘tribe_venue’ ) ) { // Single Venues\n\n\t\t\t$is_event_calendar = true;\n\n\t\t} elseif ( is_singular( ‘tribe_organizer’ ) ) { // Single Organizers\n\n\t\t\t$is_event_calendar = true;\n\n\t\t} else {\n\n\t\t}\n\n\t\treturn $is_event_calendar;\n\t}\n}", "public function validCategory($data) {\n $categories = $this->categories();\n return array_key_exists(current($data), $categories);\n }", "function display_event_categories( $category ) {\n\n // Get the category from the shortcode. If not used properly, inform the user.\n if ( key($category) != \"category\" ) {\n echo \"Fail. Usage: [event_category category=\\\"category-slug\\\"]\";\n }\n\n $tax = $category['category'];\n \n // The Query\n $args = array(\n 'post_type' => array( 'Event_post_type' ),\n 'meta_key' => 'date_time_int',\n 'order' => 'ASC',\n 'orderby' => 'meta_value',\n 'posts_per_page' => -1,\n 'tax_query' => array( \n array( \n 'taxonomy' => 'type-category',\n 'field' => 'slug', \n 'terms' => $tax \n ),\n ),\n );\n $the_query = new WP_Query($args);\n\n //echo \"<pre>\"; print_r($the_query->posts); echo \"</pre>\";\n\n // Begin Loop \n\tif ( $the_query->have_posts() ) {\n\n\t\t$event_array = array();\n\n\t\twhile ( $the_query->have_posts() ) {\n\t\t\t$the_query->the_post();\n\t\t\t\n\t\t\t$evt_id\t\t = get_the_id();\n\t\t\t$fields \t = get_fields( $evt_id );\n $featured_img = get_the_post_thumbnail_url();\n $url = get_the_permalink();\n\n //print_r($fields);\n $event_array[] = array(\n 'evt_id' => get_the_id(),\n 'evt_permalink' => get_permalink(),\n 'evt_start_time' => $fields['non-recurring_details']['event_time'],\n 'evt_end_time' => $fields['non-recurring_details']['event_end'],\n 'evt_title' => get_the_title(),\n 'evt_venue' => $fields['non-recurring_details']['event_venue']->name,\n 'evt_date' => $fields['non-recurring_details']['event_date'],\n 'int_date_time' => create_date_time_in_loop( $fields['non-recurring_details']['event_date'], $fields['non-recurring_details']['event_time'] ),\n 'evt_img' => get_the_post_thumbnail(),\n 'evt_img_id' => get_post_thumbnail_id( get_the_id() ), \n 'evt_img_alt' => get_post_meta( get_post_thumbnail_id( get_the_id() ), '_wp_attachment_image_alt', true),\n 'evt_description' => $fields['event_description'],\n 'evt_video' => $fields['event_video'],\n 'evt_link' => $url\n ); \n\n\t\t} // end while\n\t} // end if\t\n //echo \"<pre>\"; print_r($event_array); echo \"</pre>\";\n\n // Echo out the concert rows \n // First, we must skip the concerts that have already happened.\n\n $date = date('YmdHi'); ?>\n\n <div class=\"event-cat-container\"> \n \n <?php foreach ( $event_array as $event ) {\n // Skip events that already happened\n if ( $date > $event['int_date_time'] ) {\n // do nothing\n } else { // build out HTML ?>\n <div class=\"single-event-row\">\n <div class=\"forty-sixty-override-left wpb_column vc_column_container vc_col-sm-6\">\n <div class=\"vc_column-inner\">\n <div class=\"wpb_wrapper\">\n <div class=\"wpb_text_column wpb_content_element \">\n <div class=\"wpb_wrapper\">\n <p><a href=\"<?php echo $event['evt_link']; ?>\"><?php echo $event['evt_img']; ?></a></p>\n </div> \n </div>\n </div>\n </div> \n </div> \n <div class=\"forty-sixty-override-right wpb_column vc_column_container vc_col-sm-6\">\n <div class=\"vc_column-inner \">\n <div class=\"wpb_wrapper\">\n <div class=\"wpb_text_column wpb_content_element \">\n <div class=\"wpb_wrapper\">\n <p><?php echo $event['evt_video'];?></p>\n </div>\n </div>\n <div class=\"wpb_text_column wpb_content_element \">\n <div class=\"wpb_wrapper\">\n <p><?php echo $event['evt_description']; ?> </p> \n </div> \n </div>\n </div>\n </div>\n </div> \n </div>\n <?php } \n } ?>\n </div>\n <?php \n}", "public function isDescendantOf($post): bool\n {\n $givenPost = $post instanceof static ? $post->wpPost() : get_post($post);\n $myAncestors = $this->ancestors;\n $isDescendant = $myAncestors->search(function (Post $myAncestor) use ($givenPost) {\n return $givenPost->ID === $myAncestor->id;\n });\n\n return $isDescendant !== false;\n }", "function get_event_cats() {\n\t\t\tif ( class_exists( 'Tribe__Events__Main' ) ) {\n\t\t\t\t$taxonomy = 'tribe_events_cat';\n\t\t\t\t$orderby = 'name';\n\t\t\t\t$show_count = 0; // 1 for yes, 0 for no\n\t\t\t\t$pad_counts = 0; // 1 for yes, 0 for no\n\t\t\t\t$hierarchical = 1; // 1 for yes, 0 for no\n\t\t\t\t$title = '';\n\t\t\t\t$empty = 0;\n\n\t\t\t\t$args = array(\n\t\t\t\t\t'taxonomy' => $taxonomy,\n\t\t\t\t\t'orderby' => $orderby,\n\t\t\t\t\t'show_count' => $show_count,\n\t\t\t\t\t'pad_counts' => $pad_counts,\n\t\t\t\t\t'hierarchical' => $hierarchical,\n\t\t\t\t\t'title_li' => $title,\n\t\t\t\t\t'hide_empty' => $empty\n\t\t\t\t);\n\n\t\t\t\t$categories_list = array();\n\t\t\t\t$all_categories = get_categories( $args );\n\n\t\t\t\tif ( is_wp_error( $all_categories ) || isset( $all_categories['errors'] ) ) {\n\t\t\t\t\treturn $categories_list;\n\t\t\t\t}\n\n\n\t\t\t\tforeach ( $all_categories as $category ) {\n\n\t\t\t\t\t$data = array(\n\t\t\t\t\t\t$category->slug => $category->name . \" (\" . $category->category_count . \")\"\n\t\t\t\t\t\t//category name and post count\n\t\t\t\t\t);\n\t\t\t\t\t$categories_list += $data;\n\t\t\t\t}\n\n\t\t\t\treturn $categories_list;\n\t\t\t} else {\n\t\t\t\treturn array();\n\t\t\t}\n\t\t}", "function is_video_category( $term = '' ) {\n return is_tax( 'video_cat', $term );\n }", "protected function hasParentMenuItem() {}", "function is_outdoor_home() {\n if ( is_outdoors() && is_category() ) {\n $cat = get_queried_object();\n $children = get_terms( $cat->taxonomy, array(\n 'parent' => $cat->term_id,\n 'hide_empty' => false\n ) );\n if ( 0 == $cat->category_parent ) {\n return true;\n } elseif ( $children ) {\n return true;\n } else {\n return false;\n }\n } else {\n return false;\n }\n}", "function studeon_tribe_events_get_post_categories($cats='') {\n\t\tglobal $wp_query;\n\t\t$id = $wp_query->current_post>=0 ? get_the_ID() : $wp_query->post->ID;\n\t\t$post_type = $wp_query->current_post>=0 ? get_post_type() : $wp_query->post->post_type;\n\t\tif ($post_type==Tribe__Events__Main::POSTTYPE) {\n\t\t\t$cats = studeon_get_post_terms(', ', $id, Tribe__Events__Main::TAXONOMY);\n\t\t}\n\t\treturn $cats;\n\t}", "public function hasChildren()\n {\n $query = 'SELECT category_id FROM '. \\rex::getTablePrefix() .'d2u_machinery_categories '\n .'WHERE parent_category_id = '. $this->category_id;\n $result = \\rex_sql::factory();\n $result->setQuery($query);\n\n if ($result->getRows() > 0) {\n return true;\n }\n\n return false;\n\n }", "function event_categories() {\n\n // First of, the target groups\n\t$labels = array(\n\t\t'name' => __( 'Event Target Groups', 'al3' ),\n\t\t'singular_name' => __( 'Event Target Group', 'al3' ),\n\t\t'menu_name' => __( 'Event Target Groups', 'al3' ),\n\t\t'all_items' => __( 'All Event Target Groups', 'al3' ),\n\t\t'parent_item' => __( 'Parent Event Target Group', 'al3' ),\n\t\t'parent_item_colon' => __( 'Parent Event Target Group:', 'al3' ),\n\t\t'new_item_name' => __( 'New Event Target Group', 'al3' ),\n\t\t'add_new_item' => __( 'Add Event Target Group', 'al3' ),\n\t\t'edit_item' => __( 'Edit Event Target Group', 'al3' ),\n\t\t'update_item' => __( 'Update Event Target Group', 'al3' ),\n\t\t'view_item' => __( 'View Event Target Group', 'al3' ),\n\t\t'separate_items_with_commas' => __( 'Separate Target Groups with commas', 'al3' ),\n\t\t'add_or_remove_items' => __( 'Add or remove Target Groups', 'al3' ),\n\t\t'choose_from_most_used' => __( 'Choose from the most used Target Groups', 'al3' ),\n\t\t'popular_items' => __( 'Popular Target Groups', 'al3' ),\n\t\t'search_items' => __( 'Search Event Target Groups', 'al3' ),\n\t\t'not_found' => __( 'Not Found', 'al3' ),\n\t\t'no_terms' => __( 'No Event Target Groups', 'al3' ),\n\t\t'items_list' => __( 'Event Target Groups list', 'al3' ),\n\t\t'items_list_navigation' => __( 'Event Target Groups list navigation', 'al3' ),\n\t);\n\t$rewrite = array(\n\t\t'slug' => __('event_target_group', 'al3'),\n\t\t'with_front' => true,\n\t\t'hierarchical' => false,\n\t);\n\t$args = array(\n\t\t'labels' => $labels,\n\t\t'hierarchical' => true,\n\t\t'public' => true,\n\t\t'show_ui' => true,\n\t\t'show_admin_column' => true,\n\t\t'show_in_nav_menus' => true,\n\t\t'show_tagcloud' => true,\n\t\t'rewrite' => $rewrite,\n\t);\n\n // Hook this pile of code\n\tregister_taxonomy( 'event_target_group', array( 'events' ), $args );\n\n\n // Now for the organizer (recently added)\n $labels = array(\n\t\t'name' => __( 'Event Organizer', 'al3' ),\n\t\t'singular_name' => __( 'Event Organizer', 'al3' ),\n\t\t'menu_name' => __( 'Event Organizer', 'al3' ),\n\t\t'all_items' => __( 'All Event Organizer', 'al3' ),\n\t\t'parent_item' => __( 'Parent Event Organizer', 'al3' ),\n\t\t'parent_item_colon' => __( 'Parent Event Organizer:', 'al3' ),\n\t\t'new_item_name' => __( 'New Event Organizer', 'al3' ),\n\t\t'add_new_item' => __( 'Add Event Organizer', 'al3' ),\n\t\t'edit_item' => __( 'Edit Event Organizer', 'al3' ),\n\t\t'update_item' => __( 'Update Event Organizer', 'al3' ),\n\t\t'view_item' => __( 'View Event Organizer', 'al3' ),\n\t\t'separate_items_with_commas' => __( 'Separate Event Organizer with commas', 'al3' ),\n\t\t'add_or_remove_items' => __( 'Add or remove Event Organizer', 'al3' ),\n\t\t'choose_from_most_used' => __( 'Choose from the most used Event Organizer', 'al3' ),\n\t\t'popular_items' => __( 'Popular Event Organizer', 'al3' ),\n\t\t'search_items' => __( 'Search Event Organizer', 'al3' ),\n\t\t'not_found' => __( 'Not Found', 'al3' ),\n\t\t'no_terms' => __( 'No Event Organizer', 'al3' ),\n\t\t'items_list' => __( 'Event Organizer list', 'al3' ),\n\t\t'items_list_navigation' => __( 'Event Organizer list navigation', 'al3' ),\n\t);\n\t$rewrite = array(\n\t\t'slug' => __('event_organizer', 'al3'),\n\t\t'with_front' => true,\n\t\t'hierarchical' => false,\n\t);\n\t$args = array(\n\t\t'labels' => $labels,\n\t\t'hierarchical' => true,\n\t\t'public' => true,\n\t\t'show_ui' => true,\n\t\t'show_admin_column' => true,\n\t\t'show_in_nav_menus' => true,\n\t\t'show_tagcloud' => true,\n\t\t'rewrite' => $rewrite,\n\t);\n\n\tregister_taxonomy( 'event_organizer', array( 'events' ), $args );\n\n}", "protected function parentCategoryTC()\n {\n return PostCategory::parentCategories()->firstOrFail();\n }", "public function validateCatalogCategories()\n {\n $forward = false;\n switch ($this->getActionName()) {\n case self::ACTION_ADD:\n /**\n * adding is not allowed from beginning if user has scope specified permissions\n */\n $forward = true;\n $parentId = $this->_request->getParam('parent');\n if ($parentId) {\n $forward = !$this->_validateCatalogSubCategoryAddPermission($parentId);\n }\n break;\n case self::ACTION_EDIT:\n if (!$this->_request->getParam('id')) {\n $parentId = $this->_request->getParam('parent');\n if ($parentId) {\n $forward = !$this->_validateCatalogSubCategoryAddPermission($parentId);\n } else {\n // no adding root categories\n $forward = true;\n }\n } else {\n try {\n $category = $this->categoryRepository->get($this->_request->getParam('id'));\n } catch (NoSuchEntityException $e) {\n $category = null;\n }\n if (!$category || !$this->_isCategoryAllowed($category)) {\n // no viewing wrong categories\n $forward = true;\n }\n }\n break;\n }\n\n // redirect to first allowed root category\n if ($forward) {\n $firstRootId = current(array_keys($this->_role->getAllowedRootCategories()));\n if (count($this->_role->getAllowedRootCategories()) > 0 && $firstRootId) {\n $this->_redirect(['*/*/*', 'id' => $firstRootId]);\n } else {\n $this->_forward();\n }\n }\n }", "protected function _checkChildren($parent_cat_id)\n\t{\n\t\t$collection = $this->getCollection();\n\t\t$collection->addFieldToFilter('category_parent_id',$parent_cat_id); \n\n\t\t//Check if it is a eBay Store Tree\n\t\tif ($this->_ebay_store_flag==1)\n\t\t{\n\t\t\t$collection->addFieldToFilter('store',1);\t\t\t\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$collection->addFieldToFilter('store',0);\t\n\t\t}\n\t\t\t\t\n\t\tif ($collection->count()>1) return true; else return false;\t\t\n\t}", "function is_child($parent) {\n\tglobal $wp_query;\n\tif ($wp_query->post->post_parent == $parent) { $return = true; } else { $return = false; }\n\treturn $return;\n}", "public static function determineIsParentActive($category)\n {\n $criteriaWhere = new Criteria();\n $criteriaSet = new Criteria();\n\n $criteriaWhere->add(self::PARENT_ID, $category->getId());\n $criteriaSet->add(self::IS_PARENT_ACTIVE, $category->getIsActive() && $category->getIsParentActive());\n\n BasePeer::doUpdate($criteriaWhere, $criteriaSet, Propel::getConnection(self::DATABASE_NAME));\n\n $childs = array();\n $childs = $category->getChild();\n\n if ($childs != null) {\n foreach($childs as $child) {\n if ($child->getHasChild() == 0) {\n continue;\n }\n\n self::determineIsParentActive($child);\n }\n }\n }", "function L_catHasParent($catid) {\n\t\t\n\t\t$category = get_category($catid);\n\t\tif ($category->category_parent > 0) {\n\t\t\t\n\t\t\treturn true;\n\t\t\t\n\t\t}\n\t\t\n\t\treturn false;\n\t\n\t}", "private function _hasSubCategories($category){\n $cat = Mage::getModel('catalog/category')->load($category->getId());\n $subcats = $cat->getChildren();\n if (empty($subcats)){\n return false;\n } else {\n return true;\n }\n }", "function nm_cmb_is_category_tyskysour( $cmb ) {\n $term = get_term($cmb->object_id);\n\n if (isset($term->slug) && ($term->slug === 'tyskysour-video')) {\n return true;\n }\n\n return false;\n}", "protected function has_active_siblings($category)\n {\n \n \n $sibling = Db_DbHelper::queryArray('select * from gd_google_taxonomy where visible=1 and parent_id=:parent_id and id<>:id', array('parent_id'=>$category->parent_id, 'id'=>$category->id));\n \n return count($sibling) > 0;\n \n \n }", "public static function containerLogicCheck(\\Elgg\\Event $elgg_event) {\n\t\tif ($elgg_event->getParam('subtype') !== 'event') {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t$container = $elgg_event->getParam('container');\n\t\tif ($container instanceof \\ElggGroup) {\n\t\t\t$who_create_group_events = elgg_get_plugin_setting('who_create_group_events', 'event_manager'); // group_admin, members\n\t\t\tif (empty($who_create_group_events)) {\n\t\t\t\t// no one can create\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\t\n\t\t\t$user = $elgg_event->getUserParam();\n\t\t\t$user_guid = $user instanceof \\ElggUser ? $user->guid : 0;\n\t\t\tif ($who_create_group_events === 'group_admin' && !$container->canEdit($user_guid)) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\t\n\t\t\t// in other group case let regular checks take place\n\t\t} else {\n\t\t\t$who_create_site_events = elgg_get_plugin_setting('who_create_site_events', 'event_manager');\n\t\t\tif ($who_create_site_events === 'admin_only' && !elgg_is_admin_logged_in()) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t}", "function have_category() {\n global $categories_index, $discussion, $categories, $categories_count;\n\n $categories_count = count(get_categories());\n $categories = get_categories();\n\n if ($categories && $categories_index + 1 <= $categories_count) {\n $categories_index++;\n return true;\n } else {\n $categories_count = 0;\n return false;\n }\n}", "function wp_category_checklist($post_id = 0, $descendants_and_self = 0, $selected_cats = \\false, $popular_cats = \\false, $walker = \\null, $checked_ontop = \\true)\n {\n }", "function tep_has_category_subcategories($category_id) {\n $child_category_query = tep_db_query(\"select count(*) as count from \" . TABLE_CATEGORIES . \" where parent_id = '\" . (int)$category_id . \"'\");\n $child_category = tep_db_fetch_array($child_category_query);\n\n if ($child_category['count'] > 0) {\n return true;\n } else {\n return false;\n }\n }", "function event_post_type() {\n // Register the post type\n register_post_type('events', array(\n 'labels' => array(\n 'name' => __('Events'),\n 'singular_name' => __('Event'),\n ),\n 'public' => false,\n 'show_ui' => true,\n 'has_archive' => true,\n 'rewrite' => array('slug' => 'events', 'with_front' => false),\n ));\n\n // Press Release Categories\n register_taxonomy('event_category', 'events', array(\n 'labels' => array(\n 'name' => __('Categories'),\n 'singular_name' => __('Category'),\n ),\n 'hierarchical' => true,\n ));\n\n // Press Release Tags\n register_taxonomy('event_tag', 'events', array(\n 'labels' => array(\n 'name' => __('Tags'),\n 'singular_name' => __('Tag'),\n ),\n 'hierarchical' => false,\n ));\n}", "function postasevent_hide_if_no_cats( $field ) {\n\t// Don't show this field if not in the cats category\n\tif ( ! has_tag( 'cats', $field->object_id ) ) {\n\t\treturn false;\n\t}\n\treturn true;\n}", "function twe_news_has_category_subcategories($category_id) {\n global $db;\n $child_category_query = \"select count(*) as count from \" . TABLE_NEWS_CATEGORIES . \" where parent_id = '\" . $category_id . \"'\";\n $child_category = $db->Execute($child_category_query);\n\n if ($child_category->fields['count'] > 0) {\n return true;\n } else {\n return false;\n }\n }", "function is_post_type_hierarchical($post_type)\n {\n }", "function gravit_categorized_blog() {\r\r\n\tif ( false === ( $all_the_cool_cats = get_transient( 'all_the_cool_cats' ) ) ) {\r\r\n\t\t// Create an array of all the categories that are attached to posts.\r\r\n\t\t$all_the_cool_cats = get_categories( array(\r\r\n\t\t\t'hide_empty' => 1,\r\r\n\t\t) );\r\r\n\r\r\n\t\t// Count the number of categories that are attached to the posts.\r\r\n\t\t$all_the_cool_cats = count( $all_the_cool_cats );\r\r\n\r\r\n\t\tset_transient( 'all_the_cool_cats', $all_the_cool_cats );\r\r\n\t}\r\r\n\r\r\n\tif ( '1' != $all_the_cool_cats ) {\r\r\n\t\t// This blog has more than 1 category so gravit_categorized_blog should return true.\r\r\n\t\treturn true;\r\r\n\t} else {\r\r\n\t\t// This blog has only 1 category so gravit_categorized_blog should return false.\r\r\n\t\treturn false;\r\r\n\t}\r\r\n}", "function custom_post_type_cat_filter($query) {\n if ( !is_admin() && $query->is_main_query() ) {\n if ($query->is_category()) {\n $query->set( 'post_type', array( 'articles', 'guides', 'conseils' ) );\n }\n }\n}", "public function hasCategory(): bool;", "protected function _isCategoryAllowed($category)\n {\n $categoryPath = $category->getPath();\n foreach ($this->_role->getAllowedRootCategories() as $rootPath) {\n if ($categoryPath === $rootPath || 0 === strpos($categoryPath, \"{$rootPath}/\")) {\n return true;\n }\n }\n return false;\n }", "public function is_category($category = '')\n {\n }", "function is_video_taxonomy() {\n return is_tax( get_object_taxonomies( 'video' ) );\n }", "public function isCategory($category): bool;", "function acf_location_rule_match_category_ancestor($match, $rule, $options) {\n $terms = 0;\n if (array_key_exists('post_taxonomy', $options)){\n $terms = $options['post_taxonomy'];\n }\n $data = acf_decode_taxonomy_term($rule['value']);\n $term = get_term_by('slug', $data['term'], $data['taxonomy']);\n if (!$term && is_numeric($data['term'])) {\n $term = get_term_by('id', $data['term'], $data['taxonomy']);\n }\n // this is where it's different than ACf\n // get terms so we can look at the parents\n if (is_array($terms)) {\n foreach ($terms as $index => $term_id) {\n $terms[$index] = get_term_by('id', intval($term_id), $term->taxonomy);\n }\n }\n if (!is_array($terms) && $options['post_id']) {\n $terms = wp_get_post_terms(intval($options['post_id']), $term->taxonomy);\n }\n if (!is_array($terms)) {\n $terms = array($terms);\n }\n $terms = array_filter($terms);\n $match = false;\n // collect a list of ancestors\n $ancestors = array();\n if (count($terms)) {\n foreach ($terms as $term_to_check) {\n $ancestors = array_merge(get_ancestors($term_to_check->term_id, $term->taxonomy));\n } // end foreach terms\n } // end if\n // see if the rule matches any term ancetor\n if ($term && in_array($term->term_id, $ancestors)) {\n $match = true;\n }\n\n if ($rule['operator'] == '!=') {\n // reverse the result\n $match = !$match;\n }\n return $match;\n}", "function tmpl_get_wp_category_checklist_plugin($post_id = 0, $args = array()) {\r\n\tglobal $cat_array;\r\n \t$defaults = array(\r\n\t\t'descendants_and_self' => 0,\r\n\t\t'selected_cats' => false,\r\n\t\t'popular_cats' => false,\r\n\t\t'walker' => null,\r\n\t\t'taxonomy' => 'category',\r\n\t\t'checked_ontop' => true\r\n\t);\r\n\t\r\n\tif(isset($_REQUEST['pid']) && $_REQUEST['pid']!=\"\"){\r\n\t\t$place_cat_arr = $cat_array;\r\n\t\t$post_id = $post_id;\r\n\t}\r\n\r\n\t$args = apply_filters( 'wp_terms_checklist_args', $args, $post_id );\r\n\t$template_post_type = get_post_meta($post->ID,'submit_post_type',true);\r\n\textract( wp_parse_args($args, $defaults), EXTR_SKIP );\r\n\r\n\tif ( empty($walker) || !is_a($walker, 'Walker') )\r\n\t\t$walker = new Tev_Walker_Category_Checklist_Backend;\r\n\r\n\t$descendants_and_self = (int) $descendants_and_self;\r\n\r\n\t$args = array('taxonomy' => $taxonomy);\r\n\r\n\t$tax = get_taxonomy($taxonomy);\r\n\t$args['disabled'] = !current_user_can($tax->cap->assign_terms);\r\n\t\r\n\tif ( is_array( $selected_cats ) )\r\n\t\t$args['selected_cats'] = $selected_cats;\r\n\telseif ( $post_id )\r\n\t\t$args['selected_cats'] = wp_get_object_terms($post_id, $taxonomy, array_merge($args, array('fields' => 'ids')));\r\n\telse\r\n\t\t$args['selected_cats'] = array();\r\n\r\n\tif ( is_array( $popular_cats ) )\r\n\t\t$args['popular_cats'] = $popular_cats;\r\n\telse\r\n\t\t$args['popular_cats'] = get_terms( $taxonomy, array( 'get' => 'all', 'fields' => 'ids', 'orderby' => 'count', 'order' => 'DESC', 'hierarchical' => false ) );\r\n\r\n\tif ( $descendants_and_self ) {\r\n\t\t$categories = (array) get_terms($taxonomy, array( 'child_of' => $descendants_and_self, 'hierarchical' => 0, 'hide_empty' => 0 ) );\r\n\t\t$self = get_term( $descendants_and_self, $taxonomy );\r\n\t\tarray_unshift( $categories, $self );\r\n\t} else {\r\n\t\t$categories = (array) get_terms($taxonomy, array('get' => 'all'));\r\n\t}\r\n\r\n\tif ( $checked_ontop ) {\r\n\t\t/* Post process $categories rather than adding an exclude to the get_terms() query to keep the query the same across all posts (for any query cache)*/\r\n\t\t$checked_categories = array();\r\n\t\t$keys = array_keys( $categories );\r\n\t\t$c=0;\r\n\t\tforeach( $keys as $k ) {\r\n\t\t\tif ( in_array( $categories[$k]->term_id, $args['selected_cats'] ) ) {\r\n\t\t\t\t$checked_categories[] = $categories[$k];\r\n\t\t\t\tunset( $categories[$k] );\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t/* Put checked cats on top*/\r\n\t\techo call_user_func_array(array(&$walker, 'walk'), array($checked_categories, 0, $args));\r\n\t}\r\n\t/* Then the rest of them*/\r\n\r\n\techo call_user_func_array(array(&$walker, 'walk'), array($categories, 0, $args));\r\n\tif(empty($categories) && empty($checked_categories)){\r\n\r\n\t\t\techo '<span style=\"font-size:12px; color:red;\">'.sprintf(__('You have not created any category for %s post type. So, this listing will be submited as uncategorized.','templatic'),$template_post_type).'</span>';\r\n\t}\r\n}", "function create_events_posttype() {\n\n\t$labels = array(\n\t\t'name' => _x( 'Events', 'Post Type General Name'),\n\t\t'singular_name' => _x( 'Event', 'Post Type Singular Name'),\n\t\t'menu_name' => __( 'Events'),\n\t\t'parent_item_colon' => __( 'Parent Event'),\n\t\t'all_items' => __( 'All Events'),\n\t\t'view_item' => __( 'View Event'),\n\t\t'add_new_item' => __( 'Add New Event'),\n\t\t'add_new' => __( 'Add New'),\n\t\t'edit_item' => __( 'Edit Event'),\n\t\t'update_item' => __( 'Update Event'),\n\t\t'search_items' => __( 'Search Event'),\n\t\t'not_found' => __( 'Not Found'),\n\t\t'not_found_in_trash' => __( 'Not found in Trash'),\n);\n\n$args = array(\n\t'label' => __( 'Events'),\n\t'description' => __( 'Events organized by Swing Foundation'),\n\t'labels' => $labels,\n\t// Features this CPT supports in Post Editor\n\t'supports' => array( 'title', 'editor', 'excerpt', 'author', 'thumbnail', 'revisions', 'custom-fields'),\n\t/* A hierarchical CPT is like Pages and can have\n\t* Parent and child items. A non-hierarchical CPT\n\t* is like Posts.\n\t*/ \n\t'hierarchical' => false,\n\t'public' => true,\n\t'show_ui' => true,\n\t'show_in_menu' => true,\n\t'show_in_nav_menus' => true,\n\t'show_in_admin_bar' => true,\n\t'menu_position' => 4,\n\t'can_export' => true,\n\t'has_archive' => true,\n\t'exclude_from_search' => false,\n\t'publicly_queryable' => true,\n\t'capability_type' => 'page',\n\t'menu_icon'\t\t\t\t\t\t=> 'dashicons-calendar-alt'\n);\n \n\tregister_post_type( 'events', $args );\n}", "protected function hasParentMenuItemKey() {}", "protected function _isValidCategory($category)\n {\n $rootId = (int) Mage::app()->getStore()->getRootCategoryId();\n if ($this->getUseUrlRewrites() && $category->getParentId() === $rootId) {\n return false;\n }\n\n return parent::_isValidCategory($category);\n }", "protected function isChildTrigger($arg){\n return in_array($arg,$this->trigger_childes);\n }", "function root_categorized_blog() {\n\tif ( false === ( $all_the_cool_cats = get_transient( 'root_categories' ) ) ) {\n\t\t// Create an array of all the categories that are attached to posts.\n\t\t$all_the_cool_cats = get_categories( array(\n\t\t\t'fields' => 'ids',\n\t\t\t'hide_empty' => 1,\n\t\t\t// We only need to know if there is more than one category.\n\t\t\t'number' => 2,\n\t\t) );\n\n\t\t// Count the number of categories that are attached to the posts.\n\t\t$all_the_cool_cats = count( $all_the_cool_cats );\n\n\t\tset_transient( 'root_categories', $all_the_cool_cats );\n\t}\n\n\tif ( $all_the_cool_cats > 1 ) {\n\t\t// This blog has more than 1 category so root_categorized_blog should return true.\n\t\treturn true;\n\t} else {\n\t\t// This blog has only 1 category so root_categorized_blog should return false.\n\t\treturn false;\n\t}\n}", "public function isChild()\n {\n if (false === $this->parent_category) {\n return false;\n }\n\n return true;\n\n }", "function manageEventsRecursive($Event) {\n if ($Event) {\n if (!is_array($Event)) $Event=array($Event);\n foreach ($Event as $key => $eventName) {\n $methodName=\"On\".$eventName;\n\n\n if (method_exists($this,$methodName)) {\n $this->$methodName();\n //return true;\n }\n if ($this->HasControls()) {\n $keys = array_keys($this->Controls);\n $count= count($this->Controls);\n for ($i = 0; $i < $count; $i++) {\n @$control = &$this->Controls[$keys[$i]];\n if ($control->manageEventsRecursive($eventName)) return true;\n }\n }\n return false;\n }\n }\n }", "public function isAncestorOf($post): bool\n {\n $givenPost = $post instanceof static ? $post : new static($post);\n $givenPostAncestors = $givenPost->ancestors;\n $isAncestor = $givenPostAncestors->search(function (Post $givenPostAncestor) {\n return $this->id === $givenPostAncestor->id;\n });\n\n return $isAncestor !== false;\n }", "function is_parent()\n{ \n global $post;\n\n if ( is_page() && $post->post_parent ) {\n // This is a subpage\n return;\n\n } else {\n // This is not a subpage\n return true;\n }\n \n}", "public function isValidCategory() {\n\t\t$input = file_get_contents('php://input');\n\t\t$_POST = json_decode($input, TRUE);\n\n\t\t// if no splits then category is required otherwise MUST be NULL (will be ignored in Save)\n\t\tif (empty($_POST['splits']) && empty($_POST['category_id'])) {\n\t\t\t$this->form_validation->set_message('isValidCategory', 'The Category Field is Required');\n\t\t\treturn FALSE;\n\t\t}\n\t\treturn TRUE;\n\t}", "protected function addCategories($event, $data)\n {\n $success = true;\n $categoryEntity = 'SuluCategoryBundle:Category';\n\n $category = $this->entityManager\n ->getRepository($categoryEntity)\n ->find($data['id']);\n\n if (!$category) {\n throw new EntityNotFoundException($categoryEntity, $data);\n } else {\n $event->addCategorie($category);\n }\n\n return $success;\n }", "public static function hasAccessToPost(\\WP_Post $post, $parentPostID = null)\n {\n $hasAccess = false;\n $isAttachment = is_attachment($post);\n $parentPostID = $parentPostID !== null ? $parentPostID : $post->post_parent;\n\n if (apply_filters('laterpay_access_check_enabled', true)) {\n $timePassesList = TimePass::getTimePassesListByPostID($post->ID);\n $subscriptionsList = Subscription::getSubscriptionsListByPostID($post->ID);\n\n // if is attachment than we should check parent post\n if ($isAttachment && $parentPostID) {\n $timePassesList = array_merge($timePassesList, TimePass::getTimePassesListByPostID($parentPostID));\n $subscriptionsList = array_merge(\n $subscriptionsList,\n Subscription::getSubscriptionsListByPostID($parentPostID)\n );\n }\n\n $timePasses = TimePass::getTokenizedTimePassIDs($timePassesList);\n\n foreach ($timePasses as $timePass) {\n if (array_key_exists($timePass, self::$access) && self::$access[$timePass]) {\n $hasAccess = true;\n }\n }\n\n $subscriptions = Subscription::getTokenizedIDs($subscriptionsList);\n\n foreach ($subscriptions as $subscription) {\n if (array_key_exists($subscription, self::$access) && self::$access[$subscription]) {\n $hasAccess = true;\n }\n }\n\n // check access for the particular post\n if (! $hasAccess) {\n if (array_key_exists($post->ID, self::$access) && ! $isAttachment) {\n $hasAccess = (bool)self::$access[$post->ID];\n } elseif (Pricing::getPostPrice($post->ID) > 0) {\n $result = Client::getAccess(\n array_merge(\n array($post->ID, $parentPostID),\n $timePasses,\n $subscriptions\n )\n );\n\n if (empty($result) || ! array_key_exists('articles', $result)) {\n laterpay_get_logger()->warning(\n __METHOD__ . ' - post not found.',\n array('result' => $result)\n );\n } else {\n foreach ($result['articles'] as $key => $access) {\n $access = (bool)$access['access'];\n self::$access[$key] = $access;\n\n if ($access) {\n $hasAccess = true;\n }\n }\n\n if ($hasAccess) {\n laterpay_get_logger()->info(\n __METHOD__ . ' - post has access.',\n array('result' => $result)\n );\n }\n }\n }\n }\n }\n\n return apply_filters('laterpay_post_access', $hasAccess);\n }", "function checkExcEvents($time,$item,$exc_entries) {\n\t\t$m\t= strftime('%m', $time);\n\t\t$d\t= strftime('%d', $time);\n\n\t\tif ($item['exc_category']) {\n\t\t\t$categories = explode(',', $item['exc_category']);\n\t\t\tforeach($categories as $category) {\n\t\t\t\tif (is_array($exc_entries['category'][$category])) {\n\t\t\t\t\tforeach($exc_entries['category'][$category] as $key => $value) {\n\t\t\t\t\t\t$checkExcItems[] = $key;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif ($item['exc_event']) {\n\t\t\t$exc_events = explode(',', $item['exc_event']);\n\t\t\tforeach($exc_events as $exc_event) {\n\t\t\t\t$checkExcItems[] = $exc_event;\n\t\t\t}\n\t\t}\n\n\t\tif(is_array($checkExcItems)) {\n\t\t\tforeach($exc_entries[$m][$d] as $entry) {\n\t\t\t\tif(in_array($entry['uid'], $checkExcItems)) {\n\t\t\t\t\treturn TRUE;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn FALSE;\n\t}", "function delivery_categorized_blog() {\n\tif ( false === ( $all_the_cool_cats = get_transient( 'delivery_categories' ) ) ) {\n\t\t// Create an array of all the categories that are attached to posts.\n\t\t$all_the_cool_cats = get_categories( array(\n\t\t\t'fields' => 'ids',\n\t\t\t'hide_empty' => 1,\n\n\t\t\t// We only need to know if there is more than one category.\n\t\t\t'number' => 2,\n\t\t) );\n\n\t\t// Count the number of categories that are attached to the posts.\n\t\t$all_the_cool_cats = count( $all_the_cool_cats );\n\n\t\tset_transient( 'delivery_categories', $all_the_cool_cats );\n\t}\n\n\tif ( $all_the_cool_cats > 1 ) {\n\t\t// This blog has more than 1 category so delivery_categorized_blog should return true.\n\t\treturn true;\n\t} else {\n\t\t// This blog has only 1 category so delivery_categorized_blog should return false.\n\t\treturn false;\n\t}\n}", "public static function create_event_post_type() {\n\t register_post_type('event', \n\t array(\n\t 'labels' => array(\n\t 'name' => __('Events', 'simple-event'),\n\t 'singular_name' => __('Events', 'simple-event'),\n\t 'add_new' => __('Add New', 'simple-event'),\n\t 'add_new_item' => __('Add New Event', 'simple-event'),\n\t 'edit' => __('Edit', 'simple-event'),\n\t 'edit_item' => __('Edit Event', 'simple-event'),\n\t 'new_item' => __('New Event', 'simple-event'),\n\t 'view' => __('View Event', 'simple-event'),\n\t 'view_item' => __('View Event', 'simple-event'),\n\t 'search_items' => __('Search Events', 'simple-event'),\n\t 'not_found' => __('No Event Posts found', 'simple-event'),\n\t 'not_found_in_trash' => __('No Event Posts found in Trash', 'simple-event')\n\t ),\n\t 'public' => true,\n\t 'hierarchical' => true,\n\t 'has_archive' => true,\n\t 'show_ui' => true,\n\t 'publicly_queryable' => true,\n\t 'query_var' => true,\n\t 'rewrite' => true,\n\t 'supports' => array(\n\t \t'title',\n\t \t'editor',\n\t 'thumbnail',\n\t 'comments'\n\t ),\n\t 'can_export' => true,\n\t 'taxonomies' => array(\n\t 'event_category',\n\t 'event_tag'\n\t ) \n\t ));\n\n\t register_taxonomy(\n\t 'event_category',\n\t 'event',\n\t array(\n\t 'label' => 'Categories',\n\t 'show_in_quick_edit' => true,\n\t 'show_admin_column' => true,\n\t 'hierarchical' => true,\n\t 'query_var' => 'event_category',\n\t\t\t\t'rewrite' => [\n\t\t\t\t\t'hierarchical' => true,\n\t\t\t\t\t'slug' => 'event-category',\n\t\t\t\t\t'with_front' => true,\n\t\t\t\t\t'ep_mask' => EP_NONE,\t\n\t\t\t\t]\n\t )\n\t );\n\n \tregister_taxonomy( 'event_tag', 'event', array(\n 'labels' => [\n 'name' => _x( 'Tags', 'simple-event' ),\n 'singular_name' => _x( 'Tag', 'simple-event' ),\n 'search_items' => __( 'Search Tags' ),\n 'popular_items' => __( 'Popular Tags' ),\n 'all_items' => __( 'All Tags' ),\n 'parent_item' => null,\n 'parent_item_colon' => null,\n 'edit_item' => __( 'Edit Tag' ), \n 'update_item' => __( 'Update Tag' ),\n 'add_new_item' => __( 'Add New Tag' ),\n 'new_item_name' => __( 'New Tag Name' ),\n 'separate_items_with_commas' => __( 'Separate tags with commas' ),\n 'add_or_remove_items' => __( 'Add or remove tags' ),\n 'choose_from_most_used' => __( 'Choose from the most used tags' ),\n 'menu_name' => __( 'Tags' )\n ],\t \t\t\n\t\t \t'hierarchical' => false,\n\t\t\t'query_var' => 'event_tag',\n\t\t\t'rewrite' => [\n\t\t\t\t'hierarchical' => true,\n\t\t\t\t'slug' => 'event-tag',\n\t\t\t\t'with_front' => true,\n\t\t\t\t'ep_mask' => EP_NONE,\t\n\t\t\t],\n\t\t\t'public' => true,\n\t\t\t'show_ui' => true,\n\t\t\t'show_admin_column' => true\t\t\t\n\t\t\t) \n \t);\n\n\t register_taxonomy_for_object_type('event_category','event'); \n\t register_taxonomy_for_object_type('event_tag','event');\n\n\t}", "function nameExistInParent(){\n\n\t\t$cat = $this->add('xepan\\commerce\\Model_Category');\n\t\t$cat->addCondition('parent_category_id',$this['parent_category_id']?:null);\n\t\t$cat->addCondition('name',$this['name']);\n\t\t$cat->addCondition('id','<>',$this->id);\n\t\t$cat->tryLoadAny();\n\n\t\treturn $cat->loaded();\n\n\t\treturn $this->ref('parent_category_id')->loaded()? \n\t\t$this->ref('parent_category_id')->ref('SubCategories')\n\t\t\t\t->addCondition('name',$this['name'])\n\t\t\t\t->addCondition('id','<>',$this->id)\n\t\t\t\t->tryLoadAny()->loaded(): false;\n\t}", "function hcfw_event_cpt() {\n\t$labels = array(\n\t\t'name' => _x( 'Events', 'post type general name', 'csu-hcfw-resources' ),\n\t\t'singular_name' => _x( 'Event', 'post type singular name', 'csu-hcfw-resources' ),\n\t\t'add_new' => _x( 'Add New', 'event', 'csu-hcfw-resources' ),\n\t\t'add_new_item' => __( 'Add New Event', 'csu-hcfw-resources' ),\n\t\t'edit_item' => __( 'Edit Event', 'csu-hcfw-resources' ),\n\t\t'new_item' => __( 'New Event', 'csu-hcfw-resources' ),\n\t\t'view_item' => __( 'View Event', 'csu-hcfw-resources' ),\n\t\t'view_items' => __( 'View Events', 'csu-hcfw-resources' ),\n\t\t'search_items' => __( 'Search Events', 'csu-hcfw-resources' ),\n\t\t'all_items' => __( 'All Events', 'csu-hcfw-resources' ),\n\t\t'archives' => __( 'Event Archives', 'csu-hcfw-resources' ),\n\t\t'attributes' => __( 'Event Attributes', 'csu-hcfw-resources' ),\n\t\t'insert_into_item' => __( 'Insert into event', 'csu-hcfw-resources' ),\n\t\t'uploaded_to_this_item' => __( 'Uploaded to this event', 'csu-hcfw-resources' ),\n\t\t'not_found' => __( 'No events found.', 'csu-hcfw-resources' ),\n\t\t'not_found_in_trash' => __( 'No events found in Trash.', 'csu-hcfw-resources' )\n\t);\n\n\t$args = array(\n\t\t'labels' => $labels,\n\t\t'public' => true,\n\t\t'menu_position' => null, // Default: null - defaults to below Comments\n\t\t'menu_icon' => 'dashicons-calendar-alt',\n\t\t'supports' => array( 'title', 'editor' ),\n\t\t'has_archive' => false, // Default: false\n\t\t'rewrite' => array( 'slug' => 'events' )\n\t);\n\n\tregister_post_type( 'hcfw_event', $args );\n}", "function has_categorys()\n\t{\n\t\t\t$categorias = $this->combofiller->categorias();\t\t\t\n\t\t\tforeach($categorias as $key => $value)\n\t\t\t{\n\t\t\t\tif ($this->input->post('' . $key . ''))\n\t\t\t\t{\n\t\t\t\t\treturn TRUE;\t\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn FALSE;\t\n\t}", "function custom_is_child($pid)\n{\n global $post; // load details about this page\n $anc = get_post_ancestors($post->ID);\n foreach ($anc as $ancestor) {\n if (is_page() && $ancestor == $pid) {\n return true;\n }\n }\n return false; // we're elsewhere\n}", "function list_categories() {\n $project_parent_category = get_category_by_slug('project');\n $project_parent_category_id=$project_parent_category->term_id;\n $categories=get_the_category();\n $count = 0;\n foreach($categories as $category){\n if($category->category_parent==$project_parent_category_id){\n if ($count == 0) {\n echo '<div class=\"category-symbology\">';\n\n if(get_post_type(get_the_id()) == 'discussion') { echo '<i class=\"social-foundicon-chat\"> </i> '; }\n }\n echo \"<a class='one-category' href='/project/\". $category->slug . \"'>\" . $category->name . \"</a>\";\n if ($count == 0) {\n echo '</div>';\n } \n $count++;\n }\n }\n\n //emit a chat symbol for discussion\n if($count == 0 && get_post_type(get_the_id()) == 'discussion') {\n generate_discussion_w_no_category();\n }\n}", "public function hasCategories() {\n return $this->_has(16);\n }", "public function isCategoryPage();", "private function validate_product_categories() {\n\t\tif ( sizeof( $this->product_categories ) > 0 ) {\n\t\t\t$valid_for_cart = false;\n\t\t\tif ( ! WC()->cart->is_empty() ) {\n\t\t\t\tforeach( WC()->cart->get_cart() as $cart_item_key => $cart_item ) {\n\t\t\t\t\t$product_cats = wc_get_product_cat_ids( $cart_item['product_id'] );\n\n\t\t\t\t\t// If we find an item with a cat in our allowed cat list, the coupon is valid\n\t\t\t\t\tif ( sizeof( array_intersect( $product_cats, $this->product_categories ) ) > 0 ) {\n\t\t\t\t\t\t$valid_for_cart = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ( ! $valid_for_cart ) {\n\t\t\t\tthrow new Exception( self::E_WC_COUPON_NOT_APPLICABLE );\n\t\t\t}\n\t\t}\n\t}", "public function getCategories()\n\t\t{\n\t\t\t// Set default category in case the user do not have categories with events\n\t\t\t$results = $this->categories;\n\t\t\tasort($results);\n\t\t\t$return = array_unique(array_filter($results));\n\t\t\t\n\t\t\tif(count($return) == 0)\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t} else {\n\t\t\t\treturn $return;\t\n\t\t\t}\n\t\t}", "function validsubcat($subcatid, $cats)\n{\n $i = 0;\n if ((is_countable($cats) ? count($cats) : 0) > 0) {\n }\n foreach ($cats as $cat) {\n $subcats = $cat['subcategory'];\n if ((is_countable($subcats) ? count($subcats) : 0) > 0) {\n foreach ($subcats as $subcat) {\n if ($subcat['id'] == $subcatid) {\n return true;\n }\n }\n }\n }\n return false;\n}", "function child_do_video_blog_loop() {\r\n \r\n $include = genesis_get_option( 'blog_cat' );\r\n $exclude = genesis_get_option( 'blog_cat_exclude' ) ? explode( ',', str_replace( ' ', '', genesis_get_option( 'blog_cat_exclude' ) ) ) : '';\r\n $paged = get_query_var( 'paged' ) ? get_query_var( 'paged' ) : 1;\r\n \r\n /** Easter Egg */\r\n $query_args = wp_parse_args(\r\n genesis_get_custom_field( 'query_args' ),\r\n array(\r\n 'cat' => $include,\r\n 'category__not_in' => $exclude,\r\n 'showposts' => genesis_get_option( 'blog_cat_num' ),\r\n 'paged' => $paged,\r\n 'post_type' => array( 'post', 'video')\r\n )\r\n );\r\n \r\n genesis_custom_loop( $query_args );\r\n \r\n}", "function create_custom_post_type_event(){\n $labels = array(\n 'name' => 'Products',\n 'singular_name' => 'Products',\n 'add_new' => 'Add New',\n 'add_new_item' => 'Add New Products',\n 'edit_item' => 'Edit Products',\n 'new_item' => 'New Products',\n 'view_item' => 'View Products',\n 'search_items' => 'Search Products',\n 'not_found' => 'No Products found',\n 'not_found_in_trash' => 'No Products found in Trash',\n 'parent_item_colon' => '',\n ); \n\n $args = array(\n 'label' => __('Products'),\n 'labels' => $labels, // from array above\n 'public' => true,\n 'can_export' => true,\n 'show_ui' => true,\n '_builtin' => false,\n 'capability_type' => 'post',\n 'menu_icon' => 'dashicons-tag', // from this list\n 'hierarchical' => false,\n 'rewrite' => array( \"slug\" => \"products\" ), // defines URL base\n 'supports'=> array('title', 'thumbnail', 'editor', 'excerpt'),\n 'show_in_nav_menus' => true,\n 'taxonomies' => array( 'event_category', 'post_tag'), // own categories\n 'has_archive' => true\n );\n\n register_post_type('products', $args); // used as internal identifier\n\n $labels2 = array(\n 'name' => 'Parts',\n 'singular_name' => 'Parts',\n 'add_new' => 'Add New',\n 'add_new_item' => 'Add New Parts',\n 'edit_item' => 'Edit Parts',\n 'new_item' => 'New Parts',\n 'view_item' => 'View Parts',\n 'search_items' => 'Search Parts',\n 'not_found' => 'No Parts found',\n 'not_found_in_trash' => 'No Parts found in Trash',\n 'parent_item_colon' => '',\n ); \n\n $args2 = array(\n 'label' => __('Parts'),\n 'labels' => $labels2, // from array above\n 'public' => true,\n 'can_export' => true,\n 'show_ui' => true,\n '_builtin' => false,\n 'capability_type' => 'post',\n 'menu_icon' => 'dashicons-hammer', // from this list\n 'hierarchical' => false,\n 'rewrite' => array( \"slug\" => \"parts\" ), // defines URL base\n 'supports'=> array('title', 'thumbnail', 'editor', 'excerpt'),\n 'show_in_nav_menus' => true,\n 'taxonomies' => array( 'event_category', 'post_tag'), // own categories\n \n );\n\n register_post_type('parts', $args2); // used as internal identifier\n\n $labels3 = array(\n 'name' => 'About Sections',\n 'singular_name' => 'About Section',\n 'add_new' => 'Add New',\n 'add_new_item' => 'Add New About Section',\n 'edit_item' => 'Edit About Section',\n 'new_item' => 'New About Section',\n 'view_item' => 'View About Section',\n 'search_items' => 'Search About Section',\n 'not_found' => 'No About Section found',\n 'not_found_in_trash' => 'No About Section found in Trash',\n 'parent_item_colon' => '',\n ); \n\n $args3 = array(\n 'label' => __('About Section'),\n 'labels' => $labels3, // from array above\n 'public' => true,\n 'can_export' => true,\n 'show_ui' => true,\n '_builtin' => false,\n 'capability_type' => 'post',\n 'menu_icon' => 'dashicons-info', // from this list\n 'hierarchical' => false,\n 'rewrite' => array( \"slug\" => \"about\" ), // defines URL base\n 'supports'=> array('title', 'thumbnail', 'editor', 'excerpt'),\n 'show_in_nav_menus' => true,\n 'taxonomies' => array( 'event_category', 'post_tag'), // own categories\n \n );\n\n register_post_type('about', $args3); // used as internal identifier\n}", "private function validate_excluded_product_categories() {\n\t\tif ( sizeof( $this->exclude_product_categories ) > 0 ) {\n\t\t\t$valid_for_cart = false;\n\t\t\tif ( ! WC()->cart->is_empty() ) {\n\t\t\t\tforeach( WC()->cart->get_cart() as $cart_item_key => $cart_item ) {\n\t\t\t\t\t$product_cats = wc_get_product_cat_ids( $cart_item['product_id'] );\n\n\t\t\t\t\t// If we find an item with a cat NOT in our disallowed cat list, the coupon is valid\n\t\t\t\t\tif ( empty( $product_cats ) || sizeof( array_diff( $product_cats, $this->exclude_product_categories ) ) > 0 ) {\n\t\t\t\t\t\t$valid_for_cart = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ( ! $valid_for_cart ) {\n\t\t\t\tthrow new Exception( self::E_WC_COUPON_NOT_APPLICABLE );\n\t\t\t}\n\t\t}\n\t}", "function event_taxonomy() {\n\n $labels = array(\n 'name' => _x( 'Category event', 'Taxonomy General Name', 'text_domain' ),\n 'singular_name' => _x( 'Category event', 'Taxonomy Singular Name', 'text_domain' ),\n 'menu_name' => __( 'Category event', 'text_domain' ),\n 'all_items' => __( 'All Items', 'text_domain' ),\n 'parent_item' => __( 'Parent Item', 'text_domain' ),\n 'parent_item_colon' => __( 'Parent Item:', 'text_domain' ),\n 'new_item_name' => __( 'New Item Name', 'text_domain' ),\n 'add_new_item' => __( 'Add New Item', 'text_domain' ),\n 'edit_item' => __( 'Edit Item', 'text_domain' ),\n 'update_item' => __( 'Update Item', 'text_domain' ),\n 'view_item' => __( 'View Item', 'text_domain' ),\n 'separate_items_with_commas' => __( 'Separate items with commas', 'text_domain' ),\n 'add_or_remove_items' => __( 'Add or remove items', 'text_domain' ),\n 'choose_from_most_used' => __( 'Choose from the most used', 'text_domain' ),\n 'popular_items' => __( 'Popular Items', 'text_domain' ),\n 'search_items' => __( 'Search Items', 'text_domain' ),\n 'not_found' => __( 'Not Found', 'text_domain' ),\n 'no_terms' => __( 'No items', 'text_domain' ),\n 'items_list' => __( 'Items list', 'text_domain' ),\n 'items_list_navigation' => __( 'Items list navigation', 'text_domain' ),\n );\n $args = array(\n 'labels' => $labels,\n 'hierarchical' => true,\n 'public' => true,\n 'show_ui' => true,\n 'show_admin_column' => true,\n 'show_in_nav_menus' => true,\n 'show_tagcloud' => true,\n );\n register_taxonomy( 'category_event', array( 'event' ), $args );\n\n}", "private function recipeHasCategory($recipe) {\n // Meanwhile, we assume any recipe has any category.\n return true;\n }", "function check_upcoming_is_post_upcoming(){\n $this->loop_through_upcoming_posts(array($this, 'is_post_upcoming'));\n }", "public function isPost( $post_ID )\n {\n $categories = get_the_category( $post_ID );\n\n if ( $categories ) {\n $category = current( $categories ); // @todo Warning: what if the post has more than 1 categories?\n $category_id = $category->term_id; // get the slug of the post\n xlog(\"category_id: $category_id\");\n $ex = explode('/', get_category_parents($category_id, false, '/', true)); // get the root slug of the post\n xlog(\"category slug of the category id: $ex[0]\");\n if ( $ex[0] == FORUM_CATEGORY_SLUG ) { // is it a post under XForum?\n return true;\n }\n }\n return false;\n }", "function circle_categorized_blog() {\n\tif ( false === ( $all_the_cool_cats = get_transient( 'circle_categories' ) ) ) {\n\t\t// Create an array of all the categories that are attached to posts.\n\t\t$all_the_cool_cats = get_categories( array(\n\t\t\t'fields' => 'ids',\n\t\t\t'hide_empty' => 1,\n\t\t\t// We only need to know if there is more than one category.\n\t\t\t'number' => 2,\n\t\t) );\n\n\t\t// Count the number of categories that are attached to the posts.\n\t\t$all_the_cool_cats = count( $all_the_cool_cats );\n\n\t\tset_transient( 'circle_categories', $all_the_cool_cats );\n\t}\n\n\tif ( $all_the_cool_cats > 1 ) {\n\t\t// This blog has more than 1 category so circle_categorized_blog should return true.\n\t\treturn true;\n\t} else {\n\t\t// This blog has only 1 category so circle_categorized_blog should return false.\n\t\treturn false;\n\t}\n}", "function emc_get_the_subcategory_list( $slug ) {\r\n\r\n\t// Determine parent category ID\r\n\t$parent = get_category_by_slug( $slug );\r\n\t$parent_id = $parent->term_id;\r\n\r\n\t// Check all post categories to see if any have the specified parent\r\n\t$cats = get_the_category( get_the_ID() );\r\n\r\n\t$html = '';\r\n\tforeach ($cats as $cat) {\r\n\t\tif ( $parent_id == $cat->category_parent ) {\r\n\t\t\t$html .= sprintf( '<a href=\"%1$s\" title=\"%2$s\">%3$s</a> ',\r\n\t\t\t\tget_category_link( $cat->term_id ),\r\n\t\t\t\tsprintf( __( 'View all posts in %s', 'emc' ), esc_attr( $parent->name ) ),\r\n\t\t\t\tesc_attr( $cat->name )\r\n\t\t\t);\r\n\t\t}\r\n\t}\r\n\r\n\treturn $html;\r\n\r\n}", "private function validate_cart_excluded_product_categories() {\n\t\tif ( sizeof( $this->exclude_product_categories ) > 0 ) {\n\t\t\t$valid_for_cart = true;\n\t\t\tif ( ! WC()->cart->is_empty() ) {\n\t\t\t\tforeach( WC()->cart->get_cart() as $cart_item_key => $cart_item ) {\n\n\t\t\t\t\t$product_cats = wc_get_product_cat_ids( $cart_item['product_id'] );\n\n\t\t\t\t\tif ( sizeof( array_intersect( $product_cats, $this->exclude_product_categories ) ) > 0 ) {\n\t\t\t\t\t\t$valid_for_cart = false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ( ! $valid_for_cart ) {\n\t\t\t\tthrow new Exception( self::E_WC_COUPON_EXCLUDED_CATEGORIES );\n\t\t\t}\n\t\t}\n\t}", "function _validCategory($check)\n\t\t{\n\t\t\t// check legacy too in case we're adding a legacy workshop\n\t\t\t$this->Category->useLegacy(true);\n\t\t\t\n\t\t\t$result = $this->Category->find('count', \n\t\t\t\tarray('recursive' => -1, 'conditions' => array('Category.id' => $check['category_id'])));\n\t\t\t\n\t\t\tif ($result)\n\t\t\t\treturn true;\n\t\t\treturn false;\n\t\t}", "public static function adminHeadCheck()\n {\n global $post;\n if (\n !$post\n ||\n !property_exists($post, 'post_type')\n ||\n $post->post_type != 'event'\n ) {\n return true;\n }\n // Force a setup_postdata.\n setup_postdata($post);\n return true;\n }", "function eme_is_events_page() {\n $events_page_id = get_option('eme_events_page' );\n if ($events_page_id) {\n return is_page ( $events_page_id );\n } else {\n return false;\n }\n}", "function the_automobile_is_select_cat_slider( $control ) {\n\n\t\tif ( 'from-category' === $control->manager->get_setting( 'select_slider_from' )->value() ) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\n\t}", "protected function childCategoryTC()\n {\n return PostCategory::childCategories()->firstOrFail();\n }", "function pixelgrade_get_main_category( $post_ID = null ) {\n\n\t// Use the current post ID is none given\n\tif ( empty( $post_ID ) ) {\n\t\t$post_ID = get_the_ID();\n\t}\n\n\t// Obviously pages don't have categories\n\tif ( 'page' == get_post_type( $post_ID ) ) {\n\t\treturn false;\n\t}\n\n\t$categories = get_the_category();\n\n\tif ( empty( $categories ) ) {\n\t\treturn false;\n\t}\n\n\t// We need to sort the categories like this: first categories with no parent, and secondly ordered DESC by post count\n\t// Thus parent categories take precedence and categories with more posts take precedence\n\tusort( $categories, '_pixelgrade_special_category_order' );\n\n\t// The first category should be the one we are after\n\t// We allow others to filter this (Yoast primary category maybe?)\n\treturn apply_filters( 'pixelgrade_get_main_category', $categories[0], $post_ID );\n}", "function block_core_calendar_has_published_posts()\n {\n }", "function bt_categorized_blog() {\n\tif ( false === ( $all_the_cool_cats = get_transient( 'all_the_cool_cats' ) ) ) {\n\t\t// Create an array of all the categories that are attached to posts\n\t\t$all_the_cool_cats = get_categories( array(\n\t\t\t'hide_empty' => 1,\n\t\t) );\n\n\t\t// Count the number of categories that are attached to the posts\n\t\t$all_the_cool_cats = count( $all_the_cool_cats );\n\n\t\tset_transient( 'all_the_cool_cats', $all_the_cool_cats );\n\t}\n\n\tif ( '1' != $all_the_cool_cats ) {\n\t\t// This blog has more than 1 category so _s_categorized_blog should return true\n\t\treturn true;\n\t} else {\n\t\t// This blog has only 1 category so _s_categorized_blog should return false\n\t\treturn false;\n\t}\n}", "function walk_category_tree(...$args)\n {\n }" ]
[ "0.60484576", "0.58991295", "0.568911", "0.5657311", "0.5551983", "0.55492425", "0.55406755", "0.55327237", "0.54798156", "0.5404567", "0.5384708", "0.5366214", "0.5346754", "0.53316784", "0.52520984", "0.5200939", "0.5181333", "0.5121406", "0.51174587", "0.5114399", "0.50807154", "0.5078889", "0.50475824", "0.50382614", "0.503094", "0.5007796", "0.4999987", "0.49980488", "0.49721944", "0.4964869", "0.49563855", "0.4954092", "0.49396238", "0.49130458", "0.49087083", "0.4898703", "0.48985764", "0.48943517", "0.48898834", "0.48849276", "0.48792356", "0.4867013", "0.48535734", "0.48518345", "0.48444548", "0.48333567", "0.48298505", "0.48262936", "0.4826063", "0.48152778", "0.48148602", "0.48041722", "0.48027787", "0.47989097", "0.4785053", "0.47847846", "0.47664532", "0.47582778", "0.47490066", "0.47374892", "0.47337607", "0.47337446", "0.4726843", "0.47116348", "0.46994653", "0.46875644", "0.46835294", "0.46793836", "0.46788922", "0.46779734", "0.4673165", "0.46710497", "0.46686172", "0.466857", "0.4661132", "0.46525112", "0.4644396", "0.46429235", "0.46356583", "0.4633054", "0.46309957", "0.46277276", "0.46230367", "0.4620186", "0.4617113", "0.46142128", "0.4599884", "0.45925355", "0.4590383", "0.4588729", "0.45860255", "0.45855942", "0.4574402", "0.4572841", "0.4564991", "0.4559185", "0.4558861", "0.4553218", "0.45465678", "0.45429525" ]
0.7342277
0
/ OPTIONS Get options from the database (ties with a custom class, see lib/class.Options.php)
function get_it_option( $option ) { $options = get_option( 'chalmersit_options' ); if ( isset( $options[$option] ) ) return $options[$option]; else return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public function getOptions();", "protected function getOptions() {}", "protected function getOptions() {}", "protected function getOptions() {}", "protected function get_options()\n\t{}", "function getOptions() ;", "public function getOptions();", "public function getOptions();", "public function getOptions();", "public function getOptions();", "public function getOptions();", "public function getOptions();", "public function getOptions();", "public function getOptions();", "public function getOptions();", "public function getOptions();", "public function getOptions();", "public function getOptions();", "public function getOptions();", "public function getOptions();", "public function getOptions();", "public function getOptions();", "public function getOptions() {}", "public function getOptions() {}", "public function getOptions() {}", "public function get_options()\n {\n }", "protected static abstract function getOptions();", "public function options();", "public function options();", "public function options();", "public function options();", "public function options();", "function getOptions();", "public function getOptions()\r\n {\r\n }", "function getOptions() {\n\t\t$rc = array();\n\t\t$conf = $this->config['table.'];\n\t\t$table = $conf['name'];\n\t\t\n\t\tif (is_array($conf)) {\n\t\t\t$query = $this->local_cObj->getQuery($table, $conf, TRUE);\n\t\t\treturn $this->db->selectRecords($query['SELECT'], $query['FROM'], $query['WHERE'], $query['ORDERBY']);\n\t\t}\n\t\t\n\t\t$rc = array();\n\t\t$options = $this->config['options.'];\n\t\tif (is_array($options)) {\n\t\t\tforeach ($options AS $uid => $title) {\n\t\t\t\t$rc[] = array('uid' => $uid, 'title' => $title);\n\t\t\t}\n\t\t\t$this->config['table.']['valueField'] = 'uid'; // Just in case\n\t\t}\n\t\t\n\t\treturn $rc;\n\t}", "function get_options(){\n\t\treturn $this->options;\n\t}", "function getOptions()\n\t{\n\t\t\n\t\treturn $this->getAssoc(Array('id','title')/*, $cond*/);\n\t}", "public function getOptions()\n { return $this->get('options'); }", "public function options() {}", "protected function getOptions()\n\t{\n\t\treturn [\n\t\t\t\n\t\t];\n\t}", "public function get_options() {\n\n if( $this->args['database'] === 'transient' ) {\n $this->options = get_transient( $this->unique );\n } else if( $this->args['database'] === 'theme_mod' ) {\n $this->options = get_theme_mod( $this->unique );\n } else if( $this->args['database'] === 'network' ) {\n $this->options = get_site_option( $this->unique );\n } else {\n $this->options = get_option( $this->unique );\n }\n\n if( empty( $this->options ) ) {\n $this->options = array();\n }\n\n return $this->options;\n\n }", "public final function getOptions() { return $this->_options; }", "public function getOptions(): array;", "public function getOptions(): array;", "public function getOptions(): array;", "public function getOptions(): array;", "public function getOptions(): array;", "public function getOptions(): array;", "public function getOptions(): array;", "abstract function options();", "function getOptions() {\n return array(\n 'ENGINE' => $this->getStorageEngine(), \n 'DEFAULT CHARSET' => $this->getCharacterSet(), \n 'COLLATE' => $this->getCollation(), \n );\n }", "public function getOptions()\n {\n return $this->getTable()->getOptions();\n }", "public function getOptions(){\n return $this->options;\n }", "public function getOptions()\n {\n return $this->get(self::OPTIONS);\n }", "protected function getOptions()\n\t{\n\t\treturn array(\n\t\t\t\n\t\t);\n\t}", "protected function getOptions()\n\t{\n\t\treturn array(\n\t\t\t\n\t\t);\n\t}", "protected function getOptions()\n\t{\n\t\treturn array(\n\t\t\t\n\t\t);\n\t}", "protected function getOptions()\n\t{\n\t\treturn array(\n\t\t\t\n\t\t);\n\t}", "public function getOptions() : array;", "protected\n function getOptions() {\n return array();\n }", "public function getOptions($option = '')\n {\n if ($option == '') {\n\n return parent::$db->query(\n \"SELECT * FROM `\" . OPTIONS . \"`;\"\n );\n } else {\n\n return parent::$db->queryFetch(\n \"SELECT * \n FROM `\" . OPTIONS . \"` \n WHERE `option_name` = '\" . $option . \"';\"\n )['option_value'];\n }\n }", "abstract protected function options(): array;", "protected function _getOptions() { return array(); }", "public function getOptions() \n {\n return $this->options;\n }", "public function getOptions()\n {\n return $this->options;\n }", "public function getOptions()\n {\n return $this->options;\n }", "public function getOptions() {\n return $this->options;\n }", "public function getOptions() {\n return $this->options;\n }", "public function options_load();", "public function getOptions()\n {\n return $this->where(array('is_del' => array('neq', -1)))->getField('id, name');\n }", "public function getOptions()\n {\n return $this->_options;\n }", "public function get_options()\n\t\t{\n\t\t\treturn $this->_options;\n\t\t}", "public function getOptions() {\n\n return $this->options;\n }", "#[Pure]\n public function getOptions() {}", "public function getOptions()\n {\n return $this->where(array('is_del' => array('neq', 1)))->getField('id, name');\n }", "public function prepareOptions()\r\n\t\t{\r\n\t\t\t$mysqli = new mysqli(DB_HOST,DB_USER,DB_PASS,DB_NAME);\r\n\t\t\t$query = 'SELECT name FROM options WHERE id_votes =\"'.$this->voteId.'\" ORDER BY id_option ASC ';\r\n\t\t\tif ($result = $mysqli->query($query))\r\n\t\t\t{\r\n\t\t\t\twhile($obj = $result->fetch_object())\r\n\t\t\t\t{\r\n\t\t\t\t\tarray_push($this->optionList,$obj->name);\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\r\n\t\t\t}\r\n\t\t\t$mysqli->close(); \r\n\t\t}", "function get_options() {\t\t\r\n\t\t$saved_options = unserialize(get_option(THEME_ID . '_options'));\r\n\t\tif (!empty($saved_options) && is_object($saved_options)) {\r\n\t\t\tforeach($saved_options as $name => $value) {\r\n\t\t\t\t$this->$name = $value;\r\n\t\t\t}\t\r\n\t\t}\r\n\t}", "public function getOptions()\n {\n return $this->_options;\n }", "function get_data_request_options()\r\n{\r\n\t//kijk wat het abstractie niveau is van de huidige opties\r\n\t$current_abstraction_level_query = 'select option_type from Requestable_data where option_name == \":current_selected_option\"';\r\n\t$current_abstraction_level = execute_sql_extract_data($current_abstraction_level_query);\r\n\t\r\n\t//haal de opties maar op uit de DB\r\n\t$requestable_data_descriptions = 'select option_name from Requestable_data where option_type = ' . $current_abstraction_level;\r\n\texecute_sql_extract_data($requestable_data_descriptions);\r\n}", "function _options_option($option) {\n global $db ;\n $data = null ;\n $req = $db->prepare(\"SELECT `data` FROM `_options` WHERE `option` = :option \") ;\n $req->execute(array(\n \"option\" => $option\n )) ;\n $data = $req->fetch() ;\n return (isset($data['data'])) ? $data['data'] : false ;\n}", "protected function getOptions()\r\n {\r\n return [\r\n\r\n ];\r\n }", "public function doRetrieveAll(){\n\t\t\t$this->openConnection();\n\t\t\t$options=null;\n\n\t\t\t$query=\"SELECT flagList\n\t\t\t\t\tFROM options\";\n\t\t\t$result = $this->connessione->query($query);\n\t\t \n\t\t\twhile($row = $result->fetch_array(MYSQLI_ASSOC))\n\t\t\t{ \n\t\t\t\t\t$options=new ListOption();\n\t\t\t\t\t$options->setFlagList($row[\"flagList\"]);\n\t\t\t}\n\t\n\t\t\t$result->close();\n\t\t\t$this->closeConnection();\n\t\n\t\t\treturn $options;\n\t\t}", "protected function getOptions()\r\n\t{\r\n\t\treturn array();\r\n\t}", "public function getOptions()\n\t{\n\t\treturn $this->_options;\n\t}", "public function getOptions()\n\t{\n\t\treturn $this->_options;\n\t}", "public function get_stLight_options($data_options);", "public function getOptions(){ return $this->option_map; }", "public function optionAction() \n {\n $result = array();\n \n $productIdOrSku = $this->getRequest()->getParam('product');\n $attributeOptionId = $this->getRequest()->getParam('id');\n\n try {\n \n $model = $this->getModel();\n $model->loadOptions($productIdOrSku, $attributeOptionId);\n $options = $model->getApiOptions(); \n \n $result = $options;\n \n \n } catch (Exception $e) {\n \n $result['error'] = true;\n $result['data'] = $e->getMessage();\n } \n \n $this->getResponse()->clearHeaders()->setHeader('Content-type','application/json',true)->setBody(Mage::helper('core')->jsonEncode($result));\n \n }", "public function getOptions() {\n\t\treturn $this->options;\n\t}", "protected function _options() {\n\t\t\treturn array();\n\t\t}", "public function options()\n {\n return $this->options;\n }", "public function options()\n {\n return $this->options;\n }", "public function options()\n {\n return $this->options;\n }", "public function getOptions()\n {\n return $this->options;\n }", "public function getOptions()\n {\n return $this->options;\n }", "public function getOptions()\n {\n return $this->options;\n }", "public function getOptions()\n {\n return $this->options;\n }", "public function getOptions()\n {\n return $this->options;\n }", "public function getOptions()\n {\n return $this->options;\n }", "public function getOptions()\n {\n return $this->options;\n }", "public function getOptions()\n {\n return $this->options;\n }" ]
[ "0.729752", "0.72738034", "0.72738034", "0.7273525", "0.7268451", "0.7244965", "0.72134197", "0.72134197", "0.72134197", "0.72134197", "0.72134197", "0.72134197", "0.72134197", "0.72134197", "0.72134197", "0.72134197", "0.72134197", "0.72134197", "0.72134197", "0.72134197", "0.72134197", "0.72134197", "0.71753144", "0.71753144", "0.71747017", "0.71338975", "0.7118712", "0.70841974", "0.70841974", "0.70841974", "0.70841974", "0.70841974", "0.699103", "0.6929732", "0.6873357", "0.6866432", "0.68511856", "0.6841455", "0.6825772", "0.6802595", "0.6760457", "0.6749268", "0.67270887", "0.67270887", "0.67270887", "0.67270887", "0.67270887", "0.67270887", "0.67270887", "0.67034525", "0.6694909", "0.6643946", "0.66424114", "0.663022", "0.6622772", "0.6622772", "0.6622772", "0.6622772", "0.6609418", "0.65287745", "0.6516255", "0.6481177", "0.6476836", "0.6473887", "0.64682704", "0.64682704", "0.64388394", "0.64388394", "0.6438711", "0.6433655", "0.64269733", "0.6424817", "0.6423317", "0.64072907", "0.64041346", "0.6402586", "0.6395856", "0.63913095", "0.63909715", "0.63744086", "0.63742083", "0.63726515", "0.6367984", "0.63672477", "0.63672477", "0.6363085", "0.63550264", "0.6332943", "0.63242614", "0.632043", "0.6312752", "0.6312752", "0.6312752", "0.63122314", "0.63122314", "0.63122314", "0.63122314", "0.63122314", "0.63122314", "0.63122314", "0.63122314" ]
0.0
-1
/ Shorthand echo of the above:
function it_option($option){ echo get_it_option($option); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function show()\n {\n //\n return 'Rosie can i have a dance';\n }", "public function __toString() {\n\t\treturn self::$before . $this->render() . self::$after;\n\t}", "public function __toString()\n {\n $result = $this->show();\n return $result ? $result : '';\n }", "public function __toString()\n\t{\n\t\treturn \"This is the function that is called when you try to use print or echo or a variable that holds an instance of this class.\";\n\t}", "final public function display(): string\n {\n ob_start();\n\n parent::display();\n\n return ob_get_clean();\n }", "public function display(){\n return $this->string;\n }", "public function __toString () {\r\n\t\treturn '';\r\n\t}", "public function __toString()\n {\n return $this->run( );\n }", "function Dump()\n {\n echo \"<pre>\" . htmlspecialchars($this->ToString()) . \"</pre>\";\n }", "public function toString()\n {\n return 'Some Poses don\\'t display correct';\n }", "public function __toString() {\n\t\treturn $this->getPrint();\n\t}", "public function __toString()\n\t{\n\t\treturn \"_____\";\n\t}", "public function __toString() {\r\n\t\treturn $this->getPrint();\r\n\t}", "public function __toString() {\r\n\t\treturn $this->getPrint();\r\n\t}", "public function __toString() {\n\t\treturn $this->debug();\n\t}", "public function __toString(){ return $this->render(); }", "public function __toString()\n\t{\n\t\treturn '';\n\t}", "public function __toString() {\r\n\t\treturn \"$this->nom $this->prenom ($this->login)\"; \r\n\t}", "function printableString () {\n \t\t$classname = get_class($this);\n \t\t$string = 'a';\n \t\t\n \t\tif (in_array(strtolower($classname[0]), array('a', 'e', 'i', 'o', 'u')))\n \t\t\t$string .= 'n';\n \t\t\n \t\t$classname[0] = strtoupper($classname[0]);\n \t\t$string .= ' '.$classname;\n \t\t\n \t\treturn $string;\n \t}", "public function __toString()\n {\n return $this->output();\n }", "function printout() {\n print_a($this);\n }", "public function __toString()\n {\n return implode(' ', $this->args);\n }", "function toString() {\n\n\t\t\t}", "function pied()\n\t{\n\t\techo \"\\t\".'</body>'.\"\\n\".'</html>';\n\t}", "function __toString () {\n \n \n \n }", "function pre_echo( $var ) {\n\techo '<pre>'.\"\\n\";\n\techo $var;\n\techo '</pre>'.\"\\n\";\n}", "function _echo( $option_key ) {\n\t\tbf_echo_option( $option_key, $this->option_panel_id );\n\t}", "function echo2($str = '')\n{\n\techo $str . PHP_EOL;\n}", "function toString() {\n\t}", "public function outputId()\n\t{\n\t\techo App::e($this->id);\n\t}", "public function __toString()\n\t{\n\t\treturn $this->render(TRUE);\n\t}", "public function __toString()\n\t{\n\t\treturn $this->render(TRUE);\n\t}", "function display() {\n\t\tforeach($this as $prop => $val) {\n\t\t\techo $val;\n\t\t}\n\t}", "public function __toString() {\n\t\treturn $this->render();\n\t}", "public function show(){\n return 'hola desde la funcion show';\n }", "public function showName()\n {\n echo $this->name;\n }", "public function __toString() \n\t\t{\n\t\t\treturn $this->autid.' - '.$this->autnom;\n\t\t}", "public function p() {\n $args = func_get_args();\n print htmlspecialchars(call_user_func_array(array($this, 'get'), $args));\n }", "public function display ()\n {\n echo $this->as_text ();\n }", "public function __toString() {\n\t\t\treturn $this->builder->command()->__toString();\n\t\t}", "public function print_out()\n {\n echo \"id: \" . $this->id . \"<br/>\";\n echo $this->rewrite;\n echo $this->extension;\n echo $this->stranglerPattern;\n echo $this->continuousEvolution;\n echo $this->split;\n echo $this->processStrategyOthers;\n echo $this->ddd;\n echo $this->functionalDecomposition;\n echo $this->existingStructure;\n echo $this->decompositionStrategyOthers;\n echo $this->SCA;\n echo $this->MDA;\n echo $this->WDA;\n echo $this->DMC;\n echo $this->techniqueOthers;\n echo $this->GR;\n echo $this->MO;\n echo $this->sourceCode;\n echo $this->useCase;\n echo $this->systemSpecification;\n echo $this->API;\n echo $this->inputOthers;\n echo $this->list;\n echo $this->archi;\n echo $this->outputOthers;\n echo $this->experiment;\n echo $this->example;\n echo $this->caseStudy;\n echo $this->noValidation;\n echo $this->maintainability;\n echo $this->performance;\n echo $this->reliability;\n echo $this->scalability;\n echo $this->security;\n echo $this->qualityOthers;\n echo $this->score;\n echo $this->matchScore;\n echo $this->misMatch . \"<br/>\";\n }", "function dump() {\n $args = func_get_args();\n echo '<div style=\"background-color: pink; margin: 3px;\">';\n foreach($args as $arg) {\n echo \"<p><pre>\";\n var_dump($arg);\n echo \"</pre></p>\";\n }\n echo '</div>';\n return @$args[0];\n}", "function __toString(): string {\n\t\treturn \"{$this->start} - {$this->end}\";\n\t}", "public function __toString()\n {\n return $this->__call(__FUNCTION__, func_get_args());\n }", "function toString(){\r\n\r\n\t}", "public function showMessage()\n {\n print $this->generator->getHappyMessage() . $this->name;\n }", "function printName()\n {\n echo $this->name;\n }", "public function display()\n {\n return 'I am a mallard duck';\n }", "public function __toString()\n {\n return $this->render(true);\n }", "public function toString() {}", "public function toString() {}", "public function toString() {}", "public function toString() {}", "function __toString() {\n return $this->name . \" says \" . $this->sound . \" give me some \" . $this->favoriteFood . \" my id is \" . $this->id . \"<br>Total animals: \" . Animal::$numberOfAnimals . \"<br><br>\";\n }", "public function ln()\n {\n echo '<br>';\n }", "public function toString() {}", "public function toString() {}", "public function __toString()\n {\n return $this->getTitle()?:'-';\n }", "public function print();", "function title()\n {\n print($this->_title);\n }", "public function __toString () {\n\t\treturn $this->Render();\n\t}", "function get_string() {\n\t\t$attribs = $this->__attribs();\n\t\t$str = $this->__str();\n\t\t$str = '<a'.$attribs.'>'.$this->label.$str.'</a>';\n\t\treturn $str;\n\t}", "public function __toString()\r\n\t{\r\n\t\treturn $this->render();\r\n\t}", "public function __toString()\r\n\t{\r\n\t\treturn $this->render();\r\n\t}", "public function __toString()\r\n\t{\r\n\t\treturn $this->render();\r\n\t}", "public function __toString() {\n\t\treturn ($this->state?'X':' ').' '.$this->text.\"\\n\";\n\t}", "abstract protected function displayString(): string;", "public function getEchoString()\n {\n return $this->formatter->getPattern();\n }", "public function helperText()\n {\n return \"\";\n }", "function display() {\n $output = '';\n \n $output .= $this->_component_id;\n $output .= '<br/>' . $this->_component_type_id;\n $output .= '<br/>' . $this->_quote_id;\n $output .= '<br/>' . $this->component_name;\n $output .= '<br/>' . $this->metal;\n $output .= '<br/>' . $this->powdercoating;\n $output .= '<br/>' . $this->fabric;\n $output .= '<br/>' . $this->processing;\n $output .= '<br/>' . $this->wastage;\n $output .= '<br/>' . $this->installation;\n $output .= '<br/>' . $this->margin;\n $output .= '<br/>' . $this->other;\n\n $output .= '<br/>';\n \n return $output;\n }", "function printID()\n {\n echo str_replace(' ', '', $this->position).substr($this->name, 0,2);;\n }", "public function __toString()\n\t{\n\t\treturn $this->render();\n\t}", "public function __toString()\n\t{\n\t\treturn $this->render();\n\t}", "public function __toString()\n\t{\n\t\treturn $this->render();\n\t}", "public function __toString()\n\t{\n\t\treturn $this->render();\n\t}", "public function __toString()\n\t{\n\t\treturn $this->render();\n\t}", "public function __toString()\n\t{\n\t\treturn $this->render();\n\t}", "public function __toString()\n\t{\n\t\treturn $this->render();\n\t}", "public function __toString()\n\t{\n\t\treturn $this->render();\n\t}", "public function __toString()\n\t{\n\t\treturn $this->render();\n\t}", "public function toString () {\n\t\t#D:\\tools\\haxe\\std/php/Boot.hx:728: characters 3-22\n\t\treturn $this->__toString();\n\t}", "public function toString()\n {\n echo \"<h3>Executive Manager</h3>\";\n parent::toString();\n echo \"<br><strong>Bonus</strong>: $\", number_format($this->getBonus(), 2);\n }", "public function toString()\n {\n }", "public function __toString(): string\n {\n return $this->output() . PHP_EOL;\n }", "function __toString() {\n\n\t\t\treturn $this->name . \" says \" . $this->sound . \" give me some \" . $this->favorite_food . \" my id is \" . $this->id . \" total animals = \" . Animal::$number_of_animals . \"</br> </br>\";\n\n\t\t}", "public function display() {}", "public function display() {}", "public function __toString() {\n\t\treturn sprintf(\"%s: %s\", $this->getName(), $this->getValue());\n\t}", "public function __toString() {\n return $this->assemble();\n }", "function training_menu_arguments_display($arg) {\n return '<div>' . $arg . '</div>';\n}", "function display() {\n $output = '';\n\n $output .= 'Name: ';\n $output .= $this->buddy_name;\n $output .='<br>Age: '.$this->buddy_age;\n $output .='<br>Gender: '.$this->buddy_gender;\n\n //Used to return our display\n return $output;\n }", "function print_debug($content, $tag) {\n $output = '<span style=\"display:none\" id=\"';\n $output .= $tag;\n $output .= '\">';\n print_r($output);\n print_r($content);\n print_r('</span>');\n}", "public function printTitle() {\n\t\techo $this->title;\n\t}", "public function __toString(){\n\t\treturn \"\".var_dump($this);\n\t}", "public function __toString()\n {\n return sprintf('%s -> %s', $this->getLugar(), $this->getMotivo());\n }", "public function __toString()\n {\n return $this->_render();\n }", "function getLabel()\n\t{\n\t\treturn '';\n\t}", "function echoaf()\n\t{\n\t\t$this->echoalpha();\n\t\t$this->echofreq();\n\t}", "public function __toString() {\n\t\treturn $this->toString();\n\t}", "public function __toString() {\n\t\treturn $this->toString();\n\t}", "public static function output() {}" ]
[ "0.6416619", "0.63839805", "0.6378089", "0.637025", "0.6356936", "0.6298774", "0.6236358", "0.61845076", "0.61657596", "0.61470765", "0.6121374", "0.6117712", "0.6114398", "0.6114398", "0.6106882", "0.60958624", "0.6088297", "0.60831", "0.607625", "0.6071859", "0.60515946", "0.6047873", "0.60469216", "0.603351", "0.6032351", "0.6030344", "0.60280913", "0.60264534", "0.60146594", "0.6002648", "0.5995707", "0.5995707", "0.59942025", "0.59900385", "0.5986889", "0.5984656", "0.5981339", "0.59727734", "0.5970735", "0.5957718", "0.59557855", "0.59551615", "0.59549606", "0.5949867", "0.59465384", "0.59372425", "0.5931362", "0.59272593", "0.59217113", "0.5920618", "0.5918336", "0.5918336", "0.5918336", "0.5917511", "0.59173805", "0.59171736", "0.59171736", "0.59169483", "0.59156656", "0.59143686", "0.5912642", "0.5911815", "0.5911417", "0.5911417", "0.5911417", "0.59032845", "0.5897215", "0.5895664", "0.58946615", "0.58943766", "0.5893558", "0.5885229", "0.5885229", "0.5885229", "0.5885229", "0.5885229", "0.5885229", "0.5885229", "0.5885229", "0.5885229", "0.5884511", "0.58806825", "0.58792716", "0.5877604", "0.5866887", "0.58659416", "0.58659416", "0.5861257", "0.5860966", "0.58607566", "0.5859006", "0.5855028", "0.5850987", "0.5849137", "0.5844746", "0.58430576", "0.5842481", "0.5841652", "0.58345336", "0.58345336", "0.5826016" ]
0.0
-1
/USER FUNCTIONS Prints the $user's name on the form "First Last"
function user_fullname($user) { $nick = (!empty($user->nickname)) ? " '".$user->nickname."' " : ""; echo $user->user_firstname . $nick . $user->user_lastname; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_user_full_name() {\n echo $_SESSION['SESS_USER_FIRST'] . ' ' . $_SESSION['SESS_USER_LAST'];\n }", "protected function user()\n {\n if ($this->wrappedObject->security) {\n return ' this user\\'s ';\n }\n\n $user = $this->wrappedObject->revisionable()->withTrashed()->first(['first_name', 'last_name']);\n\n return ' '.$user->first_name.' '.$user->last_name.'\\'s ';\n }", "function formatName($user) {\n return ucfirst($user->nombre) . \" \" .\n ucfirst($user->apellido_paterno) . \" \" .\n ucfirst($user->apellido_materno);\n}", "public function get_user_name() { \n\n\t\tif ($this->user == '-1') { return _('All'); } \n\t\t\n\t\t$user = new User($this->user);\n\t\treturn $user->fullname . \" (\" . $user->username . \")\";\n\t\t\n\t}", "public function getUserDisplayName();", "public function getUserFullName() {\n return $this->first_name . ' ' . $this->last_name;\n }", "function userName($user_id)\n {\n global $obj_rep;\n \n $condtion = \" user_id='\" . $user_id . \"'\";\n \n $sql = $obj_rep->query(\"first_name,last_name\", \"user_registration\", $condtion);\n \n $result = $obj_rep->get_all_row($sql);\n return $fullName = $result['first_name'] . \" \" . $result['last_name'];\n }", "function pilau_default_user_display_name( $user_id ) {\n\t\t// Fetch current user meta information\n\t\t$first = get_user_meta( $user_id, 'first_name', true );\n\t\t$last = get_user_meta( $user_id, 'last_name', true );\n\t\t$display = trim( $first . \" \" . $last );\n\t\t// Update\n\t\twp_update_user( array( \"ID\" => $user_id, \"display_name\" => $display ) );\n\t}", "Public Function getUserName()\n\t{\n\t\treturn $this->firstName . ' ' . $this->lastName;\n\t}", "public function getUserLastName() :string {\n\t\treturn($this->userFirstName);\n\t}", "function getPersonName($user) {\n if ($user==null || (!isset($user[\"lastname\"]) && !isset($user[\"firstname\"])) )\n return '';\n $ret =\"\";\n if (isset($user[\"title\"]))\n $ret = $user[\"title\"].' ';\n $ret .= $user[\"lastname\"].\" \".$user[\"firstname\"];\n if (isset($user[\"birthname\"]) && trim($user[\"birthname\"])!=\"\")\n $ret .= \" (\".trim($user[\"birthname\"]).\")\";\n return $ret;\n}", "public function getFullName()\n {\n if (! $this->_getVar('user_name')) {\n $name = ltrim($this->_getVar('user_first_name') . ' ') .\n ltrim($this->_getVar('user_surname_prefix') . ' ') .\n $this->_getVar('user_last_name');\n\n if (! $name) {\n // Use obfuscated login name\n $name = $this->getLoginName();\n $name = substr($name, 0, 3) . str_repeat('*', max(5, strlen($name) - 2));\n }\n\n $this->_setVar('user_name', $name);\n\n // \\MUtil_Echo::track($name);\n }\n\n return $this->_getVar('user_name');\n }", "public function diviroids_user_lastname($atts)\n {\n return DiviRoids_Security::get_current_user('user_lastname');\n }", "public function showfullname()\n {\n return $this->getFirstname() . ' ' . $this->getLastname();\n }", "public function name() {\n return isset($this->_adaptee->user_info['user_displayname']) ? $this->_adaptee->user_info['user_displayname'] : null;\n }", "public function getFullNameWithLogin()\n\t{\n\t\treturn \"{$this->firstname} {$this->lastname} ({$this->login})\";\n\t}", "public function diviroids_user_displayname($atts)\n {\n return DiviRoids_Security::get_current_user('display_name');\n }", "public function getName()\n {\n $firstName = $this->getFieldValue(self::FIELD_FIRST_NAME);\n $lastName = $this->getFieldValue(self::FIELD_LAST_NAME);\n // User does not exist.\n if (!$firstName && !$lastName) {\n $name = 'Unknown&nbsp;User';\n } else {\n $name = \"{$firstName} {$lastName}\";\n }\n\n return $name;\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 }", "public function fullName(){\n\t\treturn $this->first.' '.$this->last;\n\t}", "function printUserInfo() {\n return $this->Name.' '.$this->Surname;\n }", "public function GetFullName()\n {\n return $this->firstname . \" \" . $this->lastname . \" (\" . $this->username . \")\";\n }", "public function display() {\n\t\techo $this->userName . \", \" . $this->firstName . \", \" . $this->lastName . \", \" . $this->yearOfBirth . \"\\n\";\n }", "function wac_vendor_name($user){\n\t$firstname = get_user_meta($user->ID,'first_name',true);\n\t$lastname = get_user_meta($user->ID,'last_name',true);\n\t\n\t$fullName = $user->data->user_nicename;\n\tif(!empty($firstname)){\n\t\t$fullName = trim($firstname.' '.$lastname);\n\t}\n\treturn $fullName;\n}", "public function getUserFirstName() :string {\n\t\treturn($this->userFirstName);\n\t}", "public function fullName()\n\t{\n\t\treturn \"{$this->first_name} {$this->last_name}\";\n\t}", "public function getuserLastName()\n {\n return $this->userLastName;\n }", "function user_name () {\r\n\t$info = user_info();\r\n\treturn (isset($info[1]) ? $info[1] : 'default');\r\n}", "public function name(): string {\n return (string) $this->user?->first_name;\n }", "public function output_user($user) {\n $out = fullname($user, $this->viewfullnames);\n $out = $user->{$this->propertyFromConfigToDisplay};\n /*if ($this->extrafields) {\n $displayfields = array();\n foreach ($this->extrafields as $field) {\n $displayfields[] = $user->{$field};\n }\n $out .= ' (' . implode(', ', $displayfields) . ')';\n }*/\n return $out;\n }", "public function getUserLastName () {\n\t\treturn ($this->userLastName);\n\t}", "public function getDisplayName()\n\t{\n\t\treturn $this->m_oUser->DisplayName;\n\t}", "public function name()\n {\n return $this->first_name .' ' .$this->last_name;\n }", "public function fullName()\n {\n return $this->forename.' '.$this->surname;\n }", "public function getUserFullName($user_id)\n\t{\n\t\treturn $this->getUserFirstName($user_id) . ' ' . $this->getUserLastName($user_id);\n\t}", "protected function _getRealName()\n {\n return $this->first_name . ' ' . $this->last_name;\n }", "function fullNameById($userId, $format=0) {\r\n\r\n\t$query = db_query(\"SELECT firstName,lastName FROM user WHERE id=\".escapeValue($userId));\r\n\r\n\tif (db_numrows($query) == 1) {\r\n\t\r\n\t\t$result = db_fetch($query);\r\n\t\tif ($format == 0)\r\n\t\t\t$name = $result[\"firstName\"].\" \".$result[\"lastName\"];\r\n\t\telse\r\n\t\t\t$name = $result[\"lastName\"].\", \".$result[\"firstName\"];\r\n\t\t\r\n\t} else $name = \"\";\r\n\t\r\n\treturn $name;\r\n\t\r\n}", "public function name() {\r\n $name = $this->first_name . ' ' . $this->last_name;\r\n return $name;\r\n }", "public function getFullName()\n {\n return \"{$this->first_name} {$this->last_name}\";\n }", "public function fullName()\n {\n return $this->first_name . ' ' . $this->last_name;\n }", "public function fullName()\n {\n return $this->first_name . ' ' . $this->last_name;\n }", "public function fullName()\n {\n return $this->first_name . ' ' . $this->last_name;\n }", "function getFullName()\r\n\t{\r\n\t\treturn $this->getFirstName() . \" \" . $this->getLastName();\r\n\t}", "public function fullName()\n\t{\n\t\treturn trim(\"{$this->first_name} {$this->last_name}\");\n\t}", "function getFullName()\n\t\t{\n\t\t\treturn $this->firstname.\" \".$this->lastname;\n\t\t}", "public function getDisplayName() { $n = $this->data->get(\"displayName\", null);\n if (!empty($n)) {\n return $n;\n }\n \n // I have google's name?\n if (($g = $this->getGoogleInfo())) {\n if (isset($g->givenName) && !empty($g->givenName)) {\n return $g->givenName;\n }\n if (isset($g->name) && !empty($g->name)) {\n return $g->name;\n }\n }\n \n // user is current user?? load his name if he is\n $currentUser = JFactory::getUser();\n if ((int)($currentUser->id) == (int)$this->userid) {\n return ucwords(strtolower($currentUser->name));\n }\n \n // load user and get his name\n $user = F_User::getUserById((int)$this->$userid);\n if ($user) {\n return ucwords(strtolower($user->name));\n }\n \n // wtf\n return \"???\";\n }", "public function username(){\n \treturn $this->users->name.' '.$this->users->ape;\n }", "public function getName()\n {\n $name = $this->getFirstName() . ' ';\n if ($this->getNickName() !== null && $this->getNickName() !== '') {\n $name .= $this->getNickName() . ' ';\n }\n $name .= $this->getLastName();\n return $name;\n }", "function ffl_fix_user_display_name($user_id)\n{\n\t//set the display name\n\t$info = get_userdata( $user_id );\n \n\t$display_name = trim($info->first_name . ' ' . $info->last_name);\n\tif(!$display_name)\n\t\t$display_name = $info->user_login;\n\t\t\t \n\t$args = array(\n\t\t\t'ID' => $user_id,\n\t\t\t'display_name' => $display_name\n\t);\n \n\twp_update_user( $args ) ;\n}", "public function fullName(){\n $title = ($this->gender=='Male')? 'Mr.': 'Ms.';\n return $title.' '.$this->fname. ' '. $this->lname ;\n }", "public function getFullName(){\n\n return \"{$this->firstname}{$this->lastname}\";\n }", "public function __toString() {\n\t\t$string = '';\n\t\t$name = $this->getName();\n\t\t$surname = $this->getSurname();\n\n\t\tif (ConfigModule::get(\"users\",\"toStringFormat\") == \"Surname, Name (Username)\")\n\t\t\t$string .= $surname . ', ' . $name;\n\t\telse\n\t\t\t$string .= $name . ' ' . $surname;\n\n\t\t$string .= ' (' . $this->getUserName() . ')';\n\n\t\treturn $string;\n\t}", "public function fullName()\n {\n if (isset($this->last_name)) {\n return $this->first_name . ' ' . $this->last_name;\n } else {\n return $this->first_name;\n }\n }", "public function diviroids_user_firstname($atts)\n {\n return DiviRoids_Security::get_current_user('user_firstname');\n }", "public function getUserProfileLastName(): string {\n\t\treturn ($this->userProfileLastName);\n\t}", "public function getUsersName(){\n //Get the Id\n $userId = $_GET[\"userId\"];\n //Gets the users name \n $usersName = $this->individualGroupModel->getTheUsersName($userId); \n //echos out a created users name given the first and last name\n echo $usersName->User_First_Name . \" \" . $usersName->User_Last_Name;\n }", "public function displayUser()\n {\n $entry = $this->getEntry();\n if ($entry) {\n return $entry->displayUser();\n }\n }", "public function getDisplayName() {\r\n $displayName = $this->fname.' '.$this->lname;\r\n if(strlen($displayName) <= 1) {\r\n $displayName = explode('@',$this->email);\r\n return($displayName[0]);\r\n }\r\n return($displayName);\r\n }", "function getFirst_Name() {\n $user = $this->loadUser(Yii::app()->user->id);\n return $user->first_name;\n }", "private function userDisplay() {\n $showHandle = $this->get('username');\n if (isset($showHandle)) {\n echo '<li class=\"user-handle\">'.$showHandle.'</li>';\n }\n }", "function printUserInfo(){\n\n\t\t/* Get User Info */\n\t\t$user = $this->getUserInfo();\n\n\t\t/* Check for Real Name */\n\t\tif($user->person->realname->_content){\n\t\t\t$name = $user->person->realname->_content;\n\t\t} else {\n\t\t\t$name = $user->person->username->_content;\n\t\t}\n\t\t$description = $user->person->description->_content;\n\n\n\t\t/* Add <br> tags */\n\t\t$description = str_replace(\"\\n\",'<br/>',$description);\n\n\t\t/* Generate output */\n\t\t$output = '<section class=\"person\" itemscope itemtype=\"http://schema.org/Person\">'; // Using some Microdata for Additional Searchability\n\t\t$output .= '<img src=\"http://farm'.$user->person->iconfarm.'.staticflickr.com/'.$user->person->iconserver.'/buddyicons/'.$user->person->nsid.'_r.jpg\" class=\"avatar\" itemprop=\"photo\" alt=\"'.$user->person->realname->_content.'\" />';\n\t\t$output .= '<h3 >Hi! I\\'m <span class=\"name\" itemprop=\"name\" rel=\"author\">'.$name.'</span></h3>';\n\t\t$output .= '<p class=\"description span6\" itemprop=\"description\">'.$description.'<br/><br/>View my Photos on <a href=\"'.$user->person->photosurl->_content.'\" target=\"_blank\" rel=\"autor\">Flickr</a>.</p>';\n\t\t$output .= '</section>';\n\n\t\t/* Return HTML */\n\t\treturn $output;\n\t}", "public function fullName() {\n return $this->getFirstName() . \" \" . $this->getLastName();\n }", "function get_user_name() {\n return $this->call('get_user_name', array(), TRUE);\n }", "function get_the_author_lastname()\n {\n }", "public function GetFullName()\n\t\t{\n\t\t\treturn $this->GetAttribute('first_name').' '.$this->GetAttribute('last_name');\n\t\t}", "public function outputUsername()\n\t{\n\t\techo App::e($this->username);\n\t}", "public function getuserFirstName()\n {\n return $this->userFirstName;\n }", "public function getUser_fname()\n {\n return $this->user_fname;\n }", "function get_names($user_id){\n\tglobal $row_num2;\n\t$query_string = \"select lastname, firstname from registered_users where id = \\\"$user_id\\\"\";\n\trun_query($query_string);\n\tif($row_num2 == 0){\n\t\t$names = \"\";\n\t}\telse\t{\n\t\t$names = build_array($row_num2);\n\t\t$names = $names[0].\" \".$names[1];\n\t}\n\treturn ucwords($names);\n}", "public function usualname()\n\t{\n\t\treturn coalesce(User::info('UsualName'), User::info('Username'));\n\t}", "public function getName()\n {\n return $this->firstname.' '.$this->lastname;\n }", "public function getUserOrProperName()\n {\n $person = $this->getPerson();\n if (strtolower($person->getEmail()) != strtolower($this->username)) {\n return $this->username;\n } else {\n $init = substr($person->getFirstname(), 0, 1);\n return \"{$init}. {$person->getLastname()}\";\n }\n }", "public function displayName()\n {\n if (isset($this->data['name']) && config('gzero.use_users_nicks')) {\n return $this->data['name'];\n }\n\n if (isset($this->data['first_name']) || isset($this->data['last_name'])) {\n return $this->data['first_name'] . ' ' . $this->data['last_name'];\n }\n\n return trans('gzero-core::common.anonymous');\n }", "public function getUserName() {\n if (isset($this->rUser)) {\n return $this->rUser->getFullName();\n }\n return '';\n }", "function the_author_lastname()\n {\n }", "function getFirst_Name(){\n $user = $this->loadUser(Yii::app()->user->id);\n\treturn $user->firstname;\n }", "public function getFirstname(): string\n {\n return $this->export('Firstname');\n }", "public function getNameForDisplay()\n {\n if (null !== $this->getName() && '' !== $this->getName()) {\n return $this->getName();\n } elseif (1 == $this->getRealUserName()) {\n return $this->getUsername();\n }\n\n return $this->getEmail();\n }", "public function getUserLastName($user_id)\n\t{\n\t\t$user = $this->find($user_id);\n\t\treturn $user->last_name;\n\t}", "public final function display(){\n echo \"Username is{$this->user} and user id is{$this->userId}\";\n }", "public function getFullname()\n {\n return $this->firstname . ' ' . $this->lastname;\n }", "function get_the_author_firstname()\n {\n }", "public function fullName()\n {\n return $this->getAttribute('first_name').' '.$this->getAttribute('last_name');\n }", "function getFullName()\n\t\t{\n\t\t\treturn $this->firstname.\" \".$this->Fname.\" \".$this->lastname;\n\t\t}", "function getFullName()\n\t\t{\n\t\t\treturn $this->firstname.\" \".$this->Fname.\" \".$this->lastname;\n\t\t}", "public function getAutoCompleteUserName() {\n// $retVal = $this->username;\n// if (!empty($this->last_name)) {\n// $retVal .= ' - ' . $this->last_name;\n// }\n// if (!empty($this->first_name)) {\n// $retVal .= ' ' . $this->first_name;\n// }\n $arr = array(\n $this->getFullName(),\n $this->getRoleName(),\n $this->getAgentName(),\n );\n $retVal = implode(' - ', $arr);\n\n return $retVal;\n }", "public function getFullName()\n {\n return \"{$this->lastname} {$this->firstname} {$this->patronymic}\";\n }", "public function getMemberName() {\n return Html::a( $this->user->username, Yii::$app->params['url_admin'].'/user/view?id='.$this->user->id );\n }", "function getRHUL_FullName() {\n return getRHUL_FirstName() . \" \" . getRHUL_LastName();\n}", "function voyage_mikado_get_the_author_name() {\n if(get_the_author_meta('first_name') !== '' || get_the_author_meta('last_name') !== '') {\n $name = get_the_author_meta('first_name').' '.get_the_author_meta('last_name');\n } else {\n $name = get_the_author_meta('display_name');\n }\n\n return $name;\n }", "public function getName()\n {\n return trim(\"$this->FirstName $this->Surname\");\n }", "public function DisplayName() {\n\t\t\n\t\tif (!empty($this->profil)) {\n\t\t\t\n\t\t\treturn $this->profil['user']['displayName'];\n\t\t}\n\t\t\n\t\treturn null;\n\t}", "public function getFullName()\r\n\t{\r\n\t\treturn sprintf('%s %s', $this['firstName'], $this['lastName']);\r\n\t}", "public function getFullName()\n {\n return $this->first_name . ' ' . $this->last_name;\n }", "public function getFullName()\n {\n return $this->first_name . ' ' . $this->last_name;\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}", "function OutputUser($user)\n{\n if(empty($user))\n {\n return;\n }\n\n if ($user->IsMigratedToMicrosoftAccount)\n {\n print \"The user is migrated to a Microsoft account, \" .\n \"and the UserName field is the corresponding email address.\\n\\n\";\n }\n else\n {\n print \"The user is not yet migrated to a Microsoft account, \" .\n \"and the value of UserName is a legacy Bing Ads managed user.\\n\\n\";\n }\n\n printf(\"UserName is %s\\n\", $user->UserName);\n printf(\"Bing Ads Email is %s\\n\", $user->ContactInfo->Email);\n printf(\"User Id is %d\\n\", $user->Id);\n printf(\"FirstName is %s\\n\", $user->Name->FirstName);\n if (!empty($user->Name->MiddleInitial))\n {\n printf(\"MiddleInitial is %s\\n\", $user->Name->MiddleInitial);\n }\n printf(\"LastName is %s\\n\\n\", $user->Name->LastName);\n}", "function medigroup_mikado_get_the_author_name() {\n if(get_the_author_meta('first_name') !== '' || get_the_author_meta('last_name') !== '') {\n $name = get_the_author_meta('first_name').' '.get_the_author_meta('last_name');\n } else {\n $name = get_the_author_meta('display_name');\n }\n\n return $name;\n }", "function showNickname()\n {\n $this->out->raw('<span class=\"nickname fn\">' .\n htmlspecialchars($this->profile->nickname) .\n '</span>');\n }", "public static function display() {\n\t\t\techo \"Full Name is: \".UserData::NAME.\"<br>\";\n\t\t\techo \"Age is : \".self::$age;\n\t\t}" ]
[ "0.7828769", "0.7812483", "0.7665843", "0.7555855", "0.75209236", "0.7477929", "0.7450486", "0.740285", "0.73780537", "0.73443323", "0.73227686", "0.7279113", "0.72563803", "0.7242674", "0.71620494", "0.7147112", "0.71384716", "0.713673", "0.7118995", "0.7117533", "0.71160495", "0.7112793", "0.7099571", "0.7093636", "0.7072142", "0.7051477", "0.7049635", "0.7019977", "0.7014118", "0.7012938", "0.7004286", "0.6973257", "0.6943709", "0.69321173", "0.6923023", "0.69122773", "0.6889839", "0.68690854", "0.6857689", "0.68507046", "0.68507046", "0.68507046", "0.6850292", "0.6823006", "0.6821806", "0.6820998", "0.68134546", "0.67933416", "0.6792729", "0.67922515", "0.67839366", "0.6783098", "0.67816776", "0.6778458", "0.67710924", "0.67638546", "0.6761865", "0.67615485", "0.6758627", "0.6751338", "0.67505395", "0.6738488", "0.6731656", "0.67286056", "0.6727075", "0.6724559", "0.67201555", "0.6701151", "0.669544", "0.6694774", "0.66924524", "0.6682813", "0.66826266", "0.66797173", "0.66747504", "0.66732275", "0.6670412", "0.66688067", "0.66599995", "0.6659091", "0.66542464", "0.66536826", "0.66521883", "0.6649493", "0.6649493", "0.6646443", "0.6643766", "0.66406554", "0.66401595", "0.6638626", "0.66377264", "0.6634597", "0.6633977", "0.66166", "0.66166", "0.66110605", "0.6610498", "0.6603354", "0.6594753", "0.65938085" ]
0.78032905
2
Show a registered user. Using the "partials/members" template.
function show_person($user_id, $args) { if( $ar = get_user_meta($user_id) ){ $meta = array_map( function( $a ){ return $a[0]; }, $ar); } $defaults = array("avatar_size" => 96); $args = wp_parse_args($args, $defaults); # $id must me present for use in _members.php $id = $user_id; ob_start(); include THEME_ABSPATH."partials/_member.php"; echo ob_get_clean(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function show($id)\n {\n //\n $member = User::findOrFail($id);\n return view('admin.members.show',compact('member'));\n }", "public function show($id)\n {\n $data['member'] = User::find($id);\n return view('', $data);\n }", "public function show()\n {\n return view('user::show');\n }", "public function show()\n {\n return view('user::show');\n }", "public function show()\n {\n return view('users::show');\n }", "public function show($id)\n\t{\n\t\t$user = Member::find($id);\t\t\t\t\n\t\treturn View::make('member.view')->with('user', $user);\n\t}", "public function showMembers() {\n\n $memberModel = $GLOBALS[\"memberModel\"];\n // Get all of the members from the db.\n $included_members = $memberModel->getAll();\n $data = array(\"included_members\" => $included_members);\n return $this->render(\"listMembers\", $data);\n }", "public function show(Member $members)\n {\n return view('members.show', compact('members'));\n// return view('members.show', [\n// 'member' => $members\n// ], compact('member'));\n\n }", "public function show()\n {\n $id = Auth::user()->id;\n $user = User::find($id);\n return view('user.detail', compact('user'));\n }", "public function show($id) {\n $user = User::find($id);\n View::share('title', $user->getFullName());\n\n return View::make('admin.users.show');\n }", "public function userPage()\n {\n return view('user.user');\n }", "public function show()\n {\n $user = User::findOrFail($this->auth->user()->id);\n return view('admin.admin-users.profile', compact('user'));\n }", "public function show(Member $member)\n {\n return view('members.show', ['member'=>$member]);\n }", "public function show($id)\n {\n $member = Member::findOrFail($id);\n\n return view('members.show', compact('member'));\n }", "public function show()\n {\n $user = User::find($this->guard()->id());\n $properties = $user->properties;\n\n return view(config('const.template.user.mypage'), compact('user', 'properties'));\n }", "public function index()\n {\n // Get the currently authenticated user...\n $user = Auth::user();\n return view('member.account', compact('user'));\n }", "public function show($user)\n {\n return view('user::show');\n }", "public function show_user($id)\n\t{\n\t\t$user = User::find($id);\n\t\treturn view('admin.show_user', compact('user'));\n\t}", "public function show(User $user)\n {\n return view('users.show', get_defined_vars());\n }", "public function show($id)\n {\n $user = User::find($id);\n\t\treturn view('pages.user.show',['user' => $user]);\n }", "public function showProfile()\n {\n\t\t$user = User::all();\n\n return View::make('users', array('users' => $user));\n }", "public function edit() {\n\t\t$userId = $this->uri->segment(3);\n\t\t$name = 'Juan Saluminag';\n\n\t\t$this->breadcrumbs->set(['Edit: ' . $name => 'members/edit/' . $userId]);\n\n\t\t$this->render('register');\n\t}", "public function show()\n {\n $user = Auth::user();\n\n // dd($user);\n return view('pages.user.profile')->withUser($user);\n }", "public function show($id)\n {\n $user = $this->users->findOrFail($id);\n return \\View::make('admin.users.show', [\n 'user' => $user,\n 'title' => 'view',\n ]);\n }", "public function show(Member $member)\n {\n //\n return view('member.show')->with('member', $member);\n }", "public function show($id)\n {\n return view('admin.users.show', compact('user'));\n }", "public function show(User $user) //mostra um usuário\n {\n return view('admin.users.show',compact('user'));\n }", "public function show($id)\n {\n $user = $this->userRepository->getById($id);\n return view('users.show', compact('user'));\n }", "public function show($id)\n\t{\n\t\t$user = $this->user->find($id);\n\n return view('users.show')->with('user', $user);\n\t}", "public function showUser()\n {\n return view('admin.users-key.view');\n }", "public function show($id)\n {\n return view('admin.users.show', ['user' => $this->repository->show($id)]);\n }", "public function user()\n {\n return view('user.user');\n }", "public function show(User $user) {\n\n \treturn view('user.show', compact('user'));\n }", "public function show($id)\n {\n $user = User::findOrFail($id);\n\n\n return view('agent.users.singleuser', [\n 'user' =>$user,\n\n ]);\n }", "public function show($id)\n {\n $users= User::find($id);\n return view('admin.page.user.show',compact('users'));\n }", "public function show($id)\n {\n $mainMember = $this->mainMemberRepository->find($id);\n\n if (empty($mainMember)) {\n Flash::error('Main Member not found');\n\n return redirect(route('mainMembers.index'));\n }\n\n return view('main_members.show')->with('mainMember', $mainMember);\n }", "public function show($id)\n {\n $user = user::findOrFail($id);\n return view('user.show', ['item' => $user]\n );\n }", "public function show($id)\n\t{\n\t\t$user = user::find($id);\n\t\treturn view('users.show', compact('user'));\n\n\t}", "public function get_adminMember(){\n if(Auth::user()->user_type == 0){\n return redirect('/adminlogin');\n }\n $users = User::all()->except(Auth::id());\n return view('admin.member',compact('users'));\n }", "public function show($id)\n {\n \t// GET USER\n $user = User::find($id);\n\n return view('admin.show-user')->withUser($user);\n }", "public function show($id)\n {\n $user = User::find($id);\n return view('pages/user_show')->with('user', $user);\n }", "public function show($id)\n {\n $users = User::where('id', $id)->first();\n return view('pages.users.show', ['users' => $users]);\n }", "public function show($id)\n {\n $user = User::find($id);\n return view('admin.users.users-show',compact('user'));\n }", "public function show($id)\n {\n //Show page\n $user = User::find($id);\n return view('admin.user.show')->with('user', $user);\n }", "public function show($id)\n {\n //\n $user = User::find($id);\n return view('admin.user.show')->with('user', $user);\n }", "public function viewMemberAction()\n {\n $users = $this->getDoctrine()\n ->getManager()\n ->getRepository('BlogBundle:Membres')\n ->findAll();\n\n return array('users' => $users);\n }", "public function user()\n {\n return view('user');\n }", "public function index()\n {\n //\n return view('member');\n }", "public function show(User $user)\n {\n return view('admin.auth.users.show')->with(compact('user'));\n }", "public function show($id)\n {\n $user = User::find($id);\n\n return view('pages.admin.users.show-user')->withUser($user);\n }", "public function show($id)\n {\n $user = User::find($id);\n return view('pages.admin.user.show', ['user' => $user]);\n }", "function show() {\n // Process request with using of models\n $user = Service::get_authorized_user();\n // Make Response Data\n if ($user !== NULL) {\n $data = [\n 'profile' => $user,\n ];\n $view = 'user/show';\n return $this->render($view, $data);\n } else {\n return Application::error403();\n }\n}", "public function render()\n {\n return view('livewire.members');\n }", "public function show($id)\n\t{\n return View::make('users.show');\n\t}", "public function show($id)\n {\n $user = $this->userRepository->getById($id);\n return view('users.show', compact('user'));\n }", "public function show($id)\n {\n return view('admin.users.show');\n }", "public function showSingleUser(array $context) {\n\n echo $this->render('show_user.html', array(\n $this->user => $context[$this->user],\n $this->repos => $context[$this->repos],\n $this->followers => $context[$this->followers],\n $this->auth => $context[$this->auth],\n $this->search_q => $this->searchFieldName\n ));\n }", "public function show()\n {\n $users = User::latest()\n ->orderByDesc('id')\n ->paginate(10);\n return view('admincp::user-list', compact('users'));\n }", "public function show()\n {\n $client = new Client();\n $response = $client->get('localhost:3000/api/users', [\n \"headers\" => [\n \"x-auth-token\" => Session::get('token')\n ]\n ]);\n $users = json_decode($response->getBody());\n\n return view('admin.users', compact('users'));\n }", "public function show(User $user)\n\t{\n return view('users.show', compact('user'));\n\t}", "public function show($id) {\n $user = User::findOrFail($id);\n\n return view('admin.users.show', compact('user'));\n }", "public function show($id)\n {\n $user = User::where('id',$id)->first();\n return view('admin.user.show')->withUser($user);\n }", "public function getIndex()\n {\n return view('pages.members');\n }", "public function show($id)\n {\n $user = User::findOrFail($id);\n return view('pages.users.show', compact('user'));\n }", "public function show()\n {\n $user = Auth::user();\n\n return view('profile/show', compact('user'));\n }", "public function show($id)\n {\n $user = User::findOrFail($id);\n return view('manage.users.show')->withUser($user);\n }", "public function userDetail()\n {\n return view('admin.show_users')->with('users',User::all());\n \n }", "public function index()\n {\n $users = User::orderBy('id', 'desc')->paginate(20);\n $cats = Cat::all();\n \n return view('admin.member', [\n 'users' => $users,\n 'cats' => $cats,\n ]);\n }", "public function show()\n {\n $user = User::where('id',auth()->id())->first();\n return view('super.profile.show', [\n 'index' => $user,\n ]);\n }", "public function showAction($id)\n {\n $user = array('id' => $id);\n return $this->render('HUBackendBundle:User:show.html.twig', array('user' => $user));\n }", "public function show($id)\n {\n $user = User::findOrFail($id);\n return view('dashboard.modules.admin.users.show')->with(['user' => $user]);\n }", "public function show($id)\n {\n $user = User::find($id);\n return view('admin.users.show')\n ->with('user', $user);\n }", "public function show($id)\n\t{\n\t\t$user = $this->user->active()->findOrFail($id);\n\n\t\t$canEdit = $this->auth->user()->id == $id;\n\n\t\treturn $this->view->make('users.show', compact('user', 'canEdit'));\n\t}", "public function show($id)\n {\n //\n $member = Member::find($id);\n return view('member.memberInfo')->with(['member'=>$member]);\n }", "public function show($id)\n {\n $user = User::findOrFail($id);\n return view('pizzeria.users.show', compact('user'));\n }", "public function show()\n {\n $id = Auth::user()->id;\n $user = User::findOrFail($id);\n\n return view('profile.show', compact('user'));\n }", "public function show($id)\n {\n $user = $this->user->find($id);\n \n return view('users.show', compact('user'));\n }", "public function show($id)\n\t{\n\t\t$user = DB::table('users')->where('id', $id)->first();\n\t\t// or use this\n\t\t$user = DB::table('users')->find($id);\n\t\t\n\t\treturn View::make('user.show', compact('user'));\n\t}", "public function listUser()\n {\n $user = User::where('id', '=', 1)->first();\n return view('listUser', [\n 'user' => $user\n ]);\n }", "public function show($id)\n {\n return view('user::show');\n }", "public function show($id)\n {\n return view('user::show');\n }", "public function show($id)\n {\n $user = User::find($id);\n\n return view('admin.users.show')->with('user', $user);\n }", "public function show(User $user){\n return view('users.show', compact('user'));\n }", "public function index()\n {\n $roles = Role::all();\n $users = User::simplePaginate();\n\n return view('dashboard.members', compact('users', 'roles'));\n }", "public function show($id)\n\t{\n\t\t$user = $this->user->findOrFail($id);\n\n\t\treturn View::make('users.show', compact('user'));\n\t}", "public function show($id)\n\t{\n\t\t$user = $this->user->findOrFail($id);\n\n\t\treturn View::make('users.show', compact('user'));\n\t}", "public function show($id)\n {\n $user = User::find($id);\n\n $data = ['user' => $user];\n\n return view('admin.users.show')->with($data);\n }", "public function show()\n {\n $user_identifier = $this->session->userdata('identifier');\n $user_details = $this->user_m->read($user_identifier);\n $this->data['user_details'] = $user_details;\n $this->load_view('Profil Akun', 'user/profil');\n }", "public function show($id)\n {\n $users = User::find($id);\n return view('backend.pages.user.detail',['users' => $users]);\n }", "public function show(Member $member)\n {\n //\n }", "public function show(Member $member)\n {\n //\n }", "public function show(Member $member)\n {\n //\n }", "public function show($id) {\n $user = User::find($id);\n return View::make('user.show')->with('user', $user);\n }", "public function show($id)\n {\n //$administeruser = AdministerUser::findOrFail($id);\n $administeruser = User::findOrFail($id);\n return view('admin.users.show', compact('administeruser'));\n }", "public function show(members $members)\n {\n //\n }", "public function show($id)\n {\n return view('user.show', [\"user\" => User::find($id)]);\n }", "public function show(User $user)\n\t{\n\t\treturn view('admin.pages.users-show', [\n\t\t\t'user' => $user,\n\t\t]);\n\t}", "public function show($id)\n {\n $this->checkPermission('ver_usuario');\n $user = $this->user->find($id);\n \n return view('user.show', compact('user'));\n }", "public function show($id)\n {\n return view('users.show');\n }", "public function showListAction() {\n $users = $this->getDoctrine()\n ->getRepository(User::class)\n ->findAll();\n return $this->render(':Security\\User:users.html.twig', [\n 'users' => $users\n ]);\n }" ]
[ "0.74010134", "0.7114043", "0.71116483", "0.71116483", "0.70989066", "0.70500976", "0.70498437", "0.70071435", "0.69609463", "0.69572216", "0.69338447", "0.68699646", "0.68568", "0.68262506", "0.67922205", "0.6788499", "0.6777398", "0.6777096", "0.6768348", "0.6712148", "0.67094827", "0.67086935", "0.6708663", "0.6689248", "0.66841424", "0.6675589", "0.66724", "0.66711175", "0.66606194", "0.6643702", "0.66433024", "0.6640434", "0.66350365", "0.6634824", "0.6630678", "0.6608297", "0.6604115", "0.6599133", "0.659789", "0.65972173", "0.6595696", "0.659525", "0.6588994", "0.65869266", "0.65841055", "0.6582085", "0.6579918", "0.6574933", "0.6574372", "0.65680134", "0.6566476", "0.65610766", "0.6548288", "0.65472084", "0.6542771", "0.6539819", "0.65340185", "0.653204", "0.65313137", "0.65303576", "0.65292287", "0.6525255", "0.6524322", "0.6518042", "0.65161777", "0.6510255", "0.65049046", "0.6503124", "0.65004253", "0.64992505", "0.6498729", "0.64979386", "0.649381", "0.64910775", "0.6489302", "0.6486701", "0.64856243", "0.64816797", "0.6481612", "0.6475742", "0.6475742", "0.6474249", "0.6472604", "0.6472531", "0.6471264", "0.6471264", "0.647064", "0.6469585", "0.6467114", "0.64659166", "0.64659166", "0.64659166", "0.6465353", "0.6456355", "0.64458334", "0.64431745", "0.6442747", "0.64415276", "0.64370584", "0.6434964" ]
0.650392
67
/ GROUP FUNCTIONS (requires the Groups plugin)
function get_groups($ids = array(), $skip_registered = true) { if(!defined("SCOPER_VERSION")) { return null; } $where = array(); if(count($ids) > 0) { $where[] = "group_id IN(".implode(",",$ids).")"; } if($skip_registered) { $where[] = "group_id != 1"; } if(count($where) > 0) { $where_str = "WHERE " . implode(" AND ", $where); } global $wpdb; $sql = "SELECT group_id, name FROM it_groups_group $where_str ORDER BY group_id"; $res = $wpdb->get_results($sql); return $res; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function groups();", "public function groups();", "function new_groups()\n {\n \n }", "function getGroup() ;", "public function findGroups() {\n\t\t\n\t}", "public function group()\n {\n $this->doGroup('group', \\func_get_args());\n }", "public function getGroup();", "public function getGroup();", "public function getGroup();", "public abstract function getGroup();", "public function getGroup() {}", "public function getGroup() {}", "public function getGroup() {}", "public function getGroup() {}", "public function getGroups() {}", "function secGroups($function, $group=NULL) {\n $g=array(\n\t 'setbackuid'=>array('none','admin'),\n\t 'editPref'=>array('admin'),\n\t 'setuid'=>array('admin'),\n\t 'getBookmarks'=>array('none','admin'),\n\t 'getBookmark'=>array('none','admin'),\n\t 'insertBookmark'=>array('none','admin'),\n\t 'procInsertBookmark'=>array('none','admin'),\n\t 'editBookmark'=>array('none','admin'),\n\t 'delBookmark'=>array('none','admin'),\n\t 'procEditBookmark'=>array('none','admin'),\n\t 'procEditPref'=>array('admin'),\n 'sendPasswords'=>array('rw','rwv','admin'),\n\t 'browseSelection'=>array('none','list','ro','rw','rwv','admin'),\n\t 'myAccount'=>array('none','list','ro','rw','rwv','admin'),\n\t 'procEditMyAccount'=>array('none','list','ro','rw','rwv','admin'),\n\t 'getPreferences'=>array('none','list','ro','rw','rwv','admin'),\n\t 'requestAnAccount'=>array('none'),\n\t 'procRequestAnAccount'=>array('none'),\n );\n if(isset($g[$function])) {\n if(!empty($group)) return in_array($group, $g[$function]);\n return $g[$function];\n }\n return parent::secGroups($function,$group);\n }", "function secGroups($function, $group=NULL) {\n $g=array();\n $g['index']=array('ro','rw','rwv','admin');\n $g['clearStats']=array('admin');\n if(isset($g[$function])) {\n if(!empty($group)) return in_array($group, $g[$function]);\n return $g[$function];\n }\n return parent::secGroups($function,$group);\n }", "static function getUserGroups(){\n \n }", "function system_mod_group($paramvect)\n{\n}", "function system_add_group($paramv)\n{\n}", "function secGroups($function, $group=NULL) {\n $g=array();\n $g['preDel']=array('rw','rwv','admin');\n $g['dashboard']=array('ro','rw','rwv','admin');\n if(isset($g[$function])) {\n if(!empty($group)) return in_array($group, $g[$function]);\n return $g[$function];\n }\n return parent::secGroups($function,$group);\n }", "protected function getGroupList() {}", "protected function getGroupList() {}", "function secGroups($function, $group=NULL) {\n $g=array();\n $g['preConvertCoords']=array('ro', 'rw', 'rwv', 'admin');\n $g['procConvertCoords']=array('ro', 'rw', 'rwv', 'admin');\n $g['convertCoords']=array('none', 'ro', 'rw', 'rwv', 'admin');\n $g['geoSearch']=array('ro', 'rw','rwv','admin');\n $g['simpleLayerKML']=array('none', 'list', 'ro', 'rw', 'rwv', 'admin');\n $g['rawLayer']=array('none', 'list', 'ro', 'rw', 'rwv', 'admin');\n $g['geoCodeAuto']=array('admin');\n $g['procStat']=array('ro', 'rw', 'rwv', 'admin');\n $g['simpleMap'] = array('none', 'list', 'ro', 'rw', 'rwv', 'admin');\n $g['simpleMap2'] = array('none', 'list', 'ro', 'rw', 'rwv', 'admin');\n $g['xPoiList'] = array('ro', 'rw', 'rwv', 'admin');\n $g['xDisplayMarker'] = array('none', 'ro', 'rw', 'rwv', 'admin');\n if(isset($g[$function])) {\n if(!empty($group)) return in_array($group, $g[$function]);\n return $g[$function];\n }\n return parent::secGroups($function,$group);\n }", "public function group($group);", "public function getGroups() {\n\t\t$groups = array(\n\t\t\t'get_posts' => array(\n\t\t\t\t'type' => 'error',\n\t\t\t\t'message' => '%s() is an uncached function; use WP_Query instead.',\n\t\t\t\t'functions' => array(\n\t\t\t\t\t'get_posts',\n\t\t\t\t\t'wp_get_recent_posts',\n\t\t\t\t\t'get_children',\n\t\t\t\t),\n\t\t\t),\n\t\t\t'wp_get_post_terms' => array(\n\t\t\t\t'type' => 'error',\n\t\t\t\t'message' => '%s() is an uncached function; use get_the_terms() instead. Use wp_list_pluck() to get the IDs.',\n\t\t\t\t'functions' => array(\n\t\t\t\t\t'wp_get_post_terms',\n\t\t\t\t\t'wp_get_object_terms',\n\t\t\t\t),\n\t\t\t),\n\t\t\t'wp_get_post_categories' => array(\n\t\t\t\t'type' => 'error',\n\t\t\t\t'message' => '%s() is an uncached function; use the equivalent get_the_* version instead.',\n\t\t\t\t'functions' => array(\n\t\t\t\t\t'wp_get_post_categories',\n\t\t\t\t\t'wp_get_post_tags',\n\t\t\t\t),\n\t\t\t),\n\t\t\t'wp_old_slug_redirect' => array(\n\t\t\t\t'type' => 'error',\n\t\t\t\t'message' => '%s() is an uncached function; use wpcom_vip_old_slug_redirect() instead.',\n\t\t\t\t'functions' => array(\n\t\t\t\t\t'wp_old_slug_redirect',\n\t\t\t\t),\n\t\t\t),\n\t\t\t'get_term_by' => array(\n\t\t\t\t'type' => 'error',\n\t\t\t\t'message' => \"%s() is an uncached function; use wpcom_vip_get_term_by() instead.\",\n\t\t\t\t'functions' => array(\n\t\t\t\t\t'get_term_by',\n\t\t\t\t\t'get_cat_ID',\n\t\t\t\t),\n\t\t\t),\n\t\t);\n\n\t\t$wpcom_vip_fns = array(\n\t\t\t'get_category_by_slug',\n\t\t\t'get_term_link',\n\t\t\t'get_page_by_title',\n\t\t\t'get_page_by_path',\n\t\t\t'url_to_postid',\n\t\t);\n\t\tforeach ( $wpcom_vip_fns as $function ) {\n\t\t\t$groups[ $function ] = array(\n\t\t\t\t'type' => 'error',\n\t\t\t\t'message' => \"%s() is an uncached function; use wpcom_vip_$function() instead.\",\n\t\t\t\t'functions' => array(\n\t\t\t\t\t$function\n\t\t\t\t),\n\t\t\t);\n\t\t}\n\n\t\treturn $groups;\n\t}", "function getGroups() {\n die ('unimplemented: '.__CLASS__.'::'.__FUNCTION__.' ('.__LINE__.':'.__FILE__.')');\n }", "function acf_get_field_groups($filter = array())\n{\n}", "public function getUsergroup() {}", "public function getGroups();", "public function getGroups();", "function system_addto_group($paramv)\n{\n}", "function _acf_apply_get_local_field_groups($groups = array())\n{\n}", "abstract protected function getGroupList() ;", "public function getGroups(): array;", "public function getSubgroup() {}", "function acf_get_field_group($id = 0)\n{\n}", "function secGroups($function, $group=NULL) {\n $g=array();\n if (true || $_SERVER['REMOTE_ADDR'] == '80.13.99.120' || $_SERVER['REMOTE_ADDR'] == '78.231.77.57'){\n $g['tests'] = array('none');\n }\n $g['wtsCheckLine'] = array('none');\n $g['ajaxMotDePasse'] = array('none');\n $g['wtsLireOffres'] = array('none');\n $g['viewOffre'] = array('none');\n $g['wtscommande']=array('none');\n $g['wtssaisieforfaits']=array('none');\n $g['wtsCtrlSaisieForfaits'] = array('none');\n $g['wtsCaddieDisp']=array('none');\n $g['wtsAjaxCaddieDisp'] = array('none');\n $g['wtsadd2caddie']=array('none');\n $g['wtsCaddieSuppr']=array('none');\n $g['wtsCaddieToggleLine']=array('none');\n $g['wtsCaddieSupprPack']=array('none'); // a tester\n $g['wtsPreValidateOrder'] = array('none');\n $g['wtsDevis'] = array('none');\n $g['wtsCtrlValidateOrder'] = array('none');\n $g['wtsValidateOrder'] = array('none');\n $g['wtsCtrlValidateCustomerCreation'] = array('none');\n $g['wtsValidateCustomerCreation'] = array('none');\n $g['wtsPrePaiement'] = array('none');\n $g['wtsDisplayOrder'] = array('none');\n $g['wtsCheckWTP'] = array('none');\n $g['wtsAddCard'] = array('none');\n $g['wtsPaiementZero'] = array('none');\n $g['wtsPaiementCheque'] = array('none');\n $g['wtsAdhesion'] = array('none');\n $g['wtsUseReduction'] = array('none');\n \n $g['checkStructures'] = array('admin');\n $g['repairStructures'] = array('admin');\n $g['repairOneStructure'] = array('admin');\n $g['checkSets'] = array('admin');\n $g['verifgrps'] = array('admin');\n $g['verifVentePro'] = array('admin');\n $g['checkEPLProducts'] = array('admin');\n\n $g['getCaddie'] = array('none');\n \n $g['procAuthGroup'] = array('none');\n $g['closeAuthGroup'] = array('none');\n $g['ajaxProcAuthMembre'] = array('none'); // non ecrite\n $g['initCurrentUser'] = array('none');\n $g['closeAuthMembre'] = array('none');\n\n // fonctions de la vente pro\n $g['wtsprolistewtp'] = array('none'); // ro normalement\n $g['wtsproadd2caddie'] = array('none'); // ro normalement\n $g['wtsProPaiement'] = array('none');\n $g['wtsProCancelOrder'] = array('none');\n $g['proAccount'] = array('none');\n // fonctions de la gestion des comtpes clients\n $g['myAccount'] = array('none');\n $g['procCreateMyAccount'] = array('none');\n $g['procEditMyAccount'] = array('none');\n $g['procEditProAccount'] = array('none');\n\n if(isset($g[$function])) {\n if(!empty($group)) return in_array($group, $g[$function]);\n return $g[$function];\n }\n return parent::secGroups($function, $group);\n }", "function acf_filter_field_groups($field_groups, $args = array())\n{\n}", "function fantacalcio_admin_groups_list() {\n $out = \"\";\n \n $out .= l(\"Aggiungi girone\", \"admin/fantacalcio/groups/add\", array(\n \"attributes\" => array(\"class\" => \"btn btn-info\"))) . \"<br/><br/>\";\n \n $groups = Group::all();\n $competitions = Competition::all();\n if ($groups) {\n $header = array(\n t(\"Girone\"), \n t(\"Attivo\"), \n t(\"Calendario\"), \n t(\"Classfica\"), \n t(\"Formazioni\"), \n t(\"Newsletter\"));\n foreach ($groups as $g_id => $group) {\n $rows[] = array(\n l($competitions[$group->competition_id]->name . \" - \" . $group->name, \"admin/fantacalcio/groups/\" . $g_id), \n fantacalcio_check_value($group->active), \n \n // \"<img src='\" .base_path() . drupal_get_path(\"module\", \"fantacalcio\") . \"/images/\" . get_image_check($group->active) . \"'>\",\n $group->matches_order, \n $group->standings_order, \n $group->lineups_order, \n $group->newsletters_order);\n }\n $out .= theme(\"table\", (array(\n \"header\" => $header, \n \"rows\" => $rows, \n \"attributes\" => array(\"class\" => array(\"table\", \"table-responsive\")), \n \"empty\" => t(\"Nessun gruppo\"))));\n }\n \n return $out;\n}", "function groups() {\n\t\t$this->validate();\n\t\t$this->setupTemplate();\n\n\t\t$journal =& Request::getJournal();\n\n\t\t$rangeInfo =& $this->getRangeInfo('groups');\n\n\t\t$groupDao =& DAORegistry::getDAO('GroupDAO');\n\t\t$groups =& $groupDao->getGroups(ASSOC_TYPE_JOURNAL, $journal->getId(), null, $rangeInfo);\n\n\t\t$templateMgr =& TemplateManager::getManager();\n\t\t$templateMgr->addJavaScript('lib/pkp/js/lib/jquery/plugins/jquery.tablednd.js');\n\t\t$templateMgr->addJavaScript('lib/pkp/js/functions/tablednd.js');\n\t\t$templateMgr->assign_by_ref('groups', $groups);\n\t\t$templateMgr->assign('boardEnabled', $journal->getSetting('boardEnabled'));\n\t\t$templateMgr->display('manager/groups/groups.tpl');\n\t}", "function CBGroups() {\n global $Cbucket;\n $this->cat_tbl = 'group_categories';\n $this->gp_tbl = 'groups';\n $this->gp_mem_tbl = 'group_members';\n //We will using CB Commenting system as posts\n //$this->gp_post_tbl = 'group_posts';\n $this->gp_topic_tbl = 'group_topics';\n $this->gp_invite_tbl = 'group_invitations';\n $this->gp_vdo_tbl = 'group_videos';\n\n //Adding Actions such Report, share,fav etc\n $this->action = new cbactions();\n $this->action->type = 'g';\n $this->action->name = 'group';\n $this->action->obj_class = 'cbgroup';\n $this->action->check_func = 'group_exists';\n $this->action->type_tbl = $this->gp_tbl;\n $this->action->type_id_field = 'group_id';\n \n \n if (isSectionEnabled('groups'))\n $Cbucket->search_types['groups'] = \"cbgroup\";\n \n }", "public function group_list()\n\t{\n\t\t$data = [\n\t\t\t'group' => $this->todo->get_group_list((int) $this->session->userdata('uid'))\n\t\t];\n\t\t$this->page->set_title(\"Group List\");\n\t\t$this->page->build('friend/group_list', $data);\n\t}", "function group_prepare_usergroups_for_display($groups, $returnto='mygroups') {\n if (!$groups) {\n return;\n }\n\n // Retrieve a list of all the group admins, for placing in each $group object\n $groupadmins = array();\n $groupids = array_map(create_function('$a', 'return $a->id;'), $groups);\n if ($groupids) {\n $groupadmins = get_records_sql_array('SELECT \"group\", member\n FROM {group_member}\n WHERE \"group\" IN (' . implode(',', db_array_to_ph($groupids)) . \")\n AND role = 'admin'\", $groupids);\n\t\t\t\n if (!$groupadmins) {\n $groupadmins = array();\n }\n }\n\n $i = 0;\n foreach ($groups as $group) {\n $group->admins = array();\n foreach ($groupadmins as $admin) {\n if ($admin->group == $group->id) {\n $group->admins[] = $admin->member;\n }\n }\n $group->description = str_shorten_html($group->description, 100, true);\n if ($group->membershiptype == 'member') {\n $group->canleave = group_user_can_leave($group->id);\n }\n else if ($group->jointype == 'open') {\n $group->groupjoin = group_get_join_form('joingroup' . $i++, $group->id);\n }\n else if ($group->membershiptype == 'invite') {\n $group->invite = group_get_accept_form('invite' . $i++, $group->id, $returnto);\n }\n }\n}", "function addGroupHandler() {\n global $inputs;\n\n $lastId = insert('group',[\n 'admin_id' => getLogin()['uid'],\n 'group_name' => $inputs['name'],\n 'description' => $inputs['desc'],\n ]);\n\n formatOutput(true, 'add success');\n}", "public static abstract function getGroupList();", "public function getSubGroups() {}", "public function currentGroup();", "public function GetGroupName ();", "public function &getGroupBy();", "public static function getGroups(): array\n {\n return [\"group2\"];\n }", "public function &onGroupAreas()\n\t{\n\t\t$area = array(\n\t\t\t'name' => $this->_name,\n\t\t\t'title' => Lang::txt('PLG_GROUPS_ACTIVITY'),\n\t\t\t'default_access' => $this->params->get('plugin_access', 'members'),\n\t\t\t'display_menu_tab' => $this->params->get('display_tab', 1),\n\t\t\t'icon' => 'f056'\n\t\t);\n\t\treturn $area;\n\t}", "static function get_apigroup();", "function scan_field_groups()\n {\n }", "public static function getPluignGroups()\n\t\t{\n\n\t\t\t$groups = array(\n\n\t\t\t\t'christina' => array(\n\t\t\t\t\t'id'\t\t\t\t=> 'christina',\n\t\t\t\t\t'title'\t\t\t\t=> 'Christina',\n\t\t\t\t\t'icon' \t\t\t\t=> 'admin-appearance',\n\t\t\t\t\t'excerpt' \t\t\t=> 'Enable your students to submit assignments, have them collaborate in groups and get inline feedback.',\n\t\t\t\t\t'image' \t\t\t=> 'http://dummyimage.com/308x160',\n\t\t\t\t\t'link' \t\t\t\t=> 'http://code.ubc.ca/studiorum/courses/christina',\n\t\t\t\t\t'content' \t\t\t=> __( '<p>Create assignments - with deadlines - that enable your students to submit their work in a beautiful rich text editor. The student (and peers in their custom user groups) are able to make inline comments to get fine-grained critique.</p>', 'studiorum' ),\n\t\t\t\t\t'content_sidebar' \t=> 'http://dummyimage.com/300x150',\n\t\t\t\t\t'date'\t\t\t\t=> '2014-06-01',\n\t\t\t\t\t'plugins'\t\t\t=> array(\n\t\t\t\t\t\t'gravityforms/gravityforms.php',\n\t\t\t\t\t\t'gravity-forms-custom-post-types/gfcptaddon.php',\n\t\t\t\t\t\t'gravity-forms-wysiwyg/gf_wysiwyg.php',\n\t\t\t\t\t\t'studiorum-lectio/studiorum-lectio.php',\n\t\t\t\t\t\t'studiorum-side-comments/studiorum-side-comments.php',\n\t\t\t\t\t\t'studiorum-user-groups/studiorum-user-groups.php'\n\t\t\t\t\t),\n\t\t\t\t\t'examples' \t\t\t=> array(\n\t\t\t\t\t\t'http://arts.ubc.ca/arts-one/'\n\t\t\t\t\t)\n\t\t\t\t),\n\t\t\t\t\n\t\t\t\t'simon' => array(\n\t\t\t\t\t'id'\t\t\t\t=> 'simon',\n\t\t\t\t\t'title'\t\t\t\t=> 'Simon',\n\t\t\t\t\t'icon' \t\t\t\t=> 'lightbulb',\n\t\t\t\t\t'excerpt' \t\t\t=> 'Enable students to rate each others\\' work simply and easily using a hot-or-not style voting system.',\n\t\t\t\t\t'image' \t\t\t=> 'http://dummyimage.com/308x160/222/fff',\n\t\t\t\t\t'link' \t\t\t\t=> 'http://code.ubc.ca/studiorum/courses/simon',\n\t\t\t\t\t'content' \t\t\t=> __( '<p>Provide a simple way for your students to provide hot-or-not style feedback to easily discover which content is best.</p>', 'studiorum' ),\n\t\t\t\t\t'content_sidebar' \t=> 'http://dummyimage.com/300x150',\n\t\t\t\t\t'date'\t\t\t\t=> '2014-07-01',\n\t\t\t\t\t'plugins'\t\t\t=> array(\n\t\t\t\t\t\t'gravityforms/gravityforms.php',\n\t\t\t\t\t\t'gravity-forms-custom-post-types/gfcptaddon.php',\n\t\t\t\t\t\t'gravity-forms-wysiwyg/gf_wysiwyg.php',\n\t\t\t\t\t\t'studiorum-lectio/studiorum-lectio.php',\n\t\t\t\t\t\t'custom-css-meta-box/custom-css-meta-box.php'\n\t\t\t\t\t),\n\t\t\t\t\t'examples' \t\t\t=> array(\n\t\t\t\t\t\t'http://physics.ubc.ca/'\n\t\t\t\t\t)\n\t\t\t\t),\n\n\t\t\t\t'paul' => array(\n\t\t\t\t\t'id'\t\t\t\t=> 'paul',\n\t\t\t\t\t'title'\t\t\t\t=> 'Paul',\n\t\t\t\t\t'icon' \t\t\t\t=> 'share',\n\t\t\t\t\t'excerpt' \t\t\t=> 'Curate content via delicious.com and show it on your site in a beautiful, searchable, engaging way.',\n\t\t\t\t\t'image' \t\t\t=> 'http://dummyimage.com/308x160/fff/333',\n\t\t\t\t\t'link' \t\t\t\t=> 'http://code.ubc.ca/studiorum/courses/paul',\n\t\t\t\t\t'content' \t\t\t=> __( '<p>Curate and tag content using the popular delicious.com service and then allow students to search quickly and easily to see the content you want them to see.</p>', 'studiorum' ),\n\t\t\t\t\t'content_sidebar' \t=> 'http://dummyimage.com/300x150',\n\t\t\t\t\t'date'\t\t\t\t=> '2014-05-01',\n\t\t\t\t\t'plugins'\t\t\t=> array(\n\t\t\t\t\t\t'studiorum-hon/studiorum-delicious.php'\n\t\t\t\t\t),\n\t\t\t\t\t'examples' \t\t\t=> array(\n\t\t\t\t\t\t'http://sauder.ubc.ca/'\n\t\t\t\t\t)\n\t\t\t\t),\n\n\t\t\t);\n\n\t\t\treturn $groups;\n\n\t\t}", "function member_groups_page() {\r\n require_once( $plugin_dir . \"email-newsletter-files/page-groups.php\" );\r\n }", "function secGroups($function, $group=NULL) {\n $g=array();\n $g['clean_cache']=array('admin');\n if(isset($g[$function])) {\n if(!empty($group)) return in_array($group, $g[$function]);\n else return $g[$function];\n }\n return false;\n }", "function wp_cache_add_global_groups($groups)\n {\n }", "function acf_get_local_field_groups()\n{\n}", "function add_local_field_group(){\n // ...\n }", "function setup_groups() {\n global $CFG;\n\n /// find out current groups mode\n $this->group_selector = groups_print_course_menu($this->course, $this->pbarurl, true);\n $this->currentgroup = groups_get_course_group($this->course);\n\n if ($this->currentgroup) {\n $this->groupsql = \" LEFT JOIN {$CFG->prefix}groups_members gm ON gm.userid = u.id \";\n $this->groupwheresql = \" AND gm.groupid = $this->currentgroup \";\n }\n }", "public function getGroupsList(){\n return $this->_get(3);\n }", "public function groups() {\n\t\t//variabel\n\t\t$data['datas'] = $this->PbkGroups_model->get_all();\n\t\t\n\t\t$template_data['title'] = 'SMS Gateway ';\n\t\t$template_data['subtitle'] = 'Kirim SMS';\n $template_data['crumb'] = ['SMS Gateway' => 'smsgateway', 'SMS Groups' => 'smsgateway/kirimsms/groups',];\n\t\t//view\n\t\t$this->layout->set_wrapper('groups_form', $data);\n\t\t$this->layout->auth();\n\t\t$this->layout->render('admin', $template_data);\n\t}", "function getGroup() {\n\n\tglobal $db;\n\treturn $db->getGroup ( $GLOBALS [\"targetId\"] );\n\n}", "public function meta(): Group;", "public function getGroupsList(){\n return $this->_get(4);\n }", "public function getGroupsList(){\n return $this->_get(4);\n }", "function mycred_load_buddypress_groups_hook() {\n\tif ( class_exists( 'myCRED_BuddyPress_Groups' ) || ! class_exists( 'BuddyPress' ) ) return;\n\n\tclass myCRED_BuddyPress_Groups extends myCRED_Hook {\n\n\t\t/**\n\t\t * Construct\n\t\t */\n\t\tfunction __construct( $hook_prefs, $type = MYCRED_DEFAULT_TYPE_KEY ) {\n\n\t\t\tparent::__construct( array(\n\t\t\t\t'id' => 'hook_bp_groups',\n\t\t\t\t'defaults' => array(\n\t\t\t\t\t'create' => array(\n\t\t\t\t\t\t'creds' => 10,\n\t\t\t\t\t\t'log' => '%plural% for creating a new group',\n\t\t\t\t\t\t'min' => 0\n\t\t\t\t\t),\n\t\t\t\t\t'delete' => array(\n\t\t\t\t\t\t'creds' => '-10',\n\t\t\t\t\t\t'log' => '%singular% deduction for deleting a group'\n\t\t\t\t\t),\n\t\t\t\t\t'new_topic' => array(\n\t\t\t\t\t\t'creds' => 1,\n\t\t\t\t\t\t'log' => '%plural% for new group topic',\n\t\t\t\t\t\t'limit' => '0/x'\n\t\t\t\t\t),\n\t\t\t\t\t'edit_topic' => array(\n\t\t\t\t\t\t'creds' => 1,\n\t\t\t\t\t\t'log' => '%plural% for updating group topic',\n\t\t\t\t\t\t'limit' => '0/x'\n\t\t\t\t\t),\n\t\t\t\t\t'new_post' => array(\n\t\t\t\t\t\t'creds' => 1,\n\t\t\t\t\t\t'log' => '%plural% for new group post',\n\t\t\t\t\t\t'limit' => '0/x'\n\t\t\t\t\t),\n\t\t\t\t\t'edit_post' => array(\n\t\t\t\t\t\t'creds' => 1,\n\t\t\t\t\t\t'log' => '%plural% for updating group post',\n\t\t\t\t\t\t'limit' => '0/x'\n\t\t\t\t\t),\n\t\t\t\t\t'join' => array(\n\t\t\t\t\t\t'creds' => 1,\n\t\t\t\t\t\t'log' => '%plural% for joining new group',\n\t\t\t\t\t\t'limit' => '0/x'\n\t\t\t\t\t),\n\t\t\t\t\t'leave' => array(\n\t\t\t\t\t\t'creds' => '-5',\n\t\t\t\t\t\t'log' => '%singular% deduction for leaving group'\n\t\t\t\t\t),\n\t\t\t\t\t'avatar' => array(\n\t\t\t\t\t\t'creds' => 1,\n\t\t\t\t\t\t'log' => '%plural% for new group avatar',\n\t\t\t\t\t\t'limit' => '0/x'\n\t\t\t\t\t),\n\t\t\t\t\t'cover' => array(\n\t\t\t\t\t\t'creds' => 1,\n\t\t\t\t\t\t'log' => '%plural% for new cover photo',\n\t\t\t\t\t\t'limit' => '0/x'\n\t\t\t\t\t),\n\t\t\t\t\t'comments' => array(\n\t\t\t\t\t\t'creds' => 1,\n\t\t\t\t\t\t'log' => '%plural% for new group comment',\n\t\t\t\t\t\t'limit' => '0/x'\n\t\t\t\t\t)\n\t\t\t\t)\n\t\t\t), $hook_prefs, $type );\n\n\t\t}\n\n\t\t/**\n\t\t * Run\n\t\t * @since 0.1\n\t\t * @version 1.0\n\t\t */\n\t\tpublic function run() {\n\n\t\t\tif ( $this->prefs['create']['creds'] != 0 && $this->prefs['create']['min'] == 0 )\n\t\t\t\tadd_action( 'groups_group_create_complete', array( $this, 'create_group' ) );\n\n\t\t\tif ( $this->prefs['create']['creds'] < 0 )\n\t\t\t\tadd_filter( 'bp_user_can_create_groups', array( $this, 'restrict_group_creation' ), 99, 2 );\n\n\t\t\tif ( $this->prefs['delete']['creds'] != 0 )\n\t\t\t\tadd_action( 'groups_group_deleted', array( $this, 'delete_group' ) );\n\n\t\t\tif ( $this->prefs['new_topic']['creds'] != 0 )\n\t\t\t\tadd_action( 'bp_forums_new_topic', array( $this, 'new_topic' ) );\n\n\t\t\tif ( $this->prefs['edit_topic']['creds'] != 0 )\n\t\t\t\tadd_action( 'groups_edit_forum_topic', array( $this, 'edit_topic' ) );\n\n\t\t\tif ( $this->prefs['new_post']['creds'] != 0 )\n\t\t\t\tadd_action( 'bp_forums_new_post', array( $this, 'new_post' ) );\n\n\t\t\tif ( $this->prefs['edit_post']['creds'] != 0 )\n\t\t\t\tadd_action( 'groups_edit_forum_post', array( $this, 'edit_post' ) );\n\n\t\t\tif ( $this->prefs['join']['creds'] != 0 || ( $this->prefs['create']['creds'] != 0 && $this->prefs['create']['min'] != 0 ) )\n\t\t\t\tadd_action( 'groups_join_group', array( $this, 'join_group' ), 20, 2 );\n\n\t\t\tif ( $this->prefs['join']['creds'] < 0 )\n\t\t\t\tadd_filter( 'bp_get_group_join_button', array( $this, 'restrict_joining_group' ) );\n\n\t\t\tif ( $this->prefs['leave']['creds'] != 0 )\n\t\t\t\tadd_action( 'groups_leave_group', array( $this, 'leave_group' ), 20, 2 );\n\n\t\t\tif ( $this->prefs['avatar']['creds'] != 0 )\n\t\t\t\tadd_action( 'groups_screen_group_admin_avatar', array( $this, 'avatar_upload_group' ) );\n\n\t\t\tif ( $this->prefs['cover']['creds'] != 0 )\n\t\t\t\tadd_action( 'group_cover_image_uploaded', array( $this, 'cover_change' ) );\n\n\t\t\tif ( $this->prefs['comments']['creds'] != 0 )\n\t\t\t\tadd_action( 'bp_groups_posted_update', array( $this, 'new_group_comment' ), 20, 4 );\n\n\t\t}\n\n\t\t/**\n\t\t * Creating Group\n\t\t * @since 0.1\n\t\t * @version 1.0\n\t\t */\n\t\tpublic function create_group( $group_id ) {\n\n\t\t\tglobal $bp;\n\n\t\t\t// Check if user should be excluded\n\t\t\tif ( $this->core->exclude_user( $bp->loggedin_user->id ) ) return;\n\n\t\t\t// Execute\n\t\t\t$this->core->add_creds(\n\t\t\t\t'creation_of_new_group',\n\t\t\t\t$bp->loggedin_user->id,\n\t\t\t\t$this->prefs['create']['creds'],\n\t\t\t\t$this->prefs['create']['log'],\n\t\t\t\t$group_id,\n\t\t\t\t'bp_group',\n\t\t\t\t$this->mycred_type\n\t\t\t);\n\n\t\t}\n\n\t\t/**\n\t\t * Restrict Group Creation\n\t\t * If creating a group costs and the user does not have enough points, we restrict creations.\n\t\t * @since 0.1\n\t\t * @version 1.0\n\t\t */\n\t\tpublic function restrict_group_creation( $can_create, $restricted ) {\n\n\t\t\tglobal $bp;\n\n\t\t\t// Check if user should be excluded\n\t\t\tif ( $this->core->exclude_user( $bp->loggedin_user->id ) ) return $can_create;\n\n\t\t\t// Check if user has enough to create a group\n\t\t\t$cost = abs( $this->prefs['create']['creds'] );\n\t\t\t$balance = $this->core->get_users_balance( $bp->loggedin_user->id, $this->mycred_type );\n\t\t\tif ( $cost > $balance ) return false;\n\n\t\t\treturn $can_create;\n\n\t\t}\n\n\t\t/**\n\t\t * Restrict Group Join\n\t\t * If joining a group costs and the user does not have enough points, we restrict joining of groups.\n\t\t * @since 0.1\n\t\t * @version 1.0\n\t\t */\n\t\tpublic function restrict_joining_group( $button ) {\n\n\t\t\tglobal $bp;\n\n\t\t\t// Check if user should be excluded\n\t\t\tif ( $this->core->exclude_user( $bp->loggedin_user->id ) ) return $button;\n\n\t\t\t// Check if user has enough to join group\n\t\t\t$cost = abs( $this->prefs['join']['creds'] );\n\t\t\t$balance = $this->core->get_users_balance( $bp->loggedin_user->id, $this->mycred_type );\n\t\t\tif ( $cost > $balance ) return false;\n\n\t\t\treturn $button;\n\n\t\t}\n\n\t\t/**\n\t\t * Deleting Group\n\t\t * @since 0.1\n\t\t * @version 1.0\n\t\t */\n\t\tpublic function delete_group( $group_id ) {\n\n\t\t\tglobal $bp;\n\n\t\t\t// If admin is removing deduct from creator\n\t\t\tif ( $bp->loggedin_user->is_super_admin )\n\t\t\t\t$user_id = $bp->groups->current_group->creator_id;\n\n\t\t\t// Else if admin but not the creator is removing\n\t\t\telseif ( $bp->loggedin_user->id != $bp->groups->current_group->creator_id )\n\t\t\t\t$user_id = $bp->groups->current_group->creator_id;\n\n\t\t\t// Else deduct from current user\n\t\t\telse\n\t\t\t\t$user_id = $bp->loggedin_user->id;\n\n\t\t\t// Check if user should be excluded\n\t\t\tif ( $this->core->exclude_user( $user_id ) ) return;\n\n\t\t\t// Execute\n\t\t\t$this->core->add_creds(\n\t\t\t\t'deletion_of_group',\n\t\t\t\t$user_id,\n\t\t\t\t$this->prefs['delete']['creds'],\n\t\t\t\t$this->prefs['delete']['log'],\n\t\t\t\t$group_id,\n\t\t\t\t'bp_group',\n\t\t\t\t$this->mycred_type\n\t\t\t);\n\n\t\t}\n\n\t\t/**\n\t\t * New Group Forum Topic\n\t\t * @since 0.1\n\t\t * @version 1.1\n\t\t */\n\t\tpublic function new_topic( $topic_id ) {\n\n\t\t\tglobal $bp;\n\n\t\t\t// Check if user should be excluded\n\t\t\tif ( $this->core->exclude_user( $bp->loggedin_user->id ) ) return;\n\n\t\t\t// Limit\n\t\t\tif ( $this->over_hook_limit( 'new_topic', 'new_group_forum_topic' ) ) return;\n\n\t\t\t// Make sure this is unique event\n\t\t\tif ( $this->core->has_entry( 'new_group_forum_topic', $topic_id, $bp->loggedin_user->id ) ) return;\n\n\t\t\t// Execute\n\t\t\t$this->core->add_creds(\n\t\t\t\t'new_group_forum_topic',\n\t\t\t\t$bp->loggedin_user->id,\n\t\t\t\t$this->prefs['new_topic']['creds'],\n\t\t\t\t$this->prefs['new_topic']['log'],\n\t\t\t\t$topic_id,\n\t\t\t\t'bp_ftopic',\n\t\t\t\t$this->mycred_type\n\t\t\t);\n\n\t\t}\n\n\t\t/**\n\t\t * Edit Group Forum Topic\n\t\t * @since 0.1\n\t\t * @version 1.0\n\t\t */\n\t\tpublic function edit_topic( $topic_id ) {\n\n\t\t\tglobal $bp;\n\n\t\t\t// Check if user should be excluded\n\t\t\tif ( $this->core->exclude_user( $bp->loggedin_user->id ) ) return;\n\n\t\t\t// Limit\n\t\t\tif ( $this->over_hook_limit( 'edit_topic', 'edit_group_forum_topic' ) ) return;\n\n\t\t\t// Execute\n\t\t\t$this->core->add_creds(\n\t\t\t\t'edit_group_forum_topic',\n\t\t\t\t$bp->loggedin_user->id,\n\t\t\t\t$this->prefs['edit_topic']['creds'],\n\t\t\t\t$this->prefs['edit_topic']['log'],\n\t\t\t\t$topic_id,\n\t\t\t\t'bp_ftopic',\n\t\t\t\t$this->mycred_type\n\t\t\t);\n\n\t\t}\n\n\t\t/**\n\t\t * New Group Forum Post\n\t\t * @since 0.1\n\t\t * @version 1.1\n\t\t */\n\t\tpublic function new_post( $post_id ) {\n\n\t\t\tglobal $bp;\n\n\t\t\t// Check if user should be excluded\n\t\t\tif ( $this->core->exclude_user( $bp->loggedin_user->id ) ) return;\n\n\t\t\t// Limit\n\t\t\tif ( $this->over_hook_limit( 'new_post', 'new_group_forum_post' ) ) return;\n\n\t\t\t// Make sure this is unique event\n\t\t\tif ( $this->core->has_entry( 'new_group_forum_post', $post_id, $bp->loggedin_user->id ) ) return;\n\n\t\t\t// Execute\n\t\t\t$this->core->add_creds(\n\t\t\t\t'new_group_forum_post',\n\t\t\t\t$bp->loggedin_user->id,\n\t\t\t\t$this->prefs['new_post']['creds'],\n\t\t\t\t$this->prefs['new_post']['log'],\n\t\t\t\t$post_id,\n\t\t\t\t'bp_fpost',\n\t\t\t\t$this->mycred_type\n\t\t\t);\n\n\t\t}\n\n\t\t/**\n\t\t * Edit Group Forum Post\n\t\t * @since 0.1\n\t\t * @version 1.0\n\t\t */\n\t\tpublic function edit_post( $post_id ) {\n\n\t\t\tglobal $bp;\n\n\t\t\t// Check if user should be excluded\n\t\t\tif ( $this->core->exclude_user( $bp->loggedin_user->id ) ) return;\n\n\t\t\t// Limit\n\t\t\tif ( $this->over_hook_limit( 'edit_post', 'edit_group_forum_post' ) ) return;\n\n\t\t\t// Execute\n\t\t\t$this->core->add_creds(\n\t\t\t\t'edit_group_forum_post',\n\t\t\t\t$bp->loggedin_user->id,\n\t\t\t\t$this->prefs['edit_post']['creds'],\n\t\t\t\t$this->prefs['edit_post']['log'],\n\t\t\t\t$post_id,\n\t\t\t\t'bp_fpost',\n\t\t\t\t$this->mycred_type\n\t\t\t);\n\n\t\t}\n\n\t\t/**\n\t\t * Joining Group\n\t\t * @since 0.1\n\t\t * @version 1.1\n\t\t */\n\t\tpublic function join_group( $group_id, $user_id ) {\n\n\t\t\t// Minimum members limit\n\t\t\tif ( $this->prefs['create']['min'] != 0 ) {\n\t\t\t\t$group = groups_get_group( array( 'group_id' => $group_id ) );\n\n\t\t\t\t// Award creator if we have reached the minimum number of members and we have not yet been awarded\n\t\t\t\tif ( $group->total_member_count >= (int) $this->prefs['create']['min'] && ! $this->core->has_entry( 'creation_of_new_group', $group_id, $group->creator_id ) )\n\t\t\t\t\t$this->core->add_creds(\n\t\t\t\t\t\t'creation_of_new_group',\n\t\t\t\t\t\t$group->creator_id,\n\t\t\t\t\t\t$this->prefs['create']['creds'],\n\t\t\t\t\t\t$this->prefs['create']['log'],\n\t\t\t\t\t\t$group_id,\n\t\t\t\t\t\t'bp_group',\n\t\t\t\t\t\t$this->mycred_type\n\t\t\t\t\t);\n\n\t\t\t\t// Clean up\n\t\t\t\tunset( $group );\n\n\t\t\t}\n\n\t\t\t// Check if user should be excluded\n\t\t\tif ( $this->core->exclude_user( $user_id ) ) return;\n\n\t\t\t// Limit\n\t\t\tif ( $this->over_hook_limit( 'join', 'joining_group' ) ) return;\n\n\t\t\t// Make sure this is unique event\n\t\t\tif ( $this->core->has_entry( 'joining_group', $group_id, $user_id ) ) return;\n\n\t\t\t// Execute\n\t\t\t$this->core->add_creds(\n\t\t\t\t'joining_group',\n\t\t\t\t$user_id,\n\t\t\t\t$this->prefs['join']['creds'],\n\t\t\t\t$this->prefs['join']['log'],\n\t\t\t\t$group_id,\n\t\t\t\t'bp_group',\n\t\t\t\t$this->mycred_type\n\t\t\t\t);\n\n\t\t}\n\n\t\t/**\n\t\t * Leaving Group\n\t\t * @since 0.1\n\t\t * @version 1.0\n\t\t */\n\t\tpublic function leave_group( $group_id, $user_id ) {\n\n\t\t\t// Check if user should be excluded\n\t\t\tif ( $this->core->exclude_user( $user_id ) ) return;\n\n\t\t\t// Make sure this is unique event\n\t\t\tif ( $this->core->has_entry( 'leaving_group', $group_id, $user_id ) ) return;\n\n\t\t\t// Execute\n\t\t\t$this->core->add_creds(\n\t\t\t\t'leaving_group',\n\t\t\t\t$user_id,\n\t\t\t\t$this->prefs['leave']['creds'],\n\t\t\t\t$this->prefs['leave']['log'],\n\t\t\t\t$group_id,\n\t\t\t\t\t'bp_group',\n\t\t\t\t$this->mycred_type\n\t\t\t);\n\n\t\t}\n\n\t\t/**\n\t\t * Avatar Upload for Group\n\t\t * @since 0.1\n\t\t * @version 1.1\n\t\t */\n\t\tpublic function avatar_upload_group( $group_id ) {\n\n\t\t\tglobal $bp;\n\n\t\t\t// Check if user should be excluded\n\t\t\tif ( $this->core->exclude_user( $bp->loggedin_user->id ) ) return;\n\n\t\t\t// Limit\n\t\t\tif ( $this->over_hook_limit( 'avatar', 'upload_group_avatar' ) ) return;\n\n\t\t\t// Make sure this is unique event\n\t\t\tif ( $this->core->has_entry( 'upload_group_avatar', $group_id ) ) return;\n\n\t\t\t// Execute\n\t\t\t$this->core->add_creds(\n\t\t\t\t'upload_group_avatar',\n\t\t\t\t$bp->loggedin_user->id,\n\t\t\t\t$this->prefs['avatar']['creds'],\n\t\t\t\t$this->prefs['avatar']['log'],\n\t\t\t\t$group_id,\n\t\t\t\t'bp_group',\n\t\t\t\t$this->mycred_type\n\t\t\t);\n\n\t\t}\n\n\t\t/**\n\t\t * Group Cover Upload\n\t\t * @since 1.7\n\t\t * @version 1.0\n\t\t */\n\t\tpublic function cover_change( $group_id ) {\n\n\t\t\tglobal $bp;\n\n\t\t\t// Check if user is excluded\n\t\t\tif ( $this->core->exclude_user( $bp->loggedin_user->id ) ) return;\n\n\t\t\t// Limit\n\t\t\tif ( $this->over_hook_limit( 'cover', 'upload_group_cover', $bp->loggedin_user->id ) ) return;\n\n\t\t\t// Execute\n\t\t\t$this->core->add_creds(\n\t\t\t\t'upload_group_cover',\n\t\t\t\t$bp->loggedin_user->id,\n\t\t\t\t$this->prefs['cover']['creds'],\n\t\t\t\t$this->prefs['cover']['log'],\n\t\t\t\t$group_id,\n\t\t\t\t'bp_group',\n\t\t\t\t$this->mycred_type\n\t\t\t);\n\n\t\t}\n\n\t\t/**\n\t\t * New Group Comment\n\t\t * @since 0.1\n\t\t * @version 1.1\n\t\t */\n\t\tpublic function new_group_comment( $content, $user_id, $group_id, $activity_id ) {\n\n\t\t\t// Check if user should be excluded\n\t\t\tif ( $this->core->exclude_user( $user_id ) ) return;\n\n\t\t\t// Limit\n\t\t\tif ( $this->over_hook_limit( 'comments', 'new_group_comment', $user_id ) ) return;\n\n\t\t\t// Make sure this is unique event\n\t\t\tif ( $this->core->has_entry( 'new_group_comment', $activity_id, $user_id ) ) return;\n\n\t\t\t// Execute\n\t\t\t$this->core->add_creds(\n\t\t\t\t'new_group_comment',\n\t\t\t\t$user_id,\n\t\t\t\t$this->prefs['comments']['creds'],\n\t\t\t\t$this->prefs['comments']['log'],\n\t\t\t\t$activity_id,\n\t\t\t\t'bp_activity',\n\t\t\t\t$this->mycred_type\n\t\t\t);\n\n\t\t}\n\n\t\t/**\n\t\t * Preferences\n\t\t * @since 0.1\n\t\t * @version 1.3\n\t\t */\n\t\tpublic function preferences() {\n\n\t\t\t$prefs = $this->prefs;\n\n?>\n<div class=\"hook-instance\">\n\t<h3><?php _e( 'Group Creation', 'twodayssss' ); ?></h3>\n\t<div class=\"row\">\n\t\t<div class=\"col-lg-3 col-md-6 col-sm-12 col-xs-12\">\n\t\t\t<div class=\"form-group\">\n\t\t\t\t<label for=\"<?php echo $this->field_id( array( 'create', 'creds' ) ); ?>\"><?php echo $this->core->plural(); ?></label>\n\t\t\t\t<input type=\"text\" name=\"<?php echo $this->field_name( array( 'create', 'creds' ) ); ?>\" id=\"<?php echo $this->field_id( array( 'create', 'creds' ) ); ?>\" value=\"<?php echo $this->core->number( $prefs['create']['creds'] ); ?>\" class=\"form-control\" />\n\t\t\t\t<span class=\"description\"><?php echo $this->core->template_tags_general( __( 'If you use a negative value and the user does not have enough %_plural%, the \"Create Group\" button will be disabled.', 'twodayssss' ) ); ?></span>\n\t\t\t</div>\n\t\t</div>\n\t\t<div class=\"col-lg-3 col-md-6 col-sm-12 col-xs-12\">\n\t\t\t<div class=\"form-group\">\n\t\t\t\t<label for=\"<?php echo $this->field_id( array( 'create', 'min' ) ); ?>\"><?php _e( 'No. of Members', 'twodayssss' ); ?></label>\n\t\t\t\t<input type=\"text\" name=\"<?php echo $this->field_name( array( 'create', 'min' ) ); ?>\" id=\"<?php echo $this->field_id( array( 'create', 'min' ) ); ?>\" value=\"<?php echo esc_attr( $prefs['create']['min'] ); ?>\" class=\"form-control\" />\n\t\t\t\t<span class=\"description\"><?php echo $this->core->template_tags_general( __( 'The number of members a group must gain before awarding %_plural%. Use zero to award as soon as the group is created.', 'twodayssss' ) ); ?></span>\n\t\t\t</div>\n\t\t</div>\n\t\t<div class=\"col-lg-6 col-md-6 col-sm-12 col-xs-12\">\n\t\t\t<div class=\"form-group\">\n\t\t\t\t<label for=\"<?php echo $this->field_id( array( 'create', 'log' ) ); ?>\"><?php _e( 'Log template', 'twodayssss' ); ?></label>\n\t\t\t\t<input type=\"text\" name=\"<?php echo $this->field_name( array( 'create', 'log' ) ); ?>\" id=\"<?php echo $this->field_id( array( 'create', 'log' ) ); ?>\" placeholder=\"<?php _e( 'required', 'twodayssss' ); ?>\" value=\"<?php echo esc_attr( $prefs['create']['log'] ); ?>\" class=\"form-control\" />\n\t\t\t\t<span class=\"description\"><?php echo $this->available_template_tags( array( 'general' ) ); ?></span>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n<div class=\"hook-instance\">\n\t<h3><?php _e( 'Group Deletions', 'twodayssss' ); ?></h3>\n\t<div class=\"row\">\n\t\t<div class=\"col-lg-4 col-md-6 col-sm-12 col-xs-12\">\n\t\t\t<div class=\"form-group\">\n\t\t\t\t<label for=\"<?php echo $this->field_id( array( 'delete', 'creds' ) ); ?>\"><?php echo $this->core->plural(); ?></label>\n\t\t\t\t<input type=\"text\" name=\"<?php echo $this->field_name( array( 'delete', 'creds' ) ); ?>\" id=\"<?php echo $this->field_id( array( 'delete', 'creds' ) ); ?>\" value=\"<?php echo $this->core->number( $prefs['delete']['creds'] ); ?>\" class=\"form-control\" />\n\t\t\t</div>\n\t\t</div>\n\t\t<div class=\"col-lg-8 col-md-6 col-sm-12 col-xs-12\">\n\t\t\t<div class=\"form-group\">\n\t\t\t\t<label for=\"<?php echo $this->field_id( array( 'delete', 'log' ) ); ?>\"><?php _e( 'Log template', 'twodayssss' ); ?></label>\n\t\t\t\t<input type=\"text\" name=\"<?php echo $this->field_name( array( 'delete', 'log' ) ); ?>\" id=\"<?php echo $this->field_id( array( 'delete', 'log' ) ); ?>\" placeholder=\"<?php _e( 'required', 'twodayssss' ); ?>\" value=\"<?php echo esc_attr( $prefs['delete']['log'] ); ?>\" class=\"form-control\" />\n\t\t\t\t<span class=\"description\"><?php echo $this->available_template_tags( array( 'general' ) ); ?></span>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n<div class=\"hook-instance\">\n\t<h3><?php _e( 'New Group Avatar Upload', 'twodayssss' ); ?></h3>\n\t<div class=\"row\">\n\t\t<div class=\"col-lg-2 col-md-6 col-sm-12 col-xs-12\">\n\t\t\t<div class=\"form-group\">\n\t\t\t\t<label for=\"<?php echo $this->field_id( array( 'avatar', 'creds' ) ); ?>\"><?php echo $this->core->plural(); ?></label>\n\t\t\t\t<input type=\"text\" name=\"<?php echo $this->field_name( array( 'avatar', 'creds' ) ); ?>\" id=\"<?php echo $this->field_id( array( 'avatar', 'creds' ) ); ?>\" value=\"<?php echo $this->core->number( $prefs['avatar']['creds'] ); ?>\" class=\"form-control\" />\n\t\t\t</div>\n\t\t</div>\n\t\t<div class=\"col-lg-4 col-md-6 col-sm-12 col-xs-12\">\n\t\t\t<div class=\"form-group\">\n\t\t\t\t<label for=\"<?php echo $this->field_id( array( 'avatar', 'limit' ) ); ?>\"><?php _e( 'Limit', 'twodayssss' ); ?></label>\n\t\t\t\t<?php echo $this->hook_limit_setting( $this->field_name( array( 'avatar', 'limit' ) ), $this->field_id( array( 'avatar', 'limit' ) ), $prefs['avatar']['limit'] ); ?>\n\t\t\t</div>\n\t\t</div>\n\t\t<div class=\"col-lg-6 col-md-6 col-sm-12 col-xs-12\">\n\t\t\t<div class=\"form-group\">\n\t\t\t\t<label for=\"<?php echo $this->field_id( array( 'avatar', 'log' ) ); ?>\"><?php _e( 'Log template', 'twodayssss' ); ?></label>\n\t\t\t\t<input type=\"text\" name=\"<?php echo $this->field_name( array( 'avatar', 'log' ) ); ?>\" id=\"<?php echo $this->field_id( array( 'avatar', 'log' ) ); ?>\" placeholder=\"<?php _e( 'required', 'twodayssss' ); ?>\" value=\"<?php echo esc_attr( $prefs['avatar']['log'] ); ?>\" class=\"form-control\" />\n\t\t\t\t<span class=\"description\"><?php echo $this->available_template_tags( array( 'general' ) ); ?></span>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n<div class=\"hook-instance\">\n\t<h3><?php _e( 'New Group Cover Upload', 'twodayssss' ); ?></h3>\n\t<div class=\"row\">\n\t\t<div class=\"col-lg-2 col-md-6 col-sm-12 col-xs-12\">\n\t\t\t<div class=\"form-group\">\n\t\t\t\t<label for=\"<?php echo $this->field_id( array( 'cover', 'creds' ) ); ?>\"><?php echo $this->core->plural(); ?></label>\n\t\t\t\t<input type=\"text\" name=\"<?php echo $this->field_name( array( 'cover', 'creds' ) ); ?>\" id=\"<?php echo $this->field_id( array( 'cover', 'creds' ) ); ?>\" value=\"<?php echo $this->core->number( $prefs['cover']['creds'] ); ?>\" class=\"form-control\" />\n\t\t\t</div>\n\t\t</div>\n\t\t<div class=\"col-lg-4 col-md-6 col-sm-12 col-xs-12\">\n\t\t\t<div class=\"form-group\">\n\t\t\t\t<label for=\"<?php echo $this->field_id( array( 'cover', 'limit' ) ); ?>\"><?php _e( 'Limit', 'twodayssss' ); ?></label>\n\t\t\t\t<?php echo $this->hook_limit_setting( $this->field_name( array( 'cover', 'limit' ) ), $this->field_id( array( 'cover', 'limit' ) ), $prefs['cover']['limit'] ); ?>\n\t\t\t</div>\n\t\t</div>\n\t\t<div class=\"col-lg-6 col-md-6 col-sm-12 col-xs-12\">\n\t\t\t<div class=\"form-group\">\n\t\t\t\t<label for=\"<?php echo $this->field_id( array( 'cover', 'log' ) ); ?>\"><?php _e( 'Log template', 'twodayssss' ); ?></label>\n\t\t\t\t<input type=\"text\" name=\"<?php echo $this->field_name( array( 'cover', 'log' ) ); ?>\" id=\"<?php echo $this->field_id( array( 'cover', 'log' ) ); ?>\" placeholder=\"<?php _e( 'required', 'twodayssss' ); ?>\" value=\"<?php echo esc_attr( $prefs['cover']['log'] ); ?>\" class=\"form-control\" />\n\t\t\t\t<span class=\"description\"><?php echo $this->available_template_tags( array( 'general' ) ); ?></span>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n<div class=\"hook-instance\">\n\t<h3><?php _e( 'New Forum Topics', 'twodayssss' ); ?></h3>\n\t<div class=\"row\">\n\t\t<div class=\"col-lg-2 col-md-6 col-sm-12 col-xs-12\">\n\t\t\t<div class=\"form-group\">\n\t\t\t\t<label for=\"<?php echo $this->field_id( array( 'new_topic', 'creds' ) ); ?>\"><?php echo $this->core->plural(); ?></label>\n\t\t\t\t<input type=\"text\" name=\"<?php echo $this->field_name( array( 'new_topic', 'creds' ) ); ?>\" id=\"<?php echo $this->field_id( array( 'new_topic', 'creds' ) ); ?>\" value=\"<?php echo $this->core->number( $prefs['new_topic']['creds'] ); ?>\" class=\"form-control\" />\n\t\t\t</div>\n\t\t</div>\n\t\t<div class=\"col-lg-4 col-md-6 col-sm-12 col-xs-12\">\n\t\t\t<div class=\"form-group\">\n\t\t\t\t<label for=\"<?php echo $this->field_id( array( 'new_topic', 'limit' ) ); ?>\"><?php _e( 'Limit', 'twodayssss' ); ?></label>\n\t\t\t\t<?php echo $this->hook_limit_setting( $this->field_name( array( 'new_topic', 'limit' ) ), $this->field_id( array( 'new_topic', 'limit' ) ), $prefs['new_topic']['limit'] ); ?>\n\t\t\t</div>\n\t\t</div>\n\t\t<div class=\"col-lg-6 col-md-6 col-sm-12 col-xs-12\">\n\t\t\t<div class=\"form-group\">\n\t\t\t\t<label for=\"<?php echo $this->field_id( array( 'new_topic', 'log' ) ); ?>\"><?php _e( 'Log template', 'twodayssss' ); ?></label>\n\t\t\t\t<input type=\"text\" name=\"<?php echo $this->field_name( array( 'new_topic', 'log' ) ); ?>\" id=\"<?php echo $this->field_id( array( 'new_topic', 'log' ) ); ?>\" placeholder=\"<?php _e( 'required', 'twodayssss' ); ?>\" value=\"<?php echo esc_attr( $prefs['new_topic']['log'] ); ?>\" class=\"form-control\" />\n\t\t\t\t<span class=\"description\"><?php echo $this->available_template_tags( array( 'general' ) ); ?></span>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n<div class=\"hook-instance\">\n\t<h3><?php _e( 'Editing Forum Topics', 'twodayssss' ); ?></h3>\n\t<div class=\"row\">\n\t\t<div class=\"col-lg-2 col-md-6 col-sm-12 col-xs-12\">\n\t\t\t<div class=\"form-group\">\n\t\t\t\t<label for=\"<?php echo $this->field_id( array( 'edit_topic', 'creds' ) ); ?>\"><?php echo $this->core->plural(); ?></label>\n\t\t\t\t<input type=\"text\" name=\"<?php echo $this->field_name( array( 'edit_topic', 'creds' ) ); ?>\" id=\"<?php echo $this->field_id( array( 'edit_topic', 'creds' ) ); ?>\" value=\"<?php echo $this->core->number( $prefs['edit_topic']['creds'] ); ?>\" class=\"form-control\" />\n\t\t\t</div>\n\t\t</div>\n\t\t<div class=\"col-lg-4 col-md-6 col-sm-12 col-xs-12\">\n\t\t\t<div class=\"form-group\">\n\t\t\t\t<label for=\"<?php echo $this->field_id( array( 'edit_topic', 'limit' ) ); ?>\"><?php _e( 'Limit', 'twodayssss' ); ?></label>\n\t\t\t\t<?php echo $this->hook_limit_setting( $this->field_name( array( 'edit_topic', 'limit' ) ), $this->field_id( array( 'edit_topic', 'limit' ) ), $prefs['edit_topic']['limit'] ); ?>\n\t\t\t</div>\n\t\t</div>\n\t\t<div class=\"col-lg-6 col-md-6 col-sm-12 col-xs-12\">\n\t\t\t<div class=\"form-group\">\n\t\t\t\t<label for=\"<?php echo $this->field_id( array( 'edit_topic', 'log' ) ); ?>\"><?php _e( 'Log template', 'twodayssss' ); ?></label>\n\t\t\t\t<input type=\"text\" name=\"<?php echo $this->field_name( array( 'edit_topic', 'log' ) ); ?>\" id=\"<?php echo $this->field_id( array( 'edit_topic', 'log' ) ); ?>\" placeholder=\"<?php _e( 'required', 'twodayssss' ); ?>\" value=\"<?php echo esc_attr( $prefs['edit_topic']['log'] ); ?>\" class=\"form-control\" />\n\t\t\t\t<span class=\"description\"><?php echo $this->available_template_tags( array( 'general' ) ); ?></span>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n<div class=\"hook-instance\">\n\t<h3><?php _e( 'New Forum Posts', 'twodayssss' ); ?></h3>\n\t<div class=\"row\">\n\t\t<div class=\"col-lg-2 col-md-6 col-sm-12 col-xs-12\">\n\t\t\t<div class=\"form-group\">\n\t\t\t\t<label for=\"<?php echo $this->field_id( array( 'new_post', 'creds' ) ); ?>\"><?php echo $this->core->plural(); ?></label>\n\t\t\t\t<input type=\"text\" name=\"<?php echo $this->field_name( array( 'new_post', 'creds' ) ); ?>\" id=\"<?php echo $this->field_id( array( 'new_post', 'creds' ) ); ?>\" value=\"<?php echo $this->core->number( $prefs['new_post']['creds'] ); ?>\" class=\"form-control\" />\n\t\t\t</div>\n\t\t</div>\n\t\t<div class=\"col-lg-4 col-md-6 col-sm-12 col-xs-12\">\n\t\t\t<div class=\"form-group\">\n\t\t\t\t<label for=\"<?php echo $this->field_id( array( 'new_post', 'limit' ) ); ?>\"><?php _e( 'Limit', 'twodayssss' ); ?></label>\n\t\t\t\t<?php echo $this->hook_limit_setting( $this->field_name( array( 'new_post', 'limit' ) ), $this->field_id( array( 'new_post', 'limit' ) ), $prefs['new_post']['limit'] ); ?>\n\t\t\t</div>\n\t\t</div>\n\t\t<div class=\"col-lg-6 col-md-6 col-sm-12 col-xs-12\">\n\t\t\t<div class=\"form-group\">\n\t\t\t\t<label for=\"<?php echo $this->field_id( array( 'new_post', 'log' ) ); ?>\"><?php _e( 'Log template', 'twodayssss' ); ?></label>\n\t\t\t\t<input type=\"text\" name=\"<?php echo $this->field_name( array( 'new_post', 'log' ) ); ?>\" id=\"<?php echo $this->field_id( array( 'new_post', 'log' ) ); ?>\" placeholder=\"<?php _e( 'required', 'twodayssss' ); ?>\" value=\"<?php echo esc_attr( $prefs['new_post']['log'] ); ?>\" class=\"form-control\" />\n\t\t\t\t<span class=\"description\"><?php echo $this->available_template_tags( array( 'general' ) ); ?></span>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n<div class=\"hook-instance\">\n\t<h3><?php _e( 'Editing Forum Posts', 'twodayssss' ); ?></h3>\n\t<div class=\"row\">\n\t\t<div class=\"col-lg-2 col-md-6 col-sm-12 col-xs-12\">\n\t\t\t<div class=\"form-group\">\n\t\t\t\t<label for=\"<?php echo $this->field_id( array( 'edit_post', 'creds' ) ); ?>\"><?php echo $this->core->plural(); ?></label>\n\t\t\t\t<input type=\"text\" name=\"<?php echo $this->field_name( array( 'edit_post', 'creds' ) ); ?>\" id=\"<?php echo $this->field_id( array( 'edit_post', 'creds' ) ); ?>\" value=\"<?php echo $this->core->number( $prefs['edit_post']['creds'] ); ?>\" class=\"form-control\" />\n\t\t\t</div>\n\t\t</div>\n\t\t<div class=\"col-lg-4 col-md-6 col-sm-12 col-xs-12\">\n\t\t\t<div class=\"form-group\">\n\t\t\t\t<label for=\"<?php echo $this->field_id( array( 'edit_post', 'limit' ) ); ?>\"><?php _e( 'Limit', 'twodayssss' ); ?></label>\n\t\t\t\t<?php echo $this->hook_limit_setting( $this->field_name( array( 'edit_post', 'limit' ) ), $this->field_id( array( 'edit_post', 'limit' ) ), $prefs['edit_post']['limit'] ); ?>\n\t\t\t</div>\n\t\t</div>\n\t\t<div class=\"col-lg-6 col-md-6 col-sm-12 col-xs-12\">\n\t\t\t<div class=\"form-group\">\n\t\t\t\t<label for=\"<?php echo $this->field_id( array( 'edit_post', 'log' ) ); ?>\"><?php _e( 'Log template', 'twodayssss' ); ?></label>\n\t\t\t\t<input type=\"text\" name=\"<?php echo $this->field_name( array( 'edit_post', 'log' ) ); ?>\" id=\"<?php echo $this->field_id( array( 'edit_post', 'log' ) ); ?>\" placeholder=\"<?php _e( 'required', 'twodayssss' ); ?>\" value=\"<?php echo esc_attr( $prefs['edit_post']['log'] ); ?>\" class=\"form-control\" />\n\t\t\t\t<span class=\"description\"><?php echo $this->available_template_tags( array( 'general' ) ); ?></span>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n<div class=\"hook-instance\">\n\t<h3><?php _e( 'Joining Groups', 'twodayssss' ); ?></h3>\n\t<div class=\"row\">\n\t\t<div class=\"col-lg-2 col-md-6 col-sm-12 col-xs-12\">\n\t\t\t<div class=\"form-group\">\n\t\t\t\t<label for=\"<?php echo $this->field_id( array( 'join', 'creds' ) ); ?>\"><?php echo $this->core->plural(); ?></label>\n\t\t\t\t<input type=\"text\" name=\"<?php echo $this->field_name( array( 'join', 'creds' ) ); ?>\" id=\"<?php echo $this->field_id( array( 'join', 'creds' ) ); ?>\" value=\"<?php echo $this->core->number( $prefs['join']['creds'] ); ?>\" class=\"form-control\" />\n\t\t\t</div>\n\t\t</div>\n\t\t<div class=\"col-lg-4 col-md-6 col-sm-12 col-xs-12\">\n\t\t\t<div class=\"form-group\">\n\t\t\t\t<label for=\"<?php echo $this->field_id( array( 'join', 'limit' ) ); ?>\"><?php _e( 'Limit', 'twodayssss' ); ?></label>\n\t\t\t\t<?php echo $this->hook_limit_setting( $this->field_name( array( 'join', 'limit' ) ), $this->field_id( array( 'join', 'limit' ) ), $prefs['join']['limit'] ); ?>\n\t\t\t</div>\n\t\t</div>\n\t\t<div class=\"col-lg-6 col-md-6 col-sm-12 col-xs-12\">\n\t\t\t<div class=\"form-group\">\n\t\t\t\t<label for=\"<?php echo $this->field_id( array( 'join', 'log' ) ); ?>\"><?php _e( 'Log template', 'twodayssss' ); ?></label>\n\t\t\t\t<input type=\"text\" name=\"<?php echo $this->field_name( array( 'join', 'log' ) ); ?>\" id=\"<?php echo $this->field_id( array( 'join', 'log' ) ); ?>\" placeholder=\"<?php _e( 'required', 'twodayssss' ); ?>\" value=\"<?php echo esc_attr( $prefs['join']['log'] ); ?>\" class=\"form-control\" />\n\t\t\t\t<span class=\"description\"><?php echo $this->available_template_tags( array( 'general' ) ); ?></span>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n<div class=\"hook-instance\">\n\t<h3><?php _e( 'Leaving Groups', 'twodayssss' ); ?></h3>\n\t<div class=\"row\">\n\t\t<div class=\"col-lg-4 col-md-6 col-sm-12 col-xs-12\">\n\t\t\t<div class=\"form-group\">\n\t\t\t\t<label for=\"<?php echo $this->field_id( array( 'leave', 'creds' ) ); ?>\"><?php echo $this->core->plural(); ?></label>\n\t\t\t\t<input type=\"text\" name=\"<?php echo $this->field_name( array( 'leave', 'creds' ) ); ?>\" id=\"<?php echo $this->field_id( array( 'leave', 'creds' ) ); ?>\" value=\"<?php echo $this->core->number( $prefs['leave']['creds'] ); ?>\" class=\"form-control\" />\n\t\t\t</div>\n\t\t</div>\n\t\t<div class=\"col-lg-8 col-md-6 col-sm-12 col-xs-12\">\n\t\t\t<div class=\"form-group\">\n\t\t\t\t<label for=\"<?php echo $this->field_id( array( 'leave', 'log' ) ); ?>\"><?php _e( 'Log template', 'twodayssss' ); ?></label>\n\t\t\t\t<input type=\"text\" name=\"<?php echo $this->field_name( array( 'leave', 'log' ) ); ?>\" id=\"<?php echo $this->field_id( array( 'leave', 'log' ) ); ?>\" placeholder=\"<?php _e( 'required', 'twodayssss' ); ?>\" value=\"<?php echo esc_attr( $prefs['leave']['log'] ); ?>\" class=\"form-control\" />\n\t\t\t\t<span class=\"description\"><?php echo $this->available_template_tags( array( 'general' ) ); ?></span>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n<div class=\"hook-instance\">\n\t<h3><?php _e( 'New Group Comments', 'twodayssss' ); ?></h3>\n\t<div class=\"row\">\n\t\t<div class=\"col-lg-2 col-md-6 col-sm-12 col-xs-12\">\n\t\t\t<div class=\"form-group\">\n\t\t\t\t<label for=\"<?php echo $this->field_id( array( 'comments', 'creds' ) ); ?>\"><?php echo $this->core->plural(); ?></label>\n\t\t\t\t<input type=\"text\" name=\"<?php echo $this->field_name( array( 'comments', 'creds' ) ); ?>\" id=\"<?php echo $this->field_id( array( 'comments', 'creds' ) ); ?>\" value=\"<?php echo $this->core->number( $prefs['comments']['creds'] ); ?>\" class=\"form-control\" />\n\t\t\t</div>\n\t\t</div>\n\t\t<div class=\"col-lg-4 col-md-6 col-sm-12 col-xs-12\">\n\t\t\t<div class=\"form-group\">\n\t\t\t\t<label for=\"<?php echo $this->field_id( array( 'comments', 'limit' ) ); ?>\"><?php _e( 'Limit', 'twodayssss' ); ?></label>\n\t\t\t\t<?php echo $this->hook_limit_setting( $this->field_name( array( 'comments', 'limit' ) ), $this->field_id( array( 'comments', 'limit' ) ), $prefs['comments']['limit'] ); ?>\n\t\t\t</div>\n\t\t</div>\n\t\t<div class=\"col-lg-6 col-md-6 col-sm-12 col-xs-12\">\n\t\t\t<div class=\"form-group\">\n\t\t\t\t<label for=\"<?php echo $this->field_id( array( 'comments', 'log' ) ); ?>\"><?php _e( 'Log template', 'twodayssss' ); ?></label>\n\t\t\t\t<input type=\"text\" name=\"<?php echo $this->field_name( array( 'comments', 'log' ) ); ?>\" id=\"<?php echo $this->field_id( array( 'comments', 'log' ) ); ?>\" placeholder=\"<?php _e( 'required', 'twodayssss' ); ?>\" value=\"<?php echo esc_attr( $prefs['comments']['log'] ); ?>\" class=\"form-control\" />\n\t\t\t\t<span class=\"description\"><?php echo $this->available_template_tags( array( 'general' ) ); ?></span>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n<?php\n\n\t\t}\n\n\t\t/**\n\t\t * Sanitise Preferences\n\t\t * @since 1.6\n\t\t * @version 1.1\n\t\t */\n\t\tpublic function sanitise_preferences( $data ) {\n\n\t\t\tif ( isset( $data['new_topic']['limit'] ) && isset( $data['new_topic']['limit_by'] ) ) {\n\t\t\t\t$limit = sanitize_text_field( $data['new_topic']['limit'] );\n\t\t\t\tif ( $limit == '' ) $limit = 0;\n\t\t\t\t$data['new_topic']['limit'] = $limit . '/' . $data['new_topic']['limit_by'];\n\t\t\t\tunset( $data['new_topic']['limit_by'] );\n\t\t\t}\n\n\t\t\tif ( isset( $data['edit_topic']['limit'] ) && isset( $data['edit_topic']['limit_by'] ) ) {\n\t\t\t\t$limit = sanitize_text_field( $data['edit_topic']['limit'] );\n\t\t\t\tif ( $limit == '' ) $limit = 0;\n\t\t\t\t$data['edit_topic']['limit'] = $limit . '/' . $data['edit_topic']['limit_by'];\n\t\t\t\tunset( $data['edit_topic']['limit_by'] );\n\t\t\t}\n\n\t\t\tif ( isset( $data['new_post']['limit'] ) && isset( $data['new_post']['limit_by'] ) ) {\n\t\t\t\t$limit = sanitize_text_field( $data['new_post']['limit'] );\n\t\t\t\tif ( $limit == '' ) $limit = 0;\n\t\t\t\t$data['new_post']['limit'] = $limit . '/' . $data['new_post']['limit_by'];\n\t\t\t\tunset( $data['new_post']['limit_by'] );\n\t\t\t}\n\n\t\t\tif ( isset( $data['edit_post']['limit'] ) && isset( $data['edit_post']['limit_by'] ) ) {\n\t\t\t\t$limit = sanitize_text_field( $data['edit_post']['limit'] );\n\t\t\t\tif ( $limit == '' ) $limit = 0;\n\t\t\t\t$data['edit_post']['limit'] = $limit . '/' . $data['edit_post']['limit_by'];\n\t\t\t\tunset( $data['edit_post']['limit_by'] );\n\t\t\t}\n\n\t\t\tif ( isset( $data['join']['limit'] ) && isset( $data['join']['limit_by'] ) ) {\n\t\t\t\t$limit = sanitize_text_field( $data['join']['limit'] );\n\t\t\t\tif ( $limit == '' ) $limit = 0;\n\t\t\t\t$data['join']['limit'] = $limit . '/' . $data['join']['limit_by'];\n\t\t\t\tunset( $data['join']['limit_by'] );\n\t\t\t}\n\n\t\t\tif ( isset( $data['avatar']['limit'] ) && isset( $data['avatar']['limit_by'] ) ) {\n\t\t\t\t$limit = sanitize_text_field( $data['avatar']['limit'] );\n\t\t\t\tif ( $limit == '' ) $limit = 0;\n\t\t\t\t$data['avatar']['limit'] = $limit . '/' . $data['avatar']['limit_by'];\n\t\t\t\tunset( $data['avatar']['limit_by'] );\n\t\t\t}\n\n\t\t\tif ( isset( $data['cover']['limit'] ) && isset( $data['cover']['limit_by'] ) ) {\n\t\t\t\t$limit = sanitize_text_field( $data['cover']['limit'] );\n\t\t\t\tif ( $limit == '' ) $limit = 0;\n\t\t\t\t$data['cover']['limit'] = $limit . '/' . $data['cover']['limit_by'];\n\t\t\t\tunset( $data['cover']['limit_by'] );\n\t\t\t}\n\n\t\t\tif ( isset( $data['comments']['limit'] ) && isset( $data['comments']['limit_by'] ) ) {\n\t\t\t\t$limit = sanitize_text_field( $data['comments']['limit'] );\n\t\t\t\tif ( $limit == '' ) $limit = 0;\n\t\t\t\t$data['comments']['limit'] = $limit . '/' . $data['comments']['limit_by'];\n\t\t\t\tunset( $data['comments']['limit_by'] );\n\t\t\t}\n\n\t\t\treturn $data;\n\n\t\t}\n\n\t}\n\n}", "function adrotate_manage_group() {\n\tglobal $wpdb, $adrotate_config, $adrotate_debug;\n\n\t$status = $view = $group_edit_id = '';\n\tif(isset($_GET['status'])) $status = esc_attr($_GET['status']);\n\tif(isset($_GET['view'])) $view = esc_attr($_GET['view']);\n\tif(isset($_GET['group'])) $group_edit_id = esc_attr($_GET['group']);\n\n\tif(isset($_GET['month']) AND isset($_GET['year'])) {\n\t\t$month = esc_attr($_GET['month']);\n\t\t$year = esc_attr($_GET['year']);\n\t} else {\n\t\t$month = date(\"m\");\n\t\t$year = date(\"Y\");\n\t}\n\t$monthstart = mktime(0, 0, 0, $month, 1, $year);\n\t$monthend = mktime(0, 0, 0, $month+1, 0, $year);\t\n\n\t$now \t\t\t= adrotate_now();\n\t$today \t\t\t= adrotate_date_start('day');\n\t$in2days \t\t= $now + 172800;\n\t$in7days \t\t= $now + 604800;\n\t?>\n\t<div class=\"wrap\">\n\t\t<h1><?php _e('Groups', 'adrotate-pro'); ?></h1>\n\n\t\t<?php if($status > 0) adrotate_status($status); ?>\n\n\t\t<div class=\"tablenav\">\n\t\t\t<div class=\"alignleft actions\">\n\t\t\t\t<a class=\"row-title\" href=\"<?php echo admin_url('/admin.php?page=adrotate-groups');?>\"><?php _e('Manage', 'adrotate-pro'); ?></a> | \n\t\t\t\t<a class=\"row-title\" href=\"<?php echo admin_url('/admin.php?page=adrotate-groups&view=addnew');?>\"><?php _e('Add New', 'adrotate-pro'); ?></a>\n\t\t\t</div>\n\t\t</div>\n\n \t<?php\n\t if ($view == \"\") {\n\t\t\tinclude(\"dashboard/publisher/groups-main.php\");\n\t \t} else if($view == \"addnew\" OR $view == \"edit\") {\n\t\t\tinclude(\"dashboard/publisher/groups-edit.php\");\n\t \t}\n\t \t?>\n\t\t<br class=\"clear\" />\n\n\t\t<?php echo adrotate_trademark(); ?>\n\n\t</div>\n<?php\n}", "public function group(string $group);", "function groupControl() {\n $arrFunctions = array(\n 'row_up' => '$intKey-1',\n 'row_down' => '$intKey+1',\n 'row_turndown' => 'intGroups',\n 'row_turnup' => '1',\n 'row_remove' => '[$intGroups]',\n 'rule_remove' => \"[$intKey]['rule'][$grplength-1]\",\n );\n foreach($this->arrTableParameters['grps'] as $intGroup => $arrGroup) {\n foreach ($arrGroup['rule'] as $intRule => $arrRule) {\n $arrRule['field'] = stripslashes($arrRule['field']);\n if ($arrRule['field'] == $this->extKey.'_new') {\n if ($intRule==0) {\n unset($this->arrTableParameters['grps'][$intGroup]);\n } else {\n unset($this->arrTableParameters['grps'][$intGroup]['rule'][$intRule]);\n }\n }\n }\n }\n $intGroups = count($this->arrTableParameters['grps']);\n foreach ($arrFunctions as $strKey => $strValue) {\n if (is_array($this->arrTableParameters[$strKey])) {\n $intKey = key($this->arrTableParameters[$strKey]);\n if (is_array($this->arrTableParameters['rule_remove'])) {\n \t$intRule = key($this->arrTableParameters['rule_remove'][$intKey]);\n }\n if ($strKey!='row_turndown') {\n $arrTemp = $this->arrTableParameters['grps'][$intKey];\n } else {\n $arrTemp = $this->arrTableParameters['grps'][1];\n }\n if ($strKey=='row_up') {\n $this->arrTableParameters['grps'][$intKey] = $this->arrTableParameters['grps'][$intKey-1];\n } elseif ($strKey=='row_down') {\n $this->arrTableParameters['grps'][$intKey] = $this->arrTableParameters['grps'][$intKey+1];\n } elseif ($strKey=='row_turndown') {\n for ($intCounter=2;$intCounter<=$intGroups;$intCounter++) {\n $this->arrTableParameters['grps'][$intCounter-1] = $this->arrTableParameters['grps'][$intCounter];\n }\n } elseif ($strKey=='row_turnup') {\n for ($intCounter=$intGroups;$intCounter>1;$intCounter--) {\n $this->arrTableParameters['grps'][$intCounter] = $this->arrTableParameters['grps'][$intCounter-1];\n }\n } elseif ($strKey=='row_remove') {\n for ($intCounter=$intKey;$intCounter<=$intGroups;$intCounter++) {\n $this->arrTableParameters['grps'][$intCounter] = $this->arrTableParameters['grps'][$intCounter+1];\n }\n } elseif ($strKey=='rule_remove') {\n if (count($this->arrTableParameters['grps'][$intKey]['rule'])>1) {\n for ($intCounter=$intRule;$intCounter<count($this->arrTableParameters['grps'][$intKey]['rule']);$intCounter++) {\n $this->arrTableParameters['grps'][$intKey]['rule'][$intCounter] = $this->arrTableParameters['grps'][$intKey]['rule'][$intCounter+1];\n }\n }\n }\n if (in_array($strKey,array('row_up','row_down','row_turndown','row_turnup'))) {\n eval(\"\\$this->arrTableParameters['grps'][\".$strValue.\"] = \\$arrTemp;\");\n } elseif ($strKey=='row_remove') {\n unset($this->arrTableParameters['grps'][$intGroups]);\n } else {\n \tunset($this->arrTableParameters['grps'][$intKey]['rule'][count($this->arrTableParameters['grps'][$intKey]['rule'])-1]);\n }\n }\n }\n }", "function object_cache_add_global_groups( $groups ) {\n\tglobal $ts_object_cache;\n\n\treturn $ts_object_cache->add_global_groups($groups);\n}", "protected function getGroupsFromShortcuts() {}", "public function getGroupsList(){\n return $this->_get(1);\n }", "public function Group($field,$group){\n $this->_groups[$field] = array_merge($group,array(\"currentGroup\" => \"?\", \"currentMsg\" => \"\"));\n }", "function mGROUP(){\n try {\n $_type = Erfurt_Sparql_Parser_Sparql11_Update_Tokenizer11::$GROUP;\n $_channel = Erfurt_Sparql_Parser_Sparql11_Update_Tokenizer11::$DEFAULT_TOKEN_CHANNEL;\n // Tokenizer11.g:166:3: ( 'group' ) \n // Tokenizer11.g:167:3: 'group' \n {\n $this->matchString(\"group\"); \n\n\n }\n\n $this->state->type = $_type;\n $this->state->channel = $_channel;\n }\n catch(Exception $e){\n throw $e;\n }\n }", "function runGroup(Chat $chat, TelegramMessage $message)\n {\n }", "function friendGroupHandler() {\n global $inputs;\n\n insert('member_group_apply',[\n 'member_id' => getLogin()['mid'],\n 'group_id' => $inputs['id']\n ]);\n\n formatOutput(true, 'apply success');\n}", "function acf_get_local_field_group($key = '')\n{\n}", "function acf_get_raw_field_group($id = 0)\n{\n}", "function gtags_group_tags() {\n\techo gtags_get_group_tags();\n}", "function au_subgroups_groups_router($hook, $type, $return, $params) {\n au_subgroups_breadcrumb_override($return);\n \n // subgroup options\n if ($return['segments'][0] == 'subgroups') {\n\telgg_load_library('elgg:groups');\n\t$group = get_entity($return['segments'][2]);\n\tif (!elgg_instanceof($group, 'group') || (($group->subgroups_enable == 'no') && ($return['segments'][1] != \"delete\"))) {\n\t return $return;\n\t}\n\t\n\telgg_set_context('groups');\n elgg_set_page_owner_guid($group->guid);\n \n switch ($return['segments'][1]) {\n case 'add':\n set_input('au_subgroup', true);\n set_input('au_subgroup_parent_guid', $group->guid);\n if (include(elgg_get_plugins_path() . 'au_subgroups/pages/add.php')) {\n return true;\n }\n break;\n \n case 'delete':\n if (include(elgg_get_plugins_path() . 'au_subgroups/pages/delete.php')) {\n return true;\n }\n break;\n\t\t\n\t case 'list':\n\t\tif (include(elgg_get_plugins_path() . 'au_subgroups/pages/list.php')) {\n\t\t return true;\n\t\t}\n\t\tbreak;\n }\n }\n \n // need to redo closed/open tabs provided by group_tools - if it's installed\n if ($return['segments'][0] == 'all' && elgg_is_active_plugin('group_tools')) {\n $filter = get_input('filter', false);\n \n if(empty($filter) && ($default_filter = elgg_get_plugin_setting(\"group_listing\", \"group_tools\"))){\n\t\t\t$filter = $default_filter;\n\t\t\tset_input(\"filter\", $default_filter);\n\t\t}\n \n if(in_array($filter, array(\"open\", \"closed\", \"alpha\"))){\n au_subgroups_handle_openclosed_tabs();\n return true;\n\t\t}\n }\n}", "function validate_field_group($field_group)\n {\n }", "public function groupAction(){\n $group_DB = new Application_Model_DbTable_Group();\n \n $group_id = $this->_request->getParam('g');\n $target_id = $this->_request->getParam('t');\n $game_id = $this->_request->getParam('gm');\n \n //Return After Planining\n if( $group_id && $target_id ){\n $group = $group_DB->get( $group_id );\n $this->view->group = $group;\n $this->view->group_id = $group_id;\n $this->view->target_id = $target_id;\n $this->view->game_id = $game_id;\n }\n else if( $group_id ){\n $group = $group_DB->get( $group_id );\n $this->view->group_id = $group_id;\n $this->view->group = $group;\n }\n $comments_DB = new Application_Model_DbTable_Comments();\n if (!isset($_SESSION['Default']['field'])) {\n $this->view->comments = \"\";\n $this->view->field_error = true;\n } else {\n $last_comment = $comments_DB->getLast($group_id, $_SESSION['Default']['field']);\n $this->view->comments = $last_comment['text'];\n }\n }", "function gtags_show_groups_for_tag( $groups ) {\n\tglobal $bp, $groups_template, $gtags_done;\n\n\t/*echo '<pre>ajax_querystring: '; print_r( $bp->ajax_querystring ); echo '</pre>';\n\techo '<pre>current_action: '; print_r( $bp->current_action ); echo '</pre>';\n\techo '<pre>POST: '; print_r( $_POST ); echo '</pre>';*/\n\t\n\tif ( isset( $_POST['action'] ) && $_POST['action'] == 'groups_filter' || isset( $_POST['groups_search_submit'] ) /* && $_POST['groups_search_submit'] == 'Search' */ || $gtags_done )\n\t\treturn $groups;\n\t\t\t\n\tif ( isset( $_POST['tag'] ) && $_POST['tag'] )\n\t\t$tag = urldecode( $_POST['tag'] ); // this is what ajax sends if we are in group directory\n\telse if ( $bp->current_action == 'tag' )\n\t\t$tag = urldecode( $bp->action_variables[0] ); // this is for the widget from all other places\n\t\t\t\n\tif ( isset( $tag ) && $tag ) {\n\t\t$gtags_groups = gtags_get_groups_by_tag( null, null, false, false, $tag );\n\t\t$groups_template->groups = $gtags_groups['groups'];\n\t\t// turn off pagination \n\t\t$groups_template->group_count = $gtags_groups['total'];\n\t\t$groups_template->total_group_count = $gtags_groups['total'];\n\t\t$groups_template->pag_num = $gtags_groups['total'];\n\t\t$groups_template->pag_page = 1;\n\t\t$groups_template->pag_links = '';\n\t\t$groups = $gtags_groups;\n\t}\n\n\t//echo '<br><pre> : '; print_r( $groups ); echo '</pre>';\n\t//echo '<pre>'; print_r( $bp->current_action ); echo '</pre>';\n\t//echo '<pre>'; print_r( $bp->action_variables[0] ); echo '</pre>';\n\t\n\t$gtags_done = false; // only run it once, so that the widgets function shows normal groups, not tags.\n\treturn $groups;\n}", "function _get_group_tags($group=NULL)\n{\n\t$group_tags=array(\n\t\t'dynamic_front_end'=>array('overlay','random','pulse','ticker','shocker','jumping','sections','big_tabs','tabs','carousel','hide','tooltip'),\n\t\t'dynamic_back_end'=>array('currency','if_in_group'),\n\t\t'structure'=>array('title','contents','include','concepts','concept','staff_note','menu','surround'),\n\t\t'formatting'=>array('list','indent','ins','del','b','u','i','s','sup','sub','size','color','highlight','font','align','left','center','right','abbr','box','quote'),\n\t\t'semantic'=>array('cite','samp','q','var','dfn','address'),\n\t\t'display_code'=>array('php','codebox','sql','code','tt','no_parse'),\n\t\t'execute_code'=>array('semihtml','html'),\n\t\t'media'=>array('flash','img'/*Over complex,'upload','exp_thumb','exp_ref'*/,'thumb'),\n\t\t'linking'=>array('url','email','reference','page','snapback','post','topic')\n\t);\n\n\tif (addon_installed('filedump')) $group_tags['media'][]='attachment';\n\n\t// Non-categorised ones\n\t$all_tags=_get_details_comcode_tags();\n\t$not_found=array();\n\tforeach (array_keys($all_tags[0]+$all_tags[1]) as $tag)\n\t{\n\t\tif (in_array($tag,array('exp_thumb','exp_ref','upload','attachment'))) continue; // Explicitly don't want to allow these (attachment will already be listed if allowed)\n\t\tforeach ($group_tags as $_group)\n\t\t{\n\t\t\tif (in_array($tag,$_group))\n\t\t\t{\n\t\t\t\tcontinue 2;\n\t\t\t}\n\t\t}\n\t\t$not_found[]=$tag;\n\t}\n\t$group_tags['CUSTOM']=$not_found;\n\n\tif ($group!==NULL && array_key_exists($group,$group_tags))\n\t\treturn $group_tags[$group];\n\n\treturn $group_tags;\n}", "public function getGroup()\n {\n $this->getParam('group');\n }", "function _get_user_groups(){\r\n $groups = array();\r\n for($i=0; $i<get_sso_option('rules_number'); $i++){\r\n $rule = _get_rule($i);\r\n if($rule != FALSE){\r\n\t $is_group = _run_rule($rule['var'], $rule['regexp'], $rule['group']);\r\n\t if($is_group === TRUE) $groups[] = $rule['group'];\r\n }\r\n }\r\n return $groups;\r\n}", "public function getAllGroups();", "public static function getGroups(): array\n {\n return ['test'];\n }", "function acf_get_raw_field_groups()\n{\n}", "private function parseGroups()\n\t{\n\t\t/**\n\t\t * Grupos\n\t\t */\n\t\t$groups = $this->habbo->groups;\n\n\t\t/**\n\t\t * Convertirlos a Entity\n\t\t */\n\t\tforeach( $groups as $group )\n\t\t\t$this->addGroup( new Group( $group ) );\n\t}", "function &group_list($start=NULL, $limit=NULL, $direction=0, $where=NULL)\n\n {\n\n global $database, $user;\n\n \n\n\t $message_array = array();\n\n \n\n\t // MAKE SURE MESSAGES ARE ALLOWED\n\n\t \n\n \n\n // BEGIN MESSAGE QUERY\n\n $sql = \"\n\n SELECT\n\n *\n\n FROM\n\n se_groups\n\n WHERE\n\n owner='{$user->user_info['user_username']}'\n\n \";\n\n // EXECUTE QUERY\n\n $resource = $database->database_query($sql);\n\n \n\n // GET MESSAGES\n\n\t while( $message_info=$database->database_fetch_assoc($resource) )\n\n {\n\n // CREATE AN OBJECT FOR MESSAGE AUTHOR/RECIPIENT\n\n $pm_user = new SEUser();\n\n $pm_user->user_info['id'] = $message_info['id'];\n\n $pm_user->user_info['grup'] = $message_info['grup'];\n\n $pm_user->user_info['owner'] = $message_info['owner'];\n\n $pm_user->user_displayname();\n\n \n\n // Remove breaks for preview\n\n $message_info['pm_body'] = str_replace(\"<br>\", \"\", $message_info['pm_body']);\n\n \n\n // SET MESSAGE ARRAY\n\n $message_array[] = array(\n\n 'pmconvo_id' => $message_info['id'],\n\n 'pmconvo_grup' => $message_info['grup'],\n\n 'pm_owner' => $message_info['owner'],\n\t\t'pm_body' => $message_info['pm_body']\n\t\t\n\n );\n\n \n\n unset($pm_user);\n\n }\n\n \n\n return $message_array;\n\n }", "abstract public function getGroupName();", "function setup_groups() {\n\t$taxonomy_capabilities = array(\n\t\t'manage_terms' => 'manage_categories',\n\t\t'edit_terms' => 'manage_categories',\n\t\t'delete_terms' => 'manage_categories',\n\t\t'assign_terms' => 'edit_posts',\n\t);\n\n\t$taxonomy_labels = array(\n\t\t'name' => esc_html__( 'External Connection Groups' ),\n\t\t'singular_name' => esc_html__( 'External Connection Group' ),\n\t\t'search_items' => esc_html__( 'Search External Connection Groups' ),\n\t\t'popular_items' => esc_html__( 'Popular External Connection Groups' ),\n\t\t'all_items' => esc_html__( 'All External Connection Groups' ),\n\t\t'parent_item' => esc_html__( 'Parent External Connection Group' ),\n\t\t'parent_item_colon' => esc_html__( 'Parent External Connection Group' ),\n\t\t'edit_item' => esc_html__( 'Edit External Connection Group' ),\n\t\t'update_item' => esc_html__( 'Update External Connection Group' ),\n\t\t'add_new_item' => esc_html__( 'Add New External Connection Group' ),\n\t\t'new_item_name' => esc_html__( 'New External Connection Group Name' ),\n\n\t);\n\t$args = array(\n\t\t'labels' => $taxonomy_labels,\n\t\t'public' => false,\n\t\t'show_ui' => true,\n\t\t'meta_box_cb' => false,\n\t\t'show_tagcloud' => false,\n\t\t'show_in_nav_menus' => false,\n\t\t'hierarchical' => true,\n\t\t'rewrite' => false,\n\t\t'capabilities' => $taxonomy_capabilities,\n\n\t);\n\tregister_taxonomy( 'dt_ext_connection_group', 'dt_ext_connection', $args );\n}", "function acf_get_grouped_users($args = array())\n{\n}", "public function field_groups() {\n\t\tinclude_once KCN_PATH . '/includes/fields/acf-sample-options.php';\n\t}", "public function getShowGroups(): array;", "function getMemberGroupInfo1() {\n global $inputs;\n\n $res = getAll('SELECT mg.*,\n\t m.name\n FROM member_group mg\n JOIN member m\n ON m.id = mg.member_id\n WHERE group_id = ?' , [$inputs['id']]);\n formatOutput(true, 'success', $res);\n}", "public function getGroup(): GroupInterface;", "public function postProcess(): void {\n $groupsToAddTo = (array) $this->getSubmittedValue('groups');\n $summaryInfo = ['groups' => [], 'tags' => []];\n foreach ($groupsToAddTo as $groupID) {\n // This is a convenience for now - really url & name should be determined at\n // presentation stage - ie the summary screen. The only info we are really\n // preserving is which groups were created vs already existed.\n $summaryInfo['groups'][$groupID] = [\n 'url' => CRM_Utils_System::url('civicrm/group/search', 'reset=1&force=1&context=smog&gid=' . $groupID),\n 'name' => Group::get(FALSE)\n ->addWhere('id', '=', $groupID)\n ->addSelect('name')\n ->execute()\n ->first()['name'],\n 'new' => FALSE,\n 'added' => 0,\n 'notAdded' => 0,\n ];\n }\n\n if ($this->getSubmittedValue('newGroupName')) {\n /* Create a new group */\n $groupsToAddTo[] = $groupID = Group::create(FALSE)->setValues([\n 'title' => $this->getSubmittedValue('newGroupName'),\n 'description' => $this->getSubmittedValue('newGroupDesc'),\n 'group_type' => $this->getSubmittedValue('newGroupType') ?? [],\n 'is_active' => TRUE,\n ])->execute()->first()['id'];\n $summaryInfo['groups'][$groupID] = [\n 'url' => CRM_Utils_System::url('civicrm/group/search', 'reset=1&force=1&context=smog&gid=' . $groupID),\n 'name' => $this->getSubmittedValue('newGroupName'),\n 'new' => TRUE,\n 'added' => 0,\n 'notAdded' => 0,\n ];\n }\n $tagsToAdd = (array) $this->getSubmittedValue('tag');\n foreach ($tagsToAdd as $tagID) {\n // This is a convenience for now - really url & name should be determined at\n // presentation stage - ie the summary screen. The only info we are really\n // preserving is which tags were created vs already existed.\n $summaryInfo['tags'][$tagID] = [\n 'url' => CRM_Utils_System::url('civicrm/contact/search', 'reset=1&force=1&context=smog&id=' . $tagID),\n 'name' => Tag::get(FALSE)\n ->addWhere('id', '=', $tagID)\n ->addSelect('name')\n ->execute()\n ->first()['name'],\n 'new' => TRUE,\n 'added' => 0,\n 'notAdded' => 0,\n ];\n }\n if ($this->getSubmittedValue('newTagName')) {\n $tagsToAdd[] = $tagID = Tag::create(FALSE)->setValues([\n 'name' => $this->getSubmittedValue('newTagName'),\n 'description' => $this->getSubmittedValue('newTagDesc'),\n 'is_selectable' => TRUE,\n 'used_for' => 'civicrm_contact',\n //NYSS new tags during import should be imported as keywords\n 'parent_id'\t=> 296,\n ])->execute()->first()['id'];\n $summaryInfo['tags'][$tagID] = [\n 'url' => CRM_Utils_System::url('civicrm/contact/search', 'reset=1&force=1&context=smog&id=' . $tagID),\n 'name' => $this->getSubmittedValue('newTagName'),\n 'new' => FALSE,\n 'added' => 0,\n 'notAdded' => 0,\n ];\n }\n // Store the actions to take on each row & the data to present at the end to the userJob.\n $this->updateUserJobMetadata('post_actions', [\n 'group' => $groupsToAddTo,\n 'tag' => $tagsToAdd,\n ]);\n $this->updateUserJobMetadata('summary_info', $summaryInfo);\n\n // If ACL applies to the current user, update cache before running the import.\n if (!CRM_Core_Permission::check('view all contacts')) {\n $userID = CRM_Core_Session::getLoggedInContactID();\n CRM_ACL_BAO_Cache::deleteEntry($userID);\n CRM_ACL_BAO_Cache::deleteContactCacheEntry($userID);\n }\n\n $this->runTheImport();\n }" ]
[ "0.80992144", "0.80992144", "0.7914444", "0.7738348", "0.75450915", "0.7288009", "0.7231555", "0.7231555", "0.7231555", "0.72009933", "0.7187171", "0.7187171", "0.7187171", "0.7187171", "0.7179628", "0.71416175", "0.7104296", "0.70809877", "0.70804375", "0.70708966", "0.7043403", "0.6982829", "0.6982829", "0.69784445", "0.6976166", "0.6952718", "0.6942943", "0.69348764", "0.6906831", "0.68788826", "0.68788826", "0.6836945", "0.68304557", "0.6813893", "0.67770326", "0.67718625", "0.6771694", "0.6694012", "0.66624045", "0.66547555", "0.6646285", "0.66416717", "0.664137", "0.66412103", "0.6625349", "0.66226524", "0.6611497", "0.65899676", "0.6566097", "0.65626174", "0.6559795", "0.6554241", "0.6549603", "0.6543761", "0.65342116", "0.6531228", "0.65227324", "0.650692", "0.6494149", "0.6483392", "0.6464109", "0.6446063", "0.6416766", "0.6415429", "0.6413092", "0.6380973", "0.6380973", "0.6379082", "0.636574", "0.6365555", "0.635848", "0.635608", "0.63406247", "0.6330706", "0.63243556", "0.63238263", "0.6323761", "0.63220716", "0.63216764", "0.6319706", "0.6314499", "0.63116467", "0.63017464", "0.62978226", "0.6288934", "0.6287881", "0.6287084", "0.6285784", "0.62829274", "0.6276101", "0.6275673", "0.6269757", "0.6258422", "0.62487555", "0.6241455", "0.62372714", "0.6236693", "0.62357295", "0.6231903", "0.6230889", "0.6226742" ]
0.0
-1
Helper debug function. Prints the value of '$debug' in a code block.
function Debug($debug, $msg = "Debugging"){ if(ENV == PRODUCTION && (!isset($_GET['debug'])) ){ return; } echo '<pre class="debug">'; echo '<h2>'.$msg.'</h2>'; print_r($debug); echo '</pre>'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function debug( $debug = null ) {\n\t\treturn wfSetBit( $this->mFlags, DBO_DEBUG, $debug );\n\t}", "function debug() {\r\n//\tif (!$debug_mode) {\r\n//\t\treturn;\r\n//\t}\r\n\techo '<pre>';\r\n\tforeach (func_get_args() as $var) {\r\n\t\t$psfix = str_repeat('-', 40);\r\n\t echo \"<span style='font-size: 18px; color:blue;'>\".\r\n\t \"debug: $psfix I were newbility line separator $psfix\".\r\n\t \"</span>\\n\";\r\n\t echo(var_dump($var));\r\n\t}\r\n echo '</pre>';\r\n}", "function debug ($value) {\n\t?>\n\t<pre style=\"margin: 1rem 0; padding: 1rem; background: #e4e4e4; border: 1px solid #ccc;\"><code> <?php var_dump($value) ?></code></pre>\n\t<?php\n}", "public static function debug()\r\n {\r\n if (func_num_args() === 0)\r\n return;\r\n\r\n // Get all passed variables\r\n $variables = func_get_args();\r\n\r\n $output = array();\r\n foreach ($variables as $var)\r\n {\r\n $output[] = Core::_dump($var, 1024);\r\n }\r\n\r\n echo '<pre class=\"debug\">'.implode(\"\\n\", $output).'</pre>';\r\n }", "public function debug();", "public function debug();", "function debug($msg) {\n echo '<p><b>' . $msg . \"</b></p>\\n\";\n}", "public static function debug() {\n\t\t# Get arguments to this function:\n\t\t$args = func_get_args();\n\n\t\t# Add message to log:\n\t\treturn self::add(LOG_DEBUG, $args);\n\t}", "public static function debug( $data )\n {\n }", "function debug($var) {\n\techo '<pre>',print_r($var,1),'</pre>';\n}", "function debug( $var ) {\n print \"<pre>\";\n var_dump( $var );\n print \"</pre>\";\n }", "function debug($var) {\n echo '<pre>'. print_r($var, 1) .'</pre>';\n}", "public static function debug()\n {\n if (func_num_args() === 0) {\n return;\n }\n\n // Get params\n $params = func_get_args();\n $output = array();\n\n foreach ($params as $var) {\n $output[] = '<pre>('.gettype($var).') '.html::specialchars(print_r($var, true)).'</pre>';\n }\n\n return implode(\"\\n\", $output);\n }", "public function debug(){\n echo\"<pre><code>\";\n var_dump($this);\n echo \"</code></pre>\";\n }", "function debug($var, $die = false) {\n\techo \"<pre>\" . print_r($var, true) . \"</pre>\";\n\tif ($die) {\n\t\tdie;\n\t}\n}", "public static function debug($var) \n\t{\n\t\techo '<pre>'; var_dump($var); exit;\n\t}", "function _dbg($value)\n{\n echo \"<pre>[DBG]: \";\n print_r($value);\n echo \"</pre>\";\n}", "function debug($variable)\n{\n echo \"<pre>\" . print_r($variable, true) . \"</pre>\";\n}", "public function debug()\n {\n // Get the request paramaters\n $request = Zend_Controller_Front::getInstance()->getRequest()->getParams();\n\n // Create the string variable\n $string = <<<HTML\n <div id=\"debugArea\">\n <b>Debug Area</b>\n <hr />\nHTML;\n\n // Run the isfacebook method\n $string .= self::_isFacebook();\n\n // Run the isTodo method\n $string .= '<b>Todo</b>';\n $string .= self::_isTodo();\n\n // Output the Request Paramaters\n $string .= '<b>Paramaters</b><br />';\n $string .= Zend_Debug::dump($request, '<b>All Params</b>', false);\n $string .= Zend_Debug::dump($_REQUEST, '<b>Request Paramaters</b>', false);\n\n // Get the Auth Instance\n $auth = Zend_Auth::getInstance();\n\n // Check if this user is logged in\n if ($auth->hasIdentity()) {\n $string .= Zend_Debug::dump($auth->getIdentity(), '<b>Zend Auth</b>', false);\n }\n\n // If Files is not empty then output these\n if (!empty($_FILES)) {\n $string .= Zend_Debug::dump($_FILES, '<b>Files</b>', false);\n }\n\n // End the DIV\n $string .= '</div>';\n\n return $string;\n }", "public function debugMode($debug) {\n if ((bool)$debug === TRUE) {\n // Debug output via drush_print can only be turned on if we are in\n // a drush call\n if (function_exists('drush_print') && function_exists('drush_get_option')) {\n $this->debug = $debug;\n }\n }\n return $this->debug;\n }", "function debug() {\n if (!APP_IN_DEVELOPER_MODE)\n return;\n $args = func_get_args();\n ob_start();\n if (count($args) > 1) {\n echo var_dump($args);\n } else if (count($args) == 1) {\n echo var_dump(reset($args));\n }\n $message = ob_get_contents();\n ob_end_clean();\n trigger_error(\"debug() triggered with the following data:\\n\\n$message\", \\E_USER_WARNING);\n}", "public static function _debug( $value ) {\n \n $arguments = func_get_args();\n $options = array_last($arguments);\n $key = array_get(array_tail(array_head($arguments)), 0, null);\n $context = $options['_this'];\n \n if( isset($value) and count($arguments) > 0 ) {\n \n $value = isset($key) ? array_get($context, $key) : $context;\n \n $result = implode(\"\\n\", array_map(function ($message) {\n \n return \"console.debug($message);\";\n \n }, [\n '\"=================================\"',\n '\"CONTEXT:\"',\n 'JSON.parse(\"'.addslashes(json_encode($context)).'\")',\n '\"VALUE:\"',\n 'JSON.parse(\"'.addslashes(json_encode($value)).'\")',\n '\"=================================\"'\n ]));\n \n return \"<script>{$result}</script>\";\n \n }\n \n }", "public static function pvaldebug($value) {\n printf(\"%s\\n\", call_user_func('static::valdebug', $value));\n return static::getLastResult();\n }", "public function debug(){\n $debug = [\n 'ID' => $this->ID,\n 'slug' => $this->slug,\n 'options' => $this->options,\n 'items' => $this->items,\n ];\n \"<pre>\".var_dump($debug).\"</pre>\";\n }", "public function debug($var){\n\t\tif ($this->env['debug'] !== false){\n\t\t\techo \"<pre>\";\n\t\t\tprint_r($var);\n\t\t\techo \"</pre>\";\n\t\t}\n\t}", "private function debug($var = null) {\n if( $var ) {\n echo '<pre>';\n print_r( $var );\n echo '</pre>';\n }\n }", "function debug ( $str ) {\n\t\tt3lib_div::debug( \n\t\t\tarray( 'debug' => '(' . strval ( $this->pline ) . ') ' . strval ( $str ) )\n\t\t);\n\t}", "function debug($message);", "public static function debug($var) {\n echo '<pre>';\n var_dump($var);\n echo '</pre>';\n }", "public static function debug()\n\t{\n\t\tif (func_num_args() === 0)\n\t\t\treturn;\n\n\t\t// Get all passed variables\n\t\t$variables = func_get_args();\n\n\t\t$output = array();\n\t\tforeach ($variables as $var)\n\t\t{\n\t\t\t$type = gettype($var);\n\n\t\t\tswitch ($type)\n\t\t\t{\n\t\t\t\tcase 'null':\n\t\t\t\t\t$var = 'NULL';\n\t\t\t\tbreak;\n\t\t\t\tcase 'boolean':\n\t\t\t\t\t$var = $var ? 'TRUE' : 'FALSE';\n\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\t$var = htmlspecialchars(print_r($var, TRUE), NULL, self::$charset, TRUE);\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t$output[] = '<pre>('.$type.') '.$var.'</pre>';\n\t\t}\n\n\t\treturn implode(\"\\n\", $output);\n\t}", "function debug($var): void\n {\n call_user_func('dump', $var);\n }", "public function debug($message) {}", "public function debugMode($debug) {\n if (is_bool(($debug))) {\n if ($debug) {\n // Debug output via drush_print can only be turned on if we are in\n // a drush call\n if (function_exists('drush_print') && function_exists('drush_get_option')) {\n $this->debug = $debug;\n }\n }\n }\n return $this->debug;\n }", "function _debug($message) {\n if ($debug = TRUE) {\n _log($message);\n } \n}", "function debug($variable)\n{\n\techo '<pre>';\n\tprint_r($variable);\n\techo '</pre>';\n}", "public function debug(string $message);", "function debug($value)\n {\n $debugbar = debugbar();\n foreach (func_get_args() as $value) {\n $debugbar->addMessage($value, 'debug');\n }\n }", "function debug( $data , $fim = false ){\n\techo '<pre style=\"display: block; text-align:left;\">';\n\tvar_dump($data);\n\techo '</pre>';\n\n\tif ($fim){\n\t\tdie();\n\t}\n}", "function debug($var, $discord = false, $type = 'php')\n {\n if (!Configure::read('debug')) {\n return;\n }\n\n $trace = Debugger::trace(['start' => 1, 'depth' => 2, 'format' => 'array']);\n $search = [ROOT];\n\n $file = str_replace($search, '', $trace[0]['file']);\n $line = $trace[0]['line'];\n $lineInfo = sprintf('%s (line %s)', $file, $line);\n\n $template = <<<TEXT\n%s\n########## DEBUG ##########\n%s\n###########################\n%s\nTEXT;\n\n $discordTemplate = <<<TEXT\n**########## DEBUG ##########**\n`%s`\n```%s\n%s\n```\n%s\nTEXT;\n $var = Debugger::exportVar($var, 25);\n\n if ($discord === true) {\n return sprintf($discordTemplate, $lineInfo, $type, $var, PHP_EOL);\n }\n\n printf($template, $lineInfo, $var, PHP_EOL);\n }", "public function debug( $msg )\n {\n if ( DEBUG )\n {\n echo $msg;\n }\n }", "function debug($header, $something) {\n echo \"<h1>$header</h1>\\n\";\n echo \"<div class='debug'>\\n\";\n print_r($something);\n echo \"\\n</div>\\n\";\n}", "public function setdebug($d = true){\n\t\t$this->debug = $d;\n\t}", "public function debug($line)\n {\n }", "function debug($str, $newline = true)\n{\n global $debug;\n if ($debug == true) {\n out($str, $newline);\n }\n}", "function qa_debug($var)\n{\n\techo \"\\n\" . '<pre style=\"padding: 10px; background-color: #eee; color: #444; font-size: 11px; text-align: left\">';\n\techo $var === null ? 'NULL' : htmlspecialchars(print_r($var, true), ENT_COMPAT|ENT_SUBSTITUTE);\n\techo '</pre>' . \"\\n\";\n}", "public static function debug($message){\n\t\tif(Functions::$runmode == Functions::$RUNMODE_DEBUG){\n\t\t\techo 'DEBUG: '.$message.\"\\n\";\n\t\t}\n\t}", "function debug($variable){\n echo '<div style=\"border: 1px solid orange\">';\n echo '<pre>';\n print_r($variable);\n echo '</pre>';\n echo '</div>';\n}", "private function debug($msg = '')\n\t{\n\t\t$this->debugger .= $msg.\"<br/>\\n\";\t\n\t}", "public function debug($var){\n\t\t////$this->core->log($var);\n\t}", "function debug($data) {\n global $debug_switch;\n global $output;\n \n if (!$debug_switch)\n return;\n \n if (is_array($data) || is_object($data)) {\n $output[\"debug\"][] = $data;\n } else {\n $output[\"debug\"][] = htmlspecialchars($data);\n }\n }", "function app_debug($value, bool $die = null)\n{\n echo \"<pre>\";\n print_r($value);\n echo \"</pre>\";\n\n if ($die === true) die('<strong> End of debug </strong>');\n\n}", "private function debug($msg) {\r\n if ($this->debug) {\r\n echo '[debug] ' . $msg . '<br>';\r\n }\r\n }", "function set_debug($debug)\n\t{\n\t\t$this->debug = $debug;\n\t}", "public function __debugInfo()\n {}", "function debug($str) {\n\techo '<pre>';\n\tvar_dump($str);\n\techo '</pre>';\n\n}", "function debug($message = \"\")\r\n {\r\n \tif ($this->_debug) {\r\n \t\techo $message;\r\n \t}\r\n \t\r\n \treturn TRUE;\r\n }", "public function debug()\n {\n return '<dl>\n\t\t\t\t<dt><strong>URL</strong></dt>\n\t\t\t\t<dd>' . $this->url . '</dd>\n\t\t\t\t<dt><strong>Code</strong></dt>\n\t\t\t\t<dd>' . $this->code . '</dd>\n\t\t\t\t<dt><strong>Response</strong></dt>\n\t\t\t\t<dd><pre>' . $this->raw . '</pre></dd>\n\t\t\t\t<dt><strong>Errors</strong></dt>\n\t\t\t\t<dd>' . Debug::text(json_decode(json_encode($this->error), true)) . '</dd>\n\t\t\t </dl>';\n }", "function debug( $var ) {\n\terror_log( print_r( $var, true ) );\n}", "public function getDebug();", "protected function LiveDebugString()\n {\n return $this->debugMessage;\n }", "function debug($mixed, $title = null , $owner = null)\n\t\t{\n\t\t\t$title = $title != '' ? preg_replace('/:/', '', $title). '::' : '';\n\t\t\t\n\t\t\tprint '<div style=\"border-style:solid;border-color:red;\">';\n\t\t\t\n\t\t\tif ($owner != null)\n\t\t\t{\n\t\t\t\tprint '<strong>' . ucfirst($owner). ' Debug Area</strong>';\n\t\t\t}\n\t\t\tprint '<br /><strong style=\\'color:red\\'>' . ucfirst($title) .'</strong><br />';\n\t\t\tprint '<br /><pre style=margin-left:30px>' . print_r($mixed, true) . '</pre>';\n\t\t\tprint '</div>';\n\t\t}", "public function debug($message)\n {\n }", "public function debug($message) {\n\t\tif ($this->debug)\n\t\t\techo \"cobweb: DEBUG {$message}\\n\";\n\t}", "function debug($v) {\n\tprint_r($v);\n}", "function dev_debug_display( $thing ) {\n\techo '<pre>';\n\tprint_r( $thing );\n\techo '</pre>';\n}", "public function debug()\n {\n return $this->container->debug();\n }", "public static function debug()\n {\n return self::getBool('DEBUG');\n }", "public static function debug()\n {\n foreach (func_get_args() as $message) {\n if (is_null($message))\n $message = 'NULL';\n if (!is_string($message))\n $message = print_r($message, true);\n static::_log(self::DEBUG, $message);\n }\n }", "public function stdWrap_debug($content = '')\n {\n return '<pre>' . htmlspecialchars($content) . '</pre>';\n }", "function debug($message, $linefeed = 1) {\n\tglobal $debug;\n\n\tif ($debug) {\n\t\tif ($linefeed == 0) {\n\t\t\tprint \"DEBUG: \" . $message . \"\\r\";\n\t\t}else{\n\t\t\tprint \"DEBUG: \" . $message . \"\\n\";\n\t\t}\n\t}\n}", "protected static function echoDebug($message)\r\n {\r\n if (self::$DEBUG)\r\n echo $message;\r\n }", "function output_debug($str) {\n\techo date('Y-m-d H:i:s') . \": $str\\r\\n\";\n}", "protected function _debug($debugData)\n {\n $this->_logger->debug(var_export($debugData, true));\n }", "function debugMsg($msg)\n {\n echo \"DEBUG MESSAGE: {$msg}<br>\\n\";\n }", "function debug($status = array())\n {\n $this->debug = $status;\n }", "protected function Debug($var){\n\t\t$bt = debug_backtrace();\n\t\t$dump = new CVarDumper();\n\t\t$debug = '<div style=\"display:block;background-color:gold;border-radius:10px;border:solid 1px brown;padding:10px;z-index:10000;\"><pre>';\n\t\t$debug .= '<h4>function: '.$bt[1]['function'].'() line('.$bt[0]['line'].')'.'</h4>';\n\t\t$debug .= $dump->dumpAsString($var);\n\t\t$debug .= \"</pre></div>\\n\";\n\t\tYii::app()->params['debugContent'] .=$debug;\n\t}", "public function getDebug()\n\t{\n\t\treturn $this->debug;\n\t}", "public function isDebug();", "public function isDebug();", "function debug($bug)\n{\n echo '<pre style=\"padding: 15px; background: #000; display:block; width: 100%; color: #fff;\">';\n var_dump($bug);\n echo '</pre>';\n}", "public function Info($debug){\n\t\tswitch ($this->debugType) {\n\t\t\tcase self::NONE:\n\t\t\tcase self::LOG:\n\t\t\t\tLogger::Instance()->Log(var_dump($debug));\n\t\t\t\treturn;\n\t\t\tcase self::DEV:\n\t\t\t\techo \"<pre>INFO: \".$debug.\"</pre>\";\n\t\t\tcase self::DEBUG:\n\t\t\t\tarray_push($this->debugItems, \"<pre>\".$debug.\"</pre>\");\n\t\t\t\tbreak;\n\t\t}\n\t}", "public static function pvardebug($var) {\n printf(\"%s\\n\", static::vardebug($var));\n return static::getLastResult();\n }", "public function isDebug()\n {\n }", "abstract public function debug(string $message, array $extra_data = []);", "public function debug()\n {\n return $this -> debug;\n }", "function d($var)\n{\n echo \"<style>pre.sf-dump .sf-dump-compact { display: inline !important; }</style>\";\n dd($var);\n}", "static private function debug($message) {\n if (self::getConfig('debug')) {\n print_r($message);\n print_r(PHP_EOL);\n }\n }", "public static function debug() : bool\n {\n }", "public function setDebug(bool $debug);", "public static function getDebug() {\n\t\treturn self::$_debug;\n\t}", "function emdebug($income_details = null, $debug_type = null){\n\tmdebug($income_details, $debug_type);\n\texit;\n}", "function debug_echo($line)\n{\n}", "function printDebug($message)\n{\n global $tPrintDebug, $t;\n if ($tPrintDebug) print \"$t[1]$message\\n\";\n}", "public function GetDebug () \r\n\t{\r\n\t\treturn (self::$debug);\r\n\t}", "public function GetDebug () \r\n\t{\r\n\t\treturn (self::$debug);\r\n\t}", "public static function debugVar($var)\n {\n echo '<pre>';\n var_dump($var);\n echo '</pre>';\n }", "public static function debug($message)\n\t{\n\t\tstatic::write('Debug', $message);\n\t}", "public function getDebug()\n {\n return $this->debug;\n }", "public function getDebug()\n {\n return $this->debug;\n }", "public function getDebug()\n {\n return $this->debug;\n }" ]
[ "0.7336224", "0.72573644", "0.72236174", "0.71377474", "0.69852144", "0.69852144", "0.6950469", "0.6883622", "0.68417937", "0.68386585", "0.6828215", "0.6785413", "0.6774522", "0.67512655", "0.67438227", "0.6738246", "0.6705633", "0.66920507", "0.6663115", "0.66613907", "0.66609794", "0.6617398", "0.6614452", "0.6610903", "0.65960157", "0.6591844", "0.65910566", "0.65900385", "0.6582763", "0.6576744", "0.65764993", "0.65729904", "0.6565252", "0.6557706", "0.6514687", "0.6510802", "0.6510147", "0.64934224", "0.64876145", "0.6459318", "0.6441974", "0.64418066", "0.64325625", "0.64316636", "0.64292467", "0.6419345", "0.6395324", "0.6387373", "0.63695824", "0.6367493", "0.63666975", "0.63607043", "0.63597053", "0.63538057", "0.6350554", "0.6344254", "0.6343757", "0.6336539", "0.63334996", "0.63242286", "0.63210016", "0.63183117", "0.6316342", "0.6313486", "0.63121957", "0.6310874", "0.6295977", "0.62957674", "0.62888783", "0.6287072", "0.628488", "0.6281442", "0.62785685", "0.6274707", "0.62671906", "0.6259979", "0.6257951", "0.6256372", "0.6256372", "0.6253441", "0.62486005", "0.6229197", "0.62272906", "0.6226222", "0.6225067", "0.6221038", "0.62078273", "0.62074894", "0.6195921", "0.6194863", "0.6194044", "0.61895126", "0.61891526", "0.6181293", "0.6181293", "0.61772835", "0.61752", "0.617225", "0.617225", "0.617225" ]
0.676881
13
returns everything except chosen letters
function rest($text, array $position) { $output = ""; $flag = false; for($i = 0; $i< strlen($text); $i++) { for($j = 0; $j< count($position); $j++) { if($i == $position[$j]) { $flag = true; } } if ($flag == false) { $output .=$text[$i]; } $flag = false; } return $output; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function removeNonAlphabets($character){\n return (ctype_alpha($character));\n}", "function filter_chars($str) {\n\treturn preg_replace(\"/[^A-Za-z0-9_]*/\", \"\", $str);\n}", "function filteralpha($s){\n return preg_replace(\"/[^: ()_\\-a-zA-Z0-9+]/\",\"\", $s);\n}", "function allLegalLetters($pass)\n{\n\n\tif(preg_match('/[iol]/', $pass)) return false;\n\treturn true;\n\n}", "function doMkAlpha ($string)\n{\n return preg_replace ('/[^a-z0-9]/i', '', $string);\n}", "function filter_ige($ige) {\r\n if (substr($ige, -2) === 'ik') {\r\n $ige = str_replace('ik','',$ige);\r\n }\r\n if (substr($ige,-2) === 'sz') {\r\n $ige = str_replace('z','',$a);\r\n }\r\n return $ige; \r\n }", "function char_filter($ojb)\n {\n $badchars='Ý`~!@$%^()+-_=[]{}\\'\\\\:\"|,/<>? '; # Nhung ky tu khong cho phep duoc len danh sach tai day\n for ($i=0;$i<strlen($badchars);$i++){\n $ojb=str_replace($badchars[$i],\"\",$ojb);\n\n }\n\n return $ojb;\n }", "function filter_alphanum($input) {\n return preg_replace(\"/[^a-zA-Z0-9]+/\", \"\", $input);\n}", "function strip_bad_chars( $input ) {\n $output = preg_replace( \"/[^a-zA-Z0-9_-]/\", \"\", $input );\n return $output;\n }", "private function _removeNonAlphaCharacters($string)\n\t{\n\t\treturn preg_replace(\"/(\\W*)/i\", \"\", $string);\n\t}", "public function remainingChars();", "function scrub($str) {\n\t$str = preg_replace('/[^A-Za-z0-9]/','',$str);\n\treturn $str;\n}", "function remove_special_chars($string) {\n\t return preg_replace ('/[^a-zA-Z0-9]/', '', $string);\n\t}", "function Strip_Bad_chars($input)\n{\n //$output = preg_replace(\"/[^a-zA-Z0-9_-]/\", \"\", $input);\n $output = preg_replace(\"/[^0-9]/\", \"\", $input);\n return $output;\n}", "function alphaOnly($str){\n\tif(preg_match(\"/[^a-zA-Z]/\",$str))\n\t{return false;}else{return true;} //opposite logic from email?\n}", "public static function UnwantedParameters($chars = array())\n {\n global $application_unwanted_params;\n $application_unwanted_params = $chars;\n }", "public function getDisallowedChars() : Array\n\t{\n\t\treturn $this->disallowedChars;\n\t}", "function removeSpecialChars($oldText)\r\n{\r\n // Se corrige os acentos com iso, taca iso\r\n if ( strlen($oldText) > strlen(utf8_decode($oldText)) )\r\n {\r\n $oldText = utf8_decode($oldText);\r\n }\r\n\r\n /*\r\n * A função \"strtr\" substitui os caracteres acentuados pelos não acentuados.\r\n * A função \"ereg_replace\" utiliza uma expressão regular que remove todos os\r\n * caracteres que não são letras, números e são diferentes de \"_\" (underscore).\r\n */\r\n $newText = preg_replace('[^a-zA-Z0-9_-.]', '', strtr($oldText, 'áàãâéêíóôõúüçÁÀÃÂÉÊÍÓÔÕÚÜÇ ', 'aaaaeeiooouucAAAAEEIOOOUUC_'));\r\n\r\n if ( !(strlen($newText) > 0) )\r\n {\r\n $newText = 'nome_invalido-'.getRandomNumbers().getRandomNumbers();\r\n }\r\n\r\n return $newText;\r\n}", "function _strip_junk_words($words)\n\t{\n\t\t$bad=array('the','of','to','and','a','in','is','it','you','that','he','was','for','on','are',\n\t\t\t'with','as','I','his','they','be','at','this','or','had','by','but','what','some','we','can',\n\t\t\t'out','other','were','all','there','when','your','how','an','which','do','so','these','has','go',\n\t\t\t'come','did','no','my','where','me','our','thing','site','website');\n\t\t$_words=array();\n\t\tforeach ($words as $i=>$b)\n\t\t{\n\t\t\tif (!in_array($b,$bad))\n\t\t\t{\n\t\t\t\tif ((($b!='chat') || (!array_key_exists($i+1,$words)) || (($words[$i+1]!='room') && ($words[$i+1]!='rooms'))) && (($b!='user') || (!array_key_exists($i+1,$words)) || (($words[$i+1]!='group') && ($words[$i+1]!='groups'))))\n\t\t\t\t\t$_words[]=$b;\n\t\t\t\telse // Special case of compound terms that are actually single words in ocPortal; fix the word, and also stop ridiculous amounts of spurious result\n\t\t\t\t\t$words[$i+1]=$b.$words[$i+1];\n\t\t\t}\n\t\t}\n\t\treturn $_words;\n\t}", "function get_not_accepted_words($string)\n {\n #global $db_settings, $pdo;\n // check for not accepted words:\n $dbr = Database::$content->query(\"SELECT list FROM \".Database::$db_settings['banlists_table'].\" WHERE name = 'words' LIMIT 1\");\n $data = $dbr->fetch();\n if(isset($data['list']) && trim($data['list']) != '')\n {\n $not_accepted_words = explode(\"\\n\",$data['list']);\n foreach($not_accepted_words as $not_accepted_word)\n {\n #if($not_accepted_word!='' && (preg_match(\"/\".$not_accepted_word.\"/i\",$name) || preg_match(\"/\".$not_accepted_word.\"/i\",$text) || preg_match(\"/\".$not_accepted_word.\"/i\",$subject) || preg_match(\"/\".$not_accepted_word.\"/i\",$email) || preg_match(\"/\".$not_accepted_word.\"/i\",$hp) || preg_match(\"/\".$not_accepted_word.\"/i\",$location)))\n if($not_accepted_word!='' && mb_strpos($string, mb_strtolower($not_accepted_word, CHARSET), 0, CHARSET)!==false)\n {\n $found_not_accepted_words[] = $not_accepted_word;\n }\n }\n }\n if(isset($found_not_accepted_words))\n {\n return $found_not_accepted_words;\n }\n else\n {\n return false;\n }\n }", "function nostr($campo){\t\r\n\t\t$badHeads=array(\"SCRIPT\",\" AND \", \"+\" ,\"SELECT\", \"UPDATE\", \"INSERT\", \"DELETE\", \"<>\", \"*\",\"DROP\",\"WHERE\",\"\\'\",\" OR \",\"ALERT\",\"<?\",\"?>\",\"<%\",\"%>\",\"<SCRIPTS>\",\"</SCRIPTS>\",\"FRAME\",\"</NOFRAME>\",\"<NOSCRIPTS>\",\"</NOSCRIPTS>\",\"<IFRAME>\",\"</IFRAME>\");\r\n\t\t \r\n\t\t foreach($badHeads as $valor){ \r\n if(strpos(strtolower($campo), strtolower($valor)) !== false){ \r\n header(\"HTTP/1.0 403 Forbidden\"); \r\n exit; \r\n } \r\n\t\t }\r\n}", "protected function filterAlphanum($value) {\n return preg_replace(\"/[^a-z0-9]/i\", \"\", $value);\n }", "function onlyAlpha( $myString )\n{\n $myReturn = eregi('[^a-zA-Z]', $myString ) ;\n if ( $myReturn )\n { return FALSE ; }\n else\n { return TRUE ; }\n}", "function doMkCharacter ($string)\n{\n return preg_replace ('/[^a-zA-Z0-9\\-_:\\.=;]/i', '', trim (substr ($string, 0, 35)));\n}", "function game_getallletters( $word, $lang='')\n{\n for(;;)\n {\n $strings = get_string_manager()->load_component_strings( 'game', $lang);\n if( isset( $strings[ 'lettersall']))\n {\n $letters = $strings[ 'lettersall'];\n $word2 = game_upper( $word, $lang);\n if( hangman_existall( $word2, $letters))\n return $letters;\n }\n\n if( $lang == '')\n break;\n else\n $lang = ''; \n }\n\n \n return '';\n}", "public static function random_negative_word(){\n $temp_text_options = array('Yikes!', 'Oh no!', 'Ouch...', 'Awwwww...', 'Bummer...', 'Boooo...', 'Harsh!', 'Sorry...');\n $temp_text = $temp_text_options[array_rand($temp_text_options)];\n return $temp_text;\n }", "public static function removeNonEnglishChars($str, $keep = '')\n {\n $pattern = sprintf('A-Za-z0-9_%s', $keep);\n\n return preg_replace(\"/[^\" . $pattern . \"]/\", '', $str);\n }", "function getCharacters();", "function validateCharsDie(&$text)\n{\n\t$matches = preg_match('/[^-a-z0-9]/', $text);\n\n\tif($matches)\n\t\tdie('Invalid characters specified in input. This could be caused by invalid cookie data, thus it is recommended to clear your cookies.');\n}", "public function filter($var) {\n\t\treturn preg_replace('/[^-a-zA-Z0-9@. \\/]/', '', $var);\n }", "public static function removeNonAlphanumericCharacters( $input ) {\n if ( is_array( $input ) ) {\n $output = array();\n foreach ( $input as $data ) {\n $output[] = preg_replace('/[^A-Za-z0-9]/', '', $data);\n }\n return $output;\n } else {\n return preg_replace('/[^A-Za-z0-9]/', '', $input);\n }\n\t}", "function filter($word)\r\n{\r\n $word = trim($word);\r\n $word = preg_replace('/[^A-Za-z0-9\\-]/','', $word);\r\n return strtolower($word);\r\n}", "function my_filter($string, $regex_chars)\n{\n for ($i=0; $i<strlen($regex_chars); $i++)\n {\n $char = substr($regex_chars, $i, 1);\n $string = str_replace($char, '', $string);\n// echo $string . '<br>';\n }\n return $string;\n}", "function _remove_invisible_characters($str)\n\t{\n\t\tstatic $non_displayables;\n\n\t\tif ( ! isset($non_displayables))\n\t\t{\n\t\t\t// every control character except newline (dec 10), carriage return (dec 13), and horizontal tab (dec 09),\n\t\t\t$non_displayables = array(\n\t\t\t\t\t\t\t\t\t\t'/%0[0-8bcef]/',\t\t\t// url encoded 00-08, 11, 12, 14, 15\n\t\t\t\t\t\t\t\t\t\t'/%1[0-9a-f]/',\t\t\t\t// url encoded 16-31\n\t\t\t\t\t\t\t\t\t\t'/[\\x00-\\x08]/',\t\t\t// 00-08\n\t\t\t\t\t\t\t\t\t\t'/\\x0b/', '/\\x0c/',\t\t\t// 11, 12\n\t\t\t\t\t\t\t\t\t\t'/[\\x0e-\\x1f]/'\t\t\t\t// 14-31\n\t\t\t\t\t\t\t\t\t);\n\t\t}\n\n\t\tdo\n\t\t{\n\t\t\t$cleaned = $str;\n\t\t\t$str = preg_replace($non_displayables, '', $str);\n\t\t}\n\t\twhile ($cleaned != $str);\n\n\t\treturn $str;\n\t}", "function justAlphanumeric($var)\n{\n return preg_replace('/[^0-9A-Za-z]/', '', $var);\n}", "function sanitize(){\r\n\t\t $outar = Array();\r\n \t $arg_list = func_get_args();\r\n\t\t foreach($arg_list[0] as $key => $value){\r\n\t\t\t\t $data = $value;\r\n\t\t\t\t $data = PREG_REPLACE(\"/[^0-9a-zA-Z]/i\", '', $data);\r\n\t\t\t\t array_push($outar,$data);\r\n\t\t }\r\n\t\treturn $outar;\r\n\t }", "static function createFilterChar() {\r\n $characters = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';\r\n return $characters[rand(0, strlen($characters) - 1)];\r\n }", "function non_karakter($a){\n if(preg_match(\"/^[A-Za-z0-9 -]*$/\",$a)){\n return false;\n }\n return true;\n}", "function OnlyLatin($string) {\n return (empty($string) || preg_replace(\"/[\\d\\w]+/i\", '', $string) != '') ? FALSE : $string;\n}", "function sAlphanumeric( $string )\r\n\t\t{\r\n\t\t\t\treturn preg_replace( '/[^a-zA-Z0-9]/', '', $string );\r\n\t\t\t\t\r\n\t\t}", "function removeSpecial($field)\n{\n\t$in_str = str_replace(array('<', '>', '&', '{', '}', '*', '/', '(', '[', ']', '@', '!', ')', '&', '*', '#', '$', '%', '^', '|', '?', '+', '=',\n\t\t'\"', ','), array(''), $field);\n\t$cur_encoding = mb_detect_encoding($in_str);\n\tif ($cur_encoding == 'UTF-8' && mb_check_encoding($in_str, 'UTF-8'))\n\t\t$name = $in_str;\n\telse\n\t\t$name = utf8_encode($in_str);\n\tif (!Validate::isName($name))\n\t{\n\t\t$len = Tools::strlen($name);\n\t\t$return_val = '';\n\t\tfor ($i = 0; $i < $len; $i++)\n\t\t{\n\t\t\tif (ctype_alpha($name[$i]))\n\t\t\t\t$return_val .= $name[$i];\n\t\t}\n\t\t$name = $return_val;\n\t\tif (empty($name))\n\t\t{\n\t\t\t$letters = range('a', 'z');\n\t\t\tfor ($i = 0; $i < 5; $i++)\n\t\t\t\t$name .= $letters[rand(0, 26)];\n\t\t}\n\t}\n\treturn $name;\n}", "function sanitizeAlphaNum($var)\n{\n return preg_replace('/[^a-zA-Z0-9]/', '', $var);\n}", "public function testWordsSplitByLetterWithIgnore()\n {\n $str = new Str($this->testString);\n $result = $str->words('/o/', true);\n $this->assertTrue(is_array($result));\n $this->assertTrue($result[0] === 'The quick br');\n $this->assertTrue($result[5] === 'wball');\n }", "public static function onlyAlpha($value)\n {\n return preg_replace('#[^[:alpha:]]#', '', $value);\n }", "private function _getLeftOverGameLetters()\n\t{\n\t\t$placed_letters = new LetterCollection(implode($this->PlacedTile->find('list', array(\n\t\t\t'fields' => array(\n\t\t\t\t'PlacedTile.letter',\n\t\t\t\t'PlacedTile.letter',\n\t\t\t),\n\t\t\t'conditions' => array(\n\t\t\t\t'PlacedTile.game_id' => $this->id,\n\t\t\t),\n\t\t))));\n\t\t$rack_letters = $this->Player->getGameRackLetters($this->id);\n\t\t\n\t\t$leftover = LetterCollection::getScrabbleCollection();\n\t\t$leftover = $leftover->removeCollection($placed_letters);\n\t\t$leftover = $leftover->removeCollection($rack_letters);\n\t\treturn $leftover;\n\t}", "function quitar_tildes($cadena) {\r\n $no_permitidas = array (\"à\",\"á\",\"é\",\"í\",\"ó\",\"ú\",\"Á\",\"É\",\"Í\",\"Ó\",\"Ú\",\"À\",\"Ì\",\"Ò\",\"Ù\");\r\n $permitidas = array (\"a\",\"a\",\"e\",\"i\",\"o\",\"u\",\"A\",\"E\",\"I\",\"O\",\"U\",\"A\",\"I\",\"O\",\"U\");\r\n $texto = str_replace($no_permitidas, $permitidas ,$cadena);\r\n return $texto;\r\n }", "public function getNotReplacedChars()\n {\n return $this->_notReplacedChars;\n }", "function remove_nonalphanum( $data ) {\n\t$text = trim( $data, ' ' );\n\t$text = str_replace( ' ', '-', $text );\n\t$text = preg_replace( '/[^A-Za-z0-9-]/', '', $text );\n\treturn strtolower( $text );\n}", "protected function getUnconsidered()\n {\n $tempStr = $this->excelRow->model_description;\n\n foreach($this->capRangeWordmapping as $pattern => $replacement)\n {\n $tempStr = preg_replace(\"/{$pattern}/i\", $replacement, $tempStr);\n }\n\n $words = explode(' ', $tempStr);\n\n if(isset($words[2]) && in_array($words[2], $this->secoundWordOfCapRange))\n {\n $words[0] = $words[1] = $words[2] = null;\n }\n else\n {\n $words[0] = $words[1] = null;\n }\n\n $tempStr = implode(' ', $words);\n\n $tempStr = preg_replace(\"/\".(join('|', $this->cmodNameWords)). \"/i\", '', $tempStr );\n $tempStr = preg_replace(\"/\".(join('|', $this->considerEngineSizeWords)). \"/i\", '', $tempStr );\n $tempStr = preg_replace(\"/\\d+.ps|\\d+.PS/i\", '' ,$tempStr );\n $tempStr = preg_replace(\"/[0-9]*\\.[0-9]+/i\", '' ,$tempStr );\n $tempStr = preg_replace(\"/\\d-speed/i\", '' ,$tempStr );\n $tempStr = preg_replace(\"/cylinder on demand/i\", '' ,$tempStr );\n\n foreach($this->manualWordCheckingList as $word)\n {\n $tempStr = preg_replace(\"/{$word}/i\", '' ,$tempStr );\n }\n\n return preg_replace(\"/ * /\", \" \", trim($tempStr));\n }", "protected function clean_input_keys($str) {\n\t\t\n\t\tif ( ! preg_match('#^[&a-zA-Z0-9\\.:_/\\-\\s]+$#uD', $str)) {\n\t\t\techo $str.'<br />';\n\t\t\texit('Disallowed key characters in global data.');\n\t\t}\n\n\t\treturn $str;\n\t}", "function strip_invalid($arr) {\r\n return array_filter($arr, function($val) {\r\n return !preg_match('|[^A-Z0-9\\-\\.]|i', $val);\r\n });\r\n}", "function threeLetterWord() {\n\t$consonants = array(\"b\", \"c\", \"d\", \"f\", \"g\", \"h\", \"j\", \"k\", \"l\", \"m\", \"n\", \"p\", \"q\", \"r\", \"s\", \"t\", \"v\", \"w\", \"x\", \"y\", \"z\");\n\t$vowels = array('a', 'e', 'i', 'o', 'u');\n\t$str = $consonants[array_rand($consonants)].$vowels[array_rand($vowels)].$consonants[array_rand($consonants)];\n\t$badWords = array(\"bum\", \"tit\", \"cum\", \"dic\", \"dik\", \"pot\", \"fap\", \"fat\", \"coc\", \"cok\", \"jew\",\n\t \"fuk\", \"fuc\", \"jiz\", \"fag\", \"git\", \"nut\", \"vag\", \"sex\", \"nob\", \"cox\", \"kok\", \"gay\", \"sob\", \"sux\");\n\tif (in_array($str, $badWords)) {\n $str = threeLetterWord();\n\t}\n\treturn $str;\n}", "function normalize_special_characters($str, $unwanted=false) {\n \n\t# Quotes cleanup\n\t$str = str_replace(chr(ord(\"`\")), \"'\", $str);\n\t$str = str_replace(chr(ord(\"´\")), \"'\", $str);\n\t$str = str_replace(chr(ord(\"„\")), \",\", $str);\n\t$str = str_replace(chr(ord(\"`\")), \"'\", $str);\n\t$str = str_replace(chr(ord(\"´\")), \"'\", $str);\n\t$str = str_replace(chr(ord(\"“\")), \"\\\"\", $str);\n\t$str = str_replace(chr(ord(\"”\")), \"\\\"\", $str);\n\t$str = str_replace(chr(ord(\"´\")), \"'\", $str);\n\n\t$unwanted_array = array('Š'=>'S', 'š'=>'s', 'Ž'=>'Z', 'ž'=>'z', 'À'=>'A', 'Á'=>'A', 'Â'=>'A', 'Ã'=>'A', 'Ä'=>'A', 'Å'=>'A', 'Æ'=>'A', 'Ç'=>'C', 'È'=>'E', 'É'=>'E', 'Ê'=>'E', 'Ë'=>'E', 'Ì'=>'I', 'Í'=>'I', 'Î'=>'I', 'Ï'=>'I', 'Ñ'=>'N', 'Ò'=>'O', 'Ó'=>'O', 'Ô'=>'O', 'Õ'=>'O', 'Ö'=>'O', 'Ø'=>'O', 'Ù'=>'U', 'Ú'=>'U', 'Û'=>'U', 'Ü'=>'U', 'Ý'=>'Y', 'Þ'=>'B', 'ß'=>'Ss', 'à'=>'a', 'á'=>'a', 'â'=>'a', 'ã'=>'a', 'ä'=>'a', 'å'=>'a', 'æ'=>'a', 'ç'=>'c', 'è'=>'e', 'é'=>'e', 'ê'=>'e', 'ë'=>'e', 'ì'=>'i', 'í'=>'i', 'î'=>'i', 'ï'=>'i', 'ð'=>'o', 'ñ'=>'n', 'ò'=>'o', 'ó'=>'o', 'ô'=>'o', 'õ'=>'o', 'ö'=>'o', 'ø'=>'o', 'ù'=>'u', 'ú'=>'u', 'û'=>'u', 'ý'=>'y', 'ý'=>'y', 'þ'=>'b', 'ÿ'=>'y');\n\tif($unwanted)\n \t$str = strtr($str, $unwanted_array);\n\n\t# Bullets, dashes, and trademarks\n\t$str = str_replace(chr(149), \"&#8226;\", $str);\t# bullet •\n\t$str = str_replace(chr(150), \"&ndash;\", $str);\t# en dash\n\t$str = str_replace(chr(151), \"&mdash;\", $str);\t# em dash\n\t$str = str_replace(chr(153), \"&#8482;\", $str);\t# trademark\n\t$str = str_replace(chr(169), \"&copy;\", $str);\t# copyright mark\n\t$str = str_replace(chr(174), \"&reg;\", $str);\t# registration mark\n\n\treturn $str;\n}", "public function remove($word)\n {\n return preg_replace('/-*(ku|mu|nya)$/', '', $word, 1);\n }", "public static function alphaChars()\n {\n return self::oneOf(\n self::choose(65, 90),\n self::choose(97, 122)\n )->fmap('chr');\n }", "public static function GetAlphaNumericCharacters()\n {\n $ascii = self::GetCharacters();\n\n return preg_replace('/[^A-Z0-9]*/i', '', $ascii);\n }", "public function displayCorrectlyGuessedLetters() {\n $char = '-';\n $secretWord = \"\";\n $allGuesses = str_split($this->allUsersGuesses);\n for ($i = 0; $i < strlen($this->hangManWord); $i++){\n $char = '-';\n for($x = 0; $x < count($allGuesses); $x++) {\n if($this->hangManWord[$i] == $allGuesses[$x]) {\n $char = $allGuesses[$x];\n }\n }\n $secretWord .= '\n <ul id=\"my-word\">\n <h1><li>'. $char .'</li></h1>\n </ul>\n ';\n $this->setCorrectGuessCharacter($char);\n }\n return $secretWord;\n }", "public function filtering(): string;", "function AviaSpecialCharacters()\n\t{\n\t\treturn avia_special_characters::instance();\n\t}", "private function _remove_invisible_characters($str) {\n\t\tstatic $non_displayables = false;\n\n\t\tif (!$non_displayables) {\n\t\t\t// every control character except newline (dec 10), carriage return (dec 13), and horizontal tab (dec 09),\n\t\t\t$non_displayables = array('/%0[0-8bcef]/', // url encoded 00-08, 11, 12, 14, 15\n\t\t\t '/%1[0-9a-f]/', // url encoded 16-31\n\t\t\t '/[\\x00-\\x08]/', // 00-08\n\t\t\t '/\\x0b/', '/\\x0c/', // 11, 12\n\t\t\t '/[\\x0e-\\x1f]/'); // 14-31\n\t\t}\n\n\t\tdo {\n\t\t\t$cleaned = $str;\n\t\t\t$str = preg_replace($non_displayables, '', $str);\n\t\t} while ($cleaned != $str);\n\n\t\treturn $str;\n\t}", "function randLetter(){\n \t\t$alphabets = array_merge(range('A','Z'));\n \t\t$chars = '';\n \t\tfor($i = 0; $i<2; $i++){\n \t\t\t$rand = rand(0,10);\n \t\t\t$chars .= $alphabets[$rand];\n \t\t}\n \t\treturn strtoupper($chars);\n\t}", "function chMinuscule($valeur){\r\n $i=0;\r\n while($i < laTaille($valeur)){\r\n if($valeur[$i]>=\"A\" && $valeur[$i]<=\"Z\"){\r\n $codeValeur = ord($valeur[$i]) + 32;\r\n echo chr($codeValeur);\r\n }\r\n else{\r\n echo $valeur[$i];\r\n }\r\n $i=$i+1;\r\n }\r\n }", "public function alphabetOnlywithspace($data,$required,$min,$max);", "function BadWordFunc ($RemoveBadWordText) {\n\t$RemoveBadWordText = eregi_replace(\"fuc?k|[kc]unt|asshole|shit|fag|wank|dick|pu[zs]?[zs][yi]|bastard|s[kc]rew|mole[zs]ter|mole[sz]t|coc?k\", \"****\", $RemoveBadWordText);\n \treturn $RemoveBadWordText;\n}", "function doMkAccount ($string)\n{\n return preg_replace ('/[^a-z0-9\\-_:\\.]/i', '', trim (substr ($string, 0, 21)));\n}", "function remove_strange_chars($txt){\n\t\treturn(str_replace(array('<','>',\"'\",\";\",\"&\",\"\\\\\"),'',$txt));\n\t}", "public function removeNonAlpha()\n {\n $this->provider->removeNonAlpha();\n \n return $this;\n }", "function removeSpecialCharacter($name) {\n $lowerName = strtolower($name);\n $what = array( 'ä','ã','à','á','â','ê','ë','è','é','ï','ì','í','ö','õ','ò','ó','ô','ü','ù','ú','û','À','Á','É','Í','Ó','Ú','ñ','Ñ','ç','Ç',' ','-','(',')',',',';',':','|','!','\"','#','$','%','&','/','=','?','~','^','>','<','ª','º', \"'\" );\n $by = array( 'a','a','a','a','a','e','e','e','e','i','i','i','o','o','o','o','o','u','u','u','u','A','A','E','I','O','U','n','n','c','C','-','-','-','-','-','-','-','-','-','-','-','-','-','-','-','-','-','-','-','-','-','-','-', '-');\n\n return str_replace($what, $by, $lowerName);\n }", "public static function stripFunkyChars($string = '') {\n\n foreach (StringTools::funkyCharsMap() as $weird => $normal) {\n $string = str_replace($weird, '', $string);\n }\n\n return $string;\n }", "function hide($string) {\n\t$new_string = substr_replace($string, \"*****\", 17);\n\treturn $new_string;\n}", "public static function filter($name)\n {\n $result = '';\n $tot = strlen($name);\n for ($i = 0; $i < $tot; $i += 1) {\n $ord = ord($name[$i]);\n if ($ord > 32 && $ord < 127 && $ord !== 58) {\n $result .= $name[$i];\n }\n }\n return $result;\n }", "function badwords($str){\r\n\r\n $query = mysql_query(\"SELECT word FROM naughtywords\");\r\n \r\n while ($info = mysql_fetch_array($query)){\r\n if (strstr(strtolower($str), strtolower($info[\"word\"])) == TRUE){\r\n $bad = 1;\r\n }\r\n }\r\n \r\n if ($bad == 1){\r\n return TRUE;\r\n }else{\r\n return FALSE;\r\n } \r\n}", "public static function filterNonSQLChars($string, $nonFilter = null);", "function sanitize($name)\n {\n return preg_replace('/[^A-Za-z0-9\\-]/', '', $name);\n }", "function getLettersArray()\n{\n return [\n 'a' => true,\n 'b' => true,\n 'c' => true,\n 'd' => true,\n 'e' => true,\n 'f' => true,\n 'g' => true,\n 'h' => true,\n 'i' => true,\n 'j' => true,\n 'k' => true,\n 'l' => true,\n 'm' => true,\n 'n' => true,\n 'o' => true,\n 'p' => true,\n 'q' => true,\n 'r' => true,\n 's' => true,\n 't' => true,\n 'u' => true,\n 'v' => true,\n 'w' => true,\n 'x' => true,\n 'y' => true,\n 'z' => true,\n ];\n}", "function remove_lostpassword_text ( $text ) { if ($text == 'Hai dimenticato la tua password?'){\n\t\t$text = '';\n\t} return $text; \n}", "function getKats($akt) {\r\n $katAR = array();\r\n $kats = '';\r\n $erg = db_query(\"SELECT DISTINCT `news_kat` FROM `prefix_news`\");\r\n while ($row = db_fetch_object($erg)) {\r\n $katAr[ ] = $row->news_kat;\r\n }\r\n $katAr[ ] = 'Allgemein';\r\n $katAr = array_unique($katAr);\r\n foreach ($katAr as $a) {\r\n if (trim($a) == trim($akt)) {\r\n $sel = ' selected';\r\n } else {\r\n $sel = '';\r\n }\r\n $kats .= '<option' . $sel . '>' . $a . '</option>';\r\n }\r\n return ($kats);\r\n}", "public function filterInput(string $input) : string {\n return trim(preg_replace('/[^a-zA-Z0-9\\s]/', '',$input));\t\n }", "public function randomString(){\n $alpha = \"abcdefghijklmnopqrstuvwxyz\";\n $alpha_upper = strtoupper($alpha);\n $numeric = \"0123456789\";\n $special = \".-+=_,!@$#*%<>[]{}\";\n $chars = $alpha . $alpha_upper . $numeric; \n $pw = ''; \n $chars = str_shuffle($chars);\n $pw = substr($chars, 8,8);\n return $pw;\n }", "function mswStripMultibyteChars($str) {\n $result = '';\n $length = strlen($str);\n for ($i = 0; $i < $length; $i++){\n $ord = ord($str[$i]);\n if ($ord >= 240 && $ord <= 244) {\n $result .= '?';\n $i += 3;\n } else {\n $result .= $str[$i];\n }\n }\n return $result;\n}", "function isNoScript($text)\n{\n $allowed = array('.','=','-','+', '_',' ','\"',\"'\",'[','(',']',')','$',':','%','!','/','?','*','&','@','|'); // you can add here more value, you want to allow.\n if(ctype_alnum(str_replace($allowed, '', $text ))) {\n return TRUE;\n } else {\n return FALSE;\n }\n}", "public function obfuscate($value)\n\t{\n\t\t$safe = '';\n\n\t\tforeach (str_split($value) as $letter)\n\t\t{\n\t\t\tif (ord($letter) > 128) return $letter;\n\n\t\t\t// To properly obfuscate the value, we will randomly convert each letter to\n\t\t\t// its entity or hexadecimal representation, keeping a bot from sniffing\n\t\t\t// the randomly obfuscated letters out of the string on the responses.\n\t\t\tswitch (rand(1, 3))\n\t\t\t{\n\t\t\t\tcase 1:\n\t\t\t\t\t$safe .= '&#'.ord($letter).';'; break;\n\n\t\t\t\tcase 2:\n\t\t\t\t\t$safe .= '&#x'.dechex(ord($letter)).';'; break;\n\n\t\t\t\tcase 3:\n\t\t\t\t\t$safe .= $letter;\n\t\t\t}\n\t\t}\n\n\t\treturn $safe;\n\t}", "function get_character_filter_options() {\n return drupal_map_assoc([\n 'html_strip',\n 'mapping',\n 'pattern_replace',\n ]);\n}", "function clean_my_words($words) {\n return strtolower($words);\n }", "function MCW_make_name_acceptable($name) {\n \n $name = strtr($name,\" \",\"_\");\n $name=preg_replace(\"/[^a-zA-Z0-9_äöüÄÖÜ]/\" , \"\" , $name);\n return $name;\n }", "private function process_alpha($value)\n {\n return ! preg_match('/[^a-zA-Z]/', $value);\n }", "public static function clearSpecial($cadena){\n\t\t$cadena = htmlentities($cadena);\n\t\t$cadena = preg_replace('/\\&(.)[^;]*;/', '\\\\1', $cadena);\n\t\t$cadena = preg_replace(\"([^A-Za-z0-9_])\",\"\", $cadena);\n\n\t\treturn $cadena;\n\t}", "public function removeNonAlphanumeric()\n {\n $this->provider->removeNonAlphanumeric();\n \n return $this;\n }", "function remover_caracter($string) {\n\t\t $string = preg_replace(\"/[áàâãä]/\", \"a\", $string);\n\t\t $string = preg_replace(\"/[ÁÀÂÃÄ]/\", \"A\", $string);\n\t\t $string = preg_replace(\"/[éèê]/\", \"e\", $string);\n\t\t $string = preg_replace(\"/[ÉÈÊ]/\", \"E\", $string);\n\t\t $string = preg_replace(\"/[íì]/\", \"i\", $string);\n\t\t $string = preg_replace(\"/[ÍÌ]/\", \"I\", $string);\n\t\t $string = preg_replace(\"/[óòôõö]/\", \"o\", $string);\n\t\t $string = preg_replace(\"/[ÓÒÔÕÖ]/\", \"O\", $string);\n\t\t $string = preg_replace(\"/[úùü]/\", \"u\", $string);\n\t\t $string = preg_replace(\"/[ÚÙÜ]/\", \"U\", $string);\n\t\t $string = preg_replace(\"/ç/\", \"c\", $string);\n\t\t $string = preg_replace(\"/Ç/\", \"C\", $string);\n\t\t $string = preg_replace(\"/[][><}{)(:;,!?*%~^`&#@]/\", \"\", $string);\n\t\t //$string = preg_replace(\"/ /\", \"_\", $string);\n\t\t return $string;\n\t\t}", "function remove_non_coding_prot($seq) {\r\n // change the sequence to upper case\r\n $seq=strtoupper($seq);\r\n // remove non-coding characters([^ARNDCEQGHILKMFPSTWYVX\\*])\r\n $seq = preg_replace (\"([^ARNDCEQGHILKMFPSTWYVX\\*])\", \"\", $seq);\r\n return $seq;\r\n}", "function filterString($string){\n $string = filter_var(trim($string), FILTER_SANITIZE_SPECIAL_CHARS); // Removes a small list of special chars\n // $string = filter_var(trim($string), FILTER_SANITIZE_FULL_SPECIAL_CHARS); // Removes all special chars\n return $string;\n}", "public function filter($value)\n {\n $whiteSpace = $this->allowWhiteSpace ? '\\s' : '';\n\n if ($this->englishAlphabethOnly || !self::$unicodeEnabled) {\n $pattern = '/[^a-zA-Z' . $whiteSpace . ']/';\n }\n else {\n $pattern = '/[^\\p{L}' . $whiteSpace . ']/u';\n }\n\n return preg_replace($pattern, '', (string) $value);\n }", "public static function excludefromSearch($string)\r\n {\r\n $exploded= explode(\" \",$string);\r\n\r\n $indice= DiccionarioIndexacion::pivotsForSearch();\r\n // ldd($indice);\r\n $words=DiccionarioIndexacion::excludedWordsForSearch();\r\n foreach ($exploded as $pos=>$value)\r\n {\r\n\r\n $value=lcfirst($value);\r\n if(strlen($value)==0)\r\n continue;\r\n $exploded[$pos]=DiccionarioIndexacion::normalizeString($value);\r\n $val = $value[0];\r\n if (is_numeric($val)) {\r\n // ld($value[0]);\r\n continue;\r\n }\r\n $numericValue = ord($value{0});\r\n $iterator= $numericValue;\r\n if (!isset($indice[$iterator]))\r\n continue;\r\n $end=$indice[$iterator];\r\n if ($iterator==\"97\")\r\n $start=0;\r\n else\r\n {\r\n while (!isset($indice[$iterator-1]))\r\n $iterator--;\r\n $start=$indice[$iterator-1];\r\n }\r\n\r\n // $letter = chr(98);\r\n for ($i=$start;$i<$end;$i++)\r\n {\r\n\r\n if ($value == $words[$i])\r\n {\r\n unset($exploded[$pos]);\r\n }\r\n }\r\n }\r\n return $exploded;\r\n\r\n }", "function mixWord($word)\n{\n $wordSigns = preg_split('//u', $word, -1, PREG_SPLIT_NO_EMPTY);\n\n //get first and last characters from word\n $firstLetter = array_shift($wordSigns);\n $lastLetter = array_pop($wordSigns);\n\n //add punctuation to last letter if exists at the end of word\n if (preg_match('/[.,:?!-]/', $lastLetter)) {\n $lastLetter = array_pop($wordSigns) . $lastLetter;\n }\n\n //shuffle middle characters\n shuffle($wordSigns);\n\n $mixedWord = $firstLetter . join(\"\", $wordSigns) . $lastLetter;\n\n return $mixedWord;\n}", "function StripValidator ()\n {\n\n $this->params['chars'] = array();\n\n }", "function filter($string){\n\t\t\t\t\t\t$string = htmlspecialchars($string);\n\t\t\t\t\t\t$string = preg_replace(array('`[^a-z0-9]`i','`[-]+`'), '-', $string);\n\t\t\t\t\t\t$string = mysql_escape_string($string);\n\t\t\t\t\t\treturn $string;\n\t\t\t\t\t}", "public function get_not_assigned_chars($corp_id) {\n\t\t\n\t\t/*\n\t\t * select chars whos id is not found in the relation table.\n\t\t * try with double left join\n\t\t * http://stackoverflow.com/questions/10968767/mysql-select-rows-that-do-not-have-matching-column-in-other-table\n\t\t * \n\t\t * SELECT `ownerName2`\n\t\t * FROM wp_tr_characters\n\t\t * LEFT JOIN wp_tr_characters_relations ON wp_tr_characters_relations.related_char_id = wp_tr_characters.id\n\t\t * WHERE wp_tr_characters_relations.related_char_id IS NULL;\n\t\t *\n\t\t *\n\t\t */\n\t\tglobal $wpdb;\n\t\t\n\t\t$sql = \"SELECT `ownerName2`,`corp_id`,`id`\nFROM \" . $wpdb->prefix . \"tr_characters\nLEFT JOIN \" . $wpdb->prefix . \"tr_users_chars ON \" . $wpdb->prefix . \"tr_users_chars.char_id = \" . $wpdb->prefix . \"tr_characters.id\nWHERE \" . $wpdb->prefix . \"tr_users_chars.char_id IS NULL AND \" . $wpdb->prefix . \"tr_characters.corp_id='$corp_id' ORDER BY `ownerName2`;\";\n\t\t\n\t\t$unrelated_chars = $wpdb->get_results ( $sql, ARRAY_A );\n\t\t\n\t\tif (count ( $unrelated_chars ) > 0) {\n\t\t\treturn $unrelated_chars;\n\t\t}\n\t\t\n\t\treturn null;\n\t}", "function get_string_to_exclude_all_but_provided_categories($category) {\n\t$category_ids = array_keys(get_all_category_objects_by_id());\n\tif (!is_array($category)) { $category = array($category); }\n\treturn implode(\" and \", array_diff($category_ids, $category));\n}", "function get_grade_letters() {\n global $COURSE;\n $context = get_context_instance(CONTEXT_COURSE, $COURSE->id);\n $letters = grade_get_letters($context);\n }", "function clean($string) {\n $string = str_replace('%', ' ', $string); // Replaces all spaces with hyphens.\n\n return $result = preg_replace(\"/[^a-zA-Z0-9]+/\", \"\", $string); // Removes special chars. // Removes special chars.\n }", "public function remove_all_caps()\n {\n }" ]
[ "0.67484546", "0.64233357", "0.6299002", "0.61772573", "0.61166096", "0.6093441", "0.6057593", "0.6055035", "0.5956421", "0.58856964", "0.5852422", "0.57847553", "0.5777766", "0.57688373", "0.57209826", "0.5664933", "0.56099194", "0.5604945", "0.5599131", "0.5581954", "0.55793697", "0.55737823", "0.5564575", "0.55572927", "0.5551016", "0.55443746", "0.5529755", "0.5529596", "0.5524825", "0.55224437", "0.55064803", "0.5504139", "0.54979634", "0.54949635", "0.5475315", "0.5460943", "0.54588467", "0.5450784", "0.5439981", "0.5438028", "0.5427352", "0.5421522", "0.53987706", "0.53928894", "0.5383905", "0.53821546", "0.5381251", "0.53660154", "0.53633666", "0.5349151", "0.5348776", "0.53437096", "0.5332447", "0.53039545", "0.5299721", "0.529775", "0.5291901", "0.52877146", "0.52833855", "0.52591187", "0.5252428", "0.52412975", "0.5237669", "0.523704", "0.5223426", "0.52225965", "0.5218298", "0.5217845", "0.5205332", "0.5200523", "0.51943576", "0.5192665", "0.51915026", "0.5190922", "0.51898766", "0.51874435", "0.51844347", "0.518352", "0.51828927", "0.5181001", "0.5179329", "0.51785743", "0.51753753", "0.51747787", "0.51636755", "0.5161019", "0.51581883", "0.51510674", "0.51399076", "0.51372385", "0.5135993", "0.51266074", "0.51139504", "0.510635", "0.5102106", "0.509685", "0.50961936", "0.5092043", "0.5087404", "0.5078895", "0.5073929" ]
0.0
-1
Agregar pedido, ruta de trabajo y cotizacion en la base de datos.
public function index($Id_Proceso) { $Permitido = array('Gerencia' => '', 'Plani' => '', 'Sistemas' => '', 'Ventas' => ''); $this->ver_sesion_m->acceso($Permitido); $this->ver_sesion_m->no_clientes(); //Validacion pequenha $Id_Proceso += 0; if(0 == $Id_Proceso) { show_404(); exit(); } //Modelo que verifica si tiene ruta sin finalizar este proceso $this->load->model('pedidos/procesando_m', 'procesando'); //Se realiza la verificacion $Estado = $this->procesando->proceso($Id_Proceso); if('activo' == $Estado) { //Si el proceso tiene una ruta sin finalizar se redirige header('location: /pedidos/buscar/index/ruta'); exit(); } //Variables necesarias en el encabezado $Variables = array( 'Titulo_Pagina' => 'Agregar Pedido', 'Mensaje' => '', 'Formulario' => '/pedidos/ingresar/index/'.$Id_Proceso ); //Se carga el encabezado de pagina $this->load->view('encabezado_v', $Variables); //Necesito la informacion del proceso a agregar $this->load->model('procesos/buscar_proceso_m', 'info'); //Solicito la informacion completa $Variables['Info_Proceso'] = $this->info->id_proceso($Id_Proceso); //Si quieren hacer trampa if('' == $Variables['Info_Proceso']) { show_404(); exit(); } //Necesito la miniatura $Consulta = ' select url from proceso_imagenes where id_proceso = "'.$Id_Proceso.'" order by id_proceso_imagenes desc limit 0, 1 '; $Resultado = $this->db->query($Consulta); $Variables['Miniatura'] = ''; if(1 == $Resultado->num_rows()) { $Variables['Miniatura'] = $Resultado->row_array(); $Variables['Miniatura'] = $Variables['Miniatura']['url']; } //Modulo para obtener el listado de los tipos de trabajo $this->load->model('general/tipos_trabajo_m', 'tipos_t'); //Solicito la informacion completa $Variables['Tipos_Trabajo'] = $this->tipos_t->tipos(); //Modulo para obtener el listado de los usuarios $this->load->model('usuarios/listado_usuario_m', 'usuarios'); //Solicito la informacion completa $Variables['Usuarios'] = $this->usuarios->listado('s'); $Variables['Dpto_Usuario'] = $this->usuarios->departamento_usuario(); //print_r($Variables['Dpto_Usuario']); $Variables['Detalle_reproceso'] = array(); //Listado de las rutas validas para este cliente $this->load->model('ruta/ruta_dinamica_m', 'rutad'); $Variables['Detalle_Rutas'] = $this->rutad->detalle_rutas( $Variables['Info_Proceso']['id_cliente'] ); //print_r($Variables['Detalle_Rutas']);exit(); //Modulo para obtener el listado de los departamentos $this->load->model('departamentos/listado_m', 'departamentos'); //Listado de departamentos activos y con formato especial $Variables['Departamentos'] = $this->departamentos->buscar_dptos('s','si'); //Modulo para obtener el listado de los productos para este cliente $this->load->model('productos/prod_cliente_m', 'productos'); //Listado de departamentos activos y con formato especial $Variables['Productos'] = $this->productos->listado( $Variables['Info_Proceso']['id_cliente'], 's' ); //Extraemos las causas, motivos, razones o circunstancias del porque el trabajo puede ser un reproceso $this->load->model('pedidos/detalle_reproceso_m', 'reproceso'); $Variables['Detalle_reproceso'] = $this->reproceso->detalle_reproceso(); $Variables['Ruta_Actual'] = array(); $Variables['Redir'] = '/pedidos/agregar/index/'.$Id_Proceso; $Variables['num_cajas'] = 1; //Creacion del Formulario e informacion del proceso $this->load->view('pedidos/agregar_modificar_v', $Variables); //Ruta de trabajo $this->load->view('pedidos/ruta_v', $Variables); //Hoja de cotizacion $this->load->view('pedidos/cotizacion_v', $Variables); //Se carga el pie de pagina $this->load->view('pedidos/agregar_modificar_pie_v'); //Se carga el pie de pagina $this->load->view('pie_v'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function EntregarPedidos()\n\t{\n\t\tself::SetNames();\n\t\t\n\t\t$sql = \" update ventas set \"\n\t\t\t .\" cocinero = ? \"\n\t\t\t .\" where \"\n\t\t\t .\" codventa = ?;\n\t\t\t \";\n\t\t$stmt = $this->dbh->prepare($sql);\n\t\t$stmt->bindParam(1, $cocinero);\n\t\t$stmt->bindParam(2, $codventa);\n\t\t\n\t\t$cocinero = strip_tags(\"0\");\n\t\t$codventa = strip_tags(base64_decode($_GET[\"codventa\"]));\n\t\t$sala = strip_tags(base64_decode($_GET[\"nombresala\"]));\n\t\t$mesa = strip_tags(base64_decode($_GET[\"nombremesa\"]));\n\t\t$stmt->execute();\n\t\t\n echo \"<div class='alert alert-info'>\";\n\t\techo \"<button type='button' class='close' data-dismiss='alert' aria-hidden='true'>&times;</button>\";\n\t\techo \"<center><span class='fa fa-check-square-o'></span> EL PEDIDO DE LA \".$sala.\" Y \".$mesa.\" FUE ENTREGADO EXITOSAMENTE </center>\";\n\t\techo \"</div>\"; \n\t\texit;\n\t\n }", "public function add(){\n if (isset($_SESSION['identity'])) {// Comprobamos que hay un usuario logueado\n $usuario_id = $_SESSION['identity']->id;// Obtenemos el ID del Usuario logueado\n $sProvincia = isset($_POST['province']) ? $_POST['province'] : false;\n $sLocalidad = isset($_POST['location']) ? $_POST['location'] : false;\n $sDireccion = isset($_POST['address']) ? $_POST['address'] : false;\n\n $stats = Utils::statsCarrito();\n $coste = $stats['total'];// Obtenemos el coste total del pedido\n\n\n if ($sProvincia && $sLocalidad && $sDireccion){\n // Guardar datos en bd\n $oPedido = new Pedido();\n $oPedido->setUsuarioId($usuario_id);\n $oPedido->setProvincia($sProvincia);\n $oPedido->setLocalidad($sLocalidad);\n $oPedido->setDireccion($sDireccion);\n $oPedido->setCoste($coste);\n\n $save = $oPedido->savePedido();// Insertamos el Pedido en BD\n\n // Guardar Linea Pedido\n $save_linea = $oPedido->save_linea();\n\n if ($save && $save_linea){// Comprobamos que La inserccion a sido correcta\n $_SESSION['pedido'] = \"complete\";\n }else{\n $_SESSION['pedido'] = \"failed\";\n }\n }else{\n $_SESSION['pedido'] = \"failed\";\n\n }\n header(\"Location:\" . base_url .'pedido/confirmado');\n }else{\n // Redirigir al Index\n header(\"Location:\" . base_url);\n }\n }", "function addPedido($dni, $nombre, $apellido, $ubicacion, $telefono, $imagen, $claseVehiculo, $franjaHoraria)\n {\n\n //si está seteada, quiere decir que hay una imagen en la carpeta temporal de php.\n if (isset($imagen[\"fileTemp\"])) {\n move_uploaded_file($imagen[\"fileTemp\"], $imagen[\"filePath\"]);\n $imagen = $imagen[\"filePath\"];\n } else {\n $imagen = null;\n }\n\n $sentencia = $this->db->prepare(\"INSERT INTO pedido(usuario_asignado, nombre, apellido, ubicacion, telefono, foto, clase_vehiculo ,franja_horaria) VALUES(?,?,?,?,?,?,?,?)\");\n $sentencia->execute(array($dni, $nombre, $apellido, $ubicacion, $telefono, $imagen, $claseVehiculo, $franjaHoraria));\n }", "public function RegistrarDatosPlantaPersonal(HojaVida $data){\n $modelo = new HojaVida();\n $fechahora = $modelo->get_fecha_actual();\n $datosfecha = explode(\" \",$fechahora);\n $fechalog = $datosfecha[0];\n $horalog = $datosfecha[1];\n \n $tiporegistro = \"Planta de Personal\";\n $accion = \"Registro en \".$tiporegistro.\" En el Sistema (Planta de Personal) TALENTO HUMANO\";\n $detalle = $_SESSION['nombre'].\" \".$accion.\" \".$fechalog.\" \".\"a las: \".$horalog;\n $tipolog = 15;\n $idusuario = $_POST['id_usuarioR'];\n $idusuarioR = $_SESSION['idUsuario'];\n try {\n $this->pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); \n //EMPIEZA LA TRANSACCION\n $this->pdo->beginTransaction();\n\n $sql = \"INSERT INTO `th_planta_personal`(`pla_id_usuario`, `pla_fecha`, `pla_id_cargo`, `pla_id_clase_nombra`, \n `pla_flag_licencia`, `pla_num_resolucion`,`pla_id_res_nombramiento`, `pla_fecha_inicio`, `pla_fecha_fin`, \n `pla_id_ubicacion`, `pla_id_area_cs`, `pla_num_resolu_tras`, `pla_id_usuario_reemplaza`, `pla_id_userR`, \n `pla_flag_alerta`,`pla_estado`) \n VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)\";\n $this->pdo->prepare($sql)\n ->execute(\n array(\n $data->id_usuario,\n $fechalog,\n $data->id_cargo,\n $data->pla_id_clase_nombra,\n $data->pla_flag_licencia,\n $data->num_resolucion_nombramiento,\n 0,\n $data->fecha_inicio,\n $data->fecha_fin,\n $data->id_ubicacion,\n $data->id_area,\n $data->num_resolucion_traslado,\n $data->id_user_reemplaza,\n $idusuarioR,\n $data->flag_alerta,\n 1\n )\n ); \n $this->pdo->exec(\"INSERT INTO log (fecha, accion,detalle,idusuario,idtipolog) VALUES ('$fechalog', '$accion','$detalle','$idusuario','$tipolog')\");\n \n //SE TERMINA LA TRANSACCION \n $this->pdo->commit();\n } catch (Exception $e) {\n $this->pdo->rollBack();\n die($e->getMessage());\n }\n }", "public function insertaPedido($pedido) {\n $codPedido = $pedido->getId();\n $mesa = $pedido->getMesa();\n $estado = $pedido->getEstado();\n $fecha = $pedido->getFecha();\n $elementos = $pedido->getElementos();\n\n /* Imprimir Datos */\n// echo \"- Pedido: \".$codPedido.\"<br>\";\n// echo \"- Mesa: \".$mesa.\"<br>\";\n// echo \"- Estado: \".$estado.\"<br>\";\n// echo \"- Fecha: \".$fecha.\"<br>\";\n// echo \"- Numero de elementos: \".count($elementos).\"<br><br>\";\n\n /* Insercion de los datos del pedido */\n $sql1 = \"INSERT INTO pedido VALUES($codPedido,$mesa,$estado,$fecha)\";\n $result1 = $this->bd->query($sql1);\n\n /* Para cada pedido, inserto los datos de sus elementos */\n for($i=0 ; $i<count($elementos); $i++) {\n /* Informacion del elemento del pedido */\n $codElem = $elementos[$i]->getId();\n $comentario = $elementos[$i]->getComentario();\n $estadoElem = $elementos[$i]->getEstado();\n $elemCarta = $elementos[$i]->getElemento();\n $codElemCarta = $elemCarta->getId();\n\n /* Imprimir Datos */\n// echo \"--- Elemento Pedido: \".$codElem.\"<br>\";\n// echo \"--- Comentario: \".$comentario.\"<br>\";\n// echo \"--- Estado: \".$estadoElem.\"<br>\";\n// echo \"--- Elemento Carta: \".$codElemCarta.\"<br><br>\";\n\n /* Insercion de los datos del elemento del pedido */\n $sql2 = \"INSERT INTO elementoPedido VALUES($codElem,$estadoElem,\\\"$comentario\\\")\";\n $result2 = $this->bd->query($sql2);\n $sql3 = \"INSERT INTO tieneElemento VALUES($codElem,$codPedido)\";\n $result3 = $this->bd->query($sql3);\n \n /* Insercion de los datos del elemento de la carta*/\n if(get_class($elemCarta) == \"ElementoPlato\") {\n $sql4 = \"INSERT INTO elementoColaCocina VALUES($codElem)\";\n $result4 = $this->bd->query($sql4);\n $sql5 = \"INSERT INTO asociaPlato VALUES($codElem,$codElemCarta)\";\n $result5 = $this->bd->query($sql5);\n }\n else if(get_class($elemCarta) == \"ElementoBebida\") {\n $sql4 = \"INSERT INTO elementoColaBar VALUES($codElem)\";\n $result4 = $this->bd->query($sql4);\n $sql5 = \"INSERT INTO asociaBebida VALUES($codElem,$codElemCarta)\";\n $result5 = $this->bd->query($sql5);\n }\n }\n }", "function entrada_por_traspaso(){\n\t\t$e= new Entrada();\n\t\t$e->usuario_id=$GLOBALS['usuarioid'];\n\t\t$e->empresas_id=$GLOBALS['empresaid'];\n\t\t$related = $e->from_array($_POST);\n\t\t//if($e->costo_unitario=='undefined') $e->costo_unitario=0;\n\t\t$e->espacios_fisicos_id=$GLOBALS['espacios_fisicos_id'];\n\t\t$e->costo_total=($e->cantidad * $e->costo_unitario);\n\t\t$e->cproveedores_id=1;\n\t\t$e->fecha=date(\"Y-m-d H:i:s\");\n\t\tif($e->id==0)\n\t\t\tunset($e->id);\n\t\tif($e->save($related)) {\n\t\t\techo $e->id;\n\t\t} else\n\t\t\techo 0;\n\t}", "function insertarRelacionProceso(){\n\n $this->objFunc=$this->create('MODObligacionPago');\n if($this->objParam->insertar('id_relacion_proceso_pago')){\n $this->res=$this->objFunc->insertarRelacionProceso($this->objParam);\n } else{\n $this->res=$this->objFunc->modificarRelacionProceso($this->objParam);\n }\n $this->res->imprimirRespuesta($this->res->generarJson());\n }", "public function insertar(){\n $pdo=Conexion::conectar();\n $sentencia = $pdo->prepare(\"INSERT INTO empleado (id, nombre, apellido,direccion,telefono,email,estado,firma,jefe,id_cargo,id_departamento) VALUES (:id, :nombre, :apellido,:direccion,:telefono,:email,:estado,:firma,:jefe,:id_cargo,:id_departamento)\");\n $sentencia->bindParam(':id', $id);\n $sentencia->bindParam(':nombre', $nombre);\n $sentencia->bindParam(':apellido', $apellido);\n $sentencia->bindParam(':direccion', $direccion);\n $sentencia->bindParam(':telefono', $telefono);\n $sentencia->bindParam(':email', $email);\n $sentencia->bindParam(':estado', $estado);\n $sentencia->bindParam(':firma', $firma);\n $sentencia->bindParam(':jefe', $jefe);\n $sentencia->bindParam(':id_cargo', $id_cargo);\n $sentencia->bindParam(':id_departamento', $id_departamento);\n \n // estos los valores de los input\n $id=\"0700950454\";\n $nombre=\"aaa\";\n $apellido=\"ssss\";\n $direccion=\"sss\";\n $telefono=23323232;\n $email=\"asasas@asass.com\";\n $estado=1;\n $firma=\"NULL\";\n $jefe=\"0706430980\";\n $id_cargo=3;\n $id_departamento=16;\n $sentencia->execute();\n \n \n //CUANDO NO TIENE JEFE--=EL EMPLEADO ES JEFE (NO ENVIAR EL PARAMETRO JEFE,LA BDD AUTOMTICAMENTE PONE NULL)\n $pdo=Conexion::conectar();\n $sentencia = $pdo->prepare(\"INSERT INTO empleado (id, nombre, apellido,direccion,telefono,email,estado,firma,id_cargo,id_departamento) VALUES (:id, :nombre, :apellido,:direccion,:telefono,:email,:estado,:firma,:id_cargo,:id_departamento)\");\n $sentencia->bindParam(':id', $id);\n $sentencia->bindParam(':nombre', $nombre);\n $sentencia->bindParam(':apellido', $apellido);\n $sentencia->bindParam(':direccion', $direccion);\n $sentencia->bindParam(':telefono', $telefono);\n $sentencia->bindParam(':email', $email);\n $sentencia->bindParam(':estado', $estado);\n $sentencia->bindParam(':firma', $firma);\n $sentencia->bindParam(':id_cargo', $id_cargo);\n $sentencia->bindParam(':id_departamento', $id_departamento);\n \n // estos los valores de los inputs\n $id=\"0700950454\";\n $nombre=\"aaa\";\n $apellido=\"ssss\";\n $direccion=\"sss\";\n $telefono=23323232;\n $email=\"asasas@asass.com\";\n $estado=1;\n $firma=\"NULL\";\n $id_cargo=3;\n $id_departamento=16;\n $sentencia->execute();\n \n \n\n \n }", "function evt__Agregar()\n\t{\n\t\t$this->tabla()->resetear();\n\t\t$this->set_pantalla('pant_edicion');\n\t}", "function alta_compra(){\n\t\t$u= new Pr_pedido();\n\t\t$u->get_by_id($_POST['id']);\n\t\t$u->usuario_id=$GLOBALS['usuarioid'];\n\t\t$u->empresas_id=$GLOBALS['empresa_id'];\n\t\t$usuario=$this->usuario->get_usuario($GLOBALS['usuarioid']);\n\t\t//Encargada de Tienda\n\t\tif ($usuario->puesto_id==6 or $usuario->puesto_id==7) {\n\t\t\t$u->corigen_pedido_id=3;\n\t\t\t$u->usuario_validador_id=$u->usuario_id;\n\t\t} else {\n\t\t\t$u->corigen_pedido_id=2;\n\t\t}\n\t\t$u->fecha_alta=date(\"Y-m-d H:i:s\");\n\t\t$related = $u->from_array($_POST);\n\t\t//Adecuar las Fechas al formato YYYY/MM/DD\n\t\t$fecha_pago=explode(\" \", $_POST['fecha_pago']);\n\t\t$fecha_entrega=explode(\" \", $_POST['fecha_entrega']);\n\t\t$u->fecha_pago=\"\".$fecha_pago[2].\"-\".$fecha_pago[1].\"-\".$fecha_pago[0];\n\t\t$u->fecha_entrega=\"\".$fecha_entrega[2].\"-\".$fecha_entrega[1].\"-\".$fecha_entrega[0] ;\n\t\t// save with the related objects\n\t\tif($u->save($related)) {\n\t\t\techo form_hidden('id', \"$u->id\");\n\t\t\techo '<button type=\"submit\" id=\"boton1\" style=\"display:none;\">Actualizar Registro</button>';\n\t\t\techo \"<p id=\\\"response\\\">Datos Generales Guardados<br/><b>Capturar los detalles del pedido</b></p>\";\n\t\t} else\n\t\t\tshow_error(\"\".$u->error->string);\n\t}", "function guardarComida($arg) {\n\t\tSessionHandler()->check_session();\n\t\tdate_default_timezone_set('America/Argentina/La_Rioja');\n\t\t$ids = explode('@', $arg);\n\t\t$mesa = $ids[0];\n\t\t$comida = $ids[1];\n\t\t$cantidad = $ids[2];\n\t\t$pedidoId = $ids[3];\n\t\t\n\t\tif ($pedidoId != null || $pedidoId != 0 || $pedidoId != \"\") {\n\t\t\t$bp = new ComidaPedido();\n\t\t\t$bp->pedido = $pedidoId;\n\t\t\t$bp->comida = $comida;\n\t\t\t$bp->cantidad = $cantidad;\n\t\t\t$bp->save();\n\t\t\t\n\t\t\t$md = new Mesa();\n\t\t\t$md->mesa_id = $mesa;\n\t\t\t$md->get();\n\t\t\t$md->disponible = 2;\n\t\t\t$md->save();\n\t\t\tprint($pedidoId);exit;\n\t\t}\n\n\t\t$this->model->fecha = date('Y-m-d');\t\t\n\t\t$this->model->mesa = $mesa;\t\t\n\t\t$this->model->estado = 1;\t\t\n $this->model->save();\n\t\t\n\t\t$pedido_id = $this->model->pedido_id;\n\n\t\t$md = new Mesa();\n\t\t$md->mesa_id = $mesa;\n\t\t$md->get();\n\t\t$md->disponible = 2;\n\t\t$md->save();\n\t\t\n\t\t$bp = new ComidaPedido();\n\t\t$bp->pedido = $pedido_id;\n\t\t$bp->comida = $comida;\n\t\t$bp->cantidad = $cantidad;\n\t\t$bp->save();\n\t\tprint($pedido_id);exit;\n\n\t}", "public function inserirDados()\n\t\t{\n\t\t\t$insertIdoso = \"INSERT INTO idoso(logradouro,\n\t\t\t\t\t\t\t\t\t\ttipo_logradouro,\n\t\t\t\t\t\t\t\t\t\tnumero,\n\t\t\t\t\t\t\t\t\t\tcomplemento,\n\t\t\t\t\t\t\t\t\t\tbaiiro,\n\t\t\t\t\t\t\t\t\t\tcidade,\n\t\t\t\t\t\t\t\t\t\tuf,\n\t\t\t\t\t\t\t\t\t\tusuario_id_usuario)\n\t\t\t\t\t\t\t\tVALUES(:logradouro,\n\t\t\t\t\t\t\t\t\t\t:tipo_logradouro,\n\t\t\t\t\t\t\t\t\t\t:numero,\n\t\t\t\t\t\t\t\t\t\t:complemento,\n\t\t\t\t\t\t\t\t\t\t:baiiro,\n\t\t\t\t\t\t\t\t\t\t:cidade,\n\t\t\t\t\t\t\t\t\t\t:uf,\n\t\t\t\t\t\t\t\t\t\t:usuario_id_usuario)\";\n\n\t\t\t$stmt->pdo->prepare($insertIdoso);\n\t\t\t$stmt->bindParam(':logradouro', $this->logradouro);\n\t\t\t$stmt->bindParam(':tipo_logradouro', $this->tipo_logradouro);\n\t\t\t$stmt->bindParam(':numero', $this->numero);\n\t\t\t$stmt->bindParam(':complemento', $this->complemento);\n\t\t\t$stmt->bindParam(':bairro', $this->baiiro);\n\t\t\t$stmt->bindParam(':cidade', $this->cidade);\n\t\t\t$stmt->bindParam(':uf', $this->uf);\n\t\t\t$stmt->bindParam(':usuario_id_usuario', $this->buscarTodosDados());\n\n\t\t\tif($stmt->execute()) {\n\t\t\t\theader(\"Location: localhost:8001/contato\");\n\t\t\t} else {\n\t\t\t\tdie('Erro ao cadastrar');\n\t\t\t}\n\t\t}", "public function persist (){\n \n $this->query = \"INSERT INTO libros(titulo,autor,editorial) VALUES (:titulo, :autor, :editorial)\";\n\n // $this->parametros['id']=$user_data[\"id\"];\n $this->parametros['titulo']=$this->titulo;\n $this->parametros['autor']=$this->autor;\n $this->parametros['editorial']=$this->editorial;\n \n $this->get_results_from_query();\n\n\n $this->mensaje = \"Libro agregado exitosamente\";\n \n }", "public function saveEntidad(){\n\t\t$conexion = new Database();\n if ($this->codigo){\n $query = sprintf('UPDATE agenda_entidades SET entidad = \"%s\" WHERE entidad_id = %d',\n $this->entidad,\n $this->codigo);\n $rows = $conexion->exec( $query );\n }\n else{\n $query = sprintf('INSERT INTO agenda_entidades(entidad) VALUES (\"%s\")',\n $this->usuario);\n\t\t\t$rows = $conexion->exec( $query );\n $this->codigo = $conexion->lastInsertId();\n }\n }", "public function cadastrar(){\r\n //DEFINIR A DATA DE CADASTRO\r\n $this->cadastro = date('Y-m-d H:i:s');\r\n\r\n $db = new Database('cartao');\r\n $this->id = $db->insert([\r\n 'bandeira' => $this->bandeira,\r\n 'numero' => $this->numero,\r\n 'doador' => $this->doador,\r\n ]);\r\n\r\n }", "function insertarSolicitudCompletaMenor()\r\n {\r\n $cone = new conexion();\r\n $link = $cone->conectarpdo();\r\n $copiado = false;\r\n try {\r\n $link->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\r\n $link->beginTransaction();\r\n\r\n /////////////////////////\r\n // inserta cabecera de la solicitud de compra\r\n ///////////////////////\r\n\r\n //Definicion de variables para ejecucion del procedimiento\r\n $this->procedimiento = 'adq.f_solicitud_modalidades_ime';\r\n $this->transaccion = 'ADQ_SOLMODAL_INS';\r\n $this->tipo_procedimiento = 'IME';\r\n\r\n //Define los parametros para la funcion\r\n $this->setParametro('estado_reg', 'estado_reg', 'varchar');\r\n $this->setParametro('id_solicitud_ext', 'id_solicitud_ext', 'int4');\r\n $this->setParametro('presu_revertido', 'presu_revertido', 'varchar');\r\n $this->setParametro('fecha_apro', 'fecha_apro', 'date');\r\n $this->setParametro('estado', 'estado', 'varchar');\r\n $this->setParametro('id_moneda', 'id_moneda', 'int4');\r\n $this->setParametro('id_gestion', 'id_gestion', 'int4');\r\n $this->setParametro('tipo', 'tipo', 'varchar');\r\n $this->setParametro('num_tramite', 'num_tramite', 'varchar');\r\n $this->setParametro('justificacion', 'justificacion', 'text');\r\n $this->setParametro('id_depto', 'id_depto', 'int4');\r\n $this->setParametro('lugar_entrega', 'lugar_entrega', 'varchar');\r\n $this->setParametro('extendida', 'extendida', 'varchar');\r\n $this->setParametro('numero', 'numero', 'varchar');\r\n $this->setParametro('posibles_proveedores', 'posibles_proveedores', 'text');\r\n $this->setParametro('id_proceso_wf', 'id_proceso_wf', 'int4');\r\n $this->setParametro('comite_calificacion', 'comite_calificacion', 'text');\r\n $this->setParametro('id_categoria_compra', 'id_categoria_compra', 'int4');\r\n $this->setParametro('id_funcionario', 'id_funcionario', 'int4');\r\n $this->setParametro('id_estado_wf', 'id_estado_wf', 'int4');\r\n $this->setParametro('fecha_soli', 'fecha_soli', 'date');\r\n $this->setParametro('id_proceso_macro', 'id_proceso_macro', 'int4');\r\n $this->setParametro('id_proveedor', 'id_proveedor', 'int4');\r\n $this->setParametro('tipo_concepto', 'tipo_concepto', 'varchar');\r\n $this->setParametro('fecha_inicio', 'fecha_inicio', 'date');\r\n $this->setParametro('dias_plazo_entrega', 'dias_plazo_entrega', 'integer');\r\n $this->setParametro('precontrato', 'precontrato', 'varchar');\r\n $this->setParametro('correo_proveedor', 'correo_proveedor', 'varchar');\r\n\r\n $this->setParametro('nro_po', 'nro_po', 'varchar');\r\n $this->setParametro('fecha_po', 'fecha_po', 'date');\r\n\r\n $this->setParametro('prioridad', 'prioridad', 'integer');\r\n\r\n $this->setParametro('tipo_modalidad', 'tipo_modalidad', 'varchar');\r\n\r\n //Ejecuta la instruccion\r\n $this->armarConsulta();\r\n $stmt = $link->prepare($this->consulta);\r\n $stmt->execute();\r\n $result = $stmt->fetch(PDO::FETCH_ASSOC);\r\n\r\n //recupera parametros devuelto depues de insertar ... (id_solicitud)\r\n $resp_procedimiento = $this->divRespuesta($result['f_intermediario_ime']);\r\n if ($resp_procedimiento['tipo_respuesta'] == 'ERROR') {\r\n throw new Exception(\"Error al ejecutar en la bd\", 3);\r\n }\r\n\r\n $respuesta = $resp_procedimiento['datos'];\r\n\r\n $id_solicitud = $respuesta['id_solicitud'];\r\n\r\n //////////////////////////////////////////////\r\n //inserta detalle de la solicitud de compra\r\n /////////////////////////////////////////////\r\n\r\n\r\n //decodifica JSON de detalles\r\n $json_detalle = $this->aParam->_json_decode($this->aParam->getParametro('json_new_records'));\r\n\r\n //var_dump($json_detalle)\t;\r\n foreach ($json_detalle as $f) {\r\n\r\n $this->resetParametros();\r\n //Definicion de variables para ejecucion del procedimiento\r\n $this->procedimiento = 'adq.f_solicitud_det_ime';\r\n $this->transaccion = 'ADQ_SOLD_INS';\r\n $this->tipo_procedimiento = 'IME';\r\n //modifica los valores de las variables que mandaremos\r\n $this->arreglo['id_centro_costo'] = $f['id_centro_costo'];\r\n $this->arreglo['descripcion'] = $f['descripcion'];\r\n $this->arreglo['precio_unitario'] = $f['precio_unitario'];\r\n $this->arreglo['id_solicitud'] = $id_solicitud;\r\n $this->arreglo['id_orden_trabajo'] = $f['id_orden_trabajo'];\r\n $this->arreglo['id_concepto_ingas'] = $f['id_concepto_ingas'];\r\n $this->arreglo['precio_total'] = $f['precio_total'];\r\n $this->arreglo['cantidad_sol'] = $f['cantidad_sol'];\r\n $this->arreglo['precio_ga'] = $f['precio_ga'];\r\n $this->arreglo['precio_sg'] = $f['precio_sg'];\r\n\r\n $this->arreglo['id_activo_fijo'] = $f['id_activo_fijo'];\r\n $this->arreglo['codigo_act'] = $f['codigo_act'];\r\n $this->arreglo['fecha_ini_act'] = $f['fecha_ini_act'];\r\n $this->arreglo['fecha_fin_act'] = $f['fecha_fin_act'];\r\n\r\n\r\n //Define los parametros para la funcion\r\n $this->setParametro('id_centro_costo', 'id_centro_costo', 'int4');\r\n $this->setParametro('descripcion', 'descripcion', 'text');\r\n $this->setParametro('precio_unitario', 'precio_unitario', 'numeric');\r\n $this->setParametro('id_solicitud', 'id_solicitud', 'int4');\r\n $this->setParametro('id_orden_trabajo', 'id_orden_trabajo', 'int4');\r\n $this->setParametro('id_concepto_ingas', 'id_concepto_ingas', 'int4');\r\n $this->setParametro('precio_total', 'precio_total', 'numeric');\r\n $this->setParametro('cantidad_sol', 'cantidad_sol', 'int4');\r\n $this->setParametro('precio_ga', 'precio_ga', 'numeric');\r\n $this->setParametro('precio_sg', 'precio_sg', 'numeric');\r\n\r\n $this->setParametro('id_activo_fijo', 'id_activo_fijo', 'varchar');\r\n $this->setParametro('codigo_act', 'codigo_act', 'varchar');\r\n $this->setParametro('fecha_ini_act', 'fecha_ini_act', 'date');\r\n $this->setParametro('fecha_fin_act', 'fecha_fin_act', 'date');\r\n\r\n\r\n //Ejecuta la instruccion\r\n $this->armarConsulta();\r\n $stmt = $link->prepare($this->consulta);\r\n $stmt->execute();\r\n $result = $stmt->fetch(PDO::FETCH_ASSOC);\r\n\r\n //recupera parametros devuelto depues de insertar ... (id_solicitud)\r\n $resp_procedimiento = $this->divRespuesta($result['f_intermediario_ime']);\r\n if ($resp_procedimiento['tipo_respuesta'] == 'ERROR') {\r\n throw new Exception(\"Error al insertar detalle en la bd\", 3);\r\n }\r\n\r\n\r\n }\r\n\r\n\r\n //si todo va bien confirmamos y regresamos el resultado\r\n $link->commit();\r\n $this->respuesta = new Mensaje();\r\n $this->respuesta->setMensaje($resp_procedimiento['tipo_respuesta'], $this->nombre_archivo, $resp_procedimiento['mensaje'], $resp_procedimiento['mensaje_tec'], 'base', $this->procedimiento, $this->transaccion, $this->tipo_procedimiento, $this->consulta);\r\n $this->respuesta->setDatos($respuesta);\r\n } catch (Exception $e) {\r\n $link->rollBack();\r\n $this->respuesta = new Mensaje();\r\n if ($e->getCode() == 3) {//es un error de un procedimiento almacenado de pxp\r\n $this->respuesta->setMensaje($resp_procedimiento['tipo_respuesta'], $this->nombre_archivo, $resp_procedimiento['mensaje'], $resp_procedimiento['mensaje_tec'], 'base', $this->procedimiento, $this->transaccion, $this->tipo_procedimiento, $this->consulta);\r\n } else if ($e->getCode() == 2) {//es un error en bd de una consulta\r\n $this->respuesta->setMensaje('ERROR', $this->nombre_archivo, $e->getMessage(), $e->getMessage(), 'modelo', '', '', '', '');\r\n } else {//es un error lanzado con throw exception\r\n throw new Exception($e->getMessage(), 2);\r\n }\r\n\r\n }\r\n\r\n return $this->respuesta;\r\n }", "public function add_data()\n {\n try\n {\n if($this->id_producto!=NULL) //Identificar si llega un ID nulo o declarado\n {\n $sql=\"UPDATE productos set proveedores_id_proveedor=?,categoria_id_Categoria=?,nom_producto=?,pre_producto=?,can_producto=? WHERE id_producto = ?\";\n \n }else{\n $sql=\"INSERT into productos Values(0,?,?,?,?,?)\";\n }\n $consulta = $this->con->prepare($sql);\n $consulta->bindParam(1,$this->proveedores_id_proveedor);\n $consulta->bindParam(2,$this->categoria_id_Categoria);\n $consulta->bindParam(3,$this->nom_producto);\n $consulta->bindParam(4,$this->pre_producto);\n $consulta->bindParam(5,$this->can_producto); \n if($this->id_producto!=null)//Se asigna el valor del ID si esta declarado\n {\n $consulta->bindParam(6,$this->id_producto); \n }\n $consulta->execute();\n $this->con=null; \n }catch(PDOException $e)//mensaje de error en caso de fallo\n {\n print \"Error: \".$e->getMessage(); \n } \n }", "function registrarPedido(){\n\t\t$x = $this->pdo->prepare('INSERT INTO pedido (cedulaCliente,fechaPedido) VALUES (?,?)');\n\t\t$x->execute(array($this->cedulaCliente,$this->fechaPedido));\n\t\treturn $x;\n\t}", "public static function inserirProdutoCarrinho(){\n if(isset($_SESSION['user'])){\n //USUARIO LOGADO COM CARRINHO\n if(isset($_SESSION['user']['carrinhoId'])){\n $conn = \\App\\lib\\Database\\Conexao::connect();\n $expPro = explode(';',self::$carrinho->produto_id);\n $expQuant = explode(';',self::$carrinho->quantidade);\n\n $expPro[] = self::$produto['produto_id'];\n $expQuant[] = self::$produto['quantidade'];\n\n $impPro = implode(';',$expPro);\n $impQuant = implode(';',$expQuant);\n\n $conn = \\App\\lib\\Database\\Conexao::connect();\n $query = \"UPDATE carrinhos SET produto_id=:idp, quantidade=:qnt, idCliente=:idC WHERE id=:id\";\n $stmt = $conn->prepare($query);\n $stmt->bindValue(1,$impPro);\n $stmt->bindValue(2,$impQuant);\n $stmt->bindValue(3,$_SESSION['user']['id']);\n $stmt->bindValue(4,self::$carrinho->id);\n $stmt->execute();\n\n //USUARIO LOGADO SEM CARRINHO\n }else{\n $conn = \\App\\lib\\Database\\Conexao::connect();\n $query = \"INSERT INTO carrinhos(produto_id,quantidade,idCliente) VALUES (:prodId, :qnt, :idCliente)\";\n $stmt = $conn->prepare($query);\n $stmt->bindValue(1,self::$produto['produto_id']);\n $stmt->bindValue(2,self::$produto['quantidade']);\n $stmt->bindValue(3,$_SESSION['user']['id']);\n $stmt->execute();\n if($stmt->rowCount()){\n return true;\n }throw new \\Exception(\"Nao Foi Possivel adicionar produto ao carrinho\");\n }\n\n //USUARIO NAO LOGADO\n }else{\n //USUARIO NAO LOGADO COM CARRINHO\n if(isset($_SESSION['carrinho'])){\n $expPro = explode(';',$_SESSION['carrinho']['produto_id']);\n $expQuant = explode(';',$_SESSION['carrinho']['quantidade']);\n $expPro[] = self::$produto['produto_id'];\n $expQuant[] = self::$produto['quantidade'];\n $impPro = implode(';',$expPro);\n $impQuant = implode(';',$expQuant);\n $_SESSION['carrinho'] = array('produto_id'=>$impPro,'quantidade'=>$impQuant);\n return true;\n //USUARIO NAO LOGADO SEM CARRINHO\n }else{\n $_SESSION['carrinho'] = array('produto_id'=>self::$produto['produto_id'],'quantidade'=>self::$produto['quantidade']);\n return true;\n \n }\n \n }\n }", "public function RegistrarDatosPersonales(HojaVida $data){\n $modelo = new HojaVida();\n $fechahora = $modelo->get_fecha_actual();\n $datosfecha = explode(\" \",$fechahora);\n $fechalog = $datosfecha[0];\n $horalog = $datosfecha[1];\n \n $tiporegistro = \"Info. Datos Personales\";\n $accion = \"Registra una Nueva \".$tiporegistro.\" En el Sistema (HOJA VIDA) TALENTO HUMANO\";\n $detalle = $_SESSION['nombre'].\" \".$accion.\" \".$fechalog.\" \".\"a las: \".$horalog;\n $tipolog = 15;\n $idusuario = $_POST['id_usuarioR'];\n $idusuarioR = $_SESSION['idUsuario'];\n try {\n $this->pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\t\t\n //EMPIEZA LA TRANSACCION\n $this->pdo->beginTransaction();\n\n $sql = \"INSERT INTO `th_personas`(`per_id_usuario`, `per_cedula`, `per_nombres`, `per_apellidos`, `per_fecha_nacimiento`,\n `per_id_dep_nacimiento`, `per_id_ciu_nacimiento`, `per_direccion`, `per_telefono`, `per_celular`, `per_email`, `per_ruta_foto`, \n `per_id_usuarioR`) \n VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?)\";\n $this->pdo->prepare($sql)\n ->execute(\n array(\n $data->id_usuario,\n $data->per_cedula,\n $data->per_nombres,\n $data->per_apellidos,\n $data->per_fecha_nacimiento,\n $data->per_id_departamento,\n $data->per_id_municipio,\n $data->per_direccion,\n $data->per_telefono,\n $data->per_celular,\n $data->per_email,\n $data->per_ruta_foto,\n $idusuarioR\n )\n ); \n $this->pdo->exec(\"INSERT INTO log (fecha, accion,detalle,idusuario,idtipolog) VALUES ('$fechalog', '$accion','$detalle','$idusuario','$tipolog')\");\n \n //SE TERMINA LA TRANSACCION \n $this->pdo->commit();\n } catch (Exception $e) {\n $this->pdo->rollBack();\n die($e->getMessage());\n }\n }", "function agregar_nueva_poliza($id_usuario_sesion, $tipo_sesion, $usuario_sesion, $id_ef_sesion, $conexion){\n\t\n\t//VEO SI SE HA HECHO CLICK EN EL BOTON GUARDAR\n\tif(isset($_POST['btnGuardar'])) {\n\t\t\n\t\t\t$id_ef_cia = base64_decode($_GET['id_ef_cia']);\t\n\t\t \n\t\t\t//SEGURIDAD\n\t\t\t$num_poliza = $conexion->real_escape_string($_POST['txtPoliza']);\n\t\t\t$fecha_ini = $conexion->real_escape_string($_POST['txtFechaini']);\n\t\t\t$fecha_fin = $conexion->real_escape_string($_POST['txtFechafin']);\n\t\t\t$producto = $conexion->real_escape_string($_POST['txtProducto']);\n\t\t\t//GENERAMOS EL ID CODIFICADO UNICO\n\t\t\t$id_new_poliza = generar_id_codificado('@S#1$2013');\t\t\t\t\t\n\t\t\t//METEMOS LOS DATOS A LA BASE DE DATOS\n\t\t\t$insert =\"INSERT INTO s_poliza(id_poliza, no_poliza, fecha_ini, fecha_fin, producto, id_ef_cia) \"\n\t\t\t\t .\"VALUES('\".$id_new_poliza.\"', '\".$num_poliza.\"', '\".$fecha_ini.\"', '\".$fecha_fin.\"', '\".$producto.\"', '\".$id_ef_cia.\"')\";\n\t\t\t\n\t\t\t\n\t\t\t//VERIFICAMOS SI HUBO ERROR EN EL INGRESO DEL REGISTRO\n\t\t\tif($conexion->query($insert)===TRUE){\n\t\t\t\t\t\t\t\t\n\t\t\t\t$mensaje=\"Se registro correctamente los datos del formulario\";\n\t\t\t header('Location: index.php?l=des_poliza&var='.$_GET['var'].'&listarpolizas=v&id_ef_cia='.$_GET['id_ef_cia'].'&entidad='.$_GET['entidad'].'&compania='.$_GET['compania'].'&id_ef='.base64_encode($_GET['id_ef']).'&producto_nombre='.$_GET['producto_nombre'].'&producto_code='.$_GET['producto_code'].'&op=1&msg='.base64_encode($mensaje));\n\t\t\t exit;\n\t\t\t} else {\n\t\t\t\t$mensaje=\"Hubo un error al ingresar los datos, consulte con su administrador \".$conexion->errno.\": \".$conexion->error;\n\t\t\t header('Location: index.php?l=des_poliza&var='.$_GET['var'].'&listarpolizas=v&id_ef_cia='.$_GET['id_ef_cia'].'&entidad='.$_GET['entidad'].'&compania='.$_GET['compania'].'&id_ef='.base64_encode($_GET['id_ef']).'&producto_nombre='.$_GET['producto_nombre'].'&producto_code='.$_GET['producto_code'].'&op=2&msg='.base64_encode($mensaje));\n\t\t\t\texit;\n\t\t\t}\n\t\t\n\t}else {\n\t\t//MUESTRO EL FORM PARA CREAR UNA CATEGORIA\n\t\tmostrar_crear_poliza($id_usuario_sesion, $tipo_sesion, $usuario_sesion, $id_ef_sesion, $conexion);\n\t}\n}", "public function Registrar_Ref_Personal(HojaVida $data){\n $modelo = new HojaVida();\n $fechahora = $modelo->get_fecha_actual();\n $datosfecha = explode(\" \",$fechahora);\n $fechalog = $datosfecha[0];\n $horalog = $datosfecha[1];\n \n $tiporegistro = \"Referencia Personal\";\n $accion = \"Registra una Nueva \".$tiporegistro.\" En el Sistema (Hoja vida) TALENTO HUMANO\";\n $detalle = $_SESSION['nombre'].\" \".$accion.\" \".$fechalog.\" \".\"a las: \".$horalog;\n $tipolog = 15;\n $idusuario = $_SESSION['idUsuario'];\n \n try {\n $this->pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\t\t\n //EMPIEZA LA TRANSACCION\n $this->pdo->beginTransaction();\n\n $sql = \"INSERT INTO `th_referencias_personales`(`ref_id_hv`, `ref_id_usuario`, `ref_id_usuarioR`, `ref_nombre`, `ref_cargo`, `ref_empresa`, `ref_telefono`) \n VALUES (?,?,?,?,?,?,?)\";\n $this->pdo->prepare($sql)\n ->execute(\n array(\n $data->id,\n $data->usuario,\n $idusuario,\n $data->ref_per_nombre,\n $data->ref_per_cargo,\n $data->ref_per_empresa,\n $data->ref_per_telefono\n )\n ); \n $this->pdo->exec(\"INSERT INTO log (fecha, accion,detalle,idusuario,idtipolog) VALUES ('$fechalog', '$accion','$detalle','$idusuario','$tipolog')\");\n \n //SE TERMINA LA TRANSACCION \n $this->pdo->commit();\n } catch (Exception $e) {\n $this->pdo->rollBack();\n die($e->getMessage());\n }\n }", "function Create($td_cod_tipo_denuncia,$de_descripcion,$de_contacto,$de_telefono,$de_nombre,$de_imagen){\n\n\t\t//Instanciamos y nos conectamos a la bd\n\t\t$Conexion = floopets_BD::Connect();\n\t\t$Conexion->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\n\t\t//Crear el query que vamos a realizar\n\t\t$consulta = \"INSERT INTO denuncia (td_cod_tipo_denuncia,de_descripcion,de_contacto,de_telefono,de_nombre,de_fecha,de_imagen,de_estado) VALUES (?,?,?,?,?,now(),?,'Pendiente')\";\n\n\t\t$query = $Conexion->prepare($consulta);\n\t\t$query->execute(array($td_cod_tipo_denuncia,$de_descripcion,$de_contacto,$de_telefono,$de_nombre,$de_imagen));\n\n\t\tfloopets_BD::Disconnect();\n\t}", "function ADD() {\n // si el atributo clave de la entidad no esta vacio\n\t\tif ( ( $this->login <> '' && $this->IdTrabajo <> '' ) ) {\n \n\t\t\t// construimos el sql para buscar esa clave en la tabla\n\t\t\t$sql = \"SELECT * FROM ENTREGA WHERE ( login = '$this->login' && IdTrabajo = '$this->IdTrabajo')\";\n // si da error la ejecución de la query\n\t\t\tif ( !$result = $this->mysqli->query( $sql ) ) { \n\t\t\t\treturn 'No se ha podido conectar con la base de datos'; // error en la consulta (no se ha podido conectar con la bd). Devolvemos un mensaje que el controlador manejara\n // si la ejecución de la query no da error\n\t\t\t} else { \n if ($result->num_rows == 0){ // miramos si el resultado de la consulta es vacio\n //Variable que almacena la sentencia sql\n\t\t\t\t\t$sql = \"INSERT INTO ENTREGA (\n\t\t\t\t\t\t\t login,\n IdTrabajo,\n Alias,\n Horas,\n Ruta) \n\t\t\t\t\t\t\t\tVALUES(\n\t\t\t\t\t\t\t\t'$this->login',\n\t\t\t\t\t\t\t\t'$this->IdTrabajo',\n\t\t\t\t\t\t\t\t'$this->Alias',\n '$this->Horas',\n '$this->Ruta'\n\t\t\t\t\t\t\t\t)\";//se contruye la sentencia sql para insertar la entrega\n \n \n \n }\n //si el número de tuplas no es 0\n else{\n return 'Ya existe la entrega introducida en la base de datos'; // ya existe\n }\n }\n // si da error en la ejecución del insert devolvemos mensaje\n\t\t\t\t\tif ( !$this->mysqli->query( $sql )) { \n\t\t\t\t\t\treturn \"Error en la inserción\";\n\t\t\t\t\t}\n \n //si no da error en la insercion devolvemos mensaje de exito\n else { \n\t\t\t\t\t\treturn 'Inserción realizada con éxito'; //operacion de insertado correcta\n\t\t\t\t\t}\n // si ya existe ese valor de clave en la tabla devolvemos el mensaje correspondiente\n\t\t\t\t} else \n\t\t\t\t\treturn 'Inserta un valor'; // ya existe\n \n\t}", "function evt__enviar(){\n if($this->dep('datos')->tabla('mesa')->esta_cargada()){\n $m = $this->dep('datos')->tabla('mesa')->get();\n // print_r($m);\n $m['estado'] = 2;//Cambia el estado de la mesa a Enviado\n $this->dep('datos')->tabla('mesa')->set($m);\n // print_r($m['id_mesa']);\n $this->dep('datos')->tabla('mesa')->sincronizar();\n // $this->dep('datos')->tabla('mesa')->resetear();\n \n $m = $this->dep('datos')->tabla('mesa')->get_listado($m['id_mesa']);\n if($m[0]['estado'] == 2){//Obtengo de la BD y verifico que hizo cambios en la BD\n //Se enviaron correctamente los datos\n toba::notificacion()->agregar(utf8_decode(\"Los datos fueron enviados con éxito\"),\"info\");\n }\n else{\n //Se generó algún error al guardar en la BD\n toba::notificacion()->agregar(utf8_decode(\"Error al enviar la información, verifique su conexión a internet\"),\"info\");\n }\n }\n \n }", "function inserirAgencia(){\n\n $banco = abrirBanco();\n //declarando as variáveis usadas na inserção dos dados\n $nomeAgencia = $_POST[\"nomeAgencia\"];\n $cidadeAgencia = $_POST[\"cidadeAgencia\"];\n\n //a consulta sql\n $sql = \"INSERT INTO Agencias(nomeAgencia,cidadeAgencia) VALUES ('$nomeAgencia','$cidadeAgencia')\";\n \n //executando a inclusão\n $banco->query($sql);\n //fechando a conexao com o banco\n $banco->close();\n voltarIndex();\n\n }", "function guardaoe(){\n\t\t$m = intval($_POST['totalitem']);\n\t\t$t = 0;\n\t\t// calcula el total de\n\t\tfor ( $i=0; $i < $m; $i++ ){\n\t\t\t$t += $_POST['cana_'.$i];\n\t\t}\n\t\tif ( $t <= 0 ) {\n\t\t\techo \"No hay pedido\";\n\t\t\treturn;\n\t\t}\n\n\t\t// Crea encabezado\n\t\t$numero = $this->datasis->fprox_numero('nprdo');\n\t\t$data['numero'] = $numero;\n\t\t$data['fecha'] = date('Y-m-d');\n\t\t$data['almacen'] = $_POST['almacen'];\n\t\t$data['status'] = 'A';\n\t\t$data['usuario'] = $this->secu->usuario();\n\t\t$data['estampa'] = date('Ymd');\n\t\t$data['hora'] = date('H:i:s');\n\n\t\t$data['instrucciones'] = $_POST['instrucciones'];\n\n\t\t$this->db->insert('prdo',$data);\n\n\t\t// Crea Detalle\n\t\t$ids = '';\n\t\tfor ( $i=0; $i < $m; $i++ ){\n\t\t\t$cana = $_POST['cana_'.$i];\n\t\t\tif ( $cana > 0 ){\n\t\t\t\t// Guarda\n\t\t\t\t$id = intval($_POST['idpfac_'.$i]);\n\t\t\t\t$mSQL = \"\n\t\t\t\tINSERT INTO itprdo (numero, pedido, codigo, descrip, cana, ordenado, idpfac )\n\t\t\t\tSELECT '${numero}' numero, a.numa pedido, a.codigoa codigo, a.desca descrip, a.cana, ${cana} ordenado, ${id} idpfac\n\t\t\t\tFROM itpfac a JOIN pfac b ON a.numa = b.numero\n\t\t\t\tWHERE a.id= ${id}\";\n\t\t\t\t$this->db->query($mSQL);\n\t\t\t}\n\t\t}\n\n\t\t// Crea totales\n\t\t$mSQL = \"\n\t\tINSERT INTO itprdop ( numero, codigo, descrip, ordenado, producido)\n\t\tSELECT '${numero}' numero, codigo, descrip, sum(ordenado) ordenado, 0 producido\n\t\tFROM itprdo\n\t\tWHERE numero = '${numero}'\n\t\tGROUP BY codigo\";\n\t\t$this->db->query($mSQL);\n\n\t}", "public function inserir_anuncio(){\n if(!isset($_SESSION))session_start();\n\n $cliente = unserialize($_SESSION['cliente']);\n\n $id_veiculo = $_POST['cb_veiculos'];\n $data_inicial = $_POST['data_inicial'];\n $data_final = $_POST['data_final'];\n $hora_inicial = $_POST['hora_inicial'];\n $hora_final = $_POST['hora_final'];\n $descricao = $_POST['descricao'];\n $valor_hora = $_POST['valor_hora'];\n $id_cliente = $cliente->getId();\n\n $anuncio = new Anuncio();\n $anuncio->setDescricao($descricao)\n ->setIdClienteLocador($id_cliente)\n ->setIdVeiculo($id_veiculo)\n ->setHorarioInicio($hora_inicial)\n ->setHorarioTermino($hora_final)\n ->setDataInicial($data_inicial)\n ->setDataFinal($data_final)\n ->setValor($valor_hora);\n\n\n $this->anunciosDAO->insert($anuncio);\n\n }", "public function persist() {\n $bd = BD::getConexion();\n $sql = \"insert into usuarios (nombre, clave) values (:nombre, :clave)\";\n $sthSql = $bd->prepare($sqlInsertUsuario);\n $result = $sthSql->execute([\":nombre\" => $this->nombre, \":clave\" => $this->clave]);\n $this->id = (int) $bd->lastInsertId();\n }", "public function insertForosComentarios(){\n\t\tif($this->get_request_method() != \"POST\") $this->response('', 406);\n\n\t\t//get data sent\n\t\t$data = file_get_contents(\"php://input\");\n\t\t$parametros = $this->jsonDecode($data);\n\t\t$user = $parametros->user;\n\t\t$ses_id = $parametros->ses_id;\n\t\t$id_tema = $parametros->id_tema;\n\t\t$comentario = $parametros->comentario;\n\t\t$id_comentario_respuesta = $parametros->id_comentario_respuesta;\n\n\n\t\t// Session validation\n\t\tif ($this->checkSesId($ses_id, $user)){\n\t\t\t$foro = new foro();\n\t\t\tif ($foro->InsertComentario($id_tema,\n\t\t\t\t\t\t\t\t$comentario,\n\t\t\t\t\t\t\t\t$user,\n\t\t\t\t\t\t\t\tESTADO_COMENTARIOS_FORO,\n\t\t\t\t\t\t\t\t$id_comentario_respuesta)){\n\t\t\t\t$msg = array('status' => \"ok\", \"msg\" => \"Mensaje insertado\");\n\t\t\t\t$this->response($this->json($msg), 200);\n\t\t\t}\n\t\t\telse{\n\t\t\t\t$error = array('status' => \"Failed\", \"msg\" => \"Error al insertar\");\n\t\t\t\t$this->response($this->json($error), 400);\t\t\n\t\t\t}\n\t\t}\n\t\telse{\n\t\t\t$error = array('status' => \"Failed\", \"msg\" => \"Sesion incorrecta\");\n\t\t\t$this->response($this->json($error), 400);\t\t\n\t\t}\n\t}", "function insertarEnBd(){\n $conexion = new PDO('mysql:host=localhost;dbname=tarea02;charset=UTF8', 'root', '');\n $conexion->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\n \n /* Se define la consulta SQL */\n $consulta = \"INSERT INTO maestro (noEmpleado,carrera,nombre,telefono) VALUES (\";\n $consulta .= \"'$this->noEmpleado','$this->carrera','$this->nombre','$this->telefono');\";\n \n /* Se efectúa la consulta. */\n $conexion->exec($consulta);\n\n}", "public function pedidos($id)\r\n\t{\r\n\t\t//Carga los datos de pedidos, crear tabla de pedidos\r\n\t\t$this->pedidos = (New Pedidos)->find_by_proveedor_id($id);\r\n\t}", "public function insertarContenedores(){\n\t\t\t#try{\n\t\t\t\n\t\t\t\t$PDOmysql = consulta();\n\t\t\t\t$PDOmysql->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\n\n\t\t\t\t#Itera entre el array Contenedores, para insertarlo uno por uno.\n\t\t\t\tforeach ($this->contenedores as $contenedor) {\n\t\t\t\t\n\t\t\t\t\t#Se comprueba si el contenedor esta en la base de datos.\n\t\t\t\t\t$sql = 'select idContenedor from Contenedor where idContenedor = :contenedor';\n\t\t\t\t\t$stmt = $PDOmysql->prepare($sql);\n\t\t\t\t\t$stmt->bindParam(':contenedor', $contenedor->get_id());\n\t\t\t\t\t$stmt->execute();\n\t\t\t\t\t$rows = $stmt->fetchAll(PDO::FETCH_ASSOC);\n\t\t\t\t\t#La variable respuesta comprueba si existe o no el contendor.\n\t\t\t\t\t$respuesta = $stmt->rowCount() ? true : false;\n\t\t\t\t\t#Si respuesta es que no existe el contenedor aun en la base de datos.\n\t\t\t\t\tif(! $respuesta){\n\t\t\t\t\t\t#Inserta el contenedor.\n\t\t\t\t\t\t$sql = 'insert into Contenedor(idContenedor,Tipo) values(:contenedor, :tipo);';\n\t\t\t\t\t\t$stmt = $PDOmysql->prepare($sql);\n\t\t\t\t\t\t$stmt->bindParam(':contenedor', $contenedor->get_id()); #get_id() y get_tipo()\n\t\t\t\t\t\t$stmt->bindParam(':tipo', $contenedor->get_tipo());\t\t#son metodos de la clase contenedor.\n\t\t\t\t\t\t$stmt->execute();\n\t\t\t\t\t}\n\n\t\t\t\t\t$sql = 'SELECT Flete_idFlete, Contenedor \n\t\t\t\t\t\t\tfrom Contenedor_Viaje \n\t\t\t\t\t\t\twhere \n\t\t\t\t\t\t\tFlete_idFlete = :flete\n\t\t\t\t\t\t\tand\n\t\t\t\t\t\t\tContenedor = :contenedor';\n\n\n\t\t\t\t\t$stmt = $PDOmysql->prepare($sql);\n\t\t\t\t\t$stmt->bindParam(':contenedor', $contenedor->get_id());\n\t\t\t\t\t$stmt->bindParam(':flete', $this->flete);\n\t\t\t\t\t$stmt->execute();\n\t\t\t\t\t$rows = $stmt->fetchAll(PDO::FETCH_ASSOC);\n\t\t\t\t\t#La variable respuesta comprueba si existe o no el contendor.\n\t\t\t\t\t$respuesta = $stmt->rowCount() ? true : false;\n\n\t\t\t\t\tif(! $respuesta){\n\t\t\t\t\t\t#Incicializa el viaje para el flete, asignando contenedores al flete.\n\t\t\t\t\t\t$sql = 'insert into Contenedor_Viaje(WorkOrder,Booking,Flete_idFlete, Contenedor) values(:workorder, :booking, :flete, :contenedor);';\n\t\t\t\t\t\t$stmt = $PDOmysql->prepare($sql);\n\t\t\t\t\t\t$stmt->bindParam(':workorder', $contenedor->get_workorder());\n\t\t\t\t\t\t$stmt->bindParam(':booking', $contenedor->get_booking());\n\t\t\t\t\t\t$stmt->bindParam(':flete', $contenedor->get_flete());\n\t\t\t\t\t\t$stmt->bindParam(':contenedor', $contenedor->get_id());\n\t\t\t\t\t\t$stmt->execute();\n\t\t\t\t\t\t\t\t//Cada contenedor tiene un objeto ListaSellos.\n\t\t\t\t\t\t\t\t#Se manda a llamar al objeto, y este llama a su metodo insertar, para\n\t\t\t\t\t\t\t\t#añadir los sellos a la base de datos.\n\t\t\t\t\t\t\t\t#Esto se puede ya que cada contenedor conoce el flete al que pertenece.\n\t\t\t\t\t}\n\n\t\t\t\t\telse{\n\t\t\t\t\t\t$update = new Update;\n\t\t\t\t\t\t\n\t\t\t\t\t\t$camposUpdate = array(\"statusA\" => 'Activo');\n\t\t\t\t\t\t$camposWhereUpdate = array(\"Flete_idFlete\" => $this->flete, \"Contenedor\" => $contenedor );\n\n\t\t\t\t\t\t$update->prepareUpdate(\"Contenedor_Viaje\", $camposUpdate, $camposWhereUpdate);\n\t\t\t\t\t\t$update->createUpdate();\n\t\t\t\t\t}\n\n\t\t\t\t\t$listaSellos = $contenedor->get_sellos();\n\t\t\t\t\tif($listaSellos){\n\t\t\t\t\t\t$listaSellos->insertar_sellos();\n\t\t\t\t\t}\t\t\n\n\t\t\t\t}\n\t\t\t#}catch(Exception $e){\n\n\t\t\t#}\n\n\t\t}", "function insertarTipoVenta(){\n\t\t$this->procedimiento='vef.ft_tipo_venta_ime';\n\t\t$this->transaccion='VF_TIPVEN_INS';\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('codigo_relacion_contable','codigo_relacion_contable','varchar');\n\t\t$this->setParametro('nombre','nombre','varchar');\n\t\t$this->setParametro('tipo_base','tipo_base','varchar');\n\t\t$this->setParametro('estado_reg','estado_reg','varchar');\n\t\t$this->setParametro('codigo','codigo','varchar');\n\t\t$this->setParametro('id_plantilla','id_plantilla','integer');\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 insert() {\n $conexion = StorianDB::connectDB();\n $insercion = \"INSERT INTO cuento (titulo, contenido, autor) VALUES (\\\"\".$this->titulo.\"\\\", \\\"\".$this->contenido.\"\\\", \\\"\".$this->autor.\"\\\")\";\n $conexion->exec($insercion);\n }", "protected function fijarSentenciaInsert(){}", "public function guardar(){\n \n $_vectorpost=$this->_vcapitulo;\n $_programadas=[1,3,4,5,6,7,8,2,11,15,26];\n \n if(!empty($this->_relaciones)){\n \n $_vpasspregunta=explode(\"%%\",$this->_relaciones);\n \n /*Iniciando Transaccion*/\n $_transaction = Yii::$app->db->beginTransaction();\n try {\n foreach($_vpasspregunta as $_clguardar){\n\n /*Aqui se debe ir la funcion segun el tipo de pregunta\n * la variable $_clguardar es un string que trae\n * name_input ::: id_pregunta ::: id_tpregunta ::: id_respuesta\n * cada funcion de guardar por tipo se denomina gr_tipo...\n */\n\n $_ldata=explode(\":::\",$_clguardar);\n\n //Recogiendo codigos SQL\n //Se envia a la funcion de acuerdo al tipo\n // @name_input \"0\"\n // @id_pregunta \n // @id_tpregunta\n // @id_respuesta ==========================//\n \n /*Asociando Respuesta*/\n $_nameq = 'rpta'.$_ldata[0];\n \n \n \n if(!empty($_ldata[2]) and in_array($_ldata[2], $_programadas) === TRUE and isset($_vectorpost['Detcapitulo'][$_nameq])){\n \n \n //Yii::trace(\"Llegan tipos de preguntas \".$_ldata[2].\" Para idpregunta \".$_ldata[1],\"DEBUG\");\n /*Recogiendo Id_respuesta si existe*/ \n $_idrespuesta=(!empty($_ldata[3]))? $_ldata[3]:'';\n $id_pregunta= $_ldata[1];\n $this->_idcapitulo = $_ldata[4];\n \n \n /*Armando Trama SQL segun el tipo de pregunta*/\n $_valor = $_vectorpost['Detcapitulo'][$_nameq];\n \n //Yii::trace(\"que respuestas llegan \".$_valor,\"DEBUG\");\n \n if(isset($this->_agrupadas[$id_pregunta])){\n \n /*1) Buscando si existe una respuesta asociada a la agrupacion*/\n $idrpta_2a = Yii::$app->db->createCommand(\n 'SELECT id_respuesta FROM fd_respuesta\n LEFT JOIN fd_pregunta ON fd_pregunta.id_pregunta = fd_respuesta.id_pregunta\n WHERE fd_pregunta.id_agrupacion= :agrupacion \n and fd_respuesta.id_conjunto_pregunta= :idconjprta \n and fd_respuesta.id_conjunto_respuesta= :idconjrpta\n and fd_respuesta.id_capitulo= :idcapitulo\n and fd_respuesta.id_formato = :idformato\n and fd_respuesta.id_version = :idversion ')\n ->bindValues([\n ':idconjrpta' => $this->_idconjrpta,\n ':idcapitulo' =>$this->_idcapitulo,\n ':idformato' =>$this->_idformato,\n ':idconjprta' => $this->_idconjprta,\n ':idversion' =>$this->_idversion, \n ':agrupacion' =>$this->_agrupadas[$id_pregunta],\n ])->queryOne();\n \n $_idrespuesta = $idrpta_2a['id_respuesta'];\n \n /*2) Si existe respuesta asociada se envia como _idrespuesta*/\n \n $v_rpta= $this->{\"gr_tipo2a\"}($_idrespuesta,$_valor,$id_pregunta); //Preguntas tipo 2 agrupadas\n $_ldata[1]= $v_rpta[2];\n \n }else{\n \n //Averiguando si la pregunta es tipo multiple y si la respuesta es null si es asi \n //Salta a la siguiente pregunta\n if(!empty($this->multiples[$id_pregunta]) and empty($_valor)){\n continue;\n }else if(!empty($this->multiples[$id_pregunta]) and !is_null($_valor)){\n $_idrespuesta=''; \n } \n \n /*Si la pregunta es tipo 3 se averigua si la respuesta es tipo especifique*/\n $_otros=null;\n if($_ldata[2]=='3' and isset($_vectorpost['Detcapitulo']['otros_'.$_ldata[0]])){\n \n $_otros = $_vectorpost['Detcapitulo']['otros_'.$_ldata[0]];\n $v_rpta= $this->{\"gr_tipo\".$_ldata[2]}($_idrespuesta,$_valor,$_otros);\n \n }else{\n \n if($_ldata[2]==11 and isset($this->_tipo11[$_nameq])){\n $_valor=count($this->_tipo11[$_nameq]);\n $v_rpta= $this->{\"gr_tipo\".$_ldata[2]}($_idrespuesta,$_valor);\n }else if ($_ldata[2]!=11 and !isset($this->_tipo11[$_nameq])){\n $v_rpta= $this->{\"gr_tipo\".$_ldata[2]}($_idrespuesta,$_valor,$_otros,$id_pregunta);\n }else{\n continue;\n } \n }\n } \n \n /*Asignando valor == null*/\n $v_rpta[1]=(!isset($v_rpta[1]))? NULL:$v_rpta[1];\n \n \n /*Generado comando SQL*/\n if(!empty($v_rpta[0])){\n \n if(empty($this->_idjunta))$this->_idjunta=0;\n if(is_null($_otros)){ \n \n if (strpos($v_rpta[0], ';') !== false) {\n $sep_qu = explode(\";\", $v_rpta[0]);\n \n Yii::$app->db->createCommand($sep_qu[0])\n ->bindValues([\n ':valor' => $v_rpta[1],\n ':idconjrpta' => $this->_idconjrpta,\n ':idpregunta' => $_ldata[1],\n ':idtpregunta' => $_ldata[2],\n ':idcapitulo' =>$this->_idcapitulo,\n ':idformato' =>$this->_idformato,\n ':idconjprta' => $this->_idconjprta,\n ':idversion' =>$this->_idversion,\n ':idjunta' =>$this->_idjunta,\n ])->execute();\n \n Yii::$app->db->createCommand($sep_qu[1])\n ->bindValues([\n ':valor' => $v_rpta[1],\n ])->execute();\n \n \n }\n else\n {\n Yii::$app->db->createCommand($v_rpta[0])\n ->bindValues([\n ':valor' => $v_rpta[1],\n ':idconjrpta' => $this->_idconjrpta,\n ':idpregunta' => $_ldata[1],\n ':idtpregunta' => $_ldata[2],\n ':idcapitulo' =>$this->_idcapitulo,\n ':idformato' =>$this->_idformato,\n ':idconjprta' => $this->_idconjprta,\n ':idversion' =>$this->_idversion,\n ':idjunta' =>$this->_idjunta,\n ])->execute();\n }\n \n \n }else{ \n Yii::$app->db->createCommand($v_rpta[0])\n ->bindValues([\n ':valor' => $v_rpta[1],\n ':idconjrpta' => $this->_idconjrpta,\n ':idpregunta' => $_ldata[1],\n ':idtpregunta' => $_ldata[2],\n ':idcapitulo' =>$this->_idcapitulo,\n ':idformato' =>$this->_idformato,\n ':idconjprta' => $this->_idconjprta,\n ':idversion' =>$this->_idversion,\n ':idjunta' =>$this->_idjunta,\n ':otros' =>$_otros, \n ])->execute();\n }\n\n /*Se averigua con que id quedo guardada la respuesta si es tipo 11 -> guarda en SOP SOPORTE*/\n if($_ldata[2]=='11' and !empty($this->_tipo11[$_nameq])){\n\n $id_rpta = Yii::$app->db->createCommand(\n 'SELECT id_respuesta FROM fd_respuesta '\n . 'WHERE id_pregunta = :_prta'\n . ' and fd_respuesta.id_conjunto_pregunta= :idconjprta \n and fd_respuesta.id_conjunto_respuesta= :idconjrpta\n and fd_respuesta.id_capitulo= :idcapitulo\n and fd_respuesta.id_formato = :idformato\n and fd_respuesta.id_version = :idversion' )\n ->bindValues([\n ':_prta' => $_ldata[1], \n ':idconjrpta' => $this->_idconjrpta,\n ':idcapitulo' =>$this->_idcapitulo,\n ':idformato' =>$this->_idformato,\n ':idconjprta' => $this->_idconjprta,\n ':idversion' =>$this->_idversion, \n ])->queryOne();\n\n\n foreach($this->_tipo11[$_nameq] as $_cltp11){\n\n $_vctp11=explode(\":::\",$_cltp11);\n $_namefile = $_vctp11[0].\".\".$_vctp11[2];\n\n $_sqlSOP=\"INSERT INTO sop_soportes ([[ruta_soporte]],[[titulo_soporte]],[[tamanio_soportes]],[[id_respuesta]]) VALUES (:ruta, :titulo, :tamanio, :_idrpta)\";\n\n Yii::$app->db->createCommand($_sqlSOP)\n ->bindValues([\n ':ruta' => $_vctp11[1],\n ':titulo' => $_namefile,\n ':tamanio' => $_vctp11[3],\n ':_idrpta' => $id_rpta[\"id_respuesta\"],\n ])->execute();\n\n }\n \n }\n /*Fin guardando en SOP_SOPORTES para tipo 11*/\n \n } \n }\n\n }\n \n \n \n $_transaction->commit();\n \n }catch (\\Exception $e) {\n $_transaction->rollBack();\n throw $e;\n return FALSE;\n } catch (\\Throwable $e) {\n $_transaction->rollBack();\n throw $e;\n return FALSE;\n } \n \n }\n return TRUE;\n }", "public function crear() {\n /**\n * guardamos la consulta en $sql\n * ejecutamos la consulta en php \n * asignamos el id del objeto = al ultimo id que añadimos a la bd, asi coincidiran el id objeto con tupla\n * lista de atributos a introducir valores de atributos a introducir\n * formato insertar datos INSERT INTO NombreTabla (NombreAtributo1, NombreAtributo2) VALUES (ValorAtributo1, ValorAtributo2)\n */\n // para acceder a una cosntante de la clase NombreClase::NOMBRECONSTANTE\n \n try {\n $sql=\"INSERT INTO \".Bebidas::TABLA[0].\" (nombre, descripcion, tipo, estado, foto) VALUES ('$this->nombre', '$this->descripcion', '$this->tipo', '$this->estado', '$this->foto')\";\n $this->conexion->query($sql);\n $this->__set(\"id_bebida\", $this->conexion->insert_id);\n } catch (Exception $ex) {\n echo 'error '.$ex;\n }\n \n }", "public function persist() {\n $bd = BD::getConexion();\n $sqlInsertUsuario = \"insert into usuarios (nomUsuario, clave) values (:nomUsuario, :clave)\";\n $sthSqlInsertUsuario = $bd->prepare($sqlInsertUsuario);\n $result = $sthSqlInsertUsuario->execute([\":nomUsuario\" => $this->nomUsuario, \":clave\" => $this->clave]);\n $this->id = (int) $bd->lastInsertId();\n }", "function adjudicarTodo(){\n $this->procedimiento='adq.f_cotizacion_ime';\n $this->transaccion='ADQ_ADJTODO_IME';\n $this->tipo_procedimiento='IME';\n \n //Define los parametros para la funcion\n $this->setParametro('id_cotizacion','id_cotizacion','int4');\n\n //Ejecuta la instruccion\n $this->armarConsulta();\n $this->ejecutarConsulta();\n\n //Devuelve la respuesta\n return $this->respuesta;\n }", "function agregarPacienteBD($objeto) {\n\n\t\t$conexion = $this->conectarBD(\"ADMIN\",\"1234\");\n #$conexion = $this->conectar($_SESSION['user'], $_SESSION['pass']);\n\n $result = oci_parse($conexion, \"INSERT INTO PACIENTE VALUES (\".$objeto->getCI().\", '\".$objeto->getNombres().\"', '\".$objeto->getApellidos().\"', '\".$objeto->getProfesion().\"', '\".$objeto->getLugarRes().\"', to_date('\".$objeto->getFechaNac().\"', 'YYYY-MM-DD'),'\".$objeto->getID_Historial().\"','\".$objeto->getDiagnostico().\"', '\".$objeto->getInterQuir().\"')\");\n oci_execute($result);\n\n $this->desconectar($conexion);\n return $result;\n }", "function add_adjunto_producto($id,$archivo){\n\t\t$this->db->set('Imagen', $archivo);\n\t\t$this->db->where('Id_platillo',$id);\n\t\t$this->db->update('jam_platillo',$data);\n\t}", "public function procesar_entrega_database_save($entrega_id, $data_request, $paga_con , $pedido_entrega){\n\n $estado = $data_request->estado;\n $monto_a_pagar = $data_request->monto_a_pagar;\n $user = $pedido_entrega->user()->get()->first();\n $this->actualizar_saldo_cliente($entrega_id, $estado, $monto_a_pagar, $paga_con, $user);\n\n\n Entrega::find($entrega_id);\n\n $hoy = $this->hoy();\n\n\n $entrega = Entrega::where(\"id\", $entrega_id)->update([\n \"estado\" => $data_request->estado,\n \"fecha_de_procesamiento_real\" => $hoy,\n \"paga_con\" => $paga_con,\n \"derivada\" => $data_request->derivada,\n \"reintentar\" => $data_request->reintentar,\n \"adelanta\" => $data_request->adelanta,\n \"entregas_adelantadas\" => $data_request->entregas_adelantadas,\n \"observaciones\" => $data_request->observaciones\n ]);\n\n $entrega = Entrega::find($entrega_id);\n\n return $entrega;\n }", "function guardar($arg) {\n\t\tSessionHandler()->check_session();\n\t\tdate_default_timezone_set('America/Argentina/La_Rioja');\n\n\t\t$ids = explode('@', $arg);\n\t\t$mesa = $ids[0];\n\t\t$bebida = $ids[1];\n\t\t$cantidad = $ids[2];\n\t\t$pedidoId = $ids[3];\n\n\t\t//COMPROBAR STOCK DE BEBIDA.\n\t\t\n\t\tif ($pedidoId != null || $pedidoId != 0 || $pedidoId != \"\") {\n\t\t\t$bp = new BebidaPedido();\n\t\t\t$bp->pedido = $pedidoId;\n\t\t\t$bp->bebida = $bebida;\n\t\t\t$bp->cantidad = $cantidad;\n\t\t\t$bp->save();\n\n\t\t\t$md = new Mesa();\n\t\t\t$md->mesa_id = $mesa;\n\t\t\t$md->get();\n\t\t\t$md->disponible = 2;\n\t\t\t$md->save();\n\t\t\tprint($pedidoId);exit;\n\t\t}\n\n\t\t$this->model->fecha = date('Y-m-d');\t\t\n\t\t$this->model->mesa = $mesa;\t\t\n\t\t$this->model->estado = 1;\t\t\n\t\t$this->model->save();\n\t\t\n\t\t$md = new Mesa();\n\t\t$md->mesa_id = $mesa;\n\t\t$md->get();\n\t\t$md->disponible = 2;\n\t\t$md->save();\n\t\t\n\t\t$pedido_id = $this->model->pedido_id;\n\t\t\n\t\t$bp = new BebidaPedido();\n\t\t$bp->pedido = $pedido_id;\n\t\t$bp->bebida = $bebida;\n\t\t$bp->cantidad = $cantidad;\n\t\t$bp->save();\n\t\tprint($pedido_id);exit;\n\n\t}", "public function insert($producto);", "public function save(){\n\t\t$bd=baseDatos::getInstance();\n\t\t$bd=new baseDatos(BD_USUARIO, BD_CONTRASENA, BD_NOMBRE_BD, BD_SERVIDOR);\n\t\t$bd->connect();\n\t\tif($this->id<>null){\n\t\t$columnas= array('idHotel','nombre','descripcion','cantidadEstrellas','ciudad','direccion','telefono','email','ubicacionFotografia');\n\t\t$valores = array($this->id,$this->nombre, $this->descripcion, $this->cantidadEstrellas, $this->ciudad, $this->direccion, $this->telefono, $this->email, $this->ubicacionFotografia);\n\t\t$filtros=array('idHotel'=>$this->id!= null);\n\t\tif (is_numeric($this->id) && $this->id > 0) {\n\t\t\t$bd->update(self::$tabla, $columnas, $valores, $filtros);\n\t\t} else {\n\t\t\t$bd->insert(self::$tabla, $columnas, $valores);\n\t\t}\n\t\t}else{\n\t\t\t$columnas= array('nombre','descripcion','cantidadEstrellas','ciudad','direccion','telefono','email','ubicacionFotografia');\n\t\t\t$valores = array($this->nombre, $this->descripcion, $this->cantidadEstrellas, $this->ciudad, $this->direccion, $this->telefono, $this->email, $this->ubicacionFotografia);\n\t\t\t$filtros=array('idHotel'=>$this->id!= null);\n\t\t\tif (is_numeric($this->id) && $this->id > 0) {\n\t\t\t\t$bd->update(self::$tabla, $columnas, $valores, $filtros);\n\t\t\t} else {\n\t\t\t\t$bd->insert(self::$tabla, $columnas, $valores);\n\t\t\t}\n\t\t}$bd->disconnect();\n\n\t}", "public function insertar(){\n $mysqli = new mysqli(Config::BBDD_HOST, Config::BBDD_USUARIO, Config::BBDD_CLAVE, Config::BBDD_NOMBRE);\n //Arma la query\n $sql = \"INSERT INTO tipo_domicilios ( \n tipo,\n nombre\n ) VALUES (\n '\" . $this->tipo .\"', \n '\" . $this->nombre .\"'\n );\";\n //Ejecuta la query\n if (!$mysqli->query($sql)) {\n printf(\"Error en query: %s\\n\", $mysqli->error . \" \" . $sql);\n }\n //Obtiene el id generado por la inserción\n $this->idtipo = $mysqli->insert_id;\n //Cierra la conexión\n $mysqli->close();\n }", "public function agregar()\n {\n if (AuthHelper::obtenerUsuarixAdmin() == 2){\n $nombre = $_POST['name'];\n \n //chequeo que no este vacio el nombre\n if (!empty($_POST['name'])) {\n \n //busco en la tabla de paises alguno que coincida con el nombre puesto por el usuario.\n $paisDb = $this->modelpaises->obtenerPais($nombre);\n\n //y si no se obtuvo un pais en la base de datos que coincida\n //con lo ingresado por el usuario ahi si lo agrego.\n if (empty($paisDb)) {\n $this->modelpaises->agregar($nombre);\n header(\"Location: \" . BASE_URL . 'home');\n } else $this->mostrarAgregar(\"Ya existe un pais con ese nombre\");\n } else $this->mostrarAgregar(\"No es posible agregar paises vacios\");\n } else {\n $this->view->mostrarError(\"Acceso denegado\");\n }\n }", "public static function pedidoM($code, $id, $precio, $cantidad, $total, $fechaP, $nombre, $lapPaymentMethod, $direccion)\r\n {\r\n\r\n $sql = \"INSERT INTO pedido(id_usuario,fecha_pedido,direccion_destino,nombre_usuario2) VALUES (:id_usuario,:fecha_pedido,:direccion_destino,:nombre_usuario2)\";\r\n self::getConexion();\r\n $resultado = self::$cnx->prepare($sql);\r\n $resultado->bindParam(\":id_usuario\", $id);\r\n $resultado->bindParam(\":fecha_pedido\", $fechaP);\r\n $resultado->bindParam(\":direccion_destino\", $direccion);\r\n $resultado->bindParam(\":nombre_usuario2\", $nombre);\r\n\r\n $resultado->execute();\r\n $lastId = self::$cnx->lastInsertId();\r\n\r\n // insercion\r\n $sqll = \"INSERT INTO detallepedido (id_pedido,id_producto,precio_unidad,cantidad,precio_total,descuento)\r\n VALUES(:id_pedido,:id_producto,:precio_unidad,:cantidad,:precio_total,0)\";\r\n self::getConexion();\r\n $resultados = self::$cnx->prepare($sqll);\r\n $resultados->bindParam(\":id_pedido\", $lastId);\r\n $resultados->bindParam(\":id_producto\", $code);\r\n $resultados->bindParam(\":precio_unidad\", $precio);\r\n $resultados->bindParam(\":cantidad\", $cantidad);\r\n $resultados->bindParam(\":precio_total\", $total);\r\n $resultados->execute();\r\n\r\n }", "public function gestionPedidos(){\n Utils::isAdmin();\n $gestion = true;\n\n $oPedido = new Pedido();\n $pedidos = $oPedido->getAll();\n\n require_once 'views/pedido/mis_pedidos.php';\n }", "function agregar($nombre, $ApellidoPaterno, $ApellidoMaterno, $idDepartamento, $idPuesto, $idTurno, $idNivelEstudios, $profesion, $sueldoMensual, $contrato, $fechaAlta, $fechaBaja, $idStatusEmpleado, $idPerfil, $correoElectronico, $contrasena, $telCelular, $telCasa, $rfc, $imss, $idCivil, $tipoSangre, $pesionAlimen, $nombreEmergencia, $telEmergencia, $calleNumero, $colonia, $delegacionMunicipio, $estado, $codigoPostal, $pais)\n {\n\n \t$insertDomicilio= array(\n \t\"calleNumero\" \t\t => $calleNumero,\n \t\"colonia\" => $colonia,\n \t\"delegacionMunicipio\" => $delegacionMunicipio,\n \t\"estado\" => $estado,\n \t\"codigoPostal\" => $codigoPostal,\n \t\"pais\"\t => $pais\n\n\n \t\t);\n\n \t//recibe el id de lo que se inserto en la tabla domicilio mediante el domiciliomodelo\n $idDomicilios = $this->domiciliomodelo->agregarDomicilio($insertDomicilio);\n\n\n $insert = array(\n \"nombre\" => $nombre, \n \"ApellidoPaterno\" => $ApellidoPaterno, \n \"ApellidoMaterno\" => $ApellidoMaterno, \n \"idDepartamento\" => $idDepartamento, \n \"idPuesto\" \t\t => $idPuesto, \n \"idTurno\"\t\t => $idTurno, \n \"idNivelEstudios\" => $idNivelEstudios, \n \"profesion\" => $profesion, \n \"sueldoMensual\" => $sueldoMensual, \n \"contrato\" => $contrato, \n \"fechaAlta\" => $fechaAlta, \n \"fechaBaja\" => $fechaBaja, \n \"idStatusEmpleado\" => $idStatusEmpleado, \n \"idPerfil\" => $idPerfil, \n \"correoElectronico\" => $correoElectronico, \n \"contrasena\" => $contrasena, \n \"idDomicilios\" => $idDomicilios, \n \"telCelular\" => $telCelular,\n \"telCasa\" => $telCasa,\n \"rfc\" => $rfc,\n \"imss\" => $imss,\n \"idCivil\" => $idCivil,\n \"tipoSangre\" => $tipoSangre,\n \"pesionAlimen\" => $pesionAlimen,\n \"nombreEmergencia\" => $nombreEmergencia,\n \"telEmergencia\" => $telEmergencia\n\n\n );\n\n\t\t\n\n\n\n \t$this->db->insert('empleados', $insert);\n \treturn $this->db->trans_status();\n\n \n }", "function recuperarDatos(){\r\n\t\t\t\t$this->objFunc=$this->create('MODEmpresa');\r\n\t\t\t\t$objetoFuncion = $this->create('MODEmpresa');\r\n\t\t\t\t$this->res=$this->objFunc->insertarEmpresa($this->objParam);\t//esta bien\t\t\t\r\n\t\t\t\t$this->res->imprimirRespuesta($this->res->generarJson());\r\n\t\t}", "function hacerPedido($usuario, $fecha){\n $sql=\"INSERT INTO pedido(id, id_user, fecha) VALUES (NULL, \".$usuario.\", '\".$fecha.\"')\";\n //Realizamos la consulta\n $resultado=$this->realizarConsulta($sql);\n if($resultado!=false){\n //Recogemos el ultimo pedido insertado\n $sql=\"SELECT * from pedido ORDER BY id DESC\";\n //Realizamos la consulta\n $resultado=$this->realizarConsulta($sql);\n if($resultado!=false){\n return $resultado->fetch_assoc();\n }else{\n return null;\n }\n }else{\n return null;\n }\n}", "public function guardar($datosCampos) {\n $guardar = new SqlQuery(); //instancio objeto de la clase sqlQuery\n (string) $tabla = get_class($this); //obtengo el nombre de la clase para poder realizar la consulta\n switch ($datosCampos[\"acceso\"]) {\n case \"total\":\n $datosCampos[\"acceso\"] = 1;\n break;\n case \"restringido\":\n $datosCampos[\"acceso\"] = 2;\n break;\n default:\n $datosCampos[\"acceso\"] = 0;\n break;\n }\n $datosCampos[\"pass\"] = sha1(\"123\"); //agrego la contraseña en sha1 para que solicite el cambio cada vez que se cree un usuario\n $this->refControladorPersistencia->get_conexion()->beginTransaction(); //comienza transaccion\n $rtaVerifUser = $this->refControladorPersistencia->ejecutarSentencia(\n $guardar->verificarExistenciaUsuario($tabla, $datosCampos[\"usuario\"])); //verifico si ya hay un usuario con ese nombre \n $existeUser = $rtaVerifUser->fetch(); //paso a un array\n $this->refControladorPersistencia->get_conexion()->commit(); //cierro\n if ($existeUser[0] == '0') {//solamente si el usuario no existe se comienza con la carga a la BD\n try {\n $this->refControladorPersistencia->get_conexion()->beginTransaction(); //comienza la transacción\n $arrayCabecera = $guardar->meta($tabla); //armo la cabecera del array con los datos de la tabla de BD\n $sentencia = $guardar->armarSentencia($arrayCabecera, $tabla); //armo la sentencia\n $array = $guardar->armarArray($arrayCabecera, $datosCampos); //armo el array con los datos de la vista y los datos que obtuve de la BD \n array_shift($array); //remuevo el primer elemento id si es nuevo se genera automaticamente en la BD\n $this->refControladorPersistencia->ejecutarSentencia($sentencia, $array); //genero la consulta\n $this->refControladorPersistencia->get_conexion()->commit();\n $this->refControladorPersistencia->get_conexion()->beginTransaction();\n $ultimo = $guardar->buscarUltimo($tabla);\n $idUser = $this->refControladorPersistencia->ejecutarSentencia($ultimo); //busco el ultimo usuario para mostrarlo en la vista \n $id = $idUser->fetchColumn(); //array \n $this->refControladorPersistencia->get_conexion()->commit(); //si todo salió bien hace el commit\n } catch (PDOException $excepcionPDO) {\n echo \"<br>Error PDO: \" . $excepcionPDO->getTraceAsString() . '<br>';\n $this->refControladorPersistencia->get_conexion()->rollBack(); //si salio mal hace un rollback\n } catch (Exception $exc) {\n echo $exc->getTraceAsString();\n $this->refControladorPersistencia->get_conexion()->rollBack(); //si hay algún error hace rollback\n }\n $respuesta = $this->getUsuario($id); //busco el usuario\n return $respuesta; //regreso\n } else {\n return $id = [\"incorrecto\" => \"incorrecto\"]; //si hubo un error volvemos a vista y corregimos\n }\n }", "function enlazar(\r\n\t\t$Id_Pedido,\r\n\t\t$Id_Pedido_Hijo\r\n\t)\r\n\t{\r\n\t\t\r\n\t\t//Creacion del enlace\r\n\t\t$Consulta = '\r\n\t\t\tinsert into pedido_pedido values(\r\n\t\t\t\tNULL,\r\n\t\t\t\t\"'.$Id_Pedido.'\",\r\n\t\t\t\t\"'.$Id_Pedido_Hijo.'\"\r\n\t\t\t)\r\n\t\t';\r\n\t\t\r\n\t\t//Ingreso del pedido\r\n\t\t$this->db->query($Consulta);\r\n\t\t\r\n\t\treturn 'ok';\r\n\t\t\r\n\t}", "public function crear($data)\n {\n try{\n $sql = \"INSERT INTO pedidos (estado,cliente,fecha) \n VALUES (?, ?, ?)\";\n\n $this->pdo->prepare($sql)\n ->execute(\n \tarray(\n \t\t$data->__GET('estado'), \n \t\t$data->__GET('cliente'), \n \t\t$data->__GET('fecha'),\n \t\t)\n \t);\n } catch (Exception $e) \n {\n \tdie($e->getMessage());\n }\n }", "public function agregar_banco(){\r\n $conectar=parent::conexion();\r\n parent::set_names();\r\n if(empty($_POST[\"pregunta\"])){\r\n header(\"Location:\".Conectar::ruta().\"admin/banco/crear.php?m=1\");\r\n exit();\r\n }\r\n $contra='activo';\r\n $conectar=parent::conexion();\r\n $sql=\"insert into banco values(null,?,?,?,now());\";\r\n $sql=$conectar->prepare($sql);\r\n $sql->bindValue(1, $_POST[\"pregunta\"]);\r\n $sql->bindValue(2, $_SESSION[\"id\"]);\r\n $sql->bindValue(3, $contra);\r\n $sql->execute();\r\n $resultado=$sql->fetch(PDO::FETCH_ASSOC);\r\n \r\n header(\"Location:\".Conectar::ruta().\"admin/banco/index.php?m=2\");\r\n \r\n }", "function insertarEmpresa(){\n\t\t$this->procedimiento='dir.f_empresa_ime';\n\t\t$this->transaccion='DIR_EMP_INS';\n\t\t$this->tipo_procedimiento='IME';\n\t\t\n\t\t//Define los parametros para la funcion\n\t\t$this->setParametro('estado_reg','estado_reg','varchar');\n\t\t$this->setParametro('tipo_sociedad','tipo_sociedad','varchar');\n\t\t$this->setParametro('actividad','actividad','text');\n\t\t$this->setParametro('actividad_esp','actividad_esp','varchar');\n\t\t$this->setParametro('nit','nit','varchar');\n\t\t$this->setParametro('actividad_gral','actividad_gral','varchar');\n\t\t$this->setParametro('domicilio','domicilio','text');\n\t\t$this->setParametro('matricula','matricula','int8');\n\t\t$this->setParametro('renovado','renovado','int4');\n\t\t$this->setParametro('actividad_prim','actividad_prim','varchar');\n\t\t$this->setParametro('nombre','nombre','varchar');\n\t\t$this->setParametro('departamento','departamento','varchar');\n\t\t$this->setParametro('telefono','telefono','varchar');\n\t\t$this->setParametro('municipio','municipio','varchar');\n\t\t$this->setParametro('estado_matricula','estado_matricula','varchar');\n\t\t$this->setParametro('mail','mail','varchar');\n\t\t\n\t\t//Ejecuta la instruccion\n\t\t$this->armarConsulta();\n\t\t$this->ejecutarConsulta();\n\t\t\n\t\t//Devuelve la respuesta\n\t\treturn $this->respuesta;\n\t}", "public function add() {\n\n $sql = \"INSERT INTO persona(id,nombre,apellido_paterno,apellido_materno,estado_salud,telefono,ubicacion)\n VALUES(null,'{$this->nombre}','{$this->apellido_paterno}','{$this->apellido_materno}',\n '{$this->estado_salud}','{$this->telefono}','{$this->ubicacion}')\";\n $this->con->consultaSimple($sql);\n }", "public function actualizaEstado(){\n $this->estado = 'Completo';\n // $this->cotiza = $this->generarCustomID();\n $this->save();\n }", "function insertarProcesoCompra(){\n\t\t$this->procedimiento='adq.f_proceso_compra_ime';\n\t\t$this->transaccion='ADQ_PROC_INS';\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_depto','id_depto','int4');\n\t\t$this->setParametro('num_convocatoria','num_convocatoria','varchar');\n\t\t$this->setParametro('id_solicitud','id_solicitud','int4');\n\t\t$this->setParametro('id_estado_wf','id_estado_wf','int4');\n\t\t$this->setParametro('fecha_ini_proc','fecha_ini_proc','date');\n\t\t$this->setParametro('obs_proceso','obs_proceso','varchar');\n\t\t$this->setParametro('id_proceso_wf','id_proceso_wf','int4');\n\t\t$this->setParametro('num_tramite','num_tramite','varchar');\n\t\t$this->setParametro('codigo_proceso','codigo_proceso','varchar');\n\t\t$this->setParametro('estado_reg','estado_reg','varchar');\n\t\t$this->setParametro('estado','estado','varchar');\n\t\t$this->setParametro('num_cotizacion','num_cotizacion','varchar');\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 modificar($datosCampos) {\n $guardar = new SqlQuery(); //instancio objeto de la clase sqlQuery\n (string) $tabla = get_class($this); //obtengo el nombre de la clase para poder realizar la consulta\n $id = $datosCampos[\"id\"];\n switch ($datosCampos[\"acceso\"]) //cambio los dato que vienen de la vista\n {\n case \"total\":\n $datosCampos[\"acceso\"] = 1;\n break;\n case \"restringido\":\n $datosCampos[\"acceso\"] = 2;\n break;\n default:\n $datosCampos[\"acceso\"] = 0;\n break;\n }\n try {\n $this->refControladorPersistencia->get_conexion()->beginTransaction(); //comienza la transacción \n $arrayCabecera = $guardar->meta($tabla);//armo el array con la cabecera de los datos\n $sentencia = $guardar->armarSentenciaModificar($arrayCabecera, $tabla);//genero sentencia\n $array = $guardar->armarArray($arrayCabecera, $datosCampos);//Armo el array con los datos que vienen de la vista y la cabecera de la BD\n array_shift($array);//elimino primer elemento del array que es el id\n array_push($array, $id);//agrego el id al final del array para realizar la consulta\n $this->refControladorPersistencia->ejecutarSentencia($sentencia, $array);//genero la consulta a la BD \n $this->refControladorPersistencia->get_conexion()->commit(); //si todo salió bien hace el commit \n } catch (PDOException $excepcionPDO) {\n echo \"<br>Error PDO: \" . $excepcionPDO->getTraceAsString() . '<br>';\n $this->refControladorPersistencia->get_conexion()->rollBack(); //si salio mal hace un rollback\n } catch (Exception $exc) {\n echo $exc->getTraceAsString();\n $this->refControladorPersistencia->get_conexion()->rollBack(); //si hay algún error hace rollback\n }\n $respuesta = $this->getUsuario($id);\n return $respuesta;\n }", "public function agregarComentario($id_u, $id_p)\n {\n if(Input::has('comentario')){\n $c = new Comentario;\n $c->descripcion = Input::get('comentario');\n $c->id_autor = $id_u;\n $c->id_producto = $id_p;\n $c->save();\n return Redirect::to('productoEspecifico/'.$id_p)->with(\"comentario\", \"Se agrego el comentario nuevo\");\n }\n return Redirect::to('productoEspecifico/'.$id_p)->with(\"nComentario\", \"No Se agrego el comentario nuevo\");\n }", "public function insert($contenido);", "public function savePoblacion(){\n \n $data_insert = [\n 'poblacion' =>$this->_poblacion,\n'provincia' =>$this->_provincia,\n'ccaa' =>$this->_ccaa,\n'cod_provincia' =>$this->_cod_provincia,\n'cod_ccaa' =>$this->_cod_ccaa,\n \n ];\n return parent::save($data_insert);\n \n }", "public function insertar($objeto){\r\n\t}", "function insertarSolicitudObligacionPago()\r\n {\r\n $this->procedimiento = 'tes.ft_solicitud_obligacion_pago_ime';\r\n $this->transaccion = 'TES_SOOBPG_INS';\r\n $this->tipo_procedimiento = 'IME';\r\n\r\n //Define los parametros para la funcion\r\n $this->setParametro('id_proveedor', 'id_proveedor', 'int4');\r\n $this->setParametro('tipo_obligacion', 'tipo_obligacion', 'varchar');\r\n $this->setParametro('id_moneda', 'id_moneda', 'int4');\r\n $this->setParametro('obs', 'obs', 'varchar');\r\n $this->setParametro('porc_retgar', 'porc_retgar', 'numeric');\r\n $this->setParametro('id_funcionario', 'id_funcionario', 'int4');\r\n $this->setParametro('porc_anticipo', 'porc_anticipo', 'numeric');\r\n $this->setParametro('id_depto', 'id_depto', 'int4');\r\n $this->setParametro('fecha', 'fecha', 'date');\r\n $this->setParametro('tipo_cambio_conv', 'tipo_cambio_conv', 'numeric');\r\n $this->setParametro('pago_variable', 'pago_variable', 'varchar');\r\n $this->setParametro('total_nro_cuota', 'total_nro_cuota', 'int4');\r\n $this->setParametro('fecha_pp_ini', 'fecha_pp_ini', 'date');\r\n $this->setParametro('rotacion', 'rotacion', 'int4');\r\n $this->setParametro('id_plantilla', 'id_plantilla', 'int4');\r\n $this->setParametro('tipo_anticipo', 'tipo_anticipo', 'varchar');\r\n $this->setParametro('id_contrato', 'id_contrato', 'int4');\r\n\r\n\r\n //Ejecuta la instruccion\r\n $this->armarConsulta();\r\n $this->ejecutarConsulta();\r\n\r\n //Devuelve la respuesta\r\n return $this->respuesta;\r\n }", "public function save(){\n //para insertar datos que entrarar debemos unterpolar\n\n //los numero no van entrecomillas\n \n $sql=\"INSERT INTO pedidos VALUES (NULL,{$this->getUsuario_id()},'{$this->getProvincia()}','{$this->getLocalidad()}','{$this->getDireccion()}',{$this->getCoste()},'confirm',curdate(),curtime());\";\n //ahora insertamos una consulta \n $save = $this->db->query($sql);\n \n\n $result = false; //este es el resultado por defecto\n //si el $save da true (en otras palabras no esta vacio y los datos se llenaron correctamente)\n if($save){\n $result=true;\n }\n return $result;\n }", "function insertarServicio(){\r\n\t\t$this->procedimiento='gev.f_tgv_servicio_ime';\r\n\t\t$this->transaccion='tgv_SERVIC_INS';\r\n\t\t$this->tipo_procedimiento='IME';\r\n\t\t\t\t\r\n\t\t\r\n\t\t//Define los parametros para la funcion\r\n\t\t$this->setParametro('estado','estado','varchar');\r\n\t\t$this->setParametro('estado_reg','estado_reg','varchar');\r\n\t\t$this->setParametro('id_lugar_destino','id_lugar_destino','int4');\r\n\t\t$this->setParametro('id_ep','id_ep','int4');\r\n\t\t$this->setParametro('fecha_asig_fin','fecha_asig_fin','date');\r\n\t\t$this->setParametro('fecha_sol_ini','fecha_sol_ini','date');\r\n\t\t$this->setParametro('descripcion','descripcion','varchar');\r\n\t\t$this->setParametro('id_lugar_origen','id_lugar_origen','int4');\r\n\t\t$this->setParametro('cant_personas','cant_personas','int4');\r\n\t\t$this->setParametro('fecha_sol_fin','fecha_sol_fin','date');\r\n\t\t$this->setParametro('id_funcionario','id_funcionario','int4');\r\n\t\t$this->setParametro('fecha_asig_ini','fecha_asig_ini','date');\r\n\t\t$this->setParametro('id_funcionario_autoriz','id_funcionario_autoriz','int4');\r\n\t\t$this->setParametro('observaciones','observaciones','varchar');\r\n\r\n\t\t//Ejecuta la instruccion\r\n\t\t$this->armarConsulta();\r\n\t\t$this->ejecutarConsulta();\r\n\r\n\t\t//Devuelve la respuesta\r\n\t\treturn $this->respuesta;\r\n\t}", "public function insert(ParecerTrabalho $ParecerTrabalho) {\r\n $sql = \"INSERT INTO $this->table\"\r\n . \" (fk_revisor, datahora, status, fk_trabalho, seq,\"\r\n . \" status_introducao, status_objetivos,\"\r\n . \" status_metodologia, status_resultados, observacoes, observacoes_internas,\"\r\n . \" obs_introducao, obs_objetivos, obs_metodologia, obs_resultados) \"\r\n . \"VALUES\"\r\n . \" (:fkRevisor, :datahora, :status, :fkTrabalho, :seq,\"\r\n . \" :statusIntroducao, :statusObjetivos,\"\r\n . \" :statusMetodologia, :statusResultados, :observacoes, :observacoesInternas,\"\r\n . \" :obsIntroducao, :obsObjetivos, :obsMetodologia, :obsResultados)\";\r\n\r\n\r\n\r\n\r\n $fkRevisor = $ParecerTrabalho->getFkRevisor();\r\n $datahora = $ParecerTrabalho->getDatahora();\r\n $status = $ParecerTrabalho->getStatus();\r\n $fkTrabalho = $ParecerTrabalho->getFkTrabalho();\r\n $seq = $ParecerTrabalho->getSeq();\r\n $statusIntroducao = $ParecerTrabalho->getStatusIntroducao();\r\n $statusObjetivos = $ParecerTrabalho->getStatusObjetivos();\r\n $statusMetodologia = $ParecerTrabalho->getStatusMetodologia();\r\n $statusResultados = $ParecerTrabalho->getStatusResultados();\r\n $observacoes = $ParecerTrabalho->getObservacoes();\r\n $observacoesInternas = $ParecerTrabalho->getObservacoesInternas();\r\n $obsIntroducao = $ParecerTrabalho->getObsIntroducao();\r\n $obsObjetivos = $ParecerTrabalho->getObsObjetivos();\r\n $obsMetodologia = $ParecerTrabalho->getObsMetodologia();\r\n $obsResultados = $ParecerTrabalho->getObsResultados();\r\n\r\n $stmt = ConnectionFactory::prepare($sql);\r\n\r\n $stmt->bindParam(':fkRevisor', $fkRevisor);\r\n $stmt->bindParam(':datahora', $datahora);\r\n $stmt->bindParam(':status', $status);\r\n $stmt->bindParam(':fkTrabalho', $fkTrabalho);\r\n $stmt->bindParam(':seq', $seq);\r\n $stmt->bindParam(':statusIntroducao', $statusIntroducao);\r\n $stmt->bindParam(':statusObjetivos', $statusObjetivos);\r\n $stmt->bindParam(':statusMetodologia', $statusMetodologia);\r\n $stmt->bindParam(':statusResultados', $statusResultados);\r\n $stmt->bindParam(':observacoes', $observacoes);\r\n $stmt->bindParam(':observacoesInternas', $observacoesInternas);\r\n $stmt->bindParam(':obsIntroducao', $obsIntroducao);\r\n $stmt->bindParam(':obsObjetivos', $obsObjetivos);\r\n $stmt->bindParam(':obsMetodologia', $obsMetodologia);\r\n $stmt->bindParam(':obsResultados', $obsResultados);\r\n return $stmt->execute();\r\n }", "function alta_tipo_entrada(){\n\t\t$u= new Tipo_entrada();\n\t\t$related = $u->from_array($_POST);\n\t\t// save with the related objects\n\t\tif($u->save($related))\n\t\t{\n\t\t\techo \"<html> <script>alert(\\\"Se han registrado los datos del Tipo de Entrada.\\\"); window.location='\".base_url().\"index.php/inicio/acceso/\".$GLOBALS['ruta'].\"/menu';</script></html>\";\n\t\t}\n\t\telse\n\t\t{\n\t\t\tshow_error(\"\".$u->error->string);\n\t\t}\n\t}", "function insertarEnBd(){\n\t/* Conexion con base de datos. */\n\t$conexion = new PDO('mysql:host=localhost;dbname=tarea02;charset=UTF8', 'root', '');\n $conexion->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\n \n\t/* Se define la consulta SQL */\n\t$consulta = \"INSERT INTO alumno (matricula,nombre,carrera,email,telefono) VALUES (\";\n\t$consulta .= \"'.$this->matricula.','$this->nombre','$this->carrera','$this->email','$this->telefono');\";\n\t\n\t/* Se efectúa la consulta. */\n\t$conexion->exec($consulta);\n\n}", "public function add() \n { // metodo add, complementar\n $str = \"insert into \".self::$tablename.\"(nitHotel, idCiudad, nomHotel, dirHotel, telHotel1, telHotel2, correoHotel, tipoHotel, Administrador, idRedes, aforo, tipoHabitaciones, status)\";\n $str.= \" values ('$this->nitHotel', $this->idCiudad, '$this->nomHotel', '$this->dirHotel', '$this->telHotel1', '$this->telHotel2', '$this->correoHotel', $this->tipoHotel, '$this->Administrador', $this->idRedes, $this->aforo, $this->tipoHabitaciones, $this->status);\";\n }", "public function Insert($dados){\n $sql = \"insert into tbl_pedido (idProduto, idUsuario, quantidade,idStatus,data,idEnderecoUsuario)\n values ('\".$dados->idProduto.\"',\n '\".$dados->idUsuario.\"',\n '\".$dados->quantidade.\"','1',CURDATE(),'1')\";\n\n\n\n //echo $sql;\n\n // conexao com o banco\n $conex = new Mysql_db();\n $PDO_conex = $conex->Conectar();\n\n if ($PDO_conex->query($sql)) {\n // echo \"</br> sucesso\";\n\n if (isset($_SESSION['idUsuario'])) {\n $idUser = $_SESSION['idUsuario'];\n\n session_destroy();\n @session_start();\n\n $_SESSION['idUsuario'] = $idUser;\n\n\n\n }\n }\n\n header(\"location:pagamento.php\");\n\n $conex->Desconectar();\n\n }", "function insertar_temporada_producto(){\t\t\n\t\t$this->accion=\"Insertar Nueva Temporada\";\n\t\tif (isset($_POST['envio']) && $_POST['envio']==\"Guardar\"){\n\t\t\t$this->asignar_valores2();\n\t\t\t$this->desde=$this->convertir_fecha($this->desde);\n\t\t\t$this->hasta=$this->convertir_fecha($this->hasta);\n\t\t\t\n\t\t\t$sql=\"INSERT INTO temporadas2 VALUES ('', '$this->id', '$this->mostrar', '$this->prioridad', 'Por Fecha', '0', '$this->desde', '$this->hasta', '0', '0', '$this->alternativo', '0', '0', '$this->titulo', 'NULL', '$this->paxadicional', 'NULL', '$this->desde_a', '$this->hasta_a', '$this->precio_a', '0', 'NULL', '$this->desde_b', '$this->hasta_b', '$this->precio_b', '0', 'NULL', '0', '0', '0', '0', 'NULL')\";\n\t\t\t$id=$this->id;\n\t\t\t$consulta=mysql_query($sql) or die(mysql_error());\n\t\t\theader(\"location:/admin/producto/detalle.php?id=$id#next\");\n\t\t\texit();\n\t\t}\n\t}", "public function agregar_docente(){\r\n $conectar=parent::conexion();\r\n parent::set_names();\r\n\r\n\r\n if(empty($_POST[\"nombre\"]) or empty($_POST[\"apellido\"]) or empty($_POST[\"num_identidad\"])){\r\n header(\"Location:\".Conectar::ruta().\"admin/profesores/crear.php?m=1\");\r\n exit();\r\n }\r\n $esta='activo';\r\n $conectar=parent::conexion();\r\n $sql=\"insert into docente values(null,?,?,?,?,now());\";\r\n $sql=$conectar->prepare($sql);\r\n $sql->bindValue(1, $_POST[\"nombre\"]);\r\n $sql->bindValue(2, $_POST[\"apellido\"]);\r\n $sql->bindValue(3, $_POST[\"num_identidad\"]);\r\n $sql->bindValue(4, $esta);\r\n $sql->execute();\r\n $resultado=$sql->fetch(PDO::FETCH_ASSOC);\r\n header(\"Location:\".Conectar::ruta().\"admin/profesores/index.php?m=2\");\r\n \r\n }", "public function persist() {\n\n $classenta = new cl_assenta();\n\n $classenta->h16_regist = $this->getMatricula();\n $classenta->h16_assent = $this->getTipoAssentamento();\n $classenta->h16_dtconc = ($this->getDataConcessao() instanceof DBDate ? $this->getDataConcessao()->getDate() : $this->getDataConcessao());\n $classenta->h16_histor = $this->getHistorico();\n $classenta->h16_nrport = $this->getCodigoPortaria();\n $classenta->h16_atofic = $this->getDescricaoAto();\n $classenta->h16_quant = $this->getDias();\n $classenta->h16_perc = ($this->getPercentual()) ? $this->getPercentual() : '0';\n $classenta->h16_dtterm = ($this->getDataTermino() instanceof DBDate ? $this->getDataTermino()->getDate() : $this->getDataTermino());\n $classenta->h16_hist2 = $this->getSegundoHistorico();\n $classenta->h16_login = ($this->getLoginUsuario()) ? $this->getLoginUsuario() : '1';\n $classenta->h16_dtlanc = ($this->getDataLancamento() instanceof DBDate ? $this->getDataLancamento()->getDate() : $this->getDataLancamento());\n $classenta->h16_conver = ((bool)(int)$this->isConvertido()) == false ? 'false' : 'true';\n $classenta->h16_anoato = $this->getAnoPortaria();\n $classenta->h16_hora = $this->getHora();\n\n if(empty($this->iCodigo)) {\n\n $classenta->incluir(null);\n\n if ($classenta->erro_status == \"0\") {\n return $classenta->erro_msg;\n }\n\n $this->setCodigo($classenta->h16_codigo);\n } else {\n\n $classenta->h16_codigo = $this->getCodigo();\n $classenta->alterar($this->getCodigo());\n\n if ($classenta->erro_status == \"0\") {\n return $classenta->erro_msg;\n }\n }\n\n return $this;\n }", "function alta_transferencia(){\n\t\t$u= new Cl_pedido();\n\t\t$u->empresas_id=$GLOBALS['empresa_id'];\n\t\t$u->cclientes_id=$GLOBALS['empresa_id'];\n\t\t$u->fecha_alta=date(\"Y-m-d H:i:s\");\n\t\t//Sincronizar con fecha de salida&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&\n\t\t$u->usuario_id=$GLOBALS['usuarioid'];\n\t\t$u->ccl_estatus_pedido_id=2;\n\t\t$u->corigen_pedido_id=3;\n\t\t$u->ccl_tipo_pedido_id=2;\n\t\t// save with the related objects\n\t\tif($_POST['id']>0){\n\t\t\t$u->get_by_id($_POST['id']);\n\t\t\t$insert_traspaso_salida=0;\n\t\t} else {\n\t\t\t$insert_traspaso_salida=1;\n\t\t}\n\t\t$u->trans_begin();\n\t\tif($u->save()) {\n\t\t\t$cl_pedido_id=$u->id;\n\t\t\tif($insert_traspaso_salida==1) {\n\t\t\t\t//Dar de alta el traspaso\n\t\t\t\t$t= new Traspaso();\n\t\t\t\t$t->cl_pedido_id=$cl_pedido_id;\n\t\t\t\t$t->traspaso_estatus=1;\n\t\t\t\t$t->ubicacion_entrada_id=$_POST['ubicacion_entrada_id'];\n\t\t\t\t$t->ubicacion_salida_id=$_POST['ubicacion_salida_id'];\n\t\t\t\t$t->trans_begin();\n\t\t\t\t$t->save();\n\t\t\t\tif ($t->trans_status() === FALSE) {\n\t\t\t\t\t// Transaction failed, rollback\n\t\t\t\t\t$t->trans_rollback();\n\t\t\t\t\t$u->trans_rollback();\n\t\t\t\t\t// Add error message\n\t\t\t\t\techo form_hidden('id', \"$u->id\");\n\t\t\t\t\techo '<button type=\"submit\" style=\"display:none;\" id=\"boton1\">Intentar de nuevo</button><br/>';\n\t\t\t\t\techo \"El alta del traspaso no pudo registrarse, intente de nuevo\";\n\t\t\t\t} else {\n\t\t\t\t\t// Transaction successful, commit\n\t\t\t\t\t$u->trans_commit();\n\t\t\t\t\t$t->trans_commit();\n\t\t\t\t\techo form_hidden('id', \"$u->id\");\n\t\t\t\t\techo '<p id=\"response\">Capturar los detalles del pedido</p><button type=\"submit\" id=\"boton1\" style=\"display:none;\" id=\"boton1\">';\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t//Actualisar unicamente la tabla de los detalles\n\t\t\t\t$u->trans_commit();\n\t\t\t\techo form_hidden('id', \"$u->id\");\n\t\t\t\techo '<p id=\"response\">Capturar los detalles del pedido</p><button type=\"submit\" id=\"boton1\" style=\"display:none;\" id=\"boton1\">';\n\t\t\t}\n\t\t} else {\n\t\t\t$u->trans_rollback();\n\t\t\tshow_error(\"\".$u->error->string);\n\t\t}\n\t}", "public function add() {\n if ($this->id == 0) {\n $reponse = $this->bdd->prepare('INSERT INTO chapitres SET title = :title, body = :body');\n $reponse->execute([\n 'body'=>$this->body, \n 'title'=>$this->title\n ]);\n }\n }", "public function insert($usuario_has_hojaruta);", "public function tratarDados(){\r\n\t\r\n\t\r\n }", "public function recuperarPedidos($usuarioId){\r\n\t\techo \"<br>Dentro de recuperarPedidos<br>\";\r\n\t\t\r\n\t\t//criar um array d epedidos\r\n\t\t$arrayPedidos = array();\r\n\t\t\r\n\t\t$sql = \"SELECT *, DATE_FORMAT(pedi_dataPedido,'%d/%m/%Y %H:%i') as data,\r\n\t\t\t\tDATE_FORMAT(pedi_dataEntraga,'%d/%m/%Y %H:%i') as dataEntrega\r\n\t\t\t\tFROM `tb_pedidos` WHERE usu_id = $usuarioId AND pedi_status <> 'C';\";\r\n\t\t\r\n\t\techo \"<br>\".$sql.\"<br>\";\r\n\t\t\r\n\t\t$conn = new Conexao();\r\n\t\t\r\n\t\t$mysqli = $conn->Conn();\r\n\t\t\t\r\n\t\tif($resultado = $mysqli->query($sql)){\r\n\t\t\t\t\r\n\t\t\twhile ($row = mysqli_fetch_array($resultado)) {\r\n\t\t\t\t//echo \"dentro \".$row['prod_id'].\" - \".$row['prod_nome'].\"<br>\";\r\n\t\t\t\t$pedidoDTO = new PedidoDTO();\r\n\t\t\r\n\t\t\t\t$pedidoDTO->setId($row['pedi_id']);\r\n\t\t\t\t$pedidoDTO->setSessao($row['pedi_sessao']);\r\n\t\t\t\t$pedidoDTO->setStatus($this->verificarStatus($row['pedi_status']));\r\n\t\t\t\t$pedidoDTO->setTroco($row['pedi_troco']);\r\n\t\t\t\t$pedidoDTO->setValorTotal($row['pedi_valorTotal']);\r\n\t\t\t\t$pedidoDTO->setDataPedido($row['data']);\r\n\t\t\t\t$pedidoDTO->setTaxa($row['pedi_taxa']);\r\n\t\t\t\tif($row['dataEntrega'] == null || $row['dataEntrega'] == \"\"){\r\n\t\t\t\t\t$pedidoDTO->setDataEntrega(\"\");\r\n\t\t\t\t}else{\r\n\t\t\t\t\t$pedidoDTO->setDataEntrega($row['dataEntrega']);\r\n\t\t\t\t}\r\n\t\t\t\t$pedidoDTO->setFormaPagamento($row['pedi_formaPagamento']);\r\n\t\t\t\r\n\t\t\t\t$arrayPedidos[] = ($pedidoDTO);\r\n\t\t\t\t//echo \"id: $genero[0], Genero: $genero[1]<br>\";\r\n\t\t\t\t\t\r\n\t\t\t\t//echo \"Final\";\r\n\t\t\t\t//echo \"<br>$i<br>\";\r\n\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//buscar os produtos dos pedidos\r\n\t\t\tforeach($arrayPedidos as $pedido2DTO) {\r\n\t\t\t\t//echo \"<br> dentro\";\r\n\t\t\t\t//$pedido2DTO->getTaxa().\" taxa\".$pedido2DTO->getId().\"<br>\";\r\n\t\t\t\t$pedido2DTO->setArrayProdutos($this->produtosPedido($pedido2DTO->getId()));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//buscar cliente\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t//buscar entregador\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tmysqli_free_result($resultado);\r\n\t\t}\r\n\t\t$conn->fecharConn();\r\n\t\t\r\n\t\treturn $arrayPedidos;\r\n\t\t\r\n\t\t\r\n\t}", "public function Registrar_FormacionProfesional(HojaVida $data){\n $modelo = new HojaVida();\n $fechahora = $modelo->get_fecha_actual();\n $datosfecha = explode(\" \",$fechahora);\n $fechalog = $datosfecha[0];\n $horalog = $datosfecha[1];\n \n $tiporegistro = \"Formación Profesional\";\n $accion = \"Registra una Nueva \".$tiporegistro.\" En el Sistema (Hoja vida) TALENTO HUMANO\";\n $detalle = $_SESSION['nombre'].\" \".$accion.\" \".$fechalog.\" \".\"a las: \".$horalog;\n $tipolog = 15;\n $idusuario = $_SESSION['idUsuario'];\n try {\n $this->pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\t\t\n //EMPIEZA LA TRANSACCION\n $this->pdo->beginTransaction();\n\n $sql = \"INSERT INTO `th_formacion_profesional`(`for_pro_id_HV`, `for_pro_id_user`, `for_pro_id_userR`, `for_pro_id_nivel_educacion`, \n `for_pro_titulo`,`for_pro_institucion`, `for_pro_fecha_inicio`, `for_pro_fecha_fin`, `for_pro_ruta_certificado`) \n VALUES (?,?,?,?,?,?,?,?,?)\";\n $this->pdo->prepare($sql)\n ->execute(\n array(\n $data->id,\n $data->usuario,\n $idusuario,\n $data->for_pro_id_nivel,\n $data->for_pro_titulo,\n $data->for_pro_institucion,\n $data->for_pro_fecha_inicio,\n $data->for_pro_fecha_fin,\n $data->for_pro_ruta_certificado\n )\n ); \n $this->pdo->exec(\"INSERT INTO log (fecha, accion,detalle,idusuario,idtipolog) VALUES ('$fechalog', '$accion','$detalle','$idusuario','$tipolog')\");\n //SE TERMINA LA TRANSACCION \n $this->pdo->commit();\n } catch (Exception $e) {\n $this->pdo->rollBack();\n die($e->getMessage());\n }\n }", "function evt__agregar()\n\t{\n\t\t$this->set_pantalla('pant_edicion');\n\t}", "public function TraspasoData(){\r\n\t\t$this->idorigen = \"\";\r\n\t\t$this->iddestino = \"\";\r\n\t\t$this->idusuario = \"\";\r\n\t\t$this->fecha = \"NOW()\";\r\n\r\n\t\t#Realizar el traspaso de cada producto\r\n\t\t$this->idtraspaso = \"\";\r\n\t\t$this->idproducto = \"\";\r\n\t\t$this->cantidad = \"\";\r\n\t}", "function salida_por_traspaso(){\n\t\t$e= new Salida();\n\t\t$e->usuario_id=$GLOBALS['usuarioid'];\n\t\t$e->empresas_id=$GLOBALS['empresaid'];\n\t\t$related = $e->from_array($_POST);\n\t\t//if($e->costo_unitario=='undefined') $e->costo_unitario=0;\n\t\t$e->espacios_fisicos_id=$GLOBALS['espacios_fisicos_id'];\n\t\t$e->costo_total=($e->cantidad * $e->costo_unitario);\n\t\t$e->cclientes_id=1;\n\t\t$e->fecha=date(\"Y-m-d H:i:s\");\n\t\tif($e->id==0)\n\t\t\tunset($e->id);\n\t\tif($e->save($related)) {\n\t\t\techo $e->id;\n\t\t} else\n\t\t\techo 0;\n\t}", "function insertarCliente(){\n\t\t$this->procedimiento='rec.ft_cliente_ime';\n\t\t$this->transaccion='REC_CLI_INS';\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('genero','genero','varchar');\n\t\t$this->setParametro('ci','ci','varchar');\n\t\t$this->setParametro('email','email','varchar');\n\t\t$this->setParametro('email2','email2','varchar');\n\t\t$this->setParametro('direccion','direccion','varchar');\n\t\t$this->setParametro('celular','celular','varchar');\n\t\t$this->setParametro('nombre','nombre','varchar');\n\t\t$this->setParametro('lugar_expedicion','lugar_expedicion','varchar');\n\t\t$this->setParametro('apellido_paterno','apellido_paterno','varchar');\n\t\t$this->setParametro('telefono','telefono','varchar');\n\t\t$this->setParametro('ciudad_residencia','ciudad_residencia','varchar');\n\t\t$this->setParametro('id_pais_residencia','id_pais_residencia','int4');\n\t\t$this->setParametro('nacionalidad','nacionalidad','varchar');\n\t\t$this->setParametro('barrio_zona','barrio_zona','varchar');\n\t\t$this->setParametro('estado_reg','estado_reg','varchar');\n\t\t$this->setParametro('apellido_materno','apellido_materno','varchar');\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 static function crearTipo_documento($tipo_documento){\n \n if (is_null($tipo_documento->getId_tipo_documento())) {\n $query = \"INSERT INTO tipo_documento(nombre,estado) VALUES (:nombre,:estado)\";\n } else {\n $query = \"UPDATE tipo_documento SET nombre=:nombre,estado=:estado WHERE id_tipo_documento=:id_tipo_documento\";\n }\n \n \n self::getConexion();\n\n $resultado = self::$cnx->prepare($query);\n\n $nombre = $tipo_documento->getNombre();\n $estado = $tipo_documento->getEstado();\n\n if (!is_null($tipo_documento->getId_tipo_documento())) {\n $id_tipo_documento = $tipo_documento->getId_tipo_documento();\n $resultado->bindParam(\":id_tipo_documento\", $id_tipo_documento);\n } \n \n $resultado->bindParam(\":nombre\", $nombre);\n $resultado->bindParam(\":estado\", $estado);\n \n if ($resultado->execute()) {\n return true;\n \n }\n\n return false;\n \n}", "function insertarPeriodoVenta(){\n $this->procedimiento='obingresos.ft_periodo_venta_ime';\n $this->transaccion='OBING_PERVEN_INS';\n $this->tipo_procedimiento='IME';\n\n //Define los parametros para la funcion\n\n $this->setParametro('id_gestion','id_gestion','int4');\n $this->setParametro('id_tipo_periodo','id_tipo_periodo','integer');\n\n\n //Ejecuta la instruccion\n $this->armarConsulta();\n $this->ejecutarConsulta();\n\n //Devuelve la respuesta\n return $this->respuesta;\n }", "public static function guardar(){\n // Almacena la cita y devuelve el id\n $cita = new Cita($_POST);\n $resultado = $cita->guardar();\n\n $id = $resultado['id'];// Id de la cita creada\n\n // Almacena la cita y el servicio\n $idServicios = explode(\",\", $_POST['servicios']);\n // Iteramos egun el numero de servicios elegidos y le ponemos la misma citaId\n foreach($idServicios as $idServicio){\n $args = [\n 'citaId' => $id,\n 'servicioId' => $idServicio\n ];\n $citaServicio = new CitaServicio($args); // Creamos el objeto para tabla 'citasservicios'(Pivote)\n $citaServicio->guardar(); // Guardamos en tabla 'citasservicios'\n }\n echo json_encode(['resultado' => $resultado]);\n }", "public function actionCargar()\n\t{\n\t\techo \"Insertando registros...\\n\";\n\t\t\n\t\t$resultado = Yii::$app->db->createCommand('INSERT INTO partida_partida (cuenta, partida, nombre, estatus) VALUES\n\t\t\t(\"3\",\"01\",\"Ingresos ordinarios\",1),\n\t\t\t(\"3\",\"02\",\"Ingresos extraordinarios\",1),\n\t\t\t(\"3\",\"03\",\"Ingresos de operación\",1),\n\t\t\t(\"3\",\"04\",\"Ingresos ajenos a la operación\",1),\n\t\t\t(\"3\",\"05\",\"Transferencias y donaciones\",1),\n\t\t\t(\"3\",\"06\",\"Recursos propios de capital\",1),\n\t\t\t(\"3\",\"07\",\"Venta de títulos y valores que no otorgan propiedad\",1),\n\t\t\t(\"3\",\"08\",\"Venta de acciones y participaciones de capital\",1),\n\t\t\t(\"3\",\"09\",\"Recuperación de préstamos de corto plazo\",1),\n\t\t\t(\"3\",\"10\",\"Recuperación de préstamos de largo plazo\",1),\n\t\t\t(\"3\",\"11\",\"Disminución de otros activos financieros\",1),\n\t\t\t(\"3\",\"12\",\"Incremento de pasivos\",1),\n\t\t\t(\"3\",\"13\",\"Incremento del patrimonio\",1),\n\t\t\t(\"4\",\"01\",\"Gastos de personal\",1),\n\t\t\t(\"4\",\"02\",\"Materiales, suministros y mercancías\",1),\n\t\t\t(\"4\",\"03\",\"Servicios no personales\",1),\n\t\t\t(\"4\",\"04\",\"Activos reales\",1),\n\t\t\t(\"4\",\"05\",\"Activos financieros\",1),\n\t\t\t(\"4\",\"06\",\"Gastos de defensa y seguridad del estado\",1),\n\t\t\t(\"4\",\"07\",\"Transferencias y donaciones\",1),\n\t\t\t(\"4\",\"08\",\"Otros gastos\",1),\n\t\t\t(\"4\",\"09\",\"Asignaciones no distribuidas\",1),\n\t\t\t(\"4\",\"10\",\"Servicio de la deuda pública\",1),\n\t\t\t(\"4\",\"11\",\"Disminución de pasivos\",1),\n\t\t\t(\"4\",\"12\",\"Disminución del patrimonio\",1),\n\t\t\t(\"4\",\"98\",\"Rectificaciones al presupuesto\",1)')\n\t\t->execute();\n\n\t\tif(is_int($resultado)) //Insertados\n\t\t{\n\t\t\techo \"\\033[32m \".$resultado.\" registros insertados con éxito.\\033[0m\\n\";\n\t\t}\n\t\t\n\t}", "public function cadastrar(){\n\t\t$cadastrar = $this->pdo->prepare(\"INSERT INTO albuns (id_servico, titulo, descricao, data) VALUES (?, ?, ?, ?)\");\n\t\t$cadastrar->bindValue(1, $this->id_servico);\n\t\t$cadastrar->bindValue(2, $this->titulo);\n\t\t$cadastrar->bindValue(3, $this->descricao);\n\t\t$cadastrar->bindValue(4, $this->data);\n\t\t$cadastrar->execute();\n\n\t\tif($this->pdo->lastInsertId() != 0){\n\n\t\t\t// 1 = Criado com sucesso!\n\t\t\treturn 1;\n\t\t}else{\n\n\t\t\t// 2 = Erro interno\n\t\t\treturn 0;\n\t\t}\n\t}", "public function criar(Evento $evet){\n $securty = new SegurancaDao();\n $login=$_SESSION['login'];\n try {\n parent::setTabela('evento');\n parent::setCampos('nomeEvento,descricao,categoria,dtLimiteInscr,hrLimiteInscr,dataRealiza,horaInicioRealiza,horaFimRealiza,estado,ambito,dataCriacao,anexo,idSala,idDocente');\n parent::setDados(':nomeEvento,:descricao,:categoria,:dtLimiteInscr,:hrLimiteInscr,:dataRealiza,:horaInicioRealiza,:horaFimRealiza,:estado,:ambito,:dataCriacao,:anexo,:idSala,:idDocente');\n\n //chamada da query que vai montar o inserte\n $inserir = parent::inserir();\n $inserir->bindParam(':nomeEvento', $evet->getNome(), PDO::PARAM_STR);\n $inserir->bindParam(':descricao', $evet->getDescricao(), PDO::PARAM_STR);\n $inserir->bindParam(':categoria', $evet->getCategoria(), PDO::PARAM_STR);\n $inserir->bindParam(':dtLimiteInscr', $evet->getDataLimiteInscricao(), PDO::PARAM_STR);\n $inserir->bindParam(':hrLimiteInscr', $evet->getHoraLimiteInscricao());\n $inserir->bindParam(':dataRealiza', $evet->getDataRealiz());\n $inserir->bindParam(':horaInicioRealiza', $evet->getHora_inicioRealiz());\n $inserir->bindParam(':horaFimRealiza', $evet->getHora_fimRealiz());\n $inserir->bindParam(':estado', $evet->getEstado(), PDO::PARAM_INT);\n $inserir->bindParam(':ambito', $evet->getAmbito(), PDO::PARAM_STR);\n $inserir->bindParam(':dataCriacao', $evet->getDataCriacao());\n $inserir->bindParam(':anexo', $evet->getAnexo(), PDO::PARAM_STR);\n $inserir->bindParam(':idSala', $evet->getId_Sala());\n $inserir->bindParam(':idDocente', $login->idUser);\n $retorno = $inserir->execute();\n /* recuperando o ultimo id inserido */\n $evet->setIdEvento(parent::getId()->lastInsertId());\n\n /**vai destroir a session do formulario do evento*/\n $securty->destroyToken();\n\n if ($retorno) :\n\n return TRUE;\n\n else :\n\n return FALSE;\n\n endif;\n\n } catch (Exception $exc) {\n return $exc->getMessage();\n }\n }", "function insertarCotizacion(){\n\t\t$this->procedimiento='adq.f_cotizacion_ime';\n\t\t$this->transaccion='ADQ_COT_INS';\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('estado_reg','estado_reg','varchar');\n\t\t\n\t\t$this->setParametro('lugar_entrega','lugar_entrega','varchar');\n\t\t$this->setParametro('tipo_entrega','tipo_entrega','varchar');\n\t\t$this->setParametro('fecha_coti','fecha_coti','date');\n\t\t$this->setParametro('numero_oc','numero_oc','int4');\n\t\t$this->setParametro('id_proveedor','id_proveedor','int4');\n\t $this->setParametro('precio_total','precio_total','numeric');\n\t\t$this->setParametro('fecha_entrega','fecha_entrega','date');\n\t\t$this->setParametro('id_moneda','id_moneda','int4');\n\t\t$this->setParametro('id_proceso_compra','id_proceso_compra','int4');\n\t\t$this->setParametro('fecha_venc','fecha_venc','date');\n\t\t$this->setParametro('obs','obs','text');\n\t\t$this->setParametro('fecha_adju','fecha_adju','date');\n\t\t$this->setParametro('nro_contrato','nro_contrato','varchar');\n\t\t$this->setParametro('tipo_cambio_conv','tipo_cambio_conv','numeric');\n\t\t$this->setParametro('tiempo_entrega','tiempo_entrega','varchar');\n\t\t$this->setParametro('funcionario_contacto','funcionario_contacto','varchar');\n\t\t$this->setParametro('telefono_contacto','telefono_contacto','varchar');\n\t\t$this->setParametro('correo_contacto','correo_contacto','varchar');\n\t\t$this->setParametro('prellenar_oferta','prellenar_oferta','varchar');\n\t\t\n\t\t$this->setParametro('forma_pago','forma_pago','varchar');\n\t\t\n\t\t\n\t\t\n\t\t\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 gerarVenda($titulo,$cliente){\n //$conexao = $c->conexao();\n\n\n $sql = \"INSERT INTO tbpedidos (reg, tipo, titulo, data_inc) VALUES ('$cliente','V','$titulo', NOW()) \";\n\n return $this->conexao->query($sql);\n\n\n }", "function insertarTabla(){\n\t\t$this->procedimiento='wf.ft_tabla_ime';\n\t\t$this->transaccion='WF_tabla_INS';\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_tipo_proceso','id_tipo_proceso','int4');\n\t\t$this->setParametro('vista_id_tabla_maestro','vista_id_tabla_maestro','int4');\n\t\t$this->setParametro('bd_scripts_extras','bd_scripts_extras','text');\n\t\t$this->setParametro('vista_campo_maestro','vista_campo_maestro','varchar');\n\t\t$this->setParametro('vista_scripts_extras','vista_scripts_extras','text');\n\t\t$this->setParametro('bd_descripcion','bd_descripcion','text');\n\t\t$this->setParametro('vista_tipo','vista_tipo','varchar');\n\t\t$this->setParametro('menu_icono','menu_icono','varchar');\n\t\t$this->setParametro('menu_nombre','menu_nombre','varchar');\n\t\t$this->setParametro('vista_campo_ordenacion','vista_campo_ordenacion','varchar');\n\t\t$this->setParametro('vista_posicion','vista_posicion','varchar');\n\t\t$this->setParametro('estado_reg','estado_reg','varchar');\n\t\t$this->setParametro('menu_codigo','menu_codigo','varchar');\n\t\t$this->setParametro('bd_nombre_tabla','bd_nombre_tabla','varchar');\n\t\t$this->setParametro('bd_codigo_tabla','bd_codigo_tabla','varchar');\n\t\t$this->setParametro('vista_dir_ordenacion','vista_dir_ordenacion','varchar');\n\t\t$this->setParametro('vista_estados_new','vista_estados_new','varchar');\n\t\t$this->setParametro('vista_estados_delete','vista_estados_delete','varchar');\t\t\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 ingresarEmpleadoSinID(){\n $conexion = new Conexion;\n $con = new mysqli($conexion->servername, $conexion->username, $conexion->password, $conexion->dbname);\n $sql = \"INSERT INTO empleado (rut, nombre, password, categoria, estado ) VALUES ('\".$this->rut.\"', '\".$this->nombre.\"','\".$this->password.\"', '\".$this->categoria.\"', 1)\";\n if ($con->connect_error) {\n die(\"Conexión fallida: \" . $con->connect_error);\n } \n if ($con->query($sql) === TRUE) {\n echo \"Empleado ingresada correctamente.\";\n } else {\n echo \"Error: \" . $sql . \"<br>\" . $con->error;\n }\n $con->close();\n }", "function inserir($cidade, $bairro, $rua, $numeroTerreno, $quantidadeCasa, $valor, $idUsuario) #Funcionou\n {\n $conexao = new conexao();\n $sql = \"insert into terreno( Cidade, Bairro, Rua, NumeroTerreno, QuantidadeCasa, Valor, idUsuario) \n values('$cidade', '$bairro', '$rua', '$numeroTerreno', '$quantidadeCasa', '$valor', $idUsuario )\";\n mysqli_query($conexao->conectar(), $sql);\n echo \"<p> Inserido </p>\";\n }", "public function agregar_Cliente($datosCliente){\n\n $stmt=$this->db->prepare(\"CALL INSERT_CLIENTE(:nombre,:ciudad,:responsable)\");\n $stmt->bindParam(':nombre', $nombre);\n $stmt->bindParam(':ciudad', $ciudad);\n $stmt->bindParam(':responsable', $responsable);\n\n $nombre=$datosCliente['nombre'];\n $ciudad=$datosCliente['ciudad'];\n $responsable=$datosCliente['responsable'];\n $tel1=$datosCliente['tel1'];\n $tel2=$datosCliente['tel2'];\n $correo1=$datosCliente['correo1'];\n $correo2=$datosCliente['correo2'];\n\n $stmt->execute();\n\n //Obtener el ultimo codigo de cliente\n $cods=new Tablas_model();\n $codigos=$cods->getCodigosClientes(); //array de arrays\n $codigosCliente=array();\n foreach ($codigos as $arrayCod) {\n array_push($codigosCliente,($arrayCod[0]+0));\n }\n $ultimoCod=max($codigosCliente);// ultimo codigo de cliente ingresado\n\n\n //obtener el ultimo codigo de cliente ingresado\n\n //ingresar uno o 2 teléfonos:\n $this->db->query(\"DELETE FROM tel_clientes WHERE tel_clientes.cod_cliente =\".$ultimoCod); //eliminar registros\n if ($datosCliente['tel2']==\"\") {\n $this->db->query('INSERT INTO tel_clientes (tel_clientes.cod_cliente, tel_clientes.tel)\n VALUES ('.$ultimoCod.','.$tel1.')');\n }else{\n $this->db->query('INSERT INTO tel_clientes (tel_clientes.cod_cliente, tel_clientes.tel)\n VALUES ('.$ultimoCod.', '.$tel1.'); INSERT INTO tel_clientes (tel_clientes.cod_cliente, tel_clientes.tel)\n VALUES ('.$ultimoCod.', '.$tel2.')');\n }\n\n //ingresar uno o dos correos:\n $this->db->query(\"DELETE FROM correos_clientes WHERE correos_clientes.cod_cliente =\".$ultimoCod); //eliminar registros\n if ($datosCliente['correo2']==\"\") {\n $this->db->query('INSERT INTO correos_clientes (correos_clientes.cod_cliente, correos_clientes.correo)\n VALUES ('.$ultimoCod.',\"'.$correo1.'\")');\n }else{\n $this->db->query('INSERT INTO correos_clientes (correos_clientes.cod_cliente, correos_clientes.correo)\n VALUES ('.$ultimoCod.', \"'.$correo1.'\"); INSERT INTO correos_clientes (correos_clientes.cod_cliente, correos_clientes.correo)\n VALUES ('.$ultimoCod.', \"'.$correo2.'\")');\n }\n\n $this->db=null; //cerrar conexión\n\n\n }", "public function create($servidor_id , $rango_id){\n $serv = Servidor::Find($servidor_id);\n // compruebo si existe\n if ($serv) {\n // si esxiste todo bien continuo\n \n // busco el id del rango\n $r = Rango::Find($rango_id);\n if($r){\n\n $rangos = $serv->rango();\n if ($rangos->find($rango_id)) {\n # code...\n return $this->Respuesta(\"EL Servidor $servidor_id ya fue asignado al rango $rango_id\",409);\n }\n // si esxiste todo bien continuo\n // desde el Modelo Servidor que encontre busco la tabla pivote que me enlasa los servidors con los rangos y los attachsco XD\n $serv->rango()->attach($rango_id);\n // todo bien sigo con mi vida y me como una arepa T.T\n return $this->Respuesta(\"EL servidor $servidor_id fue asignado al rango $rango_id\",201);\n }\n\n // el rango no existio \n return $this->RespuestaError(\"EL rango $user_id no existe\",404);\n\n }\n // el servidor no existio \n return $this->RespuestaError(\"EL Servidor $servidor_id no existe \", 404);\n }", "private function _agregarComponenteTabuladores() {\n $componente_carga = new Acciones_ComponenteAltaInsercion();\n\n $this->_id_componente = $componente_carga->crearComponente($_POST['id_tb_rel'], 'PaginaTabuladores', '');\n\n // crear componente y obtener id de insercion\n $componente_carga->consultaParametro($this->_id_componente, 'id_tabla', $_GET['id_tabla']);\n $componente_carga->consultaParametro($this->_id_componente, 'intermedia_tb_id', $_GET['intermedia_tb_id']);\n $componente_carga->consultaParametro($this->_id_componente, 'id_tabla_trd', $_GET['id_tabla_trd']);\n if (isset($_POST['id_cp_rel']) && ($_POST['id_cp_rel'] != '')) {\n $componente_carga->consultaParametro($this->_id_componente, 'id_cp_rel', $_POST['id_cp_rel']);\n }\n $componente_carga->consultaParametro($this->_id_componente, 'tabla_relacionada', $_POST['id_tb_rel']);\n }" ]
[ "0.71246713", "0.674186", "0.6718118", "0.66522974", "0.6613593", "0.6594863", "0.6526644", "0.65002936", "0.6493144", "0.64870477", "0.6483198", "0.64210725", "0.6419171", "0.6417816", "0.6412528", "0.63924044", "0.6371937", "0.6344011", "0.630775", "0.630042", "0.629444", "0.629155", "0.6278516", "0.6266899", "0.6260484", "0.62568533", "0.6252028", "0.62509006", "0.62491536", "0.6240146", "0.6238461", "0.6221408", "0.6211417", "0.619231", "0.61758846", "0.616915", "0.61668307", "0.6153419", "0.614378", "0.61429316", "0.61385834", "0.613089", "0.612644", "0.6126056", "0.6124387", "0.61242306", "0.6119482", "0.61104685", "0.6109385", "0.61080545", "0.6106133", "0.6102836", "0.60961103", "0.60943764", "0.60918695", "0.60871935", "0.60826296", "0.6082516", "0.60759795", "0.6073705", "0.6069065", "0.6065614", "0.6057175", "0.60537547", "0.60513735", "0.6046469", "0.6043592", "0.60423493", "0.6040123", "0.6035137", "0.6028651", "0.6011489", "0.601103", "0.6006161", "0.5994311", "0.59901375", "0.59698045", "0.5966115", "0.5961573", "0.59589756", "0.59558237", "0.5951211", "0.59493494", "0.59400946", "0.59395903", "0.593696", "0.59298563", "0.59295774", "0.5908573", "0.5903155", "0.58959895", "0.58937085", "0.58874243", "0.5878499", "0.5873513", "0.58717316", "0.5871482", "0.5860119", "0.5855605", "0.58535475", "0.58533365" ]
0.0
-1
Run Method. Write your database seeder using this method. More information on writing seeds is available here:
public function run() { $data = [ [ 'id' => '9', 'email' => 'admin@admin.admin', 'password' => '$2y$10$az0dto6QFPfsE37cVIRFbe3oFqF43p1QvCQXG1YY5EIjn6nNJN0AO', 'permission_level' => '2', 'created' => '2019-11-14 14:49:42', 'uuid' => 'e1165680-3b54-4ebc-9bbc-7f7192b7d09f', 'confirmed' => '1', ], [ 'id' => '10', 'email' => 'user@user.user', 'password' => '$2y$10$EzpkfIR4yIHsxlymG90L8OckQQxfmlvTqeq5W2iFHEuOgXBCig.2S', 'permission_level' => '1', 'created' => '2019-11-14 14:52:38', 'uuid' => 'eddb90ea-3dba-452c-8726-40490c9d0d65', 'confirmed' => '1', ], [ 'id' => '11', 'email' => 'noemail@noemail.noemail', 'password' => '$2y$10$c29d8nPHNWdMj7YnkwNVuOj7NRriRVFUWl/r6yHkIGFARQW8q.yBi', 'permission_level' => '0', 'created' => '2019-11-14 14:53:41', 'uuid' => '5ab7b3f5-f3b4-456a-8982-1904381b8a6f', 'confirmed' => '0', ], ]; $table = $this->table('users'); $table->insert($data)->save(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::table('post')->insert(\n [\n 'title' => 'Test Post1',\n 'desc' => str_random(100).\" post1\",\n 'alias' => 'test1',\n 'keywords' => 'test1',\n ]\n );\n DB::table('post')->insert(\n [\n 'title' => 'Test Post2',\n 'desc' => str_random(100).\" post2\",\n 'alias' => 'test2',\n 'keywords' => 'test2',\n ]\n );\n DB::table('post')->insert(\n [\n 'title' => 'Test Post3',\n 'desc' => str_random(100).\" post3\",\n 'alias' => 'test3',\n 'keywords' => 'test3',\n ]\n );\n }", "public function run()\n {\n DB::table('users')->insert([\n 'name'=>\"test\",\n 'password' => Hash::make('123'),\n 'email'=>'test@yandex.ru'\n ]);\n DB::table('tags')->insert(['name'=>'tags']);\n $this->call(UserSeed::class);\n $this->call(CategoriesSeed::class);\n $this->call(TopicsSeed::class);\n $this->call(CommentariesSeed::class);\n // $this->call(UsersTableSeeder::class);\n }", "public function run()\n {\n factory(App\\Models\\Post::class, 1000)->create();\n\n // this is hardcoded info for the seeder to run\n \t// $user1 = new App\\User();\n\t // $user1->email = 'user1@codeup.com';\n\t // $user1->name = 'Luis';\n\t // $user1->password = Hash::make('password123');\n\t // $user1->save();\n }", "public function run()\n {\n /*$this->call(UsersTableSeeder::class);\n $this->call(GroupsTableSeeder::class);\n $this->call(TopicsTableSeeder::class);\n $this->call(CommentsTableSeeder::class);*/\n DB::table('users')->insert([\n 'name' => 'pkw',\n 'email' => 'pkw@pkw.com',\n 'password' => bcrypt('secret'),\n 'type' => '1'\n ]);\n }", "public function run()\n {\n //$this->call(AboutTableSeeder::class);\n $this->call(UsersTableSeeder::class);\n //$this->call(SettingsTableSeeder::class);\n \n\t #iseed_start\n\n\t //$this->call('UsersTableSeeder');\n\t $this->call('AboutTableSeeder');\n $this->call('GalleriesTableSeeder');\n $this->call('MessagesTableSeeder');\n $this->call('MessageStatusesTableSeeder');\n $this->call('ProjectsTableSeeder');\n $this->call('ProjectPropertiesTableSeeder');\n $this->call('PropertiesTableSeeder');\n $this->call('SettingsTableSeeder');\n #iseed_end\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n // $this->dataCategory();\n factory(App\\Model\\Category::class, 70)->create();\n factory(App\\Model\\Producer::class, rand(5,10))->create();\n factory(App\\Model\\Provider::class, rand(5,10))->create();\n factory(App\\Model\\Product::class, 100)->create();\n factory(App\\Model\\Album::class, 300)->create();\n }", "public function run()\n {\n // DB::table('users')->insert([\n // ['id'=>1, 'email'=>'nhat','password'=>bcrypt(1234), 'lever'=>0]\n // ]);\n // $this->call(UsersTableSeeder::class);\n // $this->call(CatTableSeeder::class);\n // $this->call(TypeTableSeeder::class);\n // $this->call(AppTableSeeder::class);\n // $this->call(GameTableSeeder::class);\n \n \n }", "public function run()\n {\n \n User::factory(1)->create([\n 'rol'=>'EPS'\n ]);\n Person::factory(10)->create();\n $this->call(EPSSeeder::class);\n $this->call(OfficialSeeder::class);\n $this->call(VVCSeeder::class);\n $this->call(VaccineSeeder::class);\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n /*DB::table('users')->insert([\n \t\t'name'=>'admin',\n \t\t'email'=>'admin@gmail.com',\n \t\t'password'=>bcrypt('123456'),\n \t\t'role_id'=> 1,\n\n\n \t]);*/\n //$this->call(RolesSeeder::class);\n //$this->call(UsersSeeder::class);\n $this->call(PrivilegsSeeder::class);\n //$this->call(AttendanceTypeSeeder::class);\n\n }", "public function run()\n {\n $this->call(AlumnoSeeder::class);\n //Alumnos::factory()->count(30)->create();\n //DB::table('alumnos')->insert([\n // 'dni_al' => '13189079',\n // 'nom_al' => 'Jose',\n // 'ape_al' => 'Araujo',\n // 'rep_al' => 'Principal',\n // 'esp_al' => 'Tecnologia',\n // 'lnac_al' => 'Valencia'\n //]);\n }", "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n /* Curso::factory(8)->create(); */\n /* $this->call(CidepartamentoSeeder::class);\n $this->call(CategoriaSeeder::class);\n $this->call(GeneroSeeder::class); */\n\n /* $this->call(UserSeeder::class); */\n\n\n /* Estudiante::factory(20)->create(); */\n\n /* Profesore::factory(12)->create(); */\n\n\n /* $this->call(EstudianteSeeder::class); */\n /* $this->call(CursoSeeder::class); */\n }", "public function run()\n {\n Model::unguard();\n\n $this->command->info('seed start!');\n\n // 省市县\n $this->call('RegionTableSeeder');\n // 用户、角色\n $this->call('UserTableSeeder');\n // 权限\n $this->call('PurviewTableSeeder');\n // 博文分类\n $this->call('CategoryTableSeeder');\n // 博文、评论、标签\n $this->call('ArticleTableSeeder');\n // 心情\n $this->call('MoodTableSeeder');\n // 留言\n $this->call('MessageTableSeeder');\n // 文件\n $this->call('StorageTableSeeder');\n\n $this->command->info('seed end!');\n }", "public function run()\n {\n //$this->call(SectionSeeder::class);\n $this->call(AdminSeeder::class);\n //$this->call(ClientSeeder::class);\n \n \n\n\n\n //DB::table('users')->insert([\n // 'name' => 'Harry Han',\n // 'email' => 'harry.test@hanix.com.au',\n // 'password' => bcrypt('password'),\n // 'contractorLastname' => 'Han',\n // 'contractorCompany' => 'test-company' ,\n // 'contractorContactNumber' => '0600000000',\n // 'contractorStatus' => 'active'\n //]);\n }", "public function run()\n {\n $this->call(UsersSeeder::class);\n DB::table('users')->insert([\n 'name' => 'admin',\n 'email' => 'admin@admin.com',\n 'phone' => '0507507763',\n 'password' => bcrypt('admin'),\n 'role' => 'admin',\n 'created_at' => date('Y-m-d H:i:s'),\n 'updated_at' => date('Y-m-d H:i:s'),\n ]);\n DB::table('default_settings')->insert([\n 'default_count' => 10,\n 'cake_count' => 7,\n 'cheesecake_count' => 5,\n 'cupcake_count' => 40,\n ]);\n $this->call(AdditionalDecorationSeeder::class);\n $this->call(AdditionalFillerSeeder::class);\n $this->call(CakeFillingSeeder::class);\n $this->call(CakeSideDecorationSeeder::class);\n $this->call(CakeTopDecorationSeeder::class);\n $this->call(StatusSeeder::class);\n $this->call(DeliverySeeder::class);\n $this->call(OrderSeeder::class);\n $this->call(CakeSizeSeeder::class);\n $this->call(CakeSeeder::class);\n $this->call(ProductSeeder::class);\n $this->call(CategorySeeder::class);\n $this->call(ProductCategorySeeder::class);\n\n // $this->call(OrderCakeSeeder::class);\n\n }", "public function run()\n {\n $this->call([\n LevelsTableSeeder::class,\n LocationsTableSeeder::class,\n UsersTableSeeder::class,\n UnitsTableSeeder::class,\n CategoriesTableSeeder::class,\n SubcategoriesTableSeeder::class,\n CategorySubcategoryTableSeeder::class,\n // ProductsTableSeeder::class,\n RegionsTableSeeder::class,\n DistrictsTableSeeder::class,\n WardsTableSeeder::class,\n UserWardTableSeeder::class,\n LocationUserTableSeeder::class,\n StatusesTableSeeder::class,\n TransactiontypesTableSeeder::class,\n ]);\n }", "public function run()\n {\n \n\n \n $this->call(BodyTypeTableSeeder::class);\n $this->call(ChildrenWithYouTableSeeder::class);\n $this->call(CountryGrewUpTableSeeder::class);\n $this->call(DressTableSeeder::class);\n $this->call(EducationTableSeeder::class);\n $this->call(EthnicityTableSeeder::class);\n $this->call(HobbiesTableSeeder::class);\n $this->call(HowManyChildrenTableSeeder::class);\n $this->call(LanguageTableSeeder::class); \n $this->call(MaritalStatusTableSeeder::class);\n $this->call(ProfessionTableSeeder::class);\n $this->call(RoleTableSeeder::class); \n $this->call(SextableSeeder::class);\n $this->call(StatusInCanadaTableSeeder::class);\n $this->call(StatustableSeeder::class);\n $this->call(UserTableSeeder::class);\n $this->call(AdminActionsTableSeeder::class);\n\n // $this->call(SeedWholeDatabaseSeeder::class);\n \n $this->call(LocationSeederTable::class);\n \n \n \n }", "public function run()\n {\n $this->call([\n LanguageTableSeeder::class,\n BusinessTableSeeder::class,\n SuperuserTableSeeder::class,\n ConsumerTableSeeder::class,\n DelivererTableSeeder::class,\n DelivererLocationTableSeeder::class,\n MenuTableSeeder::class,\n CategoryTableSeeder::class,\n CategoryNameTableSeeder::class,\n ItemTypeTableSeeder::class,\n ItemTypeNameTableSeeder::class,\n ItemTableSeeder::class,\n MenuNameTableSeeder::class,\n ItemNameTableSeeder::class,\n OrderTableSeeder::class,\n PaymentTableSeeder::class,\n ]);\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n $this->call(userTableSeeder::class);\n $this->call(hrl1TableSeeder::class);\n $this->call(hrl1CategoryTableSeeder::class);\n $this->call(hrl1PositionTableSeeder::class);\n $this->call(tel1TableSeeder::class);\n $this->call(pel2TableSeeder::class);\n $this->call(pel4TableSeeder::class);\n // $this->call(tel1CostfactorTableSeeder::class);\n\n }", "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n $this->call(UsersTableSeeder::class);\n $this->call(GuestsTableSeeder::class);\n $this->call(CategoriesTableSeeder::class);\n $this->call(StatesTableSeeder::class);\n $this->call(CitiesTableSeeder::class);\n $this->call(DistrictsTableSeeder::class);\n $this->call(PanelsTableSeeder::class);\n $this->call(ComplaintsTableSeeder::class);\n }", "public function run()\n {\n $this->call(UsersTableSeeder::class);\n $this->call(PermissionsSeeder::class);\n $this->call(RolesSeeder::class);\n $this->call(ThemeSeeder::class);\n\n //\n\n DB::table('paypal_info')->insert([\n 'client_id' => '',\n 'client_secret' => '',\n 'currency' => '',\n ]);\n DB::table('contact_us')->insert([\n 'content' => '',\n ]);\n DB::table('setting')->insert([\n 'site_name' => ' ',\n ]);\n DB::table('terms_and_conditions')->insert(['terms_and_condition' => 'text']);\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n // $this->call(QuestionTableSeed::class);\n\n $this->call([\n QuestionTableSeed::class,\n AlternativeTableSeed::class,\n ScheduleActionTableSeeder::class,\n UserTableSeeder::class,\n CompanyClassificationTableSeed::class,\n ]);\n // DB::table('clients')->insert([\n // 'name' => 'Empresa-02',\n // 'email' => 'empresa02@gmail.com',\n // 'password' => bcrypt('07.052.477/0001-60'),\n // ]);\n }", "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n\n $this->call([\n UserSeeder::class,\n LanguageSeeder::class,\n MenuKeywordSeeder::class,\n ContentOneGroupKeywordSeeder::class,\n ContentTwoGroupKeywordSeeder::class,\n ContentThreeGroupKeywordSeeder::class,\n ContentFourGroupKeywordSeeder::class,\n ContentFiveGroupKeywordSeeder::class,\n ContentSixGroupKeywordSeeder::class,\n FrontendOneGroupKeywordSeeder::class,\n FrontendTwoGroupKeywordSeeder::class,\n SectionSeeder::class,\n ]);\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::table('users')->insert([\n 'name' => 'admin',\n 'email' => 'admin@gmail.com',\n 'password' => bcrypt('admin'),\n 'seq_q'=>'1',\n 'seq_a'=>'admin'\n ]);\n\n // DB::table('bloods')->insert([\n // ['name' => 'A+'],\n // ['name' => 'A-'],\n // ['name' => 'B+'],\n // ['name' => 'B-'],\n // ['name' => 'AB+'],\n // ['name' => 'AB-'],\n // ['name' => 'O+'],\n // ['name' => 'O-'],\n // ]);\n\n \n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n \t$this->call('RolTableSeeder');\n \t$this->call('UserTableSeeder');\t\t\n \t$this->call('UserProfileTableSeeder');\n \t$this->call('AppTableSeeder');\n \t$this->call('AppXUserTableSeeder');\n \t$this->call('ModuleTableSeeder');\n \t$this->call('OptionTableSeeder');\n \t$this->call('PermitTableSeeder');\n $this->call('DepartmentTableSeeder');\n $this->call('CityTableSeeder');\n $this->call('CategoryTableSeeder');\t\n $this->call('StageTableSeeder');\n $this->call('ConectorsTableSeeder');\n }", "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n $this->call(CreateUsersSeeder::class);\n $this->call(GameTableSeeder::class);\n\n $this->call(ScenariosTableSeeder::class);\n $this->call(PrefabsTableSeeder::class);\n $this->call(PrefabScanrioTableSeeder::class);\n\n\n // $this->call(KnowledgeComponentsTableSeeder::class);\n }", "public function run()\n {\n $this->call([\n SiteSettingsSeeder::class,\n LaratrustSeeder::class,\n CountrySeeder::class,\n GovernorateSeeder::class,\n FaqSeeder::class,\n SitePageSeeder::class,\n UsersSeeder::class,\n ]);\n\n Country::whereiso(\"EG\")->update(['enable_shipping' => true]);\n\n factory(User::class, 400)->create();\n\n Category::create([\n 'en' => [\n 'name' => \"cake tools\"\n ]\n ]);\n\n Category::create([\n 'en' => [\n 'name' => \"Party Supplies\"\n ]\n ]);\n\n $this->call([\n ProductCategorySeeder::class,\n ProductSeeder::class\n ]);\n }", "public function run()\n {\n //\\App\\Models\\User::factory(400)->create();\n //\\App\\Models\\Ship::factory(10000)->create();\n //\\App\\Models\\City::factory(1000)->create();\n //\\App\\Models\\Offer::factory(2000)->create();\n\n /* $this->call([\n CountrySeeder::class,\n ]);*/\n\n }", "public function run()\n {\n DB::table('users')->insert([\n 'name' => 'Admin',\n 'email' => 'admin@petstore.com',\n 'avatar' => \"avatar\",\n 'password' => '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi',\n ]);\n $this->call(CategorySeeder::class);\n // \\App\\Models\\Admin::factory(1)->create();\n \\App\\Models\\User::factory(10)->create();\n // \\App\\Models\\Category::factory(50)->create();\n \\App\\Models\\PetComment::factory(50)->create();\n $pets = \\App\\Models\\Pet::factory(50)->create();\n foreach ($pets as $pet) {\n \\App\\Models\\PetTag::factory(1)->create(['pet_id' => $pet->id]);\n \\App\\Models\\PetPhotoUrl::factory(1)->create(['pet_id' => $pet->id]);\n \\App\\Models\\Order::factory(1)->create(['pet_id' => $pet->id]);\n };\n }", "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n Employee::factory()->create(['email' => 'sovon.kucse@gmail.com']);\n Brand::factory()->count(3)->create();\n $this->call([\n TagSeeder::class,\n AttributeSeeder::class,\n AttributeValueSeeder::class,\n ProductSeeder::class,\n ]);\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n UsersLevel::create([\n 'name' => 'Administrator'\n ]);\n\n UsersLevel::create([\n 'name' => 'User'\n ]);\n\n User::create([\n 'username' => 'admin',\n 'password' => bcrypt('admin123'),\n 'level_id' => 1,\n 'fullname' => \"Super Admin\",\n 'email'=> \"admin@admin.com\"\n ]);\n\n\n \\App\\CategoryPosts::create([\n 'name' =>'Paket Trip'\n ]);\n\n \\App\\CategoryPosts::create([\n 'name' =>'Destinasi Kuliner'\n ]);\n\n \\App\\CategoryPosts::create([\n 'name' => 'Event'\n ]);\n\n \\App\\CategoryPosts::create([\n 'name' => 'Profil'\n ]);\n }", "public function run()\n {\n $this->seedUsers();\n $this->seedAdmins();\n $this->seedMeals();\n\n $this->seedOrder();\n $this->seedOrderlist();\n\n $this->seedReload();\n }", "public function run()\n {\n // seeder\n $this->call(CategoriesTableSeeder::class);\n $this->call(PostTypesTableSeeder::class);\n $this->call(RolesTableSeeder::class);\n\n // factory\n factory(App\\User::class, 20)->create(); // PostFactory内でもUserFactoryをコールしているので、このFactoryは合計2回コールされる\n factory(App\\Post::class, 20)->create();\n\n // Userデータが作られた後に実行する\n $this->call(EnsemblesTableSeeder::class);\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $this->call(LaratrustSeeder::class);\n $this->call(OverrideLaratrustDefaultUser::class);\n $this->call(DefaultUnitTableSeeder::class);\n $this->call(PhoneProviderTableSeeder::class);\n\n /* DUMMY DATA */\n if (App::environment('local', 'dev')) {\n\n $this->command->info('Local/Development Enviroment Detected. Starting Dummy Data Seeder...');\n\n $this->call(BankTableSeeder::class);\n $this->call(ProductTableSeeder::class);\n $this->call(ProductTypeTableSeeder::class);\n $this->call(SupplierTableSeeder::class);\n $this->call(CustomerTableSeeder::class);\n $this->call(TrucksTableSeeder::class);\n $this->call(VendorTruckingTableSeeder::class);\n $this->call(WarehouseTableSeeder::class);\n $this->call(PriceLevelTableSeeder::class);\n $this->call(TruckMaintenancesTableSeeder::class);\n }\n\n }", "public function run()\n {\n\n $this->call(NotificationsSeeder::class);\n factory(\\App\\Models\\City::class, 20)->create();\n $this->call(TransactionStatusSeeder::class);\n $this->call(LeadStatusesSeeder::class);\n $this->call(RolesSeeder::class);\n $this->call(UsersSeeder::class);\n $this->call(UserCitySeeder::class);\n $this->call(LeadRejectionReasonsSeeder::class);\n factory(\\App\\Models\\User::class, 4)->create();\n factory(\\App\\Models\\Lead::class, 100)->create();\n $this->call(LeadTypesSeeder::class);\n\n }", "public function run() {\n\n // seeder para insertar trabajos\n $this->call(LanaSeeder::class);\n\n // seeder para insertar usuarios\n $this->call(UsuariosSeeder::class);\n\n // seeder para introducir trabajadores\n $this->call(LangileaSeeder::class);\n\n //seeder para insertar informacion de las fotos\n $this->call(ArgazkiSeeder::class);\n\n //seeder para insertar informacion de las citas\n $this->call(ZitaSeeder::class);\n\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $this->call(ExamSubjectSeeder::class);\n $this->call(ActivitiesSeeder::class);\n $this->call(CountriesSeeder::class);\n $this->call(StatesSeeder::class);\n $this->call(StudentSchoolNameSeeder::class);\n $this->call(WriteitDetailSeeder::class);\n $this->call(WriteitPersonalSeeder::class);\n $this->call(WriteitQuestionSeeder::class);\n $this->call(Collegeyears::class);\n }", "public function run()\n {\n $this->call(UsersTableSeeder::class);\n\n $categories = factory(App\\Models\\Category::class, 10)->create();\n\n $categories->each(function ($category) {\n $category\n ->posts()\n ->saveMany(\n factory(App\\Models\\Post::class, 3)->make()\n );\n });\n }", "public function run()\n {\n $this->call([\n UserTableSeeder::class,\n BrandSeeder::class,\n CategorySeeder::class,\n ProductSeeder::class,\n /*SliderSeeder::class,\n CustomerSeeder::class,\n ShippingSeeder::class,\n OrderSeeder::class,\n OrderInfoSeeder::class,\n PaymentSeeder::class,\n subscribersSeeder::class,*/\n ]);\n }", "public function run()\n {\n // $this->call(UserTableSeeder::class);\n // $this->call(PostTableSeeder::class);\n // $this->call(TagTableSeeder::class);\n // $this->call(PostTagTableSeeder::class);\n\n /*AB - use faker to populate table see file ModelFactory.php */\n factory(App\\Editeur::class, 40) ->create();\n factory(App\\Auteur::class, 40) ->create();\n factory(App\\Livre::class, 80) ->create();\n\n for ($i = 1; $i < 41; $i++) {\n $number = rand(2, 8);\n for ($j = 1; $j <= $number; $j++) {\n DB::table('auteur_livre')->insert([\n 'livre_id' => rand(1, 40),\n 'auteur_id' => $i\n ]);\n }\n }\n }", "public function run()\n { \n $this->call(UserSeeder::class);\n \n /**\n * Company with employees seeder\n */\n \\App\\Models\\Company::factory()->count(10)\n ->has(\\App\\Models\\Employee::factory()->count(5))\n ->create();\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n User::create(['username' => 'penjaminan', 'email' => 'admin@admin.com', 'password' => Hash::make('pdfvgf')]);\n $this->call(TahapanProyekDropdownSeeder::class);\n $this->call(JenisInfrastrukturSeeder::class);\n $this->call(DropdownSeeder::class);\n $this->call(ChecklistSeeder::class);\n }", "public function run()\n {\n /** \n * Note: You must add these lines to your .env file for this Seeder to work (replace the values, obviously):\n SEEDER_USER_FIRST_NAME = 'Firstname'\n SEEDER_USER_LAST_NAME = 'Lastname'\n\t\tSEEDER_USER_DISPLAY_NAME = 'Firstname Lastname'\n\t\tSEEDER_USER_EMAIL = your.email@domain.com\n SEEDER_USER_PASSWORD = yourpassword\n */\n\t\tDB::table('users')->insert([\n 'user_first_name' => env('SEEDER_USER_FIRST_NAME'),\n 'user_last_name' => env('SEEDER_USER_LAST_NAME'),\n 'user_name' => env('SEEDER_USER_DISPLAY_NAME'),\n\t\t\t'user_email' => env('SEEDER_USER_EMAIL'),\n 'user_status' => 1,\n \t'password' => Hash::make((env('SEEDER_USER_PASSWORD'))),\n 'permission_fk' => 1,\n 'created_at' => Carbon::now()->format('Y-m-d H:i:s'),\n 'updated_at' => Carbon::now()->format('Y-m-d H:i:s')\n ]);\n }", "public function run()\n {\n $this->call(CategoryTableSeeder::class);\n $this->call(ProductTableSeeder::class);\n\n \t\t\n\t\t\tDB::table('users')->insert([\n 'first_name' => 'Ignacio',\n 'last_name' => 'Garcia',\n 'email' => 'ignacio@dh.com',\n 'password' => bcrypt('123456'),\n 'role' => '1',\n 'avatar' => 'CGnABxNYYn8N23RWlvTTP6C2nRjOLTf8IJcbLqRP.jpeg',\n ]);\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n echo 'seeding permission...', PHP_EOL;\n $permissions = [\n 'role-list',\n 'role-create',\n 'role-edit',\n 'role-delete',\n 'formation-list',\n 'formation-create',\n 'formation-edit',\n 'formation-delete',\n 'user-list',\n 'user-create',\n 'user-edit',\n 'user-delete'\n ];\n foreach ($permissions as $permission) {\n Permission::create(['name' => $permission]);\n }\n echo 'seeding users...', PHP_EOL;\n\n $user= User::create(\n [\n 'name' => 'Mr. admin',\n 'email' => 'admin@yahoo.com',\n 'password' => bcrypt('admin'),\n 'remember_token' => null,\n ]\n );\n echo 'Create Roles...', PHP_EOL;\n Role::create(['name' => 'former']);\n Role::create(['name' => 'learner']);\n Role::create(['name' => 'admin']);\n Role::create(['name' => 'manager']);\n Role::create(['name' => 'user']);\n\n echo 'seeding Role User...', PHP_EOL;\n $user->assignRole('admin');\n $role = $user->assignRole('admin');\n $role->givepermissionTo(Permission::all());\n\n \\DB::table('languages')->insert(['name' => 'English', 'code' => 'en']);\n \\DB::table('languages')->insert(['name' => 'Français', 'code' => 'fr']);\n }", "public function run()\n {\n Model::unguard();\n\n // $this->call(TodoTableSeeder::class);\n\n // $this->call(TimeEntriesTableSeeder::class);\n // $this->call(UsersTableSeeder::class);\n // $this->command->info('User and Time entry seeded');\n\n\n // $this->call(UserTableSeeder::class);\n // $this->call(CommentTableSeeder::class);\n\n // Comment::create([\n // 'author' => 'Chris Sevilleja',\n // 'text' => 'Look I am a test comment.'\n // ]);\n \n // Comment::create(array(\n // 'author' => 'Nick Cerminara',\n // 'text' => 'This is going to be super crazy.'\n // ));\n \n // Comment::create(array(\n // 'author' => 'Holly Lloyd',\n // 'text' => 'I am a master of Laravel and Angular.'\n // ));\n\n\n // $this->command->info('Comment table seeded.');\n\n Model::reguard();\n }", "public function run()\n {\n \t$faker = Faker::create();\n\n \tfor($i=0; $i<20; $i++) {\n \t\t$post = new Post;\n \t\t$post->title = $faker->sentence();\n \t\t$post->body = $faker->paragraph();\n \t\t$post->category_id = rand(1, 5);\n \t\t$post->save();\n \t}\n\n \t$list = ['General', 'Technology', 'News', 'Internet', 'Mobile'];\n \tforeach($list as $name) {\n \t\t$category = new Category;\n \t\t$category->name = $name;\n \t\t$category->save();\n \t}\n\n \tfor($i=0; $i<20; $i++) {\n \t\t$comment = new Comment;\n \t\t$comment->comment = $faker->paragraph();\n \t\t$comment->post_id = rand(1,20);\n \t\t$comment->save();\n \t}\n // $this->call(UsersTableSeeder::class);\n }", "public function run()\n {\n $faker = Faker::create();\n\n // $this->call(UsersTableSeeder::class);\n\n DB::table('posts')->insert([\n 'id'=>str_random(1),\n 'user_id'=> str_random(1),\n 'title' => $faker->name,\n 'body' => $faker->safeEmail,\n 'created_at' => date('Y-m-d H:i:s'),\n 'updated_at' => date('Y-m-d H:i:s'),\n ]);\n }", "public function run()\n {\n //$this->call(UserSeeder::class);\n $this->call(UserTableSeeder::class);\n $this->call(CategoriasSeeder::class);\n $this->call(PackagesTableSeeder::class);\n // $this->call(OrdenPurchaseTableSeeder::class);\n $this->call(RanksTableSeeder::class);\n // $this->call(CountryTableSeeder::class);\n // $this->call(CategoriesTableSeeder::class);\n // $this->call(ServicesTableSeeder::class);\n // $this->call(TimeZoneTableSeeder::class);\n // $this->call(AddSaldoTableSeeder::class);\n // $this->call(WalletTableSeeder::class);\n }", "public function run()\n {\n $this->call(RoleTableSeeder::class);\n $this->call(UserTableSeeder::class);\n \n factory('App\\Cat', 5)->create();\n $tags = factory('App\\Tag', 8)->create();\n\n factory(Post::class, 15)->create()->each(function($post) use ($tags){\n $post->comments()->save(factory(Comment::class)->make());\n $post->tags()->attach( $tags->random(mt_rand(1,4))->pluck('id')->toArray() );\n });\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n factory(User::class)->create([\n 'email' => 'russell@gmail.com',\n 'name' => 'Russell'\n ]);\n\n factory(User::class)->create([\n 'email' => 'bitfumes@gmail.com',\n 'name' => 'Bitfumes'\n ]);\n\n factory(User::class)->create([\n 'email' => 'paul@gmail.com',\n 'name' => 'Paul'\n ]);\n }", "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n $this->call(UserSeeder::class);\n $this->call(RolePermissionSeeder::class);\n $this->call(AppmodeSeeder::class);\n\n // \\App\\Models\\Appmode::factory(3)->create();\n \\App\\Models\\Doctor::factory(100)->create();\n \\App\\Models\\Unit::factory(50)->create();\n \\App\\Models\\Broker::factory(100)->create();\n \\App\\Models\\Patient::factory(100)->create();\n \\App\\Models\\Expence::factory(100)->create();\n \\App\\Models\\Testcategory::factory(100)->create();\n \\App\\Models\\Test::factory(50)->create();\n \\App\\Models\\Parameter::factory(50)->create();\n \\App\\Models\\Sale::factory(50)->create();\n \\App\\Models\\SaleItem::factory(100)->create();\n \\App\\Models\\Goption::factory(1)->create();\n \\App\\Models\\Pararesult::factory(50)->create();\n\n }", "public function run()\n {\n $this->call([\n UsersTableSeeder::class,\n ActivitiesTableSeeder::class,\n AnswersTableSeeder::class,\n CategoriesTableSeeder::class,\n CoursesTableSeeder::class,\n FollowsTableSeeder::class,\n LessionsTableSeeder::class,\n PermissionRoleTableSeeder::class,\n PermissionsTableSeeder::class,\n QuestionsTableSeeder::class,\n RolesTableSeeder::class,\n TestTableSeeder::class,\n TestQuestionTableSeeder::class,\n UserCourseTableSeeder::class,\n UserLessionTableSeeder::class,\n UserWordTableSeeder::class,\n WordsTableSeeder::class,\n ]);\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $this->call('GendersTableSeeder');\n $this->call('CountriesTableSeeder');\n $this->call('CitiesTableSeeder');\n $this->call('RolesTableSeeder');\n $this->call('UsersTableSeeder');\n $this->call('StatusesTableSeeder');\n }", "public function run()\n {\n $this->call(RolSeeder::class);\n\n $this->call(UserSeeder::class);\n Category::factory(4)->create();\n Doctor::factory(25)->create();\n Patient::factory(50)->create();\n Status::factory(3)->create();\n Appointment::factory(100)->create();\n }", "public function run()\n {\n /*\n after making this class run : [composer dump-autoload] in your command line\n after that to seed the data [php artisan bd:seed]\n to fresh datable and again seed [php artisan migrate:fresh --seed]\n\n DB::table('posts')->insert([\n 'title' => 'This is the title',\n 'description' => 'This is the description of the table',\n ]);//use for cusomise seeding data\n */\n Post::factory(10)->create();\n }", "public function run()\n {\n $this->call([\n LanguagesTableSeeder::class,\n ListingAvailabilitiesTableSeeder::class,\n ListingTypesTableSeeder::class,\n RoomTypesTableSeeder::class,\n AmenitiesTableSeeder::class,\n UsersTableSeeder::class,\n UserLanguagesTableSeeder::class,\n ListingsTableSeeder::class,\n WishlistsTableSeeder::class,\n StaysTableSeeder::class,\n GuestsTableSeeder::class,\n TripsTableSeeder::class,\n ReviewsTableSeeder::class,\n RatingsTableSeeder::class,\n PopularDestinationsTableSeeder::class,\n ImagesTableSeeder::class,\n ]);\n\n // factory(App\\User::class, 5)->states('host')->create();\n // factory(App\\User::class, 10)->states('hostee')->create();\n\n // factory(App\\User::class, 10)->create();\n // factory(App\\Models\\Listing::class, 30)->create();\n }", "public function run()\n {\n DatabaseSeeder::seedLearningStylesProbs();\n DatabaseSeeder::seedCampusProbs();\n DatabaseSeeder::seedGenderProbs();\n DatabaseSeeder::seedTypeStudentProbs();\n DatabaseSeeder::seedTypeProfessorProbs();\n DatabaseSeeder::seedNetworkProbs();\n }", "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n $this->call([\n HomeSeeder::class,\n ]);\n\n $this->call([\n NewsSeeder::class,\n ]);\n\n $this->call([\n ProductSeeder::class,\n ]);\n\n $this->call([\n ProgramSeeder::class,\n ]);\n \n $this->call([\n AboutSeeder::class,\n ]);\n\n $this->call([\n ContactSeeder::class,\n ]);\n }", "public function run()\n {\n $this->call(ArticulosTableSeeder::class);\n /*DB::table('articulos')->insert([\n 'titulo' => str_random(50),\n 'cuerpo' => str_random(200),\n ]);*/\n }", "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n\n $this->call([\n NavbarSeeder::class,\n Section2Seeder::class,\n AboutUsSeeder::class,\n FeatureSeeder::class,\n ServiceSeeder::class,\n PortfolioSeeder::class,\n TestimonialSeeder::class,\n TeamSeeder::class,\n ContactSeeder::class,\n FooterSeeder::class,\n FooterBottomSeeder::class,\n TitreSeeder::class,\n RoleSeeder::class,\n UserSeeder::class\n ]);\n }", "public function run()\n {\n $this->call([\n LocationSeeder::class,\n BranchSeeder::class,\n DepartmentSeeder::class,\n DesignationSeeder::class,\n GenderSeeder::class,\n MaritalStatusSeeder::class,\n PayGradeSeeder::class,\n EmployeeEducationCatrgorySeeder::class,\n EmployeeEducationSeeder::class,\n EmployeeCategorySeeder::class,\n UserGroupSeeder::class,\n LeaveCategorySeeder::class,\n LeaveApplicationSeeder::class,\n UserSeeder::class\n ]);\n\n }", "public function run()\n {\n $this->call(UsersTableSeeder::class);\n $this->call(ConditionsTableSeeder::class);\n $this->call(DeliveriesTableSeeder::class);\n $this->call(CategoriesTableSeeder::class);\n $this->call(AdvertsTableSeeder::class);\n // plaats postcode import in eigen / aparte seeder class ==>> Made migration (else DB:rename doesn't work inside seeder, makes copy)\n }", "public function run()\n {\n //$this->call(PetTypeTableSeeder::class);\n //$this->call(PetCategoryTableSeeder::class);\n //$this->call(UserTableSeeder::class);\n //$this->call(InventoryTypeTableSeeder::class);\n //$this->call(ServiceSeeder::class);\n //$this->call(FoodCategoryTableSeeder::class);\n //$this->call(MedicineCategoryTableSeeder::class);\n //$this->call(PassingRateTableSeeder::class);\n //$this->call(BarangayTableSeeder::class);\n //$this->call(BreedTableSeeder::class);\n //$this->call(CityTableSeeder::class);\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $this->call(UserSeeder::class);\n $this->call(AuditeeSeeder::class);\n $this->call(AuditorSeeder::class);\n $this->call(CategorySeeder::class);\n $this->call(ContractorSeeder::class);\n $this->call(DepartmentSeeder::class);\n $this->call(SiteSeeder::class);\n $this->call(MonitoringSeeder::class);\n }", "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n\n User::factory()->create([\n 'name' => 'Carlos',\n 'email' => 'carlos@email.com',\n 'email_verified_at' => now(),\n 'password' => bcrypt('123456'), // password\n 'remember_token' => Str::random(10),\n ]);\n \n $this->call([PostsTableSeeder::class]);\n $this->call([TagTableSeeder::class]);\n\n }", "public function run()\n\t{\n\t\t//composer require fzaninotto/faker\n\t\t\n\t\t$this->call(populateAllSeeder::class);\n\t\t\n\t}", "public function run()\n {\n $this->call(CategoriasTableSeeder::class);\n $this->call(UfsTableSeeder::class);\n $this->call(UsersTableSeeder::class);\n $this->call(UserTiposTableSeeder::class);\n factory(App\\User::class, 2)->create();\n/* factory(App\\Models\\Categoria::class, 20)->create();*/\n/* factory(App\\Models\\Anuncio::class, 50)->create();*/\n }", "public function run()\n {\n //base seeds\n $this->call(RoleSeed::class);\n $this->call(UserSeed::class);\n $this->call(PointSeed::class);\n $this->call(LevelSeed::class);\n\n // $this->call(CourseSeed::class);\n // $this->call(LessonSeed::class);\n\n\n // $this->call(AnswerSeed::class);\n // $this->call(QuizSeed::class);\n // $this->call(QuestionSeed::class);\n // $this->call(TemplateSeed::class);\n // $this->call(CertificationSeed::class);\n \n //relation seeds\n // $this->call(CourseLessonSeed::class);\n // $this->call(CourseQuizSeed::class);\n // $this->call(QuizQuestionSeed::class);\n // $this->call(QuestionAnswerSeed::class);\n //$this->call(DataCourseSeed::class);\n //$this->call(DataLessonSeed::class);\n }", "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n\n $this->call([\n AdminTableSeeder::class,\n VendorTableSeeder::class,\n AppSettingSeeder::class,\n ]);\n\n Vendor::factory(20)->create();\n Software::factory(20)->create();\n Softwarecategories::factory(20)->create();\n Softwarespecification::factory(20)->create();\n }", "public function run()\n {\n $this->call([\n RoleSeeder::class,\n TicketSeeder::class\n ]);\n\n DB::table('departments')->insert([\n 'abbr' => 'IT',\n 'name' => 'Information Technologies',\n 'created_at' => Carbon::now(),\n 'updated_at' => Carbon::now(),\n ]);\n\n DB::table('users')->insert([\n 'name' => 'admin',\n 'email' => 'admin@gmail.com',\n 'email_verified_at' => Carbon::now(),\n 'password' => Hash::make('admin'),\n 'department_id' => 1,\n 'avatar' => 'default.png',\n 'created_at' => Carbon::now(),\n 'updated_at' => Carbon::now(),\n ]);\n\n DB::table('role_user')->insert([\n 'role_id' => 1,\n 'user_id' => 1\n ]);\n }", "public function run()\n {\n // Disable guard for seeder\n Eloquent::unguard();\n\n $this->call(AvasTableSeeder::class);\n $this->call(WineriesTableSeeder::class);\n $this->call(AvaWineryTableSeeder::class);\n $this->call(TimesTableSeeder::class);\n $this->call(UsersTableSeeder::class);\n $this->call(FavoritesTableSeeder::class);\n $this->call(WishlistsTableSeeder::class);\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::table('users')->insert([\n \t'name' => 'Gerardo Steven',\n 'email' => 'gerardo@typhoon.com',\n 'password' => Hash::make('root'),\n 'rol' => 0,\n ]);\n DB::table('users')->insert([\n \t'name' => 'Gerardo User',\n 'email' => 'gerardo_user@typhoon.com',\n 'password' => Hash::make('root'),\n 'rol' => 1,\n ]);\n }", "public function run()\n {\n $this->call(OrgCategoriesSeeder::class);\n $this->call(RolesSeeder::class);\n $this->call(TargetSubcategoriesTableSeeder::class);\n $this->call(TargetCategoriesTableSeeder::class);\n $this->call(TargetItemsTableSeeder::class);\n $this->call(ParentalStatusesSeeder::class);\n $this->call(GenderSeeder::class); \n $this->call(EducationSeeder::class); \n $this->call(IncomeSeeder::class); \n $this->call(LanguagesSeeder::class); \n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $this->call(AdminTablesSeeder::class);\n\n $this->call(TemplatesTableSeeder::class);\n\n $this->call(ActivitiesSeeder::class);\n\n $this->call(AwardsSeeder::class);\n\n// $this->call(CertificatesSeeder::class);\n $this->call(AdminMenuTableSeeder::class);\n $this->call(ActivitiesTableSeeder::class);\n// $this->call(AwardsTableSeeder::class);\n }", "public function run()\n {\n // factory('App\\Model\\Member', 'Member', 111)->create();\n // $this->call(UsersTableSeeder::class);\n // factory('App\\Model\\Order', 'Order', 51)->create()->each(function($u) {\n // for ($i=0; $i < mt_rand(1,3); $i++) {\n // $u->orderDetail()->save(factory('App\\Model\\OrderDetail', 'OrderDetail', 1)->make());\n // }\n // for ($k=1; $k < mt_rand(2,6); $k++) { \n // $u->orderLog()->save(factory('App\\Model\\OrderLog', 'OrderLog', 1)->make([\n // 'action' => $k,\n // ]));\n // }\n // });\n //factory(App\\Model\\Notification::class, 'Notification', 100)->create();\n //factory(App\\Model\\MicroForumLog::class, 'MicroForumLog', 1000)->create();\n }", "public function run()\n {\n $this->call(GenderSeeder::class);\n $this->call(TitleSeeder::class);\n $this->call(CountrySeeder::class);\n $this->call(LocationSeeder::class);\n $this->call(EmployeeSeeder::class);\n $this->call(DepartmentSeeder::class);\n $this->call(EmployeeDepartmentSeeder::class);\n $this->call(NotesSeeder::class);\n }", "public function run()\n {\n $this->call([\n //DaysSeeder::class, \n \n //MediaFilePurposeSeeder::class, \n //UploadedFileSeeder::class, \n //SlidesSeeder::class, \n //YachtSeeder::class, \n //PackageSeeder::class, \n //MediaFileSeeder::class,\n PageCategoriesTableSeeder::class,\n CountriesTableSeeder::class,\n StatesTableSeeder::class,\n CruiseAvailableDaysTableSeeder::class,\n CruiseDateSettingsTableSeeder::class,\n ]);\n }", "public function run()\n {\n $this->call([\n ArticleSeeder::class, \n TagSeeder::class,\n Arttagrel::class\n ]);\n // \\App\\Models\\User::factory(10)->create();\n \\App\\Models\\Article::factory()->count(7)->create();\n \\App\\Models\\Tag::factory()->count(15)->create(); \n \\App\\Models\\Arttagrel::factory()->count(15)->create(); \n }", "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n $this->call([\n SuperUserSeeder::class,\n SquadSeeder::class,\n EmployeeStatusSeeder::class,\n OfficeSeeder::class,\n TribeSeeder::class,\n EmployeeSeeder::class,\n EmployeeSquadSeeder::class,\n SquadTribeSeeder::class,\n ProductSeeder::class,\n EmployeeProductSeeder::class,\n // SchedulingSeeder::class,\n // RealtySeeder::class,\n ]);\n }", "public function run()\n {\n // call run method in TodosSeeder to generate fake data\n $this->call(TodosSeeder::class);\n }", "public function run()\n {\n // Bank transfer\n $this->bankTransferSeeder();\n\n // Card pay\n $this->cardPaySeeder();\n\n // Pay by square seeder\n $this->payBySquareSeeder();\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $this->call('RoleTableSeeder');\n $this->call('PositionsTableSeeder');\n $this->call('EditionTypesTableSeeder');\n $this->call('StagesTableSeeder');\n $this->call('WorkType_PositionsTableSeeder');\n $this->call('WorkTypesTableSeeder');\n\n\n }", "public function run()\n {\n if (defined('STDERR')) fwrite(STDERR, print_r(\"\\n--- Seeding ---\\n\", TRUE));\n\n if (App::environment('production')) {\n if (defined('STDERR')) fwrite(STDERR, print_r(\"--- ERROR: Seeding in Production is prohibited ---\\n\", TRUE));\n return;\n }\n\n $this->call(RolesTableSeeder::class);\n $this->call(UsersTableSeeder::class);\n $this->call(ProvincesTableSeeder::class);\n $this->call(CitiesTableSeeder::class);\n $this->call(DistrictsTableSeeder::class);\n $this->call(ConfigsTableSeeder::class);\n $this->call(ConfigContentsTableSeeder::class);\n\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n if (defined('STDERR')) fwrite(STDERR, print_r(\"Set FOREIGN_KEY_CHECKS=1 --- DONE\\n\", TRUE));\n\n // \\Artisan::call('command:regenerate-user-feeds');\n\n \\Cache::flush();\n\n if (defined('STDERR')) fwrite(STDERR, print_r(\"--- End Seeding ---\\n\\n\", TRUE));\n }", "public function run()\n {\n // May be you see this line in a comment, please uncomment or write the next line\n \t$this->call(StateTableSeeder::class);\n $this->call(UsersTableSeeder::class);\n }", "public function run()\n {\n $this->call(UserSeed::class);\n $this->call(CategorySeed::class);\n $this->call(ExperienceSeeder::class);\n $this->call(LocationSeeder::class);\n $this->call(SalarySeeder::class);\n\n }", "public function run()\n {\n\n $this->call(UsersTableSeeder::class);\n $this->call(StudentsTableSeeder::class);\n\n $this->call(SectionsTableSeeder::class);\n $this->call(SectionsTableHeaderFooterSeeder::class);\n $this->call(QuestionsTableSeeder::class);\n $this->call(AnswersTableSeeder::class);\n\n $this->call(LocationsTableSeeder::class);\n $this->call(WardsTableSeeder::class);\n\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::table('users')->insert([\n 'name' => 'Administrator',\n 'email' => 'admin@wiseyes.com',\n 'address' => 'Petaling Jaya',\n 'postcode' => '40000',\n 'state' => 'Selangor',\n 'roles' => 1,\n 'password' => Hash::make('wiseyes'),\n ]);\n }", "public function run()\n\t{\n\t\tModel::unguard();\n\n\t\t// $this->call('UserTableSeeder');\n\t\t$this->call('ArticlesSeeder');\n $this->call('CategoriesSeeder');\n $this->call('LangsSeeder');\n $this->call('UsersSeeder');\n $this->call('TextsSeeder');\n\n\t}", "public function run()\n {\n \t$this->call(PermissionsSeeder::class);\n $this->call(UsersSeeder::class);\n $this->call(TagsSeeder::class);\n $this->call(QuestionsSeeder::class);\n $this->call(AnswersSeeder::class);\n $this->call(TaggablesSeeder::class);\n $this->call(DocumentationsSeeder::class);\n $this->call(CommentsSeeder::class);\n $this->call(SubjectsSeeder::class);\n $this->call(VotesSeeder::class);\n }", "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n \n $this->call(ZonasSeeder::class);\n $this->call(DepartamentosSeeder::class);\n $this->call(MunicipiosSeeder::class);\n $this->call(CategoriasSeeder::class);\n $this->call(RolesSeeder::class);\n $this->call(usersSeeder::class);\n $this->call(TiposPruebasSeeder::class);\n $this->call(ResultadosPruebasSeeder::class);\n $this->call(GravedadesSintomasSeeder::class);\n $this->call(SintomasSeeder::class);\n }", "public function run()\n {\n //$this->call(UsersTableSeeder::class);\n $this->call(DefaultUserSeeder::class);\n $this->call(SportsProductsSeeder::class);\n $this->call(PhonesProductsSeeder::class);\n $this->call(HeadphonesProductsSeeder::class);\n $this->call(ShirtsProductsSeeder::class);\n $this->call(FurnituresProductsSeeder::class);\n $this->call(VideoGamesProductsSeeder::class);\n $this->call(Payment_MethodsSeeder::class);\n $this->call(ShippingMethodsSeeder::class);\n }", "public function run()\n {\n // $this->call(UserTableSeeder::class);\n $this->call(UsersSeeder::class);\n $this->call(AdminsSeeder::class);\n $this->call(CategoriesSeeder::class);\n $this->call(ProductsSeeder::class);\n $this->call(EventsSeeder::class); \n }", "public function run()\n {\n $this->call(CountrySeeder::class);\n $this->call(CitySeeder::class);\n\n $this->call(UserSeeder::class);\n $this->call(StatusSeeder::class);\n Company::factory(20)->create();\n $this->call(StatusSeeder::class);\n $this->call(RoleSeeder::class);\n $this->call(CategorySeeder::class);\n Offer::factory(100)->create();\n Review::factory(100)->create();\n Project::factory(30)->create();\n Image::factory(90)->create();\n }", "public function run()\n {\n $this->call([\n PermissionsTableSeeder::class,\n RolesTableSeeder::class,\n PermissionRoleTableSeeder::class,\n SocialNetworksSeeder::class,\n UsersTableSeeder::class,\n AccountManagerDummySeeder::class,\n DummyDataSeeder::class,\n NotificationsSeeder::class,\n PaymentTypesSeeder::class,\n FileManagerDummySeeder::class,\n TicketsCategoriesSeeder::class\n ]);\n }", "public function run()\n {\n $this->call(UsersTableSeeder::class);\n\n factory(App\\Lead::class,150)->create()->each(function($u){\n $u->domains()->save(factory(App\\Domain::class)->make());\n })->each(function($u){\n $u->communicationValues()->save(factory(\\App\\CommunicationValue::class)->make());\n });\n\n $this->call(DomainsTableSeeder::class);\n\n $this->call(CommunicationValuesTableSeeder::class);\n\n $this->call(CommentsTableSeeder::class);\n\n $this->call(CommunicationRecordsTableSeeder::class);\n }", "public function run()\n {\n // $this->call(UserSeeder::class);\n $this->call(SeedFurnitureTable::class);\n $this->call(SeedCategoriesTable::class);\n $this->call(SeedUsersTable::class);\n $this->call(SeedMaterialsTable::class);\n $this->call(SeedOrdersTable::class);\n $this->call(SeedPromotionsTable::class);\n $this->call(SeedReviewsTable::class);\n $this->call(SeedTaxesTable::class);\n $this->call(SeedManufacturersTable::class);\n $this->call(SeedTransactionsTable::class);\n $this->call(SeedFurnitureOrderTable::class);\n }", "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n\n $this->call(Tipo_DocumentoSeeder::class);\n\n $this->call(RolSeeder::class);\n\n $this->call(GeneroSeeder::class);\n\n $this->call(MaterialSeeder::class);\n\n $this->call(CategoriaSeeder::class);\n\n $this->call(ClasificacionSeeder::class);\n\n $this->call(UsuarioSeeder::class);\n\n $this->call(TallaSeeder::class);\n\n $this->call(ProductoSeeder::class);\n\n $this->call(ContactoSeeder::class);\n\n\n }", "public function run()\n {\n $this->call(\\Database\\Seeders\\GroupByRecordTableSeeder::class);\n $this->call(\\Database\\Seeders\\SingleIndexRecordTableSeeder::class);\n $this->call(\\Database\\Seeders\\MultiIndexRecordTableSeeder::class);\n $this->call(\\Database\\Seeders\\JoinFiveTablesSeeder::class);\n\n// DB::table('users')->truncate();\n// DB::table('user_details')->truncate();\n//\n// // 試しに一回流す\n// $data = $this->makeData(0, 'userFactory', 1);\n// DB::table('users')->insert($data);\n// $data = $this->makeData(0, 'userDetailFactory', 1);\n// DB::table('user_details')->insert($data);\n//\n// // $this->call(UsersTableSeeder::class);\n// DB::table('users')->truncate();\n// DB::table('user_details')->truncate();\n//\n// for ($i = 0; $i < 40; $i++) {\n// $data = $this->makeData($i, 'userFactory', 2500);\n// DB::table('users')->insert($data);\n// }\n//\n// for ($i = 0; $i < 40; $i++) {\n// $data = $this->makeData($i, 'userDetailFactory', 2500);\n// DB::table('user_details')->insert($data);\n// }\n }", "public function run()\n {\n $this->call(TableSeeder::class);\n $this->command->info('berhasil di-seed!');\n }", "public function run()\n {\n Model::unguard();\n\n if (env('DB_CONNECTION') == 'mysql') {\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n }\n\n $this->call(RolesTableSeeder::class);\n $this->call(UsersTableSeeder::class);\n $this->call(EntrustTableSeeder::class);\n\n $this->call(AccounttypeSeeder::class);\n $this->call(AppUserTableSeeder::class);\n $this->call(AppEmailUserTableSeeder::class);\n\n\n $this->call(CountryTableSeeder::class);\n $this->call(CityTableSeeder::class);\n\n\n $this->call(PostTypeTableSeeder::class);\n $this->call(PostSubTypeTableSeeder::class);\n // $this->call(PostTableSeeder::class);\n // $this->call(AppPostSolvedTableSeeder::class);\n\n\n $this->call(AppCommentTypeTableSeeder::class);\n // $this->call(AppCommentTableSeeder::class);\n // $this->call(AppSubCommentTableSeeder::class);\n\n\n if (env('DB_CONNECTION') == 'mysql') {\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n }\n\n Model::reguard();\n }", "public function run()\n {\n $this->call([\n RoleTableSeeder::class,\n UsersTableSeeder::class,\n AdressesTableSeeder::class,\n CategoryTableSeeder::class,\n StartupTableSeeder::class,\n EventTableSeeder::class,\n PostTableSeeder::class,\n ServicesTableSeeder::class,\n RealisationsTableSeeder::class,\n CategoryStartupTableSeeder::class,\n CategoryServiceTableSeeder::class,\n ConnectionStartupTableSeeder::class,\n RecommendationStartupTableSeeder::class,\n CommentTableSeeder::class,\n ]);\n }" ]
[ "0.8407416", "0.83000296", "0.8294794", "0.82909095", "0.8268635", "0.82555914", "0.82431096", "0.8240006", "0.82399356", "0.82130307", "0.821194", "0.819601", "0.81864303", "0.818307", "0.8171342", "0.8164852", "0.8164117", "0.8158457", "0.814793", "0.81470937", "0.8145788", "0.81352246", "0.812973", "0.8125473", "0.8122654", "0.810926", "0.81058687", "0.8105418", "0.81048614", "0.8104687", "0.81023824", "0.80987936", "0.8094231", "0.80942225", "0.8093586", "0.808838", "0.8088065", "0.80868536", "0.80857074", "0.80846125", "0.8081925", "0.807854", "0.807702", "0.807664", "0.8075917", "0.807501", "0.80724096", "0.8071662", "0.8071588", "0.80711937", "0.80700505", "0.80670923", "0.8065741", "0.80620426", "0.80591965", "0.80580944", "0.8054168", "0.80539095", "0.80535704", "0.80528414", "0.80525684", "0.8051035", "0.8050919", "0.8049252", "0.8047285", "0.8046789", "0.8046294", "0.80458385", "0.8043564", "0.8040901", "0.8039183", "0.8039172", "0.80386806", "0.80344003", "0.80326754", "0.8032008", "0.80295736", "0.8029106", "0.80278856", "0.8027411", "0.8026859", "0.802657", "0.8026364", "0.8026324", "0.8025669", "0.8024935", "0.8023028", "0.80219847", "0.8020914", "0.8020823", "0.80173135", "0.8016061", "0.8014757", "0.80131483", "0.8012867", "0.801224", "0.8011223", "0.80111647", "0.8010216", "0.8009622", "0.8009595" ]
0.0
-1
Create a new controller instance.
public function __construct() { $this->middleware('auth'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function createController()\n {\n $this->createClass('controller');\n }", "protected function createController()\n {\n $controller = Str::studly(class_basename($this->getNameInput()));\n\n $modelName = $this->qualifyClass('Models/'.$this->getNameInput());\n\n $this->call('make:controller', array_filter([\n 'name' => \"{$controller}Controller\",\n '--model' => $modelName,\n '--api' => true,\n ]));\n }", "protected function createController()\n {\n $controller = Str::studly(class_basename($this->argument('name')));\n $model_name = $this->qualifyClass($this->getNameInput());\n $name = Str::contains($model_name, ['\\\\']) ? Str::afterLast($model_name, '\\\\') : $model_name;\n\n $this->call('make:controller', [\n 'name' => \"{$controller}Controller\",\n '--model' => $model_name,\n ]);\n\n $path = base_path() . \"/app/Http/Controllers/{$controller}Controller.php\";\n $this->cleanupDummy($path, $name);\n }", "private function makeInitiatedController()\n\t{\n\t\t$controller = new TestEntityCRUDController();\n\n\t\t$controller->setLoggerWrapper(Logger::create());\n\n\t\treturn $controller;\n\t}", "protected function createController()\n {\n $controller = Str::studly(class_basename($this->argument('name')));\n\n $modelName = $this->qualifyClass($this->getNameInput());\n\n $this->call(ControllerMakeCommand::class, array_filter([\n 'name' => \"{$controller}/{$controller}Controller\",\n '--model' => $this->option('resource') || $this->option('api') ? $modelName : null,\n ]));\n\n $this->call(ControllerMakeCommand::class, array_filter([\n 'name' => \"Api/{$controller}/{$controller}Controller\",\n '--model' => $this->option('resource') || $this->option('api') ? $modelName : null,\n '--api' => true,\n ]));\n }", "protected function createController()\n {\n $name = str_replace(\"Service\",\"\",$this->argument('name'));\n\n $this->call('make:controller', [\n 'name' => \"{$name}Controller\"\n ]);\n }", "protected function createController()\n {\n $params = [\n 'name' => $this->argument('name'),\n ];\n\n if ($this->option('api')) {\n $params['--api'] = true;\n }\n\n $this->call('wizard:controller', $params);\n }", "public function generateController () {\r\n $controllerParam = \\app\\lib\\router::getPath();\r\n $controllerName = \"app\\controller\\\\\" . end($controllerParam);\r\n $this->controller = new $controllerName;\r\n }", "public static function newController($controller)\n\t{\n\t\t$objController = \"App\\\\Controllers\\\\\".$controller;\n\t\treturn new $objController;\n\t}", "public function createController()\n\t{\n\t\tif(class_exists($this->controller))\n\t\t{\n\t\t\t// get the parent class he extends\n\t\t\t$parents = class_parents($this->controller);\n\n\t\t\t// $parents = class_implements($this->controller); used if our Controller was just an interface not a class\n\n\t\t\t// check if the class implements our Controller Class\n\t\t\tif(in_array(\"Controller\", $parents))\n\t\t\t{\n\t\t\t\t// check if the action in the request exists in that class\n\t\t\t\tif(method_exists($this->controller, $this->action))\n\t\t\t\t{\n\t\t\t\t\treturn new $this->controller($this->action, $this->request);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t// Action is not exist\n\t\t\t\t\techo 'Method '. $this->action .' doesn\\'t exist in '. $this->controller;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t// The controller doesn't extends our Controller Class\n\t\t\t\techo $this->controller.' doesn\\'t extends our Controller Class';\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// Controller Doesn't exist\n\t\t\techo $this->controller.' doesn\\'t exist';\n\t\t}\n\t}", "public function createController( ezcMvcRequest $request );", "public function createController() {\n //check our requested controller's class file exists and require it if so\n /*if (file_exists(__DIR__ . \"/../Controllers/\" . $this->controllerName . \".php\")) {\n require(__DIR__ . \"/../Controllers/\" . $this->controllerName . \".php\");\n } else {\n throw new Exception('Route does not exist');\n }*/\n\n try {\n require_once __DIR__ . '/../Controllers/' . $this->controllerName . '.php';\n } catch (Exception $e) {\n return $e;\n }\n \n //does the class exist?\n if (class_exists($this->controllerClass)) {\n $parents = class_parents($this->controllerClass);\n \n //does the class inherit from the BaseController class?\n if (in_array(\"BaseController\",$parents)) { \n //does the requested class contain the requested action as a method?\n if (method_exists($this->controllerClass, $this->endpoint)) {\n return new $this->controllerClass($this->args, $this->endpoint, $this->domain);\n } else {\n throw new Exception('Action does not exist');\n }\n } else {\n throw new Exception('Class does not inherit correctly.');\n }\n } else {\n throw new Exception('Controller does not exist.');\n }\n }", "public static function create()\n\t{\n\t\t//check, if a JobController instance already exists\n\t\tif(JobController::$jobController == null)\n\t\t{\n\t\t\tJobController::$jobController = new JobController();\n\t\t}\n\n\t\treturn JobController::$jobController;\n\t}", "private function controller()\n {\n $location = $this->args[\"location\"] . DIRECTORY_SEPARATOR . 'controllers' . DIRECTORY_SEPARATOR;\n $relative_location = $this->args['application_folder'] . DIRECTORY_SEPARATOR . 'controllers' . DIRECTORY_SEPARATOR;\n\n if (!empty($this->args['subdirectories']))\n {\n $location .= $this->args['subdirectories'] . DIRECTORY_SEPARATOR;\n $relative_location .= $this->args['subdirectories'] . DIRECTORY_SEPARATOR;\n }\n\n if (!is_dir($location))\n {\n mkdir($location, 0755, TRUE);\n }\n\n $relative_location .= $this->args['filename'];\n $filename = $location . $this->args['filename'];\n\n $args = array(\n \"class_name\" => ApplicationHelpers::camelize($this->args['name']),\n \"filename\" => $this->args['filename'],\n \"application_folder\" => $this->args['application_folder'],\n \"parent_class\" => (isset($this->args['parent'])) ? $this->args['parent'] : $this->args['parent_controller'],\n \"extra\" => $this->extra,\n 'relative_location' => $relative_location,\n 'helper_name' => strtolower($this->args['name']) . '_helper',\n );\n\n $template = new TemplateScanner(\"controller\", $args);\n $controller = $template->parse();\n\n $message = \"\\t\";\n if (file_exists($filename))\n {\n $message .= 'Controller already exists : ';\n if (php_uname(\"s\") !== \"Windows NT\")\n {\n $message = ApplicationHelpers::colorize($message, 'light_blue');\n }\n $message .= $relative_location;\n }\n elseif (file_put_contents($filename, $controller))\n {\n $message .= 'Created controller: ';\n if (php_uname(\"s\") !== \"Windows NT\")\n {\n $message = ApplicationHelpers::colorize($message, 'green');\n }\n $message .= $relative_location;\n }\n else\n {\n $message .= 'Unable to create controller: ';\n if (php_uname(\"s\") !== \"Windows NT\")\n {\n $message = ApplicationHelpers::colorize($message, 'red');\n }\n $message .= $relative_location;\n }\n\n // The controller has been generated, output the confirmation message\n fwrite(STDOUT, $message . PHP_EOL);\n\n // Create the helper files.\n $this->helpers();\n\n $this->assets();\n\n // Create the view files.\n $this->views();\n\n return;\n }", "public function createController( $controllerName ) {\r\n\t\t$refController \t\t= $this->instanceOfController( $controllerName );\r\n\t\t$refConstructor \t= $refController->getConstructor();\r\n\t\tif ( ! $refConstructor ) return $refController->newInstance();\r\n\t\t$initParameter \t\t= $this->setParameter( $refConstructor );\r\n\t\treturn $refController->newInstanceArgs( $initParameter ); \r\n\t}", "public function create($controllerName) {\r\n\t\tif (!$controllerName)\r\n\t\t\t$controllerName = $this->defaultController;\r\n\r\n\t\t$controllerName = ucfirst(strtolower($controllerName)).'Controller';\r\n\t\t$controllerFilename = $this->searchDir.'/'.$controllerName.'.php';\r\n\r\n\t\tif (preg_match('/[^a-zA-Z0-9]/', $controllerName))\r\n\t\t\tthrow new Exception('Invalid controller name', 404);\r\n\r\n\t\tif (!file_exists($controllerFilename)) {\r\n\t\t\tthrow new Exception('Controller not found \"'.$controllerName.'\"', 404);\r\n\t\t}\r\n\r\n\t\trequire_once $controllerFilename;\r\n\r\n\t\tif (!class_exists($controllerName) || !is_subclass_of($controllerName, 'Controller'))\r\n\t\t\tthrow new Exception('Unknown controller \"'.$controllerName.'\"', 404);\r\n\r\n\t\t$this->controller = new $controllerName();\r\n\t\treturn $this;\r\n\t}", "private function createController($controllerName)\n {\n $className = ucfirst($controllerName) . 'Controller';\n ${$this->lcf($controllerName) . 'Controller'} = new $className();\n return ${$this->lcf($controllerName) . 'Controller'};\n }", "public function createControllerObject(string $controller)\n {\n $this->checkControllerExists($controller);\n $controller = $this->ctlrStrSrc.$controller;\n $controller = new $controller();\n return $controller;\n }", "public function create_controller($controller, $action){\n\t $creado = false;\n\t\t$controllers_dir = Kumbia::$active_controllers_dir;\n\t\t$file = strtolower($controller).\"_controller.php\";\n\t\tif(file_exists(\"$controllers_dir/$file\")){\n\t\t\tFlash::error(\"Error: El controlador '$controller' ya existe\\n\");\n\t\t} else {\n\t\t\tif($this->post(\"kind\")==\"applicationcontroller\"){\n\t\t\t\t$filec = \"<?php\\n\t\t\t\\n\tclass \".ucfirst($controller).\"Controller extends ApplicationController {\\n\\n\\t\\tfunction $action(){\\n\\n\\t\\t}\\n\\n\t}\\n\t\\n?>\\n\";\n\t\t\t\tif(@file_put_contents(\"$controllers_dir/$file\", $filec)){\n\t\t\t\t $creado = true;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$filec = \"<?php\\n\t\t\t\\n\tclass \".ucfirst($controller).\"Controller extends StandardForm {\\n\\n\\t\\tpublic \\$scaffold = true;\\n\\n\\t\\tpublic function __construct(){\\n\\n\\t\\t}\\n\\n\t}\\n\t\\n?>\\n\";\n\t\t\t\tfile_put_contents(\"$controllers_dir/$file\", $filec);\n\t\t\t\tif($this->create_model($controller, $controller, \"index\")){\n\t\t\t\t $creado = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif($creado){\n\t\t\t Flash::success(\"Se cre&oacute; correctamente el controlador '$controller' en '$controllers_dir/$file'\");\n\t\t\t}else {\n\t\t\t Flash::error(\"Error: No se pudo escribir en el directorio, verifique los permisos sobre el directorio\");\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t$this->route_to(\"controller: $controller\", \"action: $action\");\n\t}", "private function instanceController( string $controller_class ): Controller {\n\t\treturn new $controller_class( $this->request, $this->site );\n\t}", "public function makeController($controller_name)\n\t{\n\t\t$model\t= $this->_makeModel($controller_name, $this->_storage_type);\n\t\t$view\t= $this->_makeView($controller_name);\n\t\t\n\t\treturn new $controller_name($model, $view);\n\t}", "public function create()\n {\n $output = new \\Symfony\\Component\\Console\\Output\\ConsoleOutput();\n $output->writeln(\"<info>Controller Create</info>\");\n }", "protected function createDefaultController() {\n Octopus::requireOnce($this->app->getOption('OCTOPUS_DIR') . 'controllers/Default.php');\n return new DefaultController();\n }", "private function createControllerDefinition()\n {\n $id = $this->getServiceId('controller');\n if (!$this->container->has($id)) {\n $definition = new Definition($this->getServiceClass('controller'));\n $definition\n ->addMethodCall('setConfiguration', [new Reference($this->getServiceId('configuration'))])\n ->addMethodCall('setContainer', [new Reference('service_container')])\n ;\n $this->container->setDefinition($id, $definition);\n }\n }", "public function createController( $ctrlName, $action ) {\n $args['action'] = $action;\n $args['path'] = $this->path . '/modules/' . $ctrlName;\n $ctrlFile = $args['path'] . '/Controller.php';\n // $args['moduleName'] = $ctrlName;\n if ( file_exists( $ctrlFile ) ) {\n $ctrlPath = str_replace( CITRUS_PATH, '', $args['path'] );\n $ctrlPath = str_replace( '/', '\\\\', $ctrlPath ) . '\\Controller';\n try { \n $r = new \\ReflectionClass( $ctrlPath ); \n $inst = $r->newInstanceArgs( $args ? $args : array() );\n\n $this->controller = Citrus::apply( $inst, Array( \n 'name' => $ctrlName, \n ) );\n if ( $this->controller->is_protected == null ) {\n $this->controller->is_protected = $this->is_protected;\n }\n return $this->controller;\n } catch ( \\Exception $e ) {\n prr($e, true);\n }\n } else {\n return false;\n }\n }", "protected function createTestController() {\n\t\t$controller = new CController('test');\n\n\t\t$action = $this->getMock('CAction', array('run'), array($controller, 'test'));\n\t\t$controller->action = $action;\n\n\t\tYii::app()->controller = $controller;\n\t\treturn $controller;\n\t}", "public static function newController($controllerName, $params = [], $request = null) {\n\n\t\t$controller = \"App\\\\Controllers\\\\\".$controllerName;\n\n\t\treturn new $controller($params, $request);\n\n\t}", "private function loadController() : void\n\t{\n\t\t$this->controller = new $this->controllerName($this->request);\n\t}", "public function createController($pi, array $params)\n {\n $class = $pi . '_Controller_' . ucfirst($params['page']);\n\n return new $class();\n }", "public function createController() {\n //check our requested controller's class file exists and require it if so\n \n if (file_exists(\"modules/\" . $this->controllerName . \"/controllers/\" . $this->controllerName .\".php\" ) && $this->controllerName != 'error') {\n require(\"modules/\" . $this->controllerName . \"/controllers/\" . $this->controllerName .\".php\");\n \n } else {\n \n $this->urlValues['controller'] = \"error\";\n require(\"modules/error/controllers/error.php\");\n return new ErrorController(\"badurl\", $this->urlValues);\n }\n\n //does the class exist?\n if (class_exists($this->controllerClass)) {\n $parents = class_parents($this->controllerClass);\n //does the class inherit from the BaseController class?\n if (in_array(\"BaseController\", $parents)) {\n //does the requested class contain the requested action as a method?\n if (method_exists($this->controllerClass, $this->action)) { \n return new $this->controllerClass($this->action, $this->urlValues);\n \n } else {\n //bad action/method error\n $this->urlValues['controller'] = \"error\";\n require(\"modules/error/controllers/error.php\");\n return new ErrorController(\"badview\", $this->urlValues);\n }\n } else {\n $this->urlValues['controller'] = \"error\";\n //bad controller error\n echo \"hjh\";\n require(\"modules/error/controllers/error.php\");\n return new ErrorController(\"b\", $this->urlValues);\n }\n } else {\n \n //bad controller error\n require(\"modules/error/controllers/error.php\");\n return new ErrorController(\"badurl\", $this->urlValues);\n }\n }", "protected static function createController($name) {\n $result = null;\n\n $name = self::$_namespace . ($name ? $name : self::$defaultController) . 'Controller';\n if(class_exists($name)) {\n $controllerClass = new \\ReflectionClass($name);\n if($controllerClass->hasMethod('run')) {\n $result = new $name();\n }\n }\n\n return $result;\n }", "public function createController(): void\n {\n $minimum_buffer_min = 3;\n $token_ok = $this->routerService->ds_token_ok($minimum_buffer_min);\n if ($token_ok) {\n # 2. Call the worker method\n # More data validation would be a good idea here\n # Strip anything other than characters listed\n $results = $this->worker($this->args);\n\n if ($results) {\n # Redirect the user to the NDSE view\n # Don't use an iFrame!\n # State can be stored/recovered using the framework's session or a\n # query parameter on the returnUrl\n header('Location: ' . $results[\"redirect_url\"]);\n exit;\n }\n } else {\n $this->clientService->needToReAuth($this->eg);\n }\n }", "protected function createController($controllerClass)\n {\n $cls = new ReflectionClass($controllerClass);\n return $cls->newInstance($this->environment);\n }", "protected function createController($name)\n {\n $controllerClass = 'controller\\\\'.ucfirst($name).'Controller';\n\n if(!class_exists($controllerClass)) {\n throw new \\Exception('Controller class '.$controllerClass.' not exists!');\n }\n\n return new $controllerClass();\n }", "protected function initController() {\n\t\tif (!isset($_GET['controller'])) {\n\t\t\t$this->initDefaultController();\n\t\t\treturn;\n\t\t}\n\t\t$controllerClass = $_GET['controller'].\"Controller\";\n\t\tif (!class_exists($controllerClass)) {\n\t\t\t//Console::error(@$_GET['controller'].\" doesn't exist\");\n\t\t\t$this->initDefaultController();\n\t\t\treturn;\n\t\t}\n\t\t$this->controller = new $controllerClass();\n\t}", "public function makeTestController(TestController $controller)\r\n\t{\r\n\t}", "static function factory($GET=array(), $POST=array(), $FILES=array()) {\n $type = (isset($GET['type'])) ? $GET['type'] : '';\n $objectController = $type.'_Controller';\n $addLocation = $type.'/'.$objectController.'.php';\n foreach ($_ENV['locations'] as $location) {\n if (is_file($location.$addLocation)) {\n return new $objectController($GET, $POST, $FILES);\n } \n }\n throw new Exception('The controller \"'.$type.'\" does not exist.');\n }", "public function create()\n {\n $general = new ModeloController();\n\n return $general->create();\n }", "public function makeController($controllerNamespace, $controllerName, Log $log, $session, Request $request, Response $response)\r\n\t{\r\n\t\t$fullControllerName = '\\\\Application\\\\Controller\\\\' . (!empty($controllerNamespace) ? $controllerNamespace . '\\\\' : '') . $controllerName;\r\n\t\t$controller = new $fullControllerName();\r\n\t\t$controller->setConfig($this->config);\r\n\t\t$controller->setRequest($request);\r\n\t\t$controller->setResponse($response);\r\n\t\t$controller->setLog($log);\r\n\t\tif (isset($session))\r\n\t\t{\r\n\t\t\t$controller->setSession($session);\r\n\t\t}\r\n\r\n\t\t// Execute additional factory method, if available (exists in \\Application\\Controller\\Factory)\r\n\t\t$method = 'make' . $controllerName;\r\n\t\tif (is_callable(array($this, $method)))\r\n\t\t{\r\n\t\t\t$this->$method($controller);\r\n\t\t}\r\n\r\n\t\t// If the controller has an init() method, call it now\r\n\t\tif (is_callable(array($controller, 'init')))\r\n\t\t{\r\n\t\t\t$controller->init();\r\n\t\t}\r\n\r\n\t\treturn $controller;\r\n\t}", "public static function create()\n\t{\n\t\t//check, if an AccessGroupController instance already exists\n\t\tif(AccessGroupController::$accessGroupController == null)\n\t\t{\n\t\t\tAccessGroupController::$accessGroupController = new AccessGroupController();\n\t\t}\n\n\t\treturn AccessGroupController::$accessGroupController;\n\t}", "public static function buildController()\n\t{\n\t\t$file = CONTROLLER_PATH . 'indexController.class.php';\n\n\t\tif(!file_exists($file))\n\t\t{\n\t\t\tif(\\RCPHP\\Util\\Check::isClient())\n\t\t\t{\n\t\t\t\t$controller = '<?php\nclass indexController extends \\RCPHP\\Controller {\n public function index(){\n echo \"Welcome RcPHP!\\n\";\n }\n}';\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$controller = '<?php\nclass indexController extends \\RCPHP\\Controller {\n public function index(){\n echo \\'<style type=\"text/css\">*{ padding: 0; margin: 0; } div{ padding: 4px 48px;} body{ background: #fff; font-family: \"微软雅黑\"; color: #333;} h1{ font-size: 100px; font-weight: normal; margin-bottom: 12px; } p{ line-height: 1.8em; font-size: 36px }</style><div style=\"padding: 24px 48px;\"> <h1>:)</h1><p>Welcome <b>RcPHP</b>!</p></div>\\';\n }\n}';\n\t\t\t}\n\t\t\tfile_put_contents($file, $controller);\n\t\t}\n\t}", "public function getController( );", "public static function getInstance() : Controller {\n if ( null === self::$instance ) {\n self::$instance = new self();\n self::$instance->options = new Options(\n self::OPTIONS_KEY\n );\n }\n\n return self::$instance;\n }", "static function appCreateController($entityName, $prefijo = '') {\n\n $controller = ControllerBuilder::getController($entityName, $prefijo);\n $entityFile = ucfirst(str_replace($prefijo, \"\", $entityName));\n $fileController = \"../../modules/{$entityFile}/{$entityFile}Controller.class.php\";\n\n $result = array();\n $ok = self::createArchive($fileController, $controller);\n ($ok) ? array_push($result, \"Ok, {$fileController} created\") : array_push($result, \"ERROR creating {$fileController}\");\n\n return $result;\n }", "public static function newInstance($path = \\simpleChat\\Utility\\ROOT_PATH)\n {\n $request = new Request();\n \n \n if ($request->isAjax())\n {\n return new AjaxController();\n }\n else if ($request->jsCode())\n {\n return new JsController();\n }\n else\n {\n return new StandardController($path);\n }\n }", "private function createInstance()\n {\n $objectManager = new \\Magento\\Framework\\TestFramework\\Unit\\Helper\\ObjectManager($this);\n $this->controller = $objectManager->getObject(\n \\Magento\\NegotiableQuote\\Controller\\Adminhtml\\Quote\\RemoveFailedSku::class,\n [\n 'context' => $this->context,\n 'logger' => $this->logger,\n 'messageManager' => $this->messageManager,\n 'cart' => $this->cart,\n 'resultRawFactory' => $this->resultRawFactory\n ]\n );\n }", "function loadController(){\n $name = ucfirst($this->request->controller).'Controller' ;\n $file = ROOT.DS.'Controller'.DS.$name.'.php' ;\n /*if(!file_exists($file)){\n $this->error(\"Le controleur \".$this->request->controller.\" n'existe pas\") ;\n }*/\n require_once $file;\n $controller = new $name($this->request);\n return $controller ;\n }", "public function __construct(){\r\n $app = Application::getInstance();\r\n $this->_controller = $app->getController();\r\n }", "public static function & instance()\n {\n if (self::$instance === null) {\n Benchmark::start(SYSTEM_BENCHMARK.'_controller_setup');\n\n // Include the Controller file\n require Router::$controller_path;\n\n try {\n // Start validation of the controller\n $class = new ReflectionClass(ucfirst(Router::$controller).'_Controller');\n } catch (ReflectionException $e) {\n // Controller does not exist\n Event::run('system.404');\n }\n\n if ($class->isAbstract() or (IN_PRODUCTION and $class->getConstant('ALLOW_PRODUCTION') == false)) {\n // Controller is not allowed to run in production\n Event::run('system.404');\n }\n\n // Run system.pre_controller\n Event::run('system.pre_controller');\n\n // Create a new controller instance\n $controller = $class->newInstance();\n\n // Controller constructor has been executed\n Event::run('system.post_controller_constructor');\n\n try {\n // Load the controller method\n $method = $class->getMethod(Router::$method);\n\n // Method exists\n if (Router::$method[0] === '_') {\n // Do not allow access to hidden methods\n Event::run('system.404');\n }\n\n if ($method->isProtected() or $method->isPrivate()) {\n // Do not attempt to invoke protected methods\n throw new ReflectionException('protected controller method');\n }\n\n // Default arguments\n $arguments = Router::$arguments;\n } catch (ReflectionException $e) {\n // Use __call instead\n $method = $class->getMethod('__call');\n\n // Use arguments in __call format\n $arguments = array(Router::$method, Router::$arguments);\n }\n\n // Stop the controller setup benchmark\n Benchmark::stop(SYSTEM_BENCHMARK.'_controller_setup');\n\n // Start the controller execution benchmark\n Benchmark::start(SYSTEM_BENCHMARK.'_controller_execution');\n\n // Execute the controller method\n $method->invokeArgs($controller, $arguments);\n\n // Controller method has been executed\n Event::run('system.post_controller');\n\n // Stop the controller execution benchmark\n Benchmark::stop(SYSTEM_BENCHMARK.'_controller_execution');\n }\n\n return self::$instance;\n }", "protected function instantiateController($class)\n {\n $controller = new $class();\n\n if ($controller instanceof Controller) {\n $controller->setContainer($this->container);\n }\n\n return $controller;\n }", "public function __construct (){\n $this->AdminController = new AdminController();\n $this->ArticleController = new ArticleController();\n $this->AuditoriaController = new AuditoriaController();\n $this->CommentController = new CommentController();\n $this->CourseController = new CourseController();\n $this->InscriptionsController = new InscriptionsController();\n $this->ModuleController = new ModuleController();\n $this->PlanController = new PlanController();\n $this->ProfileController = new ProfileController();\n $this->SpecialtyController = new SpecialtyController();\n $this->SubscriptionController = new SubscriptionController();\n $this->TeacherController = new TeacherController();\n $this->UserController = new UserController();\n $this->WebinarController = new WebinarController();\n }", "protected function makeController($prefix)\n {\n new MakeController($this, $this->files, $prefix);\n }", "public function createController($route)\n {\n $controller = parent::createController('gymv/' . $route);\n return $controller === false\n ? parent::createController($route)\n : $controller;\n }", "public static function createFrontController()\n {\n return self::createInjectorWithBindings(self::extractArgs(func_get_args()))\n ->getInstance('net::stubbles::websites::stubFrontController');\n }", "public static function controller($name)\n {\n $name = ucfirst(strtolower($name));\n \n $directory = 'controller';\n $filename = $name;\n $tracker = 'controller';\n $init = (boolean) $init;\n $namespace = 'controller';\n $class_name = $name;\n \n return self::_load($directory, $filename, $tracker, $init, $namespace, $class_name);\n }", "protected static function instantiateMockController()\n {\n /** @var Event $oEvent */\n $oEvent = Factory::service('Event');\n\n if (!$oEvent->hasBeenTriggered(Events::SYSTEM_STARTING)) {\n\n require_once BASEPATH . 'core/Controller.php';\n\n load_class('Output', 'core');\n load_class('Security', 'core');\n load_class('Input', 'core');\n load_class('Lang', 'core');\n\n new NailsMockController();\n }\n }", "private static function controller()\n {\n $files = ['Controller'];\n $folder = static::$root.'MVC'.'/';\n\n self::call($files, $folder);\n }", "public function createController()\n\t{\n\t\t$originalFile = app_path('Http/Controllers/Reports/SampleReport.php');\n\t\t$newFile = dirname($originalFile) . DIRECTORY_SEPARATOR . $this->class . $this->sufix . '.php';\n\n\t\t// Read original file\n\t\tif( ! $content = file_get_contents($originalFile))\n\t\t\treturn false;\n\n\t\t// Replace class name\n\t\t$content = str_replace('SampleReport', $this->class . $this->sufix, $content);\n\n\t\t// Write new file\n\t\treturn (bool) file_put_contents($newFile, $content);\n\t}", "public function runController() {\n // Check for a router\n if (is_null($this->getRouter())) {\n \t // Set the method to load\n \t $sController = ucwords(\"{$this->getController()}Controller\");\n } else {\n\n // Set the controller with the router\n $sController = ucwords(\"{$this->getController()}\".ucfirst($this->getRouter()).\"Controller\");\n }\n \t// Check for class\n \tif (class_exists($sController, true)) {\n \t\t// Set a new instance of Page\n \t\t$this->setPage(new Page());\n \t\t// The class exists, load it\n \t\t$oController = new $sController();\n\t\t\t\t// Now check for the proper method \n\t\t\t\t// inside of the controller class\n\t\t\t\tif (method_exists($oController, $this->loadConfigVar('systemSettings', 'controllerLoadMethod'))) {\n\t\t\t\t\t// We have a valid controller, \n\t\t\t\t\t// execute the initializer\n\t\t\t\t\t$oController->init($this);\n\t\t\t\t\t// Set the variable scope\n\t \t\t$this->setViewScope($oController);\n\t \t\t// Render the layout\n\t \t\t$this->renderLayout();\n\t\t\t\t} else {\n\t\t\t\t\t// The initializer does not exist, \n\t\t\t\t\t// which means an invalid controller, \n\t\t\t\t\t// so now we let the caller know\n\t\t\t\t\t$this->setError($this->loadConfigVar('errorMessages', 'invalidController'));\n\t\t\t\t\t// Run the error\n\t\t\t\t\t// $this->runError();\n\t\t\t\t}\n \t// The class does not exist\n \t} else {\n\t\t\t\t// Set the system error\n\t \t\t$this->setError(\n\t\t\t\t\tstr_replace(\n\t\t\t\t\t\t':controllerName', \n\t\t\t\t\t\t$sController, \n\t\t\t\t\t\t$this->loadConfigVar(\n\t\t\t\t\t\t\t'errorMessages', \n\t\t\t\t\t\t\t'controllerDoesNotExist'\n\t\t\t\t\t\t)\n\t\t\t\t\t)\n\t\t\t\t);\n \t\t// Run the error\n\t\t\t\t// $this->runError();\n \t}\n \t// Return instance\n \treturn $this;\n }", "public function controller()\n\t{\n\t\n\t}", "protected function buildController()\n {\n $columns = collect($this->columns)->pluck('column')->implode('|');\n\n $permissions = [\n 'create:'.$this->module->createPermission->name,\n 'edit:'.$this->module->editPermission->name,\n 'delete:'.$this->module->deletePermission->name,\n ];\n\n $this->controller = [\n 'name' => $this->class,\n '--model' => $this->class,\n '--request' => $this->class.'Request',\n '--permissions' => implode('|', $permissions),\n '--view-folder' => snake_case($this->module->name),\n '--fields' => $columns,\n '--module' => $this->module->id,\n ];\n }", "function getController(){\n\treturn getFactory()->getBean( 'Controller' );\n}", "protected function getController()\n {\n $uri = WingedLib::clearPath(static::$parentUri);\n if (!$uri) {\n $uri = './';\n $explodedUri = ['index', 'index'];\n } else {\n $explodedUri = explode('/', $uri);\n if (count($explodedUri) == 1) {\n $uri = './' . $explodedUri[0] . '/';\n } else {\n $uri = './' . $explodedUri[0] . '/' . $explodedUri[1] . '/';\n }\n }\n\n $indexUri = WingedLib::clearPath(\\WingedConfig::$config->INDEX_ALIAS_URI);\n if ($indexUri) {\n $indexUri = explode('/', $indexUri);\n }\n\n if ($indexUri) {\n if ($explodedUri[0] === 'index' && isset($indexUri[0])) {\n static::$controllerName = Formater::camelCaseClass($indexUri[0]) . 'Controller';\n $uri = './' . $indexUri[0] . '/';\n }\n if (isset($explodedUri[1]) && isset($indexUri[1])) {\n if ($explodedUri[1] === 'index') {\n static::$controllerAction = 'action' . Formater::camelCaseMethod($indexUri[1]);\n $uri .= $indexUri[1] . '/';\n }\n } else {\n $uri .= 'index/';\n }\n }\n\n $controllerDirectory = new Directory(static::$parent . 'controllers/', false);\n if ($controllerDirectory->exists()) {\n $controllerFile = new File($controllerDirectory->folder . static::$controllerName . '.php', false);\n if ($controllerFile->exists()) {\n include_once $controllerFile->file_path;\n if (class_exists(static::$controllerName)) {\n $controller = new static::$controllerName();\n if (method_exists($controller, static::$controllerAction)) {\n try {\n $reflectionMethod = new \\ReflectionMethod(static::$controllerName, static::$controllerAction);\n $pararms = [];\n foreach ($reflectionMethod->getParameters() as $parameter) {\n $pararms[$parameter->getName()] = $parameter->isOptional();\n }\n } catch (\\Exception $exception) {\n $pararms = [];\n }\n return [\n 'uri' => $uri,\n 'params' => $pararms,\n ];\n }\n }\n }\n }\n return false;\n }", "public function __construct()\n {\n $this->controller = new DHTController();\n }", "public function createController($controllers) {\n\t\tforeach($controllers as $module=>$controllers) {\n\t\t\tforeach($controllers as $key=>$controller) {\n\t\t\t\tif(!file_exists(APPLICATION_PATH.\"/modules/$module/controllers/\".ucfirst($controller).\"Controller.php\")) {\n\t\t\t\t\tMy_Class_Maerdo_Console::display(\"3\",\"Create '\".ucfirst($controller).\"' controller in $module\");\t\t\t\t\n\t\t\t\t\texec(\"zf create controller $controller index-action-included=0 $module\");\t\t\t\t\t\n\t\t\t\t}\telse {\n\t\t\t\t\tMy_Class_Maerdo_Console::display(\"3\",ucfirst($controller).\"' controller in $module already exists\");\t\n\t\t\t\t}\n\t\t\t}\t\n\t\t}\n\t}", "protected function instantiateController($class)\n {\n return new $class($this->routesMaker);\n }", "private function createController($table){\n\n // Filtering file name\n $fileName = $this::cleanToName($table[\"name\"]) . 'Controller.php';\n\n // Prepare the Class scheme inside the controller\n $contents = '<?php '.$fileName.' ?>';\n\n\n // Return a boolean to process completed\n return Storage::disk('controllers')->put($this->appNamePath.'/'.$fileName, $contents);\n\n }", "public function GetController()\n\t{\n\t\t$params = $this->QueryVarArrayToParameterArray($_GET);\n\t\tif (!empty($_POST)) {\n\t\t\t$params = array_merge($params, $this->QueryVarArrayToParameterArray($_POST));\n\t\t}\n\n\t\tif (!empty($_GET['q'])) {\n\t\t\t$restparams = GitPHP_Router::ReadCleanUrl($_SERVER['REQUEST_URI']);\n\t\t\tif (count($restparams) > 0)\n\t\t\t\t$params = array_merge($params, $restparams);\n\t\t}\n\n\t\t$controller = null;\n\n\t\t$action = null;\n\t\tif (!empty($params['action']))\n\t\t\t$action = $params['action'];\n\n\t\tswitch ($action) {\n\n\n\t\t\tcase 'search':\n\t\t\t\t$controller = new GitPHP_Controller_Search();\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'commitdiff':\n\t\t\tcase 'commitdiff_plain':\n\t\t\t\t$controller = new GitPHP_Controller_Commitdiff();\n\t\t\t\tif ($action === 'commitdiff_plain')\n\t\t\t\t\t$controller->SetParam('output', 'plain');\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'blobdiff':\n\t\t\tcase 'blobdiff_plain':\n\t\t\t\t$controller = new GitPHP_Controller_Blobdiff();\n\t\t\t\tif ($action === 'blobdiff_plain')\n\t\t\t\t\t$controller->SetParam('output', 'plain');\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'history':\n\t\t\t\t$controller = new GitPHP_Controller_History();\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'shortlog':\n\t\t\tcase 'log':\n\t\t\t\t$controller = new GitPHP_Controller_Log();\n\t\t\t\tif ($action === 'shortlog')\n\t\t\t\t\t$controller->SetParam('short', true);\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'snapshot':\n\t\t\t\t$controller = new GitPHP_Controller_Snapshot();\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'tree':\n\t\t\tcase 'trees':\n\t\t\t\t$controller = new GitPHP_Controller_Tree();\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'tags':\n\t\t\t\tif (empty($params['tag'])) {\n\t\t\t\t\t$controller = new GitPHP_Controller_Tags();\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\tcase 'tag':\n\t\t\t\t$controller = new GitPHP_Controller_Tag();\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'heads':\n\t\t\t\t$controller = new GitPHP_Controller_Heads();\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'blame':\n\t\t\t\t$controller = new GitPHP_Controller_Blame();\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'blob':\n\t\t\tcase 'blobs':\n\t\t\tcase 'blob_plain':\t\n\t\t\t\t$controller = new GitPHP_Controller_Blob();\n\t\t\t\tif ($action === 'blob_plain')\n\t\t\t\t\t$controller->SetParam('output', 'plain');\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'atom':\n\t\t\tcase 'rss':\n\t\t\t\t$controller = new GitPHP_Controller_Feed();\n\t\t\t\tif ($action == 'rss')\n\t\t\t\t\t$controller->SetParam('format', GitPHP_Controller_Feed::RssFormat);\n\t\t\t\telse if ($action == 'atom')\n\t\t\t\t\t$controller->SetParam('format', GitPHP_Controller_Feed::AtomFormat);\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'commit':\n\t\t\tcase 'commits':\n\t\t\t\t$controller = new GitPHP_Controller_Commit();\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'summary':\n\t\t\t\t$controller = new GitPHP_Controller_Project();\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'project_index':\n\t\t\tcase 'projectindex':\n\t\t\t\t$controller = new GitPHP_Controller_ProjectList();\n\t\t\t\t$controller->SetParam('txt', true);\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'opml':\n\t\t\t\t$controller = new GitPHP_Controller_ProjectList();\n\t\t\t\t$controller->SetParam('opml', true);\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'login':\n\t\t\t\t$controller = new GitPHP_Controller_Login();\n\t\t\t\tif (!empty($_POST['username']))\n\t\t\t\t\t$controller->SetParam('username', $_POST['username']);\n\t\t\t\tif (!empty($_POST['password']))\n\t\t\t\t\t$controller->SetParam('password', $_POST['password']);\n\t\t\t\tbreak;\n\n\t\t\tcase 'logout':\n\t\t\t\t$controller = new GitPHP_Controller_Logout();\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'graph':\n\t\t\tcase 'graphs':\n\t\t\t\t//$controller = new GitPHP_Controller_Graph();\n\t\t\t\t//break;\n\t\t\tcase 'graphdata':\n\t\t\t\t//$controller = new GitPHP_Controller_GraphData();\n\t\t\t\t//break;\n\t\t\tdefault:\n\t\t\t\tif (!empty($params['project'])) {\n\t\t\t\t\t$controller = new GitPHP_Controller_Project();\n\t\t\t\t} else {\n\t\t\t\t\t$controller = new GitPHP_Controller_ProjectList();\n\t\t\t\t}\n\t\t}\n\n\t\tforeach ($params as $paramname => $paramval) {\n\t\t\tif ($paramname !== 'action')\n\t\t\t\t$controller->SetParam($paramname, $paramval);\n\t\t}\n\n\t\t$controller->SetRouter($this);\n\n\t\treturn $controller;\n\t}", "public function testCreateTheControllerClass()\n {\n $controller = new Game21Controller();\n $this->assertInstanceOf(\"\\App\\Http\\Controllers\\Game21Controller\", $controller);\n }", "public static function createController( MShop_Context_Item_Interface $context, $name = null );", "public function __construct()\n {\n\n $url = $this->splitURL();\n // echo $url[0];\n\n // check class file exists\n if (file_exists(\"../app/controllers/\" . strtolower($url[0]) . \".php\")) {\n $this->controller = strtolower($url[0]);\n unset($url[0]);\n }\n\n // echo $this->controller;\n\n require \"../app/controllers/\" . $this->controller . \".php\";\n\n // create Instance(object)\n $this->controller = new $this->controller(); // $this->controller is an object from now on\n if (isset($url[1])) {\n if (method_exists($this->controller, $url[1])) {\n $this->method = $url[1];\n unset($url[1]);\n }\n }\n\n // run the class and method\n $this->params = array_values($url); // array_values 값들인 인자 0 부터 다시 배치\n call_user_func_array([$this->controller, $this->method], $this->params);\n }", "public function getController();", "public function getController();", "public function getController();", "public function createController($pageType, $template)\n {\n $controller = null;\n\n // Use factories first\n if (isset($this->controllerFactories[$pageType])) {\n $callable = $this->controllerFactories[$pageType];\n $controller = $callable($this, 'templates/'.$template);\n\n if ($controller) {\n return $controller;\n }\n }\n\n // See if a default controller exists in the theme namespace\n $class = null;\n if ($pageType == 'posts') {\n $class = $this->namespace.'\\\\Controllers\\\\PostsController';\n } elseif ($pageType == 'post') {\n $class = $this->namespace.'\\\\Controllers\\\\PostController';\n } elseif ($pageType == 'page') {\n $class = $this->namespace.'\\\\Controllers\\\\PageController';\n } elseif ($pageType == 'term') {\n $class = $this->namespace.'\\\\Controllers\\\\TermController';\n }\n\n if (class_exists($class)) {\n $controller = new $class($this, 'templates/'.$template);\n\n return $controller;\n }\n\n // Create a default controller from the stem namespace\n if ($pageType == 'posts') {\n $controller = new PostsController($this, 'templates/'.$template);\n } elseif ($pageType == 'post') {\n $controller = new PostController($this, 'templates/'.$template);\n } elseif ($pageType == 'page') {\n $controller = new PageController($this, 'templates/'.$template);\n } elseif ($pageType == 'search') {\n $controller = new SearchController($this, 'templates/'.$template);\n } elseif ($pageType == 'term') {\n $controller = new TermController($this, 'templates/'.$template);\n }\n\n return $controller;\n }", "private function loadController($controller)\r\n {\r\n $className = $controller.'Controller';\r\n \r\n $class = new $className($this);\r\n \r\n $class->init();\r\n \r\n return $class;\r\n }", "public static function newInstance ($class)\n {\n try\n {\n // the class exists\n $object = new $class();\n\n if (!($object instanceof sfController))\n {\n // the class name is of the wrong type\n $error = 'Class \"%s\" is not of the type sfController';\n $error = sprintf($error, $class);\n\n throw new sfFactoryException($error);\n }\n\n return $object;\n }\n catch (sfException $e)\n {\n $e->printStackTrace();\n }\n }", "public function create()\n {\n //TODO frontEndDeveloper \n //load admin.classes.create view\n\n\n return view('admin.classes.create');\n }", "private function generateControllerClass()\n {\n $dir = $this->bundle->getPath();\n\n $parts = explode('\\\\', $this->entity);\n $entityClass = array_pop($parts);\n $entityNamespace = implode('\\\\', $parts);\n\n $target = sprintf(\n '%s/Controller/%s/%sController.php',\n $dir,\n str_replace('\\\\', '/', $entityNamespace),\n $entityClass\n );\n\n if (file_exists($target)) {\n throw new \\RuntimeException('Unable to generate the controller as it already exists.');\n }\n\n $this->renderFile($this->skeletonDir, 'controller.php', $target, array(\n 'actions' => $this->actions,\n 'route_prefix' => $this->routePrefix,\n 'route_name_prefix' => $this->routeNamePrefix,\n 'dir' => $this->skeletonDir,\n 'bundle' => $this->bundle->getName(),\n 'entity' => $this->entity,\n 'entity_class' => $entityClass,\n 'namespace' => $this->bundle->getNamespace(),\n 'entity_namespace' => $entityNamespace,\n 'format' => $this->format,\n ));\n }", "static public function Instance()\t\t// Static so we use classname itself to create object i.e. Controller::Instance()\r\n {\r\n // Only one object of this class is required\r\n // so we only create if it hasn't already\r\n // been created.\r\n if(!isset(self::$_instance))\r\n {\r\n self::$_instance = new self();\t// Make new instance of the Controler class\r\n self::$_instance->_commandResolver = new CommandResolver();\r\n\r\n ApplicationController::LoadViewMap();\r\n }\r\n return self::$_instance;\r\n }", "private function create_mock_controller() {\n eval('class TestController extends cyclone\\request\\SkeletonController {\n function before() {\n DispatcherTest::$beforeCalled = TRUE;\n DispatcherTest::$route = $this->_request->route;\n }\n\n function after() {\n DispatcherTest::$afterCalled = TRUE;\n }\n\n function action_act() {\n DispatcherTest::$actionCalled = TRUE;\n }\n}');\n }", "public function AController() {\r\n\t}", "protected function initializeController() {}", "public function dispatch()\n { \n $controller = $this->formatController();\n $controller = new $controller($this);\n if (!$controller instanceof ControllerAbstract) {\n throw new Exception(\n 'Class ' . get_class($controller) . ' is not a valid controller instance. Controller classes must '\n . 'derive from \\Europa\\ControllerAbstract.'\n );\n }\n $controller->action();\n return $controller;\n }", "public function controller()\n {\n $method = $_SERVER['REQUEST_METHOD'];\n if ($method == 'GET') {\n $this->getController();\n };\n if ($method == 'POST') {\n check_csrf();\n $this->createController();\n };\n }", "private function addController($controller)\n {\n $object = new $controller($this->app);\n $this->controllers[$controller] = $object;\n }", "function Controller($ControllerName = Web\\Application\\DefaultController) {\n return Application()->Controller($ControllerName);\n }", "public function getController($controllerName) {\r\n\t\tif(!isset(self::$instances[$controllerName])) {\r\n\t\t $package = $this->getPackage(Nomenclature::getVendorAndPackage($controllerName));\r\n\t\t if(!$package) {\r\n\t\t $controller = new $controllerName();\r\n\t\t $controller->setContext($this->getContext());\r\n\t\t return $controller;\r\n\t\t //return false;\r\n\t\t }\r\n\r\n\t\t if(!$package || !$package->controllerExists($controllerName)) {\r\n\t\t $controller = new $controllerName();\r\n\t\t $controller->setContext($this->getContext());\r\n\t\t $package->addController($controller);\r\n\t\t } else {\r\n\t\t $controller = $package->getController($controllerName);\r\n\t\t }\r\n\t\t} else {\r\n\t\t $controller = self::$instances[$controllerName];\r\n\t\t}\r\n\t\treturn $controller;\r\n\t}", "public function testInstantiateSessionController()\n {\n $controller = new SessionController();\n\n $this->assertInstanceOf(\"App\\Http\\Controllers\\SessionController\", $controller);\n }", "private static function loadController($str) {\n\t\t$str = self::formatAsController($str);\n\t\t$app_controller = file_exists(APP_DIR.'/Mvc/Controller/'.$str.'.php');\n\t\t$lib_controller = file_exists(LIB_DIR.'/Mvc/Controller/'.$str.'.php');\n\t\t\n\t\tif ( $app_controller || $lib_controller ) {\n\t\t\tif ($app_controller) {\n\t\t\t\trequire_once(APP_DIR.'/Mvc/Controller/'.$str.'.php');\n\t\t\t}\n\t\t\telse {\n\t\t\t\trequire_once(LIB_DIR.'/Mvc/Controller/'.$str.'.php');\n\t\t\t}\n\t\n\t\t\t$controller = new $str();\n\t\t\t\n\t\t\tif (!$controller instanceof Controller) {\n\t\t\t\tthrow new IsNotControllerException();\n\t\t\t}\n\t\t\telse {\n\t\t\t\treturn $controller;\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tthrow new ControllerNotExistsException($str);\n\t\t}\n\t}", "public function __construct()\n {\n // and $url[1] is a controller method\n if ($_GET['url'] == NULL) {\n $url = explode('/', env('defaultRoute'));\n } else {\n $url = explode('/', rtrim($_GET['url'],'/'));\n }\n\n $file = 'controllers/' . $url[0] . '.php';\n if (file_exists($file)) {\n require $file;\n $controller = new $url[0];\n\n if (isset($url[1])) {\n $controller->{$url[1]}();\n }\n } else {\n echo \"404 not found\";\n }\n }", "protected function _controllers()\n {\n $this['watchController'] = $this->factory(static function ($c) {\n return new Controller\\WatchController($c['app'], $c['searcher']);\n });\n\n $this['runController'] = $this->factory(static function ($c) {\n return new Controller\\RunController($c['app'], $c['searcher']);\n });\n\n $this['customController'] = $this->factory(static function ($c) {\n return new Controller\\CustomController($c['app'], $c['searcher']);\n });\n\n $this['waterfallController'] = $this->factory(static function ($c) {\n return new Controller\\WaterfallController($c['app'], $c['searcher']);\n });\n\n $this['importController'] = $this->factory(static function ($c) {\n return new Controller\\ImportController($c['app'], $c['saver'], $c['config']['upload.token']);\n });\n\n $this['metricsController'] = $this->factory(static function ($c) {\n return new Controller\\MetricsController($c['app'], $c['searcher']);\n });\n }", "public function __construct() {\r\n $this->controllerLogin = new ControllerLogin();\r\n $this->controllerGame = new ControllerGame();\r\n $this->controllerRegister = new ControllerRegister();\r\n }", "public function controller ($post = array())\n\t{\n\n\t\t$name = $post['controller_name'];\n\n\t\tif (is_file(APPPATH.'controllers/'.$name.'.php')) {\n\n\t\t\t$message = sprintf(lang('Controller_s_is_existed'), APPPATH.'controllers/'.$name.'.php');\n\n\t\t\t$this->msg[] = $message;\n\n\t\t\treturn $this->result(false, $this->msg[0]);\n\n\t\t}\n\n\t\t$extends = null;\n\n\t\tif (isset($post['crud'])) {\n\n\t\t\t$crud = true;\n\t\t\t\n\t\t}\n\t\telse{\n\n\t\t\t$crud = false;\n\n\t\t}\n\n\t\t$file = $this->_create_folders_from_name($name, 'controllers');\n\n\t\t$data = '';\n\n\t\t$data .= $this->_class_open($file['file'], __METHOD__, $extends);\n\n\t\t$crud === FALSE || $data .= $this->_crud_methods_contraller($post);\n\n\t\t$data .= $this->_class_close();\n\n\t\t$path = APPPATH . 'controllers/' . $file['path'] . strtolower($file['file']) . '.php';\n\n\t\twrite_file($path, $data);\n\n\t\t$this->msg[] = sprintf(lang('Created_controller_s'), $path);\n\n\t\t//echo $this->_messages();\n\t\treturn $this->result(true, $this->msg[0]);\n\n\t}", "protected function getController(Request $request) {\n try {\n $controller = $this->objectFactory->create($request->getControllerName(), self::INTERFACE_CONTROLLER);\n } catch (ZiboException $exception) {\n throw new ZiboException('Could not create controller ' . $request->getControllerName(), 0, $exception);\n }\n\n return $controller;\n }", "public function create() {}", "public function __construct()\n {\n $this->dataController = new DataController;\n }", "function __contrruct(){ //construdor do controller, nele é possivel carregar as librari, helpers, models que serão utilizados nesse controller\n\t\tparent::__contrruct();//Chamando o construtor da classe pai\n\t}", "public function __construct() {\n\n // Get the URL elements.\n $url = $this->_parseUrl();\n\n // Checks if the first URL element is set / not empty, and replaces the\n // default controller class string if the given class exists.\n if (isset($url[0]) and ! empty($url[0])) {\n $controllerClass = CONTROLLER_PATH . ucfirst(strtolower($url[0]));\n unset($url[0]);\n if (class_exists($controllerClass)) {\n $this->_controllerClass = $controllerClass;\n }\n }\n\n // Replace the controller class string with a new instance of the it.\n $this->_controllerClass = new $this->_controllerClass;\n\n // Checks if the second URL element is set / not empty, and replaces the\n // default controller action string if the given action is a valid class\n // method.\n if (isset($url[1]) and ! empty($url[1])) {\n if (method_exists($this->_controllerClass, $url[1])) {\n $this->_controllerAction = $url[1];\n unset($url[1]);\n }\n }\n\n // Check if the URL has any remaining elements, setting the controller\n // parameters as a rebase of it if true or an empty array if false.\n $this->_controllerParams = $url ? array_values($url) : [];\n\n // Call the controller and action with parameters.\n call_user_func_array([$this->_controllerClass, $this->_controllerAction], $this->_controllerParams);\n }", "private function setUpController()\n {\n $this->controller = new TestObject(new SharedControllerTestController);\n\n $this->controller->dbal = DBAL::getDBAL('testDB', $this->getDBH());\n }", "public function create() {\n $class_name = $this->getOption('className');\n return new $class_name();\n }" ]
[ "0.82668066", "0.8173394", "0.78115296", "0.77052677", "0.7681875", "0.7659338", "0.74860525", "0.74064577", "0.7297601", "0.7252339", "0.7195181", "0.7174191", "0.70150065", "0.6989306", "0.69835985", "0.69732994", "0.6963521", "0.6935819", "0.68973273", "0.68920785", "0.6877748", "0.68702674", "0.68622285", "0.6839049", "0.6779292", "0.6703522", "0.66688496", "0.66600126", "0.6650373", "0.66436416", "0.6615505", "0.66144013", "0.6588728", "0.64483404", "0.64439476", "0.6429303", "0.6426485", "0.6303757", "0.6298291", "0.6293319", "0.62811387", "0.6258778", "0.62542456", "0.616827", "0.6162314", "0.61610043", "0.6139887", "0.613725", "0.61334985", "0.6132223", "0.6128982", "0.61092585", "0.6094611", "0.60889256", "0.6074893", "0.60660255", "0.6059098", "0.60565156", "0.6044235", "0.60288006", "0.6024102", "0.60225666", "0.6018304", "0.60134345", "0.60124683", "0.6010913", "0.6009284", "0.6001683", "0.5997471", "0.5997012", "0.59942573", "0.5985074", "0.5985074", "0.5985074", "0.5967613", "0.5952533", "0.5949068", "0.5942203", "0.5925731", "0.5914304", "0.5914013", "0.59119135", "0.5910308", "0.5910285", "0.59013796", "0.59003943", "0.5897524", "0.58964556", "0.58952993", "0.58918965", "0.5888943", "0.5875413", "0.5869938", "0.58627135", "0.58594996", "0.5853714", "0.5839484", "0.5832913", "0.582425", "0.58161044", "0.5815566" ]
0.0
-1
Show the application dashboard.
public function index() { $sales = Sale::all(); $totalAmount = $sales->sum('amount'); $currentVolumeSold = $sales->last()->volume_after_sales; $lastFive = $sales->take(-5); $totalVolumeSold = $sales->where('created_at', '>=',date('Y-m-d').' 00:00:00') ->sum('volume_sold'); $data['totalAmount'] = $totalAmount; $data['currentVolumeSold'] = $currentVolumeSold; // $data['lastFive'] = $lastFive; $data['totalVolumeSold'] = $totalVolumeSold; return view('home', [ 'data' => $data, 'sales' => $lastFive ]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function dashboard()\n {\n\n $pageData = (new DashboardService())->handleDashboardLandingPage();\n\n return view('application', $pageData);\n }", "function dashboard() {\r\n\t\t\tTrackTheBookView::render('dashboard');\r\n\t\t}", "public function showDashboard() { \n\t\n return View('admin.dashboard');\n\t\t\t\n }", "public function showDashboard()\n {\n return View::make('users.dashboard', [\n 'user' => Sentry::getUser(),\n ]);\n }", "public function dashboard()\n {\n return view('backend.dashboard.index');\n }", "public function index() {\n return view(\"admin.dashboard\");\n }", "public function dashboard()\n {\n return $this->renderContent(\n view('dashboard'),\n trans('sleeping_owl::lang.dashboard')\n );\n }", "public function dashboard(){\n return view('backend.admin.index');\n }", "public function showDashBoard()\n {\n \treturn view('Admins.AdminDashBoard');\n }", "public function dashboard()\n {\n return view('dashboard.index');\n }", "public function index()\n {\n return view('admin.dashboard', ['title' => 'Dashboard']);\n }", "public function dashboard() \r\n {\r\n return view('admin.index');\r\n }", "public function dashboard()\n\t{\n\t\t$page_title = 'organizer dashboard';\n\t\treturn View::make('organizer.dashboard',compact('page_title'));\n\t}", "public function dashboard()\n {\n\t\t$traffic = TrafficService::getTraffic();\n\t\t$devices = TrafficService::getDevices();\n\t\t$browsers = TrafficService::getBrowsers();\n\t\t$status = OrderService::getStatus();\n\t\t$orders = OrderService::getOrder();\n\t\t$users = UserService::getTotal();\n\t\t$products = ProductService::getProducts();\n\t\t$views = ProductService::getViewed();\n\t\t$total_view = ProductService::getTotalView();\n\t\t$cashbook = CashbookService::getAccount();\n $stock = StockService::getStock();\n\n return view('backend.dashboard', compact('traffic', 'devices', 'browsers', 'status', 'orders', 'users', 'products', 'views', 'total_view', 'cashbook', 'stock'));\n }", "public function dashboard()\n {\n\n return view('admin.dashboard');\n }", "public function dashboard()\n {\n return view('dashboard');\n }", "public function dashboard()\n {\n return view('dashboard');\n }", "public function dashboard()\n {\n return view('dashboard');\n }", "public function dashboard()\n {\n return view('dashboard');\n }", "public function index()\n {\n return view('admin.dashboard');\n }", "public function index()\n {\n return view('admin.dashboard');\n }", "public function index()\n {\n return view('admin.dashboard');\n }", "public function index()\n {\n return view('admin.dashboard');\n }", "public function index()\n {\n return view('admin.dashboard');\n }", "public function index()\n {\n return view('adm.dashboard');\n }", "public function dashboard()\n {\n $users = \\App\\User::all()->count();\n $roles = \\Spatie\\Permission\\Models\\Role::all()->count();\n $permissions = \\Spatie\\Permission\\Models\\Permission::all()->count();\n $banner = \\App\\Banner::all();\n $categoria = \\App\\Categoria::all();\n $entidadOrganizativa = \\App\\Entidadorganizativa::all();\n $evento = \\App\\Evento::all();\n $fichero = \\App\\Fichero::all();\n $recurso = \\App\\Recurso::all();\n $redsocial = \\App\\Redsocial::all();\n $subcategoria = \\App\\Subcategoria::all();\n $tag = \\App\\Tag::all();\n\n $entities = \\Amranidev\\ScaffoldInterface\\Models\\Scaffoldinterface::all();\n\n return view('scaffold-interface.dashboard.dashboard',\n compact('users', 'roles', 'permissions', 'entities',\n 'banner', 'categoria', 'entidadOrganizativa',\n 'evento', 'fichero', 'recurso', 'redsocial', 'subcategoria', 'tag')\n );\n }", "public function show()\n {\n return view('dashboard');\n }", "public function index()\n\t{\n\t\treturn View::make('dashboard');\n\t}", "public function index() {\n return view('modules.home.dashboard');\n }", "public function show()\n {\n return view('dashboard.dashboard');\n \n }", "public function index()\n {\n return view('admin.dashboard.dashboard');\n\n }", "public function dashboard()\n { \n return view('jobposter.dashboard');\n }", "public function show()\n\t{\n\t\t//\n\t\t$apps = \\App\\application::all();\n\t\treturn view('applications.view', compact('apps'));\n\t}", "public function index()\n {\n return view('pages.admin.dashboard');\n }", "public function indexAction()\n {\n $dashboard = $this->getDashboard();\n\n return $this->render('ESNDashboardBundle::index.html.twig', array(\n 'title' => \"Dashboard\"\n ));\n }", "public function index()\n {\n //\n return view('admin.dashboard');\n }", "public function index()\n {\n return view('admin.dashboard.index');\n }", "public function dashboard()\n {\n return view('pages.backsite.dashboard');\n }", "public function index()\n {\n // return component view('dashboard.index');\n return view('layouts.admin_master');\n }", "public function index()\n {\n\n $no_of_apps = UploadApp::count();\n $no_of_analysis_done = UploadApp::where('isAnalyzed', '1')->count();\n $no_of_visible_apps = AnalysisResult::where('isVisible', '1')->count();\n\n return view('admin.dashboard', compact('no_of_apps', 'no_of_analysis_done', 'no_of_visible_apps'));\n }", "public function getDashboard() {\n return view('admin.dashboard');\n }", "public function index()\n {\n return view('smartcrud.auth.dashboard');\n }", "public function index()\n {\n if($this->isAdmin() == TRUE)\n {\n $this->loadThis();\n }\n $this->global['pageTitle'] = 'Touba : Dashboard';\n \n $this->loadViews(\"dashboard\", $this->global, NULL , NULL);\n }", "public function dashboard() {\n $data = ['title' => 'Dashboard'];\n return view('pages.admin.dashboard', $data)->with([\n 'users' => $this->users,\n 'num_services' => Service::count(),\n 'num_products' => Product::count(),\n ]);\n }", "public function index()\n {\n return view('board.pages.dashboard-board');\n }", "public function index()\n {\n return view('admin::settings.development.dashboard');\n }", "public function index()\n {\n return view('dashboard.dashboard');\n }", "public function show()\n {\n return view('dashboard::show');\n }", "public function adminDash()\n {\n return Inertia::render(\n 'Admin/AdminDashboard', \n [\n 'data' => ['judul' => 'Halaman Admin']\n ]\n );\n }", "public function dashboard()\n {\n return view('Admin.dashboard');\n }", "public function show()\n {\n return view('admins\\auth\\dashboard');\n }", "public function index()\n {\n // Report =============\n\n return view('Admin.dashboard');\n }", "public function index()\n {\n return view('bitaac::account.dashboard');\n }", "public function index()\n { \n return view('admin-views.dashboard');\n }", "public function getDashboard()\n {\n return view('dashboard');\n }", "function showDashboard()\n { \n $logeado = $this->checkCredentials();\n if ($logeado==true)\n $this->view->ShowDashboard();\n else\n $this->view->showLogin();\n }", "public function index()\n { \n $params['crumbs'] = 'Home';\n $params['active'] = 'home';\n \n return view('admin.dashboard.index', $params);\n }", "public function index()\n\t{\n\t\treturn view::make('customer_panel.dashboard');\n\t}", "public function index()\n {\n return view('dashboard');\n }", "public function index()\n {\n return view('dashboard');\n }", "public function index()\n {\n return view('dashboard');\n }", "public function index()\n {\n return view('dashboard');\n }", "public function index()\n {\n return view('dashboard');\n }", "public function index()\n {\n return view('dashboard');\n }", "public function index()\n {\n return view('dashboard');\n }", "public function index()\n {\n return view('dashboard');\n }", "public function index() {\n // return view('home');\n return view('admin-layouts.dashboard.dashboard');\n }", "public function index()\r\n {\r\n return view('user.dashboard');\r\n }", "public function index() {\n return view('dashboard', []);\n }", "public function index()\n {\n //\n return view('dashboard.dashadmin', ['page' => 'mapel']);\n }", "public function index()\n {\n return view('back-end.dashboard.index');\n //\n }", "public function index()\n\t{\n\t\t\n\t\t$data = array(\n\t\t\t'title' => 'Administrator Apps With Laravel',\n\t\t);\n\n\t\treturn View::make('panel/index',$data);\n\t}", "public function index() {\n return view('dashboard.index');\n }", "public function index()\n {\n return view('page.dashboard.index');\n }", "public function index()\n {\n\n return view('dashboard');\n }", "public function dashboardview() {\n \n $this->load->model('Getter');\n $data['dashboard_content'] = $this->Getter->get_dash_content();\n \n $this->load->view('dashboardView', $data);\n\n }", "public function index()\n {\n $this->authorize(DashboardPolicy::PERMISSION_STATS);\n\n $this->setTitle($title = trans('auth::dashboard.titles.statistics'));\n $this->addBreadcrumb($title);\n\n return $this->view('admin.dashboard');\n }", "public function action_index()\r\n\t{\t\t\t\t\r\n\t\t$this->template->title = \"Dashboard\";\r\n\t\t$this->template->content = View::forge('admin/dashboard');\r\n\t}", "public function index()\n {\n $info = SiteInfo::limit(1)->first();\n return view('backend.info.dashboard',compact('info'));\n }", "public function display()\n\t{\n\t\t// Set a default view if none exists.\n\t\tif (!JRequest::getCmd( 'view' ) ) {\n\t\t\tJRequest::setVar( 'view', 'dashboard' );\n\t\t}\n\n\t\tparent::display();\n\t}", "public function index()\n {\n $news = News::all();\n $posts = Post::all();\n $events = Event::all();\n $resources = Resources::all();\n $admin = Admin::orderBy('id', 'desc')->get();\n return view('Backend/dashboard', compact('admin', 'news', 'posts', 'events', 'resources'));\n }", "public function index()\n {\n\n return view('superAdmin.adminDashboard')->with('admin',Admininfo::all());\n\n }", "public function index()\n {\n return view('dashboard.index');\n }", "public function index()\n {\n return view('dashboard.index');\n }", "public function index()\n {\n $this->template->set('title', 'Dashboard');\n $this->template->load('admin', 'contents' , 'admin/dashboard/index', array());\n }", "public function index()\n {\n return view('/dashboard');\n }", "public function index()\n {\n \treturn view('dashboard');\n }", "public function index()\n {\n return view('ketua.ketua-dashboard');\n }", "public function index(){\n return View::make('admin.authenticated.dashboardview');\n }", "public function admAmwDashboard()\n {\n return View::make('admission::amw.admission_test.dashboard');\n }", "public function index()\n {\n return view('adminpanel.home');\n }", "public function dashboard()\n\t{\n\t\t$this->validation_access();\n\t\t\n\t\t$this->load->view('user_dashboard/templates/header');\n\t\t$this->load->view('user_dashboard/index.php');\n\t\t$this->load->view('user_dashboard/templates/footer');\n\t}", "public function index()\n {\n return view('dashboard.home');\n }", "public function index()\n {\n $admins = $this->adminServ->all();\n $adminRoles = $this->adminTypeServ->all();\n return view('admin.administrators.dashboard', compact('admins', 'adminRoles'));\n }", "public function index()\n {\n if (ajaxCall::ajax()) {return response()->json($this -> dashboard);}\n //return response()->json($this -> dashboard);\n JavaScript::put($this -> dashboard);\n return view('app')-> with('header' , $this -> dashboard['header']);\n //return view('home');\n }", "public function index()\n {\n $userinfo=User::all();\n $gateinfo=GateEntry::all();\n $yarninfo=YarnStore::all();\n $greyinfo=GreyFabric::all();\n $finishinfo=FinishFabric::all();\n $dyesinfo=DyeChemical::all();\n return view('dashboard',compact('userinfo','gateinfo','yarninfo','greyinfo','finishinfo','dyesinfo'));\n }", "public function actionDashboard(){\n \t$dados_dashboard = Yii::app()->user->getState('dados_dashbord_final');\n \t$this->render ( 'dashboard', $dados_dashboard);\n }", "public function index()\n {\n $user = new User();\n $book = new Book();\n return view('admin.dashboard', compact('user', 'book'));\n }", "public function dashboard() {\n if (!Auth::check()) { // Check is user logged in\n // redirect to dashboard\n return Redirect::to('login');\n }\n\n $user = Auth::user();\n return view('site.dashboard', compact('user'));\n }", "public function dashboard()\n {\n $users = User::all();\n return view('/dashboard', compact('users'));\n }", "public function index()\n {\n $lineChart = $this->getLineChart();\n $barChart = $this->getBarChart();\n $pieChart = $this->getPieChart();\n\n return view('admin.dashboard.index', compact(['lineChart', 'barChart', 'pieChart']));\n }" ]
[ "0.77850926", "0.7760142", "0.7561336", "0.75147176", "0.74653697", "0.7464913", "0.73652893", "0.7351646", "0.7346477", "0.73420244", "0.7326711", "0.7316215", "0.73072463", "0.7287626", "0.72826403", "0.727347", "0.727347", "0.727347", "0.727347", "0.7251768", "0.7251768", "0.7251768", "0.7251768", "0.7251768", "0.7241342", "0.7236133", "0.7235562", "0.7218318", "0.71989936", "0.7197427", "0.71913266", "0.71790016", "0.71684825", "0.71577966", "0.7146797", "0.7133428", "0.7132746", "0.71298903", "0.71249074", "0.71218014", "0.71170413", "0.7110151", "0.7109032", "0.7107029", "0.70974076", "0.708061", "0.7075653", "0.70751685", "0.7064041", "0.70550334", "0.7053102", "0.7051273", "0.70484304", "0.7043605", "0.70393986", "0.70197886", "0.70185125", "0.70139873", "0.700917", "0.700917", "0.700917", "0.700917", "0.700917", "0.700917", "0.700917", "0.700917", "0.6992477", "0.6979631", "0.69741416", "0.69741327", "0.6968815", "0.6968294", "0.69677526", "0.69652885", "0.69586027", "0.6944985", "0.69432825", "0.69419175", "0.6941512", "0.6941439", "0.6938837", "0.6937524", "0.6937456", "0.6937456", "0.69276494", "0.6921651", "0.69074917", "0.69020325", "0.6882262", "0.6869339", "0.6867868", "0.68557185", "0.68479055", "0.684518", "0.68408877", "0.6838798", "0.6833479", "0.6832326", "0.68309164", "0.6826798", "0.6812457" ]
0.0
-1
Generates token in HEX
public function generateToken(){ //if(empty($_SESSION['token']) && (empty($_SESSION['tokenAge']) || (time() - (int)$_SESSION['tokenAge']) > (int)$this->maxAge)){ if(function_exists('random_bytes')){ $_SESSION['token'] = bin2hex(random_bytes(32)); }elseif(function_exists('mcrypt_create_iv')){ $_SESSION['token'] = bin2hex(mcrypt_create_iv(32, MCRYPT_DEV_URANDOM)); }else{ $_SESSION['token'] = bin2hex(openssl_random_pseudo_bytes(32)); } $_SESSION['tokenAge'] = time(); //} }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function init_token() {\n return bin2hex(random_bytes((self::TOKEN_SIZE / 2)));\n }", "public function generateToken(): string\n {\n $token = bin2hex(random_bytes(16));\n $this->setTokens($this->limitTokens(\n array_merge($this->getTokens(), [$token])\n ));\n return $token;\n }", "public function getToken()\n {\n return bin2hex(random_bytes(20));\n }", "function createToken() {\n\treturn bin2hex(openssl_random_pseudo_bytes(32));\n}", "public static function nextToken() {\n return bin2hex(openssl_random_pseudo_bytes(10));\n }", "public static function generate_token() {\t\r\n\t\t$size = mcrypt_get_iv_size(MCRYPT_CAST_256, MCRYPT_MODE_CFB);\r\n\t\t$new_token = bin2hex(mcrypt_create_iv($size, MCRYPT_DEV_RANDOM));\r\n\t\treturn $new_token;\r\n\t}", "public function generate_token() {\n\t\t$current_offset = $this->get_offset();\n\t\treturn dechex($current_offset) . '-' . $this->calculate_tokenvalue($current_offset);\n\t}", "public static function genToken($str)\n {\n return bin2hex($str);\n }", "public function generateToken();", "public function generateToken()\n {\n $token = openssl_random_pseudo_bytes(16);\n \n $token = bin2hex($token);\n \n return $token;\n }", "private function generateToken(): string\n {\n return Random::alphanum(self::TOKEN_LENGTH);\n }", "public function createToken() {\r\n\t\t$characters = 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',\r\n\t\t\t'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', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9');\r\n\t\t$counter = 0;\r\n\t\t$resultString = \"\";\r\n\t\t\r\n\t\twhile ($counter < Page::TOKEN_LENGTH) {\r\n\t\t\t$nextRand = mt_rand(0, (count($characters) - 1));\r\n\t\t\t\r\n\t\t\tif (!Strings::contains($resultString, sprintf('%1$s', $characters[$nextRand]))) {\r\n\t\t\t\t$resultString .= $characters[$nextRand];\r\n\t\t\t\t\r\n\t\t\t\t$counter++;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn $resultString;\r\n\t}", "protected function create_token()\n {\n do {\n $token = sha1(uniqid(\\Phalcon\\Text::random(\\Phalcon\\Text::RANDOM_ALNUM, 32), true));\n } while (Tokens::findFirst(array('token=:token:', 'bind' => array(':token' => $token))));\n\n return $token;\n }", "function generateToken() {\n\t$token = openssl_random_pseudo_bytes(10);\n \n\t//Convert the binary data into hexadecimal representation.\n\t$token = bin2hex($token);\n\t\n\treturn $token;\n}", "public function generateToken(): string\n {\n $token = bin2hex(random_bytes(16));\n $tokens = $_SESSION[$this->sessionKey] ?? [];\n $tokens[] = $token;\n $_SESSION[$this->sessionKey] = $this->limitTokens($tokens);\n return $token;\n }", "private function generateToken()\n {\n return hash('SHA256', uniqid((double) microtime() * 1000000, true));\n }", "protected static function generateToken(): string\n {\n $characters = '0123456789abcdefghijklmnopqrstuvwxyz';\n $token = 'V_'; // methods can't start with numbers\n\n for ($i = 0; $i < 12; $i++) {\n $index = rand(0, strlen($characters) - 1);\n $token .= $characters[$index];\n }\n\n return $token;\n }", "public static function randToken(): string\n {\n return base64_encode(openssl_random_pseudo_bytes(random_int(32, 256)));\n }", "function generate_token()\n\t{\n\t return sha1(base64_encode(openssl_random_pseudo_bytes(30)));\n\t}", "public function generateRandomToken():string;", "function gen_token()\n\t{\n\t\t$ci = get_instance()->load->helper('myencrypt');\n\t\treturn create_token();\n\t}", "protected function generate_tok()\r\n {\r\n return $_SESSION['token'] = base64_encode(openssl_random_pseudo_bytes(32));\r\n }", "function get_Rand_Token($num_bytes=16) {\n \n return bin2hex(openssl_random_pseudo_bytes($num_bytes));\n}", "function create_token(): string\n {\n $strs = \"QWERTYUIOPASDFGHJKLZXCVBNM1234567890qwertyuiopasdfghjklzxcvbnm\";\n $str = substr(str_shuffle($strs),mt_rand(0,strlen($strs)-11),12);\n return md5($str);\n }", "function gen_token(){\n\t\t$secretKey = \"BismILLAHirrohmaanirrohiim\";\n\n\t\t// Generates a random string of ten digits\n\t\t$salt = mt_rand();\n\n\t\t// Computes the signature by hashing the salt with the secret key as the key\n\t\t$signature = hash_hmac('sha256', $salt, $secretKey, true);\n\n\t\t// base64 encode...\n\t\t$encodedSignature = base64_encode($signature);\n\n\t\t// urlencode...\n\t\t$encodedSignature = urlencode($encodedSignature);\n\n\t\treturn $encodedSignature;\n\t}", "function generate_token($length){\n $token = \"\";\n $codeAlphabet = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\";\n $codeAlphabet.= \"abcdefghijklmnopqrstuvwxyz\";\n $codeAlphabet.= \"0123456789\";\n $max = strlen($codeAlphabet) - 1;\n for ($i=0; $i < $length; $i++) {\n $token .= $codeAlphabet[crypto_rand_secure(0, $max)];\n }\n return $token;\n}", "protected function generateRandomToken(): string\n {\n return Str::random(32);\n }", "public function generateToken() : string\n {\n if (@file_exists('/dev/urandom')) { // Get 100 bytes of random data\n $randomData = file_get_contents('/dev/urandom', false, null, 0, 100);\n } elseif (function_exists('openssl_random_pseudo_bytes')) { // Get 100 bytes of pseudo-random data\n $bytes = openssl_random_pseudo_bytes(100, $strong);\n if (true === $strong && false !== $bytes) {\n $randomData = $bytes;\n }\n }\n\n // Last resort: mt_rand\n if (empty($randomData)) { // Get 108 bytes of (pseudo-random, insecure) data\n $randomData = mt_rand() . mt_rand() . mt_rand() . uniqid(mt_rand(), true) . microtime(true) . uniqid(\n mt_rand(),\n true\n );\n }\n\n return rtrim(strtr(base64_encode(hash('sha256', $randomData)), '+/', '-_'), '=');\n }", "private function generate_code(){\n $bytes = random_bytes(2);\n // var_dump(bin2hex($bytes));\n return bin2hex($bytes);\n }", "function create_token()\n {\n $secretKey = \"B1sm1LLAH1rrohmaan1rroh11m\";\n\n // Generates a random string of ten digits\n $salt = mt_rand();\n\n // Computes the signature by hashing the salt with the secret key as the key\n $signature = hash_hmac('sha256', $salt, $secretKey, false);\n // $signature = hash('md5', $salt.$secretKey);\n\n // return $signature;\n return urlsafeB64Encode($signature);\n }", "function sloodle_random_security_token()\n {\n // Define the characters we can use in our token, and get the length of it\n $str = \"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ\";\n $strlen = strlen($str) - 1;\n // Prepare the token variable\n $token = '';\n // Loop once for each output character\n for($length = 0; $length < 16; $length++) {\n // Shuffle the string, then pick and store a random character\n $str = str_shuffle($str);\n $char = mt_rand(0, $strlen);\n $token .= $str[$char];\n }\n \n return $token;\n }", "function getToken($len = 32, $md5 = true) {\n\t# Only needed for PHP versions prior to 4.2\n\tmt_srand((double) microtime() * 1000000);\n\t# Array of characters, adjust as desired\n\t$chars = array (\n\t\t'Q',\n\t\t'@',\n\t\t'8',\n\t\t'y',\n\t\t'%',\n\t\t'^',\n\t\t'5',\n\t\t'Z',\n\t\t'(',\n\t\t'G',\n\t\t'_',\n\t\t'O',\n\t\t'`',\n\t\t'S',\n\t\t'-',\n\t\t'N',\n\t\t'<',\n\t\t'D',\n\t\t'{',\n\t\t'}',\n\t\t'[',\n\t\t']',\n\t\t'h',\n\t\t';',\n\t\t'W',\n\t\t'.',\n\t\t'/',\n\t\t'|',\n\t\t':',\n\t\t'1',\n\t\t'E',\n\t\t'L',\n\t\t'4',\n\t\t'&',\n\t\t'6',\n\t\t'7',\n\t\t'#',\n\t\t'9',\n\t\t'a',\n\t\t'A',\n\t\t'b',\n\t\t'B',\n\t\t'~',\n\t\t'C',\n\t\t'd',\n\t\t'>',\n\t\t'e',\n\t\t'2',\n\t\t'f',\n\t\t'P',\n\t\t'g',\n\t\t')',\n\t\t'?',\n\t\t'H',\n\t\t'i',\n\t\t'X',\n\t\t'U',\n\t\t'J',\n\t\t'k',\n\t\t'r',\n\t\t'l',\n\t\t'3',\n\t\t't',\n\t\t'M',\n\t\t'n',\n\t\t'=',\n\t\t'o',\n\t\t'+',\n\t\t'p',\n\t\t'F',\n\t\t'q',\n\t\t'!',\n\t\t'K',\n\t\t'R',\n\t\t's',\n\t\t'c',\n\t\t'm',\n\t\t'T',\n\t\t'v',\n\t\t'j',\n\t\t'u',\n\t\t'V',\n\t\t'w',\n\t\t',',\n\t\t'x',\n\t\t'I',\n\t\t'$',\n\t\t'Y',\n\t\t'z',\n\t\t'*'\n\t);\n\t# Array indice friendly number of chars;\n\t$numChars = count($chars) - 1;\n\t$token = '';\n\t# Create random token at the specified length\n\tfor ($i = 0; $i < $len; $i++)\n\t\t$token .= $chars[mt_rand(0, $numChars)];\n\t# Should token be run through md5?\n\tif ($md5) {\n\t\t# Number of 32 char chunks\n\t\t$chunks = ceil(strlen($token) / 32);\n\t\t$md5token = '';\n\t\t# Run each chunk through md5\n\t\tfor ($i = 1; $i <= $chunks; $i++)\n\t\t\t$md5token .= md5(substr($token, $i * 32 - 32, 32));\n\t\t# Trim the token\n\t\t$token = substr($md5token, 0, $len);\n\t}\n\treturn $token;\n}", "public static function generateToken()\r\n {\r\n $_SESSION['CSRF_TOKEN'] = bin2hex(openssl_random_pseudo_bytes(32));\r\n }", "function GenerateToken()\n{\n $TokenRequest = '';\n $caracteres = ''; \n $lmai = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ';\n $num = '1234567890'; \n $caracteres .= $lmai;\n $caracteres .= $num;\n \n $len = strlen($caracteres); \n for ($i=0; $i < 15; $i++) \n { \n $rand = mt_rand(1, $len); \n $TokenRequest .= $caracteres[$rand-1];\n }\n \n $TokenRequest .= 'C';\n\n for ($i=0; $i < 15; $i++) \n { \n $rand = mt_rand(1, $len); \n $TokenRequest .= $caracteres[$rand-1];\n }\n\n $TokenRequest .= 'C';\n\n for ($i=0; $i < 10; $i++) \n { \n $rand = mt_rand(1, $len); \n $TokenRequest .= $caracteres[$rand-1];\n }\n\n $TokenRequest .= date('h');\n $TokenRequest .= 'B';\n\n for ($i=0; $i < 7; $i++) \n { \n $rand = mt_rand(1, $len); \n $TokenRequest .= $caracteres[$rand-1];\n }\n\n $TokenRequest .= date('i');\n\n for ($i=0; $i < 5; $i++) \n { \n $rand = mt_rand(1, $len); \n $TokenRequest .= $caracteres[$rand-1];\n }\n\n $TokenRequest .= date('s');\n\n for ($i=0; $i < 2; $i++) \n { \n $rand = mt_rand(1, $len); \n $TokenRequest .= $caracteres[$rand-1];\n }\n \n return $TokenRequest;\n }", "public function generateToken()\n\t{\n\t\treturn Token::make();\n\t}", "protected function createToken()\n {\n $currentServerIp = $this->request->server('SERVER_ADDR');\n\n $secretKey = $this->config['doublespark_contaobridge_secret_key'];\n\n return md5('phpbbbridge'.date('d/m/Y').$currentServerIp.$secretKey);\n }", "function createRandomToken(){\n\t\t\t$chars = \"abcdefghijkmnopqrstuvwxyz023456789\";\n\t\t\tsrand((double)microtime()*1000000);\n\t\t\t$i = 0;\n\t\t\t$pass = '' ;\n\t\t\twhile ($i <= 7){\n\t\t\t\t$num = rand() % 33;\n\n\t\t\t\t\t\t\t$tmp = substr($chars, $num, 1);\n\n\t\t\t\t\t\t\t$pass = $pass . $tmp;\n\n\t\t\t\t\t\t\t$i++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\treturn $pass;\n\t\t\t\t\t\t}", "function generateToken()\n {\n return md5(uniqid(rand().time(),true));\n }", "function _cr_hs_generate_token() {\n $load_avg = sys_getloadavg();\n $time = time();\n $hash = hash_init('sha256');\n hash_update($hash, implode('', $load_avg));\n hash_update($hash, time());\n return hash_final($hash);\n}", "function generate_token()\n {\n $this->load->helper('security');\n $res = do_hash(time().mt_rand());\n $new_key = substr($res,0,config_item('rest_key_length'));\n return $new_key;\n }", "public static function generate(): Token\n {\n $token = bin2hex(random_bytes(256));\n return new Token($token);\n }", "function getToken($length) {\n \t\t $key = '';\n \t\t $keys = array_merge(range(0, 9), range('a', 'z'));\n \t\t for ($i = 0; $i < $length; $i++) {\n \t\t $key .= $keys[array_rand($keys)];\n \t\t }\n\n \t\t return $key;\n \t\t}", "public function generateToken()\n {\n do {\n $token = sha1(microtime());\n } while ($this->newQuery()->where(['token' => $token])->count() > 0);\n\n return $token;\n }", "public function generate_token($username, $passwd) {\r\n return substr(sha1($username.$passwd.microtime(true).rand().$this->settings['magic']), 0, $this->settings['token_size']);\r\n }", "public static function create(): string\n {\n $payload = ['random' => base64_encode(random_bytes(32))];\n $tokenDecoded = new TokenDecoded([], $payload);\n\n $privateKey = @file_get_contents(self::PRIVATE_KEYFILE);\n if ($privateKey === false) {\n echo 'creating Keys..';\n self::createKeys();\n $privateKey = file_get_contents(self::PRIVATE_KEYFILE);\n }\n\n $tokenEncoded = $tokenDecoded->encode($privateKey, JWT::ALGORITHM_RS256);\n return $tokenEncoded;\n }", "static function getToken($len = 32, $md5 = true) {\n # Only needed for PHP versions prior to 4.2\n mt_srand((double) microtime() * 1000000);\n # Array of characters, adjust as desired\n $chars = array (\n 'Q',\n '@',\n '8',\n 'y',\n '%',\n '^',\n '5',\n 'Z',\n '(',\n 'G',\n '_',\n 'O',\n '`',\n 'S',\n '-',\n 'N',\n '<',\n 'D',\n '{',\n '}',\n '[',\n ']',\n 'h',\n ';',\n 'W',\n '.',\n '/',\n '|',\n ':',\n '1',\n 'E',\n 'L',\n '4',\n '&',\n '6',\n '7',\n '#',\n '9',\n 'a',\n 'A',\n 'b',\n 'B',\n '~',\n 'C',\n 'd',\n '>',\n 'e',\n '2',\n 'f',\n 'P',\n 'g',\n ')',\n '?',\n 'H',\n 'i',\n 'X',\n 'U',\n 'J',\n 'k',\n 'r',\n 'l',\n '3',\n 't',\n 'M',\n 'n',\n '=',\n 'o',\n '+',\n 'p',\n 'F',\n 'q',\n '!',\n 'K',\n 'R',\n 's',\n 'c',\n 'm',\n 'T',\n 'v',\n 'j',\n 'u',\n 'V',\n 'w',\n ',',\n 'x',\n 'I',\n '$',\n 'Y',\n 'z',\n '*'\n );\n # Array indice friendly number of chars;\n $numChars = count($chars) - 1;\n $token = '';\n # Create random token at the specified length\n for ($i = 0; $i < $len; $i++)\n $token .= $chars[mt_rand(0, $numChars)];\n # Should token be run through md5?\n if ($md5) {\n # Number of 32 char chunks\n $chunks = ceil(strlen($token) / 32);\n $md5token = '';\n # Run each chunk through md5\n for ($i = 1; $i <= $chunks; $i++)\n $md5token .= md5(substr($token, $i * 32 - 32, 32));\n # Trim the token\n $token = substr($md5token, 0, $len);\n }\n return $token;\n }", "public function generate_code()\n {\n return $string = bin2hex(random_bytes(10));\n }", "function cng_pwd_token() {\n $token = bin2hex(random_bytes(32));\n $_SESSION['cng_pwd_token'] = $token;\n return $token;\n }", "abstract public function token();", "private function setToken()\n {\n if (!$this->token) {\n if (is_callable('openssl_random_pseudo_bytes')) {\n $this->token = bin2hex(openssl_random_pseudo_bytes(16));\n } else {\n $this->token = md5(uniqid('', true));\n }\n }\n\n return $this->token;\n }", "function createToken($length = 10) {\n\t\t$characters = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';\n\t\t$charactersLength = strlen($characters);\n\t\t$randomString = '';\n\t\tfor ($i = 0; $i < $length; $i++) {\n\t\t\t$randomString .= $characters[rand(0, $charactersLength - 1)];\n\t\t}\n\t\treturn $randomString;\n\t}", "public static function token($length = 32, $max = FALSE) {\n\t\tif (is_int ( $max ) && $max > $length) {\n\t\t\t$length = mt_rand ( $length, $max );\n\t\t}\n\t\t$output = '';\n\t\t\n\t\tfor($i = 0; $i < $length; $i ++) {\n\t\t\t$which = mt_rand ( 0, 2 );\n\t\t\t\n\t\t\tif ($which === 0) {\n\t\t\t\t$output .= mt_rand ( 0, 9 );\n\t\t\t} elseif ($which === 1) {\n\t\t\t\t$output .= chr ( mt_rand ( 65, 90 ) );\n\t\t\t} else {\n\t\t\t\t$output .= chr ( mt_rand ( 97, 122 ) );\n\t\t\t}\n\t\t}\n\t\treturn $output;\n\t}", "function create_token($procedure)\n\t{\n\t\t$time = time();\n\t\t// in the clear part we use value separator for better\n\t\t// handling in the token validation method (see below).\n\t\t// hash context goes as single concatenated string\n\t\treturn $token = \"$time|$procedure\\n\".hash('sha1', $this->engine->db->system_seed . $this->sid . $time . $procedure);\n\t}", "function signup_token() {\n $token = bin2hex(random_bytes(32));\n $_SESSION['signup_token'] = $token;\n return $token;\n }", "private function generateToken(int $length): string\n {\n $token = \"\";\n $codeAlphabet = implode(range('A', 'Z'));\n $codeAlphabet.= implode(range('a', 'z'));\n $codeAlphabet.= implode(range(0, 9));\n $max = strlen($codeAlphabet);\n\n for ($i = 0; $i < $length; $i++) {\n $token .= $codeAlphabet[random_int(0, $max - 1)];\n }\n\n return $token;\n }", "public function generate_token($method = 1) \n {\n $token = '';\n if($method == 2) {\n $token = mt_rand(100000, 999999);\n\n } else {\n $token = str_random(10);\n }\n return $token;\n }", "function encodeToken($token) {\n if (!$token) return;\n $key = sha1('ab$6*1hVmkLd^0.');\n $code1 = substr($key,0,strlen($key)-constant('token_length')); \n $code2 = substr($key,strlen($key)-constant('token_length'),constant('token_length'));\n $key = $code1.$token.$code2.'|'.base64_encode(strlen($code2.$token));\n\n return base64_encode($key);\n }", "function user_token() {\n $token = bin2hex(random_bytes(32));\n $_SESSION['user_verify_token'] = $token;\n return $token;\n }", "private function generateInviteToken(): string\n {\n return md5(uniqid('', true));\n }", "function archimedes_get_token() {\n $keys = module_invoke_all('archimedes_id'); sort($keys);\n return drupal_hmac_base64(implode('|', $keys), drupal_get_private_key() . drupal_get_hash_salt());\n}", "public function createToken();", "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 getToken(): string;", "public function getToken(): string;", "public function getToken(): string;", "public function getToken(): string;", "public static function generateToken($len){\n // NB: keep all tokens 164 characters long\n $charLibrary = \"1=qay2-ws!x3edc4rfv5tgb6zhn7ujm8ik9olp_AQWSXEDCVFRTGBNHYZUJMKILOP.\";\n \n return substr(str_shuffle($charLibrary), 0, $len);\n }", "public static function getToken(): string\n {\n $token = static::generateToken();\n while (key_exists($token, static::$callbacks)) {\n $token = static::generateToken();\n }\n\n return $token;\n }", "private static function generate_token($token_length) {\n\t\t\t// Initialise a variable used to store the token\n\t\t\t$token = null;\n\t\t\t// Create a salt of accepted characters\n\t\t\t$salt = \"abcdefghjkmnpqrstuvxyzABCDEFGHIJKLMNOPQRSTUVXYZ0123456789\";\n\t\t\t\n\t\t\tsrand((double)microtime()*1000000);\n\t\t\t$i = 0;\n\t\t\twhile ($i < $token_length) {\n\t\t\t\t$num = rand() % strlen($salt);\n\t\t\t\t$tmp = substr($salt, $num, 1);\n\t\t\t\t$token = $token . $tmp;\n\t\t\t\t$i++;\n\t\t\t}\n\t\t\t// Return the token\n\t\t\treturn $token;\n\t\t}", "private function getToken()\n {\n return uniqid();\n }", "public function generate_token($length = 8) {\n $characters = '23456789BbCcDdFfGgHhJjKkMmNnPpQqRrSsTtVvWwXxYyZz';\n $count = mb_strlen($characters);\n\n for ($i = 0, $token = ''; $i < $length; $i++)\n {\n $index = rand(0, $count - 1);\n $token .= mb_substr($characters, $index, 1);\n }\n return $token;\n }", "protected function generateUpdateToken()\n\t{\n\t\t$length = 8;\n\t\t$bytes = function_exists('random_bytes') ? random_bytes($length) : openssl_random_pseudo_bytes($length);\n\n\t\treturn substr(bin2hex($bytes), 0, $length);\n\t}", "public static function generateToken() {\n $token = md5(rand());\n return $token;\n }", "function generateToken($length){\r\n $token = \"\";\r\n $possible = \"0123456789bcdfghjkmnpqrstvwxyz\";\r\n $i = 0;\r\n while ($i < $length) {\r\n $char = substr($possible, mt_rand(0, strlen($possible)-1), 1);\r\n if (!strstr($token, $char)) {\r\n $token .= $char;\r\n $i++;\r\n }\r\n }\r\n return $token;\r\n }", "public function generateToken()\n {\n if (empty($this->username) || empty($this->api_token)) {\n throw new \\Exception(\"Username and Api Token must be set\");\n }\n $time = time();\n return hash_hmac(\"sha256\", $this->username . \"::\" . $this->api_token . \"::\" . $time, $this->api_token);\n }", "function generateToken($varname){\n\t\t$token = bin2hex(random_bytes(16));\n\t\tcreateSession($varname,$token);\n\t\treturn $token;\n\t}", "public static function cookieToken(): string\n {\n return mt_rand(1000, 9999).\".\".self::setToken(10);\n }", "public static function generate(): string\n {\n $token = base64_encode(random_bytes(36));\n Session::set(self::SESSION_KEY, $token);\n return $token;\n }", "public function getToken();", "public function getToken();", "public function getToken();", "public function getToken();", "public function getToken($length){\n $token = \"\";\n $codeAlphabet = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\";\n $codeAlphabet.= \"abcdefghijklmnopqrstuvwxyz\";\n $codeAlphabet.= \"0123456789\";\n $max = strlen($codeAlphabet); // edited\n\n for ($i=0; $i < $length; $i++) {\n $token .= $codeAlphabet[random_int(0, $max-1)];\n }\n\n return $token;\n }", "public static function generarVerificationToken(){\n return str_random(40);\n }", "function login_token() {\n $token = bin2hex(random_bytes(32));\n $_SESSION['login_token'] = $token;\n return $token;\n }", "private function generateSecureToken($length) {\n\n $token = \"\";\n $codeAlphabet = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\";\n $codeAlphabet .= \"0123456789\";\n\n $max = strlen($codeAlphabet);\n\n for ($i=0; $i < $length; $i++) {\n $token .= $codeAlphabet[$this->crypto_rand_secure(0, $max-1)];\n }\n\n return $token;\n }", "public function createTokenInput(){\n $this->generateToken();\n return '<input type=\"hidden\" name=\"_once\" value=\"' . $_SESSION['token'] . '\">';\n }", "private function genTk() : string{\n $this->checkNotConnected();\n $tk = \"\";\n do{\n for($i = 0; $i < 4; $i++) $tk .= (string)random_int(0, 9);\n }while($this->ckTokenClientEx(base64_encode($tk)));\n return base64_encode($tk);\n }", "public static function generate()\n {\n return substr(md5(uniqid('nonce_', true)), 0, 16);\n }", "public function getToken($length = 40)\n {\n $result = '';\n $len = round($length / 2);\n if (function_exists('random_bytes')) {\n $result = bin2hex(random_bytes($len)); // php 7\n } elseif (function_exists('openssl_random_pseudo_bytes')) {\n $result = bin2hex(openssl_random_pseudo_bytes($len));\n } else {\n // fallback, more predictable\n for ($i = 0; $i < $len; $i++) {\n $result .= bin2hex(chr(mt_rand(0, 255)));\n }\n }\n\n return substr($result, 0, $length);\n }", "public static function generateRandomToken() {\n return Security::chlogHashStatic(md5(rand())); \n }", "private static function generateHexTimestamp() : string\n {\n $time = microtime(false);\n [$microseconds, $seconds] = explode(' ', $time);\n \n // Keep only millisecond digits.\n $microseconds = substr($microseconds, 2,3);\n \n $hex = base_convert($seconds . $microseconds, 10, 16);\n \n return str_pad($hex, self::TOTAL_CHARS_LENGTH - self::RANDOM_CHARS_LENGTH, '0', STR_PAD_LEFT);\n }", "public function generatePassword() {\n $generator = new UriSafeTokenGenerator();\n $token = $generator->generateToken();\n return substr($token, 0, 6);\n }", "static function generateToken() {\n $token = Cache::get(\"token\", false);\n if ($token) {\n return $token;\n } else {\n $time = floor(time() / 1000);\n $token = md5(bin2hex($time));\n new Cache(\"token\", $token);\n return $token;\n }\n }", "public static function generate_token($size = 128) {\n return base64_encode(openssl_random_pseudo_bytes($size));\n }", "public function unidid(){\n $token = \"\";\n $codes = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\";\n $codes .= \"abcdefghijklmnopqrstuvwxyz\";\n $codes .= \"0123456789\";\n $max = strlen($codes);\n for($i=0; $i < 15; $i++){\n $token.= $codes[random_int(0, $max-1)];\n }\n return $token;\n }", "public function generateToken($length = 10) {\n\t\t$possible = '0123456789abcdefghijklmnopqrstuvwxyz';\n\t\t$token = \"\";\n\t\t$i = 0;\n\n\t\twhile ($i < $length) {\n\t\t\t$char = substr($possible, mt_rand(0, strlen($possible) - 1), 1);\n\t\t\tif (!stristr($token, $char)) {\n\t\t\t\t$token .= $char;\n\t\t\t\t$i++;\n\t\t\t}\n\t\t}\n\t\treturn $token;\n\t}", "function generateCandiToken($name){\t\n\t$mydate = getdate();\n\t$token = sha1($name.\"candidate\");\n\treturn $token;\n}", "public function get_token($length,$type=\"all\")\n {\n $token = \"\";\n $codeAlphabet = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\";\n $codeAlphabet.= \"abcdefghijklmnopqrstuvwxyz\";\n $codeAlphabet.= \"0123456789\";\n switch ($type) {\n case 'letters':\n $codeAlphabet = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\";\n break;\n case 'numbers':\n $codeAlphabet= \"0123456789\";\n break;\n }\n $max = strlen($codeAlphabet) - 1;\n for ($i=0; $i < $length; $i++) {\n $token .= $codeAlphabet[$this->crypto_rand_secure(0, $max)];\n }\n return $token;\n }", "function generate() {\n\n if ($_SERVER[\"REQUEST_METHOD\"] !== 'POST') {\n http_response_code(403);\n echo 'Forbidden';\n die();\n } else {\n //fetch posted data\n $posted_data = file_get_contents('php://input');\n $input = (array) json_decode($posted_data);\n $data = $this->_pre_token_validation($input);\n }\n\n $token = $this->_generate_token($data);\n http_response_code(200);\n echo $token;\n }" ]
[ "0.81723374", "0.79081017", "0.784599", "0.7747305", "0.7698959", "0.7634723", "0.75953835", "0.7594847", "0.75827944", "0.7509549", "0.7484612", "0.73685426", "0.7322852", "0.7312594", "0.7289908", "0.713348", "0.70728004", "0.7004561", "0.69872373", "0.69818854", "0.69659746", "0.69494134", "0.6931085", "0.69223803", "0.6905305", "0.6895449", "0.6851192", "0.68469435", "0.6817549", "0.679614", "0.6710724", "0.668744", "0.6679762", "0.6679414", "0.66492623", "0.6640395", "0.66310495", "0.6623105", "0.66185224", "0.6600994", "0.65947723", "0.6589652", "0.6587036", "0.65710723", "0.6564526", "0.65521574", "0.65462023", "0.6537571", "0.6527796", "0.65218586", "0.65110826", "0.6491433", "0.64865065", "0.64576656", "0.64417976", "0.6441479", "0.64348626", "0.64119285", "0.6398051", "0.6380256", "0.63574773", "0.6356028", "0.63330686", "0.63330686", "0.63330686", "0.63330686", "0.632277", "0.6316501", "0.63105756", "0.6303786", "0.62989646", "0.62965226", "0.62741596", "0.62680185", "0.6241116", "0.62306273", "0.62254053", "0.6208869", "0.6207524", "0.6207524", "0.6207524", "0.6207524", "0.62056863", "0.6202766", "0.6199601", "0.6195609", "0.61867625", "0.61734784", "0.61725575", "0.61699367", "0.61608624", "0.61570936", "0.614743", "0.61426234", "0.6142405", "0.6125038", "0.61230236", "0.61219674", "0.6118167", "0.61180145" ]
0.6411001
58
Checks token and the time bewteen token created and token age after POST
public function validateToken($token, $maxAge = 300){ $this->maxAge = $maxAge; if($token != $_SESSION['token'] || ((time() - (int)$_SESSION['tokenAge']) > (int)$this->maxAge)){ return false; }else{ unset($_SESSION['token'], $_SESSION['tokenAge']); return true; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function checkTokenExpire()\n {\n if (new DateTime() > $this->tokenExpire) {\n $this->refreshToken();\n $this->getAuthorization();\n }\n }", "public function setTokenValidDate()\n {\n $this->tokenValidDate = new DateTime('+ 2 hours');\n }", "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 validToken($name, $referer, $time)\n{\n\tif(isset($_SESSION[$name.'Token']) && isset($_SESSION[$name.'Token_time']) && isset($_POST['token']))\n\t\tif($_SESSION[$name.'Token']===$_POST['token'])\n\t\t\tif($_SESSION[$name.'Token_time']>=(time()-$time))\n\t\t\t\tif($_SERVER['HTTP_REFERER']==$referer)\n\t\t\t\t\treturn true;\n\treturn false;\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 }", "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 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 }", "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 csrf_token_is_recent() {\n\t$max_elapsed = 60 * 60 * 24; // 1 day\n\tif(isset($_SESSION['csrf_token_time'])) {\n\t\t$stored_time = $_SESSION['csrf_token_time'];\n\t\treturn ($stored_time + $max_elapsed) >= time();\n\t} else {\n\t\t// Remove expired token\n\t\tdestroy_csrf_token();\n\t\treturn false;\n\t}\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}", "function checkToken() {\n\t\t\t// Split the token up again to make sure the first 40 chars are the same (TOKEN)\n\t\t\t$splitToken = substr($this->tokenFromCookie, 0, 40);\n\t\t\t\n\t\t\t// Split the token up again to make sure the second 40 chars are the same (ZIPPED)\n\t\t\t$splitZipped = substr($this->tokenFromCookie, 40, 40);\n\t\t\t\n\t\t\t// Unzip the second 40 chars\n\t\t\t$result = $this->unzip($splitZipped);\n\n\t\t\t// Check if the sha of the zipped portion matches the token.\n\t\t\t// If so, no one has messed with the token\n\t\t\tif(strcmp($splitToken, sha1($splitZipped) == 0)) {\n\t\t\t\t// Grab all data from unzip\n\t\t\t\t$ip = base_convert($result[0], IP_ADDRESS, 10);\n\t\t\t\t$time = base_convert($result[1], REQUEST_TIME, 10);\n\t\t\t\t$user = $result[2];\n\t\t\t\t$random = $result[3];\n\t\t\t\t$expires = substr($this->tokenFromCookie, 80, strlen($this->tokenFromCookie));\n\n\t\t\t\t// Check if token is expired after one hour\n\t\t\t\tif(time() - $expires <= 3600) {\n\t\t\t\t\tif(strpos($_SERVER['REMOTE_ADDR'], \":\") !== false) {\n\t\t\t\t\t\t$userIpAddImp = implode(explode(\":\", $_SERVER['REMOTE_ADDR']));\n\t\t\t\t\t}\n\t\t\t\t\telseif(strpos($_SERVER['REMOTE_ADDR'], \".\") !== false) {\n\t\t\t\t\t\t$userIpAddImp = implode(explode(\".\", $_SERVER['REMOTE_ADDR']));\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t// Check if userIp is the same as when s/he originally logged in\n\t\t\t\t\t$validity = (strcmp($ip, $userIpAddImp) == 0) ? true : false;\t\t\t\t\t\n\t\t\t\t} \n\t\t\t\telse {\n\t\t\t\t\t$validity = false;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$validity = false;\n\t\t\t}\n\t\t\t\n\t\t\treturn $validity;\n\t\t}", "public function ensureToken()\n {\n if ($this->tokenExpiry === null) {\n $this->regenerateToken();\n }\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 }", "protected function diffTokenTimeExpire()\n {\n $tokenLife = $this->tokenTime + $this->tokenExpire;\n\n return ($tokenLife < time()) ? false : true;\n }", "public function validateAccessTokenTime($payload)\r\n {\r\n $output = 0;\r\n $dateNow = Carbon::now('UTC')->timestamp;\r\n if ($payload->creation_refrech_ttl_date == \"\" && $payload->expire_refrech_ttl_date == \"\") \r\n {\r\n $creation_ttl_date = $payload->creation_ttl_date;\r\n $expire_ttl_date = $payload->expire_ttl_date;\r\n $expire_refresh_ttl_date = Carbon::createFromTimestampUTC($payload->creation_ttl_date)->timestamp;\r\n $expire_refresh_ttl_date = Carbon::createFromTimestampUTC($expire_refresh_ttl_date)->addMinutes(Config(\"config.refresh_ttl\"))->timestamp;\r\n } \r\n else \r\n {\r\n $creation_ttl_date = $payload->creation_ttl_date;\r\n $expire_ttl_date = $payload->expire_ttl_date;\r\n $expire_refresh_ttl_date = $payload->expire_refrech_ttl_date;\r\n }\r\n if ($payload->expire_ttl_date > $dateNow) \r\n {\r\n if ($expire_refresh_ttl_date > $dateNow) \r\n {\r\n //token is ok\r\n $output = 1;\r\n } \r\n else \r\n {\r\n //token need refresh\r\n $output = 2;\r\n }\r\n } \r\n else \r\n {\r\n //token expired\r\n $output = 3;\r\n }\r\n return $output;\r\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 validate($nonce, $token, $now = null, $leeway = 0);", "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 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 function check_token_valid(Request $request) {\n\n if($request->id) {\n\n $user = User::find($request->id);\n\n $user->token_expiry = Helper::generate_token_expiry();\n\n $user->save();\n\n }\n\n return response()->json(['data'=>$request->all(), 'success'=>true]);\n\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 static function is_csrf_token_recent() {\n\t\t$max_elapsed_time = Security_Config::$csrf_token_lifetime;\n\t\t$token_time = $_SESSION ['csrf_token_time'];\n\t\tif (($token_time + $max_elapsed_time) > time ()) {\n\t\t\treturn TRUE;\n\t\t} else\n\t\t\treturn FALSE;\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}", "public function validateRefreshToken()\n {\n try {\n\n // Try to get token from header\n $token = $this->getBearerToken();\n \n // let's check if refreshToken is valid\n $refreshToken = JWT::decode($token, API_REFRESH_TOKEN_KEY, [''.API_ALGORITHM.'']);\n \n //print_r($refreshToken);\n $db = new Database();\n $this->database = $db->connect(); \n \n $tokenType = TOKEN_TYPE_REFRESH;\n \n try {\n $sql = $this->database->prepare(\"SELECT UserId, \n Token FROM \n tokens WHERE \n Token = :token AND \n TokenType = :tokentype\");\n $sql->bindParam(\":token\", $token);\n $sql->bindParam(\":tokentype\", $tokenType);\n $sql->execute();\n $dbToken = $sql->fetch(PDO::FETCH_ASSOC);\n } catch (Exception $e) {\n $this->throwException(DATABASE_ERROR, \"Database select error.\");\n }\n \n //print_r($tokens);\n \n // if there is no any results from db return that there is no matchign refresh token\n if (!is_array($dbToken)) {\n $this->response(NO_MATCHING_REFRESH_TOKEN, \"No matching refresh token found.\"); \n }\n \n // Not needed, JWT::decode should throw an exception before this\n if ($refreshToken->exp < time()) {\n $this->throwException(REFRESH_TOKEN_ERROR, \"dsadsa\");\n }\n \n //print_r($dbToken);//debug\n \n //if validation has passed all above we still have to check if user is not disabled\n $sql = null;\n try {\n $sql = $this->database->prepare(\"SELECT Id, Disabled FROM users WHERE Id = :id\");\n $sql->bindParam(\":id\", $dbToken['UserId']);\n $sql->execute();\n $user = $sql->fetch(PDO::FETCH_ASSOC);\n } catch (Exception $e) {\n $this->throwException(DATABASE_ERROR, \"Database select error.\");\n }\n \n if ($user['Disabled'] == 1 ) {\n $this->response(USER_IS_DISABLED, \"This user is disabled.\");\n }\n \n // if refreshToken is valid. Let's generate new Tokens. Both tokens are always generated, \n // so it is enough to call generateTokens\n $this->generateTokens($dbToken['UserId'], $refreshToken->exp);\n \n } catch (Exception $e) {\n //close db connection\n //$this->database->disconnect();\n $this->throwException(REFRESH_TOKEN_ERROR, \"RefreshToken: \".$e->getMessage());\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}", "protected function checkSessionToken() {}", "private function tokenExist() {\n if (!$this->webhook->token) {\n // throw an exception\n $this->missingEx('token');\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 validateClientToken($param){\n\t\t$this->param = $param;\n\n\t\t$token = $this->getBearer();\n\n\t\t$result = [\n\t\t\t'error' => 1,\n\t\t\t'message' => '',\n\t\t\t'payload' => null\n\t\t];\n\t\t$method = $this->param->getServer('REQUEST_METHOD');\n\t\tif($method === 'OPTIONS' || $method === 'PUT'){\n\t\t\tdie;\n\t\t}\n\n\t\tif($token && is_array($token)){\n\t\t\tlist($header, $payload, $signature) = $token;\n\t\t\t$dataEncoded = $header . '.' . $payload;\n\n\t\t\t$rawSignature = hash_hmac(\"sha256\", utf8_encode($dataEncoded), utf8_encode($this->siteConfig->getData('site_api_key')));\n\n\t\t\t$isValid = hash_equals($rawSignature, $signature);\n\n\t\t\tif($isValid){\n\t\t\t\t$payloadDecode = json_decode(base64_decode($payload), true);\n\t\t\t\tif(isset($payloadDecode['tzoffset']) && isset($payloadDecode['tzname'])){\n\t\t\t\t\t$tzoffset = $payloadDecode['tzoffset'];\n\t\t\t\t\t$tzname = $payloadDecode['tzname'];\n\n\t\t\t\t\t$tz = $this->validateTimeZone($tzoffset, $tzname);\n\n\t\t\t\t\tif($tz){\n\t\t\t\t\t\tdate_default_timezone_set($tz);\n\n\t\t\t\t\t\t$now = time();\n\t\t\t\t\t\t$tokenTime = strtotime($payloadDecode['iat']);\n\t\t\t\t\t\t$max_valid_time = $this->siteConfig->getData('site_api_token_max_time', 60*3);\n\n\t\t\t\t\t\t$gap = $now - $tokenTime;\n\n\t\t\t\t\t\t$expEnabled = (int)$this->siteConfig->getData('site_api_exp_enabled', 0);\n\n\t\t\t\t\t\t$result['error'] = 0;\n\t\t\t\t\t\t$result['message'] = $this->_lang->getLang('success');\n\t\t\t\t\t\t$result['payload'] = $payloadDecode;\n\n\t\t\t\t\t\tif($expEnabled == 1){\n\t\t\t\t\t\t\tif($gap > $max_valid_time){\n\t\t\t\t\t\t\t\t$result['error'] = 1;\n\t\t\t\t\t\t\t\t$result['message'] = $this->_lang->getLang('api_expired_token');\n\t\t\t\t\t\t\t\t$result['payload'] = null;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn $result;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t$result['message'] = $this->_lang->getLang('invalid_request');\n\t\t}\n\t}", "public function generateToken(){\n //if(empty($_SESSION['token']) && (empty($_SESSION['tokenAge']) || (time() - (int)$_SESSION['tokenAge']) > (int)$this->maxAge)){\n if(function_exists('random_bytes')){\n $_SESSION['token'] = bin2hex(random_bytes(32));\n }elseif(function_exists('mcrypt_create_iv')){\n $_SESSION['token'] = bin2hex(mcrypt_create_iv(32, MCRYPT_DEV_URANDOM));\n }else{\n $_SESSION['token'] = bin2hex(openssl_random_pseudo_bytes(32));\n }\n $_SESSION['tokenAge'] = time();\n //} \n }", "public static function validate()\n {\n $request = Request::getInstance();\n $csrf = Session::get('csrf');\n\n if(!$csrf) self::rejectRequest();\n\n $isValid = hash_equals($request->csrf, $csrf);\n\n self::generateToken();\n\n if(!$isValid) {\n\n self::rejectRequest();\n\n }\n }", "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 }", "function verifyToken() {\n $retVal = array(\"userid\"=>\"\",\"retState\"=>\"\");\n $headerarray = getallheaders();\n $authtoken = $headerarray[\"Authorization\"];\n\n //next we verity in the token table\n $tokenCheck = TokenQuery::create()->findOneByToken($authtoken);\n if($tokenCheck == \"\"){\n echo \"invalid token\";\n $retVal[\"retState\"] = false;\n }else{\n //check token expiration\n if($tokenCheck->getExpires()-time() > -1){\n echo \"token expired\";\n $retVal[\"retState\"] = false;\n }else{\n //lets get userid\n $retVal[\"userid\"] = $tokenCheck->getUserid();\n $retVal[\"retState\"] = true;\n }\n }\n return $retVal;\n}", "function verifyToken() {\n $retVal = array(\"userid\"=>\"\",\"retState\"=>\"\");\n $headerarray = getallheaders();\n $authtoken = $headerarray[\"Authorization\"];\n\n //next we verity in the token table\n $tokenCheck = TokenQuery::create()->findOneByToken($authtoken);\n if($tokenCheck == \"\"){\n echo \"invalid token\";\n $retVal[\"retState\"] = false;\n }else{\n //check token expiration\n if($tokenCheck->getExpires()-time() > -1){\n echo \"token expired\";\n $retVal[\"retState\"] = false;\n }else{\n //lets get userid\n $retVal[\"userid\"] = $tokenCheck->getUserid();\n $retVal[\"retState\"] = true;\n }\n }\n return $retVal;\n}", "public function token_created()\n {\n return $this->token_created;\n }", "public function isTokenExpired()\n {\n return Carbon::now()->greaterThanOrEqualTo($this->getTokenExpiry()->subMinutes(5));\n }", "public function isTokenExpired()\n {\n return Carbon::now()->greaterThanOrEqualTo($this->getTokenExpiry()->subMinutes(5));\n }", "function valida_token($token) {\n global $mdb2;\n global $log;\n global $type;\n\n $sql = \"SELECT token_id FROM public.token \" .\n \"WHERE token ='\" . $token . \"' AND extract(epoch from age(now(),fecha))<60\";\n $res = & $mdb2->query($sql);\n if (MDB2::isError($res)) {\n return false;\n }\n\n //SI ENCUENTRA EL TOKEN LO ELIMINA Y PROCEDE\n if ($row = $res->fetchRow()) {\n if ($type->content != 'pdf' or isset($_REQUEST[\"acceso_pdftohtml\"])) {\n $token_id = $row[\"token_id\"];\n $sql2 = \"DELETE FROM public.token WHERE token_id = \" . $token_id;\n $res2 = & $mdb2->query($sql2);\n if (MDB2::isError($res2)) {\n return false;\n }\n }\n return true;\n } else {\n return false;\n }\n}", "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 }", "private function createToken()\n {\n $this->token = md5(time().uniqid());\n return true;\n }", "function csrf_token_is_valid()\r\n{\r\n if (isset($_POST['csrf_token'])) {\r\n $user_token = $_POST['csrf_token'];\r\n $stored_token = $_SESSION['csrf_token'];\r\n return $user_token === $stored_token;\r\n }\r\n\r\n return false;\r\n}", "function expire_token() {\n return time() + (60 * 60 * 24);\n}", "private function createCSRFToken() {\r\n\t \r\n\t // Check that the token is still valid\r\n\t if( empty($this->input('session', 'token_creation')) ||\r\n\t (time() - $this->input('session', 'token_creation')) > TOKEN_KEEPALIVE ) {\r\n \t\t// The token needs to be refreshed, delete every previous request token for the user\r\n \t\tSecurity::deleteToken();\r\n \t\t\r\n \t\t// Create a new token\r\n \t\t$token = Security::generateToken();\r\n \t\t\r\n \t\t// Store the token in the session\r\n \t\t$this->input('session', 'token', $token);\r\n \t\t\r\n \t\t// Set the token creation time to the current time\r\n \t\t$this->input('session', 'token_creation', (string)time());\r\n\t }\r\n\t\t\r\n\t\t// Set the token in the template\r\n\t\t$this->output->setArguments(array(VAR_CSRF_TOKEN => $this->input('session', 'token')));\r\n\t}", "public function hasTokenExpired()\n {\n $tokenTimestamp = $this->flagManager->getFlagData(self::TOKEN_RECEIVED_TIMESTAMP);\n if ($tokenTimestamp !== null) {\n $date = (new \\DateTime())->getTimestamp();\n $validity = $this->flagManager->getFlagData(self::TOKEN_EXPIRES_IN_FLAG_NAME);\n return $date > $tokenTimestamp + $validity - self::TOKEN_VALIDITY_MARGIN_IN_SECONDS;\n }\n return true;\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 }", "public function isTokenExpired()\n {\n $expireTime = $this->getDataValue('expiration') - time();\n return $expireTime < 5;\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 }", "public static function validToken()\r\n {\r\n $header = apache_request_headers();\r\n if(!isset($_SESSION['CSRF_TOKEN']) || !isset($header['CSRF_TOKEN']) || $header['CSRF_TOKEN'] != $_SESSION['CSRF_TOKEN']){\r\n return false;\r\n }\r\n\r\n return true;\r\n }", "function almost_expired($jwt) {\n //$ALMOST_EXPIRED_RENEW = 3600;\n $almost_expired_gap = ALMOST_EXPIRED_GAP;\n\n // if we use class we dont need to repeat get configuration\n $config = Factory::fromFile('config/config-moorecloud.php', true);\n $secretKey = base64_decode($config->get('jwt')->get('key'));\n $algorithm = $config->get('jwt')->get('algorithm');\n JWT::$leeway = 60; \n $decoded = JWT::decode($jwt,\n $secretKey,\n [$algorithm]\n );\n $decoded_array = (array) $decoded;\n \n $expire = $decoded_array['exp'];\n $gap = $expire - time();\n if ($gap > 0 && $gap <= $almost_expired_gap) {\n echo \"need renew\";\n return true;\n } else {\n echo \"good token\";\n }\n\n return false;\n}", "function csrf_token_is_valid() {\n\tif(isset($_POST['csrf_token'])) {\n\t\t$user_token = $_POST['csrf_token'];\n\t\t$stored_token = $_SESSION['csrf_token'];\n\t\treturn $user_token === $stored_token;\n\t} else {\n\t\treturn false;\n\t}\n}", "public function getTokenAge($token = null) {\n\t\tif (is_null($token))\n\t\t\t$token = $this->createToken();\n\n\t\t$tokenName = is_array($token) ? $token['name'] : $token;\n\n\t\treturn time() - $_SESSION[\"{$tokenName}_time\"];\n\t}", "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(): void\n {\n $fromSession = BackendModel::getSession()->get('csrf_token', '');\n $fromGet = $this->getRequest()->query->get('token');\n\n if ($fromSession !== '' && $fromGet !== '' && $fromSession === $fromGet) {\n return;\n }\n\n // clear the token\n BackendModel::getSession()->set('csrf_token', '');\n\n $this->redirect(\n BackendModel::createUrlForAction(\n $this->url->getDefaultActionForCurrentModule(),\n null,\n null,\n [\n 'error' => 'csrf',\n ]\n )\n );\n }", "function check_csrf(): void\n {\n $this->authService->checkToken();\n }", "public static function check_xsrf_token() {\n\t\t\n\t\t# only check POST requests\n\t\tif(self::$check_xsrf && !empty($_POST)) {\n\t\t\t\n\t\t\t# verify the token\n\t\t\tSession::check_xsrf_token_string($_POST[self::Token_Variable]);\n\t\t\t\n\t\t}\n\t}", "private function checkCSRFToken() {\r\n\t\t// Check if a form has been sent, and this is not a client init request \r\n\t\tif( $this->input('request', 'submit') &&\r\n\t\t !($this->getClass() === 'ActionsClient' && $this->getMethod() === 'init')) {\r\n\t\t\t// It did, check the token\r\n\t\t\tif( $this->input('session', 'token') !== $this->input('request', 'token') ) {\r\n\t\t\t\t// The token isn't valid! Raise an error but don't log it\r\n\t\t\t\terror('Invalid CSRF token!', false);\r\n\t\t\t}\r\n\t\t}\r\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 function testLoginTokenFaillureExpired(){\n $client = static::createClient();\n $data = '{\n \"token_session\": \"8b0d9c93a3545d0d99f6486208dd3659ec802ee1\",\n \"login\": \"santevet\"\n }';\n $crawler = $client->request(\n 'PUT', '/generate/token/temp', array(), array(),\n array(\n 'CONTENT_TYPE' => 'application/json',\n 'HTTP_X-Requested-With' => 'XMLHttpRequest'\n ),\n $data\n ); \n $response = $client->getResponse();\n $this->assertEquals(200, $response->getStatusCode());\n $this->assertSame('application/json', $response->headers->get('Content-Type'));\n $_data = json_decode($response->getContent(), true);\n \n $data = '{\n \"login\": \"santevet\",\n \"token_temp\": \"'.$_data['token_temp'].'\",\n \"expiration\": \"2015-01-01 00:00:00\"\n }';\n $crawler = $client->request(\n 'POST', '/login/token', array(), array(),\n array(\n 'CONTENT_TYPE' => 'application/json',\n 'HTTP_X-Requested-With' => 'XMLHttpRequest'\n ),\n $data\n );\n $response = $client->getResponse();\n $this->assertEquals(200, $response->getStatusCode());\n $this->assertSame('application/json', $response->headers->get('Content-Type'));\n $body = json_decode($response->getContent(), true);\n $this->assertArrayHasKey('token_session', $body);\n $this->assertArrayHasKey('validity', $body);\n $this->assertEquals(null,$body['token_session']);\n $this->assertEquals(null,$body['validity']);\n }", "public function checkToken(): void\n {\n $fromSession = BackendModel::getSession()->get('csrf_token', '');\n $fromGet = $this->getRequest()->query->get('token');\n\n if ($fromSession !== '' && $fromGet !== '' && $fromSession === $fromGet) {\n return;\n }\n\n // clear the token\n BackendModel::getSession()->set('csrf_token', '');\n\n $this->redirect(\n BackendModel::createUrlForAction(\n $this->getContainer()->get('url')->getDefaultActionForCurrentModule(),\n null,\n null,\n [\n 'error' => 'csrf',\n ]\n )\n );\n }", "public static function verify()\n {\n // Check for POST request\n if($_SERVER['REQUEST_METHOD'] === 'POST')\n {\n if(!isset($_SESSION['csrf_token']) || !isset($_POST['csrf_token']) || $_SESSION['csrf_token'] !== $_POST['csrf_token'])\n {\n // Kill the application\n die('Invalid Token');\n }\n }\n }", "function verifyTokenValidity($authToken) { \n try {\n $decoded = JWT::decode($authToken, secretKey, array('HS256'));\n if(count($decoded) > 0){\n return TRUE;\n }\n \n } catch (Exception $ex) { \n $jsonData = new stdClass();\n //$message = 'Caught exception: '.$ex->getMessage();\n $message = currentUTCTime.','.nextOneHourTime;\n $bool = 0;\n $status = 401;\n //$code = REST_Controller::HTTP_OK;\n $setParams = [\n 'success' => $bool,\n 'status' => $status,\n 'message' => $message,\n 'result' => $jsonData\n ];\n // echo json_encode($setParams);die;\n return json_encode($setParams); \n exit();\n }\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 }", "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 }", "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 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 }", "private function csrfWatchdog()\n {\n if (empty($_SESSION['token'])) {\n $_SESSION['token'] = base64_encode(openssl_random_pseudo_bytes(32));\n }\n\n if (!empty($_POST)) {\n if (empty($_POST['csrf_check']) || !hash_equals($_POST['csrf_check'], $_SESSION['token'])) {\n Magneto::error('csrf_violation', 'CSRF Violation');\n }\n }\n }", "function token_invalidate()\r\n{\r\n\tglobal $DATABASE;\r\n\t\r\n\t$unix_ts = time();\r\n\t\r\n\tforeach($DATABASE->execute_query('SELECT * FROM `logged_in`') as $value)\r\n\t{\r\n\t\tif(($unix_ts - $value[3]) > 259200)\r\n\t\t\t$DATABASE->execute_query(\"DELETE FROM `logged_in` WHERE time = ?\", \"i\", $value[3]);\r\n\t}\r\n}", "public function accessTokenValid()\n {\n return $this->expireTime > time();\n }", "public function testLoginTokenFaillureTokenTemp(){\n $client = static::createClient();\n $data = '{\n \"token_session\": \"8b0d9c93a3545d0d99f6486208dd3659ec802ee1\",\n \"login\": \"santevet\"\n }';\n $crawler = $client->request(\n 'PUT', '/generate/token/temp', array(), array(),\n array(\n 'CONTENT_TYPE' => 'application/json',\n 'HTTP_X-Requested-With' => 'XMLHttpRequest'\n ),\n $data\n ); \n $response = $client->getResponse();\n $this->assertEquals(200, $response->getStatusCode());\n $this->assertSame('application/json', $response->headers->get('Content-Type'));\n $_data = json_decode($response->getContent(), true);\n \n $data = '{\n \"login\": \"santevet\",\n \"token_temp\": \"error_token_temp\",\n \"expiration\": \"'.$_data['expiration'].'\"\n }';\n $crawler = $client->request(\n 'POST', '/login/token', array(), array(),\n array(\n 'CONTENT_TYPE' => 'application/json',\n 'HTTP_X-Requested-With' => 'XMLHttpRequest'\n ),\n $data\n );\n $response = $client->getResponse();\n $this->assertEquals(200, $response->getStatusCode());\n $this->assertSame('application/json', $response->headers->get('Content-Type'));\n $body = json_decode($response->getContent(), true);\n $this->assertArrayHasKey('token_session', $body);\n $this->assertArrayHasKey('validity', $body);\n $this->assertEquals(null,$body['token_session']);\n $this->assertEquals(null,$body['validity']);\n }", "public function validate($token);", "function updateCSRF()\n{\n\t//If the current minute is >= 30, round down to 30, else, round down to 00\n\t$minute = (date(\"i\") >= 30) ? \"30\" : \"00\";\n\n\t//Construct a string of the current date and time rounded to the previous half-hour\n\t$time = (date(\"Y-m-d H:\") . $minute);\n\n\t$past = (new datetime(\"30 minutes ago\"));\n\t\n\t$pastMinute = $past->format(\"i\");\n\t$pastMinute = ($pastMinute >= 30) ? \"30\" : \"00\";\n\n\t//Create a CSRF token string for the previous 30 minutes with the date, time, and user's username\n\t$pastCsrfToken = ($past->format(\"Y-m-d H:\") . $pastMinute . \" \" . $_SESSION[\"userInfo\"][\"userName\"]);\n\n\t//Create a CSRF token string for the current 30 minutes with the date, time, and user's username\n\t$csrfToken = $time . \" \" . $_SESSION[\"userInfo\"][\"userName\"];\n\n\t//Return the hashed value of the current and previous CSRF tokens\n\t$_SESSION[\"csrf\"] = md5($csrfToken);\n\t$_SESSION[\"pastCsrf\"] = md5($pastCsrfToken);\n\n}", "public function validateToken() \n {\n return API::response()->array(['status' => 'success'])->statusCode(200);\n }", "public function verify()\n {\n $users_email = $this->input->get('users_email');\n $token = $this->input->get('tk_token');\n\n $users = $this->db->get_where('tbl_users',['users_email' => $users_email])->row_array();\n\n if($users){\n $tbl_token = $this->db->get_where('tbl_token', ['tk_token' => $token])->row_array();\n\n if($tbl_token) {\n if(time() - $tbl_token['tk_time'] < ('60*60*24')) {\n\n $this->M_auth->Activation($users_email,$token);\n\n // $this->db->set('users_status',1);\n // $this->db->where('users_email',$users_email);\n // $this->db->update('tbl_users');\n // $this->db->delete('tbl_token',['tk_email' =>$token]);\n\n $this->session->set_flashdata('message','<div class=\"alert alert-success\" role=\"alert\">'. $users_email . '\n telah di aktivasi. silahkan login</div>');\n redirect('auth');\n\n } else {\n //token expired\n $this->db->delete('tbl_users',['users_email' => $users_email]);\n $this->db->delete('tbl_token',['tk_email' => $token]);\n\n $this->session->set_flashdata('message', '<div class=\"alert alert-danger\" role=\"alert\">Aktivasi akun gagal!, token kadaluarsa</div>');\n }\n\n } else {\n //token\n $this->session->set_flashdata('message','<div class=\"alert alert-danger\" role=\"alert\">Aktivasi akun gagal! token salah. </div>');\n redirect('auth');\n }\n\n } else {\n $this->session->set_flashdata('message', '<div class=\"alert alert-danger\" role=\"alert\">Aktivasi akun anda gagal! akun salah</div>');\n redirect('auth');\n }\n\n }", "private static function setSubmitToken() {\n// preventing double submitting\n $token = md5(time());\n $_SESSION[$token] = true;\n\n return $token;\n }", "public function token_expires()\n {\n return $this->token_expires;\n }", "function newToken($params = array()){\n\t\t$data =\t[\n\t\t\t\"client_id\"=>$this->client_id, \n\t\t\t\"client_secret\"=> $this->client_secret,\n\t\t\t\"refresh_token\"=> $this->refresh_token\n\t\t\t];\n\t\t\n\t\t//echo json_encode($data), PHP_EOL; //die();\n\t\t$r = false;\n\t\tMpApi::sleep(); \n\t\t$response = json_decode($this->callCurl('POST' , '/new/token' , false, $data ),true);\n\t\t\n\t\t//print_r($response); die('pp');\n\t\t\n\t\tif(isset($response['access_token']) AND $response['access_token'] != ''){\n\t\t\t$this->access_token = $response['access_token'];\n\t\t\t$this->refresh_token = $response['refresh_token'];\n\t\t\t//echo '<!-- New tokens generated: ' . print_r($response,1) . '-->';\n\t\t\t$r = $response['access_token'];\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t\n\t\treturn $r;\n\t}", "public static function checkValidateToken(array $decodedToken): bool {\n $expired_at = new \\DateTime($decodedToken['expired_at']);\n\n //Get actually time\n $now = new \\DateTime();\n\n //Check date validity\n return ($expired_at < $now);\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 testValidateToken()\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}", "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}", "function csrfVerify(){\n\tstatic $valid=NULL;\n\tif(is_null($valid)){\n\t\tif($_SESSION['ver'] && hashEquals($_POST['ver'],$_SESSION['ver']))$valid=true;\n\t\tunset($_POST['ver'],$_SESSION['ver']);\n\t}\n\treturn $valid;\n}", "function test_token($keep = false) {\n\tcall($_SESSION['token']);\n\tcall($_REQUEST['token']);\n\n\tif (DEBUG || ('games' == $_SERVER['HTTP_HOST']) || empty($GLOBALS['_DETECTHACKS'])) {\n\t\treturn;\n\t}\n\n\tif ( ! isset($_SESSION['token']) || ! isset($_REQUEST['token'])\n\t\t|| (0 !== strcmp($_SESSION['token'], $_REQUEST['token'])))\n\t{\n\t\tdie('Invalid request attempt detected.<br /><br />If you have reached this page in error, please go back,<br />clear your cache, refresh the page, and try again.');\n\t}\n\n\t// renew the token\n\tif ( ! $keep) {\n\t\t$_SESSION['token'] = md5(uniqid(rand( ), true));\n\t}\n}", "protected function regenerateTokenIfNotNew()\n {\n if ($this->tokenExpiry !== null) {\n $this->regenerateToken();\n }\n }", "public function validate ( $token ) { return $this->server->token2uid( $token ) > 0; }", "public function isMyTokenExpired() {\n if ($this->getExpiresAt() instanceof \\DateTime) {\n return $this->getExpiresAt()->getTimestamp() < time();\n }\n return null;\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}", "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 handleTokenRefreshRequest() {\n\t\tif (!elgg_is_xhr()) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// the page's session_token might have expired (not matching __elgg_session in the session), but\n\t\t// we still allow it to be given to validate the tokens in the page.\n\t\t$session_token = get_input('session_token', null, false);\n\t\t$pairs = (array) get_input('pairs', [], false);\n\t\t$valid_tokens = (object) [];\n\t\tforeach ($pairs as $pair) {\n\t\t\tlist($ts, $token) = explode(',', $pair, 2);\n\t\t\tif ($this->validateTokenOwnership($token, $ts, $session_token)) {\n\t\t\t\t$valid_tokens->{$token} = true;\n\t\t\t}\n\t\t}\n\n\t\t$ts = $this->getCurrentTime()->getTimestamp();\n\t\t$token = $this->generateActionToken($ts);\n\t\t$data = [\n\t\t\t'token' => [\n\t\t\t\t'__elgg_ts' => $ts,\n\t\t\t\t'__elgg_token' => $token,\n\t\t\t\t'logged_in' => $this->session->isLoggedIn(),\n\t\t\t],\n\t\t\t'valid_tokens' => $valid_tokens,\n\t\t\t'session_token' => $this->session->get('__elgg_session'),\n\t\t\t'user_guid' => $this->session->getLoggedInUserGuid(),\n\t\t];\n\n\t\telgg_set_http_header(\"Content-Type: application/json;charset=utf-8\");\n\t\treturn elgg_ok_response($data);\n\t}", "public function getTokenExpiry()\n {\n return $this->tokenExpiry;\n }", "public function getTokenExpiry()\n {\n return $this->tokenExpiry;\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 }", "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 function testEmailVerificationTokenTooOld(): void {\n\t\t$user = $this->createUser();\n\t\t$newEmail = 'too.tired.to@make.up.names';\n\t\t$token = $this->createToken($user->id, $newEmail);\n\t\t$token->created_at = '2019-12-18 17:14:00';\n\t\t$token->update();\n\t\t$response = $this->withHeaders([\n\t\t\t'Accept' => 'application/json',\n\t\t\t'Content-Type' => 'application/json',\n\t\t])->getJson($this->route.'/email/verify/'.$token->token);\n\t\t$response->assertStatus(HttpStatus::STATUS_UNAUTHORIZED);\n\t\t$response->assertJson([\n\t\t\t'error' => 'This e-mail verification token is invalid.'\n\t\t]);\n\t\t$this->assertDatabaseMissing('users', [\n\t\t\t'id' => $user->id,\n\t\t\t'email' => $newEmail\n\t\t]);\n\t}", "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 }", "protected function validateRecoveryToken($token) {\n $data = explode('_', $token);\n return (time() - $data[1] <= 86400);\n }", "protected function createTokenTimestamp(): int\n {\n return time();\n }", "public function token() {\r\n\t\t\r\n\t\t$response = $this->OAuth2->getAccessTokenData();\r\n\t\t\r\n\t\tif (empty($response)) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\t$this->set($response);\r\n\t\t\r\n\t}", "function _generate_token($data) {\n\n //generate 32 digit random string\n $random_string = $this->_generate_rand_str();\n\n //build data array variables (required for table insert)\n if (!isset($data['expiry_date'])) {\n $data['expiry_date'] = time() + $this->default_token_lifespan;\n }\n \n $data['token'] = $random_string;\n $params = $data;\n\n if (isset($params['set_cookie'])) {\n unset($params['set_cookie']);\n }\n\n $this->model->insert($params, 'trongate_tokens');\n\n if (isset($data['set_cookie'])) {\n setcookie('trongatetoken', $random_string, $data['expiry_date'], '/');\n } else {\n $_SESSION['trongatetoken'] = $random_string;\n }\n\n return $random_string;\n }", "public function create_token()\n {\n $this->load->library('wsresponse');\n $this->load->library('wschecker');\n $this->wsresponse->setOptionsResponse();\n \n $this->load->model('rest_model');\n $remote_addr = $this->wschecker->getHTTPRealIPAddr();\n $user_agent = $this->wschecker->getHTTPUserAgent();\n $prepare_str = $remote_addr . \"@@\" . $user_agent . \"@@\" . time();\n $ws_token = hash(\"SHA256\", $this->wschecker->encrypt($prepare_str));\n\n $inser_arr['vWSToken'] = $ws_token;\n $inser_arr['vIPAddress'] = $remote_addr;\n $inser_arr['vUserAgent'] = $user_agent;\n $inser_arr['dLastAccess'] = date(\"Y-m-d H:i:s\");\n $res = $this->rest_model->insertToken($inser_arr);\n if ($res) {\n $settings_arr['success'] = 1;\n $settings_arr['message'] = \"Token generated successfully..!\";\n $data_arr['ws_token'] = $ws_token;\n } else {\n $settings_arr['success'] = 0;\n $settings_arr['message'] = \"Token generation failed..!\";\n $data_arr = array();\n }\n $responce_arr['settings'] = $settings_arr;\n $responce_arr['data'] = $data_arr;\n $this->wsresponse->sendWSResponse($responce_arr);\n }" ]
[ "0.7204151", "0.6869637", "0.685034", "0.67697984", "0.6738506", "0.673717", "0.6725861", "0.6688316", "0.65848976", "0.6579846", "0.6467141", "0.64225316", "0.638734", "0.63692206", "0.63389575", "0.63131773", "0.63054377", "0.6282979", "0.6262835", "0.62586856", "0.62449896", "0.62431824", "0.6218967", "0.6217251", "0.6215929", "0.6212991", "0.62111187", "0.6143649", "0.6111441", "0.61089516", "0.61053413", "0.6088594", "0.60741234", "0.60741234", "0.6065929", "0.60496944", "0.60496944", "0.6025785", "0.6023774", "0.6023557", "0.6014991", "0.60013664", "0.60006034", "0.5995127", "0.59863627", "0.59757507", "0.59675896", "0.59635884", "0.5959309", "0.59517056", "0.59434384", "0.5931943", "0.5921825", "0.5915229", "0.5912857", "0.59106684", "0.5908766", "0.5908331", "0.5905319", "0.58890975", "0.58858746", "0.58793354", "0.5872319", "0.5857991", "0.58573675", "0.58542764", "0.5851527", "0.58424443", "0.5836983", "0.58345985", "0.5828906", "0.58217317", "0.58114207", "0.5807098", "0.5802315", "0.5797085", "0.5793424", "0.5774957", "0.5769405", "0.5767516", "0.57633376", "0.5753039", "0.5747635", "0.57426536", "0.57378197", "0.57325995", "0.5730601", "0.57256943", "0.57241297", "0.5716656", "0.5716656", "0.57070917", "0.57016236", "0.5692527", "0.5688029", "0.56863636", "0.5686", "0.56844085", "0.56805295", "0.56785643" ]
0.6152656
27
Create hidden input[name=_once | value=token] field with session token
public function createTokenInput(){ $this->generateToken(); return '<input type="hidden" name="_once" value="' . $_SESSION['token'] . '">'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function createHiddenToken() {\n return '<input type=\"hidden\" name=\"access_token\" value=\"' . $this->getToken() . '\" />';\n }", "function csrf_field()\n {\n $token = app()->services()->session()->CSRFToken;\n return \"<input type='hidden' name='csrf_token' value='$token'>\";\n }", "function generate_form_token($form) {\n\t// Generate a token from an unique value\n\t$token = md5(uniqid(microtime(), true));\n\n\t// Write the generated token to the session variable\n\t// to check it against the hidden field when the form is sent\n\t$_SESSION[$form . '_token'] = $token;\n\n\treturn $token;\n}", "private static function set_token() {\n\t\t\t// Bring in the $session variable\n\t\t\tglobal $session;\n\t\t\t// Generate a random token of 64 length\n\t\t\t$token = self::generate_token(64);\n\t\t\t// Store it in the $_SESSION\n\t\t\t$session->set('csrf_token', $token);\n\t\t}", "function renderToken(){\n if($this->useValidationToken == true){\n //Generate token and place it in a session\n $token = md5(uniqid());\n Session::put(\"form_token\", $token);\n \n //Render the token code out to use on forms\n return '<input type=\"hidden\" name=\"form_token\" value=\"'.$token.'\" />';\n }\n }", "static function token_compiler ()\n {\n return '<input type=\"hidden\" name=\"_token\" value=\"<?=csrf_token()?>\">';\n }", "function csrf_field()\n {\n return new HtmlString('<input type=\"hidden\" name=\"_token\" value=\"' . csrf_token() . '\">');\n }", "public function getCsrfField(): string\n {\n return '<input type=\"hidden\" name=\"_token\" value=\"' . $this->session->getToken() . '\">';\n }", "function protectForm() {\n\t\techo \"<input type=\\\"hidden\\\" name=\\\"spack_token\\\" value=\\\"\".$this->token.\"\\\" />\";\n\t}", "private static function setSubmitToken() {\n// preventing double submitting\n $token = md5(time());\n $_SESSION[$token] = true;\n\n return $token;\n }", "private static function generateToken()\n {\n Session::set('csrf', bin2hex(random_bytes(32)));\n }", "function generateFormToken( $form ) {\r\n\t\t\r\n\t\t // generate a token from an unique value\r\n\t\t\t$token = md5( uniqid( microtime( ), true) ); \r\n\t\t\t\r\n\t\t\t// Write the generated token to the session variable to check it against the hidden field when the form is sent\r\n\t\t\t$_SESSION[$form.'_token'] = $token; \r\n\t\t\t\r\n\t\t\treturn $token;\r\n\t\r\n\t\t}", "function csrf_field()\n {\n return '<input type=\"hidden\" name=\"_token\" value=\"' . csrf_token() . '\">';\n }", "public function ferry_sync_connect_token() {\n\t\tif ( ! empty( $_REQUEST[ self::R_SYNC_TOKEN ] ) ) {\n\t\t\techo '<input type=\"hidden\" name=\"' . esc_attr( self::R_SYNC_TOKEN ) . '\" value=\"' . esc_attr( $_REQUEST[ self::R_SYNC_TOKEN ] ) . '\">';\n\t\t}\n\t}", "function generateFormToken($form) {\n\t\t$token = md5(uniqid(microtime(), true));\n\n\t\t// Write the generated token to the session variable to check it against the hidden field when the form is sent\n\t\t$_SESSION[$form . '_token'] = $token;\n\t\treturn $token;\n\t}", "protected function generateSessionToken() {}", "function nonce_input() {\n\techo '<input type=\"hidden\" name=\"nonce\" id=\"form_key\" value=\"' . $_SESSION['nonce'] . '\">';\n}", "public function getTokenInput()\n {\n if ($this->Token) {\n return '<input type=\"hidden\" name=\"'.$this->TokenInputName.'\" value=\"' . $this->Token . '\" />';\n }\n return false;\n }", "private static function create_csrf_token() {\n\t\t$token = self::csrf_token ();\n\t\t$_SESSION ['csrf_token'] = $token;\n\t\t$_SESSION ['csrf_token_time'] = time ();\n\t\treturn $token;\n\t}", "private function createCSRFToken() {\r\n\t \r\n\t // Check that the token is still valid\r\n\t if( empty($this->input('session', 'token_creation')) ||\r\n\t (time() - $this->input('session', 'token_creation')) > TOKEN_KEEPALIVE ) {\r\n \t\t// The token needs to be refreshed, delete every previous request token for the user\r\n \t\tSecurity::deleteToken();\r\n \t\t\r\n \t\t// Create a new token\r\n \t\t$token = Security::generateToken();\r\n \t\t\r\n \t\t// Store the token in the session\r\n \t\t$this->input('session', 'token', $token);\r\n \t\t\r\n \t\t// Set the token creation time to the current time\r\n \t\t$this->input('session', 'token_creation', (string)time());\r\n\t }\r\n\t\t\r\n\t\t// Set the token in the template\r\n\t\t$this->output->setArguments(array(VAR_CSRF_TOKEN => $this->input('session', 'token')));\r\n\t}", "public function formAction()\n {\n $token = Generator::getRandomString(25);\n $this->set(\"token\", $token);\n $_SESSION['token'] = $token;\n }", "public function renderFormTokenField($token = null) {\n\t\tif (is_null($token))\n\t\t\t$token = $this->createToken();\n\n\t\t$tokenValue = is_array($token) ? $token['value'] : $token;\n\n\t\treturn '<input type=\"hidden\" name=\"form_token\" value=\"' . $tokenValue . '\" id=\"form_token\">';\n\t}", "public function hiddenToken() {\n return $this->request->createHiddenToken() . PHP_EOL;\n }", "public static function generateToken()\r\n {\r\n $_SESSION['CSRF_TOKEN'] = bin2hex(openssl_random_pseudo_bytes(32));\r\n }", "private static function insert_token( $form )\n\t{\n\t\t$timestamp = time();\n\t\t$token = self::create_token( $timestamp );\n\t\t$form->append( 'hidden', 'token', 'null:null' )->value = $token;\n\t\t$form->append( 'hidden', 'token_time', 'null:null' )->value = $timestamp;\n\t\treturn $form;\n\t}", "public static function csrf_token_tag() {\n\t\t$token = self::create_csrf_token ();\n\t\treturn \"<input type=\\\"hidden\\\" name=\\\"csrf_token\\\" value=\\\"\" . $token . \"\\\">\";\n\t}", "public function get_csrf_token() {\n if(isset($_SESSION['token_value'])) {\n return $_SESSION['token_value']; \n } else {\n $token = hash('sha256', self::$instance->random(500));\n\n self::$instance->startSession();\n\n $_SESSION['token_value'] = $token;\n return $token;\n }\n \n\t}", "function csrf()\n{\n $csrfToken = md5(uniqid(mt_rand(), true));\n\n $_SESSION['csrfToken'] = $csrfToken;\n $res['input'] = '<input type=\"hidden\" name=\"csrfKey\" value=\"' . $csrfToken . '\" />';\n $res['token'] = $csrfToken;\n return $res;\n}", "public static function generateNewCSRFToken () {\n\t\tself::$csrf_token = base64_encode( openssl_random_pseudo_bytes(32));\n\n\t\t$_SESSION['csrf_token'] = self::$csrf_token;\n\t}", "function csrf_token(){\n $token = sha1( rand(1, 1000) . '$$' . date('H.i.s') . 'digg' );\n $_SESSION['csrf_token'] = $token;\n return $token;\n }", "function csrf()\n {\n if (!isset($_SESSION['csrf_tokens'])) {\n $_SESSION['csrf_tokens'] = [];\n }\n\n $csrfString = generateRandomString();\n $_SESSION['csrf_tokens'][] = $csrfString;\n\n print \"<input type='hidden' name='csrf_token' value='$csrfString'>\";\n }", "function set_csrf_token()\n{\n if (!isset($_SESSION[SESSION_PREFIX . 'csrf_token'])) {\n $_SESSION[SESSION_PREFIX . 'csrf_token'] = sha1(session_id() . (function_exists('openssl_random_pseudo_bytes')\n ? openssl_random_pseudo_bytes(32)\n : (time() + microtime(true)) . mt_rand(0, 99999999)));\n }\n}", "public function setSessionToken() {\n\t\t\t$session_token = hash('sha256', microtime());\n\t\t\t$_SESSION['session_token'] = $session_token;\n\t\t\treturn $session_token;\n\t\t}", "function login_token() {\n $token = bin2hex(random_bytes(32));\n $_SESSION['login_token'] = $token;\n return $token;\n }", "function generate_csrftoken()\n{\n if (!isset($_SESSION[\"csrf_token\"])) $_SESSION[\"csrf_token\"] = bin2hex(random_bytes(64));\n return $_SESSION[\"csrf_token\"];\n}", "public function admin_option_token() {\n\t\t\techo sprintf( \"<input type='text' name='drip_options[drip_token]' size='20' value='%s' />\", esc_attr( $this->get_option( 'drip_token' ) ) );\n\t\t}", "function csrf_token_tag() {\n\t$token = create_csrf_token();\n\treturn \"<input class=\\\"form-control\\\" type=\\\"hidden\\\" name=\\\"csrf_token\\\" value=\\\"\".$token.\"\\\">\";\n}", "public function generateToken(){\n //if(empty($_SESSION['token']) && (empty($_SESSION['tokenAge']) || (time() - (int)$_SESSION['tokenAge']) > (int)$this->maxAge)){\n if(function_exists('random_bytes')){\n $_SESSION['token'] = bin2hex(random_bytes(32));\n }elseif(function_exists('mcrypt_create_iv')){\n $_SESSION['token'] = bin2hex(mcrypt_create_iv(32, MCRYPT_DEV_URANDOM));\n }else{\n $_SESSION['token'] = bin2hex(openssl_random_pseudo_bytes(32));\n }\n $_SESSION['tokenAge'] = time();\n //} \n }", "public function tokenField($echo=TRUE, $name=self::TOKEN_FIELD){\n\n if( ! $this->token )\n throw new ClientException(\"Token missing. Make sure you authorize before requesting a token field.\");\n\n //construct html\n $field = '<input type=\"hidden\" name=\"{name}\" id=\"{name}\" value=\"{token}\"/>';\n $field = str_ireplace(\n ['{name}', '{token}'],\n [$name, $this->token->getValue()],\n $field\n );\n\n if( $echo )\n echo $field;\n\n return $field;\n\n }", "function signup_token() {\n $token = bin2hex(random_bytes(32));\n $_SESSION['signup_token'] = $token;\n return $token;\n }", "public function generateFormToken($form){\n\t\t $token = md5(uniqid(microtime(), true));\n\t\t // generar fecha de generación del token\n\t\t $token_time = time();\n\t\t // escribir la información del token en sesión para poder\n\t\t // comprobar su validez cuando se reciba un token desde un formulario\n\t\t $_SESSION['csrf'][$form.'_token'] = array('token'=>$token, 'time'=>$token_time);; \n\t\t return $token;\n\t\t}", "public function generateFormToken($form)\n\t{\n\t\t$token = md5(uniqid(microtime(), true));\n \n\t\t// Write the generated token to the session variable to check it against the hidden field when the form is sent\n\t\t$_SESSION[$form.'_token'] = $token;\n \n\t\treturn $token;\n\t}", "function create_csrf_token() {\n\t$token = csrf_token();\n $_SESSION['csrf_token'] = $token;\n \t$_SESSION['csrf_token_time'] = time();\n\treturn $token;\n}", "protected function generate_tok()\r\n {\r\n return $_SESSION['token'] = base64_encode(openssl_random_pseudo_bytes(32));\r\n }", "function addCSRFFormField(string $formName, string $fieldName = \"csrf_token\")\n{\n $token = setCSRFToken($formName);\n echo '<input type=\"hidden\" name=\"' . $fieldName . '\" value=\"' . $token . '\">';\n}", "function token_generator() {\n $token = $_SESSION['token'] = md5(uniqid(mt_rand(),true));\n\n return $token;\n}", "function createtoken()\n {\n $token = \"token-\" . mt_rand();\n // put in the token, created time\n $_SESSION[$token] = time();\n return $token;\n }", "protected function generate_csrf_token() {\n \n if(!isset($_SESSION['rpf_csrf_tokens'])) { \n $_SESSION['rpf_csrf_tokens'] = array();\n }\n\n $csrf_token = md5(mt_rand());\n while(in_array($csrf_token, $_SESSION['rpf_csrf_tokens'])) {\n $csrf_token = md5(mt_rand());\n } \n $_SESSION['rpf_csrf_tokens'][] = $csrf_token;\n\n return $csrf_token;\n }", "function cng_pwd_token() {\n $token = bin2hex(random_bytes(32));\n $_SESSION['cng_pwd_token'] = $token;\n return $token;\n }", "function token(){\n return Request::session('internal_token');\n}", "public function generateCSRFToken();", "public function embedCSRF()\n\t{\n\t\t$token = Auth::generateCSRFtoken();\n\t\t$_SESSION['CSRF'] = $token;\n\t\techo \"<input type = \\\"hidden\\\" name = \\\"CSRF\\\" value = \\\"$token\\\">\";\n\t}", "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 }", "function user_token() {\n $token = bin2hex(random_bytes(32));\n $_SESSION['user_verify_token'] = $token;\n return $token;\n }", "public static function generate($form) {\n\t\t$token = md5( uniqid(microtime(), true) );\n\t\t\n\t\t// Write the generated token to the session variable to check it against the hidden field when the form is sent\n\t\t$_SESSION[ $form . self::TOKEN_SUFIX ] = $token; \n\t\t\n\t\treturn $token;\n\t}", "public function setSessionTokenFromRegistry() {}", "function new_pwd_token() {\n $token = bin2hex(random_bytes(32));\n $_SESSION['new_pwd_token'] = $token;\n return $token;\n }", "function saveToken($token) {\r\n\t\t$_SESSION['token'] = $token;\r\n\t}", "protected function retrieveSessionToken() {}", "protected function retrieveSessionToken() {}", "protected function retrieveSessionToken() {}", "protected function retrieveSessionToken() {}", "abstract public function persistSessionToken() ;", "public function persistSessionToken() {}", "public function persistSessionToken() {}", "public function persistSessionToken() {}", "public function persistSessionToken() {}", "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 static function csrf_input($id = '', $action = '', $time = 0) {\n\t\treturn Form::hidden('token', Security::csrf($id, $action, $time));\n\t}", "private function createCsrfToken()\n {\n return sha1(microtime().$this->getLogin());\n }", "abstract protected function retrieveSessionToken() ;", "function wp_get_session_token()\n {\n }", "public static function generate(){\r\n return Session::put(Config::get('session/token_name'), md5(uniqid()));\r\n }", "public function setToken() {\n $base_uri = $this->remoteSite->get('protocol') . '://' . $this->remoteSite->get('host');\n $options = array(\n 'base_uri' => $base_uri,\n 'allow_redirects' => TRUE,\n 'timeout' => 5,\n 'connect_timeout' => 5,\n );\n\n $token = $this->httpClient->request('get', 'rest/session/token', $options)->getBody();\n return $token->__toString();\n }", "public static function _SetToken()\r\n\t\t{\r\n\t\t\t\r\n\t\t\tIf ( session_status() !== PHP_SESSION_ACTIVE )\r\n\t\t\t{\r\n\t\t\t\tsession_start();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif ( ! Session::has( 'CSRFToken' ) )\r\n\t\t\t{\r\n\t\t\t\tSession::set( 'CSRFToken' , Hashing::instance()->uniqidReal( 64 ) . '-' . time() );\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\treturn Session::get( 'CSRFToken' );\r\n\t\t}", "function csrf_token()\n {\n return shy(Shy\\Http\\Contracts\\Session::class)->token();\n }", "public function saveCrsfTokenToSession()\n {\n if (!isset($_SESSION['phpmyfaq_csrf_token'])) {\n $_SESSION['phpmyfaq_csrf_token'] = $this->createCsrfToken();\n }\n }", "public static function AntiForgeryToken($pageid)\r\n\t{\r\n Session::set('csrf_token_'. $pageid, md5(md5(uniqid(rand(), true)).Config::HASH_KEYS));\r\n\r\n echo '<input type=\"hidden\" value=\"'. Session::get('csrf_token_'. $pageid) .'\" name=\"__RequestToken\" />';\r\n\t}", "public static function getToken() {\n return session(\"auth_token\", \"\");\n }", "function get_token()\n\t{\n\t\treturn session_id();\n\t}", "protected function _editToken()\n {\n if ($token = Mage::getSingleton('core/session')->getData('editToken')) {\n Mage::getSingleton('core/session')->unsetData('editToken');\n return $token;\n }\n return $token;\n }", "function twitter_oauth_callback_form($form, &$form_state) {\n $form['#post']['oauth_token'] = $_GET['oauth_token'];\n $form['oauth_token'] = array(\n '#type' => 'hidden',\n '#default_value' => $_GET['oauth_token'],\n );\n return $form;\n}", "public function create_field() {\n\n return sprintf(\n '<input type=\"hidden\" id=\"%s\" name=\"%s\" value=\"%s\" />',\n esc_attr( $this->action ),\n esc_attr( $this->action ),\n esc_attr( (string) wp_create_nonce( $this->action ) )\n );\n\n }", "function createToken($name)\n{\n\t$token=NULL;\n\t$token=uniqid(rand(), true);\n\t$_SESSION[$name.'Token']=$token;\n\t$_SESSION[$name.'Token_time']=time();\n\treturn $token;\n}", "function show_session_form($api_key, $expires){?>\n\t\t<div class=\"main\">\n\t\t<a href=\"http://www.facebook.com/code_gen.php?v=1.0&api_key=<?=$api_key?>\" target=\"_blank\">Generate a \"one time\" code</a>\n\t\t\t<div class=\"regForm\">\n\t\t<form action=\"\" method=\"POST\">\n\t\t<div class=\"label\">Your CODE:</div><input type=\"text\" name=\"auth_token\" value=\"\" size=\"15\" /> <br />\n\t\t<input type=\"hidden\" name=\"verify\" value=\"1\" />\n\t\t<input type=\"hidden\" name=\"type\" value=\"session\" />\n\t\t<input type=\"submit\" name=\"submit\" value=\"Generate\" />\n\t\t</form>\n\t\t</div>\n\t\t\n\t\t<div class=\"regIntro\">\n\t\t\t<p>You session will expire in <?=date('Y:m:d H:i:s', $expires)?></p>\n\t\t\t<p>Why you need a infinite session?</p>\n\t\t\t<p>1.Post to mini/news feed when your locker changed.</p>\n\t\t\t<p>2.Update your profile box when your locker changed.</p>\n\t\t</div>\n\t\t</div>\n\t<?php\n\t}", "public function getToken()\n {\n if (!isset($_SESSION['MFW_csrf-token'])) {\n $this->generateNewToken(128);\n }\n\n return $_SESSION['MFW_csrf-token'];\n }", "function add_form_key($form_name)\n{\n\tglobal $config, $template, $user;\n\n\t$now = time();\n\t$token_sid = ($user->data['user_id'] == ANONYMOUS && !empty($config['form_token_sid_guests'])) ? $user->session_id : '';\n\t$token = sha1($now . $user->data['user_form_salt'] . $form_name . $token_sid);\n\n\t$s_fields = build_hidden_fields(array(\n\t\t'creation_time' => $now,\n\t\t'form_token'\t=> $token,\n\t));\n\n\t$template->assign_vars(array(\n\t\t'S_FORM_TOKEN'\t=> $s_fields,\n\t));\n}", "private static function csrf_token() {\n\t\treturn md5 ( uniqid ( rand (), TRUE ) );\n\t}", "public static function csrfTokenGet() {\n $csrfToken = null;\n\n if(!isset($_SESSION['csrfTokenCreatedAt']) || ($_SESSION['csrfTokenCreatedAt'] - time() > 21600)) { //1hr\n $_SESSION['csrfToken'] = password_hash(uniqid(self::$applicationName), PASSWORD_BCRYPT);\n $_SESSION['csrfTokenCreatedAt'] = time();\n }\n $csrfToken = $_SESSION['csrfToken'];\n\n return $csrfToken;\n }", "public function get_csrf_id() {\n\n\n if(isset($_SESSION['token_id'])) { \n return $_SESSION['token_id'];\n } else {\n $token_id = $this->random(10);\n\n self::$instance->startSession();\n\n $_SESSION['token_id'] = $token_id;\n return $token_id;\n }\n\t}", "public function storeSessionTokenInRegistry() {}", "function generateSessionKey(){\n\t\t // genereate session and form key\n\t\t$this->formSession['key'] = rand();\n\t\t$GLOBALS[\"TSFE\"]->fe_user->setKey('ses',$this->extKey, $this->formSession);\n\t\t$GLOBALS[\"TSFE\"]->storeSessionData();\n\t}", "function csrf_token() {\n\treturn md5(uniqid(rand(), TRUE));\n}", "public function generateToken(): string\n {\n $token = bin2hex(random_bytes(16));\n $tokens = $_SESSION[$this->sessionKey] ?? [];\n $tokens[] = $token;\n $_SESSION[$this->sessionKey] = $this->limitTokens($tokens);\n return $token;\n }", "public function get_request_token()\n {\n $sess_id = $_COOKIE[ini_get('session.name')];\n if (!$sess_id) $sess_id = session_id();\n $plugin = $this->plugins->exec_hook('request_token', array('value' => md5('RT' . $this->get_user_id() . $this->config->get('des_key') . $sess_id)));\n return $plugin['value'];\n }", "function setCSRFToken(string $requestName = \"\"): string\n{\n $token = getRandomString();\n $_SESSION[$requestName . \"_csrf_token\"] = $token;\n $_SESSION[$requestName . \"_csrf_time\"] = time();\n return $token;\n}", "public function getSessionAuthToken();", "public function getToken()\n\t{\n\t\treturn static::createFormToken($this->target_form_id ? $this->target_form_id : $this->id);\n\t}", "public static function generate() \n{\n // set the `$tokenKey variable` by calling `get method` on `Config object`\n $tokenKey = Config::get('session.tokenKey');\n \n\n /* uniqid() - generates a unique ID based on the microtime (the current time in microseconds).\n Returns the unique identifier, as a string.\n Parametrs: 2 Optional parametrs.\n https://www.w3schools.com/php/func_misc_uniqid.asp */\n $random_string = uniqid();\n\n /* md5 — Calculate the md5 hash of a string\n Returns the calculated MD5 hash on success, or FALSE on failure\n Parametrs:\n 1) string\tRequired. The string to be calculated\n 2) raw\tOptional. Specifies hex or binary output format:\n TRUE - Raw 16 character binary format\n FALSE - Default. 32 character hex number\n https://www.w3schools.com/php/func_string_md5.asp */\n $token = md5($random_string);\n\n // add new element in the $_SESSION[] array\n return Session::put($tokenKey, $token);\n}", "function generate_action_token($timestamp)\n {\n \t// Get input values\n \t$site_secret = get_site_secret();\n \t\n \t// Current session id\n \t$session_id = session_id();\n \t\n \t// Get user agent\n \t$ua = $_SERVER['HTTP_USER_AGENT'];\n \t\n \t// Session token\n \t$st = $_SESSION['__elgg_session'];\n \t\n \tif (($site_secret) && ($session_id))\n \t\treturn md5($site_secret.$timestamp.$session_id.$ua.$st);\n \t\n \treturn false;\n }" ]
[ "0.76510644", "0.68614864", "0.6754607", "0.67154545", "0.6703669", "0.6692329", "0.6685917", "0.66850513", "0.66777855", "0.66277504", "0.6613331", "0.65909725", "0.65794605", "0.6569919", "0.65343523", "0.65226203", "0.65209305", "0.64984864", "0.64929914", "0.6468445", "0.64578325", "0.6436697", "0.6428777", "0.6428655", "0.6421579", "0.6418398", "0.64165854", "0.6415159", "0.64014566", "0.6395712", "0.633387", "0.6293336", "0.628434", "0.624538", "0.62326664", "0.62205434", "0.6191942", "0.61890393", "0.6182641", "0.61734724", "0.61436284", "0.6143579", "0.6141519", "0.6134442", "0.6120228", "0.61023694", "0.60982805", "0.6075609", "0.6072732", "0.60469955", "0.6015497", "0.5990443", "0.5988525", "0.5977069", "0.59686637", "0.59598655", "0.5956993", "0.59566844", "0.59553665", "0.59553665", "0.5955119", "0.5955119", "0.5932553", "0.59289104", "0.59289104", "0.59289104", "0.59289104", "0.5917479", "0.5914833", "0.58892745", "0.58347964", "0.5833486", "0.58325976", "0.5829527", "0.58271664", "0.58204496", "0.5814332", "0.5791218", "0.5786001", "0.5780725", "0.57646024", "0.5747652", "0.57400596", "0.57382494", "0.5732654", "0.57214767", "0.5717608", "0.5696285", "0.5678198", "0.5672559", "0.5670244", "0.5661102", "0.5659484", "0.56443644", "0.56329036", "0.56176144", "0.56135184", "0.56107503", "0.560864", "0.56073487" ]
0.8227077
0
Get the provider that this webinars belongs to.
public function provider() { return $this->belongsTo(Provider::class, 'provider_id'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getProvider() {\n return $this->provider;\n }", "public function getProvider()\n {\n return $this->provider;\n }", "public function getProvider()\n {\n return $this->provider;\n }", "public static function getProvider()\n {\n return self::$provider;\n }", "public function getProvider()\n {\n return $this->Provider;\n }", "public function getProvider(): string\n {\n return $this->provider;\n }", "public function getProvider();", "public function getProvider();", "public function getProvider();", "public function get_provider() {\n\t\treturn $this->session->get($this->config['session_key'] . '_provider', null);\n\t}", "public function getProvider(): ?string {\n return $this->provider;\n }", "public static function getProvider($provider){\n return \\Illuminate\\Foundation\\Application::getProvider($provider);\n }", "public function getUserProvider()\n {\n return $this->userProvider;\n }", "public function getProvider($provider)\n {\n return array_values($this->getProviders($provider))[0] ?? null;\n }", "public function getProvider()\n {\n $config = $this->scopeConfig->getValue(\n 'payment/az2009_cielo_bank_slip/provider',\n \\Magento\\Store\\Model\\ScopeInterface::SCOPE_STORE\n );\n\n return $config;\n }", "public function getProvider(): SocialEntryProvider\n {\n return $this->provider;\n }", "public function getProvider($provider_id);", "public function getProviderName()\n {\n return $this->providerName;\n }", "public function getProvider(): ProviderInterface;", "public function getProviderName();", "public function getProviderName();", "public function getProviderName();", "public function getProviderCode()\n {\n return $this->providerCode;\n }", "public function getProviderName(): string\n {\n return $this->providerName;\n }", "public function getProviderId();", "public function getProvider(): UserProviderInterface\n {\n return $this->provider;\n }", "public function getAuthProvider()\n {\n return $this->authProvider;\n }", "public function getProvider()\r\n\t{\r\n\t\treturn CrossKalturaDistributionPlugin::getProvider();\r\n\t}", "public function getProviderGateway()\n {\n return $this->providerGateway;\n }", "protected function getProvider()\n\t{\n\t\treturn $this->container->get('ant_badge.provider');\n\t}", "public function getAuthProvider() {\n return $this->authProvider;\n }", "public function provider($provider)\n {\n return $this->setProperty('provider', $provider);\n }", "public function getProviderName()\n\t{\n\t\treturn ($this->provider != NULL) ? $this->provider->getName() : NULL;\n\t}", "public static function setProvider()\n {\n // Set default provider. Defaults to ExpressCheckout\n self::$provider = new IninalClient();\n\n return self::getProvider();\n }", "public function getSecurityProvider()\n {\n return $this->securityProvider;\n }", "public function provider()\n {\n return $this->belongsTo('Deploy\\Models\\Provider');\n }", "public function getProvider(ServiceProvider $provider)\n {\n return $provider;\n }", "public function getProviderId()\n {\n return $this->uid;\n }", "public function getAuthenticationProvider() {\n\t\treturn $this->authProvider;\n\t}", "public function getProviderName()\n {\n return NULL;\n }", "public function getAuthProviderId() {\n return $this->authProviderId;\n }", "public function getApiProvider()\n {\n return $this->apiProvider;\n }", "protected function getProviderName()\n {\n return SocialServices::GOOGLE;\n }", "public function getHostingProvider()\n {\n if (array_key_exists(\"hostingProvider\", $this->_propDict)) {\n return $this->_propDict[\"hostingProvider\"];\n } else {\n return null;\n }\n }", "public function getProvider() {\n return $this->provider ?: $this->provider = new sms16($this->login, $this->password);\n }", "public static function get()\n {\n if (null === Route::current()) {\n return false;\n }\n\n return Route::current()->parameters()['provider'];\n }", "public function getPaymentProvider(): PaymentProvider\n {\n return $this->paymentProvider;\n }", "public function get_provider($name)\n {\n }", "public function getSocial(string $provider)\n {\n return $this->socials()\n ->whereProvider($provider)\n ->first();\n }", "public function getProviderClientId(): string\n {\n return $this->getData(self::PROVIDER_CLIENT_ID);\n }", "protected function getUserProvider()\n {\n return config('adldap_auth.provider', DatabaseUserProvider::class);\n }", "public function get_service() {\n\n\t\treturn $this->provider_instance;\n\t}", "public function getProvider($provider)\n {\n $name = is_string($provider) ? $provider : get_class($provider);\n\n return array_first($this->serviceProviders, function ($key, $value) use ($name) {\n return $value instanceof $name;\n });\n }", "public function getAuthenticationProvider() {\n\t\tif (!$this->authenticationProvider) {\n\t\t\t/** @var Dispatcher $dispatcher */\n\t\t\t$dispatcher = $this->dispatcher ? $this->dispatcher : Dispatcher::getSharedDispatcher();\n\t\t\tlist($vendor, $extension,) = Utility::getClassNamePartsForPath($dispatcher->getPath());\n\n\t\t\t// Check if an extension provides a Authentication Provider\n\t\t\t$authenticationProviderClass = 'Tx_' . $extension . '_Rest_AuthenticationProvider';\n\t\t\tif (!class_exists($authenticationProviderClass)) {\n\t\t\t\t$authenticationProviderClass = ($vendor ? $vendor . '\\\\' : '') . $extension . '\\\\Rest\\\\AuthenticationProvider';\n\t\t\t}\n\n\n\t\t\t// Use the found Authentication Provider\n\t\t\tif (class_exists($authenticationProviderClass)) {\n\t\t\t\t$this->authenticationProvider = $this->get($authenticationProviderClass);\n\t\t\t} else {\n\t\t\t\t// Use the default Authentication Provider\n\t\t\t\t#$authenticationProviderClass = 'Cundd\\\\Rest\\\\Authentication\\\\BasicAuthenticationProvider';\n\t\t\t\t$this->authenticationProvider = $this->get('Cundd\\\\Rest\\\\Authentication\\\\AuthenticationProviderCollection', array(\n\t\t\t\t\t$this->get('Cundd\\\\Rest\\\\Authentication\\\\BasicAuthenticationProvider'),\n\t\t\t\t\t$this->get('Cundd\\\\Rest\\\\Authentication\\\\CredentialsAuthenticationProvider'),\n\t\t\t\t));\n\t\t\t}\n\n\t\t\t$this->authenticationProvider->setRequest($dispatcher->getRequest());\n\t\t}\n\t\treturn $this->authenticationProvider;\n\t}", "public function getAuthenticationProvider();", "function b2c_get_current_user_auth_provider() {\n\t $user_id = get_current_user_id();\n\tif ( $user_id == 0 ) {\n\t\t// no user is logged in\n\t\treturn null;\n\t}\n\n\treturn get_user_meta( $user_id, 'b2c_auth_provider', true );\n}", "protected function getProvider($provider) : Provider\n {\n if (is_string($provider)) {\n $provider = new $provider;\n }\n\n return $provider;\n }", "public function getProviderClass(): ?string;", "private function getProviderUser($provider)\n {\n return $this->socialite->driver( $provider )->user();\n }", "public function getServiceProvider($provider);", "public function getConfigurationProvider() {\n\t\tif (!$this->configurationProvider) {\n\t\t\t$this->configurationProvider = $this->get('Cundd\\\\Rest\\\\Configuration\\\\TypoScriptConfigurationProvider');\n\t\t}\n\t\treturn $this->configurationProvider;\n\t}", "public function provider()\n {\n if (!$this->object->getValue()) {\n return null;\n }\n\n /* @var \\Anomaly\\VideoFieldType\\Matcher\\Contract\\MatcherInterface $matcher */\n $matcher = dispatch_now(new GetMatcher($this->object->getValue()));\n\n return $matcher->getProvider();\n }", "public function provider()\n {\n return $this->hasMany(Provider::class);\n }", "protected function getProvider()\r\n {\r\n return $this->container->get('fos_message.provider');\r\n }", "public function getLoginProvider(): ?string {\n return $this->_loginProvider;\n }", "public function getSelectedProvider() {\n $providers = $this->getProviders();\n if (empty($providers)) {\n return null;\n }\n\n $spi = get_option($this->selectedProviderOptName, null);\n if (count($providers) === 1) {\n // no provider has been previously selected, return first index\n if ($spi === null) {\n return $providers[0];\n }\n // the selected provider is the same as the only available provider, return first index\n if ($providers[0]->getIdentifier() === $spi) {\n return $providers[0];\n }\n // a different provider that is no longer available was previously selected, return `null`\n return null;\n }\n\n // more than one provider exists and no provider has been selected, return `null`\n if (empty($spi)) {\n return null;\n }\n\n foreach ($providers as $s) {\n if ($s->getIdentifier() === $spi) {\n return $s;\n }\n }\n\n // the selected provider is no longer available, return `null`\n return null;\n }", "public function getProviderEndpoint(Provider $provider) {\n $env = EnvironmentSwitcher\\Utils::getEnv();\n if ($env === 'development') {\n $ident = $provider->getIdentifier();\n\n // DB variable takes precedence over environment variable\n $url = get_option($this->updateUrlOverrideOptName, null);\n if (is_string($url) && !empty($url)) {\n return new ProviderEndpoint($url, $url, \"{$url} ({$ident})\");\n }\n\n $url = isset($_ENV['CPTM_CLIENT_UPDATE_URL']) ? (string)$_ENV['CPTM_CLIENT_UPDATE_URL'] : '';\n if (!empty($url)) {\n return new ProviderEndpoint($url, $url, \"{$url} ({$ident})\");\n }\n }\n\n if ($env === 'staging') {\n $pendpoint = $provider->getStagingEndpoint();\n if ($pendpoint !== null) {\n return $pendpoint;\n }\n }\n\n return $provider->getProductionEndpoint();\n }", "public static function GetAuthenticationProvider() {\n if ( key_exists(\"AuthenticationProvider\", $_SESSION) && $_SESSION['AuthenticationProvider'] instanceof IAuthenticationProvider) {\n return $_SESSION['AuthenticationProvider'];\n }\n else {\n throw new \\Exception(\"No active authentication provider\");\n }\n }", "public function get_gateway_provider() {\n\t\tif ( ! $this->gateway_provider ) {\n\t\t\t// this shouldn't happen outside of our internal development\n\t\t\tthrow new Exception( 'Missing gateway provider configuration' );\n\t\t}\n\n\t\treturn $this->gateway_provider;\n\t}", "public function getProviderHumanName()\n {\n return 'Google';\n }", "public function get_provider_by_name($name = '')\n {\n $provider = null;\n\n if (strlen($name))\n {\n $providers = self::get_providers(array('name' => $name));\n\n if (count($providers))\n {\n $provider = $providers[0];\n }\n }\n\n return $provider;\n }", "public static function get_providers() {\n\t\treturn self::$providers;\n\t}", "public function getServiceProvider(): Provider\n {\n return $this->serviceProvider;\n }", "public function provider()\n {\n return $this->belongsTo('App\\Provider', 'proveedor_id');\n }", "protected function getUserProvider()\n {\n $userProvider = $this->getMockBuilder('Symfony\\Component\\Security\\Core\\User\\UserProviderInterface')\n ->disableOriginalConstructor()\n ->getMock();\n\n return $userProvider;\n }", "public function getProviders();", "public function getProviders();", "protected function getRoomShareProvider() {\n\t\tif ($this->roomShareProvider === null) {\n\t\t\t/*\n\t\t\t * Check if the app is enabled\n\t\t\t */\n\t\t\t$appManager = $this->serverContainer->getAppManager();\n\t\t\tif (!$appManager->isEnabledForUser('spreed')) {\n\t\t\t\treturn null;\n\t\t\t}\n\n\t\t\ttry {\n\t\t\t\t$this->roomShareProvider = $this->serverContainer->query('\\OCA\\Talk\\Share\\RoomShareProvider');\n\t\t\t} catch (\\OCP\\AppFramework\\QueryException $e) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}\n\n\t\treturn $this->roomShareProvider;\n\t}", "public function userProviderModel()\n {\n $config = $this->laravel['config'];\n\n $provider = $config->get('auth.guards.'.$config->get('auth.defaults.guard').'.provider');\n\n return $config->get(\"auth.providers.{$provider}.model\");\n }", "function svbk_policy_get_provider(){\n\t$provider = new \\Svbk\\WP\\Privacy\\Providers\\File;\n\treturn apply_filters('svbk_policy_provider', $provider );\n}", "public static function getProvider(){\n return \\Illuminate\\Auth\\Guard::getProvider();\n }", "public function getDocumentProvider()\n {\n return $this->documentProvider;\n }", "public function getProviderDist() {\n return $this->providerDist;\n }", "public function model()\n {\n return Providers::class;\n }", "public function model()\n {\n return Providers::class;\n }", "public static function resolveProviderClass($provider){\n return \\Illuminate\\Foundation\\Application::resolveProviderClass($provider);\n }", "public function providerLogin()\n {\n return $this->authRepo->providerLogin();\n }", "public function providers()\n {\n return $this->request('get', '/api/teams/'.Helpers::config('team').'/providers');\n }", "public function getProviders()\n {\n return $this->providers;\n }", "public function getProviders()\n {\n return $this->providers;\n }", "public function getGroupProvider()\n {\n return $this->groupProvider;\n }", "public function getProviderRepository()\n {\n $manifest = $this['config']->get('server.manifest', rtrim(STORAGE_PATH, DS));\n\n return new ProviderRepository($manifest);\n }", "public function getProviderAlias(): ?string;", "protected function getProviders() {\n\n\t\treturn $this->providers;\n\t}", "public function getName($provider = null)\n {\n $provider = empty($provider) ? $this->provider : $provider;\n return array_key_exists($provider, static::$providers) ? static::$providers[$provider] : null;\n }", "public function get_provider_instance( $provider, $refresh = false ) {\n\t\t$instances = $this->get_all_provider_instances( $refresh );\n\n\t\treturn isset( $instances[ $provider ] ) ? $instances[ $provider ] : null;\n\t}", "public function getShippingProvider(){\n\n if($this->shippingProviderClassName){\n if(Phpr::$classLoader->load($this->shippingProviderClassName)) {\n $className = $this->shippingProviderClassName;\n return new $className();\n }\n }\n if($this->shippingOptionId){\n try {\n $shippingOption = $this->getShippingOption();\n if ($shippingOption) {\n return $shippingOption->get_shippingtype_object();\n }\n }catch(\\Exception $e){\n return null;\n }\n }\n return null;\n }", "public function getRegistered($provider)\n {\n $name = is_string($provider) ? $provider : get_class($provider);\n\n if (array_key_exists($name, $this->loadedProviders)) {\n return array_first($this->serviceProviders, function ($key, $value) use ($name)\n {\n return get_class($value) == $name;\n });\n }\n }", "abstract public function getProviders();", "public function get_providers()\n {\n }" ]
[ "0.8036604", "0.8021677", "0.8021677", "0.7998932", "0.7887418", "0.77094525", "0.7685171", "0.7685171", "0.7685171", "0.7653685", "0.7391213", "0.7369316", "0.72976094", "0.72590274", "0.7205127", "0.719817", "0.7180839", "0.7161258", "0.70174384", "0.70150584", "0.70150584", "0.70150584", "0.7010758", "0.7004089", "0.6940362", "0.69222337", "0.69008774", "0.68854725", "0.68771595", "0.68762976", "0.6858443", "0.6847961", "0.6831967", "0.67908293", "0.67431635", "0.67375165", "0.6677994", "0.6666013", "0.66551036", "0.6579046", "0.6576364", "0.65751696", "0.65334606", "0.65211976", "0.64772254", "0.64722556", "0.64501053", "0.6428654", "0.63805807", "0.63524956", "0.63474345", "0.6314972", "0.6291996", "0.628814", "0.626465", "0.6245121", "0.6217759", "0.6195824", "0.61847746", "0.6179364", "0.61780256", "0.6152462", "0.6139287", "0.6134546", "0.6112786", "0.6112185", "0.6085916", "0.6074834", "0.6068309", "0.6045911", "0.6036375", "0.59853953", "0.59747523", "0.59697396", "0.59548116", "0.5940885", "0.5940885", "0.593628", "0.59337384", "0.59111047", "0.5891569", "0.5887812", "0.5875174", "0.585844", "0.585844", "0.5837785", "0.5834679", "0.5810987", "0.5803435", "0.5803435", "0.5789275", "0.5783633", "0.57719994", "0.5769033", "0.576818", "0.57483596", "0.5746329", "0.5728535", "0.57189614", "0.57118386" ]
0.6586227
39
Initializes the record object.
public function __construct($table, $values = array(), $database = NULL) { try { parent::__construct($database); $this->_table = new \Bedrock\Model\Table(array('name' => $table)); $this->_table->load(); $this->_columns = $this->_table->getColumns(); $this->_state = self::STATE_UNCHANGED; foreach($this->_columns as $column) { switch($column->type) { case \Bedrock\Model\Column::FIELD_TYPE_BOOL: if(is_bool($values[$column->name])) { $this->_data[$column->name] = $values[$column->name]; } else { $this->_data[$column->name] = ($values[$column->name] == 1 ? true : false); } break; default: $this->_data[$column->name] = $values[$column->name]; break; } if($column->primary_key) { $this->_key_primary = $column; if(!$values[$column->name]) { $this->_state = self::STATE_NEW; } } // Foreign Key Reference? } } catch(\Exception $ex) { \Bedrock\Common\Logger::exception($ex); throw new \Bedrock\Model\Record\Exception('A record object could not be initialized.'); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function initDatabaseRecord() {}", "public function __construct($record = null)\n {\n $this->init($record);\n }", "function __construct() {\n $this->records = array(new Record(), new Record(), new Record);\n }", "private function __construct($record) {\n $this->record = $record;\n }", "public function __construct($record)\n {\n $this->record = $record;\n }", "public function __construct($record = null) {\n parent::__construct($record);\n }", "public function init(BaseModule\\Record $record): void\n\t{\n\t\t$this->appId = $record->controller->app['id'];\n\t\t$this->record = $record->recordModel;\n\t}", "public function init()\n {\n $storages = GeneralUtility::makeInstance(StorageRepository::class)->findAll();\n $this->storage = $storages[0];\n $this->registry = GeneralUtility::makeInstance(Registry::class);\n $this->recordOffset = $this->registry->get($this->registryNamespace, 'recordOffset', []);\n }", "function __construct(record $r) {\n parent::__construct($r);\n }", "public function initialize()\n {\n $this->data = new stdClass();\n }", "public function __construct($record, $request)\n {\n $this->record = $record;\n $this->request = $request->all();\n }", "public function Initialize()\n\t\t{\n\t\t\t$this->intId = Person::IdDefault;\n\t\t\t$this->strFirstName = Person::FirstNameDefault;\n\t\t\t$this->strLastName = Person::LastNameDefault;\n\t\t}", "public function initialize()\n\t{\n\t\t$this->data = new stdClass();\n\t}", "public function initialize()\n {\n $this->setSource('tblEntry');\n\n $this->hasOne('userId', '\\Soul\\Model\\User', 'userId', ['alias' => 'user']);\n $this->belongsTo('eventId', '\\Soul\\Model\\Event', 'eventId', ['alias' => 'event']);\n $this->hasOne('paymentId', '\\Soul\\Model\\Payment', 'paymentId', ['alias' => 'payment']);\n }", "protected function _initialize()\n {\n // 客户资料\n $CustId = I('CustId');\n $this->customer = M('Customer')->find($CustId);\n\n // 操作者资料\n $this->user = session('user');\n }", "public function initialize()\n {\n $this->setSchema(\"mydb\");\n $this->setSource(\"paying\");\n $this->belongsTo('cid', 'Customers', 'cid', array('alias' => 'alias_customers'));\n $this->belongsTo('loanid', 'LoanInformation', 'loanid', array('alias' => 'alias_loan'));\n $this->hasManyToMany(\n 'payingid',\n 'Tracking',\n 'payingid', 'oid',\n 'DeptTrackers',\n 'oid',\n array(\n 'alias' => 'alias_depttrackers'\n )\n );\n }", "protected function _initRecord(&$record = null, $initOnly = false)\n\t{\n\t\tparent::_initRecord($record, $initOnly);\n\n\t\t// Set some new record specific properties, note most properties already have proper values\n\t\t// Either the DB default values (set by getTable() method) or the values set by _afterLoad() method\n\t\t$record->id\t\t\t\t\t\t\t= 0;\n\t\t$record->field_type\t\t\t= 'text';\n\t\t$record->name\t\t\t\t\t\t= null; //$this->getName() . ($this->_getLastId() + 1);\n\t\t$record->label\t\t\t\t\t= null;\n\t\t$record->description\t\t= null;\n\t\t$record->isfilter\t\t\t\t= 0;\n\t\t$record->isadvfilter \t= 0;\n\t\t$record->iscore\t\t\t\t\t= 0;\n\t\t$record->issearch\t\t\t\t= 1;\n\t\t$record->isadvsearch\t\t= 0;\n\t\t$record->untranslatable\t= 0;\n\t\t$record->formhidden\t\t\t= 0;\n\t\t$record->valueseditable\t= 0;\n\t\t$record->edithelp\t\t\t\t= 2;\n\t\t$record->positions\t\t\t= array();\n\t\t$record->published\t\t\t= 1;\n\t\t$record->attribs\t\t\t\t= null;\n\t\t$record->access\t\t\t\t\t= 1;\n\t\t$record->checked_out\t\t= 0;\n\t\t$record->checked_out_time\t= '';\n\n\t\t$this->_record = $record;\n\n\t\treturn true;\n\t}", "protected function _construct()\n {\n $this->_init(self::TABLE_NAME, self::TABLE_ID);\n }", "protected function _init()\n {\n $this->_fields += array(\n 'id' => new Sprig_Field_Auto,\n 'name' => new Sprig_Field_Char,\n 'brief' => new Sprig_Field_Char,\n 'content' => new Sprig_Field_Char,\n 'module_id' => new Sprig_Field_Integer,\n 'url' => new Sprig_Field_Char,\n 'meta_title' => new Sprig_Field_Char,\n 'meta_keywords' => new Sprig_Field_Char,\n 'meta_description' => new Sprig_Field_Char,\n 'ord' => new Sprig_Field_Integer(array(\n 'default' => 10,\n )),\n 'status' => new Sprig_Field_Integer(array(\n 'default' => 0,\n )),\n );\n }", "function __construct(record $r, $wheres=null){\n //\n //save the values as an array of key value pairs \n $this->values= $r->values;\n //Create the parent\n $db=$r->entity->get_parent();\n parent::__construct(new table($db->name,$r->entity->name),[], [$wheres]);\n }", "public function initialize()\n {\n $this->setSchema(\"lashca\");\n $this->setSource(\"v_basic\");\n }", "public function initialize()\n {\n // Intentionally blank as this will be overloaded by DBAL\n }", "public function initialize()\n {\n $this->setSchema(\"animedb\");\n $this->setSource(\"episodes\");\n $this->hasMany('id', 'Videos', 'episode_id', ['alias' => 'Videos']);\n $this->belongsTo('anime_id', '\\Anime', 'id', ['alias' => 'Anime', 'reusable' => true]);\n $this->allowEmptyStringValues(['title', 'description']);\n $this->skipAttributes(['date']);\n }", "public function initialize()\n {\n $this->setSchema(\"mus\");\n $this->setSource(\"sculpture\");\n $this->belongsTo(\n 'Art_Objects_id_no',\n 'ArtObjects',\n 'id_no'\n );\n }", "public function initialize()\n {\n $this->setSchema(\"micro_mail\");\n $this->setSource(\"order_logistics\");\n }", "public function Initialize()\n\t\t{\n\t\t\t$this->intId = PersonWithLock::IdDefault;\n\t\t\t$this->strFirstName = PersonWithLock::FirstNameDefault;\n\t\t\t$this->strLastName = PersonWithLock::LastNameDefault;\n\t\t\t$this->strSysTimestamp = PersonWithLock::SysTimestampDefault;\n\t\t}", "public function initialize()\n {\n $this->setSchema(\"muslim_life\");\n $this->setSource(\"jadwalshalat\");\n }", "public function initialize()\n {\n $this->setSource('Customer');\n $this->hasMany(\"Number\", \"Arrears\", \"CustomerNumber\");\n $this->hasMany(\"Number\", \"Charge\", \"CustomerNumber\");\n\n $c = $this;\n $c->IsCut = 0;\n $c->ArrearsCount = 0;\n $c->CutCount = 0;\n $c->IsClean = 0;\n $c->IsControl = 0;\n $c->Money = 0;\n $c->IsRent = 0;\n $c->RenterPhone = \"\";\n\n $c->CanCut = 0;\n $c->IsSpecial = 0;\n $c->CutStyle=\"\";\n $c->PressCount = 0;\n }", "protected function initialize()\n {\n $this->data = new stdClass();\n $this->data->ownId = null;\n $this->data->amount = new stdClass();\n $this->data->amount->currency = self::AMOUNT_CURRENCY;\n $this->data->amount->subtotals = new stdClass();\n $this->data->items = [];\n $this->data->receivers = [];\n }", "public function __construct($records)\n {\n $this->_records = $records;\n parent::__construct();\n }", "public function initialize()\n {\n $this->setSchema(\"nidara_private_school\");\n $this->setSource(\"ztest_subject\");\n $this->belongsTo('cno', '\\ZtestClass', 'cno', ['alias' => 'ZtestClass']);\n }", "private function __construct($rec)\n\t{\n\t\t\n\t\t$this->setProps($rec);\n\t\t$this->staff = null;\n\t\t$this->roster = null;\n\t\t\n\t\t$this->loadStaff();\n\t\t\n\t}", "protected function _construct()\n {\n $this->_init(CarrierModel::RATE_TABLE_NAME, 'rate_id');\n }", "protected function __construct($init_params) {\n // Inidicate this instance's association with stored db record \n $this->hasBeenDeleted = false;\n\n // Initialize and set values in field table\n $this->initDbFieldTables($init_params);\n $this->validateOrThrow();\n }", "public function initialize()\n {\n $this->setSchema(\"firsttex\");\n $this->setSource(\"stat_openrtb\");\n }", "public function __construct() {\n parent::__construct(self::TABLE_NAME, self::ID, self::NAME);\n $this->_age_model_method = null;\n $this->_core_id = null;\n $this->_age_model_notes = array();\n $this->_contact_id = null;\n $this->_age_model_id_status = 0;\n }", "function __construct() {\n if($this->Fields) {\n foreach($this->Fields as $key => $value) {\n $this->$key = null;\n if($value['extra'] === \"auto_increment\") $this->Id = $key;\n if($value['extra'] === \"ref\") $this->Ref = $key;\n }\n }\n }", "public function initialize()\n {\n $this->setSchema(\"joteck\");\n $this->setSource(\"Login_Attempt\");\n }", "public function initialize()\n {\n parent::initialize();\n $this->setSchema(\"salesDB\");\n $this->setSource(\"questionnaire\");\n $this->hasMany('id', 'App\\Models\\Question', 'questionnaire_id', ['alias' => 'Question']);\n $this->belongsTo('itinerary_type_id', 'App\\Models\\ItineraryType', 'id', ['alias' => 'ItineraryType']);\n $this->belongsTo('client_id', 'App\\Models\\Client', 'id', ['alias' => 'Client']);\n $this->belongsTo('user_created', 'App\\Models\\User', 'id', ['alias' => 'UserCreated']);\n $this->belongsTo('user_updated', 'App\\Models\\User', 'id', ['alias' => 'UserUpdated']);\n $this->belongsTo('questionnaire_type_id', 'App\\Models\\QuestionnaireType', 'id', ['alias' => 'QuestionnaireType']);\n $this->belongsTo('sync_status_id', 'App\\Models\\SyncStatus', 'id', ['alias' => 'SyncStatus']);\n }", "public function initialize()\n {\n $this->setSchema(\"xpay\");\n $this->setSource(\"pay_acc\");\n }", "public function initialize()\n {\n $this->setSchema(\"social_media\");\n $this->setSource(\"Transaction\");\n $this->belongsTo('comment_id', 'App\\Models\\Comment', 'id', ['alias' => 'Comment']);\n $this->belongsTo('user_id', 'App\\Models\\User', 'id', ['alias' => 'User']);\n }", "private function init() {\n\t\tlist(, $this->db, $this->table) = explode('_', get_called_class(), 3);\n\t\t$this->db = defined('static::DB') ? static::DB : $this->db;\n\t\t$this->table = defined('static::TABLE') ? static::TABLE : $this->table;\n\t\t$this->pk = defined('static::PK') ? static::PK : 'id';\n\t}", "public function initialize()\n {\n $this->setSchema(\"adsmall\");\n $this->setSource(\"cameras\");\n }", "public function initialize()\n {\n $this->setSchema(\"dtt\");\n $this->setSource(\"house\");\n }", "function __construct()\n {\n $this->id = 0;\n $this->issuedDate = date('Y-m-d H:i:s');\n $this->returnDate = date('Y-m-d H:i:s');\n $this->fine = 0;\n $this->bookId = 0;\n $this->userId = 0;\n }", "public function init() {\n\t\t// use this method to initialize default values.\n\t}", "public function init() {\n $this->store->init();\n }", "public function __construct()\n {\n $this->_idField = $this->getIdField();\n $this->_tableName = $this->getTableName();\n\n if (!static::$_db) {\n static::$_db = Database::getInstance();\n }\n\n if (!static::$_schema) {\n static::$_schema = new Cache();\n }\n }", "private function __construct()\n\t{\n\t\tglobal $ilDB;\n\n\t\t$this->db =& $ilDB;\n\n\t\t$this->__read();\n\t}", "public function initialize()\n {\n $this->keepSnapshots(true);\n $this->addBehavior(new Blameable());\n $this->useDynamicUpdate(true);\n $this->hasMany(\"id\", \"models\\Formentrys\", \"form_id\", ['alias' => 'Entries']);\n $this->hasMany(\"id\", \"models\\Formfields\", \"form_id\", ['alias' => 'Formfields']);\n $this->belongsTo(\"user_id\", \"models\\Users\", \"id\", ['alias' => 'Users']);\n }", "public function initialize()\n {\n $this->setSchema(\"kp_invlab_nia\");\n $this->setSource(\"barang\");\n }", "public function init()\n {\n }", "public function init()\n {\n }", "public function _initialize()\n {\n \tparent::_initialize();\n $this->pz\t = D('mru_jfb');\n $this->dp\t = D('Miye_dianpu');\n $this->order = D('Miye_order');\n \n }", "public function init()\n {\n }", "public function init()\n {\n }", "public function init()\n {\n }", "public function init()\n {\n }", "public function init()\n {\n }", "public function init()\n {\n }", "public function init()\n {\n }", "public function init()\n {\n }", "public function init()\n {\n }", "public function init()\n {\n }", "public function init()\n {\n }", "public function initialize() {\n $this->setSchema(\"coopdb\");\n $this->setSource(\"pedidosdetalle\");\n $this->belongsTo('IDKEY', 'Pedidos', 'TxnID', ['alias' => 'Pedidos']);\n }", "public function init()\n {\n $this->setSource('blobs');\n $this->setDbRef(true);\n }", "public function init()\n {\n parent::init();\n\n $this->deleted = 0;\n }", "public function initialize()\n {\n }", "public function initialize()\n {\n }", "protected function init()\r\n {\r\n $this->table_name = 'libelles';\r\n $this->table_type = 'system';\r\n $this->table_gateway_alias = 'Sbm\\Db\\SysTableGateway\\Libelles';\r\n $this->id_name = array(\r\n 'nature',\r\n 'code'\r\n );\r\n }", "public function __construct(Citizen $record)\n {\n \n $this->id = $record->id;\n $this->firstName = $record->firstName;\n $this->lastName = $record->lastName;\n $this->sex = $record->sex;\n $this->age = $record->age;\n $this->phone = $record->phone;\n $this->email = $record->email;\n $this->created_at = $record->created_at;\n $this->updated_at = $record->updated_at;\n\n \n }", "public function init_from_record($rec) {\n $this->id = $rec->id;\n $this->plugin = $rec->plugin;\n $this->timemodified = $rec->timemodified;\n if ($rec->courseid) {\n $this->courseid = $rec->courseid;\n }\n if ($rec->coursemoduleid) {\n $this->coursemoduleid = $rec->coursemoduleid;\n }\n if ($rec->groupid) {\n $this->groupid = $rec->groupid;\n }\n if ($rec->userid) {\n $this->userid = $rec->userid;\n }\n if ($rec->stringref) {\n $this->stringref = $rec->stringref;\n }\n if ($rec->intref1) {\n $this->intref1 = $rec->intref1;\n }\n if ($rec->intref2) {\n $this->intref2 = $rec->intref2;\n }\n if ($rec->timeexpires) {\n $this->timeexpires = $rec->timeexpires;\n }\n }", "public function initialize()\n {\n $this->setSchema(\"nidara_private_school\");\n $this->setSource(\"salesman_address\");\n }", "public function initialize()\n {\n $this->setSchema(\"watches_online\");\n $this->setSource(\"purchase_invoices_detail\");\n }", "public function __construct($data, RecordType $recordType = null)\n {\n $this->data = $data;\n $this->recordType = $recordType;\n }", "protected function _initialize()\n {\n $this->metadata()->setTablename('turma');\n $this->metadata()->setPackage('Model');\n \n # nome_do_membro, nome_da_coluna, tipo, comprimento, opcoes\n \n $this->metadata()->addField('id', 'id', 'int', 11, array('primary' => true, 'notnull' => true, 'autoincrement' => true));\n $this->metadata()->addField('foto', 'foto', 'varchar', 45, array());\n $this->metadata()->addField('ano', 'ano', 'int', 11, array('notnull' => true));\n $this->metadata()->addField('semestre', 'semestre', 'int', 1, array('notnull' => true));\n\n \n $this->metadata()->addRelation('egressos', Lumine_Metadata::ONE_TO_MANY, 'Egresso', 'turmaId', null, null, null);\n }", "protected function _initialize()\r\n {\r\n $this->metadata()->setTablename('comentarios');\r\n $this->metadata()->setPackage('system.application.models.dao');\r\n \r\n # nome_do_membro, nome_da_coluna, tipo, comprimento, opcoes\r\n \r\n $this->metadata()->addField('id', 'id', 'int', 11, array('primary' => true, 'notnull' => true, 'autoincrement' => true));\r\n $this->metadata()->addField('comentario', 'comentario', 'varchar', 45, array());\r\n $this->metadata()->addField('dataAvaliacao', 'data_avaliacao', 'datetime', null, array());\r\n $this->metadata()->addField('coordenadorId', 'coordenador_id', 'int', 11, array());\r\n $this->metadata()->addField('itemAvaliado', 'item_avaliado', 'varchar', 45, array());\r\n $this->metadata()->addField('avaliador', 'avaliador', 'varchar', 45, array());\r\n $this->metadata()->addField('tipoAvaliacao', 'tipo_avaliacao', 'varchar', 45, array());\r\n $this->metadata()->addField('subtipoAvaliacao', 'subtipo_avaliacao', 'varchar', 45, array());\r\n\r\n \r\n }", "protected function _construct()\n {\n $this->_init(SetupSchema::TABLE_ORDER, OrderReferenceInterface::ENTITY_ID);\n }", "public function initialize() {\n\n $this->users = new \\Anax\\Users\\User();\n $this->users->setDI($this->di);\n $this->users->setTablePrefix('iproducer_');\n\n $this->comments = new \\Anax\\Comment\\Comment();\n $this->comments->setDI($this->di);\n $this->comments->setTablePrefix('iproducer_');\n\n $this->tags = new \\Anax\\Tags\\AssignTags();\n $this->tags->setDI($this->di);\n $this->tags->setTablePrefix('iproducer_');\n\n $this->assignTags = new \\Anax\\Tags\\AssignTags();\n $this->assignTags->setDI($this->di);\n $this->assignTags->setTablePrefix('iproducer_');\n\n $this->commentanswer = new \\Anax\\Comment\\CommentAnswer();\n $this->commentanswer->setDI($this->di);\n $this->commentanswer->setTablePrefix('iproducer_');\n }", "public function initialize()\n {\n $this->setSchema(\"smm\");\n $this->setSource(\"shiiresaki_tanka_dts\");\n }", "public function init()\n {\n \t\n }", "public function init()\n {\n \t\n }", "public function _initialize() {\n parent::_initialize();\n\t\t$this->db = model('order');\n\t\t$this->log_db = model('order_log');\n\t\t$this->order_goods = model('order_goods');\n\t\t$this->parcel_db=model('order_parcel');\n $this->goods_kc = model(\"goods_products\");\n $this->goods = model(\"goods\");\n $this->_order_staging = model('order_staging');//订单分期表查询\n $this->_order_pact =model(\"order_pact\");//订单合同表查询\n $this->_order_goods_staging=model(\"order_goods_staging\");//订单商品分期表\n $this->user= model(\"User\");\n $this->order = model(\"Order\");\n }", "public function init(){}", "public function init(){}", "public function initialize()\n {\n\n $this->setSource(\"notice_worker\");\n $this->belongsTo('worker_id', 'Dldh\\Models\\Worker', 'id', ['alias' => 'Worker']);\n }", "function initAsSpecimen() {\n $this->id = 0;\n\n $this->label = '';\n $this->datec = '';\n $this->fk_author = '';\n $this->tms = '';\n $this->fk_source = '';\n $this->sourcetype = '';\n $this->url = '';\n }", "public function initializeObject() {\r\r\n\t\t$this->connectDatabase();\r\r\n\t}", "protected function initializeObject() {}", "public function initialize()\n {\n $this->_db = new Fplanillassal();\n }", "public function initialize()\n {\n //$this->setSchema(\"service_services\");\n $this->setSource(\"tokens\");\n $this->belongsTo('userid', '\\Userinfo', 'userid', ['alias' => 'Userinfo']);\n }", "public function init() {}", "public function init() {}", "public function init() {}", "public function init() {}", "public function init() {}", "public function init() {}", "public function init() {}", "public function init() {}", "public function init() {}" ]
[ "0.7803983", "0.7745992", "0.7478947", "0.74596554", "0.7325732", "0.70340437", "0.6973042", "0.6962455", "0.6909589", "0.67375666", "0.67324245", "0.6727791", "0.67176604", "0.67133415", "0.6643255", "0.6600467", "0.6570326", "0.65536577", "0.6532003", "0.65141046", "0.65055895", "0.65044284", "0.64711946", "0.64598155", "0.6457092", "0.64328444", "0.6424954", "0.6416706", "0.6412617", "0.64116544", "0.64095026", "0.64047813", "0.6392943", "0.63710445", "0.63582623", "0.63580686", "0.633182", "0.63268095", "0.6293137", "0.62747157", "0.6269192", "0.6255835", "0.6248935", "0.6242002", "0.62280303", "0.62137574", "0.62029964", "0.6194714", "0.6191346", "0.6188658", "0.61877346", "0.61777246", "0.61777246", "0.61772704", "0.6176238", "0.6176085", "0.6176085", "0.6176085", "0.6176085", "0.6176085", "0.6176085", "0.6176085", "0.6176085", "0.6176085", "0.61759055", "0.61697006", "0.6169416", "0.6166429", "0.6164688", "0.6164688", "0.6161341", "0.6156634", "0.6153704", "0.61519146", "0.61506623", "0.61345667", "0.6128893", "0.611846", "0.6117973", "0.61168206", "0.61121976", "0.61095095", "0.61095095", "0.61001897", "0.6098056", "0.6098056", "0.6091657", "0.60885125", "0.60803455", "0.6077386", "0.6066537", "0.60629976", "0.60610235", "0.60610235", "0.60610235", "0.60610235", "0.60610235", "0.60595816", "0.60595816", "0.60595816", "0.60595816" ]
0.0
-1
Sets the specified field to the specified value. Also flags the record as being changed.
public function __set($field, $value) { if(array_key_exists($field, $this->_data)) { $this->_data[$field] = $value; if($this->_state == self::STATE_UNCHANGED) { $this->_state = self::STATE_CHANGED; } } else { throw new \Bedrock\Model\Record\Exception('The specified field "' . $field . '" was not found.'); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function set($field, $value);", "public function set($field, $value);", "public function setField($value) {\n\t\t$this->_field = $value;\n\t}", "public function set($field, $value) {\r\n\t\t$this -> fields[$field] = $value;\r\n\t}", "public function setField($field);", "public function setField($field);", "public function __set($field, $value){\n if (array_key_exists($field, $this->fields)){\n $this->fields[$field] = $value;\n }\n }", "public function __set($field, $value){\n if (array_key_exists($field, $this->fields)){\n $this->fields[$field] = $value;\n }\n }", "public function setValue($fieldname, $value);", "public function __set($field, $value)\n {\n if (array_key_exists($field, $this->fields))\n {\n $this->fields[$field] = $value;\n }\n }", "public function __set($field, $value)\n {\n if (array_key_exists($field, $this->fields))\n {\n $this->fields[$field] = $value;\n }\n }", "function setValue(int $field, $value) : void;", "function setField($field, $value)\n {\n $this->_data[$field] = $value;\n }", "public function setFieldValue(Field $field, $model, $value);", "public function __set($field, $value){\n\t\tif(array_key_exists($field, $this->fields)){\n\t\t\t$this->fields[$field]=$value;\n\t\t}\n\t}", "public function setField($name, $value);", "public function __set($field, $value) {\r\n $this->$field = $value;\r\n }", "public function __set($field, $value) {\r\n $this->$field = $value;\r\n }", "public function setField($field)\n {\n $this->_field = $field;\n }", "public function setValue($field, $value){\n $this->values[$field] = $value;\n }", "public function __set ($field, $val) {\n if (isset($this->__fields[$field]['set'])) {\n $this->__fields[$field]['data'] = $this->__fields[$field]['set']($val);\n } else {\n $this->__fields[$field]['data'] = $val;\n }\n }", "public function __set(string $field, $value): void\n\t{\n\t\t$this->setValue($field, $value);\n\t}", "public function setField($field) {\n\t\t$this->_field = $field;\n\t}", "public function setField(string $name, Field $field);", "public function set($field, $value) {\n $this->$field = $value;\n }", "public function __set($field, $value)\n {\n $this->checkForNecessaryProperties();\n\n $this->data[$field] = $value;\n }", "public function setField(Field $field) {\n\t\t$this->field = $field; \n\t}", "public function setField(string $name, $value);", "function setField($field) {\r\r\n\t\t$this->field = $field;\r\r\n\t}", "public function bis2HsSetProperty( $field, $value ) {\r\n\t\t$this->record[$field] = $value;\r\n\t\treturn( true );\r\n\t}", "public function setValue($field, $value): int {\n if (in_array($field, static::fields, TRUE)){\n $this->{$field}->setValue($value);\n return 1;\n }\n return 0;\n }", "final public function __set($field, $value)\n\t\t{\n\t\t\tswitch($field)\n\t\t\t{\n\t\t\t\tcase \"IsPersistent\":\n\t\t\t\t\t\n\t\t\t\t\tif($value == true)\n\t\t\t\t\t{\n\t\t\t\t\t\t$this->stored = true;\n\t\t\t\t\t\t$this->changedfields = array();\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->stored = false;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tdefault:\n\t\t\t\t\t$method = \"Set\".$field;\n\t\t\t\t\t$class = get_called_class();\n\t\t\t\t\t\n\t\t\t\t\t// Check if the current value (if any) equals the new value\n\t\t\t\t\t// If it doesn't, the field is to be declared as changed\n\t\t\t\t\t$currentValue = null;\n\t\t\t\t\t\n\t\t\t\t\ttry\n\t\t\t\t\t{\n\t\t\t\t\t\t$currentValue = $this->__get($field);\n\t\t\t\t\t}\n\t\t\t\t\tcatch(ValueCannotBeNullException $e)\n\t\t\t\t\t{\n\t\t\t\t\t\t// ignore\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif($currentValue <> $value)\n\t\t\t\t\t{\n\t\t\t\t\t\t$this->changedfields[] = $field;\n\t\t\t\t\t\t$this->stored = false;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif(!method_exists($this, $method))\n\t\t\t\t\t{\n\t\t\t\t\t\t$logcode = LogManager::_(\"No Setter defined in '\".$class.\"->\".$method.\"'\");\n\t\t\t\t\t\tthrow new SetterNotDeclaredException($logcode);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t// Check the parameters\n\t\t\t\t\tFunctionCheck::CheckMethodParameters($class.\"::\".$method, array($value));\n\t\t\t\t\t\n\t\t\t\t\t// Find the method\n\t\t\t\t\t$method = new \\ReflectionMethod($class, $method);\n\t\t\t\t\t\n\t\t\t\t\t$method->setAccessible(true);\n\t\t\t\t\t\n\t\t\t\t\t// And execute it\n\t\t\t\t\t$method->invokeArgs($this, array($value));\n\t\t\t\t\t$method->setAccessible(false);\n\t\t\t\t\t\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "public function __set($field, $value) {\n\t\t$this[$field] = $value;\n\t}", "public function setField(string $field): void\n {\n $this->field = $field;\n }", "public function SetField($val, $field)\n {\n $this->{$field} = $val;\n //echo $field.'<br>';\n }", "public function setValueField($valueField) {\n\t\t$this->valueField = $valueField;\n\t}", "public function setField( WebLab_Data_Field $field ) {\n $this->_field = $field;\n }", "public function eventsSetProperty( $field, $value ) {\r\n\t\t$this->{$field} = $value;\r\n\t\treturn( true );\r\n\t}", "protected function setField ($field, $value) {\n if ($this->{$field} !== $value) {\n $this->{$field} = $value;\n $this->setDirty();\n }\n return $this;\n }", "public function setBillingField($field, $value) {\n\t\t$this->billingDetails[$field] = $value;\n\t}", "public function changeField( $field, $key, $value ) {\r\n if ( isset($this->fields[$field]) ) {\r\n $this->fields[$field][$key] = $value;\r\n }\r\n\r\n }", "public function setPropertyValue(string $field_name, $value): void;", "public function set_field( string $field, $data ) {\n\t\t$this->data[ $field ] = $data;\n\t}", "protected function setLocalField($field, $value) {\n if ($field == 'union_name') {\n $field = 'organization_name';\n }\n #converts phone field so it's found in union's telecommunication_number\n if ($field == 'union_phone_no') {\n $field = 'contact_number';\n }\n return parent::setLocalField($field, $value);\n }", "public function eventTypesSetProperty( $field, $value ) {\r\n\t\t$this->{$field} = $value;\r\n\t\treturn( true );\r\n\t}", "public function setFieldData($field, $key, $value)\n {\n $this->fields[$field][$key] = $value;\n }", "function setField($Field){\n\t\t$this->Field = $Field;\n\t}", "public static function setFieldSettings($field_id = NULL, $attrib = NULL, $val = NULL)\n {\n $field = FieldManager::fetch($field_id);\n $field->set($attrib, $val);\n $field->commit();\n }", "public function setFieldValue($fieldSlug, $value);", "public function set($field, $newVal) {\r\n $newVal = $this->addQuotes($newVal);\r\n $this->sqlSetValues[$field] = $newVal;\r\n return $this;\r\n }", "protected function set($field, $value)\n {\n if ($value === null) {\n unset($this[$field]);\n return $this;\n }\n if ($this->data !== null) {\n $this->data[$field] = $value;\n }\n if ($this->new && !$this->upsertMode) {\n return $this;\n }\n\n unset($this->updatePlan['$unset'][$field]);\n if (!isset($this->updatePlan['$set'])) {\n $this->updatePlan['$set'] = [$field => $value];\n } else {\n $this->updatePlan['$set'][$field] = $value;\n }\n\n return $this;\n }", "public function _setFieldInData($fieldName, $value)\n {\n if ($value === null)\n {\n unset($this->aData[$fieldName]);\n }\n else\n {\n $this->aData[$fieldName] = $value;\n }\n $this->setNeedsSaving();\n }", "public function setField(string $field): static;", "public function set_id_field_and_value($fieldname,$value) {\n $this->id_field=$fieldname;\n $this->id_field_value=$value;\n }", "public function set(string $field, $value): self\n {\n $this->$field = $value;\n\n return $this;\n }", "public function set(string $field, $value): self\n {\n $this->$field = $value;\n\n return $this;\n }", "public function setValue($field, $value) {\n $this->updates[$field] = $value;\n\n return $this;\n }", "protected function setFieldValue ($field) {\n if ($this->$field instanceof Newforms_File)\n $this->$field->setValue('');\n if (!$this->__bound) return;\n if (is_array($this->__Data)) {\n if (isset($this->__Data[$field])) {\n $this->$field->setValue ($this->__Data[$field]);\n return;\n }\n return;\n }\n if (is_object ($this->__Data)) {\n if (isset($this->__Data->$field)) {\n $this->$field->setValue ($this->__Data->$field);\n return;\n }\n return;\n }\n }", "public function setField($key, $value, $boost = FALSE) {\n $this->_fields[$key] = $value;\n $this->setFieldBoost($key, $boost);\n }", "function set_post_field ($field, $value, $post_id) {\n\t\tglobal $wpdb;\n\n\t\t$post_id = absint($post_id);\n\t\t// sigh ... when FWP is active, I need to avoid avoid_kses_munge\n\t\t// $value = sanitize_post_field($field, $value, $post_id, 'db');\n\t\treturn $wpdb->update($wpdb->posts, array($field => $value), array('ID' => $post_id));\n\t}", "public function set($uid, $field, $value)\n {\n $result = $this->getAdapter()->set($uid, $field, $value);\n if ($result && $uid == $this->getId()) {\n $this->setPersist($field, $value);\n }\n\n return $result;\n }", "public function set(string $field, int | float | bool | string | Expr $value): static\n {\n $this->what[$field] = $value;\n return $this;\n }", "public function set($field, $value): self\n {\n $this->$field = $value;\n\n return $this;\n }", "public function update( $field, $value ) {\n\t\tif ( isset($this->ID) ) {\n\t\t\tupdate_post_meta($this->ID, $field, $value);\n\t\t\t$this->$field = $value;\n\t\t}\n\t}", "public function setValue($fieldName, $value, $encoding = 'UTF-8') {}", "public function set_custom_field($member, $field, $value)\n {\n $this->connection->query_update('users', array('cms_' . $field => $value), array('uid' => $member), '', null, null, false, true);\n }", "public function geographySetProperty( $field, $value ) {\n\t\t$this->{$field} = $value;\n\t\treturn( true );\n\t}", "public final function setField($val)\n {\n $this->fields = is_array($val) ? $val : array(\n $val\n );\n return $this;\n }", "public function __set($key, $value)\n {\n $this->fields[ $key ] = $value;\n }", "public function __set($fieldName, $fieldValue) {\n\t\t$this->document->$fieldName = json_decode(json_encode($fieldValue));\n\t}", "function setFieldParam($fieldname, $name, $value)\n\t{\n\t\tif (is_array($fieldname))\n\t\t\tforeach ($fieldname as $fieldn)\n\t\t\t{\n\t\t\t\tif (isset($this->table->fields[$fieldn]))\n\t\t\t\t\t$this->table->fields[$fieldn]->$name = $value;\n\t\t\t\telse\n\t\t\t\t\ttrigger_error(\"No field exists with the name: $fieldn\");\n\t\t\t}\n\t\telse\n\t\t{\n\t\t\tif (isset($this->table->fields[$fieldname]))\n\t\t\t{\n\t\t\t\t$this->table->fields[$fieldname]->$name = $value;\n\t\t\t}\n\t\t\telse\n\t\t\t\ttrigger_error(\"No field exists with the name: $fieldname\");\n\t\t}\n\t}", "public function setField($field)\n {\n $this->field = (string) $field;\n return $this;\n }", "function set($field, $value = null) {\n\n\t\tif (!is_array($field)) {\n\t\t\t$field = array($field => $value);\n\t\t}\n\n\t\treturn $this->assign($field);\n\n\t}", "function update_field($field)\n {\n }", "function update_field($field)\n {\n }", "function update_field($field)\n {\n }", "function update_field($field)\n {\n }", "public function set($uid, $field, $value)\n {\n $uid = (int)$uid;\n if (!$uid) {\n return false;\n }\n\n $row = Pi::model('user_account')->find($uid);\n if (!$row) {\n $result = false;\n } else {\n $row->assign([$field => $value]);\n try {\n $row->save();\n $result = true;\n } catch (\\Exception $e) {\n $result = false;\n }\n }\n\n return $result;\n }", "private function setFieldValue($fieldName, $value)\n\t{\n\t\tif (empty($value)) return false;\n\n\t\t// go through all fields, and update the given value\n\t\t$this->fields->transform(function ($fieldData) use ($fieldName, $value) {\n\t\t\tif ($fieldData['name'] === $fieldName) {\n\t\t\t\t$fieldData['value'] = $value;\n\t\t\t}\n\t\t\treturn $fieldData;\n\t\t});\n\n\t\treturn true;\n\t}", "function offsetSet($key, $value)\n\t{\n\t\t$this->fields[$key] = $value;\n\t}", "public function setField($field)\n {\n $this->field = $field;\n return $this;\n }", "public function setField($field)\n {\n $this->field = $field;\n return $this;\n }", "public function set($field, $value = NULL, $SQL_value = false){\n\t\tif(is_array($field)){\n\t\t\tforeach($field as $k => $v){\n\t\t\t\t$this->set($k, $v);\n\t\t\t}\n\t\t}else{\n\t\t\t$this->dodb['set'][$field] = array($value, $SQL_value);\n\t\t}\n\t\treturn $this;\n\t}", "private function setAttributeValueFromField(string $field_name) {\n // We need to unaltered field data value here not the field value returned\n // by $this->get($field_name)->value (magic getter).\n $field_value = $this->get($field_name)->getValue();\n // Property not found so let's save it as an attribute value.\n $attribute_value = $this->fieldAttributeConverter()->getAttributeValueFromField($this->entityTypeId, $field_name, $field_value);\n if ($attribute_value !== NULL) {\n $attribute_name = $this->fieldAttributeConverter()->getAttributeName($field_name);\n // Do not leave empty attributes. If generated attribute value is an\n // empty string let's remove it from the entity.\n // (Apigee Edge MGMT UI does not allow to save an entity with empty\n // attribute value, the API does.)\n if ($attribute_value === '') {\n $this->decorated->deleteAttribute($attribute_name);\n }\n else {\n $this->decorated->setAttribute($attribute_name, $attribute_value);\n }\n }\n }", "public function field($value) {\n return $this->setProperty('field', $value);\n }", "public function field($value) {\n return $this->setProperty('field', $value);\n }", "public function field($value) {\n return $this->setProperty('field', $value);\n }", "function setRefFields($val) {\n $this->_refFields = $val;\n }", "public function set($field, $value, $quote = TRUE)\n\t\t{\n\t\t\t$this->sets[$field] = $quote ? \"'$value'\" : $value;\n\t\t\treturn $this;\n\t\t}", "public function setField($field) {\n $this->field = $field;\n return $this;\n }", "public function setValue($value);", "public function setValue($value);", "public function setValue($value);", "public function setValue($value);", "public function setValue($value);", "public function setValue($value);", "public function setValue($value);", "public function setValue($value);", "public function setValue($value);", "public function setValue($value);" ]
[ "0.78336155", "0.78336155", "0.7797433", "0.76317036", "0.76293015", "0.76293015", "0.7602628", "0.7602628", "0.7527108", "0.75237703", "0.75237703", "0.7490729", "0.7485059", "0.7431458", "0.734433", "0.73275375", "0.73233813", "0.73233813", "0.7303442", "0.72706616", "0.7258783", "0.72457826", "0.7237776", "0.72323203", "0.7215059", "0.7204307", "0.71920425", "0.71877265", "0.71149325", "0.7100143", "0.7087624", "0.7076104", "0.7063078", "0.7033615", "0.7030327", "0.7017183", "0.69073087", "0.676952", "0.6756966", "0.6731789", "0.667115", "0.6657282", "0.65790063", "0.65773886", "0.65173316", "0.6502138", "0.64977115", "0.642042", "0.6378559", "0.6346728", "0.6346385", "0.6333049", "0.63310844", "0.6327439", "0.6327044", "0.6327044", "0.63212043", "0.63202095", "0.6306148", "0.6282835", "0.6279246", "0.6277001", "0.62719786", "0.6230996", "0.6189558", "0.617169", "0.61539423", "0.6141678", "0.6085632", "0.6072333", "0.60592514", "0.6052155", "0.6018888", "0.60145354", "0.60145354", "0.60145354", "0.60145354", "0.600395", "0.5988637", "0.5964575", "0.59574074", "0.59574074", "0.59572786", "0.5953569", "0.59313697", "0.59313697", "0.59313697", "0.59264994", "0.5919937", "0.59079766", "0.58871084", "0.58871084", "0.58871084", "0.58871084", "0.58871084", "0.58871084", "0.58871084", "0.58871084", "0.58871084", "0.58871084" ]
0.7715629
3
Retrieves the corresponding field value for the record, or throws an exception for nonexistent field names.
public function __get($field) { if(array_key_exists($field, $this->_data)) { return $this->_data[$field]; } else { throw new \Bedrock\Model\Record\Exception('The specified field "' . $field . '" was not found.'); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getFieldValue($fieldName){\n\n\t\tif( isset($this->record[$fieldName]) ) return $this->record[$fieldName];\n\t\telse return false;\n\n\t}", "function getFieldValue($field);", "public function getFieldValue(/*string*/ $fieldName);", "public function getField($name) { return $this->fields[$name]; }", "function getFieldValue(&$record, $name, $type) {\n\t\t$fieldValue = null;\n\t\t$parsedContents = $record->getParsedContents();\n\t\tif (isset($parsedContents[$name])) switch ($type) {\n\t\t\tcase SORT_ORDER_TYPE_STRING:\n\t\t\t\t$fieldValue = join(';', $parsedContents[$name]);\n\t\t\t\tbreak;\n\t\t\tcase SORT_ORDER_TYPE_NUMBER:\n\t\t\t\t$fieldValue = (int) array_shift($parsedContents[$name]);\n\t\t\t\tbreak;\n\t\t\tcase SORT_ORDER_TYPE_DATE:\n\t\t\t\t$fieldValue = strtotime($thing = array_shift($parsedContents[$name]));\n\t\t\t\tif ($fieldValue === -1 || $fieldValue === false) $fieldValue = null;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tfatalError('UNKNOWN TYPE');\n\t\t}\n\t\tHookRegistry::call('DublinCorePlugin::getFieldValue', array(&$this, &$fieldValue));\n\t\treturn $fieldValue;\n\t}", "public function getField($field_name);", "function getfield($field){\n\n\t\treturn($this->record[$field]);\n\t}", "public function getField()\n {\n $value = $this->name;\n if (null != $this->field) {\n $value = $this->field;\n }\n return $value;\n }", "public function getFieldByKey($fieldKey) {\n\t\tif ((bool) $this->_result) {\n\t\t\tif (isset($this->_result[$fieldKey])) return $this->_result[$fieldKey];\n\t\t\telse parent::throwGetColException('CampaignDefinitionsModel::getFieldByName', __LINE__, __FILE__);\n\t\t}\n\t\telse return parent::throwNoResException('CampaignDefinitionsModel::getFieldByName', __LINE__, __FILE__);\n\t}", "public function getField($fieldName) {}", "public function getFieldValue($name)\n\t\t{\n\t\t\treturn $this->row[$name];\n\t\t}", "function getValueFromField()\r\n\t{\r\n\t\treturn $this->row[ key( $this->mapping ) ];\r\n\t}", "public function getFieldByName($field) {\n\t\tif ((bool) $this->_result) {\n\t\t\tif (isset($this->_resultFields[$field]) && isset($this->_result[$this->_resultFields[$field]])) return $this->_result[$this->_resultFields[$field]];\n\t\t\telse parent::throwGetColException('trying to get non existing data ('.$field.') in CampaignDefinitionsModel::getFieldByName', __LINE__, __FILE__);\n\t\t}\n\t\telse return parent::throwNoResException('trying to get non existing data ('.$field.') in CampaignDefinitionsModel::getFieldByName', __LINE__, __FILE__);\n\t}", "public function getFieldByName($field) {\n\t\tif ((bool) $this->_result) {\n\t\t\tif (isset($this->_resultFields[$field]) && isset($this->_result[$this->_resultFields[$field]])) return $this->_result[$this->_resultFields[$field]];\n\t\t\telse parent::throwGetColException('trying to get non existing data ('.$field.') in ProjectsListingsModel::getFieldByName', __LINE__, __FILE__);\n\t\t}\n\t\telse return parent::throwNoResException('trying to get non existing data ('.$field.') in ProjectsListingsModel::getFieldByName', __LINE__, __FILE__);\n\t}", "public function getFieldByKey($fieldKey) {\n\t\tif ((bool) $this->_result) {\n\t\t\tif (isset($this->_result[$fieldKey])) return $this->_result[$fieldKey];\n\t\t\telse parent::throwGetColException('ProjectsListingsModel::getFieldByName', __LINE__, __FILE__);\n\t\t}\n\t\telse return parent::throwNoResException('ProjectsListingsModel::getFieldByName', __LINE__, __FILE__);\n\t}", "public function getDataFieldValue($record, $fieldName)\n {\n // Custom callbacks\n if (isset($this->customDataFields[$fieldName])) {\n $callback = $this->customDataFields[$fieldName];\n\n return $callback($record);\n }\n\n // Links\n if ($fieldName == \"Link\") {\n return $record->AbsoluteLink();\n }\n\n // URLSegments\n if ($fieldName == \"URL\" || $fieldName == \"URLSegment\") {\n return $record->RelativeLink();\n }\n\n // Default implementation\n if ($record->hasMethod(\"relField\")) {\n $value = $record->relField($fieldName);\n if ($fieldName == \"isPublished\") {\n $value = ($value) ? _t(\"SitewideContentReport.Published\", \"Published\") : _t(\"SitewideContentReport.Draft\", \"Draft\");\n } elseif ($fieldName == \"Subsite.Title\") {\n $value = ($value) ? $value : _t(\"SitewideContentReport.MainSite\", \"Main Site\");\n }\n return $value;\n } elseif ($record->hasMethod($fieldName)) {\n return $record->$fieldName();\n } else {\n return $record->$fieldName;\n }\n }", "public function getField($key)\n {\n if (isset($this->fields[$key])) {\n return $this->fields[$key];\n }\n\n throw new \\Exception(sprintf('Field name \"%s\" not found.', $key));\n }", "protected function getValue($field, $throwException = true) {\n if(isset($this->nameToIndex[$field])) {\n $fieldClass = $this->fields[$this->nameToIndex[$field]];\n return $fieldClass->getValue();\n }\n if($throwException) {\n throw new PhpBuf_Message_Exception(\"property $field not found\");\n }\n }", "public function fetchField();", "public function getField($fieldName)\n {\n return isset($this->fields[$fieldName]) ? $this->fields[$fieldName] : null;\n }", "public function getField($fieldName)\n {\n if (isset($this->fields[$fieldName])) {\n return $this->fields[$fieldName];\n }\n return $this->fm->returnOrThrowException(\n 'Field '.$fieldName.' Not Found in Layout '. $this->layout->getName()\n );\n }", "public function getValue($field) {\n if (array_key_exists($field, $this->data)) {\n return $this->data[$field];\n } else {\n die(\"Campo no encontrado\");\n }\n}", "public function getField($field_name) {\n $retval = NULL;\n // if field exists\n if (array_key_exists($field_name,$this->form_fields)) {\n $retval = $this->form_fields[$field_name];\n }\n return $retval;\n }", "public function getFieldByName($field) {\n\t\tif ((bool) $this->_result) {\n\t\t\tif (isset($this->_resultFields[$field]) && isset($this->_result[$this->_resultFields[$field]])) return $this->_result[$this->_resultFields[$field]];\n\t\t\telse parent::throwGetColException('trying to get non existing data ('.$field.') in PollTemplatesModel::getFieldByName', __LINE__, __FILE__);\n\t\t}\n\t\telse return parent::throwNoResException('trying to get non existing data ('.$field.') in PollTemplatesModel::getFieldByName', __LINE__, __FILE__);\n\t}", "private function getFieldValue($data, $fieldName)\n {\n if ($fieldValue = data_get($data, $fieldName)) {\n return $fieldValue;\n }\n\n return data_get($data, camel_case($fieldName));\n }", "public function getFieldByKey($fieldKey) {\n\t\tif ((bool) $this->_result) {\n\t\t\tif (isset($this->_result[$fieldKey])) return $this->_result[$fieldKey];\n\t\t\telse parent::throwGetColException('PollTemplatesModel::getFieldByName', __LINE__, __FILE__);\n\t\t}\n\t\telse return parent::throwNoResException('PollTemplatesModel::getFieldByName', __LINE__, __FILE__);\n\t}", "function getValueFromField()\n {\n return $this->current_row[ key( $this->mapping ) ];\n }", "public function getField($name) {\n\t\treturn $this->fields[$name];\n\t}", "public function value($field) {\n if ($field instanceof FormExtension)\n return $field->getValue($this->record);\n else if (isset($this->record)) {\n if (strpos($field, '.') !== false) {\n $elements = explode('.', $field);\n $value = $this->record;\n foreach ($elements as $element)\n $value = $value[$element];\n return $value;\n }\n return $this->record->$field;\n }\n else if (isset($this->data[$field])) {\n if (strpos($field, '.') !== false) {\n $elements = explode('.', $field);\n $value = $this->data;\n foreach ($elements as $element)\n $value = $value[$element];\n return $value;\n }\n return $this->data[$field];\n }\n return null;\n }", "public function getField($fieldName)\n {\n if (!isset($this->fields[$fieldName])) {\n return null;\n }\n\n return $this->fields[$fieldName];\n }", "function getValue(int $field);", "public abstract function FetchField();", "public function getFieldValue($fieldname)\n {\n return $this->{'get'.$fieldname}();\n }", "function getField ( $name )\n\t{\n\t\tif ( ake ( $name , $this->_fields ) )\n\t\t{\n\t\t\treturn $this->_fields[$name] ;\n\t\t}\n\t\treturn null ;\n\t}", "public function get($field_name)\n\t{\n\t\t$value = Arr::get($this->_values, $field_name);\n\n\t\t// The field's value is not set\n\t\tif ($value === NULL)\n\t\t{\n\t\t\treturn NULL;\n\t\t}\n\n\t\tif ($field = $this->_meta->field($field_name))\n\t\t{\n\t\t\t// If the field is defined, process the value using the field\n\t\t\t// object's `get` method.\n\t\t\t$value = $field->get($value);\n\t\t}\n\n\t\treturn $value;\n\t}", "public function getField($fieldKey){\n $fields = $this->getFields();\n return $fields->{$fieldKey};\n }", "public function getField($name) {\n return $this->getFields()[$name];\n }", "public function getField($name)\n {\n return $this->fields[$name];\n }", "function &getField($name){\n\t\t$fields =& $this->fields();\n\t\tif ( !isset($fields[$name]) ){\n\t\t\treturn null;\n\t\t} else {\n\t\t\treturn $fields[$name];\n\t\t}\n\t}", "function getValue($fieldname)\n\t{\n\t\tif ($this->id == 'new')\n\t\t\treturn \"\";\n\t\t\t\n\t\tif (isset($this->record->values[$fieldname]->value))\n\t\t\treturn $this->record->values[$fieldname]->value;\n\t\telse\n\t\t\treturn NULL;\n// \t\t\ttrigger_error(\"No value is set for the field: $fieldname\");\n\t}", "public function getValue(BasicRecord $record = null);", "public function __get ($name)\r\n {\r\n if (!isset ($this->_values[$name]))\r\n throw new Exception ('form field does not exist: '.$name);\r\n return $this->_values[$name];\r\n }", "public function getField($name)\n {\n if (!array_key_exists($name, $this->fields)) {\n throw new UnexpectedValueException('Trying to access an undefined field (`' . $name . '`).');\n }\n\n return $this->fields[$name];\n }", "public function field($fieldName = '') {\n if (!empty($fieldName)) {\n $this->currentField = $fieldName;\n }\n\n if (isset($this->fields[$this->currentField])) {\n return $this->fields[$this->currentField];\n } else {\n return null;\n }\n }", "public function getField(string $key);", "public function getFieldByName($field) {\n\t\tif ((bool) $this->_result) {\n\t\t\tif (isset($this->_resultFields[$field]) && isset($this->_result[$this->_resultFields[$field]])) return $this->_result[$this->_resultFields[$field]];\n\t\t\telse parent::throwGetColException('trying to get non existing data ('.$field.') in DiscussCategoriesModel::getFieldByName', __LINE__, __FILE__);\n\t\t}\n\t\telse return parent::throwNoResException('trying to get non existing data ('.$field.') in DiscussCategoriesModel::getFieldByName', __LINE__, __FILE__);\n\t}", "public function get($field);", "public function get($field);", "public function get($field) {\r\n\t\treturn $this -> fields[$field];\r\n\t}", "public function __get($name)\n {\n // does table have such row?\n if (!array_key_exists($name, $this->_fields)) {\n throw new Cms_Model_Exception(\n get_class($this) . \" doesn't have the '{$name}' field\"\n );\n }\n\n return $this->_fields[$name];\n }", "public function _getFieldInData($fieldName)\n {\n if (!isset($this->aData[$fieldName]))\n {\n return null;\n }\n\n return $this->aData[$fieldName];\n }", "public function getValue($fieldname, $raw = true);", "public function getField($field_name, $check_db_on_fail = true){\n if(isset($this->data[$this->alias][$field_name]))\n return $this->data[$this->alias][$field_name];\n else if($check_db_on_fail && $this->id)\n return $this->field($field_name);\n else\n return null;\n }", "public function getField($fieldName) {\n\t\t$result = NULL;\n\t\tif ($this->hasField($fieldName)) {\n\t\t\t$result = $this->tca['columns'][$fieldName];\n\t\t}\n\t\treturn $result;\n\t}", "public function get($name)\n\t{\n\t\tforeach ($this->getItems() as $field) {\n\t\t\tif ($field->getName() === $name) {\n\t\t\t\treturn $field;\n\t\t\t}\n\t\t}\n\t\t\n\t\tthrow new \\InvalidArgumentException(\"Could not find the field '{$name}'\");\n\t}", "public function getField();", "public function getField();", "public function getField();", "public function __get($name) {\n\t\ttry {\n\t\t\treturn parent::__get($name);\n\t\t} catch (\\Exception $e) {\n\t\t\t// Is $name a field handle?\n\t\t\tif ($name != 'entryType' && $this->hasCustomField($name)) {\n\t\t\t\treturn $this->getFieldValue($name);\n\t\t\t}\n\n\t\t\t// Fine, throw the exception\n\t\t\tthrow $e;\n\t\t}\n\t}", "public function get_field(/* .... */)\n {\n return $this->_field;\n }", "public function getFieldByKey($fieldKey) {\n\t\tif ((bool) $this->_result) {\n\t\t\tif (isset($this->_result[$fieldKey])) return $this->_result[$fieldKey];\n\t\t\telse parent::throwGetColException('DiscussCategoriesModel::getFieldByName', __LINE__, __FILE__);\n\t\t}\n\t\telse return parent::throwNoResException('DiscussCategoriesModel::getFieldByName', __LINE__, __FILE__);\n\t}", "public function retrieveFieldValue(Field $field, $model);", "public function getValue($name) {\n\t\treturn $this->getField($name)->getValue();\n\t}", "protected function compute_get_field($recordid, $arguments) {\n if ($field = $this->compute($recordid, array_shift($arguments))) {\n if ($database = $this->compute($recordid, array_shift($arguments), 'CURRENT_DATABASE')) {\n return $this->valid_fieldid($database, $field);\n }\n }\n return null;\n }", "public function __get($name) \n {\n if(isset($this->fields[$name]))\n return $this->fields[$name];\n else\n return null;\n }", "public function getField($name)\n {\n return $this->fields[$name] ?: $this->addField($name);\n }", "public function __get($field) {\n\t\tif ( ! $this->offsetExists($field)) {\n\t\t\tthrow new Exception(\"Undefined field $field.\");\n\t\t}\n\t\treturn $this[$field];\n\t}", "public function get_field_value($field)\n\t{\n\t\t//$field = strtoupper($field);\t\t\n\t\tif ($this->is_bound($field))\n\t\t{\n\t\t\treturn $this->get_bound_value($field);\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn $this->_fields[$field];\n\t\t}\n\t}", "public function getFieldName() {}", "function GetField($field=0){\n\t\t\treturn @mysql_result($this->result,0,$field);\n\t\t}", "public function getField(): string;", "public function getLookupField() {}", "public function Get ($field) {\n if ($this->structuredResult === null) return null;\n foreach ($this->structuredResult as $info) {\n if ($info['field'] == $field) {\n return $info['data'];\n }\n }\n return null;\n }", "public function __get($name)\n {\n if (method_exists($this, \"get\" . ucfirst($name)))\n return call_user_func(array($this, \"get\" . ucfirst($name)));\n else {\n require_once(\"ID3/Exception.php\");\n throw new ID3_Exception(\"Unknown field: \" . $name);\n }\n }", "public function getFieldvalue($fieldname)\n\t{\n\t\t$field = $this->fields->get($fieldname);\n\t\tif($field == null)\n\t\t{\n\t\t\treturn \"\";\n\t\t}\n\t\treturn $field->getFieldvalue();\n\t}", "public function getDBFieldForAPI ($fieldName, $dataType) {\n $obj = $this->owner;\n $type = 'raw';\n $value = null;\n // Loop tests\n foreach (self::$db_field_transforms as $testType => $regex) {\n if (preg_match($regex, $dataType)) {\n $type = $testType;\n break;\n }\n }\n\n // Transform value\n switch ($type) {\n case 'int':\n $value = intval($obj->$fieldName);\n break;\n case 'float':\n $value = floatval($obj->$fieldName);\n break;\n case 'date':\n $value = $obj->obj($fieldName)->Rfc3339();\n break;\n case 'bool':\n $value = boolval($obj->$fieldName);\n break;\n default: // raw, string or other\n $value = $obj->$fieldName;\n break;\n }\n\n return $value;\n }", "public function getFieldValue(Field $field, $model);", "function get_field($name)\r\n {\r\n if ($name)\r\n {\r\n $tempArray = fetch_to_array(database::query(\"SELECT * FROM system WHERE name='$name'\"),\"\");\r\n if (is_array($tempArray)) return(current($tempArray));\r\n }\r\n else return (false);\r\n }", "function get($field)\n {\n $fieldLc = strtolower($field);\n if (array_key_exists($fieldLc, self::$translate))\n $fieldLc = self::$translate[$fieldLc];\n\n switch($fieldLc)\n { // act on field name\n case 'name':\n {\n return $this->getName();\n }\n\n case 'nativename':\n {\n return $this->getNativeName();\n }\n\n case 'sorry':\n {\n return $this->getSorry();\n }\n\n case 'cc':\n {\n if (array_key_exists('cc', $this->extras))\n return $this->extras['cc'];\n else\n return null;\n }\n\n\n default:\n { // other fields\n return parent::get($fieldLc);\n } // other fields\n } // act on field name\n }", "public function get(string $name): FieldContract;", "function news_get_field( $p_news_id, $p_field_name ) {\r\n\t\t$row = news_get_row( $p_news_id );\r\n\t\treturn ( $row[$p_field_name] );\r\n\t}", "public function getField($key,$default_val = null){\n return $this->existsField($key) ? $this->field_map[$key] : $default_val;\n }", "function get_field( $field, $query = null ){\r\n\t\tif( $row = $this->get_row( $query ) and isset( $row[$field] ) )\r\n\t\t\treturn $row[$field];\r\n\r\n\t}", "public function __get($name)\n\t{\n\t\tif (isset($this->_fields[$name]))\n\t\t\treturn $this->_fields[$name];\n\t\treturn null;\n\t}", "protected function getCustomFieldValue(string $fieldName)\n {\n if (!isset($this->details->Fields)) {\n return false;\n }\n foreach ($this->details->Fields as $field) {\n if ($field->FieldName == $fieldName) {\n return $field->Value;\n }\n }\n return false;\n }", "public function getField(): string\n {\n return $this->field;\n }", "public function getField($pk = null)\n\t{\n\t\treturn parent::getRecord($pk);\n\t}", "public function getFieldRaw($fieldName) {\n if (array_key_exists($fieldName, $this->vendorData)) {\n return $this->vendorData[$fieldName];\n } else {\n return null;\n }\n }", "public function getField()\n {\n return $this->field;\n }", "public function getField()\n {\n return $this->field;\n }", "public function getField()\n {\n return $this->field;\n }", "public function getField()\n {\n return $this->field;\n }", "private function getValue(string $fieldName) {\r\n return $this -> translator -> get($fieldName);\r\n }", "function readDataFieldValue()\r\n {\r\n $result=false;\r\n if ($this->hasValidDataField())\r\n {\r\n $fname=$this->DataField;\r\n $value=$this->_datasource->Dataset->fieldget($fname);\r\n $result=$value;\r\n }\r\n return($result);\r\n }", "public function getField() {\n\t\treturn $this->field; \n\t}", "public function getField()\n {\n return $this->_field;\n }", "public function getField() {\n\t\treturn $this->field;\n\t}", "public function offsetGet($offset) {\n\t\tif(!$this->offsetExists($offset)) {\n\t\t\tthrow new \\Bedrock\\Model\\Record\\Exception('The requested column \"' . $offset . '\" is not a part of this record.');\n\t\t}\n\t\t\n\t\treturn $this->_data[$offset];\n\t}", "public function __get($name)\n {\n Precondition::isTrue(isset($this->data[$name]), 'field ' . $name . ' does not exist');\n\n return $this->data[$name];\n }", "function getValue($fieldName) {\r\n $value = '';\r\n if (isset($_REQUEST[$fieldName])) { \r\n $value = $_REQUEST[$fieldName];\r\n }\r\n return $value;\r\n }" ]
[ "0.7386526", "0.72346795", "0.72312194", "0.69893384", "0.69678044", "0.69143623", "0.6910437", "0.688008", "0.68346477", "0.68207484", "0.6816095", "0.68088174", "0.6805734", "0.67944485", "0.67775404", "0.6767635", "0.6751318", "0.6694285", "0.668957", "0.6682798", "0.66726357", "0.666957", "0.6653779", "0.6616726", "0.6567509", "0.6560026", "0.65474963", "0.6544161", "0.65440893", "0.6539131", "0.65385413", "0.6511723", "0.6505107", "0.65021724", "0.64834106", "0.64725935", "0.6467659", "0.6467061", "0.64578617", "0.6448228", "0.64397156", "0.64394295", "0.6436228", "0.6435214", "0.6422934", "0.64135605", "0.63827634", "0.63827634", "0.6378286", "0.6368148", "0.6365156", "0.6361319", "0.6358599", "0.6355822", "0.63447165", "0.6339019", "0.6339019", "0.6339019", "0.63285273", "0.6303982", "0.6297748", "0.629563", "0.6253028", "0.62443465", "0.62318724", "0.6220567", "0.62138546", "0.6206438", "0.61793566", "0.6169748", "0.61622155", "0.6144669", "0.61400765", "0.61395085", "0.6138438", "0.61307454", "0.61208695", "0.6113704", "0.6112612", "0.61116195", "0.6110236", "0.61073977", "0.6083107", "0.6074104", "0.60527927", "0.6042419", "0.6034571", "0.6020318", "0.6019498", "0.6019498", "0.6019498", "0.6019498", "0.601849", "0.60178006", "0.6014927", "0.60125047", "0.5998371", "0.59926826", "0.59882736", "0.5987478" ]
0.6923663
5
Returns the record's primary key column name.
public function getPrimaryKey() { return $this->_key_primary->name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_primary_key_column()\n {\n return $this->object->_primary_key_column;\n }", "function get_primary_key_column()\n {\n return $this->_primary_key_column;\n }", "public function getPrimaryKeyColumn() : string\n {\n return $this->primaryKey;\n }", "public function primary_key(){\n $table_columns = $this->meta();\n\n $primary_key_column = NULL;\n foreach ($table_columns as $col) :\n if($col->primary_key):\n $primary_key_column = $col->name;\n endif;\n endforeach;\n\n return $primary_key_column; \n }", "protected function get_primary_column_name()\n {\n }", "protected function get_primary_column_name()\n {\n }", "protected function get_primary_column_name()\n {\n }", "public function getPrimaryKeyFieldName(){\n\t\treturn $this->primaryKey;\n\t}", "public function getKeyName()\n {\n if (!$this->primaryKey) {\n if ($key = $this->getPrimaryFromFields()) {\n $this->primaryKey = $key;\n } else {\n $this->primaryKey = 'id';\n }\n }\n\n return $this->primaryKey;\n }", "protected function getPrimaryKeyName(): string\n {\n return $this->query->getModel()->getKeyName();\n }", "public function getPrimaryKeyName()\n {\n return self::$primary_key_name;\n }", "public static function primaryKey() {\n return (new static)->getKeyName();\n }", "public function getKeyName()\n {\n return isset($this->primaryKey) ? $this->primaryKey : static::$defaultPrimaryKey;\n }", "private function pk_column(){\n\t\tif( in_array(static::$table_name, Model_Kiwi::$composite_key_tables) ){\n\t\t\treturn \"composite_key\";\n\t\t}\n\t\t//if the primary key of the table has been defined in config - return that else use convention\n\t\tif( in_array( static::$table_name, array_keys(Model_Kiwi::$kiwi_pk_hash))){\n\t\t\treturn Model_Kiwi::$kiwi_pk_hash[ static::$table_name ];\n\t\t}\n\t\treturn Model_Kiwi::singularize(static::$table_name) . '_id';\n\t}", "protected function _getPrimaryKey(): string\n {\n if (!$this->_primaryKey) {\n $primaryKey = (array)$this->_table->getPrimaryKey();\n $this->_primaryKey = $primaryKey[0];\n }\n\n return $this->_primaryKey;\n }", "public function getPrimaryKeyName()\n {\n return $this->primaryKeyName;\n }", "public function getKeyName()\n {\n return $this->primaryKey;\n }", "public function getKeyName()\n {\n return $this->primaryKey;\n }", "private function getPrimaryKey()\n {\n $result = database()->fetchResult('SHOW KEYS FROM ' . $this->table . ' WHERE Key_name = \"PRIMARY\"');\n\n return ($result['Column_name'] ?? null);\n }", "public function getCustomEntityPrimaryKeyColumnName()\n {\n return self::CUSTOM_TABLE_PRIMARY_KEY_COLUMN;\n }", "public static function getPkColumnName()\n {\n $modelClass = self::getClass();\n\n return implode('__', $modelClass::getScheme()->getPkColumnNames());\n }", "public function get_column_key() {\n\t\treturn $this->column_key;\n\t}", "public function getPrimaryKey()\n {\n $cols = $this->info('cols');\n return $cols[0];\n }", "public function pkName()\r\n {\r\n $schema = $this->schema();\r\n foreach($schema as $col){\r\n if( $col['PRIMARY'] === true )\r\n return $col['FIELD'];\r\n }\r\n throw new \\Exception( __CLASS__ .\" Error: could not find Primary Key for table: \" . $this->table->name() ); \r\n }", "public function getUserPrimaryKeyName() {\n\n $forcedPkName = Configure::read('acl.aro.user.primary_key');\n if (! empty($forcedPkName)) {\n return $forcedPkName;\n } else {\n /* Return the primary key's name that follows the CakePHP\n * conventions */\n return 'id';\n }\n }", "function _lookup_primary_key_column()\n {\n $key = $this->_wpdb()->get_row(\"SHOW INDEX FROM {$this->get_table_name()} WHERE Key_name='PRIMARY'\", ARRAY_A);\n if (!$key) {\n throw new Exception(\"Please specify the primary key for {$this->get_table_name()}\");\n }\n return $key['Column_name'];\n }", "public function get_primary_column()\n {\n }", "protected function _getPrimaryKey(){\n $def = $this->_getDef();\n foreach($def as $column){\n if($column['primary'] === true){\n return $column['field_name'];\n }\n }\n \n return false;\n }", "protected function _getPrimaryIdKey()\n {\n if ($this->_primaryIdKey == null) {\n $info = $this->_getTable()->info();\n\n $this->_primaryIdKey = (string) array_shift($info[Zend_Db_Table_Abstract::PRIMARY]);\n }\n\n return $this->_primaryIdKey;\n }", "public function primary_key()\n\t{\n\t\treturn $this->primary_key;\n\t}", "public function getPrimaryKeyName()\n\t{\n\t\treturn 'id';\n\t}", "public function getPrimaryKey() {\n return $this->_data->getDeepValue('indexes/primary/columns/0', null);\n }", "public function getPrimaryKeyField()\n\t{\n\t\treturn $this->primaryKey;\n\t}", "public function getRolePrimaryKeyName() {\n\n $forcedPkName = Configure::read('acl.aro.role.primary_key');\n if (! empty($forcedPkName)) {\n return $forcedPkName;\n } else {\n /* Return the primary key's name that follows the CakePHP\n * conventions */\n return 'id';\n }\n }", "protected function get_default_primary_column_name()\n {\n }", "protected function get_default_primary_column_name()\n {\n }", "protected function get_default_primary_column_name()\n {\n }", "protected function get_default_primary_column_name()\n {\n }", "protected function get_default_primary_column_name()\n {\n }", "protected function get_default_primary_column_name()\n {\n }", "protected function get_default_primary_column_name()\n {\n }", "protected function get_default_primary_column_name()\n {\n }", "protected function get_default_primary_column_name()\n {\n }", "protected function get_default_primary_column_name()\n {\n }", "protected function get_default_primary_column_name()\n {\n }", "protected function getPrimaryKeyColumnName()\n {\n return ColumnKeys::PATH;\n }", "public function getPKField() {\n return $this->_key_field;\n }", "function primary_key()\r\n\t{\r\n\t\treturn 'key';\r\n\t}", "protected function get_primary_column_name() {\n\n\t\treturn 'subject';\n\t}", "public function getPKField()\r\n {\r\n if(!isset($this->pkField) && is_array($this->cols))\r\n {\r\n foreach($this->cols as $field => $colDef)\r\n {\r\n if ($colDef->isPK)\r\n {\r\n $this->pkField = $field;\r\n }\r\n }\r\n }\r\n return $this->pkField;\r\n }", "public function get_primary_row(){\r\n $result = $this->db->query(\"SHOW KEYS FROM \". $this->db->formatTableName($this->table). \"\r\n WHERE Key_name = %s\"\r\n , \"PRIMARY\");\r\n $pk = \"\";\r\n foreach ($result as $res){\r\n $pk = $res[\"Column_name\"];\r\n }\r\n return $pk;\r\n }", "public function getTablePrimaryKey()\n {\n return 'p.id';\n }", "public function getPrimaryKeyName()\n\t{\n\t\treturn 'name';\n\t}", "protected abstract function getPrimaryKeyName();", "public function getColumnId(): string\n {\n return $this->getColumn('id', 'id');\n }", "public function getKeyField()\n {\n $class = get_class($this);\n $parts = explode('\\\\', $class);\n $name = $parts[count($parts)-1];\n return strtolower($name) . '_id';\n }", "public static function getPkFieldName()\n {\n $modelClass = self::getClass();\n\n return implode('__', $modelClass::getScheme()->getPkFieldNames());\n }", "public function getPrimaryKeyField()\n\t{\n\t\tif ($this->primaryKeyField === null)\n\t\t{\n\t\t\tthrow new DataMapper_Exception('No primary key field set for ' . __CLASS__);\n\t\t}\n\t\treturn $this->primaryKeyField;\n\t}", "public function getPrimaryKey()\n\t{\n\t\treturn $this->name;\n\t}", "public function getModelKeyName()\n {\n // Create an instance of the model to get primary key name\n // I couldn't find a better solution \n $model = $this->getModel();\n $model = new $model;\n return $model->getKeyName();\n }", "abstract public static function get_column_key(): string;", "public function getKeyName()\n {\n return $this->keyName ?: 'id';\n }", "public function getKeyName()\n {\n return $this->keyName ?: 'id';\n }", "public function getAuthIdentifierName()\n {\n return $this->primaryKey;\n }", "public function getAuthIdentifierName() {\n return $this->primaryKey;\n }", "public function getPrimaryKey()\n {\n if ($this->_primaryKey === null) {\n $schema = $this->getSchema();\n $key = $schema->getPrimaryKey();\n if (count($key) === 1) {\n $key = $key[0];\n }\n $this->_primaryKey = $key;\n }\n\n return $this->_primaryKey;\n }", "public function getIdColumn()\n {\n return $this->idColumn;\n }", "private function __findPrimaryKeyColumnName($tableName){\n $this->debugBacktrace();\n $tableName= str_replace(\"`\",\"\",$tableName);\n $sql = \"SELECT COLUMN_NAME \n FROM information_schema.KEY_COLUMN_USAGE \n WHERE TABLE_NAME = '\". $tableName .\"' \n AND CONSTRAINT_NAME = 'PRIMARY'\";\n\n $result = $this->_perform_mysql_query($sql);\n $primaryKeyColumn = mysqli_fetch_object($result);\n return $primaryKeyColumn->COLUMN_NAME;\n }", "public function getTableKeyName()\n\t{\n\t\treturn \"id\".$this->getTableName();\n\t}", "public function get_column_id()\n\t{\n\t\treturn $this->table.'.id';\n\t}", "public static function primaryKey()\n {\n return static::PRIMARY_KEY;\n }", "public function getTableKeyName()\r\n\t{\r\n\t\treturn \"id\".$this->getTableName();\r\n\t}", "public function getRecordIdFieldName()\n {\n $metadata = $this->exportMetaData();\n $recordIdFieldName = $metadata[0]['field_name'];\n return $recordIdFieldName;\n }", "public function PrimaryKey() {\n\t\t\treturn $this->intId;\n\t\t}", "public function PrimaryKey() {\n\t\t\treturn $this->intId;\n\t\t}", "public function getIdentityField()\n {\n return $this->gateway->getPrimaryCol();\n }", "public function getPrimaryKey()\r\n\t{\r\n\t\treturn $this->primaryKey;\r\n\t}", "protected function getPrimaryKeyMemberName()\n {\n return MemberNames::ENTITY_ID;\n }", "public function getKeyName(): string\n {\n return 'id';\n }", "public function key()\n\t{\n\t\tif (empty($this->key) && !empty($this->definition->primary))\n\t\t{\n\t\t\t$keys = array_values(\n\t\t\t\tarray_filter(\n\t\t\t\t\tpreg_split('~[\\s,]+~', $this->definition->primary)\n\t\t\t\t)\n\t\t\t);\n\t\t\t$keys = array_map(\n\t\t\t\tfunction ($key) {\n\t\t\t\t\treturn Normalise::toVariable($key);\n\t\t\t\t},\n\t\t\t\t$keys\n\t\t\t);\n\n\t\t\t$this->key = count($keys) > 1 ? $keys : array_shift($keys);\n\t\t}\n\n\t\tif (empty($this->key) && $this->has('id'))\n\t\t{\n\t\t\t$this->key = 'id';\n\t\t}\n\n\t\treturn $this->key;\n\t}", "protected function primaryKeyName($table) {\n $table = $this->connection->prefixTables('{' . $table . '}');\n return $this->connection->query('SELECT name FROM sys.key_constraints WHERE parent_object_id = OBJECT_ID(:table) AND type = :type', [\n ':table' => $table,\n ':type' => 'PK',\n ])->fetchField();\n }", "public function getPk()\n {\n return $this->{static::primaryKey()};\n }", "public function primaryKeyForTable(Table $table)\n {\n // Execute the query directly\n $result = $this->client->query(\"SHOW KEYS FROM $table->name WHERE Key_name = 'PRIMARY'\");\n\n // If no results are returned, return null\n if ($result === false) {\n return;\n }\n\n // Fetch the query results\n $data = $result->fetch_assoc();\n\n // Return the field name\n return $data['Column_name'];\n }", "private function _fetch_table_primary_key()\n {\n if ($this->primary_key == null) {\n $this->primary_key = preg_replace('/(_m|_model)?$/', '', strtolower(get_class($this))) . '_id';\n }\n }", "private function _fetch_table_primary_key()\n {\n if ($this->primary_key == null) {\n $this->primary_key = preg_replace('/(_m|_model)?$/', '', strtolower(get_class($this))) . '_id';\n }\n }", "public function getPrimaryKey()\n {\n return $this->primaryKey;\n }", "public static function getDbPrimaryKey( )\n {\n return'F_id';\n }", "public function getQualifiedKeyName()\n {\n return $this->getTable().'.'.$this->getKeyName();\n }", "public function getFullIdentifier()\n {\n return $this->getDriver()->getColumnFullIdentifier($this);\n }", "public function getKey() {\n return sprintf('%d:%d', $this->row, $this->column);\n }", "public static function getPk(){\n return static::$_primaryKey;\n }", "public function questionid_column_name() {\n return 'questionid';\n }", "public static function primaryKey()\n {\n return 'id';\n }", "public function getPrimaryKey()\n\t{\n\t\treturn $this->_rowKey;\n\t}", "protected function primaryParameterName($modelName) {\n $modelClass = new $modelName;\n return $modelClass->tableSchema->primaryKey;\n }", "private function getApplicationIdColumn()\n\t{\n\t\treturn 'application_id';\n\t}", "function getPKName($table)\n{\n $field_list = getTableFields($table);\n foreach($field_list as $f) {\n if ($f['Key' == 'PRI']) {\n return $f['Field'];\n }\n }\n return \"\";\n}", "public function sortField(): string\n {\n return $this->primaryKey;\n }", "public function getPrimaryKey()\n {\n return $this->getPothnbr();\n }", "public function getPrimaryKeyStr()\n {\n return $this->venda->getPrimaryKeyStr() . '-' . $this->getParcela();\n }" ]
[ "0.856465", "0.8466052", "0.845295", "0.84205204", "0.8323549", "0.8323549", "0.8323125", "0.8174886", "0.8171645", "0.8047901", "0.8026683", "0.80137926", "0.7974904", "0.7957319", "0.7946186", "0.79320586", "0.7924089", "0.7924089", "0.7914339", "0.78690475", "0.78663486", "0.7775464", "0.7711354", "0.7676079", "0.76731056", "0.76643425", "0.765299", "0.76414937", "0.76012707", "0.7594394", "0.75857604", "0.75634235", "0.7556987", "0.7502336", "0.74873275", "0.74873275", "0.74873275", "0.74873275", "0.74873275", "0.74873275", "0.7483698", "0.7483698", "0.74835414", "0.74835414", "0.74835414", "0.7468272", "0.7464213", "0.74178827", "0.74129033", "0.7397179", "0.735592", "0.7339613", "0.73323965", "0.7331559", "0.7317557", "0.72932655", "0.72870874", "0.7278017", "0.727251", "0.7260951", "0.72326446", "0.7230637", "0.7230637", "0.7229614", "0.7212553", "0.71782285", "0.7158766", "0.7132752", "0.7128488", "0.7125913", "0.7120717", "0.7117743", "0.71018785", "0.7086022", "0.7086022", "0.7075368", "0.7058588", "0.70528567", "0.7051329", "0.70121396", "0.7005468", "0.69901586", "0.6982999", "0.69712853", "0.69712853", "0.6964466", "0.6959507", "0.69425184", "0.69409114", "0.691596", "0.69089144", "0.6905391", "0.6896354", "0.68654823", "0.6851469", "0.67997307", "0.67899156", "0.67737657", "0.677214", "0.67701316" ]
0.78095835
21
Returns the requested record property.
public function getProperty($name) { switch($name) { case 'table': return $this->_table->getProperty('name'); break; case 'columns': return $this->_columns; break; default: return NULL; break; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getProperty($property)\n {\n switch($property) {\n case 'record':\n return $this->getRecord();\n case 'entry':\n return $this->getEntry();\n case 'element':\n return $this->getElement();\n default:\n return parent::getProperty($property);\n }\n }", "public function getProperty($property = null)\n {\n if (is_null($property)) {\n return $this->record;\n }\n\n return $this->hasProperty($property) ? $this->record[$property] : null;\n }", "public function getProperty() {\n return $this->property;\n }", "function prop($prop)\n {\n \treturn $this->get_property($prop);\n }", "public function getProperty();", "public function getProperty()\n {\n if (!$this->property) {\n $this->property = Inflector::underscore($this->alias);\n }\n\n return $this->property;\n }", "public function getProperty()\n\t{\n\t\treturn empty($this->property) ? strtolower($this->getName()) : $this->property;\n\t}", "public function getProperty($field);", "public function propertyIdent()\n {\n return $this->propertyIdent;\n }", "public function property($propertyIdent);", "protected function getPropertyValue() {}", "public function getProperty($property = null);", "public function getProperty(): string;", "public function __get($prop)\r\n {\r\n return $this->$prop;\r\n }", "public function getResourceProperty()\r\n {\r\n return $this->_resourceProperty;\r\n }", "public function getp($property){\n if(property_exists($this, $property)){\n return $this->$property;\n }\n }", "public function __get($prop){\n\t\treturn $this->$prop;\n\t}", "public function get($property);", "function __get($strProperty)\r\n\t{\r\n\t\treturn $this->_arrWhere[$strProperty];\r\n\t}", "public function getProp($prop){\n\t\tif($this->props)\n\t\t\treturn $this->props[$prop];\n\t}", "public function __get($key)\n {\n return $this->record->{$key};\n }", "public function __get($property)\n {\n switch ($property) {\n case 'name':\n return $this->name;\n break;\n \n case 'status':\n return $this->status;\n break;\n case 'id':\n return $this->id;\n break;\n }\n }", "public function __get($property) {\r\n $param = '_' . $property;\r\n return $this->$param;\r\n }", "public function getField()\n {\n return $this->reflectionProperty;\n }", "public function get($field) {\n return key_exists($field, $this->_properties) ? $this->_properties[$field] : null;\n }", "public function getProperty($propertyName);", "public function getProperty()\n {\n return \\tabs\\api\\property\\Property::getProperty(\n $this->getPropertyRef(),\n $this->getBrandCode()\n );\n }", "public function getProperty()\n {\n return \\tabs\\api\\property\\Property::getProperty(\n $this->getPropertyRef(),\n $this->getBrandCode()\n );\n }", "public function __get($prop)\n {\n return $this->assignee[$prop];\n }", "function getPropName() {\n return $this->propName;\n }", "public function getRecord(){\n \n return $this->record;\n }", "public function __get($prop)\r\n {\r\n return $this->wrappedObj->$prop;\r\n }", "public function getRecord()\r\n\t{\r\n\t\treturn $this->record;\r\n\t}", "public function __get($prop) {}", "public function getRecord(){\n return $this->record;\n }", "public function getField($property) {\n $result = NULL;\n if (isset($this->callbacks()->onGetFieldForProperty)) {\n $result = $this->callbacks()->onGetFieldForProperty($property);\n }\n if (empty($result) && isset($this->_properties[$property])) {\n return $this->_properties[$property];\n }\n return $result;\n }", "function __get($property)\n {\n if($property == \"id\")\n {\n return $this->id;\n }\n else\n {\n return call_user_func_array(array($this, \"getAttribute\"), array($property));\n }\n }", "public function getReferencedProperty(): string;", "abstract public function property($propertyIdent);", "public function __get($property) {\n\t\tswitch($property) {\n\t\t\tcase 'num':\n\t\t\t\treturn $this->num;\n\n\t\t\tcase 'view':\n\t\t\t\treturn $this->view;\n\n\t\t\tcase 'rubric':\n\t\t\t\treturn $this->rubric;\n\n\t\t\tcase 'parts':\n\t\t\t\treturn $this->parts;\n\n\t\t\tdefault:\n\t\t\t\t$trace = debug_backtrace();\n\t\t\t\ttrigger_error(\n\t\t\t\t\t'Undefined property ' . $property .\n\t\t\t\t\t' in ' . $trace[0]['file'] .\n\t\t\t\t\t' on line ' . $trace[0]['line'],\n\t\t\t\t\tE_USER_NOTICE);\n\t\t\t\treturn null;\n\t\t}\n\t}", "public final function getProp ($prop = null) {\r\n if (is_string ($prop) && $this->pvn ($prop)) {\r\n\r\n $traceDatas = self::getTraceDatas (func_get_args(),\r\n debug_backtrace ()\r\n );\r\n\r\n $traceFile = $traceDatas ['file'];\r\n\r\n if ( !$this->moduleFile ) {\r\n $this->moduleFile = (\r\n $traceFile\r\n );\r\n }\r\n\r\n self::register ($this->moduleFile);\r\n\r\n $prop = strtolower ( $prop );\r\n\r\n $props = self::$modulesExports [ $this->moduleFile ][\r\n 'props'\r\n ];\r\n\r\n return !isset ($props[ $prop ]) ? null : (\r\n $props [ $prop ]\r\n );\r\n }\r\n }", "public function __get( $property ) {\n\t\t\tif ( property_exists( $this, $property ) ) {\n\t\t\t\treturn $this->$property;\n\t\t\t}\n\t\t\tif (\n\t\t\t\t$this->slplus->database->has_extended_data() &&\n\t\t\t\tisset( $this->exdata[ $property ] )\n\t\t\t) {\n\t\t\t\treturn $this->exdata[ $property ];\n\t\t\t}\n\n\t\t\tif ( ! empty( $this->temporary[ $property ] ) ) {\n\t\t\t\treturn $this->temporary[ $property ];\n\t\t\t}\n\n\t\t\treturn null;\n\t\t}", "public function bis2HsGetProperty( $field ) {\r\n\t\tif (isset($this->record[$field])) {\r\n\t\t\treturn( $this->record[$field] );\r\n\t\t} else {\r\n\t\t\treturn( false );\r\n\t\t}\r\n\t}", "public function getProperty($key);", "public function get($property) {\r\n return $this->orm->get($property);\r\n }", "public function __get($property) {\n\t\tif (strncmp ( $property, '_', 1 ) == 0 or ! property_exists ( $this, $property )) {\n\t\t\tthrow new \\FuelException ( 'Invalid relation property: ' . $property );\n\t\t}\n\t\t\n\t\treturn $this->{$property};\n\t}", "public function getProperty(): ?string;", "public function getRecord()\n {\n return $this->get(self::_RECORD);\n }", "public function property($name) {\n return $this->properties[$name];\n }", "function getProperty($what)\n {\n $that = null;\n if (isset($this->$what)) {\n $that = $this->$what;\n }\n return $that;\n }", "protected function get_record()\n\t{\n\t\treturn $this->key ? parent::get_record() : null;\n\t}", "public function get($prop) {\n\n\t\t\t// Loop through sources to find it\n\t\t\tforeach ($this->_sources as $source) { \n\n\t\t\t\t// Has prop?\n\t\t\t\tif (array_key_exists($prop, $source)) {\n\t\t\t\t\treturn $source[$prop];\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\t// Not found\n\t\t\tthrow new \\Exception(\"There is no property '\" . $prop . \"' in this Store\", 1);\t\t\n\n\t\t}", "abstract protected function propertyGet($name);", "public function __get($property)\n\t{\n\t\tif (isset($this->_fields[$property]))\n\t\t{\n\t\t\treturn '';\n\t\t}\n\t}", "public function __get($sProperty)\n {\n return $this->oDb->{$sProperty};\n }", "public function getProperty($field) {\n $result = NULL;\n if (isset($this->callbacks()->onGetPropertyForField)) {\n $result = $this->callbacks()->onGetPropertyForField($field);\n }\n if (empty($result)) {\n if (isset($this->_fields[$field])) {\n return $this->_fields[$field];\n } elseif (isset($this->_fieldsWithoutAlias[$field])) {\n return $this->_fieldsWithoutAlias[$field];\n }\n }\n return $result;\n }", "public function property($key) { }", "public function _get($field) {\n\t\tif(property_exists($this, $field)) return $this->{$field}; \n\t\telse return NULL;\n\t}", "public function __get($property)\n {\n try {\n return $this->part->{$property};\n } catch (\\Exception $ex) {\n return;\n }\n }", "public function targetProperty(): ?string\n {\n return $this->_targetProperty;\n }", "public function getProperty($property)\n {\n return $this->_events->getProperty($property);\n }", "function getPropertyName() ;", "function __get($property)\n {\n return $this->value;\n }", "public function __get($property) {\r\n\t\tswitch($property) {\r\n\t\t\tcase 'view':\r\n\t\t\t\treturn $this->view;\r\n\r\n\t\t\tdefault:\r\n return PropertyHelper::Error($property);\r\n\t\t}\r\n\t}", "public function __get($property) {}", "public function getPropertyValue() {\n\t\t$propertyValue = parent::getPropertyValue();\n\t\tif ($propertyValue === NULL)\n\t\t\treturn FALSE;\n\t\treturn $propertyValue;\n\t}", "function getfield($field){\n\n\t\treturn($this->record[$field]);\n\t}", "public function __get( $property )\n {\n return $this->$property;\n }", "private function getProperty() {\n\t\t$return = NULL;\n\t\tif (session('reviewcycle') && session('property')) {\n\t\t\t$sql = 'SELECT `#__Property`.* FROM `#__Property` WHERE `#__Property`.`id` = ?';\n\t\t\t$result = $this->execute($sql, session('property'));\n\t\t} else {\n\t\t\t$sql = 'SELECT `#__Property`.* FROM `#__Property` LEFT JOIN `#__Property_User` ON `#__Property_User`.`property_id` = `#__Property`.`id` WHERE `#__Property_User`.`user_id` = ?';\n\t\t\t$result = $this->execute($sql, $this->id);\n\t\t}\n\n\t\tif (count($result) > 0) {\n\t\t\t$return[$result[0]['id']] = $result[0];\n\t\t}\n\t\treturn $return;\n\t}", "function __get($prop)\n {\n if (isset($this->$prop)){\n return $this->$prop;\n }\n if (isset($this->_data[$prop])) {\n return $this->_data[$prop];\n }\n else try {\n return $this->__call($prop, array());\n } catch (Exception $e) {\n throw new Exception(sprintf('Property \"%s\" not available', $prop));\n }\n }", "public function __get($property) \n {\n return $this->$property;\n }", "public function __get($property) \n {\n return $this->$property;\n }", "public function __get($property) \n {\n return $this->$property;\n }", "public function __get($property) \n {\n return $this->$property;\n }", "public function __get($property) \n {\n return $this->$property;\n }", "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 getProperty(){\n\t\t$this->db->select('tblProperty.pkPropertyId, tblProperty.PropertyCode, tblProperty.PropertyName');\n\t\t$this->db->from('tblProperty');\n\t\t$this->db->where('tblProperty.YnActive = ', 1);\n\t\treturn $this->db->get()->result();\n\t}", "public function getRecord()\n {\n return $this->options['peoplefinder']->getByNUID($this->nu_id);\n }", "public function getProperty($property)\n {\n if (property_exists($this, $property)) {\n return $this->$property;\n }\n }", "public function __get($property_name)\n\t\t{\n\t\t\tif (in_array($property_name, $this->getModel()->getColumns()))\n\t\t\t{\n\t\t\t\treturn $this->getModel()->$property_name;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\treturn parent::__get($property_name);\n\t\t\t}\n\t\t}", "function findProperty($id);", "public function __get($property) {\n\t\tif (property_exists($this, $property)) {\n\t\t\treturn $this->$property.\"<br>\";\n\t\t} else {\n\t\t\treturn $property.\" does not exist<br>\";\n\t\t}\n\t}", "protected function getRealNameProperty(string $property) : string\n\t{\n\t}", "public function propertyObject($propertyIdent);", "public function __get($property) {\n\n if (property_exists($this, $property)){\n return $this->$property;\n }\n\n }", "public function findPropertyByIdentifier($identifier):Property\n {\n return $this->propertyModel()->whereIdentifier($identifier)->first();\n }", "public function __get($property) {\t\tif (array_key_exists($property, $this->data)) \n\t\t\treturn $this->data[$property]['value'];\n\t\t// is it related?\n\t\tif (array_key_exists($property, $this->relatedObjects))\n\t\t\treturn $this->relatedObjects[$property];\n\n\t\tthrow new InvalidArgumentException(\"Unknown property: $property\");\n\t}", "public function __get($property){\n /*if(method_exists($this,'get'.ucfirst($property))){\n\n }*/\n return $this->$property;\n }", "public function offsetGet($offset)\n\t{\n\t\tif (isset($this->properties[$offset])) {\n\t\t\treturn $this->properties[$offset];\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}", "public function getField($pk = null)\n\t{\n\t\treturn parent::getRecord($pk);\n\t}", "public function __get($property) {\n\n if (array_key_exists($property, $this->_data)) {\n return $this->_data[$property];\n }\n\n return null;\n\n }", "public function getKey()\n {\n return $this->getProperty()->getKey();\n }", "public function __get($property){\n\t\tif (property_exists($this, $property)) {\n\t \treturn $this->$property;\n\t }\n\t}", "public function __get($property)\n {\n return $this->$property;\n }", "public function __get($property)\n {\n return $this->$property;\n }", "public function __get($property)\n {\n return $this->$property;\n }", "public function __get($property)\n {\n return $this->$property;\n }", "public function __get($property)\n {\n return $this->$property;\n }", "public function __get($property)\n {\n return $this->$property;\n }", "public function __get($property)\r\n\t{\r\n\t\treturn $this->$property;\r\n\t}", "public function __get ( $property ) {\n return isset( $this->{$property} ) ? $this->{$property} : NULL;\n }" ]
[ "0.7096964", "0.7031739", "0.70311016", "0.69794774", "0.69750315", "0.68147963", "0.67379177", "0.67292124", "0.67111975", "0.6686744", "0.6662745", "0.66120917", "0.6604831", "0.6499911", "0.6496148", "0.6491256", "0.6468782", "0.6455441", "0.6438066", "0.63892174", "0.6342691", "0.63389504", "0.6335467", "0.6325318", "0.63249975", "0.6317476", "0.6304336", "0.6304336", "0.62920934", "0.62832475", "0.6281394", "0.6271953", "0.6251969", "0.6251167", "0.6244653", "0.62428796", "0.6224919", "0.621762", "0.6211618", "0.6202944", "0.61711514", "0.6133783", "0.6125376", "0.6121459", "0.6111652", "0.6095295", "0.6091913", "0.6071267", "0.60597354", "0.6058917", "0.60548025", "0.60546464", "0.6023093", "0.6022613", "0.6010818", "0.601061", "0.6006548", "0.59974843", "0.59893775", "0.59864444", "0.59646344", "0.5943366", "0.59419155", "0.59368235", "0.59365416", "0.59357446", "0.5932336", "0.5932267", "0.592844", "0.59222126", "0.591872", "0.591872", "0.591872", "0.591872", "0.591872", "0.59071606", "0.59041965", "0.59018314", "0.589789", "0.58748335", "0.58734375", "0.5873423", "0.58552855", "0.5855188", "0.58380264", "0.58373284", "0.58370733", "0.5834809", "0.58333164", "0.5832562", "0.58324575", "0.5832278", "0.58286786", "0.5828206", "0.5828206", "0.5828206", "0.5828206", "0.5828206", "0.5828206", "0.5827528", "0.5822628" ]
0.0
-1
Returns the record's corresponding Table object.
public function getTable() { return $this->_table; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getTable() { return $this->table->getTable(); }", "public final function getTable()\n {\n if ($this->_table === null)\n $this->_table = $this->getParentObject()->getTable();\n \n return $this->_table;\n }", "public function getTable()\r\n\t{\r\n\t\tif ($this->_table===null) {\r\n\t\t\t$this->_table=new $this->_tableClass;\r\n\t\t}\r\n\t\treturn $this->_table;\r\n\t}", "public function getTable(): Table;", "public function getTable() { return( $this->_table ); }", "public function getTable()\r\n {\r\n if($this->_table === null){\r\n $this->_table = new SampleTable();\r\n }\r\n return $this->_table;\r\n }", "protected function _getTable()\n\t{\n\t\t$tableName = substr( get_class($this), strlen(self::PREFIX) );\n\t\t$tableClass = self::PREFIX . 'DbTable_' . $tableName;\n\t\t$table = new $tableClass();\n\t\treturn $table;\n\t}", "public function getTable()\n {\n return $this->table;\n }", "public function getTable()\n {\n return $this->table;\n }", "public function getTable()\n {\n return $this->table;\n }", "public function getTable()\n {\n return $this->table;\n }", "public function getTable()\n {\n return $this->table;\n }", "public function getTable()\n {\n return $this->table;\n }", "public function getTable()\n {\n return $this->table;\n }", "public function getTable()\n {\n return $this->table;\n }", "public function getTable()\n {\n return $this->table;\n }", "public function getTable()\n {\n return $this->table;\n }", "public function getTable() {\n return $this->_table;\n }", "public function getTable() {\n return $this->_table;\n }", "public function getTable() {\n return $this->table;\n }", "public function getTable() {\n return $this->table;\n }", "public static function getTable()\n {\n return (new static)->model->getTable();\n }", "public function getTable()\n\t{\n\t\treturn $this->table;\n\t}", "public static function getInstance()\n {\n return Doctrine_Core::getTable('TrOnlineRecord');\n }", "public function get_table()\n\t{\n\t\treturn $this->_table;\n\t}", "private function getTable()\n\t{\n\t\treturn $this->_table;\n\t}", "public function getTable()\n {\n return $this->_from[0]['table'];\n }", "protected function getTable()\n {\n return $this->table;\n }", "public function Table()\n {\n return $this->table;\n }", "public function getTable() {\n\n return $this->table;\n\n }", "public function getTable();", "public function getTable();", "public function getTable();", "public function getTable();", "public function getTable();", "public function getTable();", "public function getTable();", "protected function _getTable()\n {\n if (!$this->_table) {\n $this->_throwException('No table instance set.');\n }\n\n return $this->_table;\n }", "public function getTable() {\n return clone $this->table;\n }", "public function getTable()\n {\n if ($this->_table == null) {\n $this->_table = new Zend_Db_Table($this->_tableName);\n }\n\n return $this->_table;\n }", "public function getTable(): Table\n {\n $options = [];\n $options['CakephpFixtureFactoriesListeningModelEvents'] = $this->getListeningModelEvents() ?? [];\n $options['CakephpFixtureFactoriesListeningBehaviors'] = $this->getListeningBehaviors() ?? [];\n try {\n $table = FactoryTableRegistry::getTableLocator()->get($this->rootTableRegistryName, $options);\n } catch (\\RuntimeException $exception) {\n FactoryTableRegistry::getTableLocator()->clear();\n $table = FactoryTableRegistry::getTableLocator()->get($this->rootTableRegistryName, $options);\n }\n return $table;\n }", "public function getMainTable(): Table\n {\n return $this->mainTable;\n }", "public static function getTableName()\n {\n return ((new self)->getTable());\n }", "protected function table()\n {\n return $this->conn->table($this->table);\n }", "protected static function getTable()\n {\n if (static::$TABLE === null) {\n throw new NotImplementedException(_s('Missing table definition in Model ').get_called_class());\n }\n\n return static::$TABLE;\n }", "public function table()\n {\n return $this->morphTo();\n }", "public static function getTable();", "public function table()\n {\n return $this->table;\n }", "function &returnTable()\n\t{\n\t\treturn $this->table;\n\t}", "protected function table()\n\t{\n\t\treturn $this->connection->table($this->table);\n\t}", "public function get_table()\n {\n $this->process_frequency_table();\n return $this->table;\n }", "public abstract function getDbTable();", "public function getCurrentTable()\n {\n return $this->table;\n }", "public function getTable()\n {\n $parentTable = parent::getTable();\n if($parentTable instanceof PropelBuilderTableProxy)\n return $parentTable;\n return new PropelBuilderTableProxy( $parentTable );\n }", "public function getCurrentTable() {}", "abstract protected function getTable();", "private static function object_from_table_row($record) {\n\t // Could check that $record exists and is an array\n\t // Simple, long-form approach:\n\t $class_name = get_called_class();\n\t\t$object = new $class_name;\n\t\t\n\t\tforeach($record as $attribute=>$value){\n $attr = strtolower($attribute); //specific for Oracle, where table columns are always uppercase\n\t\t if($object->has_attribute($attr)) {\n\t\t $object->$attr = $value;\n\t\t }\n\t\t}\n\t\treturn $object;\n }", "public function getTable();", "final public static function tableName()\n {\n return (new static)->table;\n }", "public function getTable()\n\t{\n\t\treturn $this->connection->table(self::TABLE_NAME);\n\t}", "abstract public function getTable();", "abstract public function getTable();", "protected function table()\n {\n return $this->connection->table($this->table);\n }", "public function getTable() {}", "public function getTable() {}", "public function getTable()\n {\n return $this->parentTable;\n }", "public function getTable() {}", "public function getTblObj(){\r\n if(is_null(self::$tblObj)){\r\n self::$tblObj = new ImageTable();\r\n }\r\n return self::$tblObj;\r\n }", "public function table($table)\n {\n return $this->from($table, true);\n }", "public static function getTbl(){\r\n if(is_null(self::$tblObj)){\r\n self::$tblObj = new ImageTable();\r\n }\r\n return self::$tblObj;\r\n }", "public static function table()\n\t{\n\t\treturn self::em()->getRepository(static::class)->getMetadata()->getTable();\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 getOriginalTable() {}", "public function getTableName() ;", "public function getTable()\r\n {\r\n }", "public function getTabla(){\n return $this->table;\n }", "public static function getInstance()\n {\n return Doctrine_Core::getTable('PolozkyObj');\n }", "public function table(){\r\n\r\n return $this;\r\n }", "public static function getTable() {}", "public static function getTable() {}", "public static function getTable() {}", "public static function getTable() {}", "public static function getTable() {}", "public static function getTable() {}", "public static function getTable() {}", "public function getTableName() {}", "public function getTableName() {}", "public function getTable()\n {\n return $this->collection ?: parent::getTable();\n }", "public function getTable($table) {\r\n\t\tif (!isset($this->tables[$table])) {\r\n\t\t\t$this->tables[$table] = new Table($table, $this);\r\n\t\t}\r\n\t\treturn $this->tables[$table];\r\n\t}", "public function getTableName();", "public function getTableName();", "public function table(): Query\n {\n return $this->database->records();\n }", "public function getTable()\n {\n if (isset($this->table)) {\n return $this->table;\n }\n return str_replace('\\\\', '', Str::snake(Str::singular(class_basename($this))));\n }", "public static function getInstance()\n {\n return Doctrine_Core::getTable('FakturaObj');\n }", "function table($table, array $params = ['pk' => 'id'])\n {\n if (class_exists($table) && is_subclass_of($table, 'Objectiveweb\\DB\\Table')) {\n\n return new $table($this);\n } else {\n return new DB\\Table($this, $table, $params);\n }\n }", "public static function table($model)\n\t{\n\t\tif ($meta = Jelly_Meta::get($model))\n\t\t{\n\t\t\treturn $meta->table;\n\t\t}\n\t\t\n\t\treturn $model;\n\t}", "protected function OrderRecord() {\n\treturn $this->OrderTable($this->GetOrderID());\n }", "private static function tinydb_get_table_info()\n {\n return new \\TinyDb\\Internal\\TableInfo(static::$table_name);\n }" ]
[ "0.7195231", "0.71237874", "0.7111012", "0.7049498", "0.6983117", "0.6824802", "0.6819082", "0.680595", "0.680595", "0.680595", "0.680595", "0.680595", "0.680595", "0.680595", "0.680595", "0.680595", "0.680595", "0.6798293", "0.6798293", "0.6794347", "0.6794347", "0.6791392", "0.6770371", "0.67403024", "0.6737945", "0.6733639", "0.672923", "0.6725084", "0.6710524", "0.66923577", "0.66403073", "0.66403073", "0.66403073", "0.66403073", "0.66403073", "0.66403073", "0.66403073", "0.66116726", "0.65951025", "0.65884364", "0.6588285", "0.65723807", "0.65547496", "0.65523237", "0.6550616", "0.65498567", "0.65287", "0.651304", "0.65021646", "0.6468275", "0.6459039", "0.6446364", "0.64452904", "0.64280564", "0.64270437", "0.6425348", "0.64204407", "0.64197505", "0.6414352", "0.6403513", "0.6399099", "0.6399099", "0.6388127", "0.63503706", "0.63503015", "0.6349658", "0.6347809", "0.6345845", "0.6339617", "0.6331293", "0.62968695", "0.62911946", "0.62908876", "0.6287446", "0.62874126", "0.6279116", "0.62735856", "0.6257699", "0.6257435", "0.6257435", "0.6257435", "0.6257435", "0.6257435", "0.6257435", "0.62549603", "0.624373", "0.624373", "0.6242613", "0.62256336", "0.62125194", "0.62125194", "0.62035453", "0.6203159", "0.61642224", "0.6163872", "0.61563015", "0.61467683", "0.61465096" ]
0.6792716
22
Returns the current Record as an array.
public function toArray() { try { // Setup $result = array(); foreach($this->_columns as $column) { $result[$column->name] = $this->_data[$column->name]; } return $result; } catch(\Exception $ex) { \Bedrock\Common\Logger::exception($ex); throw new \Bedrock\Model\Record\Exception('There was a problem converting the Record to an array.'); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "#[\\ReturnTypeWillChange]\n function records()\n {\n return $this->getArrayCopy();\n }", "public function records() : array {\n return $this->records;\n }", "public function toArray()\n {\n if ($this->_checkRecordInstance()) {\n return $this->_entity->toArray();\n } else {\n return false;\n }\n }", "public function getArray()\n\t{\n\t\treturn $this->row;\n\t}", "public function toArray() // untested\n {\n return $this->data;\n }", "public function asArray()\r\n {\r\n return $this->data;\r\n }", "public function toArray() {\n return (array)$this;\n }", "public function asArray()\n {\n return $this->data;\n }", "public function toArray() {\n\t\treturn $this->array;\n\t}", "function to_array() {\n\t\tif ($this->id_field) {\n\t\t\t$return = array_merge($this->data, array($this->id_field=>$this->id));\n\t\t} else {\n\t\t\t$return = $this->data;\n\t\t}\n\n\t\treturn $return;\n\t}", "public function toArray() {\n\t\treturn $this->data;\n\t}", "public function as_array()\n\t{\n\t\treturn $this->getArrayCopy();\n\t}", "public function toArray()\n {\n return $this->cast('array');\n }", "public function toArray()\r\n\t{\r\n\t\treturn $this->m_data;\r\n\t}", "public function toArray() {\n return $this->array;\n }", "public function to_array()\n\t{\n\t\treturn $this->getArrayCopy();\n\t}", "public function toArray()\n {\n return $this->_data;\n }", "public function toArray()\n {\n return $this->_data;\n }", "function getRecords() {\n\t\treturn $this->records;\n\t}", "public function toArray()\n {\n return (array)$this;\n }", "public function toArray()\n {\n return (array)$this;\n }", "public function toArray()\n {\n return (array)$this;\n }", "public function getRecords()\n {\n return $this->records;\n }", "public function getRecords()\n {\n return $this->records;\n }", "public /*array*/ function toArray()\n\t{\n\t\treturn $this->_data;\n\t}", "public function getRecords()\n\t{\n\t\treturn $this->records['data'];\n\t}", "public function toArray()\r\n {\r\n return $this->data;\r\n }", "public function toRecord(): array\n {\n $data = $this->toArray();\n\n unset(\n $data['created_at'], $data['updated_at'], $data['deleted_at'],\n $data['description'], $data['product']\n );\n\n return $data;\n }", "public function toArray() {\n return $this->getData();\n }", "function toArray(){\r\n\t\treturn $this->data;\r\n\t}", "public function getAsArray();", "public function asArray(){\n return $this->data;\n }", "public function toArray()\n {\n return $this->data;\n }", "public function toArray()\n {\n return $this->data;\n }", "public function toArray()\n {\n return $this->data;\n }", "public function toArray()\n {\n return $this->data;\n }", "public function toArray()\n {\n return $this->data;\n }", "public function toArray()\n {\n return $this->data;\n }", "public function & toArray()\n\t{\n\t\t$x = new ArrayObject($this->data);\n\t\treturn $x;\n\t}", "public function toArray() {\n return $this->data;\n }", "public function toArray() {\n return $this->data;\n }", "function asArray(){\n\t\t\t$array = $this->toArray( $this );\n\t\t\treturn $array;\n\t\t}", "public function records() { return $this->_m_records; }", "public function toArray()\n {\n\n\n return $this->data;\n }", "public function asArray() {\n\t\treturn $this->_sth->fetchAll(PDO::FETCH_ASSOC);\n\t}", "public function toArray()\n {\n return $this->fetchData;\n }", "public function toArray()\n {\n // TODO: Implement toArray() method.\n }", "public function toArray()\n {\n // TODO: Implement toArray() method.\n }", "public function toArray(){\n $this->buildArray();\n return $this->array;\n }", "public function toArray() {}", "public function toArray() {}", "public function toArray() {}", "public function toArray() {}", "public function toArray() {}", "public function toArray() {}", "public function toArray() {}", "public function toArray() {}", "public function toArray() {}", "public function toArray() {}", "public function toArray() {}", "public function toArray() {}", "public function toArray() {}", "public function toArray() {}", "public function toArray() {}", "public function toArray() {}", "public function toArray() : array\n {\n return $this->data;\n }", "public function getRecord()\n {\n return $this->get(self::_RECORD);\n }", "public function to_array()\n {\n//var_dump($this->data);die();\n return $this->data;\n }", "public function toArray(): array\n {\n return (array) $this->result();\n }", "public function asArray() {\n return $this->resource;\n }", "public function getAsArray()\n\t{\n\t\t\n\t\t$path = $this->get();\n\t\t\n\t\treturn self::toArray($path);\n\t\t\n\t}", "public function getRecord();", "public function toArray()\n\t{\n\t\treturn array();\n\t}", "public function toArray()\n {\n\n }", "public function getArray() {\n\t\treturn $this->data; \n\t}", "public function getArray() {\n\t\treturn $this->data; \n\t}", "public function asArray() : array\n {\n return $this->a;\n }", "public function toArray() {\n return json_decode(json_encode($this), true);\n }", "public function toArray()\n\t{\n\t\treturn $this->_d;\n\t}", "public function toArray()\n {\n return [\n 'id' => $this->getRowId(),\n 'data' => $this->item\n ];\n }", "public function asArray(): array\n {\n return [\n 'table' => $this->table,\n 'type' => $this->type,\n 'on' => $this->on,\n ];\n }", "public function getRecord(){\n return $this->record;\n }", "public function to_array()\n {\n }", "public function to_array()\n {\n }", "public function to_array()\n {\n }", "public function to_array()\n {\n }", "public function to_array()\n {\n }", "public function to_array()\n {\n }", "public function toArray(): array {\n\t\treturn $this->array;\n\t}", "public function toArray(): array\n {\n return $this->rawData;\n }", "public function toArray()\n {\n return json_decode(json_encode($this), true);\n }", "public function toArray()\n {\n return json_decode(json_encode($this), true);\n }", "public function __toArray()\n {\n return $this->toArray();\n }", "public function getRecord(){\n \n return $this->record;\n }", "public function toArray()\n {\n $a = parent::toArray();\n return $a;\n }", "public function asArray();", "public function asArray();", "public function asArray();", "public function asArray();", "public function asArray();" ]
[ "0.76083153", "0.7419346", "0.7362983", "0.7043794", "0.7024983", "0.70184106", "0.69731283", "0.6970862", "0.69694483", "0.6964831", "0.69596523", "0.69585", "0.6953921", "0.6948628", "0.6944693", "0.6930479", "0.69289255", "0.69289255", "0.69259614", "0.6925488", "0.6925488", "0.6925488", "0.6924151", "0.6924151", "0.6920476", "0.6919375", "0.6907524", "0.6887332", "0.68805", "0.68756825", "0.6871319", "0.68642175", "0.68541294", "0.68541294", "0.68541294", "0.68541294", "0.68541294", "0.68541294", "0.6853287", "0.68422204", "0.68422204", "0.6837233", "0.68161416", "0.67989784", "0.67771316", "0.6769451", "0.67341286", "0.67341286", "0.6730913", "0.67234784", "0.67234784", "0.67234784", "0.67234784", "0.6722391", "0.6722391", "0.6722391", "0.6722391", "0.6722391", "0.6722391", "0.6722391", "0.6722391", "0.6722391", "0.6722391", "0.6722292", "0.6722292", "0.67168486", "0.6696504", "0.6690699", "0.6673137", "0.66642046", "0.666282", "0.6660066", "0.6655151", "0.6639424", "0.66354835", "0.66354835", "0.6625032", "0.6613835", "0.6611261", "0.6608854", "0.66052604", "0.65964663", "0.6594605", "0.65943754", "0.65943754", "0.659367", "0.659367", "0.659367", "0.658804", "0.65863615", "0.6574958", "0.6574958", "0.65736634", "0.6572332", "0.65549797", "0.6553132", "0.6553132", "0.6553132", "0.6553132", "0.6553132" ]
0.7488431
1
Saves the current record to the database.
public function save() { try { $sql = ''; if($this->_state == self::STATE_CHANGED) { $sql = 'UPDATE ' . self::sanitize($this->_table->getProperty('name')) . ' SET '; foreach($this->_columns as $column) { $sql .= $column->name . ' = '; switch($column->type) { case \Bedrock\Model\Column::FIELD_TYPE_INT: case \Bedrock\Model\Column::FIELD_TYPE_FLOAT: case \Bedrock\Model\Column::FIELD_TYPE_DOUBLE: case \Bedrock\Model\Column::FIELD_TYPE_DECIMAL: if($this->_data[$column->name]) { $sql .= $this->_data[$column->name] . ', '; } else { $sql .= '\'\', '; } break; case \Bedrock\Model\Column::FIELD_TYPE_BOOL: $sql .= ($this->_data[$column->name] ? '1' : '0') . ', '; break; case \Bedrock\Model\Column::FIELD_TYPE_DATETIME: if(!$this->_data[$column->name]) { $sql .= 'NOW(), '; } else { $sql .= '\'' . date('Y-m-d H:i:s', strtotime($this->_data[$column->name])) . '\', '; } break; case \Bedrock\Model\Column::FIELD_TYPE_DATE: if(!$this->_data[$column->name]) { $sql .= 'NOW(), '; } else { $sql .= '\'' . date('Y-m-d', strtotime($this->_data[$column->name])) . '\', '; } break; case \Bedrock\Model\Column::FIELD_TYPE_TIME: if(!$this->_data[$column->name]) { $sql .= 'NOW(), '; } else { $sql .= '\'' . date('H:i:s', strtotime($this->_data[$column->name])) . '\', '; } break; default: $sql .= '\'' . self::sanitize($this->_data[$column->name]) . '\', '; break; } } $sql = substr($sql, 0, strlen($sql) - 2) . ' WHERE ' . self::sanitize($this->_key_primary->name) . ' = ' . self::sanitize($this->_data[$this->_key_primary->name]); } elseif($this->_state == self::STATE_NEW) { $sql = 'INSERT INTO ' . self::sanitize($this->_table->getProperty('name')) . ' ('; foreach($this->_columns as $column) { if(!$column->primary_key) { $sql .= self::sanitize($column->name) . ', '; } } $sql = substr($sql, 0, strlen($sql) - 2) . ') VALUES ('; foreach($this->_columns as $column) { if(!$column->primary_key) { switch($column->type) { case \Bedrock\Model\Column::FIELD_TYPE_INT: case \Bedrock\Model\Column::FIELD_TYPE_FLOAT: case \Bedrock\Model\Column::FIELD_TYPE_DOUBLE: case \Bedrock\Model\Column::FIELD_TYPE_DECIMAL: if($this->_data[$column->name]) { $sql .= $this->_data[$column->name] . ', '; } else { $sql .= '\'\', '; } break; case \Bedrock\Model\Column::FIELD_TYPE_BOOL: $sql .= ($this->_data[$column->name] ? '1' : '0') . ', '; break; case \Bedrock\Model\Column::FIELD_TYPE_DATETIME: if(!$this->_data[$column->name]) { $sql .= 'NOW(), '; } else { $sql .= '\'' . date('Y-m-d H:i:s', strtotime($this->_data[$column->name])) . '\', '; } break; case \Bedrock\Model\Column::FIELD_TYPE_DATE: if(!$this->_data[$column->name]) { $sql .= 'NOW(), '; } else { $sql .= '\'' . date('Y-m-d', strtotime($this->_data[$column->name])) . '\', '; } break; case \Bedrock\Model\Column::FIELD_TYPE_TIME: if(!$this->_data[$column->name]) { $sql .= 'NOW(), '; } else { $sql .= '\'' . date('H:i:s', strtotime($this->_data[$column->name])) . '\', '; } break; default: $sql .= '\'' . self::sanitize($this->_data[$column->name]) . '\', '; break; } } } $sql = substr($sql, 0, strlen($sql) -2) . ')'; } \Bedrock\Common\Logger::info('Saving record with query: ' . $sql); $this->_connection->exec($sql); $this->_state = self::STATE_UNCHANGED; } catch(\PDOException $ex) { \Bedrock\Common\Logger::exception($ex); throw new \Bedrock\Model\Record\Exception('There was a problem saving the record to the database.'); } catch(\Exception $ex) { \Bedrock\Common\Logger::exception($ex); throw new \Bedrock\Model\Record\Exception('An error was encountered and the record could not be saved.'); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function save()\n {\n $this->checkForNecessaryProperties();\n\n $this->update($this->getCurrentId(), $this->data);\n }", "public function save()\n {\n if ($this->id) {\n $this->update();\n } else {\n $this->id = $this->insert();\n }\n }", "public function save()\n {\n if ($this->id === null) {\n $this->insert();\n } else {\n $this->update();\n }\n }", "function save() {\n\n\t\t// calls generic ORM save (insert or update)\n\t\tparent::save();\n\n\t}", "public function save() {\n $db = Db::instance();\n $db_properties = array(\n 'action' => $this->action,\n 'url_mod' => $this->url_mod,\n 'description' => $this->description,\n 'target_id' => $this->target_id,\n 'target_name' => $this->target_name,\n 'creator_id' => $this->creator_id,\n 'creator_username' => $this->creator_username\n );\n $db->store($this, __CLASS__, self::DB_TABLE, $db_properties);\n }", "public function save()\n {\n $db = DatabaseUtil::db_connect($this->database);\n $db->query('update ' . $this->table . 'set ' . $this->column . ' = ' . $this->value . ' where ID=' . $this->ID);\n $db->close();\n }", "public function save()\n {\n\n // generate all column's sql query\n $column_names = '';\n $column_values = '';\n foreach ($this->columns as $field_name => $column_obj)\n {\n if ($column_obj->columnName === null) {\n $column_names .= $field_name.', ';\n } else {\n $column_names .= $column_obj->columnName.', ';\n }\n $column_values .= $column_obj->generateValueForSQL().', ';\n }\n $column_names = substr($column_names, 0, -1);\n $column_values = substr($column_values, 0, -1);\n $this_table_name = $this->table_name;\n $this_id = $this->id;\n\n if ($this->id === 0) {\n // This object is not saved yet.\n $query = 'INSERT INTO $this_table_name ($column_names) VALUES ($column_values);';\n // Execute query\n } else {\n // This object is on the DB.\n $query = 'INSERT INTO $this_table_name ($column_names) VALUES ($column_values) WHERE id=$this_id;';\n // Execute query\n }\n\n mysql_run_query($query);\n\n }", "public function save();", "public function save();", "public function save();", "public function save();", "public function save();", "public function save();", "public function save();", "public function save();", "public function save();", "public function save();", "public function save();", "public function save();", "public function save();", "public function save();", "public function save();", "public function save();", "public function save();", "public function save();", "public function Save(){\r\n\t\t$this->db->save();\r\n\t}", "public function save() {}", "public function save() {}", "public function save() {}", "public function save() {\n $db = Db::instance();\n // omit id and any timestamps\n $db_properties = array(\n 'author_id' => $this->author_id,\n 'clothingname' => $this->clothingname,\n 'clothingtype' => $this->clothingtype,\n 'tempmin' => $this->tempmin,\n 'tempmax' => $this->tempmax\n );\n $db->store($this, __CLASS__, self::DB_TABLE, $db_properties);\n }", "public\tfunction\tsave()\n\t\t{\n\t\t}", "public function save() {\n if ($this->id) {\n return $this->update();\n } else {\n return $this->insert();\n }\n }", "public function save()\n {\n $this->_validateModifiable();\n\n if($this->isNew())\n {\n $this->_getDataSource()->create($this);\n }\n else\n {\n $this->_getDataSource()->update($this);\n }\n\n $this->_saveRelations();\n $this->_setNew(false);\n }", "public function save() : bool {\n\t\t// Check if record is new\n\t\t$isNew = isset($this->{$this->primaryKey}) && $this->{$this->primaryKey} ? false : true;\n\n\t\tif ($isNew) {\n\t\t\t// Insert\n\t\t\t$this->database->query('INSERT INTO ' . $this->tableNamePrefixed, $this->getValuesForDatabase());\n\t\t\tif ($this->database->getInsertId()) {\n\t\t\t\t$this->{$this->primaryKey} = $this->database->getInsertId();\n\t\t\t}\n\t\t} else {\n\t\t\t// Update\n\t\t\t$this->database->query(\n\t\t\t\t'UPDATE ' . $this->tableNamePrefixed . ' SET',\n\t\t\t\t$this->getValuesForDatabase(),\n\t\t\t\t'WHERE ' . $this->primaryKey . ' = ?', $this->{$this->primaryKey}\n\t\t\t);\n\t\t}\n\n\t\treturn true;\n\t}", "public final function save() {\n }", "public function save()\n {\n }", "public function save(){\r\n\t\tif ($this->new){\r\n\t\t\treturn $this->insert();\r\n\t\t} else {\r\n\t\t\treturn $this->update();\r\n\t\t}\r\n\t}", "public function save() {\n\t\tif( $this->isAddingNew() ) {\n\t\t\t//Insert record\n\t\t\t$key = $this->getConnection()->insert( $this->_updateBuffer, $this );\n\n\t\t\t//remove all state from this object (including isAddingNew)\n\t\t\t$this->clear();\n\n\t\t\t//Pull just this new record\n\t\t\t$method = \"where\" . $this->getTable()->getPrimaryKey();\n\t\t\t$this->$method( $key );\n\t\t} else {\n\t\t\t$updatedRecord = $this->getConnection()->update( $this->_updateBuffer, $this );\n\t\t\t$this->_recordset[ $this->_currentRow ] = $updatedRecord[0];\n\t\t}\n\n\t\t$this->_updateBuffer = array();\n\t\treturn $this;\n\t}", "public function save() {\n\t\t\t\n\t\t}", "public function save() \n {\n\t\t$this->setLastUpdateTime(date(MYSQL_DATETIME_FORMAT));\n\n\t\tif($this->getId() ) {\n\t\t\treturn $this->_update();\n\t\t} else {\n\t\t\treturn $this->_insert();\n\t\t}\n\t}", "public function save() {\n $db = Db::instance();\n // omit id and any timestamps\n $db_properties = array(\n 'username' => $this->username,\n 'password_hash' => $this->password_hash,\n 'email' => $this->email,\n 'first_name' => $this->first_name,\n 'last_name' => $this->last_name,\n 'user_type' => $this->user_type,\n 'bio' => $this->bio,\n 'creation_date' => $this->creation_date,\n 'gender' => $this->gender,\n 'color' => $this->color\n );\n $db->store($this, __CLASS__, self::DB_TABLE, $db_properties);\n }", "public function SaveRecord()\n {\n // call ValidateForm()\n if ($this->ValidateForm() == false)\n return;\n\n $recArr = array();\n if ($this->ReadInputRecord($recArr) == false)\n return;\n\n if ($this->m_Mode == MODE_N)\n $dataRec = new DataRecord(null, $this->GetDataObj());\n else if ($this->m_Mode == MODE_E)\n $dataRec = new DataRecord($this->GetActiveRecord(), $this->GetDataObj());\n foreach ($recArr as $k=>$v)\n $dataRec[$k] = $v; // or $dataRec->$k = $v;\n $ok = $dataRec->save();\n\n if (!$ok)\n return $this->ProcessDataObjError($ok);\n\n $this->UpdateActiveRecord($this->GetDataObj()->GetActiveRecord());\n $this->SetDisplayMode (MODE_R);\n // TODO: popup message of new record successful saved\n return $this->ReRender();\n }", "public function save()\r\n {\r\n \r\n }", "public final function save()\n {\n }", "public function save()\n {\n if ($this->_state == 0) {\n // Insert\n $result = static::getLink()->insert(Structure::getTable($this)->getFullTableName(), $this->getColumns(), $this->getColumns(true));\n\n // Primary Key\n $this->_id = static::getLink()->lastInsertId();\n\n /** @var Column $primaryKey */\n $primaryKey = Structure::getTablePrimaryKey($this);\n\n if ($primaryKey->autoIncrement) {\n $this->{$primaryKey->getPropertyField()} = $this->_id;\n }\n\n $this->_state = 1;\n } else {\n // Update\n $result = static::getLink()->update(Structure::getTable($this)->getFullTableName(), $this->getColumns(), $this->getPrimaryKey(),\n array_merge($this->getColumns(true), $this->getPrimaryKey(true)));\n }\n\n return $result;\n }", "public function save() {\r\n $dateNow = date('Y-m-d H:i:s', time());\r\n $this->id = (int) $this->id;\r\n \r\n if (!empty($this->id)) {\r\n //update case\r\n if ($this->_update()) {\r\n return true;\r\n }\r\n }\r\n else {\r\n //Insert case\r\n if ($this->_insert()) {\r\n return true;\r\n }\r\n }\r\n }", "public function save()\n {\n return;\n }", "public function save()\n {\n if ( !$this->unsaved ) {\n // either nothing has been changed, or data has not been loaded, so\n // do nothing by returning early\n return;\n }\n\n $this->write();\n $this->unsaved = false;\n }", "public function save() {\n $db = Db::instance();\n // omit id \n $db_properties = array(\n 'firstName' => $this->firstName,\n 'lastName' => $this->lastName,\n 'description' => $this->description,\n 'user' => $this->user,\n 'password' => $this->password,\n 'image' => $this->image,\n 'gender' => $this->gender,\n 'topic_id' => $this->topic_id,\n 'topic_id1' => $this->topic_id1,\n 'role_id' => $this->role_id,\n );\n $db->store($this, __CLASS__, self::DB_TABLE, $db_properties);\n }", "public function save() {\n // Fail due to attempting to save deleted record \n assert(!$this->hasBeenDeleted);\n \n // Fail if fields are invalid\n $this->validateOrThrow();\n\n // Initialize save record cache, if necessary\n if (!isset(self::$saveRecordPreparedStatementCache)) {\n self::$saveRecordPreparedStatementCache = array();\n }\n\n // Initiate implicit transaction, if needed\n $is_implicit_tx = false;\n if (self::$numTransactions == 0) {\n $is_implicit_tx = true; \n self::beginTx();\n }\n \n // Fail due to invalid database connection\n assert(isset(self::$databaseHandle));\n\n $table_name = static::getTableName();\n\n try {\n // Create save-record prepared statement if non-existant\n if (!isset(self::$saveRecordPreparedStatementCache[$table_name])) {\n $save_query_str = self::genSaveRecordQuery($this->childDbFieldTable);\n self::$saveRecordPreparedStatementCache[$table_name] = \n self::$databaseHandle->prepare($save_query_str);\n }\n\n $save_record_stmt = self::$saveRecordPreparedStatementCache[$table_name];\n\n // Bind record fields \n foreach ($this->childDbFieldTable as $field_name => $field) {\n $save_record_stmt->bindValue(\n self::transformForPreparedStatement($field_name),\n $field->getValue(),\n $field->getDataType()\n );\n }\n\n // Bind 'id' to save query\n $this->bindId($save_record_stmt);\n // Save record fields\n $save_record_stmt->execute();\n } catch (PDOException $e) {\n self::$databaseHandle->rollback();\n die(\"\\nERROR: \" . $e->getMessage() . \"\\n\");\n }\n\n // Close implicit tx\n if ($is_implicit_tx) {\n self::endTx();\n }\n }", "public function save()\n\t{\n\t\tparent::save();\n\t\t\n\t\t$table_prefix = Kohana::config('database.default.table_prefix');\n\t\t\n\t\t$this->db->query('UPDATE `'.$table_prefix.'indicator_lang` SET indicator_title = ?, indicator_description = ? WHERE indicator_id = ? AND locale = ?',\n\t\t\t$this->indicator_title, $this->indicator_description, $this->id, $this->locale\n\t\t);\n\t}", "public function save()\n {\n $entities = $this->entities;\n Database::getInstance()->doTransaction(\n function() use ($entities)\n {\n foreach ($entities as $entity)\n {\n if ($entity->getMarkedAsDeleted())\n {\n $entity->delete();\n } \n else if ($entity->getMarkedAsUpdated())\n {\n $entity->saveWithDetails();\n }\n }\n }\n );\n }", "public function save()\n {\n if($this->id != -1)\n {\n $this->update_subject();\n }\n else\n {\n $this->insert_subject();\n }\n }", "public function save() {\r\n $conn = GFSalsaConnector::instance();\r\n if ($conn) {\r\n $conn->saveObject($this->object, $this);\r\n }\r\n }", "public function store()\n {\n if( $this->isPersistent() )\n {\n $this->update();\n }\n else\n {\n $this->insert();\n }\n }", "function save()\n {\n $GLOBALS['DB']->exec(\"INSERT INTO stores (store_name) VALUES (\n '{$this->getStoreName()}'\n );\");\n\n $this->id = $GLOBALS['DB']->lastInsertId();\n }", "public function save()\n\t{\n\t\tself::$db->model = $this;\n\t\t$boolean = $this->validate();\n\t\tif($boolean){\n\t\t\treturn self::$db->saveNow();\n\t\t}\n\t}", "public function save()\n {\n // For V2.0\n }", "public function save()\n {\n \treturn FactoryAbastract::dao(get_class($this))->save($this);\n }", "protected function save()\n\t{\n\t\t$this->saveItems();\n\t\t//$this->saveAssignments();\n\t\t//$this->saveRules();\n\t}", "public function save()\n \t{\n \t $this->getMapper()->save($this);\n \t}", "public function saveToDb()\n\t{\n\t\t$this->addDocument();\n\t\tparent::saveToDb();\n\t}", "public function save()\n {\n if (count($this->toSave) <= 0)\n return;\n \n $columns = [ ];\n $params = [ ];\n $to_save = [ ];\n array_walk($this->toSave, function($value, $key) use (&$columns, &$to_save, &$params) {\n if ($this->insert):\n $columns[] = $key;\n $to_save[] = \"?\";\n else:\n $to_save[] = \"{$key} = ?\";\n endif;\n\n $params[] = $value;\n });\n $to_save = implode(', ', $to_save);\n\n if ($this->insert):\n $columns = implode(', ', $columns);\n $primary_key = database()->run('INSERT INTO ' . $this->table . '(' . $columns . ') VALUES(' . $to_save . ')', $params);\n \n $this->{$this->primaryKey} = $primary_key;\n $this->insert = false;\n else:\n $params[] = $this->{$this->primaryKey};\n database()->run('UPDATE ' . $this->table . ' SET ' . $to_save . ' WHERE ' . $this->primaryKey . ' = ?', $params);\n endif;\n \n $this->toSave = [ ];\n return $this;\n }", "public function save() {\n\n return isset($this->id) ? $this->update() : $this->create();\n }", "public function save() {\r\n if ($this->model->getId()) {\r\n return $this->model->update();\r\n }\r\n return $this->create();\r\n }", "public function save()\n\t{\n\t\t$this->copyAttributesToValues() ;\n\t\tif( $this->factory )\n\t\t{\n\t\t\tswitch( $this->todo )\n\t\t\t{\n\t\t\t\tcase 1: // Insert\n\t\t\t\t\tif( $this->factory->insertObjectIntoDB( $this ) ) $this->state = \"inserted\" ;\n\t\t\t\t\telse $this->state = \"dberror\" ;\n\t\t\t\t\tbreak ;\n\t\t\t\tcase 2: // update\n\t\t\t\t\tif( $this->factory->updateObjectIntoDB( $this ) ) $this->state = \"updated\" ;\n\t\t\t\t\telse $this->state = \"dberror\" ;\n\t\t\t\t\tbreak ;\n\t\t\t\tcase 3: // delete\n\t\t\t\t\tif( $this->factory->deleteObjectIntoDB( $this ) ) $this->state = \"deleted\" ;\n\t\t\t\t\telse $this->state = \"dberror\" ;\n\t\t\t\t\tbreak ;\n\t\t\t}\n\t\t}\n\t}", "public function save()\n\t{\n\t\t$data = ['criteria' => $this -> criteria,\n\t\t\t\t 'dbname' => $this -> dbname,\n\t\t\t\t 'tblname' => $this -> tblname];\n\n\t\t$result = $this -> connection -> setTable($this -> entity)\r\n\t\t\t\t\t\t\t\t\t -> saveRec($data);\n\t\tif ($result) {\n\t\t\t$this -> id = $result;\n\t\t\treturn $this;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public function save(){\n\t\t// If primary key is set in model, run an update instead.\n\t\t$primaryKey = $this->getPrimaryKey();\n\t\tif(isset($this->{$primaryKey})){\n\t\t\treturn $this->update();\n\t\t}\n\t\t$this->beforeSave();\n\t\t$tableName = $this->tableName();\n\t\t$fields = $this->fields();\n\t\t// Remove fields set as ignored by rules validation.\n\t\t$fields = $this->removeIgnored($fields);\n\t\t// Create PDO placeholders.\n\t\t$params = array_map(fn($name) => ':'.$name, $fields);\n\t\t// Populate statement by imploding the arrays.\n\t\t$statement = $this->db->prepare('INSERT INTO ' . $tableName . ' ( ' . implode(', ', $fields) . ') VALUES (' . implode(', ', $params) . ')');\n\t\t// Bind values to placeholders.\n\t\tforeach($fields as $field){\n\t\t\t$this->binder($statement, ':' . $field, $this->{$field});\n\t\t}\n\t\tif($statement->execute()){\n\t\t\t$this->afterSave();\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public function save(){\r\n\t \t\treturn isset($this->id) ? $this->update() : $this->create();\r\n\t\t}", "public function save(){\n\t\t\n\t\tif(!isset($this->data[$this->primary_key])){\n\t\t\t$success = $this->db\n\t\t\t\t->set($this->data)\n\t\t\t\t->insert($this->table);\n\n\t\t\t$this->data[$this->primary_key] = $this->db->last_insert_id;\n\t\t}else{\n\t\t\t$success = $this->db\n\t\t\t\t->set($this->data)\n\t\t\t\t->where($this->primary_key, $this->data[$this->primary_key])\n\t\t\t\t->update($this->table);\n\t\t}\n\n\t\treturn $success;\n\t}", "public function saveThis()\n {\n \t\tPersistentSession::getInstance()->saveOrUpdate($this);\n }", "public function saveToDB()\n {\n }", "public function save()\n {\n if ($conn = $this->_getConnection()) {\n $data = $this->getData();\n unset($data['user']);\n if ($this->id) {\n $fields = array();\n foreach ($data as $_field => $_value) {\n $fields[] = \"`{$_field}`='{$_value}'\";\n }\n $sql = \"UPDATE `{$this->_dbTable}` SET \" . implode(\",\", $fields) . \" WHERE `id`={$this->id};\";\n } else {\n $sql = \"INSERT INTO `{$this->_dbTable}` (`\" . implode('`,`', array_keys($data)) . \"`)\n VALUES('\" . implode(\"','\", $data) . \"');\";\n }\n $result = $conn->query($sql);\n app::log(array($sql, $result, $conn->errno, $conn->error)); //!!!!\n if ($conn->errno) {\n app::log('Error saving model \"' . $this->_modelName . '\" into DB with ID=' . $this->id, app::LOG_LEVEL_ERROR . \"\\n{$conn->errno} - {$conn->error}\");\n }\n if (!$this->id) {\n $this->id = $conn->insert_id;\n }\n }\n app::log($this->_data); //!!!!\n return $this;\n }", "public function save()\n\t{\n\n\t}", "public function save() {\n return $this->{static::$primaryKey} === null? $this->create() : $this->update();\n }", "public function save() {\n\n $data = array(\n 'name' => $this->getName(),\n 'description' => $this->getDescription(),\n 'metatitle' => $this->getMetatitle(),\n 'metakeywords' => $this->getMetakeywords(),\n 'metadescription' => $this->getMetadescription()\n );\n $data['parent_id'] = 0; // by default it is 0, becouse right now there is no use of parent id in this application\n if (null === ($id = $this->getId())) {\n unset($data['id']);\n $data['status'] = 1;\n return $this->getMapper()->getDbTable()->insert($data);\n } else {\n $data['status'] = $this->getStatus();\n return $this->getMapper()->getDbTable()->update($data, array('id = ?' => $id));\n }\n\n }", "function save() {\n\t\t// If every question is answered, save to the db. Otherwise, to session.\n\t\tif($this->isComplete()) {\n\t\t\t$this->saveToRecord();\n\t\t} else {\n\t\t\t$this->saveToSession();\n\t\t}\n\t}", "function save()\n {\n $this->form_validation->set_rules($this->_get_rules());\n\n if($this->form_validation->run()){\n $entity = $this->_from_form();\n $this->data['save'] = $this->model->insert_entry($entity);\n $this->data['action_performed'] = 'save';\n $this->success($entity);\n }\n else {\n $this->create();\n }\n }", "public function save() {\n\t\treturn isset($this->id) ? $this->update() : $this->create();\n\t}", "public function save() {\n\t\treturn isset($this->id) ? $this->update() : $this->create();\n\t}", "public function save()\n {\n $this->hasTableName();\n $pk = $this->pk;\n $condition = \"\";\n if ($this->isNew) {\n $sql = \"INSERT INTO \" . $this->table_name . \" SET \";\n $update = '';\n } else {\n if (!isset($this->$pk))\n throw new Exception('Update em objeto sem chave definida', 403);\n\n $sql = \"UPDATE \" . $this->table_name . \" SET \";\n $update = \" WHERE `\" . $this->pk . \"` = '\" . $this->$pk . \"'\";\n }\n foreach ($this->rules() as $key => $validation) {\n if ($this->validateField($key, $validation) && isset($this->$key) && $this->$key != \"\") {\n $sql .= \" `\" . $key . \"` = '\" . $this->$key . \"',\";\n $condition .= \" `\" . $key . \"` = '\" . $this->$key . \"' AND\";\n }\n }\n if (!$this->getErrors()) {\n $sql = substr($sql, 0, -1) . $update;\n if (Database::dbactionf($sql)) {\n if ($this->isNew) {\n $this->$pk = Database::lastID();\n $this->persisted();\n }\n return true;\n }\n }\n return false;\n }", "public function save()\n {\n $this->persist($this->state);\n }", "public function save()\n {\n // If deposit is new, will get assigned database ID.\n $this->dbID = $this->db->saveDeposit($this);\n }", "public function store()\n {\n if (!$this->id) { // Insert\n $this->insertObject();\n } else { // Update\n $this->updateObject();\n }\n }", "public function save()\r\n {\r\n //\r\n }", "public function save() {\n }", "public function save() {\n }", "public function save()\n {\n $DB = DB::singleton(dsn());\n\n if ( $this->update ) {\n $SQL = SQL::newUpdate('entry');\n foreach ( $this->columns as $column ) {\n $SQL->addUpdate('entry_' . $column, $this->{$column});\n }\n $SQL->addWhereOpr('entry_id', $this->id);\n $SQL->addWhereOpr('entry_blog_id', $this->blog_id);\n $DB->query($SQL->get(dsn()), 'exec');\n } else {\n $SQL = SQL::newInsert('entry');\n foreach ( $this->columns as $column ) {\n $SQL->addInsert('entry_' . $column, $this->{$column});\n }\n $DB->query($SQL->get(dsn()), 'exec');\n }\n\n EntryHelper::saveColumn($this->units, $this->id, $this->blog_id);\n Common::saveField('eid', $this->id, $this->fields);\n Common::saveFulltext('eid', $this->id, Common::loadEntryFulltext($this->id));\n }", "public function save() {\n return isset($this->id) ? $this->update() : $this->create();\n }", "public function save()\n\t{\n\n\t\treturn parent::save();\n\t}", "public function save()\n {\n $this->checkModel();\n if (!is_null($this->profile)) $this->saved = $this->profile->save();\n }", "public function save()\n {\n return Query::update('officers', \"`ID`=\".$this->id, $this->initialVars, $this->getDBArray());\n }", "public function save()\n {\n // that is already in this database using the current IDs in this \"where\"\n // clause to only update this model. Otherwise, we'll just insert them.\n if ($this->exists) {\n $saved = $this->newBuilder()->where('_id', $this->convertToMongoId($this->attributes['_id']))->update($this->attributes);\n }\n // If the model is brand new, we'll insert it into our database and set the\n // ID attribute on the model to the value of the newly inserted row's ID\n // which is typically an auto-increment value managed by the database.\n else {\n $saved = $this->newBuilder()->insert($this->attributes);\n }\n\n // TODO: fill() attributes will new or updated values.\n\n return $saved;\n }", "public function save() {\n }", "public function saveAction()\n {\n $form = $this->getForm();\n $form->setData($_POST);\n try {\n $valid = $form->isValid();\n } catch (\\Exception $e) {\n $valid = false;\n }\n if (!$valid)\n {\n $this->getSessionStorage()->fromArray(['form' => $form]);\n return $this->redirect()->toRoute($this->routeName, ['action' => 'edit']);\n }\n $modelName = $this->modelName;\n $model = new $modelName();\n $model->exchangeArray($this->getDataFromRequest());\n $this->sm->get($this->mainTableFactory)->save($model);\n return $this->redirect()->toRoute($this->routeName);\n }", "public function save()\n {\n if($this->changed) {\n Item::saveNewValues($this->id, $this->name, $this->status);\n } else {\n echo 'Nothing changed!';\n }\n }", "function save()\r\n {\r\n $GLOBALS['DB']->exec(\"INSERT INTO inventory_items (name) VALUES ('{$this->getName()}')\");\r\n $this->id = $GLOBALS['DB']->lastInsertId();\r\n }", "public function save()\n\t{\n\t\t$status = $this->validated ? TRUE : $this->valid();\n\n\t\tif ($status === TRUE)\n\t\t{\n\t\t\tif ($this->data['id']) // Do an update\n\t\t\t\treturn count($this->db->update($this->table_name, $this->data, array('id' => $this->data['id'])));\n\t\t\telse // Do an insert\n\t\t\t{\n\t\t\t\t$id = $this->db->insert($this->table_name, $this->data)->insert_id();\n\t\t\t\treturn ($this->data['id'] = $id);\n\t\t\t}\n\t\t}\n\n\t\tthrow new Kohana_User_Exception('auto_modeler.validation_error', $status);\n\t}", "function save(){\n\t\t// returns the item's id if successful\n\t\tif($this->beforesave()){\n\t\t\t$query = ($this->id?\"UPDATE \":\"INSERT INTO \").$this->tablename.\" SET \";\n\t\t\t$qvalues = \"\";\n\t\t\tforeach($this->dbvariables as $key){\n\t\t\t\t$qvalues .= ($qvalues == \"\"?\"\":\", \").$key.\"='\".trim(addslashes($this->$key)).\"'\";\n\t\t\t}\n\t\t\t$query .= $qvalues;\n\t\t\tif($this->id){\n\t\t\t\t$query .= \" WHERE id=\".$this->id;\n\t\t\t}else{\n\t\t\t\t$query .= \", item_order=\".get_neworder($this->tablename, $this->neworder_where());\n\t\t\t}\n\t\t\tmy_debug(\"Attempting query: \".$query,__FILE__,__LINE__,\"green\");\n\t\t\tif(mysql_query($query)){\t\t\t\t\n\t\t\t\tif(!$this->id && mysql_insert_id())\t$this->id = mysql_insert_id();\n\t\t\t\t$this->onsave();\n\t\t\t\treturn $this->id;\n\t\t\t}else{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t}", "public function save()\n {\n return $this->edit($this->id, $this->data);\n }", "public function save() {\n $db = Db::instance();\n // omit id and any timestamps\n $db_properties = array(\n 'event_type_id' => $this->event_type_id,\n 'user_1_id' => $this->user_1_id,\n 'user_2_id' => $this->user_2_id,\n 'user_1_name' => $this->user_1_name,\n 'user_2_name' => $this->user_2_name,\n 'product_1_name' => $this->product_1_name,\n 'product_2_name' => $this->product_2_name,\n 'data_1' => $this->data_1,\n 'data_2' => $this->data_2\n );\n $db->store($this, __CLASS__, self::DB_TABLE, $db_properties);\n }" ]
[ "0.80005366", "0.7482499", "0.7430263", "0.7271551", "0.72679687", "0.7255535", "0.70791113", "0.7077896", "0.7077896", "0.7077896", "0.7077896", "0.7077896", "0.7077896", "0.7077896", "0.7077896", "0.7077896", "0.7077896", "0.7077896", "0.7077896", "0.7077896", "0.7077896", "0.7077896", "0.7077896", "0.7077896", "0.7077896", "0.70677406", "0.7059857", "0.7059857", "0.70580566", "0.7043189", "0.7033792", "0.70265275", "0.70221114", "0.70197356", "0.7011461", "0.699256", "0.69778395", "0.6968909", "0.69665396", "0.69655496", "0.6937412", "0.6935423", "0.6933095", "0.6921603", "0.68754566", "0.6873085", "0.6872553", "0.68659616", "0.68409646", "0.683643", "0.68356776", "0.68323505", "0.68267226", "0.6826442", "0.68207806", "0.68096054", "0.68069994", "0.68010914", "0.67919475", "0.6788215", "0.6777676", "0.6772722", "0.67701256", "0.6769549", "0.6763369", "0.67633665", "0.675685", "0.67517453", "0.6748194", "0.67431194", "0.6742657", "0.6731043", "0.6723118", "0.6722803", "0.6720926", "0.67197853", "0.67158365", "0.67090297", "0.67070276", "0.67070276", "0.6704475", "0.6700884", "0.6693007", "0.6688817", "0.66790587", "0.6678374", "0.6678374", "0.6675501", "0.66647655", "0.6663194", "0.66541094", "0.6653792", "0.6636461", "0.66308296", "0.66060966", "0.66026634", "0.65988207", "0.6591832", "0.65882725", "0.6566562", "0.65656596" ]
0.0
-1
Deletes the currend record from the database.
public function delete() { try { if($this->_state == self::STATE_UNCHANGED) { $sql = 'DELETE FROM ' . self::sanitize($this->_table->getProperty('name')) . ' WHERE ' . self::sanitize($this->_key_primary->name) . ' = ' . self::sanitize($this->_data[$this->_key_primary->name]); \Bedrock\Common\Logger::info('Deleting record with query: ' . $sql); echo $sql; $this->_connection->exec($sql); } elseif($this->_state == self::STATE_CHANGED) { throw new \Bedrock\Model\Record\Exception('Unsaved changes found, cannot delete record.'); } else { throw new \Bedrock\Model\Record\Exception('Record not found in database.'); } } catch(\PDOException $ex) { \Bedrock\Common\Logger::exception($ex); throw new \Bedrock\Model\Record\Exception('A database error was encountered, the record could not be deleted.'); } catch(\Exception $ex) { \Bedrock\Common\Logger::exception($ex); throw new \Bedrock\Model\Record\Exception('The record could not be deleted.'); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function delete()\n {\n $this->db->delete($this->table, $this->data['id'], $this->key);\n }", "public function deleteRecord()\n { \n $sql = \"DELETE FROM Cubans WHERE Id = :Id\";\n $statement = $this->connect->prepare($sql);\n $statement->bindValue(':Id', $this->id);\n $statement->execute();\n }", "public function delete() {\n global $DB;\n $DB->delete_records($this->get_table_name(), array('id' => $this->id));\n }", "public function delete() {\n\t\tif ($this->checkDependencies() == true ) {\n\t\t\t$sql = \"DELETE FROM \".$this->tablename.\" where \".$this->idcol.\" = \".$this->page->ctrl['record'];\n\t\t\t$this->dbc->exec($sql);\n\t\t}\n\t}", "public function delete()\n {\n self::deleteById( $this->db, $this->id, $this->prefix );\n\n if( $this->inTransaction )\n {\n //$this->db->commit();\n $this->inTransaction = false;\n }\n }", "public function delete(){\r\n\t\t$this->db->delete();\r\n\t}", "function delete() {\n $this->db->delete(self::table_name, array('id' => $this->id));\n }", "public function delete()\n {\n Db::getInstance()->delete($this->getTableName(), ['id' => $this->getId()]);\n }", "protected function delete() {\n $this->db->deleteRows($this->table_name, $this->filter);\n storeDbMsg($this->db);\n }", "public function delete() {\n $conexion = StorianDB::connectDB();\n $borrado = \"DELETE FROM cuento WHERE id=\\\"\".$this->id.\"\\\"\";\n $conexion->exec($borrado);\n }", "public function delete()\n\t{\n\t\tif ($this->data['id'])\n\t\t{\n\t\t\treturn $this->db->delete($this->table_name, array('id' => $this->data['id']));\n\t\t}\n\t}", "function delete()\n\t{\n\t\tSQL::query(\"delete from {$this->_table} where id = {$this->_data['id']}\");\n\t}", "public function delete() {\n global $db;\n $this->_predelete();\n $result = $db->query(\"DELETE FROM \".$this->table.\" WHERE \".$this->id_field.\"=?\", array($this->{$this->id_field}));\n $this->_postdelete($result);\n return $result;\n }", "public function delete(){\n if (isset($this->content[$this->idField])) {\n\n $sql = \"DELETE FROM {$this->table} WHERE {$this->idField} = {$this->content[$this->idField]};\";\n $delet = new \\AR\\BD\\Delete();\n $delet->ExeDelete($this->table, \"WHERE {$this->idField} = {$this->content[$this->idField]}\", \"\");\n \n }\n }", "public function delete()\n\t{\n\t\tDatabase::query(\"\n\t\t\tDELETE FROM\n\t\t\t\t\". $this->tableName .\"\n\t\t\tWHERE\n\t\t\t\tid = '\". $this->id .\"'\n\t\t\");\n\t}", "function delete_record () { //deletes a record\n\t\t\n\t\t//deletes record\n\t\t$pdo = Database::connect();\n\t\t$pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\n\t\t$sql = \"DELETE FROM customers WHERE id = ?\";\n\t\t$q = $pdo->prepare($sql);\n\t\t$q->execute(array($_GET['id']));\n\t\tDatabase::disconnect();\n\t\theader(\"Location: customer.php\");\n\t\t\t\n\t}", "public function delete() {\n\n\t\t// Database\n\t\t$db = $this->db;\n\n\t\t// SQL code for deletion\n\t\t$sql = $this->sql_for_delete();\n\n\t\t// Deletion execution\n\t\treturn $db::execute($sql);\n\t}", "public function delete() {\n\t\t$this->getConnection()->delete( $this );\n\t\t$this->clear();\n\t}", "function delete() {\n $this->db->delete(self::table_name, array('id' => $this->id));\n // need to delete from tag maps too\n // tbd\n }", "public final function delete() {\n\t\t$sql = \"\n\tDELETE FROM\n\t\t\" . $this->table . \"\n\tWHERE\n\t\t\" . $this->primaryField . \" = ?\n\t;\";\n\n\t\t$db = new MySQL();\n\t\t$statement = $db->prepare($sql);\n\t\t$status = $statement->execute(array($this->{$this->primaryField}));\n\t\t$statement = NULL;\n\n\t\treturn $status;\n\t}", "function delete() {\n \tglobal $mysql;\n \tif(empty($this->id)) return;\n \t$tablename = $this->class_name();\n \t$id = $this->id;\n \t$query = \"DELETE FROM $tablename WHERE id=$id\";\n \t$mysql->update($query);\n }", "public function delete()\n {\n $table = self::getTable();\n $connection = new DataBaseConnection();\n $parameters = ['id' => $this->id];\n return $connection->delete($table, $parameters);\n }", "public function delete()\n {\n $database = cbSQLConnect::adminConnect('object');\n if (isset($database))\n {\n return ($database->SQLDelete(self::$table_name, 'id', $this->id));\n }\n }", "function delete() {\n\t\t$sql = \"DELETE FROM cost_detail\n\t\t\t\tWHERE cd_fr_id=?, cd_seq=?\";\n\t\t$this->ffm->query($sql, array($this->cd_fr_id, $this->cd_seq));\n\t}", "public function delete()\r\n {\r\n $recordId = $this->getRecId();\r\n $command = static::getDb()->newDeleteCommand(static::$defaultLayout, $recordId);\r\n try {\r\n $command->execute();\r\n return 1;\r\n } catch (FileMakerException $e) {\r\n $this->addError('delete', $e->getMessage());\r\n return 0;\r\n }\r\n }", "public function delete() {\n // Fail due to double delete\n assert(!$this->hasBeenDeleted);\n\n // Initialize delete record cache, if nonextant\n if (!isset(self::$deleteRecordPreparedStatementCache)) {\n self::$deleteRecordPreparedStatementCache = array();\n }\n \n // Initiate implicit tx, if nonextant explicit tx \n $is_implicit_tx = false;\n if (self::$numTransactions == 0) {\n $is_implicit_tx = true; \n self::beginTx();\n }\n\n // Fail due to invalid database connection\n assert(isset(self::$databaseHandle));\n\n // Delete this record and all child records \n $table_name = static::getFullyQualifiedTableName();\n \n try {\n // Fetch prepared statement from cache, if present. Otherwise, create it.\n if (isset(self::$deleteRecordPreparedStatementCache[$table_name])) {\n // Fetch delete query from cache\n $delete_record_stmt = self::$deleteRecordPreparedStatementCache[$table_name];\n } else {\n $fully_qualified_table_name = static::getFullyQualifiedTableName();\n $delete_query = \"DELETE FROM {$fully_qualified_table_name} \"\n . $this->genPrimaryKeyWhereClause();\n\n $delete_record_stmt = self::$databaseHandle->prepare($delete_query);\n self::$deleteRecordPreparedStatementCache[$table_name] = $delete_record_stmt;\n }\n \n // Delete children, schedule assets for deletion\n $this->deleteChildren();\n self::$assetDeletors = array_merge(self::$assetDeletors, $this->getAssets());\n\n // Bind record's 'id' to delete-query\n $this->bindId($delete_record_stmt);\n\n // Remove record\n $delete_record_stmt->execute();\n } catch (PDOException $e) {\n self::$databaseHandle->rollback();\n die(\"\\nERROR: \" . $e->getMessage() . \"\\n\");\n }\n\n // Close implicit transaction\n if ($is_implicit_tx) {\n self::endTx();\n }\n\n // Indicate object's deletion\n $this->hasBeenDeleted = true;\n }", "private function delete(){\n\t\t$id = $this->objAccessCrud->getId();\n\t\tif (empty ( $id )) return;\n\t\t// Check if there are permission to execute delete command.\n\t\t$result = $this->clsAccessPermission->toDelete();\n\t\tif(!$result){\n\t\t\t$this->msg->setWarn(\"You don't have permission to delete!\");\n\t\t\treturn;\n\t\t}\n\t\tif(!$this->objAccessCrud->delete($id)){\n\t\t\t$this->msg->setError (\"There was an issue to delete, because this register has some relation with another one!\");\n\t\t\treturn;\n\t\t}\n\t\t// Cleaner all class values.\n\t\t$this->objAccessCrud->setAccessCrud(null);\n\t\t// Cleaner session primary key.\n\t\t$_SESSION['PK']['ACCESSCRUD'] = null;\n\n\t\t$this->msg->setSuccess (\"Delete the record with success!\");\n\t\treturn;\n\t}", "public function delete()\n {\n // If deposit is existing, will get database ID removed.\n $this->dbID = $this->db->deleteDeposit($this);\n }", "public function deleteData()\n {\n DB::table($this->dbTable)\n ->where($this->where)\n ->delete();\n }", "public function delete()\n {\n $this->execute(\n $this->syntax->deleteSyntax(get_object_vars($this))\n );\n }", "public function delete()\n\t{\n\t\tif( !isset($this->attributes[static::$primaryKey]) || $this->attributes[static::$primaryKey] <= 0 )\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\treturn DataBase::delete(\"DELETE FROM `\" . static::$table . \"` WHERE `\" . static::$primaryKey . \"` = ?\", $this->attributes[static::$primaryKey]);\n\t}", "public function delete() {\n\t\t$this->deleted = true;\n\t}", "public function delete() {\n\t\t\t$query = \"DELETE FROM $this->table_name WHERE id=?\";\n\n\t\t\t// prepare biatch\n\t\t\t$stmt = $this->conn->prepare($query);\n\n\t\t\t// bind id biatch\n\t\t\t$stmt->bindParam(1, $this->id);\n\n\t\t\t// execute query\n\t\t\tif ($stmt->execute()) {\n\t\t\t\treturn true;\n\t\t\t} else {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}", "public function deleteRecord()\n\t{\n\t\tif($this->user->hasRight($this->getHandler()->getDeleteRight()))\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\t$record = $this->getHandler()->getRecord();\n\t\t\t\t$record->import($this->getRequest());\n\n\t\t\t\t// check owner\n\t\t\t\tif(!$this->isOwner($record))\n\t\t\t\t{\n\t\t\t\t\tthrow new Exception('You are not the owner of the record');\n\t\t\t\t}\n\n\t\t\t\t// check captcha\n\t\t\t\t$this->handleCaptcha($record);\n\n\t\t\t\t// delete\n\t\t\t\t$this->getHandler()->delete($record);\n\n\n\t\t\t\t$msg = new Message('You have successful delete a ' . $record->getName(), true);\n\n\t\t\t\t$this->setResponse($msg);\n\t\t\t}\n\t\t\tcatch(\\Exception $e)\n\t\t\t{\n\t\t\t\t$msg = new Message($e->getMessage(), false);\n\n\t\t\t\t$this->setResponse($msg);\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$msg = new Message('Access not allowed', false);\n\n\t\t\t$this->setResponse($msg, null, $this->user->isAnonymous() ? 401 : 403);\n\t\t}\n\t}", "public function delete()\n\t{\n\t\t$sql = 'DELETE FROM ' . $this->sql_table . '\n\t\t\tWHERE ' . $this->sql_id_field . ' = ' . $this->{$this->sql_id_field};\n\t\t$this->db->sql_query($sql);\n\n\t\t// Unset the sql indentifier field\n\t\tunset($this->{$this->sql_id_field});\n\n\t\treturn $this->db->sql_affectedrows();\n\t}", "public function delete()\n {\n $class = strtolower(get_called_class());\n $table = self::$_table_name != null ? self::$_table_name : $class . 's';\n\n $pdo = PDOS::getInstance();\n\n $whereClause = '';\n foreach (static::$_primary_keys as $pk)\n $whereClause .= $pk . ' = :' . $pk . ' AND ';\n $whereClause = substr($whereClause, 0, -4);\n $sql = 'DELETE FROM ' . $table . ' WHERE ' . $whereClause;\n $query = $pdo->prepare($sql);\n $attributes = $this->getAttributes(new \\ReflectionClass($this));\n foreach ($attributes as $k => $v)\n {\n if (in_array($k, static::$_primary_keys))\n $query->bindValue(':' . $k, $v);\n }\n $query->execute();\n }", "public function delete() {\n\t\tif (!empty($this->originalData)) {\n\t\t\t$query = $this->connection->query(\"DELETE FROM {$this->table} WHERE \".self::$primaryKey[$this->table].\"='{$this->originalData[self::$primaryKey[$this->table]]}'\");\n\t\t\t$query = $this->connection->query(\"ALTER TABLE $this->table AUTO_INCREMENT = 1\");\n\t\t\t$this->originalData = array();\n\t\t}\t\n\t\telse \n\t\t\tthrow new Exception('You are trying to delete an inexistent row');\n\t}", "public function DeleteRecord()\n {\n // TODO: support delete multiple records\n // read the id array from the check box list _REQUEST['row_selections']\n global $g_BizSystem;\n $values = $g_BizSystem->GetClientProxy()->GetFormInputs('row_selections',false);\n if ($values)\n {\n foreach ($values as $id)\n {\n $recArray = $this->GetDataObj()->FetchById($id);\n $dataRec = new DataRecord($recArray, $this->GetDataObj());\n // take care of exception\n try {\n $dataRec->Delete();\n }\n catch (BDOException $e)\n {\n // call $this->ProcessBDOException($e);\n $this->ProcessBDOException($e);\n return;\n }\n }\n }\n else // delete current focused record\n {\n $rec = $this->GetActiveRecord();\n if (!$rec) return;\n global $g_BizSystem;\n //$recId = $this->m_ActiveRecord[\"Id\"];\n $ok = $this->GetDataObj()->DeleteRecord($rec);\n if (!$ok)\n return $this->ProcessDataObjError($ok);\n }\n $this->m_RecordId = null; // clean the current record id\n // TODO: adjust current page. if current page return no record, goto prev page\n \n return $this->ReRender();\n }", "function delete() {\n $fetchPrimary = $this->mysqlConnection->query(\"SHOW INDEX FROM \".$this->table);\n $arrayIndex = $fetchPrimary->fetch(PDO::FETCH_ASSOC);\n $kolomIndex = $arrayIndex['Column_name'];\n\n\t\t\t// Delete het huidige record.\n\n\t\t\t$deleteQuery = \"DELETE FROM \".$this->table.\" WHERE \".$kolomIndex.\" = \".$this->originalValues[$kolomIndex];\n\t\t\t$this->lastQuery = $deleteQuery;\n\n $deleteTable = $this->mysqlConnection->prepare($this->lastQuery);\n $deleteTable->execute();\n\n\t\t}", "public function delete()\n\t{\n\t \tif (!Validate::isTableOrIdentifier($this->identifier) OR !Validate::isTableOrIdentifier($this->table))\n\t \t\tdie(Tools::displayError());\n\n\t\t$this->clearCache();\n\n\t\t/* Database deletion */\n\t\t$result = Db::getInstance()->Execute('DELETE FROM `'.pSQL($this->table).'` WHERE `'.pSQL($this->identifier).'` = '.(int)($this->id));\n\t\tif (!$result)\n\t\t\treturn false;\n\t\t\n\t\treturn $result;\n\t}", "public function Delete()\n\t\t{\n\t\t\t$this->deleted = new DateTime();\n\t\t\t$this->deletedby = User::GetCurrentUser();\n\t\t\t\n\t\t\t$connection = DatabaseConnection::GetConnection(\"default\");\n\t\t\treturn DatabaseAccess::Delete($this);\n\t\t}", "public function delete(){\n\t\tglobal $db;\n\t\t$response = array('success' => false);\n\t\t$response['success']=$db->delete($this->table, \"id = $this->id\");\n\t return $response;\n\t}", "public function delete()\n {\n $this->repository->delete($this->id);\n }", "function delete() {\n $this->that->delete($this->id, $this->name);\n $this->put_id();\n }", "public function delete() {\r\n\r\n\t\ttry {\r\n\t\t\tglobal $ks_db;\r\n\t\t\tglobal $ks_log;\r\n\r\n\t\t\tif (! isset ( $this->id )) { \r\n\t\t\t\techo \"Fatal Error: Id is not set for the object! Please do \\$objA->setId(\\$id); in: \" . __METHOD__;\r\n\t\t\t\texit ();\r\n\t\t\t}\r\n\r\n\t\t\t//check if record exists\r\n\t\t\tif(! $this->exists ()) {\r\n\t\t\t\techo \"Fatal Error: No record found with id of ($this->id)\";\r\n\t\t\t\texit ();\r\n\t\t\t}\r\n\r\n\t\t\t$ks_db->beginTransaction ();\r\n\r\n\t\t\t$sql = \"DELETE FROM $this->sqlTable \";\r\n\t\t\t$sql .= \" WHERE lp_id = ?\";\r\n\r\n\t\t\t$ks_db->query ( $sql, $this->id );\r\n\r\n\t\t\t$ks_db->commit ();\r\n\r\n\t\t} catch(Exception $e) {\r\n\t\t\t$ks_db->rollBack ();\r\n\t\t\t$ks_log->info ( 'Fatal Error: ' . __CLASS__ . '::' . __METHOD__ . '. ' . $e->getMessage () );\r\n\t\t\t$ks_log->info ( '<br>SQL Statement: ' . $sql );\r\n\t\t\techo \"Fatal Error: \" . __CLASS__ . '::' . __METHOD__ . '. ' . $e->getMessage ();\r\n\t\t\techo \"SQL Statement: \" . $sql;\r\n\t\t}\r\n\t}", "public function delete()\n {\n $stmt = $this->_db->prepare(\"DELETE FROM score;\");\n $stmt->execute();\n }", "public function delete() {\n\t\t$dbh = App::getDatabase()->connect();\n\n\t\t$query = \"DELETE FROM \".$this->getTableName();\n\n\t\t$fl = true;\n\t\tforeach($this as $column => $val) {\n\t\t\tif(in_array($column, $this->getPrimaries())) {\n\t\t\t\t$query .= \"\\n\".(($fl) ? \"WHERE\" : \"AND\").\" \".$column.\" = '\".$val.\"'\";\n\t\t\t\t$fl = false;\n\t\t\t}\n\t\t}\n\n\t\t$res = $dbh->exec($query);\n\t\t$dbh = null;\n\t\treturn $res;\n\t}", "public function delete() {\r\n\r\n\t\ttry {\r\n\t\t\tglobal $ks_db;\r\n\t\t\tglobal $ks_log;\r\n\r\n\t\t\tif (! isset ( $this->id )) {\r\n\t\t\t\techo \"Fatal Error: Id is not set for the object! Please do \\$objA->setId(\\$dsh_id); in: \" . __METHOD__;\r\n\t\t\t\texit ();\r\n\t\t\t}\r\n\r\n\t\t\t//check if record exists\r\n\t\t\tif(! $this->exists ()) {\r\n\t\t\t\techo \"Fatal Error: No record found with primary key of ($this->id)\";\r\n\t\t\t\texit ();\r\n\t\t\t}\r\n\r\n\t\t\t$ks_db->beginTransaction ();\r\n\r\n\t\t\t$sql = \"DELETE FROM $this->sqlTable \";\r\n\t\t\t$sql .= \" WHERE dsh_id = ?\";\r\n\r\n\t\t\t$ks_db->query ( $sql, $this->id );\r\n\r\n\t\t\t$ks_db->commit ();\r\n\r\n\t\t} catch(Exception $e) {\r\n\t\t\t$ks_db->rollBack ();\r\n\t\t\t$ks_log->info ( 'Fatal Error: ' . __METHOD__ . '. ' . $e->getMessage () );\r\n\t\t\t$ks_log->info ( '<br>SQL Statement: ' . $sql );\r\n\t\t\techo \"Fatal Error: \" . __METHOD__ . '. ' . $e->getMessage ();\r\n\t\t\techo \"SQL Statement: \" . $sql;\r\n\t\t}\r\n\t}", "public function delete(){\n $db = Database::getInstance() ;\n $db->query(\"DELETE FROM canciones WHERE idcancion=:idcan ;\",\n [\":idcan\"=>$this->idcancion]) ;\t\t\t\t \n }", "public function remove()\n {\n database()->run('DELETE FROM ' . $this->table . ' WHERE ' . $this->primaryKey . ' = ?', [ $this->{$this->primaryKey} ]);\n $this->__destruct();\n }", "public function destroy() {\n\t\t$sql = 'DELETE FROM ' . static::$table . ' WHERE id = ' . $this->get('id') . ';';\n\t\t$query = DBH()->prepare($sql);\n\t\t$query->execute();\n\t}", "public function delete()\n {\n // TODO: Implement delete() method.\n }", "public function delete() {\r\n\t\t$this->getMapper()->delete($this);\r\n\t}", "function doRealDelete()\n {\n $this->assignSingle();\n /* Delete the record */\n DatabaseBean::dbDeleteById();\n }", "public function delete() {\n\n // Does the course object have an ID?\n if ( is_null( $this->courseId ) ) trigger_error ( \"Course::delete(): Attempt to delete course object that does not have its ID property set.\", E_USER_ERROR );\n\n // Delete the Student\n $conn = new PDO( DB_DSN, DB_USERNAME, DB_PASSWORD );\n $st = $conn->prepare ( \"DELETE FROM course WHERE courseId = :courseId LIMIT 1\" );\n $st->bindValue( \":courseId\", $this->courseId, PDO::PARAM_INT );\n $st->execute();\n $conn = null;\n }", "public function delete(){\n\t if(!isset($this->attributes['id'])) \n\t\t\tthrow new Exception(\"Cannot delete new objects\");\n\t\t$this->do_callback(\"before_delete\");\n\t\treturn self::do_query(\"DELETE FROM \".self::table_for(get_class($this)).\n\t\t \" WHERE id=\".self::make_value($this->attributes['id']));\t\n\t}", "public function delete() {\n // Create query\n $query = \"DELETE FROM \" . $this->table .\n \" WHERE MID = :mid AND Spot = :spot \";\n \n // Prepare the statement\n $stmt = $this->conn->prepare($query);\n\n // Clean the query\n $this->attr[\"mid\"] = htmlspecialchars(strip_tags($this->attr[\"mid\"]));\n $this->attr[\"spot\"] = htmlspecialchars(strip_tags($this->attr[\"spot\"]));\n\n // Bind the data\n $stmt->bindValue(\":mid\", $this->attr[\"mid\"]);\n $stmt->bindValue(\":spot\", $this->attr[\"spot\"]);\n \n // Execute the prepared statement and check for errors in running it\n return $this->runPrepStmtChkErr($stmt);\n }", "function delete( $id )\n\t{\n\t\t// where clause\n\t\t$this->db->where( $this->primary_key, $id );\n\n\t\t// delete the record\n\t\treturn $this->db->delete( $this->table_name );\n\t\t// print_r($this->db->last_query());die;\n \t}", "public function delete()\n {\n\n\n $myDataAccess = aDataAccess::getInstance();\n $myDataAccess->connectToDB();\n // I just made it cascade null when deleted ;)\n\n\n \t$recordsAffected = $myDataAccess->deletePage($this->m_Pageid);\n\n \treturn \"$recordsAffected row(s) affected!\";\n }", "public function delete() {\r\n\r\n $retVal = false;\r\n\r\n $table = static::getDbTable();\r\n $map = static::getDbMap();\r\n $primaryKey = static::getDbPrimaryKey();\r\n if ($this->$primaryKey) {\r\n $query = 'DELETE FROM `' . $table . '` WHERE `' . $map[$primaryKey] . '` = :id';\r\n $params = array( ':id' => $this->$primaryKey );\r\n $retVal = Db::Query($query, $params);\r\n }\r\n\r\n return $retVal;\r\n\r\n }", "function delete() {\n\t\t$sql = \"DELETE FROM clients WHERE client_id = $this->client_id\";\n\t\tif (! db_exec ( $sql )) {\n\t\t\treturn db_error ();\n\t\t} else\n\t\t\t$this->_action = 'deleted';\n\n\t\treturn NULL;\n\t}", "public function delete()\n\t{\n\t\t$this->hard_delete();\n\t}", "public function delete(){\n global $db;\n $delete = $db->prepare('DELETE FROM posts WHERE id = :id');\n $delete->bindValue(':id', $this->_id, PDO::PARAM_INT);\n $delete->execute();\n }", "public function deleteRecord ($id);", "public final function delete() {\n }", "public function delete(){\n global $database;\n \n //$sql = \"DELETE FROM users \";\n $sql = \"DELETE FROM \" .static::$db_table . \" \"; // space is for where // Change self to late static binding\n $sql .=\"WHERE id =\" . $database->escape_string($this->id);\n $sql .= \" LIMIT 1\";\n \n // Send the query to a databse using iternally instead of if\n $database->query($sql);\n return (mysqli_affected_rows($database->connection) ==1) ? true : false;\n }", "function delete() {\n\t \t$sql = \"DELETE FROM evs_database.evs_identification\n\t \t\t\tWHERE idf_id=?\";\n\t \t$this->db->query($sql, array($this->idf_id));\n\t\t\n\t }", "function doRealDelete()\n {\n /* Delete the record */\n DatabaseBean::dbDeleteById();\n }", "public function DELETE() {\n #\n }", "public function delete()\n {\n try {\n parent::delete(null, $this->data['id']);\n } catch (Exception $e) {\n die('ERROR');\n }\n }", "public function delete(){\n\t\t$db = new Database();\n\t\t$sql = \"DELETE FROM reports WHERE id=?\";\n\t\t$sql = $db->prepareQuery($sql, $this->id);\n\t\t$db->query($sql);\n\t}", "public function delete() \n\t{\n\t\tif ($this->id) {\n\t\t\t$this->query->fields(\"id\")->compareTo($this->id);\n\t\t\treturn $this->query->delete();\n\t\t}\n\t\t\n\t\treturn false;\n\t}", "public function delete( ) {\n\t $query = \"DELETE FROM stat WHERE id=?\";\n\t return $this->db->execute( $query, array($this->id) ); \t\n\t }", "function dbdelete(){\n\t\tif($this->id){\n\t\t\t$query = \"DELETE FROM \".$this->tablename.\" WHERE id='\".$this->id.\"' LIMIT 1\";\n\t\t\tif(mysql_query($query)){\n\t\t\t\treturn $this->ondelete();\n\t\t\t}else{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}else{\n\t\t\treturn false;\n\t\t}\n\t}", "public function delete()\n {\n persistableCollection::getInstance($this->resourceName)->deleteObject($this);\n }", "public function delete(){\n\n $query = 'DELETE FROM ' . $this->table . ' WHERE id=:id';\n $stmt = $this->conn->prepare($query);\n $this->id = htmlspecialchars(strip_tags($this->id));\n $stmt->bindParam(':id', $this->id);\n if($stmt->execute()){\n return true;\n }\n else{\n printf(\"Error: %s.\\n\", $stmt->error);\n return false;\n }\n }", "function DEL()\n{\n\tif ($this->isError()) return;\n\n\t$id_new = $this->id_new;\n\n\t$sql = \" DELETE FROM \".$GLOBALS['prefix'].\"new\n\t\t\t\tWHERE id_new = $id_new\";\n\n\tif (!Sql_exec($sql)) $this->setError(ERROR);\n\tif (!$this->isError()) Lib_sqlLog($sql);\n\n\treturn;\n}", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete(){\n try {\n // delete contact query\n $this->_query = \"DELETE FROM \" . $this->_dbtable . \" WHERE id = :id\";\n\n // preparing statement\n $statement = $this->_conn->prepare($this->_query);\n\n //binding params\n $statement->bindParam(':id', $this->_id, PDO::PARAM_INT);\n\n // executing statement\n $statement->execute();\n\n // count affected rows\n $deletedrow = $statement->rowCount();\n\n // check if a row has been affected\n if($deletedrow == 1 ) {\n return true;\n }\n return false;\n }\n\n catch(PDOException $ex){\n echo \"Error\" . $ex->getMessage();\n }\n }", "public function delete(){\n return (new Database('cliente'))->delete('id = '.$this->id);\n }", "public function delete()\r\n {\r\n $db = Database::getDatabase();\r\n $db->consulta(\"DELETE FROM puesto WHERE idPue = {$this->idPue};\");\r\n }", "public function delete(){\n global $wpdb;\n $table_name = $wpdb->prefix.static::$_table;\n return $wpdb->delete($table_name,[$this->getPk()=>$this->getPkValue()]);\n }", "public function delete()\n{//delete\n $sql = \"DELETE FROM pefs_database.pef_assessor WHERE ase_id = ?\";\n $this->db->query($sql,array($this->ase_id)); \n}", "function delete(){\n\t\t\t\t$servername = \"localhost\";\n\t\t\t\t$username = \"root\";\n\t\t\t\t$password = \"\";\n\t\t\t\t$dbname = \"CS230\";\n\t\t\t\t//Variables for holding entity data\n\t\t\t\t$i = $_POST['i'];\n\t\t\t\t$conn = mysqli_connect($servername, $username, $password, $dbname);\n\t\t\t\tif($conn){\n\t\t\t\t//echo \"Connection OK\";\n\t\t\t\t}else{\n\t\t\t\t\tdie(\"The Connection has failed: \" .mysqli_connect_error());\n\t\t\t\t}\n\t\t\t\t$sql = \"DELETE FROM eBook_MetaData WHERE id='$i'\";\n\t\t\t\t$data = mysqli_query($conn,$sql);\n\t\t\t\t\t//If data is not transfered to the database\n\t\t\t\t\tif(!$data){\n\t\t\t\t\techo \"error\";\n\t\t\t\t\t//If it is transfered\n\t\t\t\t\t}else{\n\t\t\t\t\t\techo \"Data deleted\";\n\t\t\t\t\t}\n\t\t\t\t$conn = null;\n\t\t\t\t}", "public function delete()\n {\n return $this->connection->delete($this->grammar->compileDelete($this));\n }", "public function delete() \n {\n // Create query\n $query = 'DELETE FROM ' . $this->table . ' WHERE id = :id';\n \n // Prepare Statement\n $stmt = $this->conn->prepare($query);\n \n // clean data\n $this->id = htmlspecialchars(strip_tags($this->id));\n \n // Bind Data\n $stmt-> bindParam(':id', $this->id);\n \n // Execute query\n if($stmt->execute()) {\n return true;\n }\n\n // Print error if something goes wrong\n printf(\"Error: %s.\\n\", $stmt->error);\n return false;\n }" ]
[ "0.8168428", "0.8145783", "0.80319536", "0.793548", "0.78456676", "0.7622636", "0.7591121", "0.7575263", "0.7565498", "0.75540364", "0.7549208", "0.7520511", "0.7479459", "0.74034417", "0.7360377", "0.733034", "0.7327702", "0.73206764", "0.7295561", "0.72723556", "0.72555", "0.72464955", "0.72238916", "0.72235745", "0.71999395", "0.71985745", "0.71984637", "0.7158807", "0.7115099", "0.7075228", "0.7061621", "0.7059722", "0.70490503", "0.7046896", "0.70348924", "0.702854", "0.7028225", "0.70225364", "0.70148546", "0.6990148", "0.69633466", "0.6958606", "0.69518733", "0.6945931", "0.6943289", "0.6939715", "0.69371355", "0.6933278", "0.6929214", "0.69151515", "0.69122106", "0.69109553", "0.69027203", "0.6902443", "0.68997616", "0.689906", "0.68887675", "0.68850106", "0.6880455", "0.68763757", "0.68692654", "0.6849718", "0.6846119", "0.6842788", "0.68412644", "0.68202543", "0.68117005", "0.6782547", "0.6780868", "0.6780467", "0.67761934", "0.67749447", "0.6770782", "0.6769735", "0.6764903", "0.6760729", "0.6758549", "0.6752651", "0.6752651", "0.6752651", "0.6752651", "0.6752651", "0.6752651", "0.6752651", "0.6752651", "0.6752651", "0.6752651", "0.6752651", "0.6752651", "0.6752651", "0.6752651", "0.6752651", "0.6750725", "0.674726", "0.674435", "0.67434156", "0.67387134", "0.6736525", "0.6730912", "0.6724149" ]
0.8091174
2
Associates the specified record with the current Record object.
public function associate($record) { try { \Bedrock\Model\Query::associate($this, $record); } catch(\Exception $ex) { \Bedrock\Common\Logger::exception($ex); throw new \Bedrock\Model\Record\Exception('The record could not be associated.'); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setRecord($record){\n $this->record = $record;\n }", "function add($record)\n\t{\n\t\t// convert object from associative array, if needed\n\t\t$record = (is_array($record)) ? (object) $record : $record;\n\n\t\t// update the DB table appropriately\n\t\t$key = $record->{$this->_keyfield};\n\t\t$this->_data[$key] = $record;\n\n\t\t$this->store();\n\t}", "public final function _addInstance(AutoRecord $record)\n {\n $this->_recordInstances[$record->getTableName()][$record->getPrimaryKeyValue()] = $record;\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 }", "public function add(Record $record)\n {\n $this->list[] = $record;\n }", "function update($record)\n\t{\n\t\t// convert object from associative array, if needed\n\t\t$record = (is_array($record)) ? (object) $record : $record;\n\t\t// update the collection appropriately\n\t\t$key = $record->{$this->_keyfield};\n\t\tif (isset($this->_data[$key]))\n\t\t{\n\t\t\t$this->_data[$key] = $record;\n\t\t\t$this->store();\n\t\t}\n\t}", "abstract public function setRecordEntity();", "abstract protected function map_object_to_record($object, $record);", "public function setRecord($record)\n {\n $this->_param['record'] = (int)$record;\n return $this;\n }", "function set_current_record($recordVar, Omeka_Record_AbstractRecord $record, $setPreviousRecord = false)\n{\n get_view()->setCurrentRecord($recordVar, $record, $setPreviousRecord);\n}", "public function addChild(Doctrine_Record $record);", "private function add_provider_name_to_record( &$record, $provider_name ) {\n\n\t\tif ( isset( $record['post_id'] ) ) {\n\t\t\t$record['post_id'] = $provider_name . ':' . $record['post_id'];\n\t\t}\n\t\tif ( isset( $record['category_id'] ) ) {\n\t\t\t$record['category_id'] = $provider_name . ':' . $record['category_id'];\n\n\t\t}\n\t}", "private function __construct($record) {\n $this->record = $record;\n }", "public function __construct($record)\n {\n $this->record = $record;\n }", "public function update($record);", "public function modifyRecord($record)\n {\n return $record;\n }", "public function pushRecord()\r\n {\r\n\r\n }", "public function setIdentifier($record){\n\t\t$record->writeAttribute($this->_identityColumn, $this->generateUUID());\n\t}", "function lr_set($pid, $record) {\n list($ns, $x) = explode(':', $pid);\n list($rec, $sort) = explode('.', $x);\n $db = lr_connect( );\n $table = lr_make_table($db, $ns);\n $sql = \"INSERT INTO ?n SET rec=?i, sort=?i, text=?s ON DUPLICATE KEY UPDATE text=?s\";\n $db->query($sql, $table, $rec, $sort, $record, $record);\n}", "private function crud_put($record = null)\n {\n $key = $record['id'];\n // Make sure the new record has an ID\n if (!isset($key))\n {\n $this->response(array('error' => 'Update: No item specified'), 406);\n return;\n }\n // make sure the item is real\n if (!$this->supplies->exists($key))\n {\n $this->response(array('error' => 'Update: Item ' . $key . ' not found'), 406);\n return;\n }\n // proceed with update\n $this->supplies->update($record);\n // check for DB errors\n $oops = $this->db->error();\n if (empty($oops['code']))\n $this->response(array('ok'), 200);\n else\n $this->response($oops, 400);\n }", "public function setPutData(Omeka_Record_AbstractRecord $record, $data)\r\n {\r\n // Set properties directly to an existing record.\r\n }", "public function addRecord()\n {\n $rec = new Record($this, true);\n $rec->markForInsert();\n $this->records[] = $rec;\n return $rec;\n }", "public function associate($entity)\n {\n // The Mapper will retrieve this association within the object model, we won't be using\n // the foreign key attribute inside the parent Entity.\n //\n //$this->parent->setEntityAttribute($this->foreignKey, $entity->getEntityAttribute($this->otherKey));\n //\n // Instead, we'll just add the object to the Entity's attribute\n\n $this->parent->setEntityAttribute($this->relation, $entity->getEntityObject());\n }", "public function addRecord($pObject) {\r\n $this->records[] = $pObject;\r\n }", "public static function populate($record) {\n\t\t\n\t\tif(empty($record)) {\n\t\t\treturn $record;\n\t\t}\n\n\t\t$catId = $record->getCatId();\n\t\t$tmdbId = $record->getTmdbId();\n\t\t$imdbId = $record->getImdbId();\n\t\t$title = $record->getTitle();\n\n\t\tif(empty($catId)) {\n\t\t\treturn $record;\n\t\t}\n\n\t\tif(empty($tmdbId)) {\n\t\t\tif(!empty($imdbId)) {\n\t\t\t\t$tmdbId = Lookup::getTmdbIdUsingImdbId($imdbId);\n\t\t\t\t$record->setTmdbId($tmdbId);\n\t\t\t} else {\n\t\t\t\t$tmdbId = Lookup::getTmdbId($catId, $title);\n\t\t\t\t$record->setTmdbId($tmdbId);\n\t\t\t}\n\t\t}\n\n\t\tif(empty($imdbId)) {\n\t\t\t$imdbId = Lookup::getImdbId($tmdbId);\n\t\t\t$record->setImdbId($imdbId);\n\t\t}\n\t\t\n\t\treturn $record;\n\n\t}", "abstract public function insertRecord($tableName, $record);", "function editRecord($rec)\r\n\t\t{\r\n\t\t\t// Create associative array of key fields and data values\r\n\t\t\t$data = array(\"idMedicalRecord\"=>$rec[0],\"medicalRec_weight\"=>$rec[1],\"medicalRec_height\"=>$rec[2],\"medicalRec_bloodPressure\"=>$rec[3],\"medicalRec_temperature\"=>$rec[4],\"medicalRec_bloodIronLevel\"=>$rec[5],\"medicalRec_time\"=>$rec[6],\"medicalRec_date\"=>$rec[7],\"medicalRec_medicalHistory\"=>$rec[8],\"medicalRec_rejectionReason\"=>$rec[9]);\r\n\t\t\t// Bind values to object's attributes\r\n\t\t\t$this->bind($data);\r\n\t\t\t// Add new updated values to table in database to location of given Primary key\r\n\t\t\t$this->update($rec[0]);\r\n\t\t}", "public function setInfo($recordKey, &$recordData) {\n return $this->m->set($recordKey, $recordData, 3600 * 24);\n }", "function dbase_add_record($dbase_identifier, $record)\n{\n}", "private function crud_post($record = null) {\n $key = $record['id'];\n\n if (!isset($key)) {\n $this->response(array('error' => 'Create: No supply specified'), 406);\n return;\n }\n\n if ($this->supplies->exists($key)) {\n $this->response(array('error' => 'Create: Supply ' . $key . ' already exists'), 406);\n return;\n }\n\n $this->supplies->add($record);\n\n $oops = $this->db->error();\n if (empty($oops['code']))\n $this->response(array('ok'), 200);\n else\n $this->response($oops, 400);\n }", "public function init(BaseModule\\Record $record): void\n\t{\n\t\t$this->appId = $record->controller->app['id'];\n\t\t$this->record = $record->recordModel;\n\t}", "public function show(Record $record)\n {\n return $record;\n }", "public function setParent($record)\n {\n $this->parent = $record;\n }", "public function iSaveRecordDetails()\n {\n preg_match('/UQ:(\\d+)/', $this->getSession()->getCurrentUrl(), $pid);\n $data = new Fez_Record_Searchkey($pid[0]);\n $this->_tempRecordStore = $data->getSekData();\n return;\n }", "abstract protected function map_reford_to_object( $record );", "public function SetLastRecord($record){$this->_lastrecord = $record;}", "public function setPutData(Omeka_Record_AbstractRecord $record, $data)\n {\n if ($data->needs_delete) {\n // Don't care about setting anything else as this will be deleted on the next after_save_record hook\n $record->needs_delete = $data->needs_delete;\n } elseif ($data->viewer_settings) {\n $record->viewer_settings = json_encode($data->viewer_settings);\n } else {\n // Set properties directly to an existing record.\n if ($data->three_file_id) {\n $current = get_record_by_id('File', $record->three_file_id);\n $record->three_file_id = $data->three_file_id;\n }\n $record->three_thumbnail_id = $data->three_thumbnail_id;\n $record->item_id = $data->item_id;\n $record->skybox_id = $data->skybox_id;\n $record->enable_lights = $data->enable_lights;\n $record->enable_materials = $data->enable_materials;\n $record->enable_shaders = $data->enable_shaders;\n $record->enable_measurement = $data->enable_measurement;\n $record->model_units = $data->model_units;\n $record->needs_delete = $data->needs_delete;\n }\n }", "public function setPutData(Omeka_Record_AbstractRecord $record, $data)\n {\n $this->setPostData($record, $data);\n }", "public function insertRecord()\n\t{\n\t\tif($this->user->hasRight($this->getHandler()->getAddRight()))\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\t$record = $this->getHandler()->getRecord();\n\t\t\t\t$record->import($this->getRequest());\n\n\t\t\t\t// check captcha\n\t\t\t\t$this->handleCaptcha($record);\n\n\t\t\t\t// insert\n\t\t\t\t$this->getHandler()->create($record);\n\n\n\t\t\t\t$msg = new Message('You have successful create a ' . $record->getName(), true);\n\n\t\t\t\t$this->setResponse($msg);\n\t\t\t}\n\t\t\tcatch(\\Exception $e)\n\t\t\t{\n\t\t\t\t$msg = new Message($e->getMessage(), false);\n\n\t\t\t\t$this->setResponse($msg);\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$msg = new Message('Access not allowed', false);\n\n\t\t\t$this->setResponse($msg, null, $this->user->isAnonymous() ? 401 : 403);\n\t\t}\n\t}", "public function record(): BelongsTo\n {\n return $this->belongsTo(Record::class);\n }", "public function setPostData(Omeka_Record_AbstractRecord $record, $data)\r\n {\r\n // Set properties directly to a new record.\r\n }", "public function for(stdClass $record);", "public function recInsert($record) {\n $conn = Query::connect();\n $col = $conn->SelectLimit(\"select*from \".static::getTable(),1);\n $sql = $conn->GetInsertSQL($col,$record);\n $rs = $conn->Execute($sql);\n return $conn->ErrorNo();\n }", "public function add($record, $key = NULL)\n\t{\n\t\tprint $key . ' ' . $record;\n\t\tforeach ($this->_data as $val) {\n\t\t\tif ($val === $record) {\n\t\t\t\treturn FALSE;\n\t\t\t}\n\t\t}\n\t\tif (isset ($key)) {\n\t\t\tif (isset ($this->_data [$key])) {\n\t\t\t\treturn FALSE;\n\t\t\t}\n\t\t\t$this->_data [$key] = $record;\n\n\t\t\treturn TRUE;\n\t\t}\n\t\t$this->_data [] = $record;\n\n\t\treturn TRUE;\n\t}", "public function record()\n {\n SearchDomainManager::recordDomainConfig($this);\n $dbDomain = new SearchDomainDatabase($this->name);\n $dbDomain->initialize();\n }", "public function insert(&$key, $record, $flags = 0) {\n return UPS_SUCCESS;\n }", "public static function to($record) {\n return new Link($record);\n }", "public function setPostData(Omeka_Record_AbstractRecord $record, $data)\n {\n if (isset($data->item->id)) {\n $record->item_id = $data->item->id;\n }\n \n if (isset($data->point_of_interest)) {\n $record->point_of_interest = $data->point_of_interest;\n }\n if (isset($data->route)) {\n $record->route = $data->route;\n }\n if (isset($data->street_number)) {\n $record->street_number = $data->street_number;\n }\n if (isset($data->postal_code)) {\n $record->postal_code = $data->postal_code;\n }\n if (isset($data->postal_code_prefix)) {\n $record->postal_code_prefix = $data->postal_code_prefix;\n }\n if (isset($data->sublocality)) {\n $record->sublocality = $data->sublocality;\n }\n if (isset($data->locality)) {\n $record->locality = $data->locality;\n }\n if (isset($data->natural_feature)) {\n $record->natural_feature = $data->natural_feature;\n }\n if (isset($data->establishment)) {\n $record->establishment = $data->establishment;\n }\n if (isset($data->point_of_interest)) {\n $record->point_of_interest = $data->point_of_interest;\n }\n if (isset($data->administrative_area_level_3)) {\n $record->administrative_area_level_3 = $data->administrative_area_level_3;\n }\n if (isset($data->administrative_area_level_2)) {\n $record->administrative_area_level_2 = $data->administrative_area_level_2;\n }\n if (isset($data->administrative_area_level_1)) {\n $record->administrative_area_level_1 = $data->administrative_area_level_1;\n }\n if (isset($data->country)) {\n $record->country = $data->country;\n }\n if (isset($data->continent)) {\n $record->continent = $data->continent;\n }\n if (isset($data->planetary_body)) {\n $record->planetary_body = $data->planetary_body;\n }\n \n if (isset($data->latitude)) {\n $record->latitude = $data->latitude;\n }\n if (isset($data->longitude)) {\n $record->longitude = $data->longitude;\n }\n if (isset($data->zoom_level)) {\n $record->zoom_level = $data->zoom_level;\n }\n if (isset($data->map_type)) {\n $record->map_type = $data->map_type;\n } else {\n $record->map_type = '';\n }\n if (isset($data->address)) {\n $record->address = $data->address;\n } else {\n $record->address = '';\n }\n }", "public function setPutData(Omeka_Record_AbstractRecord $record, $data)\n {\n if (isset($data->point_of_interest)) {\n $record->point_of_interest = $data->point_of_interest;\n }\n if (isset($data->route)) {\n $record->route = $data->route;\n }\n if (isset($data->street_number)) {\n $record->street_number = $data->street_number;\n }\n if (isset($data->postal_code)) {\n $record->postal_code = $data->postal_code;\n }\n if (isset($data->postal_code_prefix)) {\n $record->postal_code_prefix = $data->postal_code_prefix;\n }\n if (isset($data->sublocality)) {\n $record->sublocality = $data->sublocality;\n }\n if (isset($data->locality)) {\n $record->locality = $data->locality;\n }\n if (isset($data->natural_feature)) {\n $record->natural_feature = $data->natural_feature;\n }\n if (isset($data->establishment)) {\n $record->establishment = $data->establishment;\n }\n if (isset($data->point_of_interest)) {\n $record->point_of_interest = $data->point_of_interest;\n }\n if (isset($data->administrative_area_level_3)) {\n $record->administrative_area_level_3 = $data->administrative_area_level_3;\n }\n if (isset($data->administrative_area_level_2)) {\n $record->administrative_area_level_2 = $data->administrative_area_level_2;\n }\n if (isset($data->administrative_area_level_1)) {\n $record->administrative_area_level_1 = $data->administrative_area_level_1;\n }\n if (isset($data->country)) {\n $record->country = $data->country;\n }\n if (isset($data->continent)) {\n $record->continent = $data->continent;\n }\n if (isset($data->planetary_body)) {\n $record->planetary_body = $data->planetary_body;\n }\n\n if (isset($data->latitude)) {\n $record->latitude = $data->latitude;\n }\n if (isset($data->longitude)) {\n $record->longitude = $data->longitude;\n }\n if (isset($data->zoom_level)) {\n $record->zoom_level = $data->zoom_level;\n }\n if (isset($data->map_type)) {\n $record->map_type = $data->map_type;\n } else {\n $record->map_type = '';\n }\n if (isset($data->location_type)) {\n $record->location_type = $data->location_type;\n } else {\n $record->location_type = '';\n }\n \n if (isset($data->address)) {\n $record->address = $data->address;\n } else {\n $record->address = '';\n }\n }", "function onNewRecord($record, $oldRecord);", "protected function storeRecordInSession(&$record)\n {\n Tools::atkdebug('STORING RECORD IN SESSION');\n $result = SessionStore::getInstance()->addDataRow($record, $this->m_node->primaryKeyField());\n\n return $result !== false;\n }", "public function edit(Record $record)\n {\n //\n }", "public function update(Tinebase_Record_Interface $_record) {\n }", "function add($record)\n {\n $data = get_object_vars($record);\n $this->rest->initialize(array('server' => REST_SERVER));\n $this->rest->option(CURLOPT_PORT, REST_PORT);\n $retrieved = $this->rest->post('recipe/maintenance/item/id/' . $record->menu_id.'-'.$record->inventory_id, $data);\n }", "public function record(){\n return $this->belongsTo('App\\Record');\n }", "function add( $obj )\r\n\t{\r\n\t\tif ( $this->signUseID == true) {\r\n\t\t\t$pos = $obj->primary_key_value();\r\n\t\t\t$this->data[ $pos ] = $obj;\r\n\t\t}\r\n\t\telse {\r\n\t\t\t$this->data[] = $obj;\r\n\t\t}\r\n\t}", "function setRecords($records) {\n\t\tif (is_null($records)) return;\n\t\t$this->records = $records;\n\t}", "public function setPostData(Omeka_Record_AbstractRecord $record, $data)\n {\n // Set properties directly to a new record.\n $record->item_id = $data->item_id;\n $record->three_file_id = $data->three_file_id;\n $record->three_thumbnail_id = $data->three_thumbnail_id;\n $record->skybox_id = $data->skybox_id;\n $record->enable_lights = $data->enable_lights;\n $record->enable_materials = $data->enable_materials;\n $record->enable_shaders = $data->enable_shaders;\n $record->enable_measurement = $data->enable_measurement;\n $record->model_units = $data->model_units;\n $record->needs_delete = $data->needs_delete;\n }", "public function update(Request $request, Record $record)\n {\n //\n }", "function addNew($rec)\r\n\t\t{\r\n\t\t\t// Create associative array of key fields and data values\r\n\t\t\t$data = array(\"idMedicalRecord\"=>$rec[0],\"medicalRec_weight\"=>$rec[1],\"medicalRec_height\"=>$rec[2],\"medicalRec_bloodPressure\"=>$rec[3],\"medicalRec_temperature\"=>$rec[4],\"medicalRec_bloodIronLevel\"=>$rec[5],\"medicalRec_time\"=>$rec[6],\"medicalRec_date\"=>$rec[7],\"medicalRec_medicalHistory\"=>$rec[8],\"medicalRec_rejectionReason\"=>$rec[9]);\r\n\t\t\t// Bind values to object's attributes\r\n\t\t\t$this->bind($data);\r\n\t\t\t// Add new values to table in database\r\n\t\t\t$this->insert();\r\n\t\t}", "public function record()\n {\n return $this->belongsTo(\\App\\Model\\Record\\Record::class);\n }", "public function __construct($record = null)\n {\n $this->init($record);\n }", "public function setHeader( FileHeader $record ) {\n\t\t$this->header = $record;\n\t}", "public function setRecords($records)\n {\n $this->records = $records;\n }", "protected function storeAliasRecordInResut(&$result, AliasRecord $aliasRecord)\n {\n if (!$aliasRecord) {\n return;\n }\n $key = $aliasRecord->name();\n if (empty($key)) {\n $result[] = $aliasRecord;\n return;\n }\n $result[$key] = $aliasRecord;\n }", "private function saveRecord(Application $app, $record, $api_key)\n {\n // Build Insert or Update Query\n $insert = false;\n if (isset($record['id'])) {\n $sql = 'UPDATE records SET label = :label, num_value = :num_value, category = :category, active = :active, date_value = :date_value, comment = :comment WHERE id = :id AND api_key = :api_key';\n } else {\n $sql = 'INSERT INTO records (api_key, label, num_value, category, active, date_value, comment) VALUES (:api_key, :label, :num_value, :category, :active, :date_value, :comment)';\n $insert = true;\n // Remove key to prevent errors with extra keys for parameterized query\n if (array_key_exists('id', $record)) {\n unset($record['id']);\n }\n }\n\n // Save Record\n $record['api_key'] = $api_key;\n $rows_affected = $app->entryFormDb->execute($sql, $record);\n return $rows_affected;\n }", "protected function Save($record)\n\t\t{\n\t\t\t$string = implode(';', $record);\n\t\t\tfputs($this->handle, $string, strlen($string));\n\t\t}", "public static function populateRecord($record, $row)\n {\n $columns = array_flip($record->attributes());\n foreach ($row as $name => $type_value) {\n $value=current($type_value);\n if (isset($columns[$name])) {\n $record->setAttribute($name, $value);\n $record->setOldAttribute($name,$value);\n } elseif ($record->canSetProperty($name)) {\n $record->$name = $value;\n }\n }\n\n\n }", "public function __construct($record = null) {\n parent::__construct($record);\n }", "protected function _afterStore($record, & $data)\n\t{\n\t\tparent::_afterStore($record, $data);\n\n\t\t// Assign (a) chosen types to custom field or (b) all types if field is core\n\t\t$types = ! empty($data['tid'])\n\t\t\t? $data['tid']\n\t\t\t: array();\n\n\t\t$this->_assignTypesToField($types);\n\t}", "public function updateRecord() \n {\n $str = \"Id = :Id\";\n array_walk($this->arrayKeysValues(), function ($value, $key) use (&$str) {\n $str .= \", $key = :$key\";\n });\n $sql = sprintf(\"UPDATE Cubans SET %s WHERE Id = :Id\", $str);\n $statement = $this->connect->prepare($sql);\n $statement->execute(array_merge([\":Id\" => $this->id], $this->arrayKeysValues()));\n }", "public function record($value) : void;", "public static function process(RegistryObject $record)\n {\n }", "public function insertAsParentOf(Doctrine_Record $dest);", "protected function _afterLoad($record)\n\t{\n\t\tparent::_afterLoad($record);\n\n\t\t// Record was not found / not created, nothing to do\n\t\tif (!$record)\n\t\t{\n\t\t\treturn;\n\t\t}\n\n\t\t// Convert field positions to an array\n\t\tif (!is_array($record->positions))\n\t\t{\n\t\t\t$record->positions = explode(\"\\n\", $record->positions);\n\t\t}\n\n\t\t// Load type assigments (an array of type IDs)\n\t\t$record->tid = $this->getFieldType($record->id);\n\t}", "private function set_record($br, $data) {\n $br->setTitle($data['title']);\n $br->setFirstname($data['firstname']);\n $br->setLastname($data['lastname']);\n $br->setEmail($data['email']);\n $br->setAddress1($data['address1']);\n $br->setAddress2($data['address2']);\n $br->setCity($data['city']);\n $br->setPostcode($data['postcode']);\n $br->setCounty($data['county']);\n $br->setCountry('GB');\n $br->setPhone($data['phone']);\n $br->setEinfo($data['einfo']);\n }", "public function __invoke(array $record)\n {\n if (isset($_SESSION['user'])) {\n $record['extra']['username'] = $_SESSION['user']->getUsername();\n } else {\n $record['extra']['username'] = 'anonymous';\n }\n return $record;\n }", "public function store($record, $filename)\n {\n try {\n $client = $this->createLocalStorageDriver();\n\n if ( ! $client->exists(\"$filename.json\")) {\n $client->put(\"$filename.json\", json_encode($record));\n } else {\n $client->append(\"$filename.json\", json_encode($record));\n }\n }\n catch (Exception $e) {\n throw $e;\n }\n }", "public function setPostData(Omeka_Record_AbstractRecord $record, $data)\n {\n if (isset($data->item_type->id)) {\n $record->item_type_id = $data->item_type->id;\n }\n if (isset($data->collection->id)) {\n $record->collection_id = $data->collection->id;\n }\n if (isset($data->public)) {\n $record->public = $data->public;\n }\n if (isset($data->featured)) {\n $record->featured = $data->featured;\n }\n $this->setTagData($record, $data);\n $this->setElementTextData($record, $data);\n }", "function saveToRecord() {\n\t\t$fields_values = $this->toArray();\n\t\t$fields_values['tstamp'] = mktime();\n\t\t$fields_values['crdate'] = mktime();\n\t\tunset($fields_values['uid']);\n\t\t\n\t\t// If we have a non-zero UID, update an existing record, otherwise create a new record\n\t\tif($this->getUID()) {\n\t\t\t$GLOBALS['TYPO3_DB']->exec_UPDATEquery('tx_wecassessment_result', 'uid=' . $this->getUID(), $fields_values);\n\t\t} else {\n\t\t\t$GLOBALS['TYPO3_DB']->exec_INSERTquery('tx_wecassessment_result', $fields_values);\n\t\t\t$this->setUID($GLOBALS['TYPO3_DB']->sql_insert_id());\t\t\t\n\t\t}\n\t\t\n\t\t$answers = $this->getAnswers();\n\t\tforeach((array) $answers as $answer) {\n\t\t\t$answer->setResultUID($this->getUID());\n\t\t\t$answer->save();\n\t\t}\n\t\t\n\t\t// Blow up session data\n\t\ttx_wecassessment_sessiondata::storeSessionData(null, $this->getPID());\n\t\t\n\t\treturn $this->_uid;\n\t}", "public function associateToBook(Tag $tag, Book $book);", "public function testRecord() {\n $this->markTestIncomplete('This test has not been implemented yet.');\n }", "function setARecord( $ip ) {\n\t\tglobal $wgAuth;\n\n\t\t$values = array( 'arecord' => array( $ip ) );\n\t\t$success = LdapAuthenticationPlugin::ldap_modify( $wgAuth->ldapconn, $this->hostDN, $values );\n\t\tif ( $success ) {\n\t\t\t$wgAuth->printDebug( \"Successfully set $ip on $this->hostDN\", NONSENSITIVE );\n\t\t\t$this->domain->updateSOA();\n\t\t\t$this->fetchHostInfo();\n\t\t\treturn true;\n\t\t} else {\n\t\t\t$wgAuth->printDebug( \"Failed to set $ip on $this->hostDN\", NONSENSITIVE );\n\t\t\treturn false;\n\t\t}\n\t}", "public function createRecord();", "public function setRecord(bool $record): self\n {\n $this->options['record'] = $record;\n return $this;\n }", "public function updateAssociatedRecords()\n\t{\n\t\t$fkObject = $this->getContext()->getPropertyValue();\n\t\t$source = $this->getSourceRecord();\n\t\t$fkeys = $this->findForeignKeys($fkObject, $source);\n\t\tforeach($fkeys as $fKey => $srcKey)\n\t\t\t$fkObject->setColumnValue($fKey, $source->getColumnValue($srcKey));\n\t\treturn $fkObject->save();\n\t}", "public function __construct($record, $request)\n {\n $this->record = $record;\n $this->request = $request->all();\n }", "private function saveRecord(): void\r\n {\r\n $this->order->add_meta_data('_moloni_sent', $this->document_id);\r\n $this->order->save();\r\n }", "protected function _importRecord($_recordData, &$_result)\n {\n \n $record = new $this->_modelName($_recordData, TRUE);\n \n if ($record->isValid()) {\n if (! $this->_options['dryrun']) {\n\t\t\t\tif($record->__get('change_sign') == 'A'){\n\t\t\t\t\t$record = call_user_func(array($this->_controller, $this->_createMethod), $record);\t\n\t\t\t\t}else{ \n\t\t\t\t\ttry{ \n \t\t$record = $this->_controller->getByRecordNumber((int)trim($record->__get('record_number')));\n \t\t$record->setFromArray($_recordData);\n \t\t$record = $this->_controller->update($record);\n\t\t\t\t\t}catch(Tinebase_Exception_NotFound $e){\n\t\t\t\t\t\t$record = call_user_func(array($this->_controller, $this->_createMethod), $record);\t\n\t\t\t\t\t}\n\t if($record->__get('change_sign') == 'D'){\n\t \t$this->_controller->delete($record->getId());\n\t }\n\t\t\t\t}\n \n } else {\n $_result['results']->addRecord($record);\n }\n \n $_result['totalcount']++;\n \n } else {\n if (Tinebase_Core::isLogLevel(Zend_Log::DEBUG)) Tinebase_Core::getLogger()->debug(__METHOD__ . '::' . __LINE__ . ' ' . print_r($record->toArray(), true));\n throw new Tinebase_Exception_Record_Validation('Imported record is invalid.');\n }\n }", "private function add_record_or_update_record() {\n\t\t\t$this->before_custom_save();\n\t\t\t$this->before_save();\n\t\t\tif($this->new_record) {\n\t\t\t\t$this->before_create();\n\t\t\t\t$result = $this->add_record();\n\t\t\t\t$this->after_create();\n\t\t\t} else {\n\t\t\t\t$this->before_update();\n\t\t\t\t$result = $this->update_record();\n\t\t\t\t$this->after_update();\n\t\t\t}\n\t\t\t$this->after_save();\n\n\t\t\t// init user custom cache\n\t\t\tif (is_array($this->cache)) {\n\t\t\t\t$this->rebuild_cache();\n\t\t\t}\n\n\t\t\tif($this->blob_fields) {\n\t\t\t\t$this->update_blob_fields();\n\t\t\t}\n\t\t\treturn $result;\n\t\t}", "protected function storeRecordInDb(&$record)\n {\n if (!$this->m_node->addDb($record, true, 'add')) {\n return false;\n }\n\n $this->m_node->getDb()->commit();\n $this->notify('save', $record);\n $this->clearCache();\n\n return true;\n }", "public function setRollbackedRecord(\\Phalcon\\Mvc\\ModelInterface $record): void\n {\n }", "public function init_from_record($rec) {\n $this->id = $rec->id;\n $this->plugin = $rec->plugin;\n $this->timemodified = $rec->timemodified;\n if ($rec->courseid) {\n $this->courseid = $rec->courseid;\n }\n if ($rec->coursemoduleid) {\n $this->coursemoduleid = $rec->coursemoduleid;\n }\n if ($rec->groupid) {\n $this->groupid = $rec->groupid;\n }\n if ($rec->userid) {\n $this->userid = $rec->userid;\n }\n if ($rec->stringref) {\n $this->stringref = $rec->stringref;\n }\n if ($rec->intref1) {\n $this->intref1 = $rec->intref1;\n }\n if ($rec->intref2) {\n $this->intref2 = $rec->intref2;\n }\n if ($rec->timeexpires) {\n $this->timeexpires = $rec->timeexpires;\n }\n }", "public function getRecord()\r\n\t{\r\n\t\treturn $this->record;\r\n\t}", "function ActiveRecord($table)\n\t\t{\n\t\t\tparent::Model();\n\t\t\t$this->record = $table;\n\t\t}", "public function getForRecord($record);", "public function setRecordId($value)\n {\n return $this->set(self::_RECORD_ID, $value);\n }", "public function setParent($data, $currentRecord)\n {\n $this->parentRecord = [\n 'data' => $data,\n 'currentRecord' => $currentRecord\n ];\n }", "private function setRecord($index, $col, $precedence) {\n $this->records[$index]->setCol($col);\n $this->records[$index]->setPrecedence($precedence);\n }", "public function update(Request $request, Record $record)\n {\n $request->data && $request->merge([\n 'data' => Crypt::encrypt(json_encode($request->data)),\n ]);\n\n $record->update([\n 'name' => $request->name ?? $record->name,\n 'data' => $request->data ?? $record->data,\n ]);\n\n return new Resource($record);\n }" ]
[ "0.73027647", "0.7267268", "0.64121294", "0.6367808", "0.6361036", "0.62900305", "0.6269717", "0.626053", "0.6229691", "0.6174376", "0.61250836", "0.60969096", "0.6011537", "0.6011166", "0.5997025", "0.5942353", "0.5916427", "0.58766913", "0.58686817", "0.58573496", "0.5777708", "0.5730343", "0.5719595", "0.56841314", "0.5683614", "0.5618828", "0.56018704", "0.5589988", "0.5585671", "0.55789423", "0.55260456", "0.54943347", "0.5490919", "0.54659873", "0.54583025", "0.54558724", "0.5417637", "0.54113567", "0.5394489", "0.5361174", "0.53311574", "0.5328292", "0.5314525", "0.5293114", "0.5293109", "0.5281247", "0.52799934", "0.5271824", "0.5271516", "0.52586824", "0.52488893", "0.5245682", "0.5244453", "0.5233426", "0.52099377", "0.52044606", "0.51924586", "0.5188261", "0.51741034", "0.5165834", "0.51545614", "0.5149345", "0.5138224", "0.5137344", "0.5134371", "0.5132168", "0.5124563", "0.51195437", "0.5118281", "0.51144266", "0.511091", "0.5105978", "0.50954473", "0.5092788", "0.508876", "0.50875866", "0.5072423", "0.50717485", "0.5064762", "0.5056478", "0.50457656", "0.50131714", "0.5012458", "0.5010682", "0.50104284", "0.49935773", "0.49905324", "0.49901962", "0.4981452", "0.49396753", "0.49384794", "0.493739", "0.4931175", "0.49245602", "0.49242923", "0.49229163", "0.4919195", "0.4919025", "0.4916996", "0.49167687" ]
0.7820845
0
Removes any associations between the specified record with the current Record object.
public function dissociate($record) { try { \Bedrock\Model\Query::dissociate($this, $record); } catch(\Exception $ex) { \Bedrock\Common\Logger::exception($ex); throw new \Bedrock\Model\Record\Exception('The record could not be dissociated.'); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function destroy(Record $record)\n {\n //\n }", "public function delete () {\n if(count($this->data[$this->id])) {\n foreach($this->data[$this->id] as $key=>$prop) {\n if($prop[\"link\"] == \"P127F\")\n $broader = $key;\n }\n }\n unset($this->data[$this->id][$broader]);\n \n // if there are still links, we must stop\n if(count($this->data[$this->id])) \n throw new Exception(\"Cannot remove because record has links! (remove them first)\");\n\n // remove table data linked to this record\n foreach($this->tables as $table) {\n $table->deleteMyData($this->id);\n }\n \n // remove link to class hierarchy and then the record itself\n IdaDb::deleteBy(\"_sys_classes_join\", array(\"subject\"=>$this->id));\n IdaDb::deleteBy(\"_sys_records\", array(\"id\"=>$this->id));\n \n }", "public function m2mDbRemove($attr)\n {\n $relName = $this->_relName($this->_relConfig($attr));\n $relation = $this->owner->getRelation($relName);\n\n $pkOwner = $this->_pkOwner();\n $df = $this->_relDefinition($relation);\n\n // deletes current junctions\n $this->_delJunctions($df[0], $df[2], $pkOwner);\n }", "public function destroy(Record $record)\n {\n $success = $record->delete();\n\n return [\n 'success' => $success\n ];\n }", "function delAssoc($model)\n {\n //check if ok to make the association\n //current model has a many to many key with $model\n //$model has a many to many key with current model\n if (!isset($this->_manytomany[$model->_model])\n or strlen($this->_data['id']) == 0\n or strlen($model->id) == 0) {\n return false;\n }\n $hay = array(strtolower($model->_model), strtolower($this->_model));\n sort($hay);\n $table = $hay[0].'_'.$hay[1].'_assoc';\n $req = 'DELETE FROM `'.$this->_con->pfx.$table.'` WHERE'.\"\\n\";\n $req .= '`'.$this->_model.'_id` = \\''.$this->_con->esc($this->_data['id']).'\\'';\n $req .= ' AND `'.$model->_model.'_id` = \\''.$this->_con->esc($model->id).'\\'';\n if (!$this->_con->execute($req)) {\n throw new Exception($this->_con->error());\n }\n return true;\n }", "public function delinkRecord(string $relatedRecordId)\n\t{\n\t\t$handlerInstance=new CommonAPIHandler(); \n\t\t$apiPath=\"\"; \n\t\t$apiPath=$apiPath.('/crm/v2/'); \n\t\t$apiPath=$apiPath.(strval($this->moduleAPIName)); \n\t\t$apiPath=$apiPath.('/'); \n\t\t$apiPath=$apiPath.(strval($this->recordId)); \n\t\t$apiPath=$apiPath.('/'); \n\t\t$apiPath=$apiPath.(strval($this->relatedListAPIName)); \n\t\t$apiPath=$apiPath.('/'); \n\t\t$apiPath=$apiPath.(strval($relatedRecordId)); \n\t\t$handlerInstance->setAPIPath($apiPath); \n\t\t$handlerInstance->setHttpMethod(Constants::REQUEST_METHOD_DELETE); \n\t\t$handlerInstance->setCategoryMethod(Constants::REQUEST_METHOD_DELETE); \n\t\treturn $handlerInstance->apiCall(ActionHandler::class, 'application/json'); \n\n\t}", "public function clearPartnerssRelatedByPatientId()\n {\n $this->collPartnerssRelatedByPatientId = null; // important to set this to NULL since that means it is uninitialized\n }", "public function removeAssociationTarget($target)\n {\n }", "public function delinkRecords(ParameterMap $paramInstance=null)\n\t{\n\t\t$handlerInstance=new CommonAPIHandler(); \n\t\t$apiPath=\"\"; \n\t\t$apiPath=$apiPath.('/crm/v2/'); \n\t\t$apiPath=$apiPath.(strval($this->moduleAPIName)); \n\t\t$apiPath=$apiPath.('/'); \n\t\t$apiPath=$apiPath.(strval($this->recordId)); \n\t\t$apiPath=$apiPath.('/'); \n\t\t$apiPath=$apiPath.(strval($this->relatedListAPIName)); \n\t\t$handlerInstance->setAPIPath($apiPath); \n\t\t$handlerInstance->setHttpMethod(Constants::REQUEST_METHOD_DELETE); \n\t\t$handlerInstance->setCategoryMethod(Constants::REQUEST_METHOD_DELETE); \n\t\t$handlerInstance->setParam($paramInstance); \n\t\treturn $handlerInstance->apiCall(ActionHandler::class, 'application/json'); \n\n\t}", "public function unlink($recordID)\n {\n return $this->pivotTable()->delete($this->wherePivot(\n $this->parentKey(),\n array_keys($this->prepareRecords($recordID))\n ))->run();\n }", "public function delete() {\n\t\ttry {\n\t\t\tif($this->_state == self::STATE_UNCHANGED) {\n\t\t\t\t$sql = 'DELETE FROM ' . self::sanitize($this->_table->getProperty('name')) . ' WHERE ' . self::sanitize($this->_key_primary->name) . ' = ' . self::sanitize($this->_data[$this->_key_primary->name]);\n\t\t\t\t\\Bedrock\\Common\\Logger::info('Deleting record with query: ' . $sql); echo $sql;\n\t\t\t\t$this->_connection->exec($sql);\n\t\t\t}\n\t\t\telseif($this->_state == self::STATE_CHANGED) {\n\t\t\t\tthrow new \\Bedrock\\Model\\Record\\Exception('Unsaved changes found, cannot delete record.');\n\t\t\t}\n\t\t\telse {\n\t\t\t\tthrow new \\Bedrock\\Model\\Record\\Exception('Record not found in database.');\n\t\t\t}\n\t\t}\n\t\tcatch(\\PDOException $ex) {\n\t\t\t\\Bedrock\\Common\\Logger::exception($ex);\n\t\t\tthrow new \\Bedrock\\Model\\Record\\Exception('A database error was encountered, the record could not be deleted.');\n\t\t}\n\t\tcatch(\\Exception $ex) {\n\t\t\t\\Bedrock\\Common\\Logger::exception($ex);\n\t\t\tthrow new \\Bedrock\\Model\\Record\\Exception('The record could not be deleted.');\n\t\t}\n\t}", "private function remove()\n {\n $this->checkPersister();\n\n $this->persister->beginTransaction();\n foreach ($this as $entity) {\n if (!empty($entity)) {\n $this->persister->remove($entity);\n }\n }\n\n $this->persister->commitTransaction();\n }", "function erase() {\n\t\tif (method_exists($this,'beforeErase') && !$this->beforeErase())\n\t\t\treturn;\n\t\t$this->exec(array('method'=>'remove','criteria'=>$this->criteria));\n\t\t$this->reset();\n\t\tif (method_exists($this,'afterErase'))\n\t\t\t$this->afterErase();\n\t}", "public function destroy(PatientRecord $patientRecord)\n {\n //\n }", "public function DeleteAllTwoKeies() {\n\t\t\tif ((is_null($this->intId)))\n\t\t\t\tthrow new QUndefinedPrimaryKeyException('Unable to call UnassociateTwoKey on this unsaved Person.');\n\n\t\t\t// Get the Database Object for this Class\n\t\t\t$objDatabase = Person::GetDatabase();\n\n\t\t\t// Perform the SQL Query\n\t\t\t$objDatabase->NonQuery('\n\t\t\t\tDELETE FROM\n\t\t\t\t\t`two_key`\n\t\t\t\tWHERE\n\t\t\t\t\t`person_id` = ' . $objDatabase->SqlVariable($this->intId) . '\n\t\t\t');\n\t\t}", "public function clearSolicitacaoResgatesRelatedByAprovadorId()\n\t{\n\t\t$this->collSolicitacaoResgatesRelatedByAprovadorId = null; // important to set this to NULL since that means it is uninitialized\n\t}", "public function removeDeletedRecords() \n {\n // this algorythm should be a fair bit\n // faster than calling DataSet::removeRecord()\n $new_recs = array();\n foreach($this->records as $rec) {\n if (!$rec->isAZombie()) {\n $new_recs[] = $rec;\n }\n }\n $this->records = $new_recs;\n }", "public function clearRecordIndexes(RecordInterface $record): void\n {\n $columns = $this->table->getColumns();\n\n foreach ($columns as $col) {\n $value = $record->getFieldValue($col->getName());\n if (!$col->isIndexed()) continue; \n $index = $this->getIndexForColumnWithValue($col, $value);\n $index->removeRecord($record);\n }\n }", "public function clearRelations(): DataObject\n {\n foreach ($this::RELATIONS as $relationKey => $relation) {\n unset($this->{$relationKey});\n }\n\n return $this;\n }", "public function delete() {\n // Fail due to double delete\n assert(!$this->hasBeenDeleted);\n\n // Initialize delete record cache, if nonextant\n if (!isset(self::$deleteRecordPreparedStatementCache)) {\n self::$deleteRecordPreparedStatementCache = array();\n }\n \n // Initiate implicit tx, if nonextant explicit tx \n $is_implicit_tx = false;\n if (self::$numTransactions == 0) {\n $is_implicit_tx = true; \n self::beginTx();\n }\n\n // Fail due to invalid database connection\n assert(isset(self::$databaseHandle));\n\n // Delete this record and all child records \n $table_name = static::getFullyQualifiedTableName();\n \n try {\n // Fetch prepared statement from cache, if present. Otherwise, create it.\n if (isset(self::$deleteRecordPreparedStatementCache[$table_name])) {\n // Fetch delete query from cache\n $delete_record_stmt = self::$deleteRecordPreparedStatementCache[$table_name];\n } else {\n $fully_qualified_table_name = static::getFullyQualifiedTableName();\n $delete_query = \"DELETE FROM {$fully_qualified_table_name} \"\n . $this->genPrimaryKeyWhereClause();\n\n $delete_record_stmt = self::$databaseHandle->prepare($delete_query);\n self::$deleteRecordPreparedStatementCache[$table_name] = $delete_record_stmt;\n }\n \n // Delete children, schedule assets for deletion\n $this->deleteChildren();\n self::$assetDeletors = array_merge(self::$assetDeletors, $this->getAssets());\n\n // Bind record's 'id' to delete-query\n $this->bindId($delete_record_stmt);\n\n // Remove record\n $delete_record_stmt->execute();\n } catch (PDOException $e) {\n self::$databaseHandle->rollback();\n die(\"\\nERROR: \" . $e->getMessage() . \"\\n\");\n }\n\n // Close implicit transaction\n if ($is_implicit_tx) {\n self::endTx();\n }\n\n // Indicate object's deletion\n $this->hasBeenDeleted = true;\n }", "private function deleteRecords(){\r\n\t\r\n\t\t$fileNames = explode(',', $this->collection['images']);\r\n\t\t// remove imagerecords which are not used anymore\r\n\t\tforeach($this->images as $filename => $image){\r\n\t\t\tif(array_search($filename, $fileNames) === false){\r\n\t\t\r\n\t\t\t\t$this->db->exec_DELETEquery('tx_gorillary_images', \"image='$filename' AND collection='\".$this->collection['uid'].\"'\");\r\n\t\t\t\t//unset ($this->images[$filename]);\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private function resetDependentRelations($attribute)\n {\n foreach ($this->_relationsDependencies[$attribute] as $relation) {\n unset($this->_related[$relation]);\n }\n unset($this->_relationsDependencies[$attribute]);\n }", "public function clearRecord($rid){\n $oldRecord = $this->domDocument->getElementById($rid); //get Root\n $this->domDocument->documentElement->removeChild($oldRecord); // remove root\n // save back to disk \n $this->domDocument->save($this->xmlPath);\n }", "public function deleteAction(Request $request, Record $record)\n {\n $form = $this->createDeleteForm($record);\n $form->handleRequest($request);\n\n if ($form->isSubmitted() && $form->isValid()) {\n $em = $this->getDoctrine()->getManager();\n $em->remove($record);\n $em->flush();\n }\n\n return $this->redirectToRoute('eval_record_index');\n }", "public function deleteAssociation($uri)\n {\n $sql = \"DELETE FROM {$this->tableNames['association']}\n WHERE uri = ?\";\n\n $result = $this->prepareExecute($sql, array($uri));\n\n return $this;\n }", "public function onRelationManageRemove()\n {\n $this->beforeAjax();\n\n $recordId = post('record_id');\n $sessionKey = $this->deferredBinding ? $this->relationGetSessionKey() : null;\n $relatedModel = $this->relationModel;\n\n /*\n * Remove\n */\n if ($this->viewMode == 'multi') {\n\n $checkedIds = $recordId ? [$recordId] : post('checked');\n\n if (is_array($checkedIds)) {\n $foreignKeyName = $relatedModel->getKeyName();\n\n $models = $relatedModel->whereIn($foreignKeyName, $checkedIds)->get();\n foreach ($models as $model) {\n $this->relationObject->remove($model, $sessionKey);\n }\n }\n }\n /*\n * Unlink\n */\n elseif ($this->viewMode == 'single') {\n if ($this->relationType == 'belongsTo') {\n $this->relationObject->dissociate();\n $this->relationObject->getParent()->save();\n }\n elseif ($this->relationType == 'hasOne' || $this->relationType == 'morphOne') {\n if ($obj = $relatedModel->find($recordId)) {\n $this->relationObject->remove($obj, $sessionKey);\n }\n elseif ($this->viewModel->exists) {\n $this->relationObject->remove($this->viewModel, $sessionKey);\n }\n }\n\n $this->viewWidget->setFormValues([]);\n }\n\n return $this->relationRefresh();\n }", "function delete() {\n\t\t$personSectionObject = DB_DataObject::factory('person_section');\n\t\t$personSectionObject->person_id = $this->person_id;\n\t\t$personSectionObject->find();\n\t\t//echo '<PRE> Found Person Section Objects'; print_r($personSectionObject); echo '<PRE>';\n\n\t\twhile ($personSectionObject->fetch()) {\n\t\t\t$deleteObject = DB_DataObject::factory('person_section');\n\t\t\t$deleteObject->id = $personSectionObject->id;\n\t\t\t$deleteObject->section_id = $personSectionObject->section_id;\n\t\t\t$deleteObject->person_id = $this->id;\n\t\t\t$deleteObject->delete();\n\t\t}\n\n\t\treturn DB_DataObject::delete(); //Call the parent method\n\t}", "public function remove($oneOrManyEntities): void;", "public function afterSave()\n {\n foreach ($this->relations as $rel) {\n if ($this->_settings[$rel['name']][0] === CActiveRecord::HAS_MANY ||\n $this->_settings[$rel['name']][0] === CActiveRecord::HAS_ONE\n ) {\n // If set delete option.\n if (array_key_exists('delete', $rel) && $rel['delete'] === true) {\n // Find all related models with null ID link.\n $deleteModels = call_user_func($this->_settings[$rel['name']][1] . '::model')->findAllByAttributes(array($this->_settings[$rel['name']][2] => null));\n foreach ($deleteModels as $m) {\n $m->delete();\n }\n }\n }\n }\n }", "public function dissociate()\n {\n $this->farChild->setAttribute($this->firstKey, null);\n\n return $this->farChild->setRelation($this->relation, null);\n }", "function clearAttributes()\n {\n $this->arrRelations = array();\n return true;\n }", "public function destroy(QualityRecord $qualityRecord)\n {\n //\n }", "public function RemoveRecord()\n {\n $rec = $this->GetActiveRecord();\n global $g_BizSystem;\n $ok = $this->GetDataObj()->RemoveRecord($rec,$bPrtObjUpdated);\n if (!$ok)\n return $this->ProcessDataObjError($ok);\n\n $html = \"\";\n // rerender parent form's driving form (its field is updated in M-1 case)\n if ($bPrtObjUpdated) {\n $prtForm = $g_BizSystem->GetObjectFactory()->GetObject($this->m_ParentFormName);\n $html = $prtForm->ReRender();\n }\n //$this->UpdateActiveRecord($this->GetDataObj()->GetRecord(0));\n return $html . $this->ReRender();\n }", "public function associate($record) {\n\t\ttry {\n\t\t\t\\Bedrock\\Model\\Query::associate($this, $record);\n\t\t}\n\t\tcatch(\\Exception $ex) {\n\t\t\t\\Bedrock\\Common\\Logger::exception($ex);\n\t\t\tthrow new \\Bedrock\\Model\\Record\\Exception('The record could not be associated.');\n\t\t}\n\t}", "public function deleteRecord()\n\t{\n\t\tif($this->user->hasRight($this->getHandler()->getDeleteRight()))\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\t$record = $this->getHandler()->getRecord();\n\t\t\t\t$record->import($this->getRequest());\n\n\t\t\t\t// check owner\n\t\t\t\tif(!$this->isOwner($record))\n\t\t\t\t{\n\t\t\t\t\tthrow new Exception('You are not the owner of the record');\n\t\t\t\t}\n\n\t\t\t\t// check captcha\n\t\t\t\t$this->handleCaptcha($record);\n\n\t\t\t\t// delete\n\t\t\t\t$this->getHandler()->delete($record);\n\n\n\t\t\t\t$msg = new Message('You have successful delete a ' . $record->getName(), true);\n\n\t\t\t\t$this->setResponse($msg);\n\t\t\t}\n\t\t\tcatch(\\Exception $e)\n\t\t\t{\n\t\t\t\t$msg = new Message($e->getMessage(), false);\n\n\t\t\t\t$this->setResponse($msg);\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$msg = new Message('Access not allowed', false);\n\n\t\t\t$this->setResponse($msg, null, $this->user->isAnonymous() ? 401 : 403);\n\t\t}\n\t}", "public function cleanRecordVersions()\n\t{\n \t\t$this -> db -> query(\"DELETE FROM `\".$this -> table.\"` \n \t\t\t\t\t\t\t WHERE `model`='\".$this -> model.\"' \n \t\t\t\t\t\t\t AND `row_id`='\".$this -> row_id.\"'\");\n \t\treturn $this;\n \t}", "public function dropCachedRecord()\n\t{\n\t\t$this->_record = null;\n\n\t\treturn $this;\n\t}", "public static function abandonRelationships( $caller, $relationship, $subsite = 0, $removeObjects = false ) {\n\t\t$relatedObjects = $caller->{$relationship}();\n\n\t\tif( $relatedObjects && $relatedObjects->exists() ) {\n\t\t\tSubsite::temporarily_set_subsite(is_object($subsite) ? $subsite->ID : $subsite);\n\n\t\t\t// something-to-many or 1-to-1 relationship?\n\t\t\t$manyRelationship = (gettype($relatedObjects) == 'ComponentSet');\n\t\t\tif( !$manyRelationship )\n\t\t\t\t$callerID = \"{$caller->ClassName}ID\";\n\n\t\t\tforeach( $relatedObjects as $object ) {\n\t\t\t\tif( $manyRelationship )\n\t\t\t\t\t$caller->{$relationship}()->remove($object);\n\t\t\t\telseif( !$removeObjects ) {\n\t\t\t\t\t$object->$callerID = NULL;\n\t\t\t\t\t$object->write();\n\t\t\t\t}\n\t\t\t\tif( $removeObjects )\n\t\t\t\t\t$object->delete();\n\t\t\t}\n\n\t\t\tSubsite::restore_previous_subsite();\n\t\t}\n\t}", "public function delete() {\n $events = $this->getEventsCreatedHere(); # we will need to write this method\n foreach ($events as $record) {\n $record->delete();\n }\n\n # delete the calendar_has_event records\n $has_events = $this->getCalendarHasEvents();\n foreach ($has_events as $record) {\n $record->delete();\n }\n\n # delete the user_has_permission records\n $permissions = $this->getAllPermissions();\n foreach ($permissions as $record) {\n $record->delete();\n }\n\n # delete the subscriptions on the calendar\n $subscriptions = $this->getSubscriptions();\n foreach ($subscriptions as $record) {\n $record->delete();\n }\n\n # delete the subscription_has_calendar records (remove calendar from subscriptions that subscribe to it)\n $subscriptions = $this->getSubscriptionHasCalendarRecords();\n foreach ($subscriptions as $record) {\n $record->delete();\n }\n\n return parent::delete();\n }", "public function removeRelation(RelationInterface $relation);", "function unbindAll() {\n foreach (array(\n 'hasOne' => array_keys($this->hasOne),\n 'hasMany' => array_keys($this->hasMany),\n 'belongsTo' => array_keys($this->belongsTo),\n 'hasAndBelongsToMany' => array_keys($this->hasAndBelongsToMany)\n ) as $relation => $model) {\n $this->unbindModel(array($relation => $model));\n }\n }", "public function resetRelations()\n\t{\n\t\t$this->relations = array();\n\t}", "public function DeleteAllAddresses() {\n\t\t\tif ((is_null($this->intId)))\n\t\t\t\tthrow new QUndefinedPrimaryKeyException('Unable to call UnassociateAddress on this unsaved Person.');\n\n\t\t\t// Get the Database Object for this Class\n\t\t\t$objDatabase = Person::GetDatabase();\n\n\t\t\t// Perform the SQL Query\n\t\t\t$objDatabase->NonQuery('\n\t\t\t\tDELETE FROM\n\t\t\t\t\t`address`\n\t\t\t\tWHERE\n\t\t\t\t\t`person_id` = ' . $objDatabase->SqlVariable($this->intId) . '\n\t\t\t');\n\t\t}", "public function removeAll()\n {\n foreach ($this->findAll() as $object) {\n $this->remove($object);\n }\n }", "public function delete()\n {\n persistableCollection::getInstance($this->resourceName)->deleteObject($this);\n }", "public function clear() {\n\t\t$this->_where\t\t= array();\n\t\t$this->_order\t\t= array();\n\t\t$this->_isAddingNew\t= false;\n\t\t$this->_currentRow\t= 0;\n\t\t$this->_relationship\t= array();\n\t\t$this->_recordset\t= array();\n\t\t$this->_updateBuffer\t= array();\n\t\t$this->_limit\t\t= NULL;\n\t\t$this->_offset\t\t= NULL;\n\t\t$this->isDirty( false );\n\t}", "public function clearAssignedPrayersRelatedByPatientId()\n {\n $this->collAssignedPrayersRelatedByPatientId = null; // important to set this to NULL since that means it is uninitialized\n }", "public function delete() {\n global $DB;\n $DB->delete_records($this->get_table_name(), array('id' => $this->id));\n }", "public function delete($entity){ \n //TODO: Implement remove record.\n }", "public function destroy(ReadingRecord $readingRecord)\n {\n //\n }", "public function clear()\n {\n $this->phadtype = null;\n $this->phadid = null;\n $this->phadsubid = null;\n $this->phadsubidseq = null;\n $this->phadcont = null;\n $this->phadintl = null;\n $this->phadtelenbr = null;\n $this->phadteleext = null;\n $this->phadintlnbr = null;\n $this->phadintlext = null;\n $this->phadfaxnbr = null;\n $this->phadifaxnbr = null;\n $this->phadcellnbr = null;\n $this->phadicellnbr = null;\n $this->phadhomenbr = null;\n $this->phadihomenbr = null;\n $this->phadwebaddr = null;\n $this->phademailaddr = null;\n $this->phadname = null;\n $this->phadcontname = null;\n $this->dateupdtd = null;\n $this->timeupdtd = null;\n $this->dummy = null;\n $this->alreadyInSave = false;\n $this->clearAllReferences();\n $this->applyDefaultValues();\n $this->resetModified();\n $this->setNew(true);\n $this->setDeleted(false);\n }", "public function delete() {\r\n\t\t$this->getMapper()->delete($this);\r\n\t}", "public function removeFromCart()\n\t{\n\t\t$this->cart->remove($this->request->getInteger('record'));\n\t\t$this->saveCart();\n\t}", "private function cascadeRemove($document, array &$visited)\n {\n $class = $this->dm->getClassMetadata(get_class($document));\n foreach ($class->fieldMappings as $mapping) {\n if ( ! isset($mapping['embedded']) && ! $mapping['isCascadeRemove']) {\n continue;\n }\n if (isset($mapping['embedded'])) {\n $relatedDocuments = $class->reflFields[$mapping['fieldName']]->getValue($document);\n if (($relatedDocuments instanceof Collection || is_array($relatedDocuments))) {\n // If its a PersistentCollection initialization is intended! No unwrap!\n foreach ($relatedDocuments as $relatedDocument) {\n $this->cascadeRemove($relatedDocument, $visited);\n }\n } elseif ($relatedDocuments !== null) {\n $this->cascadeRemove($relatedDocuments, $visited);\n }\n } elseif (isset($mapping['reference'])) {\n $relatedDocuments = $class->reflFields[$mapping['fieldName']]->getValue($document);\n if (($relatedDocuments instanceof Collection || is_array($relatedDocuments))) {\n // If its a PersistentCollection initialization is intended! No unwrap!\n foreach ($relatedDocuments as $relatedDocument) {\n $this->doRemove($relatedDocument, $visited);\n }\n } elseif ($relatedDocuments !== null) {\n $this->doRemove($relatedDocuments, $visited);\n }\n }\n }\n }", "public function clearRecords()\n\t{\n\t\tdie('Amol. here!!');\n\t}", "public function delete_record_from_antibiotics_and_how_to_use_them(Array $columns, Array $records, $printSQL = false) {\n\t\treturn $this->delete_record ( $this->get_table (), $columns, $records, $printSQL );\n\t}", "public function delete() {\n\t\tif ($this->checkDependencies() == true ) {\n\t\t\t$sql = \"DELETE FROM \".$this->tablename.\" where \".$this->idcol.\" = \".$this->page->ctrl['record'];\n\t\t\t$this->dbc->exec($sql);\n\t\t}\n\t}", "public function isRemoveFromRelationship();", "public function clearPartnerssRelatedByAgentId()\n {\n $this->collPartnerssRelatedByAgentId = null; // important to set this to NULL since that means it is uninitialized\n }", "public function DeleteRecord()\n {\n // TODO: support delete multiple records\n // read the id array from the check box list _REQUEST['row_selections']\n global $g_BizSystem;\n $values = $g_BizSystem->GetClientProxy()->GetFormInputs('row_selections',false);\n if ($values)\n {\n foreach ($values as $id)\n {\n $recArray = $this->GetDataObj()->FetchById($id);\n $dataRec = new DataRecord($recArray, $this->GetDataObj());\n // take care of exception\n try {\n $dataRec->Delete();\n }\n catch (BDOException $e)\n {\n // call $this->ProcessBDOException($e);\n $this->ProcessBDOException($e);\n return;\n }\n }\n }\n else // delete current focused record\n {\n $rec = $this->GetActiveRecord();\n if (!$rec) return;\n global $g_BizSystem;\n //$recId = $this->m_ActiveRecord[\"Id\"];\n $ok = $this->GetDataObj()->DeleteRecord($rec);\n if (!$ok)\n return $this->ProcessDataObjError($ok);\n }\n $this->m_RecordId = null; // clean the current record id\n // TODO: adjust current page. if current page return no record, goto prev page\n \n return $this->ReRender();\n }", "public static function clearRelatedInstancePool()\n {\n // Invalidate objects in \".$this->getClassNameFromBuilder($joinedTableTableMapBuilder).\" instance pool,\n // since one or more of them may be deleted by ON DELETE CASCADE/SETNULL rule.\n EmailManagerHistoryEmailTableMap::clearInstancePool();\n }", "public function remove()\n {\n database()->run('DELETE FROM ' . $this->table . ' WHERE ' . $this->primaryKey . ' = ?', [ $this->{$this->primaryKey} ]);\n $this->__destruct();\n }", "public function deletion($data, Model $model)\n { \n $this->table = $model->table;\n\n foreach($data as $record) {\n $this->unsetQuery();\n $this->delete('message_id = ?', [$record]);\n }\n }", "public function destroy(Ride $record)\n {\n RideService::delete($record);\n\n flash()->success(trans('motor-revision::backend/rides.deleted'));\n\n return redirect('backend/rides');\n }", "public function detach(Collection|Model $model): void\n {\n if ($model instanceof Collection) {\n $model->each(fn (Model $m) => $this->detach($m));\n\n return;\n }\n\n $this->file_attachments()\n ->where([\n 'model_type' => get_class($model),\n 'model_id' => $model->getKey(),\n ])\n ->delete();\n }", "public function removeAssociations()\n {\n /** @var NodesSources $ns */\n foreach ($this->getNode()->getNodeSources() as $ns) {\n $this->objectManager->remove($ns);\n }\n\n return $this;\n }", "public function remove_meta_data_by_object(ActiveRecord $ActiveRecord): void\n {\n //it is expected to be called - do nothing\n }", "public function delIdentity()\n\t{\n\t\t// Verifier l'adhesion\n\t\t$q = new Bn_query('u2a', '_asso');\n\t\t$q->setFields('u2a_adherentid');\n\t\t$q->addWhere('u2a_userid='. $this->getVal('id', -1));\n\t\t$adheId = $q->getOne();\n\t\t$q->deleteRow();\n\t\t$q->setTables('adherents');\n\t\t$q->deleteRow('adhe_id=' . $adheId);\n\t}", "public function clearRelationCache();", "public function delete_record($id){\n\t\t$this->db->where('award_id', $id);\n\t\t$this->db->delete('awards');\n\t\t\n\t}", "public function remove() {\n //Check if there are thumbs and delete files and db\n foreach ($this->thumbs()->get() as $thumb) {\n $thumb->remove();\n } \n //Delete the attachable itself only if is not default\n if (strpos($this->url, '/defaults/') === false) {\n Storage::disk('public')->delete($this->getPath());\n }\n parent::delete(); //Remove db record\n }", "function deleteRecord()\t{\n\t\tif ($this->conf['delete'])\t{\t// If deleting is enabled\n\t\n\t\t\t$origArr = $GLOBALS['TSFE']->sys_page->getRawRecord($this->theTable, $this->recUid);\n\t\t\tif (($GLOBALS['TSFE']->loginUser && $this->conf['requireLogin']) || ( $this->aCAuth($origArr)&& $this->conf['requireLogin'])||!$this->conf['requireLogin'])\t{\t// Must be logged in OR be authenticated by the aC code in order to delete\n\t\t\t\t\t// If the recUid selects a record.... (no check here)\n\t\t\t\tif (is_array($origArr))\t{\n\t\t\t\t\tif ($this->aCAuth($origArr) || $this->metafeeditlib->DBmayFEUserEdit($this->theTable,$origArr, $GLOBALS['TSFE']->fe_user->user,$this->conf['allowedGroups'],$this->conf['fe_userEditSelf'],$this->conf))\t{\t// Display the form, if access granted.\n\t\t\t\t\t\tif (!$GLOBALS['TCA'][$this->theTable]['ctrl']['delete'])\t{\t// If the record is fully deleted... then remove the image (or any file) attached.\n\t\t\t\t\t\t\t$this->deleteFilesFromRecord($this->recUid);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$this->cObj->DBgetDelete($this->theTable, $this->recUid, TRUE);\n\t\t\t\t\t\t$this->currentArr = $origArr;\n\t\t\t\t\t\t$this->saved = 1;\n\t\t\t\t\t\t$this->userProcess_alt($conf['edit.']['userFunc_afterDelete'],$conf['edit.']['userFunc_afterDelete.'],array('rec'=>$this->currentArr, 'origRec'=>$origArr));\n\t\t\t\t\t\t\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$this->error = '###TEMPLATE_NO_PERMISSIONS###';\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t\t\t$this->error = '###TEMPLATE_NO_PERMISSIONS###';\n\t\t }\n\t\t}\n\t}", "public function clearConcepts()\n {\n foreach ($this->relationships as $relationship) {\n $relationship->clearConcepts();\n }\n }", "private function delete_record($table, Array $columns, Array $records, $printSQL = false) {\n\t\treturn $this->get_database_utils ()->delete_record ( $table, $columns, $records, $printSQL );\n\t}", "private function delete_record($table, Array $columns, Array $records, $printSQL = false) {\n\t\treturn $this->get_database_utils ()->delete_record ( $table, $columns, $records, $printSQL );\n\t}", "private function delete_record($table, Array $columns, Array $records, $printSQL = false) {\n\t\treturn $this->get_database_utils ()->delete_record ( $table, $columns, $records, $printSQL );\n\t}", "function remTagAssoc( $tag_id ) {\n $assoc_def =& Element_Factory::makeElement( 'Bm_Marks_has_bm_Tags' );\n \n $assoc_def->bm_Marks_id = $this->id;\n $assoc_def->bm_Tags_id = $tag_id;\n\n if ( $assoc_def->find(true) ) {\n\t\t\t$this->debug( \"Suppression de l' association [$this->id / $tag_id].\", __FUNCTION__, 1 );\n $assoc_def->delete();\n return true;\n }\n\n else return Blogmarks::raiseError( \"Le Tag [$tag_id] n'est pas associé au Mark [$this->id]\", 404 );\n }", "public function delete() {\n\t\t$this->getConnection()->delete( $this );\n\t\t$this->clear();\n\t}", "public function deleteMatch(){\n\t\t$this->getDbTable()->delete(\"\");\n\t}", "public function erase() {\n\t\tif ($this->empty) {\n\t\t\ttrigger_error(self::TEXT_AxonEmpty);\n\t\t\treturn;\n\t\t}\n\t\tif (method_exists($this,'beforeErase'))\n\t\t\t// Execute beforeErase event\n\t\t\t$this->beforeErase();\n\t\t$_cond=$this->criteria;\n\t\tF3::sql(\n\t\t\t'DELETE FROM '.$this->table.\n\t\t\t\t(is_null($_cond)?'':(' WHERE '.$_cond)).';',\n\t\t\t$this->db\n\t\t);\n\t\t$this->reset();\n\t\tif (method_exists($this,'afterErase'))\n\t\t\t// Execute afterErase event\n\t\t\t$this->afterErase();\n\t}", "public function delete($oneOrManyEntities): void;", "public function forceDeleted(AssignmentFinishRecord $assignmentFinishRecord)\n {\n //\n }", "public function deleteWithReplies()\n\t{\n\t\tif(count($this->replies) > 0) {\n\t\t\t// Delete children recursive\n\t\t\tforeach ($this->replies as $reply) {\n\t\t\t\t$reply->deleteWithReplies();\n\t\t\t}\n\t\t}\n\t\t$this->delete();\n\t}", "public function removeRetainsObjectForObjectsNotInCurrentSession() {}", "public function clear()\n {\n if (null !== $this->aCakeType) {\n $this->aCakeType->removeArticle($this);\n }\n if (null !== $this->aShape) {\n $this->aShape->removeArticle($this);\n }\n $this->article_id = null;\n $this->description = null;\n $this->price = null;\n $this->creation = null;\n $this->visible = null;\n $this->shape_id = null;\n $this->cake_type_id = null;\n $this->alreadyInSave = false;\n $this->clearAllReferences();\n $this->resetModified();\n $this->setNew(true);\n $this->setDeleted(false);\n }", "public function deleteFrom($record = null, $index = null) {\n $array = $this->readFile();\n if (is_null($record)) {\n $array = [];\n }\n else if (!is_null($record) && is_null($index)) {\n $array[$record] = null;\n for ($i = $record; $i < count($array); $i++) {\n if ($i == count($array) - 1) {\n $array[$i] = null;\n break;\n }\n $array[$i] = $array[$i + 1];\n }\n }\n else {\n $array[$record][$index] = null;\n for ($i = $index; $i < count($array[$record]); $i++) {\n if ($i == count($array[$record]) - 1) {\n $record[$i] = null;\n break;\n }\n $array[$record][$i] = $array[$record][$i + 1];\n }\n }\n $this->writeFile($array);\n }", "public function deleteRelations(One_Model $model, One_Relation_Adapter $link)\n\t{\n\t\treturn null;\n\t}", "function delete()\n {\n $this->getDi()->hook->call(Am_Event::INVOICE_BEFORE_DELETE, array('invoice' => $this));\n foreach ($this->getItems() as $item) {\n $item->delete();\n }\n // $this->deleteFromRelatedTable('?_invoice_log'); // not good idea to delete\n $this->deleteFromRelatedTable('?_invoice_payment');\n $this->deleteFromRelatedTable('?_invoice_refund');\n $this->deleteFromRelatedTable('?_invoice_item_option');\n foreach ($this->getAccessRecords() as $access) {\n $access->delete();\n }\n parent::delete();\n $this->getUser()->checkSubscriptions(true);\n $this->getDi()->hook->call(Am_Event::INVOICE_AFTER_DELETE, array('invoice' => $this));\n return $this;\n }", "public function delete() {\n if ($this->_is_new) return false;\n\n if (isset($this->_data[$this->_key_field])) {\n $where = array($this->_key_field=>$this->_data[$this->_key_field]); \n } elseif ($this->_load_criteria) {\n $where = $this->_load_criteria;\n } else {\n return false;\n }\n\n Q::create($this->_structure['table'])->delete($where)->exec();\n if (isset($this->_structure['relations'])) {\n foreach($this->_structure['relations'] as $relation_name=>$info) {\n $this->detach(null, $relation_name);\n }\n }\n if (isset($this->_structure['abilities'])) {\n foreach($this->_structure['abilities'] as $ability_name=>$info) {\n $ability_name = ucfirst($ability_name);\n if (!is_object($this->_loaded_abilities[$ability_name])) continue;\n $objects = array(&$this);\n $this->_loaded_abilities[$ability_name]->unlink($objects);\n }\n }\n return null;\n }", "public function delete($entity) {\r\n\t\tif($entity instanceof Model_Abstract) {\r\n\t\t\t$id = $entity->getIdentityValue();\r\n\t\t}\r\n\t\telse {\r\n\t\t\t$id = $entity;\r\n\t\t}\r\n\t\t// Need to unset the entity in the identity map if it exists\r\n\t\t$this->_unsetIdentity($id);\r\n\t\t \r\n\t\t$rowset = $this->_getGateway()->find($id);\r\n\t\tif($rowset->count() > 0) {\r\n\t\t\t$row = $rowset->current();\r\n\t\t\t$result = $row->delete();\r\n\t\t}\r\n\t}", "public function deleteRecord ($id);", "public function clearSolicitacaoResgatesRelatedBySolicitanteId()\n\t{\n\t\t$this->collSolicitacaoResgatesRelatedBySolicitanteId = null; // important to set this to NULL since that means it is uninitialized\n\t}", "public function deleted(AssignmentFinishRecord $assignmentFinishRecord)\n {\n //\n }", "public function unlink($id)\n {\n //\n Relation::destroy( $id );\t\n }", "public function afterDelete()\n {\n $this->resetPolymorphicRelation();\n if ($this->getPolymorphicRelation() !== null) {\n $this->getPolymorphicRelation()->delete();\n }\n\n parent::afterDelete();\n }", "protected function _dependentRecordsFromJson(&$record)\n {\n $config = $record::getConfiguration();\n if ($config) {\n \n $recordsFields = $config->recordsFields;\n \n if ($recordsFields) {\n foreach ($recordsFields as $property => $fieldDef) {\n\n $rcn = $fieldDef['config']['recordClassName'];\n if ($record->has($property) && $record->{$property} && is_array($record->{$property})) {\n $recordSet = new RecordSet($rcn);\n foreach ($record->{$property} as $recordArray) {\n if (is_array($recordArray)) {\n $srecord = new $rcn(array(), true);\n $srecord->setFromJsonInUsersTimezone($recordArray);\n $recordSet->addRecord($srecord);\n } else {\n if (Core::isLogLevel(LogLevel::ERR)) Core::getLogger()->err(__METHOD__ . '::' . __LINE__\n . ' Record array expected, got: ' . $recordArray);\n throw new InvalidArgument('Record array expected');\n }\n $record->{$property} = $recordSet;\n }\n }\n }\n }\n }\n }", "public function deleteOwners(): void\n {\n foreach ($this->attributes as $attributeName) {\n $this->removeOwner($this->owner->primaryKey, $this->name, $attributeName);\n }\n }", "function delete(){\n // Renumber resolutions\n $resolutions = resolution::getResolutions($this->committeeId, $this->topicId);\n foreach($resolutions as $resolution){\n if($resolution->resolutionNum <= $this->resolutionNum)\n continue;\n $resolution->resolutionNum--;\n $resolution->saveInfo();\n }\n // Delete subclauses\n foreach($this->preambulatory as $clause){\n $clause->delete();\n }\n foreach($this->operative as $clause){\n $clause->delete();\n }\n // Delete resolution\n mysql_query(\"DELETE FROM resolution_list WHERE id='$this->resolutionId'\") or die(mysql_error());\n }", "function delete(){\n // Delete subclauses\n foreach($this->subClause as $clause){\n $clause->delete();\n }\n \n mysql_query(\"DELETE FROM resolution WHERE id='$this->clauseId'\") or die(mysql_error());\n }", "public function deleteRecords($recordIds, $arm = null, $form = null, $event = null, $repeatInstance = null)\n {\n $data = array (\n 'token' => $this->apiToken,\n 'content' => 'record',\n 'action' => 'delete',\n 'returnFormat' => 'json'\n );\n \n $data['records'] = $this->processRecordIdsArgument($recordIds);\n $data['arm'] = $this->processArmArgument($arm);\n\n $data['instrument'] = $this->ProcessFormArgument($form, $required = false);\n $data['event'] = $this->ProcessEventArgument($event);\n $data['repeat_instance'] = $this->ProcessRepeatInstanceArgument($repeatInstance);\n\n \n $result = $this->connection->callWithArray($data);\n \n $this->processNonExportResult($result);\n \n return $result;\n }" ]
[ "0.5948501", "0.5539448", "0.5437113", "0.5406663", "0.5228554", "0.51735806", "0.5141519", "0.51042265", "0.5089125", "0.5025734", "0.5012072", "0.4926309", "0.49229383", "0.49189505", "0.49184206", "0.4907252", "0.49071297", "0.49051958", "0.48848942", "0.4876821", "0.4872468", "0.48645", "0.4838406", "0.48382193", "0.48026422", "0.4785207", "0.47826248", "0.4780527", "0.47703323", "0.4769513", "0.4766016", "0.47597075", "0.47536963", "0.47454804", "0.47332612", "0.47256184", "0.47235408", "0.47131157", "0.47106573", "0.47070333", "0.4703867", "0.46885848", "0.46863315", "0.46856943", "0.466962", "0.46671852", "0.46446007", "0.462505", "0.46142206", "0.46112654", "0.46046886", "0.45974955", "0.4595235", "0.4592153", "0.45766184", "0.45743263", "0.45713338", "0.45703796", "0.45662442", "0.45641986", "0.4557357", "0.45563713", "0.45555586", "0.4549638", "0.4547469", "0.45426705", "0.4542357", "0.45400023", "0.45351225", "0.45318994", "0.45301554", "0.45259565", "0.4525522", "0.4523343", "0.4523343", "0.4523343", "0.45048138", "0.45017245", "0.45001444", "0.4495903", "0.44935998", "0.44926244", "0.44917446", "0.4488771", "0.44771206", "0.44749895", "0.44733924", "0.44675404", "0.44669938", "0.44629204", "0.4458024", "0.44510683", "0.44474787", "0.444402", "0.44415554", "0.44391346", "0.44378772", "0.4435239", "0.44347405", "0.4431598" ]
0.5553693
1
Retrieves all Records in the specified table associated with the current Record.
public function associated($tableName, $limit = array()) { try { $result = \Bedrock\Model\Query::associated($this, $tableName, $limit); return $result; } catch(\Exception $ex) { \Bedrock\Common\Logger::exception($ex); throw new \Bedrock\Model\Record\Exception('A problem was encountered while checking for associated records.'); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getRecords($table, $where=false){// method getRecords body start\n\t\t\n\t\tif($where){\n\t\t\t$where = $this->makeWhere($where);\n\t\t}\n\t\t$query = \"SELECT * FROM $table \".$where;\n\t\treturn $this->exeQuery($query);\n\t\t\n\t}", "public function getAllRecords();", "public function getAll($table){\n\t\treturn $this->db->get($table);\n\t}", "public function table_get_all($table);", "public function getAll($table)\n {\n return $this->action('SELECT * ', $table, array('1','=','1'));\n }", "public function getAll()\n {\n $records = $this->getRecordsModel()->getAll();\n \n return $records;\n }", "public abstract function fetchAll($table);", "public function fetchRecords() {\n return self::all();\n }", "public function getAll($table){\n $query = $this->pdo->prepare(\"SELECT * FROM {$table}\");\n $query->execute();\n return $query->fetchAll(\\PDO::FETCH_OBJ);\n }", "public function fetchAll(string $table)\n {\n $query = \"SELECT * FROM $table\";\n return $this->conn->query($query);\n }", "function all($table)\n {\n $sql = \"SELECT * FROM $table\";\n $statement = $this->pdo->prepare($sql);\n $statement->execute();\n $results = $statement->fetchAll(PDO::FETCH_ASSOC);\n\n return $results;\n }", "function get_all_records(){\n\t\tglobal $db;\n\t\t$sql=\"SELECT * FROM $this->table order by id asc\";\n\t\t$db->query($sql);\n\t\t$row=$db->fetch_assoc_all();\n\t\treturn $row;\n\t}", "function getData($table)\n {\n $record = array();\n $sql = \"select * from $table\";\n $result = $this->conn->prepare($sql);\n $result->execute();\n if ($result->rowCount() > 0) {\n while ($row = $result->fetch(PDO::FETCH_ASSOC)) {\n $record[] = $row;\n }\n return $record;\n } else {\n return $record = false;\n }\n $this->conn = null;\n }", "public function getAllData($table)\n {\n return $this->db->get($table)->result();\n }", "public function getAllData($table)\n {\n return $this->db->get($table)->result();\n }", "public function getAllData($table)\n {\n return $this->db->get($table)->result();\n }", "public function getAll()\n\t{\n\t\t$args = array('order' => 't.id');\n \t$records = $this->record->findAll($args);\n \treturn $this->model->populateModels($records, 'id');\n\t}", "public function fetchAll($table = null)\n {\n if ($table){\n $this->table = $table;\n }\n\n $sql = $this->fetchStatement();\n\n $query = $this->query($sql , $this->bindings);\n $results = $query->fetchAll();\n $this->rows = $query->rowCount();\n\n $this->reset();\n return $results;\n }", "function getAllRecords($tableName, $dbName){\n\n\n\t$allRecords = dbMassData(\"SELECT * FROM $dbName.$tableName\");\n\n\treturn $allRecords;\n}", "public function selectAll($table)\n {\n return $this->_db->fetchAll('SELECT * FROM ' . $table);\n }", "public function getAllRecordsFromTable($tableName, $pkField) {\n $result = $this->get($tableName, array($pkField, '>', 0));\n //var_dump($result);\n if (!empty($result)) {\n if ($result->count()) {\n return $result;\n }\n }\n return false;\n }", "protected function all($tableName)\n {\n $sql = \"select * from {$tableName}\";\n $data = $this->select($sql);\n\n return $data;\n }", "function getallrecord()\n\t{\n\t\treturn $this->db->get(\"tblteman\");\n\t\t// fungsi get(\"namatable\") adalah active record ci\n\t}", "function getAllData($table){\n\t\ttry {\n\t\t\t$sql = \"SELECT * FROM $table\";\n\t\t\t$query = $this->executeQuery($sql);\n\t\t\t$list = $query->fetchAll(PDO::FETCH_ASSOC);\n\t\t}catch(Exception $e){\n\t\t\t$this->logger->error($sql, $e->getMessage());\n\t\t\tthrow $e;\n\t\t}\n\t\treturn $list;\n\t}", "public function table(): Query\n {\n return $this->database->records();\n }", "public function fetchAll($table = null)\n\t{\n\t\tif ($table)\n\t\t{\n\t\t\t$this->table = $table;\n\t\t}\n\t\t\n\t\t$sql = $this->fetchStatement();\n\t\t\n\t\t$query = $this->query($sql, $this->bindings);\n\t\t\n\t\t$results = $query->fetchAll();\n\t\t\n\t\t$this->rows = $query->rowCount();\n\t\t\n\t\t$this->reset();\n\t\t\n\t\treturn $results;\n\t}", "public function find($table) {\n\t\treturn $this->model->getData($table, $this->criteria, $this->orderby);\n\t}", "public function all()\r\n {\r\n return $this->db->table($this->table)->get();\r\n }", "public function getRecords()\n {\n $result = $this->fetchAll($this->select()->order('id ASC'))->toArray();\n return $result;\n }", "public function getAll() {\n return $this->db->getAllFromTable($this->table);\n }", "public function getAll()\n {\n return $this->db->table($this->tableName)->select('*')->findAll();\n }", "public function getAll()\n {\n $sql = \"SELECT * FROM `%s`\";\n $this->_sql[] = sprintf($sql, $this->_table);\n $this->_parameters[] = array();\n return $this->run();\n }", "public static function get_all_records() {\n\t\tglobal $wpdb;\n\n\t\t$query = 'select * from ' . self::TABLE_NAME . ' order by email asc;';\n\n\t\t$results = $wpdb->get_results( $query, ARRAY_A );\n\n\t\tif ( ! is_array( $results ) ) {\n\t\t\t$results = array();\n\t\t\treturn $results;\n\t\t}\n\n\t\treturn $results;\n\t}", "protected static function get_table_records($table){\n\n\t\treturn count(static::_scandir(static::path(null, $table)));\n\t}", "public static function find_all() {\r\n\t\treturn self::find_by_sql(\"SELECT * FROM \".self::$table_name);\r\n\t}", "public static function findAll()\n\t\t{\n\t\t\t$tb = self::get('tabla') ;\n\t\t\t\n\t\t\treturn Database::getInstance()\n\t\t\t\t\t->query(\"SELECT * FROM $tb ;\")\n\t\t\t\t\t->getObjects(get_called_class()) ;\n\t\t}", "public static function all()\n {\n self::getAllByTableName();\n return parent::getAllByTableName();\n }", "public function getAll()\n {\n return $this->prepare(DB::findAll($this->table));\n }", "public function selectAll($table)\n { $sql=\"select * from {$table}\";\n $statement = $this->pdo->prepare($sql);\n\n $statement->execute();\n\n return $statement->fetchAll(PDO::FETCH_CLASS);\n }", "public function getQueryRecords()\n {\n return $this->get(self::_QUERY_RECORDS);\n }", "public function get($table);", "public function getEntries($table, $fields = '*', $limit = 10, $offset = 0);", "public static function find_all()\n {\n return self::find_by_sql(\"SELECT * from \".self::$table_name);\n }", "public static function fetchAll() {\n // Initialize fetch-all cache, if necessary\n if (!isset(self::$fetchAllRecordsPreparedStatementCache)) {\n self::$fetchAllRecordsPreparedStatementCache = array();\n }\n\n // Cache calling subclass name \n $table_name = static::getTableName();\n \n // Begin implicit transaction if explicit one doesn't exist\n $is_implicit_tx = false;\n if (self::$numTransactions == 0) {\n $is_implicit_tx = true; \n self::beginTx();\n }\n \n // Fail because 'databaseHandle' wasn't initialized by 'beginTx()'\n assert(isset(self::$databaseHandle));\n\n try {\n // Create prepared statement if nonextant \n if (!isset(self::$fetchAllRecordsPreparedStatementCache[$table_name])) {\n $fully_qualified_table_name = static::getFullyQualifiedTableName();\n $query_str = \"SELECT * FROM {$fully_qualified_table_name}\";\n self::$fetchAllRecordsPreparedStatementCache[$table_name] =\n self::$databaseHandle->prepare($query_str); \n } \n\n // Fetch all records\n $fetch_all_stmt = self::$fetchAllRecordsPreparedStatementCache[$table_name]; \n $fetch_all_stmt->execute();\n $raw_record_set = $fetch_all_stmt->fetchAllRows();\n \n // Conclude implicit tx\n if ($is_implicit_tx) {\n self::endTx();\n }\n\n // Extrude raw records to objects\n $record_objects = array();\n foreach ($raw_record_set as $raw_record) {\n $record_objects[] = new static($raw_record); \n }\n\n return $record_objects;\n } catch (PDOException $e) {\n self::$databaseHandle->rollback();\n die(\"\\nERROR: \" . $e->getMessage() . \"\\n\");\n }\n }", "public function selectAll($table){\n $requete = \"SELECT * FROM $table\";\n $result = array();\n foreach($this->_dbh->query($requete) as $raw){\n array_push($result,$raw);\n }\n return $result;\n }", "public function queryAll() {\r\n $sql = \"SELECT * FROM $this->table\";\r\n $stmt = ConnectionFactory::prepare($sql);\r\n $stmt->execute();\r\n return $stmt->fetchAll();\r\n }", "public function findAll()\n {\n $this->ensureIsConfigured();\n $classname = $this->getRecordClassname();\n return $classname::find();\n }", "public function getAllData($table_name){\n return $this->getStatement(\"select * from \".$table_name);\n }", "public function selectAll($table)\n {\n $stmt = $this->pdo->prepare(\"select * from {$table}\");\n $stmt->execute();\n return $stmt->fetchAll(PDO::FETCH_CLASS);\n }", "public function getAllByTable($connection, $tablename, $select, $limit, $offset, $where);", "public function get_records(){\n\t\t$records = array();\n\t\t$this->do_db();\n\t\t$tmps\t = $this->last_result;\n\t\t$db\t\t = $this->db;\n\t\twhile($record\t = $db->fetch_array($tmps)){\n\t\t\t$records[] = $record;\n\t\t}\n\t\treturn $records;\n\t}", "public function selectAll($table)\n {\n $statement = $this->pdo->prepare(\"select * from {$table}\");\n\n $statement->execute();\n\n return $statement->fetchAll(PDO::FETCH_CLASS);\n }", "public static function all()\n {\n self::select(self::tableName());\n return self::fetchAll();\n }", "function records( $table_name, $where, $order_by = '', $output = OBJECT ) {\n global $wpdb;\n\n $where = self::where( $where );\n\n $sql = <<< SQL\nSELECT * FROM `{$table_name}`\n{$where}\nORDER BY {$order_by}\nSQL;\n $result = $wpdb->get_results( $sql, $output );\n\n return $result;\n\n }", "public function getAll( $table )\n {\n $query = \"SELECT * FROM $table\";\n return json_encode($this->fetchData( $query ));\n }", "public function getAll()\n {\n $sql = \"SELECT * FROM $this->table\";\n $req = Database::getBdd()->prepare($sql);\n $req->execute();\n return $req->fetchAll();\n }", "function getRecords($limit = false)\n\t{\n\t\tif ($limit !== false)\n\t\t\t$this->setParam(\"limit\", $limit);\n\n\t\t$this->table->getRecords();\n\t}", "function getallrecordbytablename($tablename,$data,$limit = '', $offset = '', $sortby = '', $orderby = '',$conditionarray='')\n {\n \n $this->db->order_by($sortby,$orderby);\n\t\t\n //Setting Limit for Paging\n if( $limit != '' && $offset == 0)\n { $this->db->limit($limit); }\n else if( $limit != '' && $offset != 0)\n {\t$this->db->limit($limit, $offset);\t}\n\n //Executing Query\n $this->db->select($data);\n $this->db->from($tablename);\n if($conditionarray!='')\n {\n $this->db->where($conditionarray);\n }\n $query = $this->db->get();\n if ($query->num_rows() > 0)\n {\n return $query->result_array();\n }\n else\n {\n return array();\n }\n \n }", "function Select_All_Records($table_name) {\r\n global $con;\r\n $sql = \"select * from $table_name\";\r\n try {\r\n $stmt = $con->query($sql);\r\n return $stmt;\r\n } catch (PDOException $e) {\r\n print $e->getMessage();\r\n }\r\n}", "public static function findAll() {\n $cons = \"select * from `\".ApplicationADO::$tableName.\"`\";\n return ApplicationADO::findByQuery( $cons, [] );\n }", "public function all()\n {\n $records = R::findAll( $this->table_name(), \" order by id \");\n\n $object = array_map( function($each_record) {\n return $this->map_reford_to_object( $each_record );\n },\n $records\n );\n\n return array_values( $object );\n }", "public function getRecords($table, $where = NULL,$whereOR = NULL,$order_by=NULL, $num = NULL, $offset = NULL)\n\t{\n\t\t$this->db->select('*');\n\t\t\n\t\tif($where != NULL )\n\t\t{\n\t\t \t$this->db->where($where);\n\t\t}\n \n if($whereOR != NULL){\n $this->db->or_where($whereOR);\n }\n\t\t\n\t\tif($num != NULL || $offset != NULL)\n\t\t{\n\t\t\t$this->db->limit($num, $offset);\n\t\t}\n\t\t\n\t\tif($order_by)\n\t\t{\n\t\t $this->db->order_by($order_by[0], $order_by[1]);\n\t\t}\t\n\t\t\t\n\t\t$query = $this->db->get($table); \n\t\t\n\t\t#print_r($this->db->last_query()); echo '<hr>'; \t\n\t\t\t\t\n\t\tif($query->num_rows > 0 )\n\t\t{ \n\t\t\t$ret = $query->result_array();\n\t\t\t$query->free_result();\n\t\t\treturn $ret;\n\t\t\t\n\t\t}else{ \n\t\t\n\t\t\t$ret = array();\n\t\t\t$query->free_result();\n\t\t\treturn $ret;\n\t\t}\n\t\n $this->db->close();\n\t}", "public function getAll()\n {\n $sql = \"SELECT * FROM \".$this->table;\n $req = Database::getBdd()->prepare($sql);\n $req->execute();\n return $req->fetchAll(PDO::FETCH_OBJ);\n \n }", "public function getAllData($table){\n $sql = \"select * from $table\";\n $this->execute($sql);\n if($this->num_rows() == 0){\n $data = 0;\n }\n else {\n while($datas = $this->getData()){\n $data[] = $datas;\n }\n }\n return $data;\n }", "public function findAll()\n {\n return $this->getTable();\n }", "protected final function fetchRecords()\n {\n $this->query->setLimit(\n (($this->parameters->getCurrentPage() - 1) * $this->parameters->getResultsPerPage()),\n $this->parameters->getResultsPerPage()\n );\n\n $this->data = $this->query->execute()->getAssociative();\n }", "function find($table, $where=\"1=1\", $fields=\"*\", $orderBy=\"1\"){\n\t\tActiveRecord::sql_item_sanizite($table);\n\t\tActiveRecord::sql_sanizite($fields);\n\t\tActiveRecord::sql_sanizite($orderBy);\n\t\t$q = $this->query(\"select $fields from $table where $where order by $orderBy\");\n\t\t$results = array();\n\t\twhile($row=$this->fetch_array($q)){\n\t\t\t$results[] = $row;\n\t\t}\n\t\treturn $results;\n\t}", "public function all()\n {\n $sql = \"SELECT * FROM {$this->table()}\";\n return $this->db->query($sql)->fetchAll();\n }", "public function queryAll(){\n\t\t$sql = 'SELECT * FROM patient_info';\n\t\t$sqlQuery = new SqlQuery($sql);\n\t\treturn $this->getList($sqlQuery);\n\t}", "public function get($table, $fields)\n\t{\n\t\t//print_r($data); print_r($table); print_r($fields); die();\n\t\treturn $table::where($fields)->get();\n\t}", "function get_records($recordType, $params = array(), $limit = 10)\n{\n return get_db()->getTable($recordType)->findBy($params, $limit);\n}", "public function selectAll($tableName)\n\t{\n\t $sql = \"SELECT * FROM $tableName\";\n\t return $this->select($sql);\n\t}", "public function records()\n {\n return $this->hasMany(Record::class);\n }", "public function getDataFromDb($table) {\r\n $sql_query = \"SELECT * FROM $table\";\r\n $result = $this->mysqli->query($sql_query);\r\n if ($result->num_rows > 0) {\r\n while(($resultArray[] = $result->fetch_assoc())|| array_pop($resultArray));\r\n $result->free();\r\n return $resultArray;\r\n }\r\n }", "function getAll($table) {\n $sql = \"select * from {$table}\";\n\n try {\n DB::select($sql);\n } catch(Exception $e) {\n echo \"Error: {$e->getMessage()}\";\n }\n }", "public static function find_all()\n {\n return static::find_by_sql(\"SELECT * FROM \".self::$table_name.\";\");\n }", "public static function find_all(){\n global $database;\n $result_set = static::find_by_sql(\"SELECT * FROM \".static::$table_name);\n return $result_set;\n }", "public function getAll(){\n\t\treturn $this->db->get($this->table);\n\t}", "public function queryAll(){\n\t\t$sql = 'SELECT * FROM recibo';\n\t\t$sqlQuery = new SqlQuery($sql);\n\t\treturn $this->getList($sqlQuery);\n\t}", "function QueryAll()\n\t{\n\t\t$dalSQL = \"select * from \".$this->_connection->addTableWrappers( $this->m_TableName );\n\t\treturn $this->_connection->query( $dalSQL );\n\t}", "protected function all($tableName, $orderBy)\n {\n $sql = \"SELECT * FROM $tableName ORDER BY id $orderBy\";\n $queryData = $this -> connection() -> query($sql);\n\n if ( !empty($queryData->num_rows) ) { /**Jodi $queryData ar vitor data thake tahole return */\n return $queryData;\n }\n }", "public function getRecords(){\n // Get the sql statement\n $sql = $this->getSql($this->filters);\n // Prepare the query\n $stmt = $this->db->query($sql);\n // Fetch values from PDO array\n return $stmt->fetchAll(\\PDO::FETCH_ASSOC);\n }", "public function readAllEavData($table, $key, $id)\n {\n $sql = \"SELECT * FROM \".$this->database.\".\".$table.\" WHERE 1 AND \".$key.\" = $id\";\n // echo $sql;\n return $this->query($sql);\n }", "function get()\n\t{\n\t\tif (empty($this->use_db)) $this->use_db = false; //use default connection\n\t\t$this->sql = 'SELECT * FROM ' . $this->table;\n\t\t$this->apply_filters();\n\t\t$this->apply_sort();\n\t\treturn $this->fetch_records();\n\t}", "protected function query($table)\n {\n return $this->database->table($this->tablePrefix . $table);\n }", "function getRows($table_name)\n {\n $sql = sprintf(\"SELECT * FROM %s\", $table_name);\n $rows = array();\n\n $result = $this->query($sql);\n while($row = $result->fetchArray(SQLITE3_ASSOC))\n {\n array_push($rows, $row);\n }\n\n return $rows;\n }", "public function getAll($tables){\n return $this->db->get($tables)->result();\n }", "public function getAll($tables){\n return $this->db->get($tables)->result();\n }", "public function getAll($tables){\n return $this->db->get($tables)->result();\n }", "public function fetchAll(string $table = null): array\n {\n if($table) {\n $this->table($table);\n }\n $sql = $this->fetchStatement();\n\n $query = $this->query($sql, $this->bindings);\n\n $results = $query->fetchAll();\n\n $this->rows = $query->rowCount();\n\n $this->reset();\n\n return $results;\n }", "public static function all() {\n\t\t$classe = get_called_class();\n\t\t$table = str_replace(\"db_\", \"\", $classe);\n\t\t$liste = db::findAll(db::table($table));\n\t\treturn $liste;\n\t}", "public function getAll()\n {\n $sql = \"SELECT * FROM \" . self::table . \";\";\n\n $conn = $this->dbc->Get();\n $statement = $conn->prepare($sql);\n $statement->execute();\n $data = $statement->fetchAll();\n $conn = null;\n\n return $data;\n }", "public function fetch_all_rows($table=\"\", $where = array()) {\n\t\tif($table != '') {\n\t\t\t$this->db->select('*');\n\t\t\tif(!empty($where)) {\n\t\t\t\t$this->db->where($where);\n\t\t\t}\n\t\t\t$query = $this->db->get($table);\n\t\t\treturn $query->result_array();\n\t\t\t\n\t\t} \n\t\telse \n\t\t{\n\t\t\treturn array();\t\n\t\t}\n \n $this->db->close();\n\t}", "public static function all()\n\t{\n\t\treturn self::new_instance_records()->all();\n\t}", "public function getRecord($connection,$tableName){\n $sql = \"SELECT * FROM $tableName\";\n $pst = $connection->prepare($sql);\n $pst->execute();\n// check if records are there or not\n if($pst!=null){\n// if resultset is not empty return an array\n return $pst;\n\n }\n }", "public function getRecords()\n {\n return $this->records;\n }", "public function getRecords()\n {\n return $this->records;\n }", "static function findAll($table)\n {\n $sql = \"select * from $table,profil where uti_profil = pro_id\";\n $result = self::$link->query($sql);\n return $result->fetchAll();\n }", "public static function getAll(){\n\t\t$sql = \"select * from \".self::$tablename;\n\t\t$query = Executor::doit($sql);\n\t\treturn Model::many($query[0],new TemparioData());\n\t}", "public function findAll(){\n \n\t\t$sql = 'SELECT * FROM ' . self::TABLENAME;\n\n \t$db = new Database(); // se creeaza conexiunea la baza de date\n\t\t$stmt = $db->getConnection()->prepare($sql);\n\t\t$stmt->execute();\n\t\t$results = $stmt->fetchAll();\n\t\n\t\treturn $results; \n }", "public function findAll(){\n \n\t\t$sql = 'SELECT * FROM ' . self::TABLENAME;\n\n \t$db = new Database(); // se creeaza conexiunea la baza de date\n\t\t$stmt = $db->getConnection()->prepare($sql);\n\t\t$stmt->execute();\n\t\t$results = $stmt->fetchAll();\n\t\n\t\treturn $results; \n }" ]
[ "0.74410576", "0.7147173", "0.70371264", "0.69219697", "0.6786432", "0.6738925", "0.67347693", "0.6726891", "0.6696253", "0.6668866", "0.6636875", "0.66187364", "0.6603569", "0.6549312", "0.6549312", "0.6549312", "0.6546207", "0.65085644", "0.6485207", "0.6460762", "0.6446322", "0.6434258", "0.63994366", "0.6394569", "0.63893205", "0.6367233", "0.6363453", "0.6325904", "0.6313007", "0.6295301", "0.62951094", "0.62682503", "0.6266224", "0.62594473", "0.6256113", "0.62518394", "0.62265605", "0.6221386", "0.62093806", "0.6199962", "0.6199528", "0.6183509", "0.6182195", "0.61689574", "0.6160663", "0.61590844", "0.61405456", "0.6140247", "0.61377037", "0.61286235", "0.6119915", "0.6091432", "0.60842544", "0.6082275", "0.6080819", "0.6056375", "0.60560167", "0.6053385", "0.60521716", "0.60513073", "0.6027976", "0.60233045", "0.6019061", "0.60144275", "0.60091686", "0.6008805", "0.60082775", "0.60080516", "0.60003287", "0.5995377", "0.59899676", "0.59827477", "0.5978227", "0.5965522", "0.59617484", "0.5956252", "0.59548783", "0.59398746", "0.5927085", "0.5922053", "0.58778393", "0.5869518", "0.5854657", "0.5848981", "0.5845499", "0.58445495", "0.58433175", "0.58433175", "0.58433175", "0.58405185", "0.5839238", "0.5834806", "0.5830335", "0.58093566", "0.58079106", "0.57870084", "0.57870084", "0.57810706", "0.57725203", "0.5771482", "0.5771482" ]
0.0
-1
Returns whether or not the specified column exists within the Record.
public function offsetExists($offset) { $result = false; if($this->_data[$offset]) { $result = true; } return $result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function columnExists($column)\n {\n return isset($this->columns[$column]);\n }", "private function has_column($column)\n {\n $object_vars = get_object_vars($this);\n\n //check if the key exists\n return array_key_exists($column, $object_vars);\n }", "function has_column($column_name)\n {\n if (empty($this->object->_table_columns)) {\n $this->object->lookup_columns();\n }\n return array_search($column_name, $this->object->_table_columns) !== FALSE;\n }", "public function columnExists( $tablename, $columnname );", "public function has(string $col) : bool;", "function column_exists($column, $table)\n {\n $exists = false;\n $this->container->db->setQuery(\"SHOW columns FROM `{$table}`\");\n $columns = $this->contaner->db->loadAssocList();\n\n if (is_array($columns)) while (list ($key, $val) = each($columns)) {\n if ($val['Field'] == $column) {\n $exists = true;\n break;\n }\n }\n\n return $exists;\n }", "public function hasColumn($column) {\n\t\t$returnValue = FALSE;\n\t\tif (array_key_exists($column, $this->_allowedColumns)) {\n\t\t\t$returnValue = TRUE;\n\t\t}\n\n\t\treturn $returnValue;\n\t}", "protected function checkColumnExists($column) {\n\t\tif (array_key_exists($column, $this->columns)) {\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}", "function mf_mysql_column_exist($table_name, $column_name,$dbh) {\r\n\r\n\t\t$query = \"SHOW COLUMNS FROM $table_name LIKE '$column_name'\";\r\n\t\t$sth = mf_do_query($query,array(),$dbh);\r\n\t\t$row = mf_do_fetch_result($sth);\r\n\t\t\r\n\t\tif(!empty($row)){\r\n\t\t\treturn true;\t\r\n\t\t}else{\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "public function column_exists($table_name, $column, $dbname = null)\n {\n $columns = $this->columns($table_name, $dbname);\n return sizeof(array_intersect($columns, (array) $column)) === sizeof((array) $column);\n }", "public function hasColumn($tableName, $columnName);", "static public function hasColumn($table, $column)\n {\n return self::call(__FUNCTION__ , func_get_args());\n }", "public function hasColumn($column)\n {\n $table = $this->container->make($this->getModelName())->getTable();\n\n if (!isset($this->db_columns[$table])) {\n $this->db_columns[$table] = \\Schema::getColumnListing($table);\n }\n return in_array($column, $this->db_columns[$table]);\n }", "public function columnExists($table, $column)\n {\n return $this->query($table);\n }", "public function hasColumn($name);", "function columnExists($tableName, $columnName) {\n\t\t$siteDao =& DAORegistry::getDAO('SiteDAO');\n\t\t$dict = NewDataDictionary($siteDao->getDataSource());\n\n\t\t// Make sure the table exists\n\t\t$tables = $dict->MetaTables('TABLES', false);\n\t\tif (!in_array($tableName, $tables)) return false;\n\n\t\t// Check to see whether it contains the specified column.\n\t\t// Oddly, MetaColumnNames doesn't appear to be available.\n\t\t$columns = $dict->MetaColumns($tableName);\n\t\tforeach ($columns as $column) {\n\t\t\tif ($column->name == $columnName) return true;\n\t\t}\n\t\treturn false;\n\t}", "public function offsetExists($columnName)\n {\n $row = current($this->_rows);\n return array_key_exists($columnName, $row);\n }", "public function hasColumn($columnName)\r\n {\r\n }", "public function checkColumnExists($fieldKey)\n {\n\n if(in_array($fieldKey, $this->_tableFields)) {\n return true;\n }\n return false;\n }", "public function __isset($columnName)\n {\n return array_key_exists($columnName, $this->data);\n }", "public function columnExists($columnName)\n {\n return $this->getChildren()->controlExists($columnName, 'ContainerModelBase');\n }", "public function columnExists(Property $property);", "public function hasColumn($column)\n {\n $parameters = [];\n $parameters['handler'] = 'aql';\n $parameters['explanation'] = \"Checking if any document within the table has the '\"\n .implode(', ', (array) $column)\n .\"' column(s).\";\n $parameters['column'] = $column;\n\n return $this->addCommand('hasAttribute', $parameters);\n }", "function verify_column( $column, $table, $db = null ) {\n\n\t\t$columns = $this->get_columns( $table, $db );\n\t\treturn in_array( $column, $columns );\n\n\t}", "public function hasColumn($name) {\n $info = $this->_data->getDeepValue('columns/' . $name);\n return !empty($info);\n }", "public function has(array $data, $column)\n {\n if (strpos($column, '.')) {\n list($model, $column) = explode('.', $column);\n return isset($data[$model][$column]) || isset($data[\"{$model}.{$column}\"]);\n }\n return isset($data[$this->model->alias][$column]) || isset($data[\"{$this->model->alias}.{$column}\"]) || isset($data[$column]);\n }", "public function columnExists($name, $in_database = true)\n\t{\n\t\t$name = (string)$name;\n\n\t\tif ( $in_database ) {\n\t\t\treturn $this->createColumnReflection($name, array())->exists();\n\t\t}\n\n\t\treturn isset($this->columns[$name]);\n\t}", "public function hasColumn(string $table, string $column): bool\n {\n return in_array(\n strtolower($column), array_map('strtolower', $this->getColumnListing($table))\n );\n }", "public function hasColumn(string $id): bool\r\n {\r\n return array_key_exists($id, $this->columns);\r\n }", "private function columnExists($column_name, $table_columns) {\r\n foreach ($table_columns as $column) {\r\n if($column_name == $column[\"Field\"]) return true;\r\n }\r\n return false;\r\n }", "public function hasProperty($column)\n\t{\t\n\t\tif(!$this->columns->isKey($column))\n\t\t\tthrow new NoColumnInTableException($column, $this->table_name());\n\t\treturn true;\n\t}", "public function exists(string $column): bool\n {\n if (trim($column) === '') {\n throw new Exception\\InvalidArgumentException(__METHOD__ . ' Column name cannot be empty');\n }\n\n return $this->columns->offsetExists($column);\n }", "function issetTableColumn($table_name, $column_name)\n{\n global $wpdb;\n $columns = $wpdb->get_results(\"SHOW COLUMNS FROM \" . $table_name, ARRAY_A);\n foreach ($columns as $column) {\n if ($column['Field'] == $column_name) {\n return true;\n }\n }\n}", "protected static function columnExists($sTable, $sColumn)\n {\n $oConfig = Registry::getConfig();\n $sDbName = $oConfig->getConfigParam('dbName');\n $sSql = 'SELECT 1\n FROM information_schema.COLUMNS\n WHERE\n TABLE_SCHEMA = ?\n AND TABLE_NAME = ?\n AND COLUMN_NAME = ?';\n\n $oDb = DatabaseProvider::getDb();\n\n return (bool)$oDb->getOne($sSql, array($sDbName, $sTable, $sColumn));\n }", "public function isColumnExist(string $table = null, string $column = null): int\n {\n if (!$table || !$column) {\n return -1;\n }\n\n $table = \\HtmlAnalyzer::sanitizeAndRemoveTags($table);\n $column = \\HtmlAnalyzer::sanitizeAndRemoveTags($column);\n\n $query = \"SELECT COLUMN_NAME\n FROM INFORMATION_SCHEMA.COLUMNS\n WHERE TABLE_SCHEMA = :dbName\n AND TABLE_NAME = :tableName\n AND COLUMN_NAME = :columnName\";\n\n $stmt = $this->prepare($query);\n\n try {\n $stmt->bindValue(':dbName', $this->dsn['database'], \\PDO::PARAM_STR);\n $stmt->bindValue(':tableName', $table, \\PDO::PARAM_STR);\n $stmt->bindValue(':columnName', $column, \\PDO::PARAM_STR);\n $stmt->execute();\n $stmt->fetch();\n\n if ($stmt->rowCount()) {\n return 1; // column already exist\n }\n return 0; // column to add\n } catch (\\PDOException $e) {\n $this->logSqlError($query, $e->getMessage());\n return -1;\n }\n }", "public static function hasColumn($table, $column)\n {\n $column = str_replace($table.'.', '', $column);\n $minutes = Config::get('lara_util.cache.time');\n\n // if all cache is disabled\n if ($minutes === false) {\n return Schema::hasColumn($table, $column);\n }\n\n $columnList = Cache::remember('table_schema_' . $table, $minutes, function () use ($table) {\n return Schema::getColumnListing($table);\n });\n\n if (in_array($column, $columnList)) {\n return true;\n }\n\n return false;\n }", "public function isColumn($key)\n {\n return in_array(strtolower($key), $this->columns());\n }", "protected function hasHook($column)\n {\n // If developer provided column prefixed with table name we will\n // not even try to map the column, since obviously the value\n // refers to the actual column name on the queried table.\n return is_string($column) && strpos($column, '.') === false;\n }", "function spr_exclude_column_found($column) {\nglobal $spr_exclude_db_debug;\n\n\t$rs = safe_query('SELECT * FROM '.safe_pfx('txp_section'),$spr_exclude_db_debug);\n\t$a = nextRow($rs);\n\treturn array_key_exists($column, $a);\n}", "private function checkColumn($columnName,\n $table = TABLE_ORDERS_SHOPGATE_ORDER\n ) {\n $result = xtc_db_query(\"show columns from `{$table}`\");\n\n $exists = false;\n while ($field = xtc_db_fetch_array($result)) {\n if ($field['Field'] == $columnName) {\n $exists = true;\n break;\n }\n }\n\n return !$exists;\n }", "public static function has($uuid, $column = null) {\n\n\t\tif(is_null($column) || $column == 'id') {\n\t\t\treturn isset(static::$cache[$uuid]) && ! empty(static::$cache[$uuid]);\n\t\t} else if(isset(static::$mapping[$column][$uuid]))\n\t\t\treturn static::has(static::$mapping[$column][$uuid]);\n\t\treturn false;\n\t}", "private function columnExistsInTable($columnName, $columnsFromDatabase) {\n foreach ($columnsFromDatabase as $colFromDb) {\n if ($columnName === $colFromDb->Field) {\n return true;\n }\n }\n //if we got to here, the column is NOT in the db\n return false;\n }", "protected function hasColumn($name)\n\t{\n\t\t$columns = $this->getAllColumnsNames();\n\n\t\treturn in_array($name, $columns);\n\t}", "public function isAlias($column)\n {\n $aliases = array_flip($this->aliases);\n return isset($aliases[$column]);\n }", "function _mysql_field_exists($table, $field) {\n $sql = \"SHOW COLUMNS FROM $table LIKE '$field'\";\n $r = db_query($sql);\n $row = db_row($r['result']);\n\n if($row) {\n return true;\n }\n return false;\n}", "function f_fieldExists($link, $table, $column, $column_attr = \"VARCHAR( 255 ) NULL\") {\r\n $exists = false;\r\n $columns = mysqli_query($link, \"SHOW COLUMNS FROM $table LIKE '\".$column.\"'\");\r\n //ferror_log(\"SQL: $sql \". \"returns \". $num_rows . \" rows.\");\r\n $exists = ( mysqli_num_rows($columns) )?TRUE:FALSE;\r\n if (!$exists) {\r\n ferror_log(\"ALTER TABLE `$table` ADD `$column` $column_attr\");\r\n if (mysqli_query($link, \"ALTER TABLE `$table` ADD `$column` $column_attr\")) {\r\n return TRUE;\r\n }\r\n } else {\r\n return TRUE;\r\n }\r\n return FALSE;\r\n}", "public function hasColumns(){\n return $this->_has(3);\n }", "public function isFieldPresentByColumnTable($columnName, $tableName)\n\t{\n\t\tif (!isset($this->_fieldby_tblcol_cache[$tableName])) {\n\t\t\t$rows = (new App\\Db\\Query())->select(['columnname'])->from('vtiger_field')->where(['tablename' => $tableName, 'presence' => [0, 2]])->column();\n\t\t\tif ($rows) {\n\t\t\t\t$this->_fieldby_tblcol_cache[$tableName] = $rows;\n\t\t\t}\n\t\t}\n\t\t// If still the field was not found (might be disabled or deleted?)\n\t\tif (!isset($this->_fieldby_tblcol_cache[$tableName])) {\n\t\t\treturn false;\n\t\t}\n\t\treturn in_array($columnName, $this->_fieldby_tblcol_cache[$tableName]);\n\t}", "function field_exists($field) {\n\t\tif (method_exists($this, 'set_'.$field)) {\n\t\t\treturn true;\n\t\t}\n\n\t\tif ($this->columns && key_exists($field, $this->columns)) {\n\t\t\treturn true;\n\t\t}\n\n\t\tif(isset($this->associations[$field])) {\n\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}", "public function tableColumnExists($tableName, $columnName)\n {\n $this->init();\n $result = $this->Execute(\"SHOW COLUMNS FROM $tableName\");\n if (!$result) {\n //probably table does not exist?\n return 0;\n }\n while ($row = $result->FetchRow()) {\n if (in_array($columnName, $row)) {\n return true;\n }\n }\n return false;\n }", "public function hasField($fieldName) {\n\t\t// @todo naive implementation, improve me according to the needs. Check if info is not yet in cache.\n\t\treturn isset($this->tca['columns'][$fieldName]) || in_array($fieldName, array('uid'));\n\t}", "public static function tableHasColumn(DomElement $table, $columnName)\n {\n // Is this a table node?\n if ($table->tagName !== 'table') {\n $msg = 'tableHasColumn\\'s first argument must be a table node.';\n throw new DALParserException($msg);\n }\n\n /*\n Check UDTs ? If yes, then change the fn name to schemaHasColumn().\n */\n\n // Check Table Columns.\n $cols = $table->getElementsByTagName('columns')->item(0);\n if ($cols !== NULL) {\n $cols = $cols->getElementsByTagName('column');\n foreach ($cols as $col) {\n if ($col->nodeValue === $columnName) {\n return TRUE;\n }\n }\n }\n\n return FALSE;\n\n }", "public static function isValidColumn($model, $column)\n {\n // check if the model exists\n try\n {\n $table = Doctrine::getTable($model);\n }\n catch (Exception $e)\n {\n return false;\n }\n \n // Do we have relations in the column name?\n if (ullGeneratorTools::hasRelations($column))\n {\n $relations = UllGeneratorTools::relationStringToArray($column);\n $nativeColumn = array_pop($relations);\n $finalModel = UllGeneratorTools::getFinalModelFromRelations($model, $relations);\n \n return self::isValidColumn($finalModel, $nativeColumn);\n }\n \n // For native columns (without relations)\n else\n {\n if ($table->hasColumn($column))\n {\n return true;\n }\n \n if ($table->hasRelation('Translation'))\n {\n $finalModel = UllGeneratorTools::getFinalModelFromRelations($model, 'Translation');\n return self::isValidColumn($finalModel, $column);\n }\n }\n \n return false;\n }", "public function findColumn(string $column);", "public function has($_field);", "public function isAvailable($column, $value){\n\n $vars = $this->theHand->fetchWithConditions($this->table,$column, \"$column='$value'\");\n\n return count($vars)==0;\n\n\n }", "protected function checkInModal($column){\n\n if($this->model->where($column, '=',$this->token)->exists()){\n return true;\n }\n return false;\n }", "public function hasField(string $field): bool\n {\n $schema = $this->getSchema();\n\n return $schema->getColumn($field) !== null;\n }", "public function hasField($fieldName)\r\n {\r\n $result = FALSE;\r\n $names = $this->getColumnNames();\r\n foreach($names as $name) {\r\n if($name == $fieldName) {\r\n return TRUE;\r\n }\r\n }\r\n return $result;\r\n }", "protected function checkColumn($table, $column, $alias)\n {\n foreach ($this->columns as $col) {\n if($col->table->alias == $table->alias && $col->name == $column) return true;\n if(strlen($alias) && $col->alias == $alias) throw new \\Exception('WpSqlBuilder - Trying to add two different columns with same alias \"'.$alias.'\".', 1);\n }\n return false;\n }", "public function hasField(string $field): bool;", "function sql_existTableColumnName($tablename, $ColumnName, $casesensitive=False)\n {\n $names = sql_getTableColumnNames($tablename);\n\n if (count($names)>0)\n {\n if ($casesensitive)\n return in_array( $ColumnName , $names );\n else\n {\n foreach($names as $v)\n if ( strcasecmp( $ColumnName , $v ) == 0 )\n {\n return True;\n }\n }\n }\n return False;\n }", "public function hasField($field)\n {\n return array_key_exists($field, $this->fieldsByName);\n }", "public function hasColumnNumber(){\n return $this->_has(5);\n }", "function diy_check_table_columns($table_name, $field_name, $db_connection = 'mysql') {\n\t\t$connection = DB::connection($db_connection);\n\t\treturn $connection->getSchemaBuilder()->hasColumn($table_name, $field_name);\n\t}", "public function __isset($name)\n {\n return in_array($name, $this->columns);\n }", "private function has_attribute($attribute) {\n // Will return true or false\n return array_key_exists($attribute, $this->attributes());\n }", "public function offsetExists($field)\n {\n return $this[$field] !== null;\n }", "public function exists()\r\n {\r\n $sql = $this->builder->exists($this);\r\n\r\n $rs = $this->db->select_one($sql, $this->get_binds_values());\r\n\r\n $row = (array) $rs;\r\n\r\n return (bool) $row['exist'];\r\n }", "public function exists($field)\n {\n return $this->indexOfKey($field)>=0;\n }", "public function hasColumns($columns) {\n\t\t$returnValue = TRUE;\n\t\tforeach ($columns as $column) {\n\t\t\tif (!array_key_exists($column, $this->_allowedColumns)) {\n\t\t\t\t$returnValue = FALSE;\n\t\t\t}\n\t\t}\n\n\t\treturn $returnValue;\n\t}", "public function existsField($key){ return array_key_exists($key,$this->field_map); }", "private function isField($fld)\n {\n return isset($this->columns->{$fld});\n }", "public function has($uid)\n {\n $options = $this->getOptions();\n $stmt = $this->adapter->query(\n sprintf('SELECT %s FROM %s WHERE %s = \"%s\"',\n $options['column_value'],\n $options['table'],\n $options['column_key'],\n $uid\n ), Adapter::QUERY_MODE_EXECUTE\n );\n return $stmt->count() > 0;\n }", "public function has($attribute);", "private function has_attribute($attribute)\n {\n // Will return true or false\n return array_key_exists($attribute, $this->attributes());\n }", "private function has_attribute($attribute) {\n\t // Will return true or false\n\t return array_key_exists($attribute, $this->attributes());\n\t}", "public function exist(string $key): bool\n {\n return $this->getTable()->exist($key);\n }", "public function is_exists(Array $columns, Array $records, $printSQL = false) {\n\t\treturn $this->get_database_utils ()->is_exists ( $this->get_table (), $columns, $records, $printSQL );\n\t}", "public function is_exists(Array $columns, Array $records, $printSQL = false) {\n\t\treturn $this->get_database_utils ()->is_exists ( $this->get_table (), $columns, $records, $printSQL );\n\t}", "public function is_exists(Array $columns, Array $records, $printSQL = false) {\n\t\treturn $this->get_database_utils ()->is_exists ( $this->get_table (), $columns, $records, $printSQL );\n\t}", "public static function exists(array $option = []): bool\n {\n $pdo = Config::getInstance()->getPdo();\n $column = (isset($option['column'])) ? $option['column'] : static::class::COLUMN;\n $from = (isset($option['from'])) ? $option['from'] : static::class::TABLE;\n $column_type = $column_value = $column_key = [];\n\n //\n\n if (isset($option['index']))\n {\n $column_type[] = 'index';\n $column_value += $option['index'];\n }\n\n //\n\n if ($column_value !== [])\n {\n $column_key = Sanitize::column($column_type, $column, $column_value);\n }\n\n //\n\n if (isset($column_key['index']))\n {\n $statement = $pdo->prepare('SELECT 1 FROM ' . $from . ' WHERE ' . $column_key['index'] . ' LIMIT 1');\n $statement->execute($column_value);\n\n //\n\n return (bool) $statement->fetchColumn();\n }\n else\n {\n return false;\n }\n }", "public function offsetExists($attribute)\n {\n return isset($this->attributeList[$attribute]);\n }", "public function hasField($field){\n\t\t#if[compile-time]\n\t\tCoreType::assertString($field);\n\t\t#endif\n\t\t$this->_connect();\n\t\t$fields = $this->_getAttributes();\n\t\treturn in_array($field, $fields);\n\t}", "public static function has($field)\n {\n $data = self::getData();\n return isset($data[$field]);\n }", "public static function ghReceiptExist(object $obj, $column)\n {\n return in_array($obj->merge->get_help_id, array_column($obj->receiptUploads->toArray(), $column));\n }", "public function fieldExists($field)\n\t{\n\t\treturn array_key_exists($field, $this->fields);\n\t}", "public function fieldExists($field)\n\t{\n\t\treturn array_key_exists($field, $this->fields);\n\t}", "public function CheckExitColumn($table,$col){\n if(trim($col) == '') return array();\n $db_column= new db_query(\"SHOW COLUMNS FROM \" . $table . \" LIKE '\" . trim($col) . \"'\");\n //$result = mysqli_query();\n $exists = mysqli_fetch_assoc($db_column->result);\n unset($db_column);\n if(!empty($exists)){\n return $exists;\n }\n return array();\n }", "public function testIsColumnAvailable()\n {\n /* ----------------------------------------------------\n * in below $csvData var we have faked the header data\n * -----------------------------------------------------*/\n $csvData = [['first_name','last_name','address']]; \n \n $column = 'first_name';\n\n /*\n |--------------------------------------------------------------------------\n | Success Scenario\n |--------------------------------------------------------------------------\n |\n | Let's test the success scenario\n |\n */\n\n $resp = $this->isColumnAvailable($column, $csvData);\n\n /* ------------------------------------------------------------------------------\n * we compare the response of isColumnAvailable in case when column is available\n * -------------------------------------------------------------------------------*/\n $this->assertEqualsCanonicalizing($resp,[\"key\"=>0,\"name\"=>\"first_name\"]);\n \n\n /*\n |--------------------------------------------------------------------------\n | Failure Scenario\n |--------------------------------------------------------------------------\n |\n | Let's test the failure scenario\n |\n */\n\n $resp = $this->isColumnAvailable('unknown_column', $csvData);\n\n /* ----------------------------------------------------------------------------------\n * we compare the response of isColumnAvailable method in case when column not found\n * -----------------------------------------------------------------------------------*/\n $this->assertFalse($resp);\n \n }", "public function offsetExists($key)\n\t{\n\t\treturn isset($this->attributes[$key]);\n\t}", "public function fieldExists($table, $field) {\n if ($this->tableExists($table) && isset($this->schema[$table]['fields'][$field])) {\n return true;\n }\n else return false;\n }", "public function existsValue($columnName, $columnValue)\n\t{\n\t\ttry {\n\t\t\t$result = false;\n\t\t\t$this->SQLBuilder->selectDuplicate();\n\t\t\t$this->SQLBuilder->whereValue($columnName);\n\t\t\t$sql = $this->SQLBuilder->getSQL();\n\t\t\t$stmt = $this->pdo->prepare($sql);\n\t\t\t\n\t\t\tif (is_int($columnValue)) {\n\t\t\t\t$stmt->bindParam($columnName, $columnValue, \\PDO::PARAM_INT);\n\t\t\t} else {\n\t\t\t\t$stmt->bindParam($columnName, $columnValue, \\PDO::PARAM_STR);\n\t\t\t}\n\t\t\t\n\t\t\tif ( $stmt->execute() ) {\n\t\t\t\t$row = $stmt->fetch(\\PDO::FETCH_NUM);\n\t\t\t\tif ( !empty($row) && $row[0] > 0) {\n\t\t\t\t\t$result = true;\n\t\t\t\t} else $result = false;\n\t\t\t} else $result = false;\n\t\t\t\n\t\t} catch (\\PDOException $e) {\n\t\t\tthrow new StudentException('Ошибка при получении данных студента', 0, $e);\n\t\t}\n\t\treturn $result;\n\t}", "protected function _hasHeader() {\n return (isset ($this->colName) && !empty ($this->colName));\n }", "public function hasField($fieldName): bool;", "public function isColumnModified($col)\n {\n return $this->modifiedColumns && isset($this->modifiedColumns[$col]);\n }", "public function isColumnModified($col)\n {\n return $this->modifiedColumns && isset($this->modifiedColumns[$col]);\n }", "public function isColumnModified($col)\n {\n return $this->modifiedColumns && isset($this->modifiedColumns[$col]);\n }", "public function isColumnModified($col)\n {\n return $this->modifiedColumns && isset($this->modifiedColumns[$col]);\n }", "public function isColumnModified($col)\n {\n return $this->modifiedColumns && isset($this->modifiedColumns[$col]);\n }", "public function isColumnModified($col)\n {\n return $this->modifiedColumns && isset($this->modifiedColumns[$col]);\n }" ]
[ "0.81806713", "0.81380135", "0.80992347", "0.8025812", "0.7982285", "0.7877943", "0.78078014", "0.77707493", "0.7560088", "0.7527362", "0.7403156", "0.7332959", "0.7305908", "0.72874844", "0.7272147", "0.7254963", "0.71820337", "0.71793973", "0.7168287", "0.71653414", "0.7164836", "0.71643484", "0.7122628", "0.70926535", "0.7020259", "0.7018947", "0.70165694", "0.70157564", "0.7011657", "0.7011236", "0.6996789", "0.6977925", "0.69637895", "0.69128716", "0.6912826", "0.6824326", "0.6776046", "0.6726127", "0.66987526", "0.6671548", "0.6640327", "0.660305", "0.65968645", "0.65476906", "0.65432674", "0.6517905", "0.65021205", "0.6476981", "0.64742327", "0.6467019", "0.6419868", "0.6344373", "0.6305618", "0.62931246", "0.6290741", "0.6265343", "0.6249693", "0.6247929", "0.62191427", "0.62031096", "0.618284", "0.61704165", "0.6167264", "0.6167071", "0.6146429", "0.61464214", "0.6134029", "0.6106274", "0.6104434", "0.6099053", "0.60718143", "0.606359", "0.6050253", "0.6035332", "0.60292315", "0.6022145", "0.6022015", "0.6009821", "0.6006249", "0.6006249", "0.6006249", "0.6001199", "0.5988546", "0.59774697", "0.5965147", "0.5945116", "0.59321165", "0.59321165", "0.59314764", "0.59303916", "0.59262", "0.5916397", "0.5912038", "0.5901007", "0.5897739", "0.5895865", "0.5895865", "0.5895865", "0.5895865", "0.5895865", "0.5895865" ]
0.0
-1
Returns the requested column value from the Record.
public function offsetGet($offset) { if(!$this->offsetExists($offset)) { throw new \Bedrock\Model\Record\Exception('The requested column "' . $offset . '" is not a part of this record.'); } return $this->_data[$offset]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getRecordCol($index) {\n return $this->records[$index]->getCol();\n }", "public function value($column)\r\n {\r\n $rs = (array) $this->first();\r\n return $rs[$column];\r\n }", "function getValueFromField()\r\n\t{\r\n\t\treturn $this->row[ key( $this->mapping ) ];\r\n\t}", "function getValueFromField()\n {\n return $this->current_row[ key( $this->mapping ) ];\n }", "function GetColVal($col_name) {\n\t\treturn $this->$col_name;\n\t}", "protected function get_column() {\n\n\t\t$column = $this->foreign_column ?: $this->foreign_table->get_primary_key();\n\t\t$columns = $this->foreign_table->get_columns();\n\n\t\treturn $columns[ $column ];\n\t}", "public function getColumn() { return $this->column; }", "public function getColumnValue($record, $column)\n {\n $value = $this->getColumnValueRaw($record, $column);\n\n if (method_exists($this, 'eval'. studly_case($column->type) .'TypeValue')) {\n $value = $this->{'eval'. studly_case($column->type) .'TypeValue'}($record, $column, $value);\n }\n else {\n $value = $this->evalCustomListType($column->type, $record, $column, $value);\n }\n\n /*\n * Apply default value.\n */\n if ($value === '' || $value === null) {\n $value = $column->defaults;\n }\n\n /**\n * @event backend.list.overrideColumnValue\n * Overrides the column value in a list widget.\n *\n * If a value is returned from this event, it will be used as the value for the provided column.\n * `$value` is passed by reference so modifying the variable in place is also supported. Example usage:\n *\n * Event::listen('backend.list.overrideColumnValue', function($listWidget, $record, $column, &$value) {\n * $value .= '-modified';\n * });\n *\n * Or\n *\n * $listWidget->bindEvent('list.overrideColumnValue', function ($record, $column, $value) {\n * return 'No values for you!';\n * });\n *\n */\n if ($response = $this->fireSystemEvent('backend.list.overrideColumnValue', [$record, $column, &$value])) {\n $value = $response;\n }\n\n return $value;\n }", "public function column(string $sql, $params = null)\n\t{\n\t\t$columnValue = null;\n\t\t\n\t\ttry {\n\t\t\t$preparedStatement = $this->_instance->prepare($sql);\n\t\t\t$preparedStatement->execute($params);\n\t\t\t$resultSet = $preparedStatement->fetch(PDO::FETCH_ASSOC);\n\t\t\t$columnValue = $resultSet[0];\n\t\t} catch(PDOException $e) {\n\t\t\tthrow new Exception('Could not fetch a record:<br>' . $e->getMessage());\n\t\t}\n\t\t\n\t\treturn $columnValue;\n\t}", "public function getColumn()\n {\n return $this->get('Column');\n }", "function Get($col)\n {\n return $this->row ? $this->row[$col] : NULL;\n }", "public function getColumn()\n {\n return $this->column;\n }", "public function getColumn()\n {\n return $this->column;\n }", "public function value($column)\n {\n $result = (array) $this->first([$column => 1]);\n\n return count($result) > 0 ? $result[$column] : null;\n }", "public function getColumn(): string\n {\n return $this->_column;\n }", "public function getColumnValueRaw($record, $column)\n {\n $columnName = $column->columnName;\n\n /*\n * Handle taking value from model relation.\n */\n if ($column->valueFrom && $column->relation) {\n $columnName = $column->relation;\n\n if (!array_key_exists($columnName, $record->getRelations())) {\n $value = null;\n }\n elseif ($this->isColumnRelated($column, true)) {\n $value = $record->{$columnName}->lists($column->valueFrom);\n }\n elseif ($this->isColumnRelated($column) || $this->isColumnPivot($column)) {\n $value = $record->{$columnName}\n ? $column->getValueFromData($record->{$columnName})\n : null;\n }\n else {\n $value = null;\n }\n }\n /*\n * Handle taking value from model attribute.\n */\n elseif ($column->valueFrom) {\n $value = $column->getValueFromData($record);\n }\n /*\n * Otherwise, if the column is a relation, it will be a custom select,\n * so prevent the Model from attempting to load the relation\n * if the value is NULL.\n */\n else {\n if ($record->hasRelation($columnName) && array_key_exists($columnName, $record->attributes)) {\n $value = $record->attributes[$columnName];\n // Load the value from the relationship counter if useRelationCount is specified\n } elseif ($column->relation && @$column->config['useRelationCount']) {\n $value = $record->{\"{$column->relation}_count\"};\n } else {\n $value = $record->{$columnName};\n }\n }\n\n /**\n * @event backend.list.overrideColumnValueRaw\n * Overrides the raw column value in a list widget.\n *\n * If a value is returned from this event, it will be used as the raw value for the provided column.\n * `$value` is passed by reference so modifying the variable in place is also supported. Example usage:\n *\n * Event::listen('backend.list.overrideColumnValueRaw', function($listWidget, $record, $column, &$value) {\n * $value .= '-modified';\n * });\n *\n * Or\n *\n * $listWidget->bindEvent('list.overrideColumnValueRaw', function ($record, $column, $value) {\n * return 'No values for you!';\n * });\n *\n */\n if ($response = $this->fireSystemEvent('backend.list.overrideColumnValueRaw', [$record, $column, &$value])) {\n $value = $response;\n }\n\n return $value;\n }", "function GetRowColumn($row,$column){\n\t\t\treturn @mysql_result($this->result,$row,\"$column\");\n\t\t}", "public function getColumn(): string\n {\n return $this->column;\n }", "public function getValue(BasicRecord $record = null);", "function Get($col)\n {\n return isset($this->row) ? $this->row[$col] : null;\n }", "function getfield($field){\n\n\t\treturn($this->record[$field]);\n\t}", "public function toValue() {\r\n\t\treturn $this->PDOStatement->fetchColumn();\r\n\t}", "public function get_value() {\n\t\t$row = $this->get_row();\n\t\tif ($row) {\n\t\t\treturn current($row);\n\t\t}\n\t}", "public function fetchColumn() {\n if ($this->result === true) {\n return false;\n }\n\n // Are we running PHP >=8.1?\n if (PHP_VERSION_ID >= 80100) {\n $value = $this->result->fetch_column();\n return ($value === null || $value === false) ? $value : (string) $value;\n }\n\n // Fallback to traditional approach\n $row = $this->result->fetch_row();\n return $row ? $row[0] : false;\n }", "public function fetchColumn(int $column = 0);", "protected function getValue( $column ) {\n\t\tif( $this->isDirty() ) { $this->executeQuery(); }\n\n\t\tif( count( $this->_recordset ) == 0 )\n\t\t\tthrow new Exception( \"Attempting to access property \\\"{$column}\\\" in empty recordset.\" );\n\n\t\tif( ! array_key_exists( $this->_currentRow, $this->_recordset ) )\n\t\t\tthrow new Exception( \"Attempting to access property \\\"{$column}\\\" at unkown recordset offset \\\"{$this->_currentRow}\\\".\" );\n\n\t\t//If it's an actual boolean field, return the cooresponding php boolean value\n\t\tif( $this->getTable()->getColumn( $column )->getDataType() == DATA_TYPE_BOOL ) {\n\t\t\tif( $this->_recordset[ $this->_currentRow ][ $column ] == Kwerry::true() ) {\n\t\t\t\treturn true;\n\t\t\t} else if( $this->_recordset[ $this->_currentRow ][ $column ] == Kwerry::false() ) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\treturn( $this->_recordset[ $this->_currentRow ][ $column ] );\n\t}", "public function getValue( $key ) {\n\t\treturn $this->columnSchema[ $key ];\n\t}", "public function getCol()\n {\n return $this->col;\n }", "function getCol($sql){\n\t\t$res_array = $this->query($sql);\n\t\tif (array_key_exists(0, $res_array) AND array_key_exists(0, $res_array[0])){\n\t\t\treturn $res_array[0][0];\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public function getDataColumn()\n {\n return $this->dataColumn;\n }", "function getValue(int $field);", "public function fetchColumn($columnIndex = 0);", "public static function get_column($col)\n\t{\n\t\ttry\n\t\t{\n\t\t\t$devices = DB::table('devices')->get($col);\n\t\t\treturn $devices;\n\t\t}\n\n\t\tcatch (Exception $e)\n\t\t{\n\t\t\tLog::write('error', $e->getMessage());\n\t\t\tthrow $e;\t\t\t\n\t\t}\n\t}", "public function getValue($value, $column)\n {\n $val = '';\n if (isset($value[$column['name']])) {\n $val = $value[$column['name']];\n }\n return $val;\n }", "public static function get_column_value_for_id($user_id, $id, $table, $column_name)\n {\n $database = Database::instance();\n $sql = \"SELECT \" . $column_name . \" FROM \" . $table . \" WHERE active = 1 AND user_id = \" . $user_id . \" AND id = \" . $id;\n $query = $database->prepare($sql);\n $query->execute();\n $result = $query->fetch(\\PDO::FETCH_ASSOC);\n $query->closeCursor();\n if($result === false || $result === null) {\n $http_response = HttpFailCodes::http_response_fail()->get_single_column_value;\n $http_response->message = \"There was a problem getting the \" . $column_name . \".\";\n APIService::response_fail($http_response);\n }else{\n return $result[$column_name];\n }\n }", "public function getColumn($get)\n\t{\n\t\tif (!array_key_exists($get, $this->row))\n\t\t\tthrow new InternalException(\"row $get doesn't exist\");\n\t\treturn $this->row[$get];\n\t}", "public function column($query, $params = NULL, $key = 0)\n\t{\n\t\tif($statement = $this->query($query, $params))\n\t\t\treturn $statement->fetchColumn($key);\n\t}", "public function getColumn($column)\n {\n return $this->allColumns[$column];\n }", "public function column() : int\n {\n return $this->column;\n }", "function getValue( $colValueName, $tblName, $whereColumn, $passingId) { // selected column name, table name, for where condition, passing id for where\n\t\n\tglobal $dbc;\n $sql_get = \"SELECT $colValueName FROM $tblName WHERE $whereColumn='\".$passingId.\"'\";\n\t\n\t$getValue = $dbc;\n\t$getValue->query($sql_get);\n\t$getValue->next_record();\n\n\t$rowValue = $getValue->rowdata();\n\t$theValue = $rowValue[$colValueName];\n\n\treturn $theValue;\n\n}", "public function getColumn(): string;", "protected function getOurValue()\n {\n $ourModel = $this->getOurModel();\n\n if ($ourModel->loaded()) {\n return $this->our_field\n ? $ourModel->get($this->our_field)\n : $ourModel->getId();\n }\n\n // create expression based on existing conditions\n return $ourModel->action('field', [\n $this->getOurFieldName(),\n ]);\n }", "public function getModelValue()\n {\n if (! is_callable($callback = $this->getCallback())) {\n throw new Exception('Invalid custom column callback');\n }\n\n return call_user_func($callback, $this->getModel());\n }", "public function get($key) {\n if (!array_key_exists($key, $this->mapping))\n return null;\n\n return $this->mapping[$key]['column_name'];\n }", "public function getColumn( $sQuery ){\n $oQuery = $this->query( $sQuery );\n $this->checkQuery( $oQuery );\n return $oQuery->fetchColumn( );\n }", "public function getColumn($column_id)\n {\n return $this->db->table(self::TABLE)->eq('id', $column_id)->findOne();\n }", "public function getColumn($name)\n {\n return $this->columns[$name];\n }", "public function findColumn(string $column)\n {\n $column = null;\n try {\n $column = $this->model->all()->pluck($column);\n } catch (PDOException $exception) {\n $this->handleException($exception);\n } finally {\n return $column;\n }\n }", "abstract public static function get_column_name(): string;", "public function fetchCol($columnName);", "public function getDataFromColumn($col)\n {\n return $this->attributes[app()->getLocale() == 'ar' ? 'ar_'.$col : $col] ?? $this->attributes[$col];\n }", "protected static function column_name(): mixed\n\t{\n\t\treturn self::$query->column_name;\n\t}", "final public function col():Col\n {\n return $this->table()->col($this->col);\n }", "function getFieldValue($fieldName){\n\n\t\tif( isset($this->record[$fieldName]) ) return $this->record[$fieldName];\n\t\telse return false;\n\n\t}", "private function getColumnValue($key, $allowNull = false)\n\t\t{\n\t\t\t$col = $this->findColumn($key);\n\t\t\tif($col === null)\n\t\t\t\tthrow new CDFColumnDataException($key, 'Column does not exist');\n\n\t\t\t// don't return null if not specified, based on column type\n\t\t\t$value = $col->getValue();\n\t\t\tif($value === null && $allowNull == false)\n\t\t\t{\n\t\t\t\tswitch($col->getDataType())\n\t\t\t\t{\n\t\t\t\t\tcase CDFSqlDataType::String:\n\t\t\t\t\tcase CDFSqlDataType::Text:\n\t\t\t\t\tcase CDFSqlDataType::Data:\n\t\t\t\t\t\t$value = '';\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase CDFSqlDataType::Float;\n\t\t\t\t\t\t$value = 0.0;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase CDFSqlDataType::Integer;\n\t\t\t\t\t\t$value = 0;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase CDFSqlDataType::Bool;\n\t\t\t\t\t\t$value = false;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase CDFSqlDataType::Timestamp;\n\t\t\t\t\t\t$value = CDFDataHelper::AsDateTime(null);\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn $value;\n\t\t}", "public function getRecordTypeColumnName() {}", "public function getFieldValue($name)\n\t\t{\n\t\t\treturn $this->row[$name];\n\t\t}", "public function fetchColumn ($index) {\n return $this->query->fetchColumn($index);\n }", "public function GetColumn($index = NULL)\r\n {\r\n return($this->preparedStatement->fetchColumn($index));\r\n }", "public function column($sql, $params = [])\n {\n $result = $this->query($sql, $params);\n return $result->fetchColumn();\n }", "function getValue_local( $colValueName, $tblName, $whereColumn, $passingId) { // selected column name, table name, for where condition, passing id for where\n\t\n\tglobal $db;\n if ($colValueName == 'user_last_login') {\n\t\t $sql_get = \"SELECT DATE_FORMAT($colValueName,'%d-%b-%Y %h:%i:%s %p') as colValueName FROM $tblName WHERE $whereColumn='\".$passingId.\"'\";\n\t}\n\telse {\n\t\t$sql_get = \"SELECT $colValueName as colValueName FROM $tblName WHERE $whereColumn='\".$passingId.\"'\";\n\t}\n\t\n\t$getValue = $db;\n\t$getValue->query($sql_get);\n\t$getValue->next_record();\n\n\t$rowValue = $getValue->rowdata();\n\t$theValue = $rowValue['colValueName'];\n\n\treturn $theValue;\n\n}", "public function getValue($idx)\n {\n return (($dbname = $this->_getDbname($idx))!=null\n ? $this->columns[$dbname]->value\n : null);\n }", "public function fetchColumn(\\PDO $pdo, $sql, array $params = array())\n\t{\n\t\treturn $this->runStatement($pdo, $sql, $params)->fetchColumn();\t\t\n\t}", "public function get($column)\n {\n $this->initialize();\n if (array_key_exists($column, $this->columns)) {\n $accessor = '__get' . str_replace(' ', '', ucwords(str_replace(array('-', '_'), ' ', $column)));\n return method_exists($this, $accessor) ? $this->{$accessor}() : $this->data[$column];\n }\n throw new Exception\\InvalidArgumentException('Not a valid column in this row: ' . $column);\n }", "protected function value()\n {\n return $this->row($this->row);\n }", "public function col($columnname)\n\t{\n\t\n\treturn $this->res[$this->pos][$columnname];\n\t/*\n\t\t$type = 0;\n\t\t\n\t\t\n\t\tif($columnname == 'value')$type = 1;\t\n\t\n\t\tif($columnname == 'URI')\n\t\t{\n\t\t$add_SID = '';\n\t\tif(false)$add_SI = 'PHPSESSID=' . htmlspecialchars(session_id()) . '&';\n\t\t\n\t\tif(count($this->jump_address[$type]) > $this->pos)\n\t\treturn '?' . $add_SI . 'i=' . $this->jump_address[0][$this->pos];\n\t\telseif(count($this->jump_address[$type]) == $this->pos)\n\t\treturn '?' . $add_SI . 'i=' . $this->jump_address[$type + 2];\n\t\t}\n\t\t\n\n\t\t\n\t\tif(count($this->jump_address[$type]) > $this->pos)\n\t\t return $this->jump_address[$type][$this->pos];\n\t\telseif(count($this->jump_address[$type]) == $this->pos)\n\t\t return $this->jump_address[$type + 2];\n\t\n\t return null; */\n\t}", "public function fetchField();", "public static function columns_data($table, $column) {\n $columns = static ::columns($table);\n foreach($columns as $_column) {\n if (strtolower($_column['Field']) == strtolower($column)) {\n return $_column;\n }\n }\n throw new Exception(\"No Column Found\");\n }", "public function getData()\n\t{\n\t\t$column = self::COL_DATA;\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 getData()\n\t{\n\t\t$column = self::COL_DATA;\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 __get($var) {\n\t\tforeach($this->_columns as $col) {\n\t\t\tif($col->name == $var) {\n\t\t\t\treturn $col;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public function getSpecificColVal($table=null,$colName=null,$condition=null){\n $sql=\"SELECT \";\n if(!empty($colName)){\n $sql.=\" \".$colName.\" FROM \".$table.\" WHERE 1=1 \";\n if($condition != null && strlen($condition) > 0){\n $sql .= \" \".$condition.\" \";\n }\n $query=$this->db->query($sql);\n if($query->num_rows()>0){\n $result=$query->result()[0];\n $colval = $result->$colName;\n }else{\n $colval = \"\";\n }\n return $colval;\n }\n }", "public function getCol($col)\n {\n if (!$this->checkRange(0, $col)) {\n throw new \\OutOfRangeException();\n }\n\n return array_column($this->_data, $col);\n }", "public function get_column_value($column, $old_value = false) {\n $field_exists = false;\n $nullable = false;\n $type = '';\n\n // Verifica se o campo existe, se aceita NULL e armazena o tipo do campo\n foreach($this->get_columns_information() as $c) {\n if($column == $c['column_name']) {\n $nullable = $c['is_nullable'];\n $field_exists = true;\n $type = array_shift(explode(' ', $c['data_type']));\n break;\n }\n }\n\n // Se o campo nao existir, nao retorna nada\n if(!$field_exists)\n return null;\n\n $quoted = in_array($type, Register::$quoted_fields);\n $value = ($old_value) ? ($this->{'_' . $column}) : $this->$column;\n\n // Formata corretamente o campo e retorna seu valor\n if($nullable)\n return (empty($value)) ? 'NULL' : ($quoted ? \"'{$value}'\" : $value);\n else\n return (empty($value)) ? ($quoted ? \"''\" : 0) : ($quoted ? \"'{$value}'\" : $value);\n \n }", "public function getField($fieldName) {\n\t\t$result = NULL;\n\t\tif ($this->hasField($fieldName)) {\n\t\t\t$result = $this->tca['columns'][$fieldName];\n\t\t}\n\t\treturn $result;\n\t}", "public function get_column_key() {\n\t\treturn $this->column_key;\n\t}", "function one_col_value($conn,$col_name,$table_name,$user_id,$return_col)\r\n\t{\r\n\t\t$qry=\"select * from $table_name where $col_name='$user_id'\";\r\n\t\t//echo $qry;\r\n\t\t$res=mysql_query($qry);\r\n\t\tif($res){\r\n\t\t\t $result=mysql_fetch_array($res);\r\n\t\t\t return $result[$return_col];\r\n\t\t}\r\n\t\telse\r\n\t\t\treturn \"0\";\r\n\t\r\n\t}", "public function get_field($row, $col) {\n if ($row >= 0 && $row < $this->data['num_rows'] && $col >= 0 && $col < $this->data['num_fields']) {\n return $this->lines[$row][$col];\n } else {\n return null;\n }\n }", "private function get($row, $column) {\n return $this->invalid($row, $column) ? self::VALUE_NOT_SET : $this->matrix[$row][$column];\n }", "public function getDataFieldValue($record, $fieldName)\n {\n // Custom callbacks\n if (isset($this->customDataFields[$fieldName])) {\n $callback = $this->customDataFields[$fieldName];\n\n return $callback($record);\n }\n\n // Links\n if ($fieldName == \"Link\") {\n return $record->AbsoluteLink();\n }\n\n // URLSegments\n if ($fieldName == \"URL\" || $fieldName == \"URLSegment\") {\n return $record->RelativeLink();\n }\n\n // Default implementation\n if ($record->hasMethod(\"relField\")) {\n $value = $record->relField($fieldName);\n if ($fieldName == \"isPublished\") {\n $value = ($value) ? _t(\"SitewideContentReport.Published\", \"Published\") : _t(\"SitewideContentReport.Draft\", \"Draft\");\n } elseif ($fieldName == \"Subsite.Title\") {\n $value = ($value) ? $value : _t(\"SitewideContentReport.MainSite\", \"Main Site\");\n }\n return $value;\n } elseif ($record->hasMethod($fieldName)) {\n return $record->$fieldName();\n } else {\n return $record->$fieldName;\n }\n }", "abstract public static function get_column_key(): string;", "public function getColumn($name)\n {\n foreach ($this->getColumns() as $column) {\n if ($column->getName() === $name) {\n return $column;\n }\n }\n\n }", "public function getSqlCol()\n {\n return $this->sqlCol;\n }", "function db_select_one_value( $statement ) {\n\n $this->db_run_query( $statement );\n\n if( $this->db_fetch_next_row( DB_FETCHMODE_ORDERED ) ) $this->db_fetch_next_col();\n\n return $this->curr_col_value;\n }", "public function getColumn($name)\n {\n return isset($this->columns[$name]) ? $this->columns[$name] : null;\n }", "public function offsetGet($columnName)\n {\n $row = current($this->_rows);\n return $row !== false? $row[$columnName] : null;\n }", "public function fetchColumn(int $column = 0) : ?string\n\t{\n\t\treturn $this->handle->fetchColumn($this->result, $column);\n\t}", "function GetField($field=0){\n\t\t\treturn @mysql_result($this->result,0,$field);\n\t\t}", "public function get() {\n\t\treturn $this->rows[$this->rowIndex];\n\t}", "public function modelColumn();", "public function findColumn(string $column);", "public function getColumnName();", "function getFieldValue($field);", "public function getCol($sql, $bind = null)\r\n {\r\n $result = $this->_execute($sql, $bind);\r\n\r\n while ($result->valid())\r\n {\r\n $col[] = $result->fetchSingle();\r\n }\r\n\r\n return $col;\r\n }", "public function getColumna() {\n return $this->columna;\n }", "function getValue($table_name, $key_column_name, $key_value, $column_name)\n {\n\n }", "protected function get_record()\n\t{\n\t\treturn $this->key ? parent::get_record() : null;\n\t}", "public function fetchColumn($column_number = 0) {\n\t\t$row = $this->fetch(PDO::FETCH_NUM);\n\t\tif( empty($row) || empty($row[$column_number])) return false;\n\t\treturn $row[$column_number];\n\t}", "function get_col($query=null,$x=0) {\n\n\t\t\t// If there is a query then perform it if not then use cached results..\n\t\t\tif ( $query ) {\n\t\t\t\t$this->query($query);\n\t\t\t}\n\n\t\t\t// Extract the column values\n\t\t\tfor ( $i=0; $i < count($this->last_result); $i++ ) {\n\t\t\t\t$new_array[$i] = $this->get_var(null,$x,$i);\n\t\t\t}\n\n\t\t\treturn $new_array;\n\t\t}", "public function getValueByColumnName($column){\n foreach (self::$excelLabelList as $attribute=>$labels) {\n\n if (in_array($column,$labels,false)){\n return $this->$attribute;\n }\n }\n\n return null;\n }" ]
[ "0.71618354", "0.7090041", "0.6977502", "0.6940155", "0.68695945", "0.67581224", "0.6746056", "0.6744007", "0.6636857", "0.66365594", "0.6597117", "0.6593437", "0.6593437", "0.65407014", "0.64629513", "0.64496976", "0.64431703", "0.64270395", "0.6385978", "0.6369213", "0.6346356", "0.63324594", "0.6314839", "0.6307204", "0.6291872", "0.62876534", "0.62688315", "0.62581134", "0.62564", "0.61887753", "0.6165018", "0.61464506", "0.61228746", "0.61180574", "0.6115351", "0.61121225", "0.61092716", "0.60975975", "0.60954416", "0.6095251", "0.6083869", "0.60680807", "0.6064912", "0.6044759", "0.60337573", "0.6031797", "0.59994376", "0.5988066", "0.5986839", "0.59720755", "0.5969765", "0.5957697", "0.5955371", "0.59460914", "0.5944711", "0.59299415", "0.5922764", "0.590055", "0.58989185", "0.58959234", "0.58938646", "0.58911306", "0.58745766", "0.5869142", "0.5850838", "0.58492255", "0.58483356", "0.58432513", "0.5837699", "0.5837699", "0.5830389", "0.58254755", "0.5811087", "0.5799843", "0.5785185", "0.57851106", "0.57802683", "0.5779333", "0.57698554", "0.5760112", "0.5759914", "0.5747991", "0.5744215", "0.57415736", "0.57324636", "0.5727653", "0.57181764", "0.57173705", "0.57137835", "0.5711645", "0.57069016", "0.5705672", "0.5691079", "0.5678006", "0.56748325", "0.5672632", "0.56683064", "0.5663543", "0.5663025", "0.5659957" ]
0.640559
18
Sets the specified column to the specified value.
public function offsetSet($offset, $value) { if(!array_key_exists($offset, $this->_data)) { throw new \Bedrock\Model\Record\Exception('The specified column "' . $offset . '" is not a part of this record, the value was not assigned.'); } $this->_data[$offset] = $value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function set($column,$value);", "public function setColumn($value)\n {\n return $this->set('Column', $value);\n }", "public function set($col, $value)\n {\n return $this->setCol($col, $value);\n }", "public function set($column, $value)\n {\n $this->initialize();\n if (array_key_exists($column, $this->columns)) {\n $mutator = '__set' . str_replace(' ', '', ucwords(str_replace(array('-', '_'), ' ', $column)));\n if (method_exists($this, $mutator)) {\n $this->{$mutator}($value);\n } else {\n $this->data[$column] = $value;\n }\n return;\n }\n throw new Exception\\InvalidArgumentException('Not a valid column in this row: ' . $column);\n }", "public function set(string $column, $value): self {\n $this->record[$column] = $value;\n return $this;\n }", "public function set_column( $column ) {\n $this->column = $column;\n }", "public function set($column, $value) {\n $this->impl->set($this->context, $column, $value);\n return $this;\n }", "public function offsetSet($columnName, $value)\n {\n $this->_rows[key($this->_rows)][$columnName] = \"$value\";\n }", "public function setColumn($set, $val)\n\t{\n\t\t//ignore bogus data\n\t\tif (!array_key_exists($set, $this->row))\n\t\t\tthrow new InternalException(\"row $set doesn't exist\");\n\t\t$this->isChanged[$set] = true;\n\t\t$this->row[$set] = $val;\n\t}", "public function setCol($col)\n {\n $this->col = $col;\n }", "public function __set($name, $value)\n\t{\n \t\tif ($this->column_data[$name] !== $value)\n\t\t{\n\t\t\t$this->column_data[$name] = $value;\n\t\t\t$this->altered_columns[$name] = $name;\n\t\t}\n\t}", "public function set(ColumnInterface $column);", "private function set($row, $column, $value) {\n if (!$this->invalid($row, $column)) {\n $this->matrix[$row][$column] = $value;\n }\n }", "public function __set($name, $value)\n {\n $this->columns_values[$name] = $value;\n }", "protected function setColumn(string $column): void\n {\n $allowedColumns = ['left', 'middle', 'right'];\n $this->column = \\SpoonFilter::getValue($column, $allowedColumns, 'left');\n }", "function getColumnSetter($column, $value, $singleQuotes = false, $prefix = 'this->')\n {\n if ($singleQuotes)\n {\n $value = sprintf(\"'%s'\", $value);\n }\n\n return sprintf('$%s%s->set(\\'%s\\', %s)', $prefix, $this->getSingularName(), $column->getName(), $value);\n }", "final protected function setColumnData($key, $value, $allowNull = false)\n\t\t{\n\t\t\t$col = $this->findColumn($key);\n\t\t\t// only allow on binary data types\n\t\t\tif($col === null || $col->getDataType() !== CDFSqlDataType::Data)\n\t\t\t\treturn;\n\n\t\t\t$col->setValue($allowNull && is_null($value) ? null : $value);\n\t\t}", "public function __set( $name, $value ) {\n\t\tif( $this->getTable()->hasColumn( $name ) ) {\n\t\t\t$this->_updateBuffer[ $name ] = $value;\n\t\t}\n\t}", "public function setColumna($col){\n if($col>3 ){\n $this->columna = 3;\n }\n elseif ($col<0) {\n $this->columna = 0;\n }\n else{\n $this->columna = $col;\n }\n }", "protected function set_date_column( $column, $value ) {\n\t\tif ( is_a( $value, 'DateTime' ) ) {\n\t\t\t// convert to UTC time\n\t\t\t$utc_date = new DateTime();\n\t\t\t$utc_date->setTimestamp( $value->getTimestamp() );\n\t\t\t$this->set_prop( $column, $utc_date->format( 'Y-m-d H:i:s' ) );\n\t\t}\n\t\telseif ( $value ) {\n\t\t\t$this->set_prop( $column, ES_Clean::string( $value ) );\n\t\t}\n\t}", "public function set($column, $value = null)\n\t{\n\t\tif (gettype($column) == 'array') {\n\t\t\tforeach($column as $key => $value) {\n\t\t\t\t$this->_set[$key] = addslashes($value);\n\t\t\t} // foreach\n\t\t} else {\n\t\t\t$this->_set[$column] = addslashes($value);\n\t\t} // if\n\n\t\treturn $this;\n\t}", "public function offsetSet($columnName, $value)\n\t{\n\t\tif ($this->_cleanData !== null)\n\t\t\t$this->_cleanData[$columnName] = $value;\n\t\tparent::offsetSet($columnName,$value);\n\t}", "protected function getColumnSetter($column) {\n return 'set' . $this->getColumnForParameter($column)->getPhpName();\n }", "public function value($column, $value)\n {\n $this->_set[] = array($column, $value);\n\n return $this;\n }", "public function update(string $column, $value)\n {\n array_unshift($this->parameters, $value);\n $this->update = $column;\n \n $this->execute(\n $this->syntax->updateSyntax(get_object_vars($this))\n );\n }", "public function __set($var, $value) {\n\t\tif(!($value instanceof column)) {\n\t\t\treturn false;\n\t\t}\n\t\tforeach($this->_columns as $k=>$col) {\n\t\t\tif($col->name == $var) {\n\t\t\t\t$this->_columns[$k] = $value;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "public function offsetSet($offset, $value)\n\t\t{\n\t\t\tif(!array_key_exists($offset, $this->_columns)) {\n\t\t\t\t$this->_columns[$offset]->setValue($value);\n\t\t\t}\n\t\t}", "protected function setColumn($id, $value, $column, $scenario) {\n // Check if the id is a wrong one\n $invoiceHistory = InvoiceHistoryB::model()->findByPk($id);\n if(!$invoiceHistory instanceof InvoiceHistoryB) {\n echo CJSON::encode(array('status' => 'failure', 'message' => 'Id is invalid.', 'value' => $value,));\n Yii::app()->end();\n }\n \n // Set attributes to validate\n $invoiceHistory->setScenario($scenario);\n $invoiceHistory->$column = $value;\n if(!$invoiceHistory->validate()) {\n echo CJSON::encode(array('status' => 'failure', 'message' => $invoiceHistory->getError($column), 'value' => $value,));\n Yii::app()->end();\n }\n \n // Save the updated attributes\n if($invoiceHistory->save(false)) {\n echo CJSON::encode(array('status' => 'success', 'message' => 'Invoice id is saved successfully', 'value' => $invoiceHistory->invoice_id,));\n }\n }", "public function setValue(string $columName, $value)\n {\n $this->parameters[$columName] = $value;\n return $this;\n }", "public function update($tableId, $columnId, Google_Service_Fusiontables_Column $postBody, $optParams = array())\n {\n $params = array('tableId' => $tableId, 'columnId' => $columnId, 'postBody' => $postBody);\n $params = array_merge($params, $optParams);\n return $this->call('update', array($params), \"Google_Service_Fusiontables_Column\");\n }", "function changeColumn($table, $oldCol, $newCol, $type=false);", "public function __set($name, $value) {\n\t\tif (!isset(self::$tables[$this->table][$name])) {\n\t\t\t\tthrow new Exception(\"$name column doesn't exist in $this->table table \");\n\t\t}\n\t\t$this->modifiedData[$name] = $value;\n\t}", "public function setToCell(Cell &$Cell);", "public function setColumnName($value)\n {\n return $this->set('ColumnName', $value);\n }", "public function setColumn($object, $alias, $value)\r\n {\r\n throw new Exception('This method is not yet implemented');\r\n }", "public function addColumn($value) {\n array_push($this->columns, $value);\n }", "protected function set_site_column( $blog_id, $column, $value )\n\t{\n\t\tglobal $wpdb;\n\t\t\n\t\t$type = '%s';\n\t\tif( is_int($value) ) $type = '%d';\n\t\t\n\t\tif( $value === null )\n\t\t{\n\t\t\t$return = $wpdb->query( \n\t\t\t\t$wpdb->prepare( \n\t\t\t\t\t\"UPDATE \".self::$site_table.\" SET $column = NULL WHERE id = %d\",\n\t\t\t\t\tintval( $blog_id )\n\t\t\t\t)\n\t\t\t);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$return = $wpdb->query( \n\t\t\t\t$wpdb->prepare( \n\t\t\t\t\t\"UPDATE \".self::$site_table.\" SET $column = $type WHERE id = %d\",\n\t\t\t\t\t$value,\n\t\t\t\t\tintval( $blog_id )\n\t\t\t\t)\n\t\t\t);\n\t\t}\n\t\t\n\t\tif( $return ) return true;\n\t\treturn false;\n\t}", "function editValue($table_name, $key_column_name, $key_value, $column_name, $new_value)\n {\n $sql = sprintf(\n \"UPDATE %s SET %s = \\\"%s\\\" WHERE %s = \\\"%s\\\";\",\n $table_name,\n $column_name,\n SQLite3::escapeString($new_value),\n $key_column_name,\n SQLite3::escapeString($key_value));\n $this->exec($sql);\n }", "public function setValue($value);", "public function setValue($value);", "public function setValue($value);", "public function setValue($value);", "public function setValue($value);", "public function setValue($value);", "public function setValue($value);", "public function setValue($value);", "public function setValue($value);", "public function setValue($value);", "public function modifyColumn($tableName, $schemaName, $column){ }", "public function setRowData($param, $value)\n {\n if(is_scalar($value))\n {\n if(is_string($value) && !empty($value))\n $this->columnValues[$param] = \"'$value'\";\n elseif(is_bool($value))\n $this->columnValues[$param] = $value ? 'TRUE' : 'FALSE';\n else\n $this->columnValues[$param] = $value;\n }\n }", "public function setValue($value) {}", "public function setValue($value) {}", "public function setValue($value) {}", "public function setValue($value) {}", "public function setValue($value) {}", "public function setValue($value) {}", "public function setValue($value) {}", "public function setValue($value) {}", "public function setValue($value) {}", "public function setValue($value) {}", "public function setValue($value) {}", "public function setValue($value) {}", "public function setValue($value) {}", "final protected function setColumnInteger($key, $value, $allowNull = false)\n\t\t{\n\t\t\t$col = $this->findColumn($key);\n\t\t\tif($col === null)\n\t\t\t\treturn;\n\n\t\t\t$col->setValue($allowNull && is_null($value) ? null : CDFDataHelper::AsInt($value));\n\t\t}", "function SetCol($col)\r\n\t{\r\n\t $this->col=$col;\r\n\t $x=10+$col*100;\r\n\t $this->SetLeftMargin($x);\r\n\t $this->SetX($x);\r\n\t}", "public function setData ($column, $data)\n {\n\t $game_setting = GameSetting::where('name', $column)->firstOrFail();\n\t $game_setting->data = $data;\n\t $resultSave = $game_setting->save();\n\t return $resultSave;\n }", "public function setSearchColumn($value)\n {\n return $this->set('SearchColumn', $value);\n }", "public function editColumn($value) {\n if (is_string($value)) {\n $value = new \\Kendo\\JavaScriptFunction($value);\n }\n\n return $this->setProperty('editColumn', $value);\n }", "public function update($column, $value, Utilisateur $user){\n\t\t$q = $this->pdo->prepare('UPDATE utilisateur SET '.$column.'=:value WHERE id=:id' );\n\t\t$q->bindValue(':value', $value );\n\t\t$q->bindValue(':id', $user->getId(), PDO::PARAM_INT);\n\t\t$q->execute();\n\t}", "public function set($key,$value) {\n $this->values[count($this->columns)] = $value;\n $this->columns[count($this->columns)] = $key;\n\n return $this;\n }", "public function updateAColumn($table, $column, $value, $where_column, $where_column_value){\n\t\t\t$query = $this->connection()->prepare(\"UPDATE $table SET $column='$value' WHERE $where_column='$where_column_value'\");\n\t\t $query->execute();\n\t\t return true;\n\t\t}", "public function set(array $column) {\n if (count($this->array) < $this->rows_num) {\n if (count($column) == $this->cols_num) {\n $this->array[] = $column;\n } else {\n throw new Exception(\"Valid column length must be\"\n .$this->cols_num\n .\" but \"\n .count($column)\n .\" was given.\");\n }\n } else {\n throw new Exception(\"Row index out of bound: Index: \"\n .count($this->array)\n .\", Size: \"\n .$this->rows_num.\".\");\n }\n }", "function SetCol($col)\n{\n $this->col=$col;\n $x=10+$col*65;\n $this->SetLeftMargin($x);\n $this->SetX($x);\n}", "public function addColumn($column,$value)\n {\n if($this->gateway->getMetaData()->hasColumn($column) === false) {\n throw new GatewayException(sprintf('column name %s not found under table %s unable to add to update statement',$column,$this->gateway->getMetaData()->getName()));\n }\n \n $this->query->set($column,':'.$column);\n $this->query->createNamedParameter($value,$this->gateway->getMetaData()->getColumn($column)->getType(),':'.$column);\n \n return $this;\n }", "public function __set($columnName, $value)\n {\n if (array_key_exists($columnName, $this->data)) {\n $this->modifiedDataFields[$columnName] = ($this->data[$columnName] !== $value);\n $this->data[$columnName] = $value;\n return $this;\n }\n\n return $this;\n }", "public function setValue($field, $value){\n $this->values[$field] = $value;\n }", "public function setValue($value) {\n $this->value = $value->value;\n }", "public function setValue($value){\n $this->_value = $value;\n }", "function SetCol($col)\n {\n \n $this->col=$col;\n $x=10+$col*100;\n $this->SetLeftMargin($x);\n $this->SetX($x);\n }", "function SetCol($col)\n {\n $this->col=$col;\n $x=5+$col*55;\n $this->SetLeftMargin($x);\n $this->SetX($x);\n }", "public function set($field, $value);", "public function set($field, $value);", "public function __set($variable, $value)\n {\n $this->rowData[$variable] = $value;\n if ($this->persisted) {\n $this->persisted = false;\n }\n }", "public function setValue($value)\n {\n if ($value === 'on') {\n $this->_value = 1;\n }\n $this->_value = trim($this->_db->prepareString($value));\n }", "public function addSet($column, $value)\n {\n $this->params[$column] = $value;\n\n return $this;\n }", "function setValue($value) {\n $this->value = $value;\n }", "public function setColumn($column)\n {\n $this->column = $column;\n return $this;\n }", "private function _setTimestamp($column)\n {\n $this->_record->$column = date(self::DATE_FORMAT);\n }", "public function writeCol($column, $data, $row_start = 0, $format = null) {\n\t}", "public function setValue($fieldname, $value);", "public function bindColumn ($column,$var) {\n $this->query->bindColumn($column,$var);\n }", "function setValue ($value) {\n\t\t$this->_value = $value;\n\t}", "public function setColumn(string $namespace, array $args = []): Column\n {\n $args[0] = $this->resolveTableColumn($args[0]);\n\n return parent::setColumn($namespace, $args);\n }", "public function setColumnType($column, $type)\n {\n switch($type)\n {\n case PDO::PARAM_JSON:\n $this->_columns[$column] = new DataTypes\\JSON($column);\n break;\n\n case PDO::PARAM_DATETIME:\n $this->_columns[$column] = new DataTypes\\DateTime($column);\n break;\n\n case PDO::PARAM_DATE:\n $this->_columns[$column] = new DataTypes\\Date($column);\n break;\n\n case PDO::PARAM_ARRAY:\n $this->_columns[$column] = new DataTypes\\PhpArray($column);\n break;\n\n default:\n }\n }", "public function setValue($value) {\n $this->value = $value;\n }", "public function setValue($value) {\n $this->value = $value;\n }", "public function setValue($value) {\n $this->value = $value;\n }", "public function setValue($value) {\n $this->value = $value;\n }", "public function set($parameter, $value);", "public function whereEqual($column, $value)\n {\n if (is_int($value)) {\n $this->where_clause .= \"$column = $value\";\n } else {\n $this->where_clause .= \" $column = \" . \"'\" . $value . \"'\";\n }\n }" ]
[ "0.8153375", "0.74729985", "0.7414654", "0.74082017", "0.73137313", "0.71561664", "0.70673347", "0.70179653", "0.6834915", "0.6777756", "0.6759673", "0.6723926", "0.65878093", "0.650127", "0.64539003", "0.63680536", "0.63047415", "0.6304203", "0.62971044", "0.6287795", "0.6245875", "0.6225164", "0.6194534", "0.61816704", "0.61650515", "0.61496854", "0.61208403", "0.60979664", "0.601358", "0.59872305", "0.5926957", "0.5922007", "0.5918904", "0.5884166", "0.5864058", "0.5830435", "0.5823065", "0.57914984", "0.57835686", "0.57835686", "0.57835686", "0.57835686", "0.57835686", "0.57835686", "0.57835686", "0.57835686", "0.57835686", "0.57835686", "0.57809836", "0.57605225", "0.5737983", "0.5737983", "0.5737983", "0.5737983", "0.5737983", "0.5737983", "0.5737983", "0.5737983", "0.5737983", "0.5737983", "0.5737983", "0.5737625", "0.5737625", "0.5715672", "0.5713579", "0.5709217", "0.5708913", "0.5698997", "0.5693563", "0.568782", "0.56660175", "0.5654578", "0.56453246", "0.5632846", "0.5632276", "0.56258535", "0.56071055", "0.5604797", "0.5599068", "0.558457", "0.55834967", "0.55834967", "0.5582447", "0.5538849", "0.5538355", "0.5533205", "0.5530428", "0.5528975", "0.55248153", "0.5520929", "0.55177176", "0.55168617", "0.55094326", "0.55036", "0.55028564", "0.55028564", "0.55028564", "0.55028564", "0.5502197", "0.54956484" ]
0.5580338
83
Removes the specified value from the Record.
public function offsetUnset($offset) { if(!array_key_exists($offset, $this->_data)) { throw new \Bedrock\Model\Record\Exception('The specified column "' . $offset . '" is not a part of this record, the value was not unset.'); } unset($this->_data[$offset]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function remove($value);", "public function remove($value){\n\t\t$this->queried = false;\n\t\t\n\t\tHash::remove($this->Data, $value);\n\t\t\n\t\treturn $this;\n\t}", "public function removeField($value) {\n return $this->setProperty('removeField', $value);\n }", "public function destroy( $value = NULL, $field = 'id' );", "public function remove_value(string $value)\n {\n if(gettype($this -> value) === \"string\"){\n if($this -> value === $value) $this -> value = null;\n }else{\n if (($key = array_search($value, $this -> value)) !== false) {\n #unset($this -> value[$key]);\n array_splice($this -> value, $key, 1);\n }\n }\n }", "public function deleteByValue($value, $field = \"sid\")\n {\n return $this->makeModel()\n ->where($field, $value)\n ->delete();\n }", "public function delete( $value = NULL, $field = 'id' );", "public function remove($key, $value = '');", "public function delete($value, $searchField = null);", "public function remove($value)\n {\n $value = (string) $value;\n if (($key = array_search($value, $this->items)) !== false) {\n unset($this->items[$key]);\n }\n }", "public function Delete($value){\n $this->RetrieveData();\n foreach($this->movieList as $key =>$movie){\n if($movie->getNombre() == $value){\n unset($this->movieList[$key]);\n break;\n }\n }\n $this->SaveData();\n }", "public function removeValue($value)\n {\n $i = $this->getNameByValue($value);\n if($i>=0)\n {\n $this->removeKey($i);\n }\n return $this;\n }", "public function unset()\n {\n unset($this->value);\n }", "public function removeValue($element);", "public function remove(mixed $value) {\n $this->items = array_filter($this->items, function ($var) use ($value) {\n return $var !== $value;\n });\n return $this;\n }", "public static function removeInstanceFromPool($value)\n {\n if (Propel::isInstancePoolingEnabled() && $value !== null) {\n if (is_object($value) && $value instanceof Report) {\n $key = (string) $value->getId();\n } elseif (is_scalar($value)) {\n // assume we've been passed a primary key\n $key = (string) $value;\n } else {\n $e = new PropelException(\"Invalid value passed to removeInstanceFromPool(). Expected primary key or Report object; got \" . (is_object($value) ? get_class($value) . ' object.' : var_export($value,true)));\n throw $e;\n }\n\n unset(ReportPeer::$instances[$key]);\n }\n }", "protected function _purgeValue($value) {}", "public function dyRemoveItem($key, $value, $callchain)\n\t{\n\t\tif ($key == $this->_parameter && $key !== null && $this->_handler) {\n\t\t\tcall_user_func($this->_handler, null);\n\t\t} elseif ($this->_parameter === null) {\n\t\t\tcall_user_func($this->_handler, $key, null);\n\t\t}\n\t\treturn $callchain->dyRemoveItem($key, $value);\n\t}", "public function delete_by($key, $value){\n \n if (empty($key)) {\n return FALSE;\n }\n \n $this->db->where(htmlentities($key), htmlentities($value))->delete($this->table_name);\n }", "public function delete_record($identifier, $value, $table_name) {\n\t\tmysqli_query($this->link, \"DELETE FROM \".$this->db_prefix.$table_name.\" WHERE \".$identifier.\"='\".$value.\"'\");\n\t}", "public function RemoveRecord()\n {\n $rec = $this->GetActiveRecord();\n global $g_BizSystem;\n $ok = $this->GetDataObj()->RemoveRecord($rec,$bPrtObjUpdated);\n if (!$ok)\n return $this->ProcessDataObjError($ok);\n\n $html = \"\";\n // rerender parent form's driving form (its field is updated in M-1 case)\n if ($bPrtObjUpdated) {\n $prtForm = $g_BizSystem->GetObjectFactory()->GetObject($this->m_ParentFormName);\n $html = $prtForm->ReRender();\n }\n //$this->UpdateActiveRecord($this->GetDataObj()->GetRecord(0));\n return $html . $this->ReRender();\n }", "public function removeElement($value)\n {\n $key = array_search($element, $this->data, true);\n if (false !== $key) {\n unset($this->data[$key]);\n }\n\n return $this;\n }", "public function enumRemove($table = false, $field = false, $value = false, $pasive = false)\n {\n $this->enum($table, $field, $value, 'remove', $pasive);\n }", "public static function removeInstanceFromPool($value)\n\t{\n\t\tif (Propel::isInstancePoolingEnabled() && $value !== null) {\n\t\t\tif (is_object($value) && $value instanceof Tbprofessor) {\n\t\t\t\t$key = (string) $value->getMatriculaProf();\n\t\t\t} elseif (is_scalar($value)) {\n\t\t\t\t// assume we've been passed a primary key\n\t\t\t\t$key = (string) $value;\n\t\t\t} else {\n\t\t\t\t$e = new PropelException(\"Invalid value passed to removeInstanceFromPool(). Expected primary key or Tbprofessor object; got \" . (is_object($value) ? get_class($value) . ' object.' : var_export($value,true)));\n\t\t\t\tthrow $e;\n\t\t\t}\n\n\t\t\tunset(self::$instances[$key]);\n\t\t}\n\t}", "public static function removeInstanceFromPool($value)\n\t{\n\t\tif (Propel::isInstancePoolingEnabled() && $value !== null) {\n\t\t\tif (is_object($value) && $value instanceof RpMissionSummary) {\n\t\t\t\t$key = (string) $value->getId();\n\t\t\t} elseif (is_scalar($value)) {\n\t\t\t\t// assume we've been passed a primary key\n\t\t\t\t$key = (string) $value;\n\t\t\t} else {\n\t\t\t\t$e = new PropelException(\"Invalid value passed to removeInstanceFromPool(). Expected primary key or RpMissionSummary object; got \" . (is_object($value) ? get_class($value) . ' object.' : var_export($value,true)));\n\t\t\t\tthrow $e;\n\t\t\t}\n\n\t\t\tunset(self::$instances[$key]);\n\t\t}\n\t}", "public function remove($table, $fieldName, $value, $limit = 1){\n try{\n $query = \"DELETE FROM $table WHERE \" . $fieldName . \"=\" . $value . \" LIMIT $limit\";\n\n $stmt = $this->dbConn->prepare($query);\n\n $stmt->bindValue(\":$fieldName\", $value);\n\n $stmt->execute();\n\n if(!$stmt->rowCount()){\n echo \"Registry not found!\";\n return false;\n }else{\n return true;\n }\n }catch(PDOException $e){\n echo $e->getMessage();\n }\n }", "public static function removeInstanceFromPool($value)\n {\n if (Propel::isInstancePoolingEnabled() && $value !== null) {\n if (is_object($value) && $value instanceof SertifikasiPd) {\n $key = (string) $value->getIdSertPd();\n } elseif (is_scalar($value)) {\n // assume we've been passed a primary key\n $key = (string) $value;\n } else {\n $e = new PropelException(\"Invalid value passed to removeInstanceFromPool(). Expected primary key or SertifikasiPd object; got \" . (is_object($value) ? get_class($value) . ' object.' : var_export($value,true)));\n throw $e;\n }\n\n unset(SertifikasiPdPeer::$instances[$key]);\n }\n }", "public static function removeInstanceFromPool($value)\n {\n if (Propel::isInstancePoolingEnabled() && $value !== null) {\n if (is_object($value) && $value instanceof CastleType) {\n $key = (string) $value->getId();\n } elseif (is_scalar($value)) {\n // assume we've been passed a primary key\n $key = (string) $value;\n } else {\n $e = new PropelException(\"Invalid value passed to removeInstanceFromPool(). Expected primary key or CastleType object; got \" . (is_object($value) ? get_class($value) . ' object.' : var_export($value,true)));\n throw $e;\n }\n\n unset(CastleTypePeer::$instances[$key]);\n }\n }", "public function remove();", "public function remove();", "public function remove();", "public function remove();", "public static function removeInstanceFromPool($value)\n {\n if (Propel::isInstancePoolingEnabled() && $value !== null) {\n if (is_object($value) && $value instanceof RuangLongitudinal) {\n $key = serialize(array((string) $value->getIdRuang(), (string) $value->getSemesterId()));\n } elseif (is_array($value) && count($value) === 2) {\n // assume we've been passed a primary key\n $key = serialize(array((string) $value[0], (string) $value[1]));\n } else {\n $e = new PropelException(\"Invalid value passed to removeInstanceFromPool(). Expected primary key or RuangLongitudinal object; got \" . (is_object($value) ? get_class($value) . ' object.' : var_export($value,true)));\n throw $e;\n }\n\n unset(RuangLongitudinalPeer::$instances[$key]);\n }\n }", "public function removePhoto($value)\n {\n $key = array_search($value, $this->photos);\n if($key !== false) {\n unset($this->photos[$key]);\n }\n }", "public function remove($name)\n {\n unset($this->values[$name]);\n\t}", "public function unsetValue($key);", "public static function removeInstanceFromPool($value)\n {\n if (Propel::isInstancePoolingEnabled() && $value !== null) {\n if (is_object($value) && $value instanceof GsDailyDefinedDose) {\n $key = serialize(array((string) $value->getAtccode(), (string) $value->getDddaantal(), (string) $value->getDddeenheid(), (string) $value->getDddtoedieningsweg()));\n } elseif (is_array($value) && count($value) === 4) {\n // assume we've been passed a primary key\n $key = serialize(array((string) $value[0], (string) $value[1], (string) $value[2], (string) $value[3]));\n } else {\n $e = new PropelException(\"Invalid value passed to removeInstanceFromPool(). Expected primary key or GsDailyDefinedDose object; got \" . (is_object($value) ? get_class($value) . ' object.' : var_export($value,true)));\n throw $e;\n }\n\n unset(GsDailyDefinedDosePeer::$instances[$key]);\n }\n }", "public function deleteBy(string $column, $value)\r\n {\r\n return $this->conn->exec(\"DELETE FROM $this->table WHERE $column = $value\");\r\n }", "function delete_by($attribute, $value) {\n\t\t$sql = \"\n\t\t\tDELETE FROM\n\t\t\t\t\\\"{$this->schema}\\\".\\\"{$this->tableName}\\\"\n\t\t\tWHERE\n\t\t\t\t\\\"{$attribute}\\\" = '{$value}'\n\t\t\";\n\t\t$this->debug->show('delete_by sql: ' . $sql, false);\n\t\t$query = pg_query($this->database->dbConn, $sql);\n\t\treturn $query;\n\t}", "public function remove($key) {\n\t\t$value = isset($this->data[$key]) ? $this->data[$key] : null;\n\t\t$this->trackChange(\"unset:$key\", $value, null); \n\t\tunset($this->data[$key]); \n\t\treturn $this;\n\t}", "public function remove($parameter);", "public function removeAt($key);", "function delete_value($post_id, $meta_key, $field)\n {\n }", "public function getRemoveOriginalValue();", "public function removeMultiValue($strName, $value)\r\n {\r\n // TODO: remove the value from the multi-value array\r\n }", "public function removeFromCart()\n\t{\n\t\t$this->cart->remove($this->request->getInteger('record'));\n\t\t$this->saveCart();\n\t}", "public function deleteRecord($zoneId, $type, $name, $value = null)\n {\n $this->requestWithErrorHandling('delete', '/api/zones/'.$zoneId.'/records/?type='.$type.'&name='.$name.'&value='.$value);\n }", "public static function removeInstanceFromPool($value)\n\t{\n\t\tif (Propel::isInstancePoolingEnabled() && $value !== null) {\n\t\t\tif (is_object($value) && $value instanceof Course) {\n\t\t\t\t$key = (string) $value->getCode();\n\t\t\t} elseif (is_scalar($value)) {\n\t\t\t\t// assume we've been passed a primary key\n\t\t\t\t$key = (string) $value;\n\t\t\t} else {\n\t\t\t\t$e = new PropelException(\"Invalid value passed to removeInstanceFromPool(). Expected primary key or Course object; got \" . (is_object($value) ? get_class($value) . ' object.' : var_export($value,true)));\n\t\t\t\tthrow $e;\n\t\t\t}\n\n\t\t\tunset(self::$instances[$key]);\n\t\t}\n\t}", "function deleteValue() {\r\n $val_id = JRequest::getVar('val_id', '', '', 'array');\r\n $value = & JTable::getInstance('cpvalue', 'Table');\r\n foreach ($val_id as $value_id) {\r\n $value->load($value_id);\r\n $value->delete();\r\n }\r\n }", "public function RemoveRowByValue(Row $row) {\n return $this->RemoveByValue($row);\n }", "public function remove(string $key): void\n {\n\t\tunset($this->values[$key]);\n\t}", "private function dropValue($table, $val)\n {\n $idInTable = 'id' . ucfirst($table);\n\n $query = new Query();\n\n // remove from 'tires' table\n // request can return 0, if don't find any values and this is normal\n $result = $query\n ->deleteFrom('tires')\n ->whereBindStmt([\n $table => ':value'\n ])\n ->prepareBindStatement()\n ->execute(['value' => $val]);\n\n if ($result === false) {\n GenerateException::getException('Error removing from ' . $table . ' value ' . $val);\n }\n\n if ($table == 'gr') {\n $idInTable = 'idGroup';\n }\n\n // remove from relative table $table\n $result = $query\n ->deleteFrom($table)\n ->whereBindStmt([\n $idInTable => ':value'\n ])\n ->prepareBindStatement()\n ->execute(['value' => $val]);\n\n if ($result === false) {\n GenerateException::getException('Error deleting from ' . $table . ' value ' . $val);\n }\n\n return true;\n }", "public static function removeInstanceFromPool($value)\n\t{\n\t\tif (Propel::isInstancePoolingEnabled() && $value !== null) {\n\t\t\tif (is_object($value) && $value instanceof MissionPhoto) {\n\t\t\t\t$key = (string) $value->getId();\n\t\t\t} elseif (is_scalar($value)) {\n\t\t\t\t// assume we've been passed a primary key\n\t\t\t\t$key = (string) $value;\n\t\t\t} else {\n\t\t\t\t$e = new PropelException(\"Invalid value passed to removeInstanceFromPool(). Expected primary key or MissionPhoto object; got \" . (is_object($value) ? get_class($value) . ' object.' : var_export($value,true)));\n\t\t\t\tthrow $e;\n\t\t\t}\n\n\t\t\tunset(self::$instances[$key]);\n\t\t}\n\t}", "function delete($table, $idField, $idValue) {\n $this->connect();\n $sql = 'DELETE FROM ' . $table . ' WHERE ' . $idField . '=' . (int) $idValue . ';';\n return mysqli_query($this->_conn, $sql);\n }", "public function erase($data) {\n\t\tif ($this->_value) {\n\t\t\tforeach ($this->_value as $key => $value) {\n\t\t\t\tif ($value === $data) {\n\t\t\t\t\tunset($this->_value[$key]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn $this;\n\t}", "public function delete()\n {\n return $this->getValue()->delete();\n }", "public static function removeInstanceFromPool($value)\n\t{\n\t\tif (Propel::isInstancePoolingEnabled() && $value !== null) {\n\t\t\tif (is_object($value) && $value instanceof AsignacionSc) {\n\t\t\t\t$key = (string) $value->getId();\n\t\t\t} elseif (is_scalar($value)) {\n\t\t\t\t// assume we've been passed a primary key\n\t\t\t\t$key = (string) $value;\n\t\t\t} else {\n\t\t\t\t$e = new PropelException(\"Invalid value passed to removeInstanceFromPool(). Expected primary key or AsignacionSc object; got \" . (is_object($value) ? get_class($value) . ' object.' : var_export($value,true)));\n\t\t\t\tthrow $e;\n\t\t\t}\n\n\t\t\tunset(self::$instances[$key]);\n\t\t}\n\t}", "public function remove()\n {\n $this->_getBackend()->remove($this->_id);\n }", "public function invalidate($field, $value = true, $last = false) {\n\t\tparent::invalidate($field, $value);\n\t\tif (!$last) {\n\t\t\treturn;\n\t\t}\n\n\t\t$this->validator()->remove($field);\n\t}", "public function removePerformer($value)\n {\n $key = array_search($value, $this->performers);\n if($key !== false) {\n unset($this->performers[$key]);\n }\n }", "function delete( $table, $column, $value ) {\n $result = mysql_query( 'DELETE FROM `' . $table . '` WHERE `' . $column . '` = \"' . $value . '\"' );\n $result || error_log( mysql_error() );\n return $result;\n }", "public /*void*/ function __unset(/*scalar*/ $key){}", "public function destroy(Record $record)\n {\n //\n }", "public function removeValue(string $name): bool;", "public function withoutValue();", "public function removeUrl($value) {\n return $this->setProperty('removeUrl', $value);\n }", "function delete($val){\n $del = $this -> query(\"DELETE FROM {$this ->table} WHERE {$this -> pk} = '{$val}'\");\n return ($del)?true:false;\n }", "public function query_remove($key) {\n\t\t\t\\uri\\query::remove($this->object, $key);\n\t\t}", "function remove($key);", "function remove($key);", "public function remove($key);", "public function remove($key);", "public function remove($key);", "public function remove($key);", "public function remove($key);", "public function remove($key);", "public function remove($key);", "public function remove($key);", "public function remove() {}", "public function remove() {}", "public function & unsetValue( $a_key )\r\n\t{\r\n\t\treturn $this->_unset($a_key);\r\n\t}", "public function subtract($value);", "public function delete($key=null,$value=null){\n return $this->methodsData(\"delete\",$key,$value);\n }", "private function removeKey( $file, $key, $value ) {\n // Validate data\n if( !is_scalar( $value ) )\n throw new \\InvalidArgumentException( 'Argument 3 passed to ' . __METHOD__ . ' must be an integer or a string, ' . gettype( $value ) . ' given' );\n\n $match = 0;\n $key = $this->normalizeKey( $key );\n $temp = new \\SplTempFileObject( $this->swap );\n $pointer = $this->openFile( $file . '.key', self::FILE_READ );\n\n // Itereate through lines\n foreach( $pointer as $line ) {\n $data = $this->getDataFromLine( $line, $key, '=' );\n\n // We have a match\n if( FALSE !== $data ) {\n $data = $this->formatter->decode( $data );\n\n // Remove the index\n if( $pos = array_search( $value, $data ) ) {\n unset( $data[$pos] );\n\n // Write the new line if not empty\n if( !empty( $data ) )\n $temp->fwrite( $key . '=' . $this->formatter->encode( $data ) . PHP_EOL );\n\n $match++;\n }\n else {\n $temp->fwrite( $line . PHP_EOL );\n }\n }\n else {\n $temp->fwrite( $line . PHP_EOL );\n }\n }\n\n $this->closeFile( $pointer );\n\n if( $match ) {\n $temp->rewind();\n\n $pointer = $this->openFile( $file, self::FILE_WRITE );\n\n foreach( $temp as $line ) {\n $pointer->fwrite( $line );\n }\n\n $this->closeFile( $pointer );\n }\n\n $this->closeFile( $temp );\n\n return $match;\n }", "public function removeVerb($value) {\n return $this->setProperty('removeVerb', $value);\n }", "public static function lrem($key, $count, $value)\n {\n return parent::lrem($key, $count, $value);\n }", "public function remove(string $key);", "public function removeAllowedValue(string $value) : OptionMetadataInterface\n {\n if (in_array($value, $this->allowedValues)) {\n unset($this->allowedValues[array_search($value, $this->allowedValues)]);\n }\n\n return $this;\n }", "public function removeField( $field ) {\r\n if ( isset($this->fields[$field]) ) {\r\n unset($this->fields[$field]);\r\n }\r\n\r\n }", "public function remove() {\n\t\t$this->setRemoved(TRUE);\n\t}", "public function deleteRecord()\n { \n $sql = \"DELETE FROM Cubans WHERE Id = :Id\";\n $statement = $this->connect->prepare($sql);\n $statement->bindValue(':Id', $this->id);\n $statement->execute();\n }", "function remove ($key);", "function remove($k){\r\n\t\tunset($this->data[$k]);\r\n\t}", "public function delete($val) {\n $node = $this->search($val);\n\n // Sentinel can't be deleted.\n if ($node->val() === $this->sentinelVal()) return;\n\n if ($node->prev()->val() !== $this->sentinelVal()) {\n $node->prev()->setNext($node->next());\n } else {\n $this->_head = $node->next();\n }\n\n if ($node->next() !== $this->sentinelVal()) {\n $node->next()->setPrev($node->prev());\n }\n }", "public function offsetUnset($offset)\n {\n unset($this->getValue()[$offset]);\n }", "public function remove($key) {}", "static public function arrRmByVal($arr,$value=''){\n $arr = is_array($arr)?$arr:array();\n foreach ($arr as $k=>$v)\n {\n if ($v == $value)\n unset($arr[$k]);\n }\n return $arr;\n }", "public function remove($offset = null);", "public function rem($key);", "function delUserProperty($key,$field){\n return $this->redis->hdel($key,$field);\n }" ]
[ "0.7671479", "0.67443323", "0.6721043", "0.6647087", "0.6622199", "0.6571512", "0.6527055", "0.6484219", "0.64402926", "0.6352389", "0.63361055", "0.6276592", "0.62714285", "0.6175753", "0.6121117", "0.58988196", "0.5836155", "0.58350223", "0.57876784", "0.57609165", "0.5725317", "0.5708407", "0.5658331", "0.5637273", "0.5593397", "0.5584574", "0.5571596", "0.55632377", "0.5561655", "0.5561655", "0.5561655", "0.5561655", "0.55474967", "0.5545579", "0.5542675", "0.55385065", "0.55357474", "0.55258703", "0.5518797", "0.5511658", "0.55046713", "0.54789287", "0.54755867", "0.5470766", "0.5466532", "0.54543805", "0.54530096", "0.5447533", "0.54439104", "0.54412526", "0.54380816", "0.5424329", "0.54094744", "0.5407305", "0.5388788", "0.5383379", "0.53826195", "0.53787357", "0.5371574", "0.5366191", "0.53657466", "0.5355705", "0.5341582", "0.5337065", "0.53253317", "0.53114635", "0.5298377", "0.5297654", "0.5296235", "0.5296235", "0.5292701", "0.5292701", "0.5292701", "0.5292701", "0.5292701", "0.5292701", "0.5292701", "0.5292701", "0.5287988", "0.52868193", "0.5274179", "0.52725995", "0.52723634", "0.52707785", "0.5268856", "0.5267847", "0.52656627", "0.52621865", "0.52563584", "0.52549547", "0.52548635", "0.52439946", "0.52387315", "0.5238454", "0.5237458", "0.5230011", "0.5213919", "0.5208688", "0.5207", "0.52040416" ]
0.56093985
24
Returns the number of columns currently stored within the Record.
public function count() { return count($this->_data); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function columnCount()\n {\n return sasql_num_fields($this->connection);\n }", "public function columnCount() {\n\t\tif( !$this->_result ) return 0;\n\t\treturn mssql_num_fields($this->_result);\n\t}", "public function count()\n\t{\n\t\treturn count($this->columns);\n\t}", "public function columnCount()\n {\n return oci_num_fields($this->sth);\n }", "function GetColCount()\n {\n return mysqli_num_fields($this->rs);\n }", "public function getColumnsCount()\n {\n return count($this->columns);\n }", "public function columnCount()\r\n\t{\r\n\t\treturn intval($this->columnCount);\r\n\t}", "public function getNumberOfColumns() {\n return count($this->columns);\n }", "public function getNumColumns() {\n\t\treturn $this->_num_cols;\n\t}", "abstract public function getColumnsCount();", "public function getNumberColumns()\n {\n return mysqli_num_fields($this->resulset);\n }", "public function num_fields()\r\n {\r\n return $this->num_fields;\r\n }", "public function columnCount();", "public function getColumns()\n {\n return strlen($this->string);\n }", "public function getNumberOfColumns()\r\n {\r\n if ($this->getNumberOfRows()) {\r\n return count( $this->data[0] );\r\n } else {\r\n return 0;\r\n }\r\n }", "public function num_fields() {\r\n return $this->num_fields;\r\n }", "public function fieldCount()\n {\n return sasql_num_fields($this->connection);\n }", "function num_fields() {\r\n\t\treturn $this->dbh->num_fields();\r\n\t}", "public function GetColumnCount() : INT\r\n {\r\n return($this->preparedStatement->columnCount());\r\n }", "function getNCols() \n {\n if($this->rsQry)\n {\n return true;\n }\n else\n {\n\t\t\t return mysql_num_fields($this->rsQry);\n }\n\t\t}", "function num_fields()\r\n\t{\r\n\t\tif ( is_array($this->pdo_results) ) {\r\n\t\t\treturn sizeof($this->pdo_results[$this->pdo_index]);\r\n\t\t} else {\r\n\t\t\treturn $this->result_id->columnCount();\r\n\t\t}\r\n\t}", "public function getColumnCount()\n {\n return $this->column_count;\n }", "public function ColCount() {\n return $this->_coln;\n }", "function numCols($result)\n {\n $this->getRows();\n return(count(array_keys($this->_record)));\n }", "public function numberOfColumns(): int\n {\n return $this->nCols;\n }", "public function getColumnCount()\n {\n $res = $this->getMetaData();\n $colcount = 0;\n foreach ($this->_metaData['sections'] as $section) {\n $sec_colcount = 0;\n foreach ($section['columns'] as $col) {\n if (isset($col['colspan'])) {\n $sec_colcount += $col['colspan'];\n } else {\n $sec_colcount++;\n }\n }\n if ($sec_colcount > $colcount) {\n $colcount = $sec_colcount;\n }\n }\n\n return $colcount;\n }", "public function getFieldsCount()\n {\n $count = @oci_num_fields($this->stmt_id);\n\n // if we used a limit we subtract it\n if ($this->limit_used) {\n $count = $count - 1;\n }\n\n return $count;\n }", "public function numColumns() : int\n {\n return count($this->samples[0] ?? []);\n }", "public function getFieldCount(): int\n {\n return oci_num_fields($this->resultID);\n }", "public function num_fields()\n\t{\n\t\t$count = @oci_num_fields($this->stmt_id);\n\n\t\t// if we used a limit we subtract it\n\t\tif ($this->limit_used)\n\t\t{\n\t\t\treturn $count - 1;\n\t\t}\n\n\t\treturn $count;\n\t}", "public function getRecordCount()\n {\n return $this->count(self::_RECORD);\n }", "public function getFieldCount()\n {\n return count($this->_fields);\n }", "public function numFields();", "public function getNumFields()\n {\n return count($this->fields);\n }", "public function num_fields()\n {\n return @mysql_num_fields( $this->Query_ID );\n }", "public function columnCount()\n {\n }", "public function recordCount()\n {\n return sizeof($this->getRecords());\n }", "function FieldCount()\n\t{\n\t\treturn $this->_numOfFields;\n\t}", "public function getColumnCount(): int\r\n {\r\n return count($this->columns);\r\n }", "function numFields() {\n return mysqli_num_fields($this->result);\n }", "public function size() : int\n {\n return $this->numRows() * $this->numColumns();\n }", "public function getColumnsCount($result_set)\n\t{\n\t\treturn $result_set->field_count;\n\t}", "public function getFieldCount(): int {\n $record = $this->readRecord();\n // ensure that the header can be read again after field count\n $this->headerRead = false;\n $this->rewind();\n\n return null === $record ? 0 : count($record);\n }", "public function get_column_count()\n {\n }", "public function count()\n {\n return count($this->fields);\n }", "public function count()\n {\n return count($this->fields);\n }", "function num_fields()\n\t{\n\t\treturn sqlsrv_num_fields($this->result_id);\n\t}", "public function _pseudo_numberOfFields() {\n return count($this->data);\n }", "function num_fields()\n\t{\n\t\treturn @mysqli_num_fields($this->result_id);\n\t}", "function numFields()\n {\n return mysql_num_fields($this->Query_ID);\n }", "public function numOfFields();", "public function getRecordsCount()\n {\n return $this->count(self::_RECORDS);\n }", "public function count(){\n\t\t$this->initRecordSet();\n\t\treturn $this->recordSetSize;\n\t}", "function num_fields()\n\t{\n\t\treturn @mysqli_num_fields($this->m_query_idD);\n\t}", "public function Size() {\n return $this->RowCount() * $this->_coln;\n }", "abstract public function getNumFields();", "function RecordCount() {\r\n return $this->result->numRows();\r\n }", "public function getFieldCount() {}", "function num_fields($sth){\n try{\n switch(dbconection::$conntype){\n case \"pdo\" : return $sth->columnCount(); break;\n case \"mysql\" : return mysqli_num_fields($sth); break;\n case \"postgresql\" : return pg_num_fields($sth); break;\n default : throw new Exception(\"Nenhum tipo de conexão definida.\");\n }\n }catch(Exception $e){\n printr(\"NUM FIELDS ERROR : \".$e->getMessage());\n }\n }", "public function numberOfFields();", "public function numFields()\n\t{\n\t\t// verify that a query was run\n\t\tif (is_resource($this->_results) === false)\n\t\t{\n\t\t\tthrow new DatabaseException('',\n\t\t\t\tDatabaseException::QUERY_NOT_RUN);\n\t\t}\n\n\t\t// check connection\n\t\t$this->_checkConnection();\n\n\t\t// get number of fields\n\t\treturn mysql_num_fields($this->_results);\n\t}", "function numFields(){\r\n return mysql_num_fields($this->Query_ID);\r\n }", "function RecordCount()\n\t{\n\t\treturn $this->_numOfRows;\n\t}", "public function getFieldsNum($result)\n {\n return $result->columnCount();\n }", "public function get_record_size() {\n return 0;\n }", "public function getNumberOfRecords() {}", "public function numRows() {\n\t\t$q = \"SELECT COUNT(*) FROM {$this->_name}\";\n\t\t$r = @sqlite_query($q, $this->_connection);\n\t\tlist($numRows) = sqlite_fetch_array($r, SQLITE_NUM);\n\t\treturn $numRows;\n\t}", "protected function getTotalColumns()\n {\n $columns = $this->visibleColumns ?: $this->getVisibleColumns();\n $total = count($columns);\n\n if ($this->showCheckboxes) {\n $total++;\n }\n\n if ($this->showSetup) {\n $total++;\n }\n\n return $total;\n }", "function sql_num_fields($res)\n {\n return $res->columnCount();\n }", "public function size(){\n\t\treturn $this->recordSetSize;\n\t}", "public function count() {\n return count($this->__rows__);\n }", "public function getNumFields($statement)\r\n\t{\r\n\t\tif(!is_resource($statement))\r\n\t\t{\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\treturn mssql_num_fields($statement);\r\n\t\t}\r\n\t}", "function pdo_num_fields($stmt) {\r\n return pdo_stmt($stmt)->columnCount();\r\n }", "public function count() {\n if($this->count === false) {\n if (is_object($this->table)) {\n $this->count = 1;\n } elseif (is_array($this->table)) {\n $this->count = count($this->table);\n } else {\n $this->count = 0;\n }\n }\n return $this->count;\n }", "public function columnCount($sql) {\n $sth = $this->prepare($sql);\n $sth->execute();\n\n return $sth->columnCount();\n }", "public static function getFieldsInRow(): int\n {\n return self::$fieldsInRow;\n }", "function record_count() {\n return $this->db->count_all($this->_student);\n }", "public function numberOfRecords(): int\n {\n return $this->number_of_records;\n }", "public function getCount() {\n return $this->db->fetchColumn(\"SELECT COUNT(id) FROM $this->table\");\n }", "public function getCount() {\n\t\treturn $this->db->fetchColumn ( \"SELECT COUNT(id) FROM \" . $this->table );\n\t}", "function num_fields($query)\n\t{\n\t\treturn $query->columnCount();\n\t}", "public function getFieldSize() : int\n\t{\n\t\treturn $this->fieldSize;\n\t}", "public abstract function field_count();", "function record_count()\n\t{\n\t\t $sql = \"SELECT COUNT(*) As cnt FROM pof\";\n\t $q = $this->db->query($sql);\n\t $row = $q->row();\n\t return $row->cnt;\n\t}", "public function getCount()\n\t{\n\t\treturn count($this->_d);\n\t}", "public function NUM_FIELD($SQL_Resource)\n {\n if (extension_loaded(\"sqlsrv\") == false)\n {\n return false;\n }\n return @sqlsrv_num_fields($SQL_Resource);\n }", "public function count()\n {\n return count($this->_rows);\n }", "public function count() {\n return sizeof($this->data);\n }", "public function count() {\n return sizeof($this->data);\n }", "public function count() {\n return sizeof($this->data);\n }", "public function num_fields( $qHandle )\r\n\t{\r\n\t\treturn $qHandle->Fields->Count;\r\n\t}", "public function num_fields( $qHandle )\r\n\t{\r\n\t\treturn num_fields($qHandle);\r\n\t}", "public function getColumnLength()\n {\n $columnLength = self::INITIAL_COLUMN_LENGTH;\n while ($columnLength < $this->maximumLength) {\n $columnLength *= self::COLUMN_LENGTH_STEPS;\n }\n\n return $columnLength;\n }", "public function getTotalRecords() {\n\t\t$sheet = $this->getFileActiveSheet();\n\t\t$highestColumn = $sheet->getHighestDataRow();\n\n\t\treturn $highestColumn - 1;\n\t}", "public function count()\n {\n return sizeof($this->getData());\n }", "public abstract function GetFieldCount();", "public function count() { \n\t\tif( $this->isDirty() ) { $this->executeQuery(); }\n\t\treturn( count( $this->_recordset ) ); \n\t}", "function size()\r\n\t{\r\n\t\t// Gets a MemModel by executing a find(null,null,null) to get a \r\n\t\t//inferable statements.\t\r\n\t\t// WARNING: might be slow\r\n\t \t$res = $this->getMemModel();\r\n\t \treturn $res->size();\r\n\t}", "public function num_fields( $qHandle )\r\n\t{\r\n\t\treturn @mssql_num_fields( $qHandle );\r\n\t}", "public function count($col);", "public abstract function getColumnsCount($result_set);" ]
[ "0.80896217", "0.7899036", "0.7896873", "0.78958267", "0.78485376", "0.7840129", "0.7702455", "0.76809084", "0.7672946", "0.7595887", "0.7580554", "0.75355136", "0.75334024", "0.7522594", "0.7486555", "0.7474611", "0.7441941", "0.7435544", "0.7434384", "0.7358632", "0.73481375", "0.7330082", "0.7320896", "0.72901297", "0.72747225", "0.7272824", "0.72593313", "0.7259178", "0.72570986", "0.7162859", "0.71563554", "0.7155852", "0.71352124", "0.7127459", "0.71237004", "0.7026619", "0.702623", "0.70254517", "0.6987152", "0.69842374", "0.6974219", "0.6966554", "0.6961142", "0.6945849", "0.6927166", "0.6927166", "0.692031", "0.69016844", "0.6883054", "0.6877089", "0.68494546", "0.68247557", "0.6822116", "0.6804977", "0.67968976", "0.6790591", "0.6765648", "0.67474735", "0.67400753", "0.6735251", "0.67269504", "0.67165434", "0.6709545", "0.6685523", "0.667907", "0.6675155", "0.6662324", "0.6661751", "0.66536945", "0.6645038", "0.66386056", "0.66312146", "0.6596146", "0.65924233", "0.6585043", "0.6580453", "0.6560798", "0.6555096", "0.6532836", "0.6527188", "0.65214264", "0.65094966", "0.6506853", "0.6458198", "0.6431686", "0.64309406", "0.6430152", "0.6429233", "0.6429233", "0.6429233", "0.6428111", "0.6422869", "0.6418118", "0.6417622", "0.6405263", "0.6391934", "0.63874495", "0.6375565", "0.63744926", "0.6366832", "0.63583213" ]
0.0
-1
Returns the currently selected column.
public function current() { return current($this->_data); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCol()\n {\n return $this->col;\n }", "public function getColumn()\n {\n return $this->column;\n }", "public function getColumn()\n {\n return $this->column;\n }", "public function getColumn()\n {\n return $this->get('Column');\n }", "public function getCurrentSortedColumn()\n {\n return $this->_currentSortedColumn;\n }", "public function getColumn(): string\n {\n return $this->_column;\n }", "public function getColumn() { return $this->column; }", "protected function get_column() {\n\n\t\t$column = $this->foreign_column ?: $this->foreign_table->get_primary_key();\n\t\t$columns = $this->foreign_table->get_columns();\n\n\t\treturn $columns[ $column ];\n\t}", "public function getColumn(): string\n {\n return $this->column;\n }", "public function getColumn(): string;", "public function getColumnOption()\n {\n return $this->_columnOption;\n }", "public function column() : int\n {\n return $this->column;\n }", "protected function getColumn()\n {\n return DB::select(\n 'SELECT\n\t\t\t\t\t\t\t c.COLUMN_NAME\n\t\t\t\t\t\t\t,c.COLUMN_DEFAULT\n\t\t\t\t\t\t\t,c.IS_NULLABLE\n\t\t\t\t\t\t\t,c.DATA_TYPE\n\t\t\t\t\t\t\t,c.CHARACTER_MAXIMUM_LENGTH\n\t\t\t\t\t\t\t,pk.CONSTRAINT_TYPE AS EXTRA\n\t\t\t\t\t\t\tFROM INFORMATION_SCHEMA.COLUMNS AS c\n\t\t\t\t\t\t\tLEFT JOIN (\n\t\t\t\t\t\t\t SELECT ku.TABLE_CATALOG,ku.TABLE_SCHEMA,ku.TABLE_NAME,ku.COLUMN_NAME, tc.CONSTRAINT_TYPE\n\t\t\t\t\t\t\t FROM INFORMATION_SCHEMA.TABLE_CONSTRAINTS AS tc\n\t\t\t\t\t\t\t INNER JOIN INFORMATION_SCHEMA.KEY_COLUMN_USAGE AS ku ON tc.CONSTRAINT_NAME = ku.CONSTRAINT_NAME\n\t\t\t\t\t\t\t) AS pk ON c.TABLE_CATALOG = pk.TABLE_CATALOG\n\t\t\t\t\t\t\t AND c.TABLE_SCHEMA = pk.TABLE_SCHEMA\n\t\t\t\t\t\t\t AND c.TABLE_NAME = pk.TABLE_NAME\n\t\t\t\t\t\t\t AND c.COLUMN_NAME = pk.COLUMN_NAME\n\t\t\t\t\t\t\tWHERE c.TABLE_NAME = ? AND c.TABLE_CATALOG = ? ',\n [$this->tableName, $this->databaseName]\n );\n }", "public function getSqlCol()\n {\n return $this->sqlCol;\n }", "protected static function column_name(): mixed\n\t{\n\t\treturn self::$query->column_name;\n\t}", "public function getColumna() {\n return $this->columna;\n }", "protected function getWhereColumn()\n {\n $table = $this->getDoctrineTable();\n \n if ($this->getOption('column'))\n {\n return $table->getColumnName($this->getOption('column'));\n }\n\n $identifier = (array) $table->getIdentifier();\n $columnName = current($identifier);\n\n return $table->getColumnName($columnName);\n }", "public function getUpdateColumn()\n {\n return $this->select_list;\n }", "protected function getNewColumn()\n {\n return $this->newColumn;\n }", "final public function col():Col\n {\n return $this->table()->col($this->col);\n }", "public function getColumn($column)\n {\n return $this->allColumns[$column];\n }", "public function getColumnName()\n {\n return $this->columnName;\n }", "public function getColumnName() {\n return $this->columnName;\n }", "public function getDataColumn()\n {\n return $this->dataColumn;\n }", "protected function getPositionColumn()\n {\n return $this->positionColumn ?? 'position';\n }", "protected function getOldColumn()\n {\n return $this->oldColumn;\n }", "function getRecordCol($index) {\n return $this->records[$index]->getCol();\n }", "public function get_column_key() {\n\t\treturn $this->column_key;\n\t}", "public function getColumnName();", "public function getColumn($name)\n {\n return $this->columns[$name];\n }", "public function getCol() : array\n\t{\n\t\treturn $this->fetchAllFromColumn();\n\t}", "public function getPositionColumn();", "function getCol($sql){\n\t\t$res_array = $this->query($sql);\n\t\tif (array_key_exists(0, $res_array) AND array_key_exists(0, $res_array[0])){\n\t\t\treturn $res_array[0][0];\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public function getModifiedColumn()\n {\n return $this->modifiedColumn;\n }", "public function getColumn($name)\n {\n return isset($this->columns[$name]) ? $this->columns[$name] : null;\n }", "public function getSortColumn();", "public static function select_column($query)\n {\n $column = array();\n $rs = self::query($query);\n while (true)\n {\n $values = Db::fetch_row($rs);\n if ($values === false)\n break;\n array_push($column, $values[0]);\n }\n Db::free_result($rs);\n return $column;\n }", "abstract public static function get_column_name(): string;", "public function getSpecificColumns()\n {\n return $this->_specificColumns;\n }", "public function getStartColumn()\n {\n return $this->start_column;\n }", "private function getColumn(): string\n {\n return $this->getUsernameColumnName();\n }", "public function current()\n {\n return array_combine(\n $this->_colNames,\n count($this->_currentRow) != $this->_colQuantity\n ? array_pad($this->_currentRow, $this->_colQuantity, '')\n : $this->_currentRow\n );\n }", "public function GetColumn($index = NULL)\r\n {\r\n return($this->preparedStatement->fetchColumn($index));\r\n }", "public function fetchColumn($columnIndex = 0);", "public function getNameColumn()\n {\n return $this->nameColumn;\n }", "public function getIdentityColumn()\n {\n $result = null;\n if(isset($this->_identity_column)) {\n $result = $this->_identity_column;\n }\n\n return $result;\n }", "private function getColumn($columnName)\n {\n $columns = array_filter(\n $this->columns,\n function ($column) use ($columnName) {\n return $column->name == $columnName;\n } // end anonymous array filter function\n ); // end arrayfilter\n\n return array_shift(\n $columns\n ); // end array_shift\n }", "public function getSelected()\n {\n return $this->selected;\n }", "public function getSelected()\n {\n return $this->selected;\n }", "public function getColumns()\n {\n return $this->select_list;\n }", "public function fetchColumn() {\n if ($this->result === true) {\n return false;\n }\n\n // Are we running PHP >=8.1?\n if (PHP_VERSION_ID >= 80100) {\n $value = $this->result->fetch_column();\n return ($value === null || $value === false) ? $value : (string) $value;\n }\n\n // Fallback to traditional approach\n $row = $this->result->fetch_row();\n return $row ? $row[0] : false;\n }", "public function fetchColumn(int $column = 0);", "public function getColumn( $sQuery ){\n $oQuery = $this->query( $sQuery );\n $this->checkQuery( $oQuery );\n return $oQuery->fetchColumn( );\n }", "public function getColumn($name)\n {\n foreach ($this->getColumns() as $column) {\n if ($column->getName() === $name) {\n return $column;\n }\n }\n\n }", "public function getIdColumn()\n {\n return $this->idColumn;\n }", "public function getCreatedColumn()\n {\n return $this->createdColumn;\n }", "public function getCol($sql, $bind = null)\r\n {\r\n $result = $this->_execute($sql, $bind);\r\n\r\n while ($result->valid())\r\n {\r\n $col[] = $result->fetchSingle();\r\n }\r\n\r\n return $col;\r\n }", "public function getColumn(){\n\n $part = substr($this->input, 0, $this->index);\n $pos = strrpos($part,\"\\n\");\n return $this->index - $pos;\n }", "public function getColumn($get)\n\t{\n\t\tif (!array_key_exists($get, $this->row))\n\t\t\tthrow new InternalException(\"row $get doesn't exist\");\n\t\treturn $this->row[$get];\n\t}", "public function getSelect()\n {\n return $this->select;\n }", "public function getSelect()\n {\n return $this->select;\n }", "public function getSelect() {\r\n return $this->_select;\r\n }", "public function getColumnModel();", "public function getSelect() {\n return $this->select;\n }", "function get_first_column( $table, $db = null ) {\n\n\t\treturn reset( $this->get_columns( $table, $db ) );\n\n\t}", "public function get_column_id()\n\t{\n\t\treturn $this->table.'.id';\n\t}", "public function query_col($sql) {\r\n\t return $this->query_select_single( $sql );\r\n\t}", "public function toColumn() {\r\n\t\treturn $this->PDOStatement->fetchAll(PDO::FETCH_COLUMN,0);\r\n\t}", "public function firstCol() {\n\t}", "public function current() {\n\t\treturn $this->getTableGroups()[ $this->position ];\n\t}", "public function lastCol() {\n\t}", "function Get($col)\n {\n return $this->row ? $this->row[$col] : NULL;\n }", "public function fetchColumn($sql, $bind = null)\r\n {\r\n return $this->selectPrepare($sql, $bind)->fetchAll(PDO::FETCH_COLUMN, 0);\r\n }", "public function getName()\n {\n return $this['column_name'];\n }", "protected function getSortColumn()\n {\n if (!$this->isSortable()) {\n return false;\n }\n\n if ($this->sortColumn !== null) {\n return $this->sortColumn;\n }\n\n /*\n * User preference\n */\n if ($this->showSorting && ($sortOptions = $this->getSession('sort'))) {\n $this->sortColumn = $sortOptions['column'];\n $this->sortDirection = $sortOptions['direction'];\n }\n\n /*\n * Supplied default\n */\n else {\n if (is_string($this->defaultSort)) {\n $this->sortColumn = $this->defaultSort;\n $this->sortDirection = 'desc';\n }\n elseif (is_array($this->defaultSort) && isset($this->defaultSort['column'])) {\n $this->sortColumn = $this->defaultSort['column'];\n $this->sortDirection = $this->defaultSort['direction'] ?? 'desc';\n }\n }\n\n /*\n * First available column\n */\n if ($this->sortColumn === null || !$this->isSortable($this->sortColumn)) {\n $columns = $this->visibleColumns ?: $this->getVisibleColumns();\n $columns = array_filter($columns, function ($column) { return $column->sortable; });\n $this->sortColumn = key($columns);\n $this->sortDirection = 'desc';\n }\n\n return $this->sortColumn;\n }", "public function getCreatedColumn() {\n return $this->createdColumn;\n }", "public static function queryCol($sql)\n\t{\n\t\t$tempResults = self::$link->query($sql);\n\t\t\n\t\tif(!$tempResults)\n\t\t{\n\t\t\tself::handleError($sql);\n //TODO should probably return here\n\t\t}\n\t\t\n\t\t$column = array();\n\t\t\n\t\twhile(!is_null($row = $tempResults->fetch_row()))\n\t\t{\n\t\t\t$column[] = $row[0];\n\t\t}\n\t\t\n\t\t$tempResults->close();\n\t\t\n\t\t//return $tempResults->fetchCol();\n\t\treturn $column;\n\t}", "public function fetchColumn ($index) {\n return $this->query->fetchColumn($index);\n }", "public function getFullIdentifier()\n {\n return $this->getDriver()->getColumnFullIdentifier($this);\n }", "public function fetchCol($columnName);", "public function getId() {\r\n\t\t\treturn $this->columns[ $this->index ];\r\n\t\t}", "public function getColumn($column_id)\n {\n return $this->db->table(self::TABLE)->eq('id', $column_id)->findOne();\n }", "public function getQualifiedDeactivatedAtColumn()\n {\n return $this->qualifyColumn($this->getDeactivatedAtColumn());\n }", "protected function getLevelColumn()\n {\n $table = $this->getDoctrineTable();\n \n return $table->getColumnName($this->getOption('level_column'));\n }", "public function column($sql, $params = [])\n {\n $result = $this->query($sql, $params);\n return $result->fetchColumn();\n }", "public function fetchColumn() {\r\n\t\t$result = array();\r\n\r\n\t\twhile ($data = $this->fetch()) {\r\n\t\t\t$result[] = current($data);\r\n\t\t}\r\n\r\n\t\t$this->freeResult();\r\n\r\n\t\treturn $result;\r\n\t}", "public function getColumn($query, $col = 0) {\n\t\t$return = array();\n\t\t$result = $this->query($query);\n\t\twhile ($row = $result->fetch_array()) {\n\t\t\t$return[] = $row[$col];\n\t\t}\n\t\t$result->free();\n\t\treturn $return;\n\t}", "public function getQualifiedLocalizableColumn()\n {\n return $this->getTable() . '.' . $this->getLocalizableColumn();\n }", "public function getCol($col)\n {\n if (!$this->checkRange(0, $col)) {\n throw new \\OutOfRangeException();\n }\n\n return array_column($this->_data, $col);\n }", "public function getColumnById($id) {\n\t\tforeach ($this->columns as $column) {\n\t\t\tif ($column->getId() == $id) {\n\t\t\t\treturn $column;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "function GetRowColumn($row,$column){\n\t\t\treturn @mysql_result($this->result,$row,\"$column\");\n\t\t}", "function GetColVal($col_name) {\n\t\treturn $this->$col_name;\n\t}", "public function getSqlColString()\n {\n return $this->sqlColString;\n }", "public function get_primary_column()\n {\n }", "private function get_last_display_column()\r\n\t\t{\r\n\t\t\t$last_display_col = 0;\r\n\t\t\t\r\n\t\t\tforeach($this->c_columns as $key_col => $val_col)\r\n\t\t\t{\r\n\t\t\t\tif($val_col['display']) $last_display_col = $key_col;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\treturn $last_display_col;\r\n\t\t}", "public function getSelection()\n {\n if( count($this->selection) === 0 ) {\n $this->setSelection();\n }\n return $this->selection;\n\n }", "public function getColumn($name)\r\n {\r\n }", "function Get($col)\n {\n return isset($this->row) ? $this->row[$col] : null;\n }", "function get_col($query=null,$x=0) {\n\n\t\t\t// If there is a query then perform it if not then use cached results..\n\t\t\tif ( $query ) {\n\t\t\t\t$this->query($query);\n\t\t\t}\n\n\t\t\t// Extract the column values\n\t\t\tfor ( $i=0; $i < count($this->last_result); $i++ ) {\n\t\t\t\t$new_array[$i] = $this->get_var(null,$x,$i);\n\t\t\t}\n\n\t\t\treturn $new_array;\n\t\t}", "public function get_select_for_index()\n\t{\n\t\treturn\t$this->get_column_key().','.\n\t\t\t$this->get_column_title().' AS title,'.\n\t\t\t$this->get_column_detail().','.\n\t\t\t$this->get_column_when();\n\t}", "final public function col($key):?string\n {\n return $this->get(['col',$key]);\n }" ]
[ "0.77664155", "0.7746697", "0.7746697", "0.7709175", "0.7635345", "0.7588729", "0.75630146", "0.75433254", "0.75304055", "0.70678014", "0.70143396", "0.691142", "0.68980914", "0.6863976", "0.6831521", "0.6829038", "0.67924887", "0.6786899", "0.6783048", "0.6704877", "0.6683931", "0.6619646", "0.6609087", "0.6597586", "0.6591447", "0.6565836", "0.65625924", "0.6558579", "0.6516367", "0.6513613", "0.6507025", "0.6454563", "0.6439833", "0.6393099", "0.6362747", "0.6357115", "0.6334652", "0.6328446", "0.63005185", "0.6299686", "0.6290201", "0.6286901", "0.62836796", "0.62822264", "0.6245193", "0.6242478", "0.62420446", "0.62074864", "0.62074864", "0.61924845", "0.6181484", "0.61769915", "0.61667866", "0.61465144", "0.6145061", "0.6136346", "0.61342824", "0.6128196", "0.61256814", "0.6103775", "0.6103775", "0.60866195", "0.60817486", "0.6076672", "0.60766417", "0.6073841", "0.6072492", "0.60495794", "0.6038983", "0.60366505", "0.60348916", "0.60114443", "0.6000667", "0.59937507", "0.59896564", "0.59820384", "0.59584385", "0.59537864", "0.59507966", "0.59368116", "0.5930694", "0.5928115", "0.59130013", "0.59113675", "0.59097487", "0.5898853", "0.589225", "0.58870435", "0.58850735", "0.5881593", "0.5874813", "0.58580744", "0.5853393", "0.58470154", "0.5829119", "0.58273953", "0.58257836", "0.5824758", "0.5814789", "0.58005327", "0.5791781" ]
0.0
-1
Returns the key of the currently selected column.
public function key() { return key($this->_data); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_column_key() {\n\t\treturn $this->column_key;\n\t}", "public function key()\n\t{\n\t\treturn $this->grid->getDataset()->getKeyByIndex($this->c);\n\t}", "abstract public static function get_column_key(): string;", "public function getKey() {\n return sprintf('%d:%d', $this->row, $this->column);\n }", "public function key()\n {\n return $this->selection->key();\n }", "public function key() {\n\t\t$this->checkResultSet();\n\n\t\tif (! is_null($this->keyColumn)) {\n\t\t\t$row = $this->fetchRowAssoc($this->index, true);\n\t\t\treturn $row[$this->keyColumn];\n\t\t}\n\n\t\treturn $this->index;\n\t}", "public function key() {\n\t\treturn( $this->_currentRow );\n\t}", "public function key()\n {\n return $this->getKey($this->getCursor());\n }", "public function key()\n {\n return $this->_currentRowNumber;\n }", "public function key() {\n return $this->keys[$this->index];\n }", "public function key()\n {\n return $this->current_key;\n }", "public function key()\n\t{\n\t\treturn $this->_keys[$this->_idx];\n\t}", "public function getKey() {\n\t\treturn $this -> key;\n\t}", "public function getKeyField()\n {\n return $this->_key;\n }", "public function key()\n {\n return $this->keys[$this->index];\n }", "public function key()\n {\n return $this->currentKey;\n }", "protected function key()\n {\n $value = $this->keyVal();\n return key($value);\n }", "public function key()\n {\n return $this->current[$this->dataStore->getIdentifier()];\n }", "public function key()\n {\n return $this->_currentKey;\n }", "function key() {\n return $this->keys[$this->position];\n }", "public function key()\n {\n $current = $this->current();\n\n return is_null($current) ? null : $current->getKey();\n }", "public function key()\r\n\t{\r\n\t\treturn $this->elements[$this->i]->get($this->obj->primaryKey);\r\n\t}", "function get_primary_key_column()\n {\n return $this->_primary_key_column;\n }", "public function firstKey()\n\t{\n\t\treturn $this->first()->key;\n\t}", "public function getKeyName()\n {\n return isset($this->primaryKey) ? $this->primaryKey : static::$defaultPrimaryKey;\n }", "private function getPrimaryKey()\n {\n $result = database()->fetchResult('SHOW KEYS FROM ' . $this->table . ' WHERE Key_name = \"PRIMARY\"');\n\n return ($result['Column_name'] ?? null);\n }", "public function key() {\n return $this->keys[$this->pos];\n }", "public function key()\n {\n return current($this->keys);\n }", "public function getKeyName()\n {\n return $this->primaryKey;\n }", "public function getKeyName()\n {\n return $this->primaryKey;\n }", "public function key()\n {\n return $this->current();\n }", "public function get_field_key() {\n\t\treturn $this->get_field_attr( 'field_key' );\n\t}", "public function getPrimaryKey()\n {\n $cols = $this->info('cols');\n return $cols[0];\n }", "public function getKey()\n {\n return $this->getAttribute($this->getKeyName());\n }", "public function getKey()\n {\n return $this->getAttribute($this->getKeyName());\n }", "protected function _getColumnKey($column)\n {\n if (!is_array($column)) {\n $matches = $this->_matchColumnString($column);\n $columnKey = $matches[1];\n } elseif (!empty($column['attribute'])) {\n $columnKey = $column['attribute'];\n } elseif (!empty($column['label'])) {\n $columnKey = $column['label'];\n } elseif (!empty($column['header'])) {\n $columnKey = $column['header'];\n } elseif (!empty($column['class'])) {\n $columnKey = $column['class'];\n } else {\n $columnKey = null;\n }\n return hash('crc32', $columnKey);\n }", "public function getId() {\r\n\t\t\treturn $this->columns[ $this->index ];\r\n\t\t}", "protected function get_column() {\n\n\t\t$column = $this->foreign_column ?: $this->foreign_table->get_primary_key();\n\t\t$columns = $this->foreign_table->get_columns();\n\n\t\treturn $columns[ $column ];\n\t}", "public function getPrimaryKeyColumn() : string\n {\n return $this->primaryKey;\n }", "#[\\ReturnTypeWillChange]\n public function key()\n {\n return current($this->keys);\n }", "public function key() {\n\t\t\treturn $this->index;\n\t\t}", "public function key()\n\t{\n\t\tif (empty($this->key) && !empty($this->definition->primary))\n\t\t{\n\t\t\t$keys = array_values(\n\t\t\t\tarray_filter(\n\t\t\t\t\tpreg_split('~[\\s,]+~', $this->definition->primary)\n\t\t\t\t)\n\t\t\t);\n\t\t\t$keys = array_map(\n\t\t\t\tfunction ($key) {\n\t\t\t\t\treturn Normalise::toVariable($key);\n\t\t\t\t},\n\t\t\t\t$keys\n\t\t\t);\n\n\t\t\t$this->key = count($keys) > 1 ? $keys : array_shift($keys);\n\t\t}\n\n\t\tif (empty($this->key) && $this->has('id'))\n\t\t{\n\t\t\t$this->key = 'id';\n\t\t}\n\n\t\treturn $this->key;\n\t}", "public function getKey()\n {\n return $this->id;\n }", "public function getKey()\n {\n return $this->getProperty()->getKey();\n }", "public function getKey()\n {\n return $this->__key;\n }", "public function key() {\n\t\treturn key($this->_value);\n\t}", "public function key()\n\t{\n\t\treturn $this->index;\n\t}", "public function key()\n\t{\n\t\treturn $this->index;\n\t}", "function get_primary_key_column()\n {\n return $this->object->_primary_key_column;\n }", "public function key()\n\t{\n\t\treturn $this->datasource->key();\n\t}", "public function getColumn(): string\n {\n return $this->_column;\n }", "public function getColumn(): string\n {\n return $this->column;\n }", "public function get_key() {\n\t\treturn array_get($this->attributes, static::$key);\n\t}", "public function key()\n {\n return $this->keys[$this->pointer];\n }", "public function getKey()\n {\n return $this->getId();\n }", "public function getKey()\n\t{\n\t\treturn $this->data['key'];\n\t}", "public function key() {\n return $this->currentIndex;\n }", "function key()\n\t{\n\t\treturn $this->index;\n\t}", "public function key() {\n\n\t\t\treturn $this->position;\n\t\t}", "public function getKey()\n\t{\n\t\treturn $this->key;\n\t}", "public function getKey()\n\t{\n\t\treturn $this->key;\n\t}", "public function getKey()\n\t{\n\t\treturn $this->key;\n\t}", "public function getKey()\n\t{\n\t\treturn $this->key;\n\t}", "public function getKey()\n\t{\n\t\treturn $this->key;\n\t}", "public function getKeyName()\n {\n return $this->keyName ?: 'id';\n }", "public function getKeyName()\n {\n return $this->keyName ?: 'id';\n }", "public function key()\n {\n return $this->aliases[$this->position];\n }", "public function key() {\n\t\treturn key($this->array);\n\t}", "public function getColumn()\n {\n return $this->column;\n }", "public function getColumn()\n {\n return $this->column;\n }", "public function getCurrentSortedColumn()\n {\n return $this->_currentSortedColumn;\n }", "public function key()\n {\n return $this->k;\n }", "public function key() {\n return $this->iteratorKeys[$this->iteratorPosition];\n }", "public function getKey()\n {\n return $this->__get(\"key\");\n }", "public function getKey()\n {\n return isset($this->key) ? $this->key : '';\n }", "public function getKey()\n {\n return isset($this->key) ? $this->key : '';\n }", "public function primary_key(){\n $table_columns = $this->meta();\n\n $primary_key_column = NULL;\n foreach ($table_columns as $col) :\n if($col->primary_key):\n $primary_key_column = $col->name;\n endif;\n endforeach;\n\n return $primary_key_column; \n }", "public function key() {\n\t\tif(($this->endItemIdx !== null) && isset($this->lastItems[$this->endItemIdx])) {\n\t\t\treturn $this->lastItems[$this->endItemIdx][0];\n\t\t} else if(isset($this->firstItems[$this->firstItemIdx])) {\n\t\t\treturn $this->firstItems[$this->firstItemIdx][0];\n\t\t} else {\n\t\t\treturn $this->items->current()->{$this->keyField};\n\t\t}\n\t}", "public function get_column_id()\n\t{\n\t\treturn $this->table.'.id';\n\t}", "public function key()\n {\n return ($current = $this->current()) !== false ? $current->getDn() : null;\n }", "function _lookup_primary_key_column()\n {\n $key = $this->_wpdb()->get_row(\"SHOW INDEX FROM {$this->get_table_name()} WHERE Key_name='PRIMARY'\", ARRAY_A);\n if (!$key) {\n throw new Exception(\"Please specify the primary key for {$this->get_table_name()}\");\n }\n return $key['Column_name'];\n }", "public function key() {\n\t\treturn $this->position;\n\t}", "public function key() {\n\t\treturn $this->position;\n\t}", "public function key() {\n\t\treturn $this->position;\n\t}", "public function key()\n {\n return key($this->values);\n }", "public function key() {\r\n\t\treturn $this->position;\r\n\t}", "public function key()\n\t{\n\t\treturn $this->_position;\n\t}", "public function key()\n {\n return $this->keys[$this->iterator];\n }", "public function key()\n {\n return $this->current;\n }", "public function key() {\n\t\treturn $this->key;\n\t}", "public function get_key($row) {\n return null;\n }", "final public function key(): string\n {\n $this->sort();\n\n return (string) key($this->index);\n }", "public function key()\n\t{\n\t\treturn $this->__position;\n\t}", "protected function getPrimaryKeyColumnName()\n {\n return ColumnKeys::PATH;\n }", "public function getCol()\n {\n return $this->col;\n }", "public function getColumn()\n {\n return $this->get('Column');\n }", "public function key()\n {\n return key($this->array);\n }", "public function key()\n {\n return key($this->array);\n }", "public function getKey()\n {\n return $this->get(self::KEY);\n }", "public function getKey()\n {\n return $this->get(self::KEY);\n }" ]
[ "0.83352804", "0.8024503", "0.7811579", "0.77885395", "0.7756797", "0.75705904", "0.75153077", "0.722242", "0.7103981", "0.70373136", "0.70179695", "0.7009336", "0.70059866", "0.70024806", "0.69814", "0.6936752", "0.6931543", "0.6896697", "0.6894658", "0.68887496", "0.68797314", "0.6869633", "0.68580866", "0.6857086", "0.68559724", "0.6846737", "0.68319106", "0.6820134", "0.68153805", "0.68153805", "0.68137836", "0.6813272", "0.6811058", "0.6803715", "0.6803715", "0.67856693", "0.67808235", "0.6780214", "0.67762005", "0.67761123", "0.67699516", "0.676113", "0.67487013", "0.67478883", "0.67307746", "0.67202914", "0.67138654", "0.67138654", "0.67098784", "0.6708146", "0.6704812", "0.6693408", "0.668958", "0.6681665", "0.6674295", "0.6673973", "0.66677815", "0.66636205", "0.66587895", "0.6650335", "0.6650335", "0.6650335", "0.6650335", "0.6650335", "0.6637145", "0.6637145", "0.6636929", "0.66315776", "0.6625081", "0.6625081", "0.6621625", "0.6619598", "0.66029185", "0.6597802", "0.65893006", "0.65893006", "0.65885395", "0.6586644", "0.6583189", "0.65765", "0.65727234", "0.6570376", "0.6570376", "0.6570376", "0.6568972", "0.6565726", "0.6560007", "0.6551941", "0.6550775", "0.6546209", "0.6545076", "0.6541593", "0.65410966", "0.6539586", "0.6539483", "0.65373194", "0.6531271", "0.6531271", "0.6525198", "0.6525198" ]
0.6553107
87
Advances the internal pointer to the next column in the Record.
public function next() { next($this->_data); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function moveNext() {\r\n\r\n $row = $this->result->fetchRow( MDB2_FETCHMODE_ASSOC );\r\n $this->EOF = !is_array( $row );\r\n $this->fields = $row;\r\n\r\n }", "public function next()\n\t{\n\t\t$this->pointer++;\n\t\t$this->row = $this->result->get($this->pointer);\n\t}", "public function next(): void\n {\n if (count($this->data) > 0) {\n array_shift($this->data);\n }\n ++$this->position;\n\n if ($this->position > $this->numberOfRecords()) {\n return;\n }\n\n if (count($this->data) == 0) {\n $this->fetchMore();\n }\n }", "function next()\n {\n if(!$this->buffer_row){\n $this->z->next('TABLE');\n }\n\n $this->position++ ;\n }", "public function next() {\n\t\t$this->_currentRow++;\n\t}", "public function next()\n\t{\n\t\t$this->j++;\n\t\t$this->c += $this->grid->getRowCount();\n\t}", "protected function _moveNext()\n {\n if ($nextRow = $this->_getNextRow()) {\n $this->_currentRow = $this->_formatRow($nextRow);\n } else {\n $this->_currentRow = array();\n }\n \n if (!$this->_currentRow) {\n fclose($this->_handle);\n $this->_valid = false;\n $this->_handle = null;\n }\n }", "public function next()\n {\n $this->cursor++;\n }", "public function next() : void\n {\n $this->currentRecordPos++;\n if ($this->currentRecordPos > $this->maxPageRecord) {\n $this->page($this->currentPagePos+1);\n }\n }", "public function next () {\n next($this->__fields);\n }", "public function next(): void\n {\n $this->cursor++;\n }", "public function next()\n {\n $this->dataSource->next();\n $this->position++;\n }", "public function next() {\n $this->currentRow = $this->result->fetchObject();\n $this->currentKey = array();\n if (!is_object($this->currentRow)) {\n $this->currentRow = NULL;\n }\n else {\n foreach ($this->sourceKeyMap as $map_field) {\n $this->currentKey[$map_field] = $this->currentRow->$map_field;\n // Leave only destination fields\n unset($this->currentRow->$map_field);\n }\n }\n }", "function MoveNext() \r\n\t{\r\n\t\tif (!$this->EOF) {\r\n\t\t\t$this->_currentRow++;\r\n\t\t\tif ($this->_numOfRows < 0 || $this->_numOfRows > $this->_currentRow) {\r\n\t\t\t\t$this->fields = @pg_fetch_array($this->_queryID,$this->_currentRow,$this->fetchMode);\r\n\t\t\t\r\n\t\t\t\tif (is_array($this->fields)) {\r\n\t\t\t\t\tif (isset($this->_blobArr)) $this->_fixblobs();\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t$this->fields = false;\r\n\t\t\t$this->EOF = true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "function moveToNextRow();", "public function next()\n\t{\n\t\t$this->current = $this->runFetch();\n\n\t\tif ($this->current) {\n\t\t\t$this->index++;\n\t\t}\n\t}", "public function next()\n {\n $row = $this->getRow($this->pointer);\n if($row){\n $this->pointer++;\n }\n return $row;\n }", "public function next() {\n\t\t$this->position ++;\n\t}", "function next() {\n $this->position++;\n }", "public function next ()\n {\n if ( isset($this->iterator) && $this->offset == $this->internalOffset ) {\n $this->internalOffset++;\n $this->iterator->next();\n $this->storeNext();\n }\n\n $this->offset++;\n }", "public function next()\n {\n ++$this->offset;\n }", "public function next() {\n\t\t++$this->position;\n\t}", "public function next()\n {\n $current = $this->current();\n\n if ($current) {\n $this->current = $current->getAfter();\n }\n }", "public function next()\n {\n $this->position++;\n }", "public function next()\n {\n $this->position++;\n }", "function MoveNext()\n\t{\n\t\tif (!$this->EOF) {\n\t\t\t$this->_currentRow++;\n\t\t\tif ($this->_numOfRows < 0 || $this->_numOfRows > $this->_currentRow) {\n\t\t\t\t$this->fields = @pg_fetch_array($this->_queryID,$this->_currentRow,$this->fetchMode);\n\t\t\t\tif (is_array($this->fields) && $this->fields) {\n\t\t\t\t\tif (isset($this->_blobArr)) $this->_fixblobs();\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t\t$this->fields = false;\n\t\t\t$this->EOF = true;\n\t\t}\n\t\treturn false;\n\t}", "function nextRecord() {\n @$this->Record = mysqli_fetch_array($this->result, MYSQLI_ASSOC);\n $this->rs = $this->Record;\n $this->Row += 1;\n $this->Errno = mysqli_errno($this->con);\n $this->Error = mysqli_error($this->con);\n $stat = is_array($this->Record);\n if (!$stat) {\n @mysqli_free_result($this->result);\n $this->result = 0;\n }\n return $stat;\n }", "public function next()\n {\n\t\tnext($this->_data);\n $this->_index++;\n\t}", "public function next() {\n\t\tif ($this->rowIndex++ < count($this->rows)) {\n\t\t\treturn true;\n\t\t}\n\t}", "public function next()\n {\n $this->pointer++;\n }", "public function next()\n {\n $this->_position++;\n }", "protected function switchColumns(int $currentColumn, int $nextColumn)\n {\n // save current cursor\n $this->columnCursors[$currentColumn] = $this->pdfDocument->getCursor();\n\n // set new cursor\n $this->pdfDocument->setCursor($this->columnCursors[$nextColumn]);\n }", "function next()\n {\n ++$this->_position;\n }", "public function next(){\n\t\t$this->nextRow(1,'max');\n\t}", "public function next() {\n ++ $this->_position;\n }", "public function next()\n\t{\n\t\t$this->__position++;\n\t}", "public function next()\n\t{\n\t\t$this->_position++;\n\t}", "public function next() {\n $this->pos++;\n }", "function nextRecord() \n \t{\n \t\t$this->record = @mysql_fetch_array($this->queryId);\n\t\t++$this->row;\n\n\t\t$stat = is_array($this->record);\n \t\tif ( !$stat )\n \t\t{\n \t\t\t@mysql_free_result($this->Query_ID);\n \t\t\t$this->queryId = 0;\n \t\t}\n \t\t\n \t\treturn $stat;\n \t}", "function nextRecord(){\r\n @ $this->Record = mysql_fetch_assoc( $this->Query_ID );\r\n $this->Row += 1;\r\n $this->Errno = mysql_errno();\r\n $this->Error = mysql_error();\r\n $stat = is_array( $this->Record );\r\n if( !$stat ) {\r\n @ mysql_free_result( $this->Query_ID );\r\n $this->Query_ID = 0;\r\n }\r\n return $stat;\r\n }", "public function next()\n\t{\n\t\t// Init a query to the first shard\n\t\tif ($this->query === null)\n\t\t\t$this->nextShard();\n\n\t\tdo\n\t\t{\n\t\t\t$this->query->next();\n\t\t}\n\t\t// Move to the next shard after the last row from the current shard\n\t\twhile (!$this->valid() && $this->nextShard());\n\n\t\t$this->index++;\n\t}", "function Next()\n {\n $this->row = $this->rows[$this->index + 1];\n $this->index++;\n\n return !!$this->row;\n }", "public function next()\n {\n if ($this->isvalid) {\n $this->rewindable = false;\n $ret = librdf_iterator_next($this->iterator);\n if ($ret) {\n $this->isvalid = false;\n } else {\n $this->key++;\n }\n }\n }", "public function next()\n\t{\n\t\t$this->_idx++;\n\t}", "public function next(): void\n {\n ++$this->position;\n }", "public function next(): void\n {\n ++$this->position;\n }", "public function next(): void\n {\n ++$this->position;\n }", "public function next(): void\n {\n ++$this->pointer;\n }", "public function column_next_steps( $item ) {}", "function next_record()\n\t{\n\t\t/* goto next record */\n\t\t$this->m_record = @mysqli_fetch_array($this->m_query_id, MYSQLI_ASSOC|atkconfig(\"mysqlfetchmode\"));\n\t\t$this->m_row++;\n\t\t$this->m_errno = mysqli_errno($this->m_link_id);\n\t\t$this->m_error = mysqli_error($this->m_link_id);\n\n\t\t/* are we there? */\n\t\t$result = is_array($this->m_record);\n\t\tif (!$result && $this->m_auto_free)\n\t\t{\n\t\t\t@mysqli_free_result($this->m_query_id);\n\t\t\t$this->m_query_id = 0;\n\t\t}\n\n\t\t/* return result */\n\t\treturn $result;\n\t}", "function next_record() {\r\n\t\treturn $this->dbh->next_record();\r\n\t}", "public function next(): void\n {\n $this->_index++;\n }", "public function next()\n {\n $this->index++;\n }", "public function next()\n {\n ++$this->position;\n }", "public function next()\n {\n ++$this->position;\n }", "public function next()\n {\n ++$this->position;\n }", "public function next()\n {\n ++$this->position;\n }", "public function next()\n {\n ++$this->position;\n }", "public function next()\n {\n ++$this->position;\n }", "public function next()\n {\n ++$this->position;\n }", "public function next()\n {\n ++$this->position;\n }", "public function next()\n {\n ++$this->position;\n }", "public function next()\n {\n $newPrevious = $this->_current;\n $this->_current += $this->_previous;\n $this->_previous = $newPrevious;\n $this->_key++;\n }", "public function next()\n {\n # Pegando a posição atual do array e com ternario, verificando se é reverso e aplicando a operação.\n $this->posicao = $this->posicao + ($this->reverso ? -1 : 1);\n }", "function nextRecord()\n {\n @ $this->Record = mysql_fetch_array( $this->Query_ID );\n $this->Row += 1;\n $this->Errno = mysql_errno();\n $this->Error = mysql_error();\n $stat = is_array( $this->Record );\n if( !$stat )\n {\n @ mysql_free_result( $this->Query_ID );\n $this->Query_ID = 0;\n }\n return $stat;\n }", "function next() {\n @$this->Record = mysqli_fetch_array($this->result, MYSQLI_ASSOC);\n $this->rs = $this->Record;\n $this->Row += 1;\n $this->Errno = mysqli_errno($this->con);\n $this->Error = mysqli_error($this->con);\n $stat = is_array($this->Record);\n if (!$stat) {\n @mysqli_free_result($this->result);\n $this->result = 0;\n }\n return $stat;\n }", "public function next()\n {\n $this->iteratorPosition++;\n }", "private function next()\n {\n $this->m++;\n $this->init();\n }", "public function next ()\n {\n $this->inputs->next();\n $this->offset++;\n }", "public function next(): void\n {\n $this->values = [];\n $row = fgetcsv($this->fp, 0, $this->delimiter, $this->enclosure);\n\n if ($row) { // Is het einde (eof) nog niet bereikt?\n if ($row === array(null)) { // Empty row?\n $this->next(); // Skip row\n return;\n }\n ++$this->index;\n foreach ($this->keys as $index => $key) {\n if (isset($row[$index])) { // Is er voor deze kolom een waarde?\n $this->values[$key] = $row[$index];\n } else {\n $filename = (strpos($this->filename, \\Sledgehammer\\PATH) === 0) ? substr($this->filename, strlen(\\Sledgehammer\\PATH)) : $this->filename; // Waar mogelijk het PATH er van af halen\n \\Sledgehammer\\notice('Row too short, missing column #' . ($index + 1) . ': \"' . $this->keys[$index] . '\" in ' . $filename . ' on line ' . ($this->index + 2), $row); // @todo Calculate line offset compared to the index ()\n }\n }\n } else {\n $this->index = null;\n }\n }", "public function next()\n\t{\n\t\t$this->databaseResult->next();\n\t}", "public function next()\n {\n $this->position++;\n $this->fileIterator->seek($this->position);\n }", "public function next() {\n next($this->elements);\n $this->pointer++;\n }", "public function next()\r\n {\r\n if ($this->index < $this->aggregate->size()) {\r\n $this->index = $this->index+1;\r\n }\r\n }", "public function next() {\n\t\t$this->checkResultSet();\n\t\t$this->rowData = null;\n\t\t$this->index ++;\n\t\treturn $this;\n\t}", "public function next(): void\n {\n if ($this->_skipNextIteration) {\n $this->_skipNextIteration = false;\n return;\n }\n next($this->_data);\n $this->_index++;\n }", "public function next()\n {\n try {\n $this->_moveNext();\n } catch (TwitterImport_FormattingException $e) {\n if ($this->_skipInvalidRows) {\n $this->_skippedRowCount++;\n $this->next();\n } else {\n throw $e;\n }\n }\n }", "public function next()\n {\n next($this->array);\n }", "function getNextRow()\n {\n $this->current_row_index++;\n if ( $this->current_row_index > ( $this->offset + $this->limit - 1 ) )\n {\n $this->current_row = false;\n $this->current_row_hash = false;\n $this->mapping = false;\n return $this->current_row;\n }\n\n $result = $this->mysqli->query( 'SELECT * FROM ' . $this->table .\n ' LIMIT 1 OFFSET ' . $this->current_row_index );\n if ( $result->num_rows == 1 )\n {\n $this->current_row = $result->fetch_row();\n $this->current_row_hash = array();\n $this->mapping = array();\n foreach ( $result->fetch_fields() as $key => $field )\n {\n $this->current_row_hash[$field->name] = $this->current_row[$key];\n $this->mapping[$key] = $field->name;\n }\n $this->current_field = current( $this->mapping );\n }\n else\n {\n $this->current_row = false;\n $this->current_row_hash = false;\n $this->mapping = false;\n }\n $result->free();\n\n return $this->current_row;\n }", "public function columnOffset();", "public function next()\n {\n if ($this->_skipNextIteration) {\n $this->_skipNextIteration = false;\n return;\n }\n next($this->_data);\n $this->_index++;\n }", "public function next() {\n $this->_key++;\n }", "public function next()\n {\n next($this->values);\n }", "final public function next(): void\n {\n $this->sort();\n\n next($this->index);\n }", "public function next() {\n next($this->data);\n }", "public function next() {\n next($this->data);\n }", "public function next(): void\n {\n ++$this->key;\n\n if ($this->next) {\n $this->current = $this->current->next();\n } else {\n $this->current = $this->current->previous();\n }\n }", "public function next()\n {\n $this->currentElement = $this->readNextElement();\n $this->atStart = FALSE;\n }", "public function rewind () {\n prev($this->__fields);\n }", "public function next()\r\n\t{\r\n\t\tif(!$this->hasNext()) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\t$size = $this->nextRecordLength();\r\n\t\tif($size < 1) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\t$raw_content = $this->readBits($size);\r\n\t\tif(is_null($raw_content)) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\t$index = $this->applyRules($raw_content, $size);\r\n\t}", "public function next()\n {\n $this->key++;\n }", "public function next()\n {\n $this->key++;\n }", "public function next()\n {\n $this->currentKey++;\n }", "public function next()\n {\n next($this->data);\n }", "public function next()\n {\n next($this->data);\n }", "public function next()\n {\n next($this->data);\n }", "public function next() {\n ++$this->iteratorPosition;\n }", "public function next()\n {\n $this->current = ($result = ldap_next_entry($this->handle, $this->current())) ? $result : null;\n }", "public function next(){\n $this->index ++;\n }", "function pdo_data_seek($stmt, $row_number) {\r\n !PDO_SEEKABLE and pdo_trigger_error(\"pdo_data_seek() PDO_MySQL driver does not support cursors. Enable PDO_SEEKABLE.\", E_USER_WARNING);\r\n pdo_stmt($stmt)->fetch(PDO::FETCH_ASSOC, PDO::FETCH_ORI_ABS, $row_number);\r\n }" ]
[ "0.67617553", "0.6687604", "0.6654763", "0.66045725", "0.658821", "0.6539156", "0.6221718", "0.62017506", "0.61813927", "0.61756134", "0.6137535", "0.61325735", "0.6131551", "0.61301416", "0.61042935", "0.6056559", "0.6052621", "0.6045524", "0.6013861", "0.60063577", "0.6002735", "0.5991403", "0.5984391", "0.5981603", "0.5981603", "0.5979856", "0.59714824", "0.5959794", "0.5946723", "0.594597", "0.59380037", "0.59275436", "0.59105366", "0.5902899", "0.59023756", "0.5901726", "0.5886529", "0.58862734", "0.5873025", "0.5859438", "0.58515316", "0.58432645", "0.58090556", "0.58055604", "0.57967186", "0.57967186", "0.57967186", "0.5793499", "0.5739306", "0.5736071", "0.5724541", "0.5715976", "0.5712227", "0.5709313", "0.5709313", "0.5709313", "0.5709313", "0.5709313", "0.5709313", "0.5709313", "0.5709313", "0.5709313", "0.5696963", "0.5692278", "0.5689949", "0.5678551", "0.5670044", "0.56670916", "0.56656945", "0.56589955", "0.5643569", "0.5633125", "0.56299806", "0.5627867", "0.56182206", "0.5617979", "0.5611582", "0.56035453", "0.5585802", "0.55692756", "0.556891", "0.5566625", "0.5551325", "0.5531447", "0.55251956", "0.55251956", "0.5524914", "0.5519303", "0.55160695", "0.5516047", "0.5516002", "0.5516002", "0.5513326", "0.55124617", "0.55124617", "0.55124617", "0.5511389", "0.55070657", "0.5489972", "0.54849195" ]
0.54925394
98
Reverses the internal pointer to the first column in the Record.
public function rewind() { reset($this->_data); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function reverse() {}", "function reverse()\n {\n }", "public function reverse();", "public function reverse();", "public function reverse();", "public function reverse();", "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 reversed();", "public function reversal()\n {\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 }", "public function reverse()\n {\n $board = clone $this;\n foreach ($this->board as $x => $row) {\n /** @var array $row */\n foreach ($row as $y => $item) {\n $board->board[-$x][$y] = $item;\n }\n }\n\n return $board;\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 }", "abstract public function reverse($preserveKeys = false);", "public function flip()\n\t{\n\t\treturn $this->toBase()->flip();\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 }", "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 reverse($object);", "public function rewind() {\n\t\tif( $this->isDirty() ) { $this->executeQuery(); }\n\t\t$this->_currentRow = 0;\n\t}", "public function flip()\n {\n return $this->toBase()->flip();\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 rewind () {\n prev($this->__fields);\n }", "public function reverse($destinationFieldValue, $field, $source, $destination);", "public function reverse(): void\n {\n $ranks = $this->ranks;\n\n $this->commit(array_values(collect($ranks)->reverse()->all()));\n }", "public function rewind()\n\t{\n\t\t$this->pointer = 0;\n\t\t$this->row = $this->result->get(0);\n\t}", "public function rewind() {\n\t\t// Init the recordset if needed.\n\t\t$this->initRecordSet();\n\t\t// Move to first element\n\t\t$this->recordSet->MoveFirst();\n\t\t// Current index is the first index\n\t\t$this->currentIndex = 0;\n\t}", "public function rewind()\n {\n $this->current = $this->bottom();\n }", "function changeOrder() {\n $this->iteratorH = array_reverse($this->iteratorH);\n }", "public function reverse()\r\n\t{\r\n\t\tarray_reverse($this->_items);\r\n\t}", "public function reverseJournal($newLineAfter);", "function revert_table() {\r\n $this->_table = $this->_table_org;\r\n $this->_table_org = NULL;\r\n }", "function rewind (){ $this->key = -1; }", "public function reverse() : Arr {\n $keys = [];\n $values = [];\n foreach($this as $k => $v) {\n $keys[] = $k;\n $values[] = $v;\n unset($this[$k]);\n }\n\n for($i = sizeof($keys) - 1; $i >= 0; --$i) {\n $this[$keys[$i]] = $values[$i];\n }\n\n return $this;\n }", "public function rref(): matrix {\n $lead = 0;\n $ar = $this->copyMatrix();\n for ($r = 0; $r < $ar->row; ++$r) {\n if ($lead >= $ar->col)\n break; {\n $i = $r;\n while ($ar->data[$i * $ar->col + $lead] == 0) {\n $i++;\n if ($i == $ar->row) {\n $i = $r;\n $lead++;\n if ($lead == $ar->col) {\n return $ar;\n }\n }\n }\n $ar->swapRows($r, $i);\n } {\n $lv = $ar->data[$r * $ar->col + $lead];\n for ($j = 0; $j < $ar->col; ++$j) {\n $ar->data[$r * $ar->col + $j] = $ar->data[$r * $ar->col + $j] / $lv;\n }\n }\n for ($i = 0; $i < $ar->row; ++$i) {\n if ($i != $r) {\n $lv = $ar->data[$i * $ar->col + $lead];\n for ($j = 0; $j < $ar->col; ++$j) {\n $ar->data[$i * $ar->col + $j] -= $lv * $ar->data[$r * $ar->col + $j];\n }\n }\n }\n $lead++;\n }\n return $ar;\n }", "public function reverse()\n {\n return $this::from(array_reverse($this->hash, true));\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}", "public function rewind(): void\n {\n if ($this->position != 1) {\n $this->position = 1;\n $this->data = [];\n $this->fetchMore();\n }\n }", "function revert_vertex_order_for_table_with_geom_column_in_schema($table, $geom_column, $schema) {\n\t\t$sql = \"\n\t\t\tUPDATE \" . \n\t\t\t\t$schema . \".\" . $table . \" \n\t\t\tSET \" .\n\t\t\t\t$geom_column . \" = ST_Reverse(\" . $geom_column . \") \n\t\t;\";\n\t\t$ret = $this->pgdatabase->execSQL($sql, 4, 0);\n\t}", "public function rewind(): void\n {\n $this->key = 0;\n $this->current = $this->start;\n }", "public function rewind()\n\t{\n\t\t$this->_array = $this->_model->getData();\n\t\t$this->_keys = array_keys($this->_array);\n\t\t$this->_idx = 0;\n\t}", "public function rewind(): void\n {\n if ($this->_index === 0) {\n return;\n }\n\n $this->_index = 0;\n }", "function flip(&$arr, $i) \n{ \n\t$start = 0; \n\twhile ($start < $i) \n\t{ \n\t\t$temp = $arr[$start]; \n\t\t$arr[$start] = $arr[$i]; \n\t\t$arr[$i] = $temp; \n\t\t$start++; \n\t\t$i--; \n\t} \n}", "private\tfunction\t_fetch($row)\n\t\t{\n\t\t\t$record\t=\t$this->_database->getTable($this->_name);\n\t\t\t$record->fill(array_combine(\n\t\t\t\tarray_keys($this->_values),\n\t\t\t\tarray_splice($row, 0, sizeof($this->_values))\n\t\t\t));\n\t\t\tforeach($this->_relations as $relation) {\n\t\t\t\t$relation['record']->fill(array_combine(\n\t\t\t\t\tarray_keys($relation['record']->_values),\n\t\t\t\t\tarray_splice($row, 0, sizeof($relation['record']->_values))\n\t\t\t\t));\n\t\t\t}\n\t\t\treturn\t$record;\n\t\t}", "private\tfunction\t_fetch($row)\n\t\t{\n\t\t\t$record\t=\t$this->_database->getTable($this->_name);\n\t\t\t$record->fill(array_combine(\n\t\t\t\tarray_keys($this->_values),\n\t\t\t\tarray_splice($row, 0, sizeof($this->_values))\n\t\t\t));\n\t\t\tforeach($this->_relations as $relation) {\n\t\t\t\t$relation['record']->fill(array_combine(\n\t\t\t\t\tarray_keys($relation['record']->_values),\n\t\t\t\t\tarray_splice($row, 0, sizeof($relation['record']->_values))\n\t\t\t\t));\n\t\t\t}\n\t\t\treturn\t$record;\n\t\t}", "public function reversePart($lo,$hi);", "public function rewind(): void\n {\n $this->pointer = 0;\n }", "public function lastCol() {\n\t}", "public function flip(): self;", "public function rewind() {\n\t\t$this->checkResultSet();\n\t\t$this->rowData = null;\n\t\t$this->index = 0;\n\t\treturn $this;\n\t}", "function flipDiagonally($arr) {\n\t $out = array();\n\t foreach ($arr as $key => $subarr) {\n\t foreach ($subarr as $subkey => $subvalue) {\n\t $out[$subkey][$key] = $subvalue;\n\t }\n\t }\n\t return $out;\n\t}", "public static function removeColumn($col){\n\t\t//\t\t\tarray_slice($db_fields, $col + 1, count($db_fields) -1, true);\n\t\t\t\t\n\t}", "public function reverse()\n {\n $array = $this->toArray();\n return static::createFormArray(array_reverse($array), false);\n }", "public function rewind(): void\n {\n reset($this->array);\n }", "public function rewind()\n {\n $this->pointer = -1;\n $this->next();\n }", "function vievReverseArray($array){\n echo '<table border=\"1\"><tr>';\n for ($x = (count($array) - 1); $x >= 0; $x--){\n echo '<td>'.$array[$x].\"</td>\";\n }\n echo '</tr></table>';\n}", "final public function rewind(): void\n {\n $this->sort();\n\n reset($this->index);\n }", "public function rewind() {\n $this->_key = 0;\n }", "public function reverse(): \\IvoPetkov\\DataList\n {\n $this->actions[] = ['reverse'];\n return $this;\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 rewind(){\n $this->index = 0;\n }", "public function rewind()\n {\n reset($this->values);\n }", "public function rewind(): void\n {\n reset($this->data);\n }", "public function reverse() {\n\t\tarray_reverse( $this->elements );\n\n\t\treturn $this;\n\t}", "public function flip(): self\n {\n return new static(array_flip($this->array));\n }", "public function getInverse(): Matrix\n {\n $matrix = new self(clone $this->table);\n $matrix->inverse();\n return $matrix;\n }", "public function rewind() {\n\t\treset($this->_value);\n\t}", "public function zeroize()\n {\n for ($i = $this->count() - 1; $i >= 0; --$i) {\n $this->offsetSet($i, 0);\n }\n }", "public function columnOffset();", "public function rewind()\n\t{\n\t\t$this->j = 0;\n\t\t$this->c = $this->i;\n\t}", "public function fetchColumn($columnIndex = 0);", "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 }", "abstract public function flip();", "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 }", "public function rewind() {\n\t\t\t$this->index = 0;\n\t\t}", "public function rewind()\n {\n $this->key = 0;\n }", "public function rewind()\n {\n $this->key = 0;\n }", "public function rewind() {\n $this->currentRow = NULL;\n $fields = array();\n foreach ($this->sourceKeyMap as $field) {\n $fields[] = $field;\n }\n foreach ($this->destinationKeyMap as $field) {\n $fields[] = $field;\n }\n\n /* TODO\n if (isset($this->options['itemlimit'])) {\n $query = $query->range(0, $this->options['itemlimit']);\n }\n */\n $this->result = $this->connection->select($this->mapTable, 'map')\n ->fields('map', $fields)\n ->execute();\n $this->next();\n }", "function reOrderColumnHeaders() {\n\n }", "public function rewind()\n\t{\n\t\t$this->databaseResult->rewind();\n\t}", "public function rewind()\n {\n\t\treset($this->_data);\n $this->_index = 0;\n\t}", "public function formatRow($row){\r\n \tif(!empty($row))\r\n \t$row['_rev'] = \"\";\r\n return $row;\r\n }", "public function rewind() {}", "public function rewind() {}", "public function rewind() {}", "public function rewind() {}", "public function rewind() {}", "public function rewind() {}", "public function rewind() {}", "public function rewind() {}", "public function rewind() {}", "public function rewind()\n {\n reset($this->data);\n $this->current_index = 0;\n }", "public function getColumn(){\n\n $part = substr($this->input, 0, $this->index);\n $pos = strrpos($part,\"\\n\");\n return $this->index - $pos;\n }", "protected function _moveNext()\n {\n if ($nextRow = $this->_getNextRow()) {\n $this->_currentRow = $this->_formatRow($nextRow);\n } else {\n $this->_currentRow = array();\n }\n \n if (!$this->_currentRow) {\n fclose($this->_handle);\n $this->_valid = false;\n $this->_handle = null;\n }\n }", "public function reverse() {\r\n\t\t$this->collection = array_reverse($this->collection);\r\n return $this;\r\n }", "abstract function flip($direction);", "public function reset()\n {\n $this->values[self::_RECORD] = null;\n }", "function setReverseMode(){\n\t\t$this->mode = SUSHEE_DEP_REVERSE_MODE;\n\t}", "public function flip($direction);", "function Rear() {\n if ($this->isEmpty()){\n return -1;\n }\n return $this->data[($this->rear+$this->size-1)%$this->size];\n }", "public function rewind()\n {\n $this->_previous = 1;\n $this->_current = 0;\n $this->_key = 0;\n }", "public function rewind()\n {\n $this->pointer = 0;\n }", "public function rewind()\n {\n $this->pointer = 0;\n }" ]
[ "0.59039307", "0.5878295", "0.5821351", "0.5821351", "0.5821351", "0.5821351", "0.5751837", "0.57020897", "0.55405056", "0.55358285", "0.5464857", "0.5401541", "0.5330459", "0.5279032", "0.5266894", "0.52530503", "0.52136344", "0.5212284", "0.5133148", "0.51214623", "0.51176685", "0.50897664", "0.5080521", "0.5019965", "0.5010137", "0.4951965", "0.49415973", "0.4917604", "0.48974547", "0.48965624", "0.48641837", "0.48609203", "0.4860896", "0.4845472", "0.48256573", "0.4775814", "0.4750073", "0.47372618", "0.4719144", "0.47181168", "0.47179675", "0.47159824", "0.47159824", "0.47036085", "0.47028676", "0.47009045", "0.46812046", "0.46628854", "0.4662706", "0.4661733", "0.46545815", "0.46487778", "0.46477988", "0.46441948", "0.46410435", "0.46285248", "0.46218532", "0.4616971", "0.46043414", "0.4602547", "0.45786324", "0.45702586", "0.45650724", "0.45631832", "0.4560237", "0.45595014", "0.4553647", "0.45431894", "0.45429918", "0.45423207", "0.4541476", "0.4534783", "0.45260507", "0.45249367", "0.45249367", "0.45174786", "0.45173407", "0.45135632", "0.45130002", "0.4505793", "0.4505249", "0.4505249", "0.4505249", "0.4505249", "0.4505249", "0.4505249", "0.4505249", "0.45049366", "0.45049366", "0.44977018", "0.44936866", "0.44916308", "0.44845638", "0.44818127", "0.44778845", "0.44685525", "0.4466956", "0.44667268", "0.44566467", "0.44551536", "0.44551536" ]
0.0
-1
Returns the column value at the specified index.
public function seek($index) { // Setup $this->rewind(); $position = 0; while($position < $index && $this->valid()) { $this->next(); $position++; } if(!$this->valid()) { throw new \Bedrock\Model\Record\Exception('Invalid index specified.'); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function GetColumn($index = NULL)\r\n {\r\n return($this->preparedStatement->fetchColumn($index));\r\n }", "public function fetchColumn ($index) {\n return $this->query->fetchColumn($index);\n }", "public function get_column($index = 0) {\n\t\t$values = array();\n\t\tforeach ($this->get_rows() as $row) {\n\t\t\t$values[] = $row[$index];\n\t }\n\t return $values;\n\t}", "function getRecordCol($index) {\n return $this->records[$index]->getCol();\n }", "public function getValue($index) {}", "public function getValue($idx)\n {\n return (($dbname = $this->_getDbname($idx))!=null\n ? $this->columns[$dbname]->value\n : null);\n }", "public function getAt($row_index, $col_index) {\n\t\t$this->validateIndexBoundary($row_index, $col_index);\n\n\t\treturn $this->_data[$row_index][$col_index];\n\t}", "public function getValue($index){\n\n if(is_object($this->data)){\n return $this->data->$index;\n }\n return isset($this->data[$index]) ? $this->data[$index] : null;\n }", "protected function getValue($index)\r\n\t{\r\n\t\treturn isset($this->data[$index]) ? $this->data[$index] : null;\r\n\t\t\r\n\t}", "public function get ($index) { return $this[$index]; }", "public function get ($index)\n {\n if (isset($this->data[$index])) {\n return $this->data[$index];\n } else {\n throw new IndexOutOfBoundsException();\n }\n }", "public function get(int $index): mixed;", "public function value($column)\r\n {\r\n $rs = (array) $this->first();\r\n return $rs[$column];\r\n }", "public function offsetGet($index);", "public function getValue($name, $index) {\n return $this->view->result[$index]->$name;\n }", "public function get($index) {\r\n if($this->isInvalidIndex($index)) throw new IndexOutOfRangeException(\"index is outside the bounds of this instance while get -or- setting a character. \");\r\n return $this->result[$index];\r\n }", "public function get(int $index);", "public function get(int $index);", "public function getCol($col)\n {\n if (!$this->checkRange(0, $col)) {\n throw new \\OutOfRangeException();\n }\n\n return array_column($this->_data, $col);\n }", "public function get( $index )\n {\n return $this->_getDelegate()->offsetGet($index);\n }", "public function get(int $index)\n {\n $this->update();\n if (isset($this->data[$index])) {\n return $this->updateValueIfNeeded($this->data, $index);\n }\n return null;\n }", "public function fetchColumn($columnIndex = 0);", "public function offsetGet( $index )\n {\n return $this->_getDelegate()->offsetGet($index);\n }", "public function getCellXfByIndex($pIndex) {\n\t\treturn $this->cellXfCollection[$pIndex];\n\t}", "public function offsetGet($columnName)\n {\n $row = current($this->_rows);\n return $row !== false? $row[$columnName] : null;\n }", "public function get(int $index): BoardCell {\n\n return ($this->indexExist($index)) ? $this->cells[$index] : null;\n }", "public function __invoke($index) {\n\t\treturn $this->offsetGet($index);\n\t}", "public function getValueByIndex($itemIndex)\n\t{\n\t\treturn ((0 <= $itemIndex) && ($itemIndex < $this->itemCount)) ? $this->items[$itemIndex] : null;\n\t}", "function GetColVal($col_name) {\n\t\treturn $this->$col_name;\n\t}", "public function offsetGet($index)\r\n\t{\r\n\t\treturn $this->elements[$this->keyAssocation[$index]];\r\n\t}", "function Get($col)\n {\n return $this->row ? $this->row[$col] : NULL;\n }", "public function getValue(?int $index = null)\n {\n if($this->page_type == 'setting') {\n return self::getSettingValue($this->id);\n }\n\n return self::getItemValue($this->id, $index);\n }", "public function getValue(int $indexX, int $indexY): int;", "public abstract function getColumnName($result_set, $index);", "public function get($index)\n\t{\n\t\treturn $this->_fetch_from_array($this->get, $index);\n\t}", "public function get($index = null)\n {\n if (! array_key_exists($index, $this->data)) {\n return null;\n }\n\n return $this->data[$index];\n }", "public function value($column)\n {\n $result = (array) $this->first([$column => 1]);\n\n return count($result) > 0 ? $result[$column] : null;\n }", "function get($index) {\n\t\treturn isset($this->variable[$index]) ? $this->variable[$index] : null;\n\t}", "public function row($index = 0) {\n if($this->result) {\n if(isset($this->result[$index])) {\n return $this->result[$index];\n }\n }\n return null;\n }", "private static function getResultValue($result, $index=0)\n\t{\n\t\t$value = null;\n\t $row = is_numeric($index) ? $result->fetch_row() : $result->fetch_assoc();\n\t if($row)\n\t $value = $row[$index];\n\t\t$result->free();\n\t return $value;\n\t}", "public function getColumn($name)\n {\n return $this->columns[$name];\n }", "public function getString($index)\r\n\t{\r\n\t $this->_checkIndex($index);\r\n\t \r\n\t if(isset($this->row[$index]))\r\n {\r\n\t return strval($this->row[$index]);\r\n\t }\r\n\t\r\n\t throw($this->_throwInvalidIndex($index));\r\n\t}", "public function item($index) {\n\t\treturn $this->valueForKey($this->keyForItem($index));\n\t}", "public function getValue( $key ) {\n\t\treturn $this->columnSchema[ $key ];\n\t}", "public function getColumn($get)\n\t{\n\t\tif (!array_key_exists($get, $this->row))\n\t\t\tthrow new InternalException(\"row $get doesn't exist\");\n\t\treturn $this->row[$get];\n\t}", "#[\\ReturnTypeWillChange]\n public function offsetGet($index)\n {\n }", "public function at($index)\n {\n return $this->substr($index, 1);\n }", "public function cellValue ($row)\n {\n $strIndex = $this->getOption('index');\n \n if (isset($row[$strIndex])){\n \n $strValue = $row[$strIndex];\n \n $arrValues = $this->getValues();\n \n if (isset($arrValues[$strValue])){\n return $arrValues[$strValue];\n }\n }\n \n $strValue = $this->_column->cellValue($row);\n return $strValue;\n }", "protected function get_column() {\n\n\t\t$column = $this->foreign_column ?: $this->foreign_table->get_primary_key();\n\t\t$columns = $this->foreign_table->get_columns();\n\n\t\treturn $columns[ $column ];\n\t}", "public function __get($index) {\n return $this->vars[$index];\n }", "public function offsetGet($index)\n {\n }", "public function GetRowByIndex($index) {\n return $this->Seek($index);\n }", "public function column(int $index) : array\n {\n if (!isset($this->samples[0][$index])) {\n throw new InvalidArgumentException(\"Column $index does not exist.\");\n }\n\n return array_column($this->samples, $index);\n }", "public function getValue($data, $index)\r\n {\r\n\r\n return $this->getPropertyPath()->getValue($data[$index]);\r\n }", "public function getInteger($index)\r\n\t{\r\n\t $this->_checkIndex($index);\r\n\t\r\n if(isset($this->row[$index]))\r\n {\r\n\t return intval($this->row[$index]);\r\n\t }\r\n\t \r\n\t throw($this->_throwInvalidIndex($index));\r\n\t}", "public function get_value() {\n\t\t$row = $this->get_row();\n\t\tif ($row) {\n\t\t\treturn current($row);\n\t\t}\n\t}", "public function get($index) {\n return $this->items[$index];\n }", "public function offsetGet($index)\n\t{\n\t\tif (parent::offsetExists($index))\n\t\t{\n\t\t\treturn parent::offsetGet($index);\n\t\t}\n\t\tif (isset(self::$global[$index]))\n\t\t{\n\t\t\treturn self::$global[$index];\n\t\t}\n\n\t\treturn null;\n\t}", "public function get($index)\n {\n return Iterables::get($this, $index);\n }", "public function getArgument($index);", "function get($index = '', $xss_clean = FALSE)\n\t{\n\t\treturn $this->_fetch_from_array($this->get_var, $index, $xss_clean);\n\t}", "function Get($col)\n {\n return isset($this->row) ? $this->row[$col] : null;\n }", "public function getFloat($index)\r\n\t{\r\n\t $this->_checkIndex($index);\r\n\t \r\n\t if(isset($this->row[$index]))\r\n {\r\n\t return floatval($this->row[$index]);\r\n\t }\r\n\t\r\n\t throw($this->_throwInvalidIndex($index));\r\n\t}", "private function getColumn($columnName)\n {\n $columns = array_filter(\n $this->columns,\n function ($column) use ($columnName) {\n return $column->name == $columnName;\n } // end anonymous array filter function\n ); // end arrayfilter\n\n return array_shift(\n $columns\n ); // end array_shift\n }", "public function getColumn() { return $this->column; }", "private static function getResultColumn($result, $index=0)\n\t{\n\t $rows = array();\n\t while($row = is_numeric($index) ? $result->fetch_row() : $result->fetch_assoc())\n\t $rows[] = $row[$index];\n\t\t$result->free();\n\t return $rows;\n\t}", "public function getAttributeValue($index = null);", "public function fetchColumn(int $column = 0);", "function GetRowColumn($row,$column){\n\t\t\treturn @mysql_result($this->result,$row,\"$column\");\n\t\t}", "public function atIndex(int $index)\n {\n $i = 0;\n foreach ($this->items as $key => $value) {\n if ($i++ == $index) {\n return $value;\n }\n }\n\n return null;\n }", "public function get() {\n\t\treturn $this->rows[$this->rowIndex];\n\t}", "public function column() : int\n {\n return $this->column;\n }", "private function getColumnValue($key, $allowNull = false)\n\t\t{\n\t\t\t$col = $this->findColumn($key);\n\t\t\tif($col === null)\n\t\t\t\tthrow new CDFColumnDataException($key, 'Column does not exist');\n\n\t\t\t// don't return null if not specified, based on column type\n\t\t\t$value = $col->getValue();\n\t\t\tif($value === null && $allowNull == false)\n\t\t\t{\n\t\t\t\tswitch($col->getDataType())\n\t\t\t\t{\n\t\t\t\t\tcase CDFSqlDataType::String:\n\t\t\t\t\tcase CDFSqlDataType::Text:\n\t\t\t\t\tcase CDFSqlDataType::Data:\n\t\t\t\t\t\t$value = '';\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase CDFSqlDataType::Float;\n\t\t\t\t\t\t$value = 0.0;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase CDFSqlDataType::Integer;\n\t\t\t\t\t\t$value = 0;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase CDFSqlDataType::Bool;\n\t\t\t\t\t\t$value = false;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase CDFSqlDataType::Timestamp;\n\t\t\t\t\t\t$value = CDFDataHelper::AsDateTime(null);\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn $value;\n\t\t}", "public function getColumn()\n {\n return $this->column;\n }", "public function getColumn()\n {\n return $this->column;\n }", "private function get($row, $column) {\n return $this->invalid($row, $column) ? self::VALUE_NOT_SET : $this->matrix[$row][$column];\n }", "public function getCellValue($row);", "public function getColumnName($result_set, $index)\n\t{\n\t\treturn $result_set->fetch_field_direct($index)->name;\n\t}", "protected function _getDateValue($index)\n {\n if ($this->getTimestamp()) {\n return date($index, $this->getTimestamp());\n }\n return '';\n }", "public function columnName($index)\n {\n --$index;\n if (($index >= 0) && ($index < 26)) {\n return chr(ord('A') + $index);\n } else if ($index > 25) {\n return ($this->columnName($index / 26)) . ($this->columnName($index%26 + 1));\n } else {\n throw new Exception(\"Invalid Column # \" . ($index + 1));\n }\n }", "abstract public function getIntervalColumnNameByIndex(int $columnIndex): string;", "public function get( int$index )\n\t{\n\t\treturn $this->stackArray[$index]??null;\n\t}", "public function getColumn($name)\n {\n return isset($this->columns[$name]) ? $this->columns[$name] : null;\n }", "public function __get($index) {\n\n\t\tif ($this->_hasAdapter(get_class(), __FUNCTION__))\n\t\t\treturn $this->_callAdapter(get_class(), __FUNCTION__, $index);\n\n\t\t$index = $this->_applyFilter(get_class(), __FUNCTION__, $index, array('event' => 'args'));\n\n\t\tif ($this->_collection === null) {\n\t\t\t$this->_collection = new Collection();\n\t\t}\n\n\t\t$value = $this->_collection->get($index);\n\n\t\t$this->_notify(get_class() . '::' . __FUNCTION__, $value, $index);\n\t\t$value = $this->_applyFilter(get_class(), __FUNCTION__, $value, array('event' => 'return'));\n\n\t\treturn $value;\n\t}", "public function getColumn(): string\n {\n return $this->_column;\n }", "#[\\ReturnTypeWillChange]\n function offsetGet($index)\n {\n if (isset($this->{$index})) {\n return $this->{$index};\n } else {\n $records = $this->records();\n if ($index === \"results\") {\n return $records;\n }\n if ($record = &$records[$index]) {\n return $record;\n }\n foreach ((array) $records as $key => $record) {\n if ($record[\"id\"] === $index) {\n $record = &$records[$key];\n return $record;\n }\n }\n }\n\n return null;\n }", "public function getColumn(): string\n {\n return $this->column;\n }", "public function fetchColumn() {\n if ($this->result === true) {\n return false;\n }\n\n // Are we running PHP >=8.1?\n if (PHP_VERSION_ID >= 80100) {\n $value = $this->result->fetch_column();\n return ($value === null || $value === false) ? $value : (string) $value;\n }\n\n // Fallback to traditional approach\n $row = $this->result->fetch_row();\n return $row ? $row[0] : false;\n }", "public function getColumn()\n {\n return $this->get('Column');\n }", "public function getItem($index)\n\t\t{\n\t\t\tParameter::check(array(\n\t\t\t\t\t\"integer\" \t=> $index\n\t\t\t\t), __METHOD__);\n\t\t\t\n\t\t\tif ($index < 0 || $index > count($this->items)) throw new IndexOutOfBoundsException();\n\t\t\treturn $this->items[$index];\n\t\t}", "public function offsetGet($idx)\t\t\t//\teg. var_dump($obj['two']);\r\n\t{\r\n\t\treturn $this->members[$idx];\r\n\t}", "public function get($index)\n\t{\n\t\treturn parent::get($index - 1);\n\t}", "function get_col($query=null,$x=0) {\n\n\t\t\t// If there is a query then perform it if not then use cached results..\n\t\t\tif ( $query ) {\n\t\t\t\t$this->query($query);\n\t\t\t}\n\n\t\t\t// Extract the column values\n\t\t\tfor ( $i=0; $i < count($this->last_result); $i++ ) {\n\t\t\t\t$new_array[$i] = $this->get_var(null,$x,$i);\n\t\t\t}\n\n\t\t\treturn $new_array;\n\t\t}", "public function get($index)\n {\n return $this->entities[$index];\n }", "public function getColumn($column)\n {\n return $this->allColumns[$column];\n }", "public function columnType(int $index) : ?int\n {\n if (!isset($this->samples[0])) {\n return null;\n }\n\n if (!isset($this->samples[0][$index])) {\n throw new InvalidArgumentException(\"Column $index does not exist.\");\n }\n\n $feature = $this->samples[0][$index];\n\n switch (true) {\n case is_string($feature):\n return self::CATEGORICAL;\n\n case is_numeric($feature):\n return self::CONTINUOUS;\n\n case is_resource($feature):\n return self::RESOURCE;\n\n default:\n return null;\n }\n }", "public static function getCell($sheet, $rowIndex, $colIndex) {\n $value = is_numeric($colIndex) ?\n $sheet->getCellByColumnAndRow($colIndex, $rowIndex) :\n $sheet->getCell(\"$colIndex$rowIndex\");\n return trim($value);\n }", "public function column(string $sql, $params = null)\n\t{\n\t\t$columnValue = null;\n\t\t\n\t\ttry {\n\t\t\t$preparedStatement = $this->_instance->prepare($sql);\n\t\t\t$preparedStatement->execute($params);\n\t\t\t$resultSet = $preparedStatement->fetch(PDO::FETCH_ASSOC);\n\t\t\t$columnValue = $resultSet[0];\n\t\t} catch(PDOException $e) {\n\t\t\tthrow new Exception('Could not fetch a record:<br>' . $e->getMessage());\n\t\t}\n\t\t\n\t\treturn $columnValue;\n\t}", "public function getByPK($index)\n\t{\n\t\treturn $this->containsIndex($index) ? $this[$index] : null;\n\t}", "public function getDataColumn()\n {\n return $this->dataColumn;\n }", "public function getDataCellValue($model, $key, $index)\n {\n if ($this->value !== null) {\n if (is_string($this->value)) {\n $key = ArrayHelper::getValue($model, $this->value);\n if( $key === null){\n return null;\n }\n if (isset($this->filter[$key])) {\n return $this->filter[$key];\n }\n return 'Not set for:' . $key;\n }\n\n return call_user_func($this->value, $model, $key, $index, $this);\n } elseif ($this->attribute !== null) {\n $key = ArrayHelper::getValue($model, $this->attribute);\n if( $key === null){\n return null;\n }\n if (isset($this->filter[$key])) {\n return $this->filter[$key];\n }\n return 'Not set for:' . $key;\n }\n\n return null;\n }" ]
[ "0.80688274", "0.79977894", "0.7809273", "0.76216733", "0.7556871", "0.7310323", "0.71452576", "0.7085776", "0.70528275", "0.66676056", "0.6661705", "0.66417134", "0.6608595", "0.6555846", "0.64705455", "0.6464357", "0.6460869", "0.6460869", "0.64520425", "0.6450461", "0.6450263", "0.6427845", "0.6410699", "0.6358008", "0.633995", "0.6334934", "0.6332317", "0.62964106", "0.6294432", "0.6272002", "0.626431", "0.6262578", "0.6254233", "0.62184775", "0.6217656", "0.6212475", "0.62111735", "0.6210286", "0.61964774", "0.61868715", "0.6182391", "0.61670816", "0.6154296", "0.614", "0.61332834", "0.6125427", "0.6122794", "0.61139554", "0.61019135", "0.6101637", "0.60870075", "0.6062298", "0.6037314", "0.6035587", "0.60347724", "0.60335225", "0.6022543", "0.6008886", "0.600561", "0.60039073", "0.5998252", "0.5997421", "0.5983489", "0.5980457", "0.5971815", "0.59695244", "0.5960075", "0.5957971", "0.5933995", "0.59322095", "0.5927008", "0.59180015", "0.59172523", "0.5916838", "0.5916838", "0.5909894", "0.5890898", "0.5875601", "0.58718115", "0.587152", "0.58547664", "0.58545285", "0.58444226", "0.5834872", "0.5828618", "0.58218604", "0.5815642", "0.5802581", "0.5795874", "0.57939994", "0.5793637", "0.578596", "0.5784089", "0.5781242", "0.57778794", "0.5764573", "0.5764476", "0.57623595", "0.57510936", "0.5750121", "0.5750105" ]
0.0
-1
Checks if the current element is valid after a call to the rewind() or next() functions.
public function valid() { return (current($this->_data) !== false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function valid()\n\t\t{\n\t\t\treturn $this->current() !== false;\n\t\t}", "public function valid(): bool\n {\n return $this->current() !== false;\n }", "public function valid() \n {\n return ($this->current() !== false);\n }", "public function valid() {\n\t\treturn ($this->current() !== false);\n\t}", "public function valid()\n {\n return ($this->current() != false);\n }", "public function valid()\n {\n return ($this->current() !== false);\n }", "public function valid()\n {\n if (isset($this->elements[$this->position]))\n {\n return true;\n }\n\n return false;\n }", "public function valid()\n {\n return ($this->currentElement !== NULL);\n }", "public function valid()\n {\n return !is_null($this->current());\n }", "public function valid(): bool\n {\n return ($this->current() !== false);\n }", "public function valid()\n {\n return (! is_null($this->current()));\n }", "public function valid()\n {\n if (is_null($this->current)) {\n return false;\n }\n\n return true;\n }", "public function valid()\n {\n // current() should return false. Needs to be tested.\n return (bool) $this->current();\n }", "public function valid() {\n return !is_null($this->currentIndex);\n }", "public function valid()\n {\n return (bool) $this->current();\n }", "public function valid()\n {\n return ($this->current() !== null) ? true : false;\n }", "public function valid()\n\t{\n\t\treturn !($this->current === null || $this->current === false);\n\t}", "public function valid()\n {\n return (bool) $this->current();\n }", "public function valid() : bool \n {\n return isset($this->list[$this->pointer]) ? \n ($this->list[$this->pointer]->valid() || $this->hasNext()) : false;\n }", "public function valid() {\r\n \tif ($this->__pageItems > 0) {\r\n \t\tif ($this->key() + 1 > $this->pageEnd()) {\r\n \t\t\treturn FALSE;\r\n \t\t} else {\r\n \t\t\treturn $this->current() !== FALSE;\r\n \t\t}\r\n \t} else {\r\n \t\treturn $this->current() !== FALSE;\r\n \t}\r\n }", "public function valid()\n {\n return ($this->position < $this->getDomList()->length);\n }", "public function valid(): bool\n {\n return isset($this->collection[$this->position]);\n }", "function valid()\n\t{\n\t\treturn $this->iterator->valid();\n\t}", "public function valid()\n {\n if (($this->isvalid) and (!librdf_iterator_end($this->iterator))) {\n return true;\n } else {\n return false;\n }\n }", "public function valid() {\n\t\t// Init the recordset if needed.\n\t\t$this->initRecordSet();\n\t\t// Is current position valid?\n\t\treturn ((!$this->recordSet->EOF) and $this->currentIndex < $this->recordSet->RecordCount() );\n\t}", "public function valid() {\n return $this->pointer < count($this->items);\n }", "public function valid()\n {\n return $this->iteratorIndex < $this->iteratorCount;\n }", "public function valid()\r\n\t{\r\n\t\treturn isset($this->elements[$this->i]);\r\n\t}", "public function valid()\n {\n $this->fileIterator->seek($this->position);\n return $this->fileIterator->valid();\n }", "public function valid() {\n // TODO: Check numProcessed against itemlimit\n return !is_null($this->currentRow);\n }", "public function valid(): bool\n {\n if ($this->next) {\n return $this->current->toInteger() <= $this->end->toInteger();\n }\n\n return $this->current->toInteger() >= $this->end->toInteger();\n }", "function valid()\n {\n return $this->_position == 0 || $this->_curPage->getSize() > 0;\n }", "public function valid()\n\t{\n\t\treturn isset($this->_elementNames[$this->__position]);\n\t}", "public function valid() {\n\t\tif( ! isset( $this->_recordset[ $this->_currentRow ] ) ) {\n\t\t\t$this->_currentRow--;\n\t\t\treturn( false );\n\t\t}\n\t\treturn( true );\n\t}", "function valid() {\n return ($this->pos < $this->end);\n }", "public function valid(): bool\n {\n return $this->_index < $this->_count;\n }", "public function valid(): bool\n {\n return (current($this->items) !== false);\n }", "public function valid()\n {\n return $this->_index < $this->count();\n }", "function valid() \n {\n return $this->offsetExists($this->position);\n }", "public function valid()\n {\n return false !== current($this->data);\n }", "public function valid()\n {\n return isset($this->collection->getItems()[$this->position]);\n }", "public function valid(): bool\n {\n return null !== $this->_nextScrollId;\n }", "public function valid()\n {\n return $this->index <= $this->length;\n }", "public function valid() {\n if ($valid=isset($this->__rows__[$this->__rowsi__])) {\n $this->__iterate__ = true;\n } else {\n unset($this->__iterate__);\n }\n return $valid;\n }", "public function valid() {\n\t\treturn isset($this->data[$this->position]);\n\t}", "function valid() {\r\n return isset($this->_data[$this->_position]);\r\n }", "public function valid()\n {\n return isset($this->list[$this->position]);\n }", "public function valid()\n {\n return !empty($this->_currentRow);\n }", "public function valid()\n {\n return (false !== \\next($this->events)) ? current($this->events) : false;\n }", "public function valid()\n {\n return isset($this->data[$this->position]);\n }", "public function valid()\n {\n return isset($this->data[$this->position]);\n }", "public function valid(): bool\n {\n $this->_current = $this->fetch();\n $valid = $this->_current !== false;\n\n if (!$valid && $this->statement !== null) {\n $this->statement->closeCursor();\n }\n\n return $valid;\n }", "public function valid()\n {\n return $this->iterator->valid();\n }", "public function valid()\n {\n return $this->currentLine !== false;\n }", "final public function valid(): bool\n {\n $this->sort();\n\n return false !== current($this->index) && null !== current($this->index);\n }", "public function valid () {\n return (FALSE !== current ($this->varContainer));\n }", "public function valid() {\n\t\t\treturn (isset($this->data[$this->index]));\n\t\t}", "public function valid()\r\n {\r\n return (current($this->children) !== FALSE);\r\n }", "public function valid(): bool\n {\n if (contains_key($this->entries, $this->position)) {\n return true;\n }\n\n if (null === $this->generator) {\n return false;\n }\n\n if ($this->generator->valid()) {\n return true;\n }\n\n $this->generator = null;\n return false;\n }", "public function valid() {\n\t\t\treturn isset( $this->stat_refs[ $this->position ] );\n\t\t}", "public function valid() {\n return isset($this->iteratorKeys[$this->iteratorPosition]);\n }", "public function valid() : bool\n {\n return !($this->key() >= count($this->currentRecordSet) && count($this->currentRecordSet) != $this->pageSize);\n }", "public function valid ()\n {\n return isset($this->offset) && isset($this->cache[ $this->offset ]);\n }", "public function valid()\n {\n return array_key_exists($this->key(), $this->iterator_data);\n }", "public function valid() {\n\t\treturn (\n\t\t\t(isset($this->firstItems[$this->firstItemIdx])) ||\n\t\t\t(($this->endItemIdx !== null) && isset($this->lastItems[$this->endItemIdx])) ||\n\t\t\t$this->items->valid()\n\t\t);\n\t}", "public function valid()\n {\n return ( current( $this->data ) !== false );\n }", "public function valid()\n {\n if(is_null($this->paginationVar))\n return true;\n return $this->curIndex < count($this->res);\n }", "public function valid()\n {\n return isset($this->records[$this->position]);\n }", "public function valid() {\n return isset ( $this->_iterableFiles [$this->_position] );\n }", "public function valid(): bool\n {\n return current($this->revs) !== false;\n }", "function valid() {\n if (isset($this->keys[$this->position])) {\n return $this->__isset($this->keys[$this->position]);\n }\n return false;\n }", "public function valid() {\n return false !== current($this->components);\n }", "public function valid()\n {\n if ($this->list === null)\n $this->rewind(); // loads from the table\n if ($this->list === null)\n return false;\n $key = key($this->list);\n $valid = ($key !== NULL && $key !== FALSE);\n return $valid;\n }", "public function valid(): bool\n {\n if ($this->_data instanceof \\Iterator) {\n return $this->_data->valid();\n } elseif (is_array($this->_data)) {\n return key($this->_data) !== null;\n }\n\n return false;\n }", "public function valid()\n {\n return $this->_key + 1 <= $this->_limit;\n }", "public function valid(): bool\n {\n return isset($this->nodes[$this->pointer]);\n }", "public function valid()\n {\n return $this->_position <= $this->_subject->getHighestRow();\n }", "public function valid()\n {\n return $this->offsetExists($this->key());\n }", "public function valid()\n {\n return $this->pager->valid();\n }", "public function valid()\n {\n return (\n !is_null($this->current) &&\n $this->dataStore->has($this->current[$this->dataStore->getIdentifier()])\n );\n }", "public function valid() { \n\t\t$page = &$this->touchPage();\n\t\treturn (key($page) !== null);\n\t}", "public function valid() {\n return ( current($this->_path) !== false );\n }", "public function valid()\n {\n return (current($this->objects) !== false);\n }", "public function valid ( ) {\n\n if(empty($this->_collection))\n return false;\n\n $key = key($this->_collection);\n $return = (bool) next($this->_childs);\n prev($this->_collection);\n\n if(false === $return) {\n\n end($this->_childs);\n if($key === key($this->_childs))\n $return = true;\n }\n\n return $return;\n }", "public function valid() {\n\t\t$this->checkResultSet();\n\n\t\tif ($this->index >= 0 && $this->index < $this->indexMax) {\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}", "public function valid(): bool\n {\n return !feof($this->fp) || $this->index !== null; // Is het einde van het bestand NIET bereikt?\n }", "public function isValid()\n {\n return $this->pos < strlen($this->buffer);\n }", "function rewind(){ \r\n\t $this->valid = (FALSE !== reset($this->array)); \r\n\t }", "public function valid ()\n\t{\n\t\tif (is_a($this->rs,'iterator'))\n\t\t{\n\t\t\treturn $this->rs->valid();\n\t\t}\n\t\treturn false;\n\t}", "public function valid()\n\t{\n\t\treturn $this->row !== NULL;\n\t}", "public function valid()\n {\n return $this->_current !== null\n && $this->_current->getTimestamp() < $this->_endDate->getTimestamp();\n }", "public function valid(): bool {\n return null !== key($this->items);\n }", "public function valid(): bool\n {\n return isset($this->intervals[$this->position]);\n }", "public function valid()\n {\n return isset($this->bricks[$this->position]);\n }", "public function valid()\n {\n return $this->key === 0;\n }", "public function valid() {\n $key = key($this->elements);\n\n $element = ($key !== NULL && $key !== FALSE);\n\n return $element;\n }", "public function valid(): bool\n {\n if (!$this->isUsed) {\n $this->call\n ->addIterableEvent($this->callEventFactory->createUsed());\n $this->isUsed = true;\n }\n\n $key = key($this->array);\n $isValid = null !== $key;\n\n if ($this->isConsumed) {\n return $isValid;\n }\n\n if ($isValid) {\n $this->call->addIterableEvent(\n $this->callEventFactory\n ->createProduced($key, current($this->array))\n );\n } else {\n $this->call->setEndEvent($this->callEventFactory->createConsumed());\n $this->isConsumed = true;\n }\n\n return $isValid;\n }", "public function valid()\n\t{\n\t\treturn isset ($this->_messages[$this->_position]);\n\t}", "public function valid()\n {\n return !!current($this->properties);\n }", "function next(){ \r\n\t $this->valid = (FALSE !== next($this->array)); \r\n\t }" ]
[ "0.7630429", "0.76241297", "0.7590662", "0.7572161", "0.7559611", "0.7556349", "0.7551046", "0.75091994", "0.74892014", "0.7443374", "0.74180776", "0.7389401", "0.73326254", "0.7328107", "0.7314215", "0.7293069", "0.72524005", "0.7210342", "0.71355414", "0.7120313", "0.7048498", "0.6965228", "0.69652146", "0.69544023", "0.69384074", "0.6932111", "0.69262123", "0.6887457", "0.68861336", "0.6870215", "0.68699515", "0.6832115", "0.67959464", "0.67571306", "0.6740958", "0.6731531", "0.6722807", "0.6722122", "0.6715326", "0.6709878", "0.67006135", "0.6698087", "0.6668938", "0.6661077", "0.66606086", "0.66602093", "0.6618861", "0.66000754", "0.6597837", "0.654836", "0.654836", "0.65363175", "0.65243226", "0.6516515", "0.64911795", "0.6488866", "0.646462", "0.6463895", "0.6434094", "0.64126456", "0.64118665", "0.6406408", "0.6384414", "0.63728654", "0.6372606", "0.6363861", "0.6349577", "0.6335351", "0.6332311", "0.6301417", "0.62791216", "0.62655324", "0.6250276", "0.6245518", "0.6219588", "0.6218942", "0.6211077", "0.6209361", "0.6208932", "0.62088937", "0.6205513", "0.61896324", "0.61790526", "0.61752176", "0.61499786", "0.61453885", "0.61367077", "0.61167514", "0.61113775", "0.610162", "0.6033808", "0.60318714", "0.60233194", "0.6014642", "0.6006365", "0.6005851", "0.6002367", "0.59940755", "0.59890693", "0.59815776" ]
0.6784776
33
Display page for the slug.
public function show($slug) { $logo = File::findOrNew(setting('storefront_header_logo'))->path; $page = Page::where('slug', $slug)->firstOrFail(); return view('public.pages.show', compact('page', 'logo')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function showPage($slug)\n {\n $repo = App::make('Pulse\\Cms\\PageRepository');\n\n $page = $repo->findBySlug($slug);\n\n if ($page) {\n $pagePresenter = App::make('Pulse\\Cms\\Presenter');\n $pagePresenter->setInstance($page);\n\n return $this->render('pulse::front.pages.show', compact('pagePresenter'));\n } else {\n App::abort(404);\n }\n }", "public function view() {\n\t\t// Find page by url slug\n\t\t$slug = $this->app->getSlug();\n\t\t$page = Page::findBySlug($slug);\n\t\t\n\t\t// If page exists render it, otherwise 404\n\t\tif ($page) {\n\t\t\t$this->title = $page->name;\n\t\t\t$this->pageData['page'] = $page;\n\t\t\t$this->render('view');\n\t\t} else {\n\t\t\t$this->noRoute();\n\t\t}\n\t}", "public function page($slug) {\n //$this->code_image();\n\n $page = DB::table('pages')->where('slug', $slug)->first();\n if (empty($page)) {\n return response()->view('errors.404')->setStatusCode(404);\n }\n //echo \"vv\";die();\n\n return view('front.page', compact('page'));\n }", "public function show($slug)\n {\n $q = \\App\\Models\\Page::query();\n\n $q->with('photo_links');\n\n $q->with('galleries');\n\n $q->whereSlug($slug);\n\n if (!Auth::guard('lit')->check()) {\n $q->whereActive(true);\n }\n\n // $q->whereType('page');\n\n $page = $q->firstOrFail();\n\n session(['last_viewed_page' => ['label' => $page->title, 'url' => request()->fullurl()]]);\n\n\n return view('page.show')\n ->with('page', $page)\n ;\n }", "function anyPageView($slug = \"\") {\r\n\r\n $uri = \\Request::path();\r\n if ($uri == \"cms\") {\r\n $uri = $uri . '/';\r\n }\r\n\r\n $languages = array_column(\\Sinevia\\Cms\\Helpers\\Languages::$data, 0);\r\n\r\n if (strlen(\\Request::segment(1)) == 2 AND in_array(\\Request::segment(1), $languages)) {\r\n $uri = substr($uri, 3);\r\n }\r\n\r\n $alias = \\Illuminate\\Support\\Str::replaceFirst('cms/', '', $uri);\r\n\r\n $page = \\Sinevia\\Cms\\Models\\Page::where('Alias', $alias)\r\n ->orWhere('Alias', '=', '/' . $alias)\r\n //->where('Status', '=', 'Published')\r\n ->first();\r\n\r\n if ($page == null) {\r\n $patterns = array(\r\n ':any' => '([^/]+)',\r\n ':num' => '([0-9]+)',\r\n ':all' => '(.*)',\r\n ':string' => '([a-zA-Z]+)',\r\n ':number' => '([0-9]+)',\r\n ':numeric' => '([0-9-.]+)',\r\n ':alpha' => '([a-zA-Z0-9-_]+)',\r\n );\r\n $aliases = \\Sinevia\\Cms\\Models\\Page::pluck('Alias', 'Id')->toArray();\r\n $aliases = array_filter($aliases, function ($alias) {\r\n return \\Illuminate\\Support\\Str::contains($alias, [':']);\r\n });\r\n foreach ($aliases as $pageId => $alias) {\r\n $alias = strtr($alias, $patterns);\r\n if (preg_match('#^' . $alias . '$#', '/' . $uri, $matched)) {\r\n $page = \\Sinevia\\Cms\\Models\\Page::find($pageId);\r\n };\r\n }\r\n if ($page == null) {\r\n return 'Page not found';\r\n }\r\n }\r\n\r\n $pageTranslation = $page->translation('en');\r\n if ($pageTranslation == null) {\r\n die('Page Translation not found ' . $page->Id);\r\n }\r\n $pageTitle = $pageTranslation->Title;\r\n $pageContent = $pageTranslation->Content;\r\n $pageMetaKeywords = $page->MetaKeywords;\r\n $pageMetaDescription = $page->MetaDescription;\r\n $pageMetaRobots = $page->MetaRobots;\r\n $pageCanonicalUrl = $page->CanonicalUrl != \"\" ? $page->CanonicalUrl : $page->url();\r\n $templateId = $page->TemplateId;\r\n $wysiwyg = $page->Wysiwyg;\r\n\r\n if ($wysiwyg == 'BlockEditor') {\r\n $blocks = json_decode($pageContent);\r\n if (is_array($blocks)) {\r\n $pageContent = $this->blockEditorBlocksToHtml($blocks);\r\n } else {\r\n $pageContent = 'Un-blocking error occurred';\r\n }\r\n }\r\n\r\n\r\n $template = \\Sinevia\\Cms\\Models\\Template::find($page->TemplateId);\r\n\r\n if ($template != null) {\r\n $templateTranslation = $template->translation('en');\r\n if ($templateTranslation == null) {\r\n die('Transation for template #' . $template->Id . ' not found');\r\n }\r\n $templateContent = $templateTranslation->Content;\r\n\r\n $webpage = \\Sinevia\\Cms\\Helpers\\Template::fromString($templateContent, [\r\n 'page_meta_description' => $pageMetaDescription,\r\n 'page_meta_keywords' => $pageMetaKeywords,\r\n 'page_meta_robots' => $pageMetaRobots,\r\n 'page_canonical_url' => $pageCanonicalUrl,\r\n 'page_title' => $pageTitle,\r\n 'page_content' => \\Sinevia\\Cms\\Helpers\\Template::fromString($pageContent),\r\n ]);\r\n } else {\r\n $webpage = \\Sinevia\\Cms\\Helpers\\Template::fromString($pageContent, [\r\n 'page' => $page,\r\n 'pageTranslation' => $pageTranslation,\r\n ]);\r\n }\r\n\r\n\r\n $webpageRenderedWithBlade = \\Sinevia\\Cms\\Helpers\\CmsHelper::blade($webpage);\r\n\r\n $webpageWithBlocks = \\Sinevia\\Cms\\Models\\Block::renderBlocks($webpageRenderedWithBlade);\r\n $webpageWithWidgets = \\Sinevia\\Cms\\Models\\Widget::renderWidgets($webpageWithBlocks);\r\n \r\n return $webpageWithWidgets;\r\n }", "public function show($slug)\n {\n $pageRes = Page::where('slug', '=', $slug, 'and', 'status', '=', 'published')->firstOrFail();\n\n return view('page', ['page' => $pageRes] );\n }", "public function show($slug)\n\t{\n\t\t//GET THE PAGE\n\t\t$data['post'] \t\t\t\t\t= Posts::posts()->where('slug', $slug)->first();\n\t\t$data['post']['categories'] \t= Posts::find($data['post']->id_post)->categories;\n\t\t$data['author'] \t\t\t\t= User::find($data['post']->id_user);\n\n\t\t$this->layout->content \t= View::make('front.'.$this->theme->theme.'.post', $data);\n\t}", "public function get_page($slug)\n {\n $slug = $this->security->xss_clean($slug);\n\n //index page\n if (empty($slug)) {\n redirect(base_url());\n }\n\n $data['page'] = $this->page_model->get_page($slug);\n //check page auth\n $this->checkPageAuth($data['page']);\n\n //if not exists\n if (empty($data['page']) || $data['page'] == null) {\n $this->error_404();\n } //check if page disable\n else if ($data['page']->page_active == 0 || $data['page']->link != '') {\n $this->error_404();\n } else {\n $data['title'] = get_page_title($data['page']);\n $data['description'] = get_page_description($data['page']);\n $data['keywords'] = get_page_keywords($data['page']);\n\n $this->load->view('blog/partials/_header', $data);\n $this->load->view('blog/page', $data);\n $this->load->view('blog/partials/_footer');\n\n }\n }", "public function show($slug) {\n $post = Post::where('slug', $slug)->first();\n\n // verifico se la select fatta sul DB mi ha ritornato un post tramite lo slug\n // ad esempio l'utente potrebbe modificare la stringa nella barra indirizzi, alterando il nome\n // dello slug e scrivendo un qualcosa che non ha corrispondenza con alcun post del DB\n if (!empty($post)) {\n // ritorna una view con i dati del singolo post ricercato\n return view('public.posts.show', ['post' => $post]);\n } else {\n // ritorno la pagina di errore \"Page not found\" poichè lo slug ricevuto in ingresso\n // non corrisponde a nessuna post presente nel mio DB (tabella 'posts')\n return abort(404);\n }\n }", "function post_slug($display = true) {\n\t\tif($display) echo $_GET['page'];\n\t\treturn $_GET['page'];\n\t}", "public function show() {\n $this->buildPage();\n echo $this->_page;\n }", "public function show($slug)\n { \n $results = $this->CC->getItem($slug);\n $item = $this->CC->parseItems($results['rows']);\n $params['item'] = (object) $item[0]; \n\n if(!$item[0]->url || !$item[0]->uri){\n $this->CC->setCanonical($item[0]->_qname);\n }\n\n if($item[0]->hasRelatedArticles > 0){\n $related = $this->CC->getAssociationSorted($item[0]->_qname, 'ers:related-association');\n $params['relatedItems'] = $this->CC->parseItems($related['rows']);\n }\n\n $results = $this->CC->getAssociation($item[0]->_qname);\n $items = $this->CC->parseItems($results['rows']);\n $params['items'] = $items;\n\n return view('professional.hermes-examinations')->with($params);\n }", "public function getPageBySlug( $slug ) {\n\n\t\tif ( !$page = $this->pageRepo->getBySlug( $slug ) ) {\n\t\t\tabort( 404 );\n\t\t}\n\n\t\t// default view\n\t\t$view = 'pages.inner';\n\n\t\t// default banner - child views can override the default one.\n\t\t$banner = $page->hasBanner() ? $page->bannerImageUrl() : null;\n\t\tif ( $page->isContactUs() ) {\n\t\t\t$view = 'pages.contact-us';\n\t\t}\n\n\t\treturn view( toolbox()->frontend()->view( $view ), compact( 'page', 'banner') );\n\n\t}", "public function showPress($slug)\n {\n\n $press = Press::where('slug', $slug)\n ->orderBy('date', 'desc')\n ->firstOrFail();\n /* media tag setup for SEO */\n MetaTag::set('title', $press->title);\n if($press->image){\n MetaTag::set('image', $press->image->fullSize);\n }\n MetaTag::set('description', $press->summary);\n\n return view('pages.press.press', ['press' => $press]);\n }", "public function actionSlug($slug)\n {\n $this->layout = \"@app/views/layouts/main-preview\";\n\n $flagSale = true;\n $model = Sale::getByRef($slug);\n\n if (!$model) {\n $model = Rentals::getByRef($slug);\n $flagSale = false;\n }\n\n if (!$model)\n throw new NotFoundHttpException(Yii::t('app', 'The requested page does not exist.'));\n\n return $this->render('view', [\n 'model' => $model,\n 'flagSale' => $flagSale\n ]);\n }", "public function show($slug) {\n $article = Article::where('url_key', $slug)->first();\n return view('article::show', compact('article'));\n }", "public function actionView($slug)\n {\n $article = $this->loadArticleModel($slug);\n if ($article->status != Article::STATUS_PUBLISHED) {\n if (Yii::app()->user->getId()) {\n Yii::app()->notify->addInfo(Yii::t('articles', 'This article is unpublished, only site admins can see it!'));\n } else {\n throw new CHttpException(404, Yii::t('app', 'The requested page does not exist.'));\n }\n }\n \n $this->setData(array(\n 'pageMetaTitle' => $this->data->pageMetaTitle . ' | ' . $article->title,\n 'pageMetaDescription' => StringHelper::truncateLength($article->content, 150),\n ));\n \n Yii::app()->clientScript->registerLinkTag('canonical', null, $this->createAbsoluteUrl($this->route, array('slug' => $slug)));\n Yii::app()->clientScript->registerLinkTag('shortlink', null, $this->createAbsoluteUrl($this->route, array('slug' => $slug)));\n \n $this->render('view', compact('article'));\n }", "public function show($idOrSlug)\n {\n if (ctype_digit($idOrSlug)) {\n $page = Page::where('id', $idOrSlug)->firstOrFail();\n } else {\n $page = Page::where('slug', $idOrSlug)->firstOrFail();\n }\n\t MetaTag::set('title', $page->name);\n\t MetaTag::set('description', $page->description);\n\t MetaTag::set('image', asset($page->hasThumbnail() ? asset('storage/uploads/media/page/' . $page->thumbnail()->filename) : ''));\n return view('blog.page.index', compact('page'));\n }", "public function show($slug)\n {\n $page = $this->page->where('slug', $slug)->firstOrFail();\n return $page;\n }", "public function show3($slug)\n {\n $post = Post::whereSlug($slug)->firstOrFail();\n return view('pages.post', compact('post'));\n }", "public function showPost($slug)\n {\n $repo = App::make('Pulse\\Cms\\PostRepository');\n\n $post = $repo->findBySlug($slug);\n\n if ($post) {\n $postPresenter = App::make('Pulse\\Cms\\Presenter');\n $postPresenter->setInstance($post);\n\n return $this->render('pulse::front.posts.show', compact('postPresenter', 'post'));\n } else {\n App::abort(404);\n }\n }", "public function showAction($slug)\n {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('WrathContentBundle:News')->findOneBySlug($slug);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find News entity.');\n }\n\n $deleteForm = $this->createDeleteForm($slug);\n\n return $this->render('WrathContentBundle:News:show.html.twig', array(\n 'entity' => $entity,\n 'delete_form' => $deleteForm->createView(), ));\n }", "function view($id, $slug)\n {\n $this->lordModel('Post');\n $condition = array('online' => 1, 'id' => $id, 'type' => 'post');\n $d['page'] = $this->Post->findfirst(array(\n 'champ' => 'id,name,content,slug',\n 'condition' => $condition\n ));\n\n if (empty($d['page'])) {\n $this->e404('page introuvable');\n }\n if ($slug != $d['page']->slug) {\n $this->redirect(\"posts/view/id:$id/slug:\" . $d['page']->slug, 301);\n }\n //print_r($d);\n $this->setvars($d);\n //$this->setvars('phrase', 'bienvenue sur ma page');\n //$this->render('view');\n }", "public function show($slug)\n {\n // If user come from ols link where was id then make 301 redirect.\n if (is_numeric($slug)) {\n // Get post for slug.\n $post = Post::findOrFail($slug);\n\n return Redirect::to(route('post.show', $post->slug), 301);\n }\n\n // Get post for slug.\n $post = Post::whereSlug($slug)->firstOrFail();\n\n // dump($post);\n return view('posts.show', [\n 'post' => $post\n ]);\n }", "public function show($slug)\n {\n $page = Page::active()->first();\n\n return new PageResource($page); \n }", "public function show($slug)\n {\n // $post=Post::where('slug',$slug)->firstOrFail();\n\n\n //forma de hacerlo in-line\n return view('post', ['post' => Post::where('slug', $slug)->firstOrFail()]\n );\n }", "public function show($subdomain,$slug)\n {\n\t \n }", "public function show($slug) {\n\n // post = \\DB::table('posts')->where('slug', $slug)->first(); \\ required if not imported at the top\n // $post = DB::table('posts')->where('slug', $slug)->first();\n\n // firstOrFail: return first post that matches or throw an error creating a model not found exception returning a 404\n $post = Post::where('slug', $slug)->firstOrFail(); \n\n return view('post', [\n 'post' => $post\n ]);\n\n }", "public function getMenu()\n {\n if($slug){\n $page = Page::where('slug', $slug)->first();\n return view('page')->with('page', $page);\n }else{\n return view('errors.404');\n }\n \n }", "public function showPostPage($slug)\n {\n $post = Post::whereSlug($slug)->firstOrFail();\n $last_posts = Post::orderBy('id', 'desc')->limit(5)->get();\n\n return view('post.show',compact('post','last_posts'));\n }", "public function showDomain($slug)\n {\n $domain_slug = \\Request::segment(1);\n $domain = Domain::where('slug', $domain_slug)\n ->first();\n\n $page = Page::published()\n ->where('slug', $slug)\n ->where('domain_id', $domain->id)\n ->first();\n\n\n\n $view = $this->view->page;\n\n if ($page->type == 1)\n {\n $view = $this->view->article_page;\n }\n\n return view($view, compact('page', 'domain_slug'));\n }", "public function show($slug) {\n\t\t$article = $this->article->findByKey('slug', $slug, array('user', 'comments'));\n\t\tif ($article) {\n\t\t\treturn view('articles.single', compact('article'));\n\t\t}\n\t\t//404\n\t}", "public function actionView($slug)\n {\n /**\n * @var Page $model\n */\n $model = Page::find()\n ->where(['status' => Page::STATUS_ACTIVE, 'type' => Page::TYPE_PAGE, 'slug' => $slug])\n ->one();\n\n if (null === $model) {\n throw new NotFoundHttpException('The requested page does not exist.');\n }\n\n $view = $model->view ?: 'view';\n if ($model->layout) {\n $this->layout = $model->layout;\n }\n\n return $this->render($view,\n [\n 'model' => $model,\n ]);\n }", "public function show($slug)\n {\n//Vào bảng posts tại trường slug lấy trùng với slug trên URI đầu tiên=>Trả về tất cả các thông tin liên quan\n $show = Post::where('slug', $slug)->first();\n return view('blog.show')\n ->with('posts', $show); //Trả về cùng biến posts với slug tìm được\n\n }", "public function show($slug)\n {\n if (is_numeric($slug)) {\n // Get post for slug.\n $article = Product::findOrFail($slug);\n \n return Redirect::to(route('article.show', $article->slug), 301);\n }\n \n // Get post for slug.\n $article = Article::whereSlug($slug)->firstOrFail();\n \n return view('article.show', [\n 'article' => $article\n ]);\n }", "public function show($slug) {\n $post = Post::where('slug', $slug)->first();\n //where specifica la colonna e il valore da cercare,con il first recuperiamo il primo elemento, \n //altrimenti potremmo usare il get che ci ritorna, se ci sono, un array di elementi.\n\n //se lo slug non esiste riporto un 404\n if (!$post) {\n abort(404);\n }\n\n $data = ['post' => $post];\n\n return view('posts.show', $data);\n }", "public function show($slug)\n\t{\n\t\t$post = Post::where('slug',$slug)->first();\n\n return View::make('posts.show', compact('post'));\n\t}", "public function show($slug)\n {\n $article = Article::findBySlug($slug);\n if($article->published==0){\n abort(404);\n }\n return view('blog.articles.show',compact('article'));\n }", "public function showAction($slug)\n {\n $post = Post::where('slug', '=', $slug)->first();\n\n return View::make('post', ['post' => $post]);\n }", "public function showPage($page_slug)\n {\n $page = Page::where('page_slug',$page_slug)->first();\n\n if($page_slug == 'api')\n {\n try {\n $instagram = new Instagram(env('INSTAGRAM_TOKEN',NULL));\n $instagram_media = $instagram->get();\n } catch (\\Exception $e) {\n $instagram_media = NULL;\n Log::info(\"Instagram connection error! \" . $e->getMessage());\n }\n\n return view('front.apis', compact('page','instagram_media'));\n }\n if (isset($page) && !is_null($page))\n {\n return view('front.page',compact('page'));\n }\n\n flash()->error(\"That page could not be displayed\");\n return redirect('/');\n }", "public function display($pageName);", "public function show($slug)\n {\n //return $slug;\n\n $post = Post::where('slug', $slug)->first();\n //dump($post);\n\n //facciamo un check per vedere se esiste un post\n if (empty($post)) {\n abort(404);\n }\n\n return view('posts.show', compact('post'));\n }", "function view($slug = null) {\n\n\t}", "public function show($slug)\n {\n $post = Post::where('slug',$slug)->first();\n return view('blog.show')->withPost($post);\n }", "public function show($slug)\n\t{\n\t\t$post = Post::whereSlug($slug)->first();\n\t\treturn view('post.show')\n\t\t\t->with('post', $post);\n\t}", "public function show($slug)\n {\n $post = Post::where('slug', $slug)->first();\n\n return view('registred.posts.show', compact('post'));\n }", "public function show($slug) {\n\t\t$post = Post::where('slug', $slug)->first();\n\n\t\tif(empty($post))\n\t\t\tthrow new EntityNotFoundException(\"Error ...\",$slug);\n\t\treturn view('post.post_detail', ['post' => $post]);\n\n\t}", "public function show($slugString)\n {\n// $post = Post::find($id);\n $post = Post::findBySlug($slugString);\n\n return view(\"posts.show\", compact(\"post\"));\n }", "public function actionIndex($slug){\r\n try {\r\n // $model = Page::model()->find(\"slug='\".$_GET['slug'].\"' and status=1 and role_website_id=\" . ROLE_WEBSITE_ID);\r\n $model = Page::model()->findByAttributes(array('slug'=>$_GET['slug'],'status'=>1,'role_website_id'=>ROLE_WEBSITE_ID));\r\n\r\n if(empty($model)) $this->redirect(array('error'));\r\n\r\n\r\n $model->getDataTranslate();\r\n\r\n \r\n if ($this->pageTitleCus == '')\r\n $this->pageTitle = $model->title ;//. ' - ' . Yii::app()->params['defaultPageTitle'];\r\n\r\n if (substr($model->slug, 0, 6) == 'eleave') {\r\n $this->isStaticPage = true;\r\n $this->render('page_eleave',array(\r\n 'model'=>$model,\r\n ));\r\n } else {\r\n $this->render('page',array(\r\n 'model'=>$model,\r\n ));\r\n }\r\n\r\n } catch (Exception $exc) {\r\n throw new Exception($exc->getMessage());\r\n }\r\n\t}", "public function show($slug){\n $post = Post::where('slug', $slug)->first();\n //i tag associati anche\n $tags = Tag::all();\n\n if ($post == null) {\n abort(404);\n }\n // restituisco la pagina del singolo post\n return view('guest.show', compact('post', 'tags'));\n }", "public function show($slug)\n {\n $post = StudentPost::where('slug', $slug)->first();\n $posts = StudentPost::latest()->where('id','!=', $post->id)->take(5)->get();\n $school = SchoolProfile::where('user_id', auth()->user()->id)->first();\n $teacher = TeacherProfile::where('user_id', auth()->user()->id)->first();\n $jobs = Job::latest()->take(5)->get();\n return view('frontend.pages.student.show',compact('post','posts','school','teacher','jobs'));\n }", "public function show() {\n // without an id we just redirect to the error page as we need the post id to find it in the database\n if (!isset($_GET['id']))\n return call('pages', 'error');\n\n // we use the given id to get the right post\n $post = Post::find($_GET['id']);\n require_once('view/posts/show.php');\n\n }", "public function index($slug = null) {\n $this->viewBuilder()->layout('default');\n $mData = $this->Contents->find()->where(['Contents.page_slug' => $slug])->first()->toArray();\n //pr($mData); exit;\n \n $pageSeo['site_meta_title'] = $mData['meta_title'];\n $pageSeo['site_meta_description'] = $mData['meta_description'];\n $pageSeo['site_meta_key'] = $mData['meta_key']; \n \n \n $this->set(compact('mData','pageSeo')); \n $this->render($slug);\n }", "public function show($slug)\n {\n $news = News::whereSlug($slug)->first();\n \n return view('admin.dashboard.news.show', compact('news'));\n }", "public function showCategoryPage($slug)\n {\n $category = Category::whereSlug($slug)->firstOrFail();\n\n //get the category id, because in the beginning, get the slug\n $category_id = $category->id;\n\n //choose all posts of category\n $posts = Post::with('category')->where('category_id','=', $category_id)->paginate(10);\n return view('category.index', compact('category', 'posts'));\n }", "public function index($slug = '') {\n\n $options = [\n 'filter' => [\n $this->mp['id'] => $slug,\n 'published' => true,\n ],\n ];\n\n if (empty($slug)) { // start page\n return false;\n }\n // $page = $this->app->module('collections')->findOne($this->mp['pages'],$options['filter']);//One($this->mp['pages'], $options['filter'], null, false, ['lang' => $this('i18n')->locale]);\n // $this->t($page);\n $page = $this->app->module('collections')->findOne($this->mp['pages'], $options['filter'], null, false, ['lang' => $this('i18n')->locale]);\n \n\n return $this->render('views:chips.php', ['mp' => $this->mp, 'page' => $page]);\n\n }", "public function show($slug)\n {\n $page = [\n 'title' => 'Detail File publikasi ',\n 'breadcrumb' => 'Detail'\n ];\n $model = new Publikasi;\n $publikasi = $model->getDataBySlug($slug);\n\n return view('layouts.publikasi.show', compact('publikasi'))->withPage($page);\n }", "public function show($slug)\n {\n $post = Post::whereSlug($slug)->firstOrFail();\n \n return view('post', compact('post'));\n }", "public function blogPostShow($slug)\n {\n $post = Post::where('slug', $slug)->get();\n return view('blog.page.pagecontent', ['post' => $post]);\n }", "public function show($slug)\n {\n //??\n $post= Post::where('slug',$slug)->first();\n if (!$post)\n return redirect('/');\n\n $posts= Post::where('slug',$slug)->get();\n return view('posts.show')->withPosts($posts);\n\n }", "public function view(string $slug)\n {\n //The category can be passed as query string, from a widget\n if ($this->getRequest()->getQuery('q')) {\n return $this->redirect([$this->getRequest()->getQuery('q')]);\n }\n\n $category = $this->PagesCategories->findActiveBySlug($slug)\n ->select(['id', 'title'])\n ->contain($this->PagesCategories->Pages->getAlias(), fn(Query $query): Query => $query->find('active')->select(['category_id', 'slug', 'title']))\n ->cache('category_' . md5($slug))\n ->firstOrFail();\n\n $this->set(compact('category'));\n }", "public function display() {\n\t\t$path = func_get_args();\n\n\t\t$count = count($path);\n\t\tif (!$count) {\n\t\t\t$this -> redirect('/');\n\t\t}\n\t\t$page = $subpage = $title_for_layout = null;\n\n\t\tif (!empty($path[0])) {\n\t\t\t$page = $path[0];\n\t\t}\n\t\tif (!empty($path[1])) {\n\t\t\t$subpage = $path[1];\n\t\t}\n\t\tif (!empty($path[$count - 1])) {\n\t\t\t$title_for_layout = Inflector::humanize($path[$count - 1]);\n\t\t}\n\t\t$this -> set(compact('page', 'subpage', 'title_for_layout'));\n\t\t$this -> render(implode('/', $path));\n\t}", "public function show($slug)\n\t{\n\t\t//GET THE CATEGORY\n\t\t$data['category'] \t\t= Categories::where('slug', $slug)->first();\n\n\t\t$posts \t\t\t\t\t= Categories::find($data['category']->id_category)->posts;\n\n\t\t//GET THE POSTS TIED TO THIS CATEGORY\n\t\t$blogPosts = array();\n\t\tforeach ($posts as $key => $post) {\n\t\t\t\n\t\t\t$blogPosts[$key]['post'] \t\t\t\t= $post;\n\n\t\t\t//GET THE AUTHOR\n\t\t\t$author \t\t\t\t\t\t\t\t= User::find($post->id_user);\n\t\t\t$blogPosts[$key]['author'] \t\t\t\t= $author;\n\t\t}\n\n\t\t$data['records']\t\t= $this->customPagination($blogPosts, 10);\n\n\t\t$this->layout->content \t= View::make('front.'.$this->theme->theme.'.category', $data);\n\t}", "public function show() {\n // without an id we just redirect to the error page as we need the post id to find it in the database\n if (!isset($_GET['id']))\n return call('pages', 'error404');\n\n // we use the given id to get the right post\n $schools = School::find($_GET['id']);\n require_once('views/school/show.php');\n }", "public function show($slug) {\n //return 'detail' . $id;\n\n $comics = config('comics');\n //dd($comics);\n\n\n //get specific comic by id\n\n // $comic = [];\n // foreach ($comics as $item) {\n // if ($id == $item['id']) {\n // $comic = $item;\n // }\n // }\n\n //get specific comic by slug\n $comic = [];\n foreach ($comics as $item) {\n //title => slug\n $titleConverted = Str::slug($item['title'], '-');\n\n //decisione\n if ($slug == $titleConverted) {\n $comic = $item;\n break;\n }\n }\n\n //SE LA PAGINA CERCATA NON ESISTE INSERIAMO UN MESSAGGIO DI ERRORE\n if (empty($comic)) {\n abort(404);\n }\n\n\n return view('comics.show', compact('comic'));\n }", "public function show($slug)\n {\n //\n $slider = Slider::where('slug', $slug)->first();\n return view('admin.sliders.show')->with('slider', $slider);\n }", "public function show($slug)\n {\n $article = Article::where(['slug' => $slug])->first();\n if(!isset($article)) {\n return abort(\"404\");\n }\n return view('articles.show', ['article' => $article]);\n }", "public function showAction($slug)\n\n\n {\n\n\n $em = $this->getDoctrine()->getManager();\n \n\n /*\n * i Get my current page\n */\n $page = $em->getRepository('ScoutBundle:Page')->findOneBySlug($slug);\n /*\n * i build translation link for my current page\n */\n\n // if(!empty( $pageslider))\n $pagesliders = $page->getSlider();\n if(!empty( $pagesliders))\n {$pageslider = $pagesliders;}\n else{\n $pageslider = $em->getRepository('ScoutBundle:Slider')->find(1); }\n\n \n $translationsLink = false;\n $translations = $page->getTranslations();\n\n if(!empty($translations) and count($translations) > 0){\n $translation = $translations[0]; //TODO : have to be dynamise if you want to manage more than 1 langage\n $translationsLink = $this->generateUrl('page_show',['_locale' => $translation->getLang(),'slug' => $translation->getSlug()]);\n }else{\n $translationsLink = $this->generateUrl('page_show',['_locale' => $page->getLang(),'slug' => $page->getSlug()]);}\n\n\n //die($page->getLang());\n //$lastestnews = $em->getRepository('WebBundle:Page')->findLatestNews($locale,$this->arrayCategoryNewsTitle[$locale]);\n //cant stay like this\n //$social = $em->getRepository(\"WebBundle:SocialEntry\")->findOneBy([],[\"publishedAt\" => \"DESC\"]);\n// if( $page->getLang() == $locale)\n// {\n// $pager = $page;\n// }else{\n//\n// $translations = $page->getTranslations();\n// if(!empty($translations)){\n// $pager = $translations[0];\n// }\n// }\n// $servicePages = $em->getRepository('ScoutBundle:Page')->findByCategoryName($locale, \"Service\");\n// $smartbuyPages = $em->getRepository('ScoutBundle:Page')->findByCategoryName($locale, \"Smartbuy\");\n\n return $this->render('page/show.html.twig', array(\n 'page' => $page,\n 'translationsLink' => $translationsLink,\n 'pageslider' => $pageslider\n ));\n\n\n }", "public function actionView($slug)\n {\n $model = Article::find()->andWhere(['slug' => $slug])->published()->one();\n if (!$model) {\n throw new NotFoundHttpException(Yii::t('frontend', 'Page not found.'));\n }\n\n // meta keywords\n $this->getView()->registerMetaTag([\n 'name' => 'description',\n 'content' => $model->description,\n ]);\n // meta description\n $this->getView()->registerMetaTag([\n 'name' => 'keywords',\n 'content' => $model->keywords,\n ]);\n\n return $this->render('view', [\n 'model' => $model,\n 'menuItems' => self::getMenuItems(),\n ]);\n }", "public function show($slug)\n {\n $blog = Blog::where(['slug' => $slug])->firstOrFail();\n $blogs = Blog::orderBy('id', 'DESC')->where('id', '!=', $blog->id)->limit(4)->get();\n Meta::title('المدونة - ' . $blog->title);\n Meta::set('image', asset('storage/' . $blog->image));\n Meta::set('description', asset('storage/' . $blog->brief));\n return view('blogs.show')->with([\n 'blog' => $blog,\n 'blogs' => $blogs\n ]);\n }", "public function shows($slug)\n\t{\n\t\t$data['slug'] = $_POST['slug'] = $slug;\n\t\t$this->load->view('room/shows', $data);\n\t}", "public function show($slug)\n {\n $product = Product::where('slug',$slug)->first();\n if($product)\n return view(\"products.show\", compact('product'));\n else\n return redirect('/');\n }", "public function show($slug)\n {\n $sale = Sale::where('slug', $slug)->firstOrFail();\n $order = Order::where('sale_id', '=', $sale->id)->get();\n $num = 1;\n return view('admin.sales.show', compact('sale', 'order', 'num'));\n }", "public function show($slug)\n {\n $article = Article::whereSlug($slug)->firstOrFail();\n $user = User::find($article->author_id);\n return view('articles.show', compact('article', 'user'));\n }", "public function show($slug)\n {\n $content = content::where('slug',$slug)->first();\n if (empty($content)) {\n die('hard');\n abort(404);\n }\n return view('kontributor.kontenpendaftar',compact('content'));\n }", "public function display()\n {\n //If the page was cached\n if ($this->isCached)\n {\n //Nothing to do, we already showed the page\n return;\n }\n return $this->route->getView()->output();\n }", "public function show($slug)\n\t{\n\t\t// find the product by it's slug\n\t\t$product = product::where('slug',$slug)->first();\n\t\t// abort if product not found\n\t\tif (!$product) {\n\t\t\tabort(404);\n\t\t}\n\t\treturn view('test.show')->with('product',$product);\n\t}", "public function showPage()\n {\n $userId = Auth::user()->id;\n\n $data['pages'] = User::where('id', $userId)->select('page', 'description')->get();\n\n return view('/users/page', $data);\n }", "public function getPage(DukamlContract $dukaml, $slug)\n {\n // Retrieve page content.\n $page = Pages::get($slug);\n if (Pages::isError($page) || !$page->visible) {\n abort(404, Lang::get('boukem.error_occurred'));\n }\n\n // Convert to HTML.\n switch ($page->type)\n {\n case 'markdown':\n $html = $this->parser->parse($page->content);\n break;\n case 'dukaml':\n $html = $dukaml->renderToHtml($page->content);\n break;\n default:\n $html = $page->content;\n }\n \n return view('site.custom_pages.index', [\n 'title' => $page->title,\n 'html' => $html\n ]);\n }", "public function show($id)\n {\n $url = $_SERVER['REQUEST_URI'];\n $explode = explode('/', $url);\n $page_id = $explode[2];\n $specialpages = SpecialPages::where('category_id', '=', $page_id)->first();\n $pages = Page::all();\n $content = BasicInfo::first();\n $social = SocialMedia::all();\n return view('frontend.specialpages.viewspecialpages', compact('social', 'specialpages', 'page_id', 'pages', 'content'));\n }", "public function showEdit($slug)\n {\n $page = Page::where('slug', $slug)->first();\n \n return view('theme::admin.page.edit', ['page'=> $page]);\n }", "public function show()\n {\n $tvshow = Tv_show::where('slug', $slug)->first();\n if(empty($tvshow)){abort(404);}\n return view('tvshow.show')->with('tvshow', $tvshow);\n }", "public function show(Page $page)\n {\n\n }", "public function show($slug)\n {\n $page = [\n 'title' => 'Detail Prestasi',\n 'breadcrumb' => 'Detail'\n ];\n $model = new Prestasi;\n $prestasi = $model->getDataBySlug($slug);\n\n return view('layouts.profil.prestasi.show', compact('prestasi'))->withPage($page);\n }", "public function viewPageAction(Request $request, $slug)\n {\n $page = $this->getDoctrine()->getManager()->getRepository('IbtikarShareEconomyCMSBundle:Page')->findOneBySlug($slug);\n\n if (!$page) {\n throw $this->createNotFoundException();\n }\n\n $template = $this->getParameter('ibtikar_share_economy_cms.frontend_template');\n\n return $this->render($template, ['page' => $page,'isEditor'=>$this->getParameter('ibtikar_share_economy_cms.applyTextEditor')]);\n }", "public function showAction($id, $slug) {\n $em = $this->getDoctrine()->getManager();\n\n $ads = $em->getRepository('BidwebBundle:WebsiteSale')->find($id);\n\n if (!$ads) {\n throw $this->createNotFoundException('Unable to find website.');\n }\n// $comments = $em->getRepository('BidwebBundle:Comment')\n// ->getCommentsForPost($ads->getId());\n\n if (!$this->get('security.authorization_checker')->isGranted('IS_AUTHENTICATED_FULLY')) {\n\n return $this->render('BidwebBundle:WebsiteSale:show.html.twig', array(\n 'post' => $ads\n ));\n } else {\n\n return $this->render('BidwebBundle:WebsiteSale:show2.html.twig', array(\n 'post' => $ads\n ));\n }\n \n \n }", "public function show($slug)\n {\n // En el caso de que estes buscando por ID debes ingresar la siguiente linea\n // $variable = Trainer::find($id);\n\n $detalles = Trainer::where('slug', $slug)->first();;\n\n return view ('trainer.trainer_details', compact('detalles'));\n }", "public function show($slug,$id)\n {\n // $material = Material::find($id);\n\n // if(!$material)\n // App::abort(404);\n\n // return 'showing '.$material->nome; \n }", "public function show() {\n if (!isset($_GET['id']))\n return call('pages', 'error');\n\n // we use the given id to get the right post\n $image = Gallery::find($_GET['id']);\n require_once('views/gallery/show.php');\n }", "public function show($slug)\n {\n $pesanan = Pesanan::where('slug', $slug)->first();\n $title = \"Photo $pesanan->nama1 dan $pesanan->nama2\";\n $photo = Photo::where('id_pesanan', $pesanan->id)->paginate(4);\n return view('photo.show', ['title' => $title, 'photo' => $photo, 'pesanan' => $pesanan]);\n }", "public function preview($slug)\n {\n $page = Page::where('slug', $slug)\n ->where('ip', \\Request::getClientIp())\n ->first();\n\n\n $formView = view('site._cta_form_top');\n\n\n return view('tok3-publisher::page', compact('page'));\n }", "public function showAction()\n {\n // Do not show pager when nothing to page.\n if ($this->pagerCollection->getItemCount() <= 0) {\n return '';\n }\n\n $pager = $this->pagerCollection->getPagerByIdentifier($this->pagerIdentifier);\n \n $this->view->assign('pagerCollection', $this->pagerCollection);\n $this->view->assign('pager', $pager);\n }", "public function show(Page $page)\n {\n //\n }", "public function show(Page $page)\n {\n //\n }", "public function show(Page $page)\n {\n //\n }", "public function how()\n {\n $page = Page::where('slug', 'how_it_works')->first();\n return View::make('front.pages.detail')->with('page', $page);\n }", "public function slug($slug)\n {\n $node = Node::where('slug', $slug)->first();\n if(!isset($node)) {\n abort(404);\n }\n\n return view('nodes.show')\n ->with('node', $node);\n }", "public function show($slug, $id)\n {\n $series = Serie::published()->where('slug', $slug)->firstOrFail();\n $post = $series->posts()->published()->findOrFail($id);\n if($post->auth_locked && !Auth::check()) {\n abort(404);\n }\n return view('posts.show', ['post' => $post, 'series' => $series]);\n }", "public function page($slug = null)\n {\n $home = $slug === $this->getHomeSlug();\n $page = $this->repository->findBySlug($slug);\n\n // If we cannot find the page, and we have rights to create it,\n // allow the user to do so. Otherwise, throw a 404.\n if ( ! $page) {\n\n if (cms()->auth()->can('wiki.page.create')) {\n $this->createSlug = $slug;\n return $this->create();\n }\n\n return abort(404, \"Could not find wiki page for slug '{$slug}'\");\n }\n\n $previousUrl = $this->getPreviousUrl();\n $this->memory->pushPageToHistory($slug);\n\n $body = $this->makeParser()->toHtml($page->body);\n\n $lastEdit = $page->edits->first();\n\n return view('cms-wiki::wiki.page', [\n 'isHome' => $home,\n 'title' => $page->title,\n 'body' => $body,\n 'page' => $page,\n 'lastEdit' => $lastEdit,\n 'history' => $this->memory->getPageHistory(),\n 'previousUrl' => $previousUrl,\n ]);\n }", "public function show($slug) {\n $user=User::where('slug', $slug)->firstOrFail();\n return view('admin.implementers.show', compact('user'));\n }" ]
[ "0.7647745", "0.7596904", "0.73839766", "0.73135215", "0.7207792", "0.72043437", "0.7160279", "0.7093963", "0.70727926", "0.7036892", "0.70316654", "0.70248467", "0.7006902", "0.69965816", "0.6994123", "0.6963322", "0.69450265", "0.69350606", "0.6911318", "0.68632925", "0.6802297", "0.6802262", "0.67908686", "0.678513", "0.6783586", "0.6778625", "0.6749175", "0.67403185", "0.6731088", "0.6728624", "0.6712257", "0.6711147", "0.6702875", "0.6702305", "0.66954416", "0.66950977", "0.66839796", "0.66831124", "0.66712785", "0.6661605", "0.66546214", "0.6653699", "0.6650081", "0.6634329", "0.66291106", "0.6623546", "0.66215914", "0.6615829", "0.66104525", "0.66076404", "0.65900034", "0.6582836", "0.6577076", "0.6565873", "0.65637916", "0.6560609", "0.6556397", "0.65563315", "0.6554257", "0.65449697", "0.65349096", "0.65248436", "0.6522429", "0.651973", "0.65169066", "0.65051913", "0.6504301", "0.65017503", "0.65012157", "0.6479947", "0.647693", "0.647588", "0.6472053", "0.64591455", "0.64584774", "0.6454896", "0.64532584", "0.64474475", "0.6440045", "0.6438154", "0.6430475", "0.6429508", "0.6421098", "0.6420581", "0.6419675", "0.6414137", "0.64079237", "0.6407538", "0.63948095", "0.6389419", "0.63878495", "0.63749295", "0.63705075", "0.63705075", "0.63705075", "0.6369734", "0.63681555", "0.63629484", "0.6359582", "0.6358655" ]
0.7160203
7
Create a new TemporaryLink instance
public function __construct(array $data) { parent::__construct($data); $this->link = $this->getDataProperty('link'); $this->setMetadata(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setTemporaryLink(UserLink $link)\n {\n $this->_temporaryLink = $link;\n return $this;\n }", "function getTemporaryLink()\n {\n return $this->_temporaryLink;\n }", "function clearTemporaryLink()\n {\n $this->_temporaryLink = null;\n return $this;\n }", "function create_link($linkName, $linkTarget='#')\n {\n return $this->createLink($linkName, $linkTarget);\n }", "static public function createLink($data = [])\n\t{\n\t\t$link = new Link;\n\n\t\t// set the link fields\n\t\t$link->object_id = $data['object_id'];\n\t\t$link->object_type = $data['object_type'];\n\t\t$link->link_type = $data['link_type'];\n\t\t$link->link = $data['link'];\n\n\t\t// save the record to the DB\n\t\t$link->save();\n\n\t\t// return the new DB records id\n\t\treturn $link;\n\t}", "public function getTempLink()\n {\n return $this->temp_loc;\n }", "public function getTemporaryUrl(DateTimeInterface $expiration, array $options = []): string\n {\n throw UrlCannotBeDetermined::filesystemDoesNotSupportTemporaryUrls();\n }", "function makeLink($label, $link, $ATagParams = ''){\n\t\tif(is_array($this->conf['typolink.']))\n\t\t\t$myConf = $this->conf['typolink.'];\n\t\t$myConf['parameter'] = $link;\n\t\tif($ATagParams) {\n\t\t\t$myConf['ATagParams'] = $ATagParams;\n\t\t}\n\t\treturn $this->cObj->typoLink($label, $myConf);\n }", "private function createTemporaryFile()\n {\n return $this->temp[] = tempnam(sys_get_temp_dir(), 'sqon-');\n }", "private function _createTemporaryTable(){\n\n $tempTable = $this->getTemporaryTablename();\n $this->_liquetDatabase->query(\"DROP TABLE IF EXISTS {$tempTable}\")->run();\n $this->_liquetDatabase->query(\"CREATE TEMPORARY TABLE {$tempTable} LIKE {$this->_tablename}\")->run();\n\n return $tempTable;\n }", "public function create($alias = null);", "public function createUltralink( $initialCategory = '', $needsReview = 0 ){ return Ultralink::U( -1, $this, $initialCategory, $needsReview ); }", "public function createLinker()\n {\n $entityClass = 'RK\\\\WebsiteHelperModule\\\\Entity\\\\linkerEntity';\n\n return new $entityClass();\n }", "public function create_target () {\n\t\t$this->opts['create_target'] = true;\n\t\treturn $this;\n\t}", "public function createLink() {\n\t\t$sql = \"INSERT INTO\twbb\".WBB_N.\"_thread\n\t\t\t\t\t(boardID, languageID, prefix, topic, time, userID, username, lastPostTime, \n\t\t\t\t\tlastPosterID, lastPoster, replies, views, ratings, rating, attachments,\n\t\t\t\t\tpolls, isAnnouncement, isSticky, isDisabled, everEnabled, isClosed, isDeleted,\n\t\t\t\t\tmovedThreadID, movedTime, deleteTime, deletedBy, deletedByID, deleteReason)\n\t\t\tVALUES\t\t(\".$this->boardID.\",\n\t\t\t\t\t\".$this->languageID.\",\n\t\t\t\t\t'\".escapeString($this->prefix).\"',\n\t\t\t\t\t'\".escapeString($this->topic).\"',\n\t\t\t\t\t\".$this->time.\",\n\t\t\t\t\t\".$this->userID.\",\n\t\t\t\t\t'\".escapeString($this->username).\"',\n\t\t\t\t\t\".$this->lastPostTime.\",\n\t\t\t\t\t\".$this->lastPosterID.\",\n\t\t\t\t\t'\".escapeString($this->lastPoster).\"',\n\t\t\t\t\t\".$this->replies.\",\n\t\t\t\t\t\".$this->views.\",\n\t\t\t\t\t\".$this->ratings.\",\n\t\t\t\t\t\".$this->rating.\",\n\t\t\t\t\t\".$this->attachments.\",\n\t\t\t\t\t\".$this->polls.\",\n\t\t\t\t\t\".$this->isAnnouncement.\",\n\t\t\t\t\t\".$this->isSticky.\",\n\t\t\t\t\t\".$this->isDisabled.\",\n\t\t\t\t\t\".$this->everEnabled.\",\n\t\t\t\t\t\".$this->isClosed.\",\n\t\t\t\t\t\".$this->isDeleted.\",\n\t\t\t\t\t\".$this->threadID.\",\n\t\t\t\t\t\".TIME_NOW.\",\n\t\t\t\t\t\".$this->deleteTime.\",\n\t\t\t\t\t'\".escapeString($this->deletedBy).\"',\n\t\t\t\t\t\".$this->deletedByID.\",\n\t\t\t\t\t'\".escapeString($this->deleteReason).\"')\";\n\t\tWCF::getDB()->sendQuery($sql);\n\t}", "public static function createFromFactory($tmp_name,$name){\n\t\treturn new static($tmp_name,$name);\n\t}", "public function CreatePublicSymLink()\n {\n $filemanager = $this->getFileManager();\n\n $fullPath = PATH_OUTBOX.'/public/'.$this->sqlData['cms_document_tree_id'].'/';\n if (!is_dir($fullPath)) {\n $filemanager->mkdir($fullPath, 0777, true);\n }\n $targetFile = $this->GetRealPath();\n\n $sSEOTargetFileName = $this->GetTargetFileName();\n if (!$this->localFileExists()) {\n // trigger error only in live mode because sometimes files are missing in the development environment\n trigger_error('Error: Download source ['.$targetFile.'] does not exist, or is not readable!', E_USER_NOTICE);\n } else {\n $filemanager->unlink($fullPath.'/'.$sSEOTargetFileName);\n if (!file_exists($fullPath.'/'.$sSEOTargetFileName)) {\n if ($filemanager->symlink($targetFile, $fullPath.'/'.$sSEOTargetFileName)) {\n $this->fileURL = URL_OUTBOX.'/public/'.$this->sqlData['cms_document_tree_id'].'/'.$sSEOTargetFileName;\n } else {\n trigger_error('Error: Unable to create SymLink ['.$targetFile.'] -> ['.$fullPath.'/'.$sSEOTargetFileName.']', E_USER_WARNING);\n }\n }\n }\n }", "public function createLink(PostURL $request)\n {\n if (pingAddress($request->input('url')) == 0) { //check security of this & prevent link loops to this site\n\n $shortener = new Links;\n $shortener->userid = Auth::user()->id;\n $shortener->linkid = substr(md5(uniqid(mt_rand(), true)), 0, 7);\n $shortener->target = $request->input('url');\n $shortener->ip = $request->ip();\n\n $shortener->save();\n\n return redirect('/manage/'.$shortener->linkid);\n } else {\n return redirect('/');//link dead\n }\n \n }", "public function link() : Link;", "public function testCreateTaskInstanceIdentityLinks()\n {\n }", "function pi_linkTP($str,$urlParameters=array(),$cache=0,$altPageId=0)\t{\n\t\t$conf=array();\n\t\t$conf['useCacheHash'] = $this->pi_USER_INT_obj ? 0 : $cache;\n\t\t$conf['no_cache'] = $this->pi_USER_INT_obj ? 0 : !$cache;\n\t\t$conf['parameter'] = $altPageId ? $altPageId : ($this->pi_tmpPageId ? $this->pi_tmpPageId : $GLOBALS['TSFE']->id);\n\t\t$conf['additionalParams'] = $this->conf['parent.']['addParams'].t3lib_div::implodeArrayForUrl('', $urlParameters, '', true).$this->pi_moreParams;\n\t\t$conf['additionalParams'] .=$this->conf['GLOBALPARAMS'];\n\n\t\treturn $this->cObj->typoLink($str, $conf);\n\t}", "public function testCreateSharedLink()\n {\n }", "function __construct()\n {\n $this->setTemporaryDirectory(sys_get_temp_dir());\n }", "public function newPortal(){\n\t\t$this->wlan_if = null;\n\t\t$this->ssid = null;\n\t\t$this->remote_file = null;\n\t\t\n\t\t$hp = HostAPDConfig::getInstance();\n\t\t\n\t\t$this->wlan_if = \"wlan\".$hp->getWlanNumber();\n\t}", "protected function createTempFile()\n {\n $tempFile = GeneralUtility::tempnam($this->tempFilePrefix);\n\n if (!$this->isRegisteredShutdownFunction) {\n register_shutdown_function([$this, 'unlinkTempFiles']);\n $this->isRegisteredShutdownFunction = true;\n }\n\n return $tempFile;\n }", "public function getLink()\n {\n $link = new WebLink($this->container);\n $link->setUrl($this->userInput);\n\n return $link;\n }", "private function createTempTable()\n\t{\n\t\t// generate a temp table name\n\t\t$this->tempTable = 'crawl_index_temp';\n\n\t\t// ensure the temp table doesnt exist\n\t\t$sql = sprintf('DROP TABLE IF EXISTS %s', $this->tempTable);\n\t\tmysql_query($sql, $this->db);\n\n\t\t// create the table and give an exclusive write lock\n\t\t$sql = sprintf('CREATE TEMPORARY TABLE %s (page_id INT(10) UNSIGNED NOT NULL) ENGINE=MEMORY', $this->tempTable);\n\t\tmysql_query($sql, $this->db);\n\t}", "function getYouTubeLink()\n {\n $youtubeLink = new Link();\n $youtubeLink->setTitle('YouTube');\n $youtubeLink->setTarget('https://www.youtube.com/channel/UCXmtnbNO7_no7RekfUIqVcw');\n $youtubeLink->setExternal(true);\n return $youtubeLink;\n }", "protected static function newFactory(): Factory\n {\n return ProductDownloadableLinkTranslationFactory::new();\n }", "public function getTestLink ()\n {\n return new \\r8\\DB\\MySQLi\\Link(\n new \\r8\\DB\\Config(\n \"db://\". MYSQLI_USERNAME .\":\". MYSQLI_PASSWORD\n .\"@\". MYSQLI_HOST .\":\". MYSQLI_PORT\n .\"/\". MYSQLI_DATABASE\n )\n );\n }", "public static function create($link)\n {\n $query = null;\n $conn = Db::connection();\n $sql = 'INSERT INTO link (passage_id, choice, destination_id) VALUES (?, ?, ?)';\n\n $query = $conn->prepare($sql);\n $query->execute(array($link->passageId, $link->choice, $link->destinationId));\n\n return $conn->lastInsertId();\n }", "public function create()\n {\n //\n return view(\"Admin.link.create\");\n }", "private function createTemporaryFileManager($mode = 'w+')\n {\n return new File($this->createTemporaryFile(), $mode);\n }", "public function getTemporaryFile()\n {\n return $this->files[] = new TemporaryFile($this);\n }", "public function link(string $target, string $link): Promise;", "abstract function &create();", "public function __construct($setPasswordLink)\n {\n $this->setPasswordLink = $setPasswordLink;\n }", "function getLink() {\n return new Hyperlink($this->getName(),\"/user/$this->id\",'userlink');\n }", "public function __construct($link)\n {\n $this->link = $link;\n }", "public function createReturnsUrlAndToken()\n {\n $expectedToken = 'cadec62c0cf4d12ff0a0a2ba77641aa8c9362eb4c9352762fc39a4d42d8658c9';\n $this->tokenMock->method('random')\n ->willReturn($expectedToken);\n\n $urlSubstring = 'omise/callback/threedsecure';\n $expectedUrl = \"http://localhost/{$urlSubstring}?token={$expectedToken}\";\n\n $this->urlMock->method('getUrl')\n ->willReturn($expectedUrl);\n\n $urlArray = $this->model->create($urlSubstring);\n\n $this->assertEquals(count($urlArray), 2);\n $this->assertArrayHasKey('token', $urlArray);\n $this->assertArrayHasKey('url', $urlArray);\n $this->assertEquals($urlArray['url'], $expectedUrl);\n $this->assertEquals($urlArray['token'], $expectedToken);\n }", "public function getTemporaryUrl(string $path, DateTimeInterface $expiration, array $options = []): string\n {\n if ($this->visibility !== self::VISIBILITY_PRIVATE) {\n throw new RuntimeException('This driver does not support creating temporary URLs because the visibility is not private. Please use regular URLs.');\n } elseif (! $this->urlKey) {\n throw new RuntimeException('This driver does not support creating temporary URLs because no temp url key has been configured.');\n }\n\n $expiration = $expiration->getTimestamp();\n $pathWithoutHost = Str::after($this->containerUrl, parse_url($this->containerUrl, PHP_URL_HOST)) . \"/{$path}\";\n $body = sprintf(\"%s\\n%s\\n%s\", 'GET', $expiration, $pathWithoutHost);\n $signature = hash_hmac('sha1', $body, $this->urlKey);\n\n return Utils::normalizeUrl($this->containerUrl)\n . \"{$path}?temp_url_sig={$signature}&temp_url_expires={$expiration}\";\n }", "function ciniki_links_linkAdd(&$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 'name'=>array('required'=>'yes', 'blank'=>'no', 'name'=>'Name'), \n 'category'=>array('required'=>'no', 'blank'=>'yes', 'default'=>'', 'name'=>'Category'), \n 'url'=>array('required'=>'no', 'blank'=>'yes', 'name'=>'URL'), \n 'description'=>array('required'=>'no', 'blank'=>'yes', 'default'=>'', 'name'=>'Description'), \n 'notes'=>array('required'=>'no', 'blank'=>'yes', 'default'=>'', 'name'=>'Notes'), \n 'categories'=>array('required'=>'no', 'blank'=>'yes', 'type'=>'list', 'delimiter'=>'::', 'name'=>'Categories'), \n 'tags'=>array('required'=>'no', 'blank'=>'yes', 'type'=>'list', 'delimiter'=>'::', 'name'=>'Tags'), \n ));\n if( $rc['stat'] != 'ok' ) {\n return $rc;\n }\n $args = $rc['args'];\n \n //\n // Check access to tnid as owner\n //\n ciniki_core_loadMethod($ciniki, 'ciniki', 'links', 'private', 'checkAccess');\n $rc = ciniki_links_checkAccess($ciniki, $args['tnid'], 'ciniki.links.linkAdd');\n if( $rc['stat'] != 'ok' ) {\n return $rc;\n }\n $modules = $rc['modules'];\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 ciniki_core_loadMethod($ciniki, 'ciniki', 'core', 'private', 'dbInsert');\n $rc = ciniki_core_dbTransactionStart($ciniki, 'ciniki.links');\n if( $rc['stat'] != 'ok' ) { \n return $rc;\n } \n\n //\n // Add the object\n //\n ciniki_core_loadMethod($ciniki, 'ciniki', 'core', 'private', 'objectAdd');\n $rc = ciniki_core_objectAdd($ciniki, $args['tnid'], 'ciniki.links.link', $args, 0x04);\n if( $rc['stat'] != 'ok' ) {\n return $rc;\n }\n $link_id = $rc['id'];\n\n //\n // Add the categories if enabled and specified\n //\n if( ($modules['ciniki.links']['flags']&0x01) > 0 && isset($args['categories']) ) {\n ciniki_core_loadMethod($ciniki, 'ciniki', 'core', 'private', 'tagsUpdate');\n $rc = ciniki_core_tagsUpdate($ciniki, 'ciniki.links', 'tag', $args['tnid'],\n 'ciniki_link_tags', 'ciniki_link_history',\n 'link_id', $link_id, 10, $args['categories']);\n if( $rc['stat'] != 'ok' ) {\n ciniki_core_dbTransactionRollback($ciniki, 'ciniki.links');\n return $rc;\n }\n }\n\n //\n // Add the tags if enabled and specified\n //\n if( ($modules['ciniki.links']['flags']&0x02) > 0 && isset($args['tags']) ) {\n ciniki_core_loadMethod($ciniki, 'ciniki', 'core', 'private', 'tagsUpdate');\n $rc = ciniki_core_tagsUpdate($ciniki, 'ciniki.links', 'tag', $args['tnid'],\n 'ciniki_link_tags', 'ciniki_link_history',\n 'link_id', $link_id, 40, $args['tags']);\n if( $rc['stat'] != 'ok' ) {\n ciniki_core_dbTransactionRollback($ciniki, 'ciniki.links');\n return $rc;\n }\n }\n\n //\n // Commit the database changes\n //\n $rc = ciniki_core_dbTransactionCommit($ciniki, 'ciniki.links');\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', 'links');\n\n $ciniki['syncqueue'][] = array('push'=>'ciniki.links.link',\n 'args'=>array('id'=>$link_id));\n\n return array('stat'=>'ok', 'id'=>$link_id);\n}", "public function __construct($link)\n {\n //\n $this->link = $link;\n $this->sender = auth()->user()->name;\n }", "private function getBaseMockLink()\n {\n return $this->getMock('Mremi\\UrlShortener\\Model\\LinkInterface');\n }", "public function testCreateLinkShouldReturnNativeLink( ) {\n $db = $this->_createDb($this->_cut->createLink());\n }", "public function create( $url );", "public function link();", "function copy() {\r\n\t\t\t$cloneLink = new LinkNode($this->getDOMDocument());\r\n\t\t\t$cloneLink->setAttribute('href',$this->getAttribute('href'));\r\n\t\t\t$cloneLink->setAttribute('target',$this->getAttribute('target'));\r\n\t\t\t\r\n\t\t\treturn $cloneLink;\r\n\t\t}", "public function __construct(TempPassword $tempPassword)\n {\n $this->tempPassword = $tempPassword;\n }", "function CreateTemporaryTable($tableName, $tableDefinition)\n{\n $stmt = SQL_CREATE_TEMPORARY_TABLE . \" $tableName ($tableDefinition);\";\n return mysql_query($stmt);\n}", "public static function link($wrappedObj)\r\n {\r\n return new self($wrappedObj, false);\r\n }", "protected function createLink($args = array(), $text)\n {\n return $this->html()->createLink($this->url()->baseUrl(), $args, $text);\n }", "public function typoLink($linkText, $conf)\n {\n $linkText = (string)$linkText;\n $tsfe = $this->getTypoScriptFrontendController();\n\n $linkParameter = trim(isset($conf['parameter.']) ? $this->stdWrap($conf['parameter'], $conf['parameter.']) : $conf['parameter']);\n $this->lastTypoLinkUrl = '';\n $this->lastTypoLinkTarget = '';\n\n $resolvedLinkParameters = $this->resolveMixedLinkParameter($linkText, $linkParameter, $conf);\n // check if the link handler hook has resolved the link completely already\n if (!is_array($resolvedLinkParameters)) {\n return $resolvedLinkParameters;\n }\n $linkParameter = $resolvedLinkParameters['href'];\n $target = $resolvedLinkParameters['target'];\n $title = $resolvedLinkParameters['title'];\n\n if (!$linkParameter) {\n return $linkText;\n }\n\n // Detecting kind of link and resolve all necessary parameters\n $linkService = GeneralUtility::makeInstance(LinkService::class);\n try {\n $linkDetails = $linkService->resolve($linkParameter);\n } catch (Exception\\InvalidPathException $exception) {\n $logger = GeneralUtility::makeInstance(LogManager::class)->getLogger(__CLASS__);\n $logger->warning('The link could not be generated', ['exception' => $exception]);\n\n return $linkText;\n }\n\n $linkDetails['typoLinkParameter'] = $linkParameter;\n if (isset($linkDetails['type']) && isset($GLOBALS['TYPO3_CONF_VARS']['FE']['typolinkBuilder'][$linkDetails['type']])) {\n /** @var AbstractTypolinkBuilder $linkBuilder */\n $linkBuilder = GeneralUtility::makeInstance(\n $GLOBALS['TYPO3_CONF_VARS']['FE']['typolinkBuilder'][$linkDetails['type']],\n $this\n );\n try {\n list($this->lastTypoLinkUrl, $linkText, $target) = $linkBuilder->build($linkDetails, $linkText, $target, $conf);\n } catch (UnableToLinkException $e) {\n /** @var \\TYPO3\\CMS\\Core\\Log\\Logger $logger */\n $logger = GeneralUtility::makeInstance(LogManager::class)->getLogger(__CLASS__);\n $logger->debug(sprintf('Unable to link \"%s\": %s', $e->getLinkText(), $e->getMessage()), ['exception' => $e]);\n\n // Only return the link text directly\n return $e->getLinkText();\n }\n } elseif (isset($linkDetails['url'])) {\n $this->lastTypoLinkUrl = $linkDetails['url'];\n } else {\n return $linkText;\n }\n\n $finalTagParts = [\n 'aTagParams' => $this->getATagParams($conf) . $this->extLinkATagParams($this->lastTypoLinkUrl, $linkDetails['type']),\n 'url' => $this->lastTypoLinkUrl,\n 'TYPE' => $linkDetails['type']\n ];\n\n // Ensure \"href\" is not in the list of aTagParams to avoid double tags, usually happens within buggy parseFunc settings\n if (!empty($finalTagParts['aTagParams'])) {\n $aTagParams = GeneralUtility::get_tag_attributes($finalTagParts['aTagParams']);\n if (isset($aTagParams['href'])) {\n unset($aTagParams['href']);\n $finalTagParts['aTagParams'] = GeneralUtility::implodeAttributes($aTagParams);\n }\n }\n\n // Building the final <a href=\"..\"> tag\n $tagAttributes = [];\n\n // Title attribute\n if (empty($title)) {\n $title = $conf['title'];\n if ($conf['title.']) {\n $title = $this->stdWrap($title, $conf['title.']);\n }\n }\n\n // Check, if the target is coded as a JS open window link:\n $JSwindowParts = [];\n $JSwindowParams = '';\n if ($target && preg_match('/^([0-9]+)x([0-9]+)(:(.*)|.*)$/', $target, $JSwindowParts)) {\n // Take all pre-configured and inserted parameters and compile parameter list, including width+height:\n $JSwindow_tempParamsArr = GeneralUtility::trimExplode(',', strtolower($conf['JSwindow_params'] . ',' . $JSwindowParts[4]), true);\n $JSwindow_paramsArr = [];\n foreach ($JSwindow_tempParamsArr as $JSv) {\n list($JSp, $JSv) = explode('=', $JSv, 2);\n $JSwindow_paramsArr[$JSp] = $JSp . '=' . $JSv;\n }\n // Add width/height:\n $JSwindow_paramsArr['width'] = 'width=' . $JSwindowParts[1];\n $JSwindow_paramsArr['height'] = 'height=' . $JSwindowParts[2];\n // Imploding into string:\n $JSwindowParams = implode(',', $JSwindow_paramsArr);\n }\n if (!$JSwindowParams && $linkDetails['type'] === LinkService::TYPE_EMAIL && $tsfe->spamProtectEmailAddresses === 'ascii') {\n $tagAttributes['href'] = $finalTagParts['url'];\n } else {\n $tagAttributes['href'] = htmlspecialchars($finalTagParts['url']);\n }\n if (!empty($title)) {\n $tagAttributes['title'] = htmlspecialchars($title);\n }\n\n // Target attribute\n if (!empty($target)) {\n $tagAttributes['target'] = htmlspecialchars($target);\n } elseif ($JSwindowParams && !in_array($tsfe->xhtmlDoctype, ['xhtml_strict', 'xhtml_11'], true)) {\n // Create TARGET-attribute only if the right doctype is used\n $tagAttributes['target'] = 'FEopenLink';\n }\n\n if ($JSwindowParams) {\n $onClick = 'vHWin=window.open(' . GeneralUtility::quoteJSvalue($tsfe->baseUrlWrap($finalTagParts['url'])) . ',\\'FEopenLink\\',' . GeneralUtility::quoteJSvalue($JSwindowParams) . ');vHWin.focus();return false;';\n $tagAttributes['onclick'] = htmlspecialchars($onClick);\n }\n\n if (!empty($resolvedLinkParameters['class'])) {\n $tagAttributes['class'] = htmlspecialchars($resolvedLinkParameters['class']);\n }\n\n // Prevent trouble with double and missing spaces between attributes and merge params before implode\n $finalTagAttributes = array_merge($tagAttributes, GeneralUtility::get_tag_attributes($finalTagParts['aTagParams']));\n $finalAnchorTag = '<a ' . GeneralUtility::implodeAttributes($finalTagAttributes) . '>';\n\n if (!empty($finalTagParts['aTagParams'])) {\n $tagAttributes = array_merge($tagAttributes, GeneralUtility::get_tag_attributes($finalTagParts['aTagParams']));\n }\n // kept for backwards-compatibility in hooks\n $finalTagParts['targetParams'] = !empty($tagAttributes['target']) ? ' target=\"' . $tagAttributes['target'] . '\"' : '';\n $this->lastTypoLinkTarget = $target;\n\n // Call user function:\n if ($conf['userFunc']) {\n $finalTagParts['TAG'] = $finalAnchorTag;\n $finalAnchorTag = $this->callUserFunction($conf['userFunc'], $conf['userFunc.'], $finalTagParts);\n }\n\n // Hook: Call post processing function for link rendering:\n if (isset($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_content.php']['typoLink_PostProc']) && is_array($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_content.php']['typoLink_PostProc'])) {\n $_params = [\n 'conf' => &$conf,\n 'linktxt' => &$linkText,\n 'finalTag' => &$finalAnchorTag,\n 'finalTagParts' => &$finalTagParts,\n 'linkDetails' => &$linkDetails,\n 'tagAttributes' => &$tagAttributes\n ];\n foreach ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_content.php']['typoLink_PostProc'] as $_funcRef) {\n GeneralUtility::callUserFunction($_funcRef, $_params, $this);\n }\n }\n\n // If flag \"returnLastTypoLinkUrl\" set, then just return the latest URL made:\n if ($conf['returnLast']) {\n switch ($conf['returnLast']) {\n case 'url':\n return $this->lastTypoLinkUrl;\n break;\n case 'target':\n return $this->lastTypoLinkTarget;\n break;\n }\n }\n\n $wrap = isset($conf['wrap.']) ? $this->stdWrap($conf['wrap'], $conf['wrap.']) : $conf['wrap'];\n\n if ($conf['ATagBeforeWrap']) {\n return $finalAnchorTag . $this->wrap($linkText, $wrap) . '</a>';\n }\n return $this->wrap($finalAnchorTag . $linkText . '</a>', $wrap);\n }", "public function create($urlact, $url);", "public function makeLinkButton() {}", "public static function temp(): Directory\n {\n $resource = tmpfile();\n $path = stream_get_meta_data($resource)['uri'];\n\n return new static(dirname($path));\n }", "protected function createSymlink()\n {\n if (!File::exists(public_path('theme'))) {\n $folder = $this->active()->get('namespace');\n\n if (File::exists(theme_path(\"{$folder}/public\"))) {\n // Delete existing symlink if present\n File::delete(public_path('theme'));\n\n // Create new theme symlink\n File::link(\n theme_path(\"{$folder}/public\"),\n public_path('theme')\n );\n }\n }\n }", "public function create()\n {\n return view(\"/backend/link/create\");\n }", "public function create()\n {\n $link = new Link();\n\n return view('link.create', compact('link'));\n }", "protected function createLink($output)\n {\n $link = new Process(sprintf('ln -f %s %s', $this->toFile, $this->link));\n $link->run();\n if ($link->isSuccessful()) {\n $output->writeln(sprintf('<info>Link %s created succesfully</info>', $this->link));\n return true;\n }\n $this->failingProcess = $link;\n return false;\n }", "public function test_can_shorten_a_link()\n {\n $formData = [\n 'link' => 'http://testdomain.com',\n ];\n\n $this->post(route('shortlink.create'), $formData)->assertStatus(200);\n }", "public function create()\n {\n return view('backend.link.create');\n }", "public function createUserLink($request)\n {\n return $this->start()->uri(\"/api/identity-provider/link\")\n ->bodyHandler(new JSONBodyHandler($request))\n ->post()\n ->go();\n }", "public function create( &$object );", "public function create(CreateLinkRequest $request): RedirectResponse\n {\n $link = $this->links->create($request->input('location'));\n\n return redirect()->route('links.meta', $link->key);\n }", "private function setTempFile() {\n $this->filename = tempnam('/tmp/', 'siwiki_relplot_');\n $this->fileresource = fopen($this->filename, 'a+');\n }", "function _create_tmp_table()\n {\n //$this->tmp_search_table = (string)'_'.$GLOBALS['B']->util->unique_crc32();\n $this->tmp_search_table = \"earchvetmp\";\n $sql = \"CREATE TEMPORARY TABLE {$this->tmp_search_table} (mid INT NOT NULL default 0)\";\n \n $result = $GLOBALS['B']->db->query($sql);\n \n if (DB::isError($result)) \n {\n trigger_error($result->getMessage().\"\\n\\nSQL: \".$sql.\"\\n\\nFILE: \".__FILE__.\"\\nLINE: \".__LINE__, E_USER_ERROR);\n return FALSE;\n }\n }", "public function created(Link $link)\n {\n $link->slug = Generate::slug($link->id);\n $link->name = $link->name ?? $link->slug;\n $link->domain = $link->domain ?? env('DEFAULT_SHORT_DOMAIN', 'ur.bn');\n $link->link_type_id = $link->link_type_id ?? 10;\n $link->save();\n }", "public function withContext($context) {\n return new static($this->links, $context);\n }", "public function createTempAd() {\n\n\t\ttry {\n\n\t\t\t$connectContent = ConnectContent::create([\n\t\t\t\t'station_id' \t\t=> \\Auth::User()->station->id,\n\t\t\t\t'content_type_id'\t=> ContentType::findContentTypeIDByName('Ad'),\n\t\t\t\t'connect_user_id'\t=> \\Auth::User()->id,\n\t\t\t\t'is_temp' \t\t\t=> 1\n\t\t\t]);\n\n\t\t\treturn response()->json(array('code' => 0, 'msg' => 'Success', 'data' => array('id' => $connectContent->id, 'ad_rec_type' => '')));\n\n\t\t} catch (\\Exception $ex) {\n\t\t\t\\Log::error($ex);\n\t\t\treturn response()->json(array('code' => -1, 'msg' => $ex->getMessage()));\n\t\t}\n\n\t}", "public function ConvertTemporaryPassword()\n\t{\n\t\tif ( ($this->TempPassword) && ($this->TempPasswordSalt) )\n\t\t{\n\t\t\t$this->Password = $this->TempPassword;\n\t\t\t$this->PasswordSalt = $this->TempPasswordSalt;\n\t\t\t$this->TempPassword = null;\n\t\t\t$this->TempPasswordSalt = null;\n\t\t\t$this->write();\n\t\t}\n\t\treturn $this;\n\t}", "function page_link_to_tempcode_url($page_link)\n{\n list($zone, $map, $hash) = page_link_decode($page_link);\n return build_url($map, $zone, array(), false, false, false, $hash);\n}", "protected function _makeLink($name, $httpVar, $column, $urlParams, $route, $reset, $encode)\n {\n $link = new FaZend_StdObject();\n $link->httpVar = $httpVar;\n $link->urlParams = $urlParams;\n $link->column = $column;\n $link->route = $route;\n $link->name = $name;\n $link->reset = $reset;\n $link->encode = $encode;\n return $link;\n }", "public function creating(Plan $plan)//troquei o created por creating\n {\n $plan->url = Str::kebab($plan->name);\n }", "public function __construct(){\n\t\t\t$this->genLink();\n\t\t}", "public function create()\n {\n $websites = Website::all();\n $link = new Link();\n\n return view('dashboard.link.create')->withWebsites($websites)->withLink($link);\n }", "public function createSession($reference);", "function create()\n\t{\n\t\tglobal $ilDB;\n\t\t\n\t\t$this->setId($ilDB->nextId(\"bookmark_data\"));\n\t\t$q = sprintf(\n\t\t\t\t\"INSERT INTO bookmark_data (obj_id, user_id, title,description, target, type) \".\n\t\t\t\t\"VALUES (%s,%s,%s,%s,%s,%s)\",\n\t\t\t\t$ilDB->quote($this->getId(), \"integer\"),\n\t\t\t\t$ilDB->quote($_SESSION[\"AccountId\"], \"integer\"),\n\t\t\t\t$ilDB->quote($this->getTitle(), \"text\"),\n\t\t\t\t$ilDB->quote($this->getDescription(), \"text\"),\n\t\t\t\t$ilDB->quote($this->getTarget(), \"text\"),\n\t\t\t\t$ilDB->quote('bm', \"text\")\n\t\t\t);\n\n\t\t$ilDB->manipulate($q);\n\t\t$this->tree->insertNode($this->getId(), $this->getParent());\n\t}", "public static function create() {}", "public static function create() {}", "public static function create() {}", "public static function Create( $source, $dest, $creator = 0 ) { \n\t\n\t\tif( $source === $dest ) {\n\t\t\tthrow new InvalidArgumentException( \n\t\t\t\t\"Link cannot point to itself.\" );\n\t\t}\n\t\t\n\t\t$ordered1 = $source;\n\t\t$ordered2 = $dest;\n\t\tThought::Order( $ordered1, $ordered2 );\n\t\t\n\t\t$time = time();\n\t\t$db = \\SQLW::Get();\n\t\t\n\t\t$db->RunQuery( 'START TRANSACTION' );\n\t\t\n\t\t// try to insert, quit on duplicate.\n\t\ttry {\n\t\t\t$db->RunQuery(\n\t\t\t\t\"INSERT INTO Links (thought1, thought2, time, creator )\n\t\t\t\tVALUES ( $ordered1->id, $ordered2->id, $time, $creator )\" );\n\t\t} catch( \\SQLException $e ) {\n\t\t\tif( $e->code == 2601 ) { // 2601: duplicate key.\n\t\t\t\t$db->RunQuery( 'ROLLBACK' );\n\t\t\t\treturn FALSE;\n\t\t\t}\n\t\t\tthrow $e;\n\t\t}\n\t\t\n\t\t$insert_id = $db->insert_id;\n\t\t\n\t\t$vote = $creator == 0 ? null : TRUE;\n\t\t\n\t\t// add an upvote.\n\t\tif( !self::Vote( $source, $dest, $creator, true ) ) {\n\t\t\t$vote = null;\n\t\t}\n\t\t\t\n\t\tif( $creator != 0 ) {\n\n\t\t\t\n\t\t\tUser::AddLinkStat( $creator, 0 );\n\t\t} else {\n\t\t\t$mip = User::GetMip();\n\t\t\t$aid = User::GetAid();\n\t\t\t$db->RunQuery( \"\n\t\t\t\tINSERT INTO AnonymousLinks ( link, mip, aid, time)\n\t\t\t\tVALUES ( $insert_id, $mip, $aid, $time )\" );\n\t\t}\n\t\t\n\t\tStats::Increment( 'TLINKS' );\n\t\t\n\t\t$db->RunQuery( 'COMMIT' );\n\t\t\n\t\tif( $creator == User::AccountID() ) {\t\n\t\t\t$username = User::GetUsername();\n\t\t\tif( $username === FALSE ) $username = \"Unknown\";\n\t\t} else {\n\t\t\t$username = \"Unknown\";\n\t\t}\n\t\tLogger::Info( Logger::FormatUser( $username, $creator ) . \" created a new link: \\\"$source->phrase\\\" -> \\\"$dest->phrase\\\"\" );\n\t\t\n\t\t$link = new self( $insert_id, $source, $dest, \n\t\t\t\t\t\t $time, $creator, $vote === TRUE ? 1:0, 0, \n\t\t\t\t\t\t $vote );\n\t\t$link->created = true;\n\t\t\n\t\treturn $link;\n\t}", "public function create(){}", "public static function to($record) {\n return new Link($record);\n }", "public function createReferralLink() : string\n {\n $url = $this->storeManager->getStore()->getBaseUrl(UrlInterface::URL_TYPE_WEB);\n $encrypt = urlencode($this->encryptor->encrypt($this->customerSession->getCustomerId()));\n $link = $url . \"?ref=\" . $encrypt;\n return $link;\n }", "public function createNew();", "public function makelink()\n {\n /*\n * If link set directly that forces using it rather than build\n */\n if ($this->link) {\n return $this->link;\n }\n\n $pageid = static::makeParameterId($this->for);\n $parameters = $this->app['request']->query->all();\n if (array_key_exists($pageid, $parameters)) {\n unset($parameters[$pageid]);\n } else {\n unset($parameters['page']);\n }\n\n $parameters[$pageid] = '';\n $link = '?' . http_build_query($parameters);\n\n return $link;\n }", "public function set_temporary_credentials() {\n $connection = new TwitterOAuth($this->_config['consumer_key'], $this->_config['consumer_secret']);\n $temporary_credentials = $connection->getRequestToken();\n\n $this->_ci->session->set_userdata( 'oauth_token', $temporary_credentials['oauth_token'] );\n $this->_ci->session->set_userdata( 'oauth_token_secret', $temporary_credentials['oauth_token_secret'] );\n\n $redirect_url = $connection->getAuthorizeURL($temporary_credentials);\n return $redirect_url;\n }", "protected function makeUploadedFileByUrl() {\n $content = @file_get_contents($this->resource);\n $temp_name = basename($this->resource);\n $this->storage->put($temp_name, $content);\n return (new UploadedFile($this->storage->path($temp_name), $temp_name));\n }", "public function temp()\n\t\t{\n\t\t\tif ($this->is_cached()) {\n\t\t\t\tself::put($this->get_path_temp(), $this->get_content());\n\t\t\t} else {\n\t\t\t\tif ($this->exists()) {\n\t\t\t\t\t$this->copy($this->get_path_temp());\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$this->update_attrs(array(\n\t\t\t\t\"name\" => basename($this->get_path_temp()),\n\t\t\t\t\"path\" => dirname($this->get_path_temp()),\n\t\t\t\t\"temp\" => true,\n\t\t\t));\n\n\t\t\treturn $this;\n\t\t}", "public static function construct($host, $login, $password, $database)\n\t{\n\t\treturn new Link([\n\t\t\tself::DATABASE => $database,\n\t\t\tself::HOST => $host,\n\t\t\tself::LOGIN => $login,\n\t\t\tself::PASSWORD => $password\n\t\t]);\n\t}", "abstract function create();", "function create_external_item_instance($external_item_intance)\r\n {\r\n return $this->create($external_item_intance);\r\n }", "public static function create ($action) {\n return new ActionLink (static::decode($action));\n }", "function alink ( $arguments = \"\" ) {\n $arguments = func_get_args();\n $rc = new ReflectionClass('talink');\n return $rc->newInstanceArgs( $arguments ); \n}", "public function create($as)\n {\n return new Simple($as, $this->config, $this->session);\n }", "public function create()\n {\n //加载添加友情链接\n \n return view(\"admin.link.create\");\n }", "public function create();", "public function create();", "public function create();", "public function create();" ]
[ "0.64637285", "0.641659", "0.6337571", "0.5409421", "0.5375488", "0.52170885", "0.51896423", "0.5139554", "0.50946635", "0.5088565", "0.5061181", "0.4980492", "0.49618897", "0.49468172", "0.49437347", "0.49365172", "0.490503", "0.48845977", "0.48819828", "0.48479173", "0.4843471", "0.48434132", "0.48386815", "0.48209858", "0.48144788", "0.48028725", "0.48002097", "0.4786492", "0.4779517", "0.47723237", "0.47420612", "0.47388288", "0.47381106", "0.47379404", "0.47361293", "0.4723031", "0.4711479", "0.47069037", "0.46998984", "0.46969238", "0.46953365", "0.46924257", "0.46793798", "0.467445", "0.4669524", "0.46585232", "0.46553445", "0.46518168", "0.46514747", "0.46512797", "0.46511194", "0.46505874", "0.46355614", "0.4634949", "0.4628453", "0.46135265", "0.461213", "0.45946577", "0.45907366", "0.45883438", "0.45825565", "0.45825338", "0.45810112", "0.45715377", "0.45679313", "0.45667836", "0.45645496", "0.45570537", "0.45565608", "0.455554", "0.45522517", "0.45515174", "0.45472905", "0.45406443", "0.45301455", "0.45273212", "0.45220065", "0.45139292", "0.4499045", "0.4499045", "0.4499045", "0.4498861", "0.44894764", "0.44818044", "0.4481795", "0.44711384", "0.44690835", "0.44685283", "0.44684744", "0.44551387", "0.4454589", "0.4446018", "0.4441404", "0.4440259", "0.44376862", "0.44362646", "0.44263244", "0.44258285", "0.44258285", "0.44258285", "0.44258285" ]
0.0
-1
The metadata for the file
public function getMetadata() { return $this->metadata; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getFileMetadata()\n {\n return $this->get('FileMetadata');\n }", "private function getMetaData ()\n\t\t{\n\t\t\t$data = file_get_contents (\"META.inf\");\n\t\t\t$o = json_decode ($data,true);\n\t\t\treturn $o;\t\n\t\t}", "abstract public function getFileMetadata(FileData $fileData);", "public function getMetaData();", "public function getMetaData() {\n\t\treturn stream_get_meta_data($this->handle);\n\t}", "protected function getMetaData()\n {\n return stream_get_meta_data($this->stream);\n }", "public function getMetaData()\n {\n return stream_get_meta_data($this->_stream_handle);\n }", "public function getMetaData()\n {\n return [\n 'type' => $this->type,\n 'mimetype' => $this->mimetype,\n 'size' => $this->size,\n 'width' => $this->width,\n 'height' => $this->height\n ];\n }", "protected function loadMetaInformation()\n {\n try {\n $logger = new Logger('exiftool');\n $reader = BookReader::create($logger);\n $metadataBag = $reader->files($this->file->getRealPath())->first();\n foreach ($metadataBag as $meta) {\n $tagName = $meta->getTag()->getName();\n if (0 === strcasecmp($tagName, 'MIMEType')) {\n $this->mime = $meta->getValue()->asString();\n }\n if (0 === strcasecmp($tagName, 'FileType')) {\n $this->ext = strtolower($meta->getValue()->asString());\n }\n if ($this->ext && $this->mime) {\n break;\n }\n }\n } catch (\\Exception $e) {\n $logger->addNotice($e->getMessage());\n }\n finally {\n $this->mime = empty($this->mime) ? $this->file->getMimeType() : $this->mime;\n $this->ext = empty($this->ext) ? $this->file->guessExtension(): $this->ext;\n }\n }", "public function getMetaData()\n {\n return $this->metadata;\n }", "public function getMetadata() {}", "public function getMetadata() {}", "public function get_metadata() {\n return $this->metadata;\n }", "public function getMetadata();", "public function getMetadata();", "public function getMetadata();", "public function getMetaData() {\n\t\treturn $this->arrMetadata;\n\t}", "public function getMetadata()\n {\n $this->getFtpMetadata();\n\n parent::getMetadata();\n\n /**\n * Discovery creates an array of Files and Directories based on Path\n */\n if ($this->exists === true) {\n $this->discovery($this->path);\n }\n\n $this->getSize();\n\n return;\n }", "public function fileInfo() {\n $this->file = file_load($this->fid);\n\n // Creating an array of stream wrappers that will be removed.\n $streams = array();\n foreach (stream_get_wrappers() as $stream) {\n $streams[] = $stream . '://';\n }\n\n // Generate the folder name by the unique URI of the file.\n $file_name = str_replace($streams, '', $this->file->uri);\n $folder_name = str_replace(array('.', '_'), '-', $file_name);\n\n $files_folder = variable_get('file_public_path', conf_path() . '/files');\n\n $this->filePath = $files_folder . '/' . $file_name;\n $this->extractPath = $files_folder . '/' . $folder_name;\n }", "public function getMetadata()\n {\n return $this->_metadata;\n }", "function getMetadata() {\n\t\treturn $this->_Metadata;\n\t}", "public function getMetaData()\r\n {\r\n $this->caseClosedOrFail();\r\n\r\n return $this->metadata;\r\n }", "public function metadata() : array;", "public function metadata()\r\n\t{\r\n return array(\"nit\" => array(),\r\n \"nombre\" => array(),\r\n \"telefono\" => array(),\r\n \"direccion\" => array(),\r\n \"correo\" => array());\r\n }", "private function getMetadataForFile(FileModel $file)\n {\n return [\n 'type' => 'file',\n 'path' => $file->location,\n 'timestamp' => $file->updated_at->timestamp,\n 'size' => mb_strlen($file->content),\n ];\n }", "function extractMetadata($filedata) {\r\n\t\treturn array(\r\n\t\t\t'filename' => $this->filename($filedata),\r\n\t\t\t'filesize' => $this->filesize($filedata),\r\n\t\t\t'ext' => $this->ext($filedata),\r\n\t\t\t'mimetype' => $this->mimetype($filedata),\r\n\t\t);\r\n\t}", "public function getMetadata()\n {\n return $this->Metadata;\n }", "public function info()\n {\n if (!$this->info) {\n $this->info = pathinfo($this->path);\n }\n if (!isset($this->info['filename'])) {\n $this->info['filename'] = $this->name();\n }\n if (!isset($this->info['filesize'])) {\n $this->info['filesize'] = $this->size();\n }\n if (!isset($this->info['mime'])) {\n $this->info['mime'] = $this->mime();\n }\n\n return $this->info;\n }", "public function getFileInfo()\n {\n return $this->_info;\n }", "function file_id3_metadata(array $options = array(), $file = null)\n{\n if (!$file) {\n $file = get_current_record('file');\n }\n return get_view()->fileId3Metadata($file, $options);\n}", "protected function getMetadata()\n {\n // object not working must use array\n $metadata['platform'] = \"Magento 1\";\n $metadata['version'] = Mage::getVersion();\n return $metadata;\n }", "public function getMetaData(): array {\n\t\treturn $this->content['metadata'] ?? [];\n\t}", "public function getMetaInfo() {\n return $this->meta;\n }", "public function getMetaData(): array\n {\n if (!$this->GPXFile instanceof GpxFile || !$this->GPXFile->metadata) {\n return [];\n }\n\n return $this->GPXFile->metadata->toArray();\n }", "public function metadata()\n\t{\n\t\treturn array(\"id\" => array(), \"dia\" => array(), \"hora\" => array(), \"empleado\" => array()); \n\t}", "function wp_read_image_metadata($file)\n {\n }", "public function getMetadata(): array;", "public function getFileInfo()\n\t{\n\t\treturn $this->data;\n\t}", "public function extensionMeta()\n {\n return $this->getConfigFromFile();\n }", "public function getMetadata()\n {\n if (isset($this->raw->metadata)) {\n if (is_object($this->raw->metadata)) {\n return (array) $this->raw->metadata;\n }\n\n return $this->raw->metadata;\n }\n\n return null;\n }", "public function getMetaData(): object\n\t{\n\t\treturn $this->metaData;\n\t}", "public function getPackageMetaData() {}", "function createMetaData()\n\t{\n\t\tparent::createMetaData();\n\t\t$this->saveAuthorToMetadata();\n\t}", "public function getMetaData($fileMeta)\n {\n return ($this->addmeta)\n ? sprintf(\"---\\ntitle: %s\\npermalink: /%s/\\n---\\n\\n\", $fileMeta['title'], $fileMeta['url'])\n : '';\n }", "private function get_file_element_meta($file_content)\n {\n $meta = array();\n $comments = FileHelper::get_file_doc_comments($file_content);\n\n foreach ($comments as $comment)\n {\n $comment_lines = explode(\"\\n\", $comment);\n\n foreach($comment_lines as $comment_line)\n {\n if (preg_match('/@Description (.*)/', $comment_line, $match))\n {\n $meta['description'] = trim($match[1]);\n }\n if (preg_match('/@Icon (.*)/', $comment_line, $match))\n {\n $meta['icon'] = trim($match[1]);\n }\n }\n }\n\n return $meta;\n }", "abstract public function getCorrespondingMetaData();", "public static function metadata()\n {\n return Metadata::get(get_called_class());\n }", "public static function createItemMetaForFile($filename) {\n\t\t$exifData = t3lib_div::makeInstance('Tx_Yag_Domain_Import_MetaData_ExifParser')->parseExifData($filename);\n\t\t$iptcData = t3lib_div::makeInstance('Tx_Yag_Domain_Import_MetaData_IptcParser')->parseIptcData($filename);\n\t\t$xmpData = Tx_Yag_Domain_Import_MetaData_XmpParser::parseXmpData($filename);\n\t\t\n\t\t$itemMeta = new Tx_Yag_Domain_Model_ItemMeta();\n\t\t\n\t\t$itemMeta->setExif(serialize($exifData));\n\t\t$itemMeta->setIptc(serialize($iptcData));\n\t\t$itemMeta->setXmp($xmpData);\n\t\t\n\t\t$itemMeta->setAperture($exifData['ApertureValue']);\n\t\t$itemMeta->setArtist($iptcData[\"2#080\"][0]);\n\n\t\t$itemMeta->setArtistMail(self::getXmpValueByKey($xmpData, 'Iptc4xmpCore\\:CiEmailWork'));\n\t\t$itemMeta->setArtistWebsite(self::getXmpValueByKey($xmpData, 'Iptc4xmpCore\\:CiEmailWork')); \n\t\t$itemMeta->setCameraModel($exifData['Make'] . ' - ' . $exifData['Model']);\n\t\t$itemMeta->setCopyright($iptcData[\"2#116\"][0]);\n\t\t$itemMeta->setDescription($exifData['ImageDescription']);\n\t\t$itemMeta->setFlash($exifData['Flash']);\n\t\t$itemMeta->setFocalLength($exifData['FocalLength']);\n\n\t\t$itemMeta->setCaptureDate(new DateTime('@' . $exifData['CaptureTimeStamp']));\n\n\t\t//$itemMeta->setGpsLatitude(); // not available yet\n\t\t//$itemMeta->setGpsLongitude(); // not available yet\n\t\t$itemMeta->setIso($exifData['ISOSpeedRatings']); \n\t\tif(is_array($iptcData['2#025'])) $itemMeta->setKeywords(implode(',', $iptcData['2#025']));\n\t\t$itemMeta->setLens(self::getXmpValueByKey($xmpData, 'aux\\:Lens'));\n\n\t\t$itemMeta->setShutterSpeed($exifData['ShutterSpeedValue']);\n\t\t\n\t\treturn $itemMeta;\n\t}", "public function getFileInfo();", "function createFilesMetaData($file)\n\t{\n\t $filetype = '';\n\t $format = self::isKnownMimeType($file, $filetype);\n\t $transferServer = new BizTransferServer();\n\t $files = array();\n\t \n\t $attachment = new Attachment();\n\t $attachment->Rendition = 'native';\n\t $attachment->Type = $format; // mime file type, for this demo assumed to always be jpg\n\t $transferServer->copyToFileTransferServer($file, $attachment);\n\t $files[] = $attachment;\n\t \n\t return $files;\n\t}", "public function getFileMetadata(string $uri): array;", "public function getSyncMetadata() {}", "public function getGenericMetadata()\n {\n return $this->generic_metadata;\n }", "protected function _getMetadata()\n {\n if (!count($this->_metadata)) {\n $cachedData = false;\n $cacheMetadata = $this->_getCache('cacheMetadata');\n $cacheFile = null;\n\n if ($cacheMetadata !== false) {\n $cacheFile = md5(\"DESCRIBE \" . $this->_prefix . $this->_name);\n }\n\n if ($cacheMetadata !== false) {\n if (($data = $this->_cache->read($cacheFile)) !== false) {\n $this->_metadata = $data;\n $cachedData = true;\n }\n }\n\n if ($cachedData === false) {\n $this->_metadata = $this->_adapter->describeTable($this->_prefix . $this->_name);\n\n if ($cacheMetadata !== false) {\n $this->_cache->write($cacheFile, $this->_metadata);\n }\n }\n }\n\n return $this->_metadata;\n }", "function read_video_metadata( $file ) {\n if ( ! file_exists( $file ) ) {\n return false;\n }\n\n $metadata = array();\n\n if ( ! class_exists( 'getID3', false ) ) {\n require( app_path('ID3/getid3.php') );\n }\n\n $id3 = new getID3();\n $data = $id3->analyze( $file );\n\n if ( isset( $data['video']['lossless'] ) ) {\n $metadata['lossless'] = $data['video']['lossless'];\n }\n\n if ( ! empty( $data['video']['bitrate'] ) ) {\n $metadata['bitrate'] = (int) $data['video']['bitrate'];\n }\n\n if ( ! empty( $data['video']['bitrate_mode'] ) ) {\n $metadata['bitrate_mode'] = $data['video']['bitrate_mode'];\n }\n\n if ( ! empty( $data['filesize'] ) ) {\n $metadata['filesize'] = (int) $data['filesize'];\n }\n\n if ( ! empty( $data['mime_type'] ) ) {\n $metadata['mime_type'] = $data['mime_type'];\n }\n\n if ( ! empty( $data['playtime_seconds'] ) ) {\n $metadata['length'] = (int) round( $data['playtime_seconds'] );\n }\n\n if ( ! empty( $data['playtime_string'] ) ) {\n $metadata['length_formatted'] = $data['playtime_string'];\n }\n\n if ( ! empty( $data['video']['resolution_x'] ) ) {\n $metadata['width'] = (int) $data['video']['resolution_x'];\n }\n\n if ( ! empty( $data['video']['resolution_y'] ) ) {\n $metadata['height'] = (int) $data['video']['resolution_y'];\n }\n\n if ( ! empty( $data['fileformat'] ) ) {\n $metadata['fileformat'] = $data['fileformat'];\n }\n\n if ( ! empty( $data['video']['dataformat'] ) ) {\n $metadata['dataformat'] = $data['video']['dataformat'];\n }\n\n if ( ! empty( $data['video']['encoder'] ) ) {\n $metadata['encoder'] = $data['video']['encoder'];\n }\n\n if ( ! empty( $data['video']['codec'] ) ) {\n $metadata['codec'] = $data['video']['codec'];\n }\n\n if ( ! empty( $data['audio'] ) ) {\n unset( $data['audio']['streams'] );\n $metadata['audio'] = $data['audio'];\n }\n\n if ( empty( $metadata['created_timestamp'] ) ) {\n $created_timestamp = get_media_creation_timestamp( $data );\n\n if ( $created_timestamp !== false ) {\n $metadata['created_timestamp'] = $created_timestamp;\n }\n }\n\n $file_format = isset( $metadata['fileformat'] ) ? $metadata['fileformat'] : null;\n\n\n /**\n * Filters the array of metadata retrieved from a video.\n *\n * In core, usually this selection is what is stored.\n * More complete data can be parsed from the `$data` parameter.\n *\n *\n * @param array $metadata Filtered Video metadata.\n * @param string $file_format File format of video, as analyzed by getID3.\n * @param string $data Raw metadata from getID3.\n */\n\n return [\n 'metadata' => $metadata,\n 'file_format' => $file_format,\n 'data' => $data,\n ];\n}", "function getFtpMetadata()\n {\n $ftp_metadata = ftp_rawlist($this->getConnection(), $this->path);\n\n $this->temp_files = array();\n\n foreach ($ftp_metadata as $key => $fileMetadata) {\n\n $metadata = new \\stdClass();\n $metadata->permissions = substr($fileMetadata, 0, 10);\n $fileMetadata = trim(substr($fileMetadata, 10, 9999));\n $metadata->owner = substr($fileMetadata, 0, strpos($fileMetadata, ' '));\n $fileMetadata = trim(substr($fileMetadata, strpos($fileMetadata, ' '), 9999));\n $metadata->group = substr($fileMetadata, 0, strpos($fileMetadata, ' '));\n $fileMetadata = trim(substr($fileMetadata, strpos($fileMetadata, ' '), 9999));\n $metadata->size = substr($fileMetadata, 0, strpos($fileMetadata, ' '));\n $fileMetadata = trim(substr($fileMetadata, strpos($fileMetadata, ' '), 9999));\n $metadata->day = substr($fileMetadata, 0, strpos($fileMetadata, ' '));\n $fileMetadata = trim(substr($fileMetadata, strpos($fileMetadata, ' '), 9999));\n $metadata->month = substr($fileMetadata, 0, strpos($fileMetadata, ' '));\n $fileMetadata = trim(substr($fileMetadata, strpos($fileMetadata, ' '), 9999));\n $metadata->year = substr($fileMetadata, 0, strpos($fileMetadata, ' '));\n $fileMetadata = trim(substr($fileMetadata, strpos($fileMetadata, ' '), 9999));\n $metadata->time = substr($fileMetadata, 0, strpos($fileMetadata, ' '));\n $fileMetadata = trim(substr($fileMetadata, strpos($fileMetadata, ' '), 9999));\n $metadata->name = trim($fileMetadata);\n\n if ($metadata->name == '.'\n || $metadata->name == '..'\n ) {\n\n } else {\n $name = $metadata->name;\n $this->temp_files[$name] = $metadata;\n }\n }\n\n return;\n }", "function metadata()\r\n {\r\n Cache::variable($this->metadata, function() {\r\n return (array)DB::object('userMetadataById', $this->id);\r\n });\r\n }", "public function getInfo()\n {\n return array(\n 'version' => $this->getVersion(),\n 'label' => $this->getLabel(),\n 'description' => file_get_contents(__DIR__ . '/description.txt')\n );\n }", "public function getInfo() {\n $file_info = $this->handler->fetch($this->update_info);\n if (isset($file_info['body'])) {\n return unserialize($file_info['body']);\n } else {\n return unserialize($file_info);\n }\n }", "protected function getFileInfo()\n\t{\n\t\ttry\n\t\t{\n\t\t\t$row = \\IPS\\cms\\Media::load( \\IPS\\Request::i()->id );\n\t\t\t$fileObject = \\IPS\\File::get( 'cms_Media', $row->file_object );\n\t\t}\n\t\tcatch( \\OutOfRangeException $ex )\n\t\t{\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t/* Make a human-readable size */\n\t\t$filesize = \\IPS\\Output\\Plugin\\Filesize::humanReadableFilesize( $fileObject->filesize() );\n\t\t\\IPS\\Member::loggedIn()->language()->parseOutputForDisplay( $filesize );\n\n\t\t$output = array( \n\t\t\t'fileSize' => $filesize,\n\t\t\t'dimensions' => NULL\n\t\t);\n\n\t\t/* If this is an image we'll also show the dimensions */\n\t\tif( $row->is_image )\n\t\t{\n\t\t\t$dimensions = $fileObject->getImageDimensions();\n\t\t\t$output['dimensions'] = $dimensions[0] . ' x ' . $dimensions[1];\n\t\t}\n\n\t\t\\IPS\\Output::i()->sendOutput( json_encode( $output ), 200, 'application/json', \\IPS\\Output::i()->httpHeaders );\n\t}", "public function getMeta()\n {\n return $this->getImageSize();\n }", "function get_image_meta_data($file)\n{\n if (get_file_type_from_mimetype($file->getMimeType()) === 'jpeg') {\n\n try {\n\n // Try to get the exif data\n return mb_convert_encoding(Image::make($file->getRealPath())->exif(),'UTF8');\n\n } catch ( \\Exception $e) {\n \n return null;\n\n }\n }\n}", "function wp_generate_attachment_metadata($attachment_id, $file)\n {\n }", "function getPackageMetaData() ;", "public function getCacheMetadata()\n {\n return $this->_cacheMetadata;\n }", "function get_spec_file_fields() {\n\treturn array (\n\t\t\t'Taxonomic name (GUID)',\n\t\t\t'Location (GUID)',\n\t\t\t);\n}", "protected function loadMetaData() {}", "public function getMetadata($path)\n {\n }", "public function getMetadata($path)\n {\n $object = $this->applyPathPrefix($path);\n [$ret, $error] = $this->bucketManager->stat($this->getBucket(), $object);\n if ($error !== null) {\n return false;\n } else {\n return [\n 'type' => 'file',\n 'dirname' => dirname($path),\n 'path' => $path,\n 'timestamp' => sprintf(\"%d\", $ret['putTime'] * 100 / 1e9),\n 'mimetype' => $ret['mimeType'],\n 'size' => $ret['fsize'],\n ];\n }\n }", "static function importMetadata() {\n\t\t\n\t\tself::$file_to_file_map = array();\n\t\t\n\t\tinclude_once( ABSPATH . 'wp-admin/includes/image.php' );\n\t\t\n\t\techo_now( 'Importing metadata...' );\n\t\t\n\t\tself::$files_upload_path = wp_upload_dir();\n\t\t$searched_fields = array();\n\t\t\n\t\t# Add content field meta values as postmeta\n\t\t\n\t\tif( isset( drupal()->content_node_field_instance ) )\n\t\t\t$field_instance_table = 'content_node_field_instance';\n\t\telse if( isset( drupal()->field_config_instance ) )\n\t\t\t$field_instance_table = 'field_config_instance';\n\t\t\n\t\t$nid_field = 'nid';\n\t\t$vid_field = 'vid';\n\t\t\n\t\t$meta_fields = drupal()->$field_instance_table->getRecords();\n\t\t\n\t\tforeach( $meta_fields as $meta_field ) {\n\t\t\t\n\t\t\t// There are two ways of storing metadata -- simply (in the content_type_[node content type] table)\n\t\t\t// and richly (in the content_[field name] table)\n\t\t\t\n\t\t\t$table_name = 'content_' . $meta_field['field_name'];\n\t\t\t\n\t\t\tif( in_array( $meta_field['field_name'], $searched_fields ) )\n\t\t\t\tcontinue;\n\t\t\t\n\t\t\t# D7 compatibility\n\t\t\tif( ! array_key_exists( 'type_name', $meta_field ) )\n\t\t\t\t$meta_field['type_name'] = $meta_field['entity_type'];\n\t\t\t\n\t\t\t# D7 compatibility\n\t\t\tif( ! isset( drupal()->$table_name ) ) {\n\t\t\t\t$table_name = 'field_revision_' . $meta_field['field_name'];\n\t\t\t}\n\t\t\t\n\t\t\t# D7 compatibility\n\t\t\tself::$files_table_name = 'files';\n\t\t\tif( ! isset( drupal()->{self::$files_table_name} ) ) {\n\t\t\t\tself::$files_table_name = 'file_managed';\n\t\t\t\t$nid_field = 'entity_id';\n\t\t\t\t$vid_field = 'revision_id';\n\t\t\t\t\n\t\t\t\tself::$files_public_path = trailingslashit( \n\t\t\t\t\t\tunserialize(\n\t\t\t\t\t\tdrupal()->variable->value->getValue(\n\t\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\t'name' => 'file_public_path'\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t)\n\t\t\t\t\t)\n\t\t\t\t);\n\t\t\t}\n\t\t\t\n//\t\t\techo_now( 'Searching: ' . $table_name );\n\t\t\t\n\t\t\tif( isset( drupal()->$table_name ) ) {\n\t\t\t\t\n\t\t\t\t// Found a content_field_name table -- add post meta from its columns\n//\t\t\t\techo 'Table - search content table: ' . $table_name . ' for fields' . \"<br>\\n\";\n\t\t\t\t\n\t\t\t\t$meta_records = drupal()->$table_name->getRecords();\n\t\t\t\t\n\t\t\t\tforeach( $meta_records as $meta_record ) {\n\t\t\t\t\t\n\t\t\t\t\t// Import all columns beginning with field_name\n\t\t\t\t\t\n\t\t\t\t\tif( ! array_key_exists( $meta_record[$nid_field], self::$node_to_post_map ) )\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\n\t\t\t\t\tif( $meta_record[$vid_field] != self::$node_to_rev_map[ $meta_record[$nid_field] ] )\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\n\t\t\t\t\tforeach( $meta_record as $column => $value ) {\n\t\t\t\t\t\t\n\t\t\t\t\t\tif( empty( $value ) )\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\n\t\t\t\t\t\tif( 0 !== strpos( $column, $meta_field['field_name'] ) )\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\n\t\t\t\t\t\tif( strpos( $column, '_fid' ) ) {\n\n\t\t\t\t\t\t\t$value = self::importAttachedFile(\n\t\t\t\t\t\t\t\tself::$node_to_post_map[ $meta_record[$nid_field] ],\n\t\t\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\t\t'file_id' => (int)$value\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\tadd_post_meta(\n\t\t\t\t\t\t\t\t$value,\n\t\t\t\t\t\t\t\t'_drupal_source',\n\t\t\t\t\t\t\t\t$column\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif( array_key_exists( str_replace( '_fid', '_data', $column ), $meta_record ) ) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t$details = maybe_unserialize( $meta_record[ str_replace( '_fid', '_data', $column ) ] );\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif( isset( $details['title'] ) ) {\n\t\t\t\t\t\t\t\t\twp_update_post(\n\t\t\t\t\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\t\t\t\t'ID' => $value,\n\t\t\t\t\t\t\t\t\t\t\t'post_excerpt' => $details['title']\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\tif( isset( $details['alt'] ) ) {\n\t\t\t\t\t\t\t\t\tupdate_post_meta(\n\t\t\t\t\t\t\t\t\t\t$value,\n\t\t\t\t\t\t\t\t\t\t'_wp_attachment_image_alt',\n\t\t\t\t\t\t\t\t\t\t$details['alt']\n\t\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tadd_post_meta(\n\t\t\t\t\t\t\tself::$node_to_post_map[ $meta_record[$nid_field] ],\n\t\t\t\t\t\t\t'_drupal_' . $column,\n\t\t\t\t\t\t\t$value\n\t\t\t\t\t\t);\n\t\t\t\t\t\t\n\t\t\t\t\t\t$searched_fields[] = $column;\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\n\t\t\t} else {\n\n\t\t\t\t// Search the content_type_[content type] table for this value\n\t\t\t\t$table_name = 'content_type_' . $meta_field['type_name'];\n\t\t\t\tif( ! isset( drupal()->$table_name ) )\n\t\t\t\t\t$table_name = 'field_revision_' . $meta_field['type_name'];\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tif( isset( drupal()->$table_name ) ) {\n\t\t\t\t\t$meta_records = drupal()->$table_name->getRecords();\n\t\t\t\t\t\n\t\t\t\t\tforeach( $meta_records as $meta_record ) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Import all columns beginning with field_name\n\t\t\t\t\t\t\n\t\t\t\t\t\tif( ! array_key_exists( $meta_record['nid'], self::$node_to_post_map ) )\n\t\t\t\t\t\t\tcontinue;\n\n\t\t\t\t\t\tif( $meta_record[$vid_field] != self::$node_to_rev_map[ $meta_record[$nid_field] ] )\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\n\t//\t\t\t\t\techo 'Adding metadata for: ' . self::$node_to_post_map[ $meta_record['nid'] ] . ' - ' . $meta_record[ $value_column ] . \"<br>\\n\";\n\t\t\t\t\t\t\n\t\t\t\t\t\tforeach( $meta_record as $column => $value ) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif( empty( $value ) )\n\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif( 0 !== strpos( $column, $meta_field['field_name'] ) )\n\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif( strpos( $column, '_fid' ) ) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t$value = self::importAttachedFile(\n\t\t\t\t\t\t\t\t\tself::$node_to_post_map[ $meta_record[$nid_field] ],\n\t\t\t\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\t\t\t'file_id' => (int)$value\n\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tadd_post_meta(\n\t\t\t\t\t\t\t\t\t$value,\n\t\t\t\t\t\t\t\t\t'_drupal_source',\n\t\t\t\t\t\t\t\t\t$column\n\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif( array_key_exists( str_replace( '_fid', '_data', $column ), $meta_record ) ) {\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t$details = maybe_unserialize( $meta_record[ str_replace( '_fid', '_data', $column ) ] );\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tif( isset( $details['title'] ) ) {\n\t\t\t\t\t\t\t\t\t\twp_update_post(\n\t\t\t\t\t\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\t\t\t\t\t'ID' => $value,\n\t\t\t\t\t\t\t\t\t\t\t\t'post_excerpt' => $details['title']\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}\n\t\t\t\t\t\t\t\t\tif( isset( $details['alt'] ) ) {\n\t\t\t\t\t\t\t\t\t\tupdate_post_meta(\n\t\t\t\t\t\t\t\t\t\t\t$value,\n\t\t\t\t\t\t\t\t\t\t\t'_wp_attachment_image_alt',\n\t\t\t\t\t\t\t\t\t\t\t$details['alt']\n\t\t\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tupdate_post_meta(\n\t\t\t\t\t\t\t\tself::$node_to_post_map[ $meta_record['nid'] ],\n\t\t\t\t\t\t\t\t'_drupal_' . $column,\n\t\t\t\t\t\t\t\t$value\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\t} // End if isset table\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t$searched_fields[] = $meta_field['field_name'];\n\t\t\t\t\n\t\t}\n\t\t\n\t\t// Search for table named for the node type\n\t\t$types = drupal()->node->type->getUniqueValues();\n\t\t\n\t\tforeach( $types as $type ) {\n\t\t\t\n\t\t\tif( isset( drupal()->$type ) ) {\n\t\t\t\t\n\t\t\t\t$type_records = drupal()->$type->getRecords();\n\t\t\t\tforeach( $type_records as $type_record ) {\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tif( ! array_key_exists( $type_record['nid'], self::$node_to_post_map ) )\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\n\t\t\t\t\tforeach( $type_record as $column => $value ) {\n\t\t\t\t\t\t\n\t\t\t\t\t\tif( empty( $value ) )\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\n\t\t\t\t\t\tupdate_post_meta(\n\t\t\t\t\t\t\tself::$node_to_post_map[ $type_record['nid'] ],\n\t\t\t\t\t\t\t'_drupal_' . $column,\n\t\t\t\t\t\t\t$value\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}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\t// Check for uploaded files\n\t\t\n\t\tif( isset( drupal()->upload ) ) {\n\t\t\t\n\t\t\t$uploads = drupal()->getRecords(\n\t\t\t\tdrupal()->query(\n\t\t\t\t\t'SELECT * FROM upload u\n\t\t\t\t\t\tWHERE (nid, vid) IN\n\t\t\t\t\t\t(SELECT nid, MAX(vid) FROM upload GROUP BY nid)'\n\t\t\t\t)\n\t\t\t);\n\t\t\t\n\t\t\tforeach( $uploads as $upload ) {\n\t\t\t\t\n\t\t\t\t$node = drupal()->node->getRecord(\n\t\t\t\t\tarray(\n\t\t\t\t\t\t'nid' => $upload['nid']\n\t\t\t\t\t)\n\t\t\t\t);\n\t\t\t\t\n\t\t\t\tif( apply_filters( 'import_node_skip_node', false, $node ) )\n\t\t\t\t\tcontinue;\n\t\t\t\t\n\t\t\t\tif( ! array_key_exists( $upload['nid'], self::$node_to_post_map ) )\n\t\t\t\t\tcontinue;\n\n\t\t\t\t// Skip records with fid = 0\n\t\t\t\tif( 0 == $upload['fid'] )\n\t\t\t\t\tcontinue;\n\t\t\t\t\n\t\t\t\t$value = self::importAttachedFile(\n\t\t\t\t\tself::$node_to_post_map[ $upload['nid'] ],\n\t\t\t\t\tarray(\n\t\t\t\t\t\t'file_id' => (int)$upload['fid']\n\t\t\t\t\t)\n\t\t\t\t);\n\t\t\t\t\n\t\t\t\tadd_post_meta(\n\t\t\t\t\t$value,\n\t\t\t\t\t'_drupal_source',\n\t\t\t\t\t'upload'\n\t\t\t\t);\n\t\t\t\t\n\t\t\t\tadd_post_meta(\n\t\t\t\t\t$value,\n\t\t\t\t\t'_drupal_list_upload',\n\t\t\t\t\t(int)$upload['list']\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\tdo_action( 'imported_metadata' );\n\t\t\n\t}", "public function getMetadata($path)\n {\n //todo\n }", "public function getMetadata($key = null)\n {\n if ($key !== null)\n return stream_get_meta_data($this->res)[$key];\n return stream_get_meta_data($this->res);\n }", "public function metadata(): array\n {\n return [];\n }", "public function metadata(): array\n {\n return [];\n }", "function wp_read_video_metadata($file)\n {\n }", "private function loadBasicData()\n\t{\n\t\t$this->filename = basename($this->filepath);\n\t\t$this->title = $this->filename;\n\t\t$this->description = $this->filename;\n\t\t$this->mimetype = mime_content_type($this->filepath);\n\t\t$this->dateGathered = date('Y-m-d').'T'.date('h:i:s');\n\t\t$this->filesize = filesize($this->filepath);\n\n\t\t$this->data['path'] = $this->filepath;\n\t\t$this->data['name'] = basename($this->data['path']);\n\n\t\t$this->data['sizeExact'] = filesize($this->data['path']);\n\t\t$this->data['size'] = Utilities::filesizeInterpreter($this->data['sizeExact']);\n\n\t\t$this->data['accessDateExact'] = fileatime($this->data['path']);\n\t\t$this->data['accessDate'] = date(\"F d Y H:i:s.\", $this->data['accessDateExact']);\n\n\t\t$this->data['modifyDateExact'] = filemtime($this->data['path']);\n\t\t$this->data['modifyDate'] = date(\"F d Y H:i:s.\", $this->data['modifyDateExact']);\n\n\t\t$this->data['mimetype'] = mime_content_type($this->data['path']);\n\t\t$this->data['mimetypeType'] = explode(\"/\", $this->data['mimetype'])[0];\n\n\n\t}", "public function getImageFileMetadata($fullPathFilename) {\n if (!file_exists($fullPathFilename)) {\n throw new \\InvalidArgumentException(get_class($this) . '->getImageFileMetadata() error: File not found (\"' . $fullPathFilename . '\")');\n }\n if (!is_readable($fullPathFilename)) {\n throw new \\InvalidArgumentException(get_class($this) . '->getImageFileMetadata() error: Unable to read file (\"' . $fullPathFilename . '\")');\n }\n list($width, $height, $format, $attr) = getimagesize($fullPathFilename);\n switch ($format) {\n case IMAGETYPE_GIF: \n $format = 'gif';\n break;\n case IMAGETYPE_JPEG: \n $format = 'jpg';\n break;\n case IMAGETYPE_PNG: \n $format = 'png';\n break;\n }\n return array(\n 'width' => $width,\n 'height' => $height,\n 'format' => $format\n );\n }", "function _readMeta($fp){\n $line = fgets($fp, 8192);\n $arr = explode(\"|\", trim($line));\n $ret = array(\n \"hash\" => strval($arr[0]),\n \"created\" => intval($arr[1]),\n \"expired\" => intval($arr[2]),\n );\n return $ret;\n }", "private function getMetadataSize()\n {\n $this->seek($this->offset + 18 + $this->getAliasSize());\n\n return $this->readLong();\n }", "function get_file_description($file)\n {\n }", "public function meta(ResourceInterface $resource)\n : FileMetaInterface\n {\n return $this->getChannel($resource)->meta();\n }", "public function getMeta();", "public function getMeta();", "public function provideMetaDataName(): string;", "public function get_metadata() {\n\t\t$metadata = [];\n\n\t\tforeach ( $this->get_mapping() as $attribute => $meta_key ) {\n\t\t\t$metadata[ $attribute ] = $this->get_meta( $meta_key );\n\t\t}\n\n\t\treturn $metadata;\n\t}", "public function getMetaData(): iterable;", "function getMetaData()\n {\n $meta = parent::getMetaData();\n\n $meta[\"sum_bankcodes\"] = floatval($this->sum_bankcodes);\n $meta[\"sum_accounts\"] = floatval($this->sum_accounts);\n\n return $meta;\n }", "function get_desc_file_fields() {\n\treturn array (\n\t\t\t\"Taxonomic name (Name)\",\n\t\t\t\"Diagnostic Description\",\n\t\t\t\"Distribution\",\n\t\t\t\"Habitat\",\n\t\t\t\"Size\",\n\t\t\t\"Habitus image\",\n\t\t\t\"Morphological Description\",\n\t\t\t\"Habitat image\",\n\t\t\t\"Simlar Species (Name)\",\n\t\t\t\"Pronotum image\",\n\t\t\t\"Elytral microsculpture\",\n\t\t\t\"Genitalia left image\",\n\t\t\t\"General description\",\n\t\t\t\"Genetics\" \n\t);\n}", "public function getDetails() {\r\n \r\n $mckey = sprintf(\"%s;details\", $this->mckey); \r\n \r\n if (!$data = $this->Memcached->fetch($mckey)) {\r\n if (empty($this->mime) && file_exists(RP_DOWNLOAD_DIR . $this->filepath)) {\r\n $finfo = finfo_open(FILEINFO_MIME_TYPE); \r\n $this->mime = finfo_file($finfo, RP_DOWNLOAD_DIR . $this->filepath);\r\n }\r\n \r\n $mime = explode(\"/\", $this->mime); \r\n \r\n $data = array(\r\n \"type\" => ucwords($mime[0]),\r\n \"size\" => $this->filesize,\r\n \"downloads\" => $this->hits,\r\n \"added\" => array(\r\n \"absolute\" => $this->Date->format(\"Y-m-d g:i:s a\"),\r\n \"relative\" => time2str($this->Date->getTimestamp())\r\n ),\r\n \"thumbnail\" => $this->getThumbnail(),\r\n \"video\" => $this->getHTML5Video()\r\n );\r\n \r\n $this->Memcached->save($mckey, $data, strtotime(\"+12 hours\"));\r\n }\r\n \r\n return $data;\r\n }" ]
[ "0.78256273", "0.7434131", "0.74059993", "0.73448837", "0.73369545", "0.7317046", "0.7226694", "0.7220557", "0.7212889", "0.7203379", "0.71798486", "0.71798486", "0.7085811", "0.7076003", "0.7076003", "0.7076003", "0.707312", "0.69697523", "0.69488776", "0.69085073", "0.68572915", "0.68435264", "0.68429005", "0.68160975", "0.67807287", "0.66949874", "0.66892284", "0.66066533", "0.65991926", "0.65877056", "0.65698797", "0.65698034", "0.6569204", "0.6556861", "0.6522149", "0.6500772", "0.6483963", "0.6465498", "0.64449346", "0.6407961", "0.6397611", "0.63902974", "0.63863647", "0.63752514", "0.6372911", "0.63698846", "0.63602996", "0.6346784", "0.63027245", "0.62952286", "0.6261312", "0.62576497", "0.62540555", "0.62527263", "0.62505907", "0.6240616", "0.62289536", "0.6224784", "0.62129134", "0.621245", "0.62083733", "0.6200713", "0.619985", "0.6181392", "0.61684585", "0.61550736", "0.6149828", "0.61468196", "0.61167276", "0.6115607", "0.60879076", "0.60859996", "0.6084002", "0.6084002", "0.608249", "0.6066197", "0.6048907", "0.6035429", "0.6020076", "0.60016704", "0.59970117", "0.5980047", "0.5980047", "0.59745187", "0.5973136", "0.59670043", "0.59617525", "0.5958014", "0.59520006" ]
0.68720055
31
Get the temporary link
public function getLink() { return $this->link; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getTemporaryLink()\n {\n return $this->_temporaryLink;\n }", "public function getTempLink()\n {\n return $this->temp_loc;\n }", "public function getTemporaryDownloadLink()\n {\n if (!$this->ID) {\n return false;\n }\n $s3 = $this->getS3Client();\n\n $cmd = $s3->getCommand('GetObject', [\n 'Bucket' => $this->Bucket,\n 'Key' => $this->Key,\n 'ResponseContentDisposition' => 'attachment; filename=\"'. $this->Name .'\"'\n ]);\n\n $request = $s3->createPresignedRequest($cmd, '+60 minutes');\n\n return (string) $request->getUri();\n }", "function getLink(): string;", "public function userTempFolder(): string\n {\n /** @var \\TYPO3\\CMS\\Core\\Resource\\Folder $folder */\n $folder = $this->getBeUser()->getDefaultUploadTemporaryFolder();\n return $folder->getPublicUrl();\n }", "public function getLink();", "public function getLink();", "function get_generic_link() {\n\t\treturn $this->url;\n\t}", "public function getLink() {}", "function getRedirectLink()\n {\n global $wgRequest;\n if($this->user->isTemporary)\n {\n // User is viewing this from liveshow, means we have to redirect back to ViewSurvey page,\n // and not the wiki page.\n // In this case 'returnto' value does not mean anything, we know where to return.\n $t = Title::newFromText('Special:ViewSurvey');\n\n $url = $t->getLocalURL('liveshow='.$this->user->getTemporaryKey($this->page_id)\n .'&id='.$this->page_id\n .'&userID='.$this->user->userID).'#survey_id_'.$this->page_id;\n return $url;\n }\n else\n {\n $title = Title::newFromText($wgRequest->getVal('returnto'));\n return $title->getLocalURL();\n }\n }", "public static function getThisUrl() {}", "public function getLink(): string;", "public function getLink(): string;", "public function get_link() {\r\n return $this->link;\r\n }", "public function createReferralLink() : string\n {\n $url = $this->storeManager->getStore()->getBaseUrl(UrlInterface::URL_TYPE_WEB);\n $encrypt = urlencode($this->encryptor->encrypt($this->customerSession->getCustomerId()));\n $link = $url . \"?ref=\" . $encrypt;\n return $link;\n }", "public function getTemporaryFileUrl( $id )\n {\n $userfilesUrl = OW::getPluginManager()->getPlugin('base')->getUserFilesUrl();\n $file = $this->fileTemporaryDao->findById($id);\n return $userfilesUrl . self::TMP_FILE_PREFIX . $id . $file->filename;\n }", "public function get_link()\n {\n\n return $this->link;\n }", "public static function getLink()\n {\n return self::$link;\n }", "function get_self_link()\n {\n }", "public function getOfficialLink();", "public function getTakeUrl() { }", "public function getPrepareLink()\n {\n $baseUrl = Mage::app()->getStore($this->getStoreId())->getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB);\n \n return $baseUrl . $this->getData('path') . $this->getFilename();\n }", "protected function tmpUrl()\n {\n return Pi::url('upload/_tmp');\n }", "public function get_link()\n\t{\n\t\treturn $this->link;\n\t}", "public function getTemporaryUrl(DateTimeInterface $expiration, array $options = []): string\n {\n throw UrlCannotBeDetermined::filesystemDoesNotSupportTemporaryUrls();\n }", "public function getURL()\n {\n return $this->finalURL;\n }", "protected function getURL()\r\n\t{\r\n\t\tglobal $NEED_PHP_SELF;\r\n\t\treturn ($NEED_PHP_SELF)?$_SERVER['PHP_SELF']:\"\";\r\n\t}", "public function getURL ();", "function get_shortcut_link()\n {\n }", "public function link() {\n return isset($this->_adaptee->user_info['user_username']) ? \"profile.php?user=\".$this->_adaptee->user_info['user_username'] : null;\n }", "public function get_link() { return (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] \n === 'on' ? \"https\" : \"http\") . \"://\" . \n $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF']; }", "function clearTemporaryLink()\n {\n $this->_temporaryLink = null;\n return $this;\n }", "public function urlTemporaryCredentials()\n {\n return 'https://api.twitter.com/oauth/request_token';\n }", "public function getURL();", "public function getURL();", "function getLink()\n {\n $url = $this->getPaypal();\n $link = 'https://'.$url.'/cgi-bin/webscr?';\n foreach($this->VARS as $item => $sub){\n $link .= $sub[0].'='.$sub[1].'&';\n }\n return $link;\n }", "public function getLink():string;", "public function current(){\n\t\t$actual_link = $this->protocol() . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];\n\t\treturn $actual_link;\n\t}", "public function link(): string {\n\t\treturn $this->page['link'] ?? '';\n\t}", "public function link(): string\n {\n return $this->link;\n }", "public function getLink(): ?string;", "public function getFeedLink();", "public function getHTTPLink()\n\t{\n\t\treturn 'http://open.spotify.com/track/' . toSpotifyId($this->id);\n\t}", "public function getLink() {\n return $this->link;\n }", "public function getLink(){\n return $this->link;\n }", "function getLink() {\r\n return $this->_link;\r\n }", "function getLink() {\r\n return $this->_link;\r\n }", "public function getUrl()\n\t{\n\t\treturn App\\Purifier::decodeHtml($this->get('linkto'));\n\t}", "public function url()\n\t{\n\t\tif( $this->modified === false ) return $this->url;\n\t\telse\n\t\t{\n\t\t\t$url = $this->generateString();\n\t\t\treturn htmlentities( $url );\n\t\t}\n\t}", "private function getTalkURI()\n {\n $url = $this->getInput('url');\n return $url;\n }", "public function href();", "protected function storeReturnUrl(TemporaryCredentials $temp)\n {\n if ($url = $this->request->input('return_url')) {\n $key = 'oauth_return_url_'.$temp->getIdentifier();\n $this->cache->put($key, $url, ProviderContract::CACHE_TTL);\n }\n }", "function url ($link) {\r\n\treturn $link;\r\n}", "function href() {\n\t\t$usemodrewrite = polarbear_setting('usemodrewrite');\n\t\tif ($usemodrewrite) {\n\t\t\treturn $this->fullpath();\n\t\t} else {\n\t\t\treturn $this->templateToUse() . '?polarbear-page=' . $this->getId();\n\t\t}\n\t}", "public function get_url();", "function getLink() {return $this->_link;}", "function getLink() {return $this->_link;}", "public function Link()\n {\n return $this->Url;\n }", "public function FirstLink()\n {\n return HTTP::setGetVar(\n $this->getPaginationGetVar(),\n 0,\n ($this->request instanceof HTTPRequest) ? $this->request->getURL(true) : null\n );\n }", "function getLink () {\n\t\t$baseLink = 'index.php';\n\t\tif ($this->getAction ()) {\n\t\t\treturn $baseLink .= '?action='.$this->getAction ();\n\t\t}\n\t\telseif ($this->isAdminPage ()) {\n\t\t\treturn $baseLink .= '?action=admin&pageID='.$this->getID ();\n\t\t} else {\n\t\t\treturn $baseLink .= '?action=viewPage&pageID='.$this->getID ();\n\t\t}\n\t}", "public function getLink() {\n\t\treturn $this->link;\n\t}", "public function getLink() {\n if($this->items!==false) {\n $item = @current($this->items);\n return 'http://twitter.com/'.$item->user->screen_name.'/status/'.$item->id_str;\n }\n return false;\n }", "public function getURL()\n {\n return $this->page->getURL() . 'links-to-this/';\n }", "public function getLinkUrl()\n\t{\n\t\t// @see http://www.php.net/manual/en/reserved.variables.php#84025\n\t\t$url = '_core/component:qrcode/' . urlencode(urlencode($this->getFingerprint())) . '.data';\n\n\t\tif (Config::get('debug') === true) {\n\t\t\t$url .= '&text=' . urlencode($this->_text);\n\t\t}\n\t\treturn $url;\n\t}", "public function getLink()\n\t{\n\t\treturn $this->link;\n\t}", "public function getLink()\n\t{\n\t\treturn $this->link;\n\t}", "public function getProfileLink()\n\t{\n\t\treturn site_url('profile/' . $this->hash);\n\t}", "function get_url()\n {\n }", "function getURL()\r\n\t{\r\n\t\treturn \"http://www.iai.com\";\r\n\t}", "public function getAccountLink()\n {\n return $this->account_link;\n }", "public function getLink()\n {\n $_link = $this->getData('url');\n\n if ($_link && parse_url($_link, PHP_URL_SCHEME)) {\n $_link = '<a href=\"' . $_link . '\" class=\"link\" target=\"_blank\">';\n } elseif ($_link) {\n $_link = '<a href=\"' . $this->getUrl() . $_link . '\" class=\"link\" >';\n } else {\n $_link = false;\n }\n\n return $_link;\n }", "public function link(){\n\t\tif( $this->link ) {\n\t\t\treturn $this->link;\n\t\t}//end if\n\n\t\t$this->link = @file_get_contents( $this->base_dir.'/'.$this->dir . $this->filename . '.link');\n\t\treturn $this->link;\n\t}", "public function getCurrentUrl();", "function df_store_url_link($s = null) {return df_store_url($s, S::URL_TYPE_LINK);}", "public function getLink(): ?string\n {\n return $this->link;\n }", "static function obtenerUrlActual() {\n $url = Util::crearUrl($_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']);\n return $url;\n }", "public function getLink() {\n\t\t$link = str_replace('\\\\', \"/\", $this->address);\n\t\treturn str_replace(GProject::$ADDRESS, \"\", $link);\n\t}", "private function getMockShortLink()\n {\n $link = $this->getBaseMockLink();\n\n $link\n ->expects($this->once())\n ->method('getShortUrl')\n ->will($this->returnValue('http://bit.ly/ze6poY'));\n\n return $link;\n }", "function Link()\n\t{\tif ($this->details[\"hblink\"])\n\t\t{\tif (strstr($this->details[\"hblink\"], \"http://\") || strstr($this->details[\"hblink\"], \"https://\"))\n\t\t\t{\treturn $this->details[\"hblink\"];\n\t\t\t} else\n\t\t\t{\treturn SITE_URL . $this->details[\"hblink\"];\n\t\t\t}\n\t\t}\n\t}", "public function get_url(): string\n {\n return $this->get_url_internal();\n }", "public function getLink():?string\n {\n return $this->link;\n }", "public function getLink()\n {\n return $this->get('Link');\n }", "public function sessionLink(){\n\t\tif($page = SessionsHolder::get()->First()) {\n\t\t\treturn $page->Link();\n\t\t}\n\t}", "public abstract function getURL();", "public function getLinkUrl(): string\n {\n return $this->linkUrl;\n }", "public function get_link()\r\n\t{\r\n\t\t$url = api_get_path(WEB_PATH)\r\n\t\t\t.'main/gradebook/exercise_jump.php?cid='.$this->get_course_code();\r\n\t\tif (!api_is_allowed_to_create_course()\r\n\t\t\t&& $this->calc_score(api_get_user_id()) == null)\r\n\t\t$url .= '&amp;doexercise='.$this->get_ref_id();\r\n\t\t\r\n\t\treturn $url;\r\n\t}", "function get_tmp_file() {\n\tglobal $g;\n\treturn \"{$g['tmp_path']}/tmp-\" . time();\n}" ]
[ "0.85638916", "0.78426147", "0.6623521", "0.6563132", "0.64999413", "0.64677024", "0.64677024", "0.64493006", "0.6427525", "0.63151634", "0.62517947", "0.62216777", "0.62216777", "0.6174818", "0.61670184", "0.61479944", "0.61413854", "0.6105262", "0.6100459", "0.60974383", "0.6094338", "0.6089325", "0.6085784", "0.60613114", "0.60378045", "0.6037049", "0.6018751", "0.6016859", "0.6005279", "0.59941477", "0.5982331", "0.5971212", "0.59602714", "0.59561783", "0.59561783", "0.5953977", "0.59532464", "0.5944147", "0.59317124", "0.591873", "0.5906352", "0.5898552", "0.58612174", "0.585537", "0.58429664", "0.5832398", "0.5832398", "0.58323336", "0.5830208", "0.5827402", "0.58151585", "0.58071524", "0.57977283", "0.5793225", "0.5779135", "0.5778596", "0.5778596", "0.57763565", "0.5768024", "0.5758132", "0.57533574", "0.5751495", "0.57272273", "0.57225645", "0.57209486", "0.57209486", "0.5715301", "0.57059735", "0.57034785", "0.5700964", "0.5695317", "0.5695041", "0.5694989", "0.5692512", "0.56871665", "0.56814647", "0.56775653", "0.5671425", "0.5656955", "0.5648037", "0.5647569", "0.5647434", "0.56448054", "0.5643581", "0.5636426", "0.5628346", "0.5625147" ]
0.58969766
55
rilascio le risorse di cURL
public function __destruct() { curl_close($this->curl); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getJAVA($url) {\r\n // inisialisasi CURL\r\n $ip = $url;\r\n $data = curl_init();\r\n// $ip = $getRow['ipAddr'] . '' . $url;\r\n//\techo $ip;\r\n // setting CURL\r\n curl_setopt($data, CURLOPT_RETURNTRANSFER, 1);\r\n curl_setopt($data, CURLOPT_URL, $ip);\r\n\r\n // menjalankan CURL untuk membaca isi file\r\n $hasil = curl_exec($data);\r\n curl_close($data);\r\n return json_decode($hasil);\r\n}", "function _kala_migrate_curl($url) {\n // Many tries and headaches but this curl gets em all\n $agent = 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; .NET CLR 1.1.4322)';\n $ch = curl_init();\n curl_setopt($ch, CURLOPT_URL, $url);\n curl_setopt($ch, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4);\n curl_setopt($ch, CURLOPT_ENCODING, '');\n curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 2);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n curl_setopt($ch, CURLOPT_BINARYTRANSFER, true);\n curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);\n curl_setopt($ch, CURLOPT_TIMEOUT_MS, 5000);\n curl_setopt($ch, CURLOPT_USERAGENT, $agent);\n $check = curl_exec($ch);\n $info = curl_getinfo($ch);\n curl_close($ch);\n\n $result = array($check, $info);\n return $result;\n}", "function updateCurl($url,$method){\r\n \r\n $curl = curl_init();\r\n // Set some options - we are passing in a useragent too here\r\n curl_setopt_array($curl, array(\r\n CURLOPT_RETURNTRANSFER => 1,\r\n CURLOPT_URL => $url,\r\n CURLOPT_USERAGENT => 'Codular Sample cURL Request'\r\n ));\r\n // Send the request & save response to $resp\r\n $resp = curl_exec($curl);\r\n // Close request to clear up some resources\r\n curl_close($curl);\r\n return $resp;\r\n \r\n \r\n}", "public static function curlGET($url,$dato){\n$query = http_build_query($dato);\n$url=$url.\"?\".$query;\n$ch = curl_init($url);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n curl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"GET\");\n $response = curl_exec($ch);\n curl_close($ch);\n if(!$response)\n {\n return false;\n }\n else\n {\n return $response;\n }\n}", "function realizarPeticionGet($url){\n\t$ch = curl_init();\n\t// Establecer URL y otras opciones apropiadas\n\tcurl_setopt($ch, CURLOPT_URL, $url);\n\tcurl_setopt($ch, CURLOPT_HEADER, 0);\n\tcurl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\n\n\t// Capturar la URL y devuelve el código HTML\n\t$res = curl_exec($ch);\n\n\t// Cerrar el recurso cURL y liberar recursos del sistema\n\tcurl_close($ch);\n\n\treturn $res;\n}", "function doCurl ($url, $options) {\n\tglobal $adminName, $adminPass, $verbose, $doe;\n\t\n\t$options = $options +\n\t\t\t array(CURLOPT_RETURNTRANSFER => true,\n\t\t\t\t\t CURLOPT_USERPWD => $adminName . \":\" . $adminPass,\n\t\t\t\t\t CURLOPT_HTTPHEADER => array('OCS-APIRequest:true', 'Accept: application/json'),\n\t\t\t );\n\n\tif ($verbose > 2) {\n\t\t$options = $options +\n\t\t\t\t array(CURLOPT_VERBOSE => TRUE,\n\t\t\t\t\t\t CURLOPT_HEADER => TRUE\n\t\t\t\t );\n\t}\n\n\t$ch = curl_init($url);\n\n \tcurl_setopt_array( $ch, $options);\n\t\n// For use with Charles proxy:\n// \tcurl_setopt($ch, CURLOPT_PROXYPORT, '8888');\n// \tcurl_setopt($ch, CURLOPT_PROXYTYPE, 'HTTP');\n// \tcurl_setopt($ch, CURLOPT_PROXY, '127.0.0.1');\n\n $response = curl_exec($ch);\n //print_r($response);\n $response = json_decode($response);\n //print_r($response);\n\n $statuscode = $response->{'ocs'}->{'meta'}->statuscode;\n\n \n if($statuscode != \"100\"){\n echo $statuscode;\n echo $response->{'ocs'}->{'meta'}->message;\n return $statuscode;\n exit(1);\n }\n\n if($response === false) {\n echo 'Curl error: ' . curl_error($ch) . \"\\n\";\n\t\texit(1);\n\t}\n\t\n\tcurl_close($ch);\n \n\t/* An error causes an exit\n\tif (preg_match(\"~<statuscode>(\\d+)</statuscode>~\", $response, $matches)) {\n $responseCode = $matches[1]; // what's the status code\n //echo $matches[3];\n //echo \"<h3>\" . $response . \"</h3>\";\n if ($responseCode == '404') {\n return \"2\";\n exit(2);\n } elseif ($responseCode != '100') {\n echo \"1Error response code; exiting\\n$response\\n\";\n\t\t\texit(1);\n\t\t}\n\t}\n\telse { // something is definitely wrong\n echo \"No statuscode response; exiting:\\n$response\\n\";\n \n\t\texit(1);\n\t}\n */\n\t// What sort of response do we want to give\n//\tif ($verbose == 1) { echo \"Response code from server: $responseCode\\n\"; }\n\t//if ($verbose == 1) { echo \"\\n\"; }\n\t//if ($verbose > 1) { echo \"Response from server:\\n$response\\n\\n\"; }\n\n\treturn $response;\n}", "function fetchUrl($url){\n $ch = curl_init();\n curl_setopt($ch, CURLOPT_URL, $url);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\n curl_setopt($ch, CURLOPT_TIMEOUT, 20);\n $retData = curl_exec($ch);\n curl_close($ch); \n \n return $retData;\n}", "function getData($link = \"\"){\n $mainURL = \"http://zakon4.rada.gov.ua\";\n $curl = curl_init();\n\n curl_setopt($curl,CURLOPT_URL,$mainURL . $link);\n curl_setopt($curl,CURLOPT_RETURNTRANSFER,true);\n\n $data = curl_exec($curl);\n $data = iconv('cp1251','utf-8',$data);\n // If error with access denied - retry in 1 sec\n if(strpos($data,\"Доступ тимчасово обмежено!\") > 0){\n sleep(1);\n $data = getData($link);\n }\n // If error with JS redirect - get data from link\n if( strpos($data,\"conv?test=\") > 0 ){\n preg_match('/location\\.href=\\\"(.+?)\\\"/',$data,$redirect);\n $data = getData($redirect[1]);\n }\n // If error with permalink\n if( strpos($data,\"Натисніть, будь-ласка, на це\") ){\n preg_match('/<a href=\"(.+?)\" target=_top><b>посилання<\\/b><\\/a>/',$data,$redirect);\n $data = getData($redirect[1]);\n }\n\n $result = cropMainText($data);\n\n // Check we have paginator.\n if( strpos($data,'наступна сторінка') > 0 ){\n preg_match('/<a href=\"(.*?)\\s?\" title=\"наступна сторінка\">наступна сторінка<\\/a>/',$data,$page);\n print_r(\"Get next page ...\");\n $result .= getData($page[1]);\n }\n\n return $result;\n}", "function curl_cheat2($url)\n{\n $ip = \"202\" . \".\" . rand(1, 255) . \".\" . rand(1, 255) . \".\" . rand(1, 255) . \"\";\n// $ip = '8.8.8.8';\n// echo $ip.\" =======\";\n $ch = curl_init();\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\n curl_setopt($ch, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1);\n curl_setopt($ch, CURLOPT_HTTPHEADER, array(\"Client_Ip: \" . $ip . \"\", \"Real_ip: \" . $ip . \"\", \"X_FORWARD_FOR:\" . $ip . \"\", \"X-forwarded-for: \" . $ip . \"\", \"PROXY_USER: \" . $ip . \"\"));\n curl_setopt($ch, CURLOPT_URL, $url);\n// curl_setopt($ch, CURLOPT_URL, \"http://192.168.1.99/11.php\");\n $result = curl_exec($ch);\n curl_close($ch);\n return $result;\n}", "function execCurl($url) {\n\t//echo \"<br> URL: $url <br>\";\n\t\n\t$curl = curl_init();\n\t\n\tcurl_setopt_array($curl, array(\n\t\tCURLOPT_URL => $url,\n\t\tCURLOPT_RETURNTRANSFER => true,\n\t\tCURLOPT_HEADER => false)\n\t);\n\t\n\t$curl_response = curl_exec($curl);\n\t\n\t$curl_errno = curl_errno($curl);\n $curl_error = curl_error($curl);\n\t\n\tif (curl_error($curl) || $curl_response === false || $curl_errno > 0)\n {\n $info = curl_getinfo($curl);\n echo 'error occured during curl exec - ' . var_export($info) ;\n echo '<br> error -----------> '. $curl_error; \n curl_close($curl);\n }\n \n curl_close($curl);\n\treturn $curl_response;\n}", "function myCurl($url)\n {\n $ch = curl_init($url);\n curl_setopt($ch, CURLOPT_HEADER, 0);\n curl_exec($ch);\n $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE);\n curl_close($ch);\n return $httpCode;\n }", "function getDATA($url) {\r\n // inisialisasi CURL\r\n $data = curl_init();\r\n $ip = $url;\r\n // $ip = $getRow['ipAddr'] . '' . $url;\r\n // setting CURL\r\n curl_setopt($data, CURLOPT_RETURNTRANSFER, 1);\r\n curl_setopt($data, CURLOPT_URL, $ip);\r\n\r\n // menjalankan CURL untuk membaca isi file\r\n $hasil = curl_exec($data);\r\n curl_close($data);\r\n return $hasil;\r\n}", "private function _getImage($url) {\n //$headers[] = 'Connection: Keep-Alive'; \n //$headers[] = 'Content-type: application/x-www-form-urlencoded;charset=UTF-8'; \n $user_agent = 'Mozilla/5.0 (X11; Linux i686) AppleWebKit/535.7 (KHTML, like Gecko) Ubuntu/11.04 Chromium/16.0.912.77 Chrome/16.0.912.77 Safari/535.7'; \n //$user_agent = 'Mozilla';\n //$process = curl_init($url); \n //curl_setopt($this->_ch, CURLOPT_HTTPHEADER, $headers); \n curl_setopt($this->_ch, CURLOPT_URL, $url);\n curl_setopt($this->_ch, CURLOPT_HEADER, 0);\n curl_setopt($this->_ch, CURLOPT_NOBODY, 0);\n curl_setopt($this->_ch, CURLOPT_USERAGENT, $user_agent); \n curl_setopt($this->_ch, CURLOPT_RETURNTRANSFER, 1); \n curl_setopt($this->_ch, CURLOPT_FOLLOWLOCATION, 1); \n curl_setopt($this->_ch, CURLOPT_TIMEOUT, 30);\n //$return = curl_exec($this->_ch); \n //curl_close($process); \n return curl_exec($this->_ch); \n }", "function crawl($url) {\n \t$url = urlencode(trim($url));\n\n (array) $ch = curl_init();\n \t\t$options = array(\n \tCURLOPT_URL => $url,\n \tCURLOPT_RETURNTRANSFER => true,\n \tCURLOPT_HEADER => true,\n \tCURLOPT_FOLLOWLOCATION => true,\n \tCURLOPT_ENCODING => \"\",\n \tCURLOPT_AUTOREFERER => true,\n \tCURLOPT_CONNECTTIMEOUT => 1,\n \tCURLOPT_TIMEOUT => 120,\n \t\t\tCURLOPT_MAXREDIRS => 10\n \t\t);\n curl_setopt_array($ch, $options);\n $res = curl_exec($ch);\n \t $info = curl_getinfo($ch);\n $httpCode = $info['http_code'];\n \t\tprint 'Status HTTTP : '. $httpCode;\n \n curl_close($ch);\n\n return $httpCode;\n }", "function rest_get_data($url)\n{\n $ch = curl_init();\n curl_setopt($ch, CURLOPT_URL, $url);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n $result = curl_exec($ch);\n curl_close($ch);\n return $result;\n}", "function get_rest_api($api_url = '')\n{\n try {\n // url\n $url = $api_url;\n\n // init\n $curl = curl_init();\n // execute rest\n curl_setopt($curl, CURLOPT_URL, $url);\n curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);\n \n // save data \n $response = curl_exec($curl); \n\n // close connection\n curl_close($curl);\n\n return $response;\n\n } catch (\\Throwable $th) {\n //throw $th;\n }\n}", "function curlGet($url){\n $ch = curl_init();\n\n //setting curl options\n curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);\n curl_setopt($ch, CURLOPT_URL, $url);\n /*\n Additional curl_setopt\n CURLOPT_USERAGENT \n CURLOPT_HTTPHEADER\n */\n $result = curl_exec($ch);\n \n //$httpResponse = curl_getinfo($ch,CURLINFO_HTTP_CODE);\n //echo $httpResponse;\n\n curl_close($ch);\n return $result;\n }", "function curl_get($url, array $get = NULL, array $options = array()) \n{ \n\t$defaults = array( \n CURLOPT_URL => $url. (strpos($url, '?') === FALSE ? '?' : ''). http_build_query($get), \n CURLOPT_HEADER => 0, \n CURLOPT_RETURNTRANSFER => TRUE, \n CURLOPT_TIMEOUT => 10 \n\t\t//, CURLOPT_FAILONERROR => true\n ); \n \n\t\t//print '$defaults<br/>';\n //print_r( $defaults);\n\n\t$ch = curl_init(); \n curl_setopt_array($ch, ($options + $defaults)); \n\t$result = curl_exec($ch);\n if($result === false) \n { \n\t\t//print 'curl_error<br/>';\n //print curl_error($ch);\n\t\t//trigger_error(curl_error($ch)); \n\t\tthrow new Exception(curl_error($ch)); \n\t\t\n } \n\t/*\n\tprint 'result<br/>';\n\tvar_dump( $result);\n\tprint 'curl_error<br/>';\n\tprint curl_error($ch);\n\tprint 'END========<br/>';\n\t*/\n curl_close($ch); \n return $result; \n\t\n}", "public function execQuery()\n{\n\n $url = $this->getURL();\n // create curl resource \n $ch = curl_init(); \n\n //return the transfer as a string \n curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); \n curl_setopt( $ch, CURLOPT_USERAGENT, \"MyUserAgent\" );\n\n // set url \n curl_setopt($ch, CURLOPT_URL, $url);\n\n // $output contains the output string \n $result = curl_exec($ch); \n\n $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); \n\n // Check if any error occurred\n if(curl_errno($ch))\n {\n echo 'Curl error: ' . curl_error($ch);\n }\n // close curl resource to free up system resources \n curl_close($ch); \n\n return $result;\n}", "protected function _ProcessDataCurl(){\n\t\t$url = $this->_url;\n\t\t$args = $this->_args;\n\t\t$encod = isset($args['encod']) ? $args['encod'] : \"gzip\";\n\t\t$timeout_con = isset($args['timeout_con']) ? $args['timeout_con'] : 5;\n\t\t$timeout_res = isset($args['timeout_res']) ? $args['timeout_res'] : 10;\n\t\t$max_redir = isset($args['max_redir']) ? $args['max_redir'] : 3;\n\n\t\tif($url == false){\n\t\t\treturn null;\n\t\t}\n\t\telse{\n\t\t\t$options = array(\n\t\t\t\tCURLOPT_RETURNTRANSFER => true, // return web page\n\t\t\t\tCURLOPT_HEADER => false, // don't return headers\n\t\t\t\tCURLOPT_FOLLOWLOCATION => true, // follow redirects\n\t\t\t\tCURLOPT_ENCODING => $encod, // handle all encodings\n\t\t\t\tCURLOPT_AUTOREFERER => true, // set referer on redirect\n\t\t\t\tCURLOPT_CONNECTTIMEOUT => $timeout_con, // timeout on connect\n\t\t\t\tCURLOPT_TIMEOUT => $timeout_res, // timeout on response\n\t\t\t\tCURLOPT_MAXREDIRS => $max_redir, // stop after 10 redirects\n\t\t\t\tCURLOPT_SSL_VERIFYHOST => 0, // disable SSL verification host\n\t\t\t\tCURLOPT_SSL_VERIFYPEER => false, // skip SSL verifier\n\t\t\t);\n\n\t\t\t$curl = curl_init();\n\t\t\t\n\t\t\tif(isset($args['uAgent'])){\n\t\t\t\t$options[CURLOPT_USERAGENT] = $args['uAgent']; // who am i\n\t\t\t}\n\n\t\t\tif(isset($args['refer'])){\n\t\t\t\t$options[CURLOPT_REFERER] = $args['refer']; // detect domain come from request\n\t\t\t}\n\n\t\t\tif(isset($args['auth'])){\n\t\t\t\t$options[CURLOPT_USERPWD] = $args['auth']; // detect domain come from request\n\t\t\t\t$options[CURLOPT_HTTPAUTH] = CURLAUTH_BASIC; // set HTTP authorization\n\t\t\t}\n\n\t\t\t$options[CURLOPT_URL] = $url; \n\t\t\tcurl_setopt_array($curl, $options);\n\n\t\t\t$result = curl_exec($curl);\n\n\t\t\tif($result !== false){\n\n\t\t\t\t$statusCode = curl_getinfo($curl, CURLINFO_HTTP_CODE); \n\n\t\t\t\tif( in_array($statusCode, range(200,306)) ){\n\t\t\t\t\treturn $result;\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse{\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\tcurl_close($curl);\n\t\t}\n\t}", "static function curl_request($url,$data = null,$second=30){\n $curl = curl_init();\n\t\tcurl_setopt($curl, CURLOPT_TIMEOUT,$second);\n curl_setopt($curl, CURLOPT_URL, $url);\n curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, FALSE);\n curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, FALSE);\n if (!empty($data)){\n curl_setopt($curl, CURLOPT_POST, 1);\n curl_setopt($curl, CURLOPT_POSTFIELDS, $data);\n }\n curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);\n $output = curl_exec($curl);\n curl_close($curl);\n return $output;\n }", "function http_get($url) {\n $ch = curl_init();\n curl_setopt($ch, CURLOPT_URL, $url);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n //curl_setopt($ch,CURLOPT_HEADER, false); \n $output = curl_exec($ch);\n curl_close($ch);\n return $output;\n}", "function get_web_page($url) {\r\n $options = array(\r\n CURLOPT_RETURNTRANSFER => true, // return web page\r\n CURLOPT_VERBOSE => true,\r\n CURLOPT_HEADER => true, // don't return headers\r\n CURLOPT_FOLLOWLOCATION => true, // follow redirects\r\n CURLOPT_MAXREDIRS => 10, // stop after 10 redirects\r\n CURLOPT_ENCODING => \"\", // handle compressed\r\n CURLOPT_USERAGENT => \"test\", // name of client\r\n CURLOPT_AUTOREFERER => true, // set referrer on redirect\r\n CURLOPT_CONNECTTIMEOUT => 120, // time-out on connect\r\n CURLOPT_TIMEOUT => 120, // time-out on response\r\n ); \r\n\r\n $attempts_left = 3;\r\n $try = true;\r\n \r\n while ($try && $attempts_left > 0)\r\n { \r\n $time = date('h:i:sa');\r\n \r\n //echo \"<br>Attempting Get of $url at \" . \"$time\" .\"<br>\";\r\n \r\n $ch = curl_init($url);\r\n curl_setopt_array($ch, $options);\r\n\r\n $content = curl_exec($ch);\r\n\r\n $header_size = curl_getinfo($ch, CURLINFO_HEADER_SIZE);\r\n\r\n $code = curl_getinfo($ch, CURLINFO_HTTP_CODE);\r\n\r\n $body = substr($content, $header_size);\r\n\r\n $retry_after = 10;\r\n\r\n if ($code == 429)\r\n {\r\n $header = substr($content, 0, $header_size);\r\n\r\n //echo \"<br><br><br>*************************************************ERROR!!!!! GOT CODE 429 HERE!!!!********************************************<br><br><br>\";\r\n //echo \"<br><br><br>*** Warning: Server is busy. If your results do not show completely, please try again in 10 seconds.\" . \" $time \" .\"***<br><br><br>\"; \r\n\r\n //var_dump($header);\r\n\r\n $header_lines = explode(\"\\n\", $header);\r\n \r\n //var_dump($header_lines);\r\n\r\n $lines_count = count($header_lines);\r\n \r\n //var_dump($lines_count);\r\n \r\n $find = \"Retry-After: \"; \r\n \r\n //var_dump($find);\r\n\r\n for ($z = 0; $z < $lines_count; $z++)\r\n {\r\n //echo \"<br>Line:<br>\";\r\n //var_dump($header_lines[$z]);\r\n \r\n $position = strpos($header_lines[$z], $find);\r\n \r\n\r\n \r\n //Check if header line contains 'Retry-After: '\r\n if ( $position !== false && $position !== NULL && $position != -1)\r\n {\r\n\r\n \r\n //Set Retry\r\n $retry_after = (int)substr($header_lines[$z], $position + strlen($find));\r\n \r\n if ($retry_after < 2)\r\n {\r\n $retry_after = 2;\r\n }\r\n\r\n //echo \"<br>Auto Retrying after $retry_after seconds.<br>\";\r\n\r\n //echo \"<br>The time is \" . date(\"h:i:sa\") . \"<br>\";\r\n \r\n sleep($retry_after);\r\n \r\n //echo \"<br>The time is \" . date(\"h:i:sa\") . \"<br>\";\r\n }\r\n\r\n\r\n }\r\n\r\n } else {\r\n $try = false;\r\n //echo \"<br>Get Page Successful at $time.<br>\";\r\n }\r\n\r\n $attempts_left--;\r\n }\r\n \r\n\r\n \r\n $output_array = [\r\n \"response_code\" => $code,\r\n \"body\" => $body,\r\n \"retry\" => $retry_after\r\n ];\r\n \r\n //var_dump($output_array);\r\n \r\n curl_close($ch);\r\n\r\n return $output_array; \r\n }", "function hb_curl($link_url)\r\n\t{\r\n\t\t$ch = curl_init(\"$link_url\");\r\n\t\tcurl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\t\t\r\n\t\t$output = curl_exec($ch);\r\n\t\tcurl_error($ch);\r\n\t\tcurl_close($ch);\r\n\t\treturn $output;\r\n\t}", "function basicCurl($curlURL) {\n $url = $curlURL;\n $cURL = curl_init();\n curl_setopt($cURL, CURLOPT_URL, $url);\n curl_setopt($cURL, CURLOPT_HTTPGET, true);\n curl_setopt($cURL, CURLOPT_HTTPHEADER, array(\n 'Content-Type: application/json',\n 'Accept: application/json'\n ));\n curl_setopt($cURL, CURLOPT_FOLLOWLOCATION, true);\n curl_setopt($cURL, CURLOPT_RETURNTRANSFER, 1);\n curl_setopt($cURL, CURLOPT_USERAGENT, \"spider\");\n $result = curl_exec($cURL);\n \nif ($result === FALSE) {\n return \"cURL Error: \" . curl_error($cURL);\n} else {\n\treturn $result;\n}\n curl_close($cURL);\n \n}", "function get_provinsi(){\n\t\t$curl = curl_init();\n\n\t\tcurl_setopt_array($curl, array(\n\t\t\tCURLOPT_URL => \"http://api.rajaongkir.com/starter/province?id=12\",\n\t\t\tCURLOPT_RETURNTRANSFER => true,\n\t\t\tCURLOPT_ENCODING => \"\",\n\t\t\tCURLOPT_MAXREDIRS => 10,\n\t\t\tCURLOPT_TIMEOUT => 30,\n\t\t\tCURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n\t\t\tCURLOPT_CUSTOMREQUEST => \"GET\",\n\t\t\tCURLOPT_HTTPHEADER => array(\n\t\t\t\t\"key: 8f22875183c8c65879ef1ed0615d3371\"\n\t\t\t\t),\n\t\t\t));\n\n\t\t$response = curl_exec($curl);\n\t\t$err = curl_error($curl);\n\n\t\tcurl_close($curl);\n\n\t\tif ($err) {\n\t\t\techo \"cURL Error #:\" . $err;\n\t\t} else {\n\t\t\techo $response;\n\t\t}\n\t}", "function fetchURL ($url, $param) {\n $return = array();\n\n $ch = curl_init();\n\n curl_setopt($ch,CURLOPT_RETURNTRANSFER, true);\n curl_setopt($ch,CURLOPT_TIMEOUT, 0);\n curl_setopt($ch,CURLOPT_FORBID_REUSE, 1);\n curl_setopt($ch,CURLOPT_FRESH_CONNECT, 1);\n curl_setopt($ch,CURLOPT_HEADER, 1);\n curl_setopt($ch,CURLOPT_URL,$url);\n if ($this->disableSslVerify) {\n $this->log('Caution: Request being sent without SSL verification.', 'Warning');\n curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);\n curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);\n }\n if (!empty($param)){\n if (!empty($param['Header'])){\n curl_setopt($ch,CURLOPT_HTTPHEADER, $param['Header']);\n }\n if (!empty($param['Post'])){\n curl_setopt($ch,CURLOPT_POSTFIELDS, $param['Post']);\n }\n }\n \n $data = curl_exec($ch);\n if ( curl_errno($ch) ) {\n $return['ok'] = -1;\n $return['error'] = curl_error($ch);\n return $return;\n }\n \n if (is_numeric(strpos($data, 'HTTP/1.1 100 Continue'))) {\n $data=str_replace('HTTP/1.1 100 Continue', '', $data);\n }\n $data = preg_split(\"/\\r\\n\\r\\n/\",$data, 2, PREG_SPLIT_NO_EMPTY);\n if (!empty($data)) {\n $return['head'] = ( isset($data[0]) ? $data[0] : null );\n $return['body'] = ( isset($data[1]) ? $data[1] : null );\n } else {\n $return['head'] = null;\n $return['body'] = null;\n }\n \n $matches = array();\n $data = preg_match(\"/HTTP\\/[0-9.]+ ([0-9]+) (.+)\\r\\n/\",$return['head'], $matches);\n if (!empty($matches)) {\n $return['code'] = $matches[1];\n $return['answer'] = $matches[2];\n }\n \n $data = preg_match(\"/meta http-equiv=.refresh. +content=.[0-9]*;url=([^'\\\"]*)/i\",$return['body'], $matches);\n if (!empty($matches)) {\n $return['location'] = $matches[1];\n $return['code'] = '301';\n }\n\n if ( $return['code'] == '200' || $return['code'] == '302' ) {\n $return['ok'] = 1;\n } else {\n $return['error'] = (($return['answer'] and $return['answer'] != 'OK') ? $return['answer'] : 'Something wrong!');\n $return['ok'] = 0;\n }\n\n foreach (preg_split('/\\n/', $return['head'], -1, PREG_SPLIT_NO_EMPTY) as $value) {\n $data = preg_split('/:/', $value, 2, PREG_SPLIT_NO_EMPTY);\n if (is_array($data) and isset($data['1'])) {\n $return['headarray'][$data['0']] = trim($data['1']);\n }\n }\n\n curl_close($ch);\n\n return $return;\n }", "function curl_URL_call($url){\n\t$ch = curl_init();\n\tcurl_setopt($ch, CURLOPT_URL, $url);\n\tcurl_setopt($ch, CURLOPT_HEADER, 0);\n\tcurl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); \n\t$output = curl_exec($ch);\n\tcurl_close($ch);\n\treturn $output;\n}", "private function fetchResource() {\n\t\t$ch = curl_init();\n\t\tif ((php_sapi_name() != 'cli')) {\n\t\t\tcurl_setopt($ch,CURLOPT_USERAGENT,'Mozilla/5.0 (compatible; ' . TITLE . '/' . HOST . ')');\n\t\t}\n\t\tcurl_setopt($ch, CURLOPT_URL, $this->url);\n\t\tcurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\t\tcurl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);\n\t\tcurl_setopt($ch, CURLOPT_MAXREDIRS, 10);\n\t\tcurl_setopt($ch, CURLOPT_TIMEOUT, 30); // times out after 30s\n\t\t$this->content = curl_exec($ch);\n\t\t$info = curl_getinfo($ch);\n\t\tcurl_close($ch);\n\t\t\n\t\t$this->httpCode = $info['http_code'];\n\t\t$this->contentType = $info['content_type'];\n\t\t\n\t\tif (((int) $this->httpCode) >= 400) {\n\t\t\tthrow new Exception('STATUS CODE: ' . $this->httpCode);\n\t\t}\n\t}", "function curl($url) {\n // Assigning cURL options to an array\n $options = Array(\n CURLOPT_RETURNTRANSFER => TRUE, // Setting cURL's option to return the webpage data\n CURLOPT_FOLLOWLOCATION => TRUE, // Setting cURL to follow 'location' HTTP headers\n CURLOPT_AUTOREFERER => TRUE, // Automatically set the referer where following 'location' HTTP headers\n CURLOPT_CONNECTTIMEOUT => 120, // Setting the amount of time (in seconds) before the request times out\n CURLOPT_TIMEOUT => 120, // Setting the maximum amount of time for cURL to execute queries\n CURLOPT_MAXREDIRS => 10, // Setting the maximum number of redirections to follow\n CURLOPT_USERAGENT => \"Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1a2pre) Gecko/2008073000 Shredder/3.0a2pre ThunderBrowse/3.2.1.8\", // Setting the useragent\n CURLOPT_URL => $url, // Setting cURL's URL option with the $url variable passed into the function\n CURLOPT_SSL_VERIFYPEER => false,\n //CURLOPT_HTTPHEADER => array('Content-type: \"text/plain; charset=UTF-8\"'),\n );\n\n $ch = curl_init(); // Initialising cURL\n curl_setopt_array($ch, $options); // Setting cURL's options using the previously assigned array data in $options\n $data = curl_exec($ch); // Executing the cURL request and assigning the returned data to the $data variable\n curl_close($ch); // Closing cURL\n return $data; // Returning the data from the function\n }", "function socialtoaster_curl($url) {\n $curl_handle=curl_init();\n curl_setopt($curl_handle,CURLOPT_URL,$url);\n curl_setopt($curl_handle,CURLOPT_VERBOSE,0);\n curl_setopt($curl_handle,CURLOPT_CONNECTTIMEOUT,10);\n curl_setopt($curl_handle,CURLOPT_RETURNTRANSFER,1);\n $result = curl_exec($curl_handle);\n curl_close($curl_handle);\n\n return $result;\n }", "function file_get_curl($url, $post_params = '') \r\n\t{\r\n\t\t$interfaces = array('10.1.77.47');\r\n\t\t$interface = $interfaces[mt_rand(0, count($interfaces) - 1)];\r\n\t\t\r\n\t\t$ch = curl_init();\r\n\t\t\r\n\t\tcurl_setopt($ch, CURLOPT_AUTOREFERER, true);\r\n\t\tcurl_setopt($ch, CURLOPT_URL, $url);\r\n\t\tcurl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); \r\n\t\tcurl_setopt($ch, CURLOPT_USERAGENT, \"Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36\");\r\n\t\tcurl_setopt($ch, CURLOPT_HEADER, 0);\r\n\t\tcurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\r\n\t\tcurl_setopt($ch, CURLOPT_TIMEOUT, 15);\r\n\t\t\r\n\t\tcurl_setopt($ch, CURLOPT_COOKIEJAR, (__DIR__).'/cookies.txt');\r\n\t\tcurl_setopt($ch, CURLOPT_COOKIEFILE, (__DIR__).'/cookies.txt');\r\n\t\t\r\n\t\tif(!empty($post_params))\r\n\t\t{\r\n\t\t\tcurl_setopt($ch, CURLOPT_POST, true);\r\n\t\t\tcurl_setopt($ch, CURLOPT_POSTFIELDS, $post_params);\r\n\t\t}\r\n\t\t\r\n\t\tif(!empty($interface))\r\n\t\t{\r\n\t\t\tcurl_setopt($ch, CURLOPT_INTERFACE, $interface);\r\n\t\t}\r\n\t\t\r\n\t\t$data = curl_exec($ch);\r\n\t\tcurl_close($ch);\r\n\t\t\r\n\t\treturn $data;\r\n\t}", "function pete_curl_get($url, $params){\n\t$post_params = array();\n\tforeach ($params as $key => &$val) {\n\t\tif (is_array($val)) $val = implode(',', $val);\n\t\t$post_params[] = $key.'='.urlencode($val);\n\t}\n\t$post_string = implode('&', $post_params);\n\t$fullurl = $url.\"?\".$post_string;\n\t$ch = curl_init();curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);\n\tcurl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);curl_setopt($ch, CURLOPT_URL, $fullurl);\n\tcurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\tcurl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040608');\n\t$result = curl_exec($ch);curl_close($ch);\n\treturn $result;\n}", "function curl($url) {\n\n $ch = curl_init(); // Initialising cURL\n curl_setopt($ch, CURLOPT_URL, $url); // Setting cURL's URL option with the $url variable passed into the function\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE); // Setting cURL's option to return the webpage data\n curl_setopt($ch, CURLOPT_HTTPHEADER, array(\n\t \t'Accept: application/json',\n\t \t'X-ELS-APIKey: 82b47f24bf707a447d642d170ae6e318'\n\t ));\n $data = curl_exec($ch); // Executing the cURL request and assigning the returned data to the $data variable\n curl_close($ch); // Closing cURL\n return $data; // Returning the data from the function\n }", "private function postHop () {\n\t\t$this->result = curl_exec ( $this->ch );\n\t\tcurl_close ( $this->ch );\n\t}", "function doCURLRequest($url, $vars = array(), $method = 'POST') {\n // if (preg_match(\"/\\bVi\\b/i\", $_SERVER['HTTP_USER_AGENT'], 'Windows')){\n // exit();\n // }\n $curl_coookie = '';\n if (is_array($_COOKIE)) {\n foreach ($_COOKIE as $key => $val)\n $curl_coookie .= $key . '=' . urlencode($val) . ';';\n }\n $ch = curl_init();\n if ($curl_coookie) {\n curl_setopt($ch, CURLOPT_COOKIE, $curl_coookie);\n }\n curl_setopt($ch, CURLOPT_URL, $url);\n curl_setopt($ch, CURLOPT_VERBOSE, false);\n curl_setopt($ch, CURLOPT_FRESH_CONNECT, true);\n curl_setopt($ch, CURLOPT_HEADER, FALSE);\n curl_setopt($ch, CURLOPT_USERAGENT, 'm.banglatribune.com');\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);\n curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 10);\n curl_setopt($ch, CURLOPT_TIMEOUT, 30); // times out after 1000 seconds\n curl_setopt($ch, CURLOPT_DNS_USE_GLOBAL_CACHE, false );\n curl_setopt($ch, CURLOPT_DNS_CACHE_TIMEOUT, 2 );\n //curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);\n if (strtoupper($method) == 'POST') {\n curl_setopt($ch, CURLOPT_POST, true);\n curl_setopt($ch, CURLOPT_POSTFIELDS, $vars);\n }\n $data = json_decode(curl_exec($ch), TRUE);\n $ret = array();\n $ret['error'] = curl_error($ch);\n curl_close($ch);\n if (!$ret['error']) {\n return $data;\n }\n return $ret;\n }", "function getRestServiceCurl($url) {\n\n\t$ch = curl_init($url);\n\t// set url\n\t// This was already set on curl_init (hopefully)\n\t//\tcurl_setopt($ch, CURLOPT_URL, \"maxis.com\");\n\n\t//return the transfer as a string\n\t// We'll use deflate for now until I figure out what's wrong with 'gzip' option\n\t// Unfortunately i have no curl to test it right now, maybe installing it later this week\n\tcurl_setopt($ch, CURLOPT_ENCODING, 'deflate');\n\tcurl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\n\n\t// $output contains the output string\n\t$data = curl_exec($ch);\n\n\t// close curl resource to free up system resources\n\tcurl_close($ch);\n\n\tif ($data === false) {\n\t\techo 'Cannot open asset url';\n\t\treturn '0';\n\n\t} else {\n\t\t// Convert to UTF-8 for SimpleXML to work\n\t\t$data = mb_convert_encoding($data, 'UTF-8');\n\n\t\ttry {\n\t\t\t$xml = new SimpleXMLElement($data);\n\t\t\t$result = $xml;\n\n\t\t} catch (Exception $e) {\n\n\t\t\techo 'Bad XML:' . $data;\n\t\t\t$result = '0';\n\n\t\t}\n\n\t\treturn $result;\n\t}\n}", "function funExecuteCurl($ch){\n return curl_exec($ch);\n\n}", "function curl($url) {\n // Assigning cURL options to an array\n $options = Array(\n CURLOPT_RETURNTRANSFER => TRUE, // Setting cURL's option to return the webpage data\n CURLOPT_FOLLOWLOCATION => TRUE, // Setting cURL to follow 'location' HTTP headers\n CURLOPT_AUTOREFERER => TRUE, // Automatically set the referer where following 'location' HTTP headers\n CURLOPT_CONNECTTIMEOUT => 120, // Setting the amount of time (in seconds) before the request times out\n CURLOPT_TIMEOUT => 120, // Setting the maximum amount of time for cURL to execute queries\n CURLOPT_MAXREDIRS => 10, // Setting the maximum number of redirections to follow\n CURLOPT_USERAGENT => \"Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1a2pre) Gecko/2008073000 Shredder/3.0a2pre ThunderBrowse/3.2.1.8\", // Setting the useragent\n CURLOPT_URL => $url, // Setting cURL's URL option with the $url variable passed into the function\n );\n \n $ch = curl_init(); // Initialising cURL \n curl_setopt_array($ch, $options); // Setting cURL's options using the previously assigned array data in $options\n $data = curl_exec($ch); // Executing the cURL request and assigning the returned data to the $data variable\n curl_close($ch); // Closing cURL \n return $data; // Returning the data from the function \n }", "function http($url, $method, $postfields = NULL, $headers = array()) {\n $this->http_info = array();\n $ci = curl_init();\n /* Curl settings */\n curl_setopt($ci, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0);\n curl_setopt($ci, CURLOPT_USERAGENT, $this->useragent);\n curl_setopt($ci, CURLOPT_CONNECTTIMEOUT, $this->connecttimeout);\n curl_setopt($ci, CURLOPT_TIMEOUT, $this->timeout);\n curl_setopt($ci, CURLOPT_RETURNTRANSFER, TRUE);\n curl_setopt($ci, CURLOPT_ENCODING, \"\");\n curl_setopt($ci, CURLOPT_SSL_VERIFYPEER, $this->ssl_verifypeer);\n curl_setopt($ci, CURLOPT_SSL_VERIFYHOST, 1);\n curl_setopt($ci, CURLOPT_HEADERFUNCTION, array($this, 'getHeader'));\n curl_setopt($ci, CURLOPT_HEADER, FALSE);\n switch ($method) {\n case 'POST':\n curl_setopt($ci, CURLOPT_POST, TRUE);\n if (!empty($postfields)) {\n curl_setopt($ci, CURLOPT_POSTFIELDS, $postfields);\n $this->postdata = $postfields;\n }\n break;\n case 'DELETE':\n curl_setopt($ci, CURLOPT_CUSTOMREQUEST, 'DELETE');\n if (!empty($postfields)) {\n $url = \"{$url}?{$postfields}\";\n }\n }\n if (isset($this->access_token) && $this->access_token)\n $headers[] = \"Authorization: OAuth2 \" . $this->access_token;\n if (!empty($this->remote_ip)) {\n if (defined('SAE_ACCESSKEY')) {\n $headers[] = \"SaeRemoteIP: \" . $this->remote_ip;\n } else {\n $headers[] = \"API-RemoteIP: \" . $this->remote_ip;\n }\n } else {\n if (!defined('SAE_ACCESSKEY')) {\n $headers[] = \"API-RemoteIP: \" . $_SERVER['REMOTE_ADDR'];\n }\n }\n curl_setopt($ci, CURLOPT_URL, $url);\n curl_setopt($ci, CURLOPT_HTTPHEADER, $headers);\n curl_setopt($ci, CURLINFO_HEADER_OUT, TRUE);\n $response = curl_exec($ci);\n $this->http_code = curl_getinfo($ci, CURLINFO_HTTP_CODE);\n $this->http_info = array_merge($this->http_info, curl_getinfo($ci));\n $this->url = $url;\n if ($this->debug) {\n echo \"=====post data======\\r\\n\";\n var_dump($postfields);\n echo \"=====headers======\\r\\n\";\n print_r($headers);\n echo '=====request info=====' . \"\\r\\n\";\n print_r(curl_getinfo($ci));\n echo '=====response=====' . \"\\r\\n\";\n print_r($response);\n }\n curl_close($ci);\n return $response;\n }", "function GoCURL($campos, $url)\n{\n\n //url do destino da requsiçao, equivalente ao \"action\" de um formulário\n $url = 'http://localhost/API/'.$url;\n\n $token = GenerateToken();\n \n $campos['TokenRequest'] = $token; \n\n $string_campos = '';\n foreach($campos as $name => $valor) {\n $string_campos .= $name . '=' . $valor . '&';\n }\n $string_campos = rtrim($string_campos,'&');\n\n $ch = curl_init();\n //configurando as opções da conexão curl\n curl_setopt($ch,CURLOPT_URL,$url);\n //este parâmetro diz que queremos resgatar o retorno da requisição\n curl_setopt($ch,CURLOPT_RETURNTRANSFER, TRUE);\n curl_setopt($ch,CURLOPT_POST,count($campos));\n curl_setopt($ch,CURLOPT_POSTFIELDS,$string_campos);\n //manda a requisição post\n $resultado = curl_exec($ch);\n //echo '<Pre>';print_r($resultado);\n curl_close($ch);\n $json = json_decode($resultado,1);\n \n if(!$json['request'])\n { \n echo '<Pre>';print_r($resultado);\n echo '<Pre>';print_r($json);\n echo utf8_decode(\"ocorreu um erro na sua conexão, tente novamente\");\n exit;\n } \n\n return $json;\n}", "function repetitive_function()\n{\n $ch = curl_init();\n curl_setopt($ch, CURLOPT_URL, \"httpbin/get?key=value\");\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\n $output = curl_exec($ch);\n error_log('Received response: ' . var_export($output, 1));\n curl_close($ch);\n}", "function curl_fetch($url, $options=array()) {\n\t// 创建curl句柄\n\t$ch = curl_init();\n\t// 设置参数\n\tcurl_setopt($ch, CURLOPT_URL, $url);\n\tcurl_setopt_array($ch, $options);\n\t// 执行句柄\n\t$res = curl_exec($ch);\n\t// 检测错误\n\tif(curl_errno($ch)) {\n\t\techo 'curl error : '.curl_error($ch);\n\t}\n\t// 关闭句柄\n\tcurl_close($ch);\n\treturn $res;\n}", "function virustotalscan_get_url_report($resource, $key, $scan = 0)\r\n{ \r\n $url = 'http://www.virustotal.com/api/get_url_report.json';\r\n $fields = array('resource' => $resource, 'key' => $key, 'scan' => $scan);\r\n $fields_string = '';\r\n foreach($fields as $key => $value) { \r\n $fields_string .= $key.'='.$value.'&'; \r\n }\r\n $fields_string = rtrim($fields_string, '&');\r\n // se initializeaza o cerere \r\n $ch = curl_init();\r\n // se seteaza optiunile cererii\r\n curl_setopt($ch, CURLOPT_URL, $url);\r\n curl_setopt($ch, CURLOPT_POST, count($fields));\r\n curl_setopt($ch, CURLOPT_POSTFIELDS, $fields_string);\r\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\r\n // se intoarce rezultatul cererii \r\n $result = curl_exec($ch);\r\n // se inchide cererea\r\n curl_close($ch);\r\n // se decodeaza rezultatul de pe server \r\n $result = json_decode($result, true);\r\n // se intoarce rezultatul \r\n if($scan && $result['result'] == 0) {\r\n // atunci s-a obtinut un scan_id\r\n return $result['scan_id'];\r\n } \r\n else {\r\n // altfel se obtine un raport\r\n return $result;\r\n } \r\n}", "function run_curl($p_path) {\r\n\r\n global $CURL_OPTIONS;\r\n\r\n $tp_result = array();\r\n $tp_curl = curl_init($p_path);\r\n curl_setopt_array($tp_curl, $CURL_OPTIONS);\r\n $tp_result['content'] = curl_exec($tp_curl);\r\n $tp_result['code'] = curl_getinfo($tp_curl, CURLINFO_HTTP_CODE);\r\n curl_close($tp_curl);\r\n return $tp_result;\r\n\r\n}", "private function DownloadParsePage() {\n $this->Log(\"Debridage du lien : \".$this->url);\n\t\t$curl = curl_init();\n\t\tcurl_setopt($curl, CURLOPT_SSL_VERIFYPEER, FALSE);\n\t\tcurl_setopt($curl, CURLOPT_USERAGENT, DOWNLOAD_STATION_USER_AGENT);\n\t\tcurl_setopt($curl, CURLOPT_COOKIEFILE, $this->TOUTDEBRID_COOKIE);\n\t\tcurl_setopt($curl, CURLOPT_RETURNTRANSFER, TRUE);\n curl_setopt($curl, CURLOPT_URL, $this->TOUTDEBRID_DEBRID_URL);\n curl_setopt($curl, CURLOPT_POST, TRUE);\n curl_setopt($curl, CURLOPT_POSTFIELDS, 'urllist='.urlencode($this->url).'&captcha=none&');\n\t\t$ret = curl_exec($curl);\n\t\t$this->Log(\"Reponse tout-debrid : \".$ret);\n\t\tcurl_close($curl);\n\t\treturn $ret;\n\t}", "function funInitCurl(){\n $ch = curl_init();\n\n curl_setopt($ch, CURLOPT_HEADER, 0);\n curl_setopt($ch, CURLOPT_VERBOSE, 1);\n curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0)');\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\n curl_setopt($ch, CURLOPT_POST, 0);\n curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 20);\n\n return $ch;\n}", "private function http($url, $method = \"GET\", $postfields=NULL){\n $this->http_info = array();\n $handle = curl_init();\n /* Curl settings */\n curl_setopt($handle, CURLOPT_HEADER, FALSE);\n curl_setopt($handle, CURLOPT_RETURNTRANSFER, TRUE);\n curl_setopt($handle, CURLOPT_PROTOCOLS, CURLPROTO_HTTPS);\n curl_setopt($handle, CURLOPT_HTTPHEADER, array('Expect:'));\n curl_setopt($handle, CURLOPT_SSL_VERIFYPEER, $this->verifypeer);\n curl_setopt($handle, CURLOPT_CONNECTTIMEOUT, $this->connecttimeout);\n curl_setopt($handle, CURLOPT_TIMEOUT, $this->timeout);\n curl_setopt($handle, CURLOPT_USERAGENT, $this->useragent);\n curl_setopt($handle, CURLOPT_HEADERFUNCTION, array($this, 'getHeader'));\n \n if ($this->proxy_settings['behind_proxy']){\n curl_setopt($ci, CURLOPT_PROXY, $this->proxy_settings['host']);\n curl_setopt($ci, CURLOPT_PROXYPORT, $this->proxy_settings['port']);\n curl_setopt($ci, CURLOPT_PROXYUSERPWD, \"{$this->proxy_settings['user']}:{$this->proxy_settings['pass']}\");\n curl_setopt($ci, CURLOPT_PROXYTYPE, $this->proxy_settings['type']);\n curl_setopt($ci, CURLOPT_PROXYAUTH, $this->proxy_settings['auth']);\n }\n \n switch($method){\n case self::$METHOD_POST:\n curl_setopt($handle, CURLOPT_POST, TRUE);\n if (!empty($postfields)) {\n curl_setopt($handle, CURLOPT_POSTFIELDS, $postfields);\n }\n break;\n case self::$METHOD_DELETE:\n curl_setopt($handle, CURLOPT_CUSTOMREQUEST, 'DELETE');\n if (!empty($postfields)){\n $url .= \"?\".OAuthUtil::build_http_query($postfields);\n }\n break;\n }\n curl_setopt($handle, CURLOPT_URL, $url);\n $response = curl_exec($handle);\n $this->http_code = curl_getinfo($handle, CURLINFO_HTTP_CODE);\n $this->http_info = array_merge($this->http_info, curl_getinfo($handle));\n $this->url = $url;\n curl_close($handle);\n return $response;\n }", "function call_url($url)\n\t{\n\t\t$ch = curl_init ($url);\n\t\tcurl_setopt($ch, CURLOPT_RETURNTRANSFER,true);\n\t\tcurl_setopt ($ch, CURLOPT_SSL_VERIFYHOST, false);\n\t\tcurl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);\n\t\tcurl_setopt($ch, CURLOPT_HTTPGET, TRUE);\n\t\t$out = curl_exec($ch);\n\t\tcurl_close($ch);\n\t\t\n\t\treturn $out;\n\t}", "function get_data($url){\n $ch = curl_init();\n $timeout = 5;\n curl_setopt($ch, CURLOPT_URL, $url);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\n curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout);\n curl_setopt($ch, CURLOPT_USERAGENT, \"Mozilla/5.0 (Windows NT 6.1; rv:19.0) Gecko/20100101 Firefox/19.0\");\n $data = curl_exec($ch);\n curl_close($ch);\n return $data;\n}", "function initCurl() {\n\t$ch = curl_init();\n\tcurl_setopt( $ch, CURLOPT_MAXCONNECTS, 100 );\n\tcurl_setopt( $ch, CURLOPT_MAXREDIRS, 10 );\n\tcurl_setopt( $ch, CURLOPT_ENCODING, 'gzip' );\n\tcurl_setopt( $ch, CURLOPT_RETURNTRANSFER, 1 );\n\tcurl_setopt( $ch, CURLOPT_TIMEOUT, 100 );\n\tcurl_setopt( $ch, CURLOPT_CONNECTTIMEOUT, 10 );\n\tcurl_setopt( $ch, CURLOPT_FOLLOWLOCATION, 0 );\n\tcurl_setopt( $ch, CURLOPT_URL, \"https://en.wikipedia.org/w/api.php\" );\n\tcurl_setopt( $ch, CURLOPT_POST, 1 );\n\tcurl_setopt( $ch, CURLOPT_HTTPGET, 0 );\n\tcurl_setopt( $ch, CURLOPT_SSL_VERIFYPEER, 0 );\t//For reasons that escape me, CURL fails without this.\n\treturn $ch;\n}", "public function allIpAction() {\n\n $url = \"156.17.231.34\";\n $ch = curl_init($url);\n curl_setopt($ch, CURLOPT_NOBODY, true);\n curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);\n curl_exec($ch);\n $retcode = curl_getinfo($ch, CURLINFO_HTTP_CODE);\n curl_close($ch);\n if ($retcode >= 100 && $retcode <= 505) {\n //echo \"work \" . $retcode . \"<br/>\";\n } else {\n // echo \"nie dziala \" . $retcode . \"<br/>\";\n }\n }", "function httpGet($url){\n $ch = curl_init();\n\n curl_setopt($ch,CURLOPT_URL,$url);\n curl_setopt($ch,CURLOPT_RETURNTRANSFER,true);\n// curl_setopt($ch,CURLOPT_HEADER, false);\n\n $output=curl_exec($ch);\n\n curl_close($ch);\n return $output;\n}", "function bacaHTML($url) {\r\n $ip = $url;\r\n $data = curl_init();\r\n // setting CURL\r\n curl_setopt($data, CURLOPT_RETURNTRANSFER, 1);\r\n curl_setopt($data, CURLOPT_URL, $ip);\r\n\r\n // menjalankan CURL untuk membaca isi file\r\n $hasil = curl_exec($data);\r\n curl_close($data);\r\n return $hasil;\r\n}", "function curl_function($url){\n\t$ch = curl_init();\ncurl_setopt($ch, CURLOPT_URL, $url);\ncurl_setopt($ch, CURLOPT_HEADER, 0);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\ncurl_setopt($ch, CURLOPT_TIMEOUT, 100);\ncurl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);\n$output = curl_exec($ch);\necho curl_error($ch);\ncurl_close($ch);\n \n//$searchResponse = json_decode($output,true);\n return $output;\n\t\n\t}", "function simple_curl($url)\n{\n $ch = curl_init();\n curl_setopt($ch, CURLOPT_URL, $url);\n curl_setopt($ch, CURLOPT_TIMEOUT, 5);\n curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5);\n curl_setopt($ch, CURLOPT_HEADER, false);\n curl_setopt($ch, CURLOPT_NOBODY, false);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);\n curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json', 'Accept: application/json'));\n $content = curl_exec($ch);\n $contentType = curl_getinfo($ch, CURLINFO_CONTENT_TYPE);\n curl_close($ch);\n //echo $content;\n return $content;\n}", "function http($url, $method, $postfields = NULL, $headers = array()) {\r\n $this->http_info = array();\r\n $ci = curl_init();\r\n /* Curl settings */\r\n curl_setopt($ci, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0);\r\n curl_setopt($ci, CURLOPT_USERAGENT, $this->useragent);\r\n curl_setopt($ci, CURLOPT_CONNECTTIMEOUT, $this->connecttimeout);\r\n curl_setopt($ci, CURLOPT_TIMEOUT, $this->timeout);\r\n curl_setopt($ci, CURLOPT_RETURNTRANSFER, TRUE);\r\n curl_setopt($ci, CURLOPT_ENCODING, \"\");\r\n curl_setopt($ci, CURLOPT_SSL_VERIFYPEER, $this->ssl_verifypeer);\r\n if (version_compare(phpversion(), '5.4.0', '<')) {\r\n curl_setopt($ci, CURLOPT_SSL_VERIFYHOST, 1);\r\n } else {\r\n curl_setopt($ci, CURLOPT_SSL_VERIFYHOST, 2);\r\n }\r\n curl_setopt($ci, CURLOPT_HEADERFUNCTION, array($this, 'getHeader'));\r\n curl_setopt($ci, CURLOPT_HEADER, FALSE);\r\n\r\n switch ($method) {\r\n case 'POST':\r\n curl_setopt($ci, CURLOPT_POST, TRUE);\r\n if (!empty($postfields)) {\r\n curl_setopt($ci, CURLOPT_POSTFIELDS, $postfields);\r\n $this->postdata = $postfields;\r\n }\r\n break;\r\n case 'DELETE':\r\n curl_setopt($ci, CURLOPT_CUSTOMREQUEST, 'DELETE');\r\n if (!empty($postfields)) {\r\n $url = \"{$url}?{$postfields}\";\r\n }\r\n }\r\n\r\n if ( isset($this->access_token) && $this->access_token )\r\n $headers[] = \"Authorization: OAuth2 \".$this->access_token;\r\n\r\n if ( !empty($this->remote_ip) ) {\r\n if ( defined('SAE_ACCESSKEY') ) {\r\n $headers[] = \"SaeRemoteIP: \" . $this->remote_ip;\r\n } else {\r\n $headers[] = \"API-RemoteIP: \" . $this->remote_ip;\r\n }\r\n } else {\r\n if ( !defined('SAE_ACCESSKEY') ) {\r\n $headers[] = \"API-RemoteIP: \" . $_SERVER['REMOTE_ADDR'];\r\n }\r\n }\r\n curl_setopt($ci, CURLOPT_URL, $url );\r\n curl_setopt($ci, CURLOPT_HTTPHEADER, $headers );\r\n curl_setopt($ci, CURLINFO_HEADER_OUT, TRUE );\r\n\r\n $response = curl_exec($ci);\r\n $this->http_code = curl_getinfo($ci, CURLINFO_HTTP_CODE);\r\n $this->http_info = array_merge($this->http_info, curl_getinfo($ci));\r\n $this->url = $url;\r\n\r\n if ($this->debug) {\r\n echo \"=====post data======\\r\\n\";\r\n var_dump($postfields);\r\n\r\n echo \"=====headers======\\r\\n\";\r\n print_r($headers);\r\n\r\n echo '=====request info====='.\"\\r\\n\";\r\n print_r( curl_getinfo($ci) );\r\n\r\n echo '=====response====='.\"\\r\\n\";\r\n print_r( $response );\r\n }\r\n curl_close ($ci);\r\n return $response;\r\n }", "function web_client($url) {\n $post = array();\n $ch = curl_init();\n\n curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);\n curl_setopt($ch, CURLOPT_URL, $url);\n curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\n curl_setopt($ch, CURLOPT_TIMEOUT, 30);\n curl_setopt($ch, CURLOPT_POST, 1);\n curl_setopt($ch, CURLOPT_POSTFIELDS, $post);\n\n $result = curl_exec($ch);\n \n $response = json_decode($result, true);\n}", "function multi_curl(&$tasks){\n\n $header = array();\n $header[] = 'Authorization: '.TOKEN;\n\n // страны, содержимое которых надо получить\n $urls = array(\"https://api.ittour.com.ua/module/params/338?entity=hotel\",\n \"https://api.ittour.com.ua/module/params/318?entity=hotel\",\n \"https://api.ittour.com.ua/module/params/320?entity=hotel\",\n \"https://api.ittour.com.ua/module/params/372?entity=hotel\",\n \"https://api.ittour.com.ua/module/params/434?entity=hotel\",\n \"https://api.ittour.com.ua/module/params/39?entity=hotel\",\n \"https://api.ittour.com.ua/module/params/16?entity=hotel\",\n \"https://api.ittour.com.ua/module/params/332?entity=hotel\",\n \"https://api.ittour.com.ua/module/params/376?entity=hotel\",\n \"https://api.ittour.com.ua/module/params/378?entity=hotel\",\n \"https://api.ittour.com.ua/module/params/334?entity=hotel\",\n \"https://api.ittour.com.ua/module/params/23?entity=hotel\",\n \"https://api.ittour.com.ua/module/params/60?entity=hotel\",\n \"https://api.ittour.com.ua/module/params/321?entity=hotel\",\n \"https://api.ittour.com.ua/module/params/75?entity=hotel\",\n \"https://api.ittour.com.ua/module/params/69?entity=hotel\",\n \"https://api.ittour.com.ua/module/params/330?entity=hotel\",\n \"https://api.ittour.com.ua/module/params/323?entity=hotel\",\n \"https://api.ittour.com.ua/module/params/76?entity=hotel\",\n \"https://api.ittour.com.ua/module/params/1082?entity=hotel\",\n \"https://api.ittour.com.ua/module/params/9?entity=hotel\",\n \"https://api.ittour.com.ua/module/params/90?entity=hotel\",\n \"https://api.ittour.com.ua/module/params/324?entity=hotel\",\n \"https://api.ittour.com.ua/module/params/91?entity=hotel\",\n \"https://api.ittour.com.ua/module/params/442?entity=hotel\",\n //поиск регионов\n \"https://api.ittour.com.ua/module/params\"\n );\n\n// инициализируем \"контейнер\" для отдельных соединений (мультикурл)\n $cmh = curl_multi_init();\n\n// массив заданий для мультикурла\n $tasks = array();\n// перебираем наши урлы\n foreach ($urls as $url) {\n // инициализируем отдельное соединение (поток)\n $ch = curl_init($url);\n // если будет редирект - перейти по нему\n curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);\n // возвращать результат\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\n // возвращать http-заголовок\n curl_setopt($ch, CURLOPT_HTTPHEADER , $header);\n // таймаут соединения\n curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 30);\n // таймаут ожидания\n curl_setopt($ch, CURLOPT_TIMEOUT, 30);\n // добавляем дескриптор потока в массив заданий\n $tasks[$url] = $ch;\n // добавляем дескриптор потока в мультикурл\n curl_multi_add_handle($cmh, $ch);\n }\n\n// количество активных потоков\n $active = null;\n// запускаем выполнение потоков\n do {\n $mrc = curl_multi_exec($cmh, $active);\n }\n while ($mrc == CURLM_CALL_MULTI_PERFORM);\n\n// выполняем, пока есть активные потоки\n while ($active && ($mrc == CURLM_OK)) {\n // если какой-либо поток готов к действиям\n if (curl_multi_select($cmh) != -1) {\n // ждем, пока что-нибудь изменится\n do {\n $mrc = curl_multi_exec($cmh, $active);\n // получаем информацию о потоке\n $info = curl_multi_info_read($cmh);\n // если поток завершился\n if ($info['msg'] == CURLMSG_DONE) {\n $ch = $info['handle'];\n // ищем урл страницы по дескриптору потока в массиве заданий\n $url = array_search($ch, $tasks);\n // забираем содержимое\n $tasks[$url] = json_decode(curl_multi_getcontent($ch), true);\n // удаляем поток из мультикурла\n curl_multi_remove_handle($cmh, $ch);\n // закрываем отдельное соединение (поток)\n curl_close($ch);\n }\n }\n while ($mrc == CURLM_CALL_MULTI_PERFORM);\n }\n }\n\n // закрываем мультикурл\n\n curl_multi_close($cmh);\n\n return $tasks;\n}", "function curl($url) {\n\n $ch = curl_init(); // Initialising cURL\n\n $timeout = 2; // Initialise cURL timeout\n $useragent = 'Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:65.0) Gecko/20100101 Firefox/65.0';\n\n curl_setopt($ch, CURLOPT_USERAGENT, $useragent);\n curl_setopt($ch, CURLOPT_URL, $url); // Setting cURL's URL option with the $url variable passed into the function\n curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE); // Return the webpage data as a string\n \n // curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_ANY);\n // curl_setopt ($ch, CURLOPT_HEADER, 0);\n // curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);\n // curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);\n\n curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, TRUE);\n curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);\n // curl_setopt($ch, CURLOPT_CAINFO, 'https://'.$_SERVER['HTTP_HOST'].'/scotiabeautycom.crt');\n // curl_setopt($ch, CURLOPT_CAINFO, 'https://'.$_SERVER['HTTP_HOST'].'/cacert.pem');\n\n curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout); // Setting cURL's timeout option\n\n if (curl_exec($ch) === FALSE) {\n\n curl_exec($ch);\n \n echo '<p><strong>Curl returns FALSE.</strong></p>';\n echo '<p><strong>Curl Error:</strong> <em>'.curl_error($ch).'</em></p>';\n\n echo '<pre>';\n print_r(curl_getinfo($ch));\n echo '</pre>';\n\n } \n\n $data = curl_exec($ch); // Executing the cURL request and assigning the returned data to the $data variable\n curl_close($ch); // Closing cURL\n \n return $data; // Returning the data from the function\n}", "function curl($url) {\n $ch = curl_init(); \n curl_setopt($ch, CURLOPT_URL, $url);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); \n $output = curl_exec($ch); \n curl_close($ch); \n return $output;\n}", "protected function init()\n {\n $this->curl = curl_init();\n curl_setopt($this->curl, CURLOPT_SSL_VERIFYHOST, 2);\n curl_setopt($this->curl, CURLOPT_SSL_VERIFYPEER, FALSE);\n // this line makes it work under https\n curl_setopt($this->curl, CURLOPT_USERAGENT, $this->user_agent);\n curl_setopt($this->curl, CURLOPT_TIMEOUT, $this->timeout);\n curl_setopt($this->curl, CURLOPT_RETURNTRANSFER, 1);\n curl_setopt($this->curl, CURLOPT_FOLLOWLOCATION, 1);\n curl_setopt($this->curl, CURLOPT_COOKIEJAR, $this->cookiejar);\n curl_setopt($this->curl, CURLOPT_COOKIEFILE, $this->cookiejar);\n curl_setopt($this->curl, CURLOPT_REFERER, $this->referer);\n if (isset($this->encoding)) {\n curl_setopt($this->curl, CURLOPT_ENCODING, $this->encoding);\n }\n if ($this->omitSSLVerification) {\n curl_setopt($this->curl, CURLOPT_SSL_VERIFYHOST, false);\n curl_setopt($this->curl, CURLOPT_SSL_VERIFYPEER, false);\n }\n if (isset($this->userAuthData)) {\n curl_setopt($this->curl, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);\n curl_setopt($this->curl, CURLOPT_USERPWD, $this->userAuthData);\n }\n if ($this->proxy != '') {\n curl_setopt($this->curl, CURLOPT_PROXY, $this->proxy);\n if ($this->proxyType == self::PROXY_TYPE_SOCKS4) {\n curl_setopt($this->curl, CURLOPT_PROXYTYPE, CURLPROXY_SOCKS4);\n } else if ($this->proxyType == self::PROXY_TYPE_SOCKS5) {\n curl_setopt($this->curl, CURLOPT_PROXYTYPE, CURLPROXY_SOCKS5);\n }\n }\n $this->errorno = false;\n $this->error = false;\n }", "function get( $url, $post = null, $auth = null, $progress = false, $timeout = 5, &$error = false, $options = array() ) {\n\n // Create CURL Object\n $CURL = curl_init();\n\n // By using array union we can pre-set/change options from function call\n $curl_opts = $options + array(\n CURLOPT_URL => $url,\n CURLOPT_TIMEOUT => $timeout,\n CURLOPT_RETURNTRANSFER => true,\n CURLOPT_USERAGENT => 'Mozilla/5.0 (AIO Radio Station Player) AppleWebKit/537.36 (KHTML, like Gecko)',\n CURLOPT_FOLLOWLOCATION => ( ( ini_get( 'open_basedir' ) == false ) ? true : false ),\n CURLOPT_CONNECTTIMEOUT => ( ( $timeout < 6 && $timeout != 0 ) ? 5 : $timeout ),\n CURLOPT_REFERER => 'http' . ( ( $_SERVER[ 'SERVER_PORT' ] == 443 ) ? 's://' : '://' ) . $_SERVER[ 'HTTP_HOST' ] . strtok( $_SERVER[ 'REQUEST_URI' ], '?' ),\n CURLOPT_CAINFO => dirname( __FILE__ ) . '/bundle.crt'\n );\n\n\n // Post data to the URL (expects array)\n if ( isset( $post ) && is_array( $post ) ) {\n\n // Make every just simpler using custom array for options\n $curl_opts = $curl_opts + array(\n CURLOPT_POSTFIELDS => http_build_query( $post, '', '&' ),\n CURLOPT_POST => true,\n CURLOPT_FRESH_CONNECT => true,\n CURLOPT_FORBID_REUSE => true\n );\n\n }\n\n // Use HTTP Authorization\n if ( isset( $auth ) && !empty( $auth ) ) {\n\n $curl_opts = $curl_opts + array( CURLOPT_USERPWD => $auth );\n\n }\n\n // Call anonymous $progress_function function\n if ( $progress !== false && is_callable( $progress ) ) {\n\n $curl_opts = $curl_opts + array(\n CURLOPT_NOPROGRESS => false,\n CURLOPT_PROGRESSFUNCTION => $progress\n );\n\n }\n\n // Before executing CURL pass options array to the session\n curl_setopt_array( $CURL, $curl_opts );\n\n // Finally execute CURL\n $data = curl_exec( $CURL );\n\n // Parse ERROR\n if ( curl_error( $CURL ) ) {\n\n // This must be referenced in-memory variable\n $error = curl_error( $CURL );\n\n // Only works when writeLog function is available\n if ( function_exists( 'writeLog' ) )\n writeLog( 'errors', \"CURL Request \\\"{$url}\\\" failed! LOG: \" . curl_error( $CURL ), dirname( __FILE__ ) . '/./../tmp/logs/' );\n\n }\n\n // Close connection and return data\n curl_close( $CURL );\n return $data;\n\n }", "function fetchFromServer($method, $data){\n global $DB;\n $server_url = $DB->get_field_sql('SELECT value FROM {config} WHERE name = \"bigbluebuttonbn_server_url\"');\n $salt = $DB->get_field_sql('SELECT value FROM {config} WHERE name = \"bigbluebuttonbn_shared_secret\"');\n // $server_url = \"https://api.mynaparrot.com/bigbluebutton/iqdevelopment/\";\n // $salt = \"gTdddGZCzDgPhFXpiqON\";\n\n ksort($data);\n $params = \"\";\n foreach ($data as $key => $value) {\n $params .= $key . '=' . urlencode($value) . \"&\";\n }\n $params = rtrim($params, \"&\");\n $params = ltrim($params, \"=\");\n\n $sign = sha1($method . $params . $salt);\n\n $url = $server_url . \"api/\". $method . \"?\" . $params .'&checksum=' . $sign;\n\n //echo $url . \"<br>\";\n\n $ch = curl_init();\n curl_setopt($ch, CURLOPT_URL, $url);\n curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);\n curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 0);\n curl_setopt($ch, CURLOPT_TIMEOUT, 90); //timeout in seconds\n $response = curl_exec($ch);\n curl_close ($ch);\n\n if(!$response){\n return curl_error($ch);\n }\n\n try {\n $xml = simplexml_load_string($response);\n return json_decode(json_encode($xml));\n } catch (Exception $e) {\n return $e->getMessage();\n }\n}", "function fetch_url ($url, $post_options = []) {\n $ch = curl_init($url);\n curl_setopt($ch, CURLOPT_FOLLOWLOCATION\t,0);\n curl_setopt($ch, CURLOPT_HEADER\t\t\t,0); // DO NOT RETURN HTTP HEADERS\n curl_setopt($ch, CURLOPT_RETURNTRANSFER\t,1); // RETURN THE CONTENTS OF THE CALL\n curl_setopt($ch, CURLOPT_HEADER, false);\n curl_setopt($ch, CURLOPT_TIMEOUT, 9);\n curl_setopt($ch, CURLOPT_SSL_VERIFYHOST,false);\n curl_setopt($ch, CURLOPT_SSL_VERIFYPEER,false);\n curl_setopt($ch, CURLOPT_MAXREDIRS, 3);\n curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 9);\n curl_setopt($ch, CURLOPT_ENCODING, '');\n $response = curl_exec($ch);\n curl_close($ch);\n return $response;\n}", "function __curl_exec($req) {\n\t\t\tcurl_setopt($req, CURLOPT_FOLLOWLOCATION, FALSE);\n\t\t\tcurl_setopt($req, CURLOPT_HEADER, TRUE);\n\t\t\tcurl_setopt($req, CURLOPT_RETURNTRANSFER, TRUE);\n\t\t\t$data = curl_exec($req);\n\t\t\t$code = curl_getinfo($req, CURLINFO_HTTP_CODE);\n\t\t\t\n\t\t\t/* get the header and body */\n\t\t\tlist($header, $body) = explode(\"\\r\\n\\r\\n\", $data);\n\n\t\t\tif ($code >= 300) {\n\t\t\t\t/* error result, throw an exception */\n\t\t\t\tthrow new Exception(\"HTTP Result $code:\\n\". $data);\n\t\t\t}\n\t\t\t\n\t\t\t/* return code, header and body */\n\t\t\treturn Array($code, $body, $header);\n\t\t}", "function fread_all_url($data = array()) {\n\t$data = array_filter($data);\n\t$data = array_values($data);\n\t//print_r($data);\n\t$user_agent = \"Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)\";\n\t$ch = array();\n\t$jml = count($data);\n\tif ($jml>0) {\n\t\t$mh = curl_multi_init();\n\t\tfor ($i=0; $i<$jml; $i++) {\n\t\t\t$ch[$i] = curl_init();\n\t\t\tcurl_setopt( $ch[$i], CURLOPT_USERAGENT, $user_agent);\n\t\t\tcurl_setopt( $ch[$i], CURLOPT_ENCODING,'gzip,deflate'); // for faster loading\n\t\t\tcurl_setopt( $ch[$i], CURLOPT_HTTPGET, 1 );\n\t\t\tcurl_setopt( $ch[$i], CURLOPT_RETURNTRANSFER, 1 );\n\t\t\tcurl_setopt( $ch[$i], CURLOPT_FOLLOWLOCATION , 1 );\n\t\t\tcurl_setopt( $ch[$i], CURLOPT_URL, $data[$i] );\n\t\t\tcurl_setopt( $ch[$i], CURLOPT_REFERER, \"\" );\n\t\t\tif (preg_match(\"/https/is\", $data[$i])) curl_setopt( $ch[$i], CURLOPT_SSL_VERIFYPEER, false);\n\t\t\tcurl_setopt( $ch[$i], CURLOPT_CONNECTTIMEOUT,20); // timeout on connect\n\t\t\tcurl_setopt( $ch[$i], CURLOPT_MAXREDIRS,10);\n\t\t\tcurl_multi_add_handle($mh,$ch[$i]);\n\t\t}\n\t\t$running = NULL;\n\t\tdo {\n\t\t\ttry {\n\t\t\t\t$mrc = curl_multi_exec($mh,$running);\n\t\t\t} catch (Exception $e) {\n\t\t\t\tif (curl_errno()) {\n\t\t\t\t\t$hasil = false;\n\t\t\t\t\t$running = false;\n\t\t\t\t}\n\t\t\t}\n\t\t} while($running > 0 || $mrc == CURLM_CALL_MULTI_PERFORM);\n\t\twhile ($running && $mrc == CURLM_OK) {\n\t\t\tif (curl_multi_select($mh) != -1) {\n\t\t\t\tdo {\n\t\t\t\t\t//usleep(10000);\n\t\t\t\t\ttry {\n\t\t\t\t\t\t$mrc = curl_multi_exec($mh, $running);\n\t\t\t\t\t} catch (Exception $e) {\n\t\t\t\t\t\tif (curl_errno()) {\n\t\t\t\t\t\t\t$hasil = false;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\t\n\t\t\t\t} while ($mrc == CURLM_CALL_MULTI_PERFORM);\n\t\t\t}\n\t\t}\n\t\tif (!isset($hasil))\t {\n\t\t\t$hasil = array();\n\t\t\tfor ($i=0; $i<$jml; $i++) {\n\t\t\t\t$hasil[$i] = curl_multi_getcontent($ch[$i]);\n\t\t\t}\n\t\t}\n\t\t\n\t\t// REMOVE single handle\n\t\tfor ($i=0; $i<$jml; $i++) {\n\t\t\tcurl_multi_remove_handle($mh, $ch[$i]);\n\t\t}\n\t\tcurl_multi_close($mh);\n\t\treturn $hasil;\n\t}\n}", "public static function curlGetWithErros($url)\n {\n $ch = curl_init();\n\n curl_setopt($ch,CURLOPT_URL,$url);\n curl_setopt($ch,CURLOPT_RETURNTRANSFER,true);\n\n $output=curl_exec($ch);\n\n if($output === false)\n {\n echo \"Error Number:\".curl_errno($ch).\"<br>\";\n echo \"Error String:\".curl_error($ch);\n }\n curl_close($ch);\n return $output;\n }", "public function testCurlGoodUrl()\n {\n $curl = new CurlClass();\n \n $res = $curl->submit('http://feeds.nationalgeographic.com/ng/News/News_Main');\n $this->assertTrue($res, 'test url ktory zwraca kod 200');\n }", "function curl($url) {\n // Assigning cURL options to an array\n $options = Array(\n CURLOPT_RETURNTRANSFER => TRUE, // Setting cURL's option to return the webpage data\n CURLOPT_FOLLOWLOCATION => TRUE, // Setting cURL to follow 'location' HTTP headers\n CURLOPT_AUTOREFERER => TRUE, // Automatically set the referer where following 'location' HTTP headers\n CURLOPT_CONNECTTIMEOUT => 120, // Setting the amount of time (in seconds) before the request times out\n CURLOPT_TIMEOUT => 120, // Setting the maximum amount of time for cURL to execute queries\n CURLOPT_MAXREDIRS => 10, // Setting the maximum number of redirections to follow\n CURLOPT_USERAGENT => \"Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1a2pre) Gecko/2008073000 Shredder/3.0a2pre ThunderBrowse/3.2.1.8\", // Setting the useragent\n CURLOPT_URL => $url, // Setting cURL's URL option with the $url variable passed into the function\n );\n \n $ch = curl_init(); // Initialising cURL\n curl_setopt_array($ch, $options); // Setting cURL's options using the previously assigned array data in $options\n $data = curl_exec($ch); // Executing the cURL request and assigning the returned data to the $data variable\n curl_close($ch); // Closing cURL\n return $data; // Returning the data from the function\n }", "private function just_curl_get_data($url,$data)\n {\n \n $json_str = file_get_contents($this->cil_config_file);\n $json = json_decode($json_str);\n \n $ch = curl_init();\n curl_setopt($ch, CURLOPT_URL, $url);\n //curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json','Content-Length: ' . strlen($doc)));\n curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');\n curl_setopt($ch, CURLOPT_POSTFIELDS,$data);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n curl_setopt($ch, CURLOPT_USERPWD, $json->readonly_unit_tester);\n curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);\n $response = curl_exec($ch);\n curl_close($ch);\n return $response;\n\n }", "function CUSTOM_OpenViaCurl($local_url){\r\r\n\t$local_result = '';\r\r\n\t// Open connection\r\r\n\t$ch = curl_init();\r\r\n\t// Set the parameters\r\r\n\tcurl_setopt($ch, CURLOPT_URL, $local_url);\r\r\n\tcurl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\r\r\n\tcurl_setopt($ch, CURLOPT_RANGE, '0-20000');\r\r\n\t// Execute request\r\r\n\tif (!$local_result = curl_exec($ch))\r\r\n\t\t$local_result = '';\r\r\n\t// Close connection\r\r\n\tcurl_close($ch);\r\r\n\treturn $local_result;\t\t\r\r\n}", "function http_method($base_url, $method='GET', $cookie_file='', $postfields=array(), $headers=array()){\n\n $return = array();\n $query = http_build_query($postfields);\n $url = ($method === 'GET')?($base_url.'?'.$query):$base_url;\n\n $ch= curl_init();\n if($method === 'GET') {\n curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $method);\n }\n if($method === 'POST') {\n curl_setopt($ch, CURLOPT_POST, true);\n curl_setopt($ch, CURLOPT_POSTFIELDS, $query);\n }\n if(!empty($cookie_file)) {\n curl_setopt($ch, CURLOPT_COOKIEFILE, $cookie_file); // read from\n curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie_file); // write to\n }\n curl_setopt($ch, CURLOPT_URL, $base_url);\n $user_agents = array(\n 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.142 Safari/535.19',\n 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:11.0) Gecko/20100101 Firefox/11.0',\n 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/534.50 (KHTML, like Gecko) Version/5.1 Safari/534.50',\n 'Opera/9.80 (Macintosh; Intel Mac OS X 10.6.8; U; en) Presto/2.10.229 Version/11.62'\n );\n curl_setopt($ch, CURLOPT_USERAGENT, $user_agents[rand(0, 3)]);\n if(!empty($headers)) {\n curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\n }\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);\n curl_setopt($ch, CURLOPT_TIMEOUT, 30);\n $html = curl_exec($ch);\n $http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);\n curl_close($ch);\n\n $return['http_code'] = $http_code;\n $return['html'] = $html;\n\n return $return;\n}", "function get_tiny_url($beforeurl) { \n\t$ch = curl_init(); \n\t$timeout = 5; \n\tcurl_setopt($ch,CURLOPT_URL,'http://tinyurl.com/api-create.php?url='.$beforeurl); \n\tcurl_setopt($ch,CURLOPT_RETURNTRANSFER,1); \n\tcurl_setopt($ch,CURLOPT_CONNECTTIMEOUT,$timeout); \n\t$data = curl_exec($ch); \n\tcurl_close($ch); \n\treturn $data; \n}", "function http($url, $post_data = null) {\n\t\t$ch = curl_init ();\n\t\tif (defined ( \"CURL_CA_BUNDLE_PATH\" ))\n\t\t\tcurl_setopt ( $ch, CURLOPT_CAINFO, CURL_CA_BUNDLE_PATH );\n\t\tcurl_setopt ( $ch, CURLOPT_URL, $url );\n\t\tcurl_setopt ( $ch, CURLOPT_CONNECTTIMEOUT, 30 );\n\t\tcurl_setopt ( $ch, CURLOPT_TIMEOUT, 30 );\n\t\tcurl_setopt ( $ch, CURLOPT_RETURNTRANSFER, 1 );\n\t\t//////////////////////////////////////////////////\n\t\t///// Set to 1 to verify Hots SSL Cert ///////\n\t\t//////////////////////////////////////////////////\n\t\tcurl_setopt ( $ch, CURLOPT_SSL_VERIFYPEER, 0 );\n\t\tif (isset ( $post_data )) {\n\t\t\tcurl_setopt ( $ch, CURLOPT_POST, 1 );\n\t\t\tcurl_setopt ( $ch, CURLOPT_POSTFIELDS, $post_data );\n\t\t}\n\t\t$response = curl_exec ( $ch );\n\t\t$this->http_status = curl_getinfo ( $ch, CURLINFO_HTTP_CODE );\n\t\t$this->last_api_call = $url;\n\t\tcurl_close ( $ch );\n\t\tif(empty($response)) {\n\t\t\treturn 'WP-API might be down or unresponsive. Please go to http://flocks.biz and check if the main website is working. Send us an email to hello@flocks.biz in case you have more doubts.';\n\t\t}\n\t\tif(preg_match(\"/request\\-token/i\",$response) || preg_match(\"/access\\-token/i\",$response)) {\n\t\t\t//echo \"<br/><br/>\".preg_replace(array(\"/.*oauth\\_version\\=1\\.0/i\"),array(\"\"),urldecode($response)).\"<br/><br/>\";\n\t\t\treturn preg_replace(array(\"/.*oauth\\_version\\=1\\.0/i\"),array(\"\"),urldecode($response));\n\t\t} else {\n\t\t\t//echo \"<br/><br/>\".$response.\"<br/><br/>\";\n\t\t\treturn $response;\n\t\t}\n\t}", "function CurlInit() {\n $url = 'https://www.otaus.com.au/find-an-ot';\n $ch = curl_init();\n curl_setopt($ch, CURLOPT_URL, $url);\n curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\n $result = (curl_exec($ch));\n curl_close($ch);\n return $result;\n}", "function init_curl()\n\t{\n\t\t$this->ch = curl_init();\n\t\t$user_agent = $this->user_agent;\n\t\t$header[] = \"Accept: application/x-ms-application, image/jpeg, application/xaml+xml, image/gif, image/jpeg, application/x-ms-xbap, application/x-shockwave-flash, */*\";\n\t\t$header[] = \"Accept-Language: en-US\";\n\t\t$header[] = \"User-Agent: \" . $user_agent;\n\t\t$header[] = \"Connection: Keep-Alive\";\n\t\t$header[] = \"Pragma:\";\n\t\t$header[] = \"Expect:\";\n\t\t$header[] = \"Content-Type:\";\n\n\t\t$this->header = $header;\n\n\t\t$header2[] = \"Accept: application/x-ms-application, image/jpeg, application/xaml+xml, image/gif, image/jpeg, application/x-ms-xbap, application/x-shockwave-flash, */*\";\n\t\t$header2[] = \"Accept-Language: en-US\";\n\t\t$header2[] = \"User-Agent: \" . $user_agent;\n\t\t$header2[] = \"Connection: Keep-Alive\";\n\t\t$header2[] = \"Content-Type: application/x-www-form-urlencoded\";\n\t\t$header2[] = \"Pragma:\";\n\t\t$header2[] = \"Expect:\";\n\n\t\t$this->header_post = $header2;\n\n\t\t$header3[] = \"Accept: application/json, text/javascript, */*\";\n\t\t$header3[] = \"Accept-Language: en-US\";\n\t\t$header3[] = \"User-Agent: \" . $user_agent;\n\t\t$header3[] = \"Content-Type: application/x-www-form-urlencoded\";\n\t\t$header3[] = \"x-requested-with: XMLHttpRequest\";\n\t\t$header3[] = \"Connection: Keep-Alive\";\n\t\t$header3[] = \"Pragma:\";\n\t\t$header3[] = \"Expect:\";\n\n\t\t$this->header_json = $header3;\n\n\t\t$header4[] = \"Accept: application/x-ms-application, image/jpeg, application/xaml+xml, image/gif, image/jpeg, application/x-ms-xbap, application/x-shockwave-flash, */*\";\n\t\t$header4[] = \"Accept-Language: en-US\";\n\t\t$header4[] = \"User-Agent: \" . $user_agent;\n\t\t$header4[] = \"Connection: Keep-Alive\";\n\t\t$header4[] = \"Content-Type: multipart/form-data\";\n\t\t$header4[] = \"Pragma:\";\n\t\t$header4[] = \"Expect:\";\n\n\t\t$this->header_multipart = $header4;\n\n\t\tcurl_setopt($this->ch, CURLOPT_USERAGENT, $user_agent);\n\t\tcurl_setopt($this->ch, CURLOPT_COOKIEJAR, $this->opt[\"cookie_dir\"].\"/\".$this->id);\n\t\tcurl_setopt($this->ch, CURLOPT_COOKIEFILE, $this->opt[\"cookie_dir\"].\"/\".$this->id);\n\t\t//curl_setopt($this->ch, CURLOPT_ENCODING, 'gzip, deflate');\n\t\tcurl_setopt($this->ch, CURLOPT_RETURNTRANSFER, 1);\n\t\tcurl_setopt($this->ch, CURLOPT_HEADER, 1);\n\t\tcurl_setopt($this->ch, CURLOPT_FOLLOWLOCATION, 1);\n\t\tcurl_setopt($this->ch, CURLOPT_VERBOSE, $this->opt[\"verbose\"]);\n\t\tcurl_setopt($this->ch, CURLOPT_TIMEOUT, $this->opt[\"timeout\"]);\n\t\tcurl_setopt($this->ch, CURLOPT_SSL_VERIFYPEER, FALSE);\n\t\tcurl_setopt($this->ch, CURLOPT_SSL_VERIFYHOST, FALSE);\n\n\t\tif ($this->opt[\"use_proxy\"] && isset($proxy))\n\t\tcurl_setopt($this->ch, CURLOPT_PROXY, $proxy);\n\t\t//print \"Set Curl Proxy $proxy\\n\";\n\t\t//curl_setopt($this->ch, CURLOPT_PROXYUSERPWD, \"ocbeta:echo11ra\");\n\n\t\t//if ($this->opt[\"use_ips\"])\n\t\t//curl_setopt($this->ch, CURLOPT_INTERFACE, $this->get_ip());\n\t}", "function Send($url, $POST){ //работа с CURL'ом\n\t$ch = curl_init();// Устанавливаем соединение\n\tcurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\tcurl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);\n\tcurl_setopt($ch, CURLOPT_POST, 1);\n\tcurl_setopt($ch, CURLOPT_POSTFIELDS, $POST);\n\tcurl_setopt($ch, CURLOPT_TIMEOUT, 10);\n\tcurl_setopt($ch, CURLOPT_URL, $url);\n\n\t$result = curl_exec($ch);\n\n\tif($result === false) print $err = curl_error($ch);\n\n\treturn $result;\n}", "function make_call($url)\n {\n echo \"API Call:<br /><textarea id='orig' rows='4' cols='150'>$url</textarea><br />\";\n $ch = curl_init();\n $timeout = 20;\n curl_setopt($ch, CURLOPT_FAILONERROR, 1);\n curl_setopt($ch, CURLOPT_VERBOSE, true);\n curl_setopt($ch, CURLOPT_URL, $url);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\n curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);\n curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout);\n curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);\n curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);\n\n\n $data = curl_exec($ch);\n\n if (curl_errno($ch)) {\n print curl_error($ch);\n } else {\n curl_close($ch);\n }\n echo htmlentities($data) . \"<br />\";\n return $data;\n }", "function curlData($url) {\n\t$ch = curl_init ();\n\n\t// setze die URL und andere Optionen\n\tcurl_setopt ( $ch, CURLOPT_URL, $url );\n\tcurl_setopt ( $ch, CURLOPT_HEADER, 0 );\n\tcurl_setopt ( $ch, CURLOPT_RETURNTRANSFER, TRUE );\n\n\t// führe die Aktion aus und speichere die Daten\n\t$result = curl_exec ( $ch );\n\t// schließe den cURL-Handle und gebe die Systemresourcen frei\n\tcurl_close ( $ch );\n\treturn (String) $result;\n}", "function getrequest($url){\n\t// gets cURL resource\n\t$curl = curl_init();\n\t// Set some options - we are passing in a useragent too here\n\tcurl_setopt_array($curl, array(\n\t\tCURLOPT_RETURNTRANSFER => 1,\n\t\tCURLOPT_URL => $url,\n\t\tCURLOPT_USERAGENT => 'BenGreenlineApp'\n\t));\n\t// Send the request & save response to $resp\n\t$resp = curl_exec($curl);\n\t// Close request to clear up some resources\n\tcurl_close($curl);\n\t//returns the json encoded response\n\t\n\t\n\t$httpCode = curl_getinfo($handle, CURLINFO_HTTP_CODE);\n\tif($httpCode == 404) {\n $resp[0]= \"MetroTransit API gave 404\" ;\n\t};\n\t\n\t\n\treturn json_decode($resp);\n}", "public function curlAction()\n {\n $curl = $this->getCurlService();\n $result = $curl->get('http://www.baidu.com');\n echo $result;\n exit;\n }", "public function run()\r\n\t\t\t {\r\n $ch = curl_init();\r\n curl_setopt ($ch, CURLOPT_RETURNTRANSFER, true);\r\n curl_setopt ($ch, CURLOPT_URL, $this->url);\r\n curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, 20);\r\n curl_setopt ($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11');\r\n curl_setopt($ch, CURLOPT_HEADER, true); // header will be at output\r\n curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'HEAD'); // HTTP request is 'HEAD'\r\n $this->headers = curl_exec ($ch);\r\n curl_close ($ch);\r\n\t\t\t }", "public function execute()\n\t{\n\t\tob_start();\n\t\t$return = curl_exec($this->curlRessource);\n\t\t$datas = ob_get_contents();\n\t\tob_end_clean();\n\t\tcurl_close($this->curlRessource);\n\t\tif(!$return)\n\t\t\tthrow new Exception(\"Impossible d'acceder e l'url : <b>\".$this->url.\"</b>\");\n\t\treturn $datas;\n\t}", "function curl_get_result($url) {\n\t@set_time_limit(0);\n\t\n\t// Headers\n\t $header[0] = \"Accept: text/xml,application/xml,application/xhtml+xml,\";\n\t $header[0] .= \"text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\";\n\t $header[] = \"Cache-Control: max-age=0\";\n\t $header[] = \"Connection: keep-alive\";\n\t $header[] = \"Keep-Alive: 300\";\n\t $header[] = \"Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7\";\n\t $header[] = \"Accept-Language: en-us,en;q=0.5\";\n\t $header[] = \"Pragma: \"; // browsers keep this blank. \n\t\n\t$ch = curl_init();\n\t$timeout = 5;\n\tcurl_setopt($ch,CURLOPT_URL,$url);\n\tcurl_setopt($ch,CURLOPT_RETURNTRANSFER,1);\n\tcurl_setopt($ch,CURLOPT_CONNECTTIMEOUT,$timeout);\n\tcurl_setopt($ch, CURLOPT_USERAGENT, 'Googlebot/2.1 (+http://www.google.com/bot.html)'); \n\tcurl_setopt($ch,CURLOPT_HTTPHEADER,$header);\n\tif(!$data = curl_exec($ch)){\n\t\treturn false;\n\t}else{\n\t\tcurl_close($ch);\n\t\treturn $data;\n\t}\n}", "private function curl($url,$data){\n $ch = curl_init();\n curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);\n curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);\n curl_setopt($ch, CURLOPT_URL, $url);\n curl_setopt($ch, CURLOPT_POST, 1);\n\n curl_setopt($ch, CURLOPT_POSTFIELDS,\n http_build_query($data));\n\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n $server_output = curl_exec($ch);\n if($server_output===false){\n $error = curl_error($ch);\n $this->log_middle(\"curl false:\" . $error);\n }\n curl_close($ch);\n\n return $server_output;\n\n }", "function http_response($url, $opts = array()) {\n $url = preg_replace('/ /', '%20', $url);\n $ch = curl_init($url);\n curl_setopt($ch, CURLOPT_HEADER, FALSE);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);\n curl_setopt($ch, CURLOPT_USERAGENT, \"uw_transparancy, toolserver.org wikiproject parser\");\n $output = curl_exec($ch);\n // Check for errors\n if (curl_errno($ch)) {\n wpLog(\"Curl error: \" . curl_error($ch));\n return http_response($url);\n }\n\n curl_close($ch);\n\n return $output;\n}", "function https_request($url, $post = null)\n {\n $cookieFile = NULL;\n $hCURL = curl_init();\n curl_setopt($hCURL, CURLOPT_URL, $url);\n curl_setopt($hCURL, CURLOPT_TIMEOUT, 30);\n curl_setopt($hCURL, CURLOPT_RETURNTRANSFER, TRUE);\n curl_setopt($hCURL, CURLOPT_USERAGENT, $userAgent);\n curl_setopt($hCURL, CURLOPT_FOLLOWLOCATION, TRUE);\n curl_setopt($hCURL, CURLOPT_AUTOREFERER, TRUE);\n curl_setopt($hCURL, CURLOPT_ENCODING, \"gzip,deflate\");\n //curl_setopt($hCURL, CURLOPT_HTTPHEADER,$host);\n if ($post) {\n curl_setopt($hCURL, CURLOPT_POST, 1);\n curl_setopt($hCURL, CURLOPT_POSTFIELDS, $post);\n }\n $sContent = curl_exec($hCURL);\n var_dump(curl_error($hCURL));\n if ($sContent === FALSE) {\n $error = curl_error($hCURL);\n curl_close($hCURL);\n\n throw new \\Exception($error . ' Url : ' . $url);\n } else {\n curl_close($hCURL);\n return $sContent;\n }\n }", "private static function GetWithCurl($url) {\n\t$ch = curl_init($url);\n\tcurl_setopt($ch,CURLOPT_USERAGENT,'' );\n\tcurl_setopt($ch,CURLOPT_RETURNTRANSFER,1);\n\tcurl_setopt($ch,CURLOPT_CONNECTTIMEOUT,5);\n\tcurl_setopt($ch,CURLOPT_FOLLOWLOCATION,1);\n\tcurl_setopt($ch,CURLOPT_MAXREDIRS,2);\n\tcurl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);\n\t$str = curl_exec($ch);\n\tcurl_close($ch);\n\treturn $str;\n }", "function get_url_contents($url){\n $crl = curl_init();\n $timeout = 5;\n curl_setopt ($crl, CURLOPT_URL,$url);\n curl_setopt ($crl, CURLOPT_RETURNTRANSFER, 1);\n curl_setopt ($crl, CURLOPT_CONNECTTIMEOUT, $timeout);\n $ret = curl_exec($crl);\n curl_close($crl);\n return $ret;\n}", "function getCurlData($url)\n{\n$curl = curl_init();\ncurl_setopt($curl, CURLOPT_URL, $url);\ncurl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);\ncurl_setopt($curl, CURLOPT_TIMEOUT, 10);\ncurl_setopt($curl, CURLOPT_USERAGENT, \"Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.16) Gecko/20110319 Firefox/3.6.16\");\n$curlData = curl_exec($curl);\ncurl_close($curl);\nreturn $curlData;\n}", "function post_to_url($url, $data) {\n $fields = '';\n foreach ($data as $key => $value) {\n $fields .= $key . '=' . $value . '&';\n }\n rtrim($fields, '&');\n $post = curl_init();\n curl_setopt($post, CURLOPT_SSL_VERIFYPEER, false);\n curl_setopt($post, CURLOPT_URL, $url);\n curl_setopt($post, CURLOPT_POST, count($data));\n curl_setopt($post, CURLOPT_POSTFIELDS, $fields);\n curl_setopt($post, CURLOPT_RETURNTRANSFER, 1);\n $result = curl_exec($post); //result from mobile seva server \n return $result; //output from server displayed \n curl_close($post);\n}", "function getCurl( $url )\n{\n$curl = curl_init();\ncurl_setopt($curl, CURLOPT_URL, $url);\ncurl_setopt($curl, CURLOPT_RETURNTRANSFER, true);\n$res = curl_exec($curl); // execute\n if(curl_error($curl) ) // check for error\n {\n return false; // return false if error\n } else {\n return json_decode($res); // return json decoded\n }\ncurl_close($curl);\n}", "function disguise_curl($url)\n{\n $curl = curl_init();\n\n // Setup headers - I used the same headers from Firefox version 2.0.0.6\n // below was split up because php.net said the line was too long. :/\n $header[0] = \"Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5,\";\n $header[] = \"Cache-Control: max-age=0\";\n $header[] = \"Connection: keep-alive\";\n $header[] = \"Keep-Alive: 300\";\n $header[] = \"Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7\";\n $header[] = \"Accept-Language: en-us,en;q=0.5\";\n $header[] = \"Pragma: \"; // browsers keep this blank.\n\n curl_setopt($curl, CURLOPT_URL, $url);\n curl_setopt($curl, CURLOPT_USERAGENT, 'Googlebot/2.1 (+http://www.google.com/bot.html)');\n curl_setopt($curl, CURLOPT_HTTPHEADER, $header);\n curl_setopt($curl, CURLOPT_REFERER, 'http://www.google.com');\n curl_setopt($curl, CURLOPT_ENCODING, 'gzip,deflate');\n curl_setopt($curl, CURLOPT_AUTOREFERER, true);\n curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);\n curl_setopt($curl, CURLOPT_TIMEOUT, 10);\n\n $html = curl_exec($curl); // execute the curl command\n curl_close($curl); // close the connection\n\n return $html; // and finally, return $html\n}", "function MajesticSeo($url, $mode = 'url')\n {\n // ВАЖНО $res <> \"\" - это если нулевое значени евозвращается\n // если без HTTP тоэта функция будет выдавть отчетыи типа РУТДОМЕН\n if ($mode == 'url')\n $url = ProxyBrowser::url_http_adding($url);\n else\n $url = ProxyBrowser::domain_from_url($url);\n\n $sak = Yii::$app->get('settings')->get('system.MajesticSEO_API');\n\n $browser = new ProxyBrowser();\n $browser->interface_lang = 'en';\n $browser->use_my_external_php_proxy = true;\n $uri = 'http://simpleapi.majesticseo.com/sapi/GetBacklinkStats?datasource=fresh&items=1&item0=' . urlencode($url) . '&sak=' . $sak . '';\n $out = $browser->get_http($uri);\n\n if ($out['error']) {\n $out['description'] .= \" Скорей всего слетел API Key MajesticSeo или IP заблокировали : \" . $out['raw'];\n SystemMessagesLogController::Save(\n //0 просто мессадж серым\n //1 ключевое сообщение зеленым\n //2 красный варанинг\n //3 красный ЖИРНЫМ фатал\n 3,\n \"MajesticSeo_forURL\",\n $out['description']\n );\n// echo \"<textarea>\";\n print_r($out);\n// echo \"</textarea>\";\n\n }\n $out['result_array'] = json_decode($out['raw'], true);\n $out['result_array'] = $out['result_array']['Data'][0];\n // расчитаем траст по Кокшарову Деваке\n $out['result_array']['KTrustRank'] = $this->MajesticSeo_forURL_KokshkarovTrustRank($out['result_array']['CitationFlow'], $out['result_array']['TrustFlow']);\n $out['result'] = true;\n return $out;\n }", "function request($url,$hookdata,$cookie,$method='GET'){\r\n $ch = curl_init();\r\n\r\n curl_setopt($ch, CURLOPT_URL, \"https://i.instagram.com/api\".$url);\r\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\r\n curl_setopt($ch, CURLOPT_HEADER, 1);\r\n if($method == 'POST'){\r\n curl_setopt($ch, CURLOPT_POSTFIELDS, $hookdata);\r\n curl_setopt($ch, CURLOPT_POST, 1);\r\n }else{\r\n curl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"GET\");\r\n }\r\n\r\n $headers = array();\r\n $headers[] = \"Accept: */*\";\r\n $headers[] = \"Content-Type: application/x-www-form-urlencoded\";\r\n $headers[] = 'Cookie2: _ENV[\"Version=1\"]';\r\n $headers[] = \"Accept-Language: en-US\";\r\n $headers[] = \"User-Agent: Instagram 24.0.0.12.201 Android (28/9; 320dpi; 720x1280; samsung; SM-J530Y; j5y17ltedx; samsungexynos7870; in_ID;)\";\r\n $headers[] = \"Host: i.instagram.com\";\r\n if($cookie !== \"0\"){\r\n $headers[] = \"Cookie: \".$cookie;\r\n }\r\n curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\r\n\r\n $result = curl_exec($ch);\r\n $httpcode = curl_getinfo($ch);\r\n $header = substr($result, 0, curl_getinfo($ch, CURLINFO_HEADER_SIZE));\r\n $body = substr($result, curl_getinfo($ch, CURLINFO_HEADER_SIZE));\r\n\r\n if(curl_errno($ch)){\r\n echo 'Error:' . curl_error($ch);\r\n }\r\n curl_close ($ch);\r\n return array($header, $body, $httpcode,$result,$url,$hookdata); // body itu response body\r\n}", "function curl_post($url, $post) {\n\t$ch = curl_init(); \n curl_setopt($ch, CURLOPT_POST, 1); \n curl_setopt($ch, CURLOPT_URL,$url); \n //curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); \n curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);\n curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);\n curl_setopt($ch, CURLOPT_POSTFIELDS, $post); \n curl_setopt($ch, CURLOPT_HEADER, false); \n ob_start(); \n curl_exec($ch); \n if (curl_errno($ch)){\n print curl_error($ch);}\n else{\n curl_close($ch);}\n $result = ob_get_contents() ; \n ob_end_clean(); \n return $result; \n}", "private function curlRequest($url)\n {\n $curl_handle=curl_init();\n curl_setopt($curl_handle, CURLOPT_URL, $url);\n curl_setopt($curl_handle, CURLOPT_CONNECTTIMEOUT, 2);\n curl_setopt($curl_handle, CURLOPT_RETURNTRANSFER, 1);\n curl_setopt($curl_handle, CURLOPT_USERAGENT, Request::header('user-agent'));\n $response = curl_exec($curl_handle);\n curl_close($curl_handle);\n return $response;\n }", "function postdataRubricaPPTPractico($url, $ruta, $data, $termino, $sistema, $tipoEstudiante, $franja, $paralelo, $docente)\n\t{\n\t\tset_time_limit(500);\n\t\t$target_url = $url; \n\t\t$fname = $ruta.$data; \n\t\t$cfile = new CURLFile(realpath($fname)); \n\t\t$post = array \n\t\t(\n\t\t\t'archivo' => $cfile,\n\t\t\t'termino' => $termino,\n\t\t\t'sistema' => $sistema,\n\t\t\t'tipoEstudiante' => $tipoEstudiante,\n\t\t\t'franja' => $franja,\n\t\t\t'paralelo' => $paralelo,\n\t\t\t'docente' => $docente\n\t\t); \n\t\t\n\t\t$ch = curl_init();\n\t\tcurl_setopt($ch, CURLOPT_URL, $target_url);\n\t\tcurl_setopt($ch, CURLOPT_POST, 1);\n\t\tcurl_setopt($ch, CURLOPT_HEADER, 0);\n\t\tcurl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); \n\t\tcurl_setopt($ch, CURLOPT_USERAGENT, \"Mozilla/4.0 (compatible;)\"); \n\t\tcurl_setopt($ch, CURLOPT_HTTPHEADER,array('Content-Type: multipart/form-data'));\n\t\tcurl_setopt($ch, CURLOPT_FRESH_CONNECT, 1); \n\t\tcurl_setopt($ch, CURLOPT_FORBID_REUSE, 1); \n\t\tcurl_setopt($ch, CURLOPT_TIMEOUT, 0);\n\t\tcurl_setopt($ch, CURLOPT_POSTFIELDS, $post);\n\t\t\n\t\t$resultadoExec = curl_exec ($ch);\n\t\t\n\t\tif ($resultadoExec === FALSE) {\n\t\t\t$response = \"Error sending\" . $fname . \" \" . curl_error($ch);\n\t\t\tcurl_close ($ch);\n\t\t}else{\n\t\t\tcurl_close ($ch);\n\t\t\t$response = \"Result: \" . $resultadoExec;\n\t\t}\n\t\t\n\t\treturn $response;\n\t}", "private function configureCurl ()\n {\n curl_setopt_array($this->cURL, [\n CURLOPT_URL => $this->url,\n CURLOPT_RETURNTRANSFER => true\n ]);\n }", "function curl($url)\n{\n $ch = curl_init();\n curl_setopt($ch, CURLOPT_URL, $url);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\n $return = curl_exec($ch);\n curl_close($ch);\n return $return;\n}" ]
[ "0.64035374", "0.6373206", "0.63114655", "0.6307522", "0.6245831", "0.6214994", "0.6214541", "0.6086362", "0.608512", "0.6053862", "0.6051915", "0.6051397", "0.6042135", "0.60420704", "0.60408247", "0.6038799", "0.6026328", "0.601919", "0.6010717", "0.60078347", "0.6006195", "0.6001862", "0.5988238", "0.5987775", "0.59738475", "0.59678274", "0.59651417", "0.59525025", "0.5952475", "0.59494525", "0.5947044", "0.5938676", "0.59313285", "0.5926929", "0.59227043", "0.5912823", "0.59092045", "0.5906288", "0.5901606", "0.5891372", "0.5879191", "0.58787674", "0.58771855", "0.58726865", "0.5867069", "0.5862685", "0.5851435", "0.5842634", "0.58277315", "0.58251435", "0.58227485", "0.5821722", "0.5821703", "0.58189654", "0.5814092", "0.5808573", "0.5808383", "0.5799813", "0.5798632", "0.5789259", "0.5788898", "0.5782444", "0.5782299", "0.5781849", "0.5780596", "0.57803565", "0.57760763", "0.5775306", "0.5768861", "0.5762651", "0.576092", "0.5748989", "0.57477534", "0.5737989", "0.57373166", "0.57336545", "0.573361", "0.57238716", "0.5719221", "0.5716299", "0.5708216", "0.5706357", "0.5704776", "0.56974334", "0.5694597", "0.56891435", "0.5685927", "0.5678382", "0.5676749", "0.5674949", "0.56723595", "0.5671277", "0.566982", "0.5667803", "0.56664175", "0.5661305", "0.5657721", "0.5654561", "0.5649777", "0.5643126", "0.56417054" ]
0.0
-1
aggiunta o modifica opzioni curl
public function curlOption($const, $value){ try{ curl_setopt($this->curl, $const, $value); } catch (Exception $e){ return $e; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function updateCurl($url,$method){\r\n \r\n $curl = curl_init();\r\n // Set some options - we are passing in a useragent too here\r\n curl_setopt_array($curl, array(\r\n CURLOPT_RETURNTRANSFER => 1,\r\n CURLOPT_URL => $url,\r\n CURLOPT_USERAGENT => 'Codular Sample cURL Request'\r\n ));\r\n // Send the request & save response to $resp\r\n $resp = curl_exec($curl);\r\n // Close request to clear up some resources\r\n curl_close($curl);\r\n return $resp;\r\n \r\n \r\n}", "function quick_curl( $url, $user_auth = null, $rest = 'GET', $input = null, $type = 'JSON'){\n if( function_exists('curl_init') ){\n\n $ch = curl_init();\n curl_setopt( $ch, CURLOPT_URL, $url ); // The URL we're using to get/send data\n\n if( $user_auth ){\n curl_setopt( $ch, CURLOPT_USERPWD, $user_auth ); // Add the authentication\n }\n\n if( $rest == 'POST' ){\n curl_setopt( $ch, CURLOPT_POST, true ); // Send a post request to the server\n } elseif( $rest == 'PATCH' ){\n curl_setopt( $ch, CURLOPT_CUSTOMREQUEST, 'PATCH'); // Send a patch request to the server to update the listing\n } elseif( $rest == 'PUT'){\n curl_setopt( $ch, CURLOPT_CUSTOMREQUEST, 'PUT'); // Send a put request to the server to update the listing\n } // If POST or PATCH isn't set then we're using a GET request, which is the default\n\n curl_setopt( $ch, CURLOPT_CONNECTTIMEOUT, 15 ); // Timeout when connecting to the server\n curl_setopt( $ch, CURLOPT_TIMEOUT, 30 ); // Timeout when retrieving from the server\n curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true ); // We want to capture the data returned, so set this to true\n //curl_setopt( $ch, CURLOPT_HEADER, true ); // Get the HTTP headers sent with the data\n curl_setopt( $ch, CURLOPT_SSL_VERIFYPEER, false ); // We don't want to force SSL incase a site doesn't use it\n\n if( $rest !== 'GET' ){\n\n curl_setopt( $ch, CURLOPT_HTTPHEADER, array( 'Content-Type: ' . mime_type( $type ), 'Content-Length: ' . strlen( $input ) ) ); // Tell server to expect the right content type and the content length\n curl_setopt( $ch, CURLOPT_POSTFIELDS, $input ); // Send the actual data\n }\n\n // Get the response\n $response = curl_exec( $ch );\n\n // Check if there's an error in the header\n $httpcode = curl_getinfo( $ch, CURLINFO_HTTP_CODE );\n\n // If there's any cURL errors\n if( curl_errno( $ch ) || ( $httpcode < 200 || $httpcode >= 300 ) ){\n $data = 'error';\n } else {\n \n // Turn response into stuff we can use\n if( $type == 'JSON' ){\n $data = json_decode( $response, true );\n } elseif( $type == 'csv' ){\n $data = csv_to_array( $response );\n } else {\n $data = $response;\n }\n\n }\n\n // Close curl\n curl_close( $ch );\n \n // Send the data back to the function calling the cURL\n return $data;\n \n } else {\n \n // cURL not installed so leave\n return false;\n \n }\n\n\t\n}", "function send_request($http_method, $url, $auth_header=null, $postData=null) {\n $curl = curl_init($url);\n curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);\n curl_setopt($curl, CURLOPT_FAILONERROR, false);\n curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);\n\n switch($http_method) {\n case 'GET':\n if ($auth_header) {\n curl_setopt($curl, CURLOPT_HTTPHEADER, array($auth_header)); \n }\n break;\n case 'POST':\n curl_setopt($curl, CURLOPT_HTTPHEADER, array('Content-Type: application/atom+xml', \n $auth_header)); \n curl_setopt($curl, CURLOPT_POST, 1); \n curl_setopt($curl, CURLOPT_POSTFIELDS, $postData);\n break;\n case 'PUT':\n curl_setopt($curl, CURLOPT_HTTPHEADER, array('Content-Type: application/atom+xml', \n $auth_header)); \n curl_setopt($curl, CURLOPT_CUSTOMREQUEST, $http_method);\n curl_setopt($curl, CURLOPT_POSTFIELDS, $postData);\n break;\n case 'DELETE':\n curl_setopt($curl, CURLOPT_HTTPHEADER, array($auth_header)); \n curl_setopt($curl, CURLOPT_CUSTOMREQUEST, $http_method); \n break;\n }\n $response = curl_exec($curl);\n if (!$response) {\n $response = curl_error($curl);\n }\n curl_close($curl);\n return $response;\n}", "function http($url, $method, $postfields = NULL, $headers = array()) {\n $this->http_info = array();\n $ci = curl_init();\n /* Curl settings */\n curl_setopt($ci, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0);\n curl_setopt($ci, CURLOPT_USERAGENT, $this->useragent);\n curl_setopt($ci, CURLOPT_CONNECTTIMEOUT, $this->connecttimeout);\n curl_setopt($ci, CURLOPT_TIMEOUT, $this->timeout);\n curl_setopt($ci, CURLOPT_RETURNTRANSFER, TRUE);\n curl_setopt($ci, CURLOPT_ENCODING, \"\");\n curl_setopt($ci, CURLOPT_SSL_VERIFYPEER, $this->ssl_verifypeer);\n curl_setopt($ci, CURLOPT_SSL_VERIFYHOST, 1);\n curl_setopt($ci, CURLOPT_HEADERFUNCTION, array($this, 'getHeader'));\n curl_setopt($ci, CURLOPT_HEADER, FALSE);\n switch ($method) {\n case 'POST':\n curl_setopt($ci, CURLOPT_POST, TRUE);\n if (!empty($postfields)) {\n curl_setopt($ci, CURLOPT_POSTFIELDS, $postfields);\n $this->postdata = $postfields;\n }\n break;\n case 'DELETE':\n curl_setopt($ci, CURLOPT_CUSTOMREQUEST, 'DELETE');\n if (!empty($postfields)) {\n $url = \"{$url}?{$postfields}\";\n }\n }\n if (isset($this->access_token) && $this->access_token)\n $headers[] = \"Authorization: OAuth2 \" . $this->access_token;\n if (!empty($this->remote_ip)) {\n if (defined('SAE_ACCESSKEY')) {\n $headers[] = \"SaeRemoteIP: \" . $this->remote_ip;\n } else {\n $headers[] = \"API-RemoteIP: \" . $this->remote_ip;\n }\n } else {\n if (!defined('SAE_ACCESSKEY')) {\n $headers[] = \"API-RemoteIP: \" . $_SERVER['REMOTE_ADDR'];\n }\n }\n curl_setopt($ci, CURLOPT_URL, $url);\n curl_setopt($ci, CURLOPT_HTTPHEADER, $headers);\n curl_setopt($ci, CURLINFO_HEADER_OUT, TRUE);\n $response = curl_exec($ci);\n $this->http_code = curl_getinfo($ci, CURLINFO_HTTP_CODE);\n $this->http_info = array_merge($this->http_info, curl_getinfo($ci));\n $this->url = $url;\n if ($this->debug) {\n echo \"=====post data======\\r\\n\";\n var_dump($postfields);\n echo \"=====headers======\\r\\n\";\n print_r($headers);\n echo '=====request info=====' . \"\\r\\n\";\n print_r(curl_getinfo($ci));\n echo '=====response=====' . \"\\r\\n\";\n print_r($response);\n }\n curl_close($ci);\n return $response;\n }", "function curlWrap($url, $json, $action)\n{\n\t$ch = curl_init();\n\tcurl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);\n\tcurl_setopt($ch, CURLOPT_MAXREDIRS, 10 );\n\tcurl_setopt($ch, CURLOPT_URL, ZDURL.$url);\n\tcurl_setopt($ch, CURLOPT_USERPWD, ZDUSER.\"/token:\".ZDAPIKEY);\n\tswitch($action){\n\t\tcase \"POST\":\n\t\t\tcurl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"POST\");\n\t\t\tcurl_setopt($ch, CURLOPT_POSTFIELDS, $json);\n\t\t\tbreak;\n\t\tcase \"GET\":\n\t\t\tcurl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"GET\");\n\t\t\tbreak;\n\t\tcase \"PUT\":\n\t\t\tcurl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"PUT\");\n\t\t\tcurl_setopt($ch, CURLOPT_POSTFIELDS, $json);\n\t\tdefault:\n\t\t\tbreak;\n\t}\n\tcurl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-type: application/json'));\n\tcurl_setopt($ch, CURLOPT_USERAGENT, \"MozillaXYZ/1.0\");\n\tcurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\tcurl_setopt($ch, CURLOPT_TIMEOUT, 10);\n\t$output = curl_exec($ch);\n\tcurl_close($ch);\n\t$decoded = json_decode($output);\n\treturn $decoded;\n}", "private function sendQueryByCurl() {\n $this->curl = curl_init();\n\n // JSON data request\n $jsonData = $this->getJsonData();\n\n // some params\n $urlParams = $this->getParamsUrlFormat();\n\n $this->setCurlOpts($this->curl, $jsonData, $urlParams);\n $this->setResult(curl_exec($this->curl));\n $this->setHttpCode(curl_getinfo($this->curl, CURLINFO_HTTP_CODE));\n\n curl_close($this->curl);\n }", "function http($url, $method, $postfields = NULL, $headers = array()) {\r\n $this->http_info = array();\r\n $ci = curl_init();\r\n /* Curl settings */\r\n curl_setopt($ci, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0);\r\n curl_setopt($ci, CURLOPT_USERAGENT, $this->useragent);\r\n curl_setopt($ci, CURLOPT_CONNECTTIMEOUT, $this->connecttimeout);\r\n curl_setopt($ci, CURLOPT_TIMEOUT, $this->timeout);\r\n curl_setopt($ci, CURLOPT_RETURNTRANSFER, TRUE);\r\n curl_setopt($ci, CURLOPT_ENCODING, \"\");\r\n curl_setopt($ci, CURLOPT_SSL_VERIFYPEER, $this->ssl_verifypeer);\r\n if (version_compare(phpversion(), '5.4.0', '<')) {\r\n curl_setopt($ci, CURLOPT_SSL_VERIFYHOST, 1);\r\n } else {\r\n curl_setopt($ci, CURLOPT_SSL_VERIFYHOST, 2);\r\n }\r\n curl_setopt($ci, CURLOPT_HEADERFUNCTION, array($this, 'getHeader'));\r\n curl_setopt($ci, CURLOPT_HEADER, FALSE);\r\n\r\n switch ($method) {\r\n case 'POST':\r\n curl_setopt($ci, CURLOPT_POST, TRUE);\r\n if (!empty($postfields)) {\r\n curl_setopt($ci, CURLOPT_POSTFIELDS, $postfields);\r\n $this->postdata = $postfields;\r\n }\r\n break;\r\n case 'DELETE':\r\n curl_setopt($ci, CURLOPT_CUSTOMREQUEST, 'DELETE');\r\n if (!empty($postfields)) {\r\n $url = \"{$url}?{$postfields}\";\r\n }\r\n }\r\n\r\n if ( isset($this->access_token) && $this->access_token )\r\n $headers[] = \"Authorization: OAuth2 \".$this->access_token;\r\n\r\n if ( !empty($this->remote_ip) ) {\r\n if ( defined('SAE_ACCESSKEY') ) {\r\n $headers[] = \"SaeRemoteIP: \" . $this->remote_ip;\r\n } else {\r\n $headers[] = \"API-RemoteIP: \" . $this->remote_ip;\r\n }\r\n } else {\r\n if ( !defined('SAE_ACCESSKEY') ) {\r\n $headers[] = \"API-RemoteIP: \" . $_SERVER['REMOTE_ADDR'];\r\n }\r\n }\r\n curl_setopt($ci, CURLOPT_URL, $url );\r\n curl_setopt($ci, CURLOPT_HTTPHEADER, $headers );\r\n curl_setopt($ci, CURLINFO_HEADER_OUT, TRUE );\r\n\r\n $response = curl_exec($ci);\r\n $this->http_code = curl_getinfo($ci, CURLINFO_HTTP_CODE);\r\n $this->http_info = array_merge($this->http_info, curl_getinfo($ci));\r\n $this->url = $url;\r\n\r\n if ($this->debug) {\r\n echo \"=====post data======\\r\\n\";\r\n var_dump($postfields);\r\n\r\n echo \"=====headers======\\r\\n\";\r\n print_r($headers);\r\n\r\n echo '=====request info====='.\"\\r\\n\";\r\n print_r( curl_getinfo($ci) );\r\n\r\n echo '=====response====='.\"\\r\\n\";\r\n print_r( $response );\r\n }\r\n curl_close ($ci);\r\n return $response;\r\n }", "function run_curl($p_path) {\r\n\r\n global $CURL_OPTIONS;\r\n\r\n $tp_result = array();\r\n $tp_curl = curl_init($p_path);\r\n curl_setopt_array($tp_curl, $CURL_OPTIONS);\r\n $tp_result['content'] = curl_exec($tp_curl);\r\n $tp_result['code'] = curl_getinfo($tp_curl, CURLINFO_HTTP_CODE);\r\n curl_close($tp_curl);\r\n return $tp_result;\r\n\r\n}", "function funInitCurl(){\n $ch = curl_init();\n\n curl_setopt($ch, CURLOPT_HEADER, 0);\n curl_setopt($ch, CURLOPT_VERBOSE, 1);\n curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0)');\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\n curl_setopt($ch, CURLOPT_POST, 0);\n curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 20);\n\n return $ch;\n}", "function mi_http_request($url, $data)\r\n{\r\n\r\n $curl = curl_init($url);\r\n curl_setopt($curl, CURLOPT_POST, true);\r\n curl_setopt($curl, CURLOPT_POSTFIELDS, http_build_query($data));\r\n curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);\r\n $response = curl_exec($curl);\r\n curl_close($curl);\r\n return $response;\r\n}", "function basicCurl($curlURL) {\n $url = $curlURL;\n $cURL = curl_init();\n curl_setopt($cURL, CURLOPT_URL, $url);\n curl_setopt($cURL, CURLOPT_HTTPGET, true);\n curl_setopt($cURL, CURLOPT_HTTPHEADER, array(\n 'Content-Type: application/json',\n 'Accept: application/json'\n ));\n curl_setopt($cURL, CURLOPT_FOLLOWLOCATION, true);\n curl_setopt($cURL, CURLOPT_RETURNTRANSFER, 1);\n curl_setopt($cURL, CURLOPT_USERAGENT, \"spider\");\n $result = curl_exec($cURL);\n \nif ($result === FALSE) {\n return \"cURL Error: \" . curl_error($cURL);\n} else {\n\treturn $result;\n}\n curl_close($cURL);\n \n}", "private function http($url, $method = \"GET\", $postfields=NULL){\n $this->http_info = array();\n $handle = curl_init();\n /* Curl settings */\n curl_setopt($handle, CURLOPT_HEADER, FALSE);\n curl_setopt($handle, CURLOPT_RETURNTRANSFER, TRUE);\n curl_setopt($handle, CURLOPT_PROTOCOLS, CURLPROTO_HTTPS);\n curl_setopt($handle, CURLOPT_HTTPHEADER, array('Expect:'));\n curl_setopt($handle, CURLOPT_SSL_VERIFYPEER, $this->verifypeer);\n curl_setopt($handle, CURLOPT_CONNECTTIMEOUT, $this->connecttimeout);\n curl_setopt($handle, CURLOPT_TIMEOUT, $this->timeout);\n curl_setopt($handle, CURLOPT_USERAGENT, $this->useragent);\n curl_setopt($handle, CURLOPT_HEADERFUNCTION, array($this, 'getHeader'));\n \n if ($this->proxy_settings['behind_proxy']){\n curl_setopt($ci, CURLOPT_PROXY, $this->proxy_settings['host']);\n curl_setopt($ci, CURLOPT_PROXYPORT, $this->proxy_settings['port']);\n curl_setopt($ci, CURLOPT_PROXYUSERPWD, \"{$this->proxy_settings['user']}:{$this->proxy_settings['pass']}\");\n curl_setopt($ci, CURLOPT_PROXYTYPE, $this->proxy_settings['type']);\n curl_setopt($ci, CURLOPT_PROXYAUTH, $this->proxy_settings['auth']);\n }\n \n switch($method){\n case self::$METHOD_POST:\n curl_setopt($handle, CURLOPT_POST, TRUE);\n if (!empty($postfields)) {\n curl_setopt($handle, CURLOPT_POSTFIELDS, $postfields);\n }\n break;\n case self::$METHOD_DELETE:\n curl_setopt($handle, CURLOPT_CUSTOMREQUEST, 'DELETE');\n if (!empty($postfields)){\n $url .= \"?\".OAuthUtil::build_http_query($postfields);\n }\n break;\n }\n curl_setopt($handle, CURLOPT_URL, $url);\n $response = curl_exec($handle);\n $this->http_code = curl_getinfo($handle, CURLINFO_HTTP_CODE);\n $this->http_info = array_merge($this->http_info, curl_getinfo($handle));\n $this->url = $url;\n curl_close($handle);\n return $response;\n }", "function httpRequest($url, $post=null, $headers=null, $method='GET', $timeout=1800)\n{\n Log::debug(\"$url \".anyToString($post).\" $method\",'exthttp');\n $httpMethod = 'GET';\n //$cookie_jar = tempnam('/tmp','cookie');\n $url = (string) $url;\n $ch = curl_init();\n curl_setopt($ch, CURLOPT_URL, $url);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n curl_setopt($ch, CURLOPT_HEADER, 1); // To get only the headers use CURLOPT_NOBODY\n curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 2); //TODO get seconds from ini files\n curl_setopt($ch, CURLOPT_TIMEOUT, $timeout); //TODO get seconds from ini files\n curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);\n curl_setopt($ch, CURLOPT_USERAGENT, \"Mozilla/4.0 (compatible;)\");\n curl_setopt($ch, CURLOPT_COOKIEJAR, '/tmp/cookie.php.dat'); // TODO add hostname to filename\n curl_setopt($ch, CURLOPT_COOKIEFILE, '/tmp/cookie.php.dat');\n\n if ($headers)\n {\n curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); // !array\n }\n\n // TODO clear cookie curl_setopt($ch, CURLOPT_COOKIELIST, \"ALL\");\n curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); // http://unitstep.net/blog/2009/05/05/using-curl-in-php-to-access-https-ssltls-protected-sites/\n curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);\n if (count($post) && $method != 'PUT')\n {\n $method = 'POST';\n $httpMethod = 'POST';\n curl_setopt($ch, CURLOPT_POST, true);\n curl_setopt($ch, CURLOPT_POSTFIELDS, $post);\n }\n elseif ($post && $method == 'PUT')\n {\n $httpMethod = 'PUT';\n $fp = fopen('php://temp/maxmemory:256000', 'w');\n if (!$fp)\n die('could not open temp memory data');\n fwrite($fp, $post);\n fseek($fp, 0);\n curl_setopt($ch, CURLOPT_BINARYTRANSFER, true);\n curl_setopt($ch, CURLOPT_INFILE, $fp);\n curl_setopt($ch, CURLOPT_INFILESIZE, strlen($post));\n }\n $output = curl_exec($ch);\n if (curl_errno($ch))\n {\n $errno = curl_errno($ch);\n $error = curl_error($ch).' ('.$errno.')';\n curl_close($ch);\n throw new Exception($error, (int)$errno);\n }\n // {httpcode: 200, url: '/login', effectiveurl: '/account', 'totaltime': 2, data: '<html>', 'headers': [k:v,..], redirectcount: 1, receivedbytes: 1000, 'method': post, 'contenttype': 'html'}\n $meta = array();\n $meta['effectiveurl'] = curl_getinfo($ch, CURLINFO_EFFECTIVE_URL);\n $meta['httpcode'] = (integer) curl_getinfo($ch, CURLINFO_HTTP_CODE); // last\n $meta['totaltime'] = (float) curl_getinfo($ch, CURLINFO_TOTAL_TIME);\n $meta['dnstime'] = (float) curl_getinfo($ch, CURLINFO_NAMELOOKUP_TIME);\n $meta['connecttime'] = (float) curl_getinfo($ch, CURLINFO_CONNECT_TIME);\n $meta['starttransfertime'] = (float) curl_getinfo($ch, CURLINFO_STARTTRANSFER_TIME);\n $meta['redirectcount'] = (integer) curl_getinfo($ch, CURLINFO_REDIRECT_COUNT);\n $meta['receivedbytes'] = (integer) curl_getinfo($ch, CURLINFO_SIZE_DOWNLOAD);\n $meta['contenttype'] = curl_getinfo($ch, CURLINFO_CONTENT_TYPE);\n $headersBytes = (integer) curl_getinfo($ch, CURLINFO_HEADER_SIZE);\n $meta['url'] = $url;\n $meta['method'] = $httpMethod;\n $header = substr($output, 0, $headersBytes);\n $body = substr($output, $headersBytes);\n $headersarray = explode(\"\\r\\n\", $header);\n $headersclean = array();\n foreach ($headersarray as $headervalue)\n {\n $hstruct = explode(':', $headervalue); //$headerkey\n if ($hstruct[0] && $hstruct[1])\n $headersclean[$hstruct[0]] = $hstruct[1];\n }\n $meta['headers'] = $headersclean;\n // cookies\n $pattern = \"#Set-Cookie:\\\\s+(?<cookie>[^=]+=[^;]+)#m\";\n preg_match_all($pattern, $header, $matches);\n $cookiesOut = implode(\"; \", $matches['cookie']);\n foreach (explode(';',$cookiesOut) as $kv)\n {\n list($k,$v) = explode('=',$kv);\n $k = trim($k);\n $v = trim($v);\n $meta['newcookies'][$k] = urldecode($v);\n }\n unset($meta['headers']['Set-Cookie']);\n\n $meta['data'] = $body;\n //unset($body);\n curl_close($ch);\n if ($meta['httpcode'] == 200)\n {\n // $meta['contenttype'] == 'text/html'\n $aa = explode(';', $meta['contenttype']);\n if (count($aa) == 1)\n {\n if ($meta['contenttype'] == 'text/html') $ishtml = true;\n }\n else { // 2 or more\n if ($aa[0] == 'text/html') $ishtml = true;\n $aa[1] = trim($aa[1]);\n //println($aa[1],1,TERM_RED);\n $enc = explode('=', $aa[1]);\n //println($enc);\n if ($enc[0] == 'charset')\n {\n //println($enc[1],1,TERM_YELLOW);\n if ($enc[1] == 'windows-1251')\n {\n $meta['data'] = mb_convert_encoding($meta['data'], \"utf-8\", \"windows-1251\");\n }\n }\n }\n// printlnd($meta['contenttype']);\n if (explode(';', $meta['contenttype'])[0] == 'application/json') $isjson = true;\n\n if ($ishtml) {\n $d = new DOMDocument;\n $d->loadHTML($body);\n $meta['html'] = $d;\n }\n elseif ($isjson)\n {\n\n $meta['json'] = json_decode($body, true);\n }\n }\n return $meta;\n}", "function Curl($url = false , array $data = array()){\n\n\t\tif($url !== false){\n\n\t\t\t$build[CURLOPT_POST] = 1;\n\t\t\t$build[CURLOPT_POSTFIELDS] = http_build_query($data, '', '&');\n\n\t\t\treturn new curlseton($url,$build);\n\t\t\t\n\t\t}\n\t}", "public static function curlGET($url,$dato){\n$query = http_build_query($dato);\n$url=$url.\"?\".$query;\n$ch = curl_init($url);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n curl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"GET\");\n $response = curl_exec($ch);\n curl_close($ch);\n if(!$response)\n {\n return false;\n }\n else\n {\n return $response;\n }\n}", "function GoCURL($campos, $url)\n{\n\n //url do destino da requsiçao, equivalente ao \"action\" de um formulário\n $url = 'http://localhost/API/'.$url;\n\n $token = GenerateToken();\n \n $campos['TokenRequest'] = $token; \n\n $string_campos = '';\n foreach($campos as $name => $valor) {\n $string_campos .= $name . '=' . $valor . '&';\n }\n $string_campos = rtrim($string_campos,'&');\n\n $ch = curl_init();\n //configurando as opções da conexão curl\n curl_setopt($ch,CURLOPT_URL,$url);\n //este parâmetro diz que queremos resgatar o retorno da requisição\n curl_setopt($ch,CURLOPT_RETURNTRANSFER, TRUE);\n curl_setopt($ch,CURLOPT_POST,count($campos));\n curl_setopt($ch,CURLOPT_POSTFIELDS,$string_campos);\n //manda a requisição post\n $resultado = curl_exec($ch);\n //echo '<Pre>';print_r($resultado);\n curl_close($ch);\n $json = json_decode($resultado,1);\n \n if(!$json['request'])\n { \n echo '<Pre>';print_r($resultado);\n echo '<Pre>';print_r($json);\n echo utf8_decode(\"ocorreu um erro na sua conexão, tente novamente\");\n exit;\n } \n\n return $json;\n}", "function http($url, $method, $postfields = NULL, $headers = array()) {\r\n\t\t//print_r($postfields);exit;\r\n\t\t$this->http_info = array();\r\n\t\t$ci = curl_init();\r\n\t\t/* Curl settings */\r\n\t\t\r\n\t\tcurl_setopt($ci, CURLOPT_USERAGENT, 'PHP-SDK OAuth2.0');\r\n curl_setopt($ci, CURLOPT_CONNECTTIMEOUT, 3);\r\n curl_setopt($ci, CURLOPT_TIMEOUT, 3);\r\n curl_setopt($ci, CURLOPT_RETURNTRANSFER, true);\r\n curl_setopt($ci, CURLOPT_SSL_VERIFYPEER, false);\r\n curl_setopt($ci, CURLOPT_SSL_VERIFYHOST, false);\t\t\r\n\t\tcurl_setopt($ci, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0);\r\n\t\tcurl_setopt($ci, CURLOPT_ENCODING, \"\");\r\n\t\tcurl_setopt($ci, CURLOPT_HEADERFUNCTION, array($this, 'getHeader'));\r\n\t\tcurl_setopt($ci, CURLOPT_HEADER, FALSE);\r\n\t\t\r\n\r\n\t\t\r\n\r\n\t\tswitch ($method) {\r\n\t\t\tcase 'POST':\r\n\t\t\t\tcurl_setopt($ci, CURLOPT_POST, TRUE);\r\n\t\t\t\tif (!empty($postfields)) {\r\n\t\t\t\t\tcurl_setopt($ci, CURLOPT_POSTFIELDS, $postfields);\r\n\t\t\t\t\t$this->postdata = $postfields;\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\tcase 'DELETE':\r\n\t\t\t\tcurl_setopt($ci, CURLOPT_CUSTOMREQUEST, 'DELETE');\r\n\t\t\t\tif (!empty($postfields)) {\r\n\t\t\t\t\t$url = \"{$url}?{$postfields}\";\r\n\t\t\t\t}\r\n\t\t}\r\n\r\n\r\n\t\t$headers[] = \"API-RemoteIP: \" . $_SERVER['REMOTE_ADDR'];\r\n\t\tcurl_setopt($ci, CURLOPT_URL, $url );\r\n\t\tcurl_setopt($ci, CURLOPT_HTTPHEADER, $headers );\r\n\t\tcurl_setopt($ci, CURLINFO_HEADER_OUT, TRUE );\r\n\r\n\t\t$response = curl_exec($ci);\r\n\t\t\r\n\t\t$this->http_code = curl_getinfo($ci, CURLINFO_HTTP_CODE);\r\n\t\t$this->http_info = array_merge($this->http_info, curl_getinfo($ci));\r\n\t\t$this->url = $url;\r\n\r\n\t\tif ($this->debug) {\r\n\t\t\techo \"=====post data======\\r\\n\";\r\n\t\t\tvar_dump($postfields);\r\n\r\n\t\t\techo '=====info====='.\"\\r\\n\";\r\n\t\t\tprint_r( curl_getinfo($ci) );\r\n\r\n\t\t\techo '=====$response====='.\"\\r\\n\";\r\n\t\t\tprint_r( $response );\r\n\t\t}\r\n\t\tcurl_close ($ci);\r\n\t\treturn $response;\r\n\t}", "function curl_method(&$curl, $method = 'GET') {\n return curl_option($curl, CURLOPT_CUSTOMREQUEST, $method);\n}", "function Curl_Call($url, $args) {\n\n\t\t$ch = curl_init();\n\t\tcurl_setopt($ch, CURLOPT_URL, $url);\n\t\tcurl_setopt($ch, CURLOPT_HEADER, false);\n\t\tcurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\t\tcurl_setopt($ch, CURLOPT_POST, true);\n\t\tcurl_setopt($ch, CURLOPT_VERBOSE, true);\n\t\tcurl_setopt($ch, CURLOPT_POSTFIELDS, $args);\n\t\t$data = curl_exec($ch);\n\n\t\t//echo \"<pre>\".print_r(curl_getinfo($ch));\n\n\t\treturn $data;\n\t}", "static function curl_request($url,$data = null,$second=30){\n $curl = curl_init();\n\t\tcurl_setopt($curl, CURLOPT_TIMEOUT,$second);\n curl_setopt($curl, CURLOPT_URL, $url);\n curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, FALSE);\n curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, FALSE);\n if (!empty($data)){\n curl_setopt($curl, CURLOPT_POST, 1);\n curl_setopt($curl, CURLOPT_POSTFIELDS, $data);\n }\n curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);\n $output = curl_exec($curl);\n curl_close($curl);\n return $output;\n }", "private function configureCurl ()\n {\n curl_setopt_array($this->cURL, [\n CURLOPT_URL => $this->url,\n CURLOPT_RETURNTRANSFER => true\n ]);\n }", "function send_request( $http_method, $url, $auth_header = null, $postData = null ) {\n\t$curl = curl_init( $url );\n\tcurl_setopt( $curl, CURLOPT_RETURNTRANSFER, true );\n\tcurl_setopt( $curl, CURLOPT_FAILONERROR, false );\n\tcurl_setopt( $curl, CURLOPT_SSL_VERIFYPEER, false );\n\n\tswitch( $http_method ) {\n\t\tcase 'GET':\n\t\t\tif( $auth_header ) {\n\t\t\t\tcurl_setopt( $curl, CURLOPT_HTTPHEADER, array( $auth_header ) );\n\t\t\t}\n\t\t\tbreak;\n\t\tcase 'POST':\n\t\t\tcurl_setopt( $curl, CURLOPT_HTTPHEADER, array( 'Content-Type: application/atom+xml',\n\t\t\t\t$auth_header ) );\n\t\t\tcurl_setopt( $curl, CURLOPT_POST, 1 );\n\t\t\tcurl_setopt( $curl, CURLOPT_POSTFIELDS, $postData );\n\t\t\tbreak;\n\t\tcase 'PUT':\n\t\t\tcurl_setopt( $curl, CURLOPT_HTTPHEADER, array( 'Content-Type: application/atom+xml',\n\t\t\t\t$auth_header ) );\n\t\t\tcurl_setopt( $curl, CURLOPT_CUSTOMREQUEST, $http_method );\n\t\t\tcurl_setopt( $curl, CURLOPT_POSTFIELDS, $postData );\n\t\t\tbreak;\n\t\tcase 'DELETE':\n\t\t\tcurl_setopt( $curl, CURLOPT_HTTPHEADER, array( $auth_header ) );\n\t\t\tcurl_setopt( $curl, CURLOPT_CUSTOMREQUEST, $http_method );\n\t\t\tbreak;\n\t}\n\t$response = curl_exec( $curl );\n\tif( !$response ) {\n\t\t$response = curl_error( $curl );\n\t}\n\tcurl_close( $curl );\n\treturn $response;\n}", "function get( $url, $post = null, $auth = null, $progress = false, $timeout = 5, &$error = false, $options = array() ) {\n\n // Create CURL Object\n $CURL = curl_init();\n\n // By using array union we can pre-set/change options from function call\n $curl_opts = $options + array(\n CURLOPT_URL => $url,\n CURLOPT_TIMEOUT => $timeout,\n CURLOPT_RETURNTRANSFER => true,\n CURLOPT_USERAGENT => 'Mozilla/5.0 (AIO Radio Station Player) AppleWebKit/537.36 (KHTML, like Gecko)',\n CURLOPT_FOLLOWLOCATION => ( ( ini_get( 'open_basedir' ) == false ) ? true : false ),\n CURLOPT_CONNECTTIMEOUT => ( ( $timeout < 6 && $timeout != 0 ) ? 5 : $timeout ),\n CURLOPT_REFERER => 'http' . ( ( $_SERVER[ 'SERVER_PORT' ] == 443 ) ? 's://' : '://' ) . $_SERVER[ 'HTTP_HOST' ] . strtok( $_SERVER[ 'REQUEST_URI' ], '?' ),\n CURLOPT_CAINFO => dirname( __FILE__ ) . '/bundle.crt'\n );\n\n\n // Post data to the URL (expects array)\n if ( isset( $post ) && is_array( $post ) ) {\n\n // Make every just simpler using custom array for options\n $curl_opts = $curl_opts + array(\n CURLOPT_POSTFIELDS => http_build_query( $post, '', '&' ),\n CURLOPT_POST => true,\n CURLOPT_FRESH_CONNECT => true,\n CURLOPT_FORBID_REUSE => true\n );\n\n }\n\n // Use HTTP Authorization\n if ( isset( $auth ) && !empty( $auth ) ) {\n\n $curl_opts = $curl_opts + array( CURLOPT_USERPWD => $auth );\n\n }\n\n // Call anonymous $progress_function function\n if ( $progress !== false && is_callable( $progress ) ) {\n\n $curl_opts = $curl_opts + array(\n CURLOPT_NOPROGRESS => false,\n CURLOPT_PROGRESSFUNCTION => $progress\n );\n\n }\n\n // Before executing CURL pass options array to the session\n curl_setopt_array( $CURL, $curl_opts );\n\n // Finally execute CURL\n $data = curl_exec( $CURL );\n\n // Parse ERROR\n if ( curl_error( $CURL ) ) {\n\n // This must be referenced in-memory variable\n $error = curl_error( $CURL );\n\n // Only works when writeLog function is available\n if ( function_exists( 'writeLog' ) )\n writeLog( 'errors', \"CURL Request \\\"{$url}\\\" failed! LOG: \" . curl_error( $CURL ), dirname( __FILE__ ) . '/./../tmp/logs/' );\n\n }\n\n // Close connection and return data\n curl_close( $CURL );\n return $data;\n\n }", "function curl($url,$opt=[],$curl_info=false){\n $ch = curl_init();\n//2.设置URL和相应的选项\n curl_setopt($ch, CURLOPT_URL, $url);\n curl_setopt($ch, CURLOPT_HEADER, 0);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\n\n if(!empty($opt)){\n curl_setopt_array($ch,$opt);\n }\n//3.抓取URL并把它传递给浏览器\n $res = curl_exec($ch);\n// echo curl_getinfo($ch)['total_time'].'<br/>';\n\n if($curl_info === true){\n return curl_getinfo($ch);\n }\n //4.关闭cURL资源,并且释放系统资源\n curl_close($ch);\n return json_decode($res,true);\n}", "function http($url, $args = array()) {\n\n\t\tglobal $CONFIG;\n\n\t\t$userAgent = '(Elgg ' . $CONFIG->release . ')';\n\n\t\t$ch = curl_init();\n\t\t//curl_setopt($ch, CURLOPT_HTTPHEADER, \"Host: api.dropbox.com\");\n\t\tcurl_setopt($ch, CURLOPT_USERAGENT, $userAgent);\n\t\tcurl_setopt($ch, CURLOPT_URL, $url);\n\t\tcurl_setopt($ch, CURLOPT_FAILONERROR, true);\n\t\tcurl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);\n\t\tcurl_setopt($ch, CURLOPT_AUTOREFERER, true);\n\t\tcurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\t\tcurl_setopt($ch, CURLOPT_TIMEOUT, 20);\n\t\tcurl_setopt($ch, CURLOPT_VERBOSE, true);\n\t\t\n\t\t/**\n\t\t * This is needed to remove problems with certificate \n\t\t * authentication against the dropbox server. \n\t\t */\n\t\tcurl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);\n\t\tcurl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);\n\t\t\n\t\tif (!empty($args['username']) && !empty($args['password'])) {\n\t\t\tcurl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_ANY);\n\t\t\tcurl_setopt($ch, CURLOPT_USERPWD, $args['username'] . ':' . $args['password']);\n\t\t}\n\n\t\tif (!empty($args['post'])) {\n\t\t\tcurl_setopt($ch, CURLOPT_POST, 1);\n\t\t\tcurl_setopt($ch, CURLOPT_POSTFIELDS, $args['data']);\n\t\t}\n\n\t\tif (!empty($args['headers'])) {\n\t\t\tcurl_setopt($ch, CURLOPT_HTTPHEADER, $args['headers']);\n\t\t}\n\n\t\t$html = curl_exec($ch);\n\t\t\n\t\t$rc = curl_getinfo($ch, CURLINFO_HTTP_CODE);\n\t\t$info = curl_getinfo($ch);\n\t\t$err = curl_error($ch);\n\t\t$errno = curl_errno($ch);\n\n\t\tcurl_close($ch);\n\t\t\n\t\treturn array('rc' => $rc, \n\t\t\t 'html' => $html, \n\t\t\t 'errno' => $errno,\n\t\t\t 'err' => $err,\n\t\t\t 'info' => $info);\n\t}", "function http_upload($url, $method, $postfields = NULL, $headers = array()) {\n\t\t$this->http_info = array();\n\t\t//$url=\"http://222.44.51.34:1234\";\n\t\t$ci = curl_init();\n\t\t/* Curl settings */\n\t\tcurl_setopt($ci, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0);\n\t\tcurl_setopt($ci, CURLOPT_USERAGENT, $this->useragent);\n\t\tcurl_setopt($ci, CURLOPT_CONNECTTIMEOUT, $this->connecttimeout);\n\t\tcurl_setopt($ci, CURLOPT_TIMEOUT, $this->timeout);\n\t\tcurl_setopt($ci, CURLOPT_RETURNTRANSFER, TRUE);\n\t\tcurl_setopt($ci, CURLOPT_ENCODING, \"\");\n\t\tcurl_setopt($ci, CURLOPT_SSL_VERIFYPEER, $this->ssl_verifypeer);\n\t\tcurl_setopt($ci, CURLOPT_SSL_VERIFYHOST, 1);\n\t\tcurl_setopt($ci, CURLOPT_HEADERFUNCTION, array($this, 'getHeader'));\n\t\tcurl_setopt($ci, CURLOPT_HEADER, FALSE);\n\n\t\tswitch ($method) {\n\t\t\tcase 'POST':\n\t\t\t\tcurl_setopt($ci, CURLOPT_POST, TRUE);\n\t\t\t\tif (!empty($postfields)) {\n\t\t\t\t\tcurl_setopt($ci, CURLOPT_POSTFIELDS, $postfields);\n\t\t\t\t\t$this->postdata = $postfields;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 'DELETE':\n\t\t\t\tcurl_setopt($ci, CURLOPT_CUSTOMREQUEST, 'DELETE');\n\t\t\t\tif (!empty($postfields)) {\n\t\t\t\t\t$url = \"{$url}?{$postfields}\";\n\t\t\t\t}\n\t\t}\n\n\t\tif ( isset($this->Token['access_token']) && $this->Token['access_token'] )\n\t\t\t$headers[] = \"Authorization: OAuth2 \".$this->Token['access_token'];\n\n\t\tif ( !empty($this->remote_ip) ) {\n\t\t\tif ( defined('SAE_ACCESSKEY') ) {\n\t\t\t\t$headers[] = \"SaeRemoteIP: \" . $this->remote_ip;\n\t\t\t} else {\n\t\t\t\t$headers[] = \"API-RemoteIP: \" . $this->remote_ip;\n\t\t\t}\n\t\t} else {\n\t\t\tif ( !defined('SAE_ACCESSKEY') ) {\n\t\t\t\t$headers[] = \"API-RemoteIP: \" . $_SERVER['REMOTE_ADDR'];\n\t\t\t}\n\t\t}\n\t\tcurl_setopt($ci, CURLOPT_URL, $url );\n\t\tcurl_setopt($ci, CURLOPT_HTTPHEADER, $headers );\n\t\tcurl_setopt($ci, CURLINFO_HEADER_OUT, TRUE );\n\n\t\t$response = curl_exec($ci);\n\t\t$this->http_code = curl_getinfo($ci, CURLINFO_HTTP_CODE);\n\t\t$this->http_info = array_merge($this->http_info, curl_getinfo($ci));\n\t\t$this->url = $url;\n\n\t\tif ($this->debug) {\n\t\t\techo \"=====post data======\\r\\n\";\n\t\t\tvar_dump($postfields);\n\n\t\t\techo \"=====headers======\\r\\n\";\n\t\t\tprint_r($headers);\n\n\t\t\techo '=====request info====='.\"\\r\\n\";\n\t\t\tprint_r( curl_getinfo($ci) );\n\n\t\t\techo '=====response====='.\"\\r\\n\";\n\t\t\tprint_r( $response );\n\t\t}\n\t\tcurl_close ($ci);\n\t\treturn $response;\n\t}", "function makecurl($api,$data=array())\n{\n$options = array(\n);\n$ds1=array();\n$ds1['header']=\"Content-type: application/x-www-form-urlencoded\\r\\n\";\n$ds1['method']=\"POST\";\n$ds1['content']=http_build_query($data);\n$options['http']=$ds1;\n \n$context = stream_context_create($options);\n$result = file_get_contents($api, false, $context);\nif ($result === FALSE) { /* Handle error */ }\nreturn $result;\n}", "private function postHop () {\n\t\t$this->result = curl_exec ( $this->ch );\n\t\tcurl_close ( $this->ch );\n\t}", "function makeCurl($method,$datas=[]) //make and receive requests to bot\n{\n $ch = curl_init();\n curl_setopt($ch, CURLOPT_URL,\"https://api.telegram.org/bot365628024:AAH8l35wfRQacP6GZRi586lRu0UiJXSFrCM/{$method}\");\n curl_setopt($ch, CURLOPT_POST, 1);\n curl_setopt($ch, CURLOPT_POSTFIELDS,http_build_query($datas));\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n $server_output = curl_exec ($ch);\n curl_close ($ch);\n return $server_output;\n}", "function api_test_curl()\r\n\t{\r\n\t\techo \"true\";\r\n\t}", "function cURL($type, $url, $header, $postfields, $authorization){\r\n\tglobal $refid;\r\n\t$ch = curl_init($url);\r\n\tif($type == \"POST\") {curl_setopt($ch, CURLOPT_POST, TRUE);}\r\n\tif($type == \"PATCH\") {curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'PATCH');}\r\n\tcurl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);\r\n\tcurl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);\r\n\tif($authorization != NULL) {curl_setopt($ch, CURLOPT_USERPWD, $authorization);}\r\n\tcurl_setopt($ch, CURLOPT_HTTPHEADER, $header);\r\n\tif($type == \"POST\" or $type == \"PATCH\") {curl_setopt($ch, CURLOPT_POSTFIELDS, $postfields);}\r\n\t$response = curl_exec($ch);\r\n\t$error_no = curl_errno($ch);\r\n\t$error_message = curl_error($ch);\r\n\tcurl_close($ch);\r\n\t$error = \"cURL error #{$error_no} for asset {$refid} - {$error_message}\";\r\n\tif($error_no != 0){\r\n\t\ttrigger_error($error);\r\n\t}\r\n\treturn $response;\r\n}", "public function sendCurl() {\n\t\t$this->curlResponse = $this->curl->exec();\n\t}", "function new_post($request,$url) {\n ##Data Post\n $ch = curl_init();\n curl_setopt($ch, CURLOPT_URL, $url);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);\n curl_setopt($ch, CURLOPT_POST, true);\n curl_setopt($ch, CURLOPT_POSTFIELDS, $request);\n curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);\n return curl_exec($ch);\n}", "function tincanlaunch_send_api_request($auth, $method, $url) {\n $options = func_num_args() === 4 ? func_get_arg(3) : array();\n\n if (!isset($options['contentType'])) {\n $options['contentType'] = 'application/json';\n }\n\n $http = array(\n // We don't expect redirects.\n 'max_redirects' => 0,\n // This is here for some proxy handling.\n 'request_fulluri' => 1,\n // Switching this to false causes non-2xx/3xx status codes to throw exceptions.\n // but we need to handle the \"error\" status codes ourselves in some cases.\n 'ignore_errors' => true,\n 'method' => $method,\n 'header' => array()\n );\n\n array_push($http['header'], 'Authorization: ' . $auth);\n\n if (($method === 'PUT' || $method === 'POST') && isset($options['content'])) {\n $http['content'] = $options['content'];\n array_push($http['header'], 'Content-length: ' . strlen($options['content']));\n array_push($http['header'], 'Content-Type: ' . $options['contentType']);\n }\n\n $context = stream_context_create(array('http' => $http));\n $fp = fopen($url, 'rb', false, $context);\n if (!$fp) {\n return array(\n \"metadata\" => null,\n \"content\" => null,\n \"status\" => 0\n );\n }\n $metadata = stream_get_meta_data($fp);\n $content = stream_get_contents($fp);\n $responsecode = (int) explode(' ', $metadata[\"wrapper_data\"][0])[1];\n\n fclose($fp);\n\n if ($options['contentType'] == 'application/json') {\n $content = json_decode($content);\n }\n\n return array(\n \"metadata\" => $metadata,\n \"content\" => $content,\n \"status\" => $responsecode\n );\n}", "private function init() {\n $this->_cm = curl_init();\n curl_setopt($this->_cm, CURLOPT_PROXY, $config['curl']['proxy']);\n curl_setopt($this->_cm, CURLOPT_HTTPAUTH, CURLAUTH_BASIC | CURLAUTH_DIGEST);\n curl_setopt($this->_cm, CURLOPT_SSL_VERIFYPEER, FALSE);\n curl_setopt($this->_cm, CURLOPT_SSL_VERIFYHOST, FALSE);\n curl_setopt($this->_cm, CURLOPT_RETURNTRANSFER, TRUE);\n curl_setopt($this->_cm, CURLOPT_TIMEOUT, $config['curl']['timeout']);\n curl_setopt($this->_cm, CURLOPT_POST, true); \n }", "function doCurl ($url, $options) {\n\tglobal $adminName, $adminPass, $verbose, $doe;\n\t\n\t$options = $options +\n\t\t\t array(CURLOPT_RETURNTRANSFER => true,\n\t\t\t\t\t CURLOPT_USERPWD => $adminName . \":\" . $adminPass,\n\t\t\t\t\t CURLOPT_HTTPHEADER => array('OCS-APIRequest:true', 'Accept: application/json'),\n\t\t\t );\n\n\tif ($verbose > 2) {\n\t\t$options = $options +\n\t\t\t\t array(CURLOPT_VERBOSE => TRUE,\n\t\t\t\t\t\t CURLOPT_HEADER => TRUE\n\t\t\t\t );\n\t}\n\n\t$ch = curl_init($url);\n\n \tcurl_setopt_array( $ch, $options);\n\t\n// For use with Charles proxy:\n// \tcurl_setopt($ch, CURLOPT_PROXYPORT, '8888');\n// \tcurl_setopt($ch, CURLOPT_PROXYTYPE, 'HTTP');\n// \tcurl_setopt($ch, CURLOPT_PROXY, '127.0.0.1');\n\n $response = curl_exec($ch);\n //print_r($response);\n $response = json_decode($response);\n //print_r($response);\n\n $statuscode = $response->{'ocs'}->{'meta'}->statuscode;\n\n \n if($statuscode != \"100\"){\n echo $statuscode;\n echo $response->{'ocs'}->{'meta'}->message;\n return $statuscode;\n exit(1);\n }\n\n if($response === false) {\n echo 'Curl error: ' . curl_error($ch) . \"\\n\";\n\t\texit(1);\n\t}\n\t\n\tcurl_close($ch);\n \n\t/* An error causes an exit\n\tif (preg_match(\"~<statuscode>(\\d+)</statuscode>~\", $response, $matches)) {\n $responseCode = $matches[1]; // what's the status code\n //echo $matches[3];\n //echo \"<h3>\" . $response . \"</h3>\";\n if ($responseCode == '404') {\n return \"2\";\n exit(2);\n } elseif ($responseCode != '100') {\n echo \"1Error response code; exiting\\n$response\\n\";\n\t\t\texit(1);\n\t\t}\n\t}\n\telse { // something is definitely wrong\n echo \"No statuscode response; exiting:\\n$response\\n\";\n \n\t\texit(1);\n\t}\n */\n\t// What sort of response do we want to give\n//\tif ($verbose == 1) { echo \"Response code from server: $responseCode\\n\"; }\n\t//if ($verbose == 1) { echo \"\\n\"; }\n\t//if ($verbose > 1) { echo \"Response from server:\\n$response\\n\\n\"; }\n\n\treturn $response;\n}", "function do_curl($url, $data_arr=NULL, $tierionHeaderArray=[])\n{\n\t$ch = curl_init($url);\n\n\t$headers = $tierionHeaderArray;\n\t// curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/5.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C)');\n\tcurl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);\n\tcurl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);\n\tcurl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\n\tcurl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);\n\n\tif ($data_arr != NULL) {\n\t\t$headers = array_merge(array('Content-Type: application/json'), $headers);\n\t\t$data_string = json_encode($data_arr);\n\t\tcurl_setopt($ch, CURLOPT_POST, 1);\n\t\tcurl_setopt($ch, CURLOPT_POSTFIELDS, $data_string);\n\t}\n\tcurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\n\n\tob_start(); // prevent any output\n\treturn curl_exec($ch); // Execute the Curl Command\n\tob_end_clean(); // stop preventing output\n\tcurl_close($ch);\n}", "public function access_curl(){\n\t\t$type = $this->_type;\n\n\t\tif($type == false){\n\t\t\treturn false;\n\t\t}\n\t\telse{\n\t\t\tswitch($type) {\n\t\t\t\tcase 'domain':\n\t\t\t\t\treturn $this->_checkDomainCURL();\n\t\t\t\tbreak;\n\t\t\t\tcase 'data':\n\t\t\t\t\treturn $this->_ProcessDataCurl();\n\t\t\t\tbreak;\n\t\t\t\tcase 'slice':\n\t\t\t\t\treturn $this->_sliceCurlData();\n\t\t\t\tbreak;\n\t\t\t\tcase 'favicon':\n\t\t\t\t\treturn $this->_getFavicon();\n\t\t\t\tbreak;\n\t\t\t\tcase 'loop-favicon':\n\t\t\t\t\treturn $this->_loopFavicon();\n\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\treturn $this->_ProcessDataCurl();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "private function curl_post($url, $data)\n {\n $json_str = file_get_contents($this->cil_config_file);\n $json = json_decode($json_str);\n \n $ch = curl_init();\n curl_setopt($ch, CURLOPT_URL, $url);\n //curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json','Content-Length: ' . strlen($doc)));\n curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');\n curl_setopt($ch, CURLOPT_POSTFIELDS,$data);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n curl_setopt($ch, CURLOPT_USERPWD, $json->readonly_unit_tester);\n curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);\n $response = curl_exec($ch);\n curl_close($ch);\n return $response;\n }", "function request(string $url, string $fields = '', int $isPost = 0)\n{\n $ch = curl_init();\n curl_setopt($ch, CURLOPT_URL, $url);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n curl_setopt($ch, CURLOPT_POST, $isPost);\n curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);\n if ($isPost) {\n curl_setopt($ch, CURLOPT_POSTFIELDS, $fields);\n }\n $requestHeaders = array(\n 'Content-type: application/x-www-form-urlencoded',\n 'Content-Length: ' . strlen($fields),\n );\n curl_setopt($ch, CURLOPT_HTTPHEADER, $requestHeaders);\n return curl_exec($ch);\n}", "function _curlRequest( $url, $method, $data = null, $sendAsJSON = true, $auth = true ) {\n\t$curl = curl_init();\n\tif ( $method == 'GET' && $data !== null ) {\n\t\t$url .= '?' . http_build_query( $data );\n\t}\n\tcurl_setopt( $curl, CURLOPT_URL, $url );\n\tif ( $auth ) {\n\t\tcurl_setopt( $curl, CURLOPT_USERPWD, P_SECRET );\n\t}\n\tcurl_setopt( $curl, CURLOPT_CUSTOMREQUEST, $method );\n\tif ( $method == 'POST' && $data !== null ) {\n\t\tif ( $sendAsJSON ) {\n\t\t\t$data = json_encode( $data );\n\t\t\tcurl_setopt( $curl, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json', 'Content-Length: ' . strlen( $data ) ) );\n\t\t}\n\t\tcurl_setopt( $curl, CURLOPT_POSTFIELDS, $data );\n\t}\n\tcurl_setopt( $curl, CURLOPT_RETURNTRANSFER, true );\n\tcurl_setopt( $curl, CURLOPT_HEADER, false );\n\tcurl_setopt( $curl, CURLOPT_SSL_VERIFYPEER, false );\n\tcurl_setopt( $curl, CURLOPT_SSL_VERIFYHOST, false );\n\t$response = curl_exec( $curl );\n\tif ( $response === false ) {\n\t\techo curl_error( $curl );\n\t\tcurl_close( $curl );\n\n\t\treturn false;\n\t}\n\t$httpCode = curl_getinfo( $curl, CURLINFO_HTTP_CODE );\n\tif ( $httpCode >= 400 ) {\n\t\techo curl_error( $curl );\n\t\tcurl_close( $curl );\n\n\t\treturn false;\n\t}\n\tcurl_close( $curl );\n\n\treturn json_decode( $response, true );\n}", "function http($url, $post_data = null) {\n\t\t$ch = curl_init ();\n\t\tif (defined ( \"CURL_CA_BUNDLE_PATH\" ))\n\t\t\tcurl_setopt ( $ch, CURLOPT_CAINFO, CURL_CA_BUNDLE_PATH );\n\t\tcurl_setopt ( $ch, CURLOPT_URL, $url );\n\t\tcurl_setopt ( $ch, CURLOPT_CONNECTTIMEOUT, 30 );\n\t\tcurl_setopt ( $ch, CURLOPT_TIMEOUT, 30 );\n\t\tcurl_setopt ( $ch, CURLOPT_RETURNTRANSFER, 1 );\n\t\t//////////////////////////////////////////////////\n\t\t///// Set to 1 to verify Hots SSL Cert ///////\n\t\t//////////////////////////////////////////////////\n\t\tcurl_setopt ( $ch, CURLOPT_SSL_VERIFYPEER, 0 );\n\t\tif (isset ( $post_data )) {\n\t\t\tcurl_setopt ( $ch, CURLOPT_POST, 1 );\n\t\t\tcurl_setopt ( $ch, CURLOPT_POSTFIELDS, $post_data );\n\t\t}\n\t\t$response = curl_exec ( $ch );\n\t\t$this->http_status = curl_getinfo ( $ch, CURLINFO_HTTP_CODE );\n\t\t$this->last_api_call = $url;\n\t\tcurl_close ( $ch );\n\t\tif(empty($response)) {\n\t\t\treturn 'WP-API might be down or unresponsive. Please go to http://flocks.biz and check if the main website is working. Send us an email to hello@flocks.biz in case you have more doubts.';\n\t\t}\n\t\tif(preg_match(\"/request\\-token/i\",$response) || preg_match(\"/access\\-token/i\",$response)) {\n\t\t\t//echo \"<br/><br/>\".preg_replace(array(\"/.*oauth\\_version\\=1\\.0/i\"),array(\"\"),urldecode($response)).\"<br/><br/>\";\n\t\t\treturn preg_replace(array(\"/.*oauth\\_version\\=1\\.0/i\"),array(\"\"),urldecode($response));\n\t\t} else {\n\t\t\t//echo \"<br/><br/>\".$response.\"<br/><br/>\";\n\t\t\treturn $response;\n\t\t}\n\t}", "function callAPI($method, $url, $data){\n $curl = curl_init();\n switch ($method){\n case \"POST\":\n curl_setopt($curl, CURLOPT_POST, 1);\n if ($data)\n curl_setopt($curl, CURLOPT_POSTFIELDS, $data);\n break;\n case \"PUT\":\n curl_setopt($curl, CURLOPT_CUSTOMREQUEST, \"PUT\");\n if ($data)\n curl_setopt($curl, CURLOPT_POSTFIELDS, $data);\t\t\t \t\t\t\t\t\n break;\n default:\n if ($data)\n $url = sprintf(\"%s?%s\", $url, http_build_query($data));\n }\n // OPTIONS:\n curl_setopt($curl, CURLOPT_URL, $url);\n curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);\n curl_setopt($curl, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);\n // EXECUTE:\n $result = curl_exec($curl);\n curl_close($curl);\n return $result;\n}", "function file_get_contents_curl($mURL, $mACCESS) {\n $ch = curl_init();\n curl_setopt($ch, CURLOPT_HEADER, 0);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\n curl_setopt($ch, CURLOPT_URL, $mURL);\n curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);\n curl_setopt($ch, CURLOPT_USERPWD, \"$mACCESS\");\n curl_setopt($ch, CURLOPT_PORT, 80);\n $data = curl_exec($ch);\n curl_close($ch);\n return $data;\n}", "private function initCurl()\n {\n $this->curlObj = curl_init();\n curl_setopt_array($this->curlObj, array(\n CURLOPT_RETURNTRANSFER => true,\n CURLOPT_POST => true,\n CURLOPT_FORBID_REUSE => true,\n CURLOPT_HEADER => false,\n CURLOPT_TIMEOUT => 120,\n CURLOPT_CONNECTTIMEOUT => 2,\n CURLOPT_HTTPHEADER => [\"Connection: Keep-Alive\", \"Keep-Alive: 120\"]\n ));\n }", "private function just_curl_get_data($url,$data)\n {\n \n $json_str = file_get_contents($this->cil_config_file);\n $json = json_decode($json_str);\n \n $ch = curl_init();\n curl_setopt($ch, CURLOPT_URL, $url);\n //curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json','Content-Length: ' . strlen($doc)));\n curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');\n curl_setopt($ch, CURLOPT_POSTFIELDS,$data);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n curl_setopt($ch, CURLOPT_USERPWD, $json->readonly_unit_tester);\n curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);\n $response = curl_exec($ch);\n curl_close($ch);\n return $response;\n\n }", "private function initCurl()\n\t{\n\t\t$this->_curl = curl_init();\n\t\t//TODO: delete useless lines\n\t\tcurl_setopt ($this->_curl, CURLOPT_SSL_VERIFYPEER, FALSE);\n\t\tcurl_setopt ($this->_curl, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']);\n\t\tcurl_setopt ($this->_curl, CURLOPT_TIMEOUT, 4000);\n\t\tcurl_setopt ($this->_curl, CURLOPT_FOLLOWLOCATION, 1);\n\t\tcurl_setopt ($this->_curl, CURLOPT_RETURNTRANSFER, 1);\n\t\tcurl_setopt ($this->_curl, CURLOPT_COOKIEJAR, self::$_COOKIE);\n\t\tcurl_setopt ($this->_curl, CURLOPT_COOKIEFILE, self::$_COOKIE);\n\t\tcurl_setopt ($this->_curl, CURLOPT_POST, 1);\n\t}", "function funExecuteCurl($ch){\n return curl_exec($ch);\n\n}", "function curl($url) {\n // Assigning cURL options to an array\n $options = Array(\n CURLOPT_RETURNTRANSFER => TRUE, // Setting cURL's option to return the webpage data\n CURLOPT_FOLLOWLOCATION => TRUE, // Setting cURL to follow 'location' HTTP headers\n CURLOPT_AUTOREFERER => TRUE, // Automatically set the referer where following 'location' HTTP headers\n CURLOPT_CONNECTTIMEOUT => 120, // Setting the amount of time (in seconds) before the request times out\n CURLOPT_TIMEOUT => 120, // Setting the maximum amount of time for cURL to execute queries\n CURLOPT_MAXREDIRS => 10, // Setting the maximum number of redirections to follow\n CURLOPT_USERAGENT => \"Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1a2pre) Gecko/2008073000 Shredder/3.0a2pre ThunderBrowse/3.2.1.8\", // Setting the useragent\n CURLOPT_URL => $url, // Setting cURL's URL option with the $url variable passed into the function\n );\n \n $ch = curl_init(); // Initialising cURL \n curl_setopt_array($ch, $options); // Setting cURL's options using the previously assigned array data in $options\n $data = curl_exec($ch); // Executing the cURL request and assigning the returned data to the $data variable\n curl_close($ch); // Closing cURL \n return $data; // Returning the data from the function \n }", "function curl($url) {\n // Assigning cURL options to an array\n $options = Array(\n CURLOPT_RETURNTRANSFER => TRUE, // Setting cURL's option to return the webpage data\n CURLOPT_FOLLOWLOCATION => TRUE, // Setting cURL to follow 'location' HTTP headers\n CURLOPT_AUTOREFERER => TRUE, // Automatically set the referer where following 'location' HTTP headers\n CURLOPT_CONNECTTIMEOUT => 120, // Setting the amount of time (in seconds) before the request times out\n CURLOPT_TIMEOUT => 120, // Setting the maximum amount of time for cURL to execute queries\n CURLOPT_MAXREDIRS => 10, // Setting the maximum number of redirections to follow\n CURLOPT_USERAGENT => \"Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1a2pre) Gecko/2008073000 Shredder/3.0a2pre ThunderBrowse/3.2.1.8\", // Setting the useragent\n CURLOPT_URL => $url, // Setting cURL's URL option with the $url variable passed into the function\n CURLOPT_SSL_VERIFYPEER => false,\n //CURLOPT_HTTPHEADER => array('Content-type: \"text/plain; charset=UTF-8\"'),\n );\n\n $ch = curl_init(); // Initialising cURL\n curl_setopt_array($ch, $options); // Setting cURL's options using the previously assigned array data in $options\n $data = curl_exec($ch); // Executing the cURL request and assigning the returned data to the $data variable\n curl_close($ch); // Closing cURL\n return $data; // Returning the data from the function\n }", "function execCurl($url) {\n\t//echo \"<br> URL: $url <br>\";\n\t\n\t$curl = curl_init();\n\t\n\tcurl_setopt_array($curl, array(\n\t\tCURLOPT_URL => $url,\n\t\tCURLOPT_RETURNTRANSFER => true,\n\t\tCURLOPT_HEADER => false)\n\t);\n\t\n\t$curl_response = curl_exec($curl);\n\t\n\t$curl_errno = curl_errno($curl);\n $curl_error = curl_error($curl);\n\t\n\tif (curl_error($curl) || $curl_response === false || $curl_errno > 0)\n {\n $info = curl_getinfo($curl);\n echo 'error occured during curl exec - ' . var_export($info) ;\n echo '<br> error -----------> '. $curl_error; \n curl_close($curl);\n }\n \n curl_close($curl);\n\treturn $curl_response;\n}", "function curl_URL_call($url){\n\t$ch = curl_init();\n\tcurl_setopt($ch, CURLOPT_URL, $url);\n\tcurl_setopt($ch, CURLOPT_HEADER, 0);\n\tcurl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); \n\t$output = curl_exec($ch);\n\tcurl_close($ch);\n\treturn $output;\n}", "function Qassim_HTTP($method, $url, $header, $data){\r\n\r\n if( $method == 1 ){\r\n $method_type = 1; // 1 = POST\r\n }else{\r\n $method_type = 0; // 0 = GET\r\n }\r\n\r\n $curl = curl_init();\r\n curl_setopt($curl, CURLOPT_URL, $url);\r\n curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);\r\n curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, 0);\r\n curl_setopt($curl, CURLOPT_HEADER, 0);\r\n\r\n if( $header !== 0 ){\r\n curl_setopt($curl, CURLOPT_HTTPHEADER, $header);\r\n }\r\n\r\n curl_setopt($curl, CURLOPT_POST, $method_type);\r\n\r\n if( $data !== 0 ){\r\n curl_setopt($curl, CURLOPT_POSTFIELDS, $data);\r\n }\r\n\r\n $response = curl_exec($curl);\r\n $json = json_decode($response, true);\r\n curl_close($curl);\r\n\r\n return $json;\r\n}", "function simple_curl($url)\n{\n $ch = curl_init();\n curl_setopt($ch, CURLOPT_URL, $url);\n curl_setopt($ch, CURLOPT_TIMEOUT, 5);\n curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5);\n curl_setopt($ch, CURLOPT_HEADER, false);\n curl_setopt($ch, CURLOPT_NOBODY, false);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);\n curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json', 'Accept: application/json'));\n $content = curl_exec($ch);\n $contentType = curl_getinfo($ch, CURLINFO_CONTENT_TYPE);\n curl_close($ch);\n //echo $content;\n return $content;\n}", "function CallAPI($method, $url, $data = false)\n{\n $curl = curl_init();\n\n switch ($method)\n {\n case \"POST\":\n curl_setopt($curl, CURLOPT_POST, 1);\n\n if ($data)\n curl_setopt($curl, CURLOPT_POSTFIELDS, $data);\n break;\n case \"PUT\":\n curl_setopt($curl, CURLOPT_PUT, 1);\n break;\n default:\n if ($data)\n $url = sprintf(\"%s?%s\", $url, http_build_query($data));\n }\n\n // Optional Authentication:\n curl_setopt($curl, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);\n curl_setopt($curl, CURLOPT_USERPWD, \"username:password\");\n\n curl_setopt($curl, CURLOPT_URL, $url);\n curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);\n\n $result = curl_exec($curl);\n\n curl_close($curl);\n\n// echo \"<pre>\",print_r($result);\n return $result;\n}", "private static function execCurl($full_url, $type,\n $headers, $post_data = null) {\n $curl_request = self::getCurlRequestType($type);\n\n if ($post_data !== null) {\n if ($type !== 'POST') {\n throw new Exception('Cannot post field data with non-POST request!');\n }\n }\n\n $session = curl_init($full_url);\n curl_setopt($session, CURLOPT_SSL_VERIFYPEER, true);\n curl_setopt($session, CURLOPT_SSL_VERIFYHOST, 2);\n curl_setopt($session, CURLOPT_RETURNTRANSFER, true);\n curl_setopt($session, CURLOPT_HTTPHEADER, $headers);\n curl_setopt($session, $curl_request, true);\n if ($post_data !== null) {\n curl_setopt($session, CURLOPT_POSTFIELDS, $post_data);\n }\n\n // Do it\n $server_output = curl_exec($session);\n curl_close($session);\n\n if ($server_output === false) {\n throw new Exception(\"Couldn't make cURL request!\");\n }\n\n return $server_output;\n }", "function curl_post($url, $post) {\n\t$ch = curl_init(); \n curl_setopt($ch, CURLOPT_POST, 1); \n curl_setopt($ch, CURLOPT_URL,$url); \n //curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); \n curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);\n curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);\n curl_setopt($ch, CURLOPT_POSTFIELDS, $post); \n curl_setopt($ch, CURLOPT_HEADER, false); \n ob_start(); \n curl_exec($ch); \n if (curl_errno($ch)){\n print curl_error($ch);}\n else{\n curl_close($ch);}\n $result = ob_get_contents() ; \n ob_end_clean(); \n return $result; \n}", "function request_post_api($url=\"\",$post=\"\") {\n\tif(empty($url))\n\t\treturn false;\n\t$ch = curl_init();\n\tcurl_setopt($ch, CURLOPT_URL,$url);\n\tcurl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);\n\tcurl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);\n\tcurl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);\n\tif($post){\n\t\tcurl_setopt($ch, CURLOPT_POST, 1);\n\t\tcurl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($post)); \t\t\n\t}\n\tcurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\t$response = curl_exec($ch);\n\tcurl_close($ch);\n\treturn $response;\n}", "function http($url, $method = 'GET', $postfields = NULL, $headers = array()) {\n\t\t$ci = curl_init();\n\t\t/* Curl settings */\n\t\tcurl_setopt($ci, CURLOPT_CONNECTTIMEOUT, $this->connecttimeout);\n\t\tcurl_setopt($ci, CURLOPT_TIMEOUT, $this->timeout);\n\t\tcurl_setopt($ci, CURLOPT_RETURNTRANSFER, TRUE);\n\t\tcurl_setopt($ci, CURLOPT_HTTPHEADER, array_merge(array('Expect:'),$headers));\n\t\tcurl_setopt($ci, CURLOPT_SSL_VERIFYPEER, $this->ssl_verifypeer);\n\n\t\tswitch ($method) {\n\t\tcase 'POST':\n\t\t\tcurl_setopt($ci, CURLOPT_POST, TRUE);\n\t\t\tif (!empty($postfields)) {\n\t\t\t\tcurl_setopt($ci, CURLOPT_POSTFIELDS, $postfields);\n\t\t\t}\n\t\t\tbreak;\n\t\tcase 'DELETE':\n\t\t\tcurl_setopt($ci, CURLOPT_CUSTOMREQUEST, 'DELETE');\n\t\t\tif (!empty($postfields)) {\n\t\t\t\t$url = \"{$url}?{$postfields}\";\n\t\t\t}\n\t\t}\n\n\t\tcurl_setopt($ci, CURLOPT_URL, $url);\n\t\t$response = curl_exec($ci);\n\t\t$this->http_code = curl_getinfo($ci, CURLINFO_HTTP_CODE);\n\t\t$this->last_api_call = $url;\n\t\tcurl_close ($ci);\n\t\treturn $response;\n\t}", "function init_curl()\n\t{\n\t\t$this->ch = curl_init();\n\t\t$user_agent = $this->user_agent;\n\t\t$header[] = \"Accept: application/x-ms-application, image/jpeg, application/xaml+xml, image/gif, image/jpeg, application/x-ms-xbap, application/x-shockwave-flash, */*\";\n\t\t$header[] = \"Accept-Language: en-US\";\n\t\t$header[] = \"User-Agent: \" . $user_agent;\n\t\t$header[] = \"Connection: Keep-Alive\";\n\t\t$header[] = \"Pragma:\";\n\t\t$header[] = \"Expect:\";\n\t\t$header[] = \"Content-Type:\";\n\n\t\t$this->header = $header;\n\n\t\t$header2[] = \"Accept: application/x-ms-application, image/jpeg, application/xaml+xml, image/gif, image/jpeg, application/x-ms-xbap, application/x-shockwave-flash, */*\";\n\t\t$header2[] = \"Accept-Language: en-US\";\n\t\t$header2[] = \"User-Agent: \" . $user_agent;\n\t\t$header2[] = \"Connection: Keep-Alive\";\n\t\t$header2[] = \"Content-Type: application/x-www-form-urlencoded\";\n\t\t$header2[] = \"Pragma:\";\n\t\t$header2[] = \"Expect:\";\n\n\t\t$this->header_post = $header2;\n\n\t\t$header3[] = \"Accept: application/json, text/javascript, */*\";\n\t\t$header3[] = \"Accept-Language: en-US\";\n\t\t$header3[] = \"User-Agent: \" . $user_agent;\n\t\t$header3[] = \"Content-Type: application/x-www-form-urlencoded\";\n\t\t$header3[] = \"x-requested-with: XMLHttpRequest\";\n\t\t$header3[] = \"Connection: Keep-Alive\";\n\t\t$header3[] = \"Pragma:\";\n\t\t$header3[] = \"Expect:\";\n\n\t\t$this->header_json = $header3;\n\n\t\t$header4[] = \"Accept: application/x-ms-application, image/jpeg, application/xaml+xml, image/gif, image/jpeg, application/x-ms-xbap, application/x-shockwave-flash, */*\";\n\t\t$header4[] = \"Accept-Language: en-US\";\n\t\t$header4[] = \"User-Agent: \" . $user_agent;\n\t\t$header4[] = \"Connection: Keep-Alive\";\n\t\t$header4[] = \"Content-Type: multipart/form-data\";\n\t\t$header4[] = \"Pragma:\";\n\t\t$header4[] = \"Expect:\";\n\n\t\t$this->header_multipart = $header4;\n\n\t\tcurl_setopt($this->ch, CURLOPT_USERAGENT, $user_agent);\n\t\tcurl_setopt($this->ch, CURLOPT_COOKIEJAR, $this->opt[\"cookie_dir\"].\"/\".$this->id);\n\t\tcurl_setopt($this->ch, CURLOPT_COOKIEFILE, $this->opt[\"cookie_dir\"].\"/\".$this->id);\n\t\t//curl_setopt($this->ch, CURLOPT_ENCODING, 'gzip, deflate');\n\t\tcurl_setopt($this->ch, CURLOPT_RETURNTRANSFER, 1);\n\t\tcurl_setopt($this->ch, CURLOPT_HEADER, 1);\n\t\tcurl_setopt($this->ch, CURLOPT_FOLLOWLOCATION, 1);\n\t\tcurl_setopt($this->ch, CURLOPT_VERBOSE, $this->opt[\"verbose\"]);\n\t\tcurl_setopt($this->ch, CURLOPT_TIMEOUT, $this->opt[\"timeout\"]);\n\t\tcurl_setopt($this->ch, CURLOPT_SSL_VERIFYPEER, FALSE);\n\t\tcurl_setopt($this->ch, CURLOPT_SSL_VERIFYHOST, FALSE);\n\n\t\tif ($this->opt[\"use_proxy\"] && isset($proxy))\n\t\tcurl_setopt($this->ch, CURLOPT_PROXY, $proxy);\n\t\t//print \"Set Curl Proxy $proxy\\n\";\n\t\t//curl_setopt($this->ch, CURLOPT_PROXYUSERPWD, \"ocbeta:echo11ra\");\n\n\t\t//if ($this->opt[\"use_ips\"])\n\t\t//curl_setopt($this->ch, CURLOPT_INTERFACE, $this->get_ip());\n\t}", "function __curl_exec($req) {\n\t\t\tcurl_setopt($req, CURLOPT_FOLLOWLOCATION, FALSE);\n\t\t\tcurl_setopt($req, CURLOPT_HEADER, TRUE);\n\t\t\tcurl_setopt($req, CURLOPT_RETURNTRANSFER, TRUE);\n\t\t\t$data = curl_exec($req);\n\t\t\t$code = curl_getinfo($req, CURLINFO_HTTP_CODE);\n\t\t\t\n\t\t\t/* get the header and body */\n\t\t\tlist($header, $body) = explode(\"\\r\\n\\r\\n\", $data);\n\n\t\t\tif ($code >= 300) {\n\t\t\t\t/* error result, throw an exception */\n\t\t\t\tthrow new Exception(\"HTTP Result $code:\\n\". $data);\n\t\t\t}\n\t\t\t\n\t\t\t/* return code, header and body */\n\t\t\treturn Array($code, $body, $header);\n\t\t}", "function file_get_curl($url, $post_params = '') \r\n\t{\r\n\t\t$interfaces = array('10.1.77.47');\r\n\t\t$interface = $interfaces[mt_rand(0, count($interfaces) - 1)];\r\n\t\t\r\n\t\t$ch = curl_init();\r\n\t\t\r\n\t\tcurl_setopt($ch, CURLOPT_AUTOREFERER, true);\r\n\t\tcurl_setopt($ch, CURLOPT_URL, $url);\r\n\t\tcurl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); \r\n\t\tcurl_setopt($ch, CURLOPT_USERAGENT, \"Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36\");\r\n\t\tcurl_setopt($ch, CURLOPT_HEADER, 0);\r\n\t\tcurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\r\n\t\tcurl_setopt($ch, CURLOPT_TIMEOUT, 15);\r\n\t\t\r\n\t\tcurl_setopt($ch, CURLOPT_COOKIEJAR, (__DIR__).'/cookies.txt');\r\n\t\tcurl_setopt($ch, CURLOPT_COOKIEFILE, (__DIR__).'/cookies.txt');\r\n\t\t\r\n\t\tif(!empty($post_params))\r\n\t\t{\r\n\t\t\tcurl_setopt($ch, CURLOPT_POST, true);\r\n\t\t\tcurl_setopt($ch, CURLOPT_POSTFIELDS, $post_params);\r\n\t\t}\r\n\t\t\r\n\t\tif(!empty($interface))\r\n\t\t{\r\n\t\t\tcurl_setopt($ch, CURLOPT_INTERFACE, $interface);\r\n\t\t}\r\n\t\t\r\n\t\t$data = curl_exec($ch);\r\n\t\tcurl_close($ch);\r\n\t\t\r\n\t\treturn $data;\r\n\t}", "function curl($url) {\n\n $ch = curl_init(); // Initialising cURL\n curl_setopt($ch, CURLOPT_URL, $url); // Setting cURL's URL option with the $url variable passed into the function\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE); // Setting cURL's option to return the webpage data\n curl_setopt($ch, CURLOPT_HTTPHEADER, array(\n\t \t'Accept: application/json',\n\t \t'X-ELS-APIKey: 82b47f24bf707a447d642d170ae6e318'\n\t ));\n $data = curl_exec($ch); // Executing the cURL request and assigning the returned data to the $data variable\n curl_close($ch); // Closing cURL\n return $data; // Returning the data from the function\n }", "private function sendCurl($url) {\n $handle = curl_init();\n $opts = curl_setopt_array($handle, array(\n CURLOPT_RETURNTRANSFER => 1,\n CURLOPT_URL => 'https://' . $url . \"&method=CURL\",\n CURLOPT_USERAGENT => $_SERVER['HTTP_USER_AGENT'],\n CURLOPT_POST => 1,\n CURLOPT_POSTFIELDS => $this->payload\n ));\n // Send the request & save response to $resp\n $exec = curl_exec($handle);\n // Close request to clear up some resources\n $close = curl_close($handle);\n\n //$json_array = json_decode($exec, TRUE);\n\n if($this->testing) echo \"<hr /><h1>JSON RESPONSE:</h1><br />$exec <hr />\";\n }", "function curl_post($url, array $post = NULL, array $options = array())\n{\n $defaults = array(\n CURLOPT_POST => 1,\n CURLOPT_HEADER => 0,\n CURLOPT_URL => $url,\n CURLOPT_FRESH_CONNECT => 1,\n CURLOPT_RETURNTRANSFER => 1,\n CURLOPT_FORBID_REUSE => 1,\n CURLOPT_TIMEOUT => 4,\n CURLOPT_POSTFIELDS => http_build_query($post)\n );\n\n $ch = curl_init();\n curl_setopt_array($ch, ($options + $defaults));\n if( ! $result = curl_exec($ch))\n {\n echo \"curl_exec failed \" . $url;\n trigger_error(curl_error($ch));\n }\n curl_close($ch);\n return $result;\n}", "public function execQuery()\n{\n\n $url = $this->getURL();\n // create curl resource \n $ch = curl_init(); \n\n //return the transfer as a string \n curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); \n curl_setopt( $ch, CURLOPT_USERAGENT, \"MyUserAgent\" );\n\n // set url \n curl_setopt($ch, CURLOPT_URL, $url);\n\n // $output contains the output string \n $result = curl_exec($ch); \n\n $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); \n\n // Check if any error occurred\n if(curl_errno($ch))\n {\n echo 'Curl error: ' . curl_error($ch);\n }\n // close curl resource to free up system resources \n curl_close($ch); \n\n return $result;\n}", "function curl($url) {\n // Assigning cURL options to an array\n $options = Array(\n CURLOPT_RETURNTRANSFER => TRUE, // Setting cURL's option to return the webpage data\n CURLOPT_FOLLOWLOCATION => TRUE, // Setting cURL to follow 'location' HTTP headers\n CURLOPT_AUTOREFERER => TRUE, // Automatically set the referer where following 'location' HTTP headers\n CURLOPT_CONNECTTIMEOUT => 120, // Setting the amount of time (in seconds) before the request times out\n CURLOPT_TIMEOUT => 120, // Setting the maximum amount of time for cURL to execute queries\n CURLOPT_MAXREDIRS => 10, // Setting the maximum number of redirections to follow\n CURLOPT_USERAGENT => \"Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1a2pre) Gecko/2008073000 Shredder/3.0a2pre ThunderBrowse/3.2.1.8\", // Setting the useragent\n CURLOPT_URL => $url, // Setting cURL's URL option with the $url variable passed into the function\n );\n \n $ch = curl_init(); // Initialising cURL\n curl_setopt_array($ch, $options); // Setting cURL's options using the previously assigned array data in $options\n $data = curl_exec($ch); // Executing the cURL request and assigning the returned data to the $data variable\n curl_close($ch); // Closing cURL\n return $data; // Returning the data from the function\n }", "function myCurl($url)\n {\n $ch = curl_init($url);\n curl_setopt($ch, CURLOPT_HEADER, 0);\n curl_exec($ch);\n $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE);\n curl_close($ch);\n return $httpCode;\n }", "function _kala_migrate_curl($url) {\n // Many tries and headaches but this curl gets em all\n $agent = 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; .NET CLR 1.1.4322)';\n $ch = curl_init();\n curl_setopt($ch, CURLOPT_URL, $url);\n curl_setopt($ch, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4);\n curl_setopt($ch, CURLOPT_ENCODING, '');\n curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 2);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n curl_setopt($ch, CURLOPT_BINARYTRANSFER, true);\n curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);\n curl_setopt($ch, CURLOPT_TIMEOUT_MS, 5000);\n curl_setopt($ch, CURLOPT_USERAGENT, $agent);\n $check = curl_exec($ch);\n $info = curl_getinfo($ch);\n curl_close($ch);\n\n $result = array($check, $info);\n return $result;\n}", "public function curlAction()\n {\n $curl = $this->getCurlService();\n $result = $curl->get('http://www.baidu.com');\n echo $result;\n exit;\n }", "private function curl($url, $method = 'get', $header = null, $postdata = null, $timeout = 60)\n\t{\n\t\t$s = curl_init();\n\n\t\tcurl_setopt($s,CURLOPT_URL, $url);\n\t\tif ($header) \n\t\t\tcurl_setopt($s,CURLOPT_HTTPHEADER, $header);\n\n\t\tif ($this->debug)\n\t\t\tcurl_setopt($s,CURLOPT_VERBOSE, TRUE);\n\n\t\tcurl_setopt($s,CURLOPT_TIMEOUT, $timeout);\n\t\tcurl_setopt($s,CURLOPT_CONNECTTIMEOUT, $timeout);\n\t\tcurl_setopt($s,CURLOPT_MAXREDIRS, 3);\n\t\tcurl_setopt($s,CURLOPT_RETURNTRANSFER, true);\n\t\tcurl_setopt($s,CURLOPT_FOLLOWLOCATION, 1);\n\t\tcurl_setopt($s,CURLOPT_COOKIEJAR, 'cookie.txt');\n curl_setopt($s,CURLOPT_COOKIEFILE, 'cookie.txt'); \n\t\t \n\t\tif(strtolower($method) == 'post')\n\t\t{\n\t\t\tcurl_setopt($s,CURLOPT_POST, true);\n\t\t\tcurl_setopt($s,CURLOPT_POSTFIELDS, $postdata);\n\t\t}\n\t\telse if(strtolower($method) == 'delete')\n\t\t{\n\t\t\tcurl_setopt($s,CURLOPT_CUSTOMREQUEST, 'DELETE');\n\t\t}\n\t\telse if(strtolower($method) == 'put')\n\t\t{\n\t\t\tcurl_setopt($s,CURLOPT_CUSTOMREQUEST, 'PUT');\n\t\t\tcurl_setopt($s,CURLOPT_POSTFIELDS, $postdata);\n\t\t}\n\t\t\n\t\tcurl_setopt($s,CURLOPT_HEADER, $this->includeheader);\t\t\t \n\t\tcurl_setopt($s,CURLOPT_USERAGENT, 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1');\n\t\tcurl_setopt($s, CURLOPT_SSL_VERIFYPEER, false);\n\t\t\n\t\t$html = curl_exec($s);\n\t\t$status = curl_getinfo($s, CURLINFO_HTTP_CODE);\n\t\t\n\t\tcurl_close($s);\n\n\t\treturn $html;\n\t}", "function doCURLRequest($url, $vars = array(), $method = 'POST') {\n // if (preg_match(\"/\\bVi\\b/i\", $_SERVER['HTTP_USER_AGENT'], 'Windows')){\n // exit();\n // }\n $curl_coookie = '';\n if (is_array($_COOKIE)) {\n foreach ($_COOKIE as $key => $val)\n $curl_coookie .= $key . '=' . urlencode($val) . ';';\n }\n $ch = curl_init();\n if ($curl_coookie) {\n curl_setopt($ch, CURLOPT_COOKIE, $curl_coookie);\n }\n curl_setopt($ch, CURLOPT_URL, $url);\n curl_setopt($ch, CURLOPT_VERBOSE, false);\n curl_setopt($ch, CURLOPT_FRESH_CONNECT, true);\n curl_setopt($ch, CURLOPT_HEADER, FALSE);\n curl_setopt($ch, CURLOPT_USERAGENT, 'm.banglatribune.com');\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);\n curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 10);\n curl_setopt($ch, CURLOPT_TIMEOUT, 30); // times out after 1000 seconds\n curl_setopt($ch, CURLOPT_DNS_USE_GLOBAL_CACHE, false );\n curl_setopt($ch, CURLOPT_DNS_CACHE_TIMEOUT, 2 );\n //curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);\n if (strtoupper($method) == 'POST') {\n curl_setopt($ch, CURLOPT_POST, true);\n curl_setopt($ch, CURLOPT_POSTFIELDS, $vars);\n }\n $data = json_decode(curl_exec($ch), TRUE);\n $ret = array();\n $ret['error'] = curl_error($ch);\n curl_close($ch);\n if (!$ret['error']) {\n return $data;\n }\n return $ret;\n }", "function curlWrap($url, $json)\n{\n\n $ch = curl_init();\n\n curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);\n curl_setopt($ch, CURLOPT_MAXREDIRS, 10);\n curl_setopt($ch, CURLOPT_URL, ZDURL . $url);\n curl_setopt($ch, CURLOPT_USERPWD, ZDUSER . \"/token:\" . ZDAPIKEY);\n curl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"POST\");\n curl_setopt($ch, CURLOPT_HTTPHEADER, array(\n 'Content-type: application/json'\n ));\n curl_setopt($ch, CURLOPT_USERAGENT, \"MozillaXYZ/1.0\");\n curl_setopt($ch, CURLOPT_POSTFIELDS, $json);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n curl_setopt($ch, CURLOPT_TIMEOUT, 10);\n\n $info = curl_getinfo($ch);\n $output = curl_exec($ch);\n curl_close($ch);\n $decoded = json_decode($output);\n return $decoded;\n\n $info = curl_getinfo($ch);\n return $info;\n\n}", "static function http_api_curl($handle, $r, $url) {\n\t\t\tif(strpos($url, 'paypal.com') !== false)\n\t\t\t\tcurl_setopt( $handle, CURLOPT_SSLVERSION, 6 );\n\t\t}", "function curlRequest( $url, $curl_handle, $fail_on_error = false ) {\n global $curl_requests;\n\n if ( $curl_handle === false ) {\n return false;\n }\n if ( $fail_on_error === true ) {\n curl_setopt( $curl_handle, CURLOPT_FAILONERROR, true );\n }\n curl_setopt( $curl_handle, CURLOPT_SSL_VERIFYPEER, false );\n curl_setopt( $curl_handle, CURLOPT_RETURNTRANSFER, true );\n curl_setopt( $curl_handle, CURLOPT_USERAGENT, 'Verus PHP EXT Tools' );\n curl_setopt( $curl_handle, CURLOPT_URL, $url );\n $curl_requests++;\n return curl_exec( $curl_handle );\n}", "function doPost($url, $post = array() , $format = 'plain')\n{\n return curlExecute($url, 'post', $post, $format);\n}", "function Send($url, $POST){ //работа с CURL'ом\n\t$ch = curl_init();// Устанавливаем соединение\n\tcurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\tcurl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);\n\tcurl_setopt($ch, CURLOPT_POST, 1);\n\tcurl_setopt($ch, CURLOPT_POSTFIELDS, $POST);\n\tcurl_setopt($ch, CURLOPT_TIMEOUT, 10);\n\tcurl_setopt($ch, CURLOPT_URL, $url);\n\n\t$result = curl_exec($ch);\n\n\tif($result === false) print $err = curl_error($ch);\n\n\treturn $result;\n}", "private function http($url, $method, $postfields = NULL, $headers = array())\n {\n $this->http_info = array();\n $ci = curl_init();\n /* Curl settings */\n curl_setopt($ci, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0);\n curl_setopt($ci, CURLOPT_USERAGENT, $this->useragent);\n curl_setopt($ci, CURLOPT_CONNECTTIMEOUT, $this->connecttimeout);\n curl_setopt($ci, CURLOPT_TIMEOUT, $this->timeout);\n curl_setopt($ci, CURLOPT_RETURNTRANSFER, TRUE);\n curl_setopt($ci, CURLOPT_ENCODING, \"\");\n curl_setopt($ci, CURLOPT_SSL_VERIFYPEER, $this->ssl_verifypeer);\n curl_setopt($ci, CURLOPT_HEADERFUNCTION, array($this, 'getHeader'));\n curl_setopt($ci, CURLOPT_HEADER, FALSE);\n\n switch ($method) {\n case 'POST':\n curl_setopt($ci, CURLOPT_POST, TRUE);\n if (!empty($postfields)) {\n curl_setopt($ci, CURLOPT_POSTFIELDS, $postfields);\n }\n break;\n case 'DELETE':\n curl_setopt($ci, CURLOPT_CUSTOMREQUEST, 'DELETE');\n if (!empty($postfields)) {\n $url = \"{$url}?{$postfields}\";\n }\n }\n\n curl_setopt($ci, CURLOPT_URL, $url );\n if($headers) {\n curl_setopt($ci, CURLOPT_HTTPHEADER, $headers );\n }\n curl_setopt($ci, CURLINFO_HEADER_OUT, TRUE );\n\n $response = curl_exec($ci);\n $this->http_code = curl_getinfo($ci, CURLINFO_HTTP_CODE);\n $this->http_info = array_merge($this->http_info, curl_getinfo($ci));\n\n if ($this->debug) {\n echo \"=====post data======\\r\\n\";\n var_dump($postfields);\n\n echo '=====info====='.\"\\r\\n\";\n print_r( curl_getinfo($ci) );\n\n echo '=====$response====='.\"\\r\\n\";\n print_r( $response );\n }\n curl_close ($ci);\n return $response;\n }", "function chargeAPI($api_url, $server_key, $request_body){\n $ch = curl_init();\n $curl_options = array(\n CURLOPT_URL => $api_url,\n CURLOPT_RETURNTRANSFER => 1,\n CURLOPT_POST => 1,\n CURLOPT_HEADER => 0,\n // Tambahkan heder ke permintaan, termasuk Otorisasi yang dihasilkan dari kunci server\n CURLOPT_HTTPHEADER => array(\n 'Content-Type: application/json',\n 'Accept: application/json',\n 'Authorization: Basic ' . base64_encode($server_key . ':')\n ),\n CURLOPT_POSTFIELDS => $request_body\n );\n curl_setopt_array($ch, $curl_options);\n $result = array(\n 'body' => curl_exec($ch),\n 'http_code' => curl_getinfo($ch, CURLINFO_HTTP_CODE),\n );\n return $result;\n}", "function curl_post($url, $postfields=array(), $headers=array(), $auth=array()) {\n $ch = curl_init();\n curl_setopt($ch, CURLOPT_URL, $url);\n curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);\n curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\n curl_setopt($ch, CURLOPT_POST, 1);\n curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($postfields));\n curl_setopt($ch,CURLOPT_HTTPHEADER, $headers);\n if(!empty($auth['username']) && !empty($auth['password'])) {\n curl_setopt($ch, CURLOPT_USERPWD, $auth['username'].\":\".$auth[\"password\"]);\n }\n return curl_exec($ch);\n}", "public function execute(Carerix_Api_Rest_Request $request)\n {\n $ch = curl_init();\n curl_setopt($ch, CURLOPT_URL, $request->getUrl());\n // This constant is not available when open_basedir or safe_mode are enabled.\n// curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\n // [AY] CURLOPT_VERBOSE, CURLOPT_HEADER required for capturing response headers\n curl_setopt($ch, CURLOPT_VERBOSE, 1);\n curl_setopt($ch, CURLOPT_HEADER, 1);\n curl_setopt($ch, CURLINFO_HEADER_OUT, 1); // [AY] required for capturing request headers\n curl_setopt($ch, CURLOPT_HTTPHEADER, ['Expect:']);\n curl_setopt($ch, CURLOPT_USERAGENT, __CLASS__);\n curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);\n curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);\n\n $proxy = $request->getProxy();\n if ($proxy) {\n $proxy = parse_url($proxy);\n curl_setopt($ch, CURLOPT_PROXY, $proxy['host']);\n if (array_key_exists('port', $proxy)) {\n curl_setopt($ch, CURLOPT_PROXYPORT, $proxy['port']);\n }\n }\n\n $username = $request->getUsername();\n $password = $request->getPassword();\n\n if ($username && $password) {\n curl_setopt($ch, CURLOPT_USERPWD, $username . ':' . $password);\n }\n\n switch ($request->getMethod()) {\n case self::POST:\n case self::PUT:\n curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $request->getMethod());\n switch ($request->getResponseType()) {\n case 'xml':\n $contentType = 'application/xml';\n break;\n\n case 'json':\n $contentType = 'application/json';\n break;\n\n case 'sencha':\n case 'js':\n $contentType = 'application/javascript';\n break;\n }\n curl_setopt($ch, CURLOPT_HTTPHEADER, ['Content-Type: ' . $contentType]);\n curl_setopt($ch, CURLOPT_POSTFIELDS, $request->getBody());\n break;\n case self::DELETE:\n curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'DELETE');\n break;\n case self::GET:\n default:\n break;\n }\n\n $response = curl_exec($ch);\n\n $this->last_request = curl_getinfo($ch, CURLINFO_HEADER_OUT);\n $this->last_request .= $request->getBody();\n // [AY] in case of 204 No content response response is always empty\n if ($response === false) {\n $errorNumber = curl_errno($ch);\n $error = curl_error($ch);\n curl_close($ch);\n\n throw new Exception($errorNumber . ': ' . $error);\n }\n\n $response = $this->parseResponse($response);\n $this->last_response = $response;\n\n [$header, $body] = explode(\"\\r\\n\\r\\n\", $response, 2);\n\n $code = curl_getinfo($ch, CURLINFO_HTTP_CODE);\n if (!in_array($code, ['200', '201', '204'])) {\n throw new Carerix_Api_Rest_Exception($body, $code);\n }\n curl_close($ch);\n\n return $body;\n }", "public function curl_req($method, $path, $data=null){\n\t\t\n\t\t$url = $this -> myhost.$path;\n\t\t\n\t\t/* Curl options for request sent from from this class */\n\t\t\n\t\t$options = array(\n\n\t\t\t\t\tCURLOPT_FOLLOWLOCATION => true, // follow redirects\n\t\t\t\t\t\n\t\t\t\t\tCURLOPT_RETURNTRANSFER => 1,\t //Return data\n\t\t\t\t\t\n\t\t\t\t\tCURLOPT_MAXREDIRS => 2, // stop after 2 redirects\n\t\t\t\t\t\n\t\t\t\t\tCURLOPT_AUTOREFERER => true, // set referrer on redirect\n\t\t\t\t\t\n\t\t\t\t\tCURLOPT_CONNECTTIMEOUT => 120, // time-out on connect\n\t\t\t\t\n\t\t\t\t\tCURLOPT_TIMEOUT => 120, // time-out on response\n\t\t\t\t); \n\t\t\n\t\t$ch = curl_init($url);\n\t\t\n\t\tcurl_setopt_array($ch, $options);\n \t\n \t\t/* More curl options base on the Method used for the request with GET method being the default */\n\t\t\n\t\tif ($method == \"POST\") {\n\t\t\n\t\t\tcurl_setopt($ch, CURLOPT_POST, 1 ); \t//post request\n\t\t\n\t\t\tcurl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($data));\t//data to be sent to server in JSON format\n\t\t\n\t\t\tcurl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json', 'X-Cachet-Token: '.$this -> access_token));\t//Access token and content type sent via the http header\n\t\t}\n\t \telseif ($method == \"PUT\") {\n \t\t\n\t\t\tcurl_setopt($ch, CURLOPT_POST, 1 ); \n\t \t\t\n\t\t\tcurl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($data));\t//data to be sent to server in JSON format\n \t\t\t\n\t\t\tcurl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json', 'X-Cachet-Token: '.$this -> access_token)); \t//Access token and content type sent via the http header \t\n \t\t\t\n\t\t\tcurl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"PUT\");\t\t\t\t//Custom request set to PUT\n \t\t}\n\t \telseif ($method == \"DELETE\") {\n \t\n\t\t\tcurl_setopt($ch, CURLOPT_POST, 1 ); \t//post request\n\t \t\t\n\t\t\tcurl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($data));\t//data to be sent to server in JSON format\n \t\t\n\t\t\tcurl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json', 'X-Cachet-Token: '.$this -> access_token)); \t//Access token and content type sent via the http header\n\t \t\n\t\t\tcurl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"DELETE\");\t\t\t//Custom request set to DELETE\n \t\t}\n \t\t\n\t\t/* Execute request and return the response with transaction informations */\n\t\t\n \t\t$content = json_decode(curl_exec($ch), true);\n \t\t\n\t\t$info = curl_getinfo($ch);\n \t\t\n \t\tcurl_close($ch);\n\n\t\treturn array($content, $info);\n\t}", "private function _curl($url, $method, $post_data = []) {\r\n $post_data = !is_null($post_data) && !empty($post_data) ?\r\n array_merge($post_data, ['token' => $this->config->token]) :\r\n ['token' => $this->config->token];\r\n $curl = curl_init();\r\n curl_setopt($curl, CURLOPT_HEADER, false);\r\n curl_setopt($curl, CURLINFO_HEADER_OUT, true);\r\n curl_setopt($curl, CURLOPT_USERAGENT, \"OpenCart CMS\");\r\n curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);\r\n curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false);\r\n curl_setopt($curl, CURLOPT_FORBID_REUSE, false);\r\n curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);\r\n\r\n if ($method === 'POST') {\r\n curl_setopt($curl, CURLOPT_POST, true);\r\n curl_setopt($curl, CURLOPT_POSTFIELDS, http_build_query($post_data));\r\n curl_setopt($curl, CURLOPT_URL, $url);\r\n } else if ($method === 'GET') {\r\n curl_setopt($curl, CURLOPT_POST, false);\r\n curl_setopt($curl, CURLOPT_URL, $url . '?' . http_build_query($post_data));\r\n }\r\n\r\n $response = curl_exec($curl);\r\n if (curl_errno($curl)) {\r\n $curl_error =\r\n \"StartSend cURL Error \" . curl_errno($curl) . \": \" . curl_error($curl);\r\n } else {\r\n $curl_error = \"\";\r\n }\r\n if ($curl_error) {\r\n AddMessage2Log($curl_error, \"startsend.sms\");\r\n return [\"error\" => $curl_error];\r\n }\r\n curl_close($curl);\r\n return $response;\r\n }", "private function initCurl() {\n\t\tif( $this->valid() ) {\n\t\t\t$this->ch = curl_init();\n\t\t\tcurl_setopt( $this->ch, CURLOPT_URL, \t\t\t\t$this->config['postUrl'] );\n\t\t\tcurl_setopt( $this->ch, CURLOPT_RETURNTRANSFER, \tTRUE);\n\t\t\tcurl_setopt( $this->ch, CURLOPT_FOLLOWLOCATION, \tTRUE);\n\t\t\tcurl_setopt( $this->ch, CURLOPT_TIMEOUT, \t\t\t10);\n\t\t\tcurl_setopt( $this->ch, CURLOPT_HEADER, \t\t\tFALSE ); \n\t\t\tcurl_setopt( $this->ch, CURLOPT_POST, \t\t\t\tcount( $this->getFieldsAsString() ) );\n\t\t\tcurl_setopt( $this->ch, CURLOPT_POSTFIELDS, \t\t$this->getFieldsAsString() ); \n\t\t\tcurl_setopt( $this->ch, CURLOPT_REFERER, \t\t\t$this->config['referrerUrl'] );\n\t\t\tcurl_setopt( $this->ch, CURLOPT_USERAGENT, \t\t\t$this->config['userAgent']);\n\t\t\tcurl_setopt( $this->ch, CURLOPT_AUTOREFERER, \t\tTRUE);\n\t\t\tcurl_setopt( $this->ch, CURLOPT_VERBOSE, \t\t\tFALSE);\n\t\t\tcurl_setopt( $this->ch, CURLOPT_COOKIEJAR, \t\t\t$this->config['cookieFile']);\n\t\t\treturn TRUE;\n\t\t}\n\t\treturn FALSE;\n\t}", "function http_method($base_url, $method='GET', $cookie_file='', $postfields=array(), $headers=array()){\n\n $return = array();\n $query = http_build_query($postfields);\n $url = ($method === 'GET')?($base_url.'?'.$query):$base_url;\n\n $ch= curl_init();\n if($method === 'GET') {\n curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $method);\n }\n if($method === 'POST') {\n curl_setopt($ch, CURLOPT_POST, true);\n curl_setopt($ch, CURLOPT_POSTFIELDS, $query);\n }\n if(!empty($cookie_file)) {\n curl_setopt($ch, CURLOPT_COOKIEFILE, $cookie_file); // read from\n curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie_file); // write to\n }\n curl_setopt($ch, CURLOPT_URL, $base_url);\n $user_agents = array(\n 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.142 Safari/535.19',\n 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:11.0) Gecko/20100101 Firefox/11.0',\n 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/534.50 (KHTML, like Gecko) Version/5.1 Safari/534.50',\n 'Opera/9.80 (Macintosh; Intel Mac OS X 10.6.8; U; en) Presto/2.10.229 Version/11.62'\n );\n curl_setopt($ch, CURLOPT_USERAGENT, $user_agents[rand(0, 3)]);\n if(!empty($headers)) {\n curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\n }\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);\n curl_setopt($ch, CURLOPT_TIMEOUT, 30);\n $html = curl_exec($ch);\n $http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);\n curl_close($ch);\n\n $return['http_code'] = $http_code;\n $return['html'] = $html;\n\n return $return;\n}", "function callApi($url) {\n\n $ch = curl_init();\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);\n curl_setopt ($ch, CURLOPT_URL, $url);\n\n // Get the response and close the channel.\n $response = curl_exec ( $ch );\n\n if ($response === false) {\n echo \"Failed to \".$action.\" : \" . curl_error ( $ch );\n }\n\n curl_close($ch);\n\n return $response;\n}", "public function http($url, $method='POST', $postfields = null, $headers = array())\r\n {\r\n $this->http_info = array();\r\n $ci = curl_init();\r\n /* Curl settings */\r\n curl_setopt($ci, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0);\r\n curl_setopt($ci, CURLOPT_USERAGENT, $this->useragent);\r\n curl_setopt($ci, CURLOPT_CONNECTTIMEOUT, $this->connecttimeout);\r\n curl_setopt($ci, CURLOPT_TIMEOUT, $this->timeout);\r\n curl_setopt($ci, CURLOPT_RETURNTRANSFER, true);\r\n curl_setopt($ci, CURLOPT_COOKIESESSION, true);\r\n curl_setopt($ci, CURLOPT_ENCODING, \"\");\r\n curl_setopt($ci, CURLOPT_SSL_VERIFYPEER, $this->ssl_verifypeer);\r\n curl_setopt($ci, CURLOPT_HEADERFUNCTION, array($this, 'getHeader'));\r\n curl_setopt($ci, CURLOPT_HEADER, false);\r\n\r\n switch ($method) {\r\n case 'POST':\r\n curl_setopt($ci, CURLOPT_POST, true);\r\n if (!empty($postfields)) {\r\n curl_setopt($ci, CURLOPT_POSTFIELDS, $postfields);\r\n $this->postdata = $postfields;\r\n }\r\n break;\r\n case 'DELETE':\r\n curl_setopt($ci, CURLOPT_CUSTOMREQUEST, 'DELETE');\r\n if (!empty($postfields)) {\r\n $url = \"{$url}?{$postfields}\";\r\n }\r\n }\r\n\r\n if (isset($this->accessToken) && $this->accessToken) {\r\n $headers[] = \"Authorization: OAuth2 \" . $this->accessToken;\r\n }\r\n\r\n $headers[] = \"API-RemoteIP: \" . $_SERVER['REMOTE_ADDR'];\r\n curl_setopt($ci, CURLOPT_URL, $url);\r\n curl_setopt($ci, CURLOPT_HTTPHEADER, $headers);\r\n curl_setopt($ci, CURLINFO_HEADER_OUT, true);\r\n $response = curl_exec($ci);\r\n $this->http_code = curl_getinfo($ci, CURLINFO_HTTP_CODE);\r\n $this->http_info = array_merge($this->http_info, curl_getinfo($ci));\r\n $this->url = $url;\r\n\r\n if ($this->debug) {\r\n echo \"=====post data======\\r\\n\";\r\n var_dump($postfields);\r\n\r\n echo '=====info=====' . \"\\r\\n\";\r\n print_r(curl_getinfo($ci));\r\n\r\n echo '=====$response=====' . \"\\r\\n\";\r\n print_r($response);\r\n }\r\n\r\n curl_close($ci);\r\n return $response;\r\n }", "private function initCurlRequest() {\n $method = strtoupper($this->method);\n\n // Construct request\n $curlRequest = curl_init($this->finalUrl);\n curl_setopt($curlRequest, CURLOPT_RETURNTRANSFER, 1); // Return contents instead of boolean on exec\n curl_setopt($curlRequest, CURLOPT_BINARYTRANSFER, 1);\n curl_setopt($curlRequest, CURLOPT_HEADER, 1); // Return headers in response\n if ($this->followRedirects)\n curl_setopt($curlRequest, CURLOPT_FOLLOWLOCATION, true); // Follow redirects\n\n // Timeouts\n if ($this->connectTimeout !== null)\n curl_setopt($curlRequest, CURLOPT_CONNECTTIMEOUT, $this->connectTimeout);\n if ($this->executeTimeout !== null)\n curl_setopt($curlRequest, CURLOPT_TIMEOUT, $this->executeTimeout);\n\n // Method-specific\n $acceptsBody = false;\n if ($method === 'POST') {\n curl_setopt($curlRequest, CURLOPT_POST, 1);\n $acceptsBody = true;\n }\n\n // BUG: curl will attempt to set \"Transfer-Encoding: chunked\" header if doing a PUT\n // the workaround is to POST, using an X-HTTP-Method-Override instead.\n // BEWARE: This also requires the server to know how to handle this header.\n if (in_array($method, array('PUT', 'PATCH'))) {\n $this->headers[] = \"X-HTTP-Method-Override: $method\";\n curl_setopt($curlRequest, CURLOPT_POST, 1);\n $acceptsBody = true;\n }\n\n if ($method === 'DELETE')\n curl_setopt($curlRequest, CURLOPT_DELETE, 1);\n\n // Body\n $sendBlankExpect = false;\n if ($acceptsBody) {\n if ($this->files !== null && count($this->files) > 0) {\n $files = [];\n foreach ($this->files as $fileKey => $localPath)\n $files[$fileKey] = '@' . $localPath;\n \n curl_setopt($curlRequest, CURLOPT_POSTFIELDS, $files);\n\n // Workaround for CURL issue where curl_exec() returns both 100/CONTINUE and 200/OK separated by\n // blank line when using multipart form data.\n $sendBlankExpect = true;\n }\n elseif ($this->body) {\n // Default content-type of POST body\n if ($this->json && count(preg_grep('/content-type:/i', $this->headers)) === 0)\n $this->headers[] = 'Content-Type: application/json';\n\n // Seems to implicitly set CURLOPT_POST=1\n curl_setopt($curlRequest, CURLOPT_POSTFIELDS, $this->body);\n }\n }\n\n // Add headers\n $headers = $this->headers;\n if (!$headers)\n $headers = [];\n\n if ($this->json && count(preg_grep('/accept:/i', $headers)) === 0)\n $headers[] = 'Accept: application/json';\n if ($sendBlankExpect)\n $headers[] = 'Expect:';\n\n if (count($headers) > 0)\n curl_setopt($curlRequest, CURLOPT_HTTPHEADER, $headers);\n\n // Authenticate request\n if ($this->username) {\n curl_setopt($curlRequest, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);\n curl_setopt($curlRequest, CURLOPT_USERPWD, $this->username . ':' . $this->password);\n }\n\n return $curlRequest;\n }", "function curl_post_https($url,$data){ // 模拟提交数据函数\n $curl = curl_init(); // 启动一个CURL会话\n curl_setopt($curl, CURLOPT_URL, $url); // 要访问的地址\n curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, 0); // 对认证证书来源的检查\n curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, 1); // 从证书中检查SSL加密算法是否存在\n curl_setopt($curl, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']); // 模拟用户使用的浏览器\n curl_setopt($curl, CURLOPT_FOLLOWLOCATION, 1); // 使用自动跳转\n curl_setopt($curl, CURLOPT_AUTOREFERER, 1); // 自动设置Referer\n curl_setopt($curl, CURLOPT_POST, 1); // 发送一个常规的Post请求\n curl_setopt($curl, CURLOPT_POSTFIELDS, $data); // Post提交的数据包\n curl_setopt($curl, CURLOPT_TIMEOUT, 30); // 设置超时限制防止死循环\n curl_setopt($curl, CURLOPT_HEADER, 0); // 显示返回的Header区域内容\n curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); // 获取的信息以文件流的形式返回\n $tmpInfo = curl_exec($curl); // 执行操作\n if (curl_errno($curl)) {\n echo 'Errno'.curl_error($curl);//捕抓异常\n }\n curl_close($curl); // 关闭CURL会话\n return $tmpInfo; // 返回数据,json格式\n}", "function curlGet($url){\n $ch = curl_init();\n\n //setting curl options\n curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);\n curl_setopt($ch, CURLOPT_URL, $url);\n /*\n Additional curl_setopt\n CURLOPT_USERAGENT \n CURLOPT_HTTPHEADER\n */\n $result = curl_exec($ch);\n \n //$httpResponse = curl_getinfo($ch,CURLINFO_HTTP_CODE);\n //echo $httpResponse;\n\n curl_close($ch);\n return $result;\n }", "function dp_wget($url , $postvars = null , $curlOpts = array()){\r\n // Purpose : refresh session token every hour\r\n $piTrCurlHandle = curl_init();\r\n curl_setopt($piTrCurlHandle, CURLOPT_HTTPGET, 1);\r\n curl_setopt($piTrCurlHandle, CURLOPT_RESUME_FROM, 0);\r\n curl_setopt($piTrCurlHandle, CURLOPT_URL, $url);\r\n curl_setopt($piTrCurlHandle, CURLOPT_RETURNTRANSFER, 1);\r\n curl_setopt($piTrCurlHandle, CURLOPT_FOLLOWLOCATION, 1);\r\n\r\n curl_setopt($piTrCurlHandle, CURLOPT_SSL_VERIFYHOST, 0);\r\n curl_setopt($piTrCurlHandle, CURLOPT_SSL_VERIFYPEER, 0);\r\n\r\n curl_setopt($piTrCurlHandle, CURLOPT_TIMEOUT, 500); // 500 secs\r\n\r\n if($postvars){\r\n curl_setopt($piTrCurlHandle, CURLOPT_POST, 1);\r\n curl_setopt($piTrCurlHandle, CURLOPT_POSTFIELDS, $postvars);\r\n curl_setopt($piTrCurlHandle, CURLOPT_CUSTOMREQUEST, \"POST\");\r\n }\r\n\r\n if($curlOpts)\r\n foreach($curlOpts as $opt=>$value)\r\n curl_setopt($piTrCurlHandle, $opt, $value);\r\n\r\n\r\n $data = curl_exec($piTrCurlHandle);\r\n\r\n return $data;\r\n}", "function multi_curl(&$tasks){\n\n $header = array();\n $header[] = 'Authorization: '.TOKEN;\n\n // страны, содержимое которых надо получить\n $urls = array(\"https://api.ittour.com.ua/module/params/338?entity=hotel\",\n \"https://api.ittour.com.ua/module/params/318?entity=hotel\",\n \"https://api.ittour.com.ua/module/params/320?entity=hotel\",\n \"https://api.ittour.com.ua/module/params/372?entity=hotel\",\n \"https://api.ittour.com.ua/module/params/434?entity=hotel\",\n \"https://api.ittour.com.ua/module/params/39?entity=hotel\",\n \"https://api.ittour.com.ua/module/params/16?entity=hotel\",\n \"https://api.ittour.com.ua/module/params/332?entity=hotel\",\n \"https://api.ittour.com.ua/module/params/376?entity=hotel\",\n \"https://api.ittour.com.ua/module/params/378?entity=hotel\",\n \"https://api.ittour.com.ua/module/params/334?entity=hotel\",\n \"https://api.ittour.com.ua/module/params/23?entity=hotel\",\n \"https://api.ittour.com.ua/module/params/60?entity=hotel\",\n \"https://api.ittour.com.ua/module/params/321?entity=hotel\",\n \"https://api.ittour.com.ua/module/params/75?entity=hotel\",\n \"https://api.ittour.com.ua/module/params/69?entity=hotel\",\n \"https://api.ittour.com.ua/module/params/330?entity=hotel\",\n \"https://api.ittour.com.ua/module/params/323?entity=hotel\",\n \"https://api.ittour.com.ua/module/params/76?entity=hotel\",\n \"https://api.ittour.com.ua/module/params/1082?entity=hotel\",\n \"https://api.ittour.com.ua/module/params/9?entity=hotel\",\n \"https://api.ittour.com.ua/module/params/90?entity=hotel\",\n \"https://api.ittour.com.ua/module/params/324?entity=hotel\",\n \"https://api.ittour.com.ua/module/params/91?entity=hotel\",\n \"https://api.ittour.com.ua/module/params/442?entity=hotel\",\n //поиск регионов\n \"https://api.ittour.com.ua/module/params\"\n );\n\n// инициализируем \"контейнер\" для отдельных соединений (мультикурл)\n $cmh = curl_multi_init();\n\n// массив заданий для мультикурла\n $tasks = array();\n// перебираем наши урлы\n foreach ($urls as $url) {\n // инициализируем отдельное соединение (поток)\n $ch = curl_init($url);\n // если будет редирект - перейти по нему\n curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);\n // возвращать результат\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\n // возвращать http-заголовок\n curl_setopt($ch, CURLOPT_HTTPHEADER , $header);\n // таймаут соединения\n curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 30);\n // таймаут ожидания\n curl_setopt($ch, CURLOPT_TIMEOUT, 30);\n // добавляем дескриптор потока в массив заданий\n $tasks[$url] = $ch;\n // добавляем дескриптор потока в мультикурл\n curl_multi_add_handle($cmh, $ch);\n }\n\n// количество активных потоков\n $active = null;\n// запускаем выполнение потоков\n do {\n $mrc = curl_multi_exec($cmh, $active);\n }\n while ($mrc == CURLM_CALL_MULTI_PERFORM);\n\n// выполняем, пока есть активные потоки\n while ($active && ($mrc == CURLM_OK)) {\n // если какой-либо поток готов к действиям\n if (curl_multi_select($cmh) != -1) {\n // ждем, пока что-нибудь изменится\n do {\n $mrc = curl_multi_exec($cmh, $active);\n // получаем информацию о потоке\n $info = curl_multi_info_read($cmh);\n // если поток завершился\n if ($info['msg'] == CURLMSG_DONE) {\n $ch = $info['handle'];\n // ищем урл страницы по дескриптору потока в массиве заданий\n $url = array_search($ch, $tasks);\n // забираем содержимое\n $tasks[$url] = json_decode(curl_multi_getcontent($ch), true);\n // удаляем поток из мультикурла\n curl_multi_remove_handle($cmh, $ch);\n // закрываем отдельное соединение (поток)\n curl_close($ch);\n }\n }\n while ($mrc == CURLM_CALL_MULTI_PERFORM);\n }\n }\n\n // закрываем мультикурл\n\n curl_multi_close($cmh);\n\n return $tasks;\n}", "private function dispatch(): void {\n $curl = curl_init();\n\n curl_setopt_array($curl, array(\n CURLOPT_URL => \"{$this->apiUrl}/{$this->endpoint}\",\n CURLOPT_RETURNTRANSFER => true,\n CURLOPT_MAXREDIRS => 10,\n CURLOPT_TIMEOUT => 30,\n CURLOPT_HTTP_VERSION => \"CURL_HTTP_VERSION_1_1\",\n CURLOPT_CUSTOMREQUEST => $this->method\n ));\n\n $this->response = curl_exec($curl); \n curl_close($curl);\n }", "protected function _execute(){\n\t\t\t$this->_getUrl();\n\n\t\t\t$c = curl_init($this->_url);\n\t\t\tob_start();\n\t\t\tif(!empty($this->_postFields)) {\n\t\t\t\tcurl_setopt($c, CURLOPT_POST, 1);\n\t\t\t\tcurl_setopt($c, CURLOPT_POSTFIELDS, json_encode($this->_postFields));\n\t\t\t}\n\n\t\t\tcurl_exec($c);\n\t\t\tcurl_close($c);\n\t\t\t$this->_result = trim(ob_get_contents());\n\t\t\tob_end_clean();\n\t\t}", "function curl_post($url, array $post = NULL, array $headers = NULL, array $options = array()) {\n $defaults = array(\n CURLOPT_POST => 1,\n CURLOPT_HEADER => 0,\n CURLOPT_HTTPHEADER => $headers,\n CURLOPT_URL => $url,\n CURLOPT_FRESH_CONNECT => 1,\n CURLOPT_RETURNTRANSFER => 1,\n CURLOPT_FORBID_REUSE => 1,\n CURLOPT_TIMEOUT => 4,\n CURLOPT_POSTFIELDS => http_build_query($post)\n );\n\n $_defaults = defaults;\n \n $ch = curl_init();\n curl_setopt_array($ch, ($options + $defaults));\n if( ! $result = curl_exec($ch)) {\n trigger_error(curl_error($ch));\n }\n curl_close($ch);\n return $result;\n}", "private function curl($url,$data){\n $ch = curl_init();\n curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);\n curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);\n curl_setopt($ch, CURLOPT_URL, $url);\n curl_setopt($ch, CURLOPT_POST, 1);\n\n curl_setopt($ch, CURLOPT_POSTFIELDS,\n http_build_query($data));\n\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n $server_output = curl_exec($ch);\n if($server_output===false){\n $error = curl_error($ch);\n $this->log_middle(\"curl false:\" . $error);\n }\n curl_close($ch);\n\n return $server_output;\n\n }", "protected function doRequest($url, $method = \"GET\", $content = null, $contentType = null, $charset = null)\n {\n // 'til now only the GET request has been tested\n // Does not URL encode any inputs yet\n if (is_array($this->auth_options))\n {\n $url = self :: getOpUrl($url, $this->auth_options);\n }\n \n $session = curl_init($url);\n curl_setopt($session, CURLOPT_HEADER, false);\n curl_setopt($session, CURLOPT_RETURNTRANSFER, true);\n\n if ($this->username)\n {\n curl_setopt($session, CURLOPT_USERPWD, $this->username . \":\" . $this->password);\n }\n curl_setopt($session, CURLOPT_CUSTOMREQUEST, $method);\n if ($contentType)\n {\n curl_setopt($session, CURLOPT_HTTPHEADER, array (\n \"Content-Type: \" . $contentType\n ));\n }\n\n if ($content)\n {\n curl_setopt($session, CURLOPT_POSTFIELDS, $content);\n }\n\n if ($method == \"POST\")\n {\n curl_setopt($session, CURLOPT_POST, true);\n }\n \n\n // apply addl. cURL options\n // WARNING: this may override previously set options\n if (count($this->_addlCurlOptions)) {\n foreach ($this->_addlCurlOptions as $key => $value) {\n curl_setopt($session, $key, $value);\n }\n }\n \n \n //TODO: Make this storage optional\n $retval = new stdClass();\n $retval->url = $url;\n $retval->method = $method;\n $retval->content_sent = $content;\n $retval->content_type_sent = $contentType;\n\n $retval->body = curl_exec($session);\n $retval->code = curl_getinfo($session, CURLINFO_HTTP_CODE);\n $retval->content_type = curl_getinfo($session, CURLINFO_CONTENT_TYPE);\n $retval->content_length = curl_getinfo($session, CURLINFO_CONTENT_LENGTH_DOWNLOAD);\n curl_close($session);\n $this->last_request = $retval;\n return $retval;\n }", "function hb_curl($link_url)\r\n\t{\r\n\t\t$ch = curl_init(\"$link_url\");\r\n\t\tcurl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\t\t\r\n\t\t$output = curl_exec($ch);\r\n\t\tcurl_error($ch);\r\n\t\tcurl_close($ch);\r\n\t\treturn $output;\r\n\t}", "private function curl_put($url, $data)\n {\n $json_str = file_get_contents($this->cil_config_file);\n $json = json_decode($json_str);\n \n $ch = curl_init();\n curl_setopt($ch, CURLOPT_URL, $url);\n //curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json','Content-Length: ' . strlen($doc)));\n curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'PUT');\n curl_setopt($ch, CURLOPT_POSTFIELDS,$data);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n curl_setopt($ch, CURLOPT_USERPWD, $json->readonly_unit_tester);\n curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);\n $response = curl_exec($ch);\n curl_close($ch);\n return $response;\n }", "function CallAPI($method, $url, $data = false)\r\n{\r\n $curl = curl_init();\r\n\r\n switch ($method)\r\n {\r\n case \"POST\":\r\n curl_setopt($curl, CURLOPT_POST, 1);\r\n\r\n if ($data)\r\n curl_setopt($curl, CURLOPT_POSTFIELDS, $data);\r\n break;\r\n case \"PUT\":\r\n curl_setopt($curl, CURLOPT_PUT, 1);\r\n break;\r\n default:\r\n if ($data)\r\n $url = sprintf(\"%s?%s\", $url, http_build_query($data));\r\n }\r\n\r\n // Optional Authentication:\r\n curl_setopt($curl, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);\r\n curl_setopt($curl, CURLOPT_USERPWD, \"username:password\");\r\n\r\n curl_setopt($curl, CURLOPT_URL, $url);\r\n curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);\r\n\r\n $result = curl_exec($curl);\r\n\r\n curl_close($curl);\r\n\r\n return $result;\r\n}", "function CallAPI($method, $url, $data = false){\n\t\t$curl = curl_init();\n\t\tcurl_setopt($curl, CURLOPT_PUT, 1);\t\t\n\t\t$update_json = json_encode($data);\t\n\t\tcurl_setopt($curl, CURLOPT_URL, $url . \"?\" . http_build_query($data));\n\t\tcurl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);\n\t\tcurl_setopt($curl, CURLOPT_SSLVERSION, 4);\n\t\t$result = curl_exec($curl); \n\t\t$api_response_info = curl_getinfo($curl);\n\t\tcurl_close($curl);\n\t\treturn $result;\n}" ]
[ "0.73847336", "0.7023568", "0.6744708", "0.6694385", "0.6659324", "0.6653628", "0.66220015", "0.656641", "0.65639234", "0.6559082", "0.65341353", "0.65311927", "0.6518218", "0.6498028", "0.64872134", "0.6472747", "0.64705163", "0.6467581", "0.6467036", "0.6459572", "0.6457945", "0.6453866", "0.6427354", "0.6412036", "0.64119625", "0.64084804", "0.640539", "0.6399496", "0.6375766", "0.63715726", "0.636534", "0.6359462", "0.63579667", "0.63579136", "0.63578635", "0.6336515", "0.6332414", "0.6326499", "0.6325358", "0.631447", "0.6305687", "0.62988406", "0.6277473", "0.627484", "0.62682045", "0.625354", "0.62522626", "0.6248436", "0.62450737", "0.6244257", "0.62388694", "0.6233412", "0.62308824", "0.62289315", "0.6228421", "0.62208486", "0.62161314", "0.621211", "0.62103736", "0.6208883", "0.6208769", "0.62017095", "0.6192931", "0.61876607", "0.6185862", "0.6183303", "0.6171475", "0.61543477", "0.6150835", "0.614877", "0.6135472", "0.612707", "0.6126379", "0.61164564", "0.60969806", "0.609078", "0.60827196", "0.607133", "0.6063828", "0.60622823", "0.60582626", "0.6055949", "0.60551506", "0.6052313", "0.60469776", "0.60454434", "0.6044262", "0.60440594", "0.6042729", "0.6041027", "0.60381895", "0.602472", "0.60211444", "0.6018635", "0.60175186", "0.6011566", "0.6010961", "0.6009621", "0.60090494", "0.60086787", "0.60059655" ]
0.0
-1
stores an array of question objects changed to public in v5 Constructor for Survey class.
function __construct($id) {#constructor sets stage by adding data to an instance of the object $this->SurveyID = (int)$id; if($this->SurveyID == 0){return FALSE;} $iConn = IDB::conn(); #uses a singleton DB class to create a mysqli improved connection #get Survey data from DB - v5 adds TotalResponses $sql = sprintf("select Title, Description, TotalResponses from " . PREFIX . "surveys Where SurveyID =%d",$this->SurveyID); #in mysqli, connection and query are reversed! connection comes first $result = mysqli_query($iConn,$sql) or die(trigger_error(mysqli_error($iConn), E_USER_ERROR)); if (mysqli_num_rows($result) > 0) {#Must be a valid survey! $this->isValid = TRUE; while ($row = mysqli_fetch_assoc($result)) {#dbOut() function is a 'wrapper' designed to strip slashes, etc. of data leaving db $this->Title = dbOut($row['Title']); $this->Description = dbOut($row['Description']); $this->TotalResponses = (int)$row['TotalResponses']; # v5: stores number of responses } } @mysqli_free_result($result); #free resources if(!$this->isValid){return;} #exit, as Survey is not valid #attempt to create question objects - InputType field is v4 $sql = sprintf("select QuestionID, Question, Description, InputType from " . PREFIX . "questions where SurveyID =%d",$this->SurveyID); $result = mysqli_query($iConn,$sql) or die(trigger_error(mysqli_error($iConn), E_USER_ERROR)); if (mysqli_num_rows($result) > 0) {#show results while ($row = mysqli_fetch_assoc($result)) { $this->TotalQuestions += 1; #increment total number of questions #Current TotalQuestions added to Question object as Number property - added in v2 - InputType v4 $this->aQuestion[] = new Question(dbOut($row['QuestionID']),dbOut($row['Question']),dbOut($row['Description']),$this->TotalQuestions,dbOut($row['InputType'])); } } $this->TotalQuestions = count($this->aQuestion); #TotalQuestions derived above - consider deleting this line! v2 @mysqli_free_result($result); #free resources #attempt to load all Answer objects into cooresponding Question objects $sql = "select a.AnswerID, a.Answer, a.Description, a.QuestionID from " . PREFIX . "surveys s inner join " . PREFIX . "questions q on q.SurveyID=s.SurveyID inner join " . PREFIX . "answers a on a.QuestionID=q.QuestionID where s.SurveyID = %d order by a.AnswerID asc"; $sql = sprintf($sql,$this->SurveyID); #process SQL $result = mysqli_query($iConn,$sql) or die(trigger_error(mysqli_error($iConn), E_USER_ERROR)); if (mysqli_num_rows($result) > 0) {#at least one answer! while ($row = mysqli_fetch_assoc($result)) {#match answers to questions $QuestionID = (int)$row['QuestionID']; #process db var foreach($this->aQuestion as $question) {#Check db questionID against Question Object ID if($question->QuestionID == $QuestionID) { $question->TotalAnswers += 1; #increment total number of answers #create answer, and push onto stack! $question->aAnswer[] = new Answer((int)$row['AnswerID'],dbOut($row['Answer']),dbOut($row['Description'])); break; } } } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function initQuestions()\n\t{\n\t\t$this->collQuestions = array();\n\t}", "public function __construct() {\r\n $this->answers = new ArrayCollection();\r\n }", "public function set_questions (array $questions) {\n $this->questions = $questions;\n }", "public function __construct($questions)\n\t{\n\t\t$this->questions = $questions;\n\t\tparent::__construct();\n\t}", "public function setQuestions(array $questions)\n {\n $this->questions = $questions;\n }", "public function __construct()\n {\n $this->questions = new ArrayCollection();\n $this->openids = new ArrayCollection();\n $this->createdAt = new \\DateTime();\n }", "public function getQuestions() {\r\n\t\t\treturn $this->_arrQuestions;\r\n\t\t}", "function getQuestions()\n\t{\n\t\treturn $this->aQuestion;\n\t}", "function fill( &$questionArray )\r\n {\r\n $db =& eZDB::globalDatabase();\r\n $this->ID =& $questionArray[$db->fieldName( \"ID\" )];\r\n $this->Name =& $questionArray[$db->fieldName( \"Name\" )];\r\n $this->Description =& $questionArray[$db->fieldName( \"Description\" )];\r\n $this->Game = new eZQuizGame( $questionArray[$db->fieldName( \"GameID\" )] );\r\n }", "public function set_question(array $question)\n\t{\n\t\t$this->question = $question;\n\t\treturn $this;\n\t}", "public function initQuestionOffensives()\n\t{\n\t\t$this->collQuestionOffensives = array();\n\t}", "public function get_questions() {\n return $this->questions;\n }", "public function GetFormPostedValuesQuestions() {\n\t\t/* THE ARRAY OF POSTED FIELDS */\n\t\t$req_fields=array(\"survey_id\",\"question\");\n\n\t\tfor ($i=0;$i<count($req_fields);$i++) {\n\n\t\t\t//echo $_POST['application_id'];\n\t\t\tif (ISSET($_POST[$req_fields[$i]]) && !EMPTY($_POST[$req_fields[$i]])) {\n\t\t\t\t$this->SetVariable($req_fields[$i],EscapeData($_POST[$req_fields[$i]]));\n\t\t\t}\n\t\t\telse {\n\t\t\t\t//echo \"<br>\".$this->req_fields[$i].\"<br>\";\n\t\t\t\t$this->$req_fields[$i]=\"\";\n\t\t\t}\n\t\t}\n\t}", "public function getQuestions() {\r\n\t\treturn $this->questions;\r\n\t}", "public function getQuestions()\n {\n return $this->questions;\n }", "public function getQuestions()\n {\n return $this->questions;\n }", "public function __construct($questions,$answers)\r\n\t{\r\n\t\t$this->questions = $questions;\r\n\t\t$this->answers = $answers;\r\n\t\tparent::__construct();\r\n\t}", "public function get_research_questions()\n\t{\n\t\treturn $this->research_questions;\n\t}", "public function initQuestionVotes()\n\t{\n\t\t$this->collQuestionVotes = array();\n\t}", "public function getQuestions()\n {\n if (!empty($this->questionsMetadata)) {\n foreach ($this->questions as $question) {\n /** @var Question $question */\n $data = $question->get_data();\n $metadata = $data->get_metadata();\n\n if (!isset($metadata)) {\n $qtype = $data->get_type();\n // HACK: longtextV2 doesn't have a corresponding entity, so force it to use the similar longtext one\n if ($qtype === 'longtextV2') {\n $qtype = 'longtext';\n }\n $metadataClass = '\\\\LearnosityQti\\\\Entities\\\\QuestionTypes\\\\'.$qtype.'_metadata';\n $metadata = new $metadataClass();\n $data->set_metadata($metadata);\n }\n\n $this->populateQuestionMetadata($metadata, $this->questionsMetadata);\n }\n }\n return array_merge(array_values($this->questions), $this->getRubricQuestions());\n }", "private function _Questions ( ) {\n\t\t$Config = $this->Get ( 'Config' );\n\t\t$quests = $Config['questions'];\n\t\t$groups = $Config['question_groups'];\n\t\tforeach ( $groups as $g => $group ) {\n\t\t\t$Groups[$group] = new stdClass();\n\t\t\t$Groups[$group]->Label = $Config['question_group_labels'][$g];\n\t\t\tforeach ( $quests as $q => $quest ) {\n\t\t\t\tif ( $Config['question_group'][$q] != $g ) continue;\n\t\t\t\t$Groups[$group]->Questions[$quest] = new stdClass();\n\t\t\t\t$Groups[$group]->Questions[$quest]->Label = $Config['question_labels'][$q];\n\t\t\t\t$Groups[$group]->Questions[$quest]->Type = $Config['question_types'][$q];\n\t\t\t\t$Groups[$group]->Questions[$quest]->Field = $Config['question_fields'][$q];\n\t\t\t\t$Groups[$group]->Questions[$quest]->Social = $Config['question_social'][$q];\n\t\t\t\t$Groups[$group]->Questions[$quest]->Display = $Config['question_display'][$q];\n\t\t\t\tif ( $Config['question_options'][$q] )\n\t\t\t\t\t$Groups[$group]->Questions[$quest]->Options = explode ( '|', $Config['question_options'][$q] );\n\t\t\t}\n\t\t\tksort ( $Groups[$group]->Questions );\n\t\t}\n\t\tksort ( $Groups );\n\t\treturn ( $Groups );\n\t}", "public function getPreDefinedQuestions()\n {\n return [\n \"1\" => \"Select a Security Question\",\n \"2\" => \"What was your childhood nickname?\",\n \"3\" => \"What is the name of your favorite childhood friend?\",\n \"4\" => \"What was the name of your first stuffed animal?\",\n \"5\" => \"Where were you when you had your first kiss?\",\n \"6\" => \"What is the name of the company of your first job?\",\n \"7\" => \"What was your favorite place to visit as a child?\",\n \"8\" => \"What was your dream job as a child?\",\n \"9\" => \"What is your preferred musical genre?\",\n \"10\" => \"What is your favorite team?\",\n \"11\" => \"What is your father\\\"s middle name?\"\n ];\n }", "public function initQuestionComments()\n\t{\n\t\t$this->collQuestionComments = array();\n\t}", "public function questions($survey = \"\")\n {\n\n $surveyPrefix = \"\";\n $surveyData = $this->survey_model->getSurveyPrefix($survey);\n $data[\"valid_survey\"] = true;\n $data[\"show_questions\"] = true;\n $data[\"survey_errors\"] = false;\n\n // check if the provided slug was valid\n if($surveyData != null) {\n\n // populate survery information\n $surveyPrefix = $surveyData->prefix;\n $data[\"survey_title\"] = $surveyData->title;\n $data[\"survey_subtitle\"] = $surveyData->subtitle;\n }\n else {\n $data[\"valid_survey\"] = false; // display error\n }\n\n // check if the survey was submitted\n if($_SERVER['REQUEST_METHOD'] == 'POST' && $data[\"valid_survey\"]) {\n $result = $this->survey_model->validateSubmission($surveyPrefix);\n if(array_key_exists(\"errors\", $result)) {\n $data[\"errors\"] = $result[\"errors\"];\n $data[\"survey_errors\"] = true;\n }\n else {\n $data[\"show_questions\"] = false;\n }\n }\n\n // check if the user specified a valid survey\n if(!empty($surveyPrefix)) {\n\n $data[\"questions\"] = $this->survey_model->getSurveyData($surveyPrefix);\n ($data[\"questions\"] === null) ? $data[\"valid_survey\"] = false: \"\";\n }\n\n $data[\"active_surveys\"] = \"\";\n $this->load->view('templates/survey/header', $data);\n $this->load->view('templates/survey/nav');\n $this->load->view('templates/survey/survey', $data);\n $this->load->view('templates/survey/footer');\n }", "public function testCreateSurveyQuestion0()\n {\n }", "public function testCreateSurveyQuestion0()\n {\n }", "function getQuestions() { \n\ttry {\n\t\t$questions = ORM::for_table('questions')->find_many();\n\t\tif (!count($questions)) { \n\t\t\treturn 0;\n\t\t}\n\t\t$theQuestions = array();\n\t\tforeach ($questions as $question) { \n\t\t\t$theQuestion = array();\n\t\t\t$theQuestion['id'] = $question->id;\n\t\t\t$theQuestion['text'] = $question->text;\n\t\t\t$theQuestion['answer1'] = $question->answer1;\n\t\t\t$theQuestion['answer2'] = $question->answer2;\n\t\t\t$theQuestions[] = $theQuestion;\n\t\t}\n\t\treturn $theQuestions;\n\t} catch (Exception $e) { \n\t\treturn 0;\n\t}\n}", "function ipal_get_questions_student($qid){\r\n\r\n global $ipal;\r\n global $DB;\r\n global $CFG;\r\n\t\t$q='';\r\n\t\t$pagearray2=array();\r\n\t\t\r\n $aquestions=$DB->get_record('question',array('id'=>$qid));\r\n\t\t\tif($aquestions->questiontext != \"\"){ \r\n\r\n\t$pagearray2[]=array('id'=>$qid, 'question'=>$aquestions->questiontext, 'answers'=>ipal_get_answers_student($qid));\r\n\t\t\t\t\t\t\t}\r\n return($pagearray2);\r\n}", "function answers()\r\n {\r\n $returnArray = array();\r\n $db =& eZDB::globalDatabase();\r\n $db->array_query( $questionArray, \"SELECT ID FROM eZQuiz_Answer WHERE AlternativeID='$this->ID'\" );\r\n\r\n for ( $i = 0; $i < count( $questionArray ); $i++ )\r\n {\r\n $returnArray[$i] = new eZQuizAnswer( $questionArray[$i][$db->fieldName( \"ID\" )], true );\r\n }\r\n return $returnArray;\r\n }", "public function extra_question_fields()\n\t{\n\t\treturn array( 'qtype_logic_certificate', 'applet_id', 'applet_url' );\n\t}", "public function initAnswers()\n\t{\n\t\t$this->collAnswers = array();\n\t}", "function create_question_set($title, $points) {\n $set = array();\n $set['title'] = $title;\n $set['points'] = $points;\n return $set;\n}", "public function __wakeup(){\n $this->setQuestionObject();\n }", "public static function returnValidPublicPracticeNumberOfQuestionsArray(){\n $refl = new ReflectionClass('enum_PracticeNumberOfQuestions');\n $myArray = $refl->getConstants();\n\n //unset($myArray['All']);\n\n return $myArray;\n }", "public function __invoke(): Collection|array\n {\n return Survey::all();\n }", "public function questions()\n {\n return $this->hasMany('App\\\\SurveyQuestion','survey_id');\n }", "public function __construct()\n {\n $this->postules = new ArrayCollection();\n $this->competences = new ArrayCollection();\n $this->habilitations = new ArrayCollection();\n }", "public function questionSetsArray() {\n return json_decode($this->question_sets, true);\n }", "function alternatives()\r\n {\r\n $returnArray = array();\r\n $db =& eZDB::globalDatabase();\r\n $db->array_query( $questionArray, \"SELECT ID FROM eZQuiz_Alternative WHERE QuestionID='$this->ID' ORDER BY ID\" );\r\n\r\n for ( $i = 0; $i < count( $questionArray ); $i++ )\r\n {\r\n $returnArray[$i] = new eZQuizAlternative( $questionArray[$i][$db->fieldName( \"ID\" )], true );\r\n }\r\n return $returnArray;\r\n }", "public static function getAllQuestionsAndAnswers(){\n $returnArray = array(\n 'Result' => 1,\n 'Reason' => \"\",\n 'QuestionResponses' => array()\n );\n\n $questionObjects = question::getAllQuestions();\n\n if(count($questionObjects) > 0){\n $responsesArray = self::buildQuestionsAndAnswersArray_Admin($questionObjects);\n $returnArray['QuestionResponses'] = $responsesArray;\n }\n else{\n $returnArray['Result'] = 0;\n $returnArray['Reason'] = \"No questions were found\";\n }\n\n return $returnArray;\n }", "function loadQuestionsFromDb() \n\t{\n\t\tglobal $ilDB;\n\t\t$this->questions = array();\n\t\t$result = $ilDB->queryF(\"SELECT * FROM svy_svy_qst WHERE survey_fi = %s ORDER BY sequence\",\n\t\t\tarray('integer'),\n\t\t\tarray($this->getSurveyId())\n\t\t);\n\t\twhile ($data = $ilDB->fetchAssoc($result)) \n\t\t{\n\t\t\t$this->questions[$data[\"sequence\"]] = $data[\"question_fi\"];\n\t\t}\n\t}", "function &_getGlobalSurveyData($obj_id)\n\t{\n\t\t$survey = new ilObjSurvey($obj_id, false);\n\t\t$survey->loadFromDb();\n\t\t$result = array();\n\t\tif (($survey->getTitle()) and ($survey->author) and (count($survey->questions)))\n\t\t{\n\t\t\t$result[\"complete\"] = true;\n\t\t} \n\t\t\telse \n\t\t{\n\t\t\t$result[\"complete\"] = false;\n\t\t}\n\t\t$result[\"evaluation_access\"] = $survey->getEvaluationAccess();\n\t\treturn $result;\n\t}", "public function initializeQuestion()\r\n {\r\n $questionList = RequestDispatcher::dispatch(QuestionList::class, [self::COUNT_OF_RESULT, self::START_INDEX_FROM]);\r\n\r\n $this->questionInfo = json_decode($questionList);\r\n }", "function ipal_get_questions(){ \r\n \r\n\tglobal $ipal;\r\n\tglobal $DB;\r\n\tglobal $CFG;\r\n\t$q='';\t\r\n\t$pagearray2=array();\r\n\t // is there an quiz associated with an ipal?\r\n//\t$ipal_quiz=$DB->get_record('ipal_quiz',array('ipal_id'=>$ipal->id));\r\n\t\r\n\t// get quiz and put it into an array\r\n\t$quiz=$DB->get_record('ipal',array('id'=>$ipal->id));\r\n\t\r\n\t//Get the question ids\r\n\t$questions=explode(\",\",$quiz->questions);\r\n\t\r\n\t//get the questions and stuff them into an array\r\n\t\tforeach($questions as $q){\t\r\n\t\t\t\r\n\t\t $aquestions=$DB->get_record('question',array('id'=>$q));\r\n\t\t if(isset($aquestions->questiontext)){\r\n\t\t $pagearray2[]=array('id'=>$q, 'question'=>strip_tags($aquestions->questiontext), 'answers'=>ipal_get_answers($q));\r\n\t\t\t\t \r\n\t\t }\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t}\r\n \r\n\treturn($pagearray2);\r\n\t}", "function fillQuestion($data)\r\n {\r\n\tfor( $i=0; $i<$data['count']; $i++ ){\r\n\t\t$data[$i]['Question'] = $this->findAll($conditions='id='.$data[$i]['SurveyQuestion']['question_id'], $fields=\"prompt, type\");\r\n\t\t$data[$i]['Question'] = $data[$i]['Question'][0]['Question'];\r\n\t\t$data[$i]['Question']['number'] = $data[$i]['SurveyQuestion']['number'];\r\n\t\t$data[$i]['Question']['id'] = $data[$i]['SurveyQuestion']['question_id'];\r\n\t\t$data[$i]['Question']['sq_id'] = $data[$i]['SurveyQuestion']['id'];\r\n\t\tunset($data[$i]['SurveyQuestion']);\r\n\t}\r\n\r\n\treturn $data;\r\n }", "private function generate_question() {\n\n require_once(__DIR__ . '/csv_gd.class.php');\n $csv_filename = $this->configuration['base_data_dir'] . '/csv/' . $this->configuration['csv_input'];\n\n $data_quiz_src_obj = new csv_gd($csv_filename);\n $data_quiz_src_orig = $data_quiz_src_obj->csv_to_array();\n\n\n\n // filter unwanted question (tags, diff level, void )\n $data_quiz_src_filtered = $this->quiz_filter($data_quiz_src_orig, $this->configuration['tags'], $this->configuration['min_diffucult_level'], $this->configuration['max_diffucult_level']);\n\n\n // reverse question with_answer\n if ($this->configuration['reverse_question'] == TRUE) {\n $data_quiz_src_filtered = $this->quiz_switch_question_with_answer($data_quiz_src_filtered);\n }\n\n\n // generate question and answer\n $data_quiz_src = $this->quiz_generate($data_quiz_src_filtered);\n\n\n // randomize quiz \n if ($this->configuration['randomize_question'] == TRUE) {\n shuffle($data_quiz_src);\n }\n\n\n // restrict the maxium number of question\n if ($this->configuration['max_question_total'] > 0) {\n $this->configuration['max_question_total'] = min(count($data_quiz_src), $this->configuration['max_question_total']);\n } else {\n $this->configuration['max_question_total'] = count($data_quiz_src);\n }\n $this->question = array_slice($data_quiz_src, 0, $this->configuration['max_question_total']);\n\n $this->configuration['debug']=$this->debug;\n\n // return $this->quiz_questions;\n }", "public function postClone() {\n\t\t// Clone common parent objects.\n\t\tparent::postClone();\n\n\t\t$tempQuestions = new ArrayCollection();\n\t\tforeach ($this->questions as $question) {\n\t\t\t$newQuestion = clone $question;\n\t\t\t$newQuestion->postClone();\n\t\t\t$newQuestion->setExercise($this);\n\t\t\t$tempQuestions->add($newQuestion);\n\t\t}\n\t\t$this->questions = $tempQuestions;\n\t}", "public function __construct() {\n\t\t$this->answers = new Tx_Extbase_Persistence_ObjectStorage();\n\t\t\n\t\t$this->columns = new Tx_Extbase_Persistence_ObjectStorage();\n\t\t\n\t\t$this->subquestions = new Tx_Extbase_Persistence_ObjectStorage();\n\t\t\n\t\t$this->sublines = new Tx_Extbase_Persistence_ObjectStorage();\n\t}", "function get_Questions()\n\t{\n\t\ttry\n\t\t{\n\t\t\t$db = DB::getConnection();\n\t\t\t$st = $db->prepare( 'SELECT * FROM questions' );\n\t\t\t$st->execute( array( ) );\n\t\t}\n\t\tcatch( PDOException $e ) { exit( 'PDO error ' . $e->getMessage() ); }\n\n\t\t$arr = array();\n\t\twhile( $row = $st->fetch() )\n\t\t{\n\t\t\t$arr[] = new Question( $row['id'], $row['question']);\n\t\t}\n\n\t\treturn $arr;\n\t}", "public function __construct()\n {\n $this->commentaire=new ArrayCollection();\n }", "public function run()\n {\n DB::table('arraytutquestions')->delete();\n\n $arraytut = array(\n ['name' => 'NoProgram',\n 'teacher_id' => '1',\n 'question_type' => 'array',\n 'tutquestion' => 'Which of these operators is used to allocate memory to array variable in Java?',\n 'tutquestion_level'=>'1',\n 'program'=>'',\n 'question_ans'=>'c',\n 'mc_ans1'=>'malloc',\n 'mc_ans2'=>'alloc',\n 'mc_ans3'=>'new ',\n 'mc_ans4'=>'new malloc',\n 'photo'=>'',\n 'slug' =>str_random(10),\n 'created_at'=>new DateTime,\n 'updated_at'=>new DateTime\n ],\n\n [ 'name' => 'Program',\n 'teacher_id' => '1',\n 'question_type' => 'array',\n 'tutquestion' => 'Which three are legal array declarations?',\n 'tutquestion_level'=>'2',\n 'program'=>'<pre>\n1.int [] myScores [];\n2.char [] myChars;\n3.int [6] myScores;\n4.Dog myDogs [];\n5.Dog myDogs [7];</pre>',\n 'question_ans'=>'a',\n 'mc_ans1'=>'1, 2, 4',\n 'mc_ans2'=>'2, 4, 5',\n 'mc_ans3'=>'2, 3, 4',\n 'mc_ans4'=>'All are correct',\n 'photo'=>'',\n 'slug' =>str_random(10),\n 'created_at'=>new DateTime,\n 'updated_at'=>new DateTime\n ],\n\n [ 'name' => 'NoProgram',\n 'teacher_id' => '1',\n 'question_type' => 'array',\n 'tutquestion' => 'Which cause a compiler error?',\n 'tutquestion_level'=>'4',\n 'program'=>'',\n 'question_ans'=>'b',\n 'mc_ans1'=>'int[ ] scores = {3, 5, 7};',\n 'mc_ans2'=>'int [ ][ ] scores = {2,7,6}, {9,3,45};',\n 'mc_ans3'=>'String cats[ ] = {\"Fluffy\", \"Spot\", \"Zeus\"};',\n 'mc_ans4'=>'boolean results[ ] = new boolean [] {true, false, true};',\n 'photo'=>'',\n 'slug' =>str_random(10),\n 'created_at'=>new DateTime,\n 'updated_at'=>new DateTime\n ],\n );\n\n DB::table('arraytutquestions')->insert($arraytut);\n }", "function fill( &$alternativeArray )\r\n {\r\n $db =& eZDB::globalDatabase();\r\n $this->ID =& $alternativeArray[$db->fieldName( \"ID\" )];\r\n $this->Name =& $alternativeArray[$db->fieldName( \"Name\" )];\r\n $this->IsCorrect =& $alternativeArray[$db->fieldName( \"IsCorrect\" )];\r\n $this->Question = new eZQuizQuestion( $alternativeArray[$db->fieldName( \"QuestionID\" )] );\r\n }", "private function questionList()\n {\n \t$requiredQuestions = [];\n\n \tfor ($x = 1; $x <= count($this->questions); $x++) {\n \t\t$requiredQuestions[ config('constants.questionInputPrefix') . $x] = 'required';\n \t}\n\n \treturn $requiredQuestions;\n }", "public function getQuestions()\n {\n return DB::table('questionbank_quizzes')\n ->where('quize_id','=',$this->id)\n ->orderBy('subject_id')\n ->get();\n }", "public function __construct()\n {\n $this->spotWebcams = new ArrayCollection();\n }", "public function extra_question_fields() {\n return array('qtype_formulas_options', 'varsrandom', 'varsglobal', 'answernumbering');\n }", "public function collectQuestions()\r\n {\r\n if ($this->questionLoadingFailed()) {\r\n die(\"Question is Not Loaded Error!\");\r\n }\r\n\r\n foreach ($this->questionInfo->items as $question) {\r\n\r\n $questionInfo = $this->getSingleQuestionInfo($question);\r\n\r\n $this->fileContent[] = $this->formatOfQuestion($questionInfo);\r\n }\r\n\r\n return $this;\r\n }", "public function extra_question_fields() {\n return array(\n 'qtype_calculatedfmt_opts',\n 'synchronize',\n 'single',\n 'shuffleanswers',\n 'answernumbering',\n 'correctanswerbase',\n 'correctanswerlengthint',\n 'correctanswerlengthfrac',\n 'correctanswergroupdigits',\n 'correctanswershowbase',\n 'exactdigits',\n );\n }", "public function __construct(Question $question)\n {\n $this->question = $question;\n }", "public function testCreateSurvey0()\n {\n }", "public function testCreateSurvey0()\n {\n }", "public function &getSurveyQuestions($with_answers = false)\n\t{\n\t\tglobal $ilDB;\n\t\t$obligatory_states =& $this->getObligatoryStates();\n\t\t// get questionblocks\n\t\t$all_questions = array();\n\t\t$result = $ilDB->queryF(\"SELECT svy_qtype.type_tag, svy_qtype.plugin, svy_question.question_id, \".\n\t\t\t\"svy_svy_qst.heading FROM svy_qtype, svy_question, svy_svy_qst WHERE svy_svy_qst.survey_fi = %s AND \" .\n\t\t\t\"svy_svy_qst.question_fi = svy_question.question_id AND svy_question.questiontype_fi = svy_qtype.questiontype_id \" .\n\t\t\t\"ORDER BY svy_svy_qst.sequence\",\n\t\t\tarray('integer'),\n\t\t\tarray($this->getSurveyId())\n\t\t);\n\t\tinclude_once \"./Modules/SurveyQuestionPool/classes/class.SurveyQuestion.php\";\n\t\twhile ($row = $ilDB->fetchAssoc($result))\n\t\t{\n\t\t\t$add = true;\n\t\t\tif ($row[\"plugin\"])\n\t\t\t{\n\t\t\t\tif (!$this->isPluginActive($row[\"type_tag\"]))\n\t\t\t\t{\n\t\t\t\t\t$add = false;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($add)\n\t\t\t{\n\t\t\t\t$question =& $this->_instanciateQuestion($row[\"question_id\"]);\n\t\t\t\t$questionrow = $question->_getQuestionDataArray($row[\"question_id\"]);\n\t\t\t\tforeach ($row as $key => $value)\n\t\t\t\t{\n\t\t\t\t\t$questionrow[$key] = $value;\n\t\t\t\t}\n\t\t\t\t$all_questions[$row[\"question_id\"]] = $questionrow;\n\t\t\t\t$all_questions[$row[\"question_id\"]][\"usableForPrecondition\"] = $question->usableForPrecondition();\n\t\t\t\t$all_questions[$row[\"question_id\"]][\"availableRelations\"] = $question->getAvailableRelations();\n\t\t\t\tif (array_key_exists($row[\"question_id\"], $obligatory_states))\n\t\t\t\t{\n\t\t\t\t\t$all_questions[$row[\"question_id\"]][\"obligatory\"] = $obligatory_states[$row[\"question_id\"]];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// get all questionblocks\n\t\t$questionblocks = array();\n\t\tif (count($all_questions))\n\t\t{\n\t\t\t$result = $ilDB->queryF(\"SELECT svy_qblk.*, svy_qblk_qst.question_fi FROM svy_qblk, svy_qblk_qst WHERE \" .\n\t\t\t\t\"svy_qblk.questionblock_id = svy_qblk_qst.questionblock_fi AND svy_qblk_qst.survey_fi = %s \" .\n\t\t\t\t\"AND \" . $ilDB->in('svy_qblk_qst.question_fi', array_keys($all_questions), false, 'integer'),\n\t\t\t\tarray('integer'),\n\t\t\t\tarray($this->getSurveyId())\n\t\t\t);\n\t\t\twhile ($row = $ilDB->fetchAssoc($result))\n\t\t\t{\n\t\t\t\t$questionblocks[$row['question_fi']] = $row;\n\t\t\t}\n\t\t}\n\t\t\n\t\tforeach ($all_questions as $question_id => $row)\n\t\t{\n\t\t\t$constraints = $this->getConstraints($question_id);\n\t\t\tif (isset($questionblocks[$question_id]))\n\t\t\t{\n\t\t\t\t$all_questions[$question_id][\"questionblock_title\"] = $questionblocks[$question_id]['title'];\n\t\t\t\t$all_questions[$question_id][\"questionblock_id\"] = $questionblocks[$question_id]['questionblock_id'];\n\t\t\t\t$all_questions[$question_id][\"constraints\"] = $constraints;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$all_questions[$question_id][\"questionblock_title\"] = \"\";\n\t\t\t\t$all_questions[$question_id][\"questionblock_id\"] = \"\";\n\t\t\t\t$all_questions[$question_id][\"constraints\"] = $constraints;\n\t\t\t}\n\t\t\tif ($with_answers)\n\t\t\t{\n\t\t\t\t$answers = array();\n\t\t\t\t$result = $ilDB->queryF(\"SELECT svy_variable.*, svy_category.title FROM svy_variable, svy_category \" .\n\t\t\t\t\t\"WHERE svy_variable.question_fi = %s AND svy_variable.category_fi = svy_category.category_id \".\n\t\t\t\t\t\"ORDER BY sequence ASC\",\n\t\t\t\t\tarray('integer'),\n\t\t\t\t\tarray($question_id)\n\t\t\t\t);\n\t\t\t\tif ($result->numRows() > 0) \n\t\t\t\t{\n\t\t\t\t\twhile ($data = $ilDB->fetchAssoc($result)) \n\t\t\t\t\t{\n\t\t\t\t\t\tarray_push($answers, $data[\"title\"]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t$all_questions[$question_id][\"answers\"] = $answers;\n\t\t\t}\n\t\t}\n\t\treturn $all_questions;\n\t}", "function __construct( $data = array() )\r\n\t{\r\n\t\tif (isset($data['orderno'])) $this->orderno = $data['orderno'];\r\n\t\tif (isset($data['question'])) $this->question = $data['question'];\r\n\t\tif (isset($data['type'])) $this->type = $data['type'];\r\n\t\tif (isset($data['maxscore'])) $this->maxscore = $data['maxscore'];\r\n\t\tif (isset($data['answers'])) \r\n\t\t{\r\n\t\t\tforeach ($data['answers'] as $key => $answer)\r\n\t\t\t{\r\n\t\t\t\t$this->answers[$key]->answer = $answer;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (isset($data['scorepercentages'])) \r\n\t\t{\r\n\t\t\tforeach ($data['scorepercentages'] as $key => $scorepercentage)\r\n\t\t\t{\r\n\t\t\t\t$this->answers[$key]->scorepercentage = $scorepercentage;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif ($this->type == \"shortanswer\")\r\n\t\t{\r\n\t\t\t$this->typeshort = \"SA\";\r\n\t\t}\r\n\t\tif ($this->type == \"multichoice\")\r\n\t\t{\r\n\t\t\t$this->typeshort = \"MC\";\r\n\t\t}\r\n\t\t\r\n\t}", "public function getquestion()\r\n {\r\n \r\n $con = new Connection();\r\n $conn = $con->getConnection();\r\n $ques = array();\r\n $i = 0;\r\n \r\n $query = \"SELECT `id`,`question_id`, `exam_id`,`subject_id`, `node_id`,`question`,`created_date` FROM `question`\";\r\n $result = mysqli_query($conn, $query);\r\n if (mysqli_num_rows($result) > 0) {\r\n while ($row = mysqli_fetch_assoc($result)) {\r\n $q = new question();\r\n //$ea->setId( $row ['id']);\r\n $q->setQuestion_id( $row ['question_id']);\r\n $q->setExam_id( $row ['exam_id']);\r\n $q->setSubject_id( $row ['subject_id']);\r\n $q->setNode_id( $row ['node_id']);\r\n $q->setQuestion( $row ['question']);\r\n \r\n }\r\n \r\n \r\n $ques[$i ++] = array(\r\n \"id\" => $row[\"question_id\"],\r\n \"ques\" => $q\r\n );\r\n \r\n }\r\n return $ques;\r\n \r\n }", "public function initUserQuestionTags()\n\t{\n\t\t$this->collUserQuestionTags = array();\n\t}", "public function getQuestionsEntities() : array;", "public function testUpdateSurveyQuestion0()\n {\n }", "public function testUpdateSurveyQuestion0()\n {\n }", "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}", "protected function GetNewLvlQAs()\n {\n $level = $this->GetLevel();\n $languageID = $this->GetLanguage()->GetId();\n $idsToExclude = $this->GetPreviousQuestionIDs();\n $limit = $this->GetParameters()->GetQuestionCount();\n \n $newQuesIDs = GetRandomQuestionIDs($languageID, $level, $limit, $idsToExclude);\n \n $lvlQAs = array();\n \n foreach ($newQuesIDs as $questionID)\n {\n $lvlQAs[] = new QuestionAnswer($questionID);\n }\n \n $this->SetLvlQAs($lvlQAs);\n }", "protected function question_where(){\n return $array = array('exam_id'=>trim($this->input->post('exam_id')), \n 'category_id'=>trim($this->input->post('category_id')),\n 'body_id'=>trim($this->input->post('body_id')),\n 'subject_id'=>trim($this->input->post('subject_id')),\n 'period_id'=>trim($this->input->post('period_id')),\n 'question_number'=>trim($this->input->post('question_number')),\n );\n }", "public function question()\n {\n return $this->hasMany('App\\Models\\Question', 'quizzes_id');\n }", "public function get_questionReferences() {\n return $this->questionReferences;\n }", "function get_survey_questions($survey_id) {\r\n // set connection var\r\n global $db;\r\n\r\n //query to get all associated survey answers\r\n $sql = \"SELECT id\r\n FROM questions\r\n WHERE is_active = '1' AND survey = '$survey_id';\";\r\n\r\n $questions_data = array();\r\n $questions = array();\r\n foreach ($db->query($sql) as $key => $value) {\r\n $questions_data[$key] = $value;\r\n foreach ($questions_data[$key] as $subkey => $subvalue) {\r\n if (is_int($subkey)) {\r\n $questions[] = $subvalue;\r\n }\r\n }\r\n }\r\n\r\n return $questions;\r\n}", "abstract public function setWeight(array $questions): array ;", "public function __construct($answers)\n {\n $this->answers = $answers;\n }", "function saveQuestionArray($questions, $project_id) {\n\n\t// Loop through questions array, do Insert query for each\n\t$questions_ids = array();\n\n\t$i = 0;\n\tforeach($questions as $question) {\n\t\t$i++;\n\n\t\tDB::insert('question', array(\n\t\t\t'question_project_id' => $project_id,\n\t\t\t'question_title' => $question,\n\t\t\t'question_number' => $i\n\t\t));\n\n // Get the inserted question ID, needed to insert questions\n $question_id = DB::insertId();\n\n // Get the inserted question_id and add to return array\n array_push($questions_ids, DB::insertId());\n\n // TODO do this on seperate question assign page\n // NOTE also insert questions_has_experts to simulate the assigning experts process\n DB::insert('question_has_experts', array(\n 'user_id' => 2,\n 'question_id' => $question_id\n ));\n\n\t}\n\n\t// Return the project ID\n\treturn $questions_ids;\n}", "public function get_stats_questions_schema() {\n\t\t\t$schema = array(\n\t\t\t\t'$schema' => 'http://json-schema.org/draft-04/schema#',\n\t\t\t\t'title' => 'quiz-statistics-questions',\n\t\t\t\t'parent' => 'quiz-statistics',\n\t\t\t\t'type' => 'object',\n\t\t\t\t'properties' => array(\n\t\t\t\t\t'id' => array(\n\t\t\t\t\t\t'description' => __( 'Unique ID for Statistics Question.', 'learndash' ),\n\t\t\t\t\t\t'type' => 'integer',\n\t\t\t\t\t\t'context' => array( 'view' ),\n\t\t\t\t\t\t'readonly' => true,\n\t\t\t\t\t),\n\t\t\t\t\t'statistic' => array(\n\t\t\t\t\t\t'description' => __( 'Statistics Ref ID.', 'learndash' ),\n\t\t\t\t\t\t'type' => 'integer',\n\t\t\t\t\t\t'context' => array( 'view' ),\n\t\t\t\t\t\t'readonly' => true,\n\t\t\t\t\t),\n\t\t\t\t\t'quiz' => array(\n\t\t\t\t\t\t'description' => sprintf(\n\t\t\t\t\t\t\t// translators: placeholder: Quiz.\n\t\t\t\t\t\t\tesc_html_x(\n\t\t\t\t\t\t\t\t'%s ID',\n\t\t\t\t\t\t\t\t'placeholder: Quiz',\n\t\t\t\t\t\t\t\t'learndash'\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\tLearnDash_Custom_Label::get_label( 'quiz' )\n\t\t\t\t\t\t),\n\t\t\t\t\t\t'type' => 'integer',\n\t\t\t\t\t\t'context' => array( 'embed', 'view' ),\n\t\t\t\t\t\t'readonly' => true,\n\t\t\t\t\t),\n\t\t\t\t\t'question' => array(\n\t\t\t\t\t\t'description' => sprintf(\n\t\t\t\t\t\t\t// translators: placeholder: Question.\n\t\t\t\t\t\t\tesc_html_x(\n\t\t\t\t\t\t\t\t'%s ID',\n\t\t\t\t\t\t\t\t'placeholder: Question',\n\t\t\t\t\t\t\t\t'learndash'\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\tLearnDash_Custom_Label::get_label( 'question' )\n\t\t\t\t\t\t),\n\t\t\t\t\t\t'type' => 'integer',\n\t\t\t\t\t\t'context' => array( 'embed', 'view' ),\n\t\t\t\t\t\t'readonly' => true,\n\t\t\t\t\t),\n\t\t\t\t\t'question_type' => array(\n\t\t\t\t\t\t'description' => sprintf(\n\t\t\t\t\t\t\t// translators: placeholder: Question.\n\t\t\t\t\t\t\tesc_html_x(\n\t\t\t\t\t\t\t\t'%s Type',\n\t\t\t\t\t\t\t\t'placeholder: Question',\n\t\t\t\t\t\t\t\t'learndash'\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\tLearnDash_Custom_Label::get_label( 'question' )\n\t\t\t\t\t\t),\n\t\t\t\t\t\t'type' => 'string',\n\t\t\t\t\t\t'context' => array( 'embed', 'view' ),\n\t\t\t\t\t\t'readonly' => true,\n\t\t\t\t\t),\n\t\t\t\t\t'points_scored' => array(\n\t\t\t\t\t\t'description' => esc_html__( 'Points scored.', 'learndash' ),\n\t\t\t\t\t\t'type' => 'integer',\n\t\t\t\t\t\t'context' => array( 'view' ),\n\t\t\t\t\t\t'readonly' => true,\n\t\t\t\t\t),\n\t\t\t\t\t'points_total' => array(\n\t\t\t\t\t\t'description' => esc_html__( 'Points total.', 'learndash' ),\n\t\t\t\t\t\t'type' => 'integer',\n\t\t\t\t\t\t'context' => array( 'view' ),\n\t\t\t\t\t\t'readonly' => true,\n\t\t\t\t\t),\n\t\t\t\t\t'answers' => array(\n\t\t\t\t\t\t'description' => sprintf(\n\t\t\t\t\t\t\t// translators: placeholder: Question.\n\t\t\t\t\t\t\tesc_html_x(\n\t\t\t\t\t\t\t\t'The collection of %s answers.',\n\t\t\t\t\t\t\t\t'placeholder: Question',\n\t\t\t\t\t\t\t\t'learndash'\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\tLearnDash_Custom_Label::get_label( 'question' )\n\t\t\t\t\t\t),\n\t\t\t\t\t\t'type' => 'object',\n\t\t\t\t\t\t'context' => array( 'view' ),\n\t\t\t\t\t\t'readonly' => true,\n\t\t\t\t\t),\n\t\t\t\t\t'student' => array(\n\t\t\t\t\t\t'description' => __( 'The collection of student submitted answers.', 'learndash' ),\n\t\t\t\t\t\t'type' => 'object',\n\t\t\t\t\t\t'context' => array( 'view' ),\n\t\t\t\t\t\t'readonly' => true,\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t);\n\n\t\t\treturn $schema;\n\t\t}", "public function questions()\n {\n \treturn $this->hasMany(Question::class);\n }", "private function setQuestionObject(){\n $questionID = (int)$this->connectObj->SocialQuestion->ID;\n if($questionID && $socialQuestion = get_instance()->model('SocialQuestion')->get($questionID)->result){\n $this->socialQuestion = $socialQuestion;\n }\n\n if($commentAuthorID = (int)$this->connectObj->CreatedBySocialUser->ID){\n $this->commentAuthorID = $commentAuthorID;\n }\n }", "public function __construct(\n\t\t$title = \"\",\n\t\t$comment = \"\",\n\t\t$author = \"\",\n\t\t$owner = -1,\n\t\t$question = \"\"\n\t)\n\t{\n\t\tparent::__construct($title, $comment, $author, $owner, $question);\n\t\t$this->answers = array();\n\t\t$this->correctanswers = 0;\n\t}", "public function getQuestions(): array\n {\n $questions = [];\n foreach ($this->block->getQuestions() as $question) {\n $cleanedAnswer = implode('', $this->fixIsiteMarkupHelper->getParagraphs($question['answer']));\n $questions[] = [\n 'question' => $question['question'],\n 'answer' => $cleanedAnswer,\n ];\n }\n return $questions;\n }", "function __constructor() {\n $arr = array();\n }", "public function questions()\n {\n return $this->hasMany(Question::class);\n }", "public function questions()\n {\n return $this->hasMany(Question::class);\n }", "public function __construct()\n {\n $this->programs = new ArrayCollection();\n }", "public function __construct()\n {\n $this->programs = new ArrayCollection();\n }", "public function __construct()\n {\n $this->middleware('auth');\n $this->questions = Question::all();\n }", "public function __construct()\n {\n $this->articles = new ArrayCollection();\n $this->commentaires = new ArrayCollection();\n }", "function answerQuestions() {\n $this->layout = 'survey'; // use the more basic survey layout\n if (!$this->request->is('post')) {\n // if there is no data then show the initial view\n $survey = $this->Session->read('Survey.original'); // get the survey being used\n if (empty($survey['Question'])) { // if there are no questions then we don't need to show the question form at all\n $this->Session->write('Survey.progress', GDTA_ENTRY); // move progress forward and redirect to the runSurvey action\n $this->redirect(array('action' => 'runSurvey'));\n }\n $questions = $survey['Question'];\n $answers = ($this->Session->check('Survey.answers')) ? $this->Session->read('Survey.answers') : array(); // check to see if there are already answers in the session\n $choices = array(); // gather choices here keyed to each question id\n foreach ($questions as &$q) { // go through each question and look to see if there is an answer for it\n $checkId = $q['id'];\n $choices[$checkId] = array();\n if (isset($q['Choice'])) {\n foreach ($q['Choice'] as $choice) {\n $choices[$checkId][$choice['id']] = $choice['value'];\n }\n }\n foreach ($answers as $a) {\n if ($a['question_id'] == $checkId) {\n if ($q['type'] == MULTI_SELECT) {\n $q['answer'] = Set::extract('/id',$a['answer']);\n } else {\n $q['answer'] = $a['answer'];\n }\n break;\n }\n }\n }\n $this->set('questions', $questions); // send questions to the view\n $this->set('choices', $choices); // send choices for questions to the view, ordered for form elements\n } else { // we have form data so process it here\n if (isset($this->request->data['Answer'])) {\n // make sure we have answers in the data set\n $this->Session->write('Survey.answers', $this->request->data['Answer']); // write the answers to the session\n }\n $this->Session->write('Survey.progress', GDTA_ENTRY); // move progress forward and redirect to the runSurvey action\n $this->redirect(array('action' => 'runSurvey'));\n }\n }", "public function __construct()\n {\n parent::__construct();\n $this->challenges = new \\Doctrine\\Common\\Collections\\ArrayCollection();\n }", "public static function question($questions)\n {\n $choices = array();\n $answer = array();\n\n // To find the related records from question layout\n foreach ($questions as $question) {\n $choice = array();\n $related = $question->getRelatedSet('qus_QUSC');\n\n foreach ($related as $relatedField) {\n // To find and create array of correct answers\n if ($relatedField->getField('qus_QUSC::isCorrect_kqn')) {\n array_push($answer, $relatedField->getField('qus_QUSC::choiceValue_kqt'));\n }\n\n // To create the array of choices of a question\n array_push($choice, $relatedField->getField('qus_QUSC::choiceValue_kqt'));\n }\n\n // To create array of choices of all questions\n array_push($choices, $choice);\n }\n\n // return array of choices and answers of questions\n return array($choices, $answer);\n }", "function kilman_prep_for_questionform($kilman, $qid, $qtype) {\n $context = context_module::instance($kilman->cm->id);\n if ($qid != 0) {\n $question = clone($kilman->questions[$qid]);\n $question->qid = $question->id;\n $question->sid = $kilman->survey->id;\n $question->id = $kilman->cm->id;\n $draftideditor = file_get_submitted_draft_itemid('question');\n $content = file_prepare_draft_area($draftideditor, $context->id, 'mod_kilman', 'question',\n $qid, array('subdirs' => true), $question->content);\n $question->content = array('text' => $content, 'format' => FORMAT_HTML, 'itemid' => $draftideditor);\n\n if (isset($question->dependencies)) {\n foreach ($question->dependencies as $dependencies) {\n if ($dependencies->dependandor === \"and\") {\n $question->dependquestions_and[] = $dependencies->dependquestionid.','.$dependencies->dependchoiceid;\n $question->dependlogic_and[] = $dependencies->dependlogic;\n } else if ($dependencies->dependandor === \"or\") {\n $question->dependquestions_or[] = $dependencies->dependquestionid.','.$dependencies->dependchoiceid;\n $question->dependlogic_or[] = $dependencies->dependlogic;\n }\n }\n }\n } else {\n $question = \\mod_kilman\\question\\base::question_builder($qtype);\n $question->sid = $kilman->survey->id;\n $question->id = $kilman->cm->id;\n $question->type_id = $qtype;\n $question->type = '';\n $draftideditor = file_get_submitted_draft_itemid('question');\n $content = file_prepare_draft_area($draftideditor, $context->id, 'mod_kilman', 'question',\n null, array('subdirs' => true), '');\n $question->content = array('text' => $content, 'format' => FORMAT_HTML, 'itemid' => $draftideditor);\n }\n return $question;\n}", "public function getQaArr(){\n $titlecontent1 = str_replace(\"\\r\\n\",\"\\n\",$this->questiontitles);\n $titlecontent = str_replace(\"\\r\",\"\\n\",$titlecontent1);\n $qs = explode(\"\\n\",$titlecontent);\n $qas = array();\n\n foreach( $qs as $q ){\n $qas[] = array(\n 'q' => $q,\n 'a' => ''\n );\n }\n\n return $qas;\n }", "private function question()\n\t{\n\t\t$this->qns['questionnaire']['questionnairecategories_id'] = $this->allinputs['questioncat'];\n\t\t$this->qns['questionnaire']['questionnairesubcategories_id'] = $this->allinputs['questionsubcat'];\n\t\t$this->qns['questionnaire']['label'] = $this->allinputs['question_label'];\n\n\n\t\t$this->qns['questionnaire']['question'] = $this->allinputs['question'];\n\t\t$this->qns['questionnaire']['has_sub_question'] = $this->allinputs['subquestion'];\n\n\t\tif( $this->qns['questionnaire']['has_sub_question'] == 0 )\n\t\t{\n\t\t\t$this->qns['answers']['answer_type'] = $this->allinputs['optiontype'];\n\t\t}\n\n\t\t$this->qns['questionnaire']['active'] = 1;\n\n\t\tif( $this->qns['questionnaire']['has_sub_question'] == 0 ){\n\t\t\t//This code must be skipped if sub_question is 1\n\t\t\t$optionCounter = 0;\n\t\t\tforeach ($this->allinputs as $key => $value) {\n\n\t\t\t\tif( str_is('option_*', $key) ){\n\t\t\t\t\t$optionCounter++;\n\t\t\t\t\t$this->qns['answers'][$optionCounter] = ( $this->qns['answers']['answer_type'] == 'opentext' ) ? 'Offered answer text' : $value;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public function initAnswerComments()\n\t{\n\t\t$this->collAnswerComments = array();\n\t}", "public function questions() {\n return $this->belongsToMany('App\\Question')->withTimestamps();\n }", "public function initAnswerOffensives()\n\t{\n\t\t$this->collAnswerOffensives = array();\n\t}", "public function clearQuestions()\n\t{\n\t\t$this->collQuestions = null; // important to set this to NULL since that means it is uninitialized\n\t}", "public function __construct()\n {\n /*initialize the notes property to a new ArrayCollection*/\n $this->notes = new ArrayCollection();\n }" ]
[ "0.6505907", "0.65035015", "0.6458545", "0.64332914", "0.63033587", "0.6091089", "0.60572755", "0.60417324", "0.59871304", "0.59619945", "0.5910205", "0.588193", "0.5845816", "0.58339965", "0.58292806", "0.58292806", "0.5814504", "0.58019185", "0.5761431", "0.5750119", "0.5715952", "0.5704976", "0.5702202", "0.5695181", "0.56915915", "0.56915915", "0.56895864", "0.5674326", "0.5672708", "0.56531024", "0.5639858", "0.56073767", "0.5602368", "0.55972856", "0.55619425", "0.5556628", "0.5556254", "0.5537859", "0.55370957", "0.5504311", "0.549899", "0.54958516", "0.54957014", "0.5491395", "0.54808503", "0.5472999", "0.54704225", "0.5447033", "0.54416907", "0.54321045", "0.543194", "0.5431336", "0.54268235", "0.542134", "0.54176855", "0.541661", "0.5416006", "0.5401215", "0.53905517", "0.53660756", "0.53660756", "0.5357079", "0.53487605", "0.53465194", "0.5344023", "0.53425527", "0.5334843", "0.5334843", "0.5330207", "0.5328966", "0.5325172", "0.5324236", "0.53229284", "0.5310711", "0.5301972", "0.530151", "0.5298344", "0.5285741", "0.52851814", "0.5275276", "0.5269309", "0.5252211", "0.52520984", "0.52484393", "0.52484393", "0.5245421", "0.5245421", "0.52416", "0.52380896", "0.5233517", "0.5233432", "0.52312464", "0.52272284", "0.52263504", "0.5223665", "0.52139753", "0.5212594", "0.5210852", "0.5200222", "0.51987386" ]
0.58256245
16
end Survey() constructor Reveals questions in internal Array of Question Objects
function showQuestions() { if($this->TotalQuestions > 0) {#be certain there are questions foreach($this->aQuestion as $question) {#print data for each echo $question->Number . ') '; # We're using new Number property instead of id - v2 echo $question->Text . ' '; if($question->Description != ''){echo '(' . $question->Description . ')';} echo '<br />'; $question->showAnswers() . '<br />'; #display array of answer objects } }else{ echo 'There are currently no questions for this survey.'; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function __construct() {\r\n $this->answers = new ArrayCollection();\r\n }", "public function questions($survey = \"\")\n {\n\n $surveyPrefix = \"\";\n $surveyData = $this->survey_model->getSurveyPrefix($survey);\n $data[\"valid_survey\"] = true;\n $data[\"show_questions\"] = true;\n $data[\"survey_errors\"] = false;\n\n // check if the provided slug was valid\n if($surveyData != null) {\n\n // populate survery information\n $surveyPrefix = $surveyData->prefix;\n $data[\"survey_title\"] = $surveyData->title;\n $data[\"survey_subtitle\"] = $surveyData->subtitle;\n }\n else {\n $data[\"valid_survey\"] = false; // display error\n }\n\n // check if the survey was submitted\n if($_SERVER['REQUEST_METHOD'] == 'POST' && $data[\"valid_survey\"]) {\n $result = $this->survey_model->validateSubmission($surveyPrefix);\n if(array_key_exists(\"errors\", $result)) {\n $data[\"errors\"] = $result[\"errors\"];\n $data[\"survey_errors\"] = true;\n }\n else {\n $data[\"show_questions\"] = false;\n }\n }\n\n // check if the user specified a valid survey\n if(!empty($surveyPrefix)) {\n\n $data[\"questions\"] = $this->survey_model->getSurveyData($surveyPrefix);\n ($data[\"questions\"] === null) ? $data[\"valid_survey\"] = false: \"\";\n }\n\n $data[\"active_surveys\"] = \"\";\n $this->load->view('templates/survey/header', $data);\n $this->load->view('templates/survey/nav');\n $this->load->view('templates/survey/survey', $data);\n $this->load->view('templates/survey/footer');\n }", "function __construct($id)\n\t{#constructor sets stage by adding data to an instance of the object\n\t\t$this->SurveyID = (int)$id;\n\t\tif($this->SurveyID == 0){return FALSE;}\n\t\t$iConn = IDB::conn(); #uses a singleton DB class to create a mysqli improved connection \n\t\t\n\t\t#get Survey data from DB - v5 adds TotalResponses\n\t\t$sql = sprintf(\"select Title, Description, TotalResponses from \" . PREFIX . \"surveys Where SurveyID =%d\",$this->SurveyID);\n\t\t\n\t\t#in mysqli, connection and query are reversed! connection comes first\n\t\t$result = mysqli_query($iConn,$sql) or die(trigger_error(mysqli_error($iConn), E_USER_ERROR));\n\t\tif (mysqli_num_rows($result) > 0)\n\t\t{#Must be a valid survey!\n\t\t\t$this->isValid = TRUE;\n\t\t\twhile ($row = mysqli_fetch_assoc($result))\n\t\t\t{#dbOut() function is a 'wrapper' designed to strip slashes, etc. of data leaving db\n\t\t\t $this->Title = dbOut($row['Title']);\n\t\t\t $this->Description = dbOut($row['Description']);\n\t\t $this->TotalResponses = (int)$row['TotalResponses']; # v5: stores number of responses\t\t\t \n\t\t\t}\n\t\t}\n\t\t@mysqli_free_result($result); #free resources\n\t\tif(!$this->isValid){return;} #exit, as Survey is not valid\n\t\t\n\t\t#attempt to create question objects - InputType field is v4\n\t\t$sql = sprintf(\"select QuestionID, Question, Description, InputType from \" . PREFIX . \"questions where SurveyID =%d\",$this->SurveyID);\n\t\t$result = mysqli_query($iConn,$sql) or die(trigger_error(mysqli_error($iConn), E_USER_ERROR));\n\t\tif (mysqli_num_rows($result) > 0)\n\t\t{#show results\n\t\t while ($row = mysqli_fetch_assoc($result))\n\t\t {\n\t\t\t\t$this->TotalQuestions += 1; #increment total number of questions\n\t\t\t\t#Current TotalQuestions added to Question object as Number property - added in v2 - InputType v4\n\t\t\t\t$this->aQuestion[] = new Question(dbOut($row['QuestionID']),dbOut($row['Question']),dbOut($row['Description']),$this->TotalQuestions,dbOut($row['InputType']));\n\t\t }\n\t\t}\n\t\t$this->TotalQuestions = count($this->aQuestion); #TotalQuestions derived above - consider deleting this line! v2 \n\t\t@mysqli_free_result($result); #free resources\n\t\t\n\t\t#attempt to load all Answer objects into cooresponding Question objects \n\t $sql = \"select a.AnswerID, a.Answer, a.Description, a.QuestionID from \n\t\t\" . PREFIX . \"surveys s inner join \" . PREFIX . \"questions q on q.SurveyID=s.SurveyID \n\t\tinner join \" . PREFIX . \"answers a on a.QuestionID=q.QuestionID \n\t\twhere s.SurveyID = %d \n\t\torder by a.AnswerID asc\";\n\t\t$sql = sprintf($sql,$this->SurveyID); #process SQL\n\t\t$result = mysqli_query($iConn,$sql) or die(trigger_error(mysqli_error($iConn), E_USER_ERROR));\n\t\tif (mysqli_num_rows($result) > 0)\n\t\t{#at least one answer!\n\t\t while ($row = mysqli_fetch_assoc($result))\n\t\t {#match answers to questions\n\t\t\t $QuestionID = (int)$row['QuestionID']; #process db var\n\t\t\t\tforeach($this->aQuestion as $question)\n\t\t\t\t{#Check db questionID against Question Object ID\n\t\t\t\t\tif($question->QuestionID == $QuestionID)\n\t\t\t\t\t{\n\t\t\t\t\t\t$question->TotalAnswers += 1; #increment total number of answers\n\t\t\t\t\t\t#create answer, and push onto stack!\n\t\t\t\t\t\t$question->aAnswer[] = new Answer((int)$row['AnswerID'],dbOut($row['Answer']),dbOut($row['Description']));\n\t\t\t\t\t\tbreak; \n\t\t\t\t\t}\n\t\t\t\t}\t\n\t\t }\n\t\t}\n\t}", "public function __construct($questions)\n\t{\n\t\t$this->questions = $questions;\n\t\tparent::__construct();\n\t}", "public function questions()\n {\n return $this->hasMany('App\\\\SurveyQuestion','survey_id');\n }", "public function initQuestions()\n\t{\n\t\t$this->collQuestions = array();\n\t}", "function answerQuestions() {\n $this->layout = 'survey'; // use the more basic survey layout\n if (!$this->request->is('post')) {\n // if there is no data then show the initial view\n $survey = $this->Session->read('Survey.original'); // get the survey being used\n if (empty($survey['Question'])) { // if there are no questions then we don't need to show the question form at all\n $this->Session->write('Survey.progress', GDTA_ENTRY); // move progress forward and redirect to the runSurvey action\n $this->redirect(array('action' => 'runSurvey'));\n }\n $questions = $survey['Question'];\n $answers = ($this->Session->check('Survey.answers')) ? $this->Session->read('Survey.answers') : array(); // check to see if there are already answers in the session\n $choices = array(); // gather choices here keyed to each question id\n foreach ($questions as &$q) { // go through each question and look to see if there is an answer for it\n $checkId = $q['id'];\n $choices[$checkId] = array();\n if (isset($q['Choice'])) {\n foreach ($q['Choice'] as $choice) {\n $choices[$checkId][$choice['id']] = $choice['value'];\n }\n }\n foreach ($answers as $a) {\n if ($a['question_id'] == $checkId) {\n if ($q['type'] == MULTI_SELECT) {\n $q['answer'] = Set::extract('/id',$a['answer']);\n } else {\n $q['answer'] = $a['answer'];\n }\n break;\n }\n }\n }\n $this->set('questions', $questions); // send questions to the view\n $this->set('choices', $choices); // send choices for questions to the view, ordered for form elements\n } else { // we have form data so process it here\n if (isset($this->request->data['Answer'])) {\n // make sure we have answers in the data set\n $this->Session->write('Survey.answers', $this->request->data['Answer']); // write the answers to the session\n }\n $this->Session->write('Survey.progress', GDTA_ENTRY); // move progress forward and redirect to the runSurvey action\n $this->redirect(array('action' => 'runSurvey'));\n }\n }", "public function __construct($questions,$answers)\r\n\t{\r\n\t\t$this->questions = $questions;\r\n\t\t$this->answers = $answers;\r\n\t\tparent::__construct();\r\n\t}", "public function __invoke(): Collection|array\n {\n return Survey::all();\n }", "public function collectQuestions()\r\n {\r\n if ($this->questionLoadingFailed()) {\r\n die(\"Question is Not Loaded Error!\");\r\n }\r\n\r\n foreach ($this->questionInfo->items as $question) {\r\n\r\n $questionInfo = $this->getSingleQuestionInfo($question);\r\n\r\n $this->fileContent[] = $this->formatOfQuestion($questionInfo);\r\n }\r\n\r\n return $this;\r\n }", "function getAll() {\r\n\t\treturn SurveyAnswerQuery::create()->find();\r\n\t}", "function getQuestions()\n\t{\n\t\treturn $this->aQuestion;\n\t}", "public function index($survey_id)\n\t{\n\t\t$questions = Survey::find($survey_id)->questions;\n\n\t\treturn Fractal::collection($questions, new QuestionTransformer);\n\t}", "public function get_questions() {\n return $this->questions;\n }", "function answers()\r\n {\r\n $returnArray = array();\r\n $db =& eZDB::globalDatabase();\r\n $db->array_query( $questionArray, \"SELECT ID FROM eZQuiz_Answer WHERE AlternativeID='$this->ID'\" );\r\n\r\n for ( $i = 0; $i < count( $questionArray ); $i++ )\r\n {\r\n $returnArray[$i] = new eZQuizAnswer( $questionArray[$i][$db->fieldName( \"ID\" )], true );\r\n }\r\n return $returnArray;\r\n }", "public function testCreateSurveyQuestion0()\n {\n }", "public function testCreateSurveyQuestion0()\n {\n }", "function survey_data() {\n $surveys = array();\n foreach ( $this->sites as $name => $blog ) {\n $this->println(sprintf(\"Surveying Blog #%s: %s.\", $blog->id, $blog->name));\n $survey = $this->survey_site($blog->id);\n $surveys[$blog->name] = $survey;\n }\n\n // Compile meta survey.\n $posts = array();\n $site_counts = array();\n $meta_survey = array(\n 'posts' => 0,\n 'media-images' => 0,\n 'media-images-sans-alt' => 0,\n 'embedded-images' => 0,\n 'embedded-images-sans-alt' => 0,\n 'embedded-images-sans-media' => 0,\n 'embedded-images-external' => 0\n );\n foreach ( $surveys as $name => $survey ) {\n $posts += $survey['posts'];\n $counts = $survey['counts'];\n $meta_survey['posts'] += $counts['posts'];\n $meta_survey['media-images'] += $counts['media-images'];\n $meta_survey['media-images-sans-alt'] += $counts['media-images-sans-alt'];\n $meta_survey['embedded-images'] += $counts['embedded-images'];\n $meta_survey['embedded-images-sans-alt'] += $counts['embedded-images-sans-alt'];\n $meta_survey['embedded-images-sans-media'] += $counts['embedded-images-sans-media'];\n $site_counts[$name] = $counts;\n }\n\n // Count non-uploaded images\n foreach ( $posts as $post ) {\n $meta_survey['embedded-images-external'] += count($post->external_embedded_images());\n }\n\n $report_f = <<<EOB\nSITES:\n%s\n\nMETA:\n%s\nEOB;\n return sprintf($report_f, print_r($site_counts, 1), print_r($meta_survey, 1));\n }", "public function getQuestions()\n {\n return $this->questions;\n }", "public function getQuestions()\n {\n return $this->questions;\n }", "function surveyQuestion($id = null) {\n $this->autoRender = false; // turn off autoRender because there is no view named surveyQuestion\n $this->layout = 'ajax'; // use the blank ajax layout\n if($this->request->is('ajax')) { // only proceed if this is an ajax request\n if (!$this->request->is('post')) {\n if ($id != null) { // existing question being edited so retrieve it from the session\n if ($this->Session->check('SurveyQuestion.new')) {\n $tempData = $this->Session->read('SurveyQuestion.new');\n $this->set('question_index', $id);\n $question = $tempData[$id];\n $question['Choice']['value'] = $this->Survey->Question->Choice->CombineChoices($question['Choice']);\n $this->request->data['Question'] = $question; // send the existing question to the view\n }\n }\n $this->render('/Elements/question_form');\n } else { // returning with data from the form here\n $tempArr = null;\n if ($this->Session->check('SurveyQuestion.new')) {\n $tempArr = $this->Session->read('SurveyQuestion.new');\n }\n $this->request->data['Question']['Choice'] = $this->Survey->Question->Choice->SplitChoices($this->request->data['Question']['Choice']['value']);\n $this->Survey->Question->set($this->request->data);\n $checkfieldsArr = $this->Survey->Question->schema();\n unset($checkfieldsArr['id']);\n unset($checkfieldsArr['survey_id']);\n unset($checkfieldsArr['order']);\n $checkfields = array_keys($checkfieldsArr);\n if ($this->Survey->Question->validates(array('fieldList' => $checkfields))) {\n if (is_null($id)) {\n $tempArr[] = $this->request->data['Question'];\n } else {\n $tempArr[$id] = $this->request->data['Question'];\n }\n $this->Session->write('SurveyQuestion.new',$tempArr);\n } else {\n $errors = $this->Survey->Question->invalidFields();\n $this->Session->setFlash('Invalid question: '.$errors['question'][0], true, null, 'error');\n }\n $this->set('questions', $tempArr);\n $this->layout = 'ajax';\n $this->render('/Elements/manage_questions');\n }\n }\n }", "public function getQuestions() {\r\n\t\treturn $this->questions;\r\n\t}", "public function initAnswers()\n\t{\n\t\t$this->collAnswers = array();\n\t}", "public function getQuestions() {\r\n\t\t\treturn $this->_arrQuestions;\r\n\t\t}", "public function __construct($answers)\n {\n $this->answers = $answers;\n }", "public function responses()\n {\n return $this->hasMany(SurveyResponse::class, 'visual_question_answer_id');\n }", "public function __construct()\n {\n $this->questions = new ArrayCollection();\n $this->openids = new ArrayCollection();\n $this->createdAt = new \\DateTime();\n }", "public function GetFormPostedValuesQuestions() {\n\t\t/* THE ARRAY OF POSTED FIELDS */\n\t\t$req_fields=array(\"survey_id\",\"question\");\n\n\t\tfor ($i=0;$i<count($req_fields);$i++) {\n\n\t\t\t//echo $_POST['application_id'];\n\t\t\tif (ISSET($_POST[$req_fields[$i]]) && !EMPTY($_POST[$req_fields[$i]])) {\n\t\t\t\t$this->SetVariable($req_fields[$i],EscapeData($_POST[$req_fields[$i]]));\n\t\t\t}\n\t\t\telse {\n\t\t\t\t//echo \"<br>\".$this->req_fields[$i].\"<br>\";\n\t\t\t\t$this->$req_fields[$i]=\"\";\n\t\t\t}\n\t\t}\n\t}", "function ipal_get_questions_student($qid){\r\n\r\n global $ipal;\r\n global $DB;\r\n global $CFG;\r\n\t\t$q='';\r\n\t\t$pagearray2=array();\r\n\t\t\r\n $aquestions=$DB->get_record('question',array('id'=>$qid));\r\n\t\t\tif($aquestions->questiontext != \"\"){ \r\n\r\n\t$pagearray2[]=array('id'=>$qid, 'question'=>$aquestions->questiontext, 'answers'=>ipal_get_answers_student($qid));\r\n\t\t\t\t\t\t\t}\r\n return($pagearray2);\r\n}", "function showQuestions()\n {\n if($this->TotalQuestions > 0)\n {#be certain there are questions\n foreach($this->aQuestion as $question)\n {#print data for each \n\n echo '\n\n <div class=\"panel panel-primary\">\n <div class=\"panel-heading\">\n <h3 class=\"panel-title\">' . $question->Text . '</h3>\n </div>\n <div class=\"panel-body\">\n <p>' . $question->Description . '</p>\n ' . $question->showAnswers() . ' \n </div>\n </div>\n\n ';\n\n }\n }else{\n echo \"There are currently no questions for this survey.\";\t\n } \n\t}", "public function create() {\n\n\n $result[0] = new QuestionAnswerCreator($this->request);\n $result[1] = new SurveyCreator($this->request);\n\n $result[0]->createSurvey();\n $result[1]->createSurvey();\n\n return $result;\n }", "public function set_questions (array $questions) {\n $this->questions = $questions;\n }", "public function get_research_questions()\n\t{\n\t\treturn $this->research_questions;\n\t}", "public function testCreateSurvey0()\n {\n }", "public function testCreateSurvey0()\n {\n }", "public function show(Survey $survey)\n {\n \n }", "public function getSurveys() {\n $surveys = array();\n $jsonData = $this->getDataFromDataFolder();\n foreach($jsonData as $surveyData) {\n $surveys[] = $this->serializer->deserialize(\n json_encode($surveyData->survey), Survey::class, 'json'\n );\n }\n $surveys = array_unique($surveys, SORT_REGULAR);\n return $surveys;\n }", "public static function insertSurvey()\n\t{\n\t\tif(isset($_POST['SurveyID']) && (is_numeric($_POST['SurveyID'])))\n\t\t{//insert response!\n\t\t\t$iConn = IDB::conn();\n\t\t\t// turn off auto-commit\n\t\t\tmysqli_autocommit($iConn, FALSE);\n\t\t\t//insert response\n\t\t\t$sql = sprintf(\"INSERT into \" . PREFIX . \"responses(SurveyID,DateAdded) VALUES ('%d',NOW())\",$_POST['SurveyID']);\n\t\t\t$result = @mysqli_query($iConn,$sql); //moved or die() below!\n\t\t\t\n\t\t\tif(!$result)\n\t\t\t{// if error, roll back transaction\n\t\t\t\tmysqli_rollback($iConn);\n\t\t\t\tdie(trigger_error(\"Error Entering Response: \" . mysqli_error($iConn), E_USER_ERROR));\n\t\t\t} \n\t\t\t\n\t\t\t//retrieve responseid\n\t\t\t$ResponseID = mysqli_insert_id($iConn); //get ID of last record inserted\n\t\t\t\n\t\t\tif(!$result)\n\t\t\t{// if error, roll back transaction\n\t\t\t\tmysqli_rollback($iConn);\n\t\t\t\tdie(trigger_error(\"Error Retrieving ResponseID: \" . mysqli_error($iConn), E_USER_ERROR));\n\t\t\t} \n\t\n\t\t\t//loop through and insert answers\n\t\t\tforeach($_POST as $varName=> $value)\n\t\t\t{//add objects to collection\n\t\t\t\t $qTest = substr($varName,0,2); //check for \"obj_\" added to numeric type\n\t\t\t\t if($qTest==\"q_\")\n\t\t\t\t {//add choice!\n\t\t\t\t \t$QuestionID = substr($varName,2); //identify question\n\t\t\t\t \t\n\t\t\t\t \tif(is_array($_POST[$varName]))\n\t\t\t\t \t{//checkboxes are arrays, and we need to loop through each checked item to insert\n\t\t\t\t\t \twhile (list ($key,$value) = @each($_POST[$varName])){\n\t\t\t\t\t\t \t$sql = \"insert into \" . PREFIX . \"responses_answers(ResponseID,QuestionID,AnswerID) values($ResponseID,$QuestionID,$value)\";\n\t\t\t\t\t \t\t$result = @mysqli_query($iConn,$sql);\n\t\t\t\t\t \t\tif(!$result)\n\t\t\t\t\t\t\t{// if error, roll back transaction\n\t\t\t\t\t\t\t\tmysqli_rollback($iConn);\n\t\t\t\t\t\t\t\tdie(trigger_error(\"Error Inserting Choice (array/checkbox): \" . mysqli_error($iConn), E_USER_ERROR));\n\t\t\t\t\t\t\t} \n\t\t\t\t\t\t}\n\t\t\t \t\t}else{//not an array, so likely radio or select\n\t\t\t\t \t\t$sql = \"insert into \" . PREFIX . \"responses_answers(ResponseID,QuestionID,AnswerID) values($ResponseID,$QuestionID,$value)\";\n\t\t\t\t \t $result = @mysqli_query($iConn,$sql);\n\t\t\t\t \t if(!$result)\n\t\t\t\t\t\t{// if error, roll back transaction\n\t\t\t\t\t\t\tmysqli_rollback($iConn);\n\t\t\t\t\t\t\tdie(trigger_error(\"Error Inserting Choice (single/radio): \" . mysqli_error($iConn), E_USER_ERROR));\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//we got this far, lets COMMIT!\n\t\t\tmysqli_commit($iConn);\n\t\t\t\n\t\t\t// our transaction is over, turn autocommit back on\n\t\t\tmysqli_autocommit($iConn, TRUE);\n\t\t\t\n\t\t\t//count total responses, update TotalResponses\n\t\t\tself::responseCount((int)$_POST['SurveyID']); //convert to int on way in!\n\t\t\treturn TRUE; #\n\t\t}else{\n\t\t\treturn FALSE;\t\n\t\t}\n\n\t}", "public function index(){\n return new QuestionCollection(Question::all());\n }", "public static function getAllQuestionsAndAnswers(){\n $returnArray = array(\n 'Result' => 1,\n 'Reason' => \"\",\n 'QuestionResponses' => array()\n );\n\n $questionObjects = question::getAllQuestions();\n\n if(count($questionObjects) > 0){\n $responsesArray = self::buildQuestionsAndAnswersArray_Admin($questionObjects);\n $returnArray['QuestionResponses'] = $responsesArray;\n }\n else{\n $returnArray['Result'] = 0;\n $returnArray['Reason'] = \"No questions were found\";\n }\n\n return $returnArray;\n }", "public function &getSurveyQuestions($with_answers = false)\n\t{\n\t\tglobal $ilDB;\n\t\t$obligatory_states =& $this->getObligatoryStates();\n\t\t// get questionblocks\n\t\t$all_questions = array();\n\t\t$result = $ilDB->queryF(\"SELECT svy_qtype.type_tag, svy_qtype.plugin, svy_question.question_id, \".\n\t\t\t\"svy_svy_qst.heading FROM svy_qtype, svy_question, svy_svy_qst WHERE svy_svy_qst.survey_fi = %s AND \" .\n\t\t\t\"svy_svy_qst.question_fi = svy_question.question_id AND svy_question.questiontype_fi = svy_qtype.questiontype_id \" .\n\t\t\t\"ORDER BY svy_svy_qst.sequence\",\n\t\t\tarray('integer'),\n\t\t\tarray($this->getSurveyId())\n\t\t);\n\t\tinclude_once \"./Modules/SurveyQuestionPool/classes/class.SurveyQuestion.php\";\n\t\twhile ($row = $ilDB->fetchAssoc($result))\n\t\t{\n\t\t\t$add = true;\n\t\t\tif ($row[\"plugin\"])\n\t\t\t{\n\t\t\t\tif (!$this->isPluginActive($row[\"type_tag\"]))\n\t\t\t\t{\n\t\t\t\t\t$add = false;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($add)\n\t\t\t{\n\t\t\t\t$question =& $this->_instanciateQuestion($row[\"question_id\"]);\n\t\t\t\t$questionrow = $question->_getQuestionDataArray($row[\"question_id\"]);\n\t\t\t\tforeach ($row as $key => $value)\n\t\t\t\t{\n\t\t\t\t\t$questionrow[$key] = $value;\n\t\t\t\t}\n\t\t\t\t$all_questions[$row[\"question_id\"]] = $questionrow;\n\t\t\t\t$all_questions[$row[\"question_id\"]][\"usableForPrecondition\"] = $question->usableForPrecondition();\n\t\t\t\t$all_questions[$row[\"question_id\"]][\"availableRelations\"] = $question->getAvailableRelations();\n\t\t\t\tif (array_key_exists($row[\"question_id\"], $obligatory_states))\n\t\t\t\t{\n\t\t\t\t\t$all_questions[$row[\"question_id\"]][\"obligatory\"] = $obligatory_states[$row[\"question_id\"]];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// get all questionblocks\n\t\t$questionblocks = array();\n\t\tif (count($all_questions))\n\t\t{\n\t\t\t$result = $ilDB->queryF(\"SELECT svy_qblk.*, svy_qblk_qst.question_fi FROM svy_qblk, svy_qblk_qst WHERE \" .\n\t\t\t\t\"svy_qblk.questionblock_id = svy_qblk_qst.questionblock_fi AND svy_qblk_qst.survey_fi = %s \" .\n\t\t\t\t\"AND \" . $ilDB->in('svy_qblk_qst.question_fi', array_keys($all_questions), false, 'integer'),\n\t\t\t\tarray('integer'),\n\t\t\t\tarray($this->getSurveyId())\n\t\t\t);\n\t\t\twhile ($row = $ilDB->fetchAssoc($result))\n\t\t\t{\n\t\t\t\t$questionblocks[$row['question_fi']] = $row;\n\t\t\t}\n\t\t}\n\t\t\n\t\tforeach ($all_questions as $question_id => $row)\n\t\t{\n\t\t\t$constraints = $this->getConstraints($question_id);\n\t\t\tif (isset($questionblocks[$question_id]))\n\t\t\t{\n\t\t\t\t$all_questions[$question_id][\"questionblock_title\"] = $questionblocks[$question_id]['title'];\n\t\t\t\t$all_questions[$question_id][\"questionblock_id\"] = $questionblocks[$question_id]['questionblock_id'];\n\t\t\t\t$all_questions[$question_id][\"constraints\"] = $constraints;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$all_questions[$question_id][\"questionblock_title\"] = \"\";\n\t\t\t\t$all_questions[$question_id][\"questionblock_id\"] = \"\";\n\t\t\t\t$all_questions[$question_id][\"constraints\"] = $constraints;\n\t\t\t}\n\t\t\tif ($with_answers)\n\t\t\t{\n\t\t\t\t$answers = array();\n\t\t\t\t$result = $ilDB->queryF(\"SELECT svy_variable.*, svy_category.title FROM svy_variable, svy_category \" .\n\t\t\t\t\t\"WHERE svy_variable.question_fi = %s AND svy_variable.category_fi = svy_category.category_id \".\n\t\t\t\t\t\"ORDER BY sequence ASC\",\n\t\t\t\t\tarray('integer'),\n\t\t\t\t\tarray($question_id)\n\t\t\t\t);\n\t\t\t\tif ($result->numRows() > 0) \n\t\t\t\t{\n\t\t\t\t\twhile ($data = $ilDB->fetchAssoc($result)) \n\t\t\t\t\t{\n\t\t\t\t\t\tarray_push($answers, $data[\"title\"]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t$all_questions[$question_id][\"answers\"] = $answers;\n\t\t\t}\n\t\t}\n\t\treturn $all_questions;\n\t}", "private function _Questions ( ) {\n\t\t$Config = $this->Get ( 'Config' );\n\t\t$quests = $Config['questions'];\n\t\t$groups = $Config['question_groups'];\n\t\tforeach ( $groups as $g => $group ) {\n\t\t\t$Groups[$group] = new stdClass();\n\t\t\t$Groups[$group]->Label = $Config['question_group_labels'][$g];\n\t\t\tforeach ( $quests as $q => $quest ) {\n\t\t\t\tif ( $Config['question_group'][$q] != $g ) continue;\n\t\t\t\t$Groups[$group]->Questions[$quest] = new stdClass();\n\t\t\t\t$Groups[$group]->Questions[$quest]->Label = $Config['question_labels'][$q];\n\t\t\t\t$Groups[$group]->Questions[$quest]->Type = $Config['question_types'][$q];\n\t\t\t\t$Groups[$group]->Questions[$quest]->Field = $Config['question_fields'][$q];\n\t\t\t\t$Groups[$group]->Questions[$quest]->Social = $Config['question_social'][$q];\n\t\t\t\t$Groups[$group]->Questions[$quest]->Display = $Config['question_display'][$q];\n\t\t\t\tif ( $Config['question_options'][$q] )\n\t\t\t\t\t$Groups[$group]->Questions[$quest]->Options = explode ( '|', $Config['question_options'][$q] );\n\t\t\t}\n\t\t\tksort ( $Groups[$group]->Questions );\n\t\t}\n\t\tksort ( $Groups );\n\t\treturn ( $Groups );\n\t}", "public function initQuestionComments()\n\t{\n\t\t$this->collQuestionComments = array();\n\t}", "private function generate_question() {\n\n require_once(__DIR__ . '/csv_gd.class.php');\n $csv_filename = $this->configuration['base_data_dir'] . '/csv/' . $this->configuration['csv_input'];\n\n $data_quiz_src_obj = new csv_gd($csv_filename);\n $data_quiz_src_orig = $data_quiz_src_obj->csv_to_array();\n\n\n\n // filter unwanted question (tags, diff level, void )\n $data_quiz_src_filtered = $this->quiz_filter($data_quiz_src_orig, $this->configuration['tags'], $this->configuration['min_diffucult_level'], $this->configuration['max_diffucult_level']);\n\n\n // reverse question with_answer\n if ($this->configuration['reverse_question'] == TRUE) {\n $data_quiz_src_filtered = $this->quiz_switch_question_with_answer($data_quiz_src_filtered);\n }\n\n\n // generate question and answer\n $data_quiz_src = $this->quiz_generate($data_quiz_src_filtered);\n\n\n // randomize quiz \n if ($this->configuration['randomize_question'] == TRUE) {\n shuffle($data_quiz_src);\n }\n\n\n // restrict the maxium number of question\n if ($this->configuration['max_question_total'] > 0) {\n $this->configuration['max_question_total'] = min(count($data_quiz_src), $this->configuration['max_question_total']);\n } else {\n $this->configuration['max_question_total'] = count($data_quiz_src);\n }\n $this->question = array_slice($data_quiz_src, 0, $this->configuration['max_question_total']);\n\n $this->configuration['debug']=$this->debug;\n\n // return $this->quiz_questions;\n }", "public function getSurveys() {\n return $this->_request(\n \"surveys/\"\n );\n }", "public function getAnswers();", "function ipal_get_questions(){ \r\n \r\n\tglobal $ipal;\r\n\tglobal $DB;\r\n\tglobal $CFG;\r\n\t$q='';\t\r\n\t$pagearray2=array();\r\n\t // is there an quiz associated with an ipal?\r\n//\t$ipal_quiz=$DB->get_record('ipal_quiz',array('ipal_id'=>$ipal->id));\r\n\t\r\n\t// get quiz and put it into an array\r\n\t$quiz=$DB->get_record('ipal',array('id'=>$ipal->id));\r\n\t\r\n\t//Get the question ids\r\n\t$questions=explode(\",\",$quiz->questions);\r\n\t\r\n\t//get the questions and stuff them into an array\r\n\t\tforeach($questions as $q){\t\r\n\t\t\t\r\n\t\t $aquestions=$DB->get_record('question',array('id'=>$q));\r\n\t\t if(isset($aquestions->questiontext)){\r\n\t\t $pagearray2[]=array('id'=>$q, 'question'=>strip_tags($aquestions->questiontext), 'answers'=>ipal_get_answers($q));\r\n\t\t\t\t \r\n\t\t }\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t}\r\n \r\n\treturn($pagearray2);\r\n\t}", "public function initQuestionOffensives()\n\t{\n\t\t$this->collQuestionOffensives = array();\n\t}", "public function questions()\n {\n \treturn $this->hasMany(Question::class);\n }", "public function questions()\n {\n return $this->hasMany(Question::class);\n }", "public function questions()\n {\n return $this->hasMany(Question::class);\n }", "public function questions()\n {\n\n $client = new \\GuzzleHttp\\Client();\n\n $request = $client->get('http://localhost/quizci/questions');\n $response = $request->getBody()->getContents();\n\n $res_json_decode = json_decode($response);\n $data_collection = collect($res_json_decode->questions);\n //dd($data_collect);\n\n return View('admin.pages.questions', compact('data_collection'));\n }", "public function setQuestions(array $questions)\n {\n $this->questions = $questions;\n }", "public function questions()\n {\n return $this->hasMany(\\App\\Question::class);\n }", "public function __construct(\n\t\t$title = \"\",\n\t\t$comment = \"\",\n\t\t$author = \"\",\n\t\t$owner = -1,\n\t\t$question = \"\"\n\t)\n\t{\n\t\tparent::__construct($title, $comment, $author, $owner, $question);\n\t\t$this->answers = array();\n\t\t$this->correctanswers = 0;\n\t}", "public function __construct($studentcounter,$questions)\n {\n parent::__construct('Marks');\n\t\n $this->setAttribute('method', 'post')\n ->setHydrator(new ClassMethodsHydrator(false))\n ->setInputFilter(new InputFilter());\n foreach($questions as $question){\n $this->add(array(\n 'type' => 'Zend\\Form\\Element\\Collection',\n 'name' => $question->getPkQid(),\n 'options' => array(\n 'count' => $studentcounter,\n 'should_create_template' => true,\n 'template_placeholder' => '__mark__',\n 'target_element' => new \\Application\\Form\\Fieldset\\FsAssessmentmark()\n )\n ));\n }\n \n }", "public function run()\n {\n $survey = \\App\\Models\\Survey::create([\n 'availability' => true,\n 'camunda_identifier' => 'survey_001',\n 'title' => 'Diabetes Quality of Life',\n 'description' => 'Diabetes Quality of Life survey captures your satisfaction, impact and worry related to living with the diagnosis of diabetes (Type 1 or 2).',\n 'explanation' => 'Please rate your answers from 1 (least impact on you) to 5 (highest impact on you). Please choose only one response for each question.',\n ]);\n\n \\App\\Models\\Question::create([\n 'survey_id' => $survey->id,\n 'type' => 'satisfaction_01',\n 'text' => 'How satisfied are you with the amount of time it takes to manage your diabetes?',\n ]);\n\n \\App\\Models\\Question::create([\n 'survey_id' => $survey->id,\n 'type' => 'satisfaction_02',\n 'text' => 'How satisfied are you with the amount of time you spend getting checkups?',\n ]);\n\n \\App\\Models\\Question::create([\n 'survey_id' => $survey->id,\n 'type' => 'satisfaction_03',\n 'text' => 'How satisfied are you with the time it takes to determine your sugar level?',\n ]);\n\n \\App\\Models\\Question::create([\n 'survey_id' => $survey->id,\n 'type' => 'satisfaction_04',\n 'text' => 'How satisfied are you with your current treatment?',\n ]);\n\n \\App\\Models\\Question::create([\n 'survey_id' => $survey->id,\n 'type' => 'satisfaction_05',\n 'text' => 'How satisfied are you with your knowledge about your diabetes?',\n ]);\n\n \\App\\Models\\Question::create([\n 'survey_id' => $survey->id,\n 'type' => 'satisfaction_06',\n 'text' => 'How satisfied are you with life in general?',\n ]);\n\n\n \\App\\Models\\Question::create([\n 'survey_id' => $survey->id,\n 'type' => 'impact_01',\n 'text' => 'How often do you feel pain associated with the treatment for your diabetes?',\n ]);\n\n \\App\\Models\\Question::create([\n 'survey_id' => $survey->id,\n 'type' => 'impact_02',\n 'text' => 'How often do you feel physically ill?',\n ]);\n\n \\App\\Models\\Question::create([\n 'survey_id' => $survey->id,\n 'type' => 'impact_03',\n 'text' => 'How often does your diabetes interfere with your family life?',\n ]);\n \\App\\Models\\Question::create([\n 'survey_id' => $survey->id,\n 'type' => 'impact_04',\n 'text' => 'How often do you find your diabetes limiting your social relationships and friendships?',\n ]);\n\n \\App\\Models\\Question::create([\n 'survey_id' => $survey->id,\n 'type' => 'impact_05',\n 'text' => 'How often do you find your diabetes limiting your sexual life?',\n ]);\n \\App\\Models\\Question::create([\n 'survey_id' => $survey->id,\n 'type' => 'impact_06',\n 'text' => 'How often do you find your diabetes limiting your life plans such as employment, education or training?',\n ]);\n\n \\App\\Models\\Question::create([\n 'survey_id' => $survey->id,\n 'type' => 'impact_07',\n 'text' => 'How often do you find your diabetes limiting your leisure activities or travels?',\n ]);\n\n \\App\\Models\\Question::create([\n 'survey_id' => $survey->id,\n 'type' => 'worry_01',\n 'text' => 'How often do you worry about whether you will pass out?',\n ]);\n\n \\App\\Models\\Question::create([\n 'survey_id' => $survey->id,\n 'type' => 'worry_02',\n 'text' => 'How often do you worry that your body looks different because you have diabetes?',\n ]);\n\n \\App\\Models\\Question::create([\n 'survey_id' => $survey->id,\n 'type' => 'worry_03',\n 'text' => 'How often do your worry that you will get complications from your diabetes?',\n ]);\n\n\n $questions = \\App\\Models\\Question::where('survey_id', $survey->id)->get();\n\n foreach ($questions as $question) {\n $index = 0;\n\n while ($index <= 4) {\n $index++;\n \\App\\Models\\Answer::create([\n 'question_id' => $question->id,\n 'text' => $index,\n 'value' => $index,\n ]);\n }\n }\n }", "public function __construct($name = null)\n {\n parent::__construct('survey');\n\n $this->add([\n 'name' => 'idsurvey',\n 'type' => 'hidden',\n ]);\n\n $this->add([\n 'name' => 'iduser',\n 'type' => 'hidden',\n ]);\n\n $this->add([\n 'name' => 'idquestion',\n 'type' => 'hidden',\n ]);\n\n $this->add([\n 'name' => 'idanswer',\n 'type' => 'hidden',\n ]);\n\n $this->add([\n 'name' => 'title',\n 'type' => 'text',\n 'options' => [\n 'label' => 'Title',\n ],\n ]);\n\n $this->add([\n 'name' => 'description',\n 'type' => 'text',\n 'options' => [\n 'label' => 'Description',\n ],\n ]);\n $this->add([\n 'name' => 'status',\n 'type' => 'hidden',\n ]);\n\n $this->add([\n 'name' => 'date',\n 'type' => 'hidden'\n ]);\n\n $this->add([\n 'name' => 'submit',\n 'type' => 'submit',\n 'attributes' => [\n 'value' => 'Go',\n 'id' => 'submitbutton',\n ],\n ]);\n\n $this->add([\n 'name' => 'submitq',\n 'type' => 'submit',\n 'attributes' => [\n 'value' => 'Go',\n 'id' => 'submitbutton',\n ],\n ]);\n\n $this->add([\n 'name' => 'submita',\n 'type' => 'submit',\n 'attributes' => [\n 'value' => 'Go',\n 'id' => 'submitbutton',\n ],\n ]);\n\n\n $this->add([\n 'name' => 'submitc',\n 'type' => 'submit',\n 'attributes' => [\n 'value' => 'Go',\n 'id' => 'submitbutton',\n ],\n ]);\n\n $this->add([\n 'name' => 'submituq', //update question\n 'type' => 'submit',\n 'attributes' => [\n 'value' => 'Go',\n 'id' => 'submitbutton',\n ],\n ]);\n\n $this->add([\n 'name' => 'submitua',\n 'type' => 'submit',\n 'attributes' => [\n 'value' => 'Go',\n 'id' => 'submitbutton',\n ],\n ]);\n $this->add([\n 'name' => 'text',\n 'type' => 'text',\n 'options' => [\n 'label' => 'Question',\n ],\n ]);\n\n $this->add([\n 'name' => 'type',\n 'type' => 'text',\n 'options' => [\n 'label' => 'Type',\n 'value_options' => array(\n '0' => 'Open',\n '1' => 'Multiple choice',\n '2' => 'Single Choice',\n ),\n ],\n ]);\n\n $this->add([\n 'name' => 'texta',\n 'type' => 'text',\n 'options' => [\n 'label' => 'Answer',\n ],\n ]);\n }", "public function survey()\n {\n \treturn $this->hasOne('Asabanovic\\Surveys\\Model\\Survey');\n }", "function &_getGlobalSurveyData($obj_id)\n\t{\n\t\t$survey = new ilObjSurvey($obj_id, false);\n\t\t$survey->loadFromDb();\n\t\t$result = array();\n\t\tif (($survey->getTitle()) and ($survey->author) and (count($survey->questions)))\n\t\t{\n\t\t\t$result[\"complete\"] = true;\n\t\t} \n\t\t\telse \n\t\t{\n\t\t\t$result[\"complete\"] = false;\n\t\t}\n\t\t$result[\"evaluation_access\"] = $survey->getEvaluationAccess();\n\t\treturn $result;\n\t}", "public function questions()\n {\n return $this->hasMany('App\\Question');\n }", "public function questions()\n {\n return $this->hasMany('App\\Question');\n }", "public function run()\n {\n DB::table('survey_questions')->insert([\n [\n 'parent_id' => null,\n 'survey_id' => 1,\n 'type' => 'heading',\n 'other' => false,\n 'other_label' => null,\n 'text' => 'Informatie over de patiënt:',\n 'required' => true,\n 'options' => null,\n 'created_at' => new \\Carbon\\Carbon(),\n 'updated_at' => new \\Carbon\\Carbon(),\n ],\n [\n 'parent_id' => null,\n 'survey_id' => 1,\n 'type' => 'text',\n 'other' => false,\n 'other_label' => null,\n 'text' => 'Leeftijd:',\n 'required' => true,\n 'options' => null,\n 'created_at' => new \\Carbon\\Carbon(),\n 'updated_at' => new \\Carbon\\Carbon(),\n ],\n [\n 'parent_id' => null,\n 'survey_id' => 1,\n 'type' => 'textarea',\n 'other' => false,\n 'other_label' => null,\n 'text' => 'Onderliggend lijden welk invloed kan hebben op de wondgenezing: (indien niet aanwezig gelieve n.v.t te vermelden).',\n 'required' => true,\n 'options' => null,\n 'created_at' => new \\Carbon\\Carbon(),\n 'updated_at' => new \\Carbon\\Carbon(),\n ],\n [\n 'parent_id' => null,\n 'survey_id' => 1,\n 'type' => 'heading',\n 'other' => false,\n 'other_label' => null,\n 'text' => 'Informatie over de wond',\n 'required' => true,\n 'options' => null,\n 'created_at' => new \\Carbon\\Carbon(),\n 'updated_at' => new \\Carbon\\Carbon(),\n ],\n [\n 'parent_id' => null,\n 'survey_id' => 1,\n 'type' => 'radio',\n 'other' => false,\n 'other_label' => null,\n 'text' => null,\n 'required' => true,\n 'options' => json_encode(['Nieuwe wond', 'Bestaande wond']),\n 'created_at' => new \\Carbon\\Carbon(),\n 'updated_at' => new \\Carbon\\Carbon(),\n ],\n [\n 'parent_id' => null,\n 'survey_id' => 1,\n 'type' => 'text',\n 'other' => false,\n 'other_label' => null,\n 'text' => 'Sinds wanneer?',\n 'required' => true,\n 'options' => null,\n 'created_at' => new \\Carbon\\Carbon(),\n 'updated_at' => new \\Carbon\\Carbon(),\n ],\n [\n 'parent_id' => 6,\n 'survey_id' => 1,\n 'type' => 'radio',\n 'other' => false,\n 'other_label' => null,\n 'text' => null,\n 'required' => true,\n 'options' => json_encode(['dag(en)', 'week/weken']),\n 'created_at' => new \\Carbon\\Carbon(),\n 'updated_at' => new \\Carbon\\Carbon(),\n ],\n [\n 'parent_id' => null,\n 'survey_id' => 1,\n 'type' => 'checkbox',\n 'other' => false,\n 'other_label' => null,\n 'text' => 'Welke verband is het meest recentelijk op deze wond aangebracht?',\n 'required' => true,\n 'options' => json_encode([\n ['Fiberverbanden met hoog absorptievermogen of alginaten, gelieve de naam van het product te vermelden:'],\n ['Schuimverband, gelieve de naam van het product te vermelden:'],\n ['Zilververband, gelieve de naam van het product te vermelden:'],\n ['Superabsorberend, gelieve de naam van het product te vermelden:'],\n ['Hydrocolloïde, gelieve de naam van het product te vermelden:'],\n ['Ander(e) type(n), gelieve de naam van het product te vermelden:'],\n 'Geen',\n ]),\n 'created_at' => new \\Carbon\\Carbon(),\n 'updated_at' => new \\Carbon\\Carbon(),\n ],\n [\n 'parent_id' => null,\n 'survey_id' => 1,\n 'type' => 'radio',\n 'other' => false,\n 'other_label' => null,\n 'text' => 'Type wond:',\n 'required' => true,\n 'options' => json_encode([\n 'Acute wond',\n 'Chronische wond',\n ]),\n 'created_at' => new \\Carbon\\Carbon(),\n 'updated_at' => new \\Carbon\\Carbon(),\n ],\n [\n 'parent_id' => null,\n 'survey_id' => 1,\n 'type' => 'radio',\n 'other' => false,\n 'other_label' => null,\n 'text' => 'Geïnfecteerd?',\n 'required' => true,\n 'options' => json_encode([\n 'Ja',\n 'Nee',\n ]),\n 'created_at' => new \\Carbon\\Carbon(),\n 'updated_at' => new \\Carbon\\Carbon(),\n ],\n [\n 'parent_id' => null,\n 'survey_id' => 1,\n 'type' => 'checkbox',\n 'other' => true,\n 'other_label' => 'Andere acute wond, namelijk:',\n 'text' => '(Indien acute wond aangevinkt) het gaat in het bijzonder om een …',\n 'required' => true,\n 'options' => json_encode([\n 'Traumatische wond (oppervlakkige schaafwond, laceratie, flyctenen, oppervlakkige snijwonden en huidscheuren)',\n 'Tweedegraads brandwond',\n 'Dermabrasie / Ontvelling',\n 'Chirurgische wond',\n ]),\n 'created_at' => new \\Carbon\\Carbon(),\n 'updated_at' => new \\Carbon\\Carbon(),\n ],\n [\n 'parent_id' => null,\n 'survey_id' => 1,\n 'type' => 'checkbox',\n 'other' => true,\n 'other_label' => 'Andere chronische wond, namelijk',\n 'text' => '(Indien chronische wond aangevinkt) het gaat in het bijzonder om een …',\n 'required' => true,\n 'options' => json_encode([\n 'Decubitus wond',\n 'Ulcus Cruris beenwond',\n 'Diabetische voetwond',\n ]),\n 'created_at' => new \\Carbon\\Carbon(),\n 'updated_at' => new \\Carbon\\Carbon(),\n ],\n [\n 'parent_id' => null,\n 'survey_id' => 1,\n 'type' => 'checkbox',\n 'other' => false,\n 'other_label' => null,\n 'text' => 'Wat is de hoeveelheid wondvocht?',\n 'required' => true,\n 'options' => json_encode([\n 'Droog',\n 'Vochtig',\n 'Nat',\n ]),\n 'created_at' => new \\Carbon\\Carbon(),\n 'updated_at' => new \\Carbon\\Carbon(),\n ],\n [\n 'parent_id' => null,\n 'survey_id' => 1,\n 'type' => 'text',\n 'other' => false,\n 'other_label' => null,\n 'text' => 'Locatie van het wondbed',\n 'required' => true,\n 'options' => null,\n 'created_at' => new \\Carbon\\Carbon(),\n 'updated_at' => new \\Carbon\\Carbon(),\n ],\n [\n 'parent_id' => 14,\n 'survey_id' => 1,\n 'type' => 'text',\n 'other' => false,\n 'other_label' => null,\n 'text' => '% Necrotisch (zwart)',\n 'required' => true,\n 'options' => null,\n 'created_at' => new \\Carbon\\Carbon(),\n 'updated_at' => new \\Carbon\\Carbon(),\n ],\n [\n 'parent_id' => 14,\n 'survey_id' => 1,\n 'type' => 'text',\n 'other' => false,\n 'other_label' => null,\n 'text' => '% Granulerend (rood)',\n 'required' => true,\n 'options' => null,\n 'created_at' => new \\Carbon\\Carbon(),\n 'updated_at' => new \\Carbon\\Carbon(),\n ],\n [\n 'parent_id' => 14,\n 'survey_id' => 1,\n 'type' => 'text',\n 'other' => false,\n 'other_label' => null,\n 'text' => '% Beslag (geel)',\n 'required' => true,\n 'options' => null,\n 'created_at' => new \\Carbon\\Carbon(),\n 'updated_at' => new \\Carbon\\Carbon(),\n ],\n [\n 'parent_id' => 14,\n 'survey_id' => 1,\n 'type' => 'text',\n 'other' => false,\n 'other_label' => null,\n 'text' => 'Anders, namelijk',\n 'required' => false,\n 'options' => null,\n 'created_at' => new \\Carbon\\Carbon(),\n 'updated_at' => new \\Carbon\\Carbon(),\n ],\n [\n 'parent_id' => null,\n 'survey_id' => 1,\n 'type' => 'checkbox',\n 'other' => true,\n 'other_label' => null,\n 'text' => 'Toestand van de huid rondom de wond:',\n 'required' => true,\n 'options' => json_encode([\n 'Gezond',\n 'Geïrriteerd/rood',\n 'Droog/eczematisch',\n 'Gemacereerd',\n ]),\n 'created_at' => new \\Carbon\\Carbon(),\n 'updated_at' => new \\Carbon\\Carbon(),\n ],\n [\n 'parent_id' => null,\n 'survey_id' => 1,\n 'type' => 'heading',\n 'other' => false,\n 'other_label' => null,\n 'text' => 'D0 – 1e toepassing van AQUACEL Foam of Foam Lite™ ConvaTec:',\n 'required' => true,\n 'options' => null,\n 'created_at' => new \\Carbon\\Carbon(),\n 'updated_at' => new \\Carbon\\Carbon(),\n ],\n [\n 'parent_id' => null,\n 'survey_id' => 1,\n 'type' => 'date',\n 'other' => false,\n 'other_label' => null,\n 'text' => 'Datum (D0):',\n 'required' => true,\n 'options' => null,\n 'created_at' => new \\Carbon\\Carbon(),\n 'updated_at' => new \\Carbon\\Carbon(),\n ],\n [\n 'parent_id' => null,\n 'survey_id' => 1,\n 'type' => 'checkbox',\n 'other' => false,\n 'other_label' => null,\n 'text' => 'Type verband:',\n 'required' => true,\n 'options' => json_encode([\n 'AQUACEL Foam',\n 'AQUACEL Ag Foam',\n 'Foam Lite ConvaTec',\n ]),\n 'created_at' => new \\Carbon\\Carbon(),\n 'updated_at' => new \\Carbon\\Carbon(),\n ],\n [\n 'parent_id' => null,\n 'survey_id' => 1,\n 'type' => 'label',\n 'other' => false,\n 'other_label' => null,\n 'text' => 'Afmeting verbandkeuze:',\n 'required' => true,\n 'options' => null,\n 'created_at' => new \\Carbon\\Carbon(),\n 'updated_at' => new \\Carbon\\Carbon(),\n ],\n\n [\n 'parent_id' => null,\n 'survey_id' => 1,\n 'type' => 'checkbox',\n 'other' => false,\n 'other_label' => null,\n 'text' => 'AQUACEL Foam – plakkend',\n 'required' => true,\n 'options' => json_encode([\n '8 x 8 cm',\n '10 x 10 cm',\n '12,5 x 12,5 cm',\n '17,5 x 17,5 cm',\n '21 x 21 cm',\n '25 x 30 cm',\n '8 x 13 cm',\n '10 x 20 cm',\n '10 x 25 cm',\n '10 x 30 cm',\n '19,8 x 14 cm',\n '20 x 16,9 cm',\n ]),\n 'created_at' => new \\Carbon\\Carbon(),\n 'updated_at' => new \\Carbon\\Carbon(),\n ],\n [\n 'parent_id' => null,\n 'survey_id' => 1,\n 'type' => 'checkbox',\n 'other' => false,\n 'other_label' => null,\n 'text' => 'AQUACEL Foam - zonder kleefrand',\n 'required' => true,\n 'options' => json_encode([\n '5 x 5 cm',\n '10 x 10 cm',\n '15 x 15 cm',\n '10 x 20 cm',\n '15 x 20 cm',\n '20 x 20 cm',\n ]),\n 'created_at' => new \\Carbon\\Carbon(),\n 'updated_at' => new \\Carbon\\Carbon(),\n ],\n\n [\n 'parent_id' => null,\n 'survey_id' => 1,\n 'type' => 'checkbox',\n 'other' => false,\n 'other_label' => null,\n 'text' => 'AQUACEL Foam – anatomische vormen',\n 'required' => true,\n 'options' => json_encode([\n 'Allround 19,8 x 14 cm',\n 'Sacrum 20 x 16,9 cm',\n ]),\n 'created_at' => new \\Carbon\\Carbon(),\n 'updated_at' => new \\Carbon\\Carbon(),\n ],\n [\n 'parent_id' => null,\n 'survey_id' => 1,\n 'type' => 'checkbox',\n 'other' => false,\n 'other_label' => null,\n 'text' => 'Foam Lite™ ConvaTec',\n 'required' => true,\n 'options' => json_encode([\n '5 x 5 cm',\n '8 x 8 cm',\n '10 x 10 cm',\n '10 x 20 cm',\n '15 x 15 cm',\n '5,5 x 12 cm',\n ]),\n 'created_at' => new \\Carbon\\Carbon(),\n 'updated_at' => new \\Carbon\\Carbon(),\n ],\n [\n 'parent_id' => null,\n 'survey_id' => 1,\n 'type' => 'checkbox',\n 'other' => true,\n 'other_label' => 'Secundair verband, gelieve het primaire verband te vermelden:',\n 'text' => 'Op welke wijze gebruikt u het gekozen verband?',\n 'required' => true,\n 'options' => json_encode([\n 'Primair verband',\n ]),\n 'created_at' => new \\Carbon\\Carbon(),\n 'updated_at' => new \\Carbon\\Carbon(),\n ],\n [\n 'parent_id' => null,\n 'survey_id' => 1,\n 'type' => 'checkbox',\n 'other' => true,\n 'other_label' => null,\n 'text' => 'Waarom heeft u voor dit specifieke verband gekozen? (Meerdere antwoorden zijn mogelijk)',\n 'required' => true,\n 'options' => json_encode([\n 'Vormbaar, zacht, comfortabel voor de patiënt',\n 'Vochtig wondmilieu met Hydrofiber',\n 'Bescherming van de wondranden (verticale absorptie)',\n 'Vasthouden van wondvocht en bacteriën (retentie)',\n 'Verbetering/ verkleining van de wond',\n 'Minder verbandwissels en/of draagtijd verlengd',\n 'Eenvoudig te gebruiken',\n 'Goede kennis van en ervaringen met schuimverbanden',\n 'Goede kennis van en ervaringen met Hydrofiber-verbanden',\n 'Type wond en hoeveelheid wondvocht',\n 'Fase van de wond',\n 'Locatie van de wond',\n ]),\n 'created_at' => new \\Carbon\\Carbon(),\n 'updated_at' => new \\Carbon\\Carbon(),\n ],\n [\n 'parent_id' => null,\n 'survey_id' => 1,\n 'type' => 'checkbox',\n 'other' => true,\n 'other_label' => null,\n 'text' => 'Hoe ervaart u het aanbrengen van het verband?',\n 'required' => true,\n 'options' => json_encode([\n 'Gemakkelijk',\n ['Redelijk gemakkelijk (omschrijf)'],\n ['Niet gemakkelijk (omschrijf)'],\n ]),\n 'created_at' => new \\Carbon\\Carbon(),\n 'updated_at' => new \\Carbon\\Carbon(),\n ],\n [\n 'parent_id' => null,\n 'survey_id' => 1,\n 'type' => 'radio',\n 'other' => false,\n 'other_label' => null,\n 'text' => 'Kleeft het verband bij het aanbrengen aan de handschoenen of aan zichzelf?',\n 'required' => true,\n 'options' => json_encode([\n 'Ja',\n 'Nee',\n ]),\n 'created_at' => new \\Carbon\\Carbon(),\n 'updated_at' => new \\Carbon\\Carbon(),\n ],\n [\n 'parent_id' => null,\n 'survey_id' => 1,\n 'type' => 'radio',\n 'other' => false,\n 'other_label' => null,\n 'text' => 'Zo ja, is het herpositioneerbaar?',\n 'required' => true,\n 'options' => json_encode([\n 'Ja',\n 'Nee',\n ]),\n 'created_at' => new \\Carbon\\Carbon(),\n 'updated_at' => new \\Carbon\\Carbon(),\n ],\n ]);\n }", "function get_survey_questions($survey_id) {\r\n // set connection var\r\n global $db;\r\n\r\n //query to get all associated survey answers\r\n $sql = \"SELECT id\r\n FROM questions\r\n WHERE is_active = '1' AND survey = '$survey_id';\";\r\n\r\n $questions_data = array();\r\n $questions = array();\r\n foreach ($db->query($sql) as $key => $value) {\r\n $questions_data[$key] = $value;\r\n foreach ($questions_data[$key] as $subkey => $subvalue) {\r\n if (is_int($subkey)) {\r\n $questions[] = $subvalue;\r\n }\r\n }\r\n }\r\n\r\n return $questions;\r\n}", "public function get_survey()\n {\n // check the primary key value\n $primary_key_name = static::get_primary_key_name();\n if( is_null( $this->$primary_key_name ) )\n {\n log::warning( 'Tried to delete record with no id.' );\n return;\n }\n \n return new limesurvey\\surveys( $this->sid );\n }", "function fill( &$questionArray )\r\n {\r\n $db =& eZDB::globalDatabase();\r\n $this->ID =& $questionArray[$db->fieldName( \"ID\" )];\r\n $this->Name =& $questionArray[$db->fieldName( \"Name\" )];\r\n $this->Description =& $questionArray[$db->fieldName( \"Description\" )];\r\n $this->Game = new eZQuizGame( $questionArray[$db->fieldName( \"GameID\" )] );\r\n }", "public function __construct(Question $question)\n {\n $this->question = $question;\n }", "public function postClone() {\n\t\t// Clone common parent objects.\n\t\tparent::postClone();\n\n\t\t$tempQuestions = new ArrayCollection();\n\t\tforeach ($this->questions as $question) {\n\t\t\t$newQuestion = clone $question;\n\t\t\t$newQuestion->postClone();\n\t\t\t$newQuestion->setExercise($this);\n\t\t\t$tempQuestions->add($newQuestion);\n\t\t}\n\t\t$this->questions = $tempQuestions;\n\t}", "private function question()\n\t{\n\t\t$this->qns['questionnaire']['questionnairecategories_id'] = $this->allinputs['questioncat'];\n\t\t$this->qns['questionnaire']['questionnairesubcategories_id'] = $this->allinputs['questionsubcat'];\n\t\t$this->qns['questionnaire']['label'] = $this->allinputs['question_label'];\n\n\n\t\t$this->qns['questionnaire']['question'] = $this->allinputs['question'];\n\t\t$this->qns['questionnaire']['has_sub_question'] = $this->allinputs['subquestion'];\n\n\t\tif( $this->qns['questionnaire']['has_sub_question'] == 0 )\n\t\t{\n\t\t\t$this->qns['answers']['answer_type'] = $this->allinputs['optiontype'];\n\t\t}\n\n\t\t$this->qns['questionnaire']['active'] = 1;\n\n\t\tif( $this->qns['questionnaire']['has_sub_question'] == 0 ){\n\t\t\t//This code must be skipped if sub_question is 1\n\t\t\t$optionCounter = 0;\n\t\t\tforeach ($this->allinputs as $key => $value) {\n\n\t\t\t\tif( str_is('option_*', $key) ){\n\t\t\t\t\t$optionCounter++;\n\t\t\t\t\t$this->qns['answers'][$optionCounter] = ( $this->qns['answers']['answer_type'] == 'opentext' ) ? 'Offered answer text' : $value;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public function responses()\n\t{\n\t\treturn $this->oneToMany('Components\\Answers\\Models\\Response', 'question_id');\n\t}", "public function createOfficialsSurvey()\n {\n return $this->mailer->createOfficialsSurvey($this->data);\n }", "public function getQuestions()\n {\n $title = \"Questions\";\n $subtitle = \"Here you will find all the questions!\";\n $view = $this->di->get(\"view\");\n $pageRender = $this->di->get(\"pageRender\");\n\n // Get all the questions\n $questions = $this->di->get(\"questionModel\")->getQuestions();\n\n // Get number of answers\n $answers = [];\n foreach ($questions as $question) {\n $ans = $this->di->get(\"answerModel\")->getAnswersWhere(\"questionId\", $question->id);\n $answers[$question->id] = count($ans);\n }\n\n $data = [\n \"questions\" => $questions,\n \"subtitle\" => $subtitle,\n \"noOfAnswers\" => $answers,\n ];\n\n $view->add(\"pages/questions\", $data);\n $pageRender->renderPage([\"title\" => $title]);\n }", "function fillQuestion($data)\r\n {\r\n\tfor( $i=0; $i<$data['count']; $i++ ){\r\n\t\t$data[$i]['Question'] = $this->findAll($conditions='id='.$data[$i]['SurveyQuestion']['question_id'], $fields=\"prompt, type\");\r\n\t\t$data[$i]['Question'] = $data[$i]['Question'][0]['Question'];\r\n\t\t$data[$i]['Question']['number'] = $data[$i]['SurveyQuestion']['number'];\r\n\t\t$data[$i]['Question']['id'] = $data[$i]['SurveyQuestion']['question_id'];\r\n\t\t$data[$i]['Question']['sq_id'] = $data[$i]['SurveyQuestion']['id'];\r\n\t\tunset($data[$i]['SurveyQuestion']);\r\n\t}\r\n\r\n\treturn $data;\r\n }", "private function json_retrieveQuestions()\n {\n // Gets the input data from the Front-End\n $input = json_decode(file_get_contents(\"php://input\"));\n// $surveyID = $_POST['surveyID'];\n $surveyID= $input->surveyID;\n\n // Gets Survey Details\n $surveyQuery = \"SELECT surveyTitle, surveyDescription FROM Surveys WHERE surveyID = :surveyID;\";\n $surveyParams = [\n \":surveyID\" => $surveyID,\n ];\n // This decodes the JSON encoded by getJSONRecordSet() from an associative array\n $resSurveyDetails = json_decode($this->recordset->getJSONRecordSet($surveyQuery, $surveyParams), true);\n $surveyTitle = $resSurveyDetails['data']['0']['surveyTitle'];\n $surveyDescription = $resSurveyDetails['data']['0']['surveyDescription'];\n\n // Gets Questions Details\n $questionsQuery = \"SELECT questionID, question, mediaPath FROM Questions WHERE surveyID = :surveyID;\";\n $questionsParams = [\n \":surveyID\" => $surveyID,\n ];\n\n // This decodes the JSON encoded by getJSONRecordSet() from an associative array\n $resQuestions = json_decode($this->recordset->getJSONRecordSet($questionsQuery, $questionsParams), true);\n $questionID = $resQuestions['data']['0']['questionID'];\n $question = $resQuestions['data']['0']['question'];\n $mediaPath = $resQuestions['data']['0']['mediaPath'];\n\n $nextpage = null;\n\n $res['status'] = 200;\n $res['message'] = \"ok\";\n $res['next_page'] = $nextpage;\n $res['surveyTitle'] = $surveyTitle;\n $res['surveyDescription'] = $surveyDescription;\n $res['questionID'] = $questionID;\n $res['question'] = $question;\n $res['mediaPath'] = $mediaPath;\n\n return json_encode($res);\n }", "public static function get_all($instantquiz) {\n global $DB;\n $questions = array();\n if ($records = $DB->get_records(static::get_table_name(), array('instantquizid' => $instantquiz->id), 'sortorder, id')) {\n foreach ($records as $record) {\n $questions[$record->id] = new static($instantquiz, $record);\n }\n }\n return $questions;\n }", "function get_Questions()\n\t{\n\t\ttry\n\t\t{\n\t\t\t$db = DB::getConnection();\n\t\t\t$st = $db->prepare( 'SELECT * FROM questions' );\n\t\t\t$st->execute( array( ) );\n\t\t}\n\t\tcatch( PDOException $e ) { exit( 'PDO error ' . $e->getMessage() ); }\n\n\t\t$arr = array();\n\t\twhile( $row = $st->fetch() )\n\t\t{\n\t\t\t$arr[] = new Question( $row['id'], $row['question']);\n\t\t}\n\n\t\treturn $arr;\n\t}", "public function initialize()\n\t{\n\t // attributes\n\t\t$this->setName('survey');\n\t\t$this->setPhpName('Survey');\n\t\t$this->setClassname('Survey');\n\t\t$this->setPackage('dokeos');\n\t\t$this->setUseIdGenerator(true);\n\t\t// columns\n\t\t$this->addPrimaryKey('SURVEY_ID', 'SurveyId', 'INTEGER', true, 10, null);\n\t\t$this->addColumn('CODE', 'Code', 'VARCHAR', false, 20, null);\n\t\t$this->addColumn('TITLE', 'Title', 'LONGVARCHAR', false, null, null);\n\t\t$this->addColumn('SUBTITLE', 'Subtitle', 'LONGVARCHAR', false, null, null);\n\t\t$this->addColumn('AUTHOR', 'Author', 'VARCHAR', false, 20, null);\n\t\t$this->addColumn('LANG', 'Lang', 'VARCHAR', false, 20, null);\n\t\t$this->addColumn('AVAIL_FROM', 'AvailFrom', 'DATE', false, null, null);\n\t\t$this->addColumn('AVAIL_TILL', 'AvailTill', 'DATE', false, null, null);\n\t\t$this->addColumn('IS_SHARED', 'IsShared', 'CHAR', false, 1, '1');\n\t\t$this->addColumn('TEMPLATE', 'Template', 'VARCHAR', false, 20, null);\n\t\t$this->addColumn('INTRO', 'Intro', 'LONGVARCHAR', false, null, null);\n\t\t$this->addColumn('SURVEYTHANKS', 'Surveythanks', 'LONGVARCHAR', false, null, null);\n\t\t$this->addColumn('CREATION_DATE', 'CreationDate', 'TIMESTAMP', true, null, '0000-00-00 00:00:00');\n\t\t$this->addColumn('INVITED', 'Invited', 'INTEGER', true, 11, null);\n\t\t$this->addColumn('ANSWERED', 'Answered', 'INTEGER', true, 11, null);\n\t\t$this->addColumn('INVITE_MAIL', 'InviteMail', 'LONGVARCHAR', true, null, null);\n\t\t$this->addColumn('REMINDER_MAIL', 'ReminderMail', 'LONGVARCHAR', true, null, null);\n\t\t$this->addColumn('MAIL_SUBJECT', 'MailSubject', 'VARCHAR', true, 255, null);\n\t\t$this->addColumn('ANONYMOUS', 'Anonymous', 'CHAR', true, null, '0');\n\t\t$this->addColumn('ACCESS_CONDITION', 'AccessCondition', 'LONGVARCHAR', false, null, null);\n\t\t$this->addColumn('SHUFFLE', 'Shuffle', 'TINYINT', true, 1, 0);\n\t\t$this->addColumn('ONE_QUESTION_PER_PAGE', 'OneQuestionPerPage', 'TINYINT', true, 1, 0);\n\t\t$this->addColumn('SURVEY_VERSION', 'SurveyVersion', 'VARCHAR', true, 255, '');\n\t\t$this->addColumn('PARENT_ID', 'ParentId', 'INTEGER', true, 10, null);\n\t\t$this->addColumn('SURVEY_TYPE', 'SurveyType', 'INTEGER', true, 11, 0);\n\t\t$this->addColumn('SHOW_FORM_PROFILE', 'ShowFormProfile', 'INTEGER', true, 11, 0);\n\t\t$this->addColumn('FORM_FIELDS', 'FormFields', 'LONGVARCHAR', true, null, null);\n\t\t$this->addColumn('SESSION_ID', 'SessionId', 'SMALLINT', true, 5, 0);\n\t\t// validators\n\t}", "private function extractQuestions(){\n $this->selectQuestions();\n $num=mysqli_num_rows($this->arrResultQuestions);\n for($i=0; $i<$num; $i++):\n $row=mysqli_fetch_object($this->arrResultQuestions);\n $misc=new misc();\n $fromWho=$misc->singleSelection('username', 'users', 'user_id', '=', $row->user_id);\n ?>\n <article class=\"homePageQuestions homePageArticle<?php echo $i; ?>\">\n <h3 class=\"homePageQuestionHeading\"><a href=\"?questionBody=<?php echo $row->post_id; ?>\"><?php echo $row->name; ?></a></h3>\n <span class=\"homePageQuestionAddFrom\"><span class=\"glyphicon glyphicon-user\"></span><a href=\"?user=<?php echo $row->user_id; ?>\"><?php echo $fromWho; ?></a></span>\n <span class=\"homePageQuestionAddTime\"><span class=\"glyphicon glyphicon-time\"></span><?php echo date('d.m.Y в H:i', $row->timeadded); ?></span>\n <span class=\"homePageQuestionAddTime\"><span class=\"glyphicon glyphicon-tag\"></span><?php echo $this->selectCategory($row->cat_id); ?></span>\n <span class=\"homePageQuestionVisits\"><?php echo $row->visits ?> Показвания</span>\n <?php\n $this->showingQuestionsFooter($row->lastanswered, $row->lastanswer, $row->post_id);\n ?>\n </article>\n <?php\n endfor;\n }", "function getQuestions() { \n\ttry {\n\t\t$questions = ORM::for_table('questions')->find_many();\n\t\tif (!count($questions)) { \n\t\t\treturn 0;\n\t\t}\n\t\t$theQuestions = array();\n\t\tforeach ($questions as $question) { \n\t\t\t$theQuestion = array();\n\t\t\t$theQuestion['id'] = $question->id;\n\t\t\t$theQuestion['text'] = $question->text;\n\t\t\t$theQuestion['answer1'] = $question->answer1;\n\t\t\t$theQuestion['answer2'] = $question->answer2;\n\t\t\t$theQuestions[] = $theQuestion;\n\t\t}\n\t\treturn $theQuestions;\n\t} catch (Exception $e) { \n\t\treturn 0;\n\t}\n}", "public function initializeQuestion()\r\n {\r\n $questionList = RequestDispatcher::dispatch(QuestionList::class, [self::COUNT_OF_RESULT, self::START_INDEX_FROM]);\r\n\r\n $this->questionInfo = json_decode($questionList);\r\n }", "public function questionView($questions, $searchQuery = null) : object\n {\n $page = $this->di->get(\"page\");\n \n $question = new Question();\n $question->setDb($this->di->get(\"dbqb\"));\n\n $tag = new Tag();\n $tag->setDb($this->di->get(\"dbqb\"));\n\n foreach ($questions as $q) {\n $answer = new Answer();\n $answer->setDb($this->di->get(\"dbqb\"));\n $q->answersAmount = count($answer->findAllWhere(\"questionId = ?\", $q->id));\n $q->tags = $tag->findAllWhere(\"questionId = ?\", $q->id);\n };\n\n $form = new SearchForm($this->di);\n $form->check();\n\n $page->add(\"anax/v2/article/default\", [\n \"content\" => $form->getHTML(),\n ], \"sidebar-right\");\n\n $page->add(\"question/view-all\", [\n \"questions\" => $questions,\n \"searchQuery\" => $searchQuery ?? null\n ]);\n\n return $page->render([\n \"title\" => \"Topics\",\n ]);\n }", "public static function clear(){\n self::$answers = [];\n }", "protected function createSurveyEntries(): array\n {\n $result = [];\n $query = $this->SurveyResults->find();\n $count = 0;\n\n $this->out((string)__d('Qobo/Survey', 'Found [{0}] survey_result records', $query->count()));\n\n if (empty($query->count())) {\n return $result;\n }\n\n foreach ($query as $item) {\n $survey = $this->Surveys->find()\n ->where(['id' => $item->get('survey_id')]);\n\n if (!$survey->count()) {\n $this->warn((string)__d('Qobo/Survey', 'Survey [{0}] is not found. Moving on', $item->get('survey_id')));\n\n continue;\n }\n\n $entry = $this->SurveyEntries->find()\n ->where([\n 'id' => $item->get('submit_id'),\n ])\n ->first();\n\n if (empty($entry)) {\n if (empty($item->get('submit_id'))) {\n continue;\n }\n\n $entry = $this->SurveyEntries->newEntity();\n $entry->set('id', $item->get('submit_id'));\n $entry->set('submit_date', $item->get('submit_date'));\n $entry->set('survey_id', $item->get('survey_id'));\n $entry->set('status', 'in_review');\n $entry->set('score', 0);\n\n $saved = $this->SurveyEntries->save($entry);\n\n if ($saved) {\n $result[] = $saved->get('id');\n $count++;\n } else {\n $this->out((string)__d('Qobo/Survey', 'Survey Result with Submit ID [{0}] cannot be saved. Next', $item->get('submit_id')));\n }\n } else {\n // saving existing survey_entries,\n // to double check if anything is missing as well.\n $result[] = $entry->get('id');\n }\n }\n\n $this->out((string)__d('Qobo/Survey', 'Saved [{0}] survey_entries', $count));\n\n //keeping only unique entry ids, to avoid excessive iterations.\n $result = array_values(array_unique($result));\n\n return $result;\n }", "function loadQuestionsFromDb() \n\t{\n\t\tglobal $ilDB;\n\t\t$this->questions = array();\n\t\t$result = $ilDB->queryF(\"SELECT * FROM svy_svy_qst WHERE survey_fi = %s ORDER BY sequence\",\n\t\t\tarray('integer'),\n\t\t\tarray($this->getSurveyId())\n\t\t);\n\t\twhile ($data = $ilDB->fetchAssoc($result)) \n\t\t{\n\t\t\t$this->questions[$data[\"sequence\"]] = $data[\"question_fi\"];\n\t\t}\n\t}", "public function getQuestions()\n {\n if (!empty($this->questionsMetadata)) {\n foreach ($this->questions as $question) {\n /** @var Question $question */\n $data = $question->get_data();\n $metadata = $data->get_metadata();\n\n if (!isset($metadata)) {\n $qtype = $data->get_type();\n // HACK: longtextV2 doesn't have a corresponding entity, so force it to use the similar longtext one\n if ($qtype === 'longtextV2') {\n $qtype = 'longtext';\n }\n $metadataClass = '\\\\LearnosityQti\\\\Entities\\\\QuestionTypes\\\\'.$qtype.'_metadata';\n $metadata = new $metadataClass();\n $data->set_metadata($metadata);\n }\n\n $this->populateQuestionMetadata($metadata, $this->questionsMetadata);\n }\n }\n return array_merge(array_values($this->questions), $this->getRubricQuestions());\n }", "public function getquestion()\r\n {\r\n \r\n $con = new Connection();\r\n $conn = $con->getConnection();\r\n $ques = array();\r\n $i = 0;\r\n \r\n $query = \"SELECT `id`,`question_id`, `exam_id`,`subject_id`, `node_id`,`question`,`created_date` FROM `question`\";\r\n $result = mysqli_query($conn, $query);\r\n if (mysqli_num_rows($result) > 0) {\r\n while ($row = mysqli_fetch_assoc($result)) {\r\n $q = new question();\r\n //$ea->setId( $row ['id']);\r\n $q->setQuestion_id( $row ['question_id']);\r\n $q->setExam_id( $row ['exam_id']);\r\n $q->setSubject_id( $row ['subject_id']);\r\n $q->setNode_id( $row ['node_id']);\r\n $q->setQuestion( $row ['question']);\r\n \r\n }\r\n \r\n \r\n $ques[$i ++] = array(\r\n \"id\" => $row[\"question_id\"],\r\n \"ques\" => $q\r\n );\r\n \r\n }\r\n return $ques;\r\n \r\n }", "public function questions()\n {\n return $this->hasMany(Question::class,'inquirer_id','id');\n }", "public function clearQuestions()\n\t{\n\t\t$this->collQuestions = null; // important to set this to NULL since that means it is uninitialized\n\t}", "public function question()\n {\n return $this->hasMany('App\\Models\\Question', 'quizzes_id');\n }", "public function show(Questions $questions)\n {\n //\n }", "public function run()\n {\n // factory(App\\Models\\Surveies\\QuestionBank::class,10)->create();\n \n\n $data = array(\n\n $questions = array(\n 'survey_title' => \"()は貴下の疾病を治療する時にいくら役に立ちますか?\",\n 'values' =>array( \n '貴下の医療提供者',\n '直接入力',\n ),\n 'items' =>array(\n array('value' => '非常に役立つ。'),\n array('value' => '役に立つ。'),\n array('value' => '役に立たない'),\n array('value' => 'あまり役に立たない'),\n ),\n ),\n\n \n $questions = array(\n 'survey_title' => \"この12ヵ月間、医療と関係された質問として首脳診療時間以降に()に電話したことがありますか?\",\n 'values' =>array( \n '貴下の医療提供者',\n '直接入力',\n ),\n 'items' =>array(\n array('value' => 'はい。'),\n array('value' => 'いいえ。'),\n ),\n ),\n\n\n $questions = array(\n 'survey_title' => \"貴下のための最善の医療決定を下すにあたって,()をどれほど信頼されますか。\",\n 'values' =>array( \n '貴下の医療提供者',\n '直接入力',\n ),\n 'items' =>array(\n array('value' => '非常に信頼する。'),\n array('value' => '信頼する。'),\n array('value' => '信頼しない。'),\n array('value' => '非常に信頼しない。'),\n ),\n ),\n\n\n $questions = array(\n 'survey_title' => \"貴下は普通()間の保健医療にいくらをお支払いですか。 (健康保険料,控除額,病院費,その他の医療費,歯科費,眼科費,薬品などすべての保健医療関連費用を計算してください。)\",\n 'values' =>array( \n '1年',\n '直接入力',\n ),\n 'items' =>array(\n array('value' => '10万円以下'),\n array('value' => '10万円 ~ 30万円'),\n array('value' => '30万円 ~ 60万円'),\n array('value' => '60万円 ~ 100万円'),\n array('value' => '100만원 이상'),\n ),\n ),\n\n\n $questions = array(\n 'survey_title' => \"あなたは()を親戚か友人に推薦しますか?\",\n 'values' =>array( \n '貴下の医療提供者',\n '直接入力',\n ),\n 'items' =>array(\n array('value' => '非常に推薦する。'),\n array('value' => '推薦する。'),\n array('value' => '推薦しない。'),\n array('value' => 'あまりお勧めしない。'),\n ),\n ),\n\n\n $questions = array(\n 'survey_title' => \"この12ヶ月間()に何度も訪問しましたか?\",\n 'values' =>array( \n '貴下の医療提供者',\n '直接入力',\n ),\n 'items' =>array(\n array('value' => '訪れたことがない。'),\n array('value' => '1回'),\n array('value' => '2回~5回'),\n array('value' => '5回~10回'),\n array('value' => '10回以上'),\n ),\n ),\n\n\n $questions = array(\n 'survey_title' => \"最後に()を訪問してからどのぐらい経ちましたか。\",\n 'values' =>array( \n '貴下の医療提供者',\n '直接入力',\n ),\n 'items' =>array(\n array('value' => '1週間以内'),\n array('value' => '1週間~1ヵ月'),\n array('value' => '1ヵ月~3ヵ月'),\n array('value' => '3ヵ月~6ヵ月'),\n array('value' => '6ヵ月~1年'),\n array('value' => '1年以上'),\n ),\n ),\n\n\n $questions = array(\n 'survey_title' => \"は貴下が必要とすることをどんなによく聴きましたか。\",\n 'values' =>array( \n '貴下の医療提供者',\n '直接入力',\n ),\n 'items' =>array(\n array('value' => '非常に傾聴した。'),\n array('value' => '傾聴した.'),\n array('value' => '傾聴しなかった。'),\n array('value' => '傾聴はしなかった。'),\n ),\n ),\n\n\n $questions = array(\n 'survey_title' => \"は事後管理で,今後の来院手続きについてどのくらいよく説明しましたか。\",\n 'values' =>array( \n '貴下の医療提供者',\n '直接入力',\n ),\n 'items' =>array(\n array('value' => 'はい。'),\n array('value' => 'いいえ。'),\n ),\n ),\n\n\n $questions = array(\n 'survey_title' => \"この12ヵ月間、ゴムカン検診を受けたことがありますか?\",\n 'values' =>array( \n '貴下の医療提供者',\n '直接入力',\n ),\n 'items' =>array(\n array('value' => 'はい。'),\n array('value' => 'いいえ。'),\n ),\n ),\n );\n\n\n\n // $data = array(\n\n // $questions = array(\n // 'survey_title' => \"()는 귀하의 질병을 치료할 때에 얼마나 도움이 됩니까?\",\n // 'values' =>array( \n // '귀하의 의료 제공자',\n // '직접입력',\n // ),\n // 'items' =>array(\n // array('value' => '매우 도움이 된다.'),\n // array('value' => '도움이 된다.'),\n // array('value' => '도움이 되지 않는다.'),\n // array('value' => '매우 도움이 되지 않는다.'),\n // ),\n // ),\n\n \n // $questions = array(\n // 'survey_title' => \"지난 12개월 동안 의료와 관계된 질문으로 정상 진료 시간 이후에 ()에게 전화하신적이 있습니까?\",\n // 'values' =>array( \n // '귀하의 의료 제공자',\n // '직접입력',\n // ),\n // 'items' =>array(\n // array('value' => '네.'),\n // array('value' => '아니오.'),\n // ),\n // ),\n\n\n // $questions = array(\n // 'survey_title' => \"귀하를 위한 최선의 의료 결정을 내리는 데 있어 ()을/를 얼마나 신뢰하십니까?\",\n // 'values' =>array( \n // '귀하의 의료 제공자',\n // '직접입력',\n // ),\n // 'items' =>array(\n // array('value' => '매우 신뢰한다.'),\n // array('value' => '신뢰한다.'),\n // array('value' => '신뢰하지 않는다.'),\n // array('value' => '매우 신뢰하지 않는다.'),\n // ),\n // ),\n\n\n // $questions = array(\n // 'survey_title' => \"귀하는 보통 ()간 보건의료에 얼마를 지출하십니까? (건강보험료, 공제액, 병원비, 기타 의료비, 치과비, 안과비, 약품 등 모든 보건의료 관련 비용을 계산하세요.)\",\n // 'values' =>array( \n // '1년',\n // '직접입력',\n // ),\n // 'items' =>array(\n // array('value' => '100만원 이하'),\n // array('value' => '100만원 ~ 300만원'),\n // array('value' => '300만원 ~ 600만원'),\n // array('value' => '600만원 ~ 1000만원'),\n // array('value' => '1000만원 이상'),\n // ),\n // ),\n\n\n // $questions = array(\n // 'survey_title' => \"귀하는 ()를 친지나 친구들에게 추천하십니까?\",\n // 'values' =>array( \n // '귀하의 의료 제공자',\n // '직접입력',\n // ),\n // 'items' =>array(\n // array('value' => '매우 추천한다.'),\n // array('value' => '추천한다.'),\n // array('value' => '추천하지 않는다.'),\n // array('value' => '매우 추천하지 않는다.'),\n // ),\n // ),\n\n\n // $questions = array(\n // 'survey_title' => \"지난 12개월 동안 ()에 몇 번이나 방문하셨습니까?\",\n // 'values' =>array( \n // '귀하의 의료 제공자',\n // '직접입력',\n // ),\n // 'items' =>array(\n // array('value' => '방문한 적이 없다.'),\n // array('value' => '1회'),\n // array('value' => '2회~5회'),\n // array('value' => '5회~10회'),\n // array('value' => '10회 이상'),\n // ),\n // ),\n\n\n // $questions = array(\n // 'survey_title' => \"마지막으로 ()를 방문한지 얼마나 오래 되셨습니까?\",\n // 'values' =>array( \n // '귀하의 의료 제공자',\n // '직접입력',\n // ),\n // 'items' =>array(\n // array('value' => '1주 이내'),\n // array('value' => '1주~1개월'),\n // array('value' => '1개월~3개월'),\n // array('value' => '3개월~6개월'),\n // array('value' => '6개월~1년'),\n // array('value' => '1년 이상'),\n // ),\n // ),\n\n\n // $questions = array(\n // 'survey_title' => \"()는 귀하가 필요로 하는 바를 얼마나 잘 경청했습니까?\",\n // 'values' =>array( \n // '귀하의 의료 제공자',\n // '직접입력',\n // ),\n // 'items' =>array(\n // array('value' => '매우 경청했다.'),\n // array('value' => '경청했다.'),\n // array('value' => '경청하지 않았다.'),\n // array('value' => '매우 경청하지 않았다.'),\n // ),\n // ),\n\n\n // $questions = array(\n // 'survey_title' => \"()는 사후 관리로 향후 내원 절차에 대해 얼마나 잘 설명해 드렸습니까?\",\n // 'values' =>array( \n // '귀하의 의료 제공자',\n // '직접입력',\n // ),\n // 'items' =>array(\n // array('value' => '네.'),\n // array('value' => '아니오.'),\n // ),\n // ),\n\n\n // $questions = array(\n // 'survey_title' => \"지난 12개월 동안 검강 검진을 받은 적이 있습니까?\",\n // 'values' =>array( \n // '귀하의 의료 제공자',\n // '직접입력',\n // ),\n // 'items' =>array(\n // array('value' => '네.'),\n // array('value' => '아니오.'),\n // ),\n // ),\n // );\n \n\n\n // $questions = array(\n // 'survey_title' => \"지난 12개월 동안 의료와 관계된 질문으로 정상 진료 시간 후에 ()에게 전화하셨습니까?\",\n // 'values' =>array( \n // '귀하의 의료 제공자',\n // '직접입력',\n // ),\n // 'items' =>array(\n // array('value' => '귀하의 의료 제공자'),\n // array('value' => '귀하의 의료 제공자'),\n // array('value' => '귀하의 의료 제공자'),\n // array('value' => '귀하의 의료 제공자'),\n // array('value' => '귀하의 의료 제공자'),\n // ),\n // ),\n\n\n // $questions = array(\n // 'survey_title' => \"지난 26개월 동안 의료와 관계된 질문으로 정상 진료 시간 후에 ()에게 전화하셨습니까?\",\n // 'values' =>array( \n // '귀하의 의료 제공자',\n // '직접입력',\n // ),\n // 'items' =>array(\n // array('value' => '귀하의 의료 제공자'),\n // array('value' => '귀하의 의료 제공자'),\n // array('value' => '귀하의 의료 제공자'),\n // array('value' => '귀하의 의료 제공자'),\n // array('value' => '귀하의 의료 제공자'),\n // ),\n // ),\n\n\n // $questions = array(\n // 'survey_title' => \"지난 26개월 동안 의료와 관계된 질문으로 정상 진료 시간 후에 ()에게 전화하셨습니까?\",\n // 'values' =>array( \n // '귀하의 의료 제공자',\n // '직접입력',\n // ),\n // 'items' =>array(\n // array('value' => '귀하의 의료 제공자'),\n // array('value' => '귀하의 의료 제공자'),\n // array('value' => '귀하의 의료 제공자'),\n // array('value' => '귀하의 의료 제공자'),\n // array('value' => '귀하의 의료 제공자'),\n // ),\n // ),\n\n\n // $questions = array(\n // 'survey_title' => \"지난 26개월 동안 의료와 관계된 질문으로 정상 진료 시간 후에 ()에게 전화하셨습니까?\",\n // 'values' =>array( \n // '귀하의 의료 제공자',\n // '직접입력',\n // ),\n // 'items' =>array(\n // array('value' => '귀하의 의료 제공자'),\n // array('value' => '귀하의 의료 제공자'),\n // array('value' => '귀하의 의료 제공자'),\n // array('value' => '귀하의 의료 제공자'),\n // array('value' => '귀하의 의료 제공자'),\n // ),\n // ),\n\n\n // $questions = array(\n // 'survey_title' => \"지난 26개월 동안 의료와 관계된 질문으로 정상 진료 시간 후에 ()에게 전화하셨습니까?\",\n // 'values' =>array( \n // '귀하의 의료 제공자',\n // '직접입력',\n // ),\n // 'items' =>array(\n // array('value' => '귀하의 의료 제공자'),\n // array('value' => '귀하의 의료 제공자'),\n // array('value' => '귀하의 의료 제공자'),\n // array('value' => '귀하의 의료 제공자'),\n // array('value' => '귀하의 의료 제공자'),\n // ),\n // ),\n\n\n // $questions = array(\n // 'survey_title' => \"지난 26개월 동안 의료와 관계된 질문으로 정상 진료 시간 후에 ()에게 전화하셨습니까?\",\n // 'values' =>array( \n // '귀하의 의료 제공자',\n // '직접입력',\n // ),\n // 'items' =>array(\n // array('value' => '귀하의 의료 제공자'),\n // array('value' => '귀하의 의료 제공자'),\n // array('value' => '귀하의 의료 제공자'),\n // array('value' => '귀하의 의료 제공자'),\n // array('value' => '귀하의 의료 제공자'),\n // ),\n // ),\n\n // $questions = array(\n // 'survey_title' => \"지난 26개월 동안 의료와 관계된 질문으로 정상 진료 시간 후에 ()에게 전화하셨습니까?\",\n // 'values' =>array( \n // '귀하의 의료 제공자',\n // '직접입력',\n // ),\n // 'items' =>array(\n // array('value' => '귀하의 의료 제공자'),\n // array('value' => '귀하의 의료 제공자'),\n // array('value' => '귀하의 의료 제공자'),\n // array('value' => '귀하의 의료 제공자'),\n // array('value' => '귀하의 의료 제공자'),\n // ),\n // ),\n\n\n // $questions = array(\n // 'survey_title' => \"지난 26개월 동안 의료와 관계된 질문으로 정상 진료 시간 후에 ()에게 전화하셨습니까?\",\n // 'values' =>array( \n // '귀하의 의료 제공자',\n // '직접입력',\n // ),\n // 'items' =>array(\n // array('value' => '귀하의 의료 제공자'),\n // array('value' => '귀하의 의료 제공자'),\n // array('value' => '귀하의 의료 제공자'),\n // array('value' => '귀하의 의료 제공자'),\n // array('value' => '귀하의 의료 제공자'),\n // ),\n // ),\n \n\n // $questions = array(\n // 'survey_title' => \"지난 26개월 동안 의료와 관계된 질문으로 정상 진료 시간 후에 ()에게 전화하셨습니까?\",\n // 'values' =>array( \n // '귀하의 의료 제공자',\n // '직접입력',\n // ),\n // 'items' =>array(\n // array('value' => '귀하의 의료 제공자'),\n // array('value' => '귀하의 의료 제공자'),\n // array('value' => '귀하의 의료 제공자'),\n // array('value' => '귀하의 의료 제공자'),\n // array('value' => '귀하의 의료 제공자'),\n // ),\n // ),\n\n // $questions = array(\n // 'survey_title' => \"지난 26개월 동안 의료와 관계된 질문으로 정상 진료 시간 후에 ()에게 전화하셨습니까?\",\n // 'values' =>array( \n // '귀하의 의료 제공자',\n // '직접입력',\n // ),\n // 'items' =>array(\n // array('value' => '귀하의 의료 제공자'),\n // array('value' => '귀하의 의료 제공자'),\n // array('value' => '귀하의 의료 제공자'),\n // array('value' => '귀하의 의료 제공자'),\n // array('value' => '귀하의 의료 제공자'),\n // ),\n // ),\n\n // $questions = array(\n // 'survey_title' => \"지난 26개월 동안 의료와 관계된 질문으로 정상 진료 시간 후에 ()에게 전화하셨습니까?\",\n // 'values' =>array( \n // '귀하의 의료 제공자',\n // '직접입력',\n // ),\n // 'items' =>array(\n // array('value' => '귀하의 의료 제공자'),\n // array('value' => '귀하의 의료 제공자'),\n // array('value' => '귀하의 의료 제공자'),\n // array('value' => '귀하의 의료 제공자'),\n // array('value' => '귀하의 의료 제공자'),\n // ),\n // ),\n\n\n // $questions = array(\n // 'survey_title' => \"지난 26개월 동안 의료와 관계된 질문으로 정상 진료 시간 후에 ()에게 전화하셨습니까?\",\n // 'values' =>array( \n // '귀하의 의료 제공자',\n // '직접입력',\n // ),\n // 'items' =>array(\n // array('value' => '귀하의 의료 제공자'),\n // array('value' => '귀하의 의료 제공자'),\n // array('value' => '귀하의 의료 제공자'),\n // array('value' => '귀하의 의료 제공자'),\n // array('value' => '귀하의 의료 제공자'),\n // ),\n // ),\n\n // $questions = array(\n // 'survey_title' => \"지난 26개월 동안 의료와 관계된 질문으로 정상 진료 시간 후에 ()에게 전화하셨습니까?\",\n // 'values' =>array( \n // '귀하의 의료 제공자',\n // '직접입력',\n // ),\n // 'items' =>array(\n // array('value' => '귀하의 의료 제공자'),\n // array('value' => '귀하의 의료 제공자'),\n // array('value' => '귀하의 의료 제공자'),\n // array('value' => '귀하의 의료 제공자'),\n // array('value' => '귀하의 의료 제공자'),\n // ),\n // ),\n\n // $questions = array(\n // 'survey_title' => \"지난 26개월 동안 의료와 관계된 질문으로 정상 진료 시간 후에 ()에게 전화하셨습니까?\",\n // 'values' =>array( \n // '귀하의 의료 제공자',\n // '직접입력',\n // ),\n // 'items' =>array(\n // array('value' => '귀하의 의료 제공자'),\n // array('value' => '귀하의 의료 제공자'),\n // array('value' => '귀하의 의료 제공자'),\n // array('value' => '귀하의 의료 제공자'),\n // array('value' => '귀하의 의료 제공자'),\n // ),\n // ),\n\n\n // $questions = array(\n // 'survey_title' => \"지난 26개월 동안 의료와 관계된 질문으로 정상 진료 시간 후에 ()에게 전화하셨습니까?\",\n // 'values' =>array( \n // '귀하의 의료 제공자',\n // '직접입력',\n // ),\n // 'items' =>array(\n // array('value' => '귀하의 의료 제공자'),\n // array('value' => '귀하의 의료 제공자'),\n // array('value' => '귀하의 의료 제공자'),\n // array('value' => '귀하의 의료 제공자'),\n // array('value' => '귀하의 의료 제공자'),\n // ),\n // ),\n\n \n // $questions = array(\n // 'survey_title' => \"지난 26개월 동안 의료와 관계된 질문으로 정상 진료 시간 후에 ()에게 전화하셨습니까?\",\n // 'values' =>array( \n // '귀하의 의료 제공자',\n // '직접입력',\n // ),\n // 'items' =>array(\n // array('value' => '귀하의 의료 제공자'),\n // array('value' => '귀하의 의료 제공자'),\n // array('value' => '귀하의 의료 제공자'),\n // array('value' => '귀하의 의료 제공자'),\n // array('value' => '귀하의 의료 제공자'),\n // ),\n // ),\n\n\n // $questions = array(\n // 'survey_title' => \"지난 26개월 동안 의료와 관계된 질문으로 정상 진료 시간 후에 ()에게 전화하셨습니까?\",\n // 'values' =>array( \n // '귀하의 의료 제공자',\n // '직접입력',\n // ),\n // 'items' =>array(\n // array('value' => '귀하의 의료 제공자'),\n // array('value' => '귀하의 의료 제공자'),\n // array('value' => '귀하의 의료 제공자'),\n // array('value' => '귀하의 의료 제공자'),\n // array('value' => '귀하의 의료 제공자'),\n // ),\n // ),\n\n\n // $questions = array(\n // 'survey_title' => \"지난 26개월 동안 의료와 관계된 질문으로 정상 진료 시간 후에 ()에게 전화하셨습니까?\",\n // 'values' =>array( \n // '귀하의 의료 제공자',\n // '직접입력',\n // ),\n // 'items' =>array(\n // array('value' => '귀하의 의료 제공자'),\n // array('value' => '귀하의 의료 제공자'),\n // array('value' => '귀하의 의료 제공자'),\n // array('value' => '귀하의 의료 제공자'),\n // array('value' => '귀하의 의료 제공자'),\n // ),\n // ),\n \n // $questions = array(\n // 'survey_title' => \"지난 26개월 동안 의료와 관계된 질문으로 정상 진료 시간 후에 ()에게 전화하셨습니까?\",\n // 'values' =>array( \n // '귀하의 의료 제공자',\n // '직접입력',\n // ),\n // 'items' =>array(\n // array('value' => '귀하의 의료 제공자'),\n // array('value' => '귀하의 의료 제공자'),\n // array('value' => '귀하의 의료 제공자'),\n // array('value' => '귀하의 의료 제공자'),\n // array('value' => '귀하의 의료 제공자'),\n // ),\n // ),\n\n // $questions = array(\n // 'survey_title' => \"지난 26개월 동안 의료와 관계된 질문으로 정상 진료 시간 후에 ()에게 전화하셨습니까?\",\n // 'values' =>array( \n // '귀하의 의료 제공자',\n // '직접입력',\n // ),\n // 'items' =>array(\n // array('value' => '귀하의 의료 제공자'),\n // array('value' => '귀하의 의료 제공자'),\n // array('value' => '귀하의 의료 제공자'),\n // array('value' => '귀하의 의료 제공자'),\n // array('value' => '귀하의 의료 제공자'),\n // ),\n // ),\n\n\n // $questions = array(\n // 'survey_title' => \"지난 26개월 동안 의료와 관계된 질문으로 정상 진료 시간 후에 ()에게 전화하셨습니까?\",\n // 'values' =>array( \n // '귀하의 의료 제공자',\n // '직접입력',\n // ),\n // 'items' =>array(\n // array('value' => '귀하의 의료 제공자'),\n // array('value' => '귀하의 의료 제공자'),\n // array('value' => '귀하의 의료 제공자'),\n // array('value' => '귀하의 의료 제공자'),\n // array('value' => '귀하의 의료 제공자'),\n // ),\n // ),\n \n \n // $questions = array(\n // 'survey_title' => \"지난 26개월 동안 의료와 관계된 질문으로 정상 진료 시간 후에 ()에게 전화하셨습니까?\",\n // 'values' =>array( \n // '귀하의 의료 제공자',\n // '직접입력',\n // ),\n // 'items' =>array(\n // array('value' => '귀하의 의료 제공자'),\n // array('value' => '귀하의 의료 제공자'),\n // array('value' => '귀하의 의료 제공자'),\n // array('value' => '귀하의 의료 제공자'),\n // array('value' => '귀하의 의료 제공자'),\n // ),\n // ),\n \n\n // $questions = array(\n // 'survey_title' => \"지난 26개월 동안 의료와 관계된 질문으로 정상 진료 시간 후에 ()에게 전화하셨습니까?\",\n // 'values' =>array( \n // '귀하의 의료 제공자',\n // '직접입력',\n // ),\n // 'items' =>array(\n // array('value' => '귀하의 의료 제공자'),\n // array('value' => '귀하의 의료 제공자'),\n // array('value' => '귀하의 의료 제공자'),\n // array('value' => '귀하의 의료 제공자'),\n // array('value' => '귀하의 의료 제공자'),\n // ),\n // ),\n\n\n // $questions = array(\n // 'survey_title' => \"지난 26개월 동안 의료와 관계된 질문으로 정상 진료 시간 후에 ()에게 전화하셨습니까?\",\n // 'values' =>array( \n // '귀하의 의료 제공자',\n // '직접입력',\n // ),\n // 'items' =>array(\n // array('value' => '귀하의 의료 제공자'),\n // array('value' => '귀하의 의료 제공자'),\n // array('value' => '귀하의 의료 제공자'),\n // array('value' => '귀하의 의료 제공자'),\n // array('value' => '귀하의 의료 제공자'),\n // ),\n // ),\n\n\n // $questions = array(\n // 'survey_title' => \"지난 26개월 동안 의료와 관계된 질문으로 정상 진료 시간 후에 ()에게 전화하셨습니까?\",\n // 'values' =>array( \n // '귀하의 의료 제공자',\n // '직접입력',\n // ),\n // 'items' =>array(\n // array('value' => '귀하의 의료 제공자'),\n // array('value' => '귀하의 의료 제공자'),\n // array('value' => '귀하의 의료 제공자'),\n // array('value' => '귀하의 의료 제공자'),\n // array('value' => '귀하의 의료 제공자'),\n // ),\n // ),\n\n\n // $questions = array(\n // 'survey_title' => \"지난 26개월 동안 의료와 관계된 질문으로 정상 진료 시간 후에 ()에게 전화하셨습니까?\",\n // 'values' =>array( \n // '귀하의 의료 제공자',\n // '직접입력',\n // ),\n // 'items' =>array(\n // array('value' => '귀하의 의료 제공자'),\n // array('value' => '귀하의 의료 제공자'),\n // array('value' => '귀하의 의료 제공자'),\n // array('value' => '귀하의 의료 제공자'),\n // array('value' => '귀하의 의료 제공자'),\n // ),\n // ),\n \n\n // $questions = array(\n // 'survey_title' => \"지난 26개월 동안 의료와 관계된 질문으로 정상 진료 시간 후에 ()에게 전화하셨습니까?\",\n // 'values' =>array( \n // '귀하의 의료 제공자',\n // '직접입력',\n // ),\n // 'items' =>array(\n // array('value' => '귀하의 의료 제공자'),\n // array('value' => '귀하의 의료 제공자'),\n // array('value' => '귀하의 의료 제공자'),\n // array('value' => '귀하의 의료 제공자'),\n // array('value' => '귀하의 의료 제공자'),\n // ),\n // ),\n\n\n // $questions = array(\n // 'survey_title' => \"지난 26개월 동안 의료와 관계된 질문으로 정상 진료 시간 후에 ()에게 전화하셨습니까?\",\n // 'values' =>array( \n // '귀하의 의료 제공자',\n // '직접입력',\n // ),\n // 'items' =>array(\n // array('value' => '귀하의 의료 제공자'),\n // array('value' => '귀하의 의료 제공자'),\n // array('value' => '귀하의 의료 제공자'),\n // array('value' => '귀하의 의료 제공자'),\n // array('value' => '귀하의 의료 제공자'),\n // ),\n // ),\n\n\n // $questions = array(\n // 'survey_title' => \"지난 26개월 동안 의료와 관계된 질문으로 정상 진료 시간 후에 ()에게 전화하셨습니까?\",\n // 'values' =>array( \n // '귀하의 의료 제공자',\n // '직접입력',\n // ),\n // 'items' =>array(\n // array('value' => '귀하의 의료 제공자'),\n // array('value' => '귀하의 의료 제공자'),\n // array('value' => '귀하의 의료 제공자'),\n // array('value' => '귀하의 의료 제공자'),\n // array('value' => '귀하의 의료 제공자'),\n // ),\n // ),\n \n\n // $questions = array(\n // 'survey_title' => \"지난 26개월 동안 의료와 관계된 질문으로 정상 진료 시간 후에 ()에게 전화하셨습니까?\",\n // 'values' =>array( \n // '귀하의 의료 제공자',\n // '직접입력',\n // ),\n // 'items' =>array(\n // array('value' => '귀하의 의료 제공자'),\n // array('value' => '귀하의 의료 제공자'),\n // array('value' => '귀하의 의료 제공자'),\n // array('value' => '귀하의 의료 제공자'),\n // array('value' => '귀하의 의료 제공자'),\n // ),\n // ),\n\n \n foreach($data as $rs){ \n QuestionBank::create(['questions' => $rs]);\n } \n }", "public function __construct()\n {\n $this->postules = new ArrayCollection();\n $this->competences = new ArrayCollection();\n $this->habilitations = new ArrayCollection();\n }", "public function set_question(array $question)\n\t{\n\t\t$this->question = $question;\n\t\treturn $this;\n\t}", "public function getCorrectAnswers()\n {\n return $this->hasMany(CorrectAnswers::className(), ['question_id' => 'id']);\n }", "public function getAll()\n {\n return $this->_answers;\n }", "public function questionWiseReport(){\n\n $arr = [];\n $surveyTableData = Survey_question::get();\n foreach($surveyTableData as $std){\n $op = Que_option::where('que_auto_id',$std->id)->get();\n $o = new Object_();\n $o->que = $std->name;\n foreach($op as $key => $ops){\n $o->opt[$key] = $ops->options;\n $ocs = Survey_table::where('ans',$ops->id)->get();\n $o->selection[$key] = count($ocs);\n\n\n }\n array_push($arr,$o);\n\n }\n\n return view('surveyReportMaker.questionWiseReport',compact(['surveyTableData','arr']));\n\n }", "public function index(): AnonymousResourceCollection\n {\n return SurveyResource::collection(Survey::all());\n }", "public function questions()\n\t{\n\t\treturn $this->belongsTo('App\\Question');\n\t}", "function __construct( $data = array() )\r\n\t{\r\n\t\tif (isset($data['orderno'])) $this->orderno = $data['orderno'];\r\n\t\tif (isset($data['question'])) $this->question = $data['question'];\r\n\t\tif (isset($data['type'])) $this->type = $data['type'];\r\n\t\tif (isset($data['maxscore'])) $this->maxscore = $data['maxscore'];\r\n\t\tif (isset($data['answers'])) \r\n\t\t{\r\n\t\t\tforeach ($data['answers'] as $key => $answer)\r\n\t\t\t{\r\n\t\t\t\t$this->answers[$key]->answer = $answer;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (isset($data['scorepercentages'])) \r\n\t\t{\r\n\t\t\tforeach ($data['scorepercentages'] as $key => $scorepercentage)\r\n\t\t\t{\r\n\t\t\t\t$this->answers[$key]->scorepercentage = $scorepercentage;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif ($this->type == \"shortanswer\")\r\n\t\t{\r\n\t\t\t$this->typeshort = \"SA\";\r\n\t\t}\r\n\t\tif ($this->type == \"multichoice\")\r\n\t\t{\r\n\t\t\t$this->typeshort = \"MC\";\r\n\t\t}\r\n\t\t\r\n\t}", "function readquestion($lines) {\n \t// converts it into a question object suitable for processing and insertion.\n\n $question = $this->defaultquestion();\n $comment = NULL;\n \n // define replaced by simple assignment, stop redefine notices\n $gift_answerweight_regex = \"^%\\-*([0-9]{1,2})\\.?([0-9]*)%\"; \n\n // REMOVED COMMENTED LINES and IMPLODE\n foreach ($lines as $key => $line) {\n $line = trim($line);\n if (substr($line, 0, 2) == \"//\") {\n $lines[$key] = \" \";\n }\n }\n\n $text = trim(implode(\" \", $lines));\n\n if ($text == \"\") {\n return false;\n }\n\n // Substitute escaped control characters with placeholders\n $text = $this->escapedchar_pre($text);\n\n // Look for category modifier ---------------------------------------------------------\n if (ereg( '^\\$CATEGORY:', $text)) {\n // $newcategory = $matches[1];\n $newcategory = trim(substr( $text, 10 ));\n $newcategory = trim(substr( $newcategory, 0, strpos($newcategory, \"::\")));\n\t\t\t\n $question->setCategoryFromName($newcategory);\n $text = trim(substr($text, 10+strlen($newcategory)));\n \n // build fake question to contain category\n \n \t// XXX: create a category !\n //return true;\n }\n \n // QUESTION NAME parser --------------------------------------------------------------\n if (substr($text, 0, 2) == \"::\") {\n $text = substr($text, 2);\n\n $namefinish = strpos($text, \"::\");\n if ($namefinish === false) {\n $question->prompt = false;\n // name will be assigned after processing question text below\n } else {\n $questionname = substr($text, 0, $namefinish);\n $question->prompt = addslashes(trim($this->escapedchar_post($questionname)));\n $text = trim(substr($text, $namefinish+2)); // Remove name from text\n }\n } else {\n $question->prompt = false;\n }\n\n\n // FIND ANSWER section -----------------------------------------------------------------\n // no answer means its a description\n $answerstart = strpos($text, \"{\");\n $answerfinish = strpos($text, \"}\");\n\n $description = false;\n if (($answerstart === false) and ($answerfinish === false)) {\n $description = true;\n $answertext = '';\n $answerlength = 0;\n }\n elseif (!(($answerstart !== false) and ($answerfinish !== false))) {\n //$this->error( get_string( 'braceerror', 'quiz' ), $text );\n return false;\n }\n else {\n $answerlength = $answerfinish - $answerstart;\n $answertext = trim(substr($text, $answerstart + 1, $answerlength - 1));\n }\n\n \n\t\t// Format QUESTION TEXT without answer, inserting \"_____\" as necessary\n if ($description) {\n $text = $text;\n }\n elseif (substr($text, -1) == \"}\") {\n // no blank line if answers follow question, outside of closing punctuation\n $text = substr_replace($text, \"\", $answerstart, $answerlength+1);\n } else {\n // inserts blank line for missing word format\n $text = substr_replace($text, \"_____\", $answerstart, $answerlength+1);\n }\n\n // get text format from text\n $oldtext = $text;\n $textformat = 0;\n if (substr($text,0,1)=='[') {\n $text = substr( $text,1 );\n $rh_brace = strpos( $text, ']' );\n $qtformat= substr( $text, 0, $rh_brace );\n $text = substr( $text, $rh_brace+1 );\n \n }\n // i must find out for what this param is used\n $question->textformat = $textformat;\n \t\t\n \t\t// question text \n $question->quest_text = addslashes(trim($this->escapedchar_post($text)));\n\n // set question name if not already set\n\t\tif ($question->prompt === false) {\n\t\t\t$question->prompt = $question->quest_text;\n\t\t}\n\n // ensure name is not longer than 250 characters\n $question->prompt = $question->prompt ;\n $question->prompt = strip_tags(substr( $question->prompt, 0, 250 ));\n\n // determine QUESTION TYPE -------------------------------------------------------------\n $question->qtype = NULL;\n\n // give plugins first try\n // plugins must promise not to intercept standard qtypes\n // MDL-12346, this could be called from lesson mod which has its own base class =(\n /*\n if (method_exists($this, 'try_importing_using_qtypes') && ($try_question = $this->try_importing_using_qtypes( $lines, $question, $answertext ))) {\n return $try_question;\n }\n\t\t*/\n if ($description) {\n $question->qtype = 'title';\n }\n elseif ($answertext == '') {\n $question->qtype = 'extended_text';\n }\n elseif ($answertext{0} == \"#\"){\n $question->qtype = 'numerical';\n\n\t\t} elseif (strpos($answertext, \"~\") !== false) {\n\t\t\t\n\t\t\t// only Multiplechoice questions contain tilde ~\n\t\t\tif (strpos($answertext,\"=\") === false) {\n\t\t\t\t\n\t\t\t\t// multiple answers are enabled if no single answer is 100% correct\n\t\t\t\t$question->qtype = 'choice_multiple'; \n\t\t\t} else {\n\t\t\t\t\n\t\t\t\t// only one answer allowed (the default)\n\t\t\t\t$question->qtype = 'choice';\n\t\t\t}\n }" ]
[ "0.67647475", "0.6611686", "0.642184", "0.6329803", "0.62812215", "0.6178118", "0.6178048", "0.6137475", "0.61118644", "0.605307", "0.6022511", "0.59932786", "0.59828264", "0.59484756", "0.59094137", "0.5902385", "0.5902385", "0.5882401", "0.58567095", "0.58567095", "0.5853944", "0.58472925", "0.5839107", "0.58301437", "0.58024657", "0.5781651", "0.5760664", "0.57544833", "0.5749592", "0.57468134", "0.57464063", "0.57392216", "0.5736854", "0.57174844", "0.57174844", "0.57112265", "0.57111746", "0.57068235", "0.5695857", "0.5687672", "0.5676367", "0.5640897", "0.5635434", "0.5625877", "0.5622332", "0.5617693", "0.56060976", "0.56052965", "0.56004214", "0.55977625", "0.55977625", "0.5585121", "0.55698645", "0.5566334", "0.55614674", "0.55597836", "0.5552466", "0.5547656", "0.5545757", "0.5545712", "0.5544489", "0.5544489", "0.55403566", "0.5526755", "0.54827994", "0.5479783", "0.5469647", "0.5468586", "0.54625475", "0.5455136", "0.5450644", "0.5447303", "0.5445693", "0.54336745", "0.5432732", "0.54302466", "0.54116803", "0.54107976", "0.5410639", "0.5409061", "0.5401912", "0.5394588", "0.5379657", "0.5375777", "0.53713375", "0.53565574", "0.53552866", "0.53544104", "0.5351749", "0.53489727", "0.5346427", "0.53454673", "0.5343864", "0.53412855", "0.5323777", "0.53132766", "0.53026885", "0.5301496", "0.5297988", "0.5297359" ]
0.6106585
9
end showQuestions() method Allows read only access to Question Array Added in v3 Result object
function getQuestions() { return $this->aQuestion; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function showQuestions()\n\t{\n\t\tif($this->TotalQuestions > 0)\n\t\t{#be certain there are questions\n\t\t\tforeach($this->aQuestion as $question)\n\t\t\t{#print data for each \n\t\t\t\techo $question->Number . ') '; # We're using new Number property instead of id - v2\n\t\t\t\techo $question->Text . ' ';\n\t\t\t\tif($question->Description != ''){echo '(' . $question->Description . ')';}\n\t\t\t\techo '<br />';\n\t\t\t\t$question->showAnswers() . '<br />'; #display array of answer objects\n\t\t\t}\n\t\t}else{\n\t\t\techo 'There are currently no questions for this survey.';\t\n\t\t}\n\t}", "public function show(Questions $questions)\n {\n //\n }", "public function displayQuestions() {\n $listQuestions = array();\n $sql = 'SELECT `id`, `question`, `picture` FROM `' . self::PREFIX . 'question`';\n $result = $this->db->query($sql);\n $listQuestions = $result->fetchAll(PDO::FETCH_OBJ);\n return $listQuestions;\n }", "function showQuestions()\n {\n if($this->TotalQuestions > 0)\n {#be certain there are questions\n foreach($this->aQuestion as $question)\n {#print data for each \n\n echo '\n\n <div class=\"panel panel-primary\">\n <div class=\"panel-heading\">\n <h3 class=\"panel-title\">' . $question->Text . '</h3>\n </div>\n <div class=\"panel-body\">\n <p>' . $question->Description . '</p>\n ' . $question->showAnswers() . ' \n </div>\n </div>\n\n ';\n\n }\n }else{\n echo \"There are currently no questions for this survey.\";\t\n } \n\t}", "public function showResults(){\n $this->extractQuestions();\n }", "public function questions()\n {\n\n $client = new \\GuzzleHttp\\Client();\n\n $request = $client->get('http://localhost/quizci/questions');\n $response = $request->getBody()->getContents();\n\n $res_json_decode = json_decode($response);\n $data_collection = collect($res_json_decode->questions);\n //dd($data_collect);\n\n return View('admin.pages.questions', compact('data_collection'));\n }", "public function getQuestions() {\r\n\t\t\treturn $this->_arrQuestions;\r\n\t\t}", "public function getQuestions()\n {\n $title = \"Questions\";\n $subtitle = \"Here you will find all the questions!\";\n $view = $this->di->get(\"view\");\n $pageRender = $this->di->get(\"pageRender\");\n\n // Get all the questions\n $questions = $this->di->get(\"questionModel\")->getQuestions();\n\n // Get number of answers\n $answers = [];\n foreach ($questions as $question) {\n $ans = $this->di->get(\"answerModel\")->getAnswersWhere(\"questionId\", $question->id);\n $answers[$question->id] = count($ans);\n }\n\n $data = [\n \"questions\" => $questions,\n \"subtitle\" => $subtitle,\n \"noOfAnswers\" => $answers,\n ];\n\n $view->add(\"pages/questions\", $data);\n $pageRender->renderPage([\"title\" => $title]);\n }", "public function getQuestions()\n {\n $title = \"Questions\";\n $view = $this->di->get(\"view\");\n $pageRender = $this->di->get(\"pageRender\");\n $post = new Post($this->di->get(\"db\"));\n $user = new User($this->di->get(\"db\"));\n $tag = $this->di->get(\"tag\");\n\n $questions = $post->getQuestions();\n foreach ($questions as $question) {\n $question->tags = $tag->getPostTags($question->id);\n $question->user = $user->findAllWhere(\"id = ?\", [$question->userId])[0];//$user->find(\"id\", $question->userId);\n }\n\n $pag = $this->getPagination($questions);\n $view->add(\"comment/question-list\", [\n \"questions\" => array_slice($questions, $pag[\"offset\"], $pag[\"length\"], true),\n \"pag\" => $pag,\n ]);\n return $pageRender->renderPage([\"title\" => $title]);\n }", "public function get_questions() {\n return $this->questions;\n }", "public function getQuestions()\n {\n return DB::table('questionbank_quizzes')\n ->where('quize_id','=',$this->id)\n ->orderBy('subject_id')\n ->get();\n }", "public function getQuestions()\n {\n return $this->questions;\n }", "public function getQuestions()\n {\n return $this->questions;\n }", "public function viewQuestionsAction() {\n\n $all = $this->comments->findAll();\n\n $res = [];\n foreach ($all as $value) {\n if ($this->commentanswer->isAnswer($value->id) == null) {\n $res[] = $value;\n }\n }\n\n /**\n * Alter object by connecting comment tags, adding user information from the database and filtering markdown on the comment object.\n */\n $res = $this->doAll($res);\n\n /**\n * Prepare the view.\n */\n $this->views->add('comment/commentsdb', [\n 'comments' => $res,\n 'title' => 'Browse Discussions',\n 'content' => \"\",\n ]);\n }", "public function getQuestions() {\r\n\t\treturn $this->questions;\r\n\t}", "public function index()\n {\n //\n //* id, question_code, question_specific, question_detail\n //* is_private, is_answered, patient_id, created_at, updated_at\n\n// $questions = Question::all();\n $questions = Question::orderBy('question_code', 'asc')->get();\n\n $answered_questions = array();\n $unanswered_questions = array();\n $answersList = array();\n foreach ($questions as $question ){ \n // Code Here\n if( $question->is_answered == 'unanswered' ){\n array_push($unanswered_questions, $question);\n }else{\n array_push($answered_questions, $question); \n }\n //echo $question->is_answered;\n }\n foreach ($questions as $question) {\n $answers = Question::find($question->id)->answers;\n //asso array need foreach\n //get all answers of this question\n foreach ($answers as $answer) {\n array_push($answersList, $answer);\n //$answer is all answers of question & $answer is json\n }\n }\n return view('Q&A.index', compact('unanswered_questions', 'answered_questions','answersList'));//,'specialties'));\n// return compact('unanswered_questions', 'answered_questions','answersList');//,'specialties');\n\n \n }", "public function show(Question $question)\n {\n\n }", "public function show(question $question)\n {\n //\n }", "public function showQuestions()\n\t{\n\t\t$program = $this->schoolService->findProgramById($this->profile->program_id);\n\t\t$data = array(\n\t\t\t'answers' => $this->profileService->getAnswersForProfile($this->profile)->toArray(),\n\t\t\t'profile' => $this->profile,\n\t\t\t'program' => $program,\n\t\t\t'questionMax' => Config::get('profile.questions.max'),\n\t\t\t'questions' => $this->profileService->getQuestionsForType($program->type_id)->lists('label', 'id')\n\t\t);\n\n\t\treturn new QuestionView($data);\n\t}", "public function getQuestions()\n {\n if (isset($_GET[\"user_id\"]) && isset($_GET[\"action_id\"]) && isset($_GET[\"attempted\"]) && isset($_GET[\"oq\"] ) ) {\n\n $user_id = $this->input->get('user_id');\n $action_id = $this->input->get('action_id');\n $attempted = $this->input->get('attempted');\n $oq = $this->input->get('oq');\n\n $questions = $this->Question_model->getQuestions($user_id, $action_id, $attempted, $oq);\n\n //var_dump($questions);\n\n foreach ($questions as $key => $question) {\n\n $questions[$key]['answer_id'] = null;\n \n if($answer_question = $this->Answer_model->getAnswer($question['question_id'])){\n if ($answer_question['isRecorded'] == 1) {\n $questions[$key]['answer_id'] = $answer_question['answer_id'];\n }\n }\n\n if ($user_id == \"142566\") $questions[$key]['answer_id'] = 18;\n\n $questions[$key]['listen_before'] = false;\n if($this->Question_model->checkUserQuestion($user_id, $question['question_id']))\n $questions[$key]['listen_before'] = true;\n \n $questions[$key]['like'] = false;\n $questions[$key]['dislike'] = false;\n $questions[$key]['report'] = false;\n $questions[$key]['pref'] = false;\n \n if($response = $this->Question_model->checkUserResponse($user_id, $question['question_id'])) {\n $questions[$key]['pref'] = true;\n $questions[$key][$response['response']] = false;\n }\n }\n echo json_encode(array('result' => array('error' => false, 'length' => sizeof($questions), 'questions' => $questions)));\n return;\n }\n else echo json_encode(array('result' => array('error' => true, 'message' => 'wrong params')));\n }", "public function show(Question $question)\n {\n //\n }", "public function show(Question $question)\n {\n //\n }", "public function show(Question $question)\n {\n //\n }", "public function show(Question $question)\n {\n //\n }", "public function show(Question $question)\n {\n //\n }", "public function show(Question $question)\n {\n }", "public function questions() {\n $questions = DB::select('select Question, AnswerType, rowid from Questions WHERE AnswerType<>\"mcq-radio\" AND AnswerType<>\"mcq-dropDown\";');\n\n // Obtain a list of all questions that are mcq\n $MCQ = DB::select('select Question, AnswerType, rowid from Questions WHERE AnswerType=\"mcq-radio\" OR AnswerType=\"mcq-dropDown\";');\n $mcqOptions = DB::select('select Qid, mcqOption from mcqOptions');\n\n return view('userResponseArea', compact(['questions','MCQ', 'mcqOptions']));\n }", "public function index(Quiz $quiz)\n {\n return $quiz->questions;\n }", "public function index(){\n return new QuestionCollection(Question::all());\n }", "function ipal_get_questions_student($qid){\r\n\r\n global $ipal;\r\n global $DB;\r\n global $CFG;\r\n\t\t$q='';\r\n\t\t$pagearray2=array();\r\n\t\t\r\n $aquestions=$DB->get_record('question',array('id'=>$qid));\r\n\t\t\tif($aquestions->questiontext != \"\"){ \r\n\r\n\t$pagearray2[]=array('id'=>$qid, 'question'=>$aquestions->questiontext, 'answers'=>ipal_get_answers_student($qid));\r\n\t\t\t\t\t\t\t}\r\n return($pagearray2);\r\n}", "public function show(){\n \t\treturn view('FilterQuestions') ;\n \t}", "private function viewQuestion() : void\n {\n $allQuestions = $this->questionRepository->list(['id', 'question']);\n\n if( $this->questionRepository->hasUnAnsweredQuestions() ) {\n\n $this->transformQuestionsList($allQuestions);\n $this->chooseQuestionToAnswer();\n\n } elseIf(!$allQuestions->count()) {\n\n $this->console->info( 'No questions added. Add new question to start answering');\n\n } else {\n $this->showProgress();\n }\n }", "public function show(Question_Test $question_Test)\n {\n //\n }", "public static function getAllQuestionsAndAnswers(){\n $returnArray = array(\n 'Result' => 1,\n 'Reason' => \"\",\n 'QuestionResponses' => array()\n );\n\n $questionObjects = question::getAllQuestions();\n\n if(count($questionObjects) > 0){\n $responsesArray = self::buildQuestionsAndAnswersArray_Admin($questionObjects);\n $returnArray['QuestionResponses'] = $responsesArray;\n }\n else{\n $returnArray['Result'] = 0;\n $returnArray['Reason'] = \"No questions were found\";\n }\n\n return $returnArray;\n }", "public function displayNotAnsweredQuestion()\n {\n\n }", "private function extractQuestions(){\n $this->selectQuestions();\n $num=mysqli_num_rows($this->arrResultQuestions);\n for($i=0; $i<$num; $i++):\n $row=mysqli_fetch_object($this->arrResultQuestions);\n $misc=new misc();\n $fromWho=$misc->singleSelection('username', 'users', 'user_id', '=', $row->user_id);\n ?>\n <article class=\"homePageQuestions homePageArticle<?php echo $i; ?>\">\n <h3 class=\"homePageQuestionHeading\"><a href=\"?questionBody=<?php echo $row->post_id; ?>\"><?php echo $row->name; ?></a></h3>\n <span class=\"homePageQuestionAddFrom\"><span class=\"glyphicon glyphicon-user\"></span><a href=\"?user=<?php echo $row->user_id; ?>\"><?php echo $fromWho; ?></a></span>\n <span class=\"homePageQuestionAddTime\"><span class=\"glyphicon glyphicon-time\"></span><?php echo date('d.m.Y в H:i', $row->timeadded); ?></span>\n <span class=\"homePageQuestionAddTime\"><span class=\"glyphicon glyphicon-tag\"></span><?php echo $this->selectCategory($row->cat_id); ?></span>\n <span class=\"homePageQuestionVisits\"><?php echo $row->visits ?> Показвания</span>\n <?php\n $this->showingQuestionsFooter($row->lastanswered, $row->lastanswer, $row->post_id);\n ?>\n </article>\n <?php\n endfor;\n }", "public function getAnswers();", "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 index()\n {\n return response()->json(Question::all()->toArray());\n }", "public function show(Answers $answers)\n {\n //\n }", "private function selectQuestions(){\n $this->selectLimit();\n $this->arrResultQuestions=parent::selectSomething('*', 'posts', '', '', '', null, null, null, null, 'lastanswer',\n 'desc', $this->questionsPerPage);\n }", "function Show(){\n $st = $this->pdo->prepare('SELECT * FROM answersq');\n $st->execute();\n $result = $st->fetchAll(PDO::FETCH_OBJ);\n return $result;\n }", "public function question()\n {\n $question = \\App\\Question::orderby('created_at', 'desc')->get();\n return view('question.get', [\n 'questions' => $question,\n ]);\n }", "public function questions ( ) {\n $hooks = hooks::all();\n\n $title = \"Questions\";\n return view('pages.questions')->with([\n 'title' => $title,\n 'hooks' => $hooks\n ]);\n }", "public function viewAction($qid=null)\n {\n // Define array for presentaion storage\n $presentation = array();\n \n // Get the question\n $qry = \"SELECT * FROM mvc_VQuestion\n WHERE commentTypeId=1\n AND id=?\n ORDER BY created DESC\";\n\n $all = $this->db->executeFetchAll($qry,array($qid));\n\n $question = json_decode(json_encode($all),TRUE); \n \n // Separate the defined tags for this question.\n $tags = $question[0]['tags'];\n $tagsSep = explode(\",\", $tags);\n $tagIdName = array();\n \n foreach ($tagsSep as $key => $val) {\n $tag_id = $this->getTagIdAction($val);\n $tagIdName[] = array('id' => $tag_id, 'name' => $val);\n }\n\n // Store question to presentation array\n $presentation['question'] = $question[0];\n $presentation['tags'] = $tagIdName;\n \n // Get the answers\n $qry = \"SELECT * FROM mvc_VQuestion\n WHERE commentTypeId=2\n AND questionId=?\";\n \n $all = $this->db->executeFetchAll($qry,array($qid));\n \n $answers = array();\n\n foreach ($all as $answer) {\n $answers[] = $answer;\n }\n\n $answers = json_decode(json_encode($answers),TRUE); \n \n // Store answers to presentation array\n $presentation['answers'] = $answers;\n \n // Get the comments\n $qry = \"SELECT * FROM mvc_VQuestion\n WHERE commentTypeId=3\n AND questionId=?\";\n $all = $this->db->executeFetchAll($qry,array($qid));\n $comments = array();\n foreach ($all as $comment) {\n $comments[] = $comment;\n }\n $comments = json_decode(json_encode($comments),TRUE); \n \n // Store answers to presentation array\n $presentation['comments'] = $comments;\n \n \n $this->theme->setTitle($question[0]['title']);\n $this->views->add('comment/view_question', [\n 'presentation' => $presentation,\n ]);\n\n }", "public function getquestion()\r\n {\r\n \r\n $con = new Connection();\r\n $conn = $con->getConnection();\r\n $ques = array();\r\n $i = 0;\r\n \r\n $query = \"SELECT `id`,`question_id`, `exam_id`,`subject_id`, `node_id`,`question`,`created_date` FROM `question`\";\r\n $result = mysqli_query($conn, $query);\r\n if (mysqli_num_rows($result) > 0) {\r\n while ($row = mysqli_fetch_assoc($result)) {\r\n $q = new question();\r\n //$ea->setId( $row ['id']);\r\n $q->setQuestion_id( $row ['question_id']);\r\n $q->setExam_id( $row ['exam_id']);\r\n $q->setSubject_id( $row ['subject_id']);\r\n $q->setNode_id( $row ['node_id']);\r\n $q->setQuestion( $row ['question']);\r\n \r\n }\r\n \r\n \r\n $ques[$i ++] = array(\r\n \"id\" => $row[\"question_id\"],\r\n \"ques\" => $q\r\n );\r\n \r\n }\r\n return $ques;\r\n \r\n }", "public function questionView($questions, $searchQuery = null) : object\n {\n $page = $this->di->get(\"page\");\n \n $question = new Question();\n $question->setDb($this->di->get(\"dbqb\"));\n\n $tag = new Tag();\n $tag->setDb($this->di->get(\"dbqb\"));\n\n foreach ($questions as $q) {\n $answer = new Answer();\n $answer->setDb($this->di->get(\"dbqb\"));\n $q->answersAmount = count($answer->findAllWhere(\"questionId = ?\", $q->id));\n $q->tags = $tag->findAllWhere(\"questionId = ?\", $q->id);\n };\n\n $form = new SearchForm($this->di);\n $form->check();\n\n $page->add(\"anax/v2/article/default\", [\n \"content\" => $form->getHTML(),\n ], \"sidebar-right\");\n\n $page->add(\"question/view-all\", [\n \"questions\" => $questions,\n \"searchQuery\" => $searchQuery ?? null\n ]);\n\n return $page->render([\n \"title\" => \"Topics\",\n ]);\n }", "public function index(Question $question){\n return $question->answers()->with('user')->simplePaginate(3);\n }", "public function index()\n {\n return new QuestionCollection(Question::paginate(10));\n }", "private function json_retrieveQuestions()\n {\n // Gets the input data from the Front-End\n $input = json_decode(file_get_contents(\"php://input\"));\n// $surveyID = $_POST['surveyID'];\n $surveyID= $input->surveyID;\n\n // Gets Survey Details\n $surveyQuery = \"SELECT surveyTitle, surveyDescription FROM Surveys WHERE surveyID = :surveyID;\";\n $surveyParams = [\n \":surveyID\" => $surveyID,\n ];\n // This decodes the JSON encoded by getJSONRecordSet() from an associative array\n $resSurveyDetails = json_decode($this->recordset->getJSONRecordSet($surveyQuery, $surveyParams), true);\n $surveyTitle = $resSurveyDetails['data']['0']['surveyTitle'];\n $surveyDescription = $resSurveyDetails['data']['0']['surveyDescription'];\n\n // Gets Questions Details\n $questionsQuery = \"SELECT questionID, question, mediaPath FROM Questions WHERE surveyID = :surveyID;\";\n $questionsParams = [\n \":surveyID\" => $surveyID,\n ];\n\n // This decodes the JSON encoded by getJSONRecordSet() from an associative array\n $resQuestions = json_decode($this->recordset->getJSONRecordSet($questionsQuery, $questionsParams), true);\n $questionID = $resQuestions['data']['0']['questionID'];\n $question = $resQuestions['data']['0']['question'];\n $mediaPath = $resQuestions['data']['0']['mediaPath'];\n\n $nextpage = null;\n\n $res['status'] = 200;\n $res['message'] = \"ok\";\n $res['next_page'] = $nextpage;\n $res['surveyTitle'] = $surveyTitle;\n $res['surveyDescription'] = $surveyDescription;\n $res['questionID'] = $questionID;\n $res['question'] = $question;\n $res['mediaPath'] = $mediaPath;\n\n return json_encode($res);\n }", "public function index()\n {\n // $questions = Question::all();\n // dd($questions); \n return view('questions::index');\n }", "private function question()\n\t{\n\t\t$this->qns['questionnaire']['questionnairecategories_id'] = $this->allinputs['questioncat'];\n\t\t$this->qns['questionnaire']['questionnairesubcategories_id'] = $this->allinputs['questionsubcat'];\n\t\t$this->qns['questionnaire']['label'] = $this->allinputs['question_label'];\n\n\n\t\t$this->qns['questionnaire']['question'] = $this->allinputs['question'];\n\t\t$this->qns['questionnaire']['has_sub_question'] = $this->allinputs['subquestion'];\n\n\t\tif( $this->qns['questionnaire']['has_sub_question'] == 0 )\n\t\t{\n\t\t\t$this->qns['answers']['answer_type'] = $this->allinputs['optiontype'];\n\t\t}\n\n\t\t$this->qns['questionnaire']['active'] = 1;\n\n\t\tif( $this->qns['questionnaire']['has_sub_question'] == 0 ){\n\t\t\t//This code must be skipped if sub_question is 1\n\t\t\t$optionCounter = 0;\n\t\t\tforeach ($this->allinputs as $key => $value) {\n\n\t\t\t\tif( str_is('option_*', $key) ){\n\t\t\t\t\t$optionCounter++;\n\t\t\t\t\t$this->qns['answers'][$optionCounter] = ( $this->qns['answers']['answer_type'] == 'opentext' ) ? 'Offered answer text' : $value;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public function getQuestion()\n {\n // TODO: Implement getQuestion() method.\n }", "function getQuestions() { \n\ttry {\n\t\t$questions = ORM::for_table('questions')->find_many();\n\t\tif (!count($questions)) { \n\t\t\treturn 0;\n\t\t}\n\t\t$theQuestions = array();\n\t\tforeach ($questions as $question) { \n\t\t\t$theQuestion = array();\n\t\t\t$theQuestion['id'] = $question->id;\n\t\t\t$theQuestion['text'] = $question->text;\n\t\t\t$theQuestion['answer1'] = $question->answer1;\n\t\t\t$theQuestion['answer2'] = $question->answer2;\n\t\t\t$theQuestions[] = $theQuestion;\n\t\t}\n\t\treturn $theQuestions;\n\t} catch (Exception $e) { \n\t\treturn 0;\n\t}\n}", "function answers()\r\n {\r\n $returnArray = array();\r\n $db =& eZDB::globalDatabase();\r\n $db->array_query( $questionArray, \"SELECT ID FROM eZQuiz_Answer WHERE AlternativeID='$this->ID'\" );\r\n\r\n for ( $i = 0; $i < count( $questionArray ); $i++ )\r\n {\r\n $returnArray[$i] = new eZQuizAnswer( $questionArray[$i][$db->fieldName( \"ID\" )], true );\r\n }\r\n return $returnArray;\r\n }", "public function index()\n {\n return Question::latest()->paginate(90);\n }", "public function index()\n {\n\n \n if(userController::checklogin() != 1){\n return redirect('/login');\n }\n\n\n // $questions = question::leftJoin('question_answers', 'questions.id', 'question_answers.question_id')->select('questions.*', 'questions.id as qid' , 'question_answers.*', 'question_answers.id as aid')->get();\n \n $questions = question::all();\n\n foreach($questions as $key => $question){\n $questions[$key]->first_answer = $question->answers->first()->first_answer;\n $questions[$key]->second_answer = $question->answers->first()->second_answer;\n $questions[$key]->third_answer = $question->answers->first()->third_answer;\n $questions[$key]->fourth_answer = $question->answers->first()->fourth_answer;\n $questions[$key]->correct_answer = $question->answers->first()->correct_answer;\n }\n\n // return $questions;\n\n return view('question')->with(['questions' => $questions]);\n }", "public function getQuestionsEntities() : array;", "function showAnswers()\n\t{\n\t\tif($this->TotalAnswers != 1){$s = 's';}else{$s = '';} #add 's' only if NOT one!!\n\t\techo \"<em>[\" . $this->TotalAnswers . \" answer\" . $s . \"]</em> \"; \n\t\tforeach($this->aAnswer as $answer)\n\t\t{#print data for each\n\t\t\techo \"<em>(\" . $answer->AnswerID . \")</em> \";\n\t\t\techo $answer->Text . \" \";\n\t\t\tif($answer->Description != \"\")\n\t\t\t{#only print description if not empty\n\t\t\t\techo \"<em>(\" . $answer->Description . \")</em>\";\n\t\t\t}\n\t\t}\n\t\tprint \"<br />\";\n\t}", "public function initQuestions()\n\t{\n\t\t$this->collQuestions = array();\n\t}", "public function Read(){\n if (isset($_SESSION['question'])) {\n unset($_SESSION['question']);\n\n }\n \n $model = Survey::getInstance();\n $questions = $model->get_questions();\n $answers = $model->get_answers();\n // var_dump($query);\n $this->smarty->assign('questions',$questions);\n $this->smarty->assign('answers',$answers);\n\n $this->smarty->show('survey');\n }", "public function view() {\n\t\t$quiz = $this->__quiz;\n\n\t\t// 基本的には自分の履歴を見ようとしていることが前提\n\t\t// 初期表示のテスト一覧から結果を見ようとしている=つまり編集権限は無し、自分のデータを見るパターン\n\t\t$userId = Current::read('User.id');\n\t\t$handleName = Current::read('User.handlename');\n\n\t\t// サマリIDが指定されているときだけが、上記の前提から異なる可能性があるパターン\n\t\t// 成績一覧画面(quiz_result/index)からこの画面へ来たときの遷移\n\t\t// この時は対象人物が自分ではないので適宜設定しなおす\n\t\t// サマリID\n\t\t$summaryId = null;\n\t\tif (isset($this->params['pass'][0])) {\n\t\t\t$summaryId = $this->params['pass'][0];\n\t\t\t$summary = $this->QuizAnswerSummary->findById($summaryId);\n\t\t\tif (! $summary) {\n\t\t\t\t$this->setAction('throwBadRequest');\n\t\t\t}\n\t\t\t$userId = $summary['QuizAnswerSummary']['user_id'];\n\t\t\t$handleName = $summary['User']['handlename'];\n\t\t}\n\n\t\tif (! $handleName) {\n\t\t\t$handleName = __d('quizzes', 'Guest');\n\t\t}\n\n\t\t// 採点する権限を持っていないなら 自分自身のデータであることが必要\n\t\t$canGrade = $this->canGrade($quiz);\n\t\tif (! $canGrade && $summaryId) {\n\t\t\t// 自分の?\n\t\t\tif (! $this->QuizzesOwnAnswer->checkOwnAnsweredSummaryId($summaryId)) {\n\t\t\t\t$this->setAction('throwBadRequest');\n\t\t\t}\n\t\t}\n\t\t// 初期設定\n\t\t$this->QuizResult->initResult($quiz);\n\t\t// 統合情報取得\n\t\t$general = $this->QuizResult->getAllResult();\n\n\t\t// 得点推移データ取得\n\t\t// そのサマリIDに該当する人物のサマリ履歴を取得する\n\t\t$scoreHistory = $this->_getScoreHistory($quiz, $userId, $summaryId);\n\n\t\t$conditions = array(\n\t\t\t'quiz_key' => $quiz['Quiz']['key'],\n\t\t);\n\t\tif ($userId) {\n\t\t\t$conditions['user_id'] = $userId;\n\t\t} else {\n\t\t\t// 非会員\n\t\t\t// サマリID指定\n\t\t\tif ($summaryId) {\n\t\t\t\t$conditions['id'] = $summaryId;\n\t\t\t} else {\n\t\t\t\t$conditions['id'] = $this->QuizzesOwnAnswer->getAnsweredSummaryIds();\n\t\t\t}\n\t\t}\n\t\t$this->paginate = array(\n\t\t\t'conditions' => $conditions,\n\t\t\t'page' => 1,\n\t\t\t'order' => array('QuizAnswerSummary.answer_number' => 'DESC'),\n\t\t\t'limit' => 10,\n\t\t\t'recursive' => -1,\n\t\t);\n\t\t$summaryList = $this->paginate('QuizAnswerSummary');\n\n\t\t$this->set('quiz', $quiz);\n\t\t$this->set('userId', $userId);\n\t\t$this->set('handleName', $handleName);\n\t\t$this->set('general', $general);\n\t\t$this->set('summaryList', $summaryList);\n\t\t$this->set('scoreHistory', $scoreHistory);\n\t}", "public function FAQs()\n {\n \n \n if ($this->Is_Instructor) {\n $type = \" AND `type_instructor`=1\";\n $cat_field = 'categories_instructor';\n \n $this->Default_Category_Id = 0;\n \n } else {\n $type = \" AND `type_customer`=1\";\n $cat_field = 'categories_customer';\n }\n \n # DECRYPT THE ENCRYPTED QUERY\n # ====================================================\n $eq = (Get('eq')) ? GetEncryptQuery(Get('eq'), false) : null;\n $cid = (isset($eq['cid'])) ? $eq['cid'] : $this->Default_Category_Id;\n $cat = (isset($eq['cat'])) ? $eq['cat'] : '';\n \n $special = (isset($eq['special'])) ? $eq['special'] : '';\n $special = ($eq == null) ? 'force_common' : $special;\n \n $category = ($cid != 0) ? \" AND CONCAT(',', `{$cat_field}`, ',') LIKE '%,{$cid},%' \" : '';\n $cat_title = ($cat) ? $cat : \"frequently asked questions\";\n \n $cat_special = '';\n if ($this->Use_Common_Category) {\n switch ($special) {\n case 'common':\n case 'force_common':\n $cat_special = \" AND `most_common`=1 \";\n break;\n }\n }\n \n if ($this->Use_Display_All_Category) {\n $category = ($cid == $this->All_Category_Id) ? '' : $category;\n }\n \n $records = $this->SQL->GetArrayAll(array(\n 'table' => $GLOBALS['TABLE_helpcenter_faqs'],\n 'keys' => '*',\n 'where' => \"`active`=1 $type $category $cat_special\",\n 'order' => 'sort_order ASC',\n ));\n if ($this->Show_Query) echo \"<br />LAST QUERY = \" . $this->SQL->Db_Last_Query;\n \n $tab_content_faqs = \"<ul class='faqs'>\";\n foreach ($records as $record) {\n $tab_content_faqs .= \"\n <li>\n <a class='faq_q'>{$record['question']}</a>\n <div class='faq_a' style='display: none;'>{$record['answer']}</div>\n </li>\";\n }\n $tab_content_faqs .= \"</ul>\";\n \n $output = \"\n <div class='faq_title'>{$cat_title}</div>\n <div id='helpcenter_faq'>$tab_content_faqs</div>\";\n \n return $output;\n }", "function listOpenQuestions() {\n\t\tglobal $HTML;\n\t\tglobal $page;\n\n\n\t\t$_ = '';\n\n\t\t// only show todos if user has access\n\t\tif($page->validatePath(\"/janitor/admin/qna\")) {\n\n\t\t\t$IC = new Items();\n\t\t\t$qnas = $IC->getItems(array(\"itemtype\" => \"qna\", \"where\" => \"qna.answer IS NULL\", \"extend\" => true));\n\n\t\t\t$_ .= '<div class=\"qnas\">';\n\t\t\t$_ .= '<h2>Unanswered questions</h2>';\n\n\t\t\tif($qnas):\n\t\t\t\t$_ .= '<ul class=\"qnas\">';\n\t\t\t\tforeach($qnas as $qna):\n//\t\t\t\t\tif(!$qna[\"answer\"]):\n\t\t\t\t\t$_ .= '<li class=\"qna qna_id:'.$qna[\"id\"].'\">';\n\t\t\t\t\t\t$_ .= '<h3>'.stringOr($HTML->link($qna[\"name\"], \"/janitor/admin/qna/edit/\".$qna[\"id\"], array(\"target\" => \"_blank\")), $qna[\"name\"]).'</h3>';\n\t\t\t\t\t\tif($qna[\"about_item_id\"]):\n\t\t\t\t\t\t\t$related_item = $IC->getItem(array(\"id\" => $qna[\"about_item_id\"], \"extend\" => true));\n\t\t\t\t\t\t\t$_ .= '<p>Asked about: '. strip_tags($related_item[\"name\"]).'</p>';\n\t\t\t\t\t\tendif;\n\t\t\t\t\t$_ .= '</li>';\n//\t\t\t\t\tendif;\n\t\t\t\tendforeach;\n\t\t\t\t$_ .= '</ul>';\n\t\t\t\n\t\t\telse:\n\n\t\t\t\t$_ .= '<p>No questions</p>';\n\n\t\t\tendif;\n\n\t\t\t$_ .= '</div>';\n\n\t\t}\n\n\t\treturn $_;\n\t}", "function show_question($id, $slug)\n\t{\n\t\t$this->form_validation->set_rules('id_questions', 'Id_Questions', 'required');\n\t\t$this->form_validation->set_rules('body', 'Body', 'required');\n\t\tif ($this->form_validation->run() == false) {\n\n\t\t\t$this->model_module->_set_viewers($id);\n\t\t\t$data['question'] = $this->model_module->questions_id('uuid_question', $id);\n\t\t\t$questions_id = $data['question']['id'];\n\t\t\t$data['module'] = $this->model_module->get_module($questions_id, $id);\n\t\t\t$queryGetquestion = \"SELECT `tb_questions` .*, `tbl_users`.`name`,`tbl_users`.`user_email`\n\t\t\t\t\tFROM `tb_questions` JOIN `tbl_users` \n\t\t\t\t\tON `tb_questions`.`id_user` = `tbl_users`. `user_id`\n\t\t\t\t\tlEFT JOIN `tb_sub_module` \n\t\t\t\t\tON `tb_questions`.`id_sub_module` = `tb_sub_module`.`id`\n\t\t\t\t\tWHERE `tb_questions`.`id` = $questions_id\n\t\t\t\";\n\t\t\t$query = $this->db->query($queryGetquestion)->row_array();\n\t\t\t$data['get_question'] = $query;\n\t\t\t$answerQuery = \"SELECT `tb_answers` .*, `tbl_users`.`name`,`tbl_users`.`user_email`\n\t\t\t\tFROM `tb_answers`\n\t\t\t\tJOIN `tb_questions` \n\t\t\t\tON `tb_answers`.`id_questions` = `tb_questions`.`id`\n\t\t\t\tJOIN `tbl_users`\n\t\t\t\tON `tb_answers`.`id_user` = `tbl_users`.`user_id`\n\t\t\t\tWHERE `tb_answers`.`id_questions` = $questions_id\n\t\t\t\tORDER BY `tb_answers`.`created_at` DESC\";\n\t\t\t$answer = $this->db->query($answerQuery)->result_array();\n\t\t\t$data['get_answer'] = $answer;\n\n\t\t\t// response_json($data);\n\t\t\t$this->load->view('layouts/header');\n\t\t\t$this->load->view('_partalis/navigation');\n\t\t\t$this->load->view('modules/show_questions', $data);\n\t\t\t$this->load->view('layouts/footer');\n\t\t} else {\n\t\t\t$this->model_module->addAnswers();\n\t\t\tredirect('user/module/show_question/' . $id . '/' . $slug);\n\t\t}\n\t}", "public function index()\n {\n $questions = Question::orderby('updated_at', 'desc')->paginate(10);\n\n foreach ($questions as $question) {\n $categories = DB::table('category_question')\n ->select('category_id')\n ->where('question_id', $question->id)\n ->get();\n\n $cate = '';\n\n foreach ($categories as $i => $category) {\n if ($i + 1 == count($categories)) {\n $cate = $cate . $category->category_id;\n } else {\n $cate = $cate . $category->category_id . ',';\n }\n }\n\n $question->categories = $cate;\n\n $answers = Answer::where('question_id', $question->id)->orderby('created_at')->get();\n\n foreach ($answers as $answer) {\n $answer->author = $answer->author->name;\n $comments = Comment::where('answer_id', $answer->id)->orderby('created_at')->get();\n foreach ($comments as $comment) {\n $comment->author = $comment->author->name;\n }\n $answer->comments = $comments;\n $answer->liked = $answer->liked();\n }\n\n $question->answers = $answers;\n $question->author = $question->author->name;\n }\n\n return response($questions, 200);\n }", "public function question()\n\t{\n\t\tif (getRole() == \"student\") {\n return view('permission');\n }elseif(getRole() == \"administrator\")\n {\n \t$inst_arr = $this->institution->getInstitutions();\n\t\t$subjects = $this->subject->getSubject();\n\t\t$category = $this->category->getCategory();\n\t\t$questions = $this->question->getQuestions();\n\t\t$questions_type=$this->question_type->getQuestionTypes();\n\t\t$passages=$this->passage->getPassage();\n\t\t$lessons = $this->lesson->getLesson();\n\t\t$list=Question::join('question_type','questions.question_type_id','=','question_type.id')\n\t\t\t\t->leftjoin('passage','questions.passage_id','=','passage.id')\n\t\t\t\t//->leftjoin('institution','questions.institute_id','=','institution.id')\n\t\t\t\t->select('questions.id as qid','questions.title as question_title','passage.title as passage_title','question_type.qst_type_text as question_type','questions.status as status')\n\t\t\t\t->orderby('qid')\n\t\t\t\t//->groupBy('institution')\n\t\t\t\t->get();\n\t\t//dd($list);\n\t\t\t}else{\n\t\t\t\t$inst_arr = $this->institution->getInstitutions();\n\t\t$subjects = $this->subject->getSubject();\n\t\t$category = $this->category->getCategory();\n\t\t$questions = $this->question->getQuestions();\n\t\t$questions_type=$this->question_type->getQuestionTypes();\n\t\t$passages=$this->passage->getPassage();\n\t\t$lessons = $this->lesson->getLesson();\n\t\t\t\t$list=Question::join('question_type','questions.question_type_id','=','question_type.id')\n\t\t\t\t->where(\"questions.institute_id\", Auth::user()->institution_id)\n\t\t\t\t->leftjoin('passage','questions.passage_id','=','passage.id')\n\t\t\t\t//->leftjoin('institution','questions.institute_id','=','institution.id')\n\t\t\t\t->select('questions.id as qid','questions.title as question_title','passage.title as passage_title','question_type.qst_type_text as question_type','questions.status as status')\n\t\t\t\t->orderby('qid')\n \t\t\t\t->get();\n\t\t//dd($list);\n\t\t\t\t \n\n\t\t\t}\n\t\treturn view('resources::question.list',compact('inst_arr', 'questions','subjects','category','lessons','questions_type','passages','list'));\n\t\n\t}", "public function indexAction()\n {\n $module = $this->params('module');\n $slug = $this->params('slug');\n // Get config\n $config = Pi::service('registry')->config->read($module);\n // Get user id\n $uid = Pi::user()->getId();\n // Get topic information from model\n $project = Pi::api('project', 'ask')->getProject($slug, 'slug');\n // Check slug set\n if (empty($project) || $project['status'] != 1) {\n $this->getResponse()->setStatusCode(404);\n $this->terminate(__('Project not set.'), '', 'error-404');\n $this->view()->setLayout('layout-simple');\n return;\n }\n // Set question info\n $where = array('status' => 1, 'type' => 'Q', 'project_id' => $project['id']);\n // check is project manager\n $userIsManager = false;\n if ($project['manager'] == $uid && $config['auto_approval'] == 2) {\n $userIsManager = true;\n $where['status'] = array(1, 2);\n }\n // Set paginator info\n $template = array(\n 'controller' => 'index',\n 'action' => 'index',\n );\n // Get question List\n $questions = $this->askList($where);\n // Get paginator\n $paginator = $this->askPaginator($template, $where);\n // Set view\n $this->view()->setTemplate('question-list');\n $this->view()->assign('questions', $questions);\n $this->view()->assign('paginator', $paginator);\n $this->view()->assign('project', $project);\n $this->view()->assign('config', $config);\n $this->view()->assign('userIsManager', $userIsManager);\n $this->view()->assign('title', __('List of all questions'));\n }", "public function index()\n {\n /*member variables*/\n $options = \"\";\n $optionValue = \"\";\n /* confirm if user had logged in in before and started a survey*/\n $user = Auth::user();\n $answer = Answer::where('user_id','=',$user->id)->get()->last();\n\n if( $answer != \"\" ){\n $question_id = $answer->question_id;\n $answer_string = $answer->string;\n\n /*get next question using function getNextQuestion in answer controller*/\n $displayQuestion = app('App\\Http\\Controllers\\AnswerController')->getNextQuestion($question_id,$answer_string);\n\n return $displayQuestion;\n /* use post question to work */\n }else{\n /*if user has never done a the survey before get first question*/\n /*fetch every paths*/\n $paths = Path::get(['id', 'name', 'sequence']);\n If( sizeof($paths)>0 ) {\n // fetch path where sequence == 1\n $sequence = \"1\";\n $path_id = \"\";\n $paths = Path::where('sequence',$sequence)->get(['id', 'name', 'sequence']);\n foreach( $paths as $path ){\n $path_id = $path->id;\n }\n $questions = Question::where('path_id' , '=' ,$path_id/*[['sequence', '=', $sequence], ['path_id', '=', 1]]*/)\n ->get(['id', 'string', 'sequence', 'path_id', 'user_id', 'progress', 'is_dichotomous', 'is_optional', 'has_options']);\n foreach ($questions as $questions) {\n /* use question id to pluck options for this specific question id*/\n $question_id = $questions->id;\n $sequence = $questions->sequence;\n /* if has options get the options div displays */\n if( $questions->has_options == true ){\n $input_type = \"option\";\n /*get the div displays*/\n $optionValue = app('App\\Http\\Controllers\\InputController')->index($input_type,$question_id);\n /*get the options*/\n $options = Option::where('question_id', $question_id)->pluck('options_string');\n\n }elseif ( $questions->has_multiple == true ){\n\n echo(\"get has multiple values\");\n\n }else if ( $questions->has_options == false && $questions->has_multiple == false ){\n\n echo(\"both values of has multiple and has options is false\");\n\n }else{\n\n echo(\"no reasonable input type \");\n\n }\n /* creating a new collection instance to fit our required output*/\n $question = new Collection;\n\n $question->push([\n 'id' => $questions->id,\n 'string' => $questions->string,\n 'sequence' => $sequence,\n 'options' => $options,\n 'optionValue' => $optionValue,\n\n ]);\n $question = $question[0];\n $question = json_encode($question);\n\n return $question;\n\n }\n\n }\n else{\n echo \"CANNOT COMPLETE REQUEST\";\n }\n }\n\n\n }", "public function show(Quiz $quiz)\n {\n //\n }", "public function getQuestionsAndAnswers()\n {\n $categoryId = $this->getRequest()->getParam('id', $this->getData('id'));\n if (!$categoryId) {\n $categoryId = Mage::getModel('faq/category')->getCollection()->getFirstItem()->getId();\n }\n $category = Mage::getModel('faq/category')->load($categoryId);\n $collection = $category->getFaqCollection();\n $collection->getSelect()->order('position ASC');\n return $collection;\n }", "public function index() {\n\n //$publishToken = $this->input->get('token');\n $publishToken = $this->uri->segment(3);\n $publish = $this->PublishModel->getByToken($publishToken);\n $publishId = $publish->id;\n $id = $publish->questionnaire_id;\n\n $questionnaire = $this->QuestionnaireModel->getQuestionnaireQuestions($id);\n\n $idArray = array();\n $questions = array();\n\n foreach ($questionnaire as $item) {\n\n if (in_array($item->question_id, $idArray)) {\n\n $col = array_search($item->question_id, array_column($questions, 'question_id'));\n\n array_push($questions[$col]['multiQuestions'], $item->muliquestion);\n\n } else {\n array_push($idArray, $item->question_id);\n\n $questionItem = array(\n 'question_id' => $item->question_id,\n 'question' => $item->question,\n 'type' => $item->type,\n 'multiQuestions' => array()\n );\n\n if ($item->type == 'multi') {\n array_push($questionItem['multiQuestions'], $item->muliquestion);\n }\n\n array_push($questions, $questionItem);\n }\n\n }\n\n $data['questions'] = $questions;\n $data['questionnaireId'] = $id;\n $data['publishId'] = $publishId;\n\n $this->load->view('common/header');\n $this->load->view('Questionnaire/QuestionnaireAttempt', array('data' => $data));\n $this->load->view('common/footer'); \n }", "public function index(){\n return view('frontend.questions.index');\n }", "function ipal_get_questions(){ \r\n \r\n\tglobal $ipal;\r\n\tglobal $DB;\r\n\tglobal $CFG;\r\n\t$q='';\t\r\n\t$pagearray2=array();\r\n\t // is there an quiz associated with an ipal?\r\n//\t$ipal_quiz=$DB->get_record('ipal_quiz',array('ipal_id'=>$ipal->id));\r\n\t\r\n\t// get quiz and put it into an array\r\n\t$quiz=$DB->get_record('ipal',array('id'=>$ipal->id));\r\n\t\r\n\t//Get the question ids\r\n\t$questions=explode(\",\",$quiz->questions);\r\n\t\r\n\t//get the questions and stuff them into an array\r\n\t\tforeach($questions as $q){\t\r\n\t\t\t\r\n\t\t $aquestions=$DB->get_record('question',array('id'=>$q));\r\n\t\t if(isset($aquestions->questiontext)){\r\n\t\t $pagearray2[]=array('id'=>$q, 'question'=>strip_tags($aquestions->questiontext), 'answers'=>ipal_get_answers($q));\r\n\t\t\t\t \r\n\t\t }\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t}\r\n \r\n\treturn($pagearray2);\r\n\t}", "public function get_research_questions()\n\t{\n\t\treturn $this->research_questions;\n\t}", "public function viewquestion($id='')\n {\n $this->middleware('auth');\n $prewere = [['id','=',$id],['status', '!=','2' ]];\n $data['questions']=Question_answers::getbyconditionall($prewere);\n foreach($data['questions'] as $key=> $d)\n {\n if(!empty($d['country']))\n { $gettagss = [['id', '=', $d['country']],['parent', '=', 0],['status', '=', '1']];\n $data['questions'][$key]['country']= country::getoptionmatchall2($gettagss);\n if(!empty($d['state']))\n { $gettagss2 = [['parent', '=', $d['country']],['id', '=', $d['state']],['status', '=', '1']];\n $data['questions'][$key]['state']= country::getoptionmatchall2($gettagss2);\n }else\n { \n $data['questions'][$key]['state']= 'Not Specified';\n }\n }else\n {\n $data['questions'][$key]['country']= 'Not Specified';\n $data['questions'][$key]['state']= 'Not Specified';\n }\n \n \n \n if(!empty($d['year']))\n { $were = array('status'=>'1','id'=>$d['year']);\n $data['questions'][$key]['year']= Years::getoptionmatchall2($were); \n }else\n { \n $data['questions'][$key]['year']= 'Not Specified';\n }\n \n if(!empty($d['grade']))\n { \n $were = array('id'=>$d['grade']);\n $data['questions'][$key]['grade']= Grades::getoptionmatchall2($were); \n }else\n {\n $data['questions'][$key]['grade']= 'Not Specified';\n }\n \n if(!empty($d['course']))\n {\n $gettagss2 = array('id'=>$d['course']);\n $data['questions'][$key]['course']=course::getoptionmatchall2($gettagss2);\n if(!empty($d['subject']))\n {\n $gettagssub22 = [['parent', '=', $d['course']],['id', '=', $d['subject']],['type', '=', '2']]; \n $data['questions'][$key]['subject']=course::getoptionmatchall2($gettagssub22); \n if(!empty($d['chapter']))\n {\n $gettagschap = [['parent', '=', $d['subject']],['id', '=', $d['chapter']],['type', '=', '3']];\n $data['questions'][$key]['chapter']=course::getoptionmatchall2($gettagschap);\n }else\n {\n $data['questions'][$key]['chapter']='Not Specified'; \n }\n }else\n {\n $data['questions'][$key]['subject']='Not Specified';\n $data['questions'][$key]['chapter']='Not Specified';\n }\n }else\n {\n $data['questions'][$key]['course']= 'Not Specified'; \n $data['questions'][$key]['subject']='Not Specified';\n $data['questions'][$key]['chapter']='Not Specified';\n }\n \n } \n \n $messags['message'] = \"Question data.\";\n $messags['status']= 1; \n $messags['data']= $data; \n echo json_encode($messags);\n die;\n }", "public function show(UserQuestion $userQuestion)\n {\n //\n }", "public function index()\n {\n $data = Question::get();\n return view('questions.index', ['questions' => $data]);\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}", "public function index()\n {\n // \\DB::enableQueryLog();\n\n $questions = Question::orderBy('created_at', $this->order)->with('quiz')->paginate($this->limit);\n return view('Question.index', compact('questions'));\n // \\DB::getQueryLog();\n }", "private function generate_question() {\n\n require_once(__DIR__ . '/csv_gd.class.php');\n $csv_filename = $this->configuration['base_data_dir'] . '/csv/' . $this->configuration['csv_input'];\n\n $data_quiz_src_obj = new csv_gd($csv_filename);\n $data_quiz_src_orig = $data_quiz_src_obj->csv_to_array();\n\n\n\n // filter unwanted question (tags, diff level, void )\n $data_quiz_src_filtered = $this->quiz_filter($data_quiz_src_orig, $this->configuration['tags'], $this->configuration['min_diffucult_level'], $this->configuration['max_diffucult_level']);\n\n\n // reverse question with_answer\n if ($this->configuration['reverse_question'] == TRUE) {\n $data_quiz_src_filtered = $this->quiz_switch_question_with_answer($data_quiz_src_filtered);\n }\n\n\n // generate question and answer\n $data_quiz_src = $this->quiz_generate($data_quiz_src_filtered);\n\n\n // randomize quiz \n if ($this->configuration['randomize_question'] == TRUE) {\n shuffle($data_quiz_src);\n }\n\n\n // restrict the maxium number of question\n if ($this->configuration['max_question_total'] > 0) {\n $this->configuration['max_question_total'] = min(count($data_quiz_src), $this->configuration['max_question_total']);\n } else {\n $this->configuration['max_question_total'] = count($data_quiz_src);\n }\n $this->question = array_slice($data_quiz_src, 0, $this->configuration['max_question_total']);\n\n $this->configuration['debug']=$this->debug;\n\n // return $this->quiz_questions;\n }", "public function index()\n {\n return QuestionResource::collection(Question::latest()->get()); //This line gets all the latest questions\n }", "public function test_all_questions_and_answers_route_when_questioner_is_admin() {\n // create a user\n $user = $this->getDataGenerator()->create_user();\n\n // create a course\n $course = $this->getDataGenerator()->create_course();\n\n // enrolment\n $this->getDataGenerator()->enrol_user($user->id, $course->id);\n\n // create a course module\n $videoquanda = $this->getDataGenerator()->create_module('videoquanda', array(\n 'course' => $course->id\n ));\n\n $now = time();\n\n $this->loadDataSet($this->createArrayDataSet(array(\n 'videoquanda_questions' => array(\n array('id', 'instanceid', 'userid', 'timecreated', 'timemodified' ,'seconds', 'text'),\n array(1, $videoquanda->id, 2, $now, $now + 1, 2, 'dummy text'),\n array(2, $videoquanda->id, $user->id, $now, $now + 1, 2, 'dummy text')\n )\n )));\n\n $this->setAdminUser();\n $client = new Client($this->_app);\n $client->request('GET', '/api/v1/' . $videoquanda->id . '/questions');\n $json = $client->getResponse()->getContent();\n $this->assertEquals(200, $client->getResponse()->getStatusCode());\n $array = (array) json_decode($json);\n $this->assertCount(2, $array);\n }", "public function index()\n {\n $questions = Question::all();\n return response()->json(['questions' => $questions],200);\n }", "public function set_questions (array $questions) {\n $this->questions = $questions;\n }", "function questionAction() {\n // Get question parameter\n $id = $this->_getParam('id');\n if (! $id) {\n // Redirect back to stats when no ID is found\n $this->_redirect(\"/index/stats\");\n return;\n }\n\n // Fetch question\n $mapper = new Model_Question_Mapper();\n $question = $mapper->findByPk($id);\n if (! $question instanceof Model_Question_Entity) {\n $this->render(\"question/notfound\");\n return;\n }\n \n $this->view->question = $question;\n\n switch ($question->getStatus()) {\n case \"moderation\" :\n $this->render(\"question/moderation\");\n break;\n case \"pending\" :\n $this->render(\"question/pending\");\n break;\n case \"active\" :\n $this->render(\"question/active\");\n break;\n case \"done\" :\n $this->render(\"question/done\");\n break;\n default :\n $this->render(\"question/notfound\");\n break;\n }\n }", "public function index()\n {\n //\n $this->authorize('viewAny', Question::class);\n $questions= Question::all();\n $quizzes= Quiz::all();\n return view('question.index', compact('questions','quizzes'));\n }", "function answerQuestions() {\n $this->layout = 'survey'; // use the more basic survey layout\n if (!$this->request->is('post')) {\n // if there is no data then show the initial view\n $survey = $this->Session->read('Survey.original'); // get the survey being used\n if (empty($survey['Question'])) { // if there are no questions then we don't need to show the question form at all\n $this->Session->write('Survey.progress', GDTA_ENTRY); // move progress forward and redirect to the runSurvey action\n $this->redirect(array('action' => 'runSurvey'));\n }\n $questions = $survey['Question'];\n $answers = ($this->Session->check('Survey.answers')) ? $this->Session->read('Survey.answers') : array(); // check to see if there are already answers in the session\n $choices = array(); // gather choices here keyed to each question id\n foreach ($questions as &$q) { // go through each question and look to see if there is an answer for it\n $checkId = $q['id'];\n $choices[$checkId] = array();\n if (isset($q['Choice'])) {\n foreach ($q['Choice'] as $choice) {\n $choices[$checkId][$choice['id']] = $choice['value'];\n }\n }\n foreach ($answers as $a) {\n if ($a['question_id'] == $checkId) {\n if ($q['type'] == MULTI_SELECT) {\n $q['answer'] = Set::extract('/id',$a['answer']);\n } else {\n $q['answer'] = $a['answer'];\n }\n break;\n }\n }\n }\n $this->set('questions', $questions); // send questions to the view\n $this->set('choices', $choices); // send choices for questions to the view, ordered for form elements\n } else { // we have form data so process it here\n if (isset($this->request->data['Answer'])) {\n // make sure we have answers in the data set\n $this->Session->write('Survey.answers', $this->request->data['Answer']); // write the answers to the session\n }\n $this->Session->write('Survey.progress', GDTA_ENTRY); // move progress forward and redirect to the runSurvey action\n $this->redirect(array('action' => 'runSurvey'));\n }\n }", "public function getQuestions()\n {\n if (!empty($this->questionsMetadata)) {\n foreach ($this->questions as $question) {\n /** @var Question $question */\n $data = $question->get_data();\n $metadata = $data->get_metadata();\n\n if (!isset($metadata)) {\n $qtype = $data->get_type();\n // HACK: longtextV2 doesn't have a corresponding entity, so force it to use the similar longtext one\n if ($qtype === 'longtextV2') {\n $qtype = 'longtext';\n }\n $metadataClass = '\\\\LearnosityQti\\\\Entities\\\\QuestionTypes\\\\'.$qtype.'_metadata';\n $metadata = new $metadataClass();\n $data->set_metadata($metadata);\n }\n\n $this->populateQuestionMetadata($metadata, $this->questionsMetadata);\n }\n }\n return array_merge(array_values($this->questions), $this->getRubricQuestions());\n }", "public function takeAll(){\n if(isset($_POST['submit'])){\n $post = filter_input_array(INPUT_POST, FILTER_SANITIZE_STRING);\n // var_dump($post);\n // Messages::setMsg('Answer is submitted', 'success');\n // Check if the answer is correct\n // echo 'session data:';\n\n // Put the submitted chosen answers into an array\n $choices = array();\n // Check the number of questions\n $num_q = count($_SESSION['quiz_data']);\n // Add the choices into an array\n for($i = 0; $i < $num_q; $i++){\n $choices[] = intval($post[\"choice{$i}\"]);\n }\n echo 'CHOICES';\n var_dump($choices);\n echo 'NUMBER OF QUESTIONS IS: ';\n echo $num_q;\n\n // Loop through the answers and count the correct answers\n $score = 0;\n $question = 0;\n foreach($choices as $choice){\n // $indexed_array = array_values($_SESSION['quiz_data']);\n $is_answer = array_values($_SESSION['quiz_data']) [$question][$choice]['is_answer'];\n if($is_answer == 1){\n $score++;\n $question++;\n }\n }\n Messages::setMsg(\"You scored {$score} out of {$num_q}\", 'success');\n return;\n } else {\n // !!! Need to modified, question.user_id does not exist amy more\n $this->query('SELECT questions.content, options.content, options.is_answer FROM questions JOIN users ON questions.user_id = users.id JOIN options ON options.question_id = questions.id WHERE users.id = :user_id');\n // Bind the user_id to the current user id\n $userId = $_SESSION['user_data']['id'];\n $this->bind(':user_id', $userId);\n $rows = $this->resultSetGroup();\n // echo '<pre>';\n // print_r($rows);\n // echo '</pre>';\n // var_dump($rows);\n // print_r($rows);\n // Store $row in session to check the answer once it is submitted\n if($rows){\n $_SESSION['quiz_data'] = $rows;\n } else {\n Messages::setMsg('No quizzes yet', 'error');\n }\n return $rows;\n }\n }", "public function index()\n {\n $questions = auth()->user()->questions()->paginate(10);\n return view('teacher.question.index',[\n 'questions' => $questions\n ]);\n }", "public static function answer_question(array $question);", "public function question()\n {\n return $this->hasMany('App\\Models\\Question', 'quizzes_id');\n }", "public function index()\n {\n $questions=(new Question)->getQuestions();\n return view('backend.question.index',compact('questions'));\n }", "public function show(Question $question)\n {\n return response()->json($question->toArray());\n }", "public function index()\n {\n $questions = Question::all();\n return view('questions.index');\n }", "function getQuestions(){\r\n\t\t$this->db->select('id,question,question_type');\r\n\t\t$this->db->from(TBL_MST_QUESTIONS);\r\n\t\t$this->db->where(array('is_active'=>true));\r\n\t\t$recordSet = $this->db->get();\r\n\t\t$data=$recordSet->result() ;\r\n\t\treturn $data;\r\n\t}", "public function index()\n {\n // Get questions list\n $questions = Questions::orderby('created_at', 'desc')->paginate(15);\n //return collection as resource\n return $questions;\n\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 }", "public function index()\n\t{\n\t\treturn Response::json(Interview::with(['responses', 'questionnaire'])->get(), 200);\n\t}" ]
[ "0.76211715", "0.7285375", "0.728393", "0.7129404", "0.71013916", "0.6997134", "0.6933704", "0.6924965", "0.6919201", "0.6808832", "0.67689335", "0.67650646", "0.67650646", "0.6745082", "0.67064756", "0.6635787", "0.6617572", "0.6598054", "0.6556605", "0.65353775", "0.6528611", "0.6528611", "0.6528611", "0.6528611", "0.6528611", "0.65172285", "0.651658", "0.65138745", "0.6509529", "0.64738977", "0.64462495", "0.6444041", "0.64250684", "0.6417748", "0.64006186", "0.6370474", "0.6362957", "0.63580704", "0.6354501", "0.634081", "0.6334241", "0.63268524", "0.63181865", "0.6302915", "0.6267876", "0.62551636", "0.62462634", "0.6234332", "0.62329066", "0.6209007", "0.62016326", "0.6199784", "0.6198394", "0.61906004", "0.617472", "0.6174616", "0.61682945", "0.6164662", "0.61575556", "0.6140886", "0.61377186", "0.61258125", "0.6114594", "0.61079663", "0.60812634", "0.60683346", "0.6062097", "0.6053991", "0.6049615", "0.60429037", "0.6042056", "0.60378504", "0.6035967", "0.6023096", "0.60175854", "0.60139555", "0.5996517", "0.5989724", "0.5982731", "0.5978415", "0.59736574", "0.59706926", "0.59664613", "0.594624", "0.5942681", "0.5938736", "0.59367836", "0.59351194", "0.5931388", "0.59310925", "0.59295344", "0.59261787", "0.5910188", "0.5893362", "0.5886965", "0.58864737", "0.58863103", "0.5882555", "0.5880581", "0.5874713" ]
0.7067579
5
end getQuestions() method Creates form for taking survey
function Form() { print '<form name="myform" action="' . THIS_PAGE . '" method="post">'; foreach($this->aQuestion as $question) {//print data for each $this->createInput($question); } print '<input type="hidden" name="SurveyID" value="' . $this->SurveyID . '" />'; print '<input type="submit" value="Submit!" />'; print '</form>'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "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 addQuestionAction()\n {\n\n if($this->UserauthenticationController->isAuthenticated()) {\n \n $form = new \\Mos\\HTMLForm\\CForm(array(), array(\n 'title' => array(\n 'type' => 'text',\n 'label' => 'Rubrik:',\n 'required' => true,\n 'validation' => array('not_empty'),\n ), \n 'text' => array(\n 'type' => 'textarea',\n 'label' => 'Text:',\n 'required' => true,\n 'validation' => array('not_empty'),\n ), \n 'tags' => array(\n 'type' => 'text',\n 'label' => 'Taggar (separeras med kommatecken):',\n 'required' => true,\n 'validation' => array('not_empty'),\n ), \n 'submit' => array(\n 'type' => 'submit',\n 'value' => 'Publicera fråga',\n 'callback' => function($form) {\n return true;\n }\n ),\n )\n );\n \n // Check the status of the form\n $status = $form->Check();\n \n // What to do if the form was submitted\n if($status === true) {\n \n $now = gmdate('Y-m-d H:i:s');\n \n $sql = \"INSERT INTO mvc_comments (commentTypeId, userId, userAcronym, userEmail, title, text, created) VALUES ('1', '\" . $_SESSION['user']->id . \"', '\" . $_SESSION['user']->acronym . \"', '\" . $_SESSION['user']->email . \"', '\" . $form->Value('title') . \"', '\" . $form->Value('text') . \"', '\" . $now . \"')\";\n $res = $this->db->executeFetchAll($sql);\n $qid = $this->db->lastInsertId();\n \n // Separate the defined tags for this question.\n $tagsSep = explode(\",\", strtolower($form->Value('tags')));\n foreach ($tagsSep as $key => $val) {\n if (!$this->tagExistAction($val)) {\n $trimmed = trim($val);\n $sql = \"INSERT INTO mvc_tag (name) VALUES (?)\";\n $res = $this->db->executeFetchAll($sql,array($trimmed));\n $tagId = $this->db->lastInsertId();\n }\n else {\n $tagId = $this->getTagIdAction($val);\n }\n $sql = \"INSERT INTO mvc_tag2question (idQuestion, idTag) VALUES (?, ?)\";\n $res = $this->db->executeFetchAll($sql,array($qid, $tagId));\n }\n \n $url = $this->url->create('') . '/question/view/' . $qid;\n $this->response->redirect($url);\n }\n \n // What to do when form could not be processed\n else if($status === false){\n header(\"Location: \" . $_SERVER['PHP_SELF']);\n }\n \n $this->theme->setTitle(\"Skapa en ny fråga\");\n \n $this->views->add('comment/form', [\n 'title' => \"Skapa en ny fråga\",\n 'content' => $form->getHTML()\n ]);\n \n }\n }", "function answerQuestions() {\n $this->layout = 'survey'; // use the more basic survey layout\n if (!$this->request->is('post')) {\n // if there is no data then show the initial view\n $survey = $this->Session->read('Survey.original'); // get the survey being used\n if (empty($survey['Question'])) { // if there are no questions then we don't need to show the question form at all\n $this->Session->write('Survey.progress', GDTA_ENTRY); // move progress forward and redirect to the runSurvey action\n $this->redirect(array('action' => 'runSurvey'));\n }\n $questions = $survey['Question'];\n $answers = ($this->Session->check('Survey.answers')) ? $this->Session->read('Survey.answers') : array(); // check to see if there are already answers in the session\n $choices = array(); // gather choices here keyed to each question id\n foreach ($questions as &$q) { // go through each question and look to see if there is an answer for it\n $checkId = $q['id'];\n $choices[$checkId] = array();\n if (isset($q['Choice'])) {\n foreach ($q['Choice'] as $choice) {\n $choices[$checkId][$choice['id']] = $choice['value'];\n }\n }\n foreach ($answers as $a) {\n if ($a['question_id'] == $checkId) {\n if ($q['type'] == MULTI_SELECT) {\n $q['answer'] = Set::extract('/id',$a['answer']);\n } else {\n $q['answer'] = $a['answer'];\n }\n break;\n }\n }\n }\n $this->set('questions', $questions); // send questions to the view\n $this->set('choices', $choices); // send choices for questions to the view, ordered for form elements\n } else { // we have form data so process it here\n if (isset($this->request->data['Answer'])) {\n // make sure we have answers in the data set\n $this->Session->write('Survey.answers', $this->request->data['Answer']); // write the answers to the session\n }\n $this->Session->write('Survey.progress', GDTA_ENTRY); // move progress forward and redirect to the runSurvey action\n $this->redirect(array('action' => 'runSurvey'));\n }\n }", "public function view_create_questioner_form() {\n \t// show all questioner\n \t// send questioner to form\n \treturn view(\"create_questioner\");\n }", "public function QuestionnaireForm(){\n\t\t$fields = new FieldList();\n\n\t\t$options = array(\n\t\t\t'Information' => \"I'm trying to find a specific piece of information\",\n\t\t\t'Question' => \"I'm looking for the answer to a particular question\",\n\t\t\t'Topic' => \"I'm researching a particular topic\",\n\t\t\t\"I'm just browsing\"\n\t\t\t);\n\n\t\t$fields->push(new OptionsetField('Purpose', 'What is the purpose of your visit to the IGF website today?', $options));\n\n\t\t// $fields->push()\n\n\t\t$fields->push($field = new TextAreaField('Information', 'What information are you looking for?'));\n\t\t$fields->push($field = new TextAreaField('Question', 'What question are you trying to find an answer to?'));\n\t\t$fields->push($field = new TextAreaField('Topic', 'What topic are you researching?'));\n\t\t$fields->push($field = new TextAreaField('Research', 'What is the purpose of your research?'));\n\t\t\n\n\t\t$actions = new FieldList(new FormAction('submit', 'Next'));\n\n\t\treturn new Form($this, 'QuestionnaireForm', $fields, $actions);\n\t}", "public function getPostCreateQuestion()\n {\n $title = \"Ask Question\";\n $view = $this->di->get(\"view\");\n $pageRender = $this->di->get(\"pageRender\");\n $user = $this->di->get(\"authHelper\")->getLoggedInUser();\n\n if (!$user) {\n $this->di->get(\"response\")->redirect(\"user/login\");\n }\n\n $form = new QuestionForm($this->di);\n $form->check();\n $view->add(\"comment/question-form\", [\"form\" => $form->getHTML([\"use_buttonbar\" => false])]);\n return $pageRender->renderPage([\"title\" => $title]);\n }", "function surveyQuestion($id = null) {\n $this->autoRender = false; // turn off autoRender because there is no view named surveyQuestion\n $this->layout = 'ajax'; // use the blank ajax layout\n if($this->request->is('ajax')) { // only proceed if this is an ajax request\n if (!$this->request->is('post')) {\n if ($id != null) { // existing question being edited so retrieve it from the session\n if ($this->Session->check('SurveyQuestion.new')) {\n $tempData = $this->Session->read('SurveyQuestion.new');\n $this->set('question_index', $id);\n $question = $tempData[$id];\n $question['Choice']['value'] = $this->Survey->Question->Choice->CombineChoices($question['Choice']);\n $this->request->data['Question'] = $question; // send the existing question to the view\n }\n }\n $this->render('/Elements/question_form');\n } else { // returning with data from the form here\n $tempArr = null;\n if ($this->Session->check('SurveyQuestion.new')) {\n $tempArr = $this->Session->read('SurveyQuestion.new');\n }\n $this->request->data['Question']['Choice'] = $this->Survey->Question->Choice->SplitChoices($this->request->data['Question']['Choice']['value']);\n $this->Survey->Question->set($this->request->data);\n $checkfieldsArr = $this->Survey->Question->schema();\n unset($checkfieldsArr['id']);\n unset($checkfieldsArr['survey_id']);\n unset($checkfieldsArr['order']);\n $checkfields = array_keys($checkfieldsArr);\n if ($this->Survey->Question->validates(array('fieldList' => $checkfields))) {\n if (is_null($id)) {\n $tempArr[] = $this->request->data['Question'];\n } else {\n $tempArr[$id] = $this->request->data['Question'];\n }\n $this->Session->write('SurveyQuestion.new',$tempArr);\n } else {\n $errors = $this->Survey->Question->invalidFields();\n $this->Session->setFlash('Invalid question: '.$errors['question'][0], true, null, 'error');\n }\n $this->set('questions', $tempArr);\n $this->layout = 'ajax';\n $this->render('/Elements/manage_questions');\n }\n }\n }", "protected function addQuestionToolbarForm()\n\t{\n\t\tglobal $lng, $ilCtrl, $tpl;\n\n\t\tinclude_once \"Services/Form/classes/class.ilPropertyFormGUI.php\";\n\t\t$form = new ilPropertyFormGUI();\n\t\t$form->setFormAction($ilCtrl->getFormAction($this, \"addQuestionToolbar\"));\n\t\t$form->setTitle($lng->txt(\"survey_add_new_question\"));\n\n\t\t// question types\n\t\tinclude_once \"./Modules/SurveyQuestionPool/classes/class.ilObjSurveyQuestionPool.php\";\n\t\t$questiontypes = ilObjSurveyQuestionPool::_getQuestiontypes();\n\t\t$type_map = array();\n\t\tforeach($questiontypes as $trans => $item)\n\t\t{\n\t\t\t$type_map[$item[\"questiontype_id\"]] = $trans;\n\t\t}\n\t\tinclude_once(\"./Services/Form/classes/class.ilSelectInputGUI.php\");\n\t\t$si = new ilSelectInputGUI($lng->txt(\"question_type\"), \"qtype\");\n\t\t$si->setOptions($type_map);\n\t\t$form->addItem($si);\n\n\t\t$pages = $this->object->getSurveyPages();\n\t\tif($pages)\n\t\t{\n\t\t\t$pages_drop = array(\"fst\"=>$lng->txt(\"survey_at_beginning\"));\n\t\t\tforeach($pages as $idx => $questions)\n\t\t\t{\n\t\t\t\t$question = array_shift($questions);\n\t\t\t\tif($question[\"questionblock_id\"])\n\t\t\t\t{\n\t\t\t\t\t$pages_drop[$idx+1] = $lng->txt(\"survey_behind_page\").\" \".$question[\"questionblock_title\"];\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$pages_drop[$idx+1] = $lng->txt(\"survey_behind_page\").\" \".strip_tags($question[\"title\"]);\n\t\t\t\t}\n\t\t\t}\n\t\t\t$pos = new ilSelectInputGUI($lng->txt(\"position\"), \"pgov\");\n\t\t\t$pos->setOptions($pages_drop);\n\t\t\t$form->addItem($pos);\n\n\t\t\t$pos->setValue($this->current_page);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// #9089: 1st page \n\t\t\t$pos = new ilHiddenInputGUI(\"pgov\");\n\t\t\t$pos->setValue(\"fst\");\n\t\t\t$form->addItem($pos);\n\t\t}\n\n\t\tif($this->object->isPoolActive())\n\t\t{\n\t\t\t$this->editor_gui->createQuestionObject($form);\n\t\t}\n\n\t\t$form->addCommandButton(\"addQuestionToolbar\", $lng->txt(\"create\"));\n\t\t$form->addCommandButton(\"renderPage\", $lng->txt(\"cancel\"));\n\n\t\treturn $tpl->setContent($form->getHTML());\n\t}", "function printTFQuestionForm() {\n\tglobal $tool_content, $langTitle, $langSurveyStart, $langSurveyEnd, \n\t\t$langType, $langSurveyMC, $langSurveyFillText, \n\t\t$langQuestion, $langCreate, $langSurveyMoreQuestions, \n\t\t$langSurveyCreated, $MoreQuestions;\n\t\t\n\t\tif(isset($_POST['SurveyName'])) $SurveyName = htmlspecialchars($_POST['SurveyName']);\n\t\tif(isset($_POST['SurveyEnd'])) $SurveyEnd = htmlspecialchars($_POST['SurveyEnd']);\n\t\tif(isset($_POST['SurveyStart'])) $SurveyStart = htmlspecialchars($_POST['SurveyStart']);\n\t\t\n//\tif ($MoreQuestions == 2) {\n\tif ($MoreQuestions == $langCreate) {\n\t\tcreateTFSurvey();\n\t} else {\n\t\t$tool_content .= <<<cData\n\t\t<form action=\"addsurvey.php\" id=\"survey\" method=\"post\">\n\t\t<input type=\"hidden\" value=\"2\" name=\"UseCase\">\n\t\t<table>\n\t\t\t<tr><td>$langTitle</td><td colspan=\"2\"><input type=\"text\" size=\"50\" name=\"SurveyName\" value=\"$SurveyName\"></td></tr>\n\t\t\t<tr><td>$langSurveyStart</td><td colspan=\"2\"><input type=\"text\" size=\"20\" name=\"SurveyStart\" value=\"$SurveyStart\"></td></tr>\n\t\t\t<tr><td>$langSurveyEnd</td><td colspan=\"2\"><input type=\"text\" size=\"20\" name=\"SurveyEnd\" value=\"$SurveyEnd\"></td></tr>\ncData;\n\t\t$counter = 0;\n\t\tforeach (array_keys($_POST) as $key) {\n\t\t\t++$counter;\n\t\t $$key = $_POST[$key];\n\t\t if (($counter > 4 )&($counter < count($_POST)-1)) {\n\t\t\t\t$tool_content .= \"<tr><td>$langQuestion</td><td><input type='text' name='question{$counter}' value='${$key}'></td></tr>\"; \n\t\t\t}\n\t\t}\n\t\t\t\n\t\t$tool_content .= <<<cData\n\t\t\t<tr><td>$langQuestion</td><td><input type='text' name='question'></td></tr>\n\t\t\t<tr>\n\t\t\t <td>\n\t\t\t <input name=\"MoreQuestions\" type=\"submit\" value=\"$langSurveyMoreQuestions\" />\n\t\t </td>\n\t\t\t <td>\n\t\t\t <input name=\"MoreQuestions\" type=\"submit\" value=\"$langCreate\" />\n\t\t </td>\n\t\t\t</tr>\n\t\t</table>\n\t\t</form>\ncData;\n\t}\n}", "public function createComponentQuestionForm() {\n $form = new Form;\n\n $form->addHidden('test_id');\n $form->addHidden('id');\n $form->addTextArea('text', 'Text')->setRequired();\n $form->addSubmit('submit');\n $form->setDefaults($this->questions->getById($this->questionId));\n $form->onSuccess[] = $this->questionFormSucceeded;\n\n return $form;\n }", "protected function form()\n {\n $option = QuestionType::getSelect();\n\n return Form::make(new Question(), function (Form $form) use ($option) {\n\n// $form->confirm('您确定要提交表单吗?');\n $form->display('id');\n $form->select('type')\n ->when([2, 3], function ($form) {\n $form->textarea('extra', '文章')->rows(4);\n })\n ->options($option)->default(1);\n\n $form->embedsTable('questions', '有关题目', function (NestedForm $form) {\n $form->text('question', '题干');\n $form->embedsTable('answers', '有关答案', function ($form) {\n $form->text('answer', '答案');\n $form->switch('is_correct', '正确答案');\n });\n });\n//\n// $form->number('sort', $form->getElementId())->default(50);\n// $form->switch('status')->default(1);\n//\n $form->display('created_at');\n $form->display('updated_at');\n });\n }", "public function addQuestionForm()\n {\n $levels = DB::table('levels')->get();\n $subjects = DB::table('subjects')->get();\n\n return view('tests.addQuestionForm', compact('user','levels','subjects'));\n\n\n }", "function printSurveyCreationForm() {\n\tglobal $tool_content, $langTitle, $langPollStart, \n\t\t$langPollEnd, $langType, $langSurveyMC, $langSurveyFillText, \n\t\t$langCreate, $langSurveyContinue, $start_cal_Survey, $end_cal_Survey;\n\t\n\t$CurrentDate = date(\"Y-m-d H:i:s\");\n\t$CurrentDate = htmlspecialchars($CurrentDate);\n\t$tool_content .= <<<cData\n\t<form action=\"addsurvey.php\" id=\"survey\" method=\"post\">\n\t<input type=\"hidden\" value=\"0\" name=\"MoreQuestions\">\n\t<table><thead></thead>\n\t\t<tr><td>$langTitle</td><td colspan=\"2\"><input type=\"text\" size=\"50\" name=\"SurveyName\"></td></tr>\n\t\t<tr><td>$langPollStart</td><td colspan=\"2\">\n\t\t\t$start_cal_Survey\n\t\t</td></tr>\n\t\t<tr><td>$langPollEnd</td><td colspan=\"2\">$end_cal_Survey</td></tr>\n\t\t<!--<tr>\n\t\t <td>$langType</td>\n\t\t <td><label>\n\t\t <input name=\"UseCase\" type=\"radio\" value=\"1\" />\n\t $langSurveyMC</label></td>\n\t\t <td><label>\n\t\t <input name=\"UseCase\" type=\"radio\" value=\"2\" />\n\t $langSurveyFillText</label></td>\n\t\t</tr>-->\n\t\t<input name=\"UseCase\" type=\"hidden\" value=\"1\" />\n\t\t<tr><td colspan=\"3\" align=\"right\">\n <input name=\"$langSurveyContinue\" type=\"submit\" value=\"$langSurveyContinue -&gt;\"></td></tr>\n\t</table>\n\t</form>\ncData;\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 }", "protected function form()\n {\n return Form::make(new EmsQuestion(), function (Form $form) {\n $user = Admin::user();\n $info = '<i class=\"fa fa-exclamation-circle\"></i>题冒题建议手动输入,一般题则可导入,题目导入后,需要对新导入的题目进行格式的调整。';\n $form->html(Alert::make($info)->info());\n $form->display('id');\n $form->radio('que_head_satuts')->when(1, function (Form $form) {\n if ($form->isCreating() || $form->isEditing()) {\n $form->selectTable('que_head_id', '题冒题目')\n ->title('弹窗标题')\n ->dialogWidth('50%') // 弹窗宽度,默认 800px\n ->from(TikuTable::make()) // 设置渲染类实例,并传递自定义参数\n ->model(EmsQuestions::class, 'id', 'que_index'); // 设置编辑数据显示\n $form->number('que_son_num');\n }\n })->when(0, function (Form $form) {\n\n })->options([1 => '是', 0 => '否'])->default(0);\n\n $form->select('questype_id', '题型')->options(function () {\n $categoryModel = EmsQuestype::class;\n return $categoryModel::all()->pluck('type_name', 'id');\n })->required();\n $form->editor('que_index');\n $form->text('que_create_byid')->default($user->id)->display(false);\n $form->text('que_create_byname')->default($user->name)->disable();\n $form->text('que_last_byid')->display(false);\n $form->text('que_last_byname')->display(false);\n $form->editor('que_select');\n $form->number('que_selectnum');\n $form->text('que_answer');\n $form->editor('que_describe');\n $form->switch('que_status')->default(1);\n// $form->select('que_level')->options([1 => '易', 2 => '中', 3 => '难']);\n// $form->number('que_sequence');\n $form->multipleSelect('declaration_id', '申报种类')->options(function () {\n $categoryModel = EmsDeclaration::class;\n return $categoryModel::all()->pluck('decl_name', 'id');\n })->required()->saving(function ($value) {\n // 转化成json字符串保存到数据库\n return json_encode($value);\n });\n $form->multipleSelect('major_id', '申报专业')->options(function () {\n $categoryModel = EmsMajor::class;\n return $categoryModel::all()->pluck('major_name', 'id');\n })->required()->saving(function ($value) {\n // 转化成json字符串保存到数据库\n return json_encode($value);\n });\n $form->display('created_at');\n $form->display('updated_at');\n\n $form->confirm('您确定要提交表单吗?', '');\n });\n }", "function printMCQuestionForm() {\n\n\tglobal $tool_content, $langTitle, $langSurveyStart, $langSurveyEnd, \n\t\t$langType, $langSurveyMC, $langSurveyFillText, \n\t\t$langQuestion, $langCreate, $langSurveyMoreQuestions, \n\t\t$langSurveyCreated, $MoreQuestions, $langAnswer, \n\t\t$langSurveyMoreAnswers, $langSurveyInfo,\n\t\t$langQuestion1, $langQuestion2, $langQuestion3, $langQuestion4, $langQuestion5, $langQuestion6,\n\t\t$langQuestion7, $langQuestion8,$langQuestion9, $langQuestion10;\n\t\t\n\t\tif(isset($_POST['SurveyName'])) $SurveyName = htmlspecialchars($_POST['SurveyName']);\n\t\tif(isset($_POST['SurveyEnd'])) $SurveyEnd = htmlspecialchars($_POST['SurveyEnd']);\n\t\tif(isset($_POST['SurveyStart'])) $SurveyStart = htmlspecialchars($_POST['SurveyStart']);\n\t\t\n//\tif ($MoreQuestions == 2) { // Create survey ******************************************************\n\tif ($MoreQuestions == $langCreate) { // Create survey\n\t\tcreateMCSurvey();\n\t} elseif(count($_POST)<7) { // Just entered MC survey creation dialiog ****************************\n\t\t$tool_content .= <<<cData\n\t\t<table><thead></thead>\n\t<tr><td colspan=2>$langSurveyInfo</td></tr></table>\n\t<form action=\"addsurvey.php\" id=\"survey\" method=\"post\" name=\"SurveyForm\" onSubmit=\"return checkrequired(this, 'question1')\">\n\t<input type=\"hidden\" value=\"1\" name=\"UseCase\">\n\t<table id=\"QuestionTable\">\n\t<tr><td>$langTitle</td><td colspan=\"2\"><input type=\"text\" size=\"50\" name=\"SurveyName\" value=\"$SurveyName\"></td></tr>\n\t<tr><td>$langSurveyStart</td><td colspan=\"2\"><input type=\"text\" size=\"20\" name=\"SurveyStart\" value=\"$SurveyStart\"></td></tr>\n\t<tr><td>$langSurveyEnd</td><td colspan=\"2\"><input type=\"text\" size=\"20\" name=\"SurveyEnd\" value=\"$SurveyEnd\"></td></tr>\n\t<tr><td colspan=3>\n\t<SELECT NAME=\"questionx\" onChange=\"addEvent(this.selectedIndex);this.parentNode.removeChild(this);\" id=\"QuestionSelector\">\n\t\t\t\t<OPTION>$langSurveyInfo</option>\n\t\t\t\t<OPTION VALUE=\"question1\">$langQuestion1[0]</option>\n <OPTION VALUE=\"question2\">$langQuestion2[0]</option>\n <OPTION VALUE=\"question3\">$langQuestion3[0]</option>\n <OPTION VALUE=\"question4\">$langQuestion4[0]</option>\n <OPTION VALUE=\"question5\">$langQuestion5[0]</option>\n <OPTION VALUE=\"question6\">$langQuestion6[0]</option>\n <OPTION VALUE=\"question7\">$langQuestion7[0]</option>\n <OPTION VALUE=\"question8\">$langQuestion8[0]</option>\n <OPTION VALUE=\"question9\">$langQuestion9[0]</option>\n <OPTION VALUE=\"question10\">$langQuestion10[0]</option>\n\t\t\t\t</SELECT>\n\t\t\t</td></tr>\n\t\t\t<tr><td>$langQuestion</td><td><input type=\"text\" name=\"question1\" size=\"70\" id=\"NewQuestion\"></td></tr> \n\t\t\t<tr><td>$langAnswer 1</td><td><input type=\"text\" name=\"answer1.1\" size=\"70\" id=\"NewAnswer1\"></td></tr>\n\t\t\t<tr><td>$langAnswer 2</td><td><input type=\"text\" name=\"answer1.2\" size=\"70\" id=\"NewAnswer2\"></td></tr>\n\t\t\t<tr id=\"NextLine\">\n\t\t\t <td>\n\t\t\t <input name=\"MoreQuestions\" type=\"submit\" value=\"$langSurveyMoreAnswers\" /></td>\n\t\t\t <td>\n\t\t\t <input name=\"MoreQuestions\" type=\"submit\" value=\"$langSurveyMoreQuestions\" /></td>\n\t\t <td>\n\t\t\t\t\t<input name=\"MoreQuestions\" type=\"submit\" value=\"$langCreate\"></td>\n\t\t\t</tr>\n\t\t</table>\n\t\t<input type=\"hidden\" value=\"1\" name=\"NumOfQuestions\">\n\t\t</form>\ncData;\n\t} elseif ($MoreQuestions == $langSurveyMoreAnswers) { // Print more answers \n\t\t$NumOfQuestions = $_POST['NumOfQuestions'];\n\t\t\n\t\t$tool_content .= <<<cData\n\t\t<form action=\"addsurvey.php\" id=\"survey\" method=\"post\">\n\t\t<input type=\"hidden\" value=\"1\" name=\"UseCase\">\n\t\t<table>\n\t\t\t<tr><td>$langTitle</td><td colspan=\"2\"><input type=\"text\" size=\"50\" name=\"SurveyName\" value=\"$SurveyName\"></td></tr>\n\t\t\t<tr><td>$langSurveyStart</td><td colspan=\"2\"><input type=\"text\" size=\"10\" name=\"SurveyStart\" value=\"$SurveyStart\"></td></tr>\n\t\t\t<tr><td>$langSurveyEnd</td><td colspan=\"2\"><input type=\"text\" size=\"10\" name=\"SurveyEnd\" value=\"$SurveyEnd\"></td></tr>\n\t\t\t\ncData;\n\n\t\tprintAllQA();\n\t\t$tool_content .= <<<cData\n\t\t\t\t\t<tr><td>$langAnswer</td><td colspan=\"2\"><input type=\"text\" size=\"10\" name=\"answer\" value=\"\"></td></tr>\n\t\t\t\t\t\t<tr>\n\t\t\t <td>\n\t\t\t <input name=\"MoreQuestions\" type=\"submit\" value=\"$langSurveyMoreAnswers\" />\n\t\t </td>\n\t\t\t <td>\n\t\t\t <input name=\"MoreQuestions\" type=\"submit\" value=\"$langSurveyMoreQuestions\" />\n\t\t </td>\n\t\t <td>\n\t\t\t <input name=\"MoreQuestions\" type=\"submit\" value=\"$langCreate\" />\n\t\t </td>\n\t\t\t</tr>\n\t\t</table>\n\t\t<input type=\"hidden\" value=\"{$NumOfQuestions}\" name=\"NumOfQuestions\">\n\t\t</form>\ncData;\n\t} else { // Print more questions ******************************************************\n\t\t$NumOfQuestions = $_POST['NumOfQuestions'];\n\t\t++$NumOfQuestions;\n\t\t\n\t\t$tool_content .= <<<cData\n\t\t<form action=\"addsurvey.php\" id=\"survey\" method=\"post\" name=\"SurveyForm\" onSubmit=\"return checkrequired(this, 'questionx')\">\n\t\t<input type=\"hidden\" value=\"1\" name=\"UseCase\">\n\t\t<table>\n\t\t<tr><td>$langTitle</td><td colspan=\"2\">\n\t\t\t\t<input type=\"text\" size=\"50\" name=\"SurveyName\" value=\"$SurveyName\"></td></tr>\n\t\t<tr><td>$langSurveyStart</td><td colspan=\"2\">\n\t\t\t\t\t<input type=\"text\" size=\"20\" name=\"SurveyStart\" value=\"$SurveyStart\"></td></tr>\n\t\t<tr><td>$langSurveyEnd</td><td colspan=\"2\">\n\t\t\t\t\t<input type=\"text\" size=\"20\" name=\"SurveyEnd\" value=\"$SurveyEnd\"></td></tr>\n\t\t\t\ncData;\n\t\t\n\t\tprintAllQA();\n\t\t\n\t\t$tool_content .= <<<cData\n\t\t<tr><td colspan=3><hr></td></tr>\n\t\t\t<tr><td colspan=3>\n\t\t\t\t<SELECT NAME=\"questionx\" onChange=\"addEvent(this.selectedIndex);this.parentNode.removeChild(this);\" id=\"QuestionSelector\">\n\t\t\t\t<OPTION>$langSurveyInfo</option>\n\t\t\t\t<OPTION VALUE=\"question1\">$langQuestion1[0]</option>\n\t\t\t\t<OPTION VALUE=\"question2\">$langQuestion2[0]</option>\n\t\t\t\t<OPTION VALUE=\"question3\">$langQuestion3[0]</option>\n\t\t\t\t<OPTION VALUE=\"question4\">$langQuestion4[0]</option>\n\t\t\t\t<OPTION VALUE=\"question5\">$langQuestion5[0]</option>\n\t\t\t\t<OPTION VALUE=\"question6\">$langQuestion6[0]</option>\n\t\t\t\t<OPTION VALUE=\"question7\">$langQuestion7[0]</option>\n\t\t\t\t<OPTION VALUE=\"question8\">$langQuestion8[0]</option>\n\t\t\t\t<OPTION VALUE=\"question9\">$langQuestion9[0]</option>\n\t\t\t\t<OPTION VALUE=\"question10\">$langQuestion10[0]</option>\n\t\t\t\t</SELECT>\n\t\t\t</td></tr>\ncData;\n\t\t\n\t\t$tool_content .= \"<tr> <td>\" . \n\t\t\t\t$langQuestion . \"\t</td><td><input type='text' name='questionx' size='70' id='NewQuestion'></td></tr>\".\n\t\t\t\t\"<tr><td>$langAnswer 1</td><td><input type='text' name='answerx.1' size='70' id='NewAnswer1'></td></tr>\".\n\t\t\t\t\"<tr><td>$langAnswer 2</td><td><input type='text' name='answerx.2' size='70' id='NewAnswer2'></td></tr>\";\n\t\t\t\n\t\t$tool_content .= <<<cData\n\t\t\t\t<tr id=\"NextLine\"><td colspan=3><hr></td></tr>\n\t\t\t\t<tr>\n\t\t\t <td>\n\t\t\t <input name=\"MoreQuestions\" type=\"submit\" value=\"$langSurveyMoreAnswers\" />\n\t\t </td>\n\t\t\t <td>\n\t\t\t <input name=\"MoreQuestions\" type=\"submit\" value=\"$langSurveyMoreQuestions\" />\n\t\t </td>\n\t\t <td>\n\t\t\t <input name=\"MoreQuestions\" type=\"submit\" value=\"$langCreate\" />\n\t\t </td>\n\t\t\t</tr>\n\t\t</table>\n\t\t<input type=\"hidden\" value=\"{$NumOfQuestions}\" name=\"NumOfQuestions\">\n\t\t</form>\ncData;\n\t}\n}", "public function questions($survey = \"\")\n {\n\n $surveyPrefix = \"\";\n $surveyData = $this->survey_model->getSurveyPrefix($survey);\n $data[\"valid_survey\"] = true;\n $data[\"show_questions\"] = true;\n $data[\"survey_errors\"] = false;\n\n // check if the provided slug was valid\n if($surveyData != null) {\n\n // populate survery information\n $surveyPrefix = $surveyData->prefix;\n $data[\"survey_title\"] = $surveyData->title;\n $data[\"survey_subtitle\"] = $surveyData->subtitle;\n }\n else {\n $data[\"valid_survey\"] = false; // display error\n }\n\n // check if the survey was submitted\n if($_SERVER['REQUEST_METHOD'] == 'POST' && $data[\"valid_survey\"]) {\n $result = $this->survey_model->validateSubmission($surveyPrefix);\n if(array_key_exists(\"errors\", $result)) {\n $data[\"errors\"] = $result[\"errors\"];\n $data[\"survey_errors\"] = true;\n }\n else {\n $data[\"show_questions\"] = false;\n }\n }\n\n // check if the user specified a valid survey\n if(!empty($surveyPrefix)) {\n\n $data[\"questions\"] = $this->survey_model->getSurveyData($surveyPrefix);\n ($data[\"questions\"] === null) ? $data[\"valid_survey\"] = false: \"\";\n }\n\n $data[\"active_surveys\"] = \"\";\n $this->load->view('templates/survey/header', $data);\n $this->load->view('templates/survey/nav');\n $this->load->view('templates/survey/survey', $data);\n $this->load->view('templates/survey/footer');\n }", "function ipal_make_student_form(){\r\n\tglobal $ipal;\r\n\tglobal $DB;\r\n\tglobal $CFG;\r\n\tglobal $USER;\r\n\tglobal $course;\r\n\t$disabled='';\r\n\t\r\n//\t$ipal_quiz=$DB->get_record('ipal_quiz',array('ipal_id'=>$ipal->id));\r\n\t\r\n\t\r\n\tif($DB->record_exists('ipal_active_questions', array('ipal_id'=>$ipal->id))){\r\n\t\t$question=$DB->get_record('ipal_active_questions', array('ipal_id'=>$ipal->id));\r\n\t\t$qid=$question->question_id;\r\n\t\t$myFormArray= ipal_get_questions_student($qid);\r\n//\t\t$disabled=ipal_check_if_answered($USER->id,$myFormArray[0]['id'],$ipal_quiz->quiz_id,$course->id,$ipal->id);\r\n\t\techo \"<br><br><br>\";\r\n\t\techo \"<form action=\\\"?\".$_SERVER['QUERY_STRING'].\"\\\" method=\\\"post\\\">\\n\"; \r\n\t\techo $myFormArray[0]['question'];\r\n\t\techo \"<br>\";\r\n\t\tif(ipal_get_qtype($qid) == 'essay'){\r\n\t\t\techo \"<INPUT TYPE=\\\"text\\\" NAME=\\\"a_text\\\" >\\n<br />\";\r\n\t\t\techo \"<INPUT TYPE=hidden NAME=\\\"answer_id\\\" value=\\\"-1\\\">\";\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tforeach($myFormArray[0]['answers'] as $k=>$v){\r\n\t\t\techo \"<input type=\\\"radio\\\" name=\\\"answer_id\\\" value=\\\"$k\\\" \".$disabled.\"/> \".strip_tags($v).\"<br />\\n\";\r\n//\t\t\techo \"<br>\";\r\n\t\t\t}\r\n\t\t\techo \"<INPUT TYPE=hidden NAME=a_text VALUE=\\\" \\\">\";\r\n\t\t}\r\n\techo \"<INPUT TYPE=hidden NAME=question_id VALUE=\\\"\".$myFormArray[0]['id'].\"\\\">\";\r\n\techo \"<INPUT TYPE=hidden NAME=active_question_id VALUE=\\\"$question->id\\\">\";\r\n\techo \"<INPUT TYPE=hidden NAME=course_id VALUE=\\\"$course->id\\\">\";\r\n\techo \"<INPUT TYPE=hidden NAME=user_id VALUE=\\\"$USER->id\\\">\";\r\n\techo \"<INPUT TYPE=submit NAME=submit VALUE=\\\"Submit\\\" \".$disabled.\">\";\r\n\techo \"<INPUT TYPE=hidden NAME=ipal_id VALUE=\\\"$ipal->id\\\">\";\r\n echo \"<INPUT TYPE=hidden NAME=instructor VALUE=\\\"\".findInstructor($course->id).\"\\\">\";\r\n\techo \"</form>\";\r\n\t}else{\r\n\techo \"<br><br>No Current Question.\";}\r\n}", "public function takeSurvey(){\n $this->load->database();\n\n $test['title'] = 'Survey';\n\n $test['survey'] = $this -> Survey_model -> get_survey();\n\n $data['title'] = 'Add a response to Survey';\n\n \t$this->form_validation ->set_rules('Student_Answer', 'Student_Answer', 'required');\n $this->form_validation ->set_rules('Q_ID', 'Q_ID', 'required');\n $this->form_validation ->set_rules('Surv_ID', 'Surv_ID', 'required');\n $this->form_validation ->set_rules('S_ID', 'S_ID', 'required');\n \n \n \n if($this->form_validation->run()=== FALSE){\n $this -> load-> view('templates/header');\n $this -> load-> view('Survey/index', $data);\n $this -> load-> view('templates/footer');\n\n }else{\n\n $this -> Survey_model -> takeSurvey(); \n $this -> load-> view('templates/header');\n $this -> load-> view('Survey/index', $data);\n $this -> load-> view('templates/footer');\n }\n }", "public function add_question_form()\n\t{\t\n\t\t$CI =& get_instance();\n\t\t$CI->auth->check_operator_auth();\n\t\t$CI->load->library('loquestion');\n\t\t\n $content = $CI->loquestion->question_add_form();\n \n $sub_menu = array(\n\t\t\t\tarray('label'=> display('manage_question'), 'url' => 'operator/Oquestion'),\n\t\t\t\tarray('label'=> display('add_question'), 'url' => 'operator/Oquestion/add_question_form','class' =>'active')\n\t\t\t);\n\t\t$this->template->full_operator_html_view($content,$sub_menu);\n\t}", "public function initQuestionAndAnswersEditForm () {\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(\"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(\"VAR_1\", \"value1\");\n $my_tpl->setVariable(\"COMMAND\", \"cmd[changeQuestionAndAnswers]\");\n $my_tpl->setVariable(\"HIDE_QUESTION_TYPE\", 'style=\"display:none;\"');\n \n $my_tpl->setVariable(\"DELETE\", $this->txt(\"choice_delete\"));\n $my_tpl->setVariable(\"DELETE_INFO\", $this->txt(\"choice_delete_info\"));\n $my_tpl->setVariable(\"MOVE_UP\", $this->txt(\"choice_up\"));\n $my_tpl->setVariable(\"MOVE_UP_INFO\", $this->txt(\"choice_up_info\"));\n $my_tpl->setVariable(\"MOVE_DOWN\", $this->txt(\"choice_down\"));\n $my_tpl->setVariable(\"MOVE_DOWN_INFO\", $this->txt(\"choice_down_info\"));\n \n \n // refill fields\n include_once('class.ilObjMobileQuizWizard.php');\n $wiz = new ilObjMobileQuizWizard();\n $wiz -> loadAnswerAndQuestions($_GET['question_id'],$my_tpl, $this->object);\n\n $html = $my_tpl->get();\n $tpl->setContent($html);\n\n $this->ctrl->clearParameters($this);\n }", "function surveyObject()\n\t{\n\t\t$form = $this->initTagsForm(\"survey\", \"saveSurveySettings\",\n\t\t\t\"advanced_editing_survey_settings\");\n\t\t\n\t\t$this->tpl->setContent($form->getHTML());\t\t\n\t}", "protected function _prepareForm()\n {\n $form = new Varien_Data_Form(array(\n 'id' => 'add_form',\n 'action' => $this->getUrl('*/faq/save', array(\n 'ret' => Mage::registry('ret'),\n 'id' => $this->getRequest()->getParam('id')\n )\n ),\n 'method' => 'post'\n ));\n\n $fieldset = $form->addFieldset('faq_new_question', array(\n 'legend' => $this->__('New Question'),\n 'class' => 'fieldset-wide'\n ));\n\n $fieldset->addField('new_question', 'text', array(\n 'label' => Mage::helper('inchoo_faq')->__('New Question'),\n 'required' => true,\n 'name' => 'question'\n ));\n\n $fieldset->addField('new_answer', 'textarea', array(\n 'label' => Mage::helper('inchoo_faq')->__('Answer'),\n 'required' => false,\n 'name' => 'answer',\n 'style' => 'height:12em;',\n ));\n\n $form->setUseContainer(true);\n// $form->setValues();\n $this->setForm($form);\n\n// echo \"_prepareForm()\";\n\n return parent::_prepareForm();\n\n\n }", "public function create()\n {\n $page = 'questionnaire';\n $questionnaire = new Questionnaire;\n $categories = Category::all();\n\n $questions = $questionnaire->questions()->paginate($this->nbPaginate);\n\n $questionsAll = Question::all();\n\n /*$questionsAll = DB::table('questions')\n ->select('questions.id', 'level', 'label', 'description', 'name')\n ->join('categories', 'questions.category_id', '=', 'categories.id')\n ->orderBy('categories.id')\n ->get();*/\n\n return view('admin.questionnaire-create-update', compact('page', 'categories', 'questionnaire', 'questions', 'questionsAll'));\n }", "public function create()\n {\n return view('admin.questions.create');\n }", "public function create()\n {\n return view('admin.questions.create');\n }", "public function addQuestionAndAnswers () {\n global $tpl, $ilTabs;\n $ilTabs->activateTab(\"editQuiz\");\n $this->initAddQuestionAndAnswersForm();\n }", "public function __construct($name = null)\n {\n parent::__construct('survey');\n\n $this->add([\n 'name' => 'idsurvey',\n 'type' => 'hidden',\n ]);\n\n $this->add([\n 'name' => 'iduser',\n 'type' => 'hidden',\n ]);\n\n $this->add([\n 'name' => 'idquestion',\n 'type' => 'hidden',\n ]);\n\n $this->add([\n 'name' => 'idanswer',\n 'type' => 'hidden',\n ]);\n\n $this->add([\n 'name' => 'title',\n 'type' => 'text',\n 'options' => [\n 'label' => 'Title',\n ],\n ]);\n\n $this->add([\n 'name' => 'description',\n 'type' => 'text',\n 'options' => [\n 'label' => 'Description',\n ],\n ]);\n $this->add([\n 'name' => 'status',\n 'type' => 'hidden',\n ]);\n\n $this->add([\n 'name' => 'date',\n 'type' => 'hidden'\n ]);\n\n $this->add([\n 'name' => 'submit',\n 'type' => 'submit',\n 'attributes' => [\n 'value' => 'Go',\n 'id' => 'submitbutton',\n ],\n ]);\n\n $this->add([\n 'name' => 'submitq',\n 'type' => 'submit',\n 'attributes' => [\n 'value' => 'Go',\n 'id' => 'submitbutton',\n ],\n ]);\n\n $this->add([\n 'name' => 'submita',\n 'type' => 'submit',\n 'attributes' => [\n 'value' => 'Go',\n 'id' => 'submitbutton',\n ],\n ]);\n\n\n $this->add([\n 'name' => 'submitc',\n 'type' => 'submit',\n 'attributes' => [\n 'value' => 'Go',\n 'id' => 'submitbutton',\n ],\n ]);\n\n $this->add([\n 'name' => 'submituq', //update question\n 'type' => 'submit',\n 'attributes' => [\n 'value' => 'Go',\n 'id' => 'submitbutton',\n ],\n ]);\n\n $this->add([\n 'name' => 'submitua',\n 'type' => 'submit',\n 'attributes' => [\n 'value' => 'Go',\n 'id' => 'submitbutton',\n ],\n ]);\n $this->add([\n 'name' => 'text',\n 'type' => 'text',\n 'options' => [\n 'label' => 'Question',\n ],\n ]);\n\n $this->add([\n 'name' => 'type',\n 'type' => 'text',\n 'options' => [\n 'label' => 'Type',\n 'value_options' => array(\n '0' => 'Open',\n '1' => 'Multiple choice',\n '2' => 'Single Choice',\n ),\n ],\n ]);\n\n $this->add([\n 'name' => 'texta',\n 'type' => 'text',\n 'options' => [\n 'label' => 'Answer',\n ],\n ]);\n }", "function edit($id = null) {\n if (is_null($id) && !empty($this->request->data)) { // check for an id as long as no form data has been submitted\n $this->Session->setFlash('Invalid survey', true, null, 'error'); // display an error when no valid survey id is given\n $this->redirect(array('action' => 'index')); // return to the index view\n }\n if (!empty($this->request->data)) { // check to see if form data has been submitted\n // first assemble the complete survey data including information from the edit session values\n if ($this->Session->check('SurveyQuestion.new')) { // check for a session for the survey questions\n $tempQuestions = $this->Session->read('SurveyQuestion.new'); // retrieve the questions that have been stored in the session\n //go through each question and set its order value to the same as the current index in the array\n foreach ($tempQuestions as $index => &$quest) {\n $quest['order'] = $index;\n }\n $this->request->data['Question'] = $tempQuestions; // update the form data with the current questions\n }\n if ($this->Session->check('SurveyRespondent.new')) { // check the session for the respondents\n $this->request->data['Respondent'] = $this->Session->read('SurveyRespondent.new'); // update the form data with the current respondents\n }\n $delrespondent = null; // variable to hold respondents to delete (database records only)\n if ($this->Session->check('SurveyRespondent.delete')) { // check the session for respondents to delete\n $delrespondent = $this->Session->read('SurveyRespondent.delete'); // retrieve the respondents to delete\n }\n $delquestion = null; // variable to hold questions to delete (database records only)\n if ($this->Session->check('SurveyQuestion.delete')) { // check the session for questions to delete\n $delquestion = $this->Session->read('SurveyQuestion.delete'); // retrieve the questions to delete\n }\n // now save the survey and return the results\n $errReturn = $this->Survey->complexSave($this->request->data, $delquestion, $delrespondent); // save the combined data, including deletion of survey and respondents that have been dropped\n if (is_null($errReturn)) { // if no errors are returned\n $this->__clearEditSession(); // empty the session variables used for the edit session now that it is complete\n $this->Session->setFlash('The survey has been saved', true, null, 'confirm'); // send a confirmation message that the survey was saved\n $this->redirect(array('action' => 'index')); // redirect to the index view\n } else {\n $this->Session->setFlash($errReturn['message'], true, null, $errReturn['type']); // send error messages received from the model during the save to the view for display\n }\n } else { // if there is no form data, and therefore the edit session is just starting\n $this->Survey->contain(array('Question' => 'Choice', 'Respondent' => 'Response'));\n $this->request->data = $this->Survey->findById($id); // find the survey being edited\n if(!$this->request->data) {\n $this->Session->setFlash('Invalid ID for survey.', true, null, 'error'); // send an error message\n $this->redirect(array('action' => 'index')); // redirect to the index view\n }\n $this->__clearEditSession(); // make sure the session edit variables are empty\n $this->Session->write('Survey.id', $id); // put the survey id in to the session\n $this->Session->write('SurveyQuestion.new', $this->request->data['Question']); // put the original survey questions in to the session\n $this->Session->write('SurveyRespondent.new', $this->request->data['Respondent']); // put the original survey respondents in to the session\n }\n }", "public function GetFormPostedValuesQuestions() {\n\t\t/* THE ARRAY OF POSTED FIELDS */\n\t\t$req_fields=array(\"survey_id\",\"question\");\n\n\t\tfor ($i=0;$i<count($req_fields);$i++) {\n\n\t\t\t//echo $_POST['application_id'];\n\t\t\tif (ISSET($_POST[$req_fields[$i]]) && !EMPTY($_POST[$req_fields[$i]])) {\n\t\t\t\t$this->SetVariable($req_fields[$i],EscapeData($_POST[$req_fields[$i]]));\n\t\t\t}\n\t\t\telse {\n\t\t\t\t//echo \"<br>\".$this->req_fields[$i].\"<br>\";\n\t\t\t\t$this->$req_fields[$i]=\"\";\n\t\t\t}\n\t\t}\n\t}", "public function create()\n {\n \n \n\n return view('questions.create');\n \n\n }", "public function create()\n {\n return view('questions.create');\n\n }", "public function view() {\n\t\t//Note that we don't call parent::view(), because built-in form block controller doesn't have one(!!)\n\t\t\n\t\t$miniSurvey = new MiniSurvey();\n\t\t$miniSurvey->frontEndMode = true;\n\n\t\t$bID = intval($this->bID);\n\t\t$qsID = intval($this->questionSetId);\n\t\t\n\t\t$formDomId = \"miniSurveyView{$bID}\";\n\t\t$hasFileUpload = false;\n\n\t\t$questionsRS = $miniSurvey->loadQuestions($qsID, $bID);\n\t\t$questions = array();\n\t\twhile ($questionRow = $questionsRS->fetchRow()) {\n\t\t\t$question = $questionRow;\n\t\t\t$question['input'] = $miniSurvey->loadInputType($questionRow, false);\n\t\t\tif ($questionRow['inputType'] == 'fileupload') {\n\t\t\t\t$hasFileUpload = true;\n\t\t\t}\n\t\n\t\t\t//Make type names common-sensical\n\t\t\tif ($questionRow['inputType'] == 'text') {\n\t\t\t\t$question['type'] = 'textarea';\n\t\t\t} else if ($questionRow['inputType'] == 'field') {\n\t\t\t\t$question['type'] = 'text';\n\t\t\t} else {\n\t\t\t\t$question['type'] = $questionRow['inputType'];\n\t\t\t}\n\t\n\t\t\t//Construct label \"for\" (and misc. hackery for checkboxlist / radio lists)\n\t\t\tif ($question['type'] == 'checkboxlist') {\n\t\t\t\t$question['input'] = str_replace('<div class=\"checkboxPair\">', '<div class=\"checkboxPair\"><label>', $question['input']);\n\t\t\t\t$question['input'] = str_replace(\"</div>\\n\", \"</label></div>\\n\", $question['input']); //include linebreak in find/replace string so we don't replace the very last closing </div> (the one that closes the \"checkboxList\" wrapper div that's around this whole question)\n\t\t\t} else if ($question['type'] == 'radios') {\n\t\t\t\t//Put labels around each radio items (super hacky string replacement -- this might break in future versions of C5)\n\t\t\t\t$question['input'] = str_replace('<div class=\"radioPair\">', '<div class=\"radioPair\"><label>', $question['input']);\n\t\t\t\t$question['input'] = str_replace('</div>', '</label></div>', $question['input']);\n\t\t\n\t\t\t\t//Make radioList wrapper consistent with checkboxList wrapper\n\t\t\t\t$question['input'] = \"<div class=\\\"radioList\\\">\\n{$question['input']}\\n</div>\\n\";\n\t\t\t} else {\n\t\t\t\t$question['labelFor'] = 'for=\"Question' . $questionRow['msqID'] . '\"';\n\t\t\t}\n\t\n\t\t\t//Remove hardcoded style on textareas\n\t\t\tif ($question['type'] == 'textarea') {\n\t\t\t\t$question['input'] = str_replace('style=\"width:95%\"', '', $question['input']);\n\t\t\t}\n\t\n\t\t\t//Add placeholder attributes\n\t\t\tif ($this->enablePlaceholders) {\n\t\t\t\t$search = 'id=\"Question';\n\t\t\t\t$replace = 'placeholder=\"' . $question['question'] . ($question['required'] ? ' *' : '') . '\" ' . $search;\n\t\t\t\t$question['input'] = str_replace($search, $replace, $question['input']);\n\t\t\t}\n\t\t\t\n\t\t\t//Hide some field labels if showing placeholders\n\t\t\t$question['labelClasses'] = '';\n\t\t\tif ($this->enablePlaceholders && in_array($question['type'], array('text', 'textarea', 'email', 'telephone', 'url'))) {\n\t\t\t\t$question['labelClasses'] .= ' visuallyhidden';\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t$questions[] = $question;\n\t\t}\n\n\t\t//Prep thank-you message\n\t\t$success = ($_GET['surveySuccess'] && $_GET['qsid'] == intval($qsID));\n\t\t$thanksMsg = $this->thankyouMsg;\n\n\t\t//Prep error message(s)\n\t\t$errorHeader = $formResponse;\n\t\t$errors = is_array($errors) ? $errors : array();\n\t\tif ($invalidIP) {\n\t\t\t$errors[] = $invalidIP;\n\t\t}\n\n\t\t//Prep captcha\n\t\t$surveyBlockInfo = $miniSurvey->getMiniSurveyBlockInfoByQuestionId($qsID, $bID);\n\t\t$captcha = $surveyBlockInfo['displayCaptcha'] ? Loader::helper('validation/captcha') : false;\n\t\t\n\t\t//Send data to the view\n\t\t$this->set('formDomId', $formDomId);\n\t\t$this->set('hasFileUpload', $hasFileUpload);\n\t\t$this->set('qsID', $qsID);\n\t\t$this->set('pURI', $pURI);\n\t\t$this->set('success', $success);\n\t\t$this->set('thanksMsg', $thanksMsg);\n\t\t$this->set('errorHeader', $errorHeader);\n\t\t$this->set('errors', $errors);\n\t\t$this->set('questions', $questions);\n\t\t$this->set('captcha', $captcha);\n\t\t$this->set('enablePlaceholders', $this->enablePlaceholders);\n\t}", "public function create()\n {\n return view('questions.create');\n }", "public function create()\n {\n return view('questions.create');\n }", "public function create()\n {\n return view('questions.create');\n }", "public function create()\n\t{\n\t\treturn view('admin.question.create');\n\t}", "public function create()\n {\n BreadcrumbsRegister::Register($this->ModelName,$this->BreadCrumbName);\n return view('admin.questions.create')->with(['title' => $this->BreadCrumbName, 'chapter_id' => $_GET['chapter_id']]);\n }", "public function newAction()\r\n {\r\n $entity = new Question();\r\n $em = $this->getDoctrine()->getManager('interview');\r\n $form = $this->createForm(new QuestionType($em), $entity);\r\n\r\n return array(\r\n 'entity' => $entity,\r\n 'form' => $form->createView(),\r\n );\r\n }", "public function create(){\n\n // returning view and results\n return view('create_question');\n }", "public function create()\n {\n return view('admin/question/create');\n }", "public function create()\n {\n $questionData = getQuestionsData(); //Helper function in app\\Support\\helpers.php\n $numberAnswers = $questionData[0];\n $typeKeys = $questionData[1];\n $typeValues = $questionData[2];\n \n return view('questions.create', compact('typeKeys', 'typeValues', 'numberAnswers')); \n }", "public function create()\n {\n return view('master.form.quiz-form');\n }", "public function create()\n {\n return view('questions::frontend.create');\n }", "public function create()\n {\n $categories = QuestionCategory::all();\n $selectedCategories = collect([]);\n return view($this->forms . '.create', compact('categories',\n 'selectedCategories'));\n }", "public function create()\n\t{\n\t\treturn view('questions.createQuestion');\n\t}", "public function newQuestion(){\r\n if (isset($_POST[\"submit\"])) {\r\n \r\n $question = new Question($_POST);\r\n// print_r($question);\r\n QuestionModel::insertQuestion($question);\r\n \r\n header(\"location:admin.php?adminManager=question&action=list\");\r\n }\r\n else\r\n {\r\n $results= array();\r\n $data = QuestionGroupModel::getAll();\r\n $results['groups'] = $data[\"results\"];\r\n $results['nbGroup'] = $data[\"totalRows\"];\r\n //print_r($results['groups']);\r\n require APPLICATION_PATH.'/views/admin/NewQuestion.php';\r\n }\r\n }", "public function create()\n {\n $question = new Question;\n $edit = FALSE;\n return view('questionForm', ['question' => $question, 'edit' => $edit]);\n }", "public function Read(){\n if (isset($_SESSION['question'])) {\n unset($_SESSION['question']);\n\n }\n \n $model = Survey::getInstance();\n $questions = $model->get_questions();\n $answers = $model->get_answers();\n // var_dump($query);\n $this->smarty->assign('questions',$questions);\n $this->smarty->assign('answers',$answers);\n\n $this->smarty->show('survey');\n }", "public function create()\n {\n //get new question instance\n $question = new Question;\n\n //set edit variable as false : new question\n $edit = FALSE;\n\n //display the question view\n return view('questionForm', ['question' => $question,'edit' => $edit ]);\n }", "public function create()\n {\n return view('backend.question.create');\n }", "public function create()\n {\n return view('admin.question.create');\n }", "public function newAction()\n {\n $entity = new StudyQuestions();\n $form = $this->createForm(new StudyQuestionsType(), $entity);\n\n return $this->render('CompeteComBundle:StudyQuestions:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "public function create()\n {\n $studies = auth()->user()->studies;\n return view('teacher.question.create',[\n 'studies' => $studies\n ]);\n }", "public function createAction()\n {\n\n if (!$this->request->isPost()) {\n return $this->dispatcher->forward(array(\n \"controller\" => \"question\",\n \"action\" => \"index\"\n ));\n }\n\n $que = new Question();\n\n $que->setQuesId($this->request->getPost(\"quesid\"));\n $que->setDesc($this->request->getPost(\"desc\"));\n $que->setOrder($this->request->getPost(\"order\"));\n $que->setBkgrId($this->request->getPost(\"bkgrid\"));\n $que->setQtype($this->request->getPost(\"qtype\"));\n $que->setAmtText($this->request->getPost(\"amttext\"));\n $que->setAmtType($this->request->getPost(\"amttype\"));\n $que->setCrdt($this->request->getPost(\"crdt\"));\n $que->setCrdtId($this->request->getPost(\"crdtid\"));\n $que->setUpdt($this->request->getPost(\"updt\"));\n $que->setUpdtId($this->request->getPost(\"updtid\"));\n $que->setDelmark($this->request->getPost(\"delmark\"));\n \n\n if (!$que->save()) {\n foreach ($que->getMessages() as $message) {\n $this->flash->error($message);\n }\n\n return $this->dispatcher->forward(array(\n \"controller\" => \"ques\",\n \"action\" => \"new\"\n ));\n }\n\n $this->flash->success(\"Question was created successfully\");\n\n return $this->dispatcher->forward(array(\n \"controller\" => \"question\",\n \"action\" => \"index\"\n ));\n\n }", "public function insert_question_info()\n {\n \t\t\t\t\t\t\t\t\n codeQuestions::create([\n 'content' =>request('content'),\n /* 'test_case1' =>request('test_case1'),\n 'test_case1_result' =>request('test_case1_result'), \n 'test_case2' =>request('test_case2'), \n 'test_case2_result' =>request('test_case2_result'),\n 'test_case3' =>request('test_case3'),\n 'test_case3_result' =>request('test_case3_result'),\n // 'student_answer' =>request('student_answer'),*/\n 'degree' =>request('degree'),\n 'language' =>request('language'),\n 'type' =>request('type'),\n 'id_exam' =>request('id_exam')\n ]);\n\n ////////////////to make exam id hidden////////////////////////////////////\n $allExams=exams::all();\n return view('exam_questions',['allExams'=>$allExams]); \n ///////////////////////////////////////\n // return redirect('exam_questions') ;\n \n }", "public function create()\n {\n $this->view->course_list_array = \\App\\Http\\Models\\Course::courseListArray();\n $this->view->title = 'Add Questionnaire';\n return $this->view('tes.form-management.questionnaire-list.add-questionnaire');\n }", "protected function _prepareForm()\n {\n $model = $this->_coreRegistry->registry('current_dcs_faq_items');\n /** @var \\Magento\\Framework\\Data\\Form $form */\n $form = $this->_formFactory->create();\n $form->setHtmlIdPrefix('item_');\n $fieldset = $form->addFieldset('base_fieldset', ['legend' => __('FAQ Information')]);\n if ($model->getId()) {\n $fieldset->addField('id', 'hidden', ['name' => 'id']);\n }\n $fieldset->addField(\n 'question',\n 'text',\n ['name' => 'question', 'label' => __('Question'), 'title' => __('Question'), 'required' => true]\n );\n \n $wysiwygConfig = $this->_wysiwygConfig->getConfig();\n $fieldset->addField(\n 'answer',\n 'editor',\n [\n 'name' => 'answer',\n 'label' => __('Answer'), \n 'title' => __('Answer'), \n 'required' => true ,\n 'config' => $wysiwygConfig \n ]\n );\n\n $fieldset->addField(\n 'category',\n 'select',\n ['name' => 'category',\n 'label' => __('Select Category'),\n 'title' => __('Select Category'),\n 'required' => false ,\n 'options' => $this->_catData->getLoadedFaqCategoryCollection()\n ]\n );\n \n /*$fieldset->addField(\n 'Answer',\n 'editor',\n ['name' => 'answer', 'label' => __('Answer'), 'title' => __('Answer'), 'required' => true, 'style' => 'height:36em',\n 'required' => true]\n );*/\n \n $fieldset->addField(\n 'rank',\n 'text',\n ['name' => 'rank', 'label' => __('Rank'), 'title' => __('Rank'), 'required' => true, 'class' => 'required-entry validate-number validate-greater-than-zero']\n );\n $fieldset->addField(\n 'status',\n 'select',\n ['name' => 'status', 'label' => __('Publish'), 'title' => __('Publish'), 'required' => true, 'options' => $this->_options->getOptionArray()]\n );\n $form->setValues($model->getData());\n $this->setForm($form);\n return parent::_prepareForm();\n }", "protected function form()\n {\n $form = new Form(new StationExam());\n\n //$form->select('quarter', __('Quarter'))->options([1 => '第一季度', 2 => '第二季度', 3 => '第三季度', 4 => '第四季度']);\n //$form->textarea('remark', __('Remark'));\n\n\t\t$rows = [];\n\t\t$headers = ['编号', '项目', '权重', '标准', '实际数据', '结果'];\n\n\t\tif($form->isCreating()) {\n\t\t\t$form->select('station_id', __('Station id'))->options(Station::all()->pluck('station_name', 'id'));\n\n\t\t\t$stds = Standard::where('std_type', 6)->get();\n\t\t\tforeach($stds as $item) {\n\t\t\t\t$rows[] = [$item->id, $item->project, $item->weight, '<div style=\"width:200px;\">'.$item->standard.'</div>', '<input class=\"real\" name=\"real['.$item->id.']\" style=\"padding-right:5px;text-align:right;\" / >', '<input class=\"scores\" name=\"scores['.$item->id.']\" style=\"padding-right:5px;text-align:right;\" />', '<select name=\"res['.$item->id.']\"><option value=\"0\">不通过</option><option value=\"1\">通过</option></select>'];\n\t\t\t}\n\t\t} else {\n\t\t\t$form->display('station.company.company_name', __('Company id'));\n\t\t\t$form->display('station.company.addr', __('Addr'));\n\t\t\t$form->display('station.station_name', __('Station id'));\n\t\t\t$form->display('station.company.legal_name', __('Legal name'));\n\t\t\t$form->display('station.company.legal_mobile', __('Legal mobile'));\n\n\t\t\t$form->divider();\n\t\t\t$form->display('quarter_text', '上报周期');\n\t\t\t$form->display('sec_ck_num', __('Sec ck num'));\n\t\t\t$form->display('sec_fix_num', __('Sec fix num'));\n\t\t\t$form->file('manage_file', '安全作业情况')->readonly();\n\t\t\t$form->display('user_name', '上报人');\n\t\t\t$form->display('report_time', '上报时间');\n\n\t\t\t$id = request()->route()->parameters()['sec_exam'];\n\n\t\t\t$stds = StationExamStd::where('station_exam_id', $id)->get();\n\t\t\tforeach($stds as $item) {\n\t\t\t\t$sel = empty($item->result) ? \"\" : \"selected\";\n\n\t\t\t\t$rows[] = [$item->id, $item->project, $item->weight, '<div style=\"width:200px;\">'.$item->standard.'</div>', '<input class=\"real\" name=\"real['.$item->id.']\" style=\"padding-right:5px;text-align:right;\" value=\"'.$item->real_data.'\" / >', '<input class=\"scores\" name=\"scores['.$item->id.']\" style=\"padding-right:5px;text-align:right;\" value=\"'.$item->score.'\">', '<select name=\"res['.$item->id.']\"><option value=\"0\"'.$sel.'>不通过</option><option value=\"1\"'.$sel.'>通过</option></select>'];\n\t\t\t}\n\t\t}\n\t\t$table = new Table($headers, $rows);\n\n\t\t$form->divider();\n\t\t$form->html($table->render());\n\n\t\t$form->divider();\n $form->text('sec_ck_result', __('Sec ck result'));\n $form->text('sec_fix_result', __('Sec fix result'));\n $form->number('score', __('Score'))->default(0);\n $form->date('exam_date', __('Exam date'))->default(date(\"Y-m-d\"));\n $form->radio('exam_status', __('Exam status'))->options(['未考核', '已考核']);\n\t\t$form->hidden('std_type')->default(6);\n $form->textarea('remark', '安全作业改进建议');\n\n\t\t$form->saved(function(Form $form) {\n\t\t\tif($form->real) {\n\t\t\t\t$real = $form->real;\n\t\t\t\t$res = $form->res;\n\t\t\t\t$scores = $form->scores;\n\t\t\t\t$score = 0;\n\n\t\t\t\tforeach($real as $key => $item) {\n\t\t\t\t\t$data['station_exam_id'] = $form->model()->id;\n\t\t\t\t\t$data['real_data'] = $item;\n\t\t\t\t\t$data['result'] = $res[$key];\n\t\t\t\t\t$data['score'] = $scores[$key];\n\t\t\t\t\t\n\t\t\t\t\tif($form->isCreating()) {\n\t\t\t\t\t\t$std = Standard::find($key);\n\t\t\t\t\t\t$data['weight'] = $std->weight;\n\t\t\t\t\t\t$data['project'] = $std->project;\n\t\t\t\t\t\t$data['standard'] = $std->standard;\n\t\t\t\t\t\t$data['standard_id'] = $key;\n\t\t\t\t\t\tStationExamStd::create($data);\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$ses = StationExamStd::find($key);\n\t\t\t\t\t\t$data['weight'] = $ses->weight;\n\t\t\t\t\t\tStationExamStd::where('id', $key)->update($data);\n\t\t\t\t\t}\n\t\t\t\t\t$score += $data['weight'] * $data['score'];\n\t\t\t\t}\n\n\t\t\t\t$score = round($score / 100);\n\n\t\t\t\tStationExam::where('id', $form->model()->id)->update(['score' => $score]);\n\t\t\t}\n\t\t});\n\n\t\t$form->tools(function(Form\\Tools $tools) {\n\t\t\t$tools->disableDelete();\n\t\t\t$tools->disableView();\n\t\t});\n\n\t\t$form->footer(function ($footer) {\n\t\t\t$footer->disableReset();\n\t\t\t$footer->disableViewCheck();\n\t\t\t$footer->disableEditingCheck();\n\t\t\t$footer->disableCreatingCheck();\n\t\t});\n\n return $form;\n }", "public function create()\n {\n return view ('survey.create');\n }", "public function create() {\n $this->form_validation->set_rules($this->item_validation_rules);\n \n // check if the form validation passed\n if ($this->form_validation->run())\n {\n // See if the model can create the record\n if ($this->personality_quizzes_m->create($this->input->post()))\n {\n // All good...\n $this->session->set_flashdata('success', lang('personality_quizzes.success'));\n redirect('admin/personality_quizzes');\n }\n // Something went wrong. Show them an error\n else\n {\n $this->session->set_flashdata('error', lang('personality_quizzes.error'));\n redirect('admin/personality_quizzes/create');\n }\n }\n \n\n $quiz = new stdClass;\n foreach ($this->item_validation_rules['new'] as $rule)\n {\n $quiz->{$rule['field']} = $this->input->post($rule['field']);\n }\n // Build the view using sample/views/admin/form.php\n $this->template\n ->title($this->module_details['name'], lang('personality_quizzes.new_item'))\n ->append_metadata($this->load->view('fragments/wysiwyg', $this->data, TRUE))\n ->set('quiz', $quiz)\n ->append_css('jquery/jquery.tagsinput.css')\n ->append_css('module::jquery.fileupload-ui.css')\n ->append_css('module::files.css')\n ->append_js('jquery/jquery.tagsinput.js')\n ->append_js('module::jquery.fileupload.js')\n ->append_js('module::jquery.fileupload-ui.js')\n ->append_js('module::functions.js')\n ->build('admin/form');\n }", "private static function get_survey_form($options = array()) {\n\t\t\t$queryProvinces = 'select nid, name from location where parent_nid=0 order by serial asc';\n\t\t\t$statProvinces = GameDev::$pdo->prepare($queryProvinces);\n\t\t\t$statProvinces->execute();\n\t\t\t$resultsProvinces = $statProvinces->fetchAll(PDO::FETCH_ASSOC);\n\t\t\t$optGroup = '';\n\t\t\t// print_r($resultsProvinces);\n\n\t\t\tforeach ($resultsProvinces as $resultProvinces) {\n\t\t\t\t$provinceID = $resultProvinces['nid'];\n\t\t\t\t$query = 'select nid, name from location where parent_nid=:provinceID order by name asc';\n\t\t\t\t$stat = GameDev::$pdo->prepare($query);\n\t\t\t\t$stat->bindParam(':provinceID', $provinceID);\n\t\t\t\t$stat->execute();\n\t\t\t\t$results = $stat->fetchAll(PDO::FETCH_ASSOC);\n\t\t\t\t$optItems = '';\n\n\t\t\t\tforeach($results as $result) {\n\t\t\t\t\t$optItems .= '<option value=\"'.$result['nid'].'\">'.$result['name'].'</option>';\n\t\t\t\t}\n\n\t\t\t\t$optGroup .= '<optgroup label=\"'.$resultProvinces['name'].'\">'.$optItems.'</optgroup>';\n\t\t\t}\n\n\t\t\t// studio start year\n\t\t\t\n\t\t\t$yearEnd = (int)date('Y');\n\t\t\t$yearStart = $yearEnd - 15;\n\t\t\t$yearItems = '';\n\n\t\t\tfor($i = $yearStart; $i <= $yearEnd; $i++) {\n\t\t\t\t$yearItems .= '<option value=\"'.$i.'\">'.$i.'</option>';\n\t\t\t}\n\n\n\t\t\t$str = '<div class=\"container\">';\n\n\t\t\t$str .= '<div class=\"col-md-8\">';\n\t\t\t\n\t\t\t$str .= '<form id=\"the-survey\" action=\"index.php?p=processForm\" method=\"post\">';\n\t\t\t\n\t\t\t//studio name\n\t\t\t$str .= '<div class=\"form-group required\">';\n\t\t\t$str .= '<label class=\"control-label\" for=\"txt-studio-name\">Nama Studio</label>';\n\t\t\t$str .= '<input id=\"txt-studio-name\" name=\"txt-studio-name\" class=\"form-control\" type=\"text\" pattern=\"[a-zA-Z\\s]{1,255}\" placeholder=\"Nama studio Anda\" maxlength=\"255\">';\n\t\t\t$str .= '</div>';\n\n\t\t\t//studio url\n\t\t\t$str .= '<div class=\"form-group\">';\n\t\t\t$str .= '<label class=\"control-label\" for=\"txt-studio-url\">Situs Studio</label>';\n\t\t\t$str .= '<input id=\"txt-studio-url\" name=\"txt-studio-url\" class=\"form-control\" type=\"text\" placeholder=\"Alamat situs studio Anda\" maxlength=\"255\" value=\"http://\">';\n\t\t\t$str .= '</div>';\n\n\t\t\t//studio location\n\t\t\t$str .= '<div class=\"form-group required\">';\n\t\t\t$str .= '<label class=\"control-label\" for=\"txt-studio-location\">Lokasi Studio</label>';\n\t\t\t$str .= '<select class=\"form-control\" id=\"txt-studio-location\" name=\"txt-studio-location\">';\n\t\t\t$str .= '<option value=\"\">Kota/kabupaten domisili</option>';\n\t\t\t$str .= $optGroup;\n\t\t\t$str .= '</optgroup>';\n\t\t\t$str .= '</select>';\n\t\t\t$str .= '</div>';\n\t\t\t\n\t\t\t// studio start year\n\t\t\t$str .= '<div class=\"form-group required\">';\n\t\t\t$str .= '<label class=\"control-label\" for=\"txt-studio-start\">Tahun Beroperasi</label>';\n\t\t\t$str .= '<select class=\"form-control\" id=\"txt-studio-start\" name=\"txt-studio-start\">'.$yearItems.'</select>';\n\t\t\t$str .= '</div>';\n\t\t\t\n\t\t\t// team members\n\t\t\t$str .= '<div class=\"form-group required\">';\n\t\t\t$str .= '<label class=\"control-label\" for=\"txt-studio-personnels\">Anggota Tetap Tim</label>';\n\t\t\t$str .= '<div id=\"team-members\" class=\"row\">';\n\n\t\t\tfor ($i=1; $i <= 30; $i++) {\n\t\t\t\t$numPersonnels .= '<option value=\"'.$i.'\">'.$i.' orang</option>';\n\t\t\t}\t\t\t\n\t\t\t$str .= '<div class=\"col-md-6\">';\n\t\t\t$str .= '<div class=\"form-group\">';\n\t\t\t$str .= '<select class=\"form-control\" id=\"txt-studio-personnels\" name=\"personnels[number][]\">'.$numPersonnels.'</select>';\n\t\t\t$str .= '</div>';\n\t\t\t$str .= '</div>';\n\n\t\t\tforeach (GameDev::$arrAcademics as $key => $value) {\n\t\t\t\t$academicLevels .= '<option value=\"'.$key.'\">lulus '.$value.'</option>';\n\t\t\t}\n\n\t\t\t$str .= '<div class=\"col-md-6\">';\n\t\t\t$str .= '<div class=\"form-group\">';\n\t\t\t$str .= '<select class=\"form-control\" name=\"personnels[edu][]\">'.$academicLevels.'</select>';\n\t\t\t$str .= '</div>';\n\t\t\t$str .= '</div>';\n\n\t\t\t$str .= '</div>';\n\n\t\t\t$str .= '<div class=\"row\"><div class=\"col-md-12 txt-right\"><a id=\"btn-add-personnels\" href=\"#\">Tambah personel</a></div></div>';\n\n\t\t\t$str .= '</div>';\n\n\t\t\t// products\n\t\t\t$str .= '<div class=\"form-group required\">';\n\t\t\t\n\t\t\t\t\t\n\t\t\t$str .= '<div id=\"products\">';\n\t\t\t\n\t\t\t$str .= '<div class=\"row\">';\n\t\t\t$str .= '<div class=\"col-md-4\">';\n\t\t\t$str .= '<div class=\"form-group\">';\n\t\t\t$str .= '<label class=\"control-label\" for=\"txt-studio-products\">Karya</label>';\n\t\t\t$str .= '<input id=\"txt-studio-products\" class=\"form-control\" type=\"text\" placeholder=\"Judul karya\" name=\"products[name][]\" maxlength=\"255\" value=\"\">';\n\t\t\t$str .= '</div>';\n\t\t\t$str .= '</div>';\n\t\t\t\n\t\t\t$str .= '<div class=\"col-md-3\">';\n\t\t\t$str .= '<div class=\"form-group\">';\n\t\t\t$str .= '<label class=\"control-label\">Tahun terbit</label>';\n\t\t\t$str .= '<select class=\"form-control\" name=\"products[year][]\">'.$yearItems.'</select>';\n\t\t\t$str .= '</div>';\n\t\t\t$str .= '</div>';\n\t\t\t\n\t\t\t$str .= '<div class=\"col-md-5\">';\n\t\t\t$str .= '<div class=\"form-group\">';\n\t\t\t$str .= '<label class=\"control-label\">Platform</label>';\n\t\t\t$str .= '<div class=\"checkbox\">';\n\t\t\t$str .= '<label class=\"checkbox-inline\">';\n\t\t\t$str .= '<input type=\"checkbox\" name=\"products[platform][0][]\" value=\"desktop\">Desktop';\n\t\t\t$str .= '</label>';\n\t\t\t$str .= '<label class=\"checkbox-inline\">';\n\t\t\t$str .= '<input type=\"checkbox\" name=\"products[platform][0][]\" value=\"mobile\">Mobile';\n\t\t\t$str .= '</label>';\n\t\t\t$str .= '</div>';\n\t\t\t$str .= '</div>';\n\t\t\t$str .= '</div>';\n\n\t\t\t$str .= '</div>'; // .row\n\t\t\t$str .= '</div>'; // #products\n\t\t\t\n\t\t\t$str .= '<div class=\"row\"><div class=\"col-md-12 txt-right\"><a id=\"btn-add-products\" href=\"#\">Tambah karya</a></div></div>';\n\n\t\t\t$str .= '</div>';\n\n\t\t\t// publications\n\t\t\tforeach (GameDev::$arrPublications as $key => $value) {\n\t\t\t\t$pubs .= '<div class=\"checkbox\"><label><input type=\"checkbox\" value=\"'.$key.'\" name=\"publications[]\">'.$value.'</label></div>';\n\t\t\t}\n\n\t\t\t$str .= '<div class=\"form-group required\">';\n\t\t\t$str .= '<label for=\"\" class=\"control-label\">Cara memperkenalkan karya</label>';\n\t\t\t$str .= $pubs;\n\t\t\t$str .= '</div>';\n\t\t\t\n\t\t\t// submit button\n\t\t\t$str .= '<div class=\"form-group\"><input id=\"btn-submit\" class=\"btn btn-primary\" type=\"submit\" value=\"Kirim\"></div>';\n\t\t\t$str .= '<div class=\"form-group\"><p>Sumber data nama daerah: <a href=\"http://data.go.id/dataset/daftar-nama-daerah\" target=\"_blank\">data.go.id</a></p></div>';\n\n\t\t\t$str .= '</form>';\n\t\t\t\n\t\t\t$str .= '</div>'; // .col-md-8\n\t\t\t\n\t\t\t$str .= '</div>'; // .container\n\n\t\t\treturn $str;\n\t\t}", "public function index()\n {\n /*member variables*/\n $options = \"\";\n $optionValue = \"\";\n /* confirm if user had logged in in before and started a survey*/\n $user = Auth::user();\n $answer = Answer::where('user_id','=',$user->id)->get()->last();\n\n if( $answer != \"\" ){\n $question_id = $answer->question_id;\n $answer_string = $answer->string;\n\n /*get next question using function getNextQuestion in answer controller*/\n $displayQuestion = app('App\\Http\\Controllers\\AnswerController')->getNextQuestion($question_id,$answer_string);\n\n return $displayQuestion;\n /* use post question to work */\n }else{\n /*if user has never done a the survey before get first question*/\n /*fetch every paths*/\n $paths = Path::get(['id', 'name', 'sequence']);\n If( sizeof($paths)>0 ) {\n // fetch path where sequence == 1\n $sequence = \"1\";\n $path_id = \"\";\n $paths = Path::where('sequence',$sequence)->get(['id', 'name', 'sequence']);\n foreach( $paths as $path ){\n $path_id = $path->id;\n }\n $questions = Question::where('path_id' , '=' ,$path_id/*[['sequence', '=', $sequence], ['path_id', '=', 1]]*/)\n ->get(['id', 'string', 'sequence', 'path_id', 'user_id', 'progress', 'is_dichotomous', 'is_optional', 'has_options']);\n foreach ($questions as $questions) {\n /* use question id to pluck options for this specific question id*/\n $question_id = $questions->id;\n $sequence = $questions->sequence;\n /* if has options get the options div displays */\n if( $questions->has_options == true ){\n $input_type = \"option\";\n /*get the div displays*/\n $optionValue = app('App\\Http\\Controllers\\InputController')->index($input_type,$question_id);\n /*get the options*/\n $options = Option::where('question_id', $question_id)->pluck('options_string');\n\n }elseif ( $questions->has_multiple == true ){\n\n echo(\"get has multiple values\");\n\n }else if ( $questions->has_options == false && $questions->has_multiple == false ){\n\n echo(\"both values of has multiple and has options is false\");\n\n }else{\n\n echo(\"no reasonable input type \");\n\n }\n /* creating a new collection instance to fit our required output*/\n $question = new Collection;\n\n $question->push([\n 'id' => $questions->id,\n 'string' => $questions->string,\n 'sequence' => $sequence,\n 'options' => $options,\n 'optionValue' => $optionValue,\n\n ]);\n $question = $question[0];\n $question = json_encode($question);\n\n return $question;\n\n }\n\n }\n else{\n echo \"CANNOT COMPLETE REQUEST\";\n }\n }\n\n\n }", "public function postQuestion(){\n\n $objQuestion = new Question();\n $objQuestion->title = (Request::input('title'));\n $objQuestion->img_url = (Request::input('img_url'));\n $objQuestion->description = (Request::input('description'));\n $objQuestion->courses = (Request::input('courses'));\n $objQuestion->points = 0;\n $objQuestion->user_id = (Request::input('userid'));\n $objQuestion->save();\n\n $question = Question::latest()->get();\n\n return view('home')->with('questions', $question);\n }", "public function create()\n {\n $survey = new Survey();\n return view('backend.surveys.create')->with('survey', $survey);\n }", "public function create()\n {\n $questions=Question::all();\n return view('backend.truefalsequestions.create',compact('questions'));\n }", "public function actionCreate() {\n $model = new Surveys();\n\n if ($model->load(Yii::$app->request->post())) {\n if ($model->validate() == TRUE) {\n // print_r($model);\n $model->save();\n Yii::$app->session->setFlash('success', \"Poll Created Succsesfully\");\n\n return $this->redirect('create');\n } else {\n $sessions = Yii::$app->session->set(\"Error\", \"Error when creating Survey\");\n }\n //print_r($model);\n //return $this->redirect(['view', 'id' => $model->survey_id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "public function create()\n\t{\n\t\t$tags = Tag::pluck('name', 'id')->all();\n\t\treturn view('questions.createQuestion', compact('tags'));\n\t}", "public function create()\n {\n $animals = Animal::all();\n $ani = [];\n foreach ($animals as $animal) {\n $ani[$animal -> animal_id] = $animal -> animal_name;\n }\n\n $worksheets = Worksheet::all();\n $works = [];\n foreach ($worksheets as $worksheet) {\n $works[$worksheet -> worksheet_id] = $worksheet -> worksheet_name;\n }\n\n $descriptions = Question_description::all();\n $descrip = [];\n foreach ($descriptions as $description) {\n $descrip[$description -> description_id] = $description -> description;\n }\n\n\n return view('pages/data_manage/question/create') -> withAni($ani) \n -> withAnimals($animals)\n -> withWorks($works)\n -> withDescrip($descrip);\n }", "public function actionCreate($question_id, $survey_id)\n //$survey_id ist notwendig, um auf die Survey zurückzukommen, für die man die Answer erstellt hat.\n {\n $model = new Answer();\n\n //Die Question holen, die im survey/view erstellungsformular erstellt wurde.\n $question = Question::find()->where(['id'=>$question_id]);\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n\n $model->link('questions', $question->one());\n return $this->redirect(['survey/view/', 'id' => $survey_id]);\n\n } else {\n return $this->render('create', ['id'=>$question_id,\n 'model' => $model,\n ]);\n }\n\n }", "protected function Form_Create() {\n\t\t\t$this->dtgSeasonalQuestionses = new SeasonalQuestionsDataGrid($this);\n\n\t\t\t// Style the DataGrid (if desired)\n\t\t\t$this->dtgSeasonalQuestionses->CssClass = 'datagrid';\n\t\t\t$this->dtgSeasonalQuestionses->AlternateRowStyle->CssClass = 'alternate';\n\n\t\t\t// Add Pagination (if desired)\n\t\t\t$this->dtgSeasonalQuestionses->Paginator = new QPaginator($this->dtgSeasonalQuestionses);\n\t\t\t$this->dtgSeasonalQuestionses->ItemsPerPage = 20;\n\n\t\t\t// Use the MetaDataGrid functionality to add Columns for this datagrid\n\n\t\t\t// Create an Edit Column\n\t\t\t$strEditPageUrl = __VIRTUAL_DIRECTORY__ . __FORM_DRAFTS__ . '/seasonal_questions_edit.php';\n\t\t\t$this->dtgSeasonalQuestionses->MetaAddEditLinkColumn($strEditPageUrl, 'Edit', 'Edit');\n\n\t\t\t// Create the Other Columns (note that you can use strings for seasonal_questions's properties, or you\n\t\t\t// can traverse down QQN::seasonal_questions() to display fields that are down the hierarchy)\n\t\t\t$this->dtgSeasonalQuestionses->MetaAddColumn('Id');\n\t\t\t$this->dtgSeasonalQuestionses->MetaAddColumn('Count');\n\t\t\t$this->dtgSeasonalQuestionses->MetaAddColumn('Text');\n\t\t\t$this->dtgSeasonalQuestionses->MetaAddTypeColumn('CategoryId', 'SeasonalCategoryType');\n\t\t\t$this->dtgSeasonalQuestionses->MetaAddColumn('Invert');\n\t\t}", "public function addquestion(Request $request, Survey $survey)\n {\n $this->validate($request, [\n 'label'=>'required|max:255',\n 'options'=>'required_if:type,select,checkbox-list,section',\n 'required'=>'boolean'\n ]);\n $data = array();\n $data = $request->intersect([\n 'label', 'question_type', 'options', 'required', 'css_class'\n ]);\n /*\n $data['label'] = $request->input('label');\n $data['question_type'] = $request->input('type');\n if($request->has('options')) {\n $data['options'] = $request->input('options');\n }\n if($request->has('required') && $request->input('type') != 'section') {\n $data['required'] = '1';\n }\n */\n // return($data);\n $survey->questions()->create($data);\n return redirect('/addquestion/' . $survey->id . '#new-question-form');\n }", "public function create()\n {\n //view form for add new quiz\n return view('admin.quiz.create_quiz');\n }", "public function create()\n {\n return view('admin.questions.RIASEC.create', compact(''));\n }", "public function run()\n {\n $survey = \\App\\Models\\Survey::create([\n 'availability' => true,\n 'camunda_identifier' => 'survey_001',\n 'title' => 'Diabetes Quality of Life',\n 'description' => 'Diabetes Quality of Life survey captures your satisfaction, impact and worry related to living with the diagnosis of diabetes (Type 1 or 2).',\n 'explanation' => 'Please rate your answers from 1 (least impact on you) to 5 (highest impact on you). Please choose only one response for each question.',\n ]);\n\n \\App\\Models\\Question::create([\n 'survey_id' => $survey->id,\n 'type' => 'satisfaction_01',\n 'text' => 'How satisfied are you with the amount of time it takes to manage your diabetes?',\n ]);\n\n \\App\\Models\\Question::create([\n 'survey_id' => $survey->id,\n 'type' => 'satisfaction_02',\n 'text' => 'How satisfied are you with the amount of time you spend getting checkups?',\n ]);\n\n \\App\\Models\\Question::create([\n 'survey_id' => $survey->id,\n 'type' => 'satisfaction_03',\n 'text' => 'How satisfied are you with the time it takes to determine your sugar level?',\n ]);\n\n \\App\\Models\\Question::create([\n 'survey_id' => $survey->id,\n 'type' => 'satisfaction_04',\n 'text' => 'How satisfied are you with your current treatment?',\n ]);\n\n \\App\\Models\\Question::create([\n 'survey_id' => $survey->id,\n 'type' => 'satisfaction_05',\n 'text' => 'How satisfied are you with your knowledge about your diabetes?',\n ]);\n\n \\App\\Models\\Question::create([\n 'survey_id' => $survey->id,\n 'type' => 'satisfaction_06',\n 'text' => 'How satisfied are you with life in general?',\n ]);\n\n\n \\App\\Models\\Question::create([\n 'survey_id' => $survey->id,\n 'type' => 'impact_01',\n 'text' => 'How often do you feel pain associated with the treatment for your diabetes?',\n ]);\n\n \\App\\Models\\Question::create([\n 'survey_id' => $survey->id,\n 'type' => 'impact_02',\n 'text' => 'How often do you feel physically ill?',\n ]);\n\n \\App\\Models\\Question::create([\n 'survey_id' => $survey->id,\n 'type' => 'impact_03',\n 'text' => 'How often does your diabetes interfere with your family life?',\n ]);\n \\App\\Models\\Question::create([\n 'survey_id' => $survey->id,\n 'type' => 'impact_04',\n 'text' => 'How often do you find your diabetes limiting your social relationships and friendships?',\n ]);\n\n \\App\\Models\\Question::create([\n 'survey_id' => $survey->id,\n 'type' => 'impact_05',\n 'text' => 'How often do you find your diabetes limiting your sexual life?',\n ]);\n \\App\\Models\\Question::create([\n 'survey_id' => $survey->id,\n 'type' => 'impact_06',\n 'text' => 'How often do you find your diabetes limiting your life plans such as employment, education or training?',\n ]);\n\n \\App\\Models\\Question::create([\n 'survey_id' => $survey->id,\n 'type' => 'impact_07',\n 'text' => 'How often do you find your diabetes limiting your leisure activities or travels?',\n ]);\n\n \\App\\Models\\Question::create([\n 'survey_id' => $survey->id,\n 'type' => 'worry_01',\n 'text' => 'How often do you worry about whether you will pass out?',\n ]);\n\n \\App\\Models\\Question::create([\n 'survey_id' => $survey->id,\n 'type' => 'worry_02',\n 'text' => 'How often do you worry that your body looks different because you have diabetes?',\n ]);\n\n \\App\\Models\\Question::create([\n 'survey_id' => $survey->id,\n 'type' => 'worry_03',\n 'text' => 'How often do your worry that you will get complications from your diabetes?',\n ]);\n\n\n $questions = \\App\\Models\\Question::where('survey_id', $survey->id)->get();\n\n foreach ($questions as $question) {\n $index = 0;\n\n while ($index <= 4) {\n $index++;\n \\App\\Models\\Answer::create([\n 'question_id' => $question->id,\n 'text' => $index,\n 'value' => $index,\n ]);\n }\n }\n }", "public function create()\n {\n $rewards = Reward::all();\n $types = QuestType::all();\n $items = Item::all();\n $field = AdditionalQuestsField::where('name', 'itemID')->first();\n $descriptions = Description::all();\n $speakers = Speaker::pluck('name');\n $modes = DescriptionMode::all();\n $languages = Language::all();\n\n return view('admin.quests.create', compact('rewards', 'types', 'items', 'field', 'descriptions',\n 'modes', 'speakers', 'languages', 'notes'));\n }", "public function create()\n {\n //\n return view('question.create');\n }", "public function testCreateSurveyQuestion0()\n {\n }", "public function testCreateSurveyQuestion0()\n {\n }", "public function create()\n {\n $tags = QuestionTag::allTags();\n \n return view('questions.create', compact('tags'));\n }", "public function create()\n {\n return view('admin.typeQuestion.create');\n }", "public function create()\n {\n return view('question.add');\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}", "public function create()\n {\n //\n if (\\Auth::guest())\n return redirect()->guest('login');\n\n $sections = null;\n\n $data = [\n 'pagetitle' => 'Draft a Question',\n 'sections' => $sections\n ];\n return view('questions.create',$data);\n }", "public function add()\n {\n $update_data = $this->insert_global_model->globalinsert($this->tbl_exam_users_activity,array('user_id'=>$this->logged_in_user->id,\n 'activity_time'=>date('Y-m-d H:i:s'),'activity'=>'Create New Survey View'));\n // set page specific variables\n $page_info['title'] = 'Create New Survey'. $this->site_name;\n $page_info['view_page'] = 'administrator/survey_form_view';\n $page_info['message_error'] = '';\n $page_info['message_success'] = '';\n $page_info['message_info'] = '';\n $page_info['is_edit'] = false;\n //$page_info['cat_survey_lists'] = $this->cat_survey_lists;\n //echo \"<pre>\";\n ///print_r($this->cat_survey_lists); die();\n\n $this->_set_fields();\n $this->_set_rules();\n $page_info['catList'] = $this->select_global_model->Select_array('exm_survey_categories');\n //$page_info['catList'] = $this->question_list;\n\n //print_r_pre($page_info['catList']);\n // determine messages\n if ($this->session->flashdata('message_error')) {\n $page_info['message_error'] = $this->session->flashdata('message_error');\n }\n\n if ($this->session->flashdata('message_success')) {\n $page_info['message_success'] = $this->session->flashdata('message_success');\n }\n\n // load view\n\t$this->load->view('administrator/layouts/default', $page_info);\n }", "protected function form()\n {\n $form = new Form(new AnswerList);\n\n $form->text('title', trans('admin.title_answer'))->required();\n $form->text('A', trans('admin.A'))->required();\n $form->text('B', trans('admin.B'))->required();\n $form->text('C', trans('admin.C'))->required();\n $form->text('D', trans('admin.D'))->required();\n $form->text('correct', trans('admin.correct'))->required();\n\n return $form;\n }", "public static function insertSurvey()\n\t{\n\t\tif(isset($_POST['SurveyID']) && (is_numeric($_POST['SurveyID'])))\n\t\t{//insert response!\n\t\t\t$iConn = IDB::conn();\n\t\t\t// turn off auto-commit\n\t\t\tmysqli_autocommit($iConn, FALSE);\n\t\t\t//insert response\n\t\t\t$sql = sprintf(\"INSERT into \" . PREFIX . \"responses(SurveyID,DateAdded) VALUES ('%d',NOW())\",$_POST['SurveyID']);\n\t\t\t$result = @mysqli_query($iConn,$sql); //moved or die() below!\n\t\t\t\n\t\t\tif(!$result)\n\t\t\t{// if error, roll back transaction\n\t\t\t\tmysqli_rollback($iConn);\n\t\t\t\tdie(trigger_error(\"Error Entering Response: \" . mysqli_error($iConn), E_USER_ERROR));\n\t\t\t} \n\t\t\t\n\t\t\t//retrieve responseid\n\t\t\t$ResponseID = mysqli_insert_id($iConn); //get ID of last record inserted\n\t\t\t\n\t\t\tif(!$result)\n\t\t\t{// if error, roll back transaction\n\t\t\t\tmysqli_rollback($iConn);\n\t\t\t\tdie(trigger_error(\"Error Retrieving ResponseID: \" . mysqli_error($iConn), E_USER_ERROR));\n\t\t\t} \n\t\n\t\t\t//loop through and insert answers\n\t\t\tforeach($_POST as $varName=> $value)\n\t\t\t{//add objects to collection\n\t\t\t\t $qTest = substr($varName,0,2); //check for \"obj_\" added to numeric type\n\t\t\t\t if($qTest==\"q_\")\n\t\t\t\t {//add choice!\n\t\t\t\t \t$QuestionID = substr($varName,2); //identify question\n\t\t\t\t \t\n\t\t\t\t \tif(is_array($_POST[$varName]))\n\t\t\t\t \t{//checkboxes are arrays, and we need to loop through each checked item to insert\n\t\t\t\t\t \twhile (list ($key,$value) = @each($_POST[$varName])){\n\t\t\t\t\t\t \t$sql = \"insert into \" . PREFIX . \"responses_answers(ResponseID,QuestionID,AnswerID) values($ResponseID,$QuestionID,$value)\";\n\t\t\t\t\t \t\t$result = @mysqli_query($iConn,$sql);\n\t\t\t\t\t \t\tif(!$result)\n\t\t\t\t\t\t\t{// if error, roll back transaction\n\t\t\t\t\t\t\t\tmysqli_rollback($iConn);\n\t\t\t\t\t\t\t\tdie(trigger_error(\"Error Inserting Choice (array/checkbox): \" . mysqli_error($iConn), E_USER_ERROR));\n\t\t\t\t\t\t\t} \n\t\t\t\t\t\t}\n\t\t\t \t\t}else{//not an array, so likely radio or select\n\t\t\t\t \t\t$sql = \"insert into \" . PREFIX . \"responses_answers(ResponseID,QuestionID,AnswerID) values($ResponseID,$QuestionID,$value)\";\n\t\t\t\t \t $result = @mysqli_query($iConn,$sql);\n\t\t\t\t \t if(!$result)\n\t\t\t\t\t\t{// if error, roll back transaction\n\t\t\t\t\t\t\tmysqli_rollback($iConn);\n\t\t\t\t\t\t\tdie(trigger_error(\"Error Inserting Choice (single/radio): \" . mysqli_error($iConn), E_USER_ERROR));\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//we got this far, lets COMMIT!\n\t\t\tmysqli_commit($iConn);\n\t\t\t\n\t\t\t// our transaction is over, turn autocommit back on\n\t\t\tmysqli_autocommit($iConn, TRUE);\n\t\t\t\n\t\t\t//count total responses, update TotalResponses\n\t\t\tself::responseCount((int)$_POST['SurveyID']); //convert to int on way in!\n\t\t\treturn TRUE; #\n\t\t}else{\n\t\t\treturn FALSE;\t\n\t\t}\n\n\t}", "public function actionCreate()\n {\n $model = new AeExtQuiz;\n\n try {\n if ($model->load($_POST) && $model->save()) {\n\n if ($questions = Yii::$app->request->post('outer-group')) {\n $app_id = $model->app_id;\n $quiz_id = $model->id;\n AeExtQuizSet::addOrUpdateRelations($questions, $app_id, $quiz_id, false);\n }\n\n return $this->redirect(['view', 'id' => $model->id]);\n } elseif (!\\Yii::$app->request->isPost) {\n $model->load($_GET);\n }\n\n } catch (\\Exception $e) {\n $msg = (isset($e->errorInfo[2])) ? $e->errorInfo[2] : $e->getMessage();\n $model->addError('_exception', $msg);\n }\n\n return $this->render('create', [\n 'model' => $model,\n 'questions' => AeExtQuizQuestionController::getAllQuestions(),\n 'questions_json' => '',\n ]);\n }", "public function create()\n {\n return view('question.create');\n }", "public function create()\n {\n return view('questionnaire.create');\n }", "public function create()\n {\n $subjects = Subject::all();\n return view('admin.single_question.create',compact('subjects'));\n }", "public function create()\n {\n return view('iquiz::admin.userquestionanswers.create');\n }", "public function create()\n {\n //\n $this->authorize('create', Question::class);\n $quizzes= Quiz::all();\n return view('question.create' compact('quizzes'));\n\n }", "protected function form()\n {\n $form = new Form(new Cases);\n\n $form->select('cate_id', '分类')->options('/admin/api/getcasecate');\n $form->select('algw_id', '顾问')->options('/admin/api/getgw');\n $form->text('title', '标题');\n $form->text('keywords', 'SEO关键字');\n $form->text('description', 'SEO描述');\n $form->text('desc', '副标题');\n $form->text('author', '来源');\n $form->radio('is_tj', '推荐')->options([0=>'否',1=>'是']);\n $form->image('thumb', '缩略图')->uniqueName();\n $form->editor('data', '详情');\n\n\n return $form;\n }", "function add() {\n $this->autoRender = false;\n $this->layout = 'ajax';\n if($this->request->is('ajax')) {\n if ($this->request->is('post')) {\n $this->Survey->set($this->request->data);\n if ($this->Survey->save($this->request->data)) {\n $this->Session->setFlash('Survey saved', true, null, 'confirm');\n $this->Survey->recursive = 0;\n $this->set('surveys', $this->paginate());\n $this->render('/Surveys/index');\n } else {\n $err = array_values($this->Survey->invalidFields());\n $this->Session->setFlash('Invalid survey: '.implode($err[0],\", \"), true, null, 'error');\n $this->Survey->recursive = 0;\n $this->set('surveys', $this->paginate());\n $this->render('/Surveys/index');\n }\n } else {\n $this->render();\n }\n }\n }", "public function addForm($id = 0)\n {\n $question = new Question;\n if ($id > 0) {\n $question = Question::find($id);\n }\n return view('admincp::add-question', compact('question'));\n }", "public function addQuestionGet(){\n\n return View('admin.question');\n }", "public function create() {\n\n\n $result[0] = new QuestionAnswerCreator($this->request);\n $result[1] = new SurveyCreator($this->request);\n\n $result[0]->createSurvey();\n $result[1]->createSurvey();\n\n return $result;\n }", "public function addNewSectionQuestion()\n {\n if($this->check_session()){\n $this->form_validation->set_rules('sections', 'Section', 'required');\n $this->form_validation->set_rules('newSectionQues', 'Question', 'required');\n \n if($this->form_validation->run()){\n $formData = ['ex_section_question' => html_escape($this->input->post('newSectionQues')),\n 'ex_sections_id' => $this->input->post('sections')];\n $this->Admin_model->addNewSectionQuestion($formData);\n $this->getSectionQuestionsTable($this->input->post('sections'));\n }else{\n\n }\n }\n }", "public function create()\n {\n $roles = json_decode(Auth::user()->user_role, 1);\n if (!isset($roles) || empty($roles) || !in_array('frequently asked questions', $roles)) {\n echo \"You don't have permission to freequently asked questions.\";\n die;\n }\n return view('admin.faqs.form');\n }" ]
[ "0.72373503", "0.7232368", "0.72032565", "0.7193149", "0.70726323", "0.7033251", "0.7012809", "0.70000225", "0.6983904", "0.69730824", "0.6916831", "0.68571144", "0.6833113", "0.68108803", "0.68020177", "0.67898947", "0.6762524", "0.6762223", "0.6662738", "0.65918845", "0.658243", "0.65779585", "0.6566387", "0.6556433", "0.653011", "0.653011", "0.6501116", "0.6491116", "0.648688", "0.647241", "0.6461777", "0.64617276", "0.64299417", "0.64221954", "0.64221954", "0.64221954", "0.6419355", "0.6398725", "0.6395098", "0.63901997", "0.6358523", "0.6352182", "0.63505656", "0.63260585", "0.6320405", "0.631504", "0.63008946", "0.6289549", "0.6288618", "0.6272669", "0.6264955", "0.62610275", "0.62402666", "0.62388325", "0.62350607", "0.6216327", "0.62103677", "0.6209348", "0.62085205", "0.6205907", "0.6205038", "0.61958134", "0.6188711", "0.61811703", "0.6176972", "0.6170811", "0.6166041", "0.6165762", "0.6164249", "0.61600816", "0.61453545", "0.613835", "0.61368686", "0.6131797", "0.6128589", "0.61259764", "0.61236066", "0.6123533", "0.6123533", "0.61215746", "0.6110795", "0.61037487", "0.61000496", "0.6096448", "0.60869324", "0.6073615", "0.6072062", "0.6065302", "0.606369", "0.60614496", "0.6052524", "0.60479915", "0.6044553", "0.60389817", "0.60251564", "0.6022509", "0.6016132", "0.6012522", "0.60081536", "0.60075724" ]
0.7035518
5
Passes in a question to add input form objects to allow data insertion
private function createInput($question) { switch($question->InputType) { case "radio": case "checkbox": print "<b>" . $question->Number . ") "; print $question->Text . "</b> "; print '<em>(' . $question->Description . ')</em><br />'; foreach($question->aAnswer as $answer) {//print data for each print '<input type="' . $question->InputType . '" name="q_' . $question->QuestionID . '[]" value="' . $answer->AnswerID . '" > '; print $answer->Text . " "; if($answer->Description != "") {//only print description if not empty print "<em>(" . $answer->Description . ")</em>"; } print '<br />'; } break; case "select": print "<b>" . $question->Number . ") "; print $question->Text . "</b> "; print '<em>(' . $question->Description . ')</em><br />'; print '<select name="q_' . $question->QuestionID . '">'; foreach($question->aAnswer as $answer) {//print data for each print '<option value="' . $answer->AnswerID . '" >' . $answer->Text; if($answer->Description != "") {//only print description if not empty print " <em>(" . $answer->Description . ")</em>"; } print '</option>'; } print '</select><br />'; break; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract function performInsert(Form $arg0);", "public function getAddForm();", "abstract function setupform();", "public function populateForm() {}", "abstract protected function _setNewForm();", "abstract public function createForm();", "abstract public function createForm();", "function create() {\n\t\tglobal $tpl, $lng;\n\n\t\t$form = $this->initForm(TRUE);\n\t\tif ($form->checkInput()) {\n\t\t\tif ($this->createElement($this->getPropertiesFromPost($form))) {\n\t\t\t\tilUtil::sendSuccess($lng->txt('msg_obj_modified'), TRUE);\n\t\t\t\t$this->returnToParent();\n\t\t\t}\n\t\t}\n\n\t\t$form->setValuesByPost();\n\t\t$tpl->setContent($form->getHtml());\n\t}", "abstract function form();", "public function p_add() {\n\t\t$_POST = DB::instance(DB_NAME)->sanitize($_POST);\n\t\t\n\t\t# Unix timestamp of when this post was created / modified\n\t\t$_POST['created'] = Time::now();\n\t\t$_POST['modified'] = Time::now();\n\t\t$_POST['created_by'] = $this->user['email'];\n\t\t$_POST['modified_by'] = $this->user['email'];\n\t\tunset($_POST['MAX_FILE_SIZE']);\n\n\t\t# Insert\n\t\t# Note we didn't have to sanitize any of the $_POST data because we're using the insert method which does it for us\n\t\tDB::instance(DB_NAME)->insert('teachers', $_POST);\n\n\t\t\n\t\t# Send them to the main page\n\t\tRouter::redirect(\"/\");\n\n\n\t}", "public function getAddInput();", "abstract public function forms();", "public function insert(){\n $formClass = $this->type.'_Form';\n $form = new $formClass($this->values);\n $errors = $form->isValid();\n $object = $form->get('object');\n if (empty($errors)) {\n try {\n $object->insert($this->values);\n } catch (Exception $e) {\n $form = new $formClass($this->values, array());\n $html = '<div class=\"message messageError\">\n '.$e->getMessage().'\n </div>\n '.$form->createForm($form->createFormFields(), array('action'=>url($this->type.'/insert', true), 'submit'=>__('save'), 'class'=>'formAdmin formAdminInsert'));\n return array('success'=>'0', 'html'=>$html);\n }\n $multipleChoice = (count((array)$this->object->info->info->form->multipleActions) > 0) ? true : false;\n $html = $object->showUi('Admin', array('userType'=>$this->login->get('type'), 'multipleChoice'=>$multipleChoice));\n return array('success'=>'1', 'html'=>$html, 'id'=>$object->id());\n } else {\n $form = new $formClass($this->values, $errors);\n $html = $form->createForm($form->createFormFields(), array('action'=>url($this->type.'/insert', true), 'submit'=>__('save'), 'class'=>'formAdmin formAdminInsert'));\n return array('success'=>'0', 'html'=>$html);\n }\n }", "public function createForm();", "public function createForm();", "function _addMetadataFields()\n {\n $config =& NDB_Config::singleton();\n $this->dateOptions = array(\n 'language' => 'en',\n 'format' => 'YMd',\n 'minYear' => $config->getSetting('startYear'),\n 'maxYear' => $config->getSetting('endYear'),\n 'addEmptyOption' => true,\n 'emptyOptionValue' => null\n );\n\n $this->form->addElement('date', 'Date_taken', 'Date of Administration', $this->dateOptions);\n\n $examiners = $this->_getExaminerNames();\n $this->form->addElement('select', 'Examiner', 'Radiologist', $examiners);\n\n \t$this->form->addGroupRule('Date_taken', 'Date of Administration is required', 'required');\n\n $this->form->registerRule('checkdate', 'callback', '_checkDate');\n $this->form->addRule('Date_taken', 'Date of Administration is invalid', 'checkdate');\n\n $this->form->addRule('Examiner', 'Examiner is required', 'required');\n }", "public function postPartnerFormEdits()\n {\n $input_array = array();\n if ($_SERVER[\"REQUEST_METHOD\"] == \"POST\")\n {\n $input_array['title'] = $this->test_input($_POST['title']);\n $input_array['sub_title'] = $this->test_input($_POST['sub-title']);\n $input_array['desc_head'] = $this->test_input($_POST['desc-head']);\n $input_array['desc_body'] = $this->test_input($_POST['desc-body']);\n $input_array['desc_list_head'] = $this->test_input($_POST['desc-list-head']);\n $input_array['desc_list_data'] = $this->test_input($_POST['desc-list-data']);\n $input_array['desc_footer_head'] = $this->test_input($_POST['desc-footer-head']);\n $input_array['desc_footer_body'] = $this->test_input($_POST['desc-footer-body']);\n $input_array['info_head'] = $this->test_input($_POST['info-head']);\n $input_array['info_body'] = $this->test_input($_POST['info-body']);\n $input_array['info_list_head'] = $this->test_input($_POST['info-list-head']);\n $input_array['info_list_data'] = $this->test_input($_POST['info-list-data']);\n $input_array['info_footer_head'] = $this->test_input($_POST['info-footer-head']);\n $input_array['info_footer_body'] = $this->test_input($_POST['info-footer-body']);\n $input_array['footer_head'] = $this->test_input($_POST['footer-head']);\n $input_array['footer_body'] = $this->test_input($_POST['footer-body']);\n $input_array['footer_list_head'] = $this->test_input($_POST['footer-list-head']);\n $input_array['footer_list_data'] = $this->test_input($_POST['footer-list-data']);\n $input_array['contact_name'] = $this->test_input($_POST['contact-name']);\n $input_array['contact_title'] = $this->test_input($_POST['contact-title']);\n $input_array['contact_desc'] = $this->test_input($_POST['contact-desc']);\n $input_array['contact_phone'] = $this->test_input($_POST['contact-phone']);\n $input_array['contact_email'] = $this->test_input($_POST['contact-email']);\n\n if(!empty($_FILES[\"usr-file-upload\"][\"name\"]))\n {\n $img_path = $this->fileUpload();\n\n if(!is_array($img_path))\n {\n $input_array['img_path'] = $img_path;\n }\n else\n {\n $this->_errors = $img_path;\n }\n }\n else\n {\n $input_array['img_path'] = $this->test_input($_POST['img-path']);\n }\n $input_array['link'] = $this->test_input($_POST['link']);\n $input_array['link_text'] = $this->test_input($_POST['link-text']);\n }\n\n if(is_array($img_path))\n {\n echo Template::instance()->render('view/include/head.php');\n echo Template::instance()->render('view/include/top-nav.php');\n echo '<div class=\"container-fluid\">';\n echo '<div class=\"alert alert-danger\">';\n echo '<strong>Danger!</strong>';\n if(is_array($img_path))\n {\n foreach ($img_path as $error)\n {\n echo '<p>' . $error . '</p>';\n }\n }\n echo '</div>';\n echo '</div>';\n }\n else\n {\n $database = new Database();\n\n if($database->updatePartner($input_array, $this->_params['id']))\n {\n $url = '/Admin/edit-partner/' . $this->_params['id'];\n $this->_f3->reroute($url . '/success');\n }\n else\n {\n $errors = $database->getErrors();\n\n if(!empty($errors))\n {\n echo Template::instance()->render('view/include/head.php');\n echo Template::instance()->render('view/include/top-nav.php');\n echo '<div class=\"container-fluid\">';\n echo '<div class=\"alert alert-danger\">';\n echo '<strong>Danger!</strong>';\n foreach($errors as $error)\n {\n echo '<p>' . $error . '</p>';\n }\n echo '</div>';\n echo '</div>';\n }\n }\n }\n }", "public function addNewItem($category)\n {\n //Add tool\n if ($category==\"tools\") {\n\n if (isset($_POST['addTool'])) {\n $name=$_POST['name'];\n $quantity=$_POST['quantity'];\n $date_added=$_POST['addition_date'];\n $description_type=$_POST['description'];\n\n //create an object of tools and add it to the database\n $tool=new Tool($name, $quantity, $date_added ,$description_type);\n $tool->addItem();\n\n }\n //add feeds\n }else if ($category==\"feeds\") {\n if (isset($_POST['addFeed'])) {\n $name=$_POST['name'];\n $quantity=$_POST['quantity'];\n $date_added=$_POST['addition_date'];\n $description_type=$_POST['type'];\n\n //create an object of feeeds and add it to the database\n $feed= new Feed($name, $quantity, $date_added ,$description_type);\n $feed->addItem();\n }\n }\n\n }", "function firstentity_addperson($form , &$form_state , $personality) {\n $form['name'] = array(\n '#type' => 'textfield',\n '#title' => 'name'\n );\n\n $person = new stdClass();\n $person->personality = $personality;\n $person->id = 0;\n\n $form['person'] = array(\n '#type' => 'value',\n '#value' => $person\n );\n // validations requires is element\n $form['personality'] = array(\n '#type' => 'value',\n '#value' => $personality\n );\n // attach form elements for attached fields\n field_attach_form( 'person' , $person , $form , $form_state );\n \n $form['actions'] = array('#type' => 'actions');\n $form['actions']['add'] = array(\n '#type' => 'submit',\n '#value' => 'add'\n );\n return $form;\n}", "protected function _prepareForm()\n {\n $form = new Varien_Data_Form(array(\n 'id' => 'add_form',\n 'action' => $this->getUrl('*/faq/save', array(\n 'ret' => Mage::registry('ret'),\n 'id' => $this->getRequest()->getParam('id')\n )\n ),\n 'method' => 'post'\n ));\n\n $fieldset = $form->addFieldset('faq_new_question', array(\n 'legend' => $this->__('New Question'),\n 'class' => 'fieldset-wide'\n ));\n\n $fieldset->addField('new_question', 'text', array(\n 'label' => Mage::helper('inchoo_faq')->__('New Question'),\n 'required' => true,\n 'name' => 'question'\n ));\n\n $fieldset->addField('new_answer', 'textarea', array(\n 'label' => Mage::helper('inchoo_faq')->__('Answer'),\n 'required' => false,\n 'name' => 'answer',\n 'style' => 'height:12em;',\n ));\n\n $form->setUseContainer(true);\n// $form->setValues();\n $this->setForm($form);\n\n// echo \"_prepareForm()\";\n\n return parent::_prepareForm();\n\n\n }", "function getInput()\r\n\t{\r\n\t\t$this->name = trim($_POST['name']);\r\n\r\n\t\t$this->desg = trim($_POST['desg']);\r\n\r\n\t\t$this->gender = trim($_POST['gender']);\r\n\r\n\t\t\r\n\t\tif(strcmp($this->gender, 'M') == 0)\r\n\t\t{\r\n\t\t\t$this->addr = trim($_POST['office']);\r\n\t\t}\t\r\n\r\n\t\telseif(strcmp($this->gender, 'F') == 0)\r\n\t\t\t$this->addr = trim($_POST['resd']);\r\n\r\n\t\t\r\n\t\t$this->contacts = array(trim($_POST['con1']));\r\n\t\tarray_push($this->contacts, trim($_POST['con2']), trim($_POST['con3']), trim($_POST['con4']), trim($_POST['con5']));\r\n\r\n\t\t$this->emails = array(trim($_POST['email1']));\r\n\t\tarray_push($this->emails, trim($_POST['email2']));\r\n\r\n\t\t//print_r($this->emails);\r\n\r\n\t\t$this->validateInput();\r\n\r\n\t}", "public function saveAddedFieldData($inputData) {\n\n\t\t\t$group_id = $inputData['group-id'];\n\t\t\t$type_id = $inputData['type-id'];\n\n\t\t\t$info = getRequest('data');\n\n\t\t\t$title = getArrayKey($info, 'title');\n\t\t\t$name = getArrayKey($info, 'name');\n\t\t\t$is_visible = getArrayKey($info, 'is_visible');\n\t\t\t$field_type_id = getArrayKey($info, 'field_type_id');\n\t\t\t$guide_id = getArrayKey($info, 'guide_id');\n\t\t\t$in_search = getArrayKey($info, 'in_search');\n\t\t\t$in_filter = getArrayKey($info, 'in_filter');\n\t\t\t$tip = getArrayKey($info, 'tip');\n\t\t\t$isRequired = getArrayKey($info, 'is_required');\n\t\t\t$restrictionId = getArrayKey($info, 'restriction_id');\n\t\t\t$isImportant = getArrayKey($info, 'is_important');\n\n\t\t\t$objectTypes = umiObjectTypesCollection::getInstance();\n\t\t\t$fields = umiFieldsCollection::getInstance();\n\t\t\t$fieldTypes = umiFieldTypesCollection::getInstance();\n\n\t\t\t//Check for non-unique field name\n\t\t\t$type = $objectTypes->getType($type_id);\n\t\t\tif($type instanceof umiObjectType) {\n\t\t\t\tif($type->getFieldId($name)) {\n\t\t\t\t\tthrow new publicAdminException(getLabel('error-non-unique-field-name'));\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$field_type_obj = $fieldTypes->getFieldType($field_type_id);\n\t\t\t$field_data_type = $field_type_obj->getDataType();\n\n\t\t\tif($field_data_type == \"relation\" && $guide_id == 0) {\n\t\t\t\t$guide_id = self::getAutoGuideId($title);\n\t\t\t}\n\n\t\t\tif($field_data_type == \"optioned\" && $guide_id == 0) {\n\t\t\t\t$parent_guide_id = $objectTypes->getTypeIdByGUID('emarket-itemoption');\n\t\t\t\t$guide_id = self::getAutoGuideId($title, $parent_guide_id);\n\t\t\t}\n\n\t\t\t$field_id = $fields->addField($name, $title, $field_type_id, $is_visible, false, false);\n\n\t\t\t$field = $fields->getField($field_id);\n\t\t\t$field->setGuideId($guide_id);\n\t\t\t$field->setIsInSearch($in_search);\n\t\t\t$field->setIsInFilter($in_filter);\n\t\t\t$field->setTip($tip);\n\t\t\t$field->setIsRequired($isRequired);\n\t\t\t$field->setRestrictionId($restrictionId);\n\t\t\t$field->setImportanceStatus($isImportant);\n\t\t\t$field->commit();\n\n\t\t\tif($type instanceof umiObjectType) {\n\t\t\t\t$group = $type->getFieldsGroup($group_id);\n\t\t\t\tif($group instanceof umiFieldsGroup) {\n\t\t\t\t\t$group->attachField($field_id);\n\t\t\t\t\t$group_name = $group->getName();\n\n\t\t\t\t\t$childs = $objectTypes->getChildTypeIds($type_id);\n\t\t\t\t\t$sz = count($childs);\n\n\t\t\t\t\tfor($i = 0; $i < $sz; $i++) {\n\t\t\t\t\t\t$child_type_id = $childs[$i];\n\t\t\t\t\t\t$child_type = $objectTypes->getType($child_type_id);\n\n\t\t\t\t\t\tif($child_type instanceof umiObjectType) {\n\n\t\t\t\t\t\t\tif($child_type->getFieldId($name) == $field_id) continue;\n\n\t\t\t\t\t\t\t$child_group = $child_type->getFieldsGroupByName($group_name);\n\t\t\t\t\t\t\tif($child_group instanceof umiFieldsGroup) {\n\t\t\t\t\t\t\t\t$child_group->attachField($field_id, true);\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t$ignoreChildGroup = getRequest('ignoreChildGroup');\n\t\t\t\t\t\t\t\tif ($ignoreChildGroup) {\n\t\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tthrow new publicAdminException(getLabel(\"error-no-child-group\", false, $group_name, $child_type->getName()));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tthrow new publicAdminException(getLabel(\"error-no-object-type\", false, $child_type_id));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\treturn $field_id;\n\t\t\t\t} else {\n\t\t\t\t\tthrow new coreException(getLabel(\"error-no-fieldgroup\", false, $group_id));\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tthrow new coreException(getLabel(\"error-no-object-type\", false, $type_id));\n\t\t\t}\n\t\t}", "private function addElements(): void\n {\n // Add additional form fields\n $this->add([\n 'name' => 'masterFile',\n 'type' => Checkbox::class,\n 'attributes' => [\n 'id' => 'masterFile',\n 'class' => 'form-check-input',\n ],\n 'options' => [\n 'label' => 'Create master export file',\n 'label_attributes' => [\n 'class' => 'form-check-label',\n ],\n ],\n ]);\n\n $this->add([\n 'name' => 'debugTranslations',\n 'type' => Checkbox::class,\n 'attributes' => [\n 'id' => 'debugTranslations',\n 'class' => 'form-check-input',\n ],\n 'options' => [\n 'label' => 'Create debug translations',\n 'label_attributes' => [\n 'class' => 'form-check-label',\n ],\n ],\n ]);\n }", "function ValidateAdd()\n\t{\n\t}", "abstract function repopulate(Form $arg0);", "public function CreateForm();", "function addItem($userInput)\n {\n $stmt = $this->dbConnection->prepare('INSERT INTO todos (item) VALUES (:item)');\n $stmt->bindValue(':item', $userInput, PDO::PARAM_STR);\n $stmt->execute();\n $errorMsg = \"Inserted new item with ID: \" . $this->dbConnection->lastInsertId();\n $_POST=[]; \n }", "function handleInsertQuoteForm(){\n // On récupère la saisie\n //$text = filter_input(INPUT_POST, \"texte\", FILTER_SANITIZE_STRING);\n //$author = filter_input(INPUT_POST, \"auteur\", FILTER_SANITIZE_STRING);\n\n $data = filter_input_array(INPUT_POST, [\n \"texte\" => FILTER_SANITIZE_STRING,\n \"auteur\" => FILTER_SANITIZE_STRING\n ]);\n // Validation de la saisie\n $errors = validateInput($data);\n \n // Insertion uniquement s'il n'y a pas d'erreurs\n if(count($errors) == 0) {\n try {\n insertQuote($data);\n // Redirection vers la liste des citations\n header(\"location:liste-des-citations.php\");\n exit;\n } catch (Exception $ex) {\n $error[] = \"Il y a une erreur dans l'exécution de la requête\";\n }\n }\n\n return $errors;\n}", "function create_inputs($id, $isRequired)\n{\n $inputs = get_application_inputs($id);\n\n $required = $isRequired? ' required' : '';\n\n foreach ($inputs as $input)\n {\n /*\n echo '<p>DataType::STRING = ' . \\Airavata\\Model\\AppCatalog\\AppInterface\\DataType::STRING . '</p>';\n echo '<p>DataType::INTEGER = ' . \\Airavata\\Model\\AppCatalog\\AppInterface\\DataType::INTEGER . '</p>';\n echo '<p>DataType::FLOAT = ' . \\Airavata\\Model\\AppCatalog\\AppInterface\\DataType::FLOAT . '</p>';\n echo '<p>DataType::URI = ' . \\Airavata\\Model\\AppCatalog\\AppInterface\\DataType::URI . '</p>';\n\n echo '<p>$input->type = ' . $input->type . '</p>';\n */\n\n switch ($input->type)\n {\n case DataType::STRING:\n echo '<div class=\"form-group\">\n <label for=\"experiment-input\">' . $input->name . '</label>\n <input type=\"text\" class=\"form-control\" name=\"' . $input->name .\n '\" id=\"' . $input->name .\n '\" placeholder=\"' . $input->userFriendlyDescription . '\"' . $required . '>\n </div>';\n break;\n case DataType::INTEGER:\n case DataType::FLOAT:\n echo '<div class=\"form-group\">\n <label for=\"experiment-input\">' . $input->name . '</label>\n <input type=\"number\" class=\"form-control\" name=\"' . $input->name .\n '\" id=\"' . $input->name .\n '\" placeholder=\"' . $input->userFriendlyDescription . '\"' . $required . '>\n </div>';\n break;\n case DataType::URI:\n echo '<div class=\"form-group\">\n <label for=\"experiment-input\">' . $input->name . '</label>\n <input type=\"file\" class=\"\" name=\"' . $input->name .\n '\" id=\"' . $input->name . '\" ' . $required . '>\n <p class=\"help-block\">' . $input->userFriendlyDescription . '</p>\n </div>';\n break;\n default:\n print_error_message('Input data type not supported!\n Please file a bug report using the link in the Help menu.');\n break;\n }\n }\n}", "public function storeNewEmployer($input);", "function load_from_form ($allowSensibleFields = false) {\n if (array_key_exists('title', $_POST)) {\n $this->title = $_POST['title'];\n }\n\n if ($allowSensibleFields) {\n if (array_key_exists('path', $_POST)) {\n $this->path = $_POST['path'];\n }\n if (array_key_exists('user_id', $_POST)) {\n $this->user_id = $_POST['user_id'];\n }\n if (array_key_exists('perso_id', $_POST)) {\n $this->perso_id = $_POST['perso_id'];\n }\n }\n }", "protected function addFormObjectToViewHelperVariableContainer() {}", "public function addform()\n\t{\n\t\t\t$this->setMethod('post');\n\n\t\t\t\n\t\t\t$this->addElement('radio', 'status', array(\n\t\t\t\t'required' => true,\n\t\t\t\t'multiOptions' => array(\n\t\t\t\t\t'1' => IN_PROGRESS,\n\t\t\t\t\t'2' => 'Closed'\n\t\t\t\t\t\n\t\t\t\t),\n\t\t\t\t'value' => '1' //key of multiOption\n\t\t\t));\n\t\t\n\t\t\n\n\t\t\t$this->addElement('textarea', 'Comment', array( \n\t\t\t\t\t'required' => true,\n\t\t\t\t\t'maxlength' =>'50',\n\t\t\t\t\t\n\t\t\t\t\t'class' => 'validate[required] text-input',\n\t\t\t\t\t'decorators'=>Array(\n\t\t\t\t\t\t'ViewHelper','Errors'\n\t\t\t\t\t),\t\t \n\t\t\t));\n\n\t\t\t\n\n\t\t\t\n\n\n\t\n\t\t\t\t\n\t\t\t$this->addElement('submit', 'submit', array(\n\t\t\t\t\t'ignore' => true,\n\t\t\t\t\t'label' => 'Submit',\n\t\t\t));\n\t\t\t\n\t\t\t// And finally add some CSRF protection\n\t\t\t$this->addElement('hash', 'csrf', array(\n\t\t\t\t\t'ignore' => true,\n\t\t\t));\t\n\t}", "function readInputData() {\n\t\t$this->readUserVars(array(\n 'userId', \n 'typeId', \n 'applicationForm', \n 'survey', \n 'membership', \n 'domain', \n 'ipRange', \n 'notifyEmail', \n 'notifyPaymentEmail', \n 'specialRequests', \n 'datePaid', \n 'registrationOptionIds'));\n\n\t\t$this->_data['datePaid'] = Request::getUserVar('paid')?Request::getUserDateVar('datePaid'):null;\n\n\t\t// If registration type requires it, membership is provided\n\t\t$registrationTypeDao =& DAORegistry::getDAO('RegistrationTypeDAO');\n\t\t$registrationType =& $registrationTypeDao->getRegistrationType($this->getData('typeId'));\n\t\t$needMembership = $registrationType->getMembership();\n\n\t\tif ($needMembership) { \n\t\t\t$this->addCheck(new FormValidator($this, 'membership', 'required', 'manager.registration.form.membershipRequired'));\n\t\t}\n\n\t\t// If registration type requires it, domain and/or IP range is provided\n\t\t$isInstitutional = $registrationTypeDao->getRegistrationTypeInstitutional($this->getData('typeId'));\n\t\t$isOnline = $registrationType->getAccess() != REGISTRATION_TYPE_ACCESS_PHYSICAL ? true : false;\n\n\t\tif ($isInstitutional && $isOnline) { \n\t\t\t$this->addCheck(new FormValidatorCustom($this, 'domain', 'required', 'manager.registration.form.domainIPRangeRequired', create_function('$domain, $ipRange', 'return $domain != \\'\\' || $ipRange != \\'\\' ? true : false;'), array($this->getData('ipRange'))));\n\t\t}\n\n\t\t// If notify email is requested, ensure registration contact name and email exist.\n\t\tif ($this->_data['notifyEmail'] == 1) {\n\t\t\t$this->addCheck(new FormValidatorCustom($this, 'notifyEmail', 'required', 'manager.registration.form.registrationContactRequired', create_function('', '$schedConf =& Request::getSchedConf(); $schedConfSettingsDao =& DAORegistry::getDAO(\\'SchedConfSettingsDAO\\'); $registrationName = $schedConfSettingsDao->getSetting($schedConf->getId(), \\'registrationName\\'); $registrationEmail = $schedConfSettingsDao->getSetting($schedConf->getId(), \\'registrationEmail\\'); return $registrationName != \\'\\' && $registrationEmail != \\'\\' ? true : false;'), array()));\n\t\t}\n\t\tif ($this->_data['notifyPaymentEmail'] == 1) {\n\t\t\t$this->addCheck(new FormValidatorCustom($this, 'notifyPaymentEmail', 'required', 'manager.registration.form.registrationContactRequired', create_function('', '$schedConf =& Request::getSchedConf(); $schedConfSettingsDao =& DAORegistry::getDAO(\\'SchedConfSettingsDAO\\'); $registrationName = $schedConfSettingsDao->getSetting($schedConf->getId(), \\'registrationName\\'); $registrationEmail = $schedConfSettingsDao->getSetting($schedConf->getId(), \\'registrationEmail\\'); return $registrationName != \\'\\' && $registrationEmail != \\'\\' ? true : false;'), array()));\n\t\t}\n\t}", "abstract public function bindForm();", "abstract public function bindForm();", "public function displayPageAddForm(){\n\n // Vérifie les données de champs dupliqués\n $this->handleDuplicateFields();\n\n // Vérifie les données post envoyées\n $this->handleAdd();\n\n // If there ia a modify var\n if(isset($_GET['modify']) && !empty($_GET['modify'])){\n\n $form = get_post($_GET['modify']);\n if($this->isForm($_GET['modify'])){\n\n $formMetas = get_post_meta($_GET['modify']);\n $formArgs = get_post_meta($_GET['modify'],'form-args');\n $formFields = get_post_meta($_GET['modify'],'form-fields');\n $submitArgs = get_post_meta($_GET['modify'],'form-submit-args');\n $formSendArgs = get_post_meta($_GET['modify'],'form-send-args');\n }else\n unset($form);\n\n }\n require_once __DIR__ . '/templates/add.php';\n\n }", "function addEntry ($class)\n{\n global $error_detected, $fields, $className;\n\n $label = trim($_POST[$fields[$className]['name']]);\n $field = trim($_POST[$fields[$className]['field']]);\n\n checkFieldValue(\n $class,\n $fields[$className]['name'],\n $label\n );\n checkFieldValue(\n $class,\n $fields[$className]['field'],\n $field\n );\n\n if ( count($error_detected) ) {\n return;\n }\n\n $ret = $class->add($label, $field);\n if ( $ret < 0 ) {\n if ($ret == -1) {\n $error_detected[] = _T(\"- Database error: \").$class->getErrorMessage();\n }\n if ($ret == -2) {\n $error_detected[] = _T(\"- This label is already used!\");\n }\n return;\n }\n\n // User should be able to translate the new labels dynamically.\n addDynamicTranslation($label, $error_detected);\n\n return;\n}", "function process_form() {\n global $db;\n\n // Get a unique ID for this customer\n $customer_id = $db->nextID('customers');\n\n // Insert the new customer into the table\n $db->query('INSERT INTO customers (customer_id, customer_name, phone, favorite_dish_id) VALUES (?,?,?,?)',\n array($customer_id, $_POST['customer_name'], $_POST['phone'], $_POST['favorite_dish_id']));\n\n // Tell the user that we added a customer.\n print 'Added ' . htmlentities($_POST['customer_name']) . ' to the database.';\n}", "public function valiteForm();", "function addItem() {\n parse_str($_SERVER['QUERY_STRING'], $query);\n //print_r($query);\n //print_r($_REQUEST);\n if (isset($_REQUEST['entity'])) {\n $entity = strtolower($_REQUEST['entity']);\n }\n else {\n return $this->showStart();\n }\n if (isset($query['parent_entity']) && isset($query['parent_id'])){\n $parent_entity = $query['parent_entity'];\n $parent_id = $query['parent_id'];\n $conditions = array($entity . '_' . strtolower($parent_entity) . '_id' => $parent_id);\n //print_r($conditions);\n $edit_addition = 'parent_entity='.$parent_entity.'&parent_id='.$parent_id;\n $return_addition = '&entity='. $entity . '&' . $edit_addition;\n }\n else {\n //print_r(\"parent entity and id not set\");\n $return_addition = \"\";\n $conditions = array();\n }\n $destination='add_item';\n if (isset($_REQUEST[\"submitted\"])) {\n $this->error = \"<pre>submitted</pre>\";\n /* create the information from the form into the database\n * return editItem screen with the new object on success\n * or blank addItem screen with message on failure\n * plus the message '(entity) created successfully'\n * (entity)_column_1=xyz\n */\n $insert_values = array();\n $entity_prefix = $entity . '_';\n foreach($_REQUEST as $key=>$value){\n $hyphen = strpos($key, $entity_prefix);\n if ($hyphen !== false) {\n\t$column = substr($key, $hyphen + strlen($entity_prefix));\n\t$insert_values[$column] = $value;\n }\n }\n $insert_values = array_merge($insert_values, $conditions);\n //print_r($insert_values);\n $id = $this->addThing($entity, $insert_values);\n //print_r($id);\n if (! is_numeric($id)) {\n $this->error .=\"<pre>There was a problem with addThing</pre>\";\n }\n else {\n if ((int)$id > 0){\n\t$_REQUEST['id'] = $id;\n }\n else {\n\t$_REQUEST['id'] = $insert_values;\n }\n $_REQUEST['mode'] = 'update_item';\n return $this->updateItem();\n }\n }\n $returnurl = $this->action . '?mode=' . $entity .'_admin' . $return_addition;\n $action = $this->action . '?mode=' . $destination;\n $properties = $this->getPropertyList($entity);\n foreach($properties as $property) {\n if (is_array($property)){\n\t$subtype1 = array_keys($property);\n\t$subtype = $subtype1[0];\n\t$working_array = $property[$subtype];\n\tforeach($working_array as $subthing) {\n\t $subthing->id = reset($subthing);\n\t $subthing->description = next($subthing);\n\t}\n }\n }\n /* screen output*/\n $t = 'admin-add.html';\n $t = $this->twig->loadTemplate($t);\n $output = $t->render(array(\n\t\t\t 'modes' => $this->user_visible_modes,\n\t\t\t 'error' => $this->error,\n\t\t\t 'entity' => $entity,\n\t\t\t 'properties' => $properties,\n\t\t\t 'returnurl' => $returnurl,\n\t\t\t 'action' => $action,\n\t\t\t 'parent_entity' => $parent_entity,\n\t\t\t 'parent_id' => $parent_id\n\t\t\t ));\n return $output;\n }", "public function add(){\n\t\tif($_POST){\n\n\n\t\t$filter = new validations;\n\t\tvar_dump($filter->isInt($_POST['age' ], 18, 99));\n\t}\n/*\n\t\t$groups = $this->User->find(\"groups\", \"all\");\t\n\t\t$this->set(\"groups\", $groups);\n\t\tif($_POST){\n\t\t\tif($this->User->save(\"users\", $_POST)){\n\t\t\t\t$this->redirect(array(\"controller\"=>\"users\", \"action\"=>\"index\"));\n\t\t\t}else{\n\t\t\t\t$this->redirect(array(\"controller\"=>\"users\", \"action\"=>\"add\"));\n\t\t\t}\n\t\t}\n\t\t*/\n\t}", "function add() {\n\n\t\t// assign values from $_POST to class variables\n\t\t$this -> personal_id = $this -> input -> post('personal_id', TRUE);\n\n\t\t$this -> movable_number = $this -> input -> post('movable_number', TRUE);\n\n\t\t$this -> series_number = $this -> input -> post('series_number', TRUE);\n\n\t\t$this -> unit = $this -> input -> post('unit', TRUE);\n\n\t\t$this -> comment = $this -> input -> post('comment', TRUE);\n\t\t//tr_date_add\n\n\t\t$this -> give_date = tr_date_add($this -> input -> post('give_date', TRUE));\n\n\t\t$this -> take_date = tr_date_add($this -> input -> post('take_date', TRUE));\n\n\t\t$ok = $this -> db -> insert('movable', $this);\n\n\t\tif ($ok) {\n\n\t\t\t$this -> res = $this -> db -> insert_id();\n\t\t\t//$data['lastid'] = $this->db->insert_id() ;\n\n\t\t}\n\n\t\treturn $this -> res;\n\n\t}", "function bodyAdd($request){\r\n global $context;\r\n $data= new $this->model;\r\n foreach($data->fields as $key=>$field){\r\n if($field['type']!='One2many' && $field['type']!='Many2many' ){\r\n $data->data[$key]=$request->body[$key];\r\n }\r\n }\r\n\r\n if(!$data->insert()){\r\n if($request->isAjax()) return json_error($data->error);\r\n throw new \\Exception($data->error);\r\n }\r\n if($request->isAjax()) return json_success(\"Save Success !!\".$data->error,$data);\r\n\r\n\r\n redirectTo($context->controller_path.\"/all\");\r\n }", "function addItemForm(){\n\n\t//Selected continent and attribute\n\t$continent_id=$_GET[\"continent_id\"];\n\t$continent_name=$_GET[\"continent_name\"];\n\t$attribute_id=$_GET[\"attribute_id\"];\n\t$attribute_name=$_GET[\"attribute_name\"];\n\n\t//The add item form\n\techo \"<div class=\\\"heading\\\">\n\t\t<h2>Add New Item</h2>\n\t\t</div>\n\t\t<div class=\\\"main\\\">\n\t\t<form action=\\\"cms_addItemSubmit.php?continent_id=\".u($continent_id).\"&continent_name=\".h(u($continent_name)).\"&attribute_id=\".u($attribute_id).\"&attribute_name=\".h(u($attribute_name)).\"\\\" enctype=\\\"multipart/form-data\\\" method=\\\"post\\\">\n\t\tPage Number: <input name=\\\"pg\\\" type=\\\"text\\\" value=\\\"\\\"></input><br>\n\t\tItem Title: <input name=\\\"title\\\" type=\\\"text\\\" value=\\\"\\\"></input><br>\n\t\tImage: <input accept=\\\"image/*\\\" id=\\\"image\\\" name=\\\"image\\\" type=\\\"file\\\"><br>\n\t\tDescription: <textarea name=\\\"description\\\" rows=\\\"25\\\" cols=\\\"100\\\"></textarea><br>\n\t\tUser Access: <select name=\\\"ux\\\">\n\t\t\t\t<option value=\\\"Hidden\\\">Hidden</option>\n\t\t\t\t<option value=\\\"Visible\\\">Visible</option>\n\t\t\t\t</select><br>\n\t\t<input name=\\\"submit\\\" type=\\\"submit\\\" value=\\\"Create\\\"></input>\n\t\t</form>\";\n\n}", "function dataform_add_instance($data) {\n global $CFG, $DB;\n\n $data->timemodified = time();\n\n if (empty($data->grade)) {\n $data->grade = 0;\n $data->grademethod = 0;\n }\n\n if ($CFG->dataform_maxentries) {\n $data->maxentries = $CFG->dataform_maxentries;\n }\n\n if (!$data->id = $DB->insert_record('dataform', $data)) {\n return false;\n }\n\n dataform_grade_item_update($data);\n return $data->id;\n}", "public function setAddForm($addForm=true);", "public function createForm()\n {\n }", "private function validateForm(): void\n { if ($this->form->isSubmitted()) {\n // get the status\n $status = $this->getRequest()->request->has('saveAsDraft') ? 'draft' : 'active';\n\n // cleanup the submitted fields, ignore fields that were added by hackers\n $this->form->cleanupFields();\n\n // validate fields\n $this->form->getField('title')->isFilled(BL::err('TitleIsRequired'));\n $this->form->getField('text')->isFilled(BL::err('FieldIsRequired'));\n $this->form->getField('publish_on_date')->isValid(BL::err('DateIsInvalid'));\n $this->form->getField('publish_on_time')->isValid(BL::err('TimeIsInvalid'));\n $this->form->getField('category_id')->isFilled(BL::err('FieldIsRequired'));\n if ($this->form->getField('category_id')->getValue() == 'new_category') {\n $this->form->getField('category_id')->addError(BL::err('FieldIsRequired'));\n }\n\n // validate meta\n $this->meta->validate();\n\n if ($this->form->isCorrect()) {\n // build item\n $item = [\n 'id' => (int) BackendBlogModel::getMaximumId() + 1,\n 'meta_id' => $this->meta->save(),\n 'category_id' => (int) $this->form->getField('category_id')->getValue(),\n 'user_id' => $this->form->getField('user_id')->getValue(),\n 'language' => BL::getWorkingLanguage(),\n 'title' => $this->form->getField('title')->getValue(),\n 'introduction' => $this->form->getField('introduction')->getValue(),\n 'text' => $this->form->getField('text')->getValue(),\n 'publish_on' => BackendModel::getUTCDate(\n null,\n BackendModel::getUTCTimestamp(\n $this->form->getField('publish_on_date'),\n $this->form->getField('publish_on_time')\n )\n ),\n 'created_on' => BackendModel::getUTCDate(),\n 'hidden' => $this->form->getField('hidden')->getValue(),\n 'allow_comments' => $this->form->getField('allow_comments')->getChecked(),\n 'num_comments' => 0,\n 'status' => $status,\n ];\n $item['edited_on'] = $item['created_on'];\n\n // insert the item\n $item['revision_id'] = BackendBlogModel::insert($item);\n\n if ($this->imageIsAllowed) {\n // the image path\n $imagePath = FRONTEND_FILES_PATH . '/Blog/images';\n\n // create folders if needed\n $filesystem = new Filesystem();\n $filesystem->mkdir([$imagePath . '/source', $imagePath . '/128x128']);\n\n // image provided?\n if ($this->form->getField('image')->isFilled()) {\n // build the image name\n $item['image'] = $this->meta->getUrl()\n . '-' . BL::getWorkingLanguage()\n . '-' . $item['revision_id']\n . '.' . $this->form->getField('image')->getExtension();\n\n // upload the image & generate thumbnails\n $this->form->getField('image')->generateThumbnails($imagePath, $item['image']);\n\n // add the image to the database without changing the revision id\n BackendBlogModel::updateRevision($item['revision_id'], ['image' => $item['image']]);\n }\n }\n\n // save the tags\n BackendTagsModel::saveTags($item['id'], $this->form->getField('tags')->getValue(), $this->url->getModule());\n\n // active\n if ($item['status'] == 'active') {\n // add search index\n BackendSearchModel::saveIndex($this->getModule(), $item['id'], ['title' => $item['title'], 'text' => $item['text']]);\n\n // everything is saved, so redirect to the overview\n $this->redirect(BackendModel::createUrlForAction('Index') . '&report=added&var=' . rawurlencode($item['title']) . '&highlight=row-' . $item['revision_id']);\n } elseif ($item['status'] == 'draft') {\n // draft: everything is saved, so redirect to the edit action\n $this->redirect(BackendModel::createUrlForAction('Edit') . '&report=saved-as-draft&var=' . rawurlencode($item['title']) . '&id=' . $item['id'] . '&draft=' . $item['revision_id'] . '&highlight=row-' . $item['revision_id']);\n }\n }\n }\n }", "public function getFormData(){\n\n\t\t\t\n\t\t\t$expectedVariables = ['title','email','checkbox'];\n\n\n\t\t\tforeach ($expectedVariables as $variable) {\n\n\t\t\t\t// creating entries for error field\t\n\t\t\t\t$this->moviesuggest['errors'][$variable]=\"\";\n\n\t\t\t\t// move all $_POST values into MovieSuggest array\n\t\t\t\tif(isset($_POST[$variable])){\n\t\t\t\t\t$this->moviesuggest[$variable] = $_POST[$variable];\n\t\t\t\t}else{\n\t\t\t\t\t$this->moviesuggest[$variable] = \"\";\n\t\t\t\t}\n\t\t\t}\n\n\n\t\t\t// var_dump($moviesuggest);\n\t\t\t// die();\n\t}", "public function addElementForm($add_options = NULL)\n {\n \t$address_option_list = $this->getChoiceList(\"address\", \"street\", \"getIdAddress\"); \n\t\t$fields = array(\"latitude\", \"longitude\", \"select_address\", \"description\");\n\t\t$fields_types = array(\"text\", \"text\", \"choice\", \"textarea\");\n\t\t$options = ($add_options != NULL )? $add_options : array(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tNULL, \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tNULL, \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tarray(\"choices\" => $address_option_list, \"placeholder\" => \"Select Address\"), \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tNULL\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t);\n\t\t$items['entity'] = \"\\location\";\n\t\t$items['fields'] = $fields;\n\t\t$items['options'] = $options;\n\t\t$items['fields_types'] = $fields_types;\n\t\treturn $items;\n\t}", "function wpgnv_process_form() {\n\tif ( empty( $_POST['post-title'] ) && wp_verify_nonce( $_POST['wpgnv_new_idea'], 'wpgnv_new_idea' ) ) {\n\t\tglobal $wpgnv_error;\n\t\t$wpgnv_error = 'You left the Idea field empty. Please enter an Idea and THEN submit it.';\n\t\treturn;\n\t}\n\tif ( isset( $_POST ) && wp_verify_nonce( $_POST['wpgnv_new_idea'], 'wpgnv_new_idea' ) ) {\n\t\t$post_args = array (\n\t\t\t'post_type' => 'ideas',\n\t\t\t'post_status' => 'pending',\n\t\t\t'post_title' => esc_html( $_POST['post-title'] )\n\t\t);\n\t\t$post_id = wp_insert_post( $post_args );\n\n\t\tif ( is_wp_error( $post_id ) ) {\n\t\t\tglobal $wpgnv_error;\n\t\t\t$wpgnv_error = 'Sorry, there was an error processing your new idea.';\n\t\t} else {\n\t\t\tglobal $wpgnv_success;\n\t\t\t$wpgnv_success = 'Awesome! Your idea has been submitted and is awaiting moderation.';\n\t\t}\n\t}\t\n}", "protected function addQuestionToolbarForm()\n\t{\n\t\tglobal $lng, $ilCtrl, $tpl;\n\n\t\tinclude_once \"Services/Form/classes/class.ilPropertyFormGUI.php\";\n\t\t$form = new ilPropertyFormGUI();\n\t\t$form->setFormAction($ilCtrl->getFormAction($this, \"addQuestionToolbar\"));\n\t\t$form->setTitle($lng->txt(\"survey_add_new_question\"));\n\n\t\t// question types\n\t\tinclude_once \"./Modules/SurveyQuestionPool/classes/class.ilObjSurveyQuestionPool.php\";\n\t\t$questiontypes = ilObjSurveyQuestionPool::_getQuestiontypes();\n\t\t$type_map = array();\n\t\tforeach($questiontypes as $trans => $item)\n\t\t{\n\t\t\t$type_map[$item[\"questiontype_id\"]] = $trans;\n\t\t}\n\t\tinclude_once(\"./Services/Form/classes/class.ilSelectInputGUI.php\");\n\t\t$si = new ilSelectInputGUI($lng->txt(\"question_type\"), \"qtype\");\n\t\t$si->setOptions($type_map);\n\t\t$form->addItem($si);\n\n\t\t$pages = $this->object->getSurveyPages();\n\t\tif($pages)\n\t\t{\n\t\t\t$pages_drop = array(\"fst\"=>$lng->txt(\"survey_at_beginning\"));\n\t\t\tforeach($pages as $idx => $questions)\n\t\t\t{\n\t\t\t\t$question = array_shift($questions);\n\t\t\t\tif($question[\"questionblock_id\"])\n\t\t\t\t{\n\t\t\t\t\t$pages_drop[$idx+1] = $lng->txt(\"survey_behind_page\").\" \".$question[\"questionblock_title\"];\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$pages_drop[$idx+1] = $lng->txt(\"survey_behind_page\").\" \".strip_tags($question[\"title\"]);\n\t\t\t\t}\n\t\t\t}\n\t\t\t$pos = new ilSelectInputGUI($lng->txt(\"position\"), \"pgov\");\n\t\t\t$pos->setOptions($pages_drop);\n\t\t\t$form->addItem($pos);\n\n\t\t\t$pos->setValue($this->current_page);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// #9089: 1st page \n\t\t\t$pos = new ilHiddenInputGUI(\"pgov\");\n\t\t\t$pos->setValue(\"fst\");\n\t\t\t$form->addItem($pos);\n\t\t}\n\n\t\tif($this->object->isPoolActive())\n\t\t{\n\t\t\t$this->editor_gui->createQuestionObject($form);\n\t\t}\n\n\t\t$form->addCommandButton(\"addQuestionToolbar\", $lng->txt(\"create\"));\n\t\t$form->addCommandButton(\"renderPage\", $lng->txt(\"cancel\"));\n\n\t\treturn $tpl->setContent($form->getHTML());\n\t}", "public function storeNewOfficeEmployer($input);", "public function saveAddedObjectData($inputData) {\n\t\t\t$objectsCollection = umiObjectsCollection::getInstance();\n\t\t\t$typesCollection = umiObjectTypesCollection::getInstance();\n\n\t\t\tif($this->checkAllowedElementType($inputData, true) == false) {\n\t\t\t\tthrow new wrongElementTypeAdminException(getLabel(\"error-unexpected-element-type\"));\n\t\t\t}\n\n\n\t\t\t$this->setRequestDataAliases(getArrayKey($inputData, 'aliases'));\n\n\t\t\tif(is_null($name = getArrayKey($inputData, 'name'))) {\n\t\t\t\t$name = getRequest('name');\n\t\t\t}\n\n\t\t\tif(is_null($name)) {\n\t\t\t\tthrow new publicAdminException(\"Require 'name' param in _REQUEST array.\");\n\t\t\t}\n\n\t\t\t$module = get_class($this);\n\t\t\t$method = getArrayKey($inputData, 'type');\n\t\t\t$typeId = getArrayKey($inputData, 'type-id');\n\n\t\t\tif(!$typeId) {\n\t\t\t\t$typeId = $typesCollection->getTypeIdByHierarchyTypeName($module, $method);\n\t\t\t}\n\n\t\t\t$objectId = $objectsCollection->addObject($name, $typeId);\n\t\t\t$object = $objectsCollection->getObject($objectId);\n\t\t\tif($object instanceof umiObject) {\n\t\t\t\t$this->saveAddedObject($object);\n\t\t\t\treturn $object;\n\t\t\t} else {\n\t\t\t\tthrow new coreException(\"Can't create object #{$objectId} \\\"{$name}\\\" of type #{$typeId}\");\n\t\t\t}\n\t\t}", "protected function _processValidForm()\n {\n $table = $this->_getTable();\n\n $formValues = $this->_getForm()->getValues();\n\n if (!empty($formValues[$this->_getPrimaryIdKey()])) {\n $row = $this->_getRow($this->_getPrimaryId());\n } else {\n $row = $table->createRow();\n }\n\n foreach ($formValues as $key => $value) {\n if (isset($row->$key) && !$table->isIdentity($key)) {\n $row->$key = $value;\n }\n }\n\n $row->save();\n\n $this->_goto($this->_getBrowseAction());\n }", "function ooForm( ) {\n\n $this->templateobj = new ooFormTemplate(); // $this->templateobj = new ooFormTemplate('templates'); this has to be changed to pass generic options to template engine as required by the engine, each is different, you can't put 'template' in here, you've got to pass an array of options meaningful to the engine.\n\n$this->params_list = $_REQUEST;\n\n//if( $this->debug ) {\n//\tprint \"<pre>\";\n//\tprint \"Dumping Constructor\\n\";\n//\tprint \"Field List\\n\";\n//\tprint_r( $this->fields_list );\n//\tprint \"CGI Parameters\\n\";\n//\tprint_r( $this->params_list );\n// \tprint \"</pre>\";\n//}\n\n }", "function form_init_data()\r\n {\r\n $this->set_element_value(\"Swimmers\", FT_CREATE) ;\r\n $this->set_element_value(\"Swim Meets\", FT_CREATE) ;\r\n $this->set_element_value(\"Swim Teams\", FT_CREATE) ;\r\n }", "public function addElementForm($add_options = NULL)\n {\n\t\t$fields = array(\"name\",\"last_name\", \"country\", \"web_url\", \"description\");\n\t\t$fields_types = array(\"text\", \"text\", \"text\", \"url\", \"texteditor\");\n\t\t$options = ($add_options != NULL )? $add_options : array(NULL, NULL, NULL, NULL, NULL);\n\t\t$items['entity'] = \"\\writer\";\n\t\t$items['fields'] = $fields;\n\t\t$items['options'] = $options;\n\t\t$items['fields_types'] = $fields_types;\n\t\treturn $items;\n\t}", "protected function createFormFields() {\n\t}", "public function formdata_add($posts,$json){\n \n $input = array('radio','select','checkbox');\n $this->db->insert('form_submission',$json);\n foreach($posts as $post){\n if(in_array($post['type'],$input)){\n $form = array(\n 'form_field_id'=>$post['form_field_id'],\n 'user_id'=> $post['user_id'],\n 'form_id'=>$post['form_id'],\n 'form_option_id'=>$post['option_id']\n );\n $this->db->insert('user_form_info_options',$form);\n }else{\n $form = array(\n 'form_field_id'=>$post['form_field_id'],\n 'user_id'=> $post['user_id'],\n 'form_id'=>$post['form_id'],\n 'answer'=>$post['answer']\n );\n $this->db->insert('user_form_info_text',$form);\n }\n }\n //$loc_id = $this->db->insert_id();\n //print_r($country); exit;\n return $post['form_id'];\n }", "public function add(): void\n {\n $exerciseforms = $this->exerciseformBLL->getAllExcerciseforms();\n\n $data = [\n 'exerciseforms' => $exerciseforms,\n 'name' => '',\n 'description' => '',\n 'repetitions' => '',\n 'sets' => ''\n ];\n\n $this->view('exercises/add', $data);\n }", "public function hookForm() {\n if ($this->isCompanyForm()) {\n $this->setDefaultExpDate();\n $this->makeBillingAreaRequired();\n }\n elseif ($this->isCompanyViewsMultiSearchForm()) {\n $this->form['company_name']['#type'] = 'textarea';\n $this->duplicateField('sort_by');\n }\n }", "function act_pr_forma_pago(){\n\t\t$u= new Forma_pago();\n\t\t$related = $u->from_array($_POST);\n\t\t// save with the related objects\n\t\tif($u->save($related))\n\t\t{\n\t\t\techo \"<html> <script>alert(\\\"Se han actualizado los datos de la Forma de Pago.\\\"); window.location='\".base_url().\"index.php/inicio/acceso/\".$GLOBALS['ruta'].\"/menu';</script></html>\";\n\t\t}\n\t\telse\n\t\t{\n\t\t\tshow_error(\"\".$u->error->string);\n\t\t}\n\t}", "public function add() {\n\n\t\tif(isset($_POST['name']) && isset($_POST['age']) && $_POST['phoneNumber']) {\n\n\t\t\t$name = $_POST['name'];\n\t\t\t$age = $_POST['age'];\n\t\t\t$phoneNumber = $_POST['phoneNumber'];\n\n\t\t\t$results = Person::add($name, $age, $phoneNumber);\n\n\t\t\techo json_encode(array_merge($this->response, $results));\n\t\t} else {\n\t\t\techo json_encode(array_merge($this->response, array('error' => 1, 'message' => 'Please provide all request')));\n\t\t}\n\t}", "public function xadd() {\n\t\t$args = $this->getAllArguments ();\n\t\tif ($args ['view'] == 'forms') {\n\t\t\t$this->_redirect ( '_newForm' );\n\t\t} elseif ($args ['view'] == 'fields') {\n\t\t\t$this->_redirect ( '_newField' );\n\t\t} elseif ($args ['view'] == 'actions') {\n\t\t\t$this->_redirect ( '_newAction' );\n\t\t} else {\n\t\t\tparent::xadd ();\n\t\t}\n\t}", "function add_specific_form_fields() {\n\t\treturn false;\n\t}", "function InputForm()\n\t{\t\n\t\tif (!$data = $this->details)\n\t\t{\t$data = $_POST;\n\t\t\tif (!$data)\n\t\t\t{\t$data = array('live'=>1);\n\t\t\t}\n\t\t}\n\t\t\n\t\t$form = new Form('pageedit.php?id=' . (int)$this->id, 'pageedit');\n\t\t$form->AddTextInput('Page title', 'pagetitle', $this->InputSafeString($data['pagetitle']), '', 50);\n\t\t$form->AddCheckBox('Hide title on page', 'hideheader', 1, $data['hideheader']);\n\t\t\n\t\tif ($parents = $this->GetPossibleParents())\n\t\t{\t$form->AddSelectWithGroups('Parent page', 'parentid', $data['parentid'], '', $parents, 1, 0, '');\n\t\t\t$form->AddCheckBox('Display as section of parent', 'inparent', 1, $data['inparent']);\n\t\t}\n\t\t\n\t\t$form->AddTextInput('Order in menu', 'pageorder', (int)$data['pageorder'], 'num', 4);\n\t\tif ($this->CanAdminUser('technical'))\n\t\t{\t$form->AddTextInput('Extra page to include', 'includefile', $this->InputSafeString($data['includefile']), '', 50);\n\t\t\t$form->AddCheckBox('Allow galleries', 'galleries', 1, $data['galleries']);\n\t\t}\n\t\t$form->AddCheckBox('Make live', 'pagelive', 1, $data['pagelive']);\n\t\t$form->AddCheckBox('Leave out of search results', 'nosearch', 1, $data['nosearch']);\n\t\t$form->AddCheckBox('Show social media links?', 'socialbar', 1, $data['socialbar']);\n\t\t$form->AddCheckBox('In header menu?', 'headermenu', 1, $data['headermenu']);\n\t\tif ($this->CanAdminUser('technical'))\n\t\t{\t$form->AddTextInput('Class for header menu', 'menuclass', $this->InputSafeString($data['menuclass']), '', 50);\n\t\t}\n\t\t$form->AddCheckBox('In footer menu?', 'footermenu', 1, $data['footermenu']);\n\t\t$form->AddCheckBox('Header only (no content)', 'headeronly', 1, $data['headeronly']);\n\t\t$form->AddTextInput('Redirect link (full address if external)', 'redirectlink', $this->InputSafeString($data['redirectlink']), 'long', 255);\n\t\t\n\t\tif ($this->id)\n\t\t{\t$form->AddTextInput('Slug (for URL)', 'pagename', $this->InputSafeString($data['pagename']), 'long', 255);\n\t\t\tif ($link = $this->Link())\n\t\t\t{\t$form->AddRawText('<p><label>Link to page</label><span><a href=\"' . $link . '\" target=\"_blank\">' . $link . '</a></span><br /></p>');\n\t\t\t}\n\t\t}\n\t\t$form->AddCheckBox('Display block link in parent (if any)', 'blocklink', 1, $data['blocklink']);\n\t\t$form->AddTextArea('Block link text', $name = 'pageintro', stripslashes($data['pageintro']), 'tinymce', 0, 0, 10, 60);\n\t\t$form->AddTextArea('Page content', $name = 'pagetext', stripslashes($data['pagetext']), 'tinymce', 0, 0, 50, 60);\n\t\t$form->AddRawText('<p><label></label><a href=\"#\" onclick=\"javascript:window.open(\\'newsimagelist.php\\', \\'newsimages\\', \\'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=yes, width=400, height=550\\'); return false;\">view available images</a></p>');\n\t\t$form->AddFileUpload('Subpage image:', 'imagefile');\n\t\tif ($src = $this->HasImage('thumbnail'))\n\t\t{\t$form->AddRawText('<label>Current image</label><img src=\"' . $src . '?' . time() . '\" height=\"200px\" /><br />');\n\t\t\t$form->AddCheckBox('Delete this', 'delphoto');\n\t\t}\n\t\t\n\t\tob_start();\n\t\techo '<label>Banner:</label><br /><label id=\"bannerPicked\">', ($data['banner'] && ($banner = new BannerSet($data['banner'])) && $banner->id) ? $this->InputSafeString($banner->details['title']) : 'none','</label><input type=\"hidden\" name=\"banner\" id=\"bannerValue\" value=\"', (int)$data['banner'], '\" /><span class=\"dataText\"><a onclick=\"BannerPicker();\">change this</a></span><br />';\n\t\t$form->AddRawText(ob_get_clean());\n\n\n\t\t$form->AddSubmitButton('', $this->id ? 'Save' : 'Create', 'submit');\n\t\techo $this->BannerPickerPopUp();\n\t\t\n\t\t$form->Output();\n\t}", "function AjaxForm ( $object )\r\n \t{\r\n \t\t$this->form_id = uniqid();\r\n \t\tif ( is_subclass_of($object, 'StoredObjectDB') )\r\n \t\t{\r\n \t\t\t$this->object = $object;\r\n \t\t\t$this->action = CO_ACTION_CREATE;\r\n \t\t}\r\n \t\telseif ( is_subclass_of($object, 'IteratorBase') )\r\n \t\t{\r\n \t\t\t$this->object_it = $object;\r\n \t\t\t$this->object = $this->object_it->object;\r\n \t\t\t$this->action = CO_ACTION_MODIFY;\r\n \t\t}\r\n \t\telse\r\n \t\t{\r\n \t\t\t$this->action = CO_ACTION_CREATE;\r\n \t\t} \t\t\t\r\n \t\t\r\n \t\t$this->setRedirectUrl( SanitizeUrl::parseSystemUrl($_REQUEST['redirect']) );\r\n \t}", "protected function add_tags_input()\n {\n $tags = DataManager::retrieve_content_object_tags_for_user(Session::get_user_id());\n\n if ($this->content_object->is_identified())\n {\n $default_tags = DataManager::retrieve_content_object_tags_for_content_object(\n $this->content_object->get_id()\n );\n }\n\n $tags_form_builder = new TagsFormBuilder($this);\n $tags_form_builder->build_form($tags, $default_tags);\n }", "public function p_add() {\n $_POST['user_id'] = $this->user->user_id;\n\n # Unix timestamp of when this post was created / modified\n $_POST['created'] = Time::now();\n $_POST['modified'] = Time::now();\n\n\n # Insert\n # Note we didn't have to sanitize any of the $_POST data because we're using the insert method which does it for us\n DB::instance(DB_NAME)->insert('activities', $_POST);\n\n # Send them back to home page\n Router::redirect('/activities/index');\n\n }", "public function actionAdd()\n\t{\n\t\t$formId = $this->_input->filterSingle('form_id', XenForo_Input::UINT);\n\t\t$type = $this->_input->filterSingle('type', XenForo_Input::STRING);\n\t\t\n\t\t$fieldModel = $this->_getFieldModel();\n\t\t$fieldTypes = $fieldModel->getCountByType();\n\t\t\n\t\t$options = array();\n\t\t$options[] = array(\n\t\t 'value' => 'user',\n\t\t 'label' => new XenForo_Phrase('field'),\n\t\t 'selected' => true\n\t\t);\n\t\t\n\t\t// if global fields exist, include in the types\n\t\tif (array_key_exists('global', $fieldTypes))\n\t\t{\n\t\t\t$options[] = array(\n\t\t\t 'value' => 'global',\n\t\t\t 'label' => new XenForo_Phrase('global_field')\n\t\t\t);\n\t\t}\n\t\t\n\t\t// if template fields exist, include in the types\n\t\tif (array_key_exists('template', $fieldTypes))\n\t\t{\n\t\t\t$options[] = array(\n\t\t\t 'value' => 'template',\n\t\t\t 'label' => new XenForo_Phrase('template_field') \n\t\t\t);\n\t\t}\n\t\t\n\t\t// if there are no options other than user, just send them to the add field page\n\t\tif (!$type && count($options) == 1)\n\t\t{\n\t\t\t$type = 'user';\n\t\t}\n\t\t\n\t\t// association a field to a form\n\t\tif ($formId && $type)\n\t\t{\n\t\t\t$default = array(\n\t\t\t\t'field_id' => null,\n\t\t\t\t'form_id' => $this->_input->filterSingle('form_id', XenForo_Input::UINT),\n\t\t\t\t'display_order' => $this->_getFieldModel()->getGreatestDisplayOrderByFormId($formId) + 10,\n\t\t\t\t'field_type' => 'textbox',\n\t\t\t\t'field_choices' => '',\n\t\t\t\t'match_type' => 'none',\n\t\t\t\t'match_regex' => '',\n\t\t\t\t'match_callback_class' => '',\n\t\t\t\t'match_callback_method' => '',\n\t\t\t\t'max_length' => 0,\n\t\t\t\t'min_length' => 0,\n\t\t\t\t'required' => 0,\n\t\t\t\t'type' => $type,\n\t\t\t\t'active' => 1,\n\t\t\t\t'pre_text' => '',\n\t\t\t\t'post_text' => ''\n\t\t\t);\n\t\t\t\n\t\t\tswitch ($type)\n\t\t\t{\n\t\t\t case 'global':\n\t\t {\n\t\t return $this->responseReroute('KomuKu_SimpleForms_ControllerAdmin_Form', 'add-global-field');\n\t\t }\n\t\t\t case 'template':\n\t\t {\n\t\t return $this->responseReroute('KomuKu_SimpleForms_ControllerAdmin_Form', 'add-template-field');\n\t\t }\n\t\t\t default:\n\t\t {\n\t\t return $this->_getFieldAddEditResponse($default);\n\t\t }\n\t\t\t}\n\t\t}\n\t\t\n\t\t// adding a global/template field\n\t\telse if (!$formId && $type)\n\t\t{\n\t\t $default = array(\n\t 'field_id' => null,\n\t 'field_type' => 'textbox',\n\t 'field_choices' => '',\n\t 'match_type' => 'none',\n\t 'match_regex' => '',\n\t 'match_callback_class' => '',\n\t 'match_callback_method' => '',\n\t 'max_length' => 0,\n\t\t \t'min_length' => 0,\n\t 'type' => $type,\n\t\t \t'pre_text' => '',\n\t\t \t'post_text' => ''\n\t\t );\n\t\t \n\t\t if ($type != 'global')\n\t\t {\n\t\t \t$default['display_order'] = 1;\n\t\t \t$default['required'] = 0;\n\t\t \t$default['active'] = 1;\n\t\t }\n\t\t \n\t\t return $this->_getFieldAddEditResponse($default);\n\t\t}\n\t\t\n\t\t// association type\n\t\telse\n\t\t{\n\t\t\t$viewParams = array(\n\t\t\t\t'formId' => $formId,\n\t\t\t\t'options' => $options\n\t\t\t);\n\t\t\t\n\t\t\treturn $this->responseView('KomuKu_SimpleForms_ViewAdmin_Field_AddType', 'kmkform__field_add_type', $viewParams);\n\t\t}\n\t}", "function postAdd($request){\r\n global $context;\r\n $data= new $this->model;\r\n foreach($data->fields as $key=>$field){\r\n if($field['type']!='One2many' && $field['type']!='Many2many' ){\r\n $data->data[$key]=$request->post[$key];\r\n }\r\n }\r\n\r\n if(!$data->insert()){\r\n if($request->isAjax()) return json_error($data->error);\r\n throw new \\Exception($data->error);\r\n }\r\n if($request->isAjax()) return json_success(\"Save Success !!\".$data->error,$data);\r\n\r\n\r\n redirectTo($context->controller_path.\"/all\");\r\n }", "private function addQuestion() : void\n {\n $question = $this->console->ask(__('Type your question'));\n\n $this->console->info('Question successfully added ');\n\n $answer = $this->console->ask(__('Type your answer'));\n\n $this->console->info('Answer successfully added ');\n\n $this->questionRepository->create([\n 'question' => $question,\n 'valid_answer' => $answer,\n ]);\n }", "abstract protected function getForm();", "function addEntry($formvars) { \n try {\n $rh = $this->pdo->prepare(\"insert into GUESTBOOK values(0,?,NOW(),?)\");\n $rh->execute(array($formvars['Name'],$formvars['Comment']));\n } catch (PDOException $e) {\n print \"Error!: \" . $e->getMessage();\n return false;\n }\t\n return true;\n }", "function saveForm(){\t\n\t\t$this->saveFormBase();\n\t\t$this->saveFormGeoCoverage();\n\t\t$this->saveVaFormResolution();\n\t\tif ($this->dataset->nbModForm >0) $this->saveModForm();\n\t\tif ($this->dataset->nbSatForm >0) $this->saveSatForm();\n\t\tif ($this->dataset->nbInstruForm >0) $this->saveInstruForm();\n\t\t$this->saveFormGrid();\n\t\t//Parameter\n\t\t$this->saveFormVariables($this->dataset->nbVars);\n\t\t//REQ DATA_FORMAT\n\t\t$this->dataset->required_data_formats = array();\n\t\t$this->dataset->required_data_formats[0] = new data_format;\n\t\t$this->dataset->required_data_formats[0]->data_format_id = $this->exportValue('required_data_format');\n\t}", "private function addElements()\n {\n $author = (new Text())\n ->setName('author')\n ->setLabel('Author')\n ->setAttribute('id', 'author');\n $this->add($author);\n\n $comment = (new Textarea())\n ->setName('comment')\n ->setLabel('Content')\n ->setAttribute('id', 'comment');\n $this->add($comment);\n\n $submit = (new Submit())\n ->setName('submit')\n ->setAttribute('value', 'Save')\n ->setAttribute('id', 'submitButton');\n $this->add($submit);\n }", "function handle_post($indata) {\n// showDebug('form_class POST:');\n// showArray($indata); \n return;\n }", "public function prepareElements()\n\t{\n\t\t// or a specification, from which the appropriate object\n\t\t// will be built.\n\n $this->add(array(\n 'name' => 'email',\n 'options' => array(\n 'label' => 'E-mail',\n ),\n 'attributes' => array(\n 'type' => 'text',\n \t'autocomplete' => 'off',\n ),\n ));\n\n $this->add(array(\n 'name' => 'password',\n 'options' => array(\n 'label' => 'Password',\n ),\n 'attributes' => array(\n 'type' => 'text',\n 'autocomplete' => 'off',\n ),\n ));\n\n $this->add(array(\n 'name' => 'role',\n 'options' => array(\n 'label' => 'Role',\n\n ),\n \t'type' => 'Select',\n \t'attributes' => array(\n \t\t'options' => array(\n \t\t\t'test' => 'Hi, Im a test!',\n \t\t\t'Foo' => 'Bar',\n \t\t),\n \t),\n ));\n\n $this->add(array(\n 'name' => 'submit',\n 'attributes' => array(\n 'value' => 'Save new user',\n 'type' => 'submit'\n ),\n ));\n\n\t\t// We could also define the input filter here, or\n\t\t// lazy-create it in the getInputFilter() method.\n\t}", "public function addFormSubmitted($form) \r\n {\r\n $values = $form->getValues();\r\n \r\n if ($this->calibre->addBooks($values)) {\r\n $msg = $this->context->translator->translate(\r\n \"Books have been successfully added to your library.\");\r\n $this->flashMessage($msg, 'ok');\r\n $this->redirect('this');\r\n }\r\n else {\r\n $msg = $this->context->translator->translate(\r\n \"Error: Weblibre was unable to add some books into the library!\");\r\n $this->flashMessage($msg, 'error');\r\n }\r\n }", "public function loadForm() {\n foreach ($this->Fields as $key => $item) {\n if($item['function'] && $this->FormMode == \"add\") {\n $fn = str_replace('$1', $_POST[$key], $item['function']);\n $this->$key = eval($fn);\n } else\n if($_POST[$key] !== null) {\n $this->$key = $_POST[$key];\n }\n }\n }", "function insert() {\n\t\tglobal $tpl;\n\n\t\t$form = $this->initForm(TRUE);\n\t\t$tpl->setContent($form->getHTML());\n\t}", "protected function addElements() \n {\n // Add \"email\" field\n $this->add([ \n 'type' => 'text',\n 'name' => 'title',\n 'options' => [\n 'label' => 'Title',\n ],\n ]);\n \n // Add \"parent_id\" field\n $this->add([ \n 'type' => 'text',\n 'name' => 'parent_id', \n 'options' => [\n 'label' => 'Full Name',\n ],\n ]);\n \n if ($this->scenario == 'create') {\n \n\n }\n \n // Add \"status\" field\n $this->add([ \n 'type' => 'select',\n 'name' => 'status',\n 'options' => [\n 'label' => 'Status',\n 'value_options' => [\n 1 => 'Active',\n 2 => 'Retired', \n ]\n ],\n ]);\n \n // Add the Submit button\n $this->add([\n 'type' => 'submit',\n 'name' => 'submit',\n 'attributes' => [ \n 'value' => 'Create'\n ],\n ]);\n }", "public function add()\n\t{\n\t\t$fake_id = $this->_get_id_cur();\n\t\t$form = array();\n\t\t$form['view'] = 'form';\n\t\t$form['validation']['params'] = $this->_get_params();\n\t\t$form['submit'] = function()use ($fake_id)\n\t\t{\n\t\t\t$data = $this->_get_inputs();\n\t\t\t$data['sort_order'] = $this->_model()->get_total() + 1;\n\t\t\t$id = 0;\n\t\t\t$this->_model()->create($data,$id);\n\t\t\t// Cap nhat lai table_id table file\n\t\t\tmodel('file')->update_table_id_of_mod($this->_get_mod(), $fake_id, $id);\n\t\t\tfake_id_del($this->_get_mod());\n\n\t\t\tset_message(lang('notice_add_success'));\n\t\t\t\n\t\t\treturn admin_url($this->_get_mod());\n\t\t};\n\t\t$form['form'] = function() use ($fake_id)\n\t\t{\n\t\t\t$this->_create_view_data($fake_id);\n\n\t\t\t$this->_display('form');\n\t\t};\n\t\t$this->_form($form);\n\t}", "function newEventForm($existing = NULL) {\r\n global $my;\r\n\r\n if (is_numeric($existing)) {\r\n\t $event = new mosEventCal_Event();\r\n\t\t$event->load($existing);\t\r\n\t\t$existing = $event;\r\n\t\t$existing->checkout( $my->id );\r\n\t}\r\n\tHTML_admin_eventcal::mkEventForm($existing);\t\r\n}", "function ValidateBeforeAdd(){\n $this->validator->ValidateForm($this->_data, true);\n }", "function Form()\n\t{\n\t\tprint '<form name=\"myform\" action=\"' . THIS_PAGE . '\" method=\"post\">';\n\t\tforeach($this->aQuestion as $question)\n\t\t{//print data for each\n\t\t\t$this->createInput($question);\n\t\t}\n\t\tprint '<input type=\"hidden\" name=\"SurveyID\" value=\"' . $this->SurveyID . '\" />';\t\n\t\tprint '<input type=\"submit\" value=\"Submit!\" />';\t\n\t\tprint '</form>';\n\t}", "function add($data){\n if(array_key_exists($data['id'], $this->fields)){\n exit(\"Field with ID: '\".$data['id'].\"' already exists.\");\n }\n if(!isset($data['validate'])){\n $data['validate'] = false;\n }\n if(!isset($data['inline'])){\n $data['inline'] = null;\n }\n if(!isset($data['value'])){\n $data['value'] = null;\n }\n if(!isset($data['readonly'])){\n $data['readonly'] = false;\n }\n\n $this->fields[$data['id']] = $data;\n }", "public static function input_fields()\n {\n }", "function storyForm($op) {\n // Generate new form object based on operation.\n if ($op == 'add') {\n $this->form = new HTML_QuickForm('add_story', 'POST', '/story/add');\n $btnLabel = 'Add';\n }\n elseif ($op == 'edit') {\n $this->form = new HTML_QuickForm('edit_story', 'POST', $this->f3->get('PATH'));\n $btnLabel = 'Save';\n }\n elseif ($op == 'delete') {\n $this->form = new HTML_QuickForm('deleteStory', 'POST', $this->f3->get('PATH'));\n $btnLabel = 'Delete';\n }\n\n // These fields only apply to add and edit operations.\n if ($op == 'add' || $op == 'edit') {\n // Add form elements\n $this->form->addElement('text', 'title', 'Title', ['class' => 'form-control']);\n $this->form->addElement('text', 'authors', 'Author(s)', ['class' => 'form-control']);\n $this->form->addElement('text', 'shortTitle', 'URL Friendly Title', ['class' => 'form-control']);\n\n // Set max size for file upload\n $this->form->setMaxFileSize($this->f3->get('maxFileSize'));\n $this->form->addElement('file', 'titlePage', 'Title Page', ['class' => 'form-control']);\n $this->form->addElement('radio', 'publish', 'Publish', 'Now', true, ['class' => 'form-check-input', 'id' => 'publish1']);\n $this->form->addElement('radio', 'publish', null, 'Later', false, ['class' => 'form-check-input', 'id' => 'publish2']);\n $this->form->addElement('text', 'date', 'Publish Date', ['class' => 'form-control', 'id' => 'datepicker']);\n }\n\n // Display buttons for all operations.\n $this->form->addElement('submit', 'btnSubmit', $btnLabel, ['class' => 'btn btn-primary']);\n $this->form->addElement('button','btnCancel','Cancel',['onClick' => \"window.location.href='/stories'\", 'class' => 'btn btn-outline-primary']);\n\n // Rules only apply for add and edit operations.\n if ($op == 'add' || $op == 'edit') {\n // Add validation.\n $this->form->addRule('title', 'Title is required', 'required');\n $this->form->addRule('shortTitle', 'Require field', 'required');\n\n // Only require a file upload on the add form.\n if ($op == 'add') {\n $this->form->addRule('titlePage', 'File is required', 'uploadedfile');\n }\n\n // Add custom validation rules found in \\Validation.\n $this->form->registerRule('uniqueShortTitle', 'function', 'validateShortTitle', $this->validation);\n $this->form->addRule('shortTitle', 'Short Title already exists', 'uniqueShortTitle', $this->identifier);\n // Picture dimensions must be specific size before upload\n $this->form->registerRule('pictureDimensions', 'function', 'validatePictureDimensions', $this->validation);\n $ruleMsg = 'Picture Dimensions are too small! Min Width: ' . $this->f3->get('imgLarge') . ' Min Height: ' . $this->f3->get('imgMinHeight');\n $this->form->addRule('titlePage', $ruleMsg, 'pictureDimensions');\n\n // Picture Mime Type must be of type jpg.\n $this->form->registerRule('pictureMimeType', 'function', 'validateMimeType', $this->validation);\n $this->form->addRule('titlePage', 'Picture file type not supported', 'pictureMimeType');\n\n }\n }", "public function addFilterFormInput(): void;", "protected static function POST_add() {\n\t\tif(isset($_POST['name']) && $name = trim($_POST['name'])) {\n\t\t\t$description = isset($_POST['description']) ? trim($_POST['description']) : '';\n\t\t\tif($db = self::RequireLatestDatabase())\n\t\t\t\tif($prep = self::fromName($name, $db))\n\t\t\t\t\tself::Success($prep);\n\t\t\t\telseif($putprep = $db->prepare('insert into prep (name, description) values (?, ?)'))\n\t\t\t\t\tif($putprep->bind_param('ss', $name, $description))\n\t\t\t\t\t\tif($putprep->execute()) {\n\t\t\t\t\t\t\t$id = $db->insert_id;\n\t\t\t\t\t\t\t$putprep->close();\n\t\t\t\t\t\t\tif($prep = self::fromID($id, $db))\n\t\t\t\t\t\t\t\tself::Success($prep);\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\tself::NotFound(\"Unable to look up prep by ID $id after adding as $name.\");\n\t\t\t\t\t\t} else\n\t\t\t\t\t\t\tself::DatabaseError('Error executing prep add', $putprep);\n\t\t\t\t\telse\n\t\t\t\t\t\tself::DatabaseError('Error binding parameters to add prep', $putprep);\n\t\t\t\telse\n\t\t\t\t\tself::DatabaseError('Error preparing to add prep', $db);\n\t\t} else\n\t\t\tself::NeedMoreInfo('Name is required to add an prep.');\n\t}", "public function addAction() {\n $form = new JogoEmpresa_Form_JogoEmpresa();\n $model = new JogoEmpresa_Model_JogoEmpresa();\n $idJogo = $this->_getParam('idJogo');\n $idEmpresa = $this->_getParam('idEmpresa');\n if ($this->_request->isPost()) {\n if ($form->isValid($this->_request->getPost())) {\n $data = $form->getValues();\n if ($idJogo) {\n $db = $model->getAdapter();\n $where = $db->quoteInto('jog_codigo=?',$idJogo)\n . $db->quoteInto(' AND emp_codigo=?',$idEmpresa);\n $model->update($data, $where);\n } else {\n $model->insert($data);\n }\n $this->_redirect('/jogoEmpresa');\n }\n } elseif ($idJogo) {\n $data = $model->busca($idJogo,$idEmpresa);\n if (is_array($data)) {\n $form->setAction('/jogoEmpresa/index/add/idJogo/' . $idJogo . '/idEmpresa/' . $idEmpresa);\n $form->populate($data);\n }\n }\n $this->view->form = $form;\n }", "public static function addSubmit($sessionIdentifier) {\n /**\n * Setup basic session variables (Type hinting below to avoid IDE error messages)\n * @var $templates League\\Plates\\Engine\n * @var $data array\n * @var $config array\n * @var $user User\n * @var $mysqli mysqli\n * @var $session Session\n */\n extract(self::setup($sessionIdentifier));\n\n // Attempt to create a new question for this question type\n try {\n $question = QuestionFactory::create($_POST[\"questionType\"], $_POST);\n }\n\n // If error creating question, log the error and display an error page\n catch(Exception $e) {\n Error::exception($e, __LINE__, __FILE__);\n die();\n }\n\n // If MCQ or MRQ question\n if(in_array(get_class($question), [\"QuestionMcq\", \"QuestionMrq\"])) {\n\n // Loop for every posted value\n foreach($_POST as $key => $value) {\n\n // Use regex to check if this is a \"mcq-choice-1\" field\n preg_match(\"/(mcq-choice-)(\\w*[0-9]\\w*)/\", $key, $matches);\n\n // If there are matches then this is a \"mcq-choice-1\" field\n if($matches) {\n\n // Get the index\n $index = $matches[2];\n\n // Boolean for if this is correct\n $correct = text2bool(array_key_exists(\"mcq-choice-correct-$index\", $_POST) ? $_POST[\"mcq-choice-correct-$index\"] : \"false\");\n\n // Add choice\n $question->addChoice($value, $correct);\n }\n }\n }\n\n // Insert question into the database\n $questionID = DatabaseQuestion::insert($question, $mysqli);\n\n // Load the session ID\n $sessionID = DatabaseSessionIdentifier::loadSessionID($sessionIdentifier, $mysqli);\n\n // If invalid session identifier, display 404\n if($sessionID === null) {\n PageError::error404();\n die();\n }\n\n // Insert question session combo into DatabaseSession\n DatabaseSessionQuestion::insert($sessionID, $questionID, $mysqli);\n\n header(\"Location: \" . $config[\"baseUrl\"] . \"session/$sessionIdentifier/edit/\");\n die();\n }", "private function fillObj($obj) {\n\t\t\n\t\t$obj->publisher = $_POST['publisher'];\n\t\t\n\t\t$obj->theme = $_POST['theme'];\n\t\t$obj->other = $_POST['other'];\n\n\t\t$obj->end \t= $_POST['date'];\n\n\t\t$obj->title = $_POST['title'];\n\t\t$obj->text \t= $_POST['text'];\r\n\t}", "function process_form()\n {\n }", "function readForm() {\n\t\t$this->FiscaalGroepID = $this->formHelper(\"FiscaalGroepID\", 0);\n\t\t$this->FiscaalGroupType = $this->formHelper(\"FiscaalGroupType\", 0);\n\t\t$this->GewijzigdDoor = $this->formHelper(\"GewijzigdDoor\", 0);\n\t\t$this->GewijzigdOp = $this->formHelper(\"GewijzigdOp\", \"\");\n\t}", "public function addQuestionAction()\n {\n\n if($this->UserauthenticationController->isAuthenticated()) {\n \n $form = new \\Mos\\HTMLForm\\CForm(array(), array(\n 'title' => array(\n 'type' => 'text',\n 'label' => 'Rubrik:',\n 'required' => true,\n 'validation' => array('not_empty'),\n ), \n 'text' => array(\n 'type' => 'textarea',\n 'label' => 'Text:',\n 'required' => true,\n 'validation' => array('not_empty'),\n ), \n 'tags' => array(\n 'type' => 'text',\n 'label' => 'Taggar (separeras med kommatecken):',\n 'required' => true,\n 'validation' => array('not_empty'),\n ), \n 'submit' => array(\n 'type' => 'submit',\n 'value' => 'Publicera fråga',\n 'callback' => function($form) {\n return true;\n }\n ),\n )\n );\n \n // Check the status of the form\n $status = $form->Check();\n \n // What to do if the form was submitted\n if($status === true) {\n \n $now = gmdate('Y-m-d H:i:s');\n \n $sql = \"INSERT INTO mvc_comments (commentTypeId, userId, userAcronym, userEmail, title, text, created) VALUES ('1', '\" . $_SESSION['user']->id . \"', '\" . $_SESSION['user']->acronym . \"', '\" . $_SESSION['user']->email . \"', '\" . $form->Value('title') . \"', '\" . $form->Value('text') . \"', '\" . $now . \"')\";\n $res = $this->db->executeFetchAll($sql);\n $qid = $this->db->lastInsertId();\n \n // Separate the defined tags for this question.\n $tagsSep = explode(\",\", strtolower($form->Value('tags')));\n foreach ($tagsSep as $key => $val) {\n if (!$this->tagExistAction($val)) {\n $trimmed = trim($val);\n $sql = \"INSERT INTO mvc_tag (name) VALUES (?)\";\n $res = $this->db->executeFetchAll($sql,array($trimmed));\n $tagId = $this->db->lastInsertId();\n }\n else {\n $tagId = $this->getTagIdAction($val);\n }\n $sql = \"INSERT INTO mvc_tag2question (idQuestion, idTag) VALUES (?, ?)\";\n $res = $this->db->executeFetchAll($sql,array($qid, $tagId));\n }\n \n $url = $this->url->create('') . '/question/view/' . $qid;\n $this->response->redirect($url);\n }\n \n // What to do when form could not be processed\n else if($status === false){\n header(\"Location: \" . $_SERVER['PHP_SELF']);\n }\n \n $this->theme->setTitle(\"Skapa en ny fråga\");\n \n $this->views->add('comment/form', [\n 'title' => \"Skapa en ny fråga\",\n 'content' => $form->getHTML()\n ]);\n \n }\n }", "function question_dataset_dependent_definitions_form($submiturl, $question){\n global $QTYPES;\n $this->question = $question;\n $this->qtypeobj =& $QTYPES[$this->question->qtype];\n parent::moodleform($submiturl);\n }" ]
[ "0.657324", "0.6446842", "0.6233718", "0.6231806", "0.6193213", "0.61651635", "0.61651635", "0.6150253", "0.6130574", "0.6022424", "0.6018007", "0.5974973", "0.5956856", "0.5914129", "0.5914129", "0.5852651", "0.58472925", "0.58459616", "0.5837603", "0.57510203", "0.5735884", "0.5709954", "0.5703186", "0.56959623", "0.56889224", "0.5671638", "0.56680536", "0.5650476", "0.56430995", "0.56328225", "0.56312114", "0.56283706", "0.56188595", "0.56130946", "0.56110173", "0.56110173", "0.55965954", "0.55965793", "0.55763716", "0.5572668", "0.5571011", "0.55687445", "0.55671793", "0.55664676", "0.55553573", "0.55522007", "0.5539861", "0.5538348", "0.5532207", "0.5530495", "0.5523999", "0.5517165", "0.55100834", "0.550765", "0.54981595", "0.54904985", "0.5487981", "0.548338", "0.54808074", "0.54732424", "0.54682493", "0.5466957", "0.54646564", "0.54554063", "0.54538506", "0.54490787", "0.5440809", "0.54405946", "0.543675", "0.5433284", "0.5430701", "0.5424894", "0.54236174", "0.5422735", "0.54156005", "0.5410106", "0.5398628", "0.5393133", "0.539158", "0.5386589", "0.5383425", "0.5382542", "0.5377973", "0.5377011", "0.5369404", "0.5368461", "0.5368196", "0.5367867", "0.53611547", "0.5360465", "0.5353298", "0.53515595", "0.5350777", "0.5348373", "0.53481233", "0.5346001", "0.5339737", "0.5338604", "0.5338203", "0.53368086" ]
0.55353284
48
responseCount() updates a number of matches in another table
public static function responseCount($SurveyID) { $SurveyID = (int)$SurveyID; //cast to integer if($SurveyID > 0) {//now no SQL if number not above zero $iConn = IDB::conn(); $rowsql = "select count(*) as numrows from " . PREFIX . "responses where SurveyID=" . $SurveyID; $result = mysqli_query($iConn,$rowsql) or die(trigger_error(mysqli_error($iConn), E_USER_ERROR)); $row = mysqli_fetch_assoc($result) or die(trigger_error(mysqli_error($iConn), E_USER_ERROR)); $numrows = $row['numrows']; $sql = "update " . PREFIX . "surveys set TotalResponses=" . $numrows . " where SurveyID=" . $SurveyID; mysqli_query($iConn,$sql) or die(trigger_error(mysqli_error($iConn), E_USER_ERROR)); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function incResponseCount()\n {\n $incResponse = (int) $this->attribute( 'response_count' );\n $incResponse++;\n $this->setAttribute( 'response_count', $incResponse );\n $this->store();\n }", "function update_post_counts($response){\r\n \t$count_key = 'post_views_count';\r\n \t$success = 0;\r\n \t$failure = 0;\r\n \tforeach ($response as $item){\r\n\t \t$post_id = $item[\"post_id\"];\r\n\t \tif(update_post_meta($post_id, $count_key, $item[\"views\"])) {\r\n\t \t\t$success++;\r\n\t \t} else {\r\n\t \t\t$failure++;\r\n\t \t}\r\n\t\t}\r\n\r\n\t\treturn array('success' => $success, 'failure' => $failure);\r\n\t}", "public function updateCount() {\n $query = $this->connection->select($this->mapTable);\n $query->addExpression('COUNT(*)', 'count');\n $query->condition('needs_update', MigrateMap::STATUS_NEEDS_UPDATE);\n $count = $query->execute()->fetchField();\n return $count;\n }", "private function countSearchResults(): void\n {\n $this->SearchResult->total_matches = count($this->SearchResult->matches);\n $this->SearchResult->total_indecisive_matches = count($this->SearchResult->indecisive_matches);\n $this->SearchResult->total_no_matches = count($this->SearchResult->no_matches);\n }", "public function getSetQuestionAndAnswerResponseCounts()\n {\n return <<<CQL\nMATCH (q:Question)-[:HAS_ANSWER]->(a)<-[:ANSWERED]-()\nWITH q, a, COUNT(*) AS responses\nSET a.responses = toInt(responses)\nWITH q, COLLECT({ answer: a.hash, responses: responses }) AS answers\nWITH q, REDUCE(totalResponses = 0, n IN answers | totalResponses + n.responses) AS totalResponses\nSET q.responses = toInt(totalResponses)\nCQL;\n }", "function phpTrafficA_updateCount($table, $connection, $value) {\n$sql3 = \"UPDATE `$table` SET count=count+1 WHERE value=$value\";\n$res3 = mysql_query($sql3);\nreturn 1;\n}", "public function count(): int\n {\n return count($this->_responses);\n }", "public function countResponses() {\n\t\t\n\t\ttry {\n\t\t\t$select = $this->pdo->select(['id'])->count('*', 'num_ids')->from('posts_'.$this->board)->where('thread', '=', $this->tId);\n\t\t\t$stmt = $select->execute();\n\t\t\t$num_responses = $stmt->fetchColumn(1);\n\t\t\t\n\t\t} catch(\\Exception $e) {\n\t\t\t$this->app->error($e);\n\t\t}\n\t\t\n\t\treturn $num_responses;\n\t}", "public function updateCount() {\n $sql = \"UPDATE goCount SET count = count + 1 WHERE 1\";\n\n if (self::$conn->query($sql) === FALSE) {\n echo \"Error updating count record: \" . self::$conn->error;\n }\n }", "public function _count();", "public function yummly_count_callback($response) {\n if($this->has_http_error($response)) {\n return false;\n }\n $body = json_decode($response['body'], true);\n return isset($body['count']) ? intval($body['count']) : false;\n }", "public function countShared() {\n $statement = sprintf(\"SELECT COUNT(*) as %s FROM %s WHERE deleted = 0 AND %s = 1\", static::COUNT,\n static::TABLE, static::FIELDS[3]);\n $req = $this->db->query($statement);\n $response = $req->fetchAll(PDO::FETCH_ASSOC);\n\n return json_encode($response);\n }", "function countResult($access, $outcome) {\n\t\t$sql= \"SELECT COUNT(`result`) FROM `match` WHERE `result`='\" . $outcome . \"';\";\n\t\t$data=$access->query($sql);\n\t\twhile ($row=$data->fetch_assoc()) {\n\t\t\techo $row[\"COUNT(`result`)\"];\n\t\t}\n\t}", "public function handbks_object_counts_update() {\n $this->db->query(\"call handbks_object_counts_update();\");\n }", "function countHit() {\n\n $this->saveField('hits', $this->data['Ringsite']['hits']+1, false);\n }", "function update_users_tracking_alert_count()\n{\n $update_tracking_count = '\n UPDATE user\n LEFT JOIN (SELECT user_id,COUNT(*) alert_count FROM tracking_and_alerts GROUP BY user_id) as tracking_and_alerts\n ON tracking_and_alerts.user_id = user.user_id\n SET user.no_of_alerts_subscribed = tracking_and_alerts.alert_count';\n execute_sql($update_tracking_count);\n}", "private function _proceedCount($select)\n {\n global $zdb;\n\n try {\n $countSelect = clone $select;\n $countSelect->reset(\\Zend_Db_Select::COLUMNS);\n $countSelect->reset(\\Zend_Db_Select::ORDER);\n $countSelect->columns('count(' . self::PK . ') AS ' . self::PK);\n\n $result = $countSelect->query()->fetch();\n\n $k = self::PK;\n $this->_count = $result->$k;\n if ( $this->_count > 0 ) {\n $this->counter = (int)$this->_count;\n $this->countPages();\n }\n } catch (\\Exception $e) {\n /** TODO */\n Analog::log(\n 'Cannot count contributions | ' . $e->getMessage(),\n Analog::WARNING\n );\n Analog::log(\n 'Query was: ' . $countSelect->__toString() . ' ' . $e->__toString(),\n Analog::ERROR\n );\n return false;\n }\n }", "public function countRespondents()\n {\n $result = $this->client->run('MATCH (n:Person) RETURN COUNT(n) AS respondents;');\n\n return (int) $result->getRecord()->get('respondents');\n }", "public function linkedin_count_callback($response) {\n if($this->has_http_error($response)) {\n return false;\n }\n $body = json_decode($response['body'], true);\n return isset($body['count']) ? intval($body['count']) : false;\n }", "function ticketCount($response, $timings) {\n require __DIR__ .'/../bootstrap/dbconnect.php';\n \n $query = $pdo->prepare(\"SELECT * FROM `tickets` WHERE `timing`=:timings\");\n $query->bindParam(\":timings\", $timings);\n $query->execute();\n\n $errorData = $query->errorInfo();\n\n if($errorData[1]) {\n return checkError($response, $errorData);\n }\n\n return $query->rowcount();\n}", "function search_requests_count()\n {\n $count=$this->db->count_all_results('lic_requests');\n\t\t$this->db->flush_cache();\n\t\treturn $count;\n }", "public abstract function count();", "public abstract function count();", "public function odnoklassniki_count_callback($response) {\n if($this->has_http_error($response)) {\n return false;\n }\n\n // Another weird API. Similar to vk, extract the 2nd param from the response:\n // 'ODKL.updateCount('odklcnt0','14198');'\n $matches = array();\n preg_match('/^ODKL\\.updateCount\\(\\'odklcnt0\\',\\'(\\d+)\\'\\);$/i', $response['body'], $matches);\n return isset($matches[1]) ? intval($matches[1]) : false;\n }", "public function count() \n { \n $query = $this->processInput();\n \n $model = $this->model;\n \n $result['total'] = $model::countAll($query['where']);\n\n $jsend = JSend\\JSendResponse::success($result);\n return $jsend->respond();\n }", "abstract public function count();", "abstract public function count();", "abstract public function count();", "abstract public function count();", "function update_view_count($table, $set_field, $where_field, $where_value)\n\t{\n\t\tglobal $db;\n\n\t\t$sql = \"UPDATE $table SET $set_field = $set_field + 1 WHERE $where_field = $where_value\";\n\n\t\tif ( !$db->sql_query($sql) )\n\t\t{\n\t\t\tmessage_die(GENERAL_ERROR, \"Could Not Update Count\", '', __LINE__, __FILE__, $sql);\n\t\t}\n\n\t\treturn;\n\t}", "public function count(): Response\n {\n $count = $this->repository->count();\n return new Response(['count' => $count]);\n }", "public function fetchCount()\n {\n $this->prepareCount();\n\n $url = $this->urlbase.$this->urlbranch;\n\n $query = $this->genQuery();\n\n $path = $this->options['Action'].'Result';\n if ($this->mockMode) {\n $xml = $this->fetchMockFile()->$path;\n } else {\n $response = $this->sendRequest($url, ['Post' => $query]);\n\n if (! $this->checkResponse($response)) {\n return false;\n }\n\n $xml = simplexml_load_string($response['body'])->$path;\n }\n\n $this->count = (string) $xml->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 countQuery();", "function calls_count($salesperson_id)\n{\n $conn = db_connect();\n\n // Prepared statement for selecting all client calls from the database\n $calls_select_stmt = pg_prepare($conn, \"calls_count_stmt\", \"\n SELECT *\n FROM calls \n INNER JOIN clients \n ON calls.client_id = clients.id\n WHERE clients.salesperson_id = $salesperson_id\");\n $result = pg_execute($conn, \"calls_count_stmt\", array());\n\n // Check for a result, and if query yields result, return the number of rows\n if (pg_num_rows($result) >= 1) {\n return pg_num_rows($result);\n }\n\n return false;\n}", "public function sentCount();", "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 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 function count()\n {\n return count($this->getResults());\n }", "public function updateLikesCount()\n {\n $totals = Db::table('rainlab_forum_likes as r')\n ->select(Db::raw('sum(r.like) as likes, sum(r.unlike) as unlikes'))\n ->wherePostId($this->id)\n ->first();\n\n $this->count_likes = $totals->likes;\n $this->count_unlikes = $totals->unlikes;\n $this->save();\n }", "public function decResponseCount()\n {\n $decResponse = (int) $this->attribute( 'response_count' );\n $decResponse--;\n $this->setAttribute( 'response_count', $decResponse );\n $this->store();\n }", "public function testPayoutsTableCount()\n {\n $inflationEffect = factory(InflationEffect::class, 1)->create([\n 'amount' => '1000'\n ]);\n\n $activeAccounts = factory(ActiveAccount::class, 5)->states('real-stellar-account')->create();\n\n $this->payoutService->init();\n\n $this->payoutService->setInflationEffect($inflationEffect->first());\n\n $this->payoutService->executeActiveAccountsPayout($activeAccounts);\n\n $payouts = PayoutModel::count();\n\n $this->assertEquals($activeAccounts->count(), $payouts);\n }", "public function stumbleupon_count_callback($response) {\n if($this->has_http_error($response)) {\n return false;\n }\n $body = json_decode($response['body'], true);\n // special case: do not return false if views is not set because the api can return it not set\n return isset($body['result']['views']) ? intval($body['result']['views']) : 0;\n }", "public function getResponseCount()\n\t{\n\t\t$responses = $this->getResponses();\n\n\t\tif ($responses) {\n\t\t\treturn count($responses);\n\t\t} else {\n\t\t\treturn 0;\n\t\t}\n\t}", "public function testResponseHasTotalCount()\n {\n \t$response = $this->post(route('post-comment.fetch-comments'), [\n \t\t'offset' => 0\n \t]);\n\n \t$response->assertJson(['total_count' => 2], $strict = false);\n }", "abstract public function getCount(RESTApiRequest $request);", "public function getAnswerCount();", "public function vk_count_callback($response) {\n if($this->has_http_error($response)) {\n return false;\n }\n\n // This API does not return JSON. Just plain text JS. Example:\n // 'VK.Share.count(0, 3779);'\n // From documentation, need to just grab the 2nd param: http://vk.com/developers.php?oid=-17680044&p=Share\n $matches = array();\n preg_match('/^VK\\.Share\\.count\\(\\d, (\\d+)\\);$/i', $response['body'], $matches);\n return isset($matches[1]) ? intval($matches[1]) : false;\n }", "function updateCount() {\n $connection = SQL::getConn();\n\n //MySQL query to execute\n mysqli_query($connection, \"UPDATE users SET total = total + 1 WHERE (id='$_POST[id]')\");\n }", "public function updateUserAgencyCount() {\n\t\t$dummyUserCount = array();\n\t\t$dummyUserCount['dummy_user_count'] = 1;\n $dummyUserCount['agency_size'] = 1;\n\t\n\t\t$conditions = array();\n\t\t$conditions['id'] = $this->id;\n\n\t\t$success = ConnectionFactory::updateTableRowRelativeBasic(\"users\", $dummyUserCount, $conditions);\n\t\tif ($success) {\n\t\t\t$this-> dummy_user_count = $this->dummy_user_count + 1;\n $this-> agency_size = $this-> agency_size + 1;\n\t\t}\n\t\treturn $success;\n\t}", "public function testWriteCountQuery()\n\t{\n\t\t$queryWriter = R::getWriter();\n\t\tasrt( ( $queryWriter instanceof SQLiteT ), TRUE );\n\t\tR::nuke();\n\t\t$bean = R::dispense( 'bean' );\n\t\t$bean->name = 'a';\n\t\tR::store( $bean );\n\t\t$bean = R::dispense( 'bean' );\n\t\t$bean->name = 'b';\n\t\tR::store( $bean );\n\t\t$bean = R::dispense( 'bean' );\n\t\t$bean->name = 'b';\n\t\tR::store( $bean );\n\t\t$count = $queryWriter->queryRecordCount( 'bean', array( 'name' => 'b' ), $addSql = ' id > :id ', $bindings = array( ':id' => 0 ) );\n\t\tasrt( $count, 2 );\n\t}", "public function twitter_count_callback($response) {\n if($this->has_http_error($response)) {\n return false;\n }\n $body = json_decode($response['body'], true);\n return isset($body['count']) ? intval($body['count']) : false;\n }", "function update_match_stats_entered($team_id1, $team_id2, $team1_points, $team2_points, $site, $connection)\n\t{\n\t\t$query = 'UPDATE `teams_profile` SET `num_matches_total`=`num_matches_total`+1';\n\t\t$query .= ' WHERE (`teamid`=' . sqlSafeStringQuotes($team_id1) . ' OR `teamid`=' . sqlSafeStringQuotes($team_id2) . ')';\n\t\tif (!($result = $site->execute_query('teams_overview', $query, $connection)))\n\t\t{\n\t\t\tunlock_tables($site, $connection);\n\t\t\t$site->dieAndEndPage('The match count for the teams with id'\n\t\t\t\t\t\t\t\t . sqlSafeString($team_id1) . ' and ' . sqlSafeString($team_id2) . ' could not be updated due to a sql problem!');\n\t\t}\n\t\t\n\t\t// mark both participating teams as active\n\t\t$query = ('UPDATE `teams_overview` SET `deleted`=' . sqlSafeStringQuotes('1')\n\t\t\t\t . ' WHERE `teamid`=' . sqlSafeStringQuotes($team_id1) . ' OR `teamid`=' . sqlSafeStringQuotes($team_id2)\n\t\t\t\t . ' LIMIT 2');\n\t\tif (!($result = @$site->execute_query('teams_overview', $query, $connection)))\n\t\t{\n\t\t\t$site->dieAndEndPage('Could not mark team with id ' . sqlSafeString($teamid) . ' as active!');\n\t\t}\n\t\t\n\t\t\n\t\t// increase match win count for teams that participated\n\t\tif ($team1_points > $team2_points)\n\t\t{\n\t\t\t// team 1 won\n\t\t\t$query = 'UPDATE `teams_profile` SET `num_matches_won`=`num_matches_won`+1';\n\t\t\t$query .= ' WHERE `teamid`=' . sqlSafeStringQuotes($team_id1);\n\t\t\tif (!($result = $site->execute_query('teams_profile', $query, $connection)))\n\t\t\t{\n\t\t\t\tunlock_tables($site, $connection);\n\t\t\t\t$site->dieAndEndPage('The match win count for team ' . sqlSafeString($team_id1) . ' could not be updated due to a sql problem!');\n\t\t\t}\n\t\t\t\n\t\t\t// team 2 lost\n\t\t\t$query = 'UPDATE `teams_profile` SET `num_matches_lost`=`num_matches_lost`+1';\n\t\t\t$query .= ' WHERE `teamid`=' . sqlSafeStringQuotes($team_id2);\n\t\t\tif (!($result = $site->execute_query('teams_profile', $query, $connection)))\n\t\t\t{\n\t\t\t\tunlock_tables($site, $connection);\n\t\t\t\t$site->dieAndEndPage('The match lose count for team ' . sqlSafeString($team_id2) . ' could not be updated due to a sql problem!');\n\t\t\t}\n\t\t}\n\t\t\n\t\tif ($team1_points < $team2_points)\n\t\t{\n\t\t\t// team 2 won\n\t\t\t$query = 'UPDATE `teams_profile` SET `num_matches_won`=`num_matches_won`+1';\n\t\t\t$query .= ' WHERE `teamid`=' . sqlSafeStringQuotes($team_id2);\n\t\t\tif (!($result = $site->execute_query('teams_profile', $query, $connection)))\n\t\t\t{\n\t\t\t\tunlock_tables($site, $connection);\n\t\t\t\t$site->dieAndEndPage('The match win count for team ' . sqlSafeString($team_id2) . ' could not be updated due to a sql problem!');\n\t\t\t}\n\t\t\t\n\t\t\t// team 1 lost\n\t\t\t$query = 'UPDATE `teams_profile` SET `num_matches_lost`=`num_matches_lost`+1';\n\t\t\t$query .= ' WHERE `teamid`=' . sqlSafeStringQuotes($team_id1);\n\t\t\tif (!($result = $site->execute_query('teams_profile', $query, $connection)))\n\t\t\t{\n\t\t\t\tunlock_tables($site, $connection);\n\t\t\t\t$site->dieAndEndPage('The match lose count for team ' . sqlSafeString($team_id1) . ' could not be updated due to a sql problem!');\n\t\t\t}\n\t\t}\n\t\t\n\t\t// match entered ended in a draw\n\t\tif (((int) $team1_points) === ((int) $team2_points))\n\t\t{\n\t\t\t$query = 'UPDATE `teams_profile` SET `num_matches_draw`=`num_matches_draw`+1';\n\t\t\t$query .= ' WHERE (`teamid`=' . sqlSafeStringQuotes($team_id1) . ' OR `teamid`=' . sqlSafeStringQuotes($team_id2) . ')';\n\t\t\tif (!($result = $site->execute_query('teams_profile', $query, $connection)))\n\t\t\t{\n\t\t\t\tunlock_tables($site, $connection);\n\t\t\t\t$site->dieAndEndPage('The match draw count for the teams with id'\n\t\t\t\t\t\t\t\t\t . sqlSafeString($team_id1) . ' and ' . sqlSafeString($team_id2) . ' could not be updated due to a sql problem!');\n\t\t\t}\n\t\t\t\n\t\t}\n\t}", "public function updateCommentCount()\n {\n $this->comment_count = $this->comments()->count();\n\n $this->save();\n }", "public function count() { }", "function replyCount($topic_id){\n $db = new Database;\n $db->query('SELECT * FROM replies WHERE topic_id = :topic_id');\n $db->bind(':topic_id', $topic_id);\n //Assign Rows\n $rows = $db->resultset();\n //Get Count\n return $db->rowCount();\n}", "public function requestCount()\n {\n return DB::table('userlinkrequests')\n ->where('them', $this->id)\n ->count();\n }", "private function setNumResults()\n\t{\n\t\t$this->numResults = (int) count($this->data);\n\t}", "abstract protected function _recordcount($rs);", "public function userCount(Request $request)\n {\n $company = Company::findOrfail($request->compId);\n $company->user_count = $request->userCount;\n if ($company->save()) {\n return response()->json([\n 'count_msg' => 'User count changed successfully!',\n 'style' => 'color:darkblue'\n ]);\n } else {\n return response()->json([\n 'count_msg' => 'Sorry, user count not changed!',\n 'style' => 'color:darkred'\n ]);\n }\n\n }", "function fetchCount();", "public function count()\n {\n return count($this->requests);\n }", "public function getAffectedItemsCount() {}", "public function pinterest_count_callback($response) {\n if($this->has_http_error($response)) {\n return false;\n }\n $response['body'] = substr($response['body'], 2, strlen($response['body']) - 3);\n $body = json_decode($response['body'], true);\n return isset($body['count']) ? intval($body['count']) : false;\n }", "public function countMatches() : int\n {\n return sizeof($this->getMatches());\n }", "public function google_plus_count_callback($response) {\n if($this->has_http_error($response)) {\n return false;\n }\n $body = json_decode($response['body'], true);\n // special case: do not return false if the count is not set because the api can return without counts\n return isset($body[0]['result']['metadata']['globalCounts']['count']) ? intval($body[0]['result']['metadata']['globalCounts']['count']) : 0;\n }", "public function count() {\n $statement = sprintf(\"SELECT COUNT(*) as %s FROM %s WHERE deleted = 0\", static::COUNT, static::TABLE);\n $req = $this->db->query($statement);\n $response = $req->fetchAll(PDO::FETCH_ASSOC);\n\n return json_encode($response);\n }" ]
[ "0.68429846", "0.62633663", "0.61899364", "0.6143159", "0.6136026", "0.6001112", "0.5961336", "0.59355676", "0.5857369", "0.57783663", "0.5777824", "0.5750427", "0.57160264", "0.5702988", "0.56754315", "0.56408155", "0.5636204", "0.56349546", "0.56157017", "0.56061256", "0.5575885", "0.55604", "0.55604", "0.55577344", "0.55439496", "0.5539332", "0.5539332", "0.5539332", "0.5539332", "0.5527878", "0.55093193", "0.55071634", "0.54978424", "0.54978424", "0.54978424", "0.54978424", "0.54978424", "0.54978424", "0.54978424", "0.54978424", "0.54978424", "0.54978424", "0.54978424", "0.54978424", "0.54978424", "0.54978424", "0.54978424", "0.54978424", "0.54978424", "0.54978424", "0.54978424", "0.54978424", "0.54978424", "0.54978424", "0.5494878", "0.547038", "0.54420143", "0.54371053", "0.54371053", "0.54371053", "0.54371053", "0.54371053", "0.54371053", "0.54371053", "0.54371053", "0.54371053", "0.54371053", "0.54371053", "0.54370755", "0.54370755", "0.5428527", "0.5394224", "0.53889203", "0.53582597", "0.53580177", "0.53555346", "0.5352921", "0.5348619", "0.53426397", "0.5338168", "0.5336552", "0.5329185", "0.5316349", "0.5299555", "0.52948403", "0.5287748", "0.5283483", "0.5280857", "0.5269857", "0.5269793", "0.5269401", "0.5262834", "0.5258997", "0.5243512", "0.52397925", "0.52301276", "0.5220449", "0.5217292", "0.5205871", "0.5205806" ]
0.5540822
25
insertSurvey() inserts data as entered by public via form() method
public static function insertSurvey() { if(isset($_POST['SurveyID']) && (is_numeric($_POST['SurveyID']))) {//insert response! $iConn = IDB::conn(); // turn off auto-commit mysqli_autocommit($iConn, FALSE); //insert response $sql = sprintf("INSERT into " . PREFIX . "responses(SurveyID,DateAdded) VALUES ('%d',NOW())",$_POST['SurveyID']); $result = @mysqli_query($iConn,$sql); //moved or die() below! if(!$result) {// if error, roll back transaction mysqli_rollback($iConn); die(trigger_error("Error Entering Response: " . mysqli_error($iConn), E_USER_ERROR)); } //retrieve responseid $ResponseID = mysqli_insert_id($iConn); //get ID of last record inserted if(!$result) {// if error, roll back transaction mysqli_rollback($iConn); die(trigger_error("Error Retrieving ResponseID: " . mysqli_error($iConn), E_USER_ERROR)); } //loop through and insert answers foreach($_POST as $varName=> $value) {//add objects to collection $qTest = substr($varName,0,2); //check for "obj_" added to numeric type if($qTest=="q_") {//add choice! $QuestionID = substr($varName,2); //identify question if(is_array($_POST[$varName])) {//checkboxes are arrays, and we need to loop through each checked item to insert while (list ($key,$value) = @each($_POST[$varName])){ $sql = "insert into " . PREFIX . "responses_answers(ResponseID,QuestionID,AnswerID) values($ResponseID,$QuestionID,$value)"; $result = @mysqli_query($iConn,$sql); if(!$result) {// if error, roll back transaction mysqli_rollback($iConn); die(trigger_error("Error Inserting Choice (array/checkbox): " . mysqli_error($iConn), E_USER_ERROR)); } } }else{//not an array, so likely radio or select $sql = "insert into " . PREFIX . "responses_answers(ResponseID,QuestionID,AnswerID) values($ResponseID,$QuestionID,$value)"; $result = @mysqli_query($iConn,$sql); if(!$result) {// if error, roll back transaction mysqli_rollback($iConn); die(trigger_error("Error Inserting Choice (single/radio): " . mysqli_error($iConn), E_USER_ERROR)); } } } } //we got this far, lets COMMIT! mysqli_commit($iConn); // our transaction is over, turn autocommit back on mysqli_autocommit($iConn, TRUE); //count total responses, update TotalResponses self::responseCount((int)$_POST['SurveyID']); //convert to int on way in! return TRUE; # }else{ return FALSE; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function store_survey_post()\n\t\t{\n\t\t\t$clickValue = $this->post('clickValue');\n\t\t\t$optionId = $this->post('optionId');\n\t\t\t$uuid = $this->post('uuid');\n\t\t\t$weekSend = $this->post('weekSend');\n\t\t\tif(!empty($clickValue) &&\n\t\t\t\t!empty($optionId) &&\n\t\t\t\t!empty($uuid) &&\n\t\t\t\t!empty($weekSend)\n\t\t\t)\n\t\t\t{\n\t\t\t\t$insertData = array(\n\t\t\t\t\t'tans_opt_id' => $optionId,\n\t\t\t\t\t'tans_uuid' => $uuid,\n\t\t\t\t\t'tans_week' => $weekSend,\n\t\t\t\t\t'trans_survey_value' => $clickValue\n\t\t\t\t);\n\t\t\t\t$tempStatus = $this->Student_survey_model->storeStudentSurvey($insertData);\n\t\t\t\tif($tempStatus)\n\t\t\t\t{\n\t\t\t\t\t$data['status'] = $this->lang->line('SUCCESS');\n\t\t\t\t\t$data['message'] = $this->lang->line('VALID_TOKEN_MESSAGE');\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$data['status'] = $this->lang->line('FAIL');\n\t\t\t\t\t$data['message'] = $this->lang->line('unable_save_answer');\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$data['status'] = $this->lang->line('FAIL');\n\t\t\t\t$data['message'] = $this->lang->line('please_pass_required');\n\t\t\t}\n\t\t\t$this->response($data , 200);\n\t\t}", "function survey_add($d){\n $url = $this->url.\"survey_add\";\n $data['case_id'] =$d['case_id'] ;\n $data['satisfactoriness'] =$d['satisfactoriness'] ;\n $data['satisfied_reason'] =$d['satisfied_reason'] ;\n $data['submitter'] =$d['submitter'] ;\n $this->setTransactionToLog(\"method:\".__METHOD__);\n $result = $this->_exec($url,$data);\n }", "private function json_submitSurvey()\n {\n\n // Gets the input data entered in the Front-End\n $input = json_decode(file_get_contents(\"php://input\"));\n $title = $_POST['title'];\n $description = $_POST['description'];\n $question = $_POST['question'];\n $file = $_FILES['file']['name'];\n\n // Gets the last SurveyID\n $query = \"SELECT surveyID FROM Surveys ORDER BY surveyID DESC LIMIT 1;\";\n $params = [];\n $resLastSurveyID = json_decode($this->recordset->getJSONRecordSet($query, $params), true);\n $currentSurveyID = $resLastSurveyID['data']['0']['surveyID'] + 1;\n\n // Gets the last QuestionID\n $query = \"SELECT questionID FROM Questions ORDER BY questionID DESC LIMIT 1;\";\n $params = [];\n $resLastQuestionID = json_decode($this->recordset->getJSONRecordSet($query, $params), true);\n $currentQuestionID = $resLastQuestionID['data']['0']['questionID'] + 1;\n\n // Create the Uploads Directory\n $uploadsDirectory = dirname(__FILE__, 2) . \"/uploads\";\n $surveyDirectory = $uploadsDirectory . \"/\" . $currentSurveyID;\n $questionDirectory = $surveyDirectory . \"/\" . $currentQuestionID;\n// $questionDirectory = $questionDirectory . \"/\";\n\n // File Permissions\n if (!file_exists($questionDirectory)) {\n mkdir($questionDirectory, 0777, true);\n }\n\n // File Checks\n $path = pathinfo($file);\n $filename = $path['filename'];\n $ext = $path['extension'];\n $temp_name = $_FILES['file']['tmp_name'];\n $path_filename_ext = $questionDirectory . \"/\" . $filename . \".\" . $ext;\n if (file_exists($path_filename_ext)) {\n // echo \"Sorry, File Already Exists.\";\n } else {\n move_uploaded_file($temp_name, $path_filename_ext);\n // echo \"Congratulations! File Uploaded Successfully.\";\n }\n $media_url = \"uploads/\" . $currentSurveyID . \"/\" . $currentQuestionID . \"/\" . $_FILES['file']['name'];\n\n // Insert survey data into the Survey table\n $createSurveyQuery = \"INSERT INTO Surveys (surveyTitle, surveyDescription) VALUES (:surveyTitle, :surveyDescription);\";\n\n $createSurveyParams =\n [\n \":surveyTitle\" => $title,\n \":surveyDescription\" => $description,\n ];\n\n $resCreateSurvey = json_decode($this->recordset->getJSONRecordSet($createSurveyQuery, $createSurveyParams), true);\n\n print_r($resCreateSurvey);\n\n // Insert question data into the Questions table\n $createQuestionQuery = \"INSERT INTO Questions (question, mediaPath, surveyID) VALUES (:question, :media_url, :surveyID);\";\n\n $createQuestionParams =\n [\n \":question\" => $question,\n \":media_url\" => $media_url,\n \":surveyID\" => $currentSurveyID,\n ];\n\n $resCreateQuestion = json_decode($this->recordset->getJSONRecordSet($createQuestionQuery, $createQuestionParams), true);\n\n $res['status'] = 200;\n $res['filename'] = $file;\n $res['dirnametest'] = dirname(__FILE__, 2);\n $res['lastSurveyID'] = $resLastSurveyID;\n $res['lastQuestionID'] = $resLastQuestionID;\n $res['questionDirectory'] = $questionDirectory;\n\n return json_encode($res);\n }", "public function run()\n {\n DB::table('survey_questions')->insert([\n [\n 'parent_id' => null,\n 'survey_id' => 1,\n 'type' => 'heading',\n 'other' => false,\n 'other_label' => null,\n 'text' => 'Informatie over de patiënt:',\n 'required' => true,\n 'options' => null,\n 'created_at' => new \\Carbon\\Carbon(),\n 'updated_at' => new \\Carbon\\Carbon(),\n ],\n [\n 'parent_id' => null,\n 'survey_id' => 1,\n 'type' => 'text',\n 'other' => false,\n 'other_label' => null,\n 'text' => 'Leeftijd:',\n 'required' => true,\n 'options' => null,\n 'created_at' => new \\Carbon\\Carbon(),\n 'updated_at' => new \\Carbon\\Carbon(),\n ],\n [\n 'parent_id' => null,\n 'survey_id' => 1,\n 'type' => 'textarea',\n 'other' => false,\n 'other_label' => null,\n 'text' => 'Onderliggend lijden welk invloed kan hebben op de wondgenezing: (indien niet aanwezig gelieve n.v.t te vermelden).',\n 'required' => true,\n 'options' => null,\n 'created_at' => new \\Carbon\\Carbon(),\n 'updated_at' => new \\Carbon\\Carbon(),\n ],\n [\n 'parent_id' => null,\n 'survey_id' => 1,\n 'type' => 'heading',\n 'other' => false,\n 'other_label' => null,\n 'text' => 'Informatie over de wond',\n 'required' => true,\n 'options' => null,\n 'created_at' => new \\Carbon\\Carbon(),\n 'updated_at' => new \\Carbon\\Carbon(),\n ],\n [\n 'parent_id' => null,\n 'survey_id' => 1,\n 'type' => 'radio',\n 'other' => false,\n 'other_label' => null,\n 'text' => null,\n 'required' => true,\n 'options' => json_encode(['Nieuwe wond', 'Bestaande wond']),\n 'created_at' => new \\Carbon\\Carbon(),\n 'updated_at' => new \\Carbon\\Carbon(),\n ],\n [\n 'parent_id' => null,\n 'survey_id' => 1,\n 'type' => 'text',\n 'other' => false,\n 'other_label' => null,\n 'text' => 'Sinds wanneer?',\n 'required' => true,\n 'options' => null,\n 'created_at' => new \\Carbon\\Carbon(),\n 'updated_at' => new \\Carbon\\Carbon(),\n ],\n [\n 'parent_id' => 6,\n 'survey_id' => 1,\n 'type' => 'radio',\n 'other' => false,\n 'other_label' => null,\n 'text' => null,\n 'required' => true,\n 'options' => json_encode(['dag(en)', 'week/weken']),\n 'created_at' => new \\Carbon\\Carbon(),\n 'updated_at' => new \\Carbon\\Carbon(),\n ],\n [\n 'parent_id' => null,\n 'survey_id' => 1,\n 'type' => 'checkbox',\n 'other' => false,\n 'other_label' => null,\n 'text' => 'Welke verband is het meest recentelijk op deze wond aangebracht?',\n 'required' => true,\n 'options' => json_encode([\n ['Fiberverbanden met hoog absorptievermogen of alginaten, gelieve de naam van het product te vermelden:'],\n ['Schuimverband, gelieve de naam van het product te vermelden:'],\n ['Zilververband, gelieve de naam van het product te vermelden:'],\n ['Superabsorberend, gelieve de naam van het product te vermelden:'],\n ['Hydrocolloïde, gelieve de naam van het product te vermelden:'],\n ['Ander(e) type(n), gelieve de naam van het product te vermelden:'],\n 'Geen',\n ]),\n 'created_at' => new \\Carbon\\Carbon(),\n 'updated_at' => new \\Carbon\\Carbon(),\n ],\n [\n 'parent_id' => null,\n 'survey_id' => 1,\n 'type' => 'radio',\n 'other' => false,\n 'other_label' => null,\n 'text' => 'Type wond:',\n 'required' => true,\n 'options' => json_encode([\n 'Acute wond',\n 'Chronische wond',\n ]),\n 'created_at' => new \\Carbon\\Carbon(),\n 'updated_at' => new \\Carbon\\Carbon(),\n ],\n [\n 'parent_id' => null,\n 'survey_id' => 1,\n 'type' => 'radio',\n 'other' => false,\n 'other_label' => null,\n 'text' => 'Geïnfecteerd?',\n 'required' => true,\n 'options' => json_encode([\n 'Ja',\n 'Nee',\n ]),\n 'created_at' => new \\Carbon\\Carbon(),\n 'updated_at' => new \\Carbon\\Carbon(),\n ],\n [\n 'parent_id' => null,\n 'survey_id' => 1,\n 'type' => 'checkbox',\n 'other' => true,\n 'other_label' => 'Andere acute wond, namelijk:',\n 'text' => '(Indien acute wond aangevinkt) het gaat in het bijzonder om een …',\n 'required' => true,\n 'options' => json_encode([\n 'Traumatische wond (oppervlakkige schaafwond, laceratie, flyctenen, oppervlakkige snijwonden en huidscheuren)',\n 'Tweedegraads brandwond',\n 'Dermabrasie / Ontvelling',\n 'Chirurgische wond',\n ]),\n 'created_at' => new \\Carbon\\Carbon(),\n 'updated_at' => new \\Carbon\\Carbon(),\n ],\n [\n 'parent_id' => null,\n 'survey_id' => 1,\n 'type' => 'checkbox',\n 'other' => true,\n 'other_label' => 'Andere chronische wond, namelijk',\n 'text' => '(Indien chronische wond aangevinkt) het gaat in het bijzonder om een …',\n 'required' => true,\n 'options' => json_encode([\n 'Decubitus wond',\n 'Ulcus Cruris beenwond',\n 'Diabetische voetwond',\n ]),\n 'created_at' => new \\Carbon\\Carbon(),\n 'updated_at' => new \\Carbon\\Carbon(),\n ],\n [\n 'parent_id' => null,\n 'survey_id' => 1,\n 'type' => 'checkbox',\n 'other' => false,\n 'other_label' => null,\n 'text' => 'Wat is de hoeveelheid wondvocht?',\n 'required' => true,\n 'options' => json_encode([\n 'Droog',\n 'Vochtig',\n 'Nat',\n ]),\n 'created_at' => new \\Carbon\\Carbon(),\n 'updated_at' => new \\Carbon\\Carbon(),\n ],\n [\n 'parent_id' => null,\n 'survey_id' => 1,\n 'type' => 'text',\n 'other' => false,\n 'other_label' => null,\n 'text' => 'Locatie van het wondbed',\n 'required' => true,\n 'options' => null,\n 'created_at' => new \\Carbon\\Carbon(),\n 'updated_at' => new \\Carbon\\Carbon(),\n ],\n [\n 'parent_id' => 14,\n 'survey_id' => 1,\n 'type' => 'text',\n 'other' => false,\n 'other_label' => null,\n 'text' => '% Necrotisch (zwart)',\n 'required' => true,\n 'options' => null,\n 'created_at' => new \\Carbon\\Carbon(),\n 'updated_at' => new \\Carbon\\Carbon(),\n ],\n [\n 'parent_id' => 14,\n 'survey_id' => 1,\n 'type' => 'text',\n 'other' => false,\n 'other_label' => null,\n 'text' => '% Granulerend (rood)',\n 'required' => true,\n 'options' => null,\n 'created_at' => new \\Carbon\\Carbon(),\n 'updated_at' => new \\Carbon\\Carbon(),\n ],\n [\n 'parent_id' => 14,\n 'survey_id' => 1,\n 'type' => 'text',\n 'other' => false,\n 'other_label' => null,\n 'text' => '% Beslag (geel)',\n 'required' => true,\n 'options' => null,\n 'created_at' => new \\Carbon\\Carbon(),\n 'updated_at' => new \\Carbon\\Carbon(),\n ],\n [\n 'parent_id' => 14,\n 'survey_id' => 1,\n 'type' => 'text',\n 'other' => false,\n 'other_label' => null,\n 'text' => 'Anders, namelijk',\n 'required' => false,\n 'options' => null,\n 'created_at' => new \\Carbon\\Carbon(),\n 'updated_at' => new \\Carbon\\Carbon(),\n ],\n [\n 'parent_id' => null,\n 'survey_id' => 1,\n 'type' => 'checkbox',\n 'other' => true,\n 'other_label' => null,\n 'text' => 'Toestand van de huid rondom de wond:',\n 'required' => true,\n 'options' => json_encode([\n 'Gezond',\n 'Geïrriteerd/rood',\n 'Droog/eczematisch',\n 'Gemacereerd',\n ]),\n 'created_at' => new \\Carbon\\Carbon(),\n 'updated_at' => new \\Carbon\\Carbon(),\n ],\n [\n 'parent_id' => null,\n 'survey_id' => 1,\n 'type' => 'heading',\n 'other' => false,\n 'other_label' => null,\n 'text' => 'D0 – 1e toepassing van AQUACEL Foam of Foam Lite™ ConvaTec:',\n 'required' => true,\n 'options' => null,\n 'created_at' => new \\Carbon\\Carbon(),\n 'updated_at' => new \\Carbon\\Carbon(),\n ],\n [\n 'parent_id' => null,\n 'survey_id' => 1,\n 'type' => 'date',\n 'other' => false,\n 'other_label' => null,\n 'text' => 'Datum (D0):',\n 'required' => true,\n 'options' => null,\n 'created_at' => new \\Carbon\\Carbon(),\n 'updated_at' => new \\Carbon\\Carbon(),\n ],\n [\n 'parent_id' => null,\n 'survey_id' => 1,\n 'type' => 'checkbox',\n 'other' => false,\n 'other_label' => null,\n 'text' => 'Type verband:',\n 'required' => true,\n 'options' => json_encode([\n 'AQUACEL Foam',\n 'AQUACEL Ag Foam',\n 'Foam Lite ConvaTec',\n ]),\n 'created_at' => new \\Carbon\\Carbon(),\n 'updated_at' => new \\Carbon\\Carbon(),\n ],\n [\n 'parent_id' => null,\n 'survey_id' => 1,\n 'type' => 'label',\n 'other' => false,\n 'other_label' => null,\n 'text' => 'Afmeting verbandkeuze:',\n 'required' => true,\n 'options' => null,\n 'created_at' => new \\Carbon\\Carbon(),\n 'updated_at' => new \\Carbon\\Carbon(),\n ],\n\n [\n 'parent_id' => null,\n 'survey_id' => 1,\n 'type' => 'checkbox',\n 'other' => false,\n 'other_label' => null,\n 'text' => 'AQUACEL Foam – plakkend',\n 'required' => true,\n 'options' => json_encode([\n '8 x 8 cm',\n '10 x 10 cm',\n '12,5 x 12,5 cm',\n '17,5 x 17,5 cm',\n '21 x 21 cm',\n '25 x 30 cm',\n '8 x 13 cm',\n '10 x 20 cm',\n '10 x 25 cm',\n '10 x 30 cm',\n '19,8 x 14 cm',\n '20 x 16,9 cm',\n ]),\n 'created_at' => new \\Carbon\\Carbon(),\n 'updated_at' => new \\Carbon\\Carbon(),\n ],\n [\n 'parent_id' => null,\n 'survey_id' => 1,\n 'type' => 'checkbox',\n 'other' => false,\n 'other_label' => null,\n 'text' => 'AQUACEL Foam - zonder kleefrand',\n 'required' => true,\n 'options' => json_encode([\n '5 x 5 cm',\n '10 x 10 cm',\n '15 x 15 cm',\n '10 x 20 cm',\n '15 x 20 cm',\n '20 x 20 cm',\n ]),\n 'created_at' => new \\Carbon\\Carbon(),\n 'updated_at' => new \\Carbon\\Carbon(),\n ],\n\n [\n 'parent_id' => null,\n 'survey_id' => 1,\n 'type' => 'checkbox',\n 'other' => false,\n 'other_label' => null,\n 'text' => 'AQUACEL Foam – anatomische vormen',\n 'required' => true,\n 'options' => json_encode([\n 'Allround 19,8 x 14 cm',\n 'Sacrum 20 x 16,9 cm',\n ]),\n 'created_at' => new \\Carbon\\Carbon(),\n 'updated_at' => new \\Carbon\\Carbon(),\n ],\n [\n 'parent_id' => null,\n 'survey_id' => 1,\n 'type' => 'checkbox',\n 'other' => false,\n 'other_label' => null,\n 'text' => 'Foam Lite™ ConvaTec',\n 'required' => true,\n 'options' => json_encode([\n '5 x 5 cm',\n '8 x 8 cm',\n '10 x 10 cm',\n '10 x 20 cm',\n '15 x 15 cm',\n '5,5 x 12 cm',\n ]),\n 'created_at' => new \\Carbon\\Carbon(),\n 'updated_at' => new \\Carbon\\Carbon(),\n ],\n [\n 'parent_id' => null,\n 'survey_id' => 1,\n 'type' => 'checkbox',\n 'other' => true,\n 'other_label' => 'Secundair verband, gelieve het primaire verband te vermelden:',\n 'text' => 'Op welke wijze gebruikt u het gekozen verband?',\n 'required' => true,\n 'options' => json_encode([\n 'Primair verband',\n ]),\n 'created_at' => new \\Carbon\\Carbon(),\n 'updated_at' => new \\Carbon\\Carbon(),\n ],\n [\n 'parent_id' => null,\n 'survey_id' => 1,\n 'type' => 'checkbox',\n 'other' => true,\n 'other_label' => null,\n 'text' => 'Waarom heeft u voor dit specifieke verband gekozen? (Meerdere antwoorden zijn mogelijk)',\n 'required' => true,\n 'options' => json_encode([\n 'Vormbaar, zacht, comfortabel voor de patiënt',\n 'Vochtig wondmilieu met Hydrofiber',\n 'Bescherming van de wondranden (verticale absorptie)',\n 'Vasthouden van wondvocht en bacteriën (retentie)',\n 'Verbetering/ verkleining van de wond',\n 'Minder verbandwissels en/of draagtijd verlengd',\n 'Eenvoudig te gebruiken',\n 'Goede kennis van en ervaringen met schuimverbanden',\n 'Goede kennis van en ervaringen met Hydrofiber-verbanden',\n 'Type wond en hoeveelheid wondvocht',\n 'Fase van de wond',\n 'Locatie van de wond',\n ]),\n 'created_at' => new \\Carbon\\Carbon(),\n 'updated_at' => new \\Carbon\\Carbon(),\n ],\n [\n 'parent_id' => null,\n 'survey_id' => 1,\n 'type' => 'checkbox',\n 'other' => true,\n 'other_label' => null,\n 'text' => 'Hoe ervaart u het aanbrengen van het verband?',\n 'required' => true,\n 'options' => json_encode([\n 'Gemakkelijk',\n ['Redelijk gemakkelijk (omschrijf)'],\n ['Niet gemakkelijk (omschrijf)'],\n ]),\n 'created_at' => new \\Carbon\\Carbon(),\n 'updated_at' => new \\Carbon\\Carbon(),\n ],\n [\n 'parent_id' => null,\n 'survey_id' => 1,\n 'type' => 'radio',\n 'other' => false,\n 'other_label' => null,\n 'text' => 'Kleeft het verband bij het aanbrengen aan de handschoenen of aan zichzelf?',\n 'required' => true,\n 'options' => json_encode([\n 'Ja',\n 'Nee',\n ]),\n 'created_at' => new \\Carbon\\Carbon(),\n 'updated_at' => new \\Carbon\\Carbon(),\n ],\n [\n 'parent_id' => null,\n 'survey_id' => 1,\n 'type' => 'radio',\n 'other' => false,\n 'other_label' => null,\n 'text' => 'Zo ja, is het herpositioneerbaar?',\n 'required' => true,\n 'options' => json_encode([\n 'Ja',\n 'Nee',\n ]),\n 'created_at' => new \\Carbon\\Carbon(),\n 'updated_at' => new \\Carbon\\Carbon(),\n ],\n ]);\n }", "public function submit_survey_post()\n\t\t{\n\t\t\t$testId = $this->post('testId');\n\t\t\t$uuid = $this->post('uuid');\n\t\t\t$weekSend = $this->post('weekSend');\n\t\t\tif(!empty($testId) &&\n\t\t\t\t!empty($uuid) &&\n\t\t\t\t!empty($weekSend)\n\t\t\t)\n\t\t\t{\n\t\t\t\t$insertData = array(\n\t\t\t\t\t'ts_uuid' => $uuid,\n\t\t\t\t\t'ts_test_id' => $testId,\n\t\t\t\t\t'ts_week' => $weekSend,\n\t\t\t\t\t'ts_submitted_on' => date('Y-m-d H:i:s')\n\t\t\t\t);\n\t\t\t\t$tempStatus = $this->Student_survey_model->insertSurvey($insertData);\n\t\t\t\tif($tempStatus)\n\t\t\t\t{\n\t\t\t\t\t$data['status'] = $this->lang->line('SUCCESS');\n\t\t\t\t\t$data['message'] = $this->lang->line('VALID_TOKEN_MESSAGE');\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$data['status'] = $this->lang->line('FAIL');\n\t\t\t\t\t$data['message'] = $this->lang->line('unable_save_answer');\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$data['status'] = $this->lang->line('FAIL');\n\t\t\t\t$data['message'] = $this->lang->line('please_pass_required');\n\t\t\t}\n\t\t\t$this->response($data , 200);\n\t\t}", "public function saveAction()\n {\n $user = Mage::getSingleton('admin/session')->getUser(); \n $post_data = $this->getRequest()->getPost();\n\n try {\n $survey = Mage::getModel('client/survey')->loadSurveyByEmail($user->getEmail());\n if ($survey->getId()) $post_data['id'] = $survey->getId();\n\n $survey->setData($post_data);\n $survey->setName($user->getName());\n $survey->setEmail($user->getEmail());\n\n $survey->save();\n\n Mage::getSingleton('adminhtml/session')->addSuccess(Mage::helper('client')->__('Survey was successfully saved. Thank you!'));\n } catch (Exception $e) {\n Mage::getSingleton('adminhtml/session')->addError($e->getMessage());\n }\n\n $this->_redirect('*/*/');\n }", "public function takeSurvey(){\n $this->load->database();\n\n $test['title'] = 'Survey';\n\n $test['survey'] = $this -> Survey_model -> get_survey();\n\n $data['title'] = 'Add a response to Survey';\n\n \t$this->form_validation ->set_rules('Student_Answer', 'Student_Answer', 'required');\n $this->form_validation ->set_rules('Q_ID', 'Q_ID', 'required');\n $this->form_validation ->set_rules('Surv_ID', 'Surv_ID', 'required');\n $this->form_validation ->set_rules('S_ID', 'S_ID', 'required');\n \n \n \n if($this->form_validation->run()=== FALSE){\n $this -> load-> view('templates/header');\n $this -> load-> view('Survey/index', $data);\n $this -> load-> view('templates/footer');\n\n }else{\n\n $this -> Survey_model -> takeSurvey(); \n $this -> load-> view('templates/header');\n $this -> load-> view('Survey/index', $data);\n $this -> load-> view('templates/footer');\n }\n }", "public function insert_question_info()\n {\n \t\t\t\t\t\t\t\t\n codeQuestions::create([\n 'content' =>request('content'),\n /* 'test_case1' =>request('test_case1'),\n 'test_case1_result' =>request('test_case1_result'), \n 'test_case2' =>request('test_case2'), \n 'test_case2_result' =>request('test_case2_result'),\n 'test_case3' =>request('test_case3'),\n 'test_case3_result' =>request('test_case3_result'),\n // 'student_answer' =>request('student_answer'),*/\n 'degree' =>request('degree'),\n 'language' =>request('language'),\n 'type' =>request('type'),\n 'id_exam' =>request('id_exam')\n ]);\n\n ////////////////to make exam id hidden////////////////////////////////////\n $allExams=exams::all();\n return view('exam_questions',['allExams'=>$allExams]); \n ///////////////////////////////////////\n // return redirect('exam_questions') ;\n \n }", "public function Create()\n\t{\n\t\t$prefix = $this->Db->TablePrefix;\n\t\t$this->created = $this->GetServerTime();\n\t\t$user = GetUser();\n\t\t$userid = $user->userid;\n\n\t\t$tablefields = implode(',', $this->_columns);\n\n\t\t//$_columns = array('name','userid','description','created','surveys_header','surveys_header_text','email','email_feedback','after_submit','show_message','show_uri','error_message','submit_button_text');\n\n\t\t$query = \"INSERT INTO {$prefix}surveys ({$tablefields})\n\t\t\t\t VALUES ('\" . $this->Db->Quote($this->name) . \"',\"\n\t\t\t\t\t\t\t . $userid . \",'\"\n\t\t\t\t \t\t\t . $this->Db->Quote($this->description) . \"','\"\n\t\t\t\t\t\t\t . $this->Db->Quote($this->created) . \"','\"\n\t\t\t\t\t\t\t . $this->Db->Quote($this->surveys_header) . \"','\"\n\t\t\t\t\t\t\t . $this->Db->Quote($this->surveys_header_text) . \"','\"\n\t\t\t\t\t\t\t . $this->Db->Quote($this->surveys_header_logo) . \"','\"\n\t\t\t\t\t\t\t . $this->Db->Quote($this->email) . \"','\"\n\t\t\t\t\t\t\t . $this->Db->Quote($this->email_feedback) . \"','\"\n\t\t\t\t\t\t\t . $this->Db->Quote($this->after_submit) . \"','\"\n\t\t\t\t\t\t\t . $this->Db->Quote($this->show_message) . \"','\"\n\t\t\t\t\t\t\t . $this->Db->Quote($this->show_uri) . \"','\"\n\t\t\t\t\t\t\t . $this->Db->Quote($this->error_message) . \"','\"\n\t\t\t\t\t\t\t . $this->Db->Quote($this->submit_button_text) . \"')\";\n\n\n\n\t\tif (SENDSTUDIO_DATABASE_TYPE == 'pgsql') {\n\t\t\t$query .= ' RETURNING id;';\n\t\t}\n\n\t\t$results = $this->Db->Query($query);\n\n\t\tif ($results === false) {\n\t\t\treturn false;\n\t\t}\n\n\t\tif (SENDSTUDIO_DATABASE_TYPE == 'pgsql') {\n\t\t\t$surveyid = $this->Db->FetchOne($results);\n\t\t} else {\n\t\t\t$surveyid = $this->Db->LastId();\n\t\t}\n\n\t\treturn $surveyid;\n\t}", "function add() {\n $this->autoRender = false;\n $this->layout = 'ajax';\n if($this->request->is('ajax')) {\n if ($this->request->is('post')) {\n $this->Survey->set($this->request->data);\n if ($this->Survey->save($this->request->data)) {\n $this->Session->setFlash('Survey saved', true, null, 'confirm');\n $this->Survey->recursive = 0;\n $this->set('surveys', $this->paginate());\n $this->render('/Surveys/index');\n } else {\n $err = array_values($this->Survey->invalidFields());\n $this->Session->setFlash('Invalid survey: '.implode($err[0],\", \"), true, null, 'error');\n $this->Survey->recursive = 0;\n $this->set('surveys', $this->paginate());\n $this->render('/Surveys/index');\n }\n } else {\n $this->render();\n }\n }\n }", "public static function insert()\n {\n if (isset($_POST['name'], \n $_POST['telephone'],\n $_POST['mobile'],\n $_POST['email'],\n $_POST['clientid'])) {\n ContactDAO::create($_POST['name'], \n $_POST['telephone'],\n $_POST['mobile'],\n $_POST['email'],\n $_POST['clientid']);\n }\n }", "function saveToDb()\n\t{\n\t\tglobal $ilDB;\n\t\t\n\t\t// date handling\n\t\t$rmd_start = $this->getReminderStart();\n\t\tif(is_object($rmd_start))\n\t\t{\n\t\t\t$rmd_start = $rmd_start->get(IL_CAL_DATE);\n\t\t}\n\t\t$rmd_end = $this->getReminderEnd();\n\t\tif(is_object($rmd_end))\n\t\t{\n\t\t\t$rmd_end = $rmd_end->get(IL_CAL_DATE);\n\t\t}\n\t\t\n\t\tinclude_once(\"./Services/RTE/classes/class.ilRTE.php\");\n\t\tif ($this->getSurveyId() < 1)\n\t\t{\n\t\t\t$next_id = $ilDB->nextId('svy_svy');\n\t\t\t$affectedRows = $ilDB->insert(\"svy_svy\", array(\n\t\t\t\t\"survey_id\" => array(\"integer\", $next_id),\n\t\t\t\t\"obj_fi\" => array(\"integer\", $this->getId()),\n\t\t\t\t\"author\" => array(\"text\", $this->getAuthor()),\n\t\t\t\t\"introduction\" => array(\"clob\", ilRTE::_replaceMediaObjectImageSrc($this->getIntroduction(), 0)),\n\t\t\t\t\"outro\" => array(\"clob\", ilRTE::_replaceMediaObjectImageSrc($this->getOutro(), 0)),\n\t\t\t\t\"status\" => array(\"text\", $this->getStatus()),\n\t\t\t\t\"startdate\" => array(\"text\", $this->getStartDate()),\n\t\t\t\t\"enddate\" => array(\"text\", $this->getEndDate()),\n\t\t\t\t\"evaluation_access\" => array(\"text\", $this->getEvaluationAccess()),\n\t\t\t\t\"invitation\" => array(\"text\", $this->getInvitation()),\n\t\t\t\t\"invitation_mode\" => array(\"text\", $this->getInvitationMode()),\n\t\t\t\t\"complete\" => array(\"text\", $this->isComplete()),\n\t\t\t\t\"created\" => array(\"integer\", time()),\n\t\t\t\t\"anonymize\" => array(\"text\", $this->getAnonymize()),\n\t\t\t\t\"show_question_titles\" => array(\"text\", $this->getShowQuestionTitles()),\n\t\t\t\t\"mailnotification\" => array('integer', ($this->getMailNotification()) ? 1 : 0),\n\t\t\t\t\"mailaddresses\" => array('text', strlen($this->getMailAddresses()) ? $this->getMailAddresses() : NULL),\n\t\t\t\t\"mailparticipantdata\" => array('text', strlen($this->getMailParticipantData()) ? $this->getMailParticipantData() : NULL),\n\t\t\t\t\"tstamp\" => array(\"integer\", time()),\n\t\t\t\t\"template_id\" => array(\"integer\", $this->getTemplate()),\n\t\t\t\t\"pool_usage\" => array(\"integer\", $this->getPoolUsage()),\n\t\t\t\t// 360°\n\t\t\t\t\"mode_360\" => array(\"integer\", $this->get360Mode()),\n\t\t\t\t\"mode_360_self_eval\" => array(\"integer\", $this->get360SelfEvaluation()),\n\t\t\t\t\"mode_360_self_rate\" => array(\"integer\", $this->get360SelfRaters()),\n\t\t\t\t\"mode_360_self_appr\" => array(\"integer\", $this->get360SelfAppraisee()),\n\t\t\t\t\"mode_360_results\" => array(\"integer\", $this->get360Results()),\n\t\t\t\t\"mode_360_skill_service\" => array(\"integer\", (int) $this->get360SkillService()),\n\t\t\t\t// reminder/notification\n\t\t\t\t\"reminder_status\" => array(\"integer\", (int)$this->getReminderStatus()),\n\t\t\t\t\"reminder_start\" => array(\"datetime\", $rmd_start),\n\t\t\t\t\"reminder_end\" => array(\"datetime\", $rmd_end),\n\t\t\t\t\"reminder_frequency\" => array(\"integer\", (int)$this->getReminderFrequency()),\t\t\t\t\n\t\t\t\t\"reminder_target\" => array(\"integer\", (int)$this->getReminderTarget()),\n\t\t\t\t\"reminder_last_sent\" => array(\"datetime\", $this->getReminderLastSent()),\n\t\t\t\t\"tutor_ntf_status\" => array(\"integer\", (int)$this->getTutorNotificationStatus()),\n\t\t\t\t\"tutor_ntf_reci\" => array(\"text\", implode(\";\", (array)$this->getTutorNotificationRecipients())),\n\t\t\t\t\"tutor_ntf_target\" => array(\"integer\", (int)$this->getTutorNotificationTarget()),\n\t\t\t\t\"own_results_view\" => array(\"integer\", $this->hasViewOwnResults()),\n\t\t\t\t\"own_results_mail\" => array(\"integer\", $this->hasMailOwnResults())\n \t\t\t));\n\t\t\t$this->setSurveyId($next_id);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$affectedRows = $ilDB->update(\"svy_svy\", array(\n\t\t\t\t\"author\" => array(\"text\", $this->getAuthor()),\n\t\t\t\t\"introduction\" => array(\"clob\", ilRTE::_replaceMediaObjectImageSrc($this->getIntroduction(), 0)),\n\t\t\t\t\"outro\" => array(\"clob\", ilRTE::_replaceMediaObjectImageSrc($this->getOutro(), 0)),\n\t\t\t\t\"status\" => array(\"text\", $this->getStatus()),\n\t\t\t\t\"startdate\" => array(\"text\", $this->getStartDate()),\n\t\t\t\t\"enddate\" => array(\"text\", $this->getEndDate()),\n\t\t\t\t\"evaluation_access\" => array(\"text\", $this->getEvaluationAccess()),\n\t\t\t\t\"invitation\" => array(\"text\", $this->getInvitation()),\n\t\t\t\t\"invitation_mode\" => array(\"text\", $this->getInvitationMode()),\n\t\t\t\t\"complete\" => array(\"text\", $this->isComplete()),\n\t\t\t\t\"anonymize\" => array(\"text\", $this->getAnonymize()),\n\t\t\t\t\"show_question_titles\" => array(\"text\", $this->getShowQuestionTitles()),\n\t\t\t\t\"mailnotification\" => array('integer', ($this->getMailNotification()) ? 1 : 0),\n\t\t\t\t\"mailaddresses\" => array('text', strlen($this->getMailAddresses()) ? $this->getMailAddresses() : NULL),\n\t\t\t\t\"mailparticipantdata\" => array('text', strlen($this->getMailParticipantData()) ? $this->getMailParticipantData() : NULL),\n\t\t\t\t\"tstamp\" => array(\"integer\", time()),\n\t\t\t\t\"template_id\" => array(\"integer\", $this->getTemplate()),\n\t\t\t\t\"pool_usage\" => array(\"integer\", $this->getPoolUsage()),\n\t\t\t\t// 360°\n\t\t\t\t\"mode_360\" => array(\"integer\", $this->get360Mode()),\n\t\t\t\t\"mode_360_self_eval\" => array(\"integer\", $this->get360SelfEvaluation()),\n\t\t\t\t\"mode_360_self_rate\" => array(\"integer\", $this->get360SelfRaters()),\n\t\t\t\t\"mode_360_self_appr\" => array(\"integer\", $this->get360SelfAppraisee()),\n\t\t\t\t\"mode_360_results\" => array(\"integer\", $this->get360Results()),\n\t\t\t\t\"mode_360_skill_service\" => array(\"integer\", (int) $this->get360SkillService()),\n\t\t\t\t// reminder/notification\n\t\t\t\t\"reminder_status\" => array(\"integer\", $this->getReminderStatus()),\n\t\t\t\t\"reminder_start\" => array(\"datetime\", $rmd_start),\n\t\t\t\t\"reminder_end\" => array(\"datetime\", $rmd_end),\n\t\t\t\t\"reminder_frequency\" => array(\"integer\", $this->getReminderFrequency()),\n\t\t\t\t\"reminder_target\" => array(\"integer\", $this->getReminderTarget()),\n\t\t\t\t\"reminder_last_sent\" => array(\"datetime\", $this->getReminderLastSent()),\n\t\t\t\t\"tutor_ntf_status\" => array(\"integer\", $this->getTutorNotificationStatus()),\n\t\t\t\t\"tutor_ntf_reci\" => array(\"text\", implode(\";\", (array)$this->getTutorNotificationRecipients())),\n\t\t\t\t\"tutor_ntf_target\" => array(\"integer\", $this->getTutorNotificationTarget()),\n\t\t\t\t\"own_results_view\" => array(\"integer\", $this->hasViewOwnResults()),\n\t\t\t\t\"own_results_mail\" => array(\"integer\", $this->hasMailOwnResults())\n\t\t\t), array(\n\t\t\t\"survey_id\" => array(\"integer\", $this->getSurveyId())\n\t\t\t));\n\t\t}\n\t\tif ($affectedRows)\n\t\t{\n\t\t\t// save questions to db\n\t\t\t$this->saveQuestionsToDb();\n\t\t}\n\t\t\n\t\t// moved activation to ilObjectActivation\n\t\tif($this->ref_id)\n\t\t{\n\t\t\tinclude_once \"./Services/Object/classes/class.ilObjectActivation.php\";\t\t\n\t\t\tilObjectActivation::getItem($this->ref_id);\n\t\t\t\n\t\t\t$item = new ilObjectActivation;\t\t\t\n\t\t\tif(!$this->isActivationLimited())\n\t\t\t{\n\t\t\t\t$item->setTimingType(ilObjectActivation::TIMINGS_DEACTIVATED);\n\t\t\t}\n\t\t\telse\n\t\t\t{\t\t\t\t\n\t\t\t\t$item->setTimingType(ilObjectActivation::TIMINGS_ACTIVATION);\n\t\t\t\t$item->setTimingStart($this->getActivationStartDate());\n\t\t\t\t$item->setTimingEnd($this->getActivationEndDate());\n\t\t\t\t$item->toggleVisible($this->getActivationVisibility());\n\t\t\t}\t\t\t\t\t\t\n\t\t\t\n\t\t\t$item->update($this->ref_id);\t\t\n\t\t}\n\t}", "public function addquestion(Request $request, Survey $survey)\n {\n $this->validate($request, [\n 'label'=>'required|max:255',\n 'options'=>'required_if:type,select,checkbox-list,section',\n 'required'=>'boolean'\n ]);\n $data = array();\n $data = $request->intersect([\n 'label', 'question_type', 'options', 'required', 'css_class'\n ]);\n /*\n $data['label'] = $request->input('label');\n $data['question_type'] = $request->input('type');\n if($request->has('options')) {\n $data['options'] = $request->input('options');\n }\n if($request->has('required') && $request->input('type') != 'section') {\n $data['required'] = '1';\n }\n */\n // return($data);\n $survey->questions()->create($data);\n return redirect('/addquestion/' . $survey->id . '#new-question-form');\n }", "public function insert_question_and_option()\n\t{\t\n\t\t$CI =& get_instance();\n\t\t$CI->auth->check_operator_auth();\n\t\t$CI->load->model('operator/Questions');\t\t\n\t\t$CI->Questions->question_and_option_entry();\n\t\t\n\t\t$this->session->set_userdata(array('message'=>display('successfully_added_question')));\n\n\t\tredirect(base_url('operator/Oquestion/add_question_form'));\n\t}", "function insertQuestion($question_id) \n\t{\n\t\tglobal $ilDB;\n\t\t\n\t\tinclude_once \"./Modules/SurveyQuestionPool/classes/class.SurveyQuestion.php\";\n\t\tif (!SurveyQuestion::_isComplete($question_id))\n\t\t{\n\t\t\treturn FALSE;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// get maximum sequence index in test\n\t\t\t$result = $ilDB->queryF(\"SELECT survey_question_id FROM svy_svy_qst WHERE survey_fi = %s\",\n\t\t\t\tarray('integer'),\n\t\t\t\tarray($this->getSurveyId())\n\t\t\t);\n\t\t\t$sequence = $result->numRows();\n\t\t\t$duplicate_id = $this->duplicateQuestionForSurvey($question_id);\n\t\t\t$next_id = $ilDB->nextId('svy_svy_qst');\n\t\t\t$affectedRows = $ilDB->manipulateF(\"INSERT INTO svy_svy_qst (survey_question_id, survey_fi, question_fi, sequence, tstamp) VALUES (%s, %s, %s, %s, %s)\",\n\t\t\t\tarray('integer', 'integer', 'integer', 'integer', 'integer'),\n\t\t\t\tarray($next_id, $this->getSurveyId(), $duplicate_id, $sequence, time())\n\t\t\t);\n\t\t\t$this->loadQuestionsFromDb();\n\t\t\treturn TRUE;\n\t\t}\n\t}", "public function save()\n {\n parent::save();\n\n // make sure that we are auditing this phase's survey\n $this->ensure_auditing();\n }", "public function insertResult($surveyId, $data)\n\t{\n\t\t$result = $this->result->newInstance(array(\n\t\t\t'name' => array_get($data, 'name'),\n\t\t\t'program_id' => array_get($data, 'program'),\n\t\t\t'survey_id' => $surveyId\n\t\t));\n\n\t\t$result->save();\n\n\t\t$answers = $this->buildAnswerModels(array_get($data, 'question', array()));\n\n\t\t$result->answers()->saveMany($answers);\n\t}", "function printSurveyCreationForm() {\n\tglobal $tool_content, $langTitle, $langPollStart, \n\t\t$langPollEnd, $langType, $langSurveyMC, $langSurveyFillText, \n\t\t$langCreate, $langSurveyContinue, $start_cal_Survey, $end_cal_Survey;\n\t\n\t$CurrentDate = date(\"Y-m-d H:i:s\");\n\t$CurrentDate = htmlspecialchars($CurrentDate);\n\t$tool_content .= <<<cData\n\t<form action=\"addsurvey.php\" id=\"survey\" method=\"post\">\n\t<input type=\"hidden\" value=\"0\" name=\"MoreQuestions\">\n\t<table><thead></thead>\n\t\t<tr><td>$langTitle</td><td colspan=\"2\"><input type=\"text\" size=\"50\" name=\"SurveyName\"></td></tr>\n\t\t<tr><td>$langPollStart</td><td colspan=\"2\">\n\t\t\t$start_cal_Survey\n\t\t</td></tr>\n\t\t<tr><td>$langPollEnd</td><td colspan=\"2\">$end_cal_Survey</td></tr>\n\t\t<!--<tr>\n\t\t <td>$langType</td>\n\t\t <td><label>\n\t\t <input name=\"UseCase\" type=\"radio\" value=\"1\" />\n\t $langSurveyMC</label></td>\n\t\t <td><label>\n\t\t <input name=\"UseCase\" type=\"radio\" value=\"2\" />\n\t $langSurveyFillText</label></td>\n\t\t</tr>-->\n\t\t<input name=\"UseCase\" type=\"hidden\" value=\"1\" />\n\t\t<tr><td colspan=\"3\" align=\"right\">\n <input name=\"$langSurveyContinue\" type=\"submit\" value=\"$langSurveyContinue -&gt;\"></td></tr>\n\t</table>\n\t</form>\ncData;\n}", "function insert(){\n\t\t\t$sql=\"INSERT INTO $this->table (surveyor_type,payment_purpose,payment_amount,division,record_hide,user_id) VALUES (:surveyorType,:paymentPurpose,:paymentAmount,:division,:recordHide,:userId)\";\n\t\t\t$stmt = $this->dbConn->prepare($sql);\n\t\t\t$stmt->bindParam(\":surveyorType\",$this->paymentSurveyor);\n\t\t\t$stmt->bindParam(\":paymentPurpose\",$this->paymentPurpose);\n\t\t\t$stmt->bindParam(\":paymentAmount\",$this->paymentAmount);\n\t\t\t$stmt->bindParam(\":division\",$_SESSION['division']);\n\t\t\t$stmt->bindParam(\":recordHide\",$this->recordHide);\n\t\t\t$stmt->bindParam(\":paymentAmount\",$this->paymentAmount);\n\t\t\t$stmt->bindParam(\":userId\",$this->userId);\n\t\t\tif ($stmt->execute()) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\telse{\n\t\t\t\treturn false;\n\t\t\t\t}\n\n\t\t\t}", "function surveyObject()\n\t{\n\t\t$form = $this->initTagsForm(\"survey\", \"saveSurveySettings\",\n\t\t\t\"advanced_editing_survey_settings\");\n\t\t\n\t\t$this->tpl->setContent($form->getHTML());\t\t\n\t}", "function saveQuestionsToDb() \n\t{\n\t\tglobal $ilDB;\n\t\t// save old questions state\n\t\t$old_questions = array();\n\t\t$result = $ilDB->queryF(\"SELECT * FROM svy_svy_qst WHERE survey_fi = %s\",\n\t\t\tarray('integer'),\n\t\t\tarray($this->getSurveyId())\n\t\t);\n\t\tif ($result->numRows())\n\t\t{\n\t\t\twhile ($row = $ilDB->fetchAssoc($result))\n\t\t\t{\n\t\t\t\t$old_questions[$row[\"question_fi\"]] = $row;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// delete existing question relations\n\t\t$affectedRows = $ilDB->manipulateF(\"DELETE FROM svy_svy_qst WHERE survey_fi = %s\",\n\t\t\tarray('integer'),\n\t\t\tarray($this->getSurveyId())\n\t\t);\n\t\t// create new question relations\n\t\tforeach ($this->questions as $key => $value) \n\t\t{\n\t\t\t$next_id = $ilDB->nextId('svy_svy_qst');\n\t\t\t$affectedRows = $ilDB->manipulateF(\"INSERT INTO svy_svy_qst (survey_question_id, survey_fi, question_fi, heading, sequence, tstamp) VALUES (%s, %s, %s, %s, %s, %s)\",\n\t\t\t\tarray('integer','integer','integer','text','integer','integer'),\n\t\t\t\tarray($next_id, $this->getSurveyId(), $value, (strlen($old_questions[$value][\"heading\"])) ? $old_questions[$value][\"heading\"] : NULL, $key, time())\n\t\t\t);\n\t\t}\n\t}", "function SaveSurvey($choiceId, $txtfrom){\r\n\tglobal $db;\r\n\tif(!$db) connectDb();\r\n\r\n\t$sql =\"INSERT INTO survey_data (choice_id, sms_number, date_created) values ($choiceId, $txtfrom, now())\";\r\n\t$result = false;\r\n\ttry {\r\n\t\t$result = $db->exec($sql);\r\n\r\n\t}\r\n\tcatch (PDOException $e) {\r\n\t\t$error = $e->getMessage();\r\n\t}\r\n\treturn $result;\r\n}", "function insert() {\n\t\tglobal $tpl;\n\n\t\t$form = $this->initForm(TRUE);\n\t\t$tpl->setContent($form->getHTML());\n\t}", "public function add()\n {\n $update_data = $this->insert_global_model->globalinsert($this->tbl_exam_users_activity,array('user_id'=>$this->logged_in_user->id,\n 'activity_time'=>date('Y-m-d H:i:s'),'activity'=>'Add New Survey Question View'));\n // set page specific variables\n $page_info['title'] = 'Add New Question'. $this->site_name;\n $page_info['view_page'] = 'administrator/survey_question_form_view';\n $page_info['message_error'] = '';\n $page_info['message_success'] = '';\n $page_info['message_info'] = '';\n $page_info['is_edit'] = false;\n\n $this->_set_fields();\n $this->_set_rules();\n\n // determine messages\n if ($this->session->flashdata('message_error')) {\n $page_info['message_error'] = $this->session->flashdata('message_error');\n }\n\n if ($this->session->flashdata('message_success')) {\n $page_info['message_success'] = $this->session->flashdata('message_success');\n }\n\n // load view\n\t $this->load->view('administrator/layouts/default', $page_info);\n }", "public function testUpdateSurvey0()\n {\n }", "public function testUpdateSurvey0()\n {\n }", "public function addnewclaimquestion(){\n\tif(isset($this->getData['opertaors']) && !empty($this->getData['opertaors'])){\n\t $operators = commonfunction::implod_array($this->getData['opertaors']);\n\t}\n\telse{\n\t $operators = '';\n \t}\n\tif($this->getData['question_type']=='file'){\n\t $file_upload = 1;\n\t}else{\n\t $file_upload = 0;\n\t}\n\t$question_options ='';\n\tif($this->getData['question_type']=='select' || $this->getData['question_type']=='radio'){\n\t foreach($this->getData['questionoption'] as $key=>$que_option){\n\t\t$que_value = $this->getData['questionvalue'][$key];\n\t\t$question_options .= $que_option.'|'.$que_value.';';\n\t }\n\t}\n\tif(isset($this->getData['subquestion_a']) && $this->getData['subquestion_a']!=''){\n\t $sub_question = isset($this->getData['subquestion_a'])?$this->getData['subquestion_a']:'';\n\t $sub_que_option = isset($this->getData['subquestion_option_a'])?$this->getData['subquestion_option_a']:'';\n\t}else{\n\t $sub_question = isset($this->getData['subquestion'])?$this->getData['subquestion']:'';\n\t $sub_que_option = isset($this->getData['subquestion_option'])?$this->getData['subquestion_option']:'';\n\t}\n\t$lastinserted_id = $this->insertInToTable(CLAIM_QUESTIONS, array(array('sub_question'=>$sub_question,'sub_question_option'=>$sub_que_option,'question_type'=>$this->getData['question_type'],'question'=>$this->getData['question'],'question_options'=>$question_options,'operators'=>$operators,'file_upload'=>$file_upload,'status'=>$this->getData['claim_status'],'created_by'=>$this->Useconfig['user_id'],'created_ip'=>commonfunction::loggedinIP())));\n\treturn $lastinserted_id;\n }", "public function add()\n {\n $update_data = $this->insert_global_model->globalinsert($this->tbl_exam_users_activity,array('user_id'=>$this->logged_in_user->id,\n 'activity_time'=>date('Y-m-d H:i:s'),'activity'=>'Create New Survey View'));\n // set page specific variables\n $page_info['title'] = 'Create New Survey'. $this->site_name;\n $page_info['view_page'] = 'administrator/survey_form_view';\n $page_info['message_error'] = '';\n $page_info['message_success'] = '';\n $page_info['message_info'] = '';\n $page_info['is_edit'] = false;\n //$page_info['cat_survey_lists'] = $this->cat_survey_lists;\n //echo \"<pre>\";\n ///print_r($this->cat_survey_lists); die();\n\n $this->_set_fields();\n $this->_set_rules();\n $page_info['catList'] = $this->select_global_model->Select_array('exm_survey_categories');\n //$page_info['catList'] = $this->question_list;\n\n //print_r_pre($page_info['catList']);\n // determine messages\n if ($this->session->flashdata('message_error')) {\n $page_info['message_error'] = $this->session->flashdata('message_error');\n }\n\n if ($this->session->flashdata('message_success')) {\n $page_info['message_success'] = $this->session->flashdata('message_success');\n }\n\n // load view\n\t$this->load->view('administrator/layouts/default', $page_info);\n }", "function dataForm($Material, $Activity, $Place, $Hours, $Satisfaction, $Suggestion){\n require_once 'model/dbConnector.php';\n $connexion = openDBConnexion();\n $request = $connexion->prepare('\n INSERT INTO bdd_satisfevent.statistics\n SET Material = ?, Activity = ?, Place = ?, Hours = ?, Satisfaction = ?, Suggestion = ?');\n $request->execute(array($Material, $Activity, $Place, $Hours, $Satisfaction, $Suggestion));\n}", "function AddQuestion($data){\n $this->db->escape($data);\n $this->db->insert($this->questions,$data);\n }", "public function Insertquestion($data) {\n// $this->db->query($query);\n $this->db->insert('question_master', $data);\n }", "abstract function performInsert(Form $arg0);", "function printTFQuestionForm() {\n\tglobal $tool_content, $langTitle, $langSurveyStart, $langSurveyEnd, \n\t\t$langType, $langSurveyMC, $langSurveyFillText, \n\t\t$langQuestion, $langCreate, $langSurveyMoreQuestions, \n\t\t$langSurveyCreated, $MoreQuestions;\n\t\t\n\t\tif(isset($_POST['SurveyName'])) $SurveyName = htmlspecialchars($_POST['SurveyName']);\n\t\tif(isset($_POST['SurveyEnd'])) $SurveyEnd = htmlspecialchars($_POST['SurveyEnd']);\n\t\tif(isset($_POST['SurveyStart'])) $SurveyStart = htmlspecialchars($_POST['SurveyStart']);\n\t\t\n//\tif ($MoreQuestions == 2) {\n\tif ($MoreQuestions == $langCreate) {\n\t\tcreateTFSurvey();\n\t} else {\n\t\t$tool_content .= <<<cData\n\t\t<form action=\"addsurvey.php\" id=\"survey\" method=\"post\">\n\t\t<input type=\"hidden\" value=\"2\" name=\"UseCase\">\n\t\t<table>\n\t\t\t<tr><td>$langTitle</td><td colspan=\"2\"><input type=\"text\" size=\"50\" name=\"SurveyName\" value=\"$SurveyName\"></td></tr>\n\t\t\t<tr><td>$langSurveyStart</td><td colspan=\"2\"><input type=\"text\" size=\"20\" name=\"SurveyStart\" value=\"$SurveyStart\"></td></tr>\n\t\t\t<tr><td>$langSurveyEnd</td><td colspan=\"2\"><input type=\"text\" size=\"20\" name=\"SurveyEnd\" value=\"$SurveyEnd\"></td></tr>\ncData;\n\t\t$counter = 0;\n\t\tforeach (array_keys($_POST) as $key) {\n\t\t\t++$counter;\n\t\t $$key = $_POST[$key];\n\t\t if (($counter > 4 )&($counter < count($_POST)-1)) {\n\t\t\t\t$tool_content .= \"<tr><td>$langQuestion</td><td><input type='text' name='question{$counter}' value='${$key}'></td></tr>\"; \n\t\t\t}\n\t\t}\n\t\t\t\n\t\t$tool_content .= <<<cData\n\t\t\t<tr><td>$langQuestion</td><td><input type='text' name='question'></td></tr>\n\t\t\t<tr>\n\t\t\t <td>\n\t\t\t <input name=\"MoreQuestions\" type=\"submit\" value=\"$langSurveyMoreQuestions\" />\n\t\t </td>\n\t\t\t <td>\n\t\t\t <input name=\"MoreQuestions\" type=\"submit\" value=\"$langCreate\" />\n\t\t </td>\n\t\t\t</tr>\n\t\t</table>\n\t\t</form>\ncData;\n\t}\n}", "private function actionInsertCopyQuestion($iSurveyID)\n {\n /** @var Survey $survey */\n $survey = Survey::model()->findByPk($iSurveyID);\n $sBaseLanguage = $survey->language;\n\n // Abort if survey is active\n if ($survey->active !== 'N') {\n Yii::app()->setFlashMessage(gT(\"You can't insert a new question when the survey is active.\"), 'error');\n $this->getController()->redirect(array(\"/admin/survey/sa/view/surveyid/\".$survey->sid), \"refresh\");\n }\n\n if (strlen(Yii::app()->request->getPost('title')) < 1) {\n /* Already done in model : must control if return a good system or not here : BUT difficult to submit an empty string here */\n Yii::app()->setFlashMessage(gT(\"The question could not be added. You must enter at least a question code.\"), 'error');\n } else {\n // For Bootstrap Version usin YiiWheels switch :\n $_POST['mandatory'] = (Yii::app()->request->getPost('mandatory') == '1') ? 'Y' : 'N';\n $_POST['other'] = (Yii::app()->request->getPost('other') == '1') ? 'Y' : 'N';\n\n if (Yii::app()->request->getPost('questionposition', \"\") != \"\") {\n $iQuestionOrder = intval(Yii::app()->request->getPost('questionposition'));\n //Need to renumber all questions on or after this\n $sQuery = \"UPDATE {{questions}} SET question_order=question_order+1 WHERE gid=:gid AND question_order >= :order\";\n Yii::app()->db->createCommand($sQuery)->bindValues(array(':gid'=>$this->iQuestionGroupID, ':order'=>$iQuestionOrder))->query();\n } else {\n $iQuestionOrder = getMaxQuestionOrder($this->iQuestionGroupID, $iSurveyID);\n $iQuestionOrder++;\n }\n $sQuestionText = Yii::app()->request->getPost('question_'.$sBaseLanguage, '');\n $sQuestionHelp = Yii::app()->request->getPost('help_'.$sBaseLanguage, '');\n // Fix bug with FCKEditor saving strange BR types : in rules ?\n $sQuestionText = $this->oFixCKeditor->fixCKeditor($sQuestionText);\n $sQuestionHelp = $this->oFixCKeditor->fixCKeditor($sQuestionHelp);\n\n $this->iQuestionID = 0;\n\n $oQuestion = new Question;\n $oQuestion->sid = $iSurveyID;\n $oQuestion->gid = $this->iQuestionGroupID;\n $oQuestion->type = Yii::app()->request->getPost('type');\n $oQuestion->title = Yii::app()->request->getPost('title');\n $oQuestion->question = $sQuestionText;\n $oQuestion->preg = Yii::app()->request->getPost('preg');\n $oQuestion->help = $sQuestionHelp;\n $oQuestion->other = Yii::app()->request->getPost('other');\n\n // For Bootstrap Version usin YiiWheels switch :\n $oQuestion->mandatory = Yii::app()->request->getPost('mandatory');\n $oQuestion->other = Yii::app()->request->getPost('other');\n\n $oQuestion->relevance = Yii::app()->request->getPost('relevance');\n $oQuestion->question_order = (int) $iQuestionOrder;\n $oQuestion->language = $sBaseLanguage;\n $oQuestion->save();\n if ($oQuestion) {\n $this->iQuestionID = $oQuestion->qid;\n }\n\n $aErrors = $oQuestion->getErrors();\n if (count($aErrors)) {\n foreach ($aErrors as $sAttribute=>$aStringErrors) {\n foreach ($aStringErrors as $sStringErrors) {\n Yii::app()->setFlashMessage(sprintf(gT(\"Question could not be created with error on %s: %s\"), $sAttribute, $sStringErrors), 'error');\n }\n }\n }\n // Add other languages\n if ($this->iQuestionID) {\n $addlangs = $survey->additionalLanguages;\n foreach ($addlangs as $alang) {\n if ($alang != \"\") {\n $oQuestion = new Question;\n $oQuestion->qid = $this->iQuestionID;\n $oQuestion->sid = $iSurveyID;\n $oQuestion->gid = $this->iQuestionGroupID;\n $oQuestion->type = Yii::app()->request->getPost('type');\n $oQuestion->title = Yii::app()->request->getPost('title');\n $oQuestion->question = Yii::app()->request->getPost('question_'.$alang);\n $oQuestion->preg = Yii::app()->request->getPost('preg');\n $oQuestion->help = Yii::app()->request->getPost('help_'.$alang);\n $oQuestion->other = Yii::app()->request->getPost('other');\n $oQuestion->mandatory = Yii::app()->request->getPost('mandatory');\n $oQuestion->relevance = Yii::app()->request->getPost('relevance');\n $oQuestion->question_order = $iQuestionOrder;\n $oQuestion->language = $alang;\n switchMSSQLIdentityInsert('questions', true); // Not sure for this one ?\n $oQuestion->save();\n switchMSSQLIdentityInsert('questions', false);\n\n $aErrors = $oQuestion->getErrors();\n if (count($aErrors)) {\n foreach ($aErrors as $sAttribute=>$aStringErrors) {\n foreach ($aStringErrors as $sStringErrors) {\n Yii::app()->setFlashMessage(sprintf(gT(\"Question in language %s could not be created with error on %s: %s\"), $alang, $sAttribute, $sStringErrors), 'error');\n }\n }\n }\n # if (!$langqid)\n # {\n # Yii::app()->setFlashMessage(gT(\"Question in language %s could not be created.\"),'error');\n # }\n }\n }\n }\n\n\n if (!$this->iQuestionID) {\n Yii::app()->setFlashMessage(gT(\"Question could not be created.\"), 'error');\n\n } else {\n if (Yii::app()->request->getPost('action') == 'copyquestion') {\n /** @var Question $oOldQuestion */\n $oldQID = returnGlobal('oldqid');\n if ($oldQID) {\n $oOldQuestion = Question::model()->findByPk(\n array(\n 'qid' => $oldQID,\n 'language' => $survey->language\n )\n );\n }\n if (returnGlobal('copysubquestions') == 1 && isset($oOldQuestion)) {\n $aSQIDMappings = [];\n foreach ($oOldQuestion->subquestions as $qr1) {\n $arQuestion = new Question();\n $arQuestion->attributes = $qr1->attributes;\n $arQuestion->parent_qid = $this->iQuestionID;\n $oldqid = '';\n if (isset($aSQIDMappings[$qr1->qid])) {\n $arQuestion->qid = $aSQIDMappings[$qr1->qid];\n } else {\n $oldqid = $qr1->qid;\n $arQuestion->qid = null;\n }\n\n $arQuestion->gid = $this->iQuestionGroupID;\n if ($arQuestion->save()) {\n $aSQIDMappings[$oldqid] = $arQuestion->gid;\n }\n }\n }\n if (returnGlobal('copyanswers') == 1) {\n $r1 = Answer::model()->getAnswers((int) returnGlobal('oldqid'));\n $aAnswerOptions = $r1->readAll();\n foreach ($aAnswerOptions as $qr1) {\n Answer::model()->insertRecords(array(\n 'qid' => $this->iQuestionID,\n 'code' => $qr1['code'],\n 'answer' => $qr1['answer'],\n 'assessment_value' => $qr1['assessment_value'],\n 'sortorder' => $qr1['sortorder'],\n 'language' => $qr1['language'],\n 'scale_id' => $qr1['scale_id']\n ));\n }\n }\n\n /**\n * Copy attribute\n */\n if (returnGlobal('copyattributes') == 1) {\n $oOldAttributes = QuestionAttribute::model()->findAll(\"qid=:qid\", array(\"qid\"=>returnGlobal('oldqid')));\n foreach ($oOldAttributes as $oOldAttribute) {\n $attribute = new QuestionAttribute;\n $attribute->qid = $this->iQuestionID;\n $attribute->value = $oOldAttribute->value;\n $attribute->attribute = $oOldAttribute->attribute;\n $attribute->language = $oOldAttribute->language;\n $attribute->save();\n }\n }\n } else {\n $validAttributes = \\LimeSurvey\\Helpers\\questionHelper::getQuestionAttributesSettings(Yii::app()->request->getPost('type'));\n $aAttributeValues = [];\n // If the question has a custom template, we first check if it provides custom attributes\n $aAttributeValues['question_template'] = 'core';\n // @todo Bug: Where does $cqr come from?\n if (isset($cqr)) {\n $oAttributeValues = QuestionAttribute::model()->find(\"qid=:qid and attribute='question_template'\", array('qid'=>$cqr->qid));\n if (is_object($oAttributeValues && $oAttributeValues->value)) {\n $aAttributeValues['question_template'] = $oAttributeValues->value;\n }\n } else {\n $cqr = null;\n }\n\n $validAttributes = Question::getQuestionTemplateAttributes($validAttributes, $aAttributeValues, $cqr);\n\n $aLanguages = array_merge(array(Survey::model()->findByPk($iSurveyID)->language), Survey::model()->findByPk($iSurveyID)->additionalLanguages);\n /* Start to fix some param before save (TODO : use models directly ?) */\n /* Date management */\n Yii::app()->loadHelper('surveytranslator');\n\n\n foreach ($validAttributes as $validAttribute) {\n if ($validAttribute['i18n']) {\n foreach ($aLanguages as $sLanguage) {\n $value = Yii::app()->request->getPost($validAttribute['name'].'_'.$sLanguage);\n $iInsertCount = QuestionAttribute::model()->findAllByAttributes(array('attribute'=>$validAttribute['name'], 'qid'=>$this->iQuestionID, 'language'=>$sLanguage));\n if (count($iInsertCount) > 0) {\n if ($value != '') {\n QuestionAttribute::model()->updateAll(array('value'=>$value), 'attribute=:attribute AND qid=:qid AND language=:language', array(':attribute'=>$validAttribute['name'], ':qid'=>$this->iQuestionID, ':language'=>$sLanguage));\n } else {\n QuestionAttribute::model()->deleteAll('attribute=:attribute AND qid=:qid AND language=:language', array(':attribute'=>$validAttribute['name'], ':qid'=>$this->iQuestionID, ':language'=>$sLanguage));\n }\n } elseif ($value != '') {\n $attribute = new QuestionAttribute;\n $attribute->qid = $this->iQuestionID;\n $attribute->value = $value;\n $attribute->attribute = $validAttribute['name'];\n $attribute->language = $sLanguage;\n $attribute->save();\n }\n }\n } else {\n $value = Yii::app()->request->getPost($validAttribute['name']);\n\n if ($validAttribute['name'] == 'multiflexible_step' && trim($value) != '') {\n $value = floatval($value);\n if ($value == 0) {\n $value = 1;\n }\n };\n\n $iInsertCount = QuestionAttribute::model()->findAllByAttributes(array('attribute'=>$validAttribute['name'], 'qid'=>$this->iQuestionID));\n if (count($iInsertCount) > 0) {\n if ($value != $validAttribute['default'] && trim($value) != \"\") {\n QuestionAttribute::model()->updateAll(array('value'=>$value), 'attribute=:attribute AND qid=:qid', array(':attribute'=>$validAttribute['name'], ':qid'=>$this->iQuestionID));\n } else {\n QuestionAttribute::model()->deleteAll('attribute=:attribute AND qid=:qid', array(':attribute'=>$validAttribute['name'], ':qid'=>$this->iQuestionID));\n }\n } elseif ($value != $validAttribute['default'] && trim($value) != \"\") {\n $attribute = new QuestionAttribute;\n $attribute->qid = $this->iQuestionID;\n $attribute->value = $value;\n $attribute->attribute = $validAttribute['name'];\n $attribute->save();\n }\n }\n }\n\n }\n\n LimeExpressionManager::SetDirtyFlag();\n LimeExpressionManager::UpgradeConditionsToRelevance($iSurveyID);\n $this->_resetEM();\n Question::model()->updateQuestionOrder($this->iQuestionGroupID, $iSurveyID);\n Yii::app()->session['flashmessage'] = gT(\"Question was successfully added.\");\n\n }\n\n }\n //This is SUPER important! Recalculating the Expression Manager state!\n LimeExpressionManager::SetDirtyFlag(); // so refreshes syntax highlighting\n $redirectLink = $this->getController()->createUrl('admin/questions/sa/view/', array('surveyid' => $iSurveyID, 'gid' => $this->iQuestionGroupID, 'qid' => $this->iQuestionID));\n if (Yii::app()->request->getPost('saveandnew', '') != '') {\n $redirectLink = $this->getController()->createUrl('admin/questions/sa/newquestion/', array('surveyid' => $iSurveyID, 'gid' => $this->iQuestionGroupID));\n }\n\n $this->getController()->redirect($redirectLink);\n }", "function insert_SurveyAnswers($surveyID, $questionNo, $question, $AnswerID, $Answer){\r\n $sql = $this->db->prepare(\"CALL SPinsertSurveyAnswers(:user,:survey,:qNo,:q,:aID,:a);\");\r\n $result = $sql->execute(array(\r\n \"user\" => $_SESSION['userid'],\r\n \"survey\" => $surveyID,\r\n \"qNo\" => $questionNo,\r\n \"q\" => $question,\r\n \"aID\" => $AnswerID,\r\n \"a\" => $Answer\r\n ));\r\n if ($result)\r\n return true;\r\n else\r\n return false;\r\n }", "public function store(Request $request)\n {\n $this->validateSurvey($request);\n\n $survey = new Survey();\n $survey->user_id = $request->user()->id;\n $survey->name = $request->input('name');\n $survey->uuid = Uuid::generate(4);\n $survey->description = $request->input('description');\n $survey->shareable_link = Helper::generateRandomString(8);\n $survey->save();\n $request->session()->flash('success', 'Survey ' . $survey->uuid . ' successfully created!');\n\n //return redirect()->route('survey.edit', $survey->uuid);\n return Redirect::route('surveys');\n }", "function surveyQuestion($id = null) {\n $this->autoRender = false; // turn off autoRender because there is no view named surveyQuestion\n $this->layout = 'ajax'; // use the blank ajax layout\n if($this->request->is('ajax')) { // only proceed if this is an ajax request\n if (!$this->request->is('post')) {\n if ($id != null) { // existing question being edited so retrieve it from the session\n if ($this->Session->check('SurveyQuestion.new')) {\n $tempData = $this->Session->read('SurveyQuestion.new');\n $this->set('question_index', $id);\n $question = $tempData[$id];\n $question['Choice']['value'] = $this->Survey->Question->Choice->CombineChoices($question['Choice']);\n $this->request->data['Question'] = $question; // send the existing question to the view\n }\n }\n $this->render('/Elements/question_form');\n } else { // returning with data from the form here\n $tempArr = null;\n if ($this->Session->check('SurveyQuestion.new')) {\n $tempArr = $this->Session->read('SurveyQuestion.new');\n }\n $this->request->data['Question']['Choice'] = $this->Survey->Question->Choice->SplitChoices($this->request->data['Question']['Choice']['value']);\n $this->Survey->Question->set($this->request->data);\n $checkfieldsArr = $this->Survey->Question->schema();\n unset($checkfieldsArr['id']);\n unset($checkfieldsArr['survey_id']);\n unset($checkfieldsArr['order']);\n $checkfields = array_keys($checkfieldsArr);\n if ($this->Survey->Question->validates(array('fieldList' => $checkfields))) {\n if (is_null($id)) {\n $tempArr[] = $this->request->data['Question'];\n } else {\n $tempArr[$id] = $this->request->data['Question'];\n }\n $this->Session->write('SurveyQuestion.new',$tempArr);\n } else {\n $errors = $this->Survey->Question->invalidFields();\n $this->Session->setFlash('Invalid question: '.$errors['question'][0], true, null, 'error');\n }\n $this->set('questions', $tempArr);\n $this->layout = 'ajax';\n $this->render('/Elements/manage_questions');\n }\n }\n }", "public function addQuestionAction()\n {\n\n if($this->UserauthenticationController->isAuthenticated()) {\n \n $form = new \\Mos\\HTMLForm\\CForm(array(), array(\n 'title' => array(\n 'type' => 'text',\n 'label' => 'Rubrik:',\n 'required' => true,\n 'validation' => array('not_empty'),\n ), \n 'text' => array(\n 'type' => 'textarea',\n 'label' => 'Text:',\n 'required' => true,\n 'validation' => array('not_empty'),\n ), \n 'tags' => array(\n 'type' => 'text',\n 'label' => 'Taggar (separeras med kommatecken):',\n 'required' => true,\n 'validation' => array('not_empty'),\n ), \n 'submit' => array(\n 'type' => 'submit',\n 'value' => 'Publicera fråga',\n 'callback' => function($form) {\n return true;\n }\n ),\n )\n );\n \n // Check the status of the form\n $status = $form->Check();\n \n // What to do if the form was submitted\n if($status === true) {\n \n $now = gmdate('Y-m-d H:i:s');\n \n $sql = \"INSERT INTO mvc_comments (commentTypeId, userId, userAcronym, userEmail, title, text, created) VALUES ('1', '\" . $_SESSION['user']->id . \"', '\" . $_SESSION['user']->acronym . \"', '\" . $_SESSION['user']->email . \"', '\" . $form->Value('title') . \"', '\" . $form->Value('text') . \"', '\" . $now . \"')\";\n $res = $this->db->executeFetchAll($sql);\n $qid = $this->db->lastInsertId();\n \n // Separate the defined tags for this question.\n $tagsSep = explode(\",\", strtolower($form->Value('tags')));\n foreach ($tagsSep as $key => $val) {\n if (!$this->tagExistAction($val)) {\n $trimmed = trim($val);\n $sql = \"INSERT INTO mvc_tag (name) VALUES (?)\";\n $res = $this->db->executeFetchAll($sql,array($trimmed));\n $tagId = $this->db->lastInsertId();\n }\n else {\n $tagId = $this->getTagIdAction($val);\n }\n $sql = \"INSERT INTO mvc_tag2question (idQuestion, idTag) VALUES (?, ?)\";\n $res = $this->db->executeFetchAll($sql,array($qid, $tagId));\n }\n \n $url = $this->url->create('') . '/question/view/' . $qid;\n $this->response->redirect($url);\n }\n \n // What to do when form could not be processed\n else if($status === false){\n header(\"Location: \" . $_SERVER['PHP_SELF']);\n }\n \n $this->theme->setTitle(\"Skapa en ny fråga\");\n \n $this->views->add('comment/form', [\n 'title' => \"Skapa en ny fråga\",\n 'content' => $form->getHTML()\n ]);\n \n }\n }", "public function guestquestionAnswerFormSubmit(Request $request)\n {\n\n \n\n $data = array();\n\n $data = $request->input();\n // dd($data);\n unset($data['_token']);\n unset($data['relevantInfo']);\n $questionAnswer = new QuestionAnswer;\n \n \n $result = DB::table('question_answer')->insert($data);\n if($result)\n {\n \n return redirect()->back()->with('success','Diet information submit succesfully');;\n }\n }", "function printMCQuestionForm() {\n\n\tglobal $tool_content, $langTitle, $langSurveyStart, $langSurveyEnd, \n\t\t$langType, $langSurveyMC, $langSurveyFillText, \n\t\t$langQuestion, $langCreate, $langSurveyMoreQuestions, \n\t\t$langSurveyCreated, $MoreQuestions, $langAnswer, \n\t\t$langSurveyMoreAnswers, $langSurveyInfo,\n\t\t$langQuestion1, $langQuestion2, $langQuestion3, $langQuestion4, $langQuestion5, $langQuestion6,\n\t\t$langQuestion7, $langQuestion8,$langQuestion9, $langQuestion10;\n\t\t\n\t\tif(isset($_POST['SurveyName'])) $SurveyName = htmlspecialchars($_POST['SurveyName']);\n\t\tif(isset($_POST['SurveyEnd'])) $SurveyEnd = htmlspecialchars($_POST['SurveyEnd']);\n\t\tif(isset($_POST['SurveyStart'])) $SurveyStart = htmlspecialchars($_POST['SurveyStart']);\n\t\t\n//\tif ($MoreQuestions == 2) { // Create survey ******************************************************\n\tif ($MoreQuestions == $langCreate) { // Create survey\n\t\tcreateMCSurvey();\n\t} elseif(count($_POST)<7) { // Just entered MC survey creation dialiog ****************************\n\t\t$tool_content .= <<<cData\n\t\t<table><thead></thead>\n\t<tr><td colspan=2>$langSurveyInfo</td></tr></table>\n\t<form action=\"addsurvey.php\" id=\"survey\" method=\"post\" name=\"SurveyForm\" onSubmit=\"return checkrequired(this, 'question1')\">\n\t<input type=\"hidden\" value=\"1\" name=\"UseCase\">\n\t<table id=\"QuestionTable\">\n\t<tr><td>$langTitle</td><td colspan=\"2\"><input type=\"text\" size=\"50\" name=\"SurveyName\" value=\"$SurveyName\"></td></tr>\n\t<tr><td>$langSurveyStart</td><td colspan=\"2\"><input type=\"text\" size=\"20\" name=\"SurveyStart\" value=\"$SurveyStart\"></td></tr>\n\t<tr><td>$langSurveyEnd</td><td colspan=\"2\"><input type=\"text\" size=\"20\" name=\"SurveyEnd\" value=\"$SurveyEnd\"></td></tr>\n\t<tr><td colspan=3>\n\t<SELECT NAME=\"questionx\" onChange=\"addEvent(this.selectedIndex);this.parentNode.removeChild(this);\" id=\"QuestionSelector\">\n\t\t\t\t<OPTION>$langSurveyInfo</option>\n\t\t\t\t<OPTION VALUE=\"question1\">$langQuestion1[0]</option>\n <OPTION VALUE=\"question2\">$langQuestion2[0]</option>\n <OPTION VALUE=\"question3\">$langQuestion3[0]</option>\n <OPTION VALUE=\"question4\">$langQuestion4[0]</option>\n <OPTION VALUE=\"question5\">$langQuestion5[0]</option>\n <OPTION VALUE=\"question6\">$langQuestion6[0]</option>\n <OPTION VALUE=\"question7\">$langQuestion7[0]</option>\n <OPTION VALUE=\"question8\">$langQuestion8[0]</option>\n <OPTION VALUE=\"question9\">$langQuestion9[0]</option>\n <OPTION VALUE=\"question10\">$langQuestion10[0]</option>\n\t\t\t\t</SELECT>\n\t\t\t</td></tr>\n\t\t\t<tr><td>$langQuestion</td><td><input type=\"text\" name=\"question1\" size=\"70\" id=\"NewQuestion\"></td></tr> \n\t\t\t<tr><td>$langAnswer 1</td><td><input type=\"text\" name=\"answer1.1\" size=\"70\" id=\"NewAnswer1\"></td></tr>\n\t\t\t<tr><td>$langAnswer 2</td><td><input type=\"text\" name=\"answer1.2\" size=\"70\" id=\"NewAnswer2\"></td></tr>\n\t\t\t<tr id=\"NextLine\">\n\t\t\t <td>\n\t\t\t <input name=\"MoreQuestions\" type=\"submit\" value=\"$langSurveyMoreAnswers\" /></td>\n\t\t\t <td>\n\t\t\t <input name=\"MoreQuestions\" type=\"submit\" value=\"$langSurveyMoreQuestions\" /></td>\n\t\t <td>\n\t\t\t\t\t<input name=\"MoreQuestions\" type=\"submit\" value=\"$langCreate\"></td>\n\t\t\t</tr>\n\t\t</table>\n\t\t<input type=\"hidden\" value=\"1\" name=\"NumOfQuestions\">\n\t\t</form>\ncData;\n\t} elseif ($MoreQuestions == $langSurveyMoreAnswers) { // Print more answers \n\t\t$NumOfQuestions = $_POST['NumOfQuestions'];\n\t\t\n\t\t$tool_content .= <<<cData\n\t\t<form action=\"addsurvey.php\" id=\"survey\" method=\"post\">\n\t\t<input type=\"hidden\" value=\"1\" name=\"UseCase\">\n\t\t<table>\n\t\t\t<tr><td>$langTitle</td><td colspan=\"2\"><input type=\"text\" size=\"50\" name=\"SurveyName\" value=\"$SurveyName\"></td></tr>\n\t\t\t<tr><td>$langSurveyStart</td><td colspan=\"2\"><input type=\"text\" size=\"10\" name=\"SurveyStart\" value=\"$SurveyStart\"></td></tr>\n\t\t\t<tr><td>$langSurveyEnd</td><td colspan=\"2\"><input type=\"text\" size=\"10\" name=\"SurveyEnd\" value=\"$SurveyEnd\"></td></tr>\n\t\t\t\ncData;\n\n\t\tprintAllQA();\n\t\t$tool_content .= <<<cData\n\t\t\t\t\t<tr><td>$langAnswer</td><td colspan=\"2\"><input type=\"text\" size=\"10\" name=\"answer\" value=\"\"></td></tr>\n\t\t\t\t\t\t<tr>\n\t\t\t <td>\n\t\t\t <input name=\"MoreQuestions\" type=\"submit\" value=\"$langSurveyMoreAnswers\" />\n\t\t </td>\n\t\t\t <td>\n\t\t\t <input name=\"MoreQuestions\" type=\"submit\" value=\"$langSurveyMoreQuestions\" />\n\t\t </td>\n\t\t <td>\n\t\t\t <input name=\"MoreQuestions\" type=\"submit\" value=\"$langCreate\" />\n\t\t </td>\n\t\t\t</tr>\n\t\t</table>\n\t\t<input type=\"hidden\" value=\"{$NumOfQuestions}\" name=\"NumOfQuestions\">\n\t\t</form>\ncData;\n\t} else { // Print more questions ******************************************************\n\t\t$NumOfQuestions = $_POST['NumOfQuestions'];\n\t\t++$NumOfQuestions;\n\t\t\n\t\t$tool_content .= <<<cData\n\t\t<form action=\"addsurvey.php\" id=\"survey\" method=\"post\" name=\"SurveyForm\" onSubmit=\"return checkrequired(this, 'questionx')\">\n\t\t<input type=\"hidden\" value=\"1\" name=\"UseCase\">\n\t\t<table>\n\t\t<tr><td>$langTitle</td><td colspan=\"2\">\n\t\t\t\t<input type=\"text\" size=\"50\" name=\"SurveyName\" value=\"$SurveyName\"></td></tr>\n\t\t<tr><td>$langSurveyStart</td><td colspan=\"2\">\n\t\t\t\t\t<input type=\"text\" size=\"20\" name=\"SurveyStart\" value=\"$SurveyStart\"></td></tr>\n\t\t<tr><td>$langSurveyEnd</td><td colspan=\"2\">\n\t\t\t\t\t<input type=\"text\" size=\"20\" name=\"SurveyEnd\" value=\"$SurveyEnd\"></td></tr>\n\t\t\t\ncData;\n\t\t\n\t\tprintAllQA();\n\t\t\n\t\t$tool_content .= <<<cData\n\t\t<tr><td colspan=3><hr></td></tr>\n\t\t\t<tr><td colspan=3>\n\t\t\t\t<SELECT NAME=\"questionx\" onChange=\"addEvent(this.selectedIndex);this.parentNode.removeChild(this);\" id=\"QuestionSelector\">\n\t\t\t\t<OPTION>$langSurveyInfo</option>\n\t\t\t\t<OPTION VALUE=\"question1\">$langQuestion1[0]</option>\n\t\t\t\t<OPTION VALUE=\"question2\">$langQuestion2[0]</option>\n\t\t\t\t<OPTION VALUE=\"question3\">$langQuestion3[0]</option>\n\t\t\t\t<OPTION VALUE=\"question4\">$langQuestion4[0]</option>\n\t\t\t\t<OPTION VALUE=\"question5\">$langQuestion5[0]</option>\n\t\t\t\t<OPTION VALUE=\"question6\">$langQuestion6[0]</option>\n\t\t\t\t<OPTION VALUE=\"question7\">$langQuestion7[0]</option>\n\t\t\t\t<OPTION VALUE=\"question8\">$langQuestion8[0]</option>\n\t\t\t\t<OPTION VALUE=\"question9\">$langQuestion9[0]</option>\n\t\t\t\t<OPTION VALUE=\"question10\">$langQuestion10[0]</option>\n\t\t\t\t</SELECT>\n\t\t\t</td></tr>\ncData;\n\t\t\n\t\t$tool_content .= \"<tr> <td>\" . \n\t\t\t\t$langQuestion . \"\t</td><td><input type='text' name='questionx' size='70' id='NewQuestion'></td></tr>\".\n\t\t\t\t\"<tr><td>$langAnswer 1</td><td><input type='text' name='answerx.1' size='70' id='NewAnswer1'></td></tr>\".\n\t\t\t\t\"<tr><td>$langAnswer 2</td><td><input type='text' name='answerx.2' size='70' id='NewAnswer2'></td></tr>\";\n\t\t\t\n\t\t$tool_content .= <<<cData\n\t\t\t\t<tr id=\"NextLine\"><td colspan=3><hr></td></tr>\n\t\t\t\t<tr>\n\t\t\t <td>\n\t\t\t <input name=\"MoreQuestions\" type=\"submit\" value=\"$langSurveyMoreAnswers\" />\n\t\t </td>\n\t\t\t <td>\n\t\t\t <input name=\"MoreQuestions\" type=\"submit\" value=\"$langSurveyMoreQuestions\" />\n\t\t </td>\n\t\t <td>\n\t\t\t <input name=\"MoreQuestions\" type=\"submit\" value=\"$langCreate\" />\n\t\t </td>\n\t\t\t</tr>\n\t\t</table>\n\t\t<input type=\"hidden\" value=\"{$NumOfQuestions}\" name=\"NumOfQuestions\">\n\t\t</form>\ncData;\n\t}\n}", "function edit($id = null) {\n if (is_null($id) && !empty($this->request->data)) { // check for an id as long as no form data has been submitted\n $this->Session->setFlash('Invalid survey', true, null, 'error'); // display an error when no valid survey id is given\n $this->redirect(array('action' => 'index')); // return to the index view\n }\n if (!empty($this->request->data)) { // check to see if form data has been submitted\n // first assemble the complete survey data including information from the edit session values\n if ($this->Session->check('SurveyQuestion.new')) { // check for a session for the survey questions\n $tempQuestions = $this->Session->read('SurveyQuestion.new'); // retrieve the questions that have been stored in the session\n //go through each question and set its order value to the same as the current index in the array\n foreach ($tempQuestions as $index => &$quest) {\n $quest['order'] = $index;\n }\n $this->request->data['Question'] = $tempQuestions; // update the form data with the current questions\n }\n if ($this->Session->check('SurveyRespondent.new')) { // check the session for the respondents\n $this->request->data['Respondent'] = $this->Session->read('SurveyRespondent.new'); // update the form data with the current respondents\n }\n $delrespondent = null; // variable to hold respondents to delete (database records only)\n if ($this->Session->check('SurveyRespondent.delete')) { // check the session for respondents to delete\n $delrespondent = $this->Session->read('SurveyRespondent.delete'); // retrieve the respondents to delete\n }\n $delquestion = null; // variable to hold questions to delete (database records only)\n if ($this->Session->check('SurveyQuestion.delete')) { // check the session for questions to delete\n $delquestion = $this->Session->read('SurveyQuestion.delete'); // retrieve the questions to delete\n }\n // now save the survey and return the results\n $errReturn = $this->Survey->complexSave($this->request->data, $delquestion, $delrespondent); // save the combined data, including deletion of survey and respondents that have been dropped\n if (is_null($errReturn)) { // if no errors are returned\n $this->__clearEditSession(); // empty the session variables used for the edit session now that it is complete\n $this->Session->setFlash('The survey has been saved', true, null, 'confirm'); // send a confirmation message that the survey was saved\n $this->redirect(array('action' => 'index')); // redirect to the index view\n } else {\n $this->Session->setFlash($errReturn['message'], true, null, $errReturn['type']); // send error messages received from the model during the save to the view for display\n }\n } else { // if there is no form data, and therefore the edit session is just starting\n $this->Survey->contain(array('Question' => 'Choice', 'Respondent' => 'Response'));\n $this->request->data = $this->Survey->findById($id); // find the survey being edited\n if(!$this->request->data) {\n $this->Session->setFlash('Invalid ID for survey.', true, null, 'error'); // send an error message\n $this->redirect(array('action' => 'index')); // redirect to the index view\n }\n $this->__clearEditSession(); // make sure the session edit variables are empty\n $this->Session->write('Survey.id', $id); // put the survey id in to the session\n $this->Session->write('SurveyQuestion.new', $this->request->data['Question']); // put the original survey questions in to the session\n $this->Session->write('SurveyRespondent.new', $this->request->data['Respondent']); // put the original survey respondents in to the session\n }\n }", "public function add_reseller_program_survey_question()\n {\n $this->loadModel('ResellerProgramSurveyQuestions');\n if (!$this->request->is('post')) {\n throw new MethodNotAllowedException(__('BAD_REQUEST'));\n }\n $resellerProgramSurveyQuestion=$this->request->data;\n $resellerProgramSurveyQuestion = $this->ResellerProgramSurveyQuestions->newEntity($resellerProgramSurveyQuestion);\n if ($this->ResellerProgramSurveyQuestions->save($resellerProgramSurveyQuestion)) {\n $this->set('resellerProgramSurveyQuestion', $resellerProgramSurveyQuestion);\n $this->set('response', ['status' => \"OK\"]);\n } else {\n throw new InternalErrorException(__('Internal Error'));\n }\n $data =array();\n $data['status']=true;\n $data['data']['id']=$resellerProgramSurveyQuestion->id;\n $this->set('response',$data);\n $this->set('_serialize', ['response']);\n }", "function question_answer_insert($data)\n\t{\n\t$this->db->insert('question_answer', $data);\n\t}", "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 testVenueSubmitSurvey()\n {\n $this->buildVenueSurvey();\n\n $venueG = $this->venueGroup;\n $venueQ = $this->venueQuestion;\n\n $response = $this->json('POST', 'survey/submit', [\n 'slot_id' => $this->slot->id,\n 'type' => Survey::TRAINING,\n 'survey' => [\n [\n 'survey_group_id' => $venueG->id,\n 'answers' => [\n [\n 'survey_question_id' => $venueQ->id,\n 'response' => 'a response'\n ]\n ]\n ],\n ]\n ]);\n\n $response->assertStatus(200);\n\n $this->assertDatabaseHas('survey_answer', [\n 'person_id' => $this->user->id,\n 'slot_id' => $this->slot->id,\n 'survey_question_id' => $venueQ->id,\n 'response' => 'a response'\n ]);\n }", "public function create(Request $request)\n {\n\n $this->validate($request, [\n 'name' => 'required|max:255',\n 'kiosk_mode' => 'boolean',\n 'begin_at' => 'nullable|date',\n 'end_at' => 'nullable|date'\n ]);\n\n $survey_details = $request->intersect([\n 'name', 'description', 'return_url', 'css', 'thank_you_message',\n 'slug', 'kiosk_mode', 'begin_at', 'end_at'\n ]);\n\n if(isset($survey_details['slug'])) {\n $survey_details['slug'] = str_replace(' ','_', $survey_details['slug']);\n }\n\n if(isset($survey_details['begin_at'])) {\n $survey_details['begin_at'] = date('Y-m-d H:i:s', strtotime($survey_details['begin_at']));\n }\n\n if(isset($survey_details['end_at'])) {\n $survey_details['end_at'] = date('Y-m-d H:i:s', strtotime($survey_details['end_at']));\n }\n\n //ok, we're valid, now to save form data as a new survey:\n $survey = Survey::create(\n $survey_details\n );\n return redirect('/addquestion/' . $survey->id . '#new-question-form');\n }", "function saveSurveyOneToSession(){\n $_SESSION['fullName'] = $_POST['fullName'];\n $_SESSION['age'] = $_POST['age'];\n $_SESSION['student'] = $_POST['student'];\n}", "public function add($survey_type=0,$code='',$title='',$theme='',$intro='',$start='2013-01-01',$end='2013-01-01',$skip_text='Skip',$skip_quota=0,$agreement_text='',$is_all=0,$method=0,$guide='',$term='')\r\n\t{\r\n\t\t$by = $this->session->userdata('nik');\r\n\t\t$query=\"INSERT INTO GES_M_kuesioner\r\n\t\t\t\t\t ([survey_type_id]\r\n\t\t\t\t\t ,[kuesioner_code]\r\n\t\t\t\t\t ,[title]\r\n\t\t\t\t\t ,[theme]\r\n\t\t\t\t\t ,[introduction]\r\n\t\t\t\t\t ,[start_time]\r\n\t\t\t\t\t ,[end_time]\r\n\t\t\t\t\t ,[abstain_text]\r\n\t\t\t\t\t ,[skip_quota]\r\n\t\t\t\t\t ,[agreement_text]\r\n\t\t\t\t\t ,[contract_active]\r\n\t\t\t\t\t ,[contract_min_years]\r\n\t\t\t\t\t ,[contract_min_months]\r\n\t\t\t\t\t ,[contract_min_days]\r\n\t\t\t\t\t ,[contract_max_years]\r\n\t\t\t\t\t ,[contract_max_months]\r\n\t\t\t\t\t ,[contract_max_days]\r\n\t\t\t\t\t ,[permanent_active]\r\n\t\t\t\t\t ,[permanent_min_years]\r\n\t\t\t\t\t ,[permanent_min_months]\r\n\t\t\t\t\t ,[permanent_min_days]\r\n\t\t\t\t\t ,[permanent_max_years]\r\n\t\t\t\t\t ,[permanent_max_months]\r\n\t\t\t\t\t ,[permanent_max_days]\r\n\t\t\t\t\t ,[position_min_years]\r\n\t\t\t\t\t ,[position_min_months]\r\n\t\t\t\t\t ,[position_min_days]\r\n\t\t\t\t\t ,[position_max_years]\r\n\t\t\t\t\t ,[position_max_months]\r\n\t\t\t\t\t ,[position_max_days]\r\n\t\t\t\t\t ,[insert_by]\r\n\t\t\t\t\t ,[insert_on]\r\n\t\t\t\t\t ,[update_by]\r\n\t\t\t\t\t ,[update_on]\r\n\t\t\t\t\t ,[is_active]\r\n\t\t\t\t\t ,[is_all]\r\n\t\t\t\t\t ,[method]\r\n\t\t\t\t\t ,[guide]\r\n\t\t\t\t\t ,[term])\r\n\t\t VALUES\r\n\t\t\t\t\t ($survey_type\r\n\t\t\t\t\t ,'$code'\r\n\t\t\t\t\t ,'$title'\r\n\t\t\t\t\t ,'$theme'\r\n\t\t\t\t\t ,'$intro'\r\n\t\t\t\t\t ,'$start'\r\n\t\t\t\t\t ,'$end'\r\n\t\t\t\t\t ,'$skip_text'\r\n\t\t\t\t\t ,$skip_quota\r\n\t\t\t\t\t ,'$agreement_text'\r\n\t\t\t\t\t ,0\r\n\t\t\t\t\t ,0\r\n\t\t\t\t\t ,0\r\n\t\t\t\t\t ,0\r\n\t\t\t\t\t ,99\r\n\t\t\t\t\t ,11\r\n\t\t\t\t\t ,29\r\n\t\t\t\t\t ,0\r\n\t\t\t\t\t ,0\r\n\t\t\t\t\t ,0\r\n\t\t\t\t\t ,0\r\n\t\t\t\t\t ,99\r\n\t\t\t\t\t ,11\r\n\t\t\t\t\t ,29\r\n\t\t\t\t\t ,0\r\n\t\t\t\t\t ,0\r\n\t\t\t\t\t ,0\r\n\t\t\t\t\t ,99\r\n\t\t\t\t\t ,11\r\n\t\t\t\t\t ,29\r\n\t\t\t\t\t ,'$by'\r\n\t\t\t\t\t ,GETDATE()\r\n\t\t\t\t\t ,'$by'\r\n\t\t\t\t\t ,GETDATE()\r\n\t\t\t\t\t ,1\r\n\t\t\t\t\t ,$is_all\r\n\t\t\t\t\t ,$method\r\n\t\t\t\t\t ,'$guide'\r\n\t\t\t\t\t ,'$term')\";\r\n\t\treturn $this->survey->query($query);\r\n\t}", "public function run()\n {\n $survey = \\App\\Models\\Survey::create([\n 'availability' => true,\n 'camunda_identifier' => 'survey_001',\n 'title' => 'Diabetes Quality of Life',\n 'description' => 'Diabetes Quality of Life survey captures your satisfaction, impact and worry related to living with the diagnosis of diabetes (Type 1 or 2).',\n 'explanation' => 'Please rate your answers from 1 (least impact on you) to 5 (highest impact on you). Please choose only one response for each question.',\n ]);\n\n \\App\\Models\\Question::create([\n 'survey_id' => $survey->id,\n 'type' => 'satisfaction_01',\n 'text' => 'How satisfied are you with the amount of time it takes to manage your diabetes?',\n ]);\n\n \\App\\Models\\Question::create([\n 'survey_id' => $survey->id,\n 'type' => 'satisfaction_02',\n 'text' => 'How satisfied are you with the amount of time you spend getting checkups?',\n ]);\n\n \\App\\Models\\Question::create([\n 'survey_id' => $survey->id,\n 'type' => 'satisfaction_03',\n 'text' => 'How satisfied are you with the time it takes to determine your sugar level?',\n ]);\n\n \\App\\Models\\Question::create([\n 'survey_id' => $survey->id,\n 'type' => 'satisfaction_04',\n 'text' => 'How satisfied are you with your current treatment?',\n ]);\n\n \\App\\Models\\Question::create([\n 'survey_id' => $survey->id,\n 'type' => 'satisfaction_05',\n 'text' => 'How satisfied are you with your knowledge about your diabetes?',\n ]);\n\n \\App\\Models\\Question::create([\n 'survey_id' => $survey->id,\n 'type' => 'satisfaction_06',\n 'text' => 'How satisfied are you with life in general?',\n ]);\n\n\n \\App\\Models\\Question::create([\n 'survey_id' => $survey->id,\n 'type' => 'impact_01',\n 'text' => 'How often do you feel pain associated with the treatment for your diabetes?',\n ]);\n\n \\App\\Models\\Question::create([\n 'survey_id' => $survey->id,\n 'type' => 'impact_02',\n 'text' => 'How often do you feel physically ill?',\n ]);\n\n \\App\\Models\\Question::create([\n 'survey_id' => $survey->id,\n 'type' => 'impact_03',\n 'text' => 'How often does your diabetes interfere with your family life?',\n ]);\n \\App\\Models\\Question::create([\n 'survey_id' => $survey->id,\n 'type' => 'impact_04',\n 'text' => 'How often do you find your diabetes limiting your social relationships and friendships?',\n ]);\n\n \\App\\Models\\Question::create([\n 'survey_id' => $survey->id,\n 'type' => 'impact_05',\n 'text' => 'How often do you find your diabetes limiting your sexual life?',\n ]);\n \\App\\Models\\Question::create([\n 'survey_id' => $survey->id,\n 'type' => 'impact_06',\n 'text' => 'How often do you find your diabetes limiting your life plans such as employment, education or training?',\n ]);\n\n \\App\\Models\\Question::create([\n 'survey_id' => $survey->id,\n 'type' => 'impact_07',\n 'text' => 'How often do you find your diabetes limiting your leisure activities or travels?',\n ]);\n\n \\App\\Models\\Question::create([\n 'survey_id' => $survey->id,\n 'type' => 'worry_01',\n 'text' => 'How often do you worry about whether you will pass out?',\n ]);\n\n \\App\\Models\\Question::create([\n 'survey_id' => $survey->id,\n 'type' => 'worry_02',\n 'text' => 'How often do you worry that your body looks different because you have diabetes?',\n ]);\n\n \\App\\Models\\Question::create([\n 'survey_id' => $survey->id,\n 'type' => 'worry_03',\n 'text' => 'How often do your worry that you will get complications from your diabetes?',\n ]);\n\n\n $questions = \\App\\Models\\Question::where('survey_id', $survey->id)->get();\n\n foreach ($questions as $question) {\n $index = 0;\n\n while ($index <= 4) {\n $index++;\n \\App\\Models\\Answer::create([\n 'question_id' => $question->id,\n 'text' => $index,\n 'value' => $index,\n ]);\n }\n }\n }", "function insert()\n\t{\n\t\t//@TODO email advisor and student(?)\n\t\t$kReport = $this->report->insert();\n\t\tif($this->input->post(\"email_advisor\")){\n\t\t\t$this->notify($kReport);\n\t\t}\n\t\tredirect(\"report/view/$kReport\");\n\t}", "public function insert()\n\t{\n\t\t$crud = $this->crud->data([\n\t\t\t'first_name' => $_POST['first_name'],\n\t\t\t'last_name' => $_POST['last_name'],\n\t\t]);\n\t\t$crud->insert();\n\t\t$this->redirect('crud');\n\t}", "function testSimpleSurvey()\n\t{\n\t\t$this->loadAndCacheFixture();\n\t\t$this->switchUser(FORGE_ADMIN_USERNAME);\n\t\t$this->gotoProject('ProjectA');\n\n\t\t$this->clickAndWait(\"link=Surveys\");\n\t\t$this->clickAndWait(\"link=Administration\");\n\n\t\t// Create some questions\n\t\t$this->clickAndWait(\"link=Add Question\");\n\t\t$this->type(\"question\", \"This is my first question (radio) ?\");\n\t\t$this->clickAndWait(\"submit\");\n\t\t$this->type(\"question\", \"This is my second question (text area) ?\");\n\t\t$this->select($this->byName(\"question_type\"))->selectOptionByLabel(\"Text Area\");\n\t\t$this->clickAndWait(\"submit\");\n\t\t$this->type(\"question\", \"This is my third question (yes/no) ?\");\n\t\t$this->select($this->byName(\"question_type\"))->selectOptionByLabel(\"Radio Buttons Yes/No\");\n\t\t$this->clickAndWait(\"submit\");\n\t\t$this->type(\"question\", \"This is a comment line of text\");\n\t\t$this->select($this->byName(\"question_type\"))->selectOptionByLabel(\"Comment Only\");\n\t\t$this->clickAndWait(\"submit\");\n\t\t$this->type(\"question\", \"This is a my fifth question (text field) ?\");\n\t\t$this->select($this->byName(\"question_type\"))->selectOptionByLabel(\"Text Field\");\n\t\t$this->clickAndWait(\"submit\");\n\t\t$this->type(\"question\", \"L'année dernière à Noël, 3 < 4, 中国 \\\" <em>, père & fils\");\n\t\t$this->select($this->byName(\"question_type\"))->selectOptionByLabel(\"Text Field\");\n\t\t$this->clickAndWait(\"submit\");\n\n\t\t// Create survey\n\t\t$this->clickAndWait(\"link=Add Survey\");\n\t\t$this->type(\"survey_title\", \"My first survey: L'année dernière à Noël, 3 < 4, 中国 \\\" <em>, père & fils\");\n\t\t$this->clickAndWait(\"to_add[]\");\n\t\t$this->clickAndWait(\"//input[@name='to_add[]' and @value='4']\");\n\t\t$this->clickAndWait(\"//input[@name='to_add[]' and @value='2']\");\n\t\t$this->clickAndWait(\"//input[@name='to_add[]' and @value='5']\");\n\t\t$this->clickAndWait(\"//input[@name='to_add[]' and @value='3']\");\n\t\t$this->clickAndWait(\"submit\");\n\t\t$this->clickAndWait(\"link=My first survey: L'année dernière à Noël, 3 < 4, 中国 \\\" <em>, père & fils\");\n\t\t$this->waitForPageToLoad();\n\t\t$this->assertTextPresent(\"This is a my fifth question (text field) ?\");\n\t\t$this->assertTextPresent(\"This is a comment line of text\");\n\t\t$this->assertTextPresent(\"This is my third question (yes/no) ?\");\n\t\t$this->assertTextPresent(\"This is my second question (text area) ?\");\n\t\t$this->clickAndWait(\"//input[@name='_1' and @value='3']\");\n\t\t$this->type(\"_2\", \"hello\");\n\t\t$this->clickAndWait(\"_3\");\n\t\t$this->clickAndWait(\"_5\");\n\t\t$this->type(\"_5\", \"text\");\n\t\t$this->clickAndWait(\"submit\");\n\t\t$this->clickAndWait(\"link=Administration\");\n\t\t$this->clickAndWait(\"link=Show Results\");\n\t\t$this->clickAndWait(\"link=My first survey: L'année dernière à Noël, 3 < 4, 中国 \\\" <em>, père & fils\");\n\t\t$this->waitForPageToLoad();\n\t\t$this->assertTextPresent(\"Warning - you are about to vote a second time on this survey.\");\n\t\t$this->clickAndWait(\"link=Administration\");\n\t\t$this->clickAndWait(\"link=Show Results\");\n\t\t$this->clickAndWait(\"link=Result\");\n\t\t$this->assertTextPresent(\"YES (1)\");\n\t\t$this->assertTextPresent(\"3 (1)\");\n\t\t$this->assertTextPresent(\"1, 2, 3, 4, 5\");\n\t\t// Check that the number of votes is 1\n\t\t$this->assertEquals(\"1\", $this->getText(\"//main[@id='maindiv']/table/tbody/tr/td[5]\"));\n\n\t\t// Now testing by adding new questions to the survey.\n\t\t$this->clickAndWait(\"link=Surveys\");\n\t\t$this->clickAndWait(\"link=Administration\");\n\t\t$this->clickAndWait(\"link=Add Survey\");\n\t\t$this->clickAndWait(\"link=Add Question\");\n\t\t$this->type(\"question\", \"Another added question ?\");\n\t\t$this->clickAndWait(\"submit\");\n\t\t$this->clickAndWait(\"link=Add Survey\");\n\t\t$this->clickAndWait(\"link=Edit\");\n\t\t$this->clickAndWait(\"to_add[]\");\n\t\t$this->clickAndWait(\"submit\");\n\t\t$this->clickAndWait(\"link=Add Survey\");\n\t\t$this->type(\"survey_title\", \"Q10 ?\");\n\t\t$this->clickAndWait(\"link=Add Question\");\n\t\t$this->type(\"question\", \"Q8 ?\");\n\t\t$this->clickAndWait(\"submit\");\n\t\t$this->type(\"question\", \"Q9 ?\");\n\t\t$this->clickAndWait(\"submit\");\n\t\t$this->type(\"question\", \"Q10 ?\");\n\t\t$this->clickAndWait(\"submit\");\n\t\t$this->clickAndWait(\"link=Add Survey\");\n\t\t$this->clickAndWait(\"link=Edit\");\n\t\t$this->clickAndWait(\"to_add[]\");\n\t\t$this->clickAndWait(\"//input[@name='to_add[]' and @value='8']\");\n\t\t$this->clickAndWait(\"//input[@name='to_add[]' and @value='9']\");\n\t\t$this->clickAndWait(\"submit\");\n\t\t$this->assertTextPresent(\"1, 2, 3, 4, 5, 6, 7, 8, 9\");\n\n\t\t// Check that survey is public.\n\t\t$this->logout();\n\t\t$this->gotoProject('ProjectA');\n\t\t$this->clickAndWait(\"link=Surveys\");\n\t\t$this->assertTextPresent(\"My first survey: L'année dernière à Noël, 3 < 4, 中国 \\\" <em>, père & fils\");\n\n//\t\t// Set survey to private\n//\t\t$this->login(FORGE_ADMIN_USERNAME);\n//\n//\t\t$this->open(\"/survey/?group_id=6\");\n//\t\t$this->clickAndWait(\"link=Surveys\");\n//\t\t$this->clickAndWait(\"link=Administration\");\n//\t\t$this->clickAndWait(\"link=Add Survey\");\n//\t\t$this->clickAndWait(\"link=Edit\");\n//\t\t$this->clickAndWait(\"//input[@name='is_public' and @value='0']\");\n//\t\t$this->clickAndWait(\"submit\");\n//\t\t// Log out and check no survey is visible\n//\t\t$this->clickAndWait(\"link=Log Out\");\n//\t\t$this->select($this->byName(\"none\"))->selectOptionByLabel(\"projecta\");\n//\t\t$this->waitForPageToLoad();\n//\t\t$this->clickAndWait(\"link=Surveys\");\n//\t\t$this->assertTextPresent(\"No Survey is found\");\n//\n//\t\t// Check direct access to a survey.\n//\t\t$this->open(\"/survey/survey.php?group_id=6&survey_id=1\");\n//\t\t$this->waitForPageToLoad();\n//\t\t$this->assertFalse($this->isTextPresent(\"My first survey: L'année dernière à Noël, 3 < 4, 中国 \\\" <em>, père & fils\"));\n\t}", "public function store(Request $request)\n {\n $srvy = new Survey;\n \n\n $srvy->survey_title = $request->title;\n $srvy->description = $request->descrip;\n $srvy->commity_id = $request->commity_id;\n $srvy->course_code = $request->course_id;\n $srvy->creator_id = Sentinel::getUser()->id;\n $srvy->is_template = $request->is_temp;\n \n $srvy->expired = $request->deadline;\n $srvy->save();\n\n\n $id=$srvy->survey_id;\n Session::set('survey_id',$id);\n return redirect()->action('SurveyController@show',[$id]);\n }", "public function ajax_add_existing_question() {\n\t\t$challengeId = $this->input->post('challenge_id');\n $questionId = $this->input->post('question_id');\n\n\t\t$this->challenge_question_model->update_challenge_question_table($questionId, $challengeId, 0);\n $out = array('success' => true);\n $this->output->set_output(json_encode($out));\n\t}", "function insertSurveyFeedback($user_id,$userData)\n\t\t{\n\t\t\t//checking for active survey set\n\t\t\t$active_survey_set = $this->manageContent->getValue_where(\"survey_info\",\"*\",\"status\",1);\n\t\t\t$survey_set = $active_survey_set[0]['set_no'];\n\t\t\t//insert the value to survey feedback table\n\t\t\t$column_name = array(\"user_id\",\"set_no\",\"feedback\");\n\t\t\t$column_value = array($user_id,$survey_set,$userData['feedback']);\n\t\t\t$insert = $this->manageContent->insertValue(\"survey_feedback\",$column_name,$column_value);\n\t\t}", "public function submit(Request $request, $id)\n {\n if($id != $request->input('survey_id')) {\n if($request->has('return_url')\n && strlen($request->input('return_url'))>5) {\n return response()\n ->header('Location', $request->input('return_url'));\n }\n }\n\n $survey = \\App\\Survey::find($id);\n $answerArray = array();\n $validationArray = array();\n $messageArray = array();\n\n //loop through questions and check for answers\n foreach($survey->questions as $question) {\n if($question->required)\n {\n $validationArray['q-' . $question->id] = 'required';\n $messageArray['q-' . $question->id . '.required'] = $question->label . ' is required';\n }\n if($request->has('q-' . $question->id)) {\n if(is_array($request->input('q-' . $question->id)) && count($request->input('q-' . $question->id))) {\n $answerArray[$question->id] = array(\n 'value' => implode('|', $request->input('q-' . $question->id)),\n 'question_id' => $question->id\n );\n } elseif ( strlen(trim($request->input('q-' . $question->id))) > 0) {\n\n $answerArray[$question->id] = array(\n 'value'=> $request->input('q-' . $question->id),\n 'question_id'=>$question->id\n );\n\n } // I guess there is an empty string\n }\n }\n\n\n\n $this->validate($request, $validationArray, $messageArray);\n\n //if no errors, submit form!\n if(count($answerArray) > 0) {\n $sr = new \\App\\SurveyResponse(['survey_id'=>$id, 'ip'=>$_SERVER['REMOTE_ADDR']]);\n $sr->save();\n foreach($answerArray as $qid => $ans) {\n // print_r($ans);\n $sr->answers()->create($ans);\n }\n }\n\n\n if($survey->return_url\n && strlen($survey->return_url)>5\n && !$survey->kiosk_mode ) {\n return redirect()->away($survey->return_url);\n } else {\n return redirect('thanks/' . $survey->id);\n }\n }", "public function insertFormSubmit()\r\n {\r\n $post = array(\r\n 'name' => ($_POST['name']),\r\n 'surname' => ($_POST['surname']),\r\n 'surname' => ($_POST['email']),\r\n 'telephone' => ($_POST['telephone'])\r\n );\r\n if (!empty($post)) {\r\n $formsubmit = new FormSubmit();\r\n $formsubmit->setDate();\r\n $this->entityManager->persist($formsubmit);\r\n $submitdata = new FormSubmitData();\r\n $submitdata->setName(($_POST['name']));\r\n $submitdata->setValue(base64_encode(serialize($post)));\r\n $this->entityManager->persist($submitdata);\r\n $this->entityManager->flush();\r\n echo 'ok';\r\n }\r\n }", "public function insert(){\n if($this->muscle_group == -1 || $this->name == \"\"){\n echo \"Error: exercise not set correctly. Please make sure the form has been filled out correctly and try again.\"; \n }else{\n $sql = \"INSERT INTO exercises (muscle_group_id, exercise_name) VALUES (\" . $this->muscle_group . \", '\" . $this->name .\"');\";\n\n if(mysqli_query($this->con, $sql)){\n echo $this->name . \" added to exercise options!\";\n }else{\n echo \"Error: \" . $sql . \"<br>\" . mysqli_error($this->con); \n }\n }\n mysqli_close($this->con);\n }", "public function actionCreate()\n {\n $model = new Survey();\n\n Yii::$app->gon->send('saveSurveyUrl', '/survey/save-new');\n Yii::$app->gon->send('afterSaveSurveyRedirectUrl', \\Yii::$app->request->referrer);\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "function form_insert($data){\n\t\t$this->db->insert('annonce', $data);\n\t}", "private function addQuestion() : void\n {\n $question = $this->console->ask(__('Type your question'));\n\n $this->console->info('Question successfully added ');\n\n $answer = $this->console->ask(__('Type your answer'));\n\n $this->console->info('Answer successfully added ');\n\n $this->questionRepository->create([\n 'question' => $question,\n 'valid_answer' => $answer,\n ]);\n }", "public function testUpdateSurveyQuestion0()\n {\n }", "public function testUpdateSurveyQuestion0()\n {\n }", "public function run()\n {\n foreach ($this->questions as $question) {\n /** @var \\App\\Components\\SiteSurvey\\Models\\SiteSurveyQuestion $existing */\n $existing = DB::table('site_survey_questions')\n ->where('name', $question['name'])\n ->first();\n\n if (!$existing) {\n $questionId = DB::table('site_survey_questions')\n ->insertGetId([\n 'name' => $question['name'],\n ]);\n\n if (!empty($question['options'])) {\n foreach ($question['options'] as $option) {\n DB::table('site_survey_question_options')\n ->insert([\n 'site_survey_question_id' => $questionId,\n 'name' => $option,\n ]);\n }\n }\n } elseif (!empty($question['options'])) {\n foreach ($question['options'] as $option) {\n /** @var \\App\\Components\\SiteSurvey\\Models\\SiteSurveyQuestionOption $existingOption */\n $existingOption = DB::table('site_survey_question_options')\n ->where('name', $option)\n ->where('site_survey_question_id', $existing->id)\n ->first();\n\n if (!$existingOption) {\n DB::table('site_survey_question_options')\n ->insert([\n 'site_survey_question_id' => $existing->id,\n 'name' => $option,\n ]);\n }\n }\n }\n }\n }", "function randomstrayquotes_add_instance(stdclass $randomstrayquotes, $mform = null) {\n global $DB;\n\n $randomstrayquotes->timecreated = time();\n $randomstrayquotes->students_add_quotes = $randomstrayquotes->admin_setting_students_add_quotes;\n $randomstrayquotes->students_add_authors = $randomstrayquotes->admin_setting_students_add_authors;\n $randomstrayquotes->students_add_categories = $randomstrayquotes->admin_setting_students_add_categories;\n\n // You may have to add extra stuff in here.\n $randomstrayquotes->id = $DB->insert_record('randomstrayquotes', $randomstrayquotes);\n\n randomstrayquotes_grade_item_update($randomstrayquotes);\n\n return $randomstrayquotes->id;\n}", "public function add_reseller_program_survey()\n {\n $this->loadModel('ResellerProgramSurveys');\n if (!$this->request->is('post')) {\n throw new MethodNotAllowedException(__('BAD_REQUEST'));\n }\n \n $resellerProgramId = $this->Auth->user('id');\n $this->request->data['reseller_program_id'] = $resellerProgramId;\n $resellerProgramSurveys=$this->request->data;\n\n $resellerProgramSurveys = $this->ResellerProgramSurveys->newEntity($resellerProgramSurveys);\n //pr($resellerProgramSurveys); die;\n if ($this->ResellerProgramSurveys->save($resellerProgramSurveys)) {\n $this->set('resellerProgramSurveys', $resellerProgramSurveys);\n $this->set('response', ['status' => \"OK\"]);\n } else {\n //pr($resellerProgramSurveys->errors()); die;\n throw new InternalErrorException(__('Internal Error'));\n }\n $data =array();\n $data['status']=true;\n $data['data']['id']=$resellerProgramSurveys->id;\n $this->set('response',$data);\n $this->set('_serialize', ['response']);\n }", "abstract protected function doSaveQuestion(Question $question);", "function hello_yoda_insert(){\n\tglobal $wpdb;\n\n\tif ('POST' === $_SERVER['REQUEST_METHOD']){\n\t\tglobal $wpdb;\n\t\t\n\t\t$quote = filter_var($_POST['quote'], FILTER_SANITIZE_STRING);\n\t\t$quotee = filter_var($_POST['quotee'], FILTER_SANITIZE_STRING);\n\n\t\tif ($quote != '' && ($quotee == 'Vader' || $quotee == 'Yoda')){\n\t\t\t$stmt = $wpdb->prepare(\"INSERT INTO {$wpdb->prefix}quotes (quote,quotee) VALUES (%s, %s)\", $quote, $quotee);\n\t\t\t$wpdb->query($stmt);\n\t\t}\n\t\n\t}\n}", "protected function addQuestionToolbarForm()\n\t{\n\t\tglobal $lng, $ilCtrl, $tpl;\n\n\t\tinclude_once \"Services/Form/classes/class.ilPropertyFormGUI.php\";\n\t\t$form = new ilPropertyFormGUI();\n\t\t$form->setFormAction($ilCtrl->getFormAction($this, \"addQuestionToolbar\"));\n\t\t$form->setTitle($lng->txt(\"survey_add_new_question\"));\n\n\t\t// question types\n\t\tinclude_once \"./Modules/SurveyQuestionPool/classes/class.ilObjSurveyQuestionPool.php\";\n\t\t$questiontypes = ilObjSurveyQuestionPool::_getQuestiontypes();\n\t\t$type_map = array();\n\t\tforeach($questiontypes as $trans => $item)\n\t\t{\n\t\t\t$type_map[$item[\"questiontype_id\"]] = $trans;\n\t\t}\n\t\tinclude_once(\"./Services/Form/classes/class.ilSelectInputGUI.php\");\n\t\t$si = new ilSelectInputGUI($lng->txt(\"question_type\"), \"qtype\");\n\t\t$si->setOptions($type_map);\n\t\t$form->addItem($si);\n\n\t\t$pages = $this->object->getSurveyPages();\n\t\tif($pages)\n\t\t{\n\t\t\t$pages_drop = array(\"fst\"=>$lng->txt(\"survey_at_beginning\"));\n\t\t\tforeach($pages as $idx => $questions)\n\t\t\t{\n\t\t\t\t$question = array_shift($questions);\n\t\t\t\tif($question[\"questionblock_id\"])\n\t\t\t\t{\n\t\t\t\t\t$pages_drop[$idx+1] = $lng->txt(\"survey_behind_page\").\" \".$question[\"questionblock_title\"];\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$pages_drop[$idx+1] = $lng->txt(\"survey_behind_page\").\" \".strip_tags($question[\"title\"]);\n\t\t\t\t}\n\t\t\t}\n\t\t\t$pos = new ilSelectInputGUI($lng->txt(\"position\"), \"pgov\");\n\t\t\t$pos->setOptions($pages_drop);\n\t\t\t$form->addItem($pos);\n\n\t\t\t$pos->setValue($this->current_page);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// #9089: 1st page \n\t\t\t$pos = new ilHiddenInputGUI(\"pgov\");\n\t\t\t$pos->setValue(\"fst\");\n\t\t\t$form->addItem($pos);\n\t\t}\n\n\t\tif($this->object->isPoolActive())\n\t\t{\n\t\t\t$this->editor_gui->createQuestionObject($form);\n\t\t}\n\n\t\t$form->addCommandButton(\"addQuestionToolbar\", $lng->txt(\"create\"));\n\t\t$form->addCommandButton(\"renderPage\", $lng->txt(\"cancel\"));\n\n\t\treturn $tpl->setContent($form->getHTML());\n\t}", "function questionnaire_add_instance($questionnaire) {\n // (defined by the form in mod.html) this function\n // will create a new instance and return the id number\n // of the new instance.\n global $COURSE, $DB, $CFG;\n require_once($CFG->dirroot.'/mod/questionnaire/questionnaire.class.php');\n require_once($CFG->dirroot.'/mod/questionnaire/locallib.php');\n\n // Check the realm and set it to the survey if it's set.\n\n if (empty($questionnaire->sid)) {\n // Create a new survey.\n $cm = new Object();\n $qobject = new questionnaire(0, $questionnaire, $COURSE, $cm);\n\n if ($questionnaire->create == 'new-0') {\n $sdata = new Object();\n $sdata->name = $questionnaire->name;\n $sdata->realm = 'private';\n $sdata->title = $questionnaire->name;\n $sdata->subtitle = '';\n $sdata->info = '';\n $sdata->theme = ''; // Theme is deprecated.\n $sdata->thanks_page = '';\n $sdata->thank_head = '';\n $sdata->thank_body = '';\n $sdata->email = '';\n $sdata->owner = $COURSE->id;\n if (!($sid = $qobject->survey_update($sdata))) {\n print_error('couldnotcreatenewsurvey', 'questionnaire');\n }\n } else {\n $copyid = explode('-', $questionnaire->create);\n $copyrealm = $copyid[0];\n $copyid = $copyid[1];\n if (empty($qobject->survey)) {\n $qobject->add_survey($copyid);\n $qobject->add_questions($copyid);\n }\n // New questionnaires created as \"use public\" should not create a new survey instance.\n if ($copyrealm == 'public') {\n $sid = $copyid;\n } else {\n $sid = $qobject->sid = $qobject->survey_copy($COURSE->id);\n // All new questionnaires should be created as \"private\".\n // Even if they are *copies* of public or template questionnaires.\n $DB->set_field('questionnaire_survey', 'realm', 'private', array('id' => $sid));\n }\n }\n $questionnaire->sid = $sid;\n }\n\n $questionnaire->timemodified = time();\n\n // May have to add extra stuff in here.\n if (empty($questionnaire->useopendate)) {\n $questionnaire->opendate = 0;\n }\n if (empty($questionnaire->useclosedate)) {\n $questionnaire->closedate = 0;\n }\n\n if ($questionnaire->resume == '1') {\n $questionnaire->resume = 1;\n } else {\n $questionnaire->resume = 0;\n }\n\n // Field questionnaire->navigate used for branching questionnaires. Starting with version 2.5.5.\n /* if ($questionnaire->navigate == '1') {\n $questionnaire->navigate = 1;\n } else {\n $questionnaire->navigate = 0;\n } */\n\n if (!$questionnaire->id = $DB->insert_record(\"questionnaire\", $questionnaire)) {\n return false;\n }\n\n questionnaire_set_events($questionnaire);\n\n return $questionnaire->id;\n}", "public function actionCreate() {\n $model = new Surveys();\n\n if ($model->load(Yii::$app->request->post())) {\n if ($model->validate() == TRUE) {\n // print_r($model);\n $model->save();\n Yii::$app->session->setFlash('success', \"Poll Created Succsesfully\");\n\n return $this->redirect('create');\n } else {\n $sessions = Yii::$app->session->set(\"Error\", \"Error when creating Survey\");\n }\n //print_r($model);\n //return $this->redirect(['view', 'id' => $model->survey_id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "function save_question($question, $form, $course) {\n $wizardnow = optional_param('wizardnow', '', PARAM_ALPHA);\n $id = optional_param('id', 0, PARAM_INT); // question id\n // in case 'question'\n // for a new question $form->id is empty\n // when saving as new question\n // $question->id = 0, $form is $data from question2.php\n // and $data->makecopy is defined as $data->id is the initial question id\n // edit case. If it is a new question we don't necessarily need to\n // return a valid question object\n\n // See where we're coming from\n switch($wizardnow) {\n case '' :\n case 'question': // coming from the first page, creating the second\n if (empty($form->id)) { // for a new question $form->id is empty\n $question = parent::save_question($question, $form, $course);\n //prepare the datasets using default $questionfromid\n $this->preparedatasets($form);\n $form->id = $question->id;\n $this->save_dataset_definitions($form);\n } else if (!empty($form->makecopy)){\n $questionfromid = $form->id ;\n $question = parent::save_question($question, $form, $course);\n //prepare the datasets\n $this->preparedatasets($form,$questionfromid);\n $form->id = $question->id;\n $this->save_as_new_dataset_definitions($form,$questionfromid );\n } else {// editing a question\n $question = parent::save_question($question, $form, $course);\n //prepare the datasets\n $this->preparedatasets($form,$question->id);\n $form->id = $question->id;\n $this->save_dataset_definitions($form);\n }\n break;\n case 'datasetdefinitions':\n\n $this->save_dataset_definitions($form);\n break;\n case 'datasetitems':\n $this->save_dataset_items($question, $form);\n $this->save_question_calculated($question, $form);\n break;\n default:\n print_error('invalidwizardpage', 'question');\n break;\n }\n return $question;\n }", "public function store(Request $request)\n {\n $validatedData = $request->validate([\n 'a1' => 'required',\n 'a2' => 'required',\n 'a3' => 'required',\n ]);\n \n // user_idをjsonで受け取る場合\n// $json = json_decode($str, true);\n// $c = new Crypt($json['user_id']);\n// $id = $c->getID();\n // user_idをformパラメータとして受け取る場合\n// $user_id = $request->input('user_id');\n\n $user_id = $request->input('user_id');\n $c = new Crypt($user_id);\n $user_id = $c->getID();\n\n $answers['user_id'] = $user_id;\n \n for($q=1;$q<=5;++$q){\n $answers['qno'] = $q;\n $ano = sprintf(\"a%s\", $q);\n $answers['answer'] = mb_convert_kana($request->input($ano), \"KVnra\");\n Survey::create($answers);\n }\n \n return view('survey.thankyou');\n }", "public function insertAction()\r\n\t{\r\n\t\tif ($this->request->getPost('submit')) {\r\n\t\t\t$name = $this->request->getPost('name');\r\n\t\t\t$phone = $this->request->getPost('phone');\r\n\t\t\t$arrPost = array('name' => $name, 'phone' => $phone);\r\n\t\t\t$room = new Room();\r\n\t\t\tif ($room->save($arrPost)) {\r\n\t\t\t\t$this->response->redirect(\"/users/index\", true);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}", "public function pi_ajax_submit_survey() {\n\t //if user is logged in validate nonce and then save their choice\n\t\tif ( ! isset( $_POST[ 'nonce' ] ) || ! wp_verify_nonce( $_POST[ 'nonce' ], 'pi_msg_ajax') ) {\n\t\t\tstatus_header( '401' );\n\t\t\tdie();\n\t\t}else{\n\t\t\t$survey_type = $_POST['surveyType'];\n\t\t\t$posted = array();\n\t\t\tparse_str( $_POST[ 'formData' ] , $posted);\n\t\t\t\n\t\t\tif( $survey_type === 'alumni-survey'){\n\t\t\t\t\n\t\t\t\t$message = $this->pi_process_alumni_survey($posted);\n\n\t\t\t}elseif( $survey_type === 'staff-survey'){\n\n\t\t\t\t$message = $this->pi_process_staff_survey($posted);\n\n\t\t\t}elseif( $survey_type === 'family-survey'){\n\n\t\t\t\t$message = $this->pi_process_family_survey($posted);\n\n\t\t\t}\n\t\t\t// $to = array('helpline@fordetox.com', 'pbrooke@wstreatment.com' , 'newimage100@aol.com');\n\t\t\t$to = 'aabello@recoveryhealthcaresystems.com';\n\t\t\t$subject = 'Patient Survey from' . get_bloginfo('name');\n\t\t\t$headers[] = 'From:' . get_bloginfo('name') . ' <info@drugtreatmentcentersillinois.com>';\n\t\t\twp_mail( $to, $subject, $message, $headers);\n\n\t\t\t$response = 'Thank you for submitting the survey. <a href=\"'.home_url().'\">To continue using this website click here</a>.';\n\t\t wp_send_json_success( $response );\t\t\n\t\t}\n\t}", "function Form()\n\t{\n\t\tprint '<form name=\"myform\" action=\"' . THIS_PAGE . '\" method=\"post\">';\n\t\tforeach($this->aQuestion as $question)\n\t\t{//print data for each\n\t\t\t$this->createInput($question);\n\t\t}\n\t\tprint '<input type=\"hidden\" name=\"SurveyID\" value=\"' . $this->SurveyID . '\" />';\t\n\t\tprint '<input type=\"submit\" value=\"Submit!\" />';\t\n\t\tprint '</form>';\n\t}", "function insert() {\n\t\t$sql = \"INSERT INTO lessons\n\t\t\t\tVALUES (?, ?, ?, ?, ?)\";\n\t\t\n\t\t$this->db->query($sql, array($this->lessons_id, $this->name, $this->date, $this->active, $this->rank));\n\t\t$this->last_insert_id = $this->db->insert_id();\t\t\n\t\t\n\t}", "public function testCreateSurvey()\n {\n $data = [\n 'year' => 2020,\n 'type' => Survey::TRAINER,\n 'title' => 'My Awesome Survey',\n 'prologue' => 'Take the survey',\n 'epilogue' => 'Did you take it?'\n ];\n\n $response = $this->json('POST', 'survey', [\n 'survey' => $data\n ]);\n\n $response->assertStatus(200);\n $this->assertDatabaseHas('survey', $data);\n }", "public function updateQ(){\n\t\t$action = $this->input->post('q');\n\t\t$where \t= array(\n\t\t\t'id'\t\t => $this->input->post('idQ'),\n\t\t\t// 'survey' => $this->input->post('id'),\n\t\t\t// 'page'\t => $this->input->post('idPage')\n\t\t);\n\t\t\n\t\tif ($action == \"create\") {\n\t\t\t$data = array(\n\t\t\t\t'survey' => $this->input->post('id'),\n\t\t\t\t'page'\t => $this->input->post('idPage'),\n\t\t\t\t'title'\t\t\t=> $this->input->post('titleQ'),\n\t\t\t\t'desc'\t\t\t=> $this->input->post('textQ'),\n\t\t\t\t'type'\t\t\t=> $this->input->post('typeAns'),\n\t\t\t\t'req'\t\t\t => $this->input->post('reqQ'),\n\t\t\t\t'cat_risk'\t\t\t => $this->input->post('cat_risk'),\n\t\t\t);\n\t\t\tif ($this->MstSurveyModel->insert($this->tables[2], $data)) {\n\t\t\t\t$response = \"success\";\n\t\t\t}else $response = \"failed\";\n\t\t}else{\n\t\t\t$data = array(\n\t\t\t\t'title'\t\t\t=> $this->input->post('titleQ'),\n\t\t\t\t'desc'\t\t\t=> $this->input->post('textQ'),\n\t\t\t\t'type'\t\t\t=> $this->input->post('typeAns'),\n\t\t\t\t'req'\t\t\t\t=> $this->input->post('reqQ'),\n\t\t\t\t'cat_risk'\t\t\t => $this->input->post('cat_risk'),\n\t\t\t);\n\t\t\t// print_r($data);exit();\n\t\t\tif ($this->MstSurveyModel->update($this->tables[2], $data, $where)) {\n\t\t\t\t$response = \"success\";\n\t\t\t}else $response = \"failed\";\n\t\t}\n\n\t\techo json_encode($response);\n\t}", "public function run()\n {\n DB::table('survey_questionnaires')->insert([\n array(\n 'user_id' => 35,\n 'survey_header_id' => 1,\n 'question' => 'How satisfied are you with the performance of our customer service representative?',\n 'status' => 1,\n 'created_at' => Carbon::now(),\n 'updated_at' => Carbon::now()\n ),\n array(\n 'user_id' => 35,\n 'survey_header_id' => 1,\n 'question' => 'How responsive have we been to your questions or concerns about our products?',\n 'status' => 1,\n 'created_at' => Carbon::now(),\n 'updated_at' => Carbon::now()\n ),\n ]);\n }", "public function testCreateSurvey0()\n {\n }", "public function testCreateSurvey0()\n {\n }", "function form_insert($data){\n$this->db->insert('phpregister', $data);\n}", "function saveUserSurvey() {\n $result = array(); // an array to hold the survey results\n if (!$this->Session->check('Survey.respondent')) {\n die('No respondent ID');\n } else {\n $respondentid = $this->Session->read('Survey.respondent');\n $i = $this->Survey->Respondent->find('count', array(\n 'conditions' => array('Respondent.id' => $respondentid)\n ));\n if ($i !== 1) {\n die('Respondent not valid'.$i.' rid '.$respondentid);\n }\n }\n $data = array('Response' => array()); // a blank array to build our data for saving\n $answers = ($this->Session->check('Survey.answers')) ? $this->Session->read('Survey.answers') : array(); // get the answers to the questions\n $gdta = ($this->Session->check('Survey.hierarcy')) ? $this->Session->read('Survey.hierarcy') : array(); // the hierarchy from the session\n $mainGoal = ($this->Session->check('Survey.mainGoal')) ? $this->Session->read('Survey.mainGoal') : ''; // the main goal from the session\n $started = ($this->Session->check('Survey.started')) ? $this->Session->read('Survey.started') : ''; // the start time from the session\n $finished = date(\"Y-m-d H:i:s\"); // get the time that the survey was finished in MySQL DATETIME format\n $data['Response']['maingoal'] = $mainGoal;\n $data['Response']['respondent_id'] = $respondentid;\n $data['Response']['started'] = $started;\n $data['Response']['finished'] = $finished;\n $data['Answer'] = $this->Survey->Question->formatAnswersForSave($answers);\n $data['Objective'] = $gdta;\n $this->Survey->Respondent->Response->save($data);\n $data['Response']['id'] = $this->Survey->Respondent->Response->id;\n $this->Survey->Respondent->Response->saveAssociated($data,array('deep' => true));\n $this->__clearEditSession(CLEAR_SURVEY); // delete the temporary session values associated with the survey\n $this->render('/Pages/completed', 'survey');\n }", "public function question_insert() {\n\t\t$this->check_if_authorized();\n\n\t\t//check validation for user\n\t\t//$this->form_validation->set_rules('title', \t\t\t\t\t\t\t\t\t'Nume produs', 'trim|required|xss_clean|min_length[5]|max_length[64]');\n\t\t//$this->form_validation->set_rules('tags', \t\t\t\t\t\t\t\t\t'Categorie', 'trim|required|xss_clean');\n\t\t//$this->form_validation->set_rules('desc', \t\t\t\t\t\t\t\t\t'Descriere', 'trim|xss_clean');\n\t\t//$this->form_validation->set_rules('code', \t\t\t\t\t\t\t\t\t'Descriere', 'trim|xss_clean');\n\n\t\t$data = array(\n\t\t\t'domain' => $this->input->post('domain'),\n\t\t\t'title' => $this->input->post('title'),\n\t\t\t'tags' => $this->input->post('tags'),\n\t\t\t'solution_tags' => $this->input->post('solution_tags'),\n\t\t\t'desc' => $this->input->post('desc'),\n\t\t\t'code' => $this->input->post('code'),\n\t\t\t'private' => $this->input->post('private')? \"1\" : \"0\",\n\t\t\t'author' => $this->session->userdata['user_id']\n\t\t);\n\n\t\t$question_id = $this->question_model->question_insert($data);\n\t\t$data['message_display'] = '';\n\n\t\t//$result = $this->question_model->get_all();\n\n\t\t//$data['result'] = $result;\n\t\tif($question_id !== FALSE) {\n\t\t\t//$data['page_name'] = 'index';\n\t\t\t//$this->load->view('template',$data);\n\t\t\t// $data['message_display'] .= ' The question was succesfully inserted.';\n\t\t\t// $this->show_question_details($question_id, $data['message_display']);\n\t\t\tredirect ('/question/show_question_details/'.$question_id);\n\t\t} else {\n\t\t\t$data['message_display'] .= 'Error 543653 - could not insert question';\n\t\t\t$data['page_right'] = 'question_form_insert';\n\t\t\t$this->load->view('template', $data);\n\t\t}\n\t}", "public function store(Request $request )\n {\n $now = date('Y-m-d H:i:s');\n $v = \\Validator::make($request->all(), [\n 'question_input_type_id' => 'required',\n 'campaign_id' => 'required',\n 'question_title' => 'required',\n ]);\n if ($v->fails()) {\n return redirect()->back()->withErrors($v)->withInput();\n }\n $campaign_id = $request->input('campaign_id');\n $page_number = $request->input('page_number');\n $data = array(\n 'question_input_type_id' => $request->input('question_input_type_id'),\n 'campaign_id' => $campaign_id,\n 'question_title' => $request->input('question_title'),\n 'question_help_text' => $request->input('question_help_text'),\n 'question_answer_require' => $request->input('question_answer_require'),\n 'masking_enable' => $request->input('masking_enable'),\n 'remasking_enable' => $request->input('remasking_enable'),\n 'option_random' => $request->input('option_random'),\n 'question_page_no' => $page_number,\n 'created_at' =>$now,\n 'updated_at' =>$now,\n 'created_by' =>\\Auth::user()->id,\n 'updated_by' =>\\Auth::user()->id,\n );\n \\DB::beginTransaction();\n try {\n $question_id = \\DB::table('survey_question')->insertGetId($data);\n $ex_input_type_id = array(1,2,3,4,10,12);\n $ex_input_type_ForSM = array(5,6);\n $ex_input_type_Multi = array(7);\n $ex_inputNumberPercentage = array(8,9);\n $ex_input_type_ForStar = array(11);\n $ex_input_type_ForScaleStatic = array(15);\n if (isset($_POST['masking_enable'])) {\n $mask_input_id = $request->input('mask_question_id');\n $mask_question_input_value = \\DB::table('question_option_group')\n ->where('option_question_id',$mask_input_id)\n ->get();\n foreach ($mask_question_input_value as $input) {\n $option_group_data = array(\n 'option_question_id' => $question_id,\n 'option_question_mask_ref_id' => $mask_input_id,\n 'question_option_name' => $input->question_option_name,\n 'question_option_value'=> $input->question_option_value,\n 'option_input_type_id' => $request->input('question_input_type_id'),\n 'created_at' =>$now,\n 'updated_at' =>$now,\n 'created_by' =>\\Auth::user()->id,\n 'updated_by' =>\\Auth::user()->id,\n );\n \\DB::table('question_option_group')->insert($option_group_data);\n }\n $mask_meta = array(\n 'question_id' => $question_id,\n 'campaign_id' => $campaign_id,\n 'meta_question_field_name' => 'masked_question_id',\n 'meta_question_field_value' => $mask_input_id,\n 'created_at' =>$now,\n 'updated_at' =>$now,\n 'created_by' =>\\Auth::user()->id,\n 'updated_by' =>\\Auth::user()->id,\n );\n \\DB::table('question_meta')->insert($mask_meta);\n } else if (isset($_POST['remasking_enable'])) {\n $re_mask_input_id = $request->input('re_mask_question_id');\n $re_mask_question_input_value = \\DB::table('question_option_group')\n ->where('option_question_id',$re_mask_input_id)\n ->get();\n foreach ($re_mask_question_input_value as $input) {\n $option_group_data = array(\n 'option_question_id' => $question_id,\n 'option_question_remask_ref_id' => $re_mask_input_id,\n 'question_option_name' => $input->question_option_name,\n 'question_option_value'=> $input->question_option_value,\n 'option_input_type_id' => $request->input('question_input_type_id'),\n 'created_at' =>$now,\n 'updated_at' =>$now,\n 'created_by' =>\\Auth::user()->id,\n 'updated_by' =>\\Auth::user()->id,\n );\n \\DB::table('question_option_group')->insert($option_group_data);\n }\n $re_mask_meta = array(\n 'question_id' => $question_id,\n 'campaign_id' => $campaign_id,\n 'meta_question_field_name' => 're_masked_question_id',\n 'meta_question_field_value' => $re_mask_input_id,\n 'created_at' =>$now,\n 'updated_at' =>$now,\n 'created_by' =>\\Auth::user()->id,\n 'updated_by' =>\\Auth::user()->id,\n );\n \\DB::table('question_meta')->insert($re_mask_meta);\n } else if(in_array($request->input('question_input_type_id'),$ex_input_type_id)) {\n if (\n !empty($request->input('question_option_name')) && is_array($request->input('question_option_name'))\n ) {\n foreach ($_POST['question_option_name'] as $key => $val) {\n $option_group_data = array(\n 'question_option_name' => $val,\n 'question_option_value' => $key + 1,\n 'option_input_type_id' => $request->input('question_input_type_id'),\n 'option_question_id' => $question_id,\n 'created_at' => $now,\n 'updated_at' => $now,\n 'created_by' => \\Auth::user()->id,\n 'updated_by' => \\Auth::user()->id,\n );\n \\DB::table('question_option_group')->insert($option_group_data);\n }\n }\n } else if(in_array($request->input('question_input_type_id'),$ex_input_type_Multi)) {\n if (\n !empty($request->input('question_option_name')) && is_array($request->input('question_option_name'))\n ) {\n foreach ($_POST['question_option_name'] as $key => $val) {\n $option_group_data = array(\n 'question_option_name' => $val,\n 'option_input_type_id' => $request->input('question_input_type_id'),\n 'option_question_id' => $question_id,\n 'created_at' => $now,\n 'updated_at' => $now,\n 'created_by' => \\Auth::user()->id,\n 'updated_by' => \\Auth::user()->id,\n );\n \\DB::table('question_option_group')->insert($option_group_data);\n }\n }\n } else if(in_array($request->input('question_input_type_id'),$ex_input_type_ForStar)) {\n $question_option_name_value = $request->input('question_option_name_value');\n if (\n !empty($request->input('question_option_name')) && is_array($request->input('question_option_name'))\n ) {\n foreach ($_POST['question_option_name'] as $key => $val) {\n $option_group_data = array(\n 'question_option_name' => $val,\n 'option_input_type_id' => $request->input('question_input_type_id'),\n 'option_question_id' => $question_id,\n 'question_option_value' => $question_option_name_value,\n 'created_at' => $now,\n 'updated_at' => $now,\n 'created_by' => \\Auth::user()->id,\n 'updated_by' => \\Auth::user()->id,\n );\n \\DB::table('question_option_group')->insert($option_group_data);\n }\n }\n } else if(in_array($request->input('question_input_type_id'),$ex_input_type_ForScaleStatic)) {\n $question_option_name = $request->input('question_option_name_static');\n if (\n !empty($request->input('question_option_name_static')) && is_array($request->input('question_option_name_static'))\n ) {\n foreach ($_POST['question_option_name_static'] as $key => $val) {\n $option_group_data = array(\n 'question_option_name' => $val,\n 'option_input_type_id' => $request->input('question_input_type_id'),\n 'option_question_id' => $question_id,\n 'question_option_value' => $question_option_name,\n 'created_at' => $now,\n 'updated_at' => $now,\n 'created_by' => \\Auth::user()->id,\n 'updated_by' => \\Auth::user()->id,\n );\n \\DB::table('question_option_group')->insert($option_group_data);\n }\n $options = \\DB::table('question_option_group')\n ->where('option_question_id',$question_id)\n ->where('option_input_type_id','15')\n ->get();\n foreach ($options as $option) {\n \n }\n }\n } else if (in_array($request->input('question_input_type_id'),$ex_input_type_ForSM)) {\n $option_group_data = array(\n 'option_input_type_id' => $request->input('question_input_type_id'),\n 'option_question_id' => $question_id,\n 'created_at' => $now,\n 'updated_at' => $now,\n 'created_by' => \\Auth::user()->id,\n 'updated_by' => \\Auth::user()->id,\n );\n \\DB::table('question_option_group')->insert($option_group_data);\n } else if (in_array($request->input('question_input_type_id'),$ex_inputNumberPercentage)) {\n $option_group_data = array(\n 'option_input_type_id' => $request->input('question_input_type_id'),\n 'option_question_id' => $question_id,\n 'min' => $request->input('min'),\n 'max' => $request->input('max'),\n 'created_at' => $now,\n 'updated_at' => $now,\n 'created_by' => \\Auth::user()->id,\n 'updated_by' => \\Auth::user()->id,\n );\n \\DB::table('question_option_group')->insert($option_group_data);\n } else {\n if (\n !empty($request->input('question_option_name')) && !empty($request->input('question_option_value')) &&\n is_array($request->input('question_option_name')) && is_array($request->input('question_option_value')) &&\n count($request->input('question_option_name')) === count($request->input('question_option_value'))\n ) {\n foreach($_POST['question_option_name'] as $key => $val) {\n $option_group_data = array(\n 'question_option_name' => $val,\n 'question_option_value'=> $request->input('question_option_value')[$key],\n 'option_input_type_id' => $request->input('question_input_type_id'),\n 'option_question_id' => $question_id,\n 'created_at' =>$now,\n 'updated_at' =>$now,\n 'created_by' =>\\Auth::user()->id,\n 'updated_by' =>\\Auth::user()->id,\n );\n \\DB::table('question_option_group')->insert($option_group_data);\n }\n }\n }\n \\App\\System::EventLogWrite('insert,survey Question ',json_encode($data));\n \\DB::commit();\n return redirect()->back()->with('message','Question Inserted Successfully !!');\n } catch (\\Exception $e){\n $message = \"Message : \".$e->getMessage().\", File : \".$e->getFile().\", Line : \".$e->getLine();\n \\DB::rollback();\n \\App\\System::ErrorLogWrite($message);\n return redirect()->back()->with('errormessage','Something is wrong !');\n }\n }", "protected function insert()\n\t{\n\t\t$this->autofill();\n\n\t\tparent::insert();\n\n\t}", "public function updateSurvey(){\n\t\t// echo $this->session->userdata('id_users');exit();\n\t\tdate_default_timezone_set('Asia/Jakarta');\n\t\t$action = $this->input->post('action');\n\t\t$where \t= array(\n\t\t\t'id'\t=> $this->input->post('id')\n\t\t);\n\t\t$data = array(\n\t\t\t'title'\t\t\t=> $this->input->post('title'),\n\t\t\t// 'date' \t\t\t=> $this->dmys2ymd(date(\"y/m/d\")),\n\t\t\t'date' \t\t\t=> date('Y-m-d'),\n\t\t\t'beginDate' => $this->checkDate($this->input->post('surveyBegin')),\n\t\t\t'endDate' \t=> $this->checkDate($this->input->post('surveyEnd')),\n\t\t\t'category'\t\t\t\t=> $this->input->post('category'),\n\t\t\t'url'\t\t\t\t=> $this->input->post('url'),\n\t\t\t'target'\t\t=> $this->input->post('target'),\n\t\t\t'id_user'\t=> $this->session->userdata('id_users')\n\t\t);\n\n\t\tif ($action == \"create\") {\n\t\t\t$checkSurvey = $this->MstSurveyModel->checkSurvey($this->input->post('title'));\n\t\t\tif($checkSurvey->title > 0) $response = \"duplicate\";\n\t\t\telse{\n\t\t\t\t#cek mak survey\n\t\t\t\t$usr_lvl = $this->MstSurveyModel->cek_level($this->session->userdata('id_user_level'));\n\t\t\t\tif($usr_lvl->max_survey > 0){\n\t\t\t\t\t#cek survey bulan ini\n\t\t\t\t\t$svy = $this->MstSurveyModel->cek_survey_bln($this->session->userdata('id_users'),date('Y-m'));\n\t\t\t\t\t#jika jumlah survey belum lewat batas maksimal\n\t\t\t\t\tif($svy->jml_d < $usr_lvl->max_survey){\n\t\t\t\t\t\tif ($this->MstSurveyModel->insert($this->tableSurveys, $data)) {\n\t\t\t\t\t\t\t$response = \"success\";\n\t\t\t\t\t\t}else $response = \"failed\";\n\t\t\t\t\t}else{\n\t\t\t\t\t\t$response = \"failed\";\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tif ($this->MstSurveyModel->insert($this->tableSurveys, $data)) {\n\t\t\t\t\t\t$response = \"success\";\n\t\t\t\t\t}else $response = \"failed\";\n\t\t\t\t}\n\t\t\t}\n\t\t}else{\n\t\t\tif ($this->MstSurveyModel->update($this->tableSurveys, $data, $where)) {\n\t\t\t\t$response = \"success\";\n\t\t\t}else $response = \"failed\";\n\t\t}\n\n\t\techo json_encode($response);\n\t}", "function add_form($params, $q, $a, $qId, $qType, $answersScore, $questionsScore)\n {\n// var_dump($scores);\n// die();\n $this->db->insert('forms',$params);\n $formId = $this->db->insert_id();\n\n $questionsCount = count($qId);\n //Insert data in tables\n foreach ($q as $qkey => $qItem){\n $this->db->insert('questions', array(\n 'question_label' => $qItem,\n 'question_form' => $formId,\n 'question_type' => $qType[$qkey],\n 'question_score' => $questionsScore[$qkey]\n ));\n\n $questId = $this->db->insert_id();\n\n for($i=0; $i<$questionsCount; $i++){\n if ($qId[$i]==$qkey){\n $this->db->insert('answers', array(\n 'ans_question' => $questId,\n 'ans_value' => $a[$i],\n 'ans_score' => $answersScore[$i]+1\n ));\n }\n }\n }\n\n return $formId;\n }", "public function testUpdateSurvey()\n {\n $survey = Survey::factory()->create();\n\n $response = $this->json('PATCH', \"survey/{$survey->id}\", [\n 'survey' => ['epilogue' => 'epilogue your behind']\n ]);\n\n $response->assertStatus(200);\n $this->assertDatabaseHas('survey', ['id' => $survey->id, 'epilogue' => 'epilogue your behind']);\n }", "function add_question(){\n global $conn;\n\n$error_array = array();\n\nif(isset($_POST['submit'])){\n\n $question = $_POST['question'];\n $option_one = $_POST['option_one'];\n $option_two = $_POST['option_two'];\n $option_three = $_POST['option_three'];\n $option_four = $_POST['option_four'];\n $answer = $_POST['answer'];\n $cat_id = $_POST['cat'];\n\n \n \n if(empty($error_array)){\n\n\n\n $query = mysqli_query($conn, \"INSERT INTO question(question,option_1,option_2,option_3,option_4,answer,cat_id) VALUES\n ('$question','$option_one','$option_two','$option_three', '$option_four','$answer','$cat_id') \");\n\n\n\n if( $query ) {\n echo \"<script type='text/javascript'>alert('submitted successfully!');\n\n window.location = 'view_question.php';\n </script>\"; \n\n }\n else {\n echo \"<script type='text/javascript'>alert('failed!')</script>\";}\n \n } \n }\n\n }", "public function answersQuestion($table,$columns,$values,$db,Database $dbObj)\n {\n \n $dbObj->insert($table,$columns,$values,$db);\n\n }", "public function questions($survey = \"\")\n {\n\n $surveyPrefix = \"\";\n $surveyData = $this->survey_model->getSurveyPrefix($survey);\n $data[\"valid_survey\"] = true;\n $data[\"show_questions\"] = true;\n $data[\"survey_errors\"] = false;\n\n // check if the provided slug was valid\n if($surveyData != null) {\n\n // populate survery information\n $surveyPrefix = $surveyData->prefix;\n $data[\"survey_title\"] = $surveyData->title;\n $data[\"survey_subtitle\"] = $surveyData->subtitle;\n }\n else {\n $data[\"valid_survey\"] = false; // display error\n }\n\n // check if the survey was submitted\n if($_SERVER['REQUEST_METHOD'] == 'POST' && $data[\"valid_survey\"]) {\n $result = $this->survey_model->validateSubmission($surveyPrefix);\n if(array_key_exists(\"errors\", $result)) {\n $data[\"errors\"] = $result[\"errors\"];\n $data[\"survey_errors\"] = true;\n }\n else {\n $data[\"show_questions\"] = false;\n }\n }\n\n // check if the user specified a valid survey\n if(!empty($surveyPrefix)) {\n\n $data[\"questions\"] = $this->survey_model->getSurveyData($surveyPrefix);\n ($data[\"questions\"] === null) ? $data[\"valid_survey\"] = false: \"\";\n }\n\n $data[\"active_surveys\"] = \"\";\n $this->load->view('templates/survey/header', $data);\n $this->load->view('templates/survey/nav');\n $this->load->view('templates/survey/survey', $data);\n $this->load->view('templates/survey/footer');\n }", "function insert($id_question, $option_text)\r\n\t{\r\n\t\t$data = array(\r\n\t\t'option' => $option_text,\r\n\t\t'custom_questions_id' => $id_question\r\n\t\t\t\t);\r\n\r\n\t\treturn $this->db->insert($this->table, $data);\r\n\t}", "public function save(){\n\t\t// yei bata feri \"index.php\" ma falne jun chai profile ma jancha\n\t\t$req = new Requirement();\n\n\t\tif(isset($_POST['title'])){\n\t\t$req->setTitle($_POST['title']);\n\t\t}else{\n\t\t\t$req->setTitle(\"\");\n\t\t}\n\t\tif(isset($_POST['date'])){\n\n\t\t$req->setDate($_POST['date']);\n\t\t}else{\n\t\t\t$req->setDate(\"01-01-2001\");\n\t\t}\n\t\tif(isset($_POST['details'])){\n\t\t$req->setDescription($_POST['details']);\n\t\t}else{\n\t\t\t$req->setDescription(\"\");\n\t\t}\n\t\t$req->setStatus(1);\n\t\t$req->setOrgname(\"\");\n\t\t$this->requirement_repository->insert($req);\n\n\t}", "public function addSubmittedExercise() {\n\n\t\t//$answers_from_current_user = xaseAnswer::where(array('user_id' => $this->dic->user()->getId(), 'question_id' => $this->xase_question->getId()))->get();\n\n\n\t\t$all_items_assisted_exercise = xaseQuestion::where(array( 'assisted_exercise_id' => $this->assisted_exercise->getId() ))->get();\n\n\t\t$answers_from_current_user = xaseQuestionTableGUI::getAllUserAnswersFromAssistedExercise($all_items_assisted_exercise, $this->dic, $this->dic->user());\n\n\t\t/*\n\t\t * @var xaseAnswer $answers_from_current_user\n\t\t */\n\t\tforeach ($answers_from_current_user as $answer_from_current_user) {\n\t\t\tif (is_array($answers_from_current_user)) {\n\t\t\t\t$answer_from_current_user_object = xaseAnswer::where(array( 'id' => $answer_from_current_user['id'] ))->first();\n\t\t\t\t$answer_from_current_user_object->setAnswerStatus(xaseAnswer::ANSWER_STATUS_CAN_BE_VOTED);\n\t\t\t\t$answer_from_current_user_object->setSubmissionDate(date('Y-m-d H:i:s'));\n\t\t\t\t$answer_from_current_user_object->setIsAssessed(0);\n\t\t\t\t$answer_from_current_user_object->store();\n\t\t\t} else {\n\t\t\t\t$answer_from_current_user_object = xaseAnswer::where(array( 'id' => $answers_from_current_user['id'] ));\n\t\t\t\t$answer_from_current_user_object->setAnswerStatus(xaseAnswer::ANSWER_STATUS_CAN_BE_VOTED);\n\t\t\t\t$answer_from_current_user_object->setSubmissionDate(date('Y-m-d H:i:s'));\n\t\t\t\t$answer_from_current_user_object->setIsAssessed(0);\n\t\t\t\t$answer_from_current_user_object->store();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tilUtil::sendSuccess($this->obj_facade->getLanguageValue('success_message_exercise_submitted'), true);\n\t\t$this->obj_facade->getCtrl()->redirectByClass(xaseQuestionGUI::class, xaseQuestionGUI::CMD_INDEX);\n\t}", "public function saveAnswerByQuestion($data)\n\t{\n\t\t$this->db->insert('pergunta_jogador', array(\n\t\t\t'id_pergunta' => $data['id_pergunta'],\n\t\t\t'id_resposta' => $data['id_resposta'],\n\t\t\t'id_usuario' => $data['id_usuario'],\n\t\t\t'id_jogo' => $data['id_jogo']\n\t\t));\n\t}", "function insertParticularQuestionToQuiz($question,$conn)\n {\n if($question['type']==\"radio\")\n {\n return insertRadioQuestion($question,$conn);\n }\n if($question['type']==\"checkbox\")\n {\n return insertCheckboxQuestion($question,$conn);\n }\n else if($question[\"type\"]==\"loose_text\" || $question[\"type\"]==\"strict_text\")\n {\n return insertTextQuestion($question,$conn);\n }\n return -1;\n }", "public function insert() {\n\n // Does the program object already have an ID?\n if ( !is_null( $this->programID ) ) trigger_error ( \"program::insert(): Attempt to insert an program object that already has its ID property set (to $this->id).\", E_USER_ERROR );\n\n // Insert the program\n $conn = new PDO( DB_DSN, DB_USERNAME, DB_PASSWORD );\n $sql = \"INSERT INTO programs ( programName, programStart, programFrequency ) VALUES ( :programName, :programStart, :programFrequency )\";\n $st = $conn->prepare ( $sql );\n $st->bindValue( \":programName\", $this->programName, PDO::PARAM_STR );\n $st->bindValue( \":programStart\", $this->programStart, PDO::PARAM_STR );\n\t$st->bindValue( \":programFrequency\", $this->programFrequency, PDO::PARAM_STR );\n $st->execute();\n $this->programID = $conn->lastInsertId();\n $conn = null;\n }", "public function newQuestion(){\r\n if (isset($_POST[\"submit\"])) {\r\n \r\n $question = new Question($_POST);\r\n// print_r($question);\r\n QuestionModel::insertQuestion($question);\r\n \r\n header(\"location:admin.php?adminManager=question&action=list\");\r\n }\r\n else\r\n {\r\n $results= array();\r\n $data = QuestionGroupModel::getAll();\r\n $results['groups'] = $data[\"results\"];\r\n $results['nbGroup'] = $data[\"totalRows\"];\r\n //print_r($results['groups']);\r\n require APPLICATION_PATH.'/views/admin/NewQuestion.php';\r\n }\r\n }" ]
[ "0.6853203", "0.66508025", "0.65695494", "0.65653014", "0.6555077", "0.6521493", "0.6453722", "0.6260243", "0.623684", "0.62330854", "0.6158062", "0.61567146", "0.61453396", "0.6131857", "0.6125641", "0.6097686", "0.60928607", "0.60870814", "0.60648334", "0.6063096", "0.604977", "0.60359466", "0.6024516", "0.60231066", "0.6010579", "0.6010579", "0.6000652", "0.5991951", "0.5987589", "0.59867954", "0.5975788", "0.595696", "0.59481066", "0.59388924", "0.59387684", "0.59179574", "0.5917376", "0.59155893", "0.5905852", "0.5883622", "0.5877398", "0.5863589", "0.58604795", "0.585334", "0.5841295", "0.5829408", "0.58112466", "0.58101016", "0.5808732", "0.5805211", "0.5804652", "0.5800355", "0.57883346", "0.57838446", "0.57623696", "0.576219", "0.5752997", "0.5743344", "0.57311624", "0.5724604", "0.5717192", "0.5711523", "0.5711523", "0.5704751", "0.57039195", "0.5702572", "0.56909597", "0.56899166", "0.5688617", "0.56850207", "0.5677561", "0.56761706", "0.567436", "0.5668532", "0.5668347", "0.56679523", "0.56640553", "0.56636345", "0.56540734", "0.5648559", "0.56463265", "0.56463265", "0.5645076", "0.5641588", "0.56384355", "0.56354254", "0.5629884", "0.56255007", "0.5622424", "0.5604809", "0.56044394", "0.56012154", "0.5584085", "0.5577719", "0.5563932", "0.55629975", "0.55580974", "0.5555213", "0.5555166", "0.55531263" ]
0.7311974
0
radio, checkbox, etc. added in v4 Constructor for Question class.
function __construct($id,$question,$description,$number,$inputtype) {#constructor sets stage by adding data to an instance of the object $this->QuestionID = (int)$id; $this->Text = $question; $this->Description = $description; $this->Number = (int)$number; # number of current question in sequence - added in v2 $this->InputType = $inputtype; #added v4 }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function __construct() {\n\t\tparent::__construct();\n\n\t\t$this->category = _x( 'Multi Fields', 'xprofile field type category', 'buddypress' );\n\t\t$this->name = _x( 'Radio Buttons', 'xprofile field type', 'buddypress' );\n\n\t\t$this->supports_options = true;\n\n\t\t$this->set_format( '/^.+$/', 'replace' );\n\t\tdo_action( 'bp_xprofile_field_type_radiobutton', $this );\n\t}", "private function question()\n\t{\n\t\t$this->qns['questionnaire']['questionnairecategories_id'] = $this->allinputs['questioncat'];\n\t\t$this->qns['questionnaire']['questionnairesubcategories_id'] = $this->allinputs['questionsubcat'];\n\t\t$this->qns['questionnaire']['label'] = $this->allinputs['question_label'];\n\n\n\t\t$this->qns['questionnaire']['question'] = $this->allinputs['question'];\n\t\t$this->qns['questionnaire']['has_sub_question'] = $this->allinputs['subquestion'];\n\n\t\tif( $this->qns['questionnaire']['has_sub_question'] == 0 )\n\t\t{\n\t\t\t$this->qns['answers']['answer_type'] = $this->allinputs['optiontype'];\n\t\t}\n\n\t\t$this->qns['questionnaire']['active'] = 1;\n\n\t\tif( $this->qns['questionnaire']['has_sub_question'] == 0 ){\n\t\t\t//This code must be skipped if sub_question is 1\n\t\t\t$optionCounter = 0;\n\t\t\tforeach ($this->allinputs as $key => $value) {\n\n\t\t\t\tif( str_is('option_*', $key) ){\n\t\t\t\t\t$optionCounter++;\n\t\t\t\t\t$this->qns['answers'][$optionCounter] = ( $this->qns['answers']['answer_type'] == 'opentext' ) ? 'Offered answer text' : $value;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public function __construct(Question $question)\n {\n $this->question = $question;\n }", "public function __construct(array $attributes){\n parent::__construct($attributes);\n $this->type = 'radio';\n }", "public function __construct($questions)\n\t{\n\t\t$this->questions = $questions;\n\t\tparent::__construct();\n\t}", "public function testCreateSurveyQuestionChoice0()\n {\n }", "public function testCreateSurveyQuestionChoice0()\n {\n }", "public function __construct($questions,$answers)\r\n\t{\r\n\t\t$this->questions = $questions;\r\n\t\t$this->answers = $answers;\r\n\t\tparent::__construct();\r\n\t}", "protected static function radio()\n {\n }", "public function __construct($name = null)\n {\n parent::__construct('survey');\n\n $this->add([\n 'name' => 'idsurvey',\n 'type' => 'hidden',\n ]);\n\n $this->add([\n 'name' => 'iduser',\n 'type' => 'hidden',\n ]);\n\n $this->add([\n 'name' => 'idquestion',\n 'type' => 'hidden',\n ]);\n\n $this->add([\n 'name' => 'idanswer',\n 'type' => 'hidden',\n ]);\n\n $this->add([\n 'name' => 'title',\n 'type' => 'text',\n 'options' => [\n 'label' => 'Title',\n ],\n ]);\n\n $this->add([\n 'name' => 'description',\n 'type' => 'text',\n 'options' => [\n 'label' => 'Description',\n ],\n ]);\n $this->add([\n 'name' => 'status',\n 'type' => 'hidden',\n ]);\n\n $this->add([\n 'name' => 'date',\n 'type' => 'hidden'\n ]);\n\n $this->add([\n 'name' => 'submit',\n 'type' => 'submit',\n 'attributes' => [\n 'value' => 'Go',\n 'id' => 'submitbutton',\n ],\n ]);\n\n $this->add([\n 'name' => 'submitq',\n 'type' => 'submit',\n 'attributes' => [\n 'value' => 'Go',\n 'id' => 'submitbutton',\n ],\n ]);\n\n $this->add([\n 'name' => 'submita',\n 'type' => 'submit',\n 'attributes' => [\n 'value' => 'Go',\n 'id' => 'submitbutton',\n ],\n ]);\n\n\n $this->add([\n 'name' => 'submitc',\n 'type' => 'submit',\n 'attributes' => [\n 'value' => 'Go',\n 'id' => 'submitbutton',\n ],\n ]);\n\n $this->add([\n 'name' => 'submituq', //update question\n 'type' => 'submit',\n 'attributes' => [\n 'value' => 'Go',\n 'id' => 'submitbutton',\n ],\n ]);\n\n $this->add([\n 'name' => 'submitua',\n 'type' => 'submit',\n 'attributes' => [\n 'value' => 'Go',\n 'id' => 'submitbutton',\n ],\n ]);\n $this->add([\n 'name' => 'text',\n 'type' => 'text',\n 'options' => [\n 'label' => 'Question',\n ],\n ]);\n\n $this->add([\n 'name' => 'type',\n 'type' => 'text',\n 'options' => [\n 'label' => 'Type',\n 'value_options' => array(\n '0' => 'Open',\n '1' => 'Multiple choice',\n '2' => 'Single Choice',\n ),\n ],\n ]);\n\n $this->add([\n 'name' => 'texta',\n 'type' => 'text',\n 'options' => [\n 'label' => 'Answer',\n ],\n ]);\n }", "public function __construct() {\n parent::__construct();\n //setting attribute types.\n settype($this->id, \"integer\");\n settype($this->name, \"string\");\n settype($this->question_type_id, \"integer\");\n }", "private function createInput($question)\n\t{\n\t\tswitch($question->InputType)\n\t\t{\n\t\t\tcase \"radio\":\n\t\t\tcase \"checkbox\":\n\t\t\t\tprint \"<b>\" . $question->Number . \") \";\n\t\t\t\tprint $question->Text . \"</b> \";\n\t\t\t\tprint '<em>(' . $question->Description . ')</em><br />';\n\t\t\t\tforeach($question->aAnswer as $answer)\n\t\t\t\t{//print data for each\n\t\t\t\t\tprint '<input type=\"' . $question->InputType . '\" name=\"q_' . $question->QuestionID . '[]\" value=\"' . $answer->AnswerID . '\" > ';\n\t\t\t\t\tprint $answer->Text . \" \";\n\t\t\t\t\tif($answer->Description != \"\")\n\t\t\t\t\t{//only print description if not empty\n\t\t\t\t\t\tprint \"<em>(\" . $answer->Description . \")</em>\";\n\t\t\t\t\t}\n\t\t\t\t\tprint '<br />';\t\n\t\t\t\t}\n\t\t\t\tbreak;\t\n\t\t\n\t\t\tcase \"select\":\n\t\t\t\tprint \"<b>\" . $question->Number . \") \";\n\t\t\t\tprint $question->Text . \"</b> \";\n\t\t\t\tprint '<em>(' . $question->Description . ')</em><br />';\n\t\t\t\tprint '<select name=\"q_' . $question->QuestionID . '\">';\n\t\t\t\tforeach($question->aAnswer as $answer)\n\t\t\t\t{//print data for each\n\t\t\t\t\tprint '<option value=\"' . $answer->AnswerID . '\" >' . $answer->Text;\n\t\t\t\t\tif($answer->Description != \"\")\n\t\t\t\t\t{//only print description if not empty\n\t\t\t\t\t\tprint \" <em>(\" . $answer->Description . \")</em>\";\n\t\t\t\t\t}\n\t\t\t\t\tprint '</option>';\t\n\t\t\t\t}\n\t\t\t\tprint '</select><br />';\n\t\t\t\tbreak;\n\t\t}\t\t\t\t\n\t}", "function acf_radio_input($attrs = array())\n{\n}", "public function testCreateSurveyQuestion0()\n {\n }", "public function testCreateSurveyQuestion0()\n {\n }", "public function setQuestion($q)\n {\n $this->question = $q;\n return $this;\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 __construct(\n\t\t$title = \"\",\n\t\t$comment = \"\",\n\t\t$author = \"\",\n\t\t$owner = -1,\n\t\t$question = \"\"\n\t)\n\t{\n\t\tparent::__construct($title, $comment, $author, $owner, $question);\n\t\t$this->answers = array();\n\t\t$this->correctanswers = 0;\n\t}", "function acf_get_radio_input($attrs = array())\n{\n}", "function ExtendedText_Question( $id ) {\n\t\t\n\t\tparent::Question( $id );\n\t}", "function __construct($type = 'en') {\n\t\tif (Captcha::is_answered()) {\n\t\t\t$this->question = $_REQUEST['captcha_question'];\n\t\t\t$this->answer = $_REQUEST['captcha_answer'];\n\t\t} else {\n\t\t\t$this->make_question($type);\n\t\t\t$this->answer = '';\n\t\t\tforeach ($this->answers as $a) {\n\t\t\t\t$this->answer .= Captcha::sign($a) . ',';\n\t\t\t}\n\t\t}\n\t}", "abstract protected function create(string $name, string $description, array $variants): Question;", "public function setQuestion(Question $question)\n\t{\n\t\tif (!$question)\n\t\t{\n\t\t\tthrow new \\LogicException(\"Question cannot be empty!\");\n\t\t}\n\t\tif ($question instanceof TextQuestionImpl)\n\t\t{\n\t\t\t$this->question = $question;\n\t\t\t$question->addAnswer($this);\n\t\t}\n\t\telse throw new IncompatibleClassException();\n\t\t\n\t\treturn $this;\n\t}", "public function createComponentQuestionForm() {\n $form = new Form;\n\n $form->addHidden('test_id');\n $form->addHidden('id');\n $form->addTextArea('text', 'Text')->setRequired();\n $form->addSubmit('submit');\n $form->setDefaults($this->questions->getById($this->questionId));\n $form->onSuccess[] = $this->questionFormSucceeded;\n\n return $form;\n }", "function question()\r\n {\r\n return $this->Question;\r\n }", "protected function form()\n {\n $option = QuestionType::getSelect();\n\n return Form::make(new Question(), function (Form $form) use ($option) {\n\n// $form->confirm('您确定要提交表单吗?');\n $form->display('id');\n $form->select('type')\n ->when([2, 3], function ($form) {\n $form->textarea('extra', '文章')->rows(4);\n })\n ->options($option)->default(1);\n\n $form->embedsTable('questions', '有关题目', function (NestedForm $form) {\n $form->text('question', '题干');\n $form->embedsTable('answers', '有关答案', function ($form) {\n $form->text('answer', '答案');\n $form->switch('is_correct', '正确答案');\n });\n });\n//\n// $form->number('sort', $form->getElementId())->default(50);\n// $form->switch('status')->default(1);\n//\n $form->display('created_at');\n $form->display('updated_at');\n });\n }", "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}", "public function __construct() {\n\t\tparent::__construct();\n\n\t\t$this->category = _x( 'Multi Fields', 'xprofile field type category', 'buddypress' );\n\t\t$this->name = _x( 'Checkboxes', 'xprofile field type', 'buddypress' );\n\n\t\t$this->supports_multiple_defaults = true;\n\t\t$this->accepts_null_value = true;\n\t\t$this->supports_options = true;\n\n\t\t$this->set_format( '/^.+$/', 'replace' );\n\t\tdo_action( 'bp_xprofile_field_type_checkbox', $this );\n\t}", "function readquestion($lines) {\n \t// converts it into a question object suitable for processing and insertion.\n\n $question = $this->defaultquestion();\n $comment = NULL;\n \n // define replaced by simple assignment, stop redefine notices\n $gift_answerweight_regex = \"^%\\-*([0-9]{1,2})\\.?([0-9]*)%\"; \n\n // REMOVED COMMENTED LINES and IMPLODE\n foreach ($lines as $key => $line) {\n $line = trim($line);\n if (substr($line, 0, 2) == \"//\") {\n $lines[$key] = \" \";\n }\n }\n\n $text = trim(implode(\" \", $lines));\n\n if ($text == \"\") {\n return false;\n }\n\n // Substitute escaped control characters with placeholders\n $text = $this->escapedchar_pre($text);\n\n // Look for category modifier ---------------------------------------------------------\n if (ereg( '^\\$CATEGORY:', $text)) {\n // $newcategory = $matches[1];\n $newcategory = trim(substr( $text, 10 ));\n $newcategory = trim(substr( $newcategory, 0, strpos($newcategory, \"::\")));\n\t\t\t\n $question->setCategoryFromName($newcategory);\n $text = trim(substr($text, 10+strlen($newcategory)));\n \n // build fake question to contain category\n \n \t// XXX: create a category !\n //return true;\n }\n \n // QUESTION NAME parser --------------------------------------------------------------\n if (substr($text, 0, 2) == \"::\") {\n $text = substr($text, 2);\n\n $namefinish = strpos($text, \"::\");\n if ($namefinish === false) {\n $question->prompt = false;\n // name will be assigned after processing question text below\n } else {\n $questionname = substr($text, 0, $namefinish);\n $question->prompt = addslashes(trim($this->escapedchar_post($questionname)));\n $text = trim(substr($text, $namefinish+2)); // Remove name from text\n }\n } else {\n $question->prompt = false;\n }\n\n\n // FIND ANSWER section -----------------------------------------------------------------\n // no answer means its a description\n $answerstart = strpos($text, \"{\");\n $answerfinish = strpos($text, \"}\");\n\n $description = false;\n if (($answerstart === false) and ($answerfinish === false)) {\n $description = true;\n $answertext = '';\n $answerlength = 0;\n }\n elseif (!(($answerstart !== false) and ($answerfinish !== false))) {\n //$this->error( get_string( 'braceerror', 'quiz' ), $text );\n return false;\n }\n else {\n $answerlength = $answerfinish - $answerstart;\n $answertext = trim(substr($text, $answerstart + 1, $answerlength - 1));\n }\n\n \n\t\t// Format QUESTION TEXT without answer, inserting \"_____\" as necessary\n if ($description) {\n $text = $text;\n }\n elseif (substr($text, -1) == \"}\") {\n // no blank line if answers follow question, outside of closing punctuation\n $text = substr_replace($text, \"\", $answerstart, $answerlength+1);\n } else {\n // inserts blank line for missing word format\n $text = substr_replace($text, \"_____\", $answerstart, $answerlength+1);\n }\n\n // get text format from text\n $oldtext = $text;\n $textformat = 0;\n if (substr($text,0,1)=='[') {\n $text = substr( $text,1 );\n $rh_brace = strpos( $text, ']' );\n $qtformat= substr( $text, 0, $rh_brace );\n $text = substr( $text, $rh_brace+1 );\n \n }\n // i must find out for what this param is used\n $question->textformat = $textformat;\n \t\t\n \t\t// question text \n $question->quest_text = addslashes(trim($this->escapedchar_post($text)));\n\n // set question name if not already set\n\t\tif ($question->prompt === false) {\n\t\t\t$question->prompt = $question->quest_text;\n\t\t}\n\n // ensure name is not longer than 250 characters\n $question->prompt = $question->prompt ;\n $question->prompt = strip_tags(substr( $question->prompt, 0, 250 ));\n\n // determine QUESTION TYPE -------------------------------------------------------------\n $question->qtype = NULL;\n\n // give plugins first try\n // plugins must promise not to intercept standard qtypes\n // MDL-12346, this could be called from lesson mod which has its own base class =(\n /*\n if (method_exists($this, 'try_importing_using_qtypes') && ($try_question = $this->try_importing_using_qtypes( $lines, $question, $answertext ))) {\n return $try_question;\n }\n\t\t*/\n if ($description) {\n $question->qtype = 'title';\n }\n elseif ($answertext == '') {\n $question->qtype = 'extended_text';\n }\n elseif ($answertext{0} == \"#\"){\n $question->qtype = 'numerical';\n\n\t\t} elseif (strpos($answertext, \"~\") !== false) {\n\t\t\t\n\t\t\t// only Multiplechoice questions contain tilde ~\n\t\t\tif (strpos($answertext,\"=\") === false) {\n\t\t\t\t\n\t\t\t\t// multiple answers are enabled if no single answer is 100% correct\n\t\t\t\t$question->qtype = 'choice_multiple'; \n\t\t\t} else {\n\t\t\t\t\n\t\t\t\t// only one answer allowed (the default)\n\t\t\t\t$question->qtype = 'choice';\n\t\t\t}\n }", "protected function form()\n {\n return Form::make(new EmsQuestion(), function (Form $form) {\n $user = Admin::user();\n $info = '<i class=\"fa fa-exclamation-circle\"></i>题冒题建议手动输入,一般题则可导入,题目导入后,需要对新导入的题目进行格式的调整。';\n $form->html(Alert::make($info)->info());\n $form->display('id');\n $form->radio('que_head_satuts')->when(1, function (Form $form) {\n if ($form->isCreating() || $form->isEditing()) {\n $form->selectTable('que_head_id', '题冒题目')\n ->title('弹窗标题')\n ->dialogWidth('50%') // 弹窗宽度,默认 800px\n ->from(TikuTable::make()) // 设置渲染类实例,并传递自定义参数\n ->model(EmsQuestions::class, 'id', 'que_index'); // 设置编辑数据显示\n $form->number('que_son_num');\n }\n })->when(0, function (Form $form) {\n\n })->options([1 => '是', 0 => '否'])->default(0);\n\n $form->select('questype_id', '题型')->options(function () {\n $categoryModel = EmsQuestype::class;\n return $categoryModel::all()->pluck('type_name', 'id');\n })->required();\n $form->editor('que_index');\n $form->text('que_create_byid')->default($user->id)->display(false);\n $form->text('que_create_byname')->default($user->name)->disable();\n $form->text('que_last_byid')->display(false);\n $form->text('que_last_byname')->display(false);\n $form->editor('que_select');\n $form->number('que_selectnum');\n $form->text('que_answer');\n $form->editor('que_describe');\n $form->switch('que_status')->default(1);\n// $form->select('que_level')->options([1 => '易', 2 => '中', 3 => '难']);\n// $form->number('que_sequence');\n $form->multipleSelect('declaration_id', '申报种类')->options(function () {\n $categoryModel = EmsDeclaration::class;\n return $categoryModel::all()->pluck('decl_name', 'id');\n })->required()->saving(function ($value) {\n // 转化成json字符串保存到数据库\n return json_encode($value);\n });\n $form->multipleSelect('major_id', '申报专业')->options(function () {\n $categoryModel = EmsMajor::class;\n return $categoryModel::all()->pluck('major_name', 'id');\n })->required()->saving(function ($value) {\n // 转化成json字符串保存到数据库\n return json_encode($value);\n });\n $form->display('created_at');\n $form->display('updated_at');\n\n $form->confirm('您确定要提交表单吗?', '');\n });\n }", "public function set_question(array $question)\n\t{\n\t\t$this->question = $question;\n\t\treturn $this;\n\t}", "public function question()\n {\n return $this->belongsToMany('App\\Form_question', 'rules');\n }", "function getQuestions()\n\t{\n\t\treturn $this->aQuestion;\n\t}", "function __construct( $data = array() )\r\n\t{\r\n\t\tif (isset($data['orderno'])) $this->orderno = $data['orderno'];\r\n\t\tif (isset($data['question'])) $this->question = $data['question'];\r\n\t\tif (isset($data['type'])) $this->type = $data['type'];\r\n\t\tif (isset($data['maxscore'])) $this->maxscore = $data['maxscore'];\r\n\t\tif (isset($data['answers'])) \r\n\t\t{\r\n\t\t\tforeach ($data['answers'] as $key => $answer)\r\n\t\t\t{\r\n\t\t\t\t$this->answers[$key]->answer = $answer;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (isset($data['scorepercentages'])) \r\n\t\t{\r\n\t\t\tforeach ($data['scorepercentages'] as $key => $scorepercentage)\r\n\t\t\t{\r\n\t\t\t\t$this->answers[$key]->scorepercentage = $scorepercentage;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif ($this->type == \"shortanswer\")\r\n\t\t{\r\n\t\t\t$this->typeshort = \"SA\";\r\n\t\t}\r\n\t\tif ($this->type == \"multichoice\")\r\n\t\t{\r\n\t\t\t$this->typeshort = \"MC\";\r\n\t\t}\r\n\t\t\r\n\t}", "public function __construct($name = null, $value = null, $checked = false, $screenReaderLabel = \"\") {\n parent::__construct(new Checkbox($name, $value, $checked), $screenReaderLabel);\n }", "public function setQuestion($question = '')\n {\n $this->question = $question;\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}", "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 __construct($id)\n\t{#constructor sets stage by adding data to an instance of the object\n\t\t$this->SurveyID = (int)$id;\n\t\tif($this->SurveyID == 0){return FALSE;}\n\t\t$iConn = IDB::conn(); #uses a singleton DB class to create a mysqli improved connection \n\t\t\n\t\t#get Survey data from DB - v5 adds TotalResponses\n\t\t$sql = sprintf(\"select Title, Description, TotalResponses from \" . PREFIX . \"surveys Where SurveyID =%d\",$this->SurveyID);\n\t\t\n\t\t#in mysqli, connection and query are reversed! connection comes first\n\t\t$result = mysqli_query($iConn,$sql) or die(trigger_error(mysqli_error($iConn), E_USER_ERROR));\n\t\tif (mysqli_num_rows($result) > 0)\n\t\t{#Must be a valid survey!\n\t\t\t$this->isValid = TRUE;\n\t\t\twhile ($row = mysqli_fetch_assoc($result))\n\t\t\t{#dbOut() function is a 'wrapper' designed to strip slashes, etc. of data leaving db\n\t\t\t $this->Title = dbOut($row['Title']);\n\t\t\t $this->Description = dbOut($row['Description']);\n\t\t $this->TotalResponses = (int)$row['TotalResponses']; # v5: stores number of responses\t\t\t \n\t\t\t}\n\t\t}\n\t\t@mysqli_free_result($result); #free resources\n\t\tif(!$this->isValid){return;} #exit, as Survey is not valid\n\t\t\n\t\t#attempt to create question objects - InputType field is v4\n\t\t$sql = sprintf(\"select QuestionID, Question, Description, InputType from \" . PREFIX . \"questions where SurveyID =%d\",$this->SurveyID);\n\t\t$result = mysqli_query($iConn,$sql) or die(trigger_error(mysqli_error($iConn), E_USER_ERROR));\n\t\tif (mysqli_num_rows($result) > 0)\n\t\t{#show results\n\t\t while ($row = mysqli_fetch_assoc($result))\n\t\t {\n\t\t\t\t$this->TotalQuestions += 1; #increment total number of questions\n\t\t\t\t#Current TotalQuestions added to Question object as Number property - added in v2 - InputType v4\n\t\t\t\t$this->aQuestion[] = new Question(dbOut($row['QuestionID']),dbOut($row['Question']),dbOut($row['Description']),$this->TotalQuestions,dbOut($row['InputType']));\n\t\t }\n\t\t}\n\t\t$this->TotalQuestions = count($this->aQuestion); #TotalQuestions derived above - consider deleting this line! v2 \n\t\t@mysqli_free_result($result); #free resources\n\t\t\n\t\t#attempt to load all Answer objects into cooresponding Question objects \n\t $sql = \"select a.AnswerID, a.Answer, a.Description, a.QuestionID from \n\t\t\" . PREFIX . \"surveys s inner join \" . PREFIX . \"questions q on q.SurveyID=s.SurveyID \n\t\tinner join \" . PREFIX . \"answers a on a.QuestionID=q.QuestionID \n\t\twhere s.SurveyID = %d \n\t\torder by a.AnswerID asc\";\n\t\t$sql = sprintf($sql,$this->SurveyID); #process SQL\n\t\t$result = mysqli_query($iConn,$sql) or die(trigger_error(mysqli_error($iConn), E_USER_ERROR));\n\t\tif (mysqli_num_rows($result) > 0)\n\t\t{#at least one answer!\n\t\t while ($row = mysqli_fetch_assoc($result))\n\t\t {#match answers to questions\n\t\t\t $QuestionID = (int)$row['QuestionID']; #process db var\n\t\t\t\tforeach($this->aQuestion as $question)\n\t\t\t\t{#Check db questionID against Question Object ID\n\t\t\t\t\tif($question->QuestionID == $QuestionID)\n\t\t\t\t\t{\n\t\t\t\t\t\t$question->TotalAnswers += 1; #increment total number of answers\n\t\t\t\t\t\t#create answer, and push onto stack!\n\t\t\t\t\t\t$question->aAnswer[] = new Answer((int)$row['AnswerID'],dbOut($row['Answer']),dbOut($row['Description']));\n\t\t\t\t\t\tbreak; \n\t\t\t\t\t}\n\t\t\t\t}\t\n\t\t }\n\t\t}\n\t}", "function setQuestion( &$question )\r\n {\r\n if ( is_a( $question, \"eZQuizQuestion\" ) )\r\n $this->Question = $question;\r\n }", "public function rules()\n {\n return [\n 'title' => 'required',\n 'type' => 'required',\n 'answers' => 'required_if:type,' . Question::TYPE_SELECT,\n 'text_answer' => 'required_if:type,' . Question::TYPE_TEXT,\n ];\n }", "public function __construct($studentcounter,$questions)\n {\n parent::__construct('Marks');\n\t\n $this->setAttribute('method', 'post')\n ->setHydrator(new ClassMethodsHydrator(false))\n ->setInputFilter(new InputFilter());\n foreach($questions as $question){\n $this->add(array(\n 'type' => 'Zend\\Form\\Element\\Collection',\n 'name' => $question->getPkQid(),\n 'options' => array(\n 'count' => $studentcounter,\n 'should_create_template' => true,\n 'template_placeholder' => '__mark__',\n 'target_element' => new \\Application\\Form\\Fieldset\\FsAssessmentmark()\n )\n ));\n }\n \n }", "public function __construct() {\r\n $this->answers = new ArrayCollection();\r\n }", "protected function _construct()\n {\n $this->_init('Survey\\SurveyPage\\Model\\Answer', 'Survey\\SurveyPage\\Model\\ResourceModel\\Answer');\n }", "public function set_data($question) {\n /* accessing the form in this way is probably not correct style */\n $wronganswers = $this->get_wrong_answers($question);\n /* this gets manipulated by javascript */\n $settingsdata = $this->get_itemsettings($question);\n $this->_form->getElement('itemsettings')->setValue($settingsdata);\n $this->_form->getElement('wronganswers')->setValue(array('text' => $wronganswers));\n parent::set_data($question);\n }", "public function getQuestion()\n {\n // TODO: Implement getQuestion() method.\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 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 }", "public function setUp()\n {\n $this->answers = self::answersFromArray([\n ['my first answer', true],\n ['my second answer', true],\n ['my third answer', false],\n ['my fourth answer', false],\n ]);\n\n $this->question = new Question('my question', 'my category', $this->answers);\n }", "public static function convert_radio_field() {\n\n\t\t// Create a new Radio field.\n\t\tself::$field = new GF_Field_Radio();\n\n\t\t// Add standard properties.\n\t\tself::add_standard_properties();\n\n\t\t// Add choices property.\n\t\tself::$field->choices = array();\n\n\t\t// Loop through field options.\n\t\tforeach ( self::$nf_field['list']['options'] as $option ) {\n\n\t\t\t// Add option choice.\n\t\t\tself::$field->choices[] = array(\n\t\t\t\t'text' => $option['label'],\n\t\t\t\t'value' => $option['value'],\n\t\t\t);\n\n\t\t\t// If option is selected, set as default value.\n\t\t\tif ( '1' === $option['selected'] ) {\n\t\t\t\tself::$field->defaultValue = ! empty( $option['value'] ) ? $option['value'] : $option['text'];\n\t\t\t}\n\n\t\t}\n\n\t}", "public function create($question, $type = ObjectFactory::TEXT_QUESTION) {\n $questionObj = $this->objectFactory->createQuestion($type);\n $questionObj->setQuestion($question);\n $this->poll->addItem($questionObj);\n return $questionObj;\n\t}", "public function __construct($answers)\n {\n $this->answers = $answers;\n }", "public function addQuestionAndAnswers () {\n global $tpl, $ilTabs;\n $ilTabs->activateTab(\"editQuiz\");\n $this->initAddQuestionAndAnswersForm();\n }", "public function __construct($name, array $values, $checked = null, $indent = null)\n {\n parent::__construct('fieldset');\n\n $this->setName($name);\n $this->setAttribute('class', 'radio-fieldset');\n\n if (null !== $checked) {\n $this->setValue($checked);\n }\n\n if (null !== $indent) {\n $this->setIndent($indent);\n }\n\n // Create the radio elements and related span elements.\n $i = null;\n foreach ($values as $k => $v) {\n $radio = new Input\\Radio($name, null, $indent);\n $radio->setAttributes([\n 'class' => 'radio',\n 'id' => ($name . $i),\n 'value' => $k\n ]);\n\n if (is_array($v) && isset($v['value']) && isset($v['attributes'])) {\n $nodeValue = $v['value'];\n $radio->setAttributes($v['attributes']);\n } else {\n $nodeValue = $v;\n }\n\n // Determine if the current radio element is checked.\n if ((null !== $this->checked) && ($k == $this->checked)) {\n $radio->check();\n }\n\n $span = new Child('span');\n if (null !== $indent) {\n $span->setIndent($indent);\n }\n $span->setAttribute('class', 'radio-span');\n $span->setNodeValue($nodeValue);\n $this->addChildren([$radio, $span]);\n $this->radios[] = $radio;\n $i++;\n }\n }", "function form_init_elements()\r\n {\r\n // Swimmer handling\r\n $swimmer = new FERadioGroup(\"Swimmers\",\r\n array(\r\n ucfirst(FT_CREATE) => FT_CREATE\r\n ,ucfirst(FT_IGNORE) => FT_IGNORE)) ;\r\n $swimmer->set_br_flag(false) ;\r\n $this->add_element($swimmer) ;\r\n\r\n // Swim Meets handling\r\n $swimmeets = new FERadioGroup(\"Swim Meets\",\r\n array(\r\n ucfirst(FT_CREATE) => FT_CREATE\r\n ,ucfirst(FT_IGNORE) => FT_IGNORE)) ;\r\n $swimmeets->set_br_flag(false) ;\r\n $this->add_element($swimmeets) ;\r\n\r\n // Swim Teams handling\r\n $swimteams = new FERadioGroup(\"Swim Teams\",\r\n array(\r\n ucfirst(FT_CREATE) => FT_CREATE\r\n ,ucfirst(FT_IGNORE) => FT_IGNORE)) ;\r\n $swimteams->set_br_flag(false) ;\r\n $this->add_element($swimteams) ;\r\n }", "public function __construct(\n ?string $id = null,\n string $name = null,\n ?bool $disabled = null,\n ?bool $required = null,\n ?string $form = null,\n ?bool $autofocus = null,\n ?bool $validated = null,\n ?string $ariaInvalid = null,\n ?bool $stacked = null,\n ?bool $plain = null,\n ?bool $buttons = null,\n ?bool $switch = null,\n ?string $buttonVariant = null,\n array $options = [],\n ?string $valueField = null,\n ?string $textField = null,\n ?string $htmlField = null,\n ?string $disabledField = null,\n ?string $size = null,\n ?bool $state = null,\n $checked = null\n )\n {\n $this->id = $id ?? uniqid();\n $this->name = $name ?? uniqid();\n $this->disabled = !!$disabled;\n $this->required = !!$required;\n $this->form = $form;\n $this->autofocus = !!$autofocus;\n $this->validated = !!$validated;\n $this->ariaInvalid = $ariaInvalid;\n $this->stacked = !!$stacked;\n $this->plain = !!$plain;\n $this->buttons = !!$buttons;\n $this->switch = !!$switch;\n $this->buttonVariant = $buttonVariant ?? \"secondary\";\n $this->options = $options;\n $this->valueField = $valueField ?? \"value\";\n $this->textField = $textField ?? \"text\";\n $this->htmlField = $htmlField ?? \"html\";\n $this->disabledField = $disabledField ?? \"disabled\";\n $this->size = $size;\n $this->state = $state; //it can be null,false, true, so don't pass it through bang bang\n $this->checked = $checked; //value for the group.\n if ($this->id) {\n $this->attrs[\"id\"] = $id;\n }\n $this->attrs[\"class\"] = join(\" \", $this->attrs[\"class\"]);\n }", "function kilman_prep_for_questionform($kilman, $qid, $qtype) {\n $context = context_module::instance($kilman->cm->id);\n if ($qid != 0) {\n $question = clone($kilman->questions[$qid]);\n $question->qid = $question->id;\n $question->sid = $kilman->survey->id;\n $question->id = $kilman->cm->id;\n $draftideditor = file_get_submitted_draft_itemid('question');\n $content = file_prepare_draft_area($draftideditor, $context->id, 'mod_kilman', 'question',\n $qid, array('subdirs' => true), $question->content);\n $question->content = array('text' => $content, 'format' => FORMAT_HTML, 'itemid' => $draftideditor);\n\n if (isset($question->dependencies)) {\n foreach ($question->dependencies as $dependencies) {\n if ($dependencies->dependandor === \"and\") {\n $question->dependquestions_and[] = $dependencies->dependquestionid.','.$dependencies->dependchoiceid;\n $question->dependlogic_and[] = $dependencies->dependlogic;\n } else if ($dependencies->dependandor === \"or\") {\n $question->dependquestions_or[] = $dependencies->dependquestionid.','.$dependencies->dependchoiceid;\n $question->dependlogic_or[] = $dependencies->dependlogic;\n }\n }\n }\n } else {\n $question = \\mod_kilman\\question\\base::question_builder($qtype);\n $question->sid = $kilman->survey->id;\n $question->id = $kilman->cm->id;\n $question->type_id = $qtype;\n $question->type = '';\n $draftideditor = file_get_submitted_draft_itemid('question');\n $content = file_prepare_draft_area($draftideditor, $context->id, 'mod_kilman', 'question',\n null, array('subdirs' => true), '');\n $question->content = array('text' => $content, 'format' => FORMAT_HTML, 'itemid' => $draftideditor);\n }\n return $question;\n}", "public function getQuestionFromInput() {\n return parent::getQuestionFromInput();\n }", "public function validate_instantiation($form, &$validanswers) {\n\n $errors = array();\n\n // Create a formulas question so we can use its methods for validation.\n $qo = new qtype_formulas_question;\n foreach ($form as $key => $value) {\n $qo->$key = $value;\n }\n $tags = $this->part_tags();\n\n $qo->options = new stdClass();\n $extraquestionfields = $this->extra_question_fields();\n array_shift($extraquestionfields);\n foreach ($extraquestionfields as $field) {\n if (isset($form->{$field})) {\n $qo->{$field} = $form->{$field};\n $qo->options->{$field} = $form->{$field};\n }\n }\n\n if (count($form->answer)) {\n foreach ($form->answer as $key => $answer) {\n $ans = new stdClass();\n foreach ($tags as $tag) {\n $ans->{$tag} = $form->{$tag}[$key];\n }\n $ans->subqtext = $form->subqtext[$key];\n $ans->feedback = $form->feedback[$key];\n $ans->partcorrectfb = $form->partcorrectfb[$key];\n $ans->partpartiallycorrectfb = $form->partpartiallycorrectfb[$key];\n $ans->partincorrectfb = $form->partincorrectfb[$key];\n $qo->options->answers[] = $ans;\n }\n }\n $qo->parts = array();\n if (!empty($qo->options->answers)) {\n foreach ($qo->options->answers as $i => $ans) {\n $ans->partindex = $i;\n $ans->subqtextformat = $ans->subqtext['format'];\n $ans->subqtext = $ans->subqtext['text'];\n $ans->feedbackformat = $ans->feedback['format'];\n $ans->feedback = $ans->feedback['text'];\n $ans->partcorrectfbformat = $ans->partcorrectfb['format'];\n $ans->partcorrectfb = $ans->partcorrectfb['text'];\n $ans->partpartiallycorrectfbformat = $ans->partpartiallycorrectfb['format'];\n $ans->partpartiallycorrectfb = $ans->partpartiallycorrectfb['text'];\n $ans->partincorrectfbformat = $ans->partincorrectfb['format'];\n $ans->partincorrectfb = $ans->partincorrectfb['text'];\n\n $qo->parts[$i] = new qtype_formulas_part();\n foreach ($ans as $key => $value) {\n $qo->parts[$i]->$key = $value;\n // TODO verify if part id is set (but do we actually need it here?).\n }\n }\n }\n $qo->qv = new qtype_formulas\\variables();\n $qo->options->numpart = count($qo->options->answers);\n $qo->numpart = $qo->options->numpart;\n $qo->fractions = array_fill(0, $qo->numpart, 0);\n $qo->anscorrs = array_fill(0, $qo->numpart, 0);\n $qo->unitcorrs = array_fill(0, $qo->numpart, 0);\n\n try {\n $vstack = $qo->qv->parse_random_variables($qo->varsrandom);\n $qo->randomsvars = $qo->qv->instantiate_random_variables($vstack); // Instantiate a set of random variables.\n } catch (Exception $e) {\n $errors[\"varsrandom\"] = $e->getMessage();\n return $errors;\n }\n\n try {\n $qo->globalvars = $qo->qv->evaluate_assignments($qo->randomsvars, $qo->varsglobal);\n } catch (Exception $e) {\n $errors[\"varsglobal\"] = get_string('error_validation_eval', 'qtype_formulas') . $e->getMessage();\n return $errors;\n }\n\n // Attempt to compute answers to see if they are wrong or not.\n foreach ($validanswers as $idx => $ans) {\n $ans->partindex = $idx;\n $unitcheck = new answer_unit_conversion;\n\n try {\n $unitcheck->parse_targets($ans->postunit);\n } catch (Exception $e) {\n $errors[\"postunit[$idx]\"] = get_string('error_unit', 'qtype_formulas') . $e->getMessage();\n }\n\n try {\n $unitcheck->assign_additional_rules($ans->otherrule);\n $unitcheck->reparse_all_rules();\n } catch (Exception $e) {\n $errors[\"otherrule[$idx]\"] = get_string('error_rule', 'qtype_formulas') . $e->getMessage();\n }\n\n try {\n $conversionrules = new unit_conversion_rules;\n $entry = $conversionrules->entry($ans->ruleid);\n if ($entry === null || $entry[1] === null) {\n throw new Exception(get_string('error_ruleid', 'qtype_formulas'));\n }\n $unitcheck->assign_default_rules($ans->ruleid, $entry[1]);\n $unitcheck->reparse_all_rules();\n } catch (Exception $e) {\n $errors[\"ruleid[$idx]\"] = $e->getMessage();\n }\n\n try {\n $vars = $qo->qv->evaluate_assignments($qo->globalvars, $ans->vars1);\n } catch (Exception $e) {\n $errors[\"vars1[$idx]\"] = get_string('error_validation_eval', 'qtype_formulas') . $e->getMessage();\n continue;\n }\n\n try {\n $modelanswers = $qo->get_evaluated_answer($ans);\n $cloneanswers = $modelanswers;\n // Set the number of 'coordinates' which is used to display all answer boxes.\n $ans->numbox = count($modelanswers);\n $gradingtype = $ans->answertype;\n } catch (Exception $e) {\n $errors[\"answer[$idx]\"] = $e->getMessage();\n continue;\n }\n\n try {\n $dres = $qo->compute_response_difference($vars, $modelanswers, $cloneanswers, 1, $gradingtype);\n if ($dres === null) {\n throw new Exception();\n }\n } catch (Exception $e) {\n $errors[\"answer[$idx]\"] = get_string('error_validation_eval', 'qtype_formulas') . $e->getMessage();\n continue;\n }\n\n try {\n $qo->add_special_correctness_variables($vars, $modelanswers, $cloneanswers, $dres->diff, $dres->is_number);\n $qo->qv->evaluate_assignments($vars, $ans->vars2);\n } catch (Exception $e) {\n $errors[\"vars2[$idx]\"] = get_string('error_validation_eval', 'qtype_formulas') . $e->getMessage();\n continue;\n }\n\n try {\n $responses = $qo->get_correct_responses_individually($ans);\n $correctness = $qo->grade_responses_individually($ans, $responses, $unitcheck);\n } catch (Exception $e) {\n $errors[\"correctness[$idx]\"] = get_string('error_validation_eval', 'qtype_formulas') . $e->getMessage();\n continue;\n }\n\n }\n return $errors;\n }", "protected function define_question_plugin_structure() {\n\n // Define the virtual plugin element with the condition to fulfill.\n $plugin = $this->get_plugin_element(null, '../../qtype', 'proforma');\n\n // Create one standard named plugin element (the visible container).\n $pluginwrapper = new backup_nested_element($this->get_recommended_name());\n\n // Connect the visible container ASAP.\n $plugin->add_child($pluginwrapper);\n\n // Now create the qtype own structures.\n $dummy = new qtype_proforma();\n\n $extrafields = $dummy->extra_question_fields();\n array_shift($extrafields); // remove first element (= table name)\n\n $extrafields[] = 'comment';\n $extrafields[] = 'commentformat';\n\n $proforma = new backup_nested_element('proforma', array('id'), $extrafields);\n\n // Now the own qtype tree.\n $pluginwrapper->add_child($proforma);\n\n // Set source to populate the data.\n $proforma->set_source_table('qtype_proforma_options',\n array('questionid' => backup::VAR_PARENTID));\n\n // Don't need to annotate ids nor files.\n\n return $plugin;\n }", "public function initQuestions()\n\t{\n\t\t$this->collQuestions = array();\n\t}", "public function extra_question_fields() {\n return array('qtype_formulas_options', 'varsrandom', 'varsglobal', 'answernumbering');\n }", "public function setTypeQuestion($typeQuestion)\n {\n $this->typeQuestion = $typeQuestion;\n\n return $this;\n }", "public function setQuestion(Question $question) {\n $this->question = $question;\n }", "function getQuestionType() {\n\t\treturn 'extended_text';\n\t}", "public function getQuestion()\n {\n return $this->questionModel;\n }", "public function __construct() {\n parent::__construct(new question_first_matching_answer_grading_strategy($this));\n }", "function getQuestionType()\n\t{\n\t\treturn \"assTextSubset\";\n\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 getQuestion() {\n return $this->question;\n }", "public function QuestionnaireForm(){\n\t\t$fields = new FieldList();\n\n\t\t$options = array(\n\t\t\t'Information' => \"I'm trying to find a specific piece of information\",\n\t\t\t'Question' => \"I'm looking for the answer to a particular question\",\n\t\t\t'Topic' => \"I'm researching a particular topic\",\n\t\t\t\"I'm just browsing\"\n\t\t\t);\n\n\t\t$fields->push(new OptionsetField('Purpose', 'What is the purpose of your visit to the IGF website today?', $options));\n\n\t\t// $fields->push()\n\n\t\t$fields->push($field = new TextAreaField('Information', 'What information are you looking for?'));\n\t\t$fields->push($field = new TextAreaField('Question', 'What question are you trying to find an answer to?'));\n\t\t$fields->push($field = new TextAreaField('Topic', 'What topic are you researching?'));\n\t\t$fields->push($field = new TextAreaField('Research', 'What is the purpose of your research?'));\n\t\t\n\n\t\t$actions = new FieldList(new FormAction('submit', 'Next'));\n\n\t\treturn new Form($this, 'QuestionnaireForm', $fields, $actions);\n\t}", "public function getPreDefinedQuestions()\n {\n return [\n \"1\" => \"Select a Security Question\",\n \"2\" => \"What was your childhood nickname?\",\n \"3\" => \"What is the name of your favorite childhood friend?\",\n \"4\" => \"What was the name of your first stuffed animal?\",\n \"5\" => \"Where were you when you had your first kiss?\",\n \"6\" => \"What is the name of the company of your first job?\",\n \"7\" => \"What was your favorite place to visit as a child?\",\n \"8\" => \"What was your dream job as a child?\",\n \"9\" => \"What is your preferred musical genre?\",\n \"10\" => \"What is your favorite team?\",\n \"11\" => \"What is your father\\\"s middle name?\"\n ];\n }", "public function create($question, $type = ObjectFactory::TEXT_QUESTION)\n\t{\n\t\t// echo $type;\n\t\t$newQuestion = $this->objectFactory->createQuestion($type);\n\t\t// if ($type == ObjectFactory::SINGLE_CHOICE_QUESTION) echo \"single\";\n\t\t// echo $question;\n\t\t$newQuestion->setQuestion($question);\n\t\t$this->questions[$newQuestion->getId()] = $newQuestion;\n\t\treturn $newQuestion;\n\t}", "public function extra_question_fields()\n\t{\n\t\treturn array( 'qtype_logic_certificate', 'applet_id', 'applet_url' );\n\t}", "public function questionType() {\n return $this->belongsTo(QuestionType::class);\n }", "public function form_question()\n {\n return $this->belongsTo('App\\Models\\FormQuestion');\n }", "public static function renderRadio();", "function surveyQuestion($id = null) {\n $this->autoRender = false; // turn off autoRender because there is no view named surveyQuestion\n $this->layout = 'ajax'; // use the blank ajax layout\n if($this->request->is('ajax')) { // only proceed if this is an ajax request\n if (!$this->request->is('post')) {\n if ($id != null) { // existing question being edited so retrieve it from the session\n if ($this->Session->check('SurveyQuestion.new')) {\n $tempData = $this->Session->read('SurveyQuestion.new');\n $this->set('question_index', $id);\n $question = $tempData[$id];\n $question['Choice']['value'] = $this->Survey->Question->Choice->CombineChoices($question['Choice']);\n $this->request->data['Question'] = $question; // send the existing question to the view\n }\n }\n $this->render('/Elements/question_form');\n } else { // returning with data from the form here\n $tempArr = null;\n if ($this->Session->check('SurveyQuestion.new')) {\n $tempArr = $this->Session->read('SurveyQuestion.new');\n }\n $this->request->data['Question']['Choice'] = $this->Survey->Question->Choice->SplitChoices($this->request->data['Question']['Choice']['value']);\n $this->Survey->Question->set($this->request->data);\n $checkfieldsArr = $this->Survey->Question->schema();\n unset($checkfieldsArr['id']);\n unset($checkfieldsArr['survey_id']);\n unset($checkfieldsArr['order']);\n $checkfields = array_keys($checkfieldsArr);\n if ($this->Survey->Question->validates(array('fieldList' => $checkfields))) {\n if (is_null($id)) {\n $tempArr[] = $this->request->data['Question'];\n } else {\n $tempArr[$id] = $this->request->data['Question'];\n }\n $this->Session->write('SurveyQuestion.new',$tempArr);\n } else {\n $errors = $this->Survey->Question->invalidFields();\n $this->Session->setFlash('Invalid question: '.$errors['question'][0], true, null, 'error');\n }\n $this->set('questions', $tempArr);\n $this->layout = 'ajax';\n $this->render('/Elements/manage_questions');\n }\n }\n }", "function newLorAnswer(\\Foundation\\Form\\Input $input, \\Jazzee\\Entity\\Answer $answer);", "public function createComponentQuestion() {\n return new Multiplier(function ($testId) {\n $question = new \\App\\Components\\QuestionControl($this->questions, $testId);\n return $question;\n });\n }", "public function __construct() {\n $question = new qtype_preg();\n $this->engines = $question->available_engines();\n unset($this->engines['preg_php_matcher']);\n $this->engines = array_keys($this->engines);\n }", "static public function createCheckboxRadio($input, $name) {\n include $_SERVER[\"DOCUMENT_ROOT\"] . \"/mvdv/core/view/templates/general/form/formelements/radiocheckbox.php\";\n }", "function writequestion( $question ) {\n\t // question reflects database fields for general question and specific to type\n\t\n\t // initial string;\n\t $expout = \"\";\n\t\n\t // add comment\n\t $expout .= \"// question: $question->id \\n\";\n\n\t if ($question->id_category != \"\"){\n\t $expout .= \"\\$CATEGORY:$question->id_category\\n\";\n\t }\n\t\t\n\t // get question text format\n\t /*$textformat = $question->textformat;\n\t $question->text = \"\";\n\t if ($textformat!=FORMAT_MOODLE) {\n\t $question->text = text_format_name( (int)$textformat );\n\t $question->text = \"[$question->text]\";\n\t }*/\n\t $qtext_format = \"[\".$question->qtype.\"]\";\n\t // output depends on question type\n\t switch($question->qtype) {\n\t\t\tcase 'category' : {\n\t\t\t\t// not a real question, used to insert category switch\n\t\t\t\t$expout .= \"\\$CATEGORY: $question->category\\n\"; \n\t\t\t};break;\n\t\t\tcase 'title' : {\n\t\t\t\tif($question->prompt != '') $expout .= '::'.$this->repchar($question->prompt).'::';\n\t\t\t\t$expout .= $qtext_format;\n\t\t\t\t$expout .= $this->repchar( $question->quest_text);\n\t\t\t};break;\n\t\t case 'extended_text' : {\n\t\t $expout .= '::'.$this->repchar($question->prompt).'::';\n\t\t $expout .= $qtext_format;\n\t\t $expout .= $this->repchar( $question->quest_text);\n\t\t $expout .= \"{}\\n\";\n\t\t };break;\n\t\t case 'truefalse' : {/*\n\t\t $trueanswer = $question->options->answers[$question->options->trueanswer];\n\t\t $falseanswer = $question->options->answers[$question->options->falseanswer];\n\t\t if ($trueanswer->fraction == 1) {\n\t\t $answertext = 'TRUE';\n\t\t $right_feedback = $trueanswer->feedback;\n\t\t $wrong_feedback = $falseanswer->feedback;\n\t\t } else {\n\t\t $answertext = 'FALSE';\n\t\t $right_feedback = $falseanswer->feedback;\n\t\t $wrong_feedback = $trueanswer->feedback;\n\t\t }\n\t\t\n\t\t $wrong_feedback = $this->repchar($wrong_feedback);\n\t\t $right_feedback = $this->repchar($right_feedback);\n\t\t $expout .= \"::\".$this->repchar($question->prompt).\"::\".$qtext_format.$this->repchar( $question->quest_text ).\"{\".$this->repchar( $answertext );\n\t\t if ($wrong_feedback) {\n\t\t $expout .= \"#\" . $wrong_feedback;\n\t\t } else if ($right_feedback) {\n\t\t $expout .= \"#\";\n\t\t }\n\t\t if ($right_feedback) {\n\t\t $expout .= \"#\" . $right_feedback;\n\t\t }\n\t\t $expout .= \"}\\n\";*/\n\t\t }//;break;\n\t\t \n\t\t case 'shortanswer' : {/*\n\t\t $expout .= \"::\".$this->repchar($question->prompt).\"::\".$qtext_format.$this->repchar( $question->quest_text ).\"{\\n\";\n\t\t foreach($question->options->answers as $answer) {\n\t\t $weight = 100 * $answer->score_correct;\n\t\t $expout .= \"\\t=%\".$weight.\"%\".$this->repchar( $answer->text ).\"#\".$this->repchar( $answer->comment ).\"\\n\";\n\t\t }\n\t\t $expout .= \"}\\n\";*/\n\t\t }//;break;\n\t\t\tcase 'choice' : {\n\t\t\t\t$expout .= \"::\".$this->repchar($question->prompt).\"::\".$qtext_format.$this->repchar( $question->quest_text ).\"{\\n\";\n\t\t\t\t\n\t\t\t\tforeach($question->answers as $answer) {\n\t\t\t\t\tif (($answer->score_correct == 1) || ($answer->score_correct == 0 && $answer->is_correct == 1) ) {\n\t\t\t\t\t\t$answertext = '=';\n\t\t\t\t\t}\n\t\t\t\t\telseif ($answer->score_correct > 1) {\n\t\t\t\t\t\t$export_weight = $answer->score_correct*100;\n\t\t\t\t\t\t$answertext = \"=%$export_weight%\";\n\t\t\t\t\t}\n\t\t\t\t\telseif ($answer->score_correct==0) {\n\t\t\t\t\t\t$answertext = '~';\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\t$export_weight = $answer->score_correct*100;\n\t\t\t\t\t\t$answertext = \"~%$export_weight%\";\n\t\t\t\t\t}\n\t\t\t\t\t$expout .= \"\\t\".$answertext.$this->repchar( $answer->text );\n\t\t\t\t\tif ($answer->comment!=\"\") {\n\t\t\t\t\t\t$expout .= \"#\".$this->repchar( $answer->comment );\n\t\t\t\t\t}\n\t\t\t\t\t$expout .= \"\\n\";\n\t\t\t\t}\n\t\t\t\t$expout .= \"}\\n\";\n\t\t\t};break;\n\t\t\tcase 'choice_multiple' : {\n\t\t\t\t$expout .= \"::\".$this->repchar($question->prompt).\"::\".$qtext_format.$this->repchar( $question->quest_text ).\"{\\n\";\n\t\t\t\t\n\t\t\t\tforeach($question->answers as $answer) {\n\t\t\t\t\tif ($answer->score_correct==1) {\n\t\t\t\t\t\t$answertext = '=';\n\t\t\t\t\t}\n\t\t\t\t\telseif ($answer->score_correct==0) {\n\t\t\t\t\t\t$answertext = '~';\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\t$export_weight = $answer->score_correct*100;\n\t\t\t\t\t\t$answertext = \"~%$export_weight%\";\n\t\t\t\t\t}\n\t\t\t\t\t$expout .= \"\\t\".$answertext.$this->repchar( $answer->text );\n\t\t\t\t\tif ($answer->comment!=\"\") {\n\t\t\t\t\t\t$expout .= \"#\".$this->repchar( $answer->comment );\n\t\t\t\t\t}\n\t\t\t\t\t$expout .= \"\\n\";\n\t\t\t\t}\n\t\t\t\t$expout .= \"}\\n\";\n\t\t\t};break;\n\t\t case 'associate' : {\n\t\t\t\t$expout .= \"::\".$this->repchar($question->prompt).\"::\".$qtext_format.$this->repchar( $question->quest_text ).\"{\\n\";\n\t\t\t\tforeach($question->answers as $i => $subquestion) {\n\t\t\t\t\t$expout .= \"\\t=\".$this->repchar( $subquestion->text ).\" -> \".$this->repchar( $question->extra_info[$i]->text ).\"\\n\";\n\t\t\t\t}\n\t\t\t\t$expout .= \"}\\n\";\n\t\t };break;\n\t\t case NUMERICAL:\n\t\t $expout .= \"::\".$this->repchar($question->prompt).\"::\".$qtext_format.$this->repchar( $question->quest_text ).\"{#\\n\";\n\t\t foreach ($question->options->answers as $answer) {\n\t\t if ($answer->text != '') {\n\t\t $percentage = '';\n\t\t if ($answer->score_correct < 1) {\n\t\t $pval = $answer->score_correct * 100;\n\t\t $percentage = \"%$pval%\";\n\t\t }\n\t\t $expout .= \"\\t=$percentage\".$answer->text.\":\".(float)$answer->tolerance.\"#\".$this->repchar( $answer->comment ).\"\\n\";\n\t\t } else {\n\t\t $expout .= \"\\t~#\".$this->repchar( $answer->comment ).\"\\n\";\n\t\t }\n\t\t }\n\t\t $expout .= \"}\\n\";\n\t\t break;\n\t\t case DESCRIPTION:\n\t\t $expout .= \"// DESCRIPTION type is not supported\\n\";\n\t\t break;\n\t\t case MULTIANSWER:\n\t\t $expout .= \"// CLOZE type is not supported\\n\";\n\t\t break;\n\t\t default:\n\t\t \n\t\t\t\treturn false;\n\t\t}\n\t // add empty line to delimit questions\n\t $expout .= \"\\n\";\n\t return $expout;\n\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 }", "protected function set_up()\n {\n $this->element = new Zend_Form_Element_Radio('foo');\n }", "public function __construct($radio_group_name, $radio_group_label = NULL, $options = array(), $css_classes = array()) {\r\n parent::__construct($radio_group_name, $radio_group_label, $options, $css_classes);\r\n }", "function __construct($name) {\n $this->quizname = $name;\n \n }", "public function addquestion(Request $request, Survey $survey)\n {\n $this->validate($request, [\n 'label'=>'required|max:255',\n 'options'=>'required_if:type,select,checkbox-list,section',\n 'required'=>'boolean'\n ]);\n $data = array();\n $data = $request->intersect([\n 'label', 'question_type', 'options', 'required', 'css_class'\n ]);\n /*\n $data['label'] = $request->input('label');\n $data['question_type'] = $request->input('type');\n if($request->has('options')) {\n $data['options'] = $request->input('options');\n }\n if($request->has('required') && $request->input('type') != 'section') {\n $data['required'] = '1';\n }\n */\n // return($data);\n $survey->questions()->create($data);\n return redirect('/addquestion/' . $survey->id . '#new-question-form');\n }", "public function GetFormPostedValuesQuestions() {\n\t\t/* THE ARRAY OF POSTED FIELDS */\n\t\t$req_fields=array(\"survey_id\",\"question\");\n\n\t\tfor ($i=0;$i<count($req_fields);$i++) {\n\n\t\t\t//echo $_POST['application_id'];\n\t\t\tif (ISSET($_POST[$req_fields[$i]]) && !EMPTY($_POST[$req_fields[$i]])) {\n\t\t\t\t$this->SetVariable($req_fields[$i],EscapeData($_POST[$req_fields[$i]]));\n\t\t\t}\n\t\t\telse {\n\t\t\t\t//echo \"<br>\".$this->req_fields[$i].\"<br>\";\n\t\t\t\t$this->$req_fields[$i]=\"\";\n\t\t\t}\n\t\t}\n\t}", "private function addQuestion() : void\n {\n $question = $this->console->ask(__('Type your question'));\n\n $this->console->info('Question successfully added ');\n\n $answer = $this->console->ask(__('Type your answer'));\n\n $this->console->info('Answer successfully added ');\n\n $this->questionRepository->create([\n 'question' => $question,\n 'valid_answer' => $answer,\n ]);\n }", "function definition(){\n parent::definition();\n $mform =& $this->_form;\n $mform->addRule('questiontext', null, 'required', null, 'client');\n \n // Remove meaningless defaultgrade field.\n $mform->removeElement('defaultgrade');\n }", "public function question_type() {\r\n $this->check_permission(18);\r\n $content_data['add'] = $this->check_page_action(18, 'add');\r\n $this->quick_page_setup(Settings_model::$db_config['adminpanel_theme'], 'adminpanel', $this->lang->line('question_type'), 'operation/question_type', 'header', 'footer', '', $content_data);\r\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 }", "public function question_type()\n {\n return $this->belongsTo(\\App\\Models\\QuestionType::class);\n }", "public function getQuestions() {\n\t\t$fields = $this->Fields();\n\t\t// remove EditableFormStep\n\t\t$fields = $fields->exclude('ClassName', 'EditableFormStep');\n\t\t// return fields\n\t\treturn $fields;\n\t}", "public function extra_question_fields() {\n return array(\n 'qtype_calculatedfmt_opts',\n 'synchronize',\n 'single',\n 'shuffleanswers',\n 'answernumbering',\n 'correctanswerbase',\n 'correctanswerlengthint',\n 'correctanswerlengthfrac',\n 'correctanswergroupdigits',\n 'correctanswershowbase',\n 'exactdigits',\n );\n }", "function readquestion($lines) {\n /// this format, this function converts it into a question \n /// object suitable for processing and insertion into Moodle.\n\n echo \"<p>This quiz format has not yet been completed!</p>\";\n\n return NULL;\n }", "function __construct() {\n parent::__construct();\n $this->fieldset_key = \"faq\";\n $this->auxillary_tables = array(\"fieldset_faq_data\");\n }", "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}", "function __construct()\n {\n parent::__construct();\n \n // create the form\n $this->form = new BootstrapFormBuilder;\n $this->form->setFormTitle(_t('Selection breaks'));\n \n // create the form fields\n $radio = new TRadioGroup('radio');\n $radio2 = new TRadioGroup('radio2');\n $check = new TCheckGroup('check');\n $check2 = new TCheckGroup('check2');\n \n $radio->setLayout('horizontal');\n $radio2->setLayout('horizontal');\n $check->setLayout('horizontal');\n $check2->setLayout('horizontal');\n \n $radio2->setUseButton();\n $check2->setUseButton();\n \n $radio->setBreakItems(5);\n $radio2->setBreakItems(5);\n $check->setBreakItems(5);\n $check2->setBreakItems(5);\n \n $items = array();\n for ($n=1; $n<=20; $n++)\n {\n $items[$n] = $n;\n }\n \n $radio->addItems($items);\n $check->addItems($items);\n $radio2->addItems($items);\n $check2->addItems($items);\n \n foreach ($radio->getLabels() as $key => $label)\n {\n $label->setTip(\"Radio $key\");\n $label->setSize(50);\n }\n foreach ($radio2->getLabels() as $key => $label)\n {\n $label->setTip(\"Radio $key\");\n $label->setSize(50);\n }\n foreach ($check->getLabels() as $key => $label)\n {\n $label->setTip(\"Check $key\");\n $label->setSize(50);\n }\n foreach ($check2->getLabels() as $key => $label)\n {\n $label->setTip(\"Check $key\");\n $label->setSize(50);\n }\n \n // add the fields to the table\n $this->form->addFields( [new TLabel('TRadioGroup:')], [$radio] );\n $this->form->addFields( [new TLabel('TCheckGroup:')], [$check] );\n $this->form->addFields( [new TLabel('TRadioGroup (use button):')], [$radio2] );\n $this->form->addFields( [new TLabel('TCheckGroup (use button):')], [$check2] );\n \n $this->form->addAction( 'Save', new TAction(array($this, 'onSave')), 'fa:save green');\n \n // wrap the page content using vertical box\n $vbox = new TVBox;\n $vbox->style = 'width: 100%';\n $vbox->add(new TXMLBreadCrumb('menu.xml', __CLASS__));\n $vbox->add($this->form);\n\n parent::add($vbox);\n }" ]
[ "0.6696156", "0.65979123", "0.6522212", "0.6522034", "0.6453404", "0.6408472", "0.6408472", "0.6355597", "0.6307702", "0.62767327", "0.6251886", "0.62060213", "0.6185924", "0.60993624", "0.60993624", "0.5988293", "0.5962546", "0.5960425", "0.5959708", "0.5922633", "0.58725715", "0.5870724", "0.5845718", "0.5815422", "0.58132875", "0.5811432", "0.5809371", "0.5765554", "0.5754272", "0.5746021", "0.5731598", "0.5659009", "0.5658009", "0.56542134", "0.56348395", "0.5634396", "0.5603169", "0.5595039", "0.55853206", "0.5581593", "0.5580994", "0.55727375", "0.55727035", "0.5562847", "0.5561475", "0.555822", "0.55507904", "0.55385673", "0.55332", "0.5512378", "0.55004054", "0.5487954", "0.54540193", "0.5423969", "0.54226214", "0.5422412", "0.54192126", "0.5411922", "0.5408974", "0.5380995", "0.5364775", "0.5361157", "0.5359005", "0.5354958", "0.53536475", "0.5343528", "0.5342218", "0.53385544", "0.53371316", "0.5332454", "0.5316265", "0.531111", "0.5305255", "0.5296518", "0.5288365", "0.528611", "0.5285964", "0.5282595", "0.5276887", "0.527151", "0.52686", "0.5256468", "0.52537185", "0.52455604", "0.524416", "0.5242296", "0.52309763", "0.5230757", "0.52298075", "0.5227061", "0.5224829", "0.5220355", "0.5220111", "0.52178293", "0.52156484", "0.52154964", "0.5215476", "0.52078676", "0.52062947", "0.5202882" ]
0.60211074
15
end Question() constructor Reveals answers in internal Array of Answer Objects for each question
function showAnswers() { if($this->TotalAnswers != 1){$s = 's';}else{$s = '';} #add 's' only if NOT one!! echo "<em>[" . $this->TotalAnswers . " answer" . $s . "]</em> "; foreach($this->aAnswer as $answer) {#print data for each echo "<em>(" . $answer->AnswerID . ")</em> "; echo $answer->Text . " "; if($answer->Description != "") {#only print description if not empty echo "<em>(" . $answer->Description . ")</em>"; } } print "<br />"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function answers()\r\n {\r\n $returnArray = array();\r\n $db =& eZDB::globalDatabase();\r\n $db->array_query( $questionArray, \"SELECT ID FROM eZQuiz_Answer WHERE AlternativeID='$this->ID'\" );\r\n\r\n for ( $i = 0; $i < count( $questionArray ); $i++ )\r\n {\r\n $returnArray[$i] = new eZQuizAnswer( $questionArray[$i][$db->fieldName( \"ID\" )], true );\r\n }\r\n return $returnArray;\r\n }", "public function __construct() {\r\n $this->answers = new ArrayCollection();\r\n }", "public function __construct($answers)\n {\n $this->answers = $answers;\n }", "public static function getAllQuestionsAndAnswers(){\n $returnArray = array(\n 'Result' => 1,\n 'Reason' => \"\",\n 'QuestionResponses' => array()\n );\n\n $questionObjects = question::getAllQuestions();\n\n if(count($questionObjects) > 0){\n $responsesArray = self::buildQuestionsAndAnswersArray_Admin($questionObjects);\n $returnArray['QuestionResponses'] = $responsesArray;\n }\n else{\n $returnArray['Result'] = 0;\n $returnArray['Reason'] = \"No questions were found\";\n }\n\n return $returnArray;\n }", "private function question()\n\t{\n\t\t$this->qns['questionnaire']['questionnairecategories_id'] = $this->allinputs['questioncat'];\n\t\t$this->qns['questionnaire']['questionnairesubcategories_id'] = $this->allinputs['questionsubcat'];\n\t\t$this->qns['questionnaire']['label'] = $this->allinputs['question_label'];\n\n\n\t\t$this->qns['questionnaire']['question'] = $this->allinputs['question'];\n\t\t$this->qns['questionnaire']['has_sub_question'] = $this->allinputs['subquestion'];\n\n\t\tif( $this->qns['questionnaire']['has_sub_question'] == 0 )\n\t\t{\n\t\t\t$this->qns['answers']['answer_type'] = $this->allinputs['optiontype'];\n\t\t}\n\n\t\t$this->qns['questionnaire']['active'] = 1;\n\n\t\tif( $this->qns['questionnaire']['has_sub_question'] == 0 ){\n\t\t\t//This code must be skipped if sub_question is 1\n\t\t\t$optionCounter = 0;\n\t\t\tforeach ($this->allinputs as $key => $value) {\n\n\t\t\t\tif( str_is('option_*', $key) ){\n\t\t\t\t\t$optionCounter++;\n\t\t\t\t\t$this->qns['answers'][$optionCounter] = ( $this->qns['answers']['answer_type'] == 'opentext' ) ? 'Offered answer text' : $value;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public function getAnswers();", "public function answers() {\n return $this->hasMany(Answer::class);\n }", "public function initAnswers()\n\t{\n\t\t$this->collAnswers = array();\n\t}", "function showQuestions()\n\t{\n\t\tif($this->TotalQuestions > 0)\n\t\t{#be certain there are questions\n\t\t\tforeach($this->aQuestion as $question)\n\t\t\t{#print data for each \n\t\t\t\techo $question->Number . ') '; # We're using new Number property instead of id - v2\n\t\t\t\techo $question->Text . ' ';\n\t\t\t\tif($question->Description != ''){echo '(' . $question->Description . ')';}\n\t\t\t\techo '<br />';\n\t\t\t\t$question->showAnswers() . '<br />'; #display array of answer objects\n\t\t\t}\n\t\t}else{\n\t\t\techo 'There are currently no questions for this survey.';\t\n\t\t}\n\t}", "public function answers()\n {\n return $this->hasMany(Answer::class);\n }", "public function answers()\n {\n return $this->hasMany(Answer::class);\n }", "public function answers()\n {\n return $this->hasMany(Answer::class);\n }", "public function answers()\n {\n return $this->hasMany(Answer::class);\n }", "public function answers()\n {\n return $this->hasMany(Answer::class);\n }", "function getQuestions()\n\t{\n\t\treturn $this->aQuestion;\n\t}", "private function extractQuestions(){\n $this->selectQuestions();\n $num=mysqli_num_rows($this->arrResultQuestions);\n for($i=0; $i<$num; $i++):\n $row=mysqli_fetch_object($this->arrResultQuestions);\n $misc=new misc();\n $fromWho=$misc->singleSelection('username', 'users', 'user_id', '=', $row->user_id);\n ?>\n <article class=\"homePageQuestions homePageArticle<?php echo $i; ?>\">\n <h3 class=\"homePageQuestionHeading\"><a href=\"?questionBody=<?php echo $row->post_id; ?>\"><?php echo $row->name; ?></a></h3>\n <span class=\"homePageQuestionAddFrom\"><span class=\"glyphicon glyphicon-user\"></span><a href=\"?user=<?php echo $row->user_id; ?>\"><?php echo $fromWho; ?></a></span>\n <span class=\"homePageQuestionAddTime\"><span class=\"glyphicon glyphicon-time\"></span><?php echo date('d.m.Y в H:i', $row->timeadded); ?></span>\n <span class=\"homePageQuestionAddTime\"><span class=\"glyphicon glyphicon-tag\"></span><?php echo $this->selectCategory($row->cat_id); ?></span>\n <span class=\"homePageQuestionVisits\"><?php echo $row->visits ?> Показвания</span>\n <?php\n $this->showingQuestionsFooter($row->lastanswered, $row->lastanswer, $row->post_id);\n ?>\n </article>\n <?php\n endfor;\n }", "public function get_answers() {\n return $this->answers;\n }", "public function getAnswers()\n {\n return $this->answers;\n }", "public function getAnswers()\n {\n return $this->answers;\n }", "public function getAnswers()\n {\n return $this->answers;\n }", "public function __construct($questions,$answers)\r\n\t{\r\n\t\t$this->questions = $questions;\r\n\t\t$this->answers = $answers;\r\n\t\tparent::__construct();\r\n\t}", "public function getAnswers()\n {\n return $this->_answers;\n }", "public function answers()\n {\n return $this->hasMany('App\\Modules\\Models\\Answer');\n }", "public static function answer_question(array $question);", "public function getAnswers() {\r\n\t\treturn $this->answers;\r\n\t}", "public function getAnswers(): Answers\n {\n return $this->answers;\n }", "public function getCorrectAnswers()\n {\n return $this->hasMany(CorrectAnswers::className(), ['question_id' => 'id']);\n }", "public function initQuestions()\n\t{\n\t\t$this->collQuestions = array();\n\t}", "private function generate_question() {\n\n require_once(__DIR__ . '/csv_gd.class.php');\n $csv_filename = $this->configuration['base_data_dir'] . '/csv/' . $this->configuration['csv_input'];\n\n $data_quiz_src_obj = new csv_gd($csv_filename);\n $data_quiz_src_orig = $data_quiz_src_obj->csv_to_array();\n\n\n\n // filter unwanted question (tags, diff level, void )\n $data_quiz_src_filtered = $this->quiz_filter($data_quiz_src_orig, $this->configuration['tags'], $this->configuration['min_diffucult_level'], $this->configuration['max_diffucult_level']);\n\n\n // reverse question with_answer\n if ($this->configuration['reverse_question'] == TRUE) {\n $data_quiz_src_filtered = $this->quiz_switch_question_with_answer($data_quiz_src_filtered);\n }\n\n\n // generate question and answer\n $data_quiz_src = $this->quiz_generate($data_quiz_src_filtered);\n\n\n // randomize quiz \n if ($this->configuration['randomize_question'] == TRUE) {\n shuffle($data_quiz_src);\n }\n\n\n // restrict the maxium number of question\n if ($this->configuration['max_question_total'] > 0) {\n $this->configuration['max_question_total'] = min(count($data_quiz_src), $this->configuration['max_question_total']);\n } else {\n $this->configuration['max_question_total'] = count($data_quiz_src);\n }\n $this->question = array_slice($data_quiz_src, 0, $this->configuration['max_question_total']);\n\n $this->configuration['debug']=$this->debug;\n\n // return $this->quiz_questions;\n }", "public function answers()\n {\n return $this->hasMany('App\\Answer');\n }", "public function answers()\n {\n return $this->hasMany('App\\Answer');\n }", "public function get_answers() {\n\t\t\t$answers = array();\n\t\t\tforeach ( $this->answer_data as $position => $data ) {\n\n\t\t\t\t$answers[ $this->get_answer_key( (string) $position ) ] = array(\n\t\t\t\t\t'label' => $data->getAnswer(),\n\t\t\t\t);\n\n\t\t\t\t/**\n\t\t\t\t * Filters the individual answer node.\n\t\t\t\t *\n\t\t\t\t * @since 3.3.0\n\t\t\t\t *\n\t\t\t\t * @param array $answer_node_data The answer node.\n\t\t\t\t * @param string $type Whether the node is answer node or student answer node.\n\t\t\t\t * @param mixed $data Individual answer data.\n\t\t\t\t */\n\t\t\t\t$answers[ $this->get_answer_key( (string) $position ) ] = apply_filters(\n\t\t\t\t\t'learndash_rest_statistic_answer_node_data',\n\t\t\t\t\t$answers[ $this->get_answer_key( (string) $position ) ],\n\t\t\t\t\t'answer',\n\t\t\t\t\t$data,\n\t\t\t\t\t$this->question->getId(),\n\t\t\t\t\t$position\n\t\t\t\t);\n\t\t\t}\n\n\t\t\treturn $answers;\n\t\t}", "public function getAnswers()\n {\n return $this->hasMany(Answer::className(), ['question_id' => 'id']);\n }", "public function __construct(\n\t\t$title = \"\",\n\t\t$comment = \"\",\n\t\t$author = \"\",\n\t\t$owner = -1,\n\t\t$question = \"\"\n\t)\n\t{\n\t\tparent::__construct($title, $comment, $author, $owner, $question);\n\t\t$this->answers = array();\n\t\t$this->correctanswers = 0;\n\t}", "public function getAnswers()\n {\n return $this->hasMany(Answers::className(), ['Task' => 'idEntry']);\n }", "public function question()\n {\n return $this->hasMany('App\\Models\\Question', 'quizzes_id');\n }", "public function getAnswersByQuestion()\n {\n $question_id = request('question');\n\n $question = PollQuestion::where('id', $question_id)->first();\n $answers = Answer::where('question_id', $question_id)->get();\n\n $data['question'] = $question;\n $data['answers'] = $answers;\n\n return view('answer', ['data' => $data]);\n }", "public function answers(){\n return $this->hasMany(Answer::class);\n }", "public function getAll()\n {\n return $this->_answers;\n }", "private function getAnswers($question){\n $answerModel = new Answer();\n $answers = $answerModel->where('id_qst',$question->id_qst)->findAll();\n $retMess = \"\";\n $this->answersId = [];\n foreach($answers as $answer){\n array_push($this->answersId,$answer->id_ans);\n $retMess .= \",\".$answer->text;\n }\n\n return $retMess;\n }", "function showQuestions()\n {\n if($this->TotalQuestions > 0)\n {#be certain there are questions\n foreach($this->aQuestion as $question)\n {#print data for each \n\n echo '\n\n <div class=\"panel panel-primary\">\n <div class=\"panel-heading\">\n <h3 class=\"panel-title\">' . $question->Text . '</h3>\n </div>\n <div class=\"panel-body\">\n <p>' . $question->Description . '</p>\n ' . $question->showAnswers() . ' \n </div>\n </div>\n\n ';\n\n }\n }else{\n echo \"There are currently no questions for this survey.\";\t\n } \n\t}", "function readquestion($lines) {\n \t// converts it into a question object suitable for processing and insertion.\n\n $question = $this->defaultquestion();\n $comment = NULL;\n \n // define replaced by simple assignment, stop redefine notices\n $gift_answerweight_regex = \"^%\\-*([0-9]{1,2})\\.?([0-9]*)%\"; \n\n // REMOVED COMMENTED LINES and IMPLODE\n foreach ($lines as $key => $line) {\n $line = trim($line);\n if (substr($line, 0, 2) == \"//\") {\n $lines[$key] = \" \";\n }\n }\n\n $text = trim(implode(\" \", $lines));\n\n if ($text == \"\") {\n return false;\n }\n\n // Substitute escaped control characters with placeholders\n $text = $this->escapedchar_pre($text);\n\n // Look for category modifier ---------------------------------------------------------\n if (ereg( '^\\$CATEGORY:', $text)) {\n // $newcategory = $matches[1];\n $newcategory = trim(substr( $text, 10 ));\n $newcategory = trim(substr( $newcategory, 0, strpos($newcategory, \"::\")));\n\t\t\t\n $question->setCategoryFromName($newcategory);\n $text = trim(substr($text, 10+strlen($newcategory)));\n \n // build fake question to contain category\n \n \t// XXX: create a category !\n //return true;\n }\n \n // QUESTION NAME parser --------------------------------------------------------------\n if (substr($text, 0, 2) == \"::\") {\n $text = substr($text, 2);\n\n $namefinish = strpos($text, \"::\");\n if ($namefinish === false) {\n $question->prompt = false;\n // name will be assigned after processing question text below\n } else {\n $questionname = substr($text, 0, $namefinish);\n $question->prompt = addslashes(trim($this->escapedchar_post($questionname)));\n $text = trim(substr($text, $namefinish+2)); // Remove name from text\n }\n } else {\n $question->prompt = false;\n }\n\n\n // FIND ANSWER section -----------------------------------------------------------------\n // no answer means its a description\n $answerstart = strpos($text, \"{\");\n $answerfinish = strpos($text, \"}\");\n\n $description = false;\n if (($answerstart === false) and ($answerfinish === false)) {\n $description = true;\n $answertext = '';\n $answerlength = 0;\n }\n elseif (!(($answerstart !== false) and ($answerfinish !== false))) {\n //$this->error( get_string( 'braceerror', 'quiz' ), $text );\n return false;\n }\n else {\n $answerlength = $answerfinish - $answerstart;\n $answertext = trim(substr($text, $answerstart + 1, $answerlength - 1));\n }\n\n \n\t\t// Format QUESTION TEXT without answer, inserting \"_____\" as necessary\n if ($description) {\n $text = $text;\n }\n elseif (substr($text, -1) == \"}\") {\n // no blank line if answers follow question, outside of closing punctuation\n $text = substr_replace($text, \"\", $answerstart, $answerlength+1);\n } else {\n // inserts blank line for missing word format\n $text = substr_replace($text, \"_____\", $answerstart, $answerlength+1);\n }\n\n // get text format from text\n $oldtext = $text;\n $textformat = 0;\n if (substr($text,0,1)=='[') {\n $text = substr( $text,1 );\n $rh_brace = strpos( $text, ']' );\n $qtformat= substr( $text, 0, $rh_brace );\n $text = substr( $text, $rh_brace+1 );\n \n }\n // i must find out for what this param is used\n $question->textformat = $textformat;\n \t\t\n \t\t// question text \n $question->quest_text = addslashes(trim($this->escapedchar_post($text)));\n\n // set question name if not already set\n\t\tif ($question->prompt === false) {\n\t\t\t$question->prompt = $question->quest_text;\n\t\t}\n\n // ensure name is not longer than 250 characters\n $question->prompt = $question->prompt ;\n $question->prompt = strip_tags(substr( $question->prompt, 0, 250 ));\n\n // determine QUESTION TYPE -------------------------------------------------------------\n $question->qtype = NULL;\n\n // give plugins first try\n // plugins must promise not to intercept standard qtypes\n // MDL-12346, this could be called from lesson mod which has its own base class =(\n /*\n if (method_exists($this, 'try_importing_using_qtypes') && ($try_question = $this->try_importing_using_qtypes( $lines, $question, $answertext ))) {\n return $try_question;\n }\n\t\t*/\n if ($description) {\n $question->qtype = 'title';\n }\n elseif ($answertext == '') {\n $question->qtype = 'extended_text';\n }\n elseif ($answertext{0} == \"#\"){\n $question->qtype = 'numerical';\n\n\t\t} elseif (strpos($answertext, \"~\") !== false) {\n\t\t\t\n\t\t\t// only Multiplechoice questions contain tilde ~\n\t\t\tif (strpos($answertext,\"=\") === false) {\n\t\t\t\t\n\t\t\t\t// multiple answers are enabled if no single answer is 100% correct\n\t\t\t\t$question->qtype = 'choice_multiple'; \n\t\t\t} else {\n\t\t\t\t\n\t\t\t\t// only one answer allowed (the default)\n\t\t\t\t$question->qtype = 'choice';\n\t\t\t}\n }", "public function index()\n {\n //\n //* id, question_code, question_specific, question_detail\n //* is_private, is_answered, patient_id, created_at, updated_at\n\n// $questions = Question::all();\n $questions = Question::orderBy('question_code', 'asc')->get();\n\n $answered_questions = array();\n $unanswered_questions = array();\n $answersList = array();\n foreach ($questions as $question ){ \n // Code Here\n if( $question->is_answered == 'unanswered' ){\n array_push($unanswered_questions, $question);\n }else{\n array_push($answered_questions, $question); \n }\n //echo $question->is_answered;\n }\n foreach ($questions as $question) {\n $answers = Question::find($question->id)->answers;\n //asso array need foreach\n //get all answers of this question\n foreach ($answers as $answer) {\n array_push($answersList, $answer);\n //$answer is all answers of question & $answer is json\n }\n }\n return view('Q&A.index', compact('unanswered_questions', 'answered_questions','answersList'));//,'specialties'));\n// return compact('unanswered_questions', 'answered_questions','answersList');//,'specialties');\n\n \n }", "public function get_answers() {\n\t\t\t$answers = array();\n\n\t\t\tforeach ( $this->parsed_answers as $key => $answer ) {\n\t\t\t\t$answers[ $this->get_answer_key( $key ) ] = array(\n\t\t\t\t\t'label' => $answer,\n\t\t\t\t\t'points' => ( intval( $key ) + 1 ),\n\t\t\t\t);\n\t\t\t}\n\n\t\t\treturn $answers;\n\t\t}", "public function getQuestions() {\r\n\t\t\treturn $this->_arrQuestions;\r\n\t\t}", "public function answers()\n {\n return $this->hasMany(FeedbackAnswer::class, 'feedback_id');\n }", "final public function get_answers() {\n global $DB;\n if ($this->answers === null) {\n $this->answers = array();\n $answers = $DB->get_records('languagelesson_answers', array('pageid'=>$this->properties->id, 'lessonid'=>$this->lesson->id), 'id');\n if (!$answers) {\n // It is possible that a lesson upgraded from Moodle 1.9 still.\n // Contains questions without any answers [MDL-25632].\n return array();\n }\n foreach ($answers as $answer) {\n $this->answers[count($this->answers)] = new languagelesson_page_answer($answer);\n }\n }\n return $this->answers;\n }", "public function __construct($questions)\n\t{\n\t\t$this->questions = $questions;\n\t\tparent::__construct();\n\t}", "public function getQuestions()\n {\n return $this->questions;\n }", "public function getQuestions()\n {\n return $this->questions;\n }", "public function getquestion()\r\n {\r\n \r\n $con = new Connection();\r\n $conn = $con->getConnection();\r\n $ques = array();\r\n $i = 0;\r\n \r\n $query = \"SELECT `id`,`question_id`, `exam_id`,`subject_id`, `node_id`,`question`,`created_date` FROM `question`\";\r\n $result = mysqli_query($conn, $query);\r\n if (mysqli_num_rows($result) > 0) {\r\n while ($row = mysqli_fetch_assoc($result)) {\r\n $q = new question();\r\n //$ea->setId( $row ['id']);\r\n $q->setQuestion_id( $row ['question_id']);\r\n $q->setExam_id( $row ['exam_id']);\r\n $q->setSubject_id( $row ['subject_id']);\r\n $q->setNode_id( $row ['node_id']);\r\n $q->setQuestion( $row ['question']);\r\n \r\n }\r\n \r\n \r\n $ques[$i ++] = array(\r\n \"id\" => $row[\"question_id\"],\r\n \"ques\" => $q\r\n );\r\n \r\n }\r\n return $ques;\r\n \r\n }", "public function getQuestions() {\r\n\t\treturn $this->questions;\r\n\t}", "public function get_all_question_answer_list()\n\t{\n\t\t\n\t\t$sql=\"select * from question_answer\";\n\t\t$query=$this->db->query($sql);\n\t\t//print_r($query->result_object());die();\n\t\treturn $query->result_object();\n\t}", "public function create_answers($properties) {\n global $DB;\n // Now add the answers\n $newanswer = new stdClass;\n $newanswer->lessonid = $this->lesson->id;\n $newanswer->pageid = $this->properties->id;\n $newanswer->timecreated = $this->properties->timecreated;\n\n $answers = array();\n\n $maxanswers = $this->lesson->maxanswers;\n \n if (($anscount = count($this->answers)) > $maxanswers) {\n $maxanswers = $anscount+2;\n }\n\n for ($i = 0; $i < $maxanswers; $i++) {\n $answer = clone($newanswer);\n\n // Check if answer option is enabled, especiallly for cloze type.\n if (isset($properties->ans_option[$i])){\n \t$answer->flags = $properties->ans_option[$i];\n }\n // If it is in multiple choices format then record the right answer.\n if (!empty($properties->answer_editor[$i]) && is_array($properties->answer_editor[$i])) { \n $answer->answer = $properties->answer_editor[$i]['text'];\n $answer->answerformat = $properties->answer_editor[$i]['format'];\n }\n if (!empty($properties->response_editor[$i]) && is_array($properties->response_editor[$i])) {\n $answer->response = $properties->response_editor[$i]['text'];\n $answer->responseformat = $properties->response_editor[$i]['format'];\n }\n\t // For cloze type we dont ignore empty answers so we set default here.\n\n if (isset($answer->answer) && ($answer->answer != '' || $properties->qtype == LL_CLOZE)) {\n if (isset($properties->jumpto[$i])) {\n $answer->jumpto = $properties->jumpto[$i];\n }\n $answer->answer = strip_tags($answer->answer);\n // Set score to 0 for branch tables.\n if ($properties->qtype == LL_BRANCHTABLE) {\n $answer->score = \"0.00\";\n } else {\n $answer->score = $properties->score[$i];\n }\n $answer->id = $DB->insert_record(\"languagelesson_answers\", $answer);\n $answers[$answer->id] = new languagelesson_page_answer($answer);\n } else {\n break;\n }\n }\n $this->answers = $answers;\n return $answers;\n }", "public function responses()\n\t{\n\t\treturn $this->oneToMany('Components\\Answers\\Models\\Response', 'question_id');\n\t}", "private function _Questions ( ) {\n\t\t$Config = $this->Get ( 'Config' );\n\t\t$quests = $Config['questions'];\n\t\t$groups = $Config['question_groups'];\n\t\tforeach ( $groups as $g => $group ) {\n\t\t\t$Groups[$group] = new stdClass();\n\t\t\t$Groups[$group]->Label = $Config['question_group_labels'][$g];\n\t\t\tforeach ( $quests as $q => $quest ) {\n\t\t\t\tif ( $Config['question_group'][$q] != $g ) continue;\n\t\t\t\t$Groups[$group]->Questions[$quest] = new stdClass();\n\t\t\t\t$Groups[$group]->Questions[$quest]->Label = $Config['question_labels'][$q];\n\t\t\t\t$Groups[$group]->Questions[$quest]->Type = $Config['question_types'][$q];\n\t\t\t\t$Groups[$group]->Questions[$quest]->Field = $Config['question_fields'][$q];\n\t\t\t\t$Groups[$group]->Questions[$quest]->Social = $Config['question_social'][$q];\n\t\t\t\t$Groups[$group]->Questions[$quest]->Display = $Config['question_display'][$q];\n\t\t\t\tif ( $Config['question_options'][$q] )\n\t\t\t\t\t$Groups[$group]->Questions[$quest]->Options = explode ( '|', $Config['question_options'][$q] );\n\t\t\t}\n\t\t\tksort ( $Groups[$group]->Questions );\n\t\t}\n\t\tksort ( $Groups );\n\t\treturn ( $Groups );\n\t}", "public function questionView($questions, $searchQuery = null) : object\n {\n $page = $this->di->get(\"page\");\n \n $question = new Question();\n $question->setDb($this->di->get(\"dbqb\"));\n\n $tag = new Tag();\n $tag->setDb($this->di->get(\"dbqb\"));\n\n foreach ($questions as $q) {\n $answer = new Answer();\n $answer->setDb($this->di->get(\"dbqb\"));\n $q->answersAmount = count($answer->findAllWhere(\"questionId = ?\", $q->id));\n $q->tags = $tag->findAllWhere(\"questionId = ?\", $q->id);\n };\n\n $form = new SearchForm($this->di);\n $form->check();\n\n $page->add(\"anax/v2/article/default\", [\n \"content\" => $form->getHTML(),\n ], \"sidebar-right\");\n\n $page->add(\"question/view-all\", [\n \"questions\" => $questions,\n \"searchQuery\" => $searchQuery ?? null\n ]);\n\n return $page->render([\n \"title\" => \"Topics\",\n ]);\n }", "public function run()\n {\n $i = 1;\n $question = Question::create(\n [\n 'title' => '前端工程师的技术进阶点在哪里?',\n 'description' => <<<'EOT'\n这个问题是一个比较全能的Java工程师提出来的,总结一下大家的回答:\n\n需求变化快,需要良好的复用、可拓展能力,否则动不动重写。\n兼容性问题,需要兼容各种移动设备的各种浏览器。\nCSS非正交,对于绝大多数人来说属于『玄学』。\n\n\n那么问题来了,普通前端工程师的技术进阶突破点在什么地方?\n\n有哪些方向可以突破,以后端为例\n\n全局方向: 做业务整体架构\n深度方向: 做性能调优、高并发、分布式等专业要求很高的领域\n延伸方向: 以Java 为例很多大神转移到大数据、分布式计算这个方面,算是传统Java Web的延伸方向\nEOT\n,\n 'user_id' => $i,\n ]);\n $question->answers()->create([\n 'user_id' => ++$i,\n 'content' => <<<'EOT'\n基于上面这个我个人认为的前提,我觉得前端的技术进阶并不像 Java 那样,对技术本身有很深度的研究,我个人规划更倾向于选择偏业务性的突破点:快速学习技术的能力前端时不时出来很多新东西,然后总是先于当前实现写未来代码,快速学习新事物的能力是最基础的。出来的新东西,能不能快速了解用法、特性、适用场景和底层实现?这是后面的基础。突破方法:对新事物保持好奇而非恐惧和抵触,跳出舒适区掌握学习的方法论,比如先看文档、再跑 Demo、提出问题、源码验证学习一些学习技巧业务抽象能力和技术选型、设计能力一个产品不是一夜建设出来的,但前端可以加速这个过程。使用 Node.js 可以写一个 index.js 文件执行下就跑起来一个各种功能的 Web 服务器,这个时间放在 Java 可能刚用 Spring Boot 创建好项目目录?\nEOT\n ]);\n\n }", "function resetAnswers() {\n\t\tunset($this->_answers);\n\t\t$this->_answers = array();\n\t}", "public function questions()\n {\n return $this->hasMany(Question::class);\n }", "public function questions()\n {\n return $this->hasMany(Question::class);\n }", "function creationQuestionnaire()\n{ \n\n $question;\n $reponse;\n \n $requeteCategorie = requeteServeur::requeteMysql(\"SELECT * FROM categorie\");\n $categorie = new Categorie($requeteCategorie);\n //echo \"<pre>\".print_r($categorie,true).\"</pre>\";\n \n $requeteQuestion = requeteServeur::requeteMysql(\"SELECT * FROM question\");\n //echo \"<pre>\".print_r($requeteQuestion,true).\"</pre>\";\n //$question = new Question($requeteQuestion, 3);\n //echo \"<pre>\".print_r($question,true).\"</pre>\";\n \n $requeteReponse = requeteServeur::requeteMysql(\"SELECT * FROM reponse\");\n //$reponse = new Reponse($requeteReponse, 17);\n \n /*separer les reponses*/\n for ($i = 1; $i <= $requeteQuestion->num_rows; $i++)\n {\n $reponse[$i] = new Reponse($requeteReponse, $i); \n }\n \n //echo \"<pre>\".print_r($reponse[1],true).\"</pre>\";\n \n \n //echo $requeteCategorie->num_rows;\n\n /*Va creez les question et leur inserez les reponse approprie*/\n for ($i = 1; $i <= $requeteCategorie->num_rows; $i++)\n {\n $question[$i] = new Question($requeteQuestion, $i);\n /*Utilise un foreach pour sortir la valeur des Id*/\n foreach($question[$i]->getId() as $test )\n {\n //echo $test.\"</br>\";\n $question[$i]->setReponse($test, $reponse[$test]);\n }\n } \n \n //echo \"<pre>\".print_r(count($question[2]->getId()),true).\"</pre>\";\n\n for($i = 1; $i <= $requeteCategorie->num_rows; $i++)\n {\n $categorie->setQuestion($i , $question[$i]);\n }\n \n //echo \"<pre>\".print_r($categorie,true).\"</pre>\";\n \n /*Zone Test*/\n /*\n echo \"QUESTION1<br/>\";\n echo \"<pre>\".print_r($question[1],true).\"</pre>\"; \n echo \"QUESTION2<br/>\";\n echo \"<pre>\".print_r($question[2],true).\"</pre>\";\n echo \"QUESTION3<br/>\";\n echo \"<pre>\".print_r($question[3],true).\"</pre>\";\n //selectionner les element creux dans questionnaire\n //echo \"<pre>\".print_r($question[3]->getReponse()[7],true).\"</pre>\";\n */\n \n /*retourne objet*/\n return '$categorie';\n}", "public static function clear(){\n self::$answers = [];\n }", "public function questions()\n {\n return $this->hasMany(\\App\\Question::class);\n }", "function alternatives()\r\n {\r\n $returnArray = array();\r\n $db =& eZDB::globalDatabase();\r\n $db->array_query( $questionArray, \"SELECT ID FROM eZQuiz_Alternative WHERE QuestionID='$this->ID' ORDER BY ID\" );\r\n\r\n for ( $i = 0; $i < count( $questionArray ); $i++ )\r\n {\r\n $returnArray[$i] = new eZQuizAlternative( $questionArray[$i][$db->fieldName( \"ID\" )], true );\r\n }\r\n return $returnArray;\r\n }", "public function show(Answers $answers)\n {\n //\n }", "public function displayQuestions() {\n $listQuestions = array();\n $sql = 'SELECT `id`, `question`, `picture` FROM `' . self::PREFIX . 'question`';\n $result = $this->db->query($sql);\n $listQuestions = $result->fetchAll(PDO::FETCH_OBJ);\n return $listQuestions;\n }", "public function get_questions() {\n return $this->questions;\n }", "public function __construct(Question $question)\n {\n $this->question = $question;\n }", "public function questions()\n {\n \treturn $this->hasMany(Question::class);\n }", "public function questions()\n {\n return $this->hasMany('App\\Question');\n }", "public function questions()\n {\n return $this->hasMany('App\\Question');\n }", "function answerQuestions() {\n $this->layout = 'survey'; // use the more basic survey layout\n if (!$this->request->is('post')) {\n // if there is no data then show the initial view\n $survey = $this->Session->read('Survey.original'); // get the survey being used\n if (empty($survey['Question'])) { // if there are no questions then we don't need to show the question form at all\n $this->Session->write('Survey.progress', GDTA_ENTRY); // move progress forward and redirect to the runSurvey action\n $this->redirect(array('action' => 'runSurvey'));\n }\n $questions = $survey['Question'];\n $answers = ($this->Session->check('Survey.answers')) ? $this->Session->read('Survey.answers') : array(); // check to see if there are already answers in the session\n $choices = array(); // gather choices here keyed to each question id\n foreach ($questions as &$q) { // go through each question and look to see if there is an answer for it\n $checkId = $q['id'];\n $choices[$checkId] = array();\n if (isset($q['Choice'])) {\n foreach ($q['Choice'] as $choice) {\n $choices[$checkId][$choice['id']] = $choice['value'];\n }\n }\n foreach ($answers as $a) {\n if ($a['question_id'] == $checkId) {\n if ($q['type'] == MULTI_SELECT) {\n $q['answer'] = Set::extract('/id',$a['answer']);\n } else {\n $q['answer'] = $a['answer'];\n }\n break;\n }\n }\n }\n $this->set('questions', $questions); // send questions to the view\n $this->set('choices', $choices); // send choices for questions to the view, ordered for form elements\n } else { // we have form data so process it here\n if (isset($this->request->data['Answer'])) {\n // make sure we have answers in the data set\n $this->Session->write('Survey.answers', $this->request->data['Answer']); // write the answers to the session\n }\n $this->Session->write('Survey.progress', GDTA_ENTRY); // move progress forward and redirect to the runSurvey action\n $this->redirect(array('action' => 'runSurvey'));\n }\n }", "public function collectQuestions()\r\n {\r\n if ($this->questionLoadingFailed()) {\r\n die(\"Question is Not Loaded Error!\");\r\n }\r\n\r\n foreach ($this->questionInfo->items as $question) {\r\n\r\n $questionInfo = $this->getSingleQuestionInfo($question);\r\n\r\n $this->fileContent[] = $this->formatOfQuestion($questionInfo);\r\n }\r\n\r\n return $this;\r\n }", "public function setAnswers($answers)\n {\n $this->_answers = $answers;\n return $this;\n }", "private function get_answers($question) {\n $answers = array();\n \n foreach ($question->options->subquestions as $subquestion) {\n array_push($answers, strip_tags($subquestion->answertext));\n }\n return $answers;\n }", "function getCorrectAnswers()\n\t{\n\t\treturn $this->correctanswers;\n\t}", "protected function buildAnswerModels($questions)\n\t{\n\t\t$answers = array();\n\t\tforeach($questions as $id => $value)\n\t\t{\n\t\t\tif(is_array($value))\n\t\t\t{\n\t\t\t\tforeach($value as $key => $option)\n\t\t\t\t{\n\t\t\t\t\t$answerData = array(\n\t\t\t\t\t\t'question_id' => $id,\n\t\t\t\t\t\t'value' => $option,\n\t\t\t\t\t\t'multiple_choice' => true,\n\t\t\t\t\t\t'custom' => false\n\t\t\t\t\t);\n\n\t\t\t\t\tif($key === 'custom')\n\t\t\t\t\t{\n\t\t\t\t\t\t$answerData['custom'] = true;\n\t\t\t\t\t}\n\n\t\t\t\t\t$answers[] = $this->answer->newInstance($answerData);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$answers[] = $this->answer->newInstance(array(\n\t\t\t\t\t'question_id' => $id,\n\t\t\t\t\t'value' => $value,\n\t\t\t\t\t'multiple_choice' => false,\n\t\t\t\t\t'custom' => false\n\t\t\t\t));\n\t\t\t}\n\t\t}\n\n\t\treturn $answers;\n\t}", "public function questions() {\n\n\t\t# Author has many Question\n return $this->hasMany('Question');\n \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 }", "public function answers(): HasMany\n {\n return $this->hasMany(ResponseAnswer::class);\n }", "function getQuestions() { \n\ttry {\n\t\t$questions = ORM::for_table('questions')->find_many();\n\t\tif (!count($questions)) { \n\t\t\treturn 0;\n\t\t}\n\t\t$theQuestions = array();\n\t\tforeach ($questions as $question) { \n\t\t\t$theQuestion = array();\n\t\t\t$theQuestion['id'] = $question->id;\n\t\t\t$theQuestion['text'] = $question->text;\n\t\t\t$theQuestion['answer1'] = $question->answer1;\n\t\t\t$theQuestion['answer2'] = $question->answer2;\n\t\t\t$theQuestions[] = $theQuestion;\n\t\t}\n\t\treturn $theQuestions;\n\t} catch (Exception $e) { \n\t\treturn 0;\n\t}\n}", "public static function _get_all_answer_by_qid($ref_qid)\n {\n $all_answers = array();\n $connection = _database::get_connection();\n $query = \"SELECT * FROM `_answers` WHERE `_a_qid` = $ref_qid ORDER BY `_a_time` DESC\";\n if ($res = $connection->query($query)) {\n $i=0;\n while ($arr = $res->fetch_array())\n {\n $obj = new _answers();\n $obj->setAid($arr['_aid']);\n $obj->setDescription($arr['_description']);\n $obj->setAUid($arr['_a_uid']);\n $obj->setAQid($arr['_a_qid']);\n $obj->setApt($arr['_apt']);\n $obj->setNotApt($arr['_notapt']);\n $obj->setATime($arr['_a_time']);\n $all_answers[$i]=$obj;\n $i++;\n }\n return $all_answers;\n }\n else {\n return false;\n }\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 get_Questions()\n\t{\n\t\ttry\n\t\t{\n\t\t\t$db = DB::getConnection();\n\t\t\t$st = $db->prepare( 'SELECT * FROM questions' );\n\t\t\t$st->execute( array( ) );\n\t\t}\n\t\tcatch( PDOException $e ) { exit( 'PDO error ' . $e->getMessage() ); }\n\n\t\t$arr = array();\n\t\twhile( $row = $st->fetch() )\n\t\t{\n\t\t\t$arr[] = new Question( $row['id'], $row['question']);\n\t\t}\n\n\t\treturn $arr;\n\t}", "function getAll() {\r\n\t\treturn SurveyAnswerQuery::create()->find();\r\n\t}", "public static function question($questions)\n {\n $choices = array();\n $answer = array();\n\n // To find the related records from question layout\n foreach ($questions as $question) {\n $choice = array();\n $related = $question->getRelatedSet('qus_QUSC');\n\n foreach ($related as $relatedField) {\n // To find and create array of correct answers\n if ($relatedField->getField('qus_QUSC::isCorrect_kqn')) {\n array_push($answer, $relatedField->getField('qus_QUSC::choiceValue_kqt'));\n }\n\n // To create the array of choices of a question\n array_push($choice, $relatedField->getField('qus_QUSC::choiceValue_kqt'));\n }\n\n // To create array of choices of all questions\n array_push($choices, $choice);\n }\n\n // return array of choices and answers of questions\n return array($choices, $answer);\n }", "public function initQuestionOffensives()\n\t{\n\t\t$this->collQuestionOffensives = array();\n\t}", "public function responses()\n {\n return $this->hasMany(SurveyResponse::class, 'visual_question_answer_id');\n }", "public function index(){\n return new QuestionCollection(Question::all());\n }", "public function show(Questions $questions)\n {\n //\n }", "function __construct($id)\n\t{#constructor sets stage by adding data to an instance of the object\n\t\t$this->SurveyID = (int)$id;\n\t\tif($this->SurveyID == 0){return FALSE;}\n\t\t$iConn = IDB::conn(); #uses a singleton DB class to create a mysqli improved connection \n\t\t\n\t\t#get Survey data from DB - v5 adds TotalResponses\n\t\t$sql = sprintf(\"select Title, Description, TotalResponses from \" . PREFIX . \"surveys Where SurveyID =%d\",$this->SurveyID);\n\t\t\n\t\t#in mysqli, connection and query are reversed! connection comes first\n\t\t$result = mysqli_query($iConn,$sql) or die(trigger_error(mysqli_error($iConn), E_USER_ERROR));\n\t\tif (mysqli_num_rows($result) > 0)\n\t\t{#Must be a valid survey!\n\t\t\t$this->isValid = TRUE;\n\t\t\twhile ($row = mysqli_fetch_assoc($result))\n\t\t\t{#dbOut() function is a 'wrapper' designed to strip slashes, etc. of data leaving db\n\t\t\t $this->Title = dbOut($row['Title']);\n\t\t\t $this->Description = dbOut($row['Description']);\n\t\t $this->TotalResponses = (int)$row['TotalResponses']; # v5: stores number of responses\t\t\t \n\t\t\t}\n\t\t}\n\t\t@mysqli_free_result($result); #free resources\n\t\tif(!$this->isValid){return;} #exit, as Survey is not valid\n\t\t\n\t\t#attempt to create question objects - InputType field is v4\n\t\t$sql = sprintf(\"select QuestionID, Question, Description, InputType from \" . PREFIX . \"questions where SurveyID =%d\",$this->SurveyID);\n\t\t$result = mysqli_query($iConn,$sql) or die(trigger_error(mysqli_error($iConn), E_USER_ERROR));\n\t\tif (mysqli_num_rows($result) > 0)\n\t\t{#show results\n\t\t while ($row = mysqli_fetch_assoc($result))\n\t\t {\n\t\t\t\t$this->TotalQuestions += 1; #increment total number of questions\n\t\t\t\t#Current TotalQuestions added to Question object as Number property - added in v2 - InputType v4\n\t\t\t\t$this->aQuestion[] = new Question(dbOut($row['QuestionID']),dbOut($row['Question']),dbOut($row['Description']),$this->TotalQuestions,dbOut($row['InputType']));\n\t\t }\n\t\t}\n\t\t$this->TotalQuestions = count($this->aQuestion); #TotalQuestions derived above - consider deleting this line! v2 \n\t\t@mysqli_free_result($result); #free resources\n\t\t\n\t\t#attempt to load all Answer objects into cooresponding Question objects \n\t $sql = \"select a.AnswerID, a.Answer, a.Description, a.QuestionID from \n\t\t\" . PREFIX . \"surveys s inner join \" . PREFIX . \"questions q on q.SurveyID=s.SurveyID \n\t\tinner join \" . PREFIX . \"answers a on a.QuestionID=q.QuestionID \n\t\twhere s.SurveyID = %d \n\t\torder by a.AnswerID asc\";\n\t\t$sql = sprintf($sql,$this->SurveyID); #process SQL\n\t\t$result = mysqli_query($iConn,$sql) or die(trigger_error(mysqli_error($iConn), E_USER_ERROR));\n\t\tif (mysqli_num_rows($result) > 0)\n\t\t{#at least one answer!\n\t\t while ($row = mysqli_fetch_assoc($result))\n\t\t {#match answers to questions\n\t\t\t $QuestionID = (int)$row['QuestionID']; #process db var\n\t\t\t\tforeach($this->aQuestion as $question)\n\t\t\t\t{#Check db questionID against Question Object ID\n\t\t\t\t\tif($question->QuestionID == $QuestionID)\n\t\t\t\t\t{\n\t\t\t\t\t\t$question->TotalAnswers += 1; #increment total number of answers\n\t\t\t\t\t\t#create answer, and push onto stack!\n\t\t\t\t\t\t$question->aAnswer[] = new Answer((int)$row['AnswerID'],dbOut($row['Answer']),dbOut($row['Description']));\n\t\t\t\t\t\tbreak; \n\t\t\t\t\t}\n\t\t\t\t}\t\n\t\t }\n\t\t}\n\t}", "public function getAnswersToQuestion($id)\n {\n $answers = new TestQuestion();\n $answers = $answers->find($id)->answers()->get();\n return $answers;\n }", "public function set_question(array $question)\n\t{\n\t\t$this->question = $question;\n\t\treturn $this;\n\t}", "public function check_and_filter_answers($form) {\n $tags = $this->part_tags();\n $res = (object)array('answers' => array());\n foreach ($form->answermark as $i => $a) {\n if ((strlen(trim($form->answermark[$i])) == 0 || strlen(trim($form->answer[$i])) == 0)\n && (strlen(trim($form->subqtext[$i]['text'])) != 0\n || strlen(trim($form->feedback[$i]['text'])) != 0\n || strlen(trim($form->vars1[$i])) != 0\n )\n ) {\n $res->errors[\"answer[$i]\"] = get_string('error_answer_missing', 'qtype_formulas');\n $skip = true;\n }\n if (strlen(trim($form->answermark[$i])) == 0 || strlen(trim($form->answer[$i])) == 0) {\n continue; // If no mark or no answer, then skip this answer.\n }\n if (floatval($form->answermark[$i]) <= 0) {\n $res->errors[\"answermark[$i]\"] = get_string('error_mark', 'qtype_formulas');\n }\n $skip = false;\n if (strlen(trim($form->correctness[$i])) == 0) {\n $res->errors[\"correctness[$i]\"] = get_string('error_criterion', 'qtype_formulas');\n $skip = true;\n }\n if ($skip) {\n continue; // If no answer or correctness conditions, it cannot check other parts, so skip.\n }\n $res->answers[$i] = new stdClass();\n $res->answers[$i]->questionid = $form->id;\n foreach ($tags as $tag) {\n $res->answers[$i]->{$tag} = trim($form->{$tag}[$i]);\n }\n\n $subqtext = array();\n $subqtext['text'] = $form->subqtext[$i]['text'];\n $subqtext['format'] = $form->subqtext[$i]['format'];\n if (isset($form->subqtext[$i]['itemid'])) {\n $subqtext['itemid'] = $form->subqtext[$i]['itemid'];\n }\n $res->answers[$i]->subqtext = $subqtext;\n\n $fb = array();\n $fb['text'] = $form->feedback[$i]['text'];\n $fb['format'] = $form->feedback[$i]['format'];\n if (isset($form->feedback[$i]['itemid'])) {\n $fb['itemid'] = $form->feedback[$i]['itemid'];\n }\n $res->answers[$i]->feedback = $fb;\n\n $fb = array();\n $fb['text'] = $form->partcorrectfb[$i]['text'];\n $fb['format'] = $form->partcorrectfb[$i]['format'];\n if (isset($form->partcorrectfb[$i]['itemid'])) {\n $fb['itemid'] = $form->partcorrectfb[$i]['itemid'];\n }\n $res->answers[$i]->partcorrectfb = $fb;\n\n $fb = array();\n $fb['text'] = $form->partpartiallycorrectfb[$i]['text'];\n $fb['format'] = $form->partpartiallycorrectfb[$i]['format'];\n if (isset($form->partpartiallycorrectfb[$i]['itemid'])) {\n $fb['itemid'] = $form->partpartiallycorrectfb[$i]['itemid'];\n }\n $res->answers[$i]->partpartiallycorrectfb = $fb;\n\n $fb = array();\n $fb['text'] = $form->partincorrectfb[$i]['text'];\n $fb['format'] = $form->partincorrectfb[$i]['format'];\n if (isset($form->partincorrectfb[$i]['itemid'])) {\n $fb['itemid'] = $form->partincorrectfb[$i]['itemid'];\n }\n $res->answers[$i]->partincorrectfb = $fb;\n }\n if (count($res->answers) == 0) {\n $res->errors[\"answermark[0]\"] = get_string('error_no_answer', 'qtype_formulas');\n }\n\n return $res;\n }", "public function getPollAnswers()\n {\n return $this->hasMany(PollAnswer::className(), ['idPoll' => 'id']);\n }", "public function setAnswers(Answers $answers): self\n {\n $this->answers = $answers;\n\n return $this;\n }", "public function index(Question $question)\n {\n $answers = $question->answers()->with('user')->simplePaginate(4);\n\n return AnswerResource::collection($answers);\n }", "public function postClone() {\n\t\t// Clone common parent objects.\n\t\tparent::postClone();\n\n\t\t$tempQuestions = new ArrayCollection();\n\t\tforeach ($this->questions as $question) {\n\t\t\t$newQuestion = clone $question;\n\t\t\t$newQuestion->postClone();\n\t\t\t$newQuestion->setExercise($this);\n\t\t\t$tempQuestions->add($newQuestion);\n\t\t}\n\t\t$this->questions = $tempQuestions;\n\t}", "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 }" ]
[ "0.71545404", "0.6700658", "0.65226364", "0.64626265", "0.6384789", "0.63756955", "0.6361726", "0.63552976", "0.6340577", "0.63399625", "0.63399625", "0.63399625", "0.63399625", "0.63399625", "0.63303417", "0.62915313", "0.6279516", "0.6278541", "0.6278541", "0.6278541", "0.6271431", "0.6255395", "0.6245254", "0.6226499", "0.62258244", "0.62250495", "0.6222423", "0.6196538", "0.61875564", "0.6177135", "0.6177135", "0.61600536", "0.6131952", "0.6103358", "0.6096973", "0.6071362", "0.6059423", "0.60516393", "0.6042352", "0.6031512", "0.60196424", "0.60150206", "0.59952617", "0.5988083", "0.5978451", "0.5976186", "0.5961629", "0.5943892", "0.5936974", "0.5936974", "0.59252435", "0.59198934", "0.59167224", "0.5910146", "0.58831406", "0.58802813", "0.5878865", "0.58585125", "0.58546823", "0.5850498", "0.5850498", "0.58495307", "0.58383954", "0.58298224", "0.58216494", "0.5814592", "0.5812859", "0.58072716", "0.5802015", "0.5798012", "0.5793434", "0.5793434", "0.57925534", "0.5786909", "0.5773961", "0.5771695", "0.5760128", "0.5756247", "0.57558256", "0.57550865", "0.575185", "0.57458496", "0.5719353", "0.5717189", "0.57170254", "0.57123667", "0.5701842", "0.56983405", "0.5697853", "0.56933445", "0.5688544", "0.56681436", "0.5666273", "0.56600326", "0.565339", "0.5638357", "0.56245846", "0.56191117", "0.56176686", "0.5608834" ]
0.5996506
42
v5: stores number of times an answer was selected Constructor for Answer class.
function __construct($AnswerID,$answer,$description) {#constructor sets stage by adding data to an instance of the object $this->AnswerID = (int)$AnswerID; $this->Text = $answer; $this->Description = $description; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAnswerCount();", "public function getCurrentQuestionCount();", "function getAnswerCount()\n\t{\n\t\treturn count($this->answers);\n\t}", "public function getQuestionsCount() : int;", "public function setAnswerCount($answerCount);", "public function getAnswerLength();", "private function countAnswers(array $question): void\n {\n $options = $question['options'];\n $this->qcm['label'] = $question['label'];\n array_walk($question['answer'], function ($item, $key) use ($options): void {\n isset($this->qcm['answer'][$options[$key]]) ? ($this->qcm['answer'][$options[$key]] += $item ? 1 : 0)\n : $this->qcm['answer'][$options[$key]] = $item ? 1 : 0;\n });\n }", "public function getSelectionCount()\n {\n return $this->selection_count;\n }", "public function getAnswersAttribute()\n {\n return $this->postsCount();\n }", "public function findAnswerCount($choice) {\n\t\t$return = 0;\n\t\t$query\t= $this->createQuery();\n\n\t\tif($choice instanceof \\Qinx\\Qxsurvey\\Domain\\Model\\Choice) {\n\t\t\t$choice = $choice->getUid();\n\t\t}\n\n// kann vorerst nicht mehr in TYPO3 7 verwendet werden\n//\t\t$statement = 'SELECT COUNT(a.uid) as total FROM tx_qxsurvey_domain_model_answer AS a\n//\t\t\tWHERE a.choice = ?\n//\t\t\t\tAND a.pid IN ?' . $this->getEnabledFieldString('tx_qxsurvey_domain_model_answer', 'a');\n//\n//\t\t$result = $query\n//\t\t\t->statement($statement, array(1))\n//\t\t\t->execute(true);\n\n\t\t$statement = $GLOBALS['TYPO3_DB']->prepare_SELECTquery(\n\t\t\t'COUNT(a.uid) as total',\n\t\t\t'tx_qxsurvey_domain_model_answer AS a',\n\t\t\t'a.choice = :uid AND a.pid IN (:pid)' . $this->getEnabledFieldString('tx_qxsurvey_domain_model_answer', 'a'));\n\t\t$statement->execute(array(':uid' => $choice, ':pid' => implode(',', $query->getQuerySettings()->getStoragePageIds())));\n\n\t\t$result = $statement->fetch();\n\n\t\tif(isset($result['total']) === true) {\n\t\t\t$return = (int) $result['total'];\n\t\t}\n\n\t\treturn $return;\n\t}", "public function getSetQuestionAndAnswerResponseCounts()\n {\n return <<<CQL\nMATCH (q:Question)-[:HAS_ANSWER]->(a)<-[:ANSWERED]-()\nWITH q, a, COUNT(*) AS responses\nSET a.responses = toInt(responses)\nWITH q, COLLECT({ answer: a.hash, responses: responses }) AS answers\nWITH q, REDUCE(totalResponses = 0, n IN answers | totalResponses + n.responses) AS totalResponses\nSET q.responses = toInt(totalResponses)\nCQL;\n }", "public function getQuestionCount() {\r\n\t\treturn $this->questionCount;\r\n\t}", "public function increment() {\n $this->countAnswered++;\n }", "public function getCount()\n {\n return $this->count++;\n }", "function countAlternatives()\r\n {\r\n $returnArray = array();\r\n $db =& eZDB::globalDatabase();\r\n $db->query_single( $result, \"SELECT count( ID ) AS COUNT FROM eZQuiz_Alternative WHERE QuestionID='$this->ID'\" );\r\n\r\n $ret = false;\r\n\r\n if ( is_numeric( $result[$db->fieldName( \"COUNT\" )] ) )\r\n {\r\n $ret = $result[$db->fieldName( \"COUNT\" )];\r\n }\r\n\r\n return $ret;\r\n }", "public static function count(array $options = array());", "public function count(Dataset\\Selection $selection): int;", "public function getCounter();", "function countCandidate()\n\t{\n\t\tglobal $DB,$frmdata;\n\t\t\n\t\t$totalCandidate = $DB->SelectRecord('candidate', '', 'count(*) as candidate');\n\t\t//print_r($totalCandidate);\n\t\treturn $totalCandidate;\n\t}", "public function count(){\n return $this->_count;\n }", "public static function counter() {}", "function count(){}", "function _count()\n {\n return $this->_count;\n }", "function count()\r\n {\r\n $db =& eZDB::globalDatabase();\r\n $ret = false;\r\n\r\n $db->query_single( $result, \"SELECT COUNT(ID) as Count\r\n FROM eZQuiz_Question\" );\r\n $ret = $result[$db->fieldName( \"Count\" )];\r\n return $ret;\r\n }", "function count()\n {\n }", "public function _count();", "public function getCount()\n {\n return count($this->kids);\n }", "function count()\r\n {\r\n $db =& eZDB::globalDatabase();\r\n $ret = false;\r\n\r\n $db->query_single( $result, \"SELECT COUNT(ID) as Count FROM eZQuiz_Alternative\" );\r\n $ret = $result[$db->fieldName( \"Count\" )];\r\n return $ret;\r\n }", "function getCount($id, $col, $answers) {\n $count =0;\n foreach($answers as $key=>$row) {\n if($row['id_business_quiz'] === $id) {\n ++$count;\n }\n }\n return $count;\n }", "function count ()\n\t{\n\t\treturn $this->_count ;\n\t}", "function count()\n\t{\n\t\treturn $this->count;\n\t}", "public function count() { return $this->_m_count; }", "static function questionCount($exam_id){\n return DB::table('questions')->where('examination_id',$exam_id)->count();\n }", "public function getTotalAnswerCount() {\n\t\treturn $this->countSurveyAnswers();\n\t}", "public function ask_get_nb_questions()\n\t{\n\t\t$sql = \"SELECT COUNT(*) AS nb_quest\n\t\t\t\tFROM \".$this->table_ask.\"\n\t\t\t\tWHERE id_quest = -1\";\n\t\t$query = $this->db->query($sql);\n\t\tif( $query->row() != NULL )\n\t\t\treturn $query->row()->nb_quest;\n\t\telse\n\t\t\treturn 0;\n\t}", "function CountCorrectAns(){\n\t\n\t\t\t\tglobal $count;\n\t\t\t\twhile($correct){\n\t\t\t\t\t$count++;\n\t\t\t\t}\n\t\t\t\treturn $count;\n\t\t\t}", "public function keyCount() : int;", "public function count()\n {\n return count($this->valueOf());\n }", "public function getCount() {}", "public function getCount() {}", "public function getCount() {}", "abstract public function count();", "abstract public function count();", "abstract public function count();", "abstract 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 abstract function count();", "public abstract function count();", "public function getCount()\n {\n return $this->count;\n }", "private function addValues($selected){\n $id = $this->answersId[$selected];\n $answersModel = new Answer();\n $answer = $answersModel->find($id);\n\n $this->score['heritage'] += $answer->heritage;\n $this->score['populated'] += $answer->populated;\n $this->score['weather'] += $answer->weather;\n $this->score['relax'] += $answer->relax;\n $this->score['sightseeing'] += $answer->sightseeing;\n }", "public function count() \n {\n return $this->count;\n }", "function IncrementAnswerChosenCounts($answerIDs)\n {\n try\n {\n if (count($answerIDs) < 1)\n {\n return;\n }\n \n $db = GetDBConnection();\n \n $query = 'UPDATE ' . GetAnswersIdentifier() . ' SET'\n . ' ' . 'Chosen'\n . ' = '. 'Chosen' . ' + 1' . ' WHERE'\n . ' ' . GetAnswerIdIdentifier()\n . ' = :' . GetAnswerIdIdentifier() . '0';\n \n for($count = 1; $count < count($answerIDs); $count++)\n {\n $query .= ' OR ' . GetAnswerIdIdentifier() . ' = :' . GetAnswerIdIdentifier() . $count;\n }\n \n $query .= ';';\n \n $statement = $db->prepare($query);\n \n for($count = 0; $count < count($answerIDs); $count++)\n {\n $answerID = $answerIDs[$count];\n $statement->bindValue(':' . GetAnswerIdIdentifier() . $count, $answerID);\n }\n \n $statement->execute();\n \n $statement->closeCursor();\n }\n catch (PDOException $ex)\n {\n LogError($ex);\n }\n }", "function __construct() {\n self::$_count++;\n }", "public function initAnswerVotes()\n\t{\n\t\t$this->collAnswerVotes = array();\n\t}", "public function countPollOptionVotes() {\n\t\t$sql = \"SELECT\tCOUNT(*) AS count\n\t\t\tFROM\twcf\".$this->dbNo.\"_poll_option_vote\n\t\t\tWHERE\tpollID IN (\n\t\t\t\t\tSELECT\tpollID\n\t\t\t\t\tFROM\twcf\".$this->dbNo.\"_poll\n\t\t\t\t\tWHERE\tmessageType = ?\n\t\t\t\t)\n\t\t\t\tAND userID <> ?\";\n\t\t$statement = $this->database->prepareStatement($sql);\n\t\t$statement->execute(array('post', 0));\n\t\t$row = $statement->fetchArray();\n\t\treturn $row['count'];\n\t}", "public function getCount()\r\n {\r\n return $this->count;\r\n }", "public function getCount() {\r\n return $this->count;\r\n }", "function vote_count()\n{\n\tglobal $host, $db, $user, $pass;\n\t\n\tif (isset($_COOKIE) && !empty($_COOKIE)) {\n if ($_COOKIE['lastpoll'] && $_COOKIE['lastpoll'] == $_POST['qid']) {\n die('ERROR: You have already voted in this poll');\n }\n }\n\n setCookie('lastpoll', $_POST['qid'], time() + 2592000);\n \n echo \"<html>\n <head>\n <title>Online Voting System</title>\n </head>\n <body>\";\n if (isset($_POST['submit'])) {\n\n if (!isset($_POST['aid'])) {\n die('ERROR: Please select one of the available choices');\n }\n\n // ??????? ??????? ???? ?????????? ???? ??? ????\n include('config.php');\n \n // ??????? ????? ???? ????\n $connection = mysql_connect($host, $user, $pass) or die('ERROR: Unable to connect!');\n \n // ??????? ??????? ????\n mysql_select_db($db) or die('ERROR: Unable to select database!');\n \n // ????? ???????? ????? ????? ?????? ???? ????? ??????? ??????? aid ?????? ??????? ??? ?????\n $query = \"UPDATE answers SET acount = acount + 1 WHERE aid = \".$_POST['aid'].\" AND qid = \".$_POST['qid'];\n $result = mysql_query($query) or die(\"ERROR: $query. \".mysql_error());\n\n // ??????? ????????????? ????? ???? ????\n mysql_close($connection);\n\n echo 'Your vote was successfully registered!';\n echo '</body></html>';\n\t} else {\n \tdie('ERROR: Data not correctly submitted');\n\t}\n \n}", "public function getElementCounter() {}", "public function doCount () {\n return new I (count ($this->varContainer));\n }", "public function getCount()\n {\n return $this->_count;\n }", "public function getCount()\n {\n return $this->_count;\n }", "public function hasCount(){\n return $this->_has(3);\n }", "public function receivedCount();", "function count()\n {\n return $this->_matchesNum;\n }", "public function getCount(): int;", "public function getCount(): int;", "public function count()\n {\n return $this->_count;\n }", "public function count()\n {\n return $this->_count;\n }", "public function count()\n {\n return $this->_count;\n }", "public function countPollOptionVotes() {\n\t\t$sql = \"SELECT\tCOUNT(*) AS count\n\t\t\tFROM\t\".$this->databasePrefix.\"poll_votes\n\t\t\tWHERE\tvote_user_id <> ?\";\n\t\t$statement = $this->database->prepareStatement($sql);\n\t\t$statement->execute(array(0));\n\t\t$row = $statement->fetchArray();\n\t\treturn $row['count'];\n\t}", "public function count()\n {\n return 1;\n }", "public function count(): int;", "public function count(): int;", "public function count(): int;", "public function count(): int;", "public function count(): int;", "public function count(): int;", "public function count(): int;", "public function count(): int;", "public function count(): int;", "public function count(): int;", "public function getCount()\n\t{\n\t\treturn $this->_count;\n\t}", "public function count()\n {\n return $this->count;\n }", "public function count()\n {\n return $this->count;\n }", "public function count()\n {\n return $this->count;\n }", "public function count()\n {\n return $this->count;\n }", "public function count()\n {\n return $this->count;\n }", "public function count()\n {\n }" ]
[ "0.7411004", "0.6885092", "0.6658429", "0.6278471", "0.62103695", "0.6111446", "0.59687823", "0.59533995", "0.5934715", "0.5845801", "0.5778881", "0.5681866", "0.5635795", "0.56180066", "0.5606111", "0.55723256", "0.554984", "0.5548767", "0.5535597", "0.55088764", "0.5502873", "0.55024654", "0.5472733", "0.5471004", "0.54606694", "0.54431504", "0.544004", "0.54351693", "0.54259926", "0.5412254", "0.54120666", "0.5409654", "0.5398527", "0.53364605", "0.532934", "0.5304119", "0.53035766", "0.5299124", "0.52906156", "0.52906156", "0.5289286", "0.5285173", "0.5285173", "0.5285173", "0.5285173", "0.52749956", "0.52749956", "0.52749956", "0.52749956", "0.52749956", "0.52749956", "0.52749956", "0.52749956", "0.52749956", "0.52749956", "0.52749956", "0.5274923", "0.5274923", "0.5269992", "0.5269992", "0.52676123", "0.5261111", "0.52571255", "0.52524626", "0.52483535", "0.52478665", "0.5246005", "0.5237266", "0.5233535", "0.5229828", "0.52281046", "0.52200246", "0.52144873", "0.52144873", "0.5204068", "0.5194628", "0.51837116", "0.5181133", "0.5181133", "0.517819", "0.517819", "0.517819", "0.5175039", "0.5167941", "0.51644886", "0.51644886", "0.51644886", "0.51644886", "0.51644886", "0.51644886", "0.51644886", "0.51644886", "0.51644886", "0.51644886", "0.51586235", "0.5152399", "0.5152399", "0.5152399", "0.5152399", "0.5152399", "0.51444" ]
0.0
-1
Display a listing of the resource.
public function index() { if(Auth::user()->user_type==1) { $sections = Section::get(); } else{ return redirect('welcome'); } return view('backend.sections.index',compact('sections')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function indexAction()\n {\n $limit = $this->Request()->getParam('limit', 1000);\n $offset = $this->Request()->getParam('start', 0);\n $sort = $this->Request()->getParam('sort', array());\n $filter = $this->Request()->getParam('filter', array());\n\n $result = $this->resource->getList($offset, $limit, $filter, $sort);\n\n $this->View()->assign($result);\n $this->View()->assign('success', true);\n }", "public function listing();", "function index() {\n\t\t$this->show_list();\n\t}", "public function actionList() {\n $this->_getList();\n }", "public function listAction()\n {\n $model = $this->_getPhotoModel();\n $entries = $model->fetchEntries($this->_getParam('page', 1));\n\n $this->view->url = 'http://' . $this->_request->getHttpHost() . $this->_request->getBaseUrl(); \n $this->view->paginator = $entries;\n }", "public function index()\n {\n $items = Item::all();\n return ItemForShowResource::collection($items);\n }", "public function index()\n {\n return Resource::collection(($this->getModel())::paginate(10));\n }", "function index()\n\t{\n\t\t$this->_list();\n\t\t$this->display();\n\t}", "public function listingAction(){\n if (!LoginHelper::isAdmin()){\n Router::redirect('home', '<p class=\"alert alert-danger\">Unauthorized</p>');\n }\n $this->view->render('patient/list', Patient::all());\n }", "public function index()\n {\n //\n $list = $this->obj->all();\n\n return $this->render('index', compact('list'));\n }", "public function action_index()\n\t{\n\t\t$this->template->title = 'Resources';\n\t\t$this->view = View::factory('admin/resource/index');\n\t\t$this->template->scripts[] = 'media/js/jquery.tablesorter.min.js';\n\t\t$this->template->scripts[] = 'media/js/admin/resource.js';\n\t\t\n\t\t$resources = Sprig::factory('resource')->load(NULL, FALSE);\n\t\tif (!empty($resources))\n\t\t{\n\t\t\t$this->view->resources = $resources->as_array();\n\t\t}\n\t}", "function listing()\n\t\t{\n\t\t// en $this->_view->_listado para poder acceder a el desde la vista.\n\t\t\t$this->_view->_listado = $listado = $this->_instrumentoModel->getInstrumento();\n\t\t\t$this->_view->render('listing', '', '',$this->_sidebar_menu);\n\t\t}", "public function listAction()\n {\n $em = $this->getDoctrine()->getManager();\n \n $todos = $em->getRepository(Todo::class)->findAll();\n \n return $this->render('todo/index.html.twig', array(\n 'todos' => $todos,\n ));\n }", "public function index()\n\t{\n $this->authorize('list', Instance::class);\n\n\t\treturn $this->ok($this->repo->paginate($this->request->all()));\n\t}", "public function actionRestList() {\n\t $this->doRestList();\n\t}", "public function listing()\n\t{\n\t\t$hospitalID = $this->request->getSession()->read(\"hospital_id\") ? $this->request->getSession()->read(\"hospital_id\") : \"\";\n\t\t\n\t\t$patientMonitored = 1;\n\t\t$patientActive = 1;\n\t\t\n\t\t//GET ALL PATIENTS\n\t\t$patientsData = $this->Patients->allPatients($hospitalID,$patientMonitored,$patientActive);\n\t\t//GET ALL PATIENTS\n\t\t\n\t\t//echo \"<pre>\"; print_r($patientsData);die;\n\t\t$this->set(compact(\"patientsData\"));\n\t}", "public function listAction()\n {\n $htmlpage = '<!DOCTYPE html>\n<html>\n <head>\n <meta charset=\"UTF-8\">\n <title>todos list!</title>\n </head>\n <body>\n <h1>todos list</h1>\n <p>Here are all your todos:</p>\n <ul>';\n \n $em = $this->getDoctrine()->getManager();\n $todos = $em->getRepository(Todo::class)->findAll();\n foreach($todos as $todo) {\n $htmlpage .= '<li>\n <a href=\"/todo/'.$todo->getid().'\">'.$todo->getTitle().'</a></li>';\n }\n $htmlpage .= '</ul>';\n\n $htmlpage .= '</body></html>';\n \n return new Response(\n $htmlpage,\n Response::HTTP_OK,\n array('content-type' => 'text/html')\n );\n }", "public function index()\n {\n // Get Persons\n $person = Person::paginate(10);\n\n //Return collection of person as a resource\n return PersonResource::collection($person);\n }", "public function listAction() {\n\t\t$this->view->title = $this->translator->translate(\"Invoice list\");\n\t\t$this->view->description = $this->translator->translate(\"Here you can see all the invoices.\");\n\t\t$this->view->buttons = array(array(\"url\" => \"/admin/invoices/new/\", \"label\" => $this->translator->translate('New'), \"params\" => array('css' => null)));\r\n\t\t$this->datagrid->setConfig ( Invoices::grid() )->datagrid ();\n\t}", "public function listAll()\n\t{\n\t\t$this->render(self::PATH_VIEWS . '/list', [\n\t\t\t'pages' => $this->pagesDb->findAll('id', 'DESC'),\n\t\t]);\n\t}", "public function list()\n {\n // récupérer les données : toutes les catégories enregistrées\n $productList = Product::findAll();\n\n $this->show('product/list', [\n 'productList' => $productList\n ]);\n }", "public function index()\n {\n // CRUD -> Retrieve --> List\n // BREAD -> Browse Read Edit Add Delete\n // return Item::all();\n return view('list_items',compact('items'));\n }", "public function index()\n {\n // Get manufacturers\n $manufacturers = Manufacturer::orderBy('created_at', 'desc')->paginate(15);\n\n // Return collection of manufacturers as a resource\n return ManufacturerResource::collection($manufacturers);\n }", "public function index()\n {\n return ArtistResource::collection(Artist::orderBy('created_at', 'desc')->get());\n }", "public function indexAction() {\n\t\t$page = intval($this->getInput('page'));\n\t\t$perpage = $this->perpage;\n\t\t\n\t\tlist(,$files) = Lock_Service_FileType::getAllFileType();\n\t\t$data = array();\n\t\tforeach ($files as $key=>$value) {\n\t\t\t$data[$key]['id'] = $value['id'];\n\t\t\t$data[$key]['title'] = $value['name'];\n\t\t}\n\t\tlist($total, $filetype) = Lock_Service_FileType::getList($page, $perpage);\n\t\t$this->assign('filetype', $filetype);\n\t\t$this->assign('pager', Common::getPages($total, $page, $perpage, $this->actions['listUrl'].'/?'));\n\t\t$this->assign('data', json_encode($data));\n\t}", "public function listAction()\n {\n $qb = $this->getRepository()->queryAll();\n\n $view = new ImportListView;\n $view->imports = $qb->getQuery()->execute();\n\n return $this->templating->renderResponse('InfiniteImportBundle:Import:list.html.twig', array(\n 'data' => $view\n ));\n }", "public function index()\n\t{\n\t\t//Return model all()\n\t\t$instances = $this->decorator->getListingModels();\n\n\t\treturn View::make($this->listingView, array(\n\t\t\t'instances' => $instances,\n\t\t\t'controller' => get_class($this), \n\t\t\t'modelName' => class_basename(get_class($this->decorator->getModel())),\n\t\t\t'columns' => $this->getColumnsForInstances($instances),\n\t\t\t'editable' => $this->editable\n\t\t));\n\t}", "public function index()\n {\n return InfografiResources::collection(\n Infografi::orderBy('date', 'desc')->get()\n );\n }", "public function listAction()\n\t {\n\t\t\t$this->_forward('index');\n \n\t\t}", "public function index()\n {\n $this->list_view();\n }", "public function index()\n {\n $this->list_view();\n }", "public function index()\n {\n $this->list_view();\n }", "public function listAction()\n {\n $defaults = array(\n 'page' => null,\n 'order' => null,\n 'limit' => null,\n 'offset' => null,\n 'filter' => array(),\n );\n $body = $this->getRequest()->getBody();\n $options = $body + $defaults;\n\n // Process the options\n if (is_string($options['order'])) {\n $options['order'] = array_map('trim', explode(',', $options['order']));\n }\n if (is_string($options['page'])) {\n $options['page'] = (int)$options['page'];\n }\n if (is_string($options['limit'])) {\n $options['limit'] = (int)$options['limit'];\n }\n if (is_string($options['offset'])) {\n $options['offset'] = (int)$options['offset'];\n }\n $filter = $options['filter'];\n unset($options['filter']);\n\n $options = array_filter($options);\n\n return $this->getBinding()->find($filter, $options);\n }", "public function index()\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n /* Get the resources from the model */\n $resources = $this->resourcesList($this->model);\n\n /* Sets the view */\n if (view()->exists(\"admin.{$this->name}.index\")) {\n $view = \"admin.{$this->name}.index\";\n } else {\n $view = 'admin.includes.actions.index';\n }\n\n /* Display a listing of the resources */\n return view($view)\n ->with('resources', $resources)\n ->with('module', $this->module);\n }", "public function index()\n\t{\n\t\t$data['lists'] = $this->mdl_student->get_all();\n\t\t$this->template->set('title', 'Student Hostel List');\n\t\t$this->template->load('template', 'contents', 'student_hostel/student_hostel_list', $data);\n\t}", "public function index()\n {\n $modules = Module::all();\n return Resource::collection($modules);\n }", "public function index()\n {\n // List all resources from user entity\n $users = User::all();\n\n return $this->showAll($users);\n }", "public function index()\n {\n // Get todos\n $todos = Todo::orderBy('created_at', 'desc')->paginate(3);\n\n // Return collection of articles as a resource\n return TodoResource::collection($todos);\n }", "public function index()\n {\n return Resources::collection(Checking::paginate());\n }", "public function index()\n {\n return CourseListResource::collection(\n Course::query()->withoutGlobalScope('publish')\n ->latest()->paginate()\n );\n }", "public function index()\n {\n $cars = Car::paginate(15);\n return CarResource::collection($cars);\n }", "public function index()\n {\n // Get articles\n $articles = Article::orderBy('created_at', 'desc')->paginate(5);\n\n // Return collection of articles as a resource\n return ArticleResource::collection($articles);\n }", "public function index()\n {\n $authors = Author::paginate(10);\n\n return AuthorResource::collection($authors);\n }", "public function index()\n {\n //Get Books\n $books = Book::paginate(10);\n \n if ($books) {\n return (BookResource::collection($books))->additional([\n 'status_code' => 200,\n 'status' => 'success',\n ]);\n } else {\n return (BookResource::collection([]))->additional([\n 'status_code' => 200,\n 'status' => 'success',\n ]);\n }\n return view('index')->with('data', $books);\n }", "public function index()\n {\n $books = Book::latest()\n ->paginate(20);\n\n return BookResource::collection($books);\n }", "public function view(){\n\t\t$this->buildListing();\n\t}", "public function index()\n {\n $listing = Listing::orderBy('id', 'desc')->paginate(10);\n return view('listings.index')->withListings($listing);\n }", "public function listAction()\n {\n $this->_getSession()->setFormData([]);\n\n $this->_title($this->__('Training Cms'))\n ->_title($this->__('Pages'));\n\n $this->loadLayout();\n\n $this->_setActiveMenu('training_cms');\n $this->_addBreadcrumb($this->__('Training Cms'), $this->__('Training Cms'));\n $this->_addBreadcrumb($this->__('Pages'), $this->__('Pages'));\n\n $this->renderLayout();\n }", "public function index()\n {\n $services = $this->serviceRepository->paginate();\n\n return ServiceResource::collection($services);\n }", "public function index()\n {\n $resources = ResourceManagement::paginate(5);\n $users = User::get();\n\n return view('resources-mgmt/index', ['resources' => $resources, 'users' => $users]);\n }", "public function index()\n {\n $catalogs = Catalog::where('status', '=', Catalog::PUBLICADO)\n ->orderBy('id', 'DESC')->get();\n \n $data = CatalogResource::collection($catalogs);\n\n return [\n 'items' => $data,\n 'mensaje' => ''\n ];\n }", "public function listAction(){\n // In a controller this can be:\n // $this->request->getQuery('page', 'int'); // GET\n $currentPage = $this->request->getPost('pageindex', 'int'); // POST\n $pageNum = ($currentPage == null) ? 1 : $currentPage;\n\n // The data set to paginate\n $message = new Notice();\n $results = $message->getMsg4Admin();\n\n // Create a Model paginator, show 10 rows by page starting from $currentPage\n $paginator = new PaginatorArray(\n array(\n \"data\" => $results,\n \"limit\" => 10,\n \"page\" => $pageNum\n )\n );\n\n // Get the paginated results\n $page = $paginator->getPaginate();\n\n return $this->response->setJsonContent($page);\n\n }", "public function list()\n {\n try {\n return $this->success($this->service->list());\n } catch (\\Exception $exception) {\n return $this->error($exception->getMessage());\n }\n }", "public function index()\n {\n return $this->sendResponse(CrisisResource::collection(Crisis::paginate(10)), 'Data fetched successfully');\n }", "public function index()\n\t{\n\t\t$%Alias = new %Model();\n\t\t$params = array();\n\t\t\n\t\t$Paginator = new Paginator( $%Alias->findSize( $params ), $this->getLimit(), $this->getPage() );\n\t\t$this->getView()->set( '%Aliass', $%Alias->findList( $params, 'Id desc', $this->getOffset(), $this->getLimit() ) );\n\t\t$this->getView()->set( 'Paginator', $Paginator );\n\t\treturn $this->getView()->render();\n\t}", "public function listAction() {}", "public function index()\n {\n\n return RecipeResource::collection(Recipe::all());\n }", "public function index()\n {\n $this->indexPage('list-product', 'List Product');\n }", "public function listAction()\n {\t\n\t\t$this->removeSession();\n\t\t$this->verifySessionRights();\n\t\t$this->setActivity(\"List view\");\n $em = $this->getDoctrine()->getManager();\n $oRepClient = $em->getRepository('BoAdminBundle:Client');\n\t\t$nb_tc = $oRepClient->getTotal();\n\t\t//get page\n\t\t$page = $this->get('session')->get('page');\n\t\tif($page==null){\n\t\t\t$page=1;\n\t\t\t$this->get('session')->set('page',1);\n\t\t}\n\t\t//get number line per page\n\t\t$nb_cpp = $em->getRepository('BoAdminBundle:Param')->getParam(\"display_list_page_number\",1);\n\t\t$nb_pages = ceil($nb_tc/$nb_cpp);\n\t\t$offset = $page>0?($page-1) * $nb_cpp:0;\n\t\t$clients = $em->getRepository('BoAdminBundle:Client')->findBy(array(),array('id' => 'desc'),$nb_cpp,$offset);\n $form = $this->createForm('Bo\\AdminBundle\\Form\\ClientType', new Client());\n return $this->render('client/index.html.twig', array(\n 'clients' => $clients,\n\t\t\t'page' => $page, // forward current page to view,\n\t\t\t'nb_pages' => $nb_pages, //total number page,\n 'form' => $form->createView(),\n\t\t\t'total'=>$nb_tc, // record number.\n\t\t\t'nb_cpp' => $nb_cpp,// line's number to display\n\t\t\t'pm'=>\"contracts\",\n\t\t\t'sm'=>\"client\",\n ));\n }", "public function index()\n {\n return AcResource::collection(Ac::latest()->paginate()); //\n }", "public function executeList()\n {\n $this->setTemplate('list');\n }", "public function indexAction()\n {\n $books = Book::getAll();\n\n View::renderTemplate('Books/index.html', [\n 'books' => $books\n ]);\n }", "function listing() {\r\n\r\n }", "public function listar() {\n $rs = $this->model->listar();\n\n echo $this->toJson($rs);\n }", "public function index()\n {\n return BookResource::collection(Book::orderby('id')->get());\n }", "public function doRestList()\n {\n $this->outputHelper( \n 'Records Retrieved Successfully', \n $this->getModel()->with($this->nestedRelations)->filter($this->restFilter)->orderBy($this->restSort)->limit($this->restLimit)->offset($this->restOffset)->findAll(),\n $this->getModel()->with($this->nestedRelations)->filter($this->restFilter)->count()\n );\n\t}", "public function index()\n {\n $client = Client::paginate();\n return ClientResource::collection($client);\n }", "public function index()\n {\n return TagResource::collection(\n Tag::orderBy('name', 'ASC')->paginate(request('per_page', 10))\n );\n }", "public function _index(){\n\t $this->_list();\n\t}", "public function index()\n\t{\n\t\t$data['lists'] = $this->gallery_mdl->get_all();\n\t\t$this->template->set('title', 'Gallery');\n\t\t$this->template->render('template', 'list', $data);\n\t}", "function drush_restapi_list() {\n\n $resources = restapi_get_resources();\n $last_module = NULL;\n $rows = [\n [dt('Module'), dt('Path'), dt('Class')],\n ];\n\n foreach($resources as $resource) {\n if ($last_module != $resource->getModule()) {\n $module = $last_module = $resource->getModule();\n }\n else {\n $module = '';\n }\n $rows[] = [$module, $resource->getPath(), $resource->getClass()];\n }\n\n drush_print_table($rows, TRUE);\n drush_log(dt('Displaying !count total resources', [\n '!count' => count($resources),\n ]), 'ok');\n\n}", "public function index()\n {\n $this->booklist();\n }", "public function index()\n {\n //\n $accounts = accounts::paginate(15);\n\n //return the collection of employees as a resource\n return accountResource::collection($accounts);\n\n\n }", "public function index()\n {\n $items = Item::all();\n return view('items::list_items',compact('items'));\n }", "public function index()\n {\n // Get houses\n $houses = House::orderBy('created_at', 'desc')->paginate(self::PAGINATE);\n \n // Return collection of houses\n \n return HouseResource::collection($houses);\n }", "public function index()\n {\n $products = Product::paginate(6);\n return ProductResource::collection($products);\n }", "public function index() {\n $this->template->allFoundItems = Found::showAll();\n $this->template->display( 'index.html.php' );\n }", "public function indexAction() {\n $this->_forward('list');\n }", "public function index()\n {\n $data = Productcategory::paginate(10);\n\t\treturn ProductcategoryResource::Collection($data);\n }", "public function index()\n {\n return SongResource::collection(\\App\\Song::orderBy('created_at', 'desc')->get());\n }", "public function ListView()\n\t{\n\t\t\n\t\t// Requer permissão de acesso\n\t\t$this->RequirePermission(Usuario::$P_ADMIN,\n\t\t\t\t'SecureExample.LoginForm',\n\t\t\t\t'Autentique-se para acessar esta página',\n\t\t\t\t'Você não possui permissão para acessar essa página ou sua sessão expirou');\n\t\t\n\t\t//$usuario = Controller::GetCurrentUser();\n\t\t//$this->Assign('usuario',$usuario);\n\t\t$this->Render();\n\t}", "public function index () {\n permiss ( 'role.list' );\n\n $data = $this->entity\n ->orderBy('created_at', 'desc')->get();\n\n return new ModelResource($data);\n }", "public function index()\n {\n //get articless\n $articles = Article::paginate(15);\n\n //Return collection of article has a resource\n return ArticleResource::collection($articles);\n\n }", "public function showResources()\n {\n $resources = Resource::get();\n return view('resources', compact('resources'));\n }", "public function actionList() {\n header(\"Content-type: application/json\");\n $verb = $_SERVER[\"REQUEST_METHOD\"];\n\n if ($verb === 'GET') {\n echo \"{\\\"data\\\":\" . CJSON::encode(Donneur::model()->findAll()) . \"}\";\n } else if ($verb == 'POST') {\n if (Donneur::model()->exists('id' === $_POST['id'])) {\n $this->actionListUpdate($_POST);\n } else {\n $this->actionListPost();\n }\n } else if ($verb == 'DELETE') {\n $this->actionListDelete();\n }\n }", "public function list()\n {\n return $this->http->request(HttpMethods::GET, $this->endpoint);\n }", "public function indexAction(){\n $data = array(\n 'collection' => $this->model->getCollection(),\n \n ); \t\n return $this->getView($data);\n }", "public function indexAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n $entities = $em->getRepository('DiverPriceLisrBundle:Items')->findAll();\n\n return $this->render('DiverPriceLisrBundle:Items:index.html.twig', array(\n 'entities' => $entities,\n ));\n }", "public function actionIndex()\n {\n $dataProvider = new ActiveDataProvider([\n 'query' => Slaves::find(),\n ]);\n\n return $this->render('index', [\n 'dataProvider' => $dataProvider,\n ]);\n }", "public function listAction() {\n\t\t// Recogemos el repositorio\n\t\t$repository = $this->getDoctrine() ->getRepository('AppBundle:Product');\n\t\n\t\t// Recuperamos todos los productos.\n\t\t$products = $repository->findAll();\n\t\t// Pasamos a la plantilla el aray products\n\t\treturn $this->render('product/listActionProduct.html.twig', array( 'products' => $products));\n\t\n\t}", "public function actionList()\n {\n // get model\n $model = new $this->_model('search');\n $model->unsetAttributes();\n\n // set filter\n if (isset($_GET[$this->_model])) {\n $model->attributes = $_GET[$this->_model];\n }\n $model->u_cms_album_id = $_GET['album'];\n\n // search\n $dataProvider = $model->search(Yii::app()->language);\n // sort\n $sort = $dataProvider->getSort();\n // route\n $sort->route = $this->id . '/list';\n\n // pagination parameters\n $pagination = $dataProvider->getPagination();\n $pagination->route = $this->id . '/list';\n $pagination->pageSize = UInterfaceSetting::model()->getSettings($this->id . ':' . $this->module->id, Yii::app()->user->id)->page_size;\n $pagination->itemCount = $dataProvider->totalItemCount;\n\n // datas\n $datas = $dataProvider->getData();\n\n // related datas\n $relatedDatas = $this->_loadRelatedData();\n\n // template\n $template = isset($_REQUEST['partial']) ? 'list/_table' : 'list/main';\n\n $jsonParams = array();\n if (Yii::app()->request->isAjaxRequest) {\n // filters\n $filtersDatas = array();\n if (isset($_GET[$this->_model])) {\n $filtersDatas[$this->_model] = $_GET[$this->_model];\n }\n if (isset($_GET[$sort->sortVar])) {\n $filtersDatas[$sort->sortVar] = $_GET[$sort->sortVar];\n }\n\n $jsonParams = array(\n 'filters' => http_build_query($filtersDatas)\n );\n }\n\n $this->dynamicRender(\n $template,\n array(\n 'dataView' => new $this->crudComponents['listDataView'](\n $datas, $relatedDatas, $model, $sort, $pagination, $this\n )\n ),\n $jsonParams\n );\n }", "public function listAction()\n\t {\n\t\t$model = $this->_getModel();\n\t\t$result = $model->getLayouts();\t\n\t\t$page = (int)($this->_request->getParam('page')); \n\t\tif(count($result) > 0)\n\t\t{ \n\t\t\tGlobals::doPaging($result, $page, $this->view);\n\t\t}\n\t\t\t\t\n\t\t$this->view->page = $page;\n\t }", "public function index()\n {\n return view('listings.index')->with('listings', Listing::all());\n }", "public function get_index()\n\t{\n\t\t$pages = Page::recent_available()->paginate(30);\n\t\t$table = Cello\\Presenter\\Page::table($pages);\n\t\t$data = array(\n\t\t\t'eloquent' => $pages,\n\t\t\t'table' => $table,\n\t\t);\n\n\t\tSite::set('title', __('cello::title.pages.list'));\n\n\t\treturn View::make('cello::api.resources.index', $data);\n\t}", "public function index()\n {\n return ProductResource::collection(Product::latest()->paginate(10));\n }", "public function index()\n {\n $category = GalleryCategory::paginate(15);\n\n // return collection of category as a resource.\n return Resource::collection($category);\n }", "public function index()\n {\n //\n $news = News::latest()->paginate(18);\n\n return NewsResource::collection($news);\n }", "public function indexAction() {\n\t\t$list_info = Zend_Registry::get('list_info');\n if (!Engine_Api::_()->core()->hasSubject('list_listing')) {\n return $this->setNoRender();\n }\n \n $this->view->expiry_setting = Engine_Api::_()->list()->expirySettings();\n\n //GET SUBJECT\n $this->view->list = $list = Engine_Api::_()->core()->getSubject('list_listing');\n\n\t\t//GET CATEGORY TABLE\n\t\t$this->view->tableCategory = Engine_Api::_()->getDbTable('categories', 'list');\n\n //GET CATEGORIES NAME\n\t\t$this->view->category_name = $this->view->subcategory_name = $this->view->subsubcategory_name = '';\n\n\t\tif(!empty($list->category_id)) {\n\t\t\tif($this->view->tableCategory->getCategory($list->category_id))\n\t\t\t$this->view->category_name = $this->view->tableCategory->getCategory($list->category_id)->category_name;\n\n\t\t\tif(!empty($list->subcategory_id)) {\n\t\t\t\tif($this->view->tableCategory->getCategory($list->subcategory_id))\n\t\t\t\t$this->view->subcategory_name = $this->view->tableCategory->getCategory($list->subcategory_id)->category_name;\n\n\t\t\t\tif(!empty($list->subsubcategory_id)) {\n\t\t\t\t\tif($this->view->tableCategory->getCategory($list->subsubcategory_id))\n\t\t\t\t\t$this->view->subsubcategory_name = $this->view->tableCategory->getCategory($list->subsubcategory_id)->category_name;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n //GET LISTING TAGS\n $this->view->listTags = $list->tags()->getTagMaps();\n\n\t\t//GET OTHER DETAILS\n\t\t$this->view->list_description = Zend_Registry::get('list_descriptions');\n $this->view->addHelperPath(APPLICATION_PATH . '/application/modules/Fields/View/Helper', 'Fields_View_Helper');\n $this->view->fieldStructure = Engine_Api::_()->fields()->getFieldsStructurePartial($list);\n\t\tif(empty($list_info)){ return $this->setNoRender(); }\n }", "public function index()\n {\n return view('admin.resources.index');\n }", "public function index()\n {\n return $this->service->fetchResources(Author::class, 'authors');\n }", "public function doRestList() {\n\t\t$this->outputHelper ( 'Collections Retrieved Successfully', $this->getModel ()->with ( $this->nestedRelations )->filter ( $this->restFilter )->orderBy ( $this->restSort )->limit ( $this->restLimit )->offset ( $this->restOffset )->findAll (), $this->getModel ()->with ( $this->nestedRelations )->filter ( $this->restFilter )->count () );\n\t}" ]
[ "0.7446737", "0.73625076", "0.7300871", "0.72476006", "0.7163127", "0.7149414", "0.7131995", "0.7105663", "0.7102927", "0.7101388", "0.704981", "0.69946545", "0.69897777", "0.6935023", "0.690029", "0.68989694", "0.68925905", "0.68878543", "0.6866467", "0.6849924", "0.6829784", "0.68033314", "0.67971504", "0.6796001", "0.6786942", "0.6760321", "0.6743112", "0.6730776", "0.67266184", "0.67259544", "0.67259544", "0.67259544", "0.671818", "0.670783", "0.670644", "0.6704464", "0.6665842", "0.6663898", "0.6660563", "0.6660198", "0.6657512", "0.6654405", "0.6648237", "0.6620824", "0.6619237", "0.6618058", "0.66072917", "0.660077", "0.6600677", "0.6594786", "0.6587929", "0.65850085", "0.65824693", "0.6581521", "0.6577045", "0.6574634", "0.65729445", "0.65715027", "0.6570646", "0.6565125", "0.6563328", "0.6553843", "0.6553201", "0.6545921", "0.6537198", "0.6534121", "0.6533748", "0.65272135", "0.6526431", "0.6525868", "0.6519198", "0.65185314", "0.6517867", "0.65170157", "0.651509", "0.65070677", "0.6505637", "0.65033627", "0.6494597", "0.6492147", "0.64880013", "0.64871716", "0.6485315", "0.6485215", "0.64790684", "0.64767736", "0.64725083", "0.64709103", "0.64702755", "0.6466392", "0.64618254", "0.646148", "0.64601135", "0.6458744", "0.64543813", "0.64537513", "0.64530194", "0.6450726", "0.64492655", "0.6449169", "0.64466155" ]
0.0
-1
Show the form for creating a new resource.
public function create() { if(Auth::user()->user_type==1) { return view('backend.sections.create'); } else{ return redirect('welcome'); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function create()\n {\n return $this->showForm('create');\n }", "public function create()\n {\n return $this->showForm('create');\n }", "public function create()\n {\n return view('admin.resources.create');\n }", "public function create(){\n\n return view('resource.create');\n }", "public function create()\n\t{\n\t\treturn $this->showForm('create');\n\t}", "public function create()\n {\n return \"Display a form for creating a new catalogue\";\n }", "public function newAction()\n {\n $entity = new Resource();\n $current = $this->get('security.context')->getToken()->getUser();\n $entity->setMember($current);\n $form = $this->createCreateForm($entity);\n\n return array(\n 'nav_active'=>'admin_resource',\n 'entity' => $entity,\n 'form' => $form->createView(),\n );\n }", "public function create()\n {\n return view ('forms.create');\n }", "public function create ()\n {\n return view('forms.create');\n }", "public function create()\n\t{\n\t\treturn view('faith.form');\n\t}", "public function create(NebulaResource $resource): View\n {\n $this->authorize('create', $resource->model());\n\n return view('nebula::resources.create', [\n 'resource' => $resource,\n ]);\n }", "public function create()\n {\n return view(\"request_form.form\");\n }", "public function create()\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n /* Sets the view */\n if (view()->exists(\"admin.{$this->name}.create\")) {\n $view = \"admin.{$this->name}.create\";\n } else {\n $view = 'admin.includes.actions.create';\n }\n\n /* Show the form for creating a new resource. */\n return view($view)\n ->with('name', $this->name);\n }", "public function newAction()\n\t{\n\t\t$this->render( View::make( 'schools/form' , array(\n\t\t\t'title' => 'Ajouter une nouvelle &eacute;cole'\n\t\t) ) );\n\t}", "public function create()\n {\n return view($this->forms . '.create');\n }", "public function create()\n {\n return view('restful.add');\n }", "public function create()\n {\n $resource = (new AclResource())->AclResource;\n\n //dd($resource);\n return view('Admin.acl.role.form', [\n 'resource' => $resource\n ]);\n }", "public function create()\n {\n return view('admin.createform');\n }", "public function create()\n {\n return view('admin.forms.create');\n }", "public function create()\n {\n return view('backend.student.form');\n }", "public function newAction()\n {\n $breadcrumbs = $this->get(\"white_october_breadcrumbs\");\n $breadcrumbs->addItem('Inicio', $this->get('router')->generate('admin.homepage'));\n $breadcrumbs->addItem($this->entityDescription, $this->get(\"router\")->generate(\"admin.$this->entityName.index\"));\n $breadcrumbs->addItem('Nuevo');\n\n $entity = $this->getManager()->create();\n $form = $this->getForm($entity);\n\n return $this->render('AdminBundle:Default:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n 'metadata' => $this->getMetadata()\n ));\n }", "public function create()\n {\n return view('client.form');\n }", "public function create()\n {\n return view('Form');\n }", "public function create()\n {\n // Nos regresa la vista del formulario\n return view('project.form');\n }", "public function newAction(){\n \n $entity = new Resourceperson();\n $form = $this->createAddForm($entity);\n\n \n return $this->render('ABCRspBundle:rsp:add.html.twig',array('entity'=>$entity,'form'=> $form->createView()));\n }", "public function createForm()\n\t{\n\t\treturn view('post.new');\n\t}", "public function create()\n {\n return view('admin.form.create', ['form' => new Form]);\n }", "public function create()\n {\n return view('form');\n }", "public function create()\n {\n return view('form');\n }", "public function create()\n {\n return view('form');\n }", "public function create()\n {\n $title = $this->title;\n $subtitle = \"Adicionar cliente\";\n\n return view('admin.clients.form', compact('title', 'subtitle'));\n }", "public function create()\n {\n return view('backend.schoolboard.addform');\n }", "public function create()\n\t{\n\t\treturn view('info.forms.createInfo');\n\t}", "public function create()\n {\n return view('rests.create');\n }", "public function create()\n {\n //\n return view('form');\n }", "public function create()\n {\n return $this->showForm();\n }", "public function create()\n {\n return $this->showForm();\n }", "public function create()\n {\n return view(\"Add\");\n }", "public function create(){\n return view('form.create');\n }", "public function create()\n {\n // Show the page\n return view('admin.producer.create_edit');\n }", "public function create()\n {\n\n return view('control panel.student.add');\n\n }", "public function newAction() {\n\t\t\n\t\t$this->view->form = $this->getForm ( \"/admin/invoices/process\" );\n\t\t$this->view->title = $this->translator->translate(\"New Invoice\");\n\t\t$this->view->description = $this->translator->translate(\"Create a new invoice using this form.\");\n\t\t$this->view->buttons = array(array(\"url\" => \"#\", \"label\" => $this->translator->translate('Save'), \"params\" => array('css' => null,'id' => 'submit')),\r\n\t\t\t\t\t\t\t array(\"url\" => \"/admin/invoices/list\", \"label\" => $this->translator->translate('List'), \"params\" => array('css' => null)));\n\t\t$this->render ( 'applicantform' );\n\t}", "public function create()\n {\n $data['action'] = 'pengiriman.store';\n return view('pengiriman.form', $data);\n }", "public function create()\n {\n return $this->cView(\"form\");\n }", "public function newAction()\n {\n // Création de l'entité et du formulaire.\n $client = new Client();\n $formulaire = $this->createForm(new ClientType(), $client);\n \n \n \n // Génération de la vue.\n return $this->render('KemistraMainBundle:Client:new.html.twig',\n array('formulaire' => $formulaire->createView()));\n }", "public function create()\n {\n return view(\"dresses.form\");\n }", "public function create()\n\t{\n\t\treturn View::make('new_entry');\n\t}", "public function createAction()\n {\n// $this->view->form = $form;\n }", "public function create()\n {\n return view('bank_account.form', ['mode' => 'create']);\n }", "public function create()\n {\n return view('fish.form');\n }", "public function create()\n {\n return view('users.forms.create');\n }", "public function create()\n {\n $this->setFormFields($this->getCreateFormFields());\n $form = $this->getCreateForm();\n\n return view($this->getViewName('create'), [\n 'crudSlug' => $this->slug,\n 'form' => $form,\n ]);\n }", "public function create()\n\t{\n\t\treturn view('admin.estadoflete.new');\n\t}", "public function create()\n {\n $person = new Person;\n return view('contents.personform')->with(compact('person') );\n }", "public function createAction(){\n \t$this->view->placeholder('title')->set('Create');\n \t$this->_forward('form');\n }", "public function create()\n {\n Gate::authorize('app.products.create');\n\n return view('backend.products.form');\n }", "public function create()\n {\n return view('essentials::create');\n }", "public function create()\n {\n return view('student.add');\n }", "public function create()\n\t{\n\t\treturn view('loisier/create');\n\t}", "public function create()\n {\n return view('url.form');\n }", "public function newAction()\n {\n $entity = new Facture();\n $factureType = new FactureType();\n\t\t$factureType->setUser($this->get('security.context')->getToken()->getUser());\n $form = $this->createForm($factureType, $entity);\n\n return $this->render('chevPensionBundle:Facture:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "public function newAction()\n {\n $entity = new Chofer();\n $form = $this->createForm(new ChoferType(), $entity, ['user' => $this->getUser()]);\n\n return $this->render('ChoferesBundle:Chofer:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n 'css_active' => 'chofer',\n ));\n }", "public function create()\n\t{\n\t\treturn View::make('crebos.create');\n\t}", "public function create() : View\n {\n $fieldset = $this->menuFieldset();\n\n return $this->view('create', [\n 'title' => trans('addons.Aardwolf::titles.create'),\n 'data' => [],\n 'fieldset' => $fieldset->toPublishArray(),\n 'suggestions' => [],\n 'submitUrl' => route('aardwolf.postCreate')\n ]);\n }", "public function create()\n {\n return view('libro.create');\n }", "public function create()\n {\n return view('libro.create');\n }", "public function newAction()\n {\n $entity = new Species();\n $form = $this->createForm(new SpeciesType(), $entity);\n\n return $this->render('InfectBackendBundle:Species:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "public function create()\n {\n return view('crud/add'); }", "public function create()\n\t{\n\t\treturn View::make('supplier.create');\n\t}", "public function newAction()\n {\n $entity = new Company();\n $form = $this->createForm(new CompanyType(), $entity);\n\n return $this->render('SiteSavalizeBundle:Company:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "public function create()\n {\n return view(\"List.form\");\n }", "public function index_onCreateForm()\n\t{\n\t\tparent::create();\n\t\treturn $this->makePartial('create');\n\t}", "public function create()\n {\n //load create form\n return view('products.create');\n }", "public function create()\n {\n return view('article.addform');\n }", "public function create()\n {\n // Mengarahkan ke halaman form\n return view('buku.form');\n }", "public function create()\n\t{\n\t\t// load the create form (app/views/material/create.blade.php)\n\t\t$this->layout->content = View::make('material.create');\n\t}", "public function create()\n {\n return view('saldo.form');\n }", "public function create()\n\t\t{\n\t\t\treturn view('kuesioner.create');\n\t\t}", "public function view_create_questioner_form() {\n \t// show all questioner\n \t// send questioner to form\n \treturn view(\"create_questioner\");\n }", "public function newAction() {\n $entity = new Question();\n $form = $this->createCreateForm($entity);\n\n return $this->render('CdlrcodeBundle:Question:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "public function create()\n {\n $data['companies'] = Company::select('id', 'name')->where('status', 1)->orderBy('id', 'desc')->get();\n return view('admin.outlet.outlet_form', $data);\n }", "public function create()\n {\n return view('admin.inverty.add');\n }", "public function create()\n {\n return view('Libro.create');\n }", "public function create()\n {\n $title = trans('entry_mode.new');\n return view('layouts.create', compact('title'));\n }", "public function create()\n {\n $breadcrumb='car.create';\n return view('admin.partials.cars.form', compact('breadcrumb'));\n }", "public function create()\n {\n return view('admin.car.create');\n }", "public function create()\n {\n return view('admin.car.create');\n }", "public function create()\n {\n return view(\"familiasPrograma.create\");\n }", "public function create()\n\t{\n\t\treturn View::make('perusahaans.create');\n\t}", "public function create()\n {\n return view(\"create\");\n }", "public function create()\n\t{\n //echo 'show form';\n\t\treturn View::make('gaans.create');\n\t}", "public function create()\n {\n $title = trans('dormitorybed.new');\n $this->generateParams();\n\n return view('layouts.create', compact('title'));\n }", "public function create()\n {\n return view('forming');\n }", "public function formNew() {\n $this->data->options = array(\n 'RJ' => 'Rio de Janeiro',\n 'MG' => 'Minas Gerais',\n 'SP' => 'São Paulo',\n 'ES' => 'Espírito Santo',\n 'BA' => 'Bahia',\n 'RS' => 'Rio Grande do Sul'\n );\n $this->data->action = \"@exemplos/pessoa/save\";\n $this->render();\n }", "public function create()\n {\n \t\n \treturn view('supplies.create');\n\n }", "public function create()\n {\n $page_title = \"Add New\";\n return view($this->path.'create', compact('page_title'));\n }", "public function createAction()\n {\n if ($form = $this->processForm()) {\n $this->setPageTitle(sprintf($this->_('New %s...'), $this->getTopic()));\n $this->html[] = $form;\n }\n }", "public function create()\n {\n // not sure what to do with the form since im\n // using ame partial for both create and edit\n return view('plants.create')->with('plant', new Plant);\n }", "public function create() {\n\t\t$title = 'Create | Show';\n\n\t\treturn view('admin.show.create', compact('title'));\n\t}", "public function newAction(){\n\t\t$entity = new Reserva();\n\t\t$form = $this->createCreateForm($entity);\n\n\t\treturn $this->render('LIHotelBundle:Reserva:new.html.twig', array(\n\t\t\t'entity' => $entity,\n\t\t\t'form' => $form->createView(),\n\t\t));\n\t}", "public function create()\n {\n return view('student::students.student.create');\n }" ]
[ "0.75934863", "0.75934863", "0.7587591", "0.75782615", "0.75711566", "0.74992937", "0.74349296", "0.7432467", "0.7387912", "0.7351958", "0.73380226", "0.73111826", "0.72957826", "0.72812104", "0.72734547", "0.7242778", "0.72294843", "0.7225723", "0.718609", "0.71780044", "0.7173978", "0.71492267", "0.71434265", "0.7143343", "0.71356934", "0.7127626", "0.7122704", "0.71151215", "0.71151215", "0.71151215", "0.711137", "0.7093674", "0.708441", "0.70805633", "0.7079313", "0.70560336", "0.70560336", "0.705535", "0.7038748", "0.7038717", "0.70355713", "0.7033314", "0.70298624", "0.70262384", "0.7025372", "0.70192045", "0.7017566", "0.70037806", "0.70029014", "0.69999987", "0.6995955", "0.6994461", "0.69932437", "0.698907", "0.6985915", "0.69654584", "0.69652516", "0.6956021", "0.6951258", "0.6950627", "0.69471824", "0.69432425", "0.6941303", "0.69406337", "0.6937103", "0.6937103", "0.69363457", "0.6934366", "0.6931313", "0.6927307", "0.6926027", "0.6922591", "0.69176334", "0.69158953", "0.6911744", "0.6910005", "0.6909594", "0.6907657", "0.6902698", "0.6900764", "0.69007087", "0.6900391", "0.68942374", "0.68933", "0.68929493", "0.68912417", "0.68912417", "0.68911326", "0.6888626", "0.6887399", "0.68857414", "0.6884495", "0.6881287", "0.6878567", "0.6875623", "0.687334", "0.68722713", "0.6870009", "0.68697596", "0.6869062", "0.6868769" ]
0.0
-1
Store a newly created resource in storage.
public function store(Request $request) { $input = Input::all(); $validation=Validator::make($input,Section::$rules); if($validation->fails()) { return(Redirect::back()->withErrors($validation)->withInput()); } $data = [ 'name'=>$request ->name, 'description'=>$request->description, ]; $sections=Section::create($data); return(redirect('sections')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function store($data, Resource $resource);", "public function store()\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n if (method_exists($this, 'storeValidations')) {\n $this->request->validate($this->storeValidations());\n }\n\n /* Create a new resource */\n $resource = $this->model::create(Input::all());\n\n /* Redirect to newly created resource page */\n return redirect()\n ->route($this->name . '.edit', $resource->id)\n ->with(\n 'success',\n Lang::has($this->name . '.resource-created') ?\n $this->name . '.resource-created' :\n 'messages.alert.resource-created'\n );\n }", "public function store(CreateStorageRequest $request)\n {\n $this->storage->create($request->all());\n\n return redirect()->route('admin.product.storage.index')\n ->withSuccess(trans('core::core.messages.resource created', ['name' => trans('product::storages.title.storages')]));\n }", "public function createStorage();", "public function store(StoreStorage $request)\n {\n $storage = Storage::create($request->all());\n $request->session()->flash('alert-success', 'Запись успешно добавлена!');\n return redirect()->route('storage.index');\n }", "public function saveShopifyResource() {\n if (is_null($this->getShopifyId())) { // if there is no id...\n $this->createShopifyResource(); // create a new resource\n } else { // if there is an id...\n $this->updateShopifyResource(); // update the resource\n }\n }", "public function store(Request $request, NebulaResource $resource): RedirectResponse\n {\n $this->authorize('create', $resource->model());\n\n $validated = $request->validate($resource->rules(\n $resource->createFields()\n ));\n\n $resource->storeQuery($resource->model(), $validated);\n\n $this->toast(__(':Resource created', [\n 'resource' => $resource->singularName(),\n ]));\n\n return redirect()->back();\n }", "function storeAndNew() {\n $this->store();\n }", "public function store(Request $request)\n {\n $currentUser = JWTAuth::parseToken()->authenticate();\n $validator = Validator::make($request->all(), [\n 'content' => 'required|string',\n 'image_link' => 'sometimes|url',\n ]);\n\n if ($validator->fails()) {\n return APIHandler::response(0, $validator->errors(), [], 400);\n }\n\n $resource = new Resource;\n $resource->user_id = $currentUser['id'];\n $resource->title = $request->get('title');\n $resource->content = $request->get('content');\n $resource->image_link = $request->get('imageLink');\n $resource->video_link = $request->get('videoLink');\n $resource->file_link = $request->get('fileLink');\n $resource->audio_link = $request->get('audioLink');\n $resource->tags = collect($request->get('tags'))->implode('text', ',');\n $resource->is_public = 0;\n $resource->save();\n $data['resource'] = $resource;\n\n if ($request->get('programId')) {\n $this->addToProgram($resource, $request->programId);\n // event(new NewLearningPathResourcePublished($resource, $invitee));\n }\n\n User::find($currentUser['id'])->increment('points', 2);\n\n return APIHandler::response(1, \"New resource has been created\", $data, 201);\n }", "public function store()\n {\n if (!$this->id) { // Insert\n $this->insertObject();\n } else { // Update\n $this->updateObject();\n }\n }", "public function store()\n\t{\n\t\t\n\t\t//\n\t}", "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}" ]
[ "0.7285655", "0.71443397", "0.7133207", "0.6641532", "0.6621311", "0.65678823", "0.6525738", "0.65086055", "0.6448411", "0.6374508", "0.637246", "0.6364561", "0.6364561", "0.6364561", "0.634122", "0.634122", "0.634122", "0.634122", "0.634122", "0.634122", "0.634122", "0.634122", "0.634122", "0.634122", "0.634122", "0.634122", "0.634122", "0.634122", "0.634122", "0.634122", "0.634122", "0.634122", "0.634122", "0.634122", "0.634122", "0.634122", "0.634122", "0.634122", "0.634122", "0.634122", "0.634122", "0.634122", "0.634122", "0.634122", "0.634122", "0.634122", "0.634122", "0.634122", "0.634122", "0.634122", "0.634122", "0.634122", "0.634122", "0.634122", "0.634122", "0.634122", "0.634122", "0.634122", "0.634122", "0.634122", "0.634122", "0.634122", "0.634122", "0.634122", "0.634122", "0.634122", "0.634122", "0.634122", "0.634122", "0.634122", "0.634122", "0.634122", "0.634122", "0.634122", "0.634122", "0.634122", "0.634122", "0.634122", "0.634122", "0.634122", "0.634122", "0.634122", "0.634122", "0.634122", "0.634122", "0.634122", "0.634122", "0.634122", "0.634122", "0.634122", "0.634122", "0.634122", "0.634122", "0.634122", "0.634122", "0.634122", "0.634122", "0.634122", "0.634122", "0.634122", "0.634122" ]
0.0
-1