PageRenderTime 2401ms queryTime 739ms sortTime 65ms getByIdsTime 426ms findMatchingLines 482ms

100+ results results for 'php getopt repo:hieronim1981/tunethemusic' (2401 ms)

Not the results you expected?
function_scope.h https://gitlab.com/Blueprint-Marketing/hhvm | C Header | 444 lines
                    
2   +----------------------------------------------------------------------+
                    
3   | HipHop for PHP                                                       |
                    
4   +----------------------------------------------------------------------+
                    
6   +----------------------------------------------------------------------+
                    
7   | This source file is subject to version 3.01 of the PHP license,      |
                    
8   | that is bundled with this package in the file LICENSE, and is        |
                    
9   | available through the world-wide-web at the following url:           |
                    
10   | http://www.php.net/license/3_01.txt                                  |
                    
11   | If you did not receive a copy of the PHP license and are unable to   |
                    
12   | obtain it through the world-wide-web, please send a note to          |
                    
13   | license@php.net so we can mail you a copy immediately.               |
                    
14   +----------------------------------------------------------------------+
                    
16
                    
17#ifndef incl_HPHP_FUNCTION_SCOPE_H_
                    
18#define incl_HPHP_FUNCTION_SCOPE_H_
                    
                
catalog.php https://gitlab.com/alexprowars/bitrix | PHP | 621 lines
                    
1<?php
                    
2/**
                    
106			// ok then, lets see in views history
                    
107			//if(\COption::GetOptionString("sale", "encode_fuser_id", "N") == "Y")
                    
108			if (!is_numeric($basketItem->getFUserId()))
                    
                
TextArea.php https://gitlab.com/ElvisAns/tiki | PHP | 377 lines
                    
1<?php
                    
2
                    
160
                    
161        $cols = $this->getOption('width');
                    
162        $rows = $this->getOption('height');
                    
164        $data = [
                    
165            'toolbar' => $this->getOption('toolbars') ? 'y' : 'n',
                    
166            'cols' => ($cols >= 1) ? $cols : 80,
                    
170
                    
171        if ($this->getOption('wordmax')) {
                    
172            $data['keyup'] = "wordCount({$this->getOption('wordmax')}, this, 'cpt_{$this->getConfiguration('fieldId')}', '" . addcslashes(tr('Word Limit Exceeded'), "'") . "')";
                    
172            $data['keyup'] = "wordCount({$this->getOption('wordmax')}, this, 'cpt_{$this->getConfiguration('fieldId')}', '" . addcslashes(tr('Word Limit Exceeded'), "'") . "')";
                    
173        } elseif ($this->getOption('max')) {
                    
174            $data['keyup'] = "charCount({$this->getOption('max')}, this, 'cpt_{$this->getConfiguration('fieldId')}', '" . addcslashes(tr('Character Limit Exceeded'), "'") . "')";
                    
176        $data['element_id'] = 'area_' . uniqid();
                    
177        if ($firstTime && $this->getOption('wysiwyg') === 'y') {    // wysiwyg
                    
178            $is_html = '<input type="hidden" id="allowhtml" value="1" />';
                    
                
DbDumpCommand.php https://gitlab.com/geeta7/drupal | PHP | 430 lines
                    
1<?php
                    
2
                    
58
                    
59    // If not explicitly set, disable ANSI which will break generated php.
                    
60    if ($input->hasParameterOption(['--ansi']) !== TRUE) {
                    
63
                    
64    $schema_tables = $input->getOption('schema-only');
                    
65    $schema_tables = explode(',', $schema_tables);
                    
76   *   Table patterns for which to only dump the schema, no data.
                    
77   * @return string The PHP script.
                    
78   *   The PHP script.
                    
374   * @return string
                    
375   *   The template for the generated PHP script.
                    
376   */
                    
