100+ results results for 'php getopt repo:mercysam/zfs' (587 ms)
2 +----------------------------------------------------------------------+ 3 | HipHop for PHP | 4 +----------------------------------------------------------------------+ 6 +----------------------------------------------------------------------+ 7 | This source file is subject to version 3.01 of the PHP license, | 8 | that is bundled with this package in the file LICENSE, and is | 9 | available through the world-wide-web at the following url: | 10 | http://www.php.net/license/3_01.txt | 11 | If you did not receive a copy of the PHP license and are unable to | 12 | obtain it through the world-wide-web, please send a note to | 13 | license@php.net so we can mail you a copy immediately. | 14 +----------------------------------------------------------------------+ 16 17#ifndef incl_HPHP_FUNCTION_SCOPE_H_ 18#define incl_HPHP_FUNCTION_SCOPE_H_catalog.php https://gitlab.com/alexprowars/bitrix | PHP | 621 lines
1<?php 2/** 106 // ok then, lets see in views history 107 //if(\COption::GetOptionString("sale", "encode_fuser_id", "N") == "Y") 108 if (!is_numeric($basketItem->getFUserId()))TextArea.php https://gitlab.com/ElvisAns/tiki | PHP | 377 lines
1<?php 2 160 161 $cols = $this->getOption('width'); 162 $rows = $this->getOption('height'); 164 $data = [ 165 'toolbar' => $this->getOption('toolbars') ? 'y' : 'n', 166 'cols' => ($cols >= 1) ? $cols : 80, 170 171 if ($this->getOption('wordmax')) { 172 $data['keyup'] = "wordCount({$this->getOption('wordmax')}, this, 'cpt_{$this->getConfiguration('fieldId')}', '" . addcslashes(tr('Word Limit Exceeded'), "'") . "')"; 172 $data['keyup'] = "wordCount({$this->getOption('wordmax')}, this, 'cpt_{$this->getConfiguration('fieldId')}', '" . addcslashes(tr('Word Limit Exceeded'), "'") . "')"; 173 } elseif ($this->getOption('max')) { 174 $data['keyup'] = "charCount({$this->getOption('max')}, this, 'cpt_{$this->getConfiguration('fieldId')}', '" . addcslashes(tr('Character Limit Exceeded'), "'") . "')"; 176 $data['element_id'] = 'area_' . uniqid(); 177 if ($firstTime && $this->getOption('wysiwyg') === 'y') { // wysiwyg 178 $is_html = '<input type="hidden" id="allowhtml" value="1" />';DbDumpCommand.php https://gitlab.com/geeta7/drupal | PHP | 430 lines
1<?php 2 58 59 // If not explicitly set, disable ANSI which will break generated php. 60 if ($input->hasParameterOption(['--ansi']) !== TRUE) { 63 64 $schema_tables = $input->getOption('schema-only'); 65 $schema_tables = explode(',', $schema_tables); 76 * Table patterns for which to only dump the schema, no data. 77 * @return string The PHP script. 78 * The PHP script. 374 * @return string 375 * The template for the generated PHP script. 376 */ 377 protected function getTemplate() { 378 // The template contains an instruction for the file to be ignored by PHPCS. 379 // This is because the files can be huge and coding standards areRouteCollectionBuilderTest.php https://gitlab.com/susmitha.plts/photographer_portfolio | PHP | 324 lines
1<?php 2 18 19class RouteCollectionBuilderTest extends \PHPUnit_Framework_TestCase 20{ 197 $this->assertEquals('\d+', $actualListRoute->getRequirement('id')); 198 $this->assertTrue($actualListRoute->getOption('expose')); 199 // none of these should be overridden 201 $this->assertEquals('json|xml', $actualListRoute->getRequirement('_format')); 202 $this->assertTrue($actualListRoute->getOption('fooBar')); 203 $this->assertEquals('example.com', $actualListRoute->getHost()); 209 $this->assertEquals('fr|en', $actualListRoute->getRequirement('_locale')); 210 $this->assertTrue($actualListRoute->getOption('niceRoute')); 211AbstractCommand.php https://gitlab.com/ViniciusP/project-games | PHP | 341 lines
1<?php 2/** 50 */ 51 const DEFAULT_MIGRATION_TEMPLATE = '/../../Migration/Migration.template.php.dist'; 52 55 */ 56 const DEFAULT_SEED_TEMPLATE = '/../../Seed/Seed.template.php.dist'; 57 178 { 179 $configFile = $input->getOption('configuration'); 180 199 200 $possibleConfigFiles = array('phinx.php', 'phinx.json', 'phinx.yml'); 201 foreach ($possibleConfigFiles as $configFile) { 223 224 $parser = $input->getOption('parser'); 225Generator.php https://gitlab.com/link233/bootmw | PHP | 365 lines
1<?php 2 110 111 $sourceMapUrl = $this->getOption('sourceMapURL'); 112 $sourceMapFilename = $this->getOption('sourceMapFilename'); 113 $sourceMapContent = $this->generateJson(); 114 $sourceMapWriteTo = $this->getOption('sourceMapWriteTo'); 115 167 168 $rootpath = $this->getOption('sourceMapRootpath'); 169 $basePath = $this->getOption('sourceMapBasepath'); 222 // An optional name of the generated code that this source map is associated with. 223 $file = $this->getOption('sourceMapFilename'); 224 if( $file ){ 229 // An optional source root, useful for relocating source files on a server or removing repeated values in the 'sources' entry. This value is prepended to the individual entries in the 'source' field. 230 $root = $this->getOption('sourceRoot'); 231 if( $root ){imageupload.php https://gitlab.com/haque.mdmanzurul/nga-loyaltymatters | PHP | 287 lines
12//set objectid for migxObjectMediaPath - snippet 13$co_id = $modx->getOption('co_id', $scriptProperties, ''); 14if (!empty($co_id)) { 52 $thumbY = $modx->getOption('thumbY', $sourceProperties, '100'); 53 $resizeConfigs = $modx->getOption('resizeconfigs', $sourceProperties, ''); 54 $resizeConfigs = $modx->fromJson($resizeConfigs); 55 $thumbscontainer = $modx->getOption('thumbscontainer', $sourceProperties, 'thumbs/'); 56 $imageExtensions = $modx->getOption('imageExtensions', $sourceProperties, 'jpg,jpeg,png,gif,JPG'); 57 $imageExtensions = explode(',', $imageExtensions); 57 $imageExtensions = explode(',', $imageExtensions); 58 $uniqueFilenames = $modx->getOption('uniqueFilenames', $sourceProperties, false); 59 $onImageUpload = $modx->getOption('onImageUpload', $sourceProperties, ''); 106 107 include_once AIU_BASE_PATH . 'includes/PhpThumbFactory/ThumbLib.inc.php'; 108 // delete uploaded imagesiblock_admin.php https://gitlab.com/Rad1calDreamer/honey | PHP | 484 lines
1<? 2require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_before.php"); 3CModule::IncludeModule("iblock"); 3CModule::IncludeModule("iblock"); 4require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/iblock/prolog.php"); 5IncludeModuleLangFile(__FILE__); 8if($arIBTYPE===false) 9 LocalRedirect("/bitrix/admin/iblock_type_admin.php?lang=".LANGUAGE_ID); 10 114 { 115 if(COption::GetOptionString("iblock", "event_log_iblock", "N") === "Y") 116 { 248 { 249 $row =& $lAdmin->AddRow($f_ID, $dbrs, 'iblock_edit.php?ID='.$f_ID.'&type='.htmlspecialcharsbx($type).'&lang='.LANGUAGE_ID.'&admin='.($_REQUEST["admin"]=="Y"? "Y": "N"), GetMessage("IBLOCK_ADM_TO_EDIT")); 250 }yandex_setup.php https://gitlab.com/Rad1calDreamer/honey | PHP | 463 lines
2//<title>Yandex</title> 3IncludeModuleLangFile($_SERVER['DOCUMENT_ROOT'].'/bitrix/modules/catalog/export_setup_templ.php'); 4 8 9$strAllowExportPath = COption::GetOptionString("catalog", "export_default_path", "/bitrix/catalog_export/"); 10 134 "TITLE"=>GetMessage("CATI_ADM_RETURN_TO_LIST_TITLE"), 135 "LINK"=>"/bitrix/admin/cat_export_setup.php?lang=".LANGUAGE_ID, 136 "ICON"=>"btn_list", 198 ), 199 "ClearSelected(); BX('id_ifr').src='/bitrix/tools/catalog_export/yandex_util.php?IBLOCK_ID=0&'+'".bitrix_sessid_get()."';", 200 "ClearSelected(); BX('id_ifr').src='/bitrix/tools/catalog_export/yandex_util.php?IBLOCK_ID='+this[this.selectedIndex].value+'&'+'".bitrix_sessid_get()."';", 400 <td width="60%"> 401 <b><? echo htmlspecialcharsbx(COption::GetOptionString("catalog", "export_default_path", "/bitrix/catalog_export/"));?></b><input type="text" name="SETUP_FILE_NAME" value="<?echo (strlen($SETUP_FILE_NAME)>0) ? htmlspecialcharsbx($SETUP_FILE_NAME) : "yandex_".mt_rand(0, 999999).".php" ?>" size="50" /> 402 </td>TranslationDebugCommand.php https://gitlab.com/Isaki/le331.fr | PHP | 268 lines
1<?php 2 59 60 <info>php %command.full_name% en AcmeDemoBundle</info> 61 63 64 <info>php %command.full_name% --domain=messages en AcmeDemoBundle</info> 65 67 68 <info>php %command.full_name% --only-missing en AcmeDemoBundle</info> 69 71 72 <info>php %command.full_name% --only-unused en AcmeDemoBundle</info> 73 75 76 <info>php %command.full_name% en</info> 77widget-output.js https://gitlab.com/Blueprint-Marketing/cdnjs | JavaScript | 276 lines
3 * Modified from: 4 * HTML Table to CSV: http://www.kunalbabre.com/projects/table2CSV.php (License unknown?) 5 * Download-File-JS: https://github.com/PixelsCommander/Download-File-JS (http://www.apache.org/licenses/LICENSE-2.0) 34 .on(output.event, function(){ 35 // explicitly use table.config.widgetOptions because we want 36 // the most up-to-date values; not the "wo" from initialization 36 // the most up-to-date values; not the "wo" from initialization 37 output.process(c, c.widgetOptions); 38 }); 42 var $this, row, col, rowlen, collen, txt, 43 wo = c.widgetOptions, 44 tmpRow = [],AssociatedProducts.php https://gitlab.com/svillegas/magento2 | PHP | 449 lines
1<?php 2/** 21/** 22 * @SuppressWarnings(PHPMD.CouplingBetweenObjects) 23 */ 253 ]; 254 foreach ($attribute->getOptions() as $option) { 255 if (!empty($option->getValue())) {list.php https://gitlab.com/ricardosanchez/prueba | PHP | 382 lines
1<?php 2/** 80 return '<span id="' . $this->id . '" ' . $class . '>' . 81 htmlspecialchars(self::getOptionName($this->getOptions(), $this->value), ENT_COMPAT, 'UTF-8') . 82 '</span>'; 129 130 $html .= htmlspecialchars(self::getOptionName($this->getOptions(), $this->value), ENT_COMPAT, 'UTF-8'); 131 151 */ 152 public static function getOptionName($data, $selected = null, $optKey = 'value', $optText = 'text') 153 { 201 */ 202 protected function getOptions() 203 {walletview.cpp https://gitlab.com/Ltaimao/bitcoin | C++ | 309 lines
2// Distributed under the MIT/X11 software license, see the accompanying 3// file COPYING or http://www.opensource.org/licenses/mit-license.php. 4 152 153 emit incomingTransaction(date, walletModel->getOptionsModel()->getDisplayUnit(), amount, type, address); 154}Application.php https://gitlab.com/rsilveira1987/Expresso | PHP | 374 lines
18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: Application.php 10020 2009-08-18 14:34:09Z j.fischer@metaways.de $ 20 */ 60 * 61 * Initialize application. Potentially initializes include_paths, PHP 62 * settings, and bootstrap class. 72 73 require_once 'Zend/Loader/Autoloader.php'; 74 $this->_autoloader = Zend_Loader_Autoloader::getInstance(); 127 if (!empty($options['phpsettings'])) { 128 $this->setPhpSettings($options['phpsettings']); 129 } 169 */ 170 public function getOptions() 171 {SupplyForm.php https://gitlab.com/mnomansheikh/ampuz | PHP | 363 lines
1<?php 2namespace Supply\Form; 111 'label' => 'Company', 112 //'value_options' => $this->getOptionsForSelect(), 113 'value_options' => $Companies, 127 'label' => 'Country', 128 //'value_options' => $this->getOptionsForSelect(), 129 'value_options' => $Regions, 141 'label' => 'Country', 142 //'value_options' => $this->getOptionsForSelect(), 143 'value_options' => $Countries, 156 'label' => 'Frequency', 157 //'value_options' => $this->getOptionsForSelect(), 158 'value_options' => $Frequencies, 282 'label' => 'Type', 283 //'value_options' => $this->getOptionsForSelect(), 284 'value_options' => $Indicators,HealthForm.php https://gitlab.com/mnomansheikh/ampuz | PHP | 363 lines
1<?php 2namespace Health\Form; 111 'label' => 'Company', 112 //'value_options' => $this->getOptionsForSelect(), 113 'value_options' => $Companies, 127 'label' => 'Country', 128 //'value_options' => $this->getOptionsForSelect(), 129 'value_options' => $Regions, 141 'label' => 'Country', 142 //'value_options' => $this->getOptionsForSelect(), 143 'value_options' => $Countries, 156 'label' => 'Frequency', 157 //'value_options' => $this->getOptionsForSelect(), 158 'value_options' => $Frequencies, 282 'label' => 'Type', 283 //'value_options' => $this->getOptionsForSelect(), 284 'value_options' => $Indicators,unpack.php https://gitlab.com/milo-ft/osTicket | PHP | 270 lines
54 # Read the main.inc.php script 55 $bootstrap_php = $this->destination . '/bootstrap.php'; 56 $lines = explode("\n", file_get_contents($bootstrap_php)); 75 } 76 if (!file_put_contents($bootstrap_php, implode("\n", $lines))) 77 die("Unable to configure location of INCLUDE_DIR in bootstrap.php\n"); 157 $dryrun = $this->getOption('dry-run', false); 158 $verbose = $this->getOption('verbose') || $dryrun; 159 $force = $this->getOption('force', false); 206 $pipes = array(); 207 $php = proc_open('php', array( 208 0 => array('pipe', 'r'), 211 212 fwrite($pipes[0], "<?php 213 include '{$this->destination}/bootstrap.php';XmlDescriptor.php https://gitlab.com/jjpa2018/dashboard | PHP | 247 lines
1<?php 2 39 $definitionXML->appendChild($optionsXML = $dom->createElement('options')); 40 foreach ($definition->getOptions() as $option) { 41 $this->appendDocument($optionsXML, $this->getInputOptionDocument($option));ConfigHandler.php https://gitlab.com/reasonat/test8 | PHP | 280 lines
1<?php 2 89 // this item. 90 $relationships = $executable->display_handler->getOption('relationships'); 91 $relationship_options = array();ListCommand.php https://gitlab.com/techniconline/kmc | PHP | 278 lines
1<?php 2 115 116 $method = $input->getOption('long') ? 'writeLong' : 'write'; 117 124 // TODO: something cleaner than this :-/ 125 if ($input->getOption('long')) { 126 $output->startPaging(); 132 133 if ($input->getOption('long')) { 134 $output->stopPaging(); 233 // grep, invert and insensitive 234 if (!$input->getOption('grep')) { 235 foreach (array('invert', 'insensitive') as $option) { 235 foreach (array('invert', 'insensitive') as $option) { 236 if ($input->getOption($option)) { 237 throw new RuntimeException('--' . $option . ' does not make sense without --grep');StatsTest.php https://gitlab.com/Blueprint-Marketing/solr-power | PHP | 360 lines
1<?php 2/** 37 38class StatsTest extends \PHPUnit_Framework_TestCase 39{ 108 // check option forwarding 109 $fieldOptions = $field->getOptions(); 110 $this->assertEquals(ConfigHandler.php https://gitlab.com/andecode/theme-spark | PHP | 282 lines
1<?php 2 91 // this item. 92 $relationships = $executable->display_handler->getOption('relationships'); 93 $relationship_options = [];site_speed.php https://gitlab.com/alexprowars/bitrix | PHP | 297 lines
5 */ 6require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_before.php"); 7require_once($_SERVER["DOCUMENT_ROOT"].BX_ROOT."/modules/main/prolog.php"); 7require_once($_SERVER["DOCUMENT_ROOT"].BX_ROOT."/modules/main/prolog.php"); 8define("HELP_FILE", "settings/site_speed.php"); 9 23$APPLICATION->SetTitle(Loc::getMessage("MAIN_SITE_SPEED_TITLE")); 24require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_after.php"); 25 100 if (\Bitrix\Main\ModuleManager::isModuleInstalled("perfmon")): 101 $mark = (double)COption::GetOptionString("perfmon", "mark_php_page_rate", ""); 102 ?> 102 ?> 103 <a href="/bitrix/admin/perfmon_panel.php?lang=<?=LANGUAGE_ID?>" class="site-speed-perf-label"><?=Loc::getMessage("MAIN_SITE_SPEED_PERF")?></a>:<span class="site-speed-perf-value"><?if ($mark > 0):?><?=$mark?><?else:?><?=Loc::getMessage("MAIN_SITE_SPEED_PERF_NO_RES")?><?endif?></span> 104 <?endif?>guest.php https://gitlab.com/neuser/bitrix-core | PHP | 365 lines
1<?php 2class CAllGuest 237 case "USER": 238 if(COption::GetOptionString("statistic", "dbnode_id") <= 0) 239 { 251 case "USER_ID": 252 if(COption::GetOptionString("statistic", "dbnode_id") <= 0) 253 {Liquid.php https://gitlab.com/Skull3x/ClearSky | PHP | 437 lines
1<?php 2namespace pocketmine\block; 251 }elseif($decay >= 0 and ($decay === 0 or !$bottomBlock->canBeFlowedInto())){ 252 $flags = $this->getOptimalFlowDirections(); 253 349 350 private function getOptimalFlowDirections(){ 351 if($this->temporalVector === null){wp_loaded.php https://gitlab.com/najomie/fit-hippie | PHP | 281 lines
1<?php 2 23 /* Check if cron is manualy, then execute import */ 24 $cron_job_key = PMXI_Plugin::getInstance()->getOption('cron_job_key'); 25 149 150 if ( $import->processing == 1 and (time() - strtotime($import->registered_on)) > ((PMXI_Plugin::getInstance()->getOption('cron_processing_time_limit')) ? PMXI_Plugin::getInstance()->getOption('cron_processing_time_limit') : 120)){ // it means processor crashed, so it will reset processing to false, and terminate. Then next run it will work normally. 151 $import->set(array( 172 173 $log_storage = (int) PMXI_Plugin::getInstance()->getOption('log_storage'); 174CaptureCache.php https://gitlab.com/faisaliqbal/mytripsorter | PHP | 387 lines
1<?php 2/** 31 32 // http://php.net/manual/function.ob-start.php 33 // -> If output_callback returns FALSE original input is sent to the browser. 48 { 49 $publicDir = $this->getOptions()->getPublicDir(); 50 if ($publicDir === null) { 74 { 75 $publicDir = $this->getOptions()->getPublicDir(); 76 if ($publicDir === null) { 107 { 108 $publicDir = $this->getOptions()->getPublicDir(); 109 if ($publicDir === null) { 133 { 134 $publicDir = $this->getOptions()->getPublicDir(); 135 if ($publicDir === null) {TextDescriptor.php https://gitlab.com/hoangduys4k5/laravelproject | PHP | 339 lines
1<?php 2 96 { 97 $totalWidth = $this->calculateTotalWidthForOptions($definition->getOptions()); 98 foreach ($definition->getArguments() as $argument) { 110 111 if ($definition->getArguments() && $definition->getOptions()) { 112 $this->writeText("\n"); 114 115 if ($definition->getOptions()) { 116 $laterOptions = []; 118 $this->writeText('<comment>Options:</comment>', $options); 119 foreach ($definition->getOptions() as $option) { 120 if (\strlen($option->getShortcut() ?? '') > 1) { 155 $definition = $command->getDefinition(); 156 if ($definition->getOptions() || $definition->getArguments()) { 157 $this->writeText("\n");ShellInput.php https://gitlab.com/nmhieucoder/laravel_tintuc | PHP | 336 lines
1<?php 2 207 if (\strlen($name) > 1) { 208 if ($this->definition->hasShortcut($name[0]) && $this->definition->getOptionForShortcut($name[0])->acceptValue()) { 209 // an option with a value (with no space) 233 234 $option = $this->definition->getOptionForShortcut($name[$i]); 235 if ($option->acceptValue()) { 256 // if no value after "=" then substr() returns "" since php7 only, false before 257 // see http://php.net/manual/fr/migration70.incompatible.php#119151 258 if (\PHP_VERSION_ID < 70000 && false === $value) { 282 283 $this->addLongOption($this->definition->getOptionForShortcut($shortcut)->getName(), $value); 284 } 299 300 $option = $this->definition->getOption($name); 301index.htm https://gitlab.com/mnomansheikh/ampuz | HTML | 260 lines
12$(function () { 13 $.getJSON('http://www.highcharts.com/samples/data/jsonp.php?filename=usdeur.json&callback=?', function (data) { 14 var detailChart; 193 stops: [ 194 [0, Highcharts.getOptions().colors[0]], 195 [1, 'rgba(255,255,255,0)']ArgvInput.php https://gitlab.com/milton2913/myBlog | PHP | 347 lines
1<?php 2 102 if (strlen($name) > 1) { 103 if ($this->definition->hasShortcut($name[0]) && $this->definition->getOptionForShortcut($name[0])->acceptValue()) { 104 // an option with a value (with no space) 128 129 $option = $this->definition->getOptionForShortcut($name[$i]); 130 if ($option->acceptValue()) { 204 205 $this->addLongOption($this->definition->getOptionForShortcut($shortcut)->getName(), $value); 206 } 221 222 $option = $this->definition->getOption($name); 223InstallCommandTest.php https://gitlab.com/crazybutterfly815/magento2 | PHP | 270 lines
1<?php 2/** 16/** 17 * @SuppressWarnings(PHPMD.CouplingBetweenObjects) 18 */ 18 */ 19class InstallCommandTest extends \PHPUnit_Framework_TestCase 20{ 26 /** 27 * @var \PHPUnit_Framework_MockObject_MockObject|InstallCommand 28 */ 31 /** 32 * @var \PHPUnit_Framework_MockObject_MockObject|\Magento\Setup\Model\InstallerFactory 33 */ 36 /** 37 * @var \PHPUnit_Framework_MockObject_MockObject|\Magento\Setup\Model\Installer 38 */ClientInterface.php https://gitlab.com/ntphuc/BackendFeedy | PHP | 230 lines
1<?php 2 181 */ 182 public function getOptions(); 183chunk.php https://gitlab.com/hschoenburg/tlworks2 | PHP | 392 lines
1<?php 2 2 3include __DIR__ . "/XmlStreamReader/autoload.php"; 4 83 84 $this->options['chunkSize'] *= PMXI_Plugin::getInstance()->getOption('chunk_size'); 85 111 112 if ( PMXI_Plugin::getInstance()->getOption('force_stream_reader') ) 113 { 234 else 235 $path = 'php://filter/read=preprocessxml/resource=' . $this->file; 236 } 368 369class preprocessXml_filter extends php_user_filter { 370controller.php https://gitlab.com/koodersmiikka/operaatio-terveys | PHP | 315 lines
1<?php 2 159 foreach ($this->options as $opt) { 160 $v1 = array($newBID, $opt->getOptionName(), $opt->getOptionDisplayOrder()); 161 $q1 = "INSERT INTO btSurveyOptions (bID, optionName, displayOrder) VALUES (?, ?, ?)"; 163 164 $v2 = array($opt->getOptionID()); 165 $newOptionID = $db->Insert_ID();ajax.php https://gitlab.com/Rad1calDreamer/honey | PHP | 321 lines
15 16require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_before.php"); 17 25 26include(dirname(__FILE__)."/functions.php"); 27 248 249 $basket->weightKoef = htmlspecialcharsbx(COption::GetOptionString('sale', 'weight_koef', 1, SITE_ID)); 250 $basket->weightUnit = htmlspecialcharsbx(COption::GetOptionString('sale', 'weight_unit', "", SITE_ID)); 290 291 $basket->weightKoef = htmlspecialcharsbx(COption::GetOptionString('sale', 'weight_koef', 1, SITE_ID)); 292 $basket->weightUnit = htmlspecialcharsbx(COption::GetOptionString('sale', 'weight_unit', "", SITE_ID)); 319header('Content-Type: application/json; charset='.LANG_CHARSET); 320echo CUtil::PhpToJSObject($arRes); 321die();city_list.php https://gitlab.com/alexprowars/bitrix | PHP | 324 lines
1<?php 2require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_before.php"); 2require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_before.php"); 3require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/statistic/prolog.php"); 4/** @var CMain $APPLICATION */ 4/** @var CMain $APPLICATION */ 5include($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/statistic/colors.php"); 6require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/img.php"); 86 87 $width = COption::GetOptionString("statistic", "GRAPH_WEIGHT"); 88 $height = COption::GetOptionString("statistic", "GRAPH_HEIGHT"); 88 $height = COption::GetOptionString("statistic", "GRAPH_HEIGHT"); 89 $diameter = COption::GetOptionString("statistic", "DIAGRAM_DIAMETER"); 90?> 107 <td valign="center"> 108 <img src="/bitrix/admin/city_graph.php?find_data_type=<?=$find_data_type?><?=GetFilterParams($FilterArr)?>&width=<?=$width?>&height=<?=$height?>&lang=<?echo LANG?>" width="<?=$width?>" height="<?=$height?>"> 109 </td>AdminController.php https://gitlab.com/x33n/ImpressPages | PHP | 462 lines
1<?php 2/** 52 ); 53 $layout = ipView('view/layout.php', $variables); 54 55 ipResponse()->setLayoutVariable('removeAdminContentWrapper', true); 56 ipAddJsVariable('listStylePageSize', ipGetOption('Pages.pageListSize', 30)); 57 116 ); 117 $layout = ipView('view/pageProperties.php', $variables)->render(); 118Command.php git://github.com/pmjones/php-framework-benchmarks.git | PHP | 512 lines
1<?php 2 181 182 $this->definition->addOptions($this->application->getDefinition()->getOptions()); 183 378 $name, 379 $_SERVER['PHP_SELF'].' '.$name 380 );install.sh https://gitlab.com/florianocomercial/centreon | Shell | 461 lines
147 148## Getopts :) 149# When you use options, by default I set silent_install to 1. 149# When you use options, by default I set silent_install to 1. 150while getopts "if:u:hv" Options 151do 205# Make sure you have installed and configured # 206# sudo - sed - php - apache - rrdtool - mysql # 207# #BenchmarkCommand.php https://gitlab.com/guillaumev/alkarama | PHP | 311 lines
1<?php 2 47 protected function execute(InputInterface $input, OutputInterface $output) { 48 $runs = $input->getOption('runs'); 49 $file = $input->getOption('file'); 49 $file = $input->getOption('file'); 50 $cache_rebuild = $input->getOption('cache-rebuild'); 51CustomOptions.php https://gitlab.com/LisovyiEvhenii/ismextensions | PHP | 515 lines
1<?php 2/** 9 * It is also available through the world-wide-web at this URL: 10 * http://opensource.org/licenses/osl-3.0.php 11 * If you did not receive a copy of the license and are unable to 23 * @copyright Copyright (c) 2006-2016 X.commerce, Inc. and affiliates (http://www.magento.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 143 */ 144 public function getOptions(InjectableFixture $product) 145 { 186 $customOptions = []; 187 $context = $this->getOptionsContext(); 188 $count = 1; 206 */ 207 protected function getOptionsContext() 208 {CommentAdminOverview.php https://gitlab.com/andecode/theme-spark | PHP | 300 lines
1<?php 2 194 if ($comment->hasField('comment_body') && ($body = $comment->get('comment_body')->value)) { 195 $attributes = $comment_permalink->getOption('attributes') ?: []; 196 $attributes += ['title' => Unicode::truncate($body, 128)]; 223 ]; 224 $comment_uri_options = $comment->toUrl()->getOptions() + ['query' => $destination]; 225 $links = [];component.php https://gitlab.com/alexprowars/bitrix | PHP | 409 lines
9 "SHOW_STATUS" => "Y", 10 "EDIT_URL" => $arParams["SEF_MODE"] == "Y" ? "edit/#RESULT_ID#/" : "result_edit.php", 11 ); 15 $arDefaultUrl = array( 16 'EDIT_URL' => $arParams["SEF_MODE"] == "Y" ? "edit/#RESULT_ID#/" : "result_edit.php", 17 ); 52 53 $arResult["FORM_SIMPLE"] = (COption::GetOptionString("form", "SIMPLE", "Y") == "Y") ? true : false; 54 $arResult["bAdmin"] = defined("ADMIN_SECTION") && ADMIN_SECTION===true ? "Y" : "N"; 333 { 334 $file_link = "/bitrix/tools/form_show_file.php?rid=".$arParams["RESULT_ID"]."&hash=".$arrAns["USER_FILE_HASH"]."&lang=".LANGUAGE_ID; 335 348 $arResultAnswer["ANSWER_FILE"] = array(); 349 $arResultAnswer["ANSWER_FILE"]["URL"] = "/bitrix/tools/form_show_file.php?rid=".$arParams["RESULT_ID"]."&hash=".$arrA["USER_FILE_HASH"]."&lang=".LANGUAGE_ID; 350 $arResultAnswer["ANSWER_FILE"]["NAME"] = htmlspecialcharsbx($arrA["USER_FILE_NAME"]);Group.php https://gitlab.com/hatemdigify/digifyblog | PHP | 472 lines
1<?php 2namespace Former\Form; 148 if ($this->app->bound('former.field') and $this->app['former.field']->isRequired()) { 149 $this->addClass($this->app['former']->getOption('required_class')); 150 } 434 $errors = $this->app['former']->getErrors(); 435 if ($errors and $this->app['former']->getOption('error_messages')) { 436 $inline = $this->app['former.framework']->createHelp($errors);ContainerDebugCommand.php https://gitlab.com/pr0055/symfonypizza | PHP | 216 lines
65 66 <info>php %command.full_name% --show-private</info> 67 69 70 <info>php %command.full_name% --tags</info> 71 73 74 <info>php %command.full_name% --tag=form.type</info> 75 102 $options = array('parameter' => $parameter); 103 } elseif ($input->getOption('tags')) { 104 $options = array('group_by' => 'tags', 'show_private' => $input->getOption('show-private')); 119 120 if (!$input->getArgument('name') && !$input->getOption('tag') && !$input->getOption('parameter') && $input->isInteractive()) { 121 if ($input->getOption('tags')) {FormatterPluginManager.php https://gitlab.com/andecode/theme-spark | PHP | 210 lines
1<?php 2 168 */ 169 public function getOptions($field_type = NULL) { 170 if (!isset($this->formatterOptions)) {VertexSetProperty.java https://gitlab.com/zaverichintan/lumify | Java | 223 lines
67 final String propertyName = getRequiredParameter(request, "propertyName"); 68 final String propertyKey = getOptionalParameter(request, "propertyKey"); 69 final String valueStr = getOptionalParameter(request, "value"); 69 final String valueStr = getOptionalParameter(request, "value"); 70 final String[] valuesStr = getOptionalParameterArray(request, "value[]"); 71 final String visibilitySource = getRequiredParameter(request, "visibilitySource"); 71 final String visibilitySource = getRequiredParameter(request, "visibilitySource"); 72 final String justificationText = getOptionalParameter(request, "justificationText"); 73 final String sourceInfo = getOptionalParameter(request, "sourceInfo"); 73 final String sourceInfo = getOptionalParameter(request, "sourceInfo"); 74 final String metadataString = getOptionalParameter(request, "metadata"); 75 User user = getUser(request); 214 215 this.workQueueRepository.pushGraphPropertyQueue(graphVertex, propertyKey, propertyName, workspaceId, visibilitySource); 216Bundle.php https://gitlab.com/yousafsyed/easternglamor | PHP | 354 lines
1<?php 2/** 13 * 14 * @SuppressWarnings(PHPMD.CouplingBetweenObjects) 15 */ 82 */ 83 public function getOptions() 84 { 89 90 $optionCollection = $typeInstance->getOptionsCollection($product); 91 92 $selectionCollection = $typeInstance->getSelectionsCollection( 93 $typeInstance->getOptionsIds($product), 94 $product 111 { 112 $this->getOptions(); 113 if (empty($this->options) || !$this->getProduct()->isSalable()) {ContainerDebugCommand.php https://gitlab.com/matijabelec/bigpandadev | PHP | 220 lines
1<?php 2 59 60 <info>php %command.full_name%</info> 61 63 64 <info>php %command.full_name% validator</info> 65 68 69 <info>php %command.full_name% --show-private</info> 70 72 73 <info>php %command.full_name% --tags</info> 74 76 77 <info>php %command.full_name% --tag=form.type</info> 78snippet.quipreply.php https://gitlab.com/haque.mdmanzurul/nga-loyaltymatters | PHP | 233 lines
34 */ 35$quip = $modx->getService('quip','Quip',$modx->getOption('quip.core_path',null,$modx->getOption('core_path').'components/quip/').'model/quip/',$scriptProperties); 36if (!($quip instanceof Quip)) return ''; 43/* get thread */ 44$thread = $modx->getOption('quip_thread',$_REQUEST,$modx->getOption('thread',$scriptProperties,'')); 45if (empty($thread)) return ''; 73$postAction = $modx->getOption('postAction',$scriptProperties,'quip-post'); 74$allowedTags = $modx->getOption('quip.allowed_tags',$scriptProperties,'<br><b><i>'); 75$preHooks = $modx->getOption('preHooks',$scriptProperties,''); 75$preHooks = $modx->getOption('preHooks',$scriptProperties,''); 76$postHooks = $modx->getOption('postHooks',$scriptProperties,''); 77$unsubscribeAction = $modx->getOption('unsubscribeAction',$scriptProperties,'quip_unsubscribe'); 79/* get parent and auth */ 80$parent = $modx->getOption('quip_parent',$_REQUEST,$modx->getOption('parent',$scriptProperties,0)); 81$hasAuth = $modx->user->hasSessionContext($modx->context->get('key')) || $modx->getOption('debug',$scriptProperties,false) || empty($requireAuth);Tool.php https://gitlab.com/billyprice1/bdApi | PHP | 305 lines
1<?php 2 45 46 $options = XenForo_Application::getOptions(); 47 183 $request = new bdApi_Zend_Controller_Request_Http($link); 184 $request->setBaseUrl(parse_url(XenForo_Application::getOptions()->get('boardUrl'), PHP_URL_PATH)); 185 237 238 $linkFragment = parse_url($link, PHP_URL_FRAGMENT); 239 if (!empty($linkFragment) AND preg_match('#^post-(?<post_id>\d+)$#', $linkFragment, $fragment)) {Escher.php https://gitlab.com/team_fsn/fsn-php | PHP | 537 lines
2/** 3 * PHPExcel 4 * 22 * @package PHPExcel_Writer_Excel5 23 * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) 24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL 33 * @package PHPExcel_Writer_Excel5 34 * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) 35 */ 146 147 case 'PHPExcel_Shared_Escher_DggContainer_BstoreContainer': 148 // this is a container record 174 175 case 'PHPExcel_Shared_Escher_DggContainer_BstoreContainer_BSE': 176 // this is a semi-container recordIndexCompareEnginesCommand.php https://gitlab.com/ElvisAns/tiki | PHP | 266 lines
1<?php 2 70 71 if ($page = $input->getOption('page')) { 72 $pageInfo = $tikiLib->get_page_info($page) ?: null; 83 84 $reindex = $input->getOption('reindex'); 85 $unifiedSearchLib = TikiLib::lib('unifiedsearch'); 88 if ($elasticStatus['error']) { 89 $io->error('Elasticsearch Error' . PHP_EOL . $elasticStatus['feedback']); 90 exit(1); 107 108 if ($input->getOption('reindex')) { 109 $io->writeln('Rebuilding index, please wait...'); 189 190 if ($input->getOption('html')) { 191 include_once 'lib/diff/difflib.php';user_settings.php https://gitlab.com/alexprowars/bitrix | PHP | 302 lines
6 7require_once(dirname(__FILE__)."/../include/prolog_admin_before.php"); 8define("HELP_FILE", "settings/user_settings.php"); 99$APPLICATION->SetTitle(GetMessage("user_sett_title")); 100require_once($_SERVER["DOCUMENT_ROOT"].BX_ROOT."/modules/main/include/prolog_admin_after.php"); 101 123{ 124 $aUserOpt = CUserOptions::GetOption("global", "settings"); 125 if($aUserOpt["context_menu"] == "") $aUserOpt["context_menu"] = "Y"; 204 <input type="text" name="start_menu_links" value="<?echo htmlspecialcharsbx($aUserOpt["start_menu_links"])?>" size="10"> 205 <a href="javascript:if(confirm('<?echo CUtil::addslashes(GetMessage("user_sett_del_links_conf"))?>'))window.location='user_settings.php?action=clear_links&lang=<?echo LANG?>&<?echo bitrix_sessid_get()?>';"><?echo GetMessage("user_sett_del_links")?></a> 206 </td> 250 </div> 251 <?if(file_exists($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/security/install/index.php")):?> 252 <div class="adm-list-item">monitoring_result.php https://gitlab.com/Rad1calDreamer/honey | PHP | 394 lines
1<?php 2interface CBitrixCloudMonitoring_Access extends Iterator, ArrayAccess 303 { 304 $time = CBitrixCloudOption::getOption("monitoring_expire_time")->getIntegerValue(); 305 return ($time < time()); 308 { 309 return CBitrixCloudOption::getOption("monitoring_expire_time")->getIntegerValue(); 310 } 313 $time = intval($time); 314 CBitrixCloudOption::getOption("monitoring_expire_time")->setStringValue($time); 315 return $time; 319 $domains = new CBitrixCloudMonitoringResult; 320 foreach(CBitrixCloudOption::getOption("monitoring_result")->getArrayValue() as $i => $domainName) 321 { 323 $domainName, 324 CBitrixCloudOption::getOption("monitoring_result_$i") 325 ));getOptions.php https://gitlab.com/morganestes/wordpress-develop | PHP | 211 lines
1<?php 2 5 */ 6class Tests_XMLRPC_wp_getOptions extends WP_XMLRPC_UnitTestCase { 7 8 function test_invalid_username_password() { 9 $result = $this->myxmlrpcserver->wp_getOptions( array( 1, 'username', 'password' ) ); 10 $this->assertIXRError( $result ); 16 17 $result = $this->myxmlrpcserver->wp_getOptions( array( 1, 'subscriber', 'subscriber' ) ); 18 $this->assertInternalType( 'array', $result ); 24 25 $result = $this->myxmlrpcserver->wp_getOptions( array( 1, 'administrator', 'administrator', 'default_comment_status' ) ); 26 $this->assertInternalType( 'array', $result ); 38 39 $result = $this->myxmlrpcserver->wp_getOptions( array( 1, 'subscriber', 'subscriber' ) ); 40 $this->assertInternalType( 'array', $result );Orderable.php https://gitlab.com/che234/adn | PHP | 366 lines
1<?php 2/** 2/** 3 * @version $Id: Orderable.php 30067 2016-03-08 13:44:25Z matias $ 4 * @author RocketTheme http://www.rockettheme.com 349 /* fix for use with Column Aggregation Inheritance */ 350 if ($record->getTable()->getOption('inheritanceMap')) { 351 $parentTable = $record->getTable()->getOption('parents');Grid.php https://gitlab.com/vincent.perdereau/picandparts | PHP | 314 lines
1<?php 2 10 * It is also available through the world-wide-web at this URL: 11 * http://opensource.org/licenses/osl-3.0.php 12 * 16 * @copyright Copyright CedCommerce (http://cedcommerce.com/) 17 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 18 */ 194 'type' => 'options', 195 'options' => Mage::getSingleton('catalog/product_type')->getOptionArray(), 196 )); 253 'type' => 'options', 254 'options' => Mage::getSingleton('csmarketplace/vproducts')->getOptionArray(), 255 ));BlackHole.php https://gitlab.com/faisaliqbal/mytripsorter | PHP | 502 lines
1<?php 2/** 96 */ 97 public function getOptions() 98 {config.php https://gitlab.com/alexprowars/bitrix | PHP | 518 lines
1<?php declare(strict_types = 1); 2 28 */ 29 public static function getOption(string $optionName): ?string 30 { 44 /** 45 * Returns an array with default values of a module options (from a default_option.php file). 46 * 428 } 429 elseif (strncasecmp(PHP_OS, 'WIN', 3) === 0 && preg_match("#^[a-z]{1}:/#i", $confOption)) 430 {mail_message_view.php https://gitlab.com/alexprowars/bitrix | PHP | 324 lines
1<?php 2/* 10require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_before.php"); 11require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/mail/prolog.php"); 12 15IncludeModuleLangFile(__FILE__); 16require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/mail/include.php"); 17$err_mess = "File: ".__FILE__."<br>Line: "; 54 { 55 $md5Path = md5("/bitrix/admin/mail_message_admin.php"); 56 $FILTER = $_SESSION["SESS_ADMIN"][$md5Path]; 78 79 LocalRedirect("/bitrix/admin/mail_message_admin.php?lang=".LANG); 80} 176 <td width="80%"><?=TxtToHTML($dbr_arr["SUBJECT"])?></td> 177 <td width="20%" nowrap><a href="javascript:void(0)" onclick="hideshowhdr()" title="<?echo GetMessage("MMV_SHOW_HEADER_TITLE")?>"><?echo GetMessage("MMV_SHOW_HEADER")?></a><?if(COption::GetOptionString("mail", "save_src", B_MAIL_SAVE_SRC)=="Y" && $dbr_arr["FULL_TEXT"]!=''):?> | <a href="/bitrix/admin/mail_message_view.php?lang=<?=LANGUAGE_ID?>&ID=<?=intval($ID)?>&show=original" target="_blank" title="<?echo GetMessage("MMV_SHOW_ORIG_TITLE")?>"><?echo GetMessage("MMV_SHOW_ORIG")?></a><?endif?></td> 178 </tr></table>OLMap.php https://gitlab.com/leoplanxxi/dr7-web-buap-2016 | PHP | 366 lines
1<?php 2/** 31 '#title' => 'Width of the map', 32 '#default_value' => $this->getOption('width', 'auto'), 33 '#parents' => array('options', 'width'), 37 '#title' => t('Height of the map'), 38 '#default_value' => $this->getOption('height', '300px'), 39 '#parents' => array('options', 'height'), 52 53 if ($view = $this->getOption('view')) { 54 // Don't apply min / max zoom settings to this map to avoid lock-in. 73 '#title' => t('Latitude'), 74 '#default_value' => $this->getOption(array('view', 'center', 'lat'), 0), 75 ), 78 '#title' => t('Longitude'), 79 '#default_value' => $this->getOption(array('view', 'center', 'lat'), 0), 80 ),LinkManagement.php https://gitlab.com/yousafsyed/easternglamor | PHP | 357 lines
1<?php 2/** 13/** 14 * @SuppressWarnings(PHPMD.CouplingBetweenObjects) 15 */ 85 $childrenList = []; 86 foreach ($this->getOptions($product) as $option) { 87 if (!$option->getSelections() || ($optionId !== null && $option->getOptionId() != $optionId)) { 109 * {@inheritdoc} 110 * @SuppressWarnings(PHPMD.CyclomaticComplexity) 111 * @SuppressWarnings(PHPMD.NPathComplexity) 171 $selectionModel->setParentProductId($parentProductId); 172 if (($productLink->getOptionId() !== null)) { 173 $selectionModel->setOptionId($productLink->getOptionId()); 278 $removeSelectionIds = []; 279 foreach ($this->getOptions($product) as $option) { 280 /** @var \Magento\Bundle\Model\Selection $selection */Escher.php https://gitlab.com/devtoannh/cafe | PHP | 537 lines
2/** 3 * PHPExcel 4 * 22 * @package PHPExcel_Writer_Excel5 23 * @copyright Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel) 24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL 33 * @package PHPExcel_Writer_Excel5 34 * @copyright Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel) 35 */ 146 147 case 'PHPExcel_Shared_Escher_DggContainer_BstoreContainer': 148 // this is a container record 174 175 case 'PHPExcel_Shared_Escher_DggContainer_BstoreContainer_BSE': 176 // this is a semi-container recordtoastr.js https://gitlab.com/alidz1982/cdnjs | JavaScript | 374 lines
6 * Use, reproduction, distribution, and modification of this code is subject to the terms and 7 * conditions of the MIT license, available at http://www.opensource.org/licenses/mit-license.php 8 * 46 type: toastType.error, 47 iconClass: getOptions().iconClasses.error, 48 message: message, 54 function getContainer(options, create) { 55 if (!options) { options = getOptions(); } 56 $container = $('#' + options.containerId); 68 type: toastType.info, 69 iconClass: getOptions().iconClasses.info, 70 message: message, 82 type: toastType.success, 83 iconClass: getOptions().iconClasses.success, 84 message: message,GenerateDoctrineEntityCommand.php https://gitlab.com/TouirMohamedMarwen/Symfony2 | PHP | 302 lines
87 list($bundle, $entity) = $this->parseShortcutNotation($entity); 88 $format = Validators::validateFormat($input->getOption('format')); 89 $fields = $this->parseFields($input->getOption('fields')); 95 $generator = $this->getGenerator(); 96 $generator->generate($bundle, $entity, $format, array_values($fields), $input->getOption('with-repository')); 97 120 while (true) { 121 $entity = $dialog->askAndValidate($output, $dialog->getQuestion('The Entity shortcut name', $input->getOption('entity')), array('Sensio\Bundle\GeneratorBundle\Command\Validators', 'validateEntityName'), false, $input->getOption('entity'), $bundleNames); 122 153 154 $format = $dialog->askAndValidate($output, $dialog->getQuestion('Configuration format (yml, xml, php, or annotation)', $input->getOption('format')), array('Sensio\Bundle\GeneratorBundle\Command\Validators', 'validateFormat'), false, $input->getOption('format'), $formats); 155 $input->setOption('format', $format); 161 $output->writeln(''); 162 $withRepository = $dialog->askConfirmation($output, $dialog->getQuestion('Do you want to generate an empty repository class', $input->getOption('with-repository') ? 'yes' : 'no', '?'), $input->getOption('with-repository')); 163 $input->setOption('with-repository', $withRepository);Process.php git://github.com/pmjones/php-framework-benchmarks.git | PHP | 372 lines
1<?php 2 15 * Process is a thin wrapper around proc_* functions to ease 16 * start independent PHP processes. 17 * 51 if (!function_exists('proc_open')) { 52 throw new \RuntimeException('The Process class relies on proc_open, which is not available on your PHP installation.'); 53 } 79 * 80 * @param Closure|string|array $callback A PHP callback to run whenever there is some 81 * output available on STDOUT or STDERR 106 107 // Workaround for http://bugs.php.net/bug.php?id=51800 108 if (strstr(PHP_OS, 'WIN')) { 362 363 public function getOptions() 364 {CartItemRepositoryTest.php https://gitlab.com/crazybutterfly815/magento2 | PHP | 360 lines
1<?php 2/** 27 /** 28 * @magentoApiDataFixture Magento/Checkout/_files/quote_with_address_saved.php 29 * @magentoApiDataFixture Magento/ConfigurableProduct/_files/product_configurable.php 70 /** 71 * @magentoApiDataFixture Magento/Checkout/_files/quote_with_address_saved.php 72 * @magentoApiDataFixture Magento/ConfigurableProduct/_files/product_configurable.php 105 /** 106 * @magentoApiDataFixture Magento/ConfigurableProduct/_files/quote_with_configurable_product.php 107 * @expectedException \Exception 136 /** 137 * @magentoApiDataFixture Magento/ConfigurableProduct/_files/quote_with_configurable_product.php 138 */ 224 /** 225 * @magentoApiDataFixture Magento/ConfigurableProduct/_files/quote_with_configurable_product.php 226 */companies.php https://gitlab.com/ricardosanchez/prueba | PHP | 480 lines
1<?php 2/** 78 // Build the request path. 79 $path = $this->getOption('api.url') . $base; 80 132 // Build the request path. 133 $path = $this->getOption('api.url') . $base; 134 258 // Build the request path. 259 $path = $this->getOption('api.url') . $base; 260 296 // Build the request path. 297 $path = $this->getOption('api.url') . $base; 298 332 // Build the request path. 333 $path = $this->getOption('api.url') . $base; 334component.php https://gitlab.com/alexprowars/bitrix | PHP | 343 lines
37 else if($arForum["INDEXATION"]!=="Y") 38 $arWarnings[] = GetMessage("CC_BSR_WARN_FORUM", array("#href#" => htmlspecialcharsbx(BX_ROOT."/admin/forum_edit.php?lang=".LANGUAGE_ID."&ID=".intval($arForum["ID"])))); 39 55 if($arIBlock["INDEX_ELEMENT"]==="Y" || $arIBlock["INDEX_SECTION"]==="Y") 56 $arWarnings[] = GetMessage("CC_BSR_WARN_PHOTO_GROUP_IBLOCK", array("#href#" => htmlspecialcharsbx(BX_ROOT."/admin/iblock_edit.php?type=".urlencode($arIBlock["IBLOCK_TYPE_ID"])."&lang=".LANGUAGE_ID."&ID=".urlencode($arIBlock["ID"])."&admin=Y&return_url=".urlencode($APPLICATION->GetCurPageParam())))); 57 67 if($arIBlock["INDEX_ELEMENT"]==="Y" || $arIBlock["INDEX_SECTION"]==="Y") 68 $arWarnings[] = GetMessage("CC_BSR_WARN_PHOTO_USER_IBLOCK", array("#href#" => htmlspecialcharsbx(BX_ROOT."/admin/iblock_edit.php?type=".urlencode($arIBlock["IBLOCK_TYPE_ID"])."&lang=".LANGUAGE_ID."&ID=".urlencode($arIBlock["ID"])."&admin=Y&return_url=".urlencode($APPLICATION->GetCurPageParam())))); 69 83 else if($arForum["INDEXATION"]!=="Y") 84 $arWarnings[] = GetMessage("CC_BSR_WARN_PHOTO_FORUM", array("#href#" => htmlspecialcharsbx(BX_ROOT."/admin/forum_edit.php?lang=".LANGUAGE_ID."&ID=".intval($arForum["ID"])))); 85 } 93 if($arIBlock["INDEX_ELEMENT"]==="Y" || $arIBlock["INDEX_SECTION"]==="Y") 94 $arWarnings[] = GetMessage("CC_BSR_WARN_CALENDAR_GROUP_IBLOCK", array("#href#" => htmlspecialcharsbx(BX_ROOT."/admin/iblock_edit.php?type=".urlencode($arIBlock["IBLOCK_TYPE_ID"])."&lang=".LANGUAGE_ID."&ID=".urlencode($arIBlock["ID"])."&admin=Y&return_url=".urlencode($APPLICATION->GetCurPageParam())))); 95toastr.js https://gitlab.com/techniconline/kmc | JavaScript | 365 lines
5 * Use, reproduction, distribution, and modification of this code is subject to the terms and 6 * conditions of the MIT license, available at http://www.opensource.org/licenses/mit-license.php 7 * 45 type: toastType.error, 46 iconClass: getOptions().iconClasses.error, 47 message: message, 54 if (!options) { 55 options = getOptions(); 56 } 69 type: toastType.info, 70 iconClass: getOptions().iconClasses.info, 71 message: message, 83 type: toastType.success, 84 iconClass: getOptions().iconClasses.success, 85 message: message,Spellcheck.php https://gitlab.com/Blueprint-Marketing/solr-power | PHP | 397 lines
1<?php 2/** 110 { 111 return $this->getOption('query'); 112 } 133 { 134 return $this->getOption('build'); 135 } 156 { 157 return $this->getOption('reload'); 158 } 179 { 180 return $this->getOption('dictionary'); 181 } 202 { 203 return $this->getOption('count'); 204 }sfValidatorBaseTest.php https://gitlab.com/ahsanhamid/mereawaz | PHP | 246 lines
1<?php 2 10 11require_once(dirname(__FILE__).'/../../bootstrap/unit.php'); 12 49$v = new ValidatorIdentity(); 50$t->is($v->getOption('foo'), 'bar', '->configure() can add some options'); 51$v = new ValidatorIdentity(array('foo' => 'foobar')); 51$v = new ValidatorIdentity(array('foo' => 'foobar')); 52$t->is($v->getOption('foo'), 'foobar', '->configure() takes an options array as its first argument and values override default option values'); 53$v = new ValidatorIdentity(); 149 150// ->getOption() 151$t->diag('->getOption()'); 151$t->diag('->getOption()'); 152$t->is($v->getOption('required'), false, '->getOption() returns the value of an option'); 153$t->is($v->getOption('nonexistant'), null, '->getOption() returns null if the option does not exist');SiteController.php https://gitlab.com/x33n/ImpressPages | PHP | 291 lines
1<?php 2namespace Ip\Internal\Admin; 18 $adminUsername = 'admin'; 19 $adminEmail = ipGetOptionLang('Config.websiteEmail'); 20 $adminPassword = Model::randString(8); 40 41 $content = ipView('view/login.php', array('loginForm' => FormHelper::getLoginForm())); 42 ipAddJs('Ip/Internal/Admin/assets/login.js'); 43 $response = ipResponse(); 44 $response->setLayout('Ip/Internal/Admin/view/loginLayout.php'); 45 $response->setLayoutVariable('content', $content); 60 61 $content = ipView('view/passwordReset.php', array('passwordResetForm' => FormHelper::getPasswordResetForm1())); 62 ipAddJs('Ip/Internal/Admin/assets/passwordReset1.js'); 64 $response = ipResponse(); 65 $response->setLayout('Ip/Internal/Admin/view/loginLayout.php'); 66 $response->setLayoutVariable('content', $content);NewUserCommand.php https://gitlab.com/asun89/socianovation-web | PHP | 311 lines
1<?php 2namespace Grav\Plugin\Console; 85 $this->options = [ 86 'user' => $this->input->getOption('user'), 87 'password1' => $this->input->getOption('password'), 87 'password1' => $this->input->getOption('password'), 88 'email' => $this->input->getOption('email'), 89 'permissions' => $this->input->getOption('permissions'), 89 'permissions' => $this->input->getOption('permissions'), 90 'fullname' => $this->input->getOption('fullname'), 91 'title' => $this->input->getOption('title'), 91 'title' => $this->input->getOption('title'), 92 'state' => $this->input->getOption('state') 93 ];ReportSubscriber.php https://gitlab.com/e0/mautic | PHP | 335 lines
1<?php 2/** 202 foreach ($graphs as $g) { 203 $options = $event->getOptions($g); 204 $queryBuilder = clone $qb;getOptions.php https://gitlab.com/Blueprint-Marketing/wordpress-unit-tests | PHP | 211 lines
1<?php 2 5 */ 6class Tests_XMLRPC_wp_getOptions extends WP_XMLRPC_UnitTestCase { 7 8 function test_invalid_username_password() { 9 $result = $this->myxmlrpcserver->wp_getOptions( array( 1, 'username', 'password' ) ); 10 $this->assertInstanceOf( 'IXR_Error', $result ); 16 17 $result = $this->myxmlrpcserver->wp_getOptions( array( 1, 'subscriber', 'subscriber' ) ); 18 $this->assertInternalType( 'array', $result ); 24 25 $result = $this->myxmlrpcserver->wp_getOptions( array( 1, 'administrator', 'administrator', 'default_comment_status' ) ); 26 $this->assertInternalType( 'array', $result ); 38 39 $result = $this->myxmlrpcserver->wp_getOptions( array( 1, 'subscriber', 'subscriber' ) ); 40 $this->assertInternalType( 'array', $result );Abstract.php https://gitlab.com/yousafsyed/easternglamor | PHP | 309 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Abstract.php 22824 2010-08-09 18:59:54Z renanbr $ 21 */ 76 */ 77 public function getOption($name = null) 78 { 124 */ 125 #require_once 'Zend/Service/Ebay/Exception.php'; 126 throw new Zend_Service_Ebay_Exception('Invalid options provided.'); 244 /** 245 * Translate native PHP values format to ebay format for request. 246 * 267 /** 268 * Translate an ebay value format to native PHP type. 269 *simplesearchdriversolr.class.php https://gitlab.com/haque.mdmanzurul/nga-loyaltymatters | PHP | 267 lines
1<?php 2/** 26 */ 27require_once dirname(__FILE__) . '/simplesearchdriver.class.php'; 28/** 30 * 31 * - The PECL Solr package, found here: http://pecl.php.net/package/solr 32 * - A working schema.xml file and running Solr instance. 53 $this->_connectionOptions = array( 54 'hostname' => $this->modx->getOption('sisea.solr.hostname',null,'127.0.0.1'), 55 'port' => $this->modx->getOption('sisea.solr.port',null,'8983'), 55 'port' => $this->modx->getOption('sisea.solr.port',null,'8983'), 56 'path' => $this->modx->getOption('sisea.solr.path',null,''), 57 'login' => $this->modx->getOption('sisea.solr.username',null,''), 57 'login' => $this->modx->getOption('sisea.solr.username',null,''), 58 'password' => $this->modx->getOption('sisea.solr.password',null,''), 59 'timeout' => $this->modx->getOption('sisea.solr.timeout',null,30),Attachment.php https://gitlab.com/reasonat/test8 | PHP | 293 lines
1<?php 2 81 82 $displays = array_filter($this->getOption('displays')); 83 if (count($displays) > 1) { 105 'title' => $this->t('Attachment position'), 106 'value' => $this->attachmentPositions($this->getOption('attachment_position')), 107 ); 111 'title' => $this->t('Inherit contextual filters'), 112 'value' => $this->getOption('inherit_arguments') ? $this->t('Yes') : $this->t('No'), 113 ); 117 'title' => $this->t('Inherit exposed filters'), 118 'value' => $this->getOption('inherit_exposed_filters') ? $this->t('Yes') : $this->t('No'), 119 ); 123 'title' => $this->t('Inherit pager'), 124 'value' => $this->getOption('inherit_pager') ? $this->t('Yes') : $this->t('No'), 125 );Session.php https://gitlab.com/jalon/doadoronline | PHP | 547 lines
1<?php 2/** 30 * @return Memory 31 * @see getOptions() 32 */ 47 */ 48 public function getOptions() 49 { 62 { 63 $sessionContainer = $this->getOptions()->getSessionContainer(); 64 if (!$sessionContainer) { 79 $cntr = $this->getSessionContainer(); 80 $ns = $this->getOptions()->getNamespace(); 81 119 $cntr = $this->getSessionContainer(); 120 $ns = $this->getOptions()->getNamespace(); 121component.php https://gitlab.com/alexprowars/bitrix | PHP | 247 lines
9 10require_once($_SERVER["DOCUMENT_ROOT"].$componentPath."/functions.php"); 11global $arrSaveColor; 11global $arrSaveColor; 12require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/img.php"); 13/******************************************************************** 32/************** CACHE **********************************************/ 33 if ($arParams["CACHE_TYPE"] == "Y" || ($arParams["CACHE_TYPE"] == "A" && COption::GetOptionString("main", "component_cache_on", "Y") == "Y")) 34 $arParams["CACHE_TIME"] = intval($arParams["CACHE_TIME"]); 60 ********************************************************************/ 61$obCache = new CPHPCache; 62$cache_id = "vote_result_".serialize(array(Route.php https://gitlab.com/ealexis.t/trends | PHP | 588 lines
1<?php 2 265 */ 266 public function getOptions() 267 { 332 */ 333 public function getOption($name) 334 { 562 563 $class = $this->getOption('compiler_class'); 564profile.py https://gitlab.com/envieidoc/Clover | Python | 334 lines
8# which accompanies this distribution. The full text of the license may be found at 9# http://opensource.org/licenses/bsd-license.php 10# 14 15import getopt 16import operator 129 130opts,args = getopt.getopt(sys.argv[1:], "ht:vs:v", ["help","trace=","symbols="]) 131if (opts is None) or (not opts):Redis.php https://gitlab.com/koodersmiikka/operaatio-terveys | PHP | 435 lines
1<?php 2/** 81 if (!$this->initialized) { 82 $options = $this->getOptions(); 83 109 * @return Redis 110 * @see getOptions() 111 */ 125 */ 126 public function getOptions() 127 { 222 $redis = $this->getRedisResource(); 223 $ttl = $this->getOptions()->getTtl(); 224 251 $redis = $this->getRedisResource(); 252 $ttl = $this->getOptions()->getTtl(); 253Pear.php https://gitlab.com/LisovyiEvhenii/ismextensions | PHP | 297 lines
48} 49$_pearPhpDir = $_pearDir . DS . 'php'; 50if (strpos($_includePath, $_pearPhpDir) === false) { 59// include necessary PEAR libs 60require_once $_pearPhpDir."/PEAR.php"; 61require_once $_pearPhpDir."/PEAR/Frontend.php"; 61require_once $_pearPhpDir."/PEAR/Frontend.php"; 62require_once $_pearPhpDir."/PEAR/Registry.php"; 63require_once $_pearPhpDir."/PEAR/Config.php"; 63require_once $_pearPhpDir."/PEAR/Config.php"; 64require_once $_pearPhpDir."/PEAR/Command.php"; 65require_once $_pearPhpDir."/PEAR/Exception.php"; 123 $config->set('bin_dir', $pear_dir); 124 $config->set('php_dir', $pear_dir.DS.'php'); 125 $config->set('download_dir', $pear_dir.DS.'download');RestActionReader.php https://gitlab.com/randydanniswara/website | PHP | 470 lines
1<?php 2 200 $requirements = array_merge($requirements, $annoRequirements); 201 $options = array_merge($options, $annotation->getOptions()); 202 $defaults = array_merge($defaults, $annotation->getDefaults());XliffLintCommand.php https://gitlab.com/nmhieucoder/laravel_tintuc | PHP | 267 lines
1<?php 2 65 66 <info>cat filename | php %command.full_name% -</info> 67 69 70 <info>php %command.full_name% filename</info> 71 73 74 <info>php %command.full_name% dirname</info> 75 <info>php %command.full_name% dirname --format=json</info> 85 $filenames = (array) $input->getArgument('filename'); 86 $this->format = $input->getOption('format'); 87 $this->displayCorrectFiles = $output->isVerbose(); 89 if (['-'] === $filenames) { 90 return $this->display($io, [$this->validate(file_get_contents('php://stdin'))]); 91 }component.php https://gitlab.com/alexprowars/bitrix | PHP | 304 lines
55 $arParams["PAGE_NAVIGATION_WINDOW"] = intval(intVal($arParams["PAGE_NAVIGATION_WINDOW"]) > 0 ? $arParams["PAGE_NAVIGATION_WINDOW"] : 11); 56 $arParams["DATE_FORMAT"] = trim(empty($arParams["DATE_FORMAT"]) ? $DB->DateFormatToPHP(CSite::GetDateFormat("SHORT")) : $arParams["DATE_FORMAT"]); 57 $arParams["TOPICS_PER_PAGE"] = intval(intVal($arParams["TOPICS_PER_PAGE"]) > 0 ? $arParams["TOPICS_PER_PAGE"] : COption::GetOptionString("forum", "TOPICS_PER_PAGE", "10")); 60 $arParams["SET_NAVIGATION"] = ($arParams["SET_NAVIGATION"] == "N" ? "N" : "Y"); 61 if ($arParams["CACHE_TYPE"] == "Y" || ($arParams["CACHE_TYPE"] == "A" && COption::GetOptionString("main", "component_cache_on", "Y") == "Y")) 62 $arParams["CACHE_TIME"] = intval($arParams["CACHE_TIME"]); 76$arResult["FORUMS"] = array(); 77$arResult["GROUPS_FORUMS"] = array(); // declared in result_modifier.php 78$arResult["GROUPS"] = CForumGroup::GetByLang(LANGUAGE_ID); 80$aSort = array("RANK"=>"DESC", "DATE_CHANGE"=>"DESC"); 81$cache = new CPHPCache(); 82$cache_path_main = str_replace(array(":", "//"), "/", "/".SITE_ID."/".$componentName."/"); 178 { 179 $arFilter1["DATE_CHANGE"] = Date(CDatabase::DateFormatToPHP(CLang::GetDateFormat("FULL", LANGUAGE_ID)), 180 time()-(intval($_REQUEST["DATE_CHANGE"])*24*3600)+CTimeZone::GetOffset());Abstract.php https://gitlab.com/luisrepo/ClienteWS | PHP | 309 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Abstract.php 22824 2010-08-09 18:59:54Z renanbr $ 21 */ 76 */ 77 public function getOption($name = null) 78 { 124 */ 125 require_once 'Zend/Service/Ebay/Exception.php'; 126 throw new Zend_Service_Ebay_Exception('Invalid options provided.'); 244 /** 245 * Translate native PHP values format to ebay format for request. 246 * 267 /** 268 * Translate an ebay value format to native PHP type. 269 *component.php https://gitlab.com/alexprowars/bitrix | PHP | 358 lines
1<?php 2/** 55 56if($arParams["USE_THEMES"] !== 'N' && $arParams["USE_THEMES"] !== false && CPageOption::GetOptionString("main.interface", "use_themes", "Y") !== "N") 57 $arParams["USE_THEMES"] = true; 74 75$aOptions = $grid_options->GetOptions(); 76 87$arResult["OPTIONS"] = $aOptions; 88$arResult["GLOBAL_OPTIONS"] = CUserOptions::GetOption("main.interface", "global", array(), 0); 89component.php https://gitlab.com/alexprowars/bitrix | PHP | 322 lines
9$arParams["LESSON_ID"] = (isset($arParams["LESSON_ID"]) && intval($arParams["LESSON_ID"]) > 0 ? intval($arParams["LESSON_ID"]) : intval($_REQUEST["LESSON_ID"])); 10$arParams["SELF_TEST_TEMPLATE"] = ($arParams["SELF_TEST_TEMPLATE"] <> '' ? htmlspecialcharsbx($arParams["SELF_TEST_TEMPLATE"]) : "self.php?SELF_TEST_ID=#SELF_TEST_ID#"); 11$arParams["CHECK_PERMISSIONS"] = (isset($arParams["CHECK_PERMISSIONS"]) && $arParams["CHECK_PERMISSIONS"]=="N" ? "N" : "Y"); 61 62$lastDirtyCacheTS = COption::GetOptionString( 63 'learning', 293 array( 294 "URL" => "/bitrix/admin/learn_unilesson_edit.php?LESSON_ID=" . $arParams["LESSON_ID"] 295 . '&' . $strUrlencodedLessonPath 311 "TITLE" => GetMessage("LEARNING_COURSES_LESSON_DELETE"), 312 "URL" => "javascript:if(confirm('".GetMessage("LEARNING_COURSES_LESSON_DELETE_CONF")."'))jsUtils.Redirect([], '".CUtil::JSEscape("/bitrix/admin/learn_unilesson_admin.php?ID=".$arParams["LESSON_ID"]."&action=delete&lang=".LANGUAGE_ID."&".bitrix_sessid_get()."&COURSE_ID=".$arParams["COURSE_ID"]).($deleteReturnUrl <> ''? "&return_url=".urlencode($deleteReturnUrl) : "")."')", 313 "ICON" => "bx-context-toolbar-delete-icon",component.php https://gitlab.com/Rad1calDreamer/honey | PHP | 324 lines
49$arParams["TOPICS_PER_PAGE"] = intVal($arParams["TOPICS_PER_PAGE"] > 0 ? $arParams["TOPICS_PER_PAGE"] : 50 COption::GetOptionString("forum", "TOPICS_PER_PAGE", "10")); 51$arParams["SHOW_FORUM_ANOTHER_SITE"] = ($arParams["SHOW_FORUM_ANOTHER_SITE"] == "Y" ? "Y" : "N"); 51$arParams["SHOW_FORUM_ANOTHER_SITE"] = ($arParams["SHOW_FORUM_ANOTHER_SITE"] == "Y" ? "Y" : "N"); 52$arParams["DATE_TIME_FORMAT"] = trim(empty($arParams["DATE_TIME_FORMAT"]) ? $DB->DateFormatToPHP(CSite::GetDateFormat("FULL")) : 53 $arParams["DATE_TIME_FORMAT"]); 66/***************** STANDART ****************************************/ 67if ($arParams["CACHE_TYPE"] == "Y" || ($arParams["CACHE_TYPE"] == "A" && COption::GetOptionString("main", "component_cache_on", "Y") == "Y")) 68 $arParams["CACHE_TIME"] = intval($arParams["CACHE_TIME"]); 177 $ids[] = $res["ID"]; 178 $res["~POST_MESSAGE_TEXT"] = (COption::GetOptionString("forum", "FILTER", "Y")=="Y" ? $res["~POST_MESSAGE_FILTER"] : $res["~POST_MESSAGE"]); 179 if (!empty($arParams["NAME_TEMPLATE"]) && $res["SHOW_NAME"] != "Y")component.php https://gitlab.com/alexprowars/bitrix | PHP | 542 lines
1<?php 2if (!defined('B_PROLOG_INCLUDED') || B_PROLOG_INCLUDED!==true) 69 if ( 70 Manager::getOption('temp_permission_admin_only') 71 && !\CBitrix24::isPortalAdmin(Manager::getUserId()) 87 88// preset paths and sef (.parameters.php) 89$defaultUrlTemplates404 = array( 365 $mess = Loc::loadLanguageFile( 366 __DIR__ . '/component_' . $currentZone . '.php', 367 'ru' 389// check actual agreements 390$needToUpdate = Manager::getOption('user_agreement_version') < 391 Manager::USER_AGREEMENT_VERSION; 531{ 532 $url = Manager::getOption('tmp_last_show_url', ''); 533 if ($url !== $arParams['PAGE_URL_SITE_SHOW'])Getopt.php https://gitlab.com/ealexis.t/trends | PHP | 163 lines
1<?php 2/* 2/* 3 * This file is part of PHPUnit. 4 * 4 * 5 * (c) Sebastian Bergmann <sebastian@phpunit.de> 6 * 15 */ 16class PHPUnit_Util_Getopt 17{ 17{ 18 public static function getopt(array $args, $short_options, $long_options = null) 19 { 81 $arg[$i] == ':') { 82 throw new PHPUnit_Framework_Exception( 83 "unrecognized option -- $opt"FixtureTask.php https://gitlab.com/manuperazafa/elsartenbackend | PHP | 451 lines
1<?php 2/** 4 * 5 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) 6 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) 12 * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) 13 * @link http://cakephp.org CakePHP(tm) Project 14 * @since CakePHP(tm) v 1.3 14 * @since CakePHP(tm) v 1.3 15 * @license http://www.opensource.org/licenses/mit-license.php MIT License 16 */ 66 */ 67 public function getOptionParser() { 68 $parser = parent::getOptionParser(); 279 $path = $this->getPath(); 280 $filename = Inflector::camelize($model) . 'Fixture.php'; 281country_list.php https://gitlab.com/alexprowars/bitrix | PHP | 424 lines
1<?php 2require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_before.php"); 2require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_before.php"); 3require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/statistic/prolog.php"); 4/** @var CMain $APPLICATION */ 4/** @var CMain $APPLICATION */ 5include($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/statistic/colors.php"); 6require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/img.php"); 112<? 113 $width = COption::GetOptionString("statistic", "GRAPH_WEIGHT"); 114 $height = COption::GetOptionString("statistic", "GRAPH_HEIGHT"); 114 $height = COption::GetOptionString("statistic", "GRAPH_HEIGHT"); 115 $diameter = COption::GetOptionString("statistic", "DIAGRAM_DIAMETER"); 116?> 122 <td valign="center"> 123 <img src="/bitrix/admin/country_graph.php?find_data_type=<?=$find_data_type?><?=GetFilterParams($FilterArr)?>&width=<?=$width?>&height=<?=$height?>&lang=<? echo LANG?>" width="<?=$width?>" height="<?=$height?>"></td> 124 </td>content-template.php https://gitlab.com/Fraternal-Group/fraternal | PHP | 270 lines
1<?php 2 3if( ! class_exists( 'Toolset_User_Editors_Medium_Abstract', false ) ) 4 require_once( TOOLSET_COMMON_PATH . '/user-editors/medium/abstract.php' ); 5 54 $content_template_usages = $this->getUsages(); 55 $theme_template_files = (array) wp_get_theme()->get_files( 'php', 1, true ); 56 61 'template_hierarchy' => array( 62 'single-%NAME%.php', 63 'single.php', 63 'single.php', 64 'singular.php', 65 'index.php' 71 'template_hierarchy' => array( 72 'archive-%NAME%.php', 73 'archive.php',KurogoSite.php git://github.com/modolabs/Kurogo-Mobile-Web.git | PHP | 319 lines
1<?php 2 97 public function getRequiresSecure() { 98 return $this->requiresSecure || $this->getOptionalSiteVar('SECURE_REQUIRED'); 99 } 299 300 public function getOptionalSiteSections($area, $applyContexts=Config::IGNORE_CONTEXTS) { 301 return $this->getConfigStore()->getOptionalSections($area, 'site', $applyContexts); 307 308 public function getOptionalSiteSection($section, $area='site') { 309 return $this->getConfigStore()->getOptionalSection($section, $area, 'site'); 315 316 public function getOptionalSiteVar($var, $default='', $section=null, $area='site') { 317 return $this->getConfigStore()->getOptionalVar($var, $default, $section, $area, 'site');snippet.archivist.php https://gitlab.com/haque.mdmanzurul/nga-loyaltymatters | PHP | 243 lines
34 */ 35$archivist = $modx->getService('archivist','Archivist',$modx->getOption('archivist.core_path',null,$modx->getOption('core_path').'components/archivist/').'model/archivist/',$scriptProperties); 36if (!($archivist instanceof Archivist)) return ''; 42$target = !empty($scriptProperties['target']) ? $scriptProperties['target'] : $modx->resource->get('id'); 43$sortBy = $modx->getOption('sortBy',$scriptProperties,'publishedon'); 44$sortDir = $modx->getOption('sortDir',$scriptProperties,'DESC'); 44$sortDir = $modx->getOption('sortDir',$scriptProperties,'DESC'); 45$groupByYear = $modx->getOption('groupByYear',$scriptProperties,false); 46$sortYear = $modx->getOption('sortYear',$scriptProperties,'DESC'); 55$filterPrefix = $modx->getOption('filterPrefix',$scriptProperties,'arc_'); 56$useMonth = $modx->getOption('useMonth',$scriptProperties,true); 57$useDay = $modx->getOption('useDay',$scriptProperties,false); 203 $wrapperTpl = $modx->getOption('yearGroupTpl',$scriptProperties,'yeargroup'); 204 $wrapperRowSeparator = $modx->getOption('yearGroupRowSeparator',$scriptProperties,"\n"); 205 if (strtolower($sortYear) === 'asc') {ForgotPassword.php https://gitlab.com/haque.mdmanzurul/nga-loyaltymatters | PHP | 250 lines
1<?php 2/** 228 $emailSubject = $this->getProperty('emailSubject',''); 229 $subject = !empty($emailSubject) ? $emailSubject : $this->modx->getOption('login.forgot_password_email_subject',null,$this->modx->lexicon('login.forgot_password_email_subject')); 230 $this->login->sendEmail($fields['email'],$fields['username'],$subject,$emailProperties);sfPropelFormGenerator.class.php http://openirudi.googlecode.com/svn/trunk/ | PHP | 492 lines
99 100 file_put_contents($baseDir.'/base/Base'.$table->getPhpName().'Form.class.php', $this->evalTemplate('sfPropelFormGeneratedTemplate.php')); 101 if (!file_exists($classFile = $baseDir.'/'.$table->getPhpName().'Form.class.php')) 123 { 124 if ($column->isForeignKey() && $column->isPrimaryKey() && $this->table->getPhpName() == $this->getForeignTable($column)->getPhpName()) 125 { 129 { 130 if ($relatedColumn->isForeignKey() && $relatedColumn->isPrimaryKey() && $this->table->getPhpName() != $this->getForeignTable($relatedColumn)->getPhpName()) 131 { 167 { 168 $names[] = array($this->getForeignTable($column)->getPhpName(), $column->getPhpName(), $column->isNotNull(), false); 169 } 173 { 174 $names[] = array($tables['relatedTable']->getPhpName(), $tables['middleTable']->getPhpName(), false, true); 175 }ModuleUninstallCommand.php https://gitlab.com/yousafsyed/easternglamor | PHP | 379 lines
1<?php 2/** 27 * 28 * @SuppressWarnings(PHPMD.CouplingBetweenObjects) 29 * @SuppressWarnings(PHPMD.ExcessiveParameterList) 192 * {@inheritdoc} 193 * @SuppressWarnings(PHPMD.CyclomaticComplexity) 194 */ 230 $this->takeBackup($input, $output); 231 $dbBackupOption = $input->getOption(self::INPUT_KEY_BACKUP_DB); 232 if ($input->getOption(self::INPUT_KEY_REMOVE_DATA)) { 272 $time = time(); 273 if ($input->getOption(self::INPUT_KEY_BACKUP_CODE)) { 274 $codeBackup = $this->backupRollbackFactory->create($output); 356 "<error>Cannot uninstall module '$module' because the following module(s) depend on it:</error>" . 357 PHP_EOL . "\t<error>" . implode('</error>' . PHP_EOL . "\t<error>", array_keys($dependingModules)) . 358 "</error>";ProductExternalTest.php https://gitlab.com/yousafsyed/easternglamor | PHP | 321 lines
1<?php 2/** 13 * @see \Magento\Catalog\Model\ProductPriceTest 14 * @magentoDataFixture Magento/Catalog/_files/categories.php 15 */ 15 */ 16class ProductExternalTest extends \PHPUnit_Framework_TestCase 17{ 252 * @covers \Magento\Catalog\Model\Product::addOption 253 * @covers \Magento\Catalog\Model\Product::getOptionById 254 * @covers \Magento\Catalog\Model\Product::getOptions 257 { 258 $this->assertEquals([], $this->_model->getOptions()); 259 267 268 $this->assertSame($option, $this->_model->getOptionById($optionId)); 269 $this->assertEquals([$optionId => $option], $this->_model->getOptions());AssociationTest.php https://gitlab.com/vannh/portal_training | PHP | 329 lines
1<?php 2/** 2/** 3 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) 4 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) 10 * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) 11 * @link http://cakephp.org CakePHP(tm) Project 12 * @since 3.0.0 12 * @since 3.0.0 13 * @license http://www.opensource.org/licenses/mit-license.php MIT License 14 */ 325 ['this' => 'worked'], 326 $this->association->find()->getOptions() 327 );redis_cluster.h https://gitlab.com/oytunistrator/phpredis | C Header | 283 lines
4#include "cluster_library.h" 5#include <php.h> 6#include <stddef.h> 101/* For the creation of RedisCluster specific exceptions */ 102PHP_REDIS_API zend_class_entry *rediscluster_get_exception_base(int root TSRMLS_DC); 103 110 111/* Inittialize our class with PHP */ 112void init_rediscluster(TSRMLS_D); 114/* RedisCluster method implementation */ 115PHP_METHOD(RedisCluster, __construct); 116PHP_METHOD(RedisCluster, close); 274PHP_METHOD(RedisCluster, clearlasterror); 275PHP_METHOD(RedisCluster, getoption); 276PHP_METHOD(RedisCluster, setoption);Request.php https://gitlab.com/Blueprint-Marketing/solr-power | PHP | 488 lines
1<?php 2/** 141 { 142 return $this->getOption('handler'); 143 } 166 { 167 return $this->getOption('method'); 168 } 320 { 321 return $this->getOption('file'); 322 } 483 return array( 484 'username' => $this->getOption('username'), 485 'password' => $this->getOption('password'),