PageRenderTime 423ms queryTime 48ms sortTime 22ms getByIdsTime 103ms findMatchingLines 140ms

100+ results results for 'php getopt repo:alexandretaz/maniac_divers' (423 ms)

Not the results you expected?
KurogoSite.php git://github.com/modolabs/Kurogo-Mobile-Web.git | PHP | 319 lines
                    
1<?php
                    
2
                    
97    public function getRequiresSecure() {
                    
98        return $this->requiresSecure || $this->getOptionalSiteVar('SECURE_REQUIRED');
                    
99    }
                    
299
                    
300    public function getOptionalSiteSections($area, $applyContexts=Config::IGNORE_CONTEXTS) {
                    
301        return $this->getConfigStore()->getOptionalSections($area, 'site', $applyContexts);
                    
307
                    
308    public function getOptionalSiteSection($section, $area='site') {
                    
309        return $this->getConfigStore()->getOptionalSection($section, $area, 'site');
                    
315
                    
316    public function getOptionalSiteVar($var, $default='', $section=null, $area='site') {
                    
317        return $this->getConfigStore()->getOptionalVar($var, $default, $section, $area, 'site');
                    
                
sfPropelFormGenerator.class.php http://openirudi.googlecode.com/svn/trunk/ | PHP | 492 lines
                    
99
                    
100      file_put_contents($baseDir.'/base/Base'.$table->getPhpName().'Form.class.php', $this->evalTemplate('sfPropelFormGeneratedTemplate.php'));
                    
101      if (!file_exists($classFile = $baseDir.'/'.$table->getPhpName().'Form.class.php'))
                    
123      {
                    
124        if ($column->isForeignKey() && $column->isPrimaryKey() && $this->table->getPhpName() == $this->getForeignTable($column)->getPhpName())
                    
125        {
                    
129          {
                    
130            if ($relatedColumn->isForeignKey() && $relatedColumn->isPrimaryKey() && $this->table->getPhpName() != $this->getForeignTable($relatedColumn)->getPhpName())
                    
131            {
                    
167      {
                    
168        $names[] = array($this->getForeignTable($column)->getPhpName(), $column->getPhpName(), $column->isNotNull(), false);
                    
169      }
                    
173    {
                    
174      $names[] = array($tables['relatedTable']->getPhpName(), $tables['middleTable']->getPhpName(), false, true);
                    
175    }
                    
                
StatsTest.php git://github.com/basdenooijer/solarium.git | 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(
                    
                
FormValidator.php git://github.com/symfony/symfony.git | PHP | 251 lines
                    
1<?php
                    
2
                    
63            /** @var Constraint[] $constraints */
                    
64            $constraints = $config->getOption('constraints', []);
                    
65
                    
160                $this->context->setConstraint($formConstraint);
                    
161                $this->context->buildViolation($failure->getInvalidMessage() ?? $config->getOption('invalid_message'))
                    
162                    ->setParameters(array_replace(
                    
163                        ['{{ value }}' => $clientDataAsString],
                    
164                        $config->getOption('invalid_message_parameters'),
                    
165                        $failure->getInvalidMessageParameters()
                    
174        // Mark the form with an error if it contains extra fields
                    
175        if (!$config->getOption('allow_extra_fields') && \count($form->getExtraData()) > 0) {
                    
176            $this->context->setConstraint($formConstraint);
                    
176            $this->context->setConstraint($formConstraint);
                    
177            $this->context->buildViolation($config->getOption('extra_fields_message', ''))
                    
178                ->setParameter('{{ extra_fields }}', '"'.implode('", "', array_keys($form->getExtraData())).'"')
                    
                
AdminTypeTest.php git://github.com/sonata-project/SonataAdminBundle.git | PHP | 256 lines
                    
1<?php
                    
2
                    
96        $field->getName()->shouldBeCalled();
                    
97        $field->getOption('edit', 'standard')->shouldBeCalled();
                    
98        $field->getOption('inline', 'natural')->shouldBeCalled();
                    
98        $field->getOption('inline', 'natural')->shouldBeCalled();
                    
99        $field->getOption('block_name', false)->shouldBeCalled();
                    
100        $formData = [];
                    
                
Command.php git://github.com/pmjones/php-framework-benchmarks.git | PHP | 512 lines
                    
1<?php
                    
2
                    
181
                    
182        $this->definition->addOptions($this->application->getDefinition()->getOptions());
                    
183
                    
378            $name,
                    
379            $_SERVER['PHP_SELF'].' '.$name
                    
380        );
                    
                
FormErrors.php http://firephp.googlecode.com/svn/trunk/ | PHP | 0 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']);
                    
                
LocalTaskDefaultTest.php git://github.com/drupal/drupal.git | PHP | 348 lines
                    
1<?php
                    
2
                    
55   *
                    
56   * @var \Drupal\Core\StringTranslation\TranslationInterface|\PHPUnit\Framework\MockObject\MockObject
                    
57   */
                    
62   *
                    
63   * @var \Drupal\Core\Routing\RouteProviderInterface|\PHPUnit\Framework\MockObject\MockObject
                    
64   */
                    
297  /**
                    
298   * @covers ::getOptions
                    
299   */
                    
299   */
                    
300  public function testGetOptions() {
                    
301    $this->pluginDefinition['options'] = [
                    
307    $route_match = new RouteMatch('', new Route('/'));
                    
308    $this->assertEquals($this->pluginDefinition['options'], $this->localTaskBase->getOptions($route_match));
                    
309
                    
                
UpgradeTask.php git://github.com/croogo/croogo.git | PHP | 353 lines
                    
1<?php
                    
2
                    
8 * @author   Fahad Ibnay Heylaal <contact@fahad19.com>
                    
9 * @license  http://www.opensource.org/licenses/mit-license.php The MIT License
                    
10 * @link     http://www.croogo.org
                    
56/**
                    
57 * getOptionParser
                    
58 */
                    
58 */
                    
59	public function getOptionParser() {
                    
60		return parent::getOptionParser()
                    
65		'Upgrades the ACO hierarchy from 1.3/1.4 so it follows the default ' .
                    
66		'behavior in normal CakePHP applications. The primary difference is ' .
                    
67		'plugin controllers now are stored underneath its own Plugin ACO record, ' .
                    
                
FormatterPluginManager.php git://github.com/drupal/drupal.git | PHP | 210 lines
                    
1<?php
                    
2
                    
168   */
                    
169  public function getOptions($field_type = NULL) {
                    
170    if (!isset($this->formatterOptions)) {
                    
                
ReCaptchaTest.php http://firephp.googlecode.com/svn/trunk/ | PHP | 0 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: ReCaptchaTest.php 24220 2011-07-11 21:31:29Z 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{
                    
                
ReCaptchaTest.php git://pkgs.fedoraproject.org/php-ZendFramework | PHP | 295 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: ReCaptchaTest.php 24594 2012-01-05 21:27:01Z 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{
                    
                
ExportXmlTest.php git://github.com/phpmyadmin/phpmyadmin.git | PHP | 436 lines
                    
1<?php
                    
2
                    
4
                    
5namespace PhpMyAdmin\Tests\Plugins\Export;
                    
6
                    
6
                    
7use PhpMyAdmin\DatabaseInterface;
                    
8use PhpMyAdmin\Plugins\Export\ExportXml;
                    
8use PhpMyAdmin\Plugins\Export\ExportXml;
                    
9use PhpMyAdmin\Properties\Options\Groups\OptionsPropertyMainGroup;
                    
10use PhpMyAdmin\Properties\Options\Groups\OptionsPropertyRootGroup;
                    
10use PhpMyAdmin\Properties\Options\Groups\OptionsPropertyRootGroup;
                    
11use PhpMyAdmin\Properties\Options\Items\BoolPropertyItem;
                    
12use PhpMyAdmin\Properties\Options\Items\HiddenPropertyItem;
                    
12use PhpMyAdmin\Properties\Options\Items\HiddenPropertyItem;
                    
13use PhpMyAdmin\Properties\Plugins\ExportPluginProperties;
                    
14use PhpMyAdmin\Table;
                    
                
sendcoinsdialog.cpp https://gitlab.com/bitcoin/bitcoin-stable.git | C++ | 329 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
                    
53    }
                    
54    if(model && model->getOptionsModel())
                    
55    {
                    
57        connect(model, SIGNAL(balanceChanged(qint64, qint64, qint64)), this, SLOT(setBalance(qint64, qint64, qint64)));
                    
58        connect(model->getOptionsModel(), SIGNAL(displayUnitChanged(int)), this, SLOT(updateDisplayUnit()));
                    
59    }
                    
314    Q_UNUSED(immatureBalance);
                    
315    if(!model || !model->getOptionsModel())
                    
316        return;
                    
317
                    
318    int unit = model->getOptionsModel()->getDisplayUnit();
                    
319    ui->labelBalance->setText(BitcoinUnits::formatWithUnit(unit, balance));
                    
                
Spellcheck.php git://github.com/basdenooijer/solarium.git | PHP | 397 lines
                    
1<?php
                    
2/**
                    
110    {
                    
111        return $this->getOption('query');
                    
112    }
                    
133    {
                    
134        return $this->getOption('build');
                    
135    }
                    
156    {
                    
157        return $this->getOption('reload');
                    
158    }
                    
179    {
                    
180        return $this->getOption('dictionary');
                    
181    }
                    
202    {
                    
203        return $this->getOption('count');
                    
204    }
                    
                
%%A1^A1B^A1B35AFB%%SN1_Serial_NumberEditViewfault_description.tpl.php https://bitbucket.org/allexblacker/suitecrm.git | PHP | 401 lines
                    
1<?php /* Smarty version 2.6.29, created on 2018-03-15 01:35:35
                    
2         compiled from cache/include/InlineEditing/SN1_Serial_NumberEditViewfault_description.tpl */ ?>
                    
2         compiled from cache/include/InlineEditing/SN1_Serial_NumberEditViewfault_description.tpl */ ?>
                    
3<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
                    
4smarty_core_load_plugins(array('plugins' => array(array('function', 'html_options', 'cache/include/InlineEditing/SN1_Serial_NumberEditViewfault_description.tpl', 10, false),array('function', 'sugar_getimagepath', 'cache/include/InlineEditing/SN1_Serial_NumberEditViewfault_description.tpl', 43, false),array('modifier', 'lookup', 'cache/include/InlineEditing/SN1_Serial_NumberEditViewfault_description.tpl', 38, false),array('modifier', 'count', 'cache/include/InlineEditing/SN1_Serial_NumberEditViewfault_description.tpl', 143, false),)), $this); ?>
                    
6
                    
7<?php if (! isset ( $this->_tpl_vars['config']['enable_autocomplete'] ) || $this->_tpl_vars['config']['enable_autocomplete'] == false): ?>
                    
8	<select name="<?php echo $this->_tpl_vars['fields']['fault_description']['name']; ?>
                    
9" 
                    
10	id="<?php echo $this->_tpl_vars['fields']['fault_description']['name']; ?>
                    
11" 
                    
24	<?php $this->assign('field_options', $this->_tpl_vars['fields']['fault_description']['options']); ?>
                    
25	<?php ob_start(); ?><?php echo $this->_tpl_vars['fields']['fault_description']['value']; ?>
                    
26<?php $this->_smarty_vars['capture']['field_val'] = ob_get_contents(); ob_end_clean(); ?>
                    
27	<?php $this->assign('field_val', $this->_smarty_vars['capture']['field_val']); ?>
                    
28	<?php ob_start(); ?><?php echo $this->_tpl_vars['fields']['fault_description']['name']; ?>
                    
29<?php $this->_smarty_vars['capture']['ac_key'] = ob_get_contents(); ob_end_clean(); ?>
                    
                
getopt.m4 git://pkgs.fedoraproject.org/grep | m4 | 379 lines
                    
67  dnl Test whether <getopt.h> is available.
                    
68  if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
                    
69    AC_CHECK_HEADERS([getopt.h], [], [gl_replace_getopt=yes])
                    
72  dnl Test whether the function getopt_long is available.
                    
73  if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
                    
74    AC_CHECK_FUNCS([getopt_long_only], [], [gl_replace_getopt=yes])
                    
120            [gl_cv_func_getopt_posix=maybe],
                    
121            [gl_cv_func_getopt_posix=no])
                    
122          if test $gl_cv_func_getopt_posix = maybe; then
                    
208
                    
209  if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
                    
210    AC_CACHE_CHECK([for working GNU getopt function], [gl_cv_func_getopt_gnu],
                    
365[
                    
366  GETOPT_H=getopt.h
                    
367  AC_DEFINE([__GETOPT_PREFIX], [[rpl_]],
                    
                
manager.zep.h git://github.com/phalcon/cphalcon.git | C Header | 205 lines
                    
5
                    
6PHP_METHOD(Phalcon_Assets_Manager, __construct);
                    
7PHP_METHOD(Phalcon_Assets_Manager, addAsset);
                    
7PHP_METHOD(Phalcon_Assets_Manager, addAsset);
                    
8PHP_METHOD(Phalcon_Assets_Manager, addAssetByType);
                    
9PHP_METHOD(Phalcon_Assets_Manager, addCss);
                    
9PHP_METHOD(Phalcon_Assets_Manager, addCss);
                    
10PHP_METHOD(Phalcon_Assets_Manager, addInlineCode);
                    
11PHP_METHOD(Phalcon_Assets_Manager, addInlineCodeByType);
                    
21PHP_METHOD(Phalcon_Assets_Manager, getJs);
                    
22PHP_METHOD(Phalcon_Assets_Manager, getOptions);
                    
23PHP_METHOD(Phalcon_Assets_Manager, output);
                    
192	PHP_ME(Phalcon_Assets_Manager, getJs, arginfo_phalcon_assets_manager_getjs, ZEND_ACC_PUBLIC)
                    
193	PHP_ME(Phalcon_Assets_Manager, getOptions, arginfo_phalcon_assets_manager_getoptions, ZEND_ACC_PUBLIC)
                    
194	PHP_ME(Phalcon_Assets_Manager, output, arginfo_phalcon_assets_manager_output, ZEND_ACC_PUBLIC)
                    
                
Process.php git://github.com/pmjones/php-framework-benchmarks.git | PHP | 372 lines
                    
1<?php
                    
2
                    
15 * Process is a thin wrapper around proc_* functions to ease
                    
16 * start independent PHP processes.
                    
17 *
                    
51        if (!function_exists('proc_open')) {
                    
52            throw new \RuntimeException('The Process class relies on proc_open, which is not available on your PHP installation.');
                    
53        }
                    
79     *
                    
80     * @param Closure|string|array $callback A PHP callback to run whenever there is some
                    
81     *                                       output available on STDOUT or STDERR
                    
106
                    
107        // Workaround for http://bugs.php.net/bug.php?id=51800
                    
108        if (strstr(PHP_OS, 'WIN')) {
                    
362
                    
363    public function getOptions()
                    
364    {
                    
                
FormErrors.php git://github.com/eryx/php-framework-benchmark.git | PHP | 467 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']);
                    
                
redis_cluster.h git://github.com/nicolasff/phpredis.git | C Header | 298 lines
                    
4#include "cluster_library.h"
                    
5#include <php.h>
                    
6#include <stddef.h>
                    
8/* Get attached object context */
                    
9#define GET_CONTEXT() PHPREDIS_ZVAL_GET_OBJECT(redisCluster, getThis())
                    
10
                    
100/* RedisCluster method implementation */
                    
101PHP_METHOD(RedisCluster, __construct);
                    
102PHP_METHOD(RedisCluster, close);
                    
102PHP_METHOD(RedisCluster, close);
                    
103PHP_METHOD(RedisCluster, get);
                    
104PHP_METHOD(RedisCluster, set);
                    
289PHP_METHOD(RedisCluster, clearlasterror);
                    
290PHP_METHOD(RedisCluster, getoption);
                    
291PHP_METHOD(RedisCluster, setoption);
                    
                
fixremovedezurlobjectlinks.php git://github.com/ezsystems/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();
                    
                
ProductModalDetailsView.php https://bitbucket.org/zurmo/zurmo/ | PHP | 211 lines
                    
1<?php
                    
2    /*********************************************************************************
                    
205         */
                    
206        protected static function getOptionsMenuCssClass()
                    
207        {
                    
                
RemoteFilesystemTest.php git://github.com/composer/composer.git | PHP | 304 lines
                    
1<?php
                    
2
                    
33
                    
34    public function testGetOptionsForUrl()
                    
35    {
                    
42
                    
43        $res = $this->callGetOptionsForUrl($io, array('http://example.org', array()));
                    
44        $this->assertTrue(isset($res['http']['header']) && is_array($res['http']['header']), 'getOptions must return an array with headers');
                    
46
                    
47    public function testGetOptionsForUrlWithAuthorization()
                    
48    {
                    
60
                    
61        $options = $this->callGetOptionsForUrl($io, array('http://example.org', array()));
                    
62
                    
68        }
                    
69        $this->assertTrue($found, 'getOptions must have an Authorization header');
                    
70    }
                    
                
Label.php git://github.com/valentinbora/joobsbox-php.git | PHP | 329 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)
                    
43 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
44 * @version    $Id: Label.php 16218 2009-06-21 19:44:04Z thomas $
                    
45 */
                    
81    {
                    
82        $id = $this->getOption('id');
                    
83        if (null === $id) {
                    
116        if (null === $this->_tag) {
                    
117            $tag = $this->getOption('tag');
                    
118            if (null !== $tag) {
                    
                
ImportShpTest.php git://github.com/phpmyadmin/phpmyadmin.git | PHP | 215 lines
                    
1<?php
                    
2
                    
4
                    
5namespace PhpMyAdmin\Tests\Plugins\Import;
                    
6
                    
6
                    
7use PhpMyAdmin\DatabaseInterface;
                    
8use PhpMyAdmin\File;
                    
8use PhpMyAdmin\File;
                    
9use PhpMyAdmin\Plugins\Import\ImportShp;
                    
10use PhpMyAdmin\Tests\AbstractTestCase;
                    
15/**
                    
16 * @covers \PhpMyAdmin\Plugins\Import\ImportShp
                    
17 * @requires extension zip
                    
103        );
                    
104        $this->assertNull($properties->getOptions());
                    
105        $this->assertEquals(
                    
                
DiningWebModule.php git://github.com/modolabs/Kurogo-Mobile-Web.git | PHP | 359 lines
                    
1<?php
                    
2
                    
159    $this->feeds = $this->getModuleSections('feeds');
                    
160    $this->SHOW_HOURS_STATUS = $this->getOptionalModuleVar('SHOW_HOURS_STATUS', true);
                    
161    $this->SHOW_EVENT_DETAILS = $this->getOptionalModuleVar('SHOW_EVENT_DETAILS', true);
                    
175    foreach ($locationDataModels as $feedID => $model) {
                    
176      if ($this->getOptionalModuleVar('SHOW_OPEN_AT_TOP', 0)) {
                    
177          $model->setSortByOpen();
                    
                
nweb_threads.c git://github.com/jetm/Curso-Empotrado.git | C | 371 lines
                    
40	{"html","text/html" },
                    
41	{"php", "text/html" },
                    
42	{"cgi", "text/html" },
                    
74
                    
75	while ((i = getopt (argc, argv, "p:d:t:")) != -1)
                    
76		switch (i) {
                    
320                    }
                    
321                // PHP Execution
                    
322                } else if (!strncmp(extensions[i].ext, "php", 3)) {
                    
322                } else if (!strncmp(extensions[i].ext, "php", 3)) {
                    
323                    strcat(shell,"php -f ");
                    
324                    strcat(shell,&buffer[5]);
                    
324                    strcat(shell,&buffer[5]);
                    
325                    Log(LOG,"PHP Script", shell, *fd);
                    
326
                    
                
fbclone.dpr http://fbclone.googlecode.com/svn/trunk/ | Pascal | 318 lines
                    
5 * You may obtain a copy of the License from the Firebird Project website,
                    
6 * at http://www.firebirdsql.org/index.php?op=doc&id=idpl.
                    
7 *
                    
29  uibconst,
                    
30  console.getopts in 'console.getopts.pas',
                    
31  fbclone.cloner in 'fbclone.cloner.pas',
                    
71var
                    
72  GO: TGetOpt;
                    
73  O: POption;
                    
94
                    
95  GO := TGetOpt.Create;
                    
96  try
                    
                
JGoogleDataAdsenseTest.php git://github.com/joomla/joomla-platform.git | PHP | 434 lines
                    
1<?php
                    
2/**
                    
60		$_SERVER['HTTP_USER_AGENT'] = 'Mozilla/5.0';
                    
61		$_SERVER['REQUEST_URI'] = '/index.php';
                    
62		$_SERVER['SCRIPT_NAME'] = '/index.php';
                    
288	/**
                    
289	 * Tests the getOption method
                    
290	 *
                    
293	 */
                    
294	public function testGetOption()
                    
295	{
                    
298		$this->assertThat(
                    
299			$this->object->getOption('key'),
                    
300			$this->equalTo('value')
                    
                
FindCest.php git://github.com/phalcon/cphalcon.git | PHP | 379 lines
                    
1<?php
                    
2
                    
30
                    
31use function getOptionsRedis;
                    
32use function outputDir;
                    
301        $adapterFactory    = new AdapterFactory($serializerFactory);
                    
302        $adapter           = $adapterFactory->newInstance('redis', getOptionsRedis());
                    
303        $cache             = new Cache($adapter);
                    
                
Task.php git://github.com/WindowsAzure/azure-sdk-for-php.git | PHP | 655 lines
                    
1<?php
                    
2
                    
14 *
                    
15 * PHP version 5
                    
16 *
                    
18 *
                    
19 * @author    Azure PHP SDK <azurephpsdk@microsoft.com>
                    
20 * @copyright Microsoft Corporation
                    
22 *
                    
23 * @link      https://github.com/windowsazure/azure-sdk-for-php
                    
24 */
                    
34 *
                    
35 * @author    Azure PHP SDK <azurephpsdk@microsoft.com>
                    
36 * @copyright Microsoft Corporation
                    
40 *
                    
41 * @link      https://github.com/windowsazure/azure-sdk-for-php
                    
42 */
                    
                
mdl.passport.php http://phpfor.googlecode.com/svn/trunk/ | PHP | 303 lines
                    
1<?php
                    
2require_once('plugin.php');
                    
23                $this->_passport = &$obj;
                    
24                if(method_exists($obj,'getOptions')||method_exists($obj,'getoptions')){
                    
25                    $obj->setConfig($this->getOptions($plugin,true));
                    
204    function setCookie($name,$value,$expire=false,$path=null){
                    
205        $cookiePath = substr(PHP_SELF, 0, strrpos(PHP_SELF, '/')).'/';
                    
206        $cookieLife = 3600;
                    
                
phpExtensionBuilder.pas http://php5delphi.googlecode.com/svn/trunk/ | Pascal | 381 lines
                    
1{$I Builder.INC}
                    
2unit phpExtensionBuilder;
                    
3
                    
48    function GetFileName: string;
                    
49    function GetOptionFileName: string;
                    
50    function GetShowSource: Boolean;
                    
73
                    
74{$R PHPEXT.RES}
                    
75
                    
112begin
                    
113  Result := 'PHP Extensions builder';
                    
114end;
                    
121begin
                    
122  Result := LoadIcon(hInstance, 'PHPEXTWIZ');
                    
123end;
                    
                
PhabricatorCoreConfigOptions.php git://github.com/facebook/phabricator.git | PHP | 321 lines
                    
1<?php
                    
2
                    
21
                    
22  public function getOptions() {
                    
23    if (phutil_is_windows()) {
                    
57    $timezone_description = $this->deformat(pht(<<<EOREMARKUP
                    
58PHP date functions will emit a warning if they are called when no default
                    
59server timezone is configured.
                    
60
                    
61Usually, you configure a default timezone in `php.ini` by setting the
                    
62configuration value `date.timezone`.
                    
65a default timezone, select a timezone from the
                    
66[[ %s | PHP List of Supported Timezones ]].
                    
67EOREMARKUP
                    
68,
                    
69      'https://php.net/manual/timezones.php'));
                    
70
                    
                
TransformationsTest.php git://github.com/phpmyadmin/phpmyadmin.git | PHP | 368 lines
                    
1<?php
                    
2
                    
4
                    
5namespace PhpMyAdmin\Tests;
                    
6
                    
6
                    
7use PhpMyAdmin\DatabaseInterface;
                    
8use PhpMyAdmin\Transformations;
                    
8use PhpMyAdmin\Transformations;
                    
9use PhpMyAdmin\Version;
                    
10
                    
11/**
                    
12 * @covers \PhpMyAdmin\Transformations
                    
13 */
                    
51     *
                    
52     * @dataProvider getOptionsData
                    
53     */
                    
                
walletmodel.h https://bitbucket.org/r_development82/nxton-core.git | C Header | 298 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
                    
127
                    
128    OptionsModel* getOptionsModel();
                    
129    AddressTableModel* getAddressTableModel();
                    
                
COMR.php http://xepec.googlecode.com/svn/trunk/ | PHP | 401 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * PHP Reader Library
                    
4 *
                    
4 *
                    
5 * Copyright (c) 2008 The PHP Reader Project Workgroup. All rights reserved.
                    
6 *
                    
30 *
                    
31 * @package    php-reader
                    
32 * @subpackage ID3
                    
32 * @subpackage ID3
                    
33 * @copyright  Copyright (c) 2008 The PHP Reader Project Workgroup
                    
34 * @license    http://code.google.com/p/php-reader/wiki/License New BSD License
                    
34 * @license    http://code.google.com/p/php-reader/wiki/License New BSD License
                    
35 * @version    $Id: COMR.php 129 2008-12-28 19:00:44Z svollbehr $
                    
36 */
                    
                
PhpredisClientFactoryTest.php git://github.com/snc/SncRedisBundle.git | PHP | 184 lines
                    
11
                    
12class PhpredisClientFactoryTest extends TestCase
                    
13{
                    
16        if (!class_exists(\Redis::class)) {
                    
17            $this->markTestSkipped(sprintf('The %s requires phpredis extension.', __CLASS__));
                    
18        } elseif (!@fsockopen('127.0.0.1', 6379)) {
                    
49        $this->assertSame(0., $client->getOption(\RedisCluster::OPT_READ_TIMEOUT));
                    
50        $this->assertSame(0, $client->getOption(\RedisCluster::OPT_SCAN));
                    
51        $this->assertSame(0, $client->getOption(\RedisCluster::OPT_SLAVE_FAILOVER));
                    
173            ['none', \Redis::SERIALIZER_NONE],
                    
174            ['php', \Redis::SERIALIZER_PHP],
                    
175        ];
                    
176
                    
177        // \Redis::SERIALIZER_JSON is only available since phpredis 5
                    
178        if (defined('Redis::SERIALIZER_JSON')) {
                    
                
KaMap.js git://github.com/phpmyadmin/phpmyadmin.git | JavaScript | 192 lines
                    
45     *    inconsistently if your format parameter does not match the format
                    
46     *    parameter configured in your config.php. (See ticket #327 for more
                    
47     *    information.)
                    
151                                            this.params,
                    
152                                            this.getOptions());
                    
153        }
                    
                
Route.php git://github.com/symfony/symfony.git | PHP | 568 lines
                    
1<?php
                    
2
                    
251     */
                    
252    public function getOptions()
                    
253    {
                    
311     */
                    
312    public function getOption(string $name)
                    
313    {
                    
541
                    
542        $class = $this->getOption('compiler_class');
                    
543
                    
                
ExposedFormPluginBase.php https://bitbucket.org/aswinvk28/smartpan-stock-drupal.git | PHP | 326 lines
                    
1<?php
                    
2
                    
133    // exposed filter form for the attachment as well as that for the parent.
                    
134    if (!$this->view->display_handler->displaysExposed() || (!$block && $this->view->display_handler->getOption('exposed_block'))) {
                    
135      unset($form_state['rerender']);
                    
144
                    
145    if (!$this->view->display_handler->displaysExposed() || (!$block && $this->view->display_handler->getOption('exposed_block'))) {
                    
146      return array();
                    
                
BudgetOptimizerAdGroupCriterionBids.html http://google-api-adwords-php.googlecode.com/svn/trunk/ | HTML | 0 lines
                    
23	<div class="info-box-body">
                    
24        		<!-- ========== Info from phpDoc block ========= -->
                    
25<p class="short-description">AdGroupCriterion level bids used in budget optimizer bidding strategy.</p>
                    
26		<p class="notes">
                    
27			Located in <a class="field" href="_Ads---AdWords---v201008---AdGroupCriterionService.php.html">/Ads/AdWords/v201008/AdGroupCriterionService.php</a> (line <span class="field">891</span>)
                    
28		</p>
                    
32   |
                    
33   --BudgetOptimizerAdGroupCriterionBids</pre>
                    
34	
                    
119
                    
120	<!-- ========== Info from phpDoc block ========= -->
                    
121	<ul class="tags">
                    
293	<p class="notes" id="credit">
                    
294		Documentation generated by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.3</a>
                    
295	</p>
                    
                
pages_form.php http://kancms.googlecode.com/svn/trunk/ | PHP | 235 lines
                    
57            <td >
                    
58                <input type="text" id="PageName" name="PageName" size="50" value="<?php echo isset($edit_page) ? $edit_page->getName() : "Page Title"; ?>" />
                    
59            </td>
                    
65            <td align="left" nowrap="nowrap">
                    
66                <input name="PageNameAlias" type="text" class="alias" id="PageNameAlias" value="<?php echo isset($edit_page) ? $edit_page->getAlias() : "page-title"; ?>" size="50" />
                    
67            </td>
                    
136            <td colspan="2">
                    
137                <textarea name="PageSummary" id="PageSummary" cols="60" rows="7" style="width: 100%;"><?php echo isset($edit_page) ? kan_make_plain($edit_page->getSummary()) : ""; ?></textarea>
                    
138            </td>
                    
174                        <li id="php-tab">
                    
175                            <a id="php" href="#php-pane">PHP Code</a>
                    
176                        </li>
                    
197                <textarea name="PageContent" cols="1" rows="1" id="Content" style="position:absolute; z-index: -1;"><?php echo isset($edit_page) ? kan_make_plain($edit_page->getContent()) : ""; ?></textarea>
                    
198                <input type="hidden" name="id" id="id" value="<?php echo isset($edit_page) ? $edit_page->getId() : ""; ?>"  />
                    
199            </td>
                    
                
Router.php git://github.com/fabpot/symfony.git | PHP | 208 lines
                    
1<?php
                    
2
                    
72            try {
                    
73                $containerFile = ($this->paramFetcher)('kernel.cache_dir').'/'.($this->paramFetcher)('kernel.container_class').'.php';
                    
74                if (file_exists($containerFile)) {
                    
88     *
                    
89     * @return string[] A list of classes to preload on PHP 7.4+
                    
90     */
                    
92    {
                    
93        $currentDir = $this->getOption('cache_dir');
                    
94
                    
102        return [
                    
103            $this->getOption('generator_class'),
                    
104            $this->getOption('matcher_class'),
                    
                
clilib.php https://github.com/nicolasconnault/moodle2.0.git | PHP | 544 lines
                    
1<?php  //$Id: clilib.php,v 1.2 2009/01/10 20:44:45 skodak Exp $
                    
2/**
                    
8set_include_path($CFG->libdir . PATH_SEPARATOR . $CFG->libdir . '/pear/');
                    
9require_once('Console/Getopt.php');
                    
10
                    
121 * If value match the type return true, false otherwise
                    
122 * uses {@link clean_param()} in moodlelib.php
                    
123 * @param mixedtype $value
                    
161 *
                    
162 * @param array of option arguments as defined by PEAR GetOpt calss $opt
                    
163 * @return return a options arguments with options as keys and values as respective value for key
                    
                
Generator.php https://bitbucket.org/andersus/querytalogo.git | 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 ){
                    
                
MultiExec.php git://github.com/nrk/predis.git | PHP | 461 lines
                    
1<?php
                    
2
                    
92        } else {
                    
93            $this->exceptions = $client->getOptions()->exceptions;
                    
94        }
                    
                
I18nShell.php git://github.com/cakephp/cakephp.git | PHP | 157 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
4 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
10 * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
11 * @link          http://cakephp.org CakePHP(tm) Project
                    
12 * @since         1.2.0
                    
12 * @since         1.2.0
                    
13 * @license       http://www.opensource.org/licenses/mit-license.php MIT License
                    
14 */
                    
120     */
                    
121    public function getOptionParser()
                    
122    {
                    
122    {
                    
123        $parser = parent::getOptionParser();
                    
124        $initParser = [
                    
                
create.class.php git://github.com/modxcms/revolution.git | PHP | 306 lines
                    
1<?php
                    
2/*
                    
10
                    
11require_once dirname(__FILE__).'/resource.class.php';
                    
12/**
                    
32    public function loadCustomCssJs() {
                    
33        $mgrUrl = $this->modx->getOption('manager_url',null,MODX_MANAGER_URL);
                    
34        $this->addJavascript($mgrUrl.'assets/modext/widgets/element/modx.panel.tv.renders.js');
                    
76            $this->parent->set('id',0);
                    
77            $this->parent->set('template',$this->modx->getOption('default_template',null,1));
                    
78        }
                    
109                'template' => $defaultTemplate,
                    
110                'content_type' => $this->context->getOption('default_content_type',1,$this->modx->_userConfig),
                    
111                'class_key' => $this->resourceClass,
                    
113                'parent' => $this->parent->get('id'),
                    
114                'richtext' =>  $this->context->getOption('richtext_default', true, $this->modx->_userConfig),
                    
115                'hidemenu' => $this->context->getOption('hidemenu_default', 0, $this->modx->_userConfig),
                    
                
BigPipeStrategy.php git://github.com/drupal/drupal.git | PHP | 291 lines
                    
1<?php
                    
2
                    
116    // Routes can opt out from using the BigPipe HTML delivery technique.
                    
117    if ($this->routeMatch->getRouteObject()->getOption('_no_big_pipe')) {
                    
118      return [];
                    
                
PhpFileLoaderTest.php git://github.com/symfony/symfony.git | PHP | 287 lines
                    
167        $loader = new PhpFileLoader($locator);
                    
168        $routeCollectionClosure = $loader->load('php_dsl.php');
                    
169        $routeCollectionObject = $loader->load('php_object_dsl.php');
                    
207        $expectedCollectionClosure->addResource(new FileResource(realpath(__DIR__.'/../Fixtures/php_dsl.php')));
                    
208        $expectedCollectionObject->addResource(new FileResource(realpath(__DIR__.'/../Fixtures/php_object_dsl.php')));
                    
209
                    
217        $loader = new PhpFileLoader($locator);
                    
218        $routeCollection = $loader->load('php_dsl.php');
                    
219
                    
230        $loader = new PhpFileLoader($locator);
                    
231        $routeCollection = $loader->load('php_dsl_i18n.php');
                    
232
                    
242        $expectedCollection->addResource(new FileResource(realpath(__DIR__.'/../Fixtures/php_dsl_sub_i18n.php')));
                    
243        $expectedCollection->addResource(new FileResource(realpath(__DIR__.'/../Fixtures/php_dsl_i18n.php')));
                    
244
                    
                
include.php https://bitbucket.org/bohdan1217/norka.git | PHP | 393 lines
                    
6	array(
                    
7		'CSeoUtils' => 'classes/general/seo_utils.php',
                    
8		'CSeoKeywords' => 'classes/general/seo_keywords.php',
                    
8		'CSeoKeywords' => 'classes/general/seo_keywords.php',
                    
9		'CSeoPageChecker' => 'classes/general/seo_page_checker.php'
                    
10	)
                    
14{
                    
15	if (COption::GetOptionString('main', 'vendor', '') == '1c_bitrix')
                    
16	{
                    
25			'SEO_COUNTERS_DEFAULT',
                    
26			'<a href="http://www.whats-my-pagerank.com" target="_blank"><img src = "http://www.whats-my-pagerank.com/pagerank2.php" alt="PR Checker" border="0" /></a>'
                    
27		);
                    
68
                    
69		$prop_code = ToUpper(COption::GetOptionString('seo', 'property_window_title', 'title'));
                    
70
                    
                
bpm-getopt.php http://buddypress-media.googlecode.com/svn/bp_media/trunk/ | PHP | 374 lines
                    
4 * 
                    
5 *  prior to PHP 5.3 getopt is not supported on the windows plattform
                    
6 *  and it does not support long options on other plattforms as well.
                    
31 *  @link http://www.ntu.beautifulworldco.com/weblog/?p=526
                    
32 *  @link http://www.php.net/getopt
                    
33 */
                    
39 * 
                    
40 * @see getoptParser::getopt()
                    
41 * @see getoptParser::split_para()
                    
46	 * 
                    
47	 * Usage: _getopt ( [$flag,] $short_option [, $long_option] );
                    
48	 * 
                    
52	 * _getopt() fully simulates getopt() which is described at 
                    
53	 * (@see http://us.php.net/manual/en/function.getopt.php} , including long 
                    
54	 * options for PHP version under 5.3.0. (Prior to 5.3.0, long options was 
                    
                
ArrayTest.php http://firephp.googlecode.com/svn/trunk/ | PHP | 0 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: ArrayTest.php 23772 2011-02-28 21:35:29Z ralph $
                    
21 */
                    
22
                    
23if (!defined('PHPUnit_MAIN_METHOD')) {
                    
24    define('PHPUnit_MAIN_METHOD', 'Zend_Translate_Adapter_ArrayTest::main');
                    
29 */
                    
30require_once 'Zend/Translate/Adapter/Array.php';
                    
31
                    
39 */
                    
40class Zend_Translate_Adapter_ArrayTest extends PHPUnit_Framework_TestCase
                    
41{
                    
55    {
                    
56        $suite  = new PHPUnit_Framework_TestSuite("Zend_Translate_Adapter_ArrayTest");
                    
57        $result = PHPUnit_TextUI_TestRunner::run($suite);
                    
                
DatabasePeopleRetriever.php git://github.com/modolabs/Kurogo-Mobile-Web.git | PHP | 280 lines
                    
1<?php
                    
2
                    
221        
                    
222        switch ($this->getOption('action')) {
                    
223            case 'search':
                    
                
Options.php https://bitbucket.org/asohn_fandi/er-devops.git | PHP | 397 lines
                    
1<?php
                    
2
                    
33        $argv = array_key_exists('argv', $GLOBALS) ? $GLOBALS['argv'] : [];
                    
34        if (count($argv) > 0 && strpos($argv[0], 'phpunit') > -1) {
                    
35            return [];
                    
36        }
                    
37        if (count($argv) > 1 && strpos($argv[1], 'phpunit') > -1) {
                    
38            return [];
                    
94            $argv = self::getArgv(); # assign to variable because array_splice() is destructive.
                    
95            if (Service::isPhpUnit()) {
                    
96                $commandLineOptions = $argv;
                    
97            } else {
                    
98                # drop script_name and service_name. Assumes script_name is not executable (e.g. `php script_name service_name`)
                    
99                $commandLineOptions = count($argv) > 1 ? array_splice($argv, 2) : [];  // @codeCoverageIgnore
                    
255    /**
                    
256     * PHP's getopt() will stop parsing command line arguments when it encounters something that is't defined by
                    
257     * its $options or $longopts. This one doesn't care and we'll ensure options are defined later in ensureKnownOptions()
                    
                
ConnectionTest.php https://bitbucket.org/hfab/webservice.git | PHP | 451 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * ArangoDB PHP client testsuite
                    
4 * File: ConnectionTest.php
                    
23class ConnectionTest extends
                    
24    \PHPUnit_Framework_TestCase
                    
25{
                    
32        try {
                    
33            $this->collectionHandler->drop('ArangoDB_PHP_TestSuite_TestTracer');
                    
34        } catch (\Exception $e) {
                    
61     */
                    
62    public function testGetOptions()
                    
63    {
                    
65
                    
66        $value = $connection->getOption(ConnectionOptions::OPTION_TIMEOUT);
                    
67        static::assertEquals(12, $value);
                    
                
ArrayTest.php git://pkgs.fedoraproject.org/php-ZendFramework | PHP | 354 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: ArrayTest.php 24594 2012-01-05 21:27:01Z matthew $
                    
21 */
                    
22
                    
23if (!defined('PHPUnit_MAIN_METHOD')) {
                    
24    define('PHPUnit_MAIN_METHOD', 'Zend_Translate_Adapter_ArrayTest::main');
                    
29 */
                    
30require_once 'Zend/Translate/Adapter/Array.php';
                    
31
                    
39 */
                    
40class Zend_Translate_Adapter_ArrayTest extends PHPUnit_Framework_TestCase
                    
41{
                    
55    {
                    
56        $suite  = new PHPUnit_Framework_TestSuite("Zend_Translate_Adapter_ArrayTest");
                    
57        $result = PHPUnit_TextUI_TestRunner::run($suite);
                    
                
FormServiceProviderTest.php git://github.com/fabpot/Silex.git | PHP | 355 lines
                    
1<?php
                    
2
                    
27
                    
28class FormServiceProviderTest extends \PHPUnit_Framework_TestCase
                    
29{
                    
302
                    
303        $this->assertFalse($form->getConfig()->getOption('csrf_protection'));
                    
304    }
                    
                
OctoberUtil.php https://bitbucket.org/egerstudio/livskilden.git | PHP | 339 lines
                    
1<?php namespace System\Console;
                    
2
                    
103     */
                    
104    protected function getOptions()
                    
105    {
                    
209             */
                    
210            $fallbackPath = base_path() . '/modules/system/lang/en/client.php';
                    
211            $srcPath = base_path() . '/modules/system/lang/'.$locale.'/client.php';
                    
220             */
                    
221            $overridePath = base_path() . '/lang/'.$locale.'/system/client.php';
                    
222            if (File::isFile($overridePath)) {
                    
241            if (File::exists($momentPath)) {
                    
242                $contents .= PHP_EOL.PHP_EOL.File::get($momentPath).PHP_EOL;
                    
243            }
                    
324                $exec .= 'git pull 2>&1';
                    
325                echo 'Updating plugin: '. basename(dirname($pluginDir)) .'.'. basename($pluginDir) . PHP_EOL;
                    
326                echo shell_exec($exec);
                    
                
Type.php https://bitbucket.org/deniskulikouski/belvg.deniska.git | PHP | 270 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 *
                    
14 * @copyright  Copyright (c) 2008 Unirgy LLC
                    
15 * @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
16 */
                    
22 */
                    
23include_once "TypeCE150.php"; // make sure class declaration has been loaded for class constants
                    
24class Unirgy_GiftCert_Model_Product_Type extends Mage_Catalog_Model_Product_Type_Abstract
                    
116                    case 'recipient_use_address':
                    
117                        $addr_options = Unirgy_Giftcert_Model_Source_Address::getOptionsStatic();
                    
118                        if (!isset($addr_options[$v])) {
                    
172        $options = array();
                    
173        foreach ($item->getOptions() as $option) {
                    
174            $options[$option->getCode()] = $option->getValue();
                    
                
%%CC^CC8^CC8B869E%%CasesEditViewfault_sub_type_c.tpl.php https://bitbucket.org/allexblacker/suitecrm.git | PHP | 401 lines
                    
1<?php /* Smarty version 2.6.29, created on 2018-03-15 01:59:14
                    
2         compiled from cache/include/InlineEditing/CasesEditViewfault_sub_type_c.tpl */ ?>
                    
2         compiled from cache/include/InlineEditing/CasesEditViewfault_sub_type_c.tpl */ ?>
                    
3<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
                    
4smarty_core_load_plugins(array('plugins' => array(array('function', 'html_options', 'cache/include/InlineEditing/CasesEditViewfault_sub_type_c.tpl', 10, false),array('function', 'sugar_getimagepath', 'cache/include/InlineEditing/CasesEditViewfault_sub_type_c.tpl', 43, false),array('modifier', 'lookup', 'cache/include/InlineEditing/CasesEditViewfault_sub_type_c.tpl', 38, false),array('modifier', 'count', 'cache/include/InlineEditing/CasesEditViewfault_sub_type_c.tpl', 143, false),)), $this); ?>
                    
6
                    
7<?php if (! isset ( $this->_tpl_vars['config']['enable_autocomplete'] ) || $this->_tpl_vars['config']['enable_autocomplete'] == false): ?>
                    
8	<select name="<?php echo $this->_tpl_vars['fields']['fault_sub_type_c']['name']; ?>
                    
9" 
                    
10	id="<?php echo $this->_tpl_vars['fields']['fault_sub_type_c']['name']; ?>
                    
11" 
                    
24	<?php $this->assign('field_options', $this->_tpl_vars['fields']['fault_sub_type_c']['options']); ?>
                    
25	<?php ob_start(); ?><?php echo $this->_tpl_vars['fields']['fault_sub_type_c']['value']; ?>
                    
26<?php $this->_smarty_vars['capture']['field_val'] = ob_get_contents(); ob_end_clean(); ?>
                    
27	<?php $this->assign('field_val', $this->_smarty_vars['capture']['field_val']); ?>
                    
28	<?php ob_start(); ?><?php echo $this->_tpl_vars['fields']['fault_sub_type_c']['name']; ?>
                    
29<?php $this->_smarty_vars['capture']['ac_key'] = ob_get_contents(); ob_end_clean(); ?>
                    
                
%%74^743^74365C3A%%CasesEditViewfield_engineer_c.tpl.php https://bitbucket.org/allexblacker/suitecrm.git | PHP | 401 lines
                    
1<?php /* Smarty version 2.6.29, created on 2018-03-15 09:15:46
                    
2         compiled from cache/include/InlineEditing/CasesEditViewfield_engineer_c.tpl */ ?>
                    
2         compiled from cache/include/InlineEditing/CasesEditViewfield_engineer_c.tpl */ ?>
                    
3<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
                    
4smarty_core_load_plugins(array('plugins' => array(array('function', 'html_options', 'cache/include/InlineEditing/CasesEditViewfield_engineer_c.tpl', 10, false),array('function', 'sugar_getimagepath', 'cache/include/InlineEditing/CasesEditViewfield_engineer_c.tpl', 43, false),array('modifier', 'lookup', 'cache/include/InlineEditing/CasesEditViewfield_engineer_c.tpl', 38, false),array('modifier', 'count', 'cache/include/InlineEditing/CasesEditViewfield_engineer_c.tpl', 143, false),)), $this); ?>
                    
6
                    
7<?php if (! isset ( $this->_tpl_vars['config']['enable_autocomplete'] ) || $this->_tpl_vars['config']['enable_autocomplete'] == false): ?>
                    
8	<select name="<?php echo $this->_tpl_vars['fields']['field_engineer_c']['name']; ?>
                    
9" 
                    
10	id="<?php echo $this->_tpl_vars['fields']['field_engineer_c']['name']; ?>
                    
11" 
                    
24	<?php $this->assign('field_options', $this->_tpl_vars['fields']['field_engineer_c']['options']); ?>
                    
25	<?php ob_start(); ?><?php echo $this->_tpl_vars['fields']['field_engineer_c']['value']; ?>
                    
26<?php $this->_smarty_vars['capture']['field_val'] = ob_get_contents(); ob_end_clean(); ?>
                    
27	<?php $this->assign('field_val', $this->_smarty_vars['capture']['field_val']); ?>
                    
28	<?php ob_start(); ?><?php echo $this->_tpl_vars['fields']['field_engineer_c']['name']; ?>
                    
29<?php $this->_smarty_vars['capture']['ac_key'] = ob_get_contents(); ob_end_clean(); ?>
                    
                
%%0B^0B1^0B1F2BBF%%Caseserror_event_code_c.tpl.php https://bitbucket.org/allexblacker/suitecrm.git | PHP | 401 lines
                    
1<?php /* Smarty version 2.6.29, created on 2018-03-15 13:07:57
                    
2         compiled from cache/modules/Import/Caseserror_event_code_c.tpl */ ?>
                    
2         compiled from cache/modules/Import/Caseserror_event_code_c.tpl */ ?>
                    
3<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
                    
4smarty_core_load_plugins(array('plugins' => array(array('function', 'html_options', 'cache/modules/Import/Caseserror_event_code_c.tpl', 10, false),array('function', 'sugar_getimagepath', 'cache/modules/Import/Caseserror_event_code_c.tpl', 43, false),array('modifier', 'lookup', 'cache/modules/Import/Caseserror_event_code_c.tpl', 38, false),array('modifier', 'count', 'cache/modules/Import/Caseserror_event_code_c.tpl', 143, false),)), $this); ?>
                    
6
                    
7<?php if (! isset ( $this->_tpl_vars['config']['enable_autocomplete'] ) || $this->_tpl_vars['config']['enable_autocomplete'] == false): ?>
                    
8	<select name="<?php echo $this->_tpl_vars['fields']['error_event_code_c']['name']; ?>
                    
9" 
                    
10	id="<?php echo $this->_tpl_vars['fields']['error_event_code_c']['name']; ?>
                    
11" 
                    
24	<?php $this->assign('field_options', $this->_tpl_vars['fields']['error_event_code_c']['options']); ?>
                    
25	<?php ob_start(); ?><?php echo $this->_tpl_vars['fields']['error_event_code_c']['value']; ?>
                    
26<?php $this->_smarty_vars['capture']['field_val'] = ob_get_contents(); ob_end_clean(); ?>
                    
27	<?php $this->assign('field_val', $this->_smarty_vars['capture']['field_val']); ?>
                    
28	<?php ob_start(); ?><?php echo $this->_tpl_vars['fields']['error_event_code_c']['name']; ?>
                    
29<?php $this->_smarty_vars['capture']['ac_key'] = ob_get_contents(); ob_end_clean(); ?>
                    
                
sfFormPropel.class.php http://opac-sbweb.googlecode.com/svn/trunk/ | PHP | 532 lines
                    
1<?php
                    
2
                    
17 * @author     Fabien Potencier <fabien.potencier@symfony-project.com>
                    
18 * @version    SVN: $Id: sfFormPropel.class.php 15033 2009-01-28 22:40:25Z FabianLange $
                    
19 */
                    
241   * To process a value before it is used by the updateObject() method,
                    
242   * you need to define an updateXXXColumn() method where XXX is the PHP name
                    
243   * of the column.
                    
259      {
                    
260        $method = sprintf('update%sColumn', call_user_func(array(constant(get_class($this->object).'::PEER'), 'translateFieldName'), $field, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_PHPNAME));
                    
261      }
                    
450    {
                    
451      $column = call_user_func(array(constant(get_class($this->object).'::PEER'), 'translateFieldName'), $field, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_PHPNAME);
                    
452      $getter = 'get'.$column;
                    
457    // we need the base directory
                    
458    if (!$this->validatorSchema[$field]->getOption('path'))
                    
459    {
                    
                
plugin.php git://github.com/QuickAppsCMS/QuickApps-CMS.git | PHP | 201 lines
                    
1<?php
                    
2/**
                    
65		$opts = $this->opts;
                    
66		$volOpts = $volume->getOptionsPlugin('AutoResize');
                    
67		if (is_array($volOpts)) {
                    
                
ISO14496_Box_STSD.html http://xepec.googlecode.com/svn/trunk/ | HTML | 149 lines
                    
33		<p class="notes">
                    
34			Located in <a class="field" href="_ISO14496---Box---STSD.php.html">/ISO14496/Box/STSD.php</a> (line <span class="field">54</span>)
                    
35		</p>
                    
68													<span class="var-title">
                    
69								<span class="var-name"><a href="../../php-reader/ISO/ISO14496_Box_Full.html#var$_flags">ISO14496_Box_Full::$_flags</a></span><br>
                    
70							</span>
                    
114													<span class="method-name"><a href="../../php-reader/ISO/ISO14496_Box.html#methodaddBox">ISO14496_Box::addBox()</a></span><br>
                    
115													<span class="method-name"><a href="../../php-reader/ISO/ISO14496_Box.html#methodconstructBoxes">ISO14496_Box::constructBoxes()</a></span><br>
                    
116													<span class="method-name"><a href="../../php-reader/ISO/ISO14496_Box.html#methodgetBoxes">ISO14496_Box::getBoxes()</a></span><br>
                    
119													<span class="method-name"><a href="../../php-reader/ISO/ISO14496_Box.html#methodgetOffset">ISO14496_Box::getOffset()</a></span><br>
                    
120													<span class="method-name"><a href="../../php-reader/ISO/ISO14496_Box.html#methodgetOption">ISO14496_Box::getOption()</a></span><br>
                    
121													<span class="method-name"><a href="../../php-reader/ISO/ISO14496_Box.html#methodgetOptions">ISO14496_Box::getOptions()</a></span><br>
                    
145	<p class="notes" id="credit">
                    
146		Documentation generated on Thu, 01 Jan 2009 14:59:41 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a>
                    
147	</p>
                    
                
webcore.google.visualization.php https://webcore.svn.codeplex.com/svn | PHP | 332 lines
                    
1<?php
                    
2/**
                    
92     */
                    
93    public function getOptions()
                    
94    {
                    
245        $jsVizType      = $this->model->getVizType();
                    
246        $jsVizOptions   = json_encode($this->model->getOptions()->getArrayReference());
                    
247        
                    
                
class.TwitterRealtimePluginConfigurationController.php git://github.com/ginatrapani/ThinkUp.git | PHP | 216 lines
                    
1<?php
                    
2/**
                    
41    /**
                    
42     * @var $int php minor version num required for redis
                    
43     */
                    
43     */
                    
44    var $php_minor_version_for_redis = 3;
                    
45    /**
                    
62        $plugin_option_dao = DAOFactory::GetDAO('PluginOptionDAO');
                    
63        $twitter_options = $plugin_option_dao->getOptionsHash('twitter', true);
                    
64        $oauth_consumer_key = null;
                    
171        $php_path_label = 'Path to the PHP interpreter to use';
                    
172        $php_path = array('name' => 'php_path', 'label' => $php_path_label,
                    
173        // @TODO - should this have a default set?
                    
173        // @TODO - should this have a default set?
                    
174        //'default_value' => '/usr/bin/php'
                    
175        );
                    
                
Abstract.php git://github.com/michael-romer/zf-boilerplate.git | PHP | 309 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Abstract.php 22824 2010-08-09 18:59:54Z renanbr $
                    
21 */
                    
76     */
                    
77    public function getOption($name = null)
                    
78    {
                    
124             */
                    
125            require_once 'Zend/Service/Ebay/Exception.php';
                    
126            throw new Zend_Service_Ebay_Exception('Invalid options provided.');
                    
244    /**
                    
245     * Translate native PHP values format to ebay format for request.
                    
246     *
                    
267    /**
                    
268     * Translate an ebay value format to native PHP type.
                    
269     *
                    
                
ImportOdsTest.php git://github.com/phpmyadmin/phpmyadmin.git | PHP | 262 lines
                    
1<?php
                    
2
                    
4
                    
5namespace PhpMyAdmin\Tests\Plugins\Import;
                    
6
                    
6
                    
7use PhpMyAdmin\File;
                    
8use PhpMyAdmin\Plugins\Import\ImportOds;
                    
8use PhpMyAdmin\Plugins\Import\ImportOds;
                    
9use PhpMyAdmin\Tests\AbstractTestCase;
                    
10
                    
14/**
                    
15 * @covers \PhpMyAdmin\Plugins\Import\ImportOds
                    
16 * @requires extension zip
                    
82            __('Options'),
                    
83            $properties->getOptionsText()
                    
84        );
                    
                
FacetSetTest.php git://github.com/basdenooijer/solarium.git | PHP | 432 lines
                    
1<?php
                    
2/**
                    
37
                    
38class FacetSetTest extends \PHPUnit_Framework_TestCase
                    
39{
                    
312        // check option forwarding
                    
313        $facetOptions = $facet->getOptions();
                    
314        $this->assertEquals(
                    
                
Ftp.php git://github.com/dg/ftp-php.git | PHP | 265 lines
                    
1<?php
                    
2
                    
8 * @license    New BSD License
                    
9 * @link       http://phpfashion.com/
                    
10 * @version    1.2
                    
21 * @method void fPut(string $remote_file, resource $handle, int $mode, int $startpos = 0) - Uploads from an open file to the FTP server
                    
22 * @method mixed getOption(int $option) - Retrieves various runtime behaviours of the current FTP stream
                    
23 * @method void get(string $local_file, string $remote_file, int $mode, int $resumepos = 0) - Downloads a file from the FTP server
                    
63		'sslconnect' => 'ssl_connect',
                    
64		'getoption' => 'get_option',
                    
65		'setoption' => 'set_option',
                    
89		if (!extension_loaded('ftp')) {
                    
90			throw new Exception('PHP extension FTP is not loaded.');
                    
91		}
                    
                
QueriesComponentTest.php git://github.com/yandod/candycane.git | PHP | 483 lines
                    
1<?php
                    
2App::uses('QueriesComponent', 'Controller/Component');
                    
69/**
                    
70 * testGetOptionValue
                    
71 * test case for get_option_value method 
                    
72 */
                    
73    public function testGetOptionValue()
                    
74    {
                    
                
EntityReferenceIntegrationTest.php https://bitbucket.org/razum-io/ns-hub.git | PHP | 223 lines
                    
1<?php
                    
2
                    
125      $entity = current($storage->loadByProperties(['name' => $entity_name]));
                    
126      $supported_widgets = \Drupal::service('plugin.manager.field.widget')->getOptions('entity_reference');
                    
127      $supported_widget_types = array_diff(array_keys($supported_widgets), $exclude);
                    
                
FilesystemTest.php git://github.com/zendframework/zf2.git | PHP | 331 lines
                    
1<?php
                    
2/**
                    
115    {
                    
116        if (substr(PHP_OS, 0, 3) == 'WIN') {
                    
117            $this->markTestSkipped("Not testable on windows");
                    
145    {
                    
146        if (substr(PHP_OS, 0, 3) == 'WIN') {
                    
147            $this->markTestSkipped("Not testable on windows");
                    
310        // create cache items at 2 different directory levels
                    
311        $this->_storage->getOptions()->setDirLevel(2);
                    
312        $this->_storage->setItem('a_key', 'a_value');
                    
312        $this->_storage->setItem('a_key', 'a_value');
                    
313        $this->_storage->getOptions()->setDirLevel(1);
                    
314        $this->_storage->setItem('b_key', 'b_value');
                    
314        $this->_storage->setItem('b_key', 'b_value');
                    
315        $this->_storage->clearByNamespace($this->_storage->getOptions()->getNamespace());
                    
316    }
                    
                
magmi_profile_panel.php https://bitbucket.org/deniskulikouski/belvg.deniska.git | PHP | 514 lines
                    
51			<?php foreach($profilelist as $profname){?>
                    
52			<option <?php if($profname==$profile){?>selected="selected"<?php }?> value="<?php echo $profname?>"><?php echo $profname?></option>
                    
53			<?php }?>
                    
88	{?>
                    
89	<input type="hidden" id="plc_<?php echo strtoupper($k)?>" value="<?php echo implode(",",$eplconf->getEnabledPluginClasses($k))?>" name="PLUGINS_<?php echo strtoupper($k)?>:classes"></input>
                    
90	<div class="grid_12 col <?php if($k==$order[count($order)-1]){?>omega<?php }?>">
                    
116			?>
                    
117				<option value="<?php echo $pclass?>"<?php  if($sinst==$pinst){?>selected="selected"<?php }?>><?php echo $pinfo["name"]." v".$pinfo["version"]?></option>
                    
118			<?php }
                    
167							<?php if($plrunnable[0]){?>
                    
168								<input type="checkbox" class="pl_<?php echo $k?>" name="<?php echo $pclass?>" <?php if($eplconf->isPluginEnabled($k,$pclass)){?>checked="checked"<?php }?>>
                    
169							<?php } else {?>
                    
182										
                    
183										<li <?php if(isset($sp)){ ?> class='sponsored'<?php } ?>><?php
                    
184											if($pik=="url")
                    
                
CommentAdminOverview.php git://github.com/drupal/drupal.git | PHP | 299 lines
                    
1<?php
                    
2
                    
193      if ($comment->hasField('comment_body') && ($body = $comment->get('comment_body')->value)) {
                    
194        $attributes = $comment_permalink->getOption('attributes') ?: [];
                    
195        $attributes += ['title' => Unicode::truncate($body, 128)];
                    
222      ];
                    
223      $comment_uri_options = $comment->toUrl()->getOptions() + ['query' => $destination];
                    
224      $links = [];
                    
                
generateJsonI18n.php https://gitlab.com/qiusct/mediawiki-i.git | PHP | 286 lines
                    
6 * Usage:
                    
7 *    php generateJsonI18n.php ExtensionName.i18n.php i18n/
                    
8 *
                    
62			}
                    
63			$phpfile = "$IP/extensions/$extension/$extension.i18n.php";
                    
64		}
                    
127		if ( !isset( $messages ) ) {
                    
128			$this->error( "PHP file $phpfile does not define \$messages array\n", 1 );
                    
129		}
                    
133			if ( !$this->hasOption( 'langcode' ) ) {
                    
134				$this->error( "PHP file $phpfile does not set language codes, --langcode " .
                    
135					"is required.\n", 1 );
                    
180
                    
181			$phpfileContents = file_get_contents( $phpfile );
                    
182			$m = array();
                    
                
duplicates.php https://bitbucket.org/saltwaterdev/offshorefinancial.com.git | PHP | 347 lines
                    
1<?php
                    
2/**
                    
184		// get the layout option from params
                    
185		$layout = $this->_getOption('layout', $options);
                    
186		switch ($layout)
                    
229		// get the layout options from param
                    
230		$layout = $this->_getOption('layout', $options);
                    
231
                    
                
ebay_mip_setup.php https://bitbucket.org/webrise-corp/bullofarmbitrix.git | PHP | 465 lines
                    
2//<title>Ebay</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
                    
137		"TITLE"=>GetMessage("CATI_ADM_RETURN_TO_LIST_TITLE"),
                    
138		"LINK"=>"/bitrix/admin/cat_export_setup.php?lang=".LANGUAGE_ID,
                    
139		"ICON"=>"btn_list",
                    
200		),
                    
201		"ClearSelected(); BX('id_ifr').src='/bitrix/tools/catalog_export/yandex_util.php?IBLOCK_ID=0&'+'".bitrix_sessid_get()."';",
                    
202		"ClearSelected(); BX('id_ifr').src='/bitrix/tools/catalog_export/yandex_util.php?IBLOCK_ID='+this[this.selectedIndex].value+'&'+'".bitrix_sessid_get()."';",
                    
360	</script>
                    
361	<iframe src="/bitrix/tools/catalog_export/yandex_util.php?IBLOCK_ID=<?=intval($IBLOCK_ID)?>&<? echo bitrix_sessid_get(); ?>" id="id_ifr" name="ifr" style="display:none"></iframe>
                    
362	</td>
                    
                
ZendQueue.php git://github.com/zendframework/zf2.git | PHP | 304 lines
                    
1<?php
                    
2/**
                    
163        try {
                    
164            return $this->_queues[$queueId]->getOptions();
                    
165        } catch (Zend\Queue\Exception $e) {
                    
                
LinkGenerator.php https://bitbucket.org/aswinvk28/smartpan-stock-drupal.git | PHP | 148 lines
                    
1<?php
                    
2
                    
77      'url' => $url,
                    
78      'options' => $url->getOptions(),
                    
79    );
                    
114
                    
115    // Remove all HTML and PHP tags from a tooltip, calling expensive strip_tags()
                    
116    // only when a quick strpos() gives suspicion tags are present.
                    
                
ExportTexytextTest.php git://github.com/phpmyadmin/phpmyadmin.git | PHP | 495 lines
                    
1<?php
                    
2
                    
4
                    
5namespace PhpMyAdmin\Tests\Plugins\Export;
                    
6
                    
6
                    
7use PhpMyAdmin\DatabaseInterface;
                    
8use PhpMyAdmin\Plugins\Export\ExportTexytext;
                    
8use PhpMyAdmin\Plugins\Export\ExportTexytext;
                    
9use PhpMyAdmin\Properties\Options\Groups\OptionsPropertyMainGroup;
                    
10use PhpMyAdmin\Properties\Options\Groups\OptionsPropertyRootGroup;
                    
10use PhpMyAdmin\Properties\Options\Groups\OptionsPropertyRootGroup;
                    
11use PhpMyAdmin\Properties\Options\Items\BoolPropertyItem;
                    
12use PhpMyAdmin\Properties\Options\Items\RadioPropertyItem;
                    
12use PhpMyAdmin\Properties\Options\Items\RadioPropertyItem;
                    
13use PhpMyAdmin\Properties\Options\Items\TextPropertyItem;
                    
14use PhpMyAdmin\Properties\Plugins\ExportPluginProperties;
                    
                
PluginUninstallTask.php git://github.com/QuickAppsCMS/QuickApps-CMS.git | PHP | 288 lines
                    
1<?php
                    
2/**
                    
54     */
                    
55    public function getOptionParser()
                    
56    {
                    
56    {
                    
57        $parser = parent::getOptionParser();
                    
58        $parser
                    
                
TranslationDebugCommand.php git://github.com/fabpot/symfony.git | PHP | 355 lines
                    
1<?php
                    
2
                    
93
                    
94  <info>php %command.full_name% en AcmeDemoBundle</info>
                    
95
                    
97
                    
98  <info>php %command.full_name% --domain=messages en AcmeDemoBundle</info>
                    
99
                    
101
                    
102  <info>php %command.full_name% --only-missing en AcmeDemoBundle</info>
                    
103
                    
105
                    
106  <info>php %command.full_name% --only-unused en AcmeDemoBundle</info>
                    
107
                    
109
                    
110  <info>php %command.full_name% en</info>
                    
111
                    
                
categoryedit.php https://bitbucket.org/rubbystar/carimod.git | PHP | 413 lines
                    
1<?php
                    
2/**
                    
118	 */
                    
119	protected function getOptions()
                    
120	{
                    
326		// Merge any additional options in the XML definition.
                    
327		return array_merge(parent::getOptions(), $options);
                    
328	}
                    
379		// Get the field options.
                    
380		$options = (array) $this->getOptions();
                    
381
                    
                
sfCommandManager.class.php http://openirudi.googlecode.com/svn/trunk/ | PHP | 382 lines
                    
1<?php
                    
2
                    
16 * @author     Fabien Potencier <fabien.potencier@symfony-project.com>
                    
17 * @version    SVN: $Id: sfCommandManager.class.php 9801 2008-06-23 15:12:05Z fabien $
                    
18 */
                    
85   */
                    
86  public function getOptionSet()
                    
87  {
                    
226   */
                    
227  public function getOptionValues()
                    
228  {
                    
238   */
                    
239  public function getOptionValue($name)
                    
240  {
                    
267
                    
268      $option = $this->optionSet->getOptionForShortcut($shortcut);
                    
269
                    
                
seo.php https://bitbucket.org/suroj/nepalayatravels.git | PHP | 221 lines
                    
1<?php
                    
2	/**
                    
62		 */
                    
63		public function getOptions()
                    
64		{
                    
                
Value.php https://bitbucket.org/sergiu-tot-fb/vendors.git | PHP | 436 lines
                    
1<?php
                    
2/**
                    
18 * @api
                    
19 * @method int getOptionId()
                    
20 * @method \Magento\Catalog\Model\Product\Option\Value setOptionId(int $value)
                    
21 *
                    
22 * @SuppressWarnings(PHPMD.LongVariable)
                    
23 * @since 100.0.2
                    
158     */
                    
159    public function getOption()
                    
160    {
                    
181        if (is_null($this->_product)) {
                    
182            $this->_product = $this->getOption()->getProduct();
                    
183        }
                    
196                'option_id',
                    
197                $this->getOption()->getId()
                    
198            )->setData(
                    
                
DistributedSearch.php git://github.com/basdenooijer/solarium.git | PHP | 331 lines
                    
1<?php
                    
2/**
                    
245    {
                    
246        return $this->getOption('shardhandler');
                    
247    }
                    
                
gtTestCase.php git://github.com/infusion/PHP.git | PHP | 230 lines
                    
1<?php
                    
2
                    
100    $this->testCase[] = "--FILE--";
                    
101    $this->testCase[] = "<?php";
                    
102    $this->testCase = gtCodeSnippet::appendBlankLines(2, $this->testCase );
                    
156    $this->testCase[] = "--SKIPIF--";
                    
157    $this->testCase[] = "<?php";
                    
158    if($this->optionalSections->hasSkipifKey()) {
                    
200    $this->testCase[] = "--CLEAN--";
                    
201    $this->testCase[] = "<?php";
                    
202    $this->testCase[] = "?>";
                    
225
                    
226  public function getOpt() {
                    
227    return $this->optionalSections;
                    
                
KitchensinkWebModule.php git://github.com/modolabs/Kurogo-Mobile-Web.git | PHP | 262 lines
                    
1<?php
                    
2
                    
169                
                    
170                if ($this->getOptionalModuleVar('SHARING_ENABLED', 1)) {
                    
171                    $this->assign('shareTitle', $this->getLocalizedString('SHARE_THIS_ITEM'));
                    
175                }
                    
176                if ($this->getOptionalModuleVar('BOOKMARKS_ENABLED', 1)) {
                    
177                    $this->generateBookmarkOptions('fakeid');
                    
                
Observer.php https://bitbucket.org/ttphong2612/billigastamplar-new.se.git | PHP | 307 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright  Copyright (c) 2006-2018 Magento, Inc. (http://www.magento.com)
                    
24 * @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
54
                    
55        if ($product->getPriceType() == '0' && !$product->getOptionsReadonly()) {
                    
56            $product->setCanSaveCustomOptions(true);
                    
203        $product->getTypeInstance(true)->setStoreFilter($product->getStoreId(), $product);
                    
204        $optionCollection = $product->getTypeInstance(true)->getOptionsCollection($product);
                    
205        $selectionCollection = $product->getTypeInstance(true)->getSelectionsCollection(
                    
205        $selectionCollection = $product->getTypeInstance(true)->getSelectionsCollection(
                    
206            $product->getTypeInstance(true)->getOptionsIds($product),
                    
207            $product
                    
                
ReCaptcha.php git://github.com/michael-romer/zf-boilerplate.git | PHP | 513 lines
                    
1<?php
                    
2/**
                    
22/** @see Zend_Service_Abstract */
                    
23require_once 'Zend/Service/Abstract.php';
                    
24
                    
25/** @see Zend_Json */
                    
26require_once 'Zend/Json.php';
                    
27
                    
28/** @see Zend_Service_ReCaptcha_Response */
                    
29require_once 'Zend/Service/ReCaptcha/Response.php';
                    
30
                    
38 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
39 * @version    $Id: ReCaptcha.php 24224 2011-07-12 17:45:49Z matthew $
                    
40 */
                    
229            /** @see Zend_Service_ReCaptcha_Exception */
                    
230            require_once 'Zend/Service/ReCaptcha/Exception.php';
                    
231
                    
                
RequestBodyParamConverter.php git://github.com/FriendsOfSymfony/FOSRestBundle.git | PHP | 155 lines
                    
1<?php
                    
2
                    
69    {
                    
70        $options = (array) $configuration->getOptions();
                    
71
                    
                
RequireCommand.php https://bitbucket.org/columbkh/project.git | PHP | 221 lines
                    
51                new InputOption('update-with-all-dependencies', null, InputOption::VALUE_NONE, 'Allows all inherited dependencies to be updated, including those that are root requirements.'),
                    
52                new InputOption('ignore-platform-reqs', null, InputOption::VALUE_NONE, 'Ignore platform requirements (php & ext- packages).'),
                    
53                new InputOption('prefer-stable', null, InputOption::VALUE_NONE, 'Prefer stable versions of dependencies.'),
                    
119
                    
120        $phpVersion = $this->repos->findPackage('php', '*')->getPrettyVersion();
                    
121        $requirements = $this->determineRequirements($input, $output, $input->getArgument('packages'), $phpVersion, $preferredStability);
                    
122
                    
123        $requireKey = $input->getOption('dev') ? 'require-dev' : 'require';
                    
124        $removeKey = $input->getOption('dev') ? 'require' : 'require-dev';
                    
151        $authoritative = $input->getOption('classmap-authoritative') || $composer->getConfig()->get('classmap-authoritative');
                    
152        $apcu = $input->getOption('apcu-autoloader') || $composer->getConfig()->get('apcu-autoloader');
                    
153
                    
177            ->setWhitelistAllDependencies($input->getOption('update-with-all-dependencies'))
                    
178            ->setIgnorePlatformRequirements($input->getOption('ignore-platform-reqs'))
                    
179            ->setPreferStable($input->getOption('prefer-stable'))
                    
                
View.php https://bitbucket.org/ttphong2612/billigastamplar-new.se.git | PHP | 400 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright  Copyright (c) 2006-2018 Magento, Inc. (http://www.magento.com)
                    
24 * @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
36 *
                    
37 * @SuppressWarnings(PHPMD.TooManyFields)
                    
38 * @SuppressWarnings(PHPMD.ExcessivePublicCount)
                    
38 * @SuppressWarnings(PHPMD.ExcessivePublicCount)
                    
39 * @SuppressWarnings(PHPMD.NPathComplexity)
                    
40 */
                    
189     *
                    
190     * @SuppressWarnings(PHPMD.NPathComplexity)
                    
191     */
                    
                
Data.php https://bitbucket.org/ttphong2612/billigastamplar-new.se.git | PHP | 274 lines
                    
1<?php
                    
2/**
                    
22    /**
                    
23     * ZEND constants avalable in /lib/Zend/Currency.php
                    
24     *
                    
36
                    
37    public function getOptions($options = array(), $old = false, $currency = "default") //$old for support Magento 1.3.x
                    
38    {
                    
50        // For JavaScript prices: Strange Symbol extracting in function getOutputFormat
                    
51        // in file app/code/core/Mage/Directory/Model/Currency.php
                    
52        // For Configurable, Bundle and Simple with custom options
                    
                
 

Source

Language