100+ results results for 'php getopt repo:freddixx/e-business-vcrm-plugin' (1213 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()))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 areAbstractCommand.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'); 225RouteCollectionBuilderTest.php https://gitlab.com/Samiul_71/Quicstart | 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')); 211AssociatedProducts.php https://gitlab.com/crazybutterfly815/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())) {widget-output.js https://gitlab.com/Mirros/jsdelivr | 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 = [],TranslationDebugCommand.php https://gitlab.com/matijabelec/bigpandadev | 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> 77walletview.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}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';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();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(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?>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){CaptureCache.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) {index.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)']ListCommand.php https://gitlab.com/Sigpot/AirSpot | 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');InstallCommandTest.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(); 183ArgvInput.php https://gitlab.com/aleksbenmaza/PPE_NEW | 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); 223city_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>Generator.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 ){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(); 118install.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# #CustomOptions.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 {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);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()) {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 imagesContainerDebugCommand.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> 78wp_loaded.php https://gitlab.com/najomie/ljm | 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'); 174Tool.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)) {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">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');iblock_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>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>toastr.js https://gitlab.com/Mirros/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,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 recordGenerateDoctrineEntityCommand.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);companies.php https://gitlab.com/lankerd/paGO---Testing-Site | 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);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/LisovyiEvhenii/ismextensions | 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 *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 );CartItemRepositoryTest.php https://gitlab.com/svillegas/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 */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):Pear.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());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/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'])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>Getopt.php https://gitlab.com/judielsm/Handora | 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"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');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'),Escher.php https://gitlab.com/digaotinfo/agendaLegislativa | 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 recordsfValidatorDateTest.php https://gitlab.com/ahsanhamid/mereawaz | PHP | 246 lines
1<?php 2 10 11require_once(dirname(__FILE__).'/../../bootstrap/unit.php'); 12 101 $t->pass('->clean() throws a sfValidatorError if the date does not match the regex'); 102 $t->like($e->getMessage(), '/'.preg_quote(htmlspecialchars($v->getOption('date_format'), ENT_QUOTES, 'UTF-8'), '/').'/', '->clean() returns the expected date format in the error message'); 103 $t->is($e->getCode(), 'bad_format', '->clean() throws a sfValidatorError');ResolvedFormType.php https://gitlab.com/martinstti/silex-microframework-rest | PHP | 329 lines
1<?php 2 155 { 156 $options = $this->getOptionsResolver()->resolve($options); 157 243 */ 244 public function getOptionsResolver() 245 { 247 if (null !== $this->parent) { 248 $this->optionsResolver = clone $this->parent->getOptionsResolver(); 249 } else {ReportSubscriber.php https://gitlab.com/randydanniswara/website | PHP | 335 lines
1<?php 2/** 202 foreach ($graphs as $g) { 203 $options = $event->getOptions($g); 204 $queryBuilder = clone $qb;FormErrors.php https://gitlab.com/luisrepo/ClienteWS | PHP | 465 lines
1<?php 2/** 22/** Zend_Form_Decorator_Abstract */ 23require_once 'Zend/Form/Decorator/Abstract.php'; 24 36 * @license http://framework.zend.com/license/new-bsd New BSD License 37 * @version $Id: FormErrors.php 23853 2011-04-10 16:06:30Z ramon $ 38 */ 136 if (null === $this->_markupElementLabelStart) { 137 if (null === ($markupElementLabelStart = $this->getOption('markupElementLabelStart'))) { 138 $this->setMarkupElementLabelStart($this->_defaults['markupElementLabelStart']); 167 if (null === $this->_markupElementLabelEnd) { 168 if (null === ($markupElementLabelEnd = $this->getOption('markupElementLabelEnd'))) { 169 $this->setMarkupElementLabelEnd($this->_defaults['markupElementLabelEnd']); 198 if (null === $this->_markupListStart) { 199 if (null === ($markupListStart = $this->getOption('markupListStart'))) { 200 $this->setMarkupListStart($this->_defaults['markupListStart']);result_modifier.php https://gitlab.com/alexprowars/bitrix | PHP | 402 lines
18 { 19 $templateId = COption::GetOptionString("main", "wizard_template_id", "eshop_bootstrap", SITE_ID); 20 $templateId = (preg_match("/^eshop_adapt/", $templateId)) ? "eshop_adapt" : $templateId; 20 $templateId = (preg_match("/^eshop_adapt/", $templateId)) ? "eshop_adapt" : $templateId; 21 $arParams['TEMPLATE_THEME'] = COption::GetOptionString('main', 'wizard_'.$templateId.'_theme_id', 'blue', SITE_ID); 22 } 212 'VALUE' => 0, 213 'SORT' => PHP_INT_MAX, 214 'NA' => trueindex.php https://gitlab.com/alexprowars/bitrix | PHP | 360 lines
20 21 include(__DIR__.'/version.php'); 22 97 98 $socnet_iblock_type_id = COption::GetOptionString("lists", "socnet_iblock_type_id"); 99 $isSocnetInstalled = IsModuleInstalled('socialnetwork'); 168 { 169 $gr = COption::GetOptionString("main", "~controller_group_name", ""); 170 if($gr != "") 292 $GLOBALS["errors"] = $this->errors; 293 $APPLICATION->IncludeAdminFile(GetMessage("LISTS_INSTALL_TITLE"), $_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/lists/install/step2.php"); 294 } 296 { 297 $APPLICATION->IncludeAdminFile(GetMessage("LISTS_INSTALL_TITLE"), $_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/lists/install/step1.php"); 298 }Phalcon.php https://gitlab.com/merial/WETE_Ryhma3 | PHP | 460 lines
1<?php 2namespace Codeception\Lib\Connector; 3 4use Codeception\Lib\Connector\Shared\PhpSuperGlobalsConverter; 5use Symfony\Component\BrowserKit\Response; 20{ 21 use PhpSuperGlobalsConverter; 22 82 $uri = $request->getUri() ?: $phRequest->getURI(); 83 $pathString = parse_url($uri, PHP_URL_PATH); 84 $queryString = parse_url($uri, PHP_URL_QUERY); 199 { 200 if ($this->status() !== PHP_SESSION_ACTIVE) { 201 $this->memory = []; 228 */ 229 public function getOptions() 230 {RouteTest.php https://gitlab.com/ealexis.t/trends | PHP | 239 lines
1<?php 2 15 16class RouteTest extends \PHPUnit_Framework_TestCase 17{ 23 $this->assertEquals(array('foo' => '\d+'), $route->getRequirements(), '__construct() takes requirements as its third argument'); 24 $this->assertEquals('bar', $route->getOption('foo'), '__construct() takes options as its fourth argument'); 25 $this->assertEquals('{locale}.example.com', $route->getHost(), '__construct() takes a host pattern as its fifth argument'); 56 'compiler_class' => 'Symfony\\Component\\Routing\\RouteCompiler', 57 ), array('foo' => 'bar')), $route->getOptions(), '->setOptions() sets the options'); 58 $this->assertEquals($route, $route->setOptions(array()), '->setOptions() implements a fluent interface'); 62 $this->assertEquals($route, $route->addOptions(array()), '->addOptions() implements a fluent interface'); 63 $this->assertEquals(array('foo' => 'foo', 'bar' => 'bar', 'compiler_class' => 'Symfony\\Component\\Routing\\RouteCompiler'), $route->getOptions(), '->addDefaults() keep previous defaults'); 64 } 70 $this->assertEquals($route, $route->setOption('foo', 'bar'), '->setOption() implements a fluent interface'); 71 $this->assertEquals('bar', $route->getOption('foo'), '->setOption() sets the option'); 72 $this->assertTrue($route->hasOption('foo'), '->hasOption() return true if option is set');CakeAdapter.php https://gitlab.com/vannh/portal_training | PHP | 586 lines
1<?php 2/** 8 * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) 9 * @link http://cakephp.org CakePHP(tm) Project 10 * @license http://www.opensource.org/licenses/mit-license.php MIT License 83 */ 84 public function getOptions() 85 { 85 { 86 return $this->adapter->getOptions(); 87 } 105 */ 106 public function getOption($name) 107 { 107 { 108 return $this->adapter->getOption($name); 109 }MarkdownDescriptor.php https://gitlab.com/mohamedchiheb.bida/workshopFOS | PHP | 367 lines
1<?php 2 63 ."\n".'- Requirements: '.($requirements ? $this->formatRouterConfig($requirements) : 'NO CUSTOM') 64 ."\n".'- Options: '.$this->formatRouterConfig($route->getOptions()); 65event_log.php https://gitlab.com/alexprowars/bitrix | PHP | 354 lines
1<?php 2/** 68 69 $cleanup_days = COption::GetOptionInt("main", "event_log_cleanup_days", 7); 70 if($cleanup_days > 0) 76 77 $historyCleanupDays = (int)COption::GetOptionInt("main", "profile_history_cleanup_days", 0); 78 if($historyCleanupDays > 0) 293 $arFilter = array(); 294 if(COption::GetOptionString("main", "event_log_register", "N") === "Y" || COption::GetOptionString("main", "event_log_user_delete", "N") === "Y" || COption::GetOptionString("main", "event_log_user_edit", "N") === "Y" || COption::GetOptionString("main", "event_log_user_groups", "N") === "Y") 295 {ExposedFormPluginBase.php https://gitlab.com/reasonat/test8 | PHP | 379 lines
1<?php 2 138 // exposed filter form for the attachment as well as that for the parent. 139 if (!$this->view->display_handler->displaysExposed() || (!$block && $this->view->display_handler->getOption('exposed_block'))) { 140 $form_state->set('rerender', NULL); 148 149 if (!$this->view->display_handler->displaysExposed() || (!$block && $this->view->display_handler->getOption('exposed_block'))) { 150 return array();gtTestCase.php https://gitlab.com/envieidoc/tomato | PHP | 230 lines
1<?php 2 100 $this->testCase[] = "--FILE--"; 101 $this->testCase[] = "<?php"; 102 $this->testCase = gtCodeSnippet::appendBlankLines(2, $this->testCase ); 156 $this->testCase[] = "--SKIPIF--"; 157 $this->testCase[] = "<?php"; 158 if($this->optionalSections->hasSkipifKey()) { 200 $this->testCase[] = "--CLEAN--"; 201 $this->testCase[] = "<?php"; 202 $this->testCase[] = "?>"; 225 226 public function getOpt() { 227 return $this->optionalSections;RateRequest.php https://gitlab.com/yousafsyed/easternglamor | PHP | 114 lines
1<?php 2/** 99 * @method \Magento\Quote\Model\Quote\Address\RateRequest setOptionInsurance(boolean $value) 100 * @method boolean getOptionInsurance() 101 * @method \Magento\Quote\Model\Quote\Address\RateRequest setOptionHandling(float $flag) 101 * @method \Magento\Quote\Model\Quote\Address\RateRequest setOptionHandling(float $flag) 102 * @method float getOptionHandling() 103 *AbstractOptions.php https://gitlab.com/yousafsyed/easternglamor | PHP | 184 lines
1<?php 2/** 97 */ 98 public function getOption() 99 { 107 { 108 if ($option = $this->getOption()) { 109 return $this->_formatPrice(Bootstrap.php https://gitlab.com/LisovyiEvhenii/ismextensions | PHP | 168 lines
1<?php 2/** 25 */ 26#require_once 'Zend/Application/Bootstrap/BootstrapAbstract.php'; 27 68 array( 69 'resourceloader' => $application->getOption( 70 'resourceloader'dashboard.php https://gitlab.com/alexprowars/bitrix | PHP | 163 lines
1<?php 2namespace Bitrix\Report\VisualConstructor\Helper; 109 { 110 $boardModes = \CUserOptions::GetOption('report_dashboard', 'IS_DEMO_MODE_MARKERS', array()); 111 if (isset($boardModes[$boardKey])) 119 { 120 $boardModes = \CUserOptions::GetOption('report_dashboard', 'IS_DEMO_MODE_MARKERS', array()); 121 $boardModes[$boardKey] = $mode;plugin_interface.lib.php https://gitlab.com/albert925/lading-ach | PHP | 378 lines
1<?php 2/* vim: set expandtab sw=4 ts=4 sts=4: */ 6 * @version $Id$ 7 * @package phpMyAdmin 8 */ 31 // In some situations, Mac OS creates a new file for each file 32 // (for example ._csv.php) so the following regexp 33 // matches a file which does not start with a dot but ends 33 // matches a file which does not start with a dot but ends 34 // with ".php" 35 if (is_file($plugins_dir . $file) && preg_match('@^[^\.](.)*\.php$@i', $file)) { 286/** 287 * string PMA_pluginGetOptions(string $section, array &$list) 288 * 296 */ 297function PMA_pluginGetOptions($section, &$list) 298{Status.php https://gitlab.com/axeltizon/magentoV1.9-demopoweraccess | PHP | 350 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) 2014 Magento Inc. (http://www.magentocommerce.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 137 */ 138 static public function getOptionArray() 139 { 152 { 153 $options = self::getOptionArray(); 154 array_unshift($options, array('value'=>'', 'label'=>'')); 170 ); 171 foreach (self::getOptionArray() as $index => $value) { 172 $res[] = array(UserController.php https://gitlab.com/my-application.bjoernbartels.earth/ZfcUser | PHP | 457 lines
1<?php 2 90 if ($this->zfcUserAuthentication()->hasIdentity()) { 91 return $this->redirect()->toRoute($this->getOptions()->getLoginRedirectRoute()); 92 } 96 97 if ($this->getOptions()->getUseRedirectParameterIfPresent() && $request->getQuery()->get('redirect')) { 98 $redirect = $request->getQuery()->get('redirect'); 106 'redirect' => $redirect, 107 'enableRegistration' => $this->getOptions()->getEnableRegistration(), 108 ); 144 if ($this->zfcUserAuthentication()->hasIdentity()) { 145 return $this->redirect()->toRoute($this->getOptions()->getLoginRedirectRoute()); 146 } 181 // redirect to the login redirect route 182 return $this->redirect()->toRoute($this->getOptions()->getLoginRedirectRoute()); 183 }MultiExec.php https://gitlab.com/ntphuc/BackendFeedy | PHP | 461 lines
1<?php 2 92 } else { 93 $this->exceptions = $client->getOptions()->exceptions; 94 }EducationForm.php https://gitlab.com/mnomansheikh/ampuz | PHP | 176 lines
1<?php 2namespace Education\Form; 41 'label' => 'Company', 42 //'value_options' => $this->getOptionsForSelect(), 43 'value_options' => $Companies, 56 'label' => 'Country', 57 //'value_options' => $this->getOptionsForSelect(), 58 'value_options' => $Regions, 70 'label' => 'Country', 71 //'value_options' => $this->getOptionsForSelect(), 72 'value_options' => $Countries, 85 'label' => 'Frequency', 86 //'value_options' => $this->getOptionsForSelect(), 87 'value_options' => $Frequencies, 134 'label' => 'Type', 135 //'value_options' => $this->getOptionsForSelect(), 136 'value_options' => $Indicators,toastr.js https://gitlab.com/kaouech/theme | JavaScript | 381 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 * 45 type: toastType.custom, 46 iconClass: getOptions().iconClass, 47 message: message, 55 type: toastType.error, 56 iconClass: getOptions().iconClasses.error, 57 message: message, 65 type: toastType.info, 66 iconClass: getOptions().iconClasses.info, 67 message: message, 79 type: toastType.success, 80 iconClass: getOptions().iconClasses.success, 81 message: message,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();update.php https://gitlab.com/alexprowars/bitrix | PHP | 587 lines
9 $module_id = "support"; 10 @include($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/".$module_id."/install/version.php"); 11 return "<br>Module: ".$module_id." (".$arModuleVersion["VERSION"].")<br>Class: CAllSupportUpdate<br>File: ".__FILE__; 20 { 21 $supUpdVer = intval(COption::GetOptionString("support", "SUPPORT_UPDATE_VERSION")); 22 return ($supUpdVer < CSupportUpdate::GetUpdateVersion());learn_export.php https://gitlab.com/alexprowars/bitrix | PHP | 294 lines
1<? 2require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_before.php"); 3 5{ 6 require($_SERVER['DOCUMENT_ROOT'] . '/bitrix/modules/main/include/prolog_admin_after.php'); // second system's prolog 7 12 13 require($_SERVER['DOCUMENT_ROOT'] . '/bitrix/modules/main/include/epilog_admin.php'); // system's epilog 14 exit(); 16 17require_once($_SERVER["DOCUMENT_ROOT"].BX_ROOT."/modules/learning/prolog.php"); 18IncludeModuleLangFile(__FILE__); 21 22require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/classes/general/tar_gz.php"); 23index.php https://gitlab.com/alexprowars/bitrix | PHP | 270 lines
1<?php 2IncludeModuleLangFile($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/support/include.php"); 21 22 include(__DIR__.'/version.php'); 23 77 78 if (file_exists($_SERVER['DOCUMENT_ROOT'] . '/bitrix/modules/support/install/demodata.php')) 79 { 80 $DD_ERROR = false; 81 include($_SERVER['DOCUMENT_ROOT'] . '/bitrix/modules/support/install/demodata.php'); 82 if ($DD_ERROR) 138 { 139 if (file_exists($_SERVER['DOCUMENT_ROOT'].'/bitrix/modules/support/install/events/set_events.php')) 140 { 141 $SE_ERROR = false; 142 include($_SERVER['DOCUMENT_ROOT'].'/bitrix/modules/support/install/events/set_events.php'); 143 if ($SE_ERROR)Upsell.php https://gitlab.com/yousafsyed/easternglamor | PHP | 376 lines
1<?php 2/** 64 * 65 * @SuppressWarnings(PHPMD.ExcessiveParameterList) 66 */ 183 * @return $this 184 * @SuppressWarnings(PHPMD.ExcessiveMethodLength) 185 */ 228 'type' => 'options', 229 'options' => $this->_type->getOptionArray(), 230 'header_css_class' => 'col-type', 256 'type' => 'options', 257 'options' => $this->_status->getOptionArray(), 258 'header_css_class' => 'col-status', 268 'type' => 'options', 269 'options' => $this->_visibility->getOptionArray(), 270 'header_css_class' => 'col-visibility',form_list.php https://gitlab.com/alexprowars/bitrix | PHP | 314 lines
185 $f_QUESTIONS+=$f_C_FIELDS; 186 $txt="<a title=\"".GetMessage("FORM_QUESTIONS_ALT")."\" href=\"form_field_list.php?lang=".LANGUAGE_ID."&WEB_FORM_ID=$f_ID\">$f_QUESTIONS</a> [<a title=\"".GetMessage("FORM_ADD_QUESTION")."\" href=\"form_field_edit_simple.php?lang=".LANGUAGE_ID."&WEB_FORM_ID=$f_ID\">+</a>]"; 187 } 188 else 189 $txt="<a title=\"".GetMessage("FORM_QUESTIONS_ALT")."\" href=\"form_field_list.php?lang=".LANGUAGE_ID."&WEB_FORM_ID=$f_ID\">$f_QUESTIONS</a> [<a title=\"".GetMessage("FORM_ADD_QUESTION")."\" href=\"form_field_edit.php?lang=".LANGUAGE_ID."&WEB_FORM_ID=$f_ID\">+</a>]"; 190 $row->AddViewField("QUESTIONS",$txt); 191 192 $txt="<a title=\"".GetMessage("FORM_FIELDS_ALT")."\" href=\"form_field_list.php?lang=".LANGUAGE_ID."&WEB_FORM_ID=$f_ID&additional=Y\">$f_C_FIELDS</a> [<a title=\"".GetMessage("FORM_ADD_FIELD")."\" href=\"form_field_edit.php?lang=".LANGUAGE_ID."&WEB_FORM_ID=$f_ID&additional=Y\">+</a>]"; 193 $row->AddViewField("C_FIELDS",$txt); 194 195 $txt="<a title=\"".GetMessage("FORM_STATUSES_ALT")."\" href=\"form_status_list.php?lang=".LANGUAGE_ID."&WEB_FORM_ID=$f_ID\">$f_STATUSES</a> [<a title=\"".GetMessage("FORM_ADD_STATUS")."\" href=\"form_status_edit.php?lang=".LANGUAGE_ID."&WEB_FORM_ID=$f_ID\">+</a>]"; 196 $row->AddViewField("STATUSES",$txt); 197 198 $txt="<a title=\"".str_replace("\"#NAME#\"", "", GetMessage("FORM_RESULTS_ALT"))."\" href=\"form_result_list.php?lang=".LANGUAGE_ID."&WEB_FORM_ID=$f_ID\">".(CFormResult::GetCount($f_ID))."</a> [<a title=\"".GetMessage("FORM_ADD_RESULT")."\" href=\"form_result_edit.php?lang=".LANGUAGE_ID."&WEB_FORM_ID=$f_ID\">+</a>]"; 199 $row->AddViewField("RESULTS",$txt);Default.php https://gitlab.com/LisovyiEvhenii/ismextensions | PHP | 400 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 */ 76 */ 77 public function getOption() 78 { 210 211 $option = $this->getOption(); 212 if (!isset($values[$option->getId()]) && $option->getIsRequire() && !$this->getSkipCheckRequiredOption()) { 330 */ 331 public function getOptionPrice($optionValue, $basePrice) 332 {Items.php https://gitlab.com/LisovyiEvhenii/ismextensions | PHP | 254 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 */ 214 */ 215 $options = $renderer->getOptionList(); 216 if ($options) {Command.php https://gitlab.com/ealexis.t/trends | PHP | 501 lines
1<?php 2 136 137 foreach ($this->getOptions() as $options) { 138 call_user_func_array([$this, 'addOption'], $options); 227 if (is_null($key)) { 228 return $this->input->getOptions(); 229 } 230 231 return $this->input->getOption($key); 232 } 465 */ 466 protected function getOptions() 467 {ItemTest.php https://gitlab.com/crazybutterfly815/magento2 | PHP | 155 lines
1<?php 2/** 8 9class ItemTest extends \PHPUnit_Framework_TestCase 10{ 10{ 11 /** @var \PHPUnit_Framework_MockObject_MockObject */ 12 protected $item; 53 \Magento\Bundle\Helper\Catalog\Product\Configuration::class, 54 ['getOptions'], 55 [], 62 ->expects($this->once()) 63 ->method('getOptions') 64 ->will($this->returnValue(null)); 72 ->expects($this->once()) 73 ->method('getOptions') 74 ->will($this->returnValue($options));TextDescriptor.php https://gitlab.com/aleksbenmaza/PPE_NEW | PHP | 320 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 = array(); 118 $this->writeText('<comment>Options:</comment>', $options); 119 foreach ($definition->getOptions() as $option) { 120 if (strlen($option->getShortcut()) > 1) { 150 $definition = $command->getNativeDefinition(); 151 if ($definition->getOptions() || $definition->getArguments()) { 152 $this->writeText("\n");FormErrors.php https://gitlab.com/grayhamster/open-social-media-monitoring | PHP | 465 lines
1<?php 2/** 22/** Zend_Form_Decorator_Abstract */ 23require_once 'Zend/Form/Decorator/Abstract.php'; 24 36 * @license http://framework.zend.com/license/new-bsd New BSD License 37 * @version $Id: FormErrors.php 24594 2012-01-05 21:27:01Z matthew $ 38 */ 136 if (null === $this->_markupElementLabelStart) { 137 if (null === ($markupElementLabelStart = $this->getOption('markupElementLabelStart'))) { 138 $this->setMarkupElementLabelStart($this->_defaults['markupElementLabelStart']); 167 if (null === $this->_markupElementLabelEnd) { 168 if (null === ($markupElementLabelEnd = $this->getOption('markupElementLabelEnd'))) { 169 $this->setMarkupElementLabelEnd($this->_defaults['markupElementLabelEnd']); 198 if (null === $this->_markupListStart) { 199 if (null === ($markupListStart = $this->getOption('markupListStart'))) { 200 $this->setMarkupListStart($this->_defaults['markupListStart']);Item.php https://gitlab.com/yousafsyed/easternglamor | PHP | 203 lines
1<?php 2/** 195 */ 196 public function getOptionBycode($code) 197 { 198 if ($this->getQuoteItem()) { 199 return $this->getQuoteItem()->getOptionBycode($code); 200 }XmlDescriptor.php https://gitlab.com/Marwamimo/Crowdrise_Web | PHP | 396 lines
1<?php 2 189 190 if (count($route->getOptions())) { 191 $routeXML->appendChild($optionsXML = $dom->createElement('options')); 191 $routeXML->appendChild($optionsXML = $dom->createElement('options')); 192 foreach ($route->getOptions() as $name => $value) { 193 $optionsXML->appendChild($optionXML = $dom->createElement('option'));ConfigOptionsList.php https://gitlab.com/crazybutterfly815/magento2 | PHP | 360 lines
1<?php 2/** 21 * 22 * @SuppressWarnings(PHPMD.CouplingBetweenObjects) 23 */ 55 * {@inheritdoc} 56 * @SuppressWarnings(PHPMD.ExcessiveMethodLength) 57 */ 57 */ 58 public function getOptions() 59 {admin-thumbcrop.php https://gitlab.com/r.collas/site_central | PHP | 314 lines
182 if ($('#clear_crop').prop('checked')) { 183 jcrop_api.setSelect([<?php echo $oX; ?>, <?php echo $oY; ?>, <?php echo $oX + $oW; ?>, <?php echo $oY + $oH; ?>]); 184 } 188 if ($('#clear_crop').prop('checked')) { 189 jcrop_api.setSelect([<?php echo $oX; ?>, <?php echo $oY; ?>, <?php echo $oX + $oW; ?>, <?php echo $oY + $oH; ?>]); 190 } else { 190 } else { 191 jcrop_api.setSelect([<?php echo $iX; ?>, <?php echo $iY; ?>, <?php echo $iX + $iW; ?>, <?php echo $iY + $iH; ?>]); 192 } 231 <div style="float: left; width:<?php echo $thumbcropwidth; ?>px; text-align: center;margin-right: 18px; margin-bottom: 10px;"> 232 <img src="<?php echo html_encode(pathurlencode($currentthumbimage)); ?>" style="width:<?php echo $thumbcropwidth; ?>px;height:<?php echo $thumbcropheight; ?>px; border: 4px solid gray; float: left"/> 233 <?php echo gettext("current thumbnail"); ?> 271 </button> 272 <button type="reset" value="<?php echo gettext('Back') ?>" onclick="window.location = 'admin-edit.php?page=edit&album=<?php echo html_encode(pathurlencode($albumname)); ?>&subpage=<?php echo html_encode($subpage); ?>&tagsort=<?php echo html_encode($tagsort); ?>&tab=imageinfo'"> 273 <img src="images/arrow_left_blue_round.png" alt="" />complete.php https://gitlab.com/blueprintmrk/bladencountyrecords | PHP | 206 lines
1<?php 2require( 'common.php' ); 112 } else if ( preg_match( '#^:set #', $string ) ) { 113 foreach ( PHP_Shell_Options::getInstance()->getOptions() as $v ) { 114 $m[] = $v; 141 142 /* taken from http://de3.php.net/manual/en/reserved.php */ 143 $m[] = 'abstract';RouteCollectionBuilder.php https://gitlab.com/ealexis.t/trends | PHP | 372 lines
1<?php 2 272 $route->setDefaults(array_merge($this->defaults, $route->getDefaults())); 273 $route->setOptions(array_merge($this->options, $route->getOptions())); 274