377  protected function getTemplate() {
                    
378    // The template contains an instruction for the file to be ignored by PHPCS.
                    
379    // This is because the files can be huge and coding standards are
                    
                
Command.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/rmoshiur81/Larave-Grading | 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'));
                    
211
                    
                
AbstractCommand.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');
                    
225
                    
                
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 ){
                    
                
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);
                    
                
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 images
                    
                
Process.php https://github.com/iccs/STARDOM.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    {
                    
                
FormErrors.php https://bitbucket.org/mercysam/zfs.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']);
                    
                
FormErrors.php https://github.com/cwt137/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']);
                    
                
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']);
                    
                
Generator.php https://github.com/Kazuhiro-Murota/OpenPNE3.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    {
                    
                
TranslationDebugCommand.php https://gitlab.com/Isaki/le331.fr | PHP | 268 lines
                    
1<?php
                    
2
                    
59
                    
60  <info>php %command.full_name% en AcmeDemoBundle</info>
                    
61
                    
63
                    
64  <info>php %command.full_name% --domain=messages en AcmeDemoBundle</info>
                    
65
                    
67
                    
68  <info>php %command.full_name% --only-missing en AcmeDemoBundle</info>
                    
69
                    
71
                    
72  <info>php %command.full_name% --only-unused en AcmeDemoBundle</info>
                    
73
                    
75
                    
76  <info>php %command.full_name% en</info>
                    
77
                    
                
Cache.php https://github.com/Ezku/xi-framework.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    {
                    
                
Observer.php https://github.com/gryzz/crystal_magento.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            $product
                    
                
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 = [],
                    
                
xpdomanager.class.php https://github.com/mul14/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;
                    
                
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');
                    
141
                    
                
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';
                    
                
Edit.php https://bitbucket.org/kdms/sh-magento.git | PHP | 412 lines
                    
1<?php
                    
2/**
                    
284    {
                    
285        return Mage::app()->getLocale()->getOptionLocales();
                    
286    }
                    
                
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');
                    
                
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 = [];
                    
                
ConfigListener.php https://bitbucket.org/alexandretaz/maniac_divers.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()))
                    
                
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(
                    
                
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?>
                    
                
Status.php https://bitbucket.org/jit_bec/shopifine.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(
                    
                
guest.php https://gitlab.com/neuser/bitrix-core | PHP | 365 lines
                    
1<?php
                    
2class CAllGuest
                    
237					case "USER":
                    
238						if(COption::GetOptionString("statistic", "dbnode_id") <= 0)
                    
239						{
                    
251					case "USER_ID":
                    
252						if(COption::GetOptionString("statistic", "dbnode_id") <= 0)
                    
253						{
                    
                
Liquid.php https://gitlab.com/Skull3x/ClearSky | PHP | 437 lines
                    
1<?php
                    
2namespace pocketmine\block;
                    
251			}elseif($decay >= 0 and ($decay === 0 or !$bottomBlock->canBeFlowedInto())){
                    
252				$flags = $this->getOptimalFlowDirections();
                    
253
                    
349
                    
350	private function getOptimalFlowDirections(){
                    
351		if($this->temporalVector === null){
                    
                
wp_loaded.php https://gitlab.com/najomie/fit-hippie | PHP | 281 lines
                    
1<?php
                    
2
                    
23	/* Check if cron is manualy, then execute import */
                    
24	$cron_job_key = PMXI_Plugin::getInstance()->getOption('cron_job_key');
                    
25	
                    
149
                    
150							if ( $import->processing == 1 and (time() - strtotime($import->registered_on)) > ((PMXI_Plugin::getInstance()->getOption('cron_processing_time_limit')) ? PMXI_Plugin::getInstance()->getOption('cron_processing_time_limit') : 120)){ // it means processor crashed, so it will reset processing to false, and terminate. Then next run it will work normally.
                    
151								$import->set(array(
                    
172								
                    
173								$log_storage = (int) PMXI_Plugin::getInstance()->getOption('log_storage');
                    
174
                    
                
ReCaptchaTest.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) {
                    
                
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();
                    
                
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);
                    
301
                    
                
Driver.php https://bitbucket.org/zorgsoft/svadba-vals.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     *
                    
                
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)']
                    
                
ArgvInput.php https://gitlab.com/rmoshiur81/Larave-Grading | 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);
                    
223
                    
                
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)) {
                    
                
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     */
                    
                
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 = [];
                    
                
ClientInterface.php https://gitlab.com/ntphuc/BackendFeedy | PHP | 230 lines
                    
1<?php
                    
2
                    
181     */
                    
182    public function getOptions();
                    
183
                    
                
Configuration.php https://github.com/itfcfan/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())
                    
                
chunk.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 {    
                    
370
                    
                
FormatterPluginManager.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)) {
                    
                
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)
                    
                
sfValidatorDateTest.php https://github.com/bb-dev/OpenPNE3.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');
                    
                
ajax.php https://gitlab.com/Rad1calDreamer/honey | PHP | 321 lines
                    
