100+ results results for 'php getopt repo:Thane2376/Death-edge.ru' (583 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()))pearcmd.php https://github.com/ianbogda/FileZ.git | PHP | 445 lines
51require_once 'PEAR/Command.php'; 52require_once 'Console/Getopt.php'; 53 132// this is used in the error handler to retrieve a relative path 133$_PEAR_PHPDIR = $config->get('php_dir'); 134$ui->setConfig($config); 166 ); 167 $config->set('php_dir', $pearbase . DIRECTORY_SEPARATOR . 'php'); 168 $config->set('data_dir', $pearbase . DIRECTORY_SEPARATOR . 'data'); 276 array_shift($options[1]); 277 $tmp = Console_Getopt::getopt2($options[1], $short_args, $long_args); 278 377 return "PEAR Version: ".$GLOBALS['pear_package_version']. 378 "\nPHP Version: ".phpversion(). 379 "\nZend Engine Version: ".zend_version().ArgvInput.php https://github.com/Exercise/symfony.git | PHP | 313 lines
1<?php 2 104 if (strlen($name) > 1) { 105 if ($this->definition->hasShortcut($name[0]) && $this->definition->getOptionForShortcut($name[0])->acceptValue()) { 106 // an option with a value (with no space) 130 131 $option = $this->definition->getOptionForShortcut($name[$i]); 132 if ($option->acceptValue()) { 198 199 $this->addLongOption($this->definition->getOptionForShortcut($shortcut)->getName(), $value); 200 } 215 216 $option = $this->definition->getOption($name); 217TextArea.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 areCommand.php https://github.com/l3l0/BehatExamples.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 );RouteCollectionBuilderTest.php https://gitlab.com/mdabutaleb/bitm-laravel-1 | 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/alexandresgv/siteentec | 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'); 225FixtureTask.php https://bitbucket.org/00firestar00/ejfirestar.com.git | PHP | 445 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(); 273 $path = $this->getPath(); 274 $filename = Inflector::camelize($model) . 'Fixture.php'; 275Account.php https://github.com/grandison/budo16.git | PHP | 317 lines
1<?php 2 9 * @license http://www.socialengine.net/license/ 10 * @version $Id: Account.php 8913 2011-05-02 18:03:07Z shaun $ 11 * @author John 138 $profileTypeField = $topStructure[0]->getChild(); 139 $options = $profileTypeField->getOptions(); 140 if( count($options) > 1 ) {FormErrors.php https://github.com/mrbanzai/zf2.git | PHP | 466 lines
1<?php 2/** 141 if (null === $this->_markupElementLabelStart) { 142 if (null === ($markupElementLabelStart = $this->getOption('markupElementLabelStart'))) { 143 $this->setMarkupElementLabelStart($this->_defaults['markupElementLabelStart']); 172 if (null === $this->_markupElementLabelEnd) { 173 if (null === ($markupElementLabelEnd = $this->getOption('markupElementLabelEnd'))) { 174 $this->setMarkupElementLabelEnd($this->_defaults['markupElementLabelEnd']); 203 if (null === $this->_markupListStart) { 204 if (null === ($markupListStart = $this->getOption('markupListStart'))) { 205 $this->setMarkupListStart($this->_defaults['markupListStart']); 234 if (null === $this->_markupListEnd) { 235 if (null === ($markupListEnd = $this->getOption('markupListEnd'))) { 236 $this->setMarkupListEnd($this->_defaults['markupListEnd']); 265 if (null === $this->_markupListItemStart) { 266 if (null === ($markupListItemStart = $this->getOption('markupListItemStart'))) { 267 $this->setMarkupListItemStart($this->_defaults['markupListItemStart']);adframe.class.php https://bitbucket.org/valmy/openx.git | PHP | 228 lines
1<?php 2 34 35require_once LIB_PATH . '/Extension/invocationTags/InvocationTags.php'; 36require_once MAX_PATH . '/lib/max/Plugin/Translation.php'; 75 $isAllowed = parent::isAllowed($extra); 76 if ((is_array($extra) && $extra['delivery'] == phpAds_ZoneText)) { 77 return false; 93 */ 94 function getOptionsList() 95 {Generator.php https://gitlab.com/gideonmarked/PLCPortal | 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 ){Generator.php https://github.com/cawago/ci_campusync_auth.git | PHP | 374 lines
1<?php 2/* 18 * and is licensed under the LGPL. For more information, see 19 * <http://www.phpdoctrine.org>. 20 */ 27 * @subpackage Plugin 28 * @license http://www.opensource.org/licenses/lgpl-license.php LGPL 29 * @version $Revision$ 29 * @version $Revision$ 30 * @link www.phpdoctrine.org 31 * @since 1.0 56 * __get 57 * an alias for getOption 58 * 84 */ 85 public function getOption($name) 86 {Cache.php https://github.com/robertleeplummerjr/bluebox.git | PHP | 416 lines
1<?php 2/* 2/* 3 * $Id: Cache.php 5798 2009-06-02 15:10:46Z piccoloprincipe $ 4 * 18 * and is licensed under the LGPL. For more information, see 19 * <http://www.phpdoctrine.org>. 20 */ 27 * @author Konsta Vesterinen <kvesteri@cc.hut.fi> 28 * @license http://www.opensource.org/licenses/lgpl-license.php LGPL 29 * @link www.phpdoctrine.org 128 */ 129 public function getOption($option) 130 {App.php https://github.com/balupton/balphp.git | PHP | 387 lines
1<?php 2class Bal_Controller_Action_Helper_App extends Bal_Controller_Action_Helper_Abstract { 265 public function forwardIn ($redirect = true) { 266 if ( $redirect === true ) $redirect = $this->getOption('logged_in_forward'); 267 return $this->forward($redirect); 275 public function forwardOut ($redirect = true) { 276 if ( $redirect === true ) $redirect = $this->getOption('logged_out_forward'); 277 return $this->forward($redirect);Process.php https://github.com/agustinc/SemdropsMobile.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 {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 imagesConsoleShell.php https://bitbucket.org/ManiAdil/jardinorient.git | PHP | 384 lines
1<?php 2/** 2/** 3 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) 4 * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) 9 * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) 10 * @link http://cakephp.org CakePHP(tm) Project 11 * @since CakePHP(tm) v 1.2.0.5012 11 * @since CakePHP(tm) v 1.2.0.5012 12 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 13 */ 17/** 18 * Provides a very basic 'interactive' console for CakePHP apps. 19 * 76 77 public function getOptionParser() { 78 $description = array(sfValidatorBaseTest.php https://github.com/IDCI-Consulting/WebsiteEval.git | 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');FormErrors.php https://bitbucket.org/valmy/openx.git | PHP | 397 lines
1<?php 2/** 22/** Zend_Form_Decorator_Abstract */ 23require_once 'Zend/Form/Decorator/Abstract.php'; 24 130 if (null === $this->_markupElementLabelStart) { 131 if (null === ($markupElementLabelStart = $this->getOption('markupElementLabelStart'))) { 132 $this->setMarkupElementLabelStart($this->_defaults['markupElementLabelStart']); 161 if (null === $this->_markupElementLabelEnd) { 162 if (null === ($markupElementLabelEnd = $this->getOption('markupElementLabelEnd'))) { 163 $this->setMarkupElementLabelEnd($this->_defaults['markupElementLabelEnd']); 192 if (null === $this->_markupListStart) { 193 if (null === ($markupListStart = $this->getOption('markupListStart'))) { 194 $this->setMarkupListStart($this->_defaults['markupListStart']); 223 if (null === $this->_markupListEnd) { 224 if (null === ($markupListEnd = $this->getOption('markupListEnd'))) { 225 $this->setMarkupListEnd($this->_defaults['markupListEnd']);ReCaptcha.php https://github.com/shevron/zf2.git | PHP | 478 lines
1<?php 2/** 287 */ 288 public function getOptions() 289 { 298 */ 299 public function getOption($key) 300 {Observer.php https://github.com/rgranadino/magento-mirror.git | PHP | 282 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) 2011 Magento Inc. (http://www.magentocommerce.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 54 55 if ($product->getPriceType() == '0' && !$product->getOptionsReadonly()) { 56 $product->setCanSaveCustomOptions(true); 191 $product->getTypeInstance(true)->setStoreFilter($product->getStoreId(), $product); 192 $optionCollection = $product->getTypeInstance(true)->getOptionsCollection($product); 193 $selectionCollection = $product->getTypeInstance(true)->getSelectionsCollection( 193 $selectionCollection = $product->getTypeInstance(true)->getSelectionsCollection( 194 $product->getTypeInstance(true)->getOptionsIds($product), 195 $productxpdomanager.class.php https://github.com/gbds/revolution.git | PHP | 308 lines
1<?php 2/* 30 */ 31require_once (dirname(dirname(__FILE__)) . '/xpdomanager.class.php'); 32 47 $this->xpdo->log(xPDO::LOG_LEVEL_WARN, 'SQLite does not support source container creation'); 48 if ($dsnArray === null) $dsnArray = xPDO::parseDSN($this->xpdo->getOption('dsn')); 49 if (is_array($dsnArray)) { 61 $removed= false; 62 if ($dsnArray === null) $dsnArray = xPDO::parseDSN($this->xpdo->getOption('dsn')); 63 if (is_array($dsnArray)) { 279 $defaultVal= $meta['default']; 280 if ($defaultVal === null || strtoupper($defaultVal) === 'NULL' || in_array($this->xpdo->driver->getPhpType($dbtype), array('integer', 'float')) || (in_array($meta['phptype'], array('datetime', 'date', 'timestamp', 'time')) && in_array($defaultVal, array_merge($this->xpdo->driver->_currentTimestamps, $this->xpdo->driver->_currentDates, $this->xpdo->driver->_currentTimes)))) { 281 $default= ' DEFAULT ' . $defaultVal;AssociatedProducts.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())) {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>FormErrors.php https://github.com/edmondscommerce/XAMPP-Magento-Demo-Site.git | PHP | 397 lines
1<?php 2/** 22/** Zend_Form_Decorator_Abstract */ 23#require_once 'Zend/Form/Decorator/Abstract.php'; 24 130 if (null === $this->_markupElementLabelStart) { 131 if (null === ($markupElementLabelStart = $this->getOption('markupElementLabelStart'))) { 132 $this->setMarkupElementLabelStart($this->_defaults['markupElementLabelStart']); 161 if (null === $this->_markupElementLabelEnd) { 162 if (null === ($markupElementLabelEnd = $this->getOption('markupElementLabelEnd'))) { 163 $this->setMarkupElementLabelEnd($this->_defaults['markupElementLabelEnd']); 192 if (null === $this->_markupListStart) { 193 if (null === ($markupListStart = $this->getOption('markupListStart'))) { 194 $this->setMarkupListStart($this->_defaults['markupListStart']); 223 if (null === $this->_markupListEnd) { 224 if (null === ($markupListEnd = $this->getOption('markupListEnd'))) { 225 $this->setMarkupListEnd($this->_defaults['markupListEnd']);sfPropelBaseTask.class.php https://github.com/bheneka/gitta.git | PHP | 357 lines
1<?php 2 47 // capture phing-arg options 48 if ($commandManager->getOptionSet()->hasOption('phing-arg')) 49 { 49 { 50 $this->additionalPhingArgs = $commandManager->getOptionValue('phing-arg'); 51 } 261 262 require_once dirname(__FILE__).'/sfPhing.class.php'; 263 264 // enable output buffering 265 Phing::setOutputStream(new OutputStream(fopen('php://output', 'w'))); 266 Phing::startup(); 318 return array( 319 'propel.database' => $database->getParameter('phptype'), 320 'propel.database.driver' => $database->getParameter('phptype'),sfValidatorDateTest.php https://github.com/bheneka/gitta.git | 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');JGraphPanel.java https://bitbucket.org/wthys/groove.git | Java | 419 lines
14 * 15 * $Id: JGraphPanel.java,v 1.20 2008-01-30 09:33:36 iovka Exp $ 16 */ 56 */ 57public class JGraphPanel<JG extends GraphJGraph> extends JPanel { 58 /** 65 */ 66 public JGraphPanel(JG jGraph, boolean withStatusBar) { 67 super(false); 72 this.jGraph = jGraph; 73 this.options = jGraph.getOptions(); 74 this.statusBar = withStatusBar ? new JLabel(" ") : null; 81 public void initialise() { 82 // a JGraphPanel consists of an optional tool bar, 83 // a main pane containing the graph, label tree and (possibly)Observer.php https://github.com/ticean/magento-mirror.git | PHP | 282 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) 2010 Magento Inc. (http://www.magentocommerce.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 54 55 if ($product->getPriceType() == '0' && !$product->getOptionsReadonly()) { 56 $product->setCanSaveCustomOptions(true); 191 $product->getTypeInstance(true)->setStoreFilter($product->getStoreId(), $product); 192 $optionCollection = $product->getTypeInstance(true)->getOptionsCollection($product); 193 $selectionCollection = $product->getTypeInstance(true)->getSelectionsCollection( 193 $selectionCollection = $product->getTypeInstance(true)->getSelectionsCollection( 194 $product->getTypeInstance(true)->getOptionsIds($product), 195 $productTranslationDebugCommand.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> 77widget-output.js https://gitlab.com/alidz1982/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 = [],ReCaptchaTest.php https://bitbucket.org/Dal-Papa/is-340-publish-base.git | PHP | 281 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: ReCaptchaTest.php 25153 2012-11-28 11:56:23Z cogo $ 21 */ 23/** @see Zend_Service_ReCaptcha */ 24require_once 'Zend/Service/ReCaptcha.php'; 25 26/** @see Zend_Http_Client_Adapter_Test */ 27require_once 'Zend/Http/Client/Adapter/Test.php'; 28 29/** @see Zend_Config */ 30require_once 'Zend/Config.php'; 31 40 */ 41class Zend_Service_ReCaptcha_ReCaptchaTest extends PHPUnit_Framework_TestCase 42{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 {Chain.php https://github.com/nationalfield/symfony.git | PHP | 422 lines
1<?php 2/* 29 * @author Konsta Vesterinen <kvesteri@cc.hut.fi> 30 * @license http://www.opensource.org/licenses/lgpl-license.php LGPL 31 * @link www.doctrine-project.org 63 /** 64 * getOption 65 * returns the value of given option 69 */ 70 public function getOption($name) 71 { 83 */ 84 public function getOptions() 85 { 139 { 140 $disabled = $this->getOption('disabled'); 141Status.php https://github.com/rgranadino/magento-mirror.git | 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) 2011 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(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,login.class.php https://github.com/francisreboucas/revolution.git | PHP | 248 lines
1<?php 2/** 53 public function checkForAllowManagerForgotPassword() { 54 $allow = $this->modx->getOption('allow_manager_login_forgot_password',null,true); 55 if ($allow) { 118 $this->handleLogin(); 119 } else if (!empty($this->scriptProperties['forgotlogin']) && $this->modx->getOption('allow_manager_login_forgot_password',null,true)) { 120 $this->handleForgotLogin(); 150 if (($response instanceof modProcessorResponse) && !$response->isError()) { 151 $url = !empty($this->scriptProperties['returnUrl']) ? $this->scriptProperties['returnUrl'] : $this->modx->getOption('manager_url',null,MODX_MANAGER_URL); 152 $this->modx->sendRedirect(rtrim($url,'/'),'','','full'); 189 /* send activation email */ 190 $message = $this->modx->getOption('forgot_login_email'); 191 $placeholders = $user->toArray(); 191 $placeholders = $user->toArray(); 192 $placeholders['url_scheme'] = $this->modx->getOption('url_scheme'); 193 $placeholders['http_host'] = $this->modx->getOption('http_host');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';Edit.php https://bitbucket.org/kdms/sh-magento.git | PHP | 412 lines
1<?php 2/** 284 { 285 return Mage::app()->getLocale()->getOptionLocales(); 286 }ZendQueue.php https://github.com/mrbanzai/zf2.git | PHP | 303 lines
1<?php 2/** 163 try { 164 return $this->_queues[$queueId]->getOptions(); 165 } catch (Zend\Queue\Exception $e) {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');Status.php https://bitbucket.org/sevenly/magento-ce.git | 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) 2012 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(ConfigHandler.php https://gitlab.com/mohamed_hussein/prodt | PHP | 282 lines
1<?php 2 91 // this item. 92 $relationships = $executable->display_handler->getOption('relationships'); 93 $relationship_options = [];Driver.php https://bitbucket.org/pastor399/newcastleunifc.git | PHP | 280 lines
1<?php 2/* 2/* 3 * $Id: Driver.php 48519 2012-02-03 23:18:52Z btowles $ 4 * 26 * @subpackage Cache 27 * @license http://www.opensource.org/licenses/lgpl-license.php LGPL 28 * @link www.doctrine-project.org 72 */ 73 public function getOption($option) 74 { 140 /** 141 * Delete cache entries where the key matches a PHP regular expressions 142 *PackageTest.php https://bitbucket.org/jokusafet/magento2.git | PHP | 303 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 24 * @copyright Copyright (c) 2012 X.commerce, Inc. (http://www.magentocommerce.com) 25 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 26 */ 30 */ 31class Mage_Core_Model_Design_PackageTest extends PHPUnit_Framework_TestCase 32{ 41 { 42 Varien_Io_File::rmdirRecursive(Mage::app()->getConfig()->getOptions()->getMediaDir() . '/theme'); 43 45 $ioAdapter->cp( 46 Mage::app()->getConfig()->getOptions()->getJsDir() . '/prototype/prototype.js', 47 Mage::app()->getConfig()->getOptions()->getJsDir() . '/prototype/prototype.min.js'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(ThinkUpUser.class.php https://github.com/devsatish/ThinkUp.git | PHP | 312 lines
1<?php 2/** 3 * 4 * ThinkUp/extras/wordpress/thinkup/classes/ThinkUpUser.class.php 5 * 81 $wpdb = ThinkUpWordPressPlugin::getDatabaseConnection(); 82 $options_array = ThinkUpWordPressPlugin::getOptionsArray(); 83 137 if ($text) { 138 return "<a href=\"http://facebook.com/profile.php?id={$this->getUserID()}\">{$text}</a>"; 139 } else { 139 } else { 140 return "http://facebook.com/profile.php?id={$this->getUserID()}"; 141 } 155 $wpdb = ThinkUpWordPressPlugin::getDatabaseConnection(); 156 $options_array = ThinkUpWordPressPlugin::getOptionsArray(); 157RouteTest.php https://github.com/jdewit/symfony.git | PHP | 201 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 }ConfigListener.php https://bitbucket.org/juan_sanchez/aiyellow.git | PHP | 383 lines
1<?php 2/** 73 } else { 74 $this->addConfigGlobPaths($this->getOptions()->getConfigGlobPaths()); 75 $this->addConfigStaticPaths($this->getOptions()->getConfigStaticPaths()); 150 // Merge all of the collected configs 151 $this->mergedConfig = $this->getOptions()->getExtraConfig() ?: array(); 152 foreach ($this->configs as $config) { 157 if ( 158 $this->getOptions()->getConfigCacheEnabled() 159 && false === $this->skipConfig 160 ) { 161 $configFile = $this->getOptions()->getConfigCacheFile(); 162 $this->writeArrayToFile($configFile, $this->getMergedConfig(false)); 367 { 368 if (($this->getOptions()->getConfigCacheEnabled()) 369 && (file_exists($this->getOptions()->getConfigCacheFile()))Cache.php https://github.com/icz/OpenPNE3.git | PHP | 416 lines
1<?php 2/* 2/* 3 * $Id: Cache.php 5801 2009-06-02 17:30:27Z piccoloprincipe $ 4 * 18 * and is licensed under the LGPL. For more information, see 19 * <http://www.phpdoctrine.org>. 20 */ 27 * @author Konsta Vesterinen <kvesteri@cc.hut.fi> 28 * @license http://www.opensource.org/licenses/lgpl-license.php LGPL 29 * @link www.phpdoctrine.org 128 */ 129 public function getOption($option) 130 {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?>Configuration.php https://github.com/ticean/magento-mirror.git | 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) 2010 Magento Inc. (http://www.magentocommerce.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 46 $options = array(); 47 $optionIds = $item->getOptionByCode('option_ids'); 48 if ($optionIds) { 50 foreach (explode(',', $optionIds->getValue()) as $optionId) { 51 $option = $product->getOptionById($optionId); 52 if ($option) { 52 if ($option) { 53 $itemOption = $item->getOptionByCode('option_' . $option->getId()); 54 $group = $option->groupFactory($option->getType())Process.php https://bitbucket.org/hanutimes/hanutimes.git | PHP | 379 lines
1<?php 2 30 * Process is a thin wrapper around proc_* functions to ease 31 * start independent PHP processes. 32 * 66 if (!function_exists('proc_open')) { 67 throw new \RuntimeException('The Process class relies on proc_open, which is not available on your PHP installation.'); 68 } 94 * 95 * @param Closure|string|array $callback A PHP callback to run whenever there is some 96 * output available on STDOUT or STDERR 369 370 public function getOptions() 371 {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 {transformations.lib.php https://github.com/md-tech/openemr.git | PHP | 279 lines
1<?php 2/* vim: set expandtab sw=4 ts=4 sts=4: */ 12 * <code> 13 * PMA_transformation_getOptions("'option ,, quoted',abd,'2,3',"); 14 * // array { 32 */ 33function PMA_transformation_getOptions($option_string) 34{ 108 foreach ($filestack as $file) { 109 if (preg_match('|^.*__.*\.inc\.php$|', $file)) { 110 // File contains transformation functions. 252 * 253 * in fact: it just replaces old php3 with php extension 254 * 268 269 // This value can also contain a 'php3' value, in which case we map this filename to our new 'php' variant 270 $testfile = preg_replace('@\.inc\.php3$@', '.inc.php', $include_file);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'); 174ReCaptchaTest.php https://github.com/christophervalles/Zend-Framework-Skeleton.git | PHP | 294 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: ReCaptchaTest.php 24224 2011-07-12 17:45:49Z matthew $ 21 */ 23/** @see Zend_Service_ReCaptcha */ 24require_once 'Zend/Service/ReCaptcha.php'; 25 26/** @see Zend_Http_Client_Adapter_Test */ 27require_once 'Zend/Http/Client/Adapter/Test.php'; 28 29/** @see Zend_Config */ 30require_once 'Zend/Config.php'; 31 40 */ 41class Zend_Service_ReCaptcha_ReCaptchaTest extends PHPUnit_Framework_TestCase 42{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) {sfWidget.class.php https://github.com/IDCI-Consulting/WebsiteEval.git | PHP | 406 lines
1<?php 2 16 * @author Fabien Potencier <fabien.potencier@symfony-project.com> 17 * @version SVN: $Id: sfWidget.class.php 22933 2009-10-11 22:42:56Z Kris.Wallsmith $ 18 */ 162 */ 163 public function getOption($name) 164 { 184 */ 185 public function getOptions() 186 {Driver.php https://github.com/IDCI-Consulting/WebsiteEval.git | PHP | 280 lines
1<?php 2/* 2/* 3 * $Id: Driver.php 7490 2010-03-29 19:53:27Z jwage $ 4 * 26 * @subpackage Cache 27 * @license http://www.opensource.org/licenses/lgpl-license.php LGPL 28 * @link www.doctrine-project.org 72 */ 73 public function getOption($option) 74 { 140 /** 141 * Delete cache entries where the key matches a PHP regular expressions 142 *Renderer.php https://github.com/gryzz/crystal_magento.git | PHP | 353 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) 2010 Magento Inc. (http://www.magentocommerce.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 108 $product = $this->getProduct(); 109 $option = $this->getItem()->getOptionByCode('product_type'); 110 if ($option) { 143 $product = $this->getProduct(); 144 $option = $this->getItem()->getOptionByCode('product_type'); 145 if ($option) { 169 $options = array(); 170 if ($optionIds = $this->getItem()->getOptionByCode('option_ids')) { 171 $options = array();controller.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();snippet.quipreply.php https://bitbucket.org/orchdork10159/dnsman.ly.git | 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);importDump.php https://github.com/ChuguluGames/mediawiki-svn.git | PHP | 277 lines
1<?php 2/** 24 25require_once( dirname( __FILE__ ) . '/Maintenance.php' ); 26 40 parent::__construct(); 41 $gz = in_array('compress.zlib', stream_get_wrappers()) ? 'ok' : '(disabled; requires PHP zlib module)'; 42 $bz2 = in_array('compress.bzip2', stream_get_wrappers()) ? 'ok' : '(disabled; requires PHP bzip2 module)'; 45This script reads pages from an XML file as produced from Special:Export or 46dumpBackup.php, and saves them into the current wiki. 47 52 53Note that for very large data sets, importDump.php may be slow; there are 54alternate methods which can be much faster for full site restoration: 56TEXT; 57 $this->stderr = fopen( "php://stderr", "wt" ); 58 $this->addOption( 'report',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); 301modrestcurlclient.class.php https://github.com/gbds/revolution.git | PHP | 251 lines
1<?php 2/** 5 */ 6require_once dirname(__FILE__) . '/modrestclient.class.php'; 7/** 55 curl_setopt($ch,CURLOPT_POST,1); 56 $contentType = $this->modx->getOption('contentType',$options,'xml'); 57 switch ($contentType) { 114 if (!empty($options[modRestClient::OPT_USERPWD])) { 115 $options[modRestClient::OPT_AUTHTYPE] = $this->modx->getOption(modRestClient::OPT_AUTHTYPE,$options,'BASIC'); 116 switch ($options[modRestClient::OPT_AUTHTYPE]) { 138 /* if proxy is set, attempt to use it */ 139 $proxyHost = $this->modx->getOption('proxy_host',null,''); 140 if (!empty($proxyHost)) { 141 $proxyEnabled = curl_setopt($ch, CURLOPT_PROXY,$proxyHost); 142 $proxyPort = $this->modx->getOption('proxy_port',null,''); 143 if (!empty($proxyPort)) {metadata.php https://github.com/Shigaru/shigaru.git | PHP | 361 lines
1<?php 2/** 111 112 $component = AcesefUtility::getOptionFromRealURL($real_url); 113 113 114 if (file_exists(JPATH_ACESEF_ADMIN.DS.'extensions'.DS.$component.'.php')) { 115 $acesef_ext = AcesefFactory::getExtension($component);Observer.php https://github.com/speedupmate/Magento-CE-Mirror.git | PHP | 307 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-2020 Magento, Inc. (http://www.magento.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 54 55 if ($product->getPriceType() == '0' && !$product->getOptionsReadonly()) { 56 $product->setCanSaveCustomOptions(true); 203 $product->getTypeInstance(true)->setStoreFilter($product->getStoreId(), $product); 204 $optionCollection = $product->getTypeInstance(true)->getOptionsCollection($product); 205 $selectionCollection = $product->getTypeInstance(true)->getSelectionsCollection( 205 $selectionCollection = $product->getTypeInstance(true)->getSelectionsCollection( 206 $product->getTypeInstance(true)->getOptionsIds($product), 207 $productindex.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)']Label.php https://github.com/damoon/zf.git | PHP | 332 lines
1<?php 2/** 22/** Zend_Form_Decorator_Abstract */ 23require_once 'Zend/Form/Decorator/Abstract.php'; 24 28 * Accepts the options: 29 * - separator: separator to use between label and content (defaults to PHP_EOL) 30 * - placement: whether to append or prepend label to content (defaults to prepend) 81 { 82 $id = $this->getOption('id'); 83 if (null === $id) { 119 if (null === $this->_tag) { 120 $tag = $this->getOption('tag'); 121 if (null !== $tag) { 143 144 $decoratorClass = $this->getOption('class'); 145 if (!empty($decoratorClass)) {modresponse.class.php https://github.com/gbds/revolution.git | PHP | 260 lines
1<?php 2/* 61 $this->modx->getParser(); 62 $maxIterations= intval($this->modx->getOption('parser_max_iterations', $options, 10)); 63 $this->modx->parser->processElementTags('', $this->modx->resource->_output, true, false, '[[', ']]', array(), $maxIterations); 92 $phpTime= $totalTime - $queryTime; 93 $phpTime= sprintf("%2.4f s", $phpTime); 94 $source= $this->modx->resourceGenerated ? "database" : "cache"; 96 $this->modx->resource->_output= str_replace("[^qt^]", $queryTime, $this->modx->resource->_output); 97 $this->modx->resource->_output= str_replace("[^p^]", $phpTime, $this->modx->resource->_output); 98 $this->modx->resource->_output= str_replace("[^t^]", $totalTime, $this->modx->resource->_output); 109 /* send out content-type, content-disposition, and custom headers from the content type */ 110 if ($this->modx->getOption('set_header')) { 111 $type= $contentType->get('mime_type') ? $contentType->get('mime_type') : 'text/html'; 113 if (!$contentType->get('binary')) { 114 $charset= $this->modx->getOption('modx_charset',null,'UTF-8'); 115 $header .= '; charset=' . $charset;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 */Main.php https://bitbucket.org/dnejedly/eaparts.git | PHP | 261 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) 2012 Magento Inc. (http://www.magentocommerce.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 111 'label' => Mage::helper('catalog')->__('Apply To'), 112 'values' => Mage_Catalog_Model_Product_Type::getOptions(), 113 'mode_labels' => array(CommentAdminOverview.php https://gitlab.com/mohamed_hussein/prodt | 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 = [];Finding.php https://github.com/kervin/kyzstudio.git | PHP | 421 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Finding.php 22824 2010-08-09 18:59:54Z renanbr $ 21 */ 25 */ 26#require_once 'Zend/Service/Ebay/Abstract.php'; 27 89 */ 90 #require_once 'Zend/Service/Ebay/Finding/Exception.php'; 91 throw new Zend_Service_Ebay_Finding_Exception( 109 */ 110 #require_once 'Zend/Service/Ebay/Finding/Exception.php'; 111 throw new Zend_Service_Ebay_Finding_Exception( 127 */ 128 #require_once 'Zend/Rest/Client.php'; 129 $this->_client = new Zend_Rest_Client();GenerateIncidents.php https://bitbucket.org/areeves42/openfisma.git | PHP | 231 lines
1<?php 2/** 32 * 33 * @return array An array containing getopt long syntax 34 */ 54 55 $numIncidents = $this->getOption('number'); 56 93 $incident['reporterZip'] = rand(10000, 99999); 94 // PHP can't generate a random number greater than 2147483647, so concat a few numbers together to make a 95 // phone number. 185 while ($stepsToComplete--) { 186 $i->completeStep("Step completed automatically by generate-incidents.php script."); 187 } 188 } elseif ($action <= 90) { 189 $i->reject('Automatically rejected by generate-incidents.php script.'); 190 $i->save();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 { 370FormatterPluginManager.php https://gitlab.com/mohamed_hussein/prodt | PHP | 210 lines
1<?php 2 168 */ 169 public function getOptions($field_type = NULL) { 170 if (!isset($this->formatterOptions)) {Finding.php https://bitbucket.org/haichau59/manga.git | PHP | 421 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Finding.php 22824 2010-08-09 18:59:54Z renanbr $ 21 */ 25 */ 26//require_once 'Zend/Service/Ebay/Abstract.php'; 27 89 */ 90 //require_once 'Zend/Service/Ebay/Finding/Exception.php'; 91 throw new Zend_Service_Ebay_Finding_Exception( 109 */ 110 //require_once 'Zend/Service/Ebay/Finding/Exception.php'; 111 throw new Zend_Service_Ebay_Finding_Exception( 127 */ 128 //require_once 'Zend/Rest/Client.php'; 129 $this->_client = new Zend_Rest_Client();part.php https://github.com/elkuku/EasyCreator.git | PHP | 326 lines
1<?php 2/** 44 */ 45 public function getOptions() 46 { 49 50 $ajaxLink = 'index.php?option=com_easycreator&tmpl=component&controller=ajax&task=part_task'; 51 $ajaxLink .= '&group=tables&part=admin_map'; 116 <tr> 117 <th colspan="2"><?php echo jgettext('Include')?></th> 118 <th><?php echo jgettext('Editable'); ?></th> 118 <th><?php echo jgettext('Editable'); ?></th> 119 <th><?php echo jgettext('Type'); ?></th> 120 </tr> 120 </tr> 121 <?php 122 foreach($fields[$table_name] as $key => $value)TbxTest.php https://github.com/MontmereLimited/zf2.git | PHP | 255 lines
1<?php 2/** 35/** 36 * PHPUnit test case 37 */ 46 */ 47class TbxTest extends \PHPUnit_Framework_TestCase 48{ 146 ); 147 $options = $adapter->getOptions(); 148 153 154 $this->assertEquals('testkey', $adapter->getOptions('testoption')); 155 $this->assertTrue(is_null($adapter->getOptions('nooption'))); 223 224 if (PHP_OS == 'AIX') { 225 return;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();adlayer.class.php https://bitbucket.org/valmy/openx.git | PHP | 285 lines
1<?php 2 24+---------------------------------------------------------------------------+ 25$Id: adlayer.class.php 40991 2009-08-05 06:13:34Z matteo.beccati $ 26*/ 36 37require_once LIB_PATH . '/Extension/invocationTags/InvocationTags.php'; 38require_once MAX_PATH . '/lib/max/Plugin/Translation.php'; 38require_once MAX_PATH . '/lib/max/Plugin/Translation.php'; 39require_once MAX_PATH . '/www/admin/lib-zones.inc.php'; 40 52 */ 53 var $defaultZone = phpAds_ZoneInterstitial; 54 84 $isAllowed = parent::isAllowed($extra); 85 if(is_array($extra) || (is_array($extra) && $extra['delivery'] == phpAds_ZoneText)) { 86 return false;Upsell.php https://bitbucket.org/jokusafet/magento2.git | PHP | 257 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) 2012 X.commerce, Inc. (http://www.magentocommerce.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 159 'type' => 'options', 160 'options' => Mage::getSingleton('Mage_Catalog_Model_Product_Type')->getOptionArray(), 161 )); 180 'type' => 'options', 181 'options' => Mage::getSingleton('Mage_Catalog_Model_Product_Status')->getOptionArray(), 182 )); 188 'type' => 'options', 189 'options' => Mage::getSingleton('Mage_Catalog_Model_Product_Visibility')->getOptionArray(), 190 ));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(); 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# #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 {sfDoctrineFormFilterGenerator.class.php https://github.com/bigcalm/urlcatcher.git | PHP | 366 lines
91 92 file_put_contents($baseDir.'/base/Base'.$model.'FormFilter.class.php', $this->evalTemplate(null === $this->getParentModel() ? 'sfDoctrineFormFilterGeneratedTemplate.php' : 'sfDoctrineFormFilterGeneratedInheritanceTemplate.php')); 93 156 */ 157 public function getWidgetOptionsForColumn($column) 158 { 251 252 $options[] = sprintf('\'model\' => \'%s\', \'column\' => \'%s\'', $column->getForeignTable()->getOption('name'), $column->getForeignTable()->getFieldName($name)); 253 } 328 $php = var_export($values, true); 329 $php = str_replace("\n", '', $php); 330 $php = str_replace('array ( ', 'array(', $php); 331 $php = str_replace(',)', ')', $php); 332 $php = str_replace(' ', ' ', $php); 333 return $php;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"]);