15
                    
16require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_before.php");
                    
17
                    
25
                    
26include(dirname(__FILE__)."/functions.php");
                    
27
                    
248
                    
249					$basket->weightKoef = htmlspecialcharsbx(COption::GetOptionString('sale', 'weight_koef', 1, SITE_ID));
                    
250					$basket->weightUnit = htmlspecialcharsbx(COption::GetOptionString('sale', 'weight_unit', "", SITE_ID));
                    
290
                    
291		$basket->weightKoef = htmlspecialcharsbx(COption::GetOptionString('sale', 'weight_koef', 1, SITE_ID));
                    
292		$basket->weightUnit = htmlspecialcharsbx(COption::GetOptionString('sale', 'weight_unit', "", SITE_ID));
                    
319header('Content-Type: application/json; charset='.LANG_CHARSET);
                    
320echo CUtil::PhpToJSObject($arRes);
                    
321die();
                    
                
city_list.php https://gitlab.com/alexprowars/bitrix | PHP | 324 lines
                    
1<?php
                    
2require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_before.php");
                    
2require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_before.php");
                    
3require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/statistic/prolog.php");
                    
4/** @var CMain $APPLICATION */
                    
4/** @var CMain $APPLICATION */
                    
5include($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/statistic/colors.php");
                    
6require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/img.php");
                    
86
                    
87	$width = COption::GetOptionString("statistic", "GRAPH_WEIGHT");
                    
88	$height = COption::GetOptionString("statistic", "GRAPH_HEIGHT");
                    
88	$height = COption::GetOptionString("statistic", "GRAPH_HEIGHT");
                    
89	$diameter = COption::GetOptionString("statistic", "DIAGRAM_DIAMETER");
                    
90?>
                    
107				<td valign="center">
                    
108					<img src="/bitrix/admin/city_graph.php?find_data_type=<?=$find_data_type?><?=GetFilterParams($FilterArr)?>&width=<?=$width?>&height=<?=$height?>&lang=<?echo LANG?>" width="<?=$width?>" height="<?=$height?>">
                    
109				</td>
                    
                
AdminController.php https://gitlab.com/x33n/ImpressPages | PHP | 462 lines
                    
1<?php
                    
2/**
                    
52        );
                    
53        $layout = ipView('view/layout.php', $variables);
                    
54
                    
55        ipResponse()->setLayoutVariable('removeAdminContentWrapper', true);
                    
56        ipAddJsVariable('listStylePageSize', ipGetOption('Pages.pageListSize', 30));
                    
57
                    
116        );
                    
117        $layout = ipView('view/pageProperties.php', $variables)->render();
                    
118
                    
                
install.sh https://gitlab.com/florianocomercial/centreon | Shell | 461 lines
                    
147
                    
148## Getopts :)
                    
149# When you use options, by default I set silent_install to 1.
                    
149# When you use options, by default I set silent_install to 1.
                    
150while getopts "if:u:hv" Options
                    
151do
                    
205#                   Make sure you have installed and configured               #
                    
206#                   sudo - sed - php - apache - rrdtool - mysql               #
                    
207#                                                                             #
                    
                
BenchmarkCommand.php https://gitlab.com/guillaumev/alkarama | PHP | 311 lines
                    
1<?php
                    
2
                    
47  protected function execute(InputInterface $input, OutputInterface $output) {
                    
48    $runs = $input->getOption('runs');
                    
49    $file = $input->getOption('file');
                    
49    $file = $input->getOption('file');
                    
50    $cache_rebuild = $input->getOption('cache-rebuild');
                    
51
                    
                
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    {
                    
                
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"]);
                    
                
Group.php https://gitlab.com/hatemdigify/digifyblog | PHP | 472 lines
                    
1<?php
                    
2namespace Former\Form;
                    
148		if ($this->app->bound('former.field') and $this->app['former.field']->isRequired()) {
                    
149			$this->addClass($this->app['former']->getOption('required_class'));
                    
150		}
                    
434		$errors = $this->app['former']->getErrors();
                    
435		if ($errors and $this->app['former']->getOption('error_messages')) {
                    
436			$inline = $this->app['former.framework']->createHelp($errors);
                    
                
ContainerDebugCommand.php https://gitlab.com/pr0055/symfonypizza | PHP | 216 lines
                    
65
                    
66  <info>php %command.full_name% --show-private</info>
                    
67
                    
69
                    
70  <info>php %command.full_name% --tags</info>
                    
71
                    
73
                    
74  <info>php %command.full_name% --tag=form.type</info>
                    
75
                    
102            $options = array('parameter' => $parameter);
                    
103        } elseif ($input->getOption('tags')) {
                    
104            $options = array('group_by' => 'tags', 'show_private' => $input->getOption('show-private'));
                    
119
                    
120        if (!$input->getArgument('name') && !$input->getOption('tag') && !$input->getOption('parameter') && $input->isInteractive()) {
                    
121            if ($input->getOption('tags')) {
                    
                
ContainerDebugCommand.php https://gitlab.com/Isaki/le331.fr | 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>
                    
78
                    
                
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);
                    
216
                    
                
Form.php https://github.com/tquensen/MiniMVC.git | PHP | 363 lines
                    
1<?php
                    
2
                    
39    {
                    
40        if (!$this->getOption('useFormToken')) {
                    
41            return false;
                    
47    {
                    
48        if (!$this->getOption('useFormToken')) {
                    
49            return false;
                    
95
                    
96    public function getOption($option)
                    
97    {
                    
107        $element->setForm($this);
                    
108        if ($this->getOption('forceGlobalErrors')) {
                    
109            $element->globalErrors = true;
                    
164        if ($values === null) {
                    
165            $arr = strtoupper($this->getOption('method')) === 'GET' ? $_GET : $_POST;
                    
166            if (empty($arr[$this->name])) {
                    
                
fixremovedezurlobjectlinks.php https://github.com/zerustech/ezpublish.git | PHP | 293 lines
                    
1#!/usr/bin/env php
                    
2<?php
                    
5 * remaining in the ezurl_object_table despite being removed from versions/translations.
                    
6 * Based on ../4.1/fixezurlobjectlinks.php which fixes the opposite case.
                    
7 *
                    
12
                    
13require 'autoload.php';
                    
14
                    
21                                                        "\n" .
                    
22                                                        "fixremovedezurlobjectlinks.php" ),
                    
23                                      'use-session' => false,
                    
38$script->startup();
                    
39$options = $script->getOptions( $config, $argConfig, $optionHelp, $arguments, $useStandardOptions );
                    
40$script->initialize();
                    
                
Bundle.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()) {
                    
                
ThinkUpUser.class.php https://github.com/dash30/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();
                    
157
                    
                
curl.php https://github.com/theshock/curl.git | PHP | 515 lines
                    
1<?php
                    
2
                    
5 *
                    
6 * See the README for documentation/examples or http://php.net/curl for more information about the libcurl extension for PHP
                    
7 *
                    
84   * Sets the $cookie_file to "curl_cookie.txt" in the current directory
                    
85   * Also sets the $user_agent to $_SERVER['HTTP_USER_AGENT'] if it exists, 'Curl/PHP '.PHP_VERSION.' (http://github.com/shuber/curl)' otherwise
                    
86  **/
                    
88  {
                    
89    $this->user_agent = isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : 'Curl/PHP '.PHP_VERSION.' (http://github.com/shuber/curl)';
                    
90  }
                    
162  **/
                    
163  public function getOptions()
                    
164  {
                    
                
snippet.quipreply.php https://gitlab.com/haque.mdmanzurul/nga-loyaltymatters | PHP | 233 lines
                    
34 */
                    
35$quip = $modx->getService('quip','Quip',$modx->getOption('quip.core_path',null,$modx->getOption('core_path').'components/quip/').'model/quip/',$scriptProperties);
                    
36if (!($quip instanceof Quip)) return '';
                    
43/* get thread */
                    
44$thread = $modx->getOption('quip_thread',$_REQUEST,$modx->getOption('thread',$scriptProperties,''));
                    
45if (empty($thread)) return '';
                    
73$postAction = $modx->getOption('postAction',$scriptProperties,'quip-post');
                    
74$allowedTags = $modx->getOption('quip.allowed_tags',$scriptProperties,'<br><b><i>');
                    
75$preHooks = $modx->getOption('preHooks',$scriptProperties,'');
                    
75$preHooks = $modx->getOption('preHooks',$scriptProperties,'');
                    
76$postHooks = $modx->getOption('postHooks',$scriptProperties,'');
                    
77$unsubscribeAction = $modx->getOption('unsubscribeAction',$scriptProperties,'quip_unsubscribe');
                    
79/* get parent and auth */
                    
80$parent = $modx->getOption('quip_parent',$_REQUEST,$modx->getOption('parent',$scriptProperties,0));
                    
81$hasAuth = $modx->user->hasSessionContext($modx->context->get('key')) || $modx->getOption('debug',$scriptProperties,false) || empty($requireAuth);
                    
                
StylePropertyDefinition.php https://github.com/Vernice238/DTUI_201105.git | PHP | 391 lines
                    
1<?php
                    
2
                    
247
                    
248		if ($this->isChanged('property_name') && $this->getOption(self::OPTION_CHECK_DUPLICATE))
                    
249		{
                    
281
                    
282		if ($this->getOption(self::OPTION_UPDATE_MASTER_PHRASE))
                    
283		{
                    
318
                    
319			if ($this->getOption(self::OPTION_REBUILD_CACHE))
                    
320			{
                    
353
                    
354		if ($this->getOption(self::OPTION_UPDATE_MASTER_PHRASE) && $this->get('definition_style_id') < 1 && $this->get('addon_id'))
                    
355		{
                    
362
                    
363		if ($this->getOption(self::OPTION_REBUILD_CACHE))
                    
364		{
                    
                
Finding.php https://bitbucket.org/kdms/sh-magento.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();
                    
                
Option.php https://bitbucket.org/mengqing/magento-mirror.git | PHP | 491 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 */
                    
147     */
                    
148    public function getOptions()
                    
149    {
                    
246    {
                    
247        foreach ($this->getOptions() as $option) {
                    
248            $this->setData($option)
                    
409     */
                    
410    public function getOptionValuesByOptionId($optionIds, $store_id)
                    
411    {
                    
                
Tool.php https://gitlab.com/billyprice1/bdApi | PHP | 305 lines
                    
1<?php
                    
2
                    
45
                    
46        $options = XenForo_Application::getOptions();
                    
47
                    
183        $request = new bdApi_Zend_Controller_Request_Http($link);
                    
184        $request->setBaseUrl(parse_url(XenForo_Application::getOptions()->get('boardUrl'), PHP_URL_PATH));
                    
185
                    
237
                    
238                    $linkFragment = parse_url($link, PHP_URL_FRAGMENT);
                    
239                    if (!empty($linkFragment) AND preg_match('#^post-(?<post_id>\d+)$#', $linkFragment, $fragment)) {
                    
                
Escher.php https://gitlab.com/team_fsn/fsn-php | PHP | 537 lines
                    
2/**
                    
3 * PHPExcel
                    
4 *
                    
22 * @package    PHPExcel_Writer_Excel5
                    
23 * @copyright  Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
24 * @license    http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt	LGPL
                    
33 * @package    PHPExcel_Writer_Excel5
                    
34 * @copyright  Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
35 */
                    
146
                    
147		case 'PHPExcel_Shared_Escher_DggContainer_BstoreContainer':
                    
148			// this is a container record
                    
174
                    
175		case 'PHPExcel_Shared_Escher_DggContainer_BstoreContainer_BSE':
                    
176			// this is a semi-container record
                    
                
firephp.php https://github.com/rodrigodk/KO3_FirePHP.git | PHP | 485 lines
                    
11// Grab the vendor api library
                    
12require Kohana::find_file('vendor', 'FirePHP/FirePHP', $ext = 'class.php');
                    
13
                    
16 */
                    
17class Vendor_FirePHP extends FirePHP {
                    
18    protected $_config = array();
                    
38	$this->_config = (isset($config)) ? Arr::merge($this->_config, $config) : $this->_config;
                    
39	$this->setOptions($this->get_config('firephp', $this->getOptions()));
                    
40	$this->enabled = $this->get_enabled();
                    
67		$this->_config = Arr::merge($this->_config, $value);
                    
68		$this->setOptions($this->get_config('firephp', $this->getOptions()));
                    
69		$this->enabled = $this->get_enabled();
                    
130    {
                    
131	return $this->info(phpversion(), 'Current PHP version: ');
                    
132    }
                    
                
IndexCompareEnginesCommand.php https://gitlab.com/ElvisAns/tiki | PHP | 266 lines
                    
1<?php
                    
2
                    
70
                    
71        if ($page = $input->getOption('page')) {
                    
72            $pageInfo = $tikiLib->get_page_info($page) ?: null;
                    
83
                    
84        $reindex = $input->getOption('reindex');
                    
85        $unifiedSearchLib = TikiLib::lib('unifiedsearch');
                    
88        if ($elasticStatus['error']) {
                    
89            $io->error('Elasticsearch Error' . PHP_EOL . $elasticStatus['feedback']);
                    
90            exit(1);
                    
107
                    
108        if ($input->getOption('reindex')) {
                    
109            $io->writeln('Rebuilding index, please wait...');
                    
189
                    
190        if ($input->getOption('html')) {
                    
191            include_once 'lib/diff/difflib.php';
                    
                
user_settings.php https://gitlab.com/alexprowars/bitrix | PHP | 302 lines
                    
6
                    
7require_once(dirname(__FILE__)."/../include/prolog_admin_before.php");
                    
8define("HELP_FILE", "settings/user_settings.php");
                    
99$APPLICATION->SetTitle(GetMessage("user_sett_title"));
                    
100require_once($_SERVER["DOCUMENT_ROOT"].BX_ROOT."/modules/main/include/prolog_admin_after.php");
                    
101
                    
123{
                    
124	$aUserOpt = CUserOptions::GetOption("global", "settings");
                    
125	if($aUserOpt["context_menu"] == "") $aUserOpt["context_menu"] = "Y";
                    
204			<input type="text" name="start_menu_links" value="<?echo htmlspecialcharsbx($aUserOpt["start_menu_links"])?>" size="10">
                    
205			<a href="javascript:if(confirm('<?echo CUtil::addslashes(GetMessage("user_sett_del_links_conf"))?>'))window.location='user_settings.php?action=clear_links&lang=<?echo LANG?>&<?echo bitrix_sessid_get()?>';"><?echo GetMessage("user_sett_del_links")?></a>
                    
206		</td>
                    
250				</div>
                    
251				<?if(file_exists($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/security/install/index.php")):?>
                    
252				<div class="adm-list-item">
                    
                
sfWidget.class.php https://github.com/bb-dev/OpenPNE3.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  {
                    
                
Search.php https://github.com/icz/OpenPNE3.git | PHP | 287 lines
                    
1<?php
                    
2/*
                    
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 * @version     $Revision$
                    
29 * @version     $Revision$
                    
30 * @link        www.phpdoctrine.org
                    
31 * @since       1.0
                    
85            $query->getSql();
                    
86            $key = (array) $this->getOption('table')->getIdentifier();
                    
87            $newQuery->addWhere($query->getRootAlias() . '.'.current($key).' IN (SQL:' . $q->getSql() . ')', $q->getParams());
                    
117
                    
118        $fields = $this->getOption('fields');
                    
119        $class  = $this->getOption('className');
                    
                
monitoring_result.php https://gitlab.com/Rad1calDreamer/honey | PHP | 394 lines
                    
1<?php
                    
2interface CBitrixCloudMonitoring_Access extends Iterator, ArrayAccess
                    
303	{
                    
304		$time = CBitrixCloudOption::getOption("monitoring_expire_time")->getIntegerValue();
                    
305		return ($time < time());
                    
308	{
                    
309		return CBitrixCloudOption::getOption("monitoring_expire_time")->getIntegerValue();
                    
310	}
                    
313		$time = intval($time);
                    
314		CBitrixCloudOption::getOption("monitoring_expire_time")->setStringValue($time);
                    
315		return $time;
                    
319		$domains = new CBitrixCloudMonitoringResult;
                    
320		foreach(CBitrixCloudOption::getOption("monitoring_result")->getArrayValue() as $i => $domainName)
                    
321		{
                    
323				$domainName,
                    
324				CBitrixCloudOption::getOption("monitoring_result_$i")
                    
325			));
                    
                
getOptions.php https://gitlab.com/morganestes/wordpress-develop | PHP | 211 lines
                    
1<?php
                    
2
                    
5 */
                    
6class Tests_XMLRPC_wp_getOptions extends WP_XMLRPC_UnitTestCase {
                    
7
                    
8	function test_invalid_username_password() {
                    
9		$result = $this->myxmlrpcserver->wp_getOptions( array( 1, 'username', 'password' ) );
                    
10		$this->assertIXRError( $result );
                    
16
                    
17		$result = $this->myxmlrpcserver->wp_getOptions( array( 1, 'subscriber', 'subscriber' ) );
                    
18		$this->assertInternalType( 'array', $result );
                    
24
                    
25		$result = $this->myxmlrpcserver->wp_getOptions( array( 1, 'administrator', 'administrator', 'default_comment_status' ) );
                    
26		$this->assertInternalType( 'array', $result );
                    
38
                    
39		$result = $this->myxmlrpcserver->wp_getOptions( array( 1, 'subscriber', 'subscriber' ) );
                    
40		$this->assertInternalType( 'array', $result );
                    
                
TmxTest.php https://github.com/Exercise/zf2.git | PHP | 262 lines
                    
1<?php
                    
2/**
                    
35/**
                    
36 * PHPUnit test case
                    
37 */
                    
46 */
                    
47class TmxTest extends \PHPUnit_Framework_TestCase
                    
48{
                    
132        );
                    
133        $options = $adapter->getOptions();
                    
134
                    
139
                    
140        $this->assertEquals('testkey', $adapter->getOptions('testoption'));
                    
141        $this->assertTrue(is_null($adapter->getOptions('nooption')));
                    
206
                    
207        if (PHP_OS == 'AIX') {
                    
208            return;
                    
                
ezcache.php https://bitbucket.org/crevillo/enetcall.git | PHP | 344 lines
                    
1#!/usr/bin/env php
                    
2<?php
                    
3/**
                    
4 * File containing the ezcache.php script.
                    
5 *
                    
11
                    
12require 'autoload.php';
                    
13
                    
17                                                        "\n" .
                    
18                                                        "./bin/php/ezcache.php --clear-tag=content" ),
                    
19                                     'use-session' => false,
                    
24
                    
25$options = $script->getOptions( "[clear-tag:][clear-id:][clear-all]" . /*[purge-tag:][purge-id:][purge-all]*/ "[iteration-sleep:][iteration-max:][expiry:][list-tags][list-ids][purge]",
                    
26                                "",
                    
                
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');
                    
                
default.php https://github.com/FullService/joomla.git | PHP | 218 lines
                    
23?>
                    
24<form action="<?php echo JRoute::_('index.php?option=com_banners&view=banners'); ?>" method="post" name="adminForm" id="adminForm">
                    
25	<fieldset id="filter-bar">
                    
28			<label class="filter-search-lbl" for="filter_search"><?php echo JText::_('JSEARCH_FILTER_LABEL'); ?></label>
                    
29			<input type="text" name="filter_search" id="filter_search" value="<?php echo $this->escape($this->state->get('filter.search')); ?>" title="<?php echo JText::_('Banners_Search_in_title'); ?>" />
                    
30			<button type="submit"><?php echo JText::_('JSEARCH_FILTER_SUBMIT'); ?></button>
                    
39				<option value=""><?php echo JText::_('COM_BANNERS_SELECT_CLIENT');?></option>
                    
40				<?php echo JHtml::_('select.options', JFormFieldBannerClient::getOptions(), 'value', 'text', $this->state->get('filter.client_id'));?>
                    
41			</select>
                    
141					<?php if ($canEdit) : ?>
                    
142						<a href="<?php echo JRoute::_('index.php?option=com_banners&task=banner.edit&id='.(int) $item->id); ?>">
                    
143							<?php echo $this->escape($item->name); ?></a>
                    
170						<?php $disabled = $saveOrder ?  '' : 'disabled="disabled"'; ?>
                    
171						<input type="text" name="order[]" value="<?php echo $item->ordering;?>" <?php echo $disabled ?> class="text-area-order" title="<?php echo $item->name; ?> order" />
                    
172					<?php else : ?>
                    
                
Grid.php https://gitlab.com/vincent.perdereau/picandparts | PHP | 314 lines
                    
1<?php 
                    
2
                    
10 * It is also available through the world-wide-web at this URL:
                    
11 * http://opensource.org/licenses/osl-3.0.php
                    
12 *
                    
16 * @copyright   Copyright CedCommerce (http://cedcommerce.com/)
                    
17 * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
18 */
                    
194                'type'  => 'options',
                    
195                'options' => Mage::getSingleton('catalog/product_type')->getOptionArray(),
                    
196        ));
                    
253                'type'  => 'options',
                    
254                'options' => Mage::getSingleton('csmarketplace/vproducts')->getOptionArray(),
                    
255        ));
                    
                
lmbLocale.class.php https://github.com/syfisher/limb.git | PHP | 371 lines
                    
1<?php
                    
2/*
                    
2/*
                    
3 * Limb PHP Framework
                    
4 *
                    
8 */
                    
9lmb_require('limb/config/src/lmbIni.class.php');
                    
10lmb_require('limb/i18n/src/locale/lmbLocaleSpec.class.php');
                    
28 * @package i18n
                    
29 * @version $Id: lmbLocale.class.php 7486 2009-01-26 19:13:20Z pachanga $
                    
30 */
                    
113    if($config->hasOption('is_monday_first', 'date_time'))
                    
114      $this->is_monday_first = strtolower($config->getOption('is_monday_first', 'date_time')) == 'yes';
                    
115
                    
152    {
                    
153      $charset = $config->getOption('preferred', 'charset');
                    
154      if($charset != '')
                    
                
Serializer.php https://github.com/udotelaar/zf2.git | PHP | 352 lines
                    
1<?php
                    
2/**
                    
135    {
                    
136        $options    = $this->getOptions();
                    
137        $serializer = $options->getSerializer();
                    
150    {
                    
151        $options    = $this->getOptions();
                    
152        $serializer = $options->getSerializer();
                    
167    {
                    
168        $options    = $this->getOptions();
                    
169        $serializer = $options->getSerializer();
                    
184    {
                    
185        $options    = $this->getOptions();
                    
186        $serializer = $options->getSerializer();
                    
203    {
                    
204        $options    = $this->getOptions();
                    
205        $serializer = $options->getSerializer();
                    
                
Collection.php https://bitbucket.org/acidel/buykoala.git | PHP | 471 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 */

                    
138        foreach ($this as $item) {

                    
139            $item->setOptions($optionCollection->getOptionsByItem($item));

                    
140        }

                    
333     *   wishlist product collection

                    
334     * - this method is useless because we can calculate days in php, and don't use MySQL for it

                    
335     *

                    
                
BlackHole.php https://gitlab.com/faisaliqbal/mytripsorter | PHP | 502 lines
                    
1<?php
                    
2/**
                    
96     */
                    
97    public function getOptions()
                    
98    {
                    
                
pearcmd.php https://bitbucket.org/kucing2k/ediassoc.git | PHP | 444 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
                    
376        return "PEAR Version: ".$GLOBALS['pear_package_version'].
                    
377               "\nPHP Version: ".phpversion().
                    
378               "\nZend Engine Version: ".zend_version().
                    
                
 

Source

Language