PageRenderTime 425ms queryTime 31ms sortTime 16ms getByIdsTime 142ms findMatchingLines 119ms

100+ results results for 'php getopt repo:simukti/zf1' (425 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    }
                    
                
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    {
                    
                
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) {
                    
                
FormErrors.php git://github.com/zendframework/zf2.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']);
                    
                
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     */
                    
                
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
                    
                
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
                    
                
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':
                    
                
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    }
                    
                
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    }
                    
                
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) {
                    
                
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
                    
                
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
                    
                
Query.php git://github.com/basdenooijer/solarium.git | PHP | 438 lines
                    
1<?php
                    
2/**
                    
129    {
                    
130        return $this->getOption('stream');
                    
131    }
                    
151    {
                    
152        return $this->getOption('interestingTerms');
                    
153    }
                    
174    {
                    
175        return $this->getOption('matchinclude');
                    
176    }
                    
198    {
                    
199        return $this->getOption('matchoffset');
                    
200    }
                    
229    {
                    
230        $value = $this->getOption('mltfields');
                    
231        if ($value === null) {
                    
                
sfWidget.class.php git://github.com/pmjones/php-framework-benchmarks.git | PHP | 406 lines
                    
1<?php
                    
2
                    
16 * @author     Fabien Potencier <fabien.potencier@symfony-project.com>
                    
17 * @version    SVN: $Id: sfWidget.class.php 22933 2009-10-11 22:42:56Z Kris.Wallsmith $
                    
18 */
                    
162   */
                    
163  public function getOption($name)
                    
164  {
                    
184   */
                    
185  public function getOptions()
                    
186  {
                    
                
coupon.php http://kak.googlecode.com/svn/trunk/ | PHP | 172 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * @version		$Id: archive.php 19343 2010-11-03 18:12:02Z ian $
                    
4 * @package		Joomla
                    
6 * @copyright	Copyright (C) 2005 - 2010 Open Source Matters. All rights reserved.
                    
7 * @license		GNU/GPL, see LICENSE.php
                    
8 * Joomla! is free software. This version may have been modified pursuant to the
                    
10 * of works licensed under the GNU General Public License or other free or open
                    
11 * source software licenses. See COPYRIGHT.php for copyright notices and
                    
12 * details.
                    
127	
                    
128	function getOptionsOfDeal($dealId) {
                    
129		$query = $this->_buildOptionsOfDealQuery($dealId);
                    
                
FormErrors.php https://github.com/markkimsal/agent-ohm.git | PHP | 397 lines
                    
1<?php
                    
2/**
                    
22/** Zend_Form_Decorator_Abstract */
                    
23#require_once 'Zend/Form/Decorator/Abstract.php';
                    
24
                    
130        if (null === $this->_markupElementLabelStart) {
                    
131            if (null === ($markupElementLabelStart = $this->getOption('markupElementLabelStart'))) {
                    
132                $this->setMarkupElementLabelStart($this->_defaults['markupElementLabelStart']);
                    
161        if (null === $this->_markupElementLabelEnd) {
                    
162            if (null === ($markupElementLabelEnd = $this->getOption('markupElementLabelEnd'))) {
                    
163                $this->setMarkupElementLabelEnd($this->_defaults['markupElementLabelEnd']);
                    
192        if (null === $this->_markupListStart) {
                    
193            if (null === ($markupListStart = $this->getOption('markupListStart'))) {
                    
194                $this->setMarkupListStart($this->_defaults['markupListStart']);
                    
223        if (null === $this->_markupListEnd) {
                    
224            if (null === ($markupListEnd = $this->getOption('markupListEnd'))) {
                    
225                $this->setMarkupListEnd($this->_defaults['markupListEnd']);
                    
                
DisplayCRUDTest.php git://github.com/drupal/drupal.git | PHP | 139 lines
                    
1<?php
                    
2
                    
133    $this->assertFalse(isset($block_1->display['display_options']['path']));
                    
134    $this->assertEqual($block_1->getOption('title'), $random_title, 'The overridden title option from the display got copied into the duplicate');
                    
135    $this->assertEqual($block_1->getOption('css_class'), $random_css, 'The overridden css_class option from the display got copied into the duplicate');
                    
                
list.php https://bitbucket.org/programmerlab/ourteam.co.in.git | PHP | 382 lines
                    
1<?php
                    
2/**
                    
80		return '<span id="' . $this->id . '" ' . $class . '>' .
                    
81			htmlspecialchars(self::getOptionName($this->getOptions(), $this->value), ENT_COMPAT, 'UTF-8') .
                    
82			'</span>';
                    
129
                    
130		$html .= htmlspecialchars(self::getOptionName($this->getOptions(), $this->value), ENT_COMPAT, 'UTF-8');
                    
131
                    
151	 */
                    
152	public static function getOptionName($data, $selected = null, $optKey = 'value', $optText = 'text')
                    
153	{
                    
201	 */
                    
202	protected function getOptions()
                    
203	{
                    
                
PdoAdapter.php https://bitbucket.org/trujka/phparcade.git | PHP | 439 lines
                    
1<?php
                    
2/**
                    
104     */
                    
105    public function getOptions()
                    
106    {
                    
364    {
                    
365        $options = $this->getOptions();
                    
366        
                    
412    {
                    
413        $options = $this->getOptions();
                    
414        return $options['adapter'];
                    
                
textparagraphpropertiescontext.cxx git://pkgs.fedoraproject.org/libreoffice | C++ | 284 lines
                    
51// CT_TextParagraphProperties
                    
52TextParagraphPropertiesContext::TextParagraphPropertiesContext( ContextHandler& rParent,
                    
53                                                                const Reference< XFastAttributeList >& xAttribs,
                    
53                                                                const Reference< XFastAttributeList >& xAttribs,
                    
54                                                                TextParagraphProperties& rTextParagraphProperties )
                    
55: ContextHandler( rParent )
                    
55: ContextHandler( rParent )
                    
56, mrTextParagraphProperties( rTextParagraphProperties )
                    
57, mrSpaceBefore( rTextParagraphProperties.getParaTopMargin() )
                    
63
                    
64    PropertyMap& rPropertyMap( mrTextParagraphProperties.getTextParagraphPropertyMap() );
                    
65
                    
142{
                    
143    PropertyMap& rPropertyMap( mrTextParagraphProperties.getTextParagraphPropertyMap() );
                    
144    if ( maLineSpacing.bHasValue )
                    
                
Pivot.php git://github.com/basdenooijer/solarium.git | PHP | 289 lines
                    
1<?php
                    
2/**
                    
110    {
                    
111        return $this->getOption('mincount');
                    
112    }
                    
                
DisplayKernelTest.php git://github.com/drupal/drupal.git | PHP | 165 lines
                    
1<?php
                    
2
                    
77      foreach ($this->pluginTypes as $type) {
                    
78        $options = $display->getOption($type);
                    
79        $this->assertIdentical($display_data[$id]['display_options'][$type]['options'], $options['options']);
                    
82      foreach ($this->handlerTypes as $type) {
                    
83        $options = $display->getOption($type);
                    
84        $this->assertIdentical($display_data[$id]['display_options'][$type], $options);
                    
                
config.php git://github.com/tcm-project/tangocms.git | PHP | 334 lines
                    
1<?php
                    
2
                    
253				$optionId = $this->_router->getArgument( 'id' );
                    
254				$option = $this->_model()->getOption( $optionId );
                    
255				// check user permission
                    
                
resultsMoreBuilds.php https://gitlab.com/colmsjo/testlink2.git | PHP | 298 lines
                    
1<?php
                    
2/**
                    
11 * @copyright 	2009, TestLink community 
                    
12 * @version    	CVS: $Id: resultsMoreBuilds.php,v 1.76.2.2 2010/12/21 12:00:22 amkhullar Exp $
                    
13 *
                    
26 **/
                    
27require_once('../../config.inc.php');
                    
28require_once('common.php');
                    
28require_once('common.php');
                    
29require_once('results.class.php');
                    
30require_once('users.inc.php');
                    
30require_once('users.inc.php');
                    
31require_once('displayMgr.php');
                    
32testlinkInitPage($db,false,false,"checkRights");
                    
57 
                    
58    $getOpt = array('outputFormat' => 'map');
                    
59    $gui->platformSet = $tplan_mgr->getPlatforms($argsObj->tplan_id,$getOpt);
                    
                
packageWriter.php git://github.com/peej/phpdoctor.git | PHP | 254 lines
                    
1<?php
                    
2
                    
3/*
                    
4  PHPDoctor: The PHP Documentation Creator
                    
5  Copyright (C) 2004 Paul James <paul@peej.co.uk>
                    
24 *
                    
25 * @package PHPDoctor\Doclets\GithubWiki
                    
26 */
                    
37        $rootDoc = & $this->_doclet->rootDoc();
                    
38        $phpdoctor = & $this->_doclet->phpdoctor();
                    
39
                    
39
                    
40        $displayTree = $phpdoctor->getOption("tree");
                    
41
                    
                
jquery.field-0.9.3.min.js git://github.com/QuackFuzed/cfUniForm.git | JavaScript | 14 lines
                    
6 * Dual licensed under the MIT and GPL licenses:
                    
7 *   http://www.opensource.org/licenses/mit-license.php
                    
8 *   http://www.gnu.org/licenses/gpl.html
                    
12*/
                    
13(function($){var defaults={delimiter:",",checkboxRangeKeyBinding:"shiftKey",useArray:false};$.Field={version:"0.9.3",setDefaults:function(options){$.extend(defaults,options)},setProperty:function(prop,value){defaults[prop]=value},getProperty:function(prop){return defaults[prop]}};$.fn.fieldArray=function(v){var t=$type(v);if(t=="undefined")return getValue(this);if(t=="string"||t=="number"){v=v.toString().split(defaults.delimiter);t="array"}if(t=="array")return setValue(this,v);return this};$.fn.getValue=function(){return getValue(this).join(defaults.delimiter)};var getValue=function(jq){var v=[];jq.each(function(lc){var t=getType(this);switch(t){case"checkbox":case"radio":if(this.checked)v.push(this.value);break;case"select":if(this.type=="select-one"){v.push((this.selectedIndex==-1)?"":getOptionVal(this[this.selectedIndex]))}else{for(var i=0;i<this.length;i++){if(this[i].selected){v.push(getOptionVal(this[i]))}}}break;case"text":v.push(this.value);break}});return v};$.fn.setValue=function(v){return setValue(this,((!v&&(v!==0))?[""]:v.toString().split(defaults.delimiter)))};var setValue=function(jq,v){jq.each(function(lc){var t=getType(this),x;switch(t){case"checkbox":case"radio":if(valueExists(v,this.value))this.checked=true;else this.checked=false;break;case"select":var bSelectOne=(this.type=="select-one");var bKeepLooking=true;for(var i=0;i<this.length;i++){x=getOptionVal(this[i]);bSelectItem=valueExists(v,x);if(bSelectItem){this[i].selected=true;if(bSelectOne){bKeepLooking=false;break}}else if(!bSelectOne)this[i].selected=false}if(bSelectOne&&bKeepLooking&&!!this[0]){this[0].selected=true}break;case"text":this.value=v.join(defaults.delimiter);break}});return jq};$.fn.formHash=function(inHash){var bGetHash=(arguments.length==0);var stHash={};this.filter("form").each(function(){var els=this.elements,el,n,stProcessed={},jel;for(var i=0,elsMax=els.length;i<elsMax;i++){el=els[i];n=el.name;if(!n||stProcessed[n])continue;var jel=$(el.tagName.toLowerCase()+"[name='"+n+"']",this);if(bGetHash){stHash[n]=jel[defaults.useArray?"fieldArray":"getValue"]()}else if(typeof inHash[n]!="undefined"){jel[defaults.useArray?"fieldArray":"setValue"](inHash[n])}stProcessed[n]=true}});return(bGetHash)?stHash:this};$.fn.autoAdvance=function(callback){return this.find(":text,:password,textarea").bind("keyup.autoAdvance",function(e){var $field=$(this),iMaxLength=parseInt($field.attr("maxlength"),10);if(isNaN(iMaxLength)||("|9|16|37|38|39|40|".indexOf("|"+e.keyCode+"|")>-1))return true;if($field.getValue().length>=$field.attr("maxlength")){var $next=$field.moveNext().select();if($.isFunction(callback))callback.apply($field,[$next])}})};$.fn.moveNext=function(){return this.moveIndex("next")};$.fn.movePrev=function(){return this.moveIndex("prev")};$.fn.moveIndex=function(i){var aPos=getFieldPosition(this);if(i=="next")i=aPos[0]+1;else if(i=="prev")i=aPos[0]-1;if(i<0)i=aPos[1].length-1;else if(i>=aPos[1].length)i=0;return $(aPos[1][i]).trigger("focus")};$.fn.getTabIndex=function(){return getFieldPosition(this)[0]};var getFieldPosition=function(jq){var $field=jq.filter("input, select, textarea").get(0),aTabIndex=[],aPosIndex=[];if(!$field)return[-1,[]];$.each($field.form.elements,function(i,o){if(o.tagName!="FIELDSET"&&!o.disabled){if(o.tabIndex>0){aTabIndex.push(o)}else{aPosIndex.push(o)}}});aTabIndex.sort(function(a,b){return a.tabIndex-b.tabIndex});aTabIndex=$.merge(aTabIndex,aPosIndex);for(var i=0;i<aTabIndex.length;i++){if(aTabIndex[i]==$field)return[i,aTabIndex]}return[-1,aTabIndex]};$.fn.limitSelection=function(limit,options){var opt=jQuery.extend((limit&&limit.constructor==Object?limit:{limit:limit,onsuccess:function(limit){return true},onfailure:function(limit){alert("You can only select a maximum a of "+limit+" items.");return false}}),options);var self=this;var getCount=function(el){if(el.type=="select-multiple")return $("option:selected",self).length;else if(el.type=="checkbox")return self.filter(":checked").length;return 0};var undoSelect=function(){setValue(self,getValue(self).slice(0,opt.limit));return opt.onfailure.apply(self,[opt.limit])};return this.bind((!!self[0]&&self[0].type=="select-multiple")?"change.limitSelection":"click.limitSelection",function(){if(getCount(this)>opt.limit){return(this.type=="select-multiple")?undoSelect():opt.onfailure.apply(self,[opt.limit])}opt.onsuccess.apply(self,[opt.limit]);return true})};$.fn.createCheckboxRange=function(callback){var opt=jQuery.extend((callback&&callback.constructor==Object?callback:{bind:defaults.checkboxRangeKeyBinding,click:callback}),callback);var iLastSelection=0,self=this,bCallback=$.isFunction(opt.click);if(bCallback)this.each(function(){opt.click.apply(this,[$.event.fix({type:null}),$(this).is(":checked")])});return this.each(function(){if(this.type!="checkbox")return false;var el=this;var updateLastCheckbox=function(e){iLastSelection=self.index(e.target)};var checkboxClicked=function(e){var bSetChecked=this.checked,current=self.index(e.target),low=Math.min(iLastSelection,current),high=Math.max(iLastSelection+1,current);if(bCallback)$(this).each(function(){opt.click.apply(this,[e,bSetChecked])});if(!e[opt.bind])return;for(var i=low;i<high;i++){var item=self.eq(i).attr("checked",bSetChecked?"checked":"").trigger("change");if(bCallback)opt.click.apply(item[0],[e,bSetChecked])}return true};$(this).unbind("click.createCheckboxRange").bind("click.createCheckboxRange",checkboxClicked).bind("click.createCheckboxRange",updateLastCheckbox);return true})};var getType=function(el){var t=el.type;switch(t){case"select":case"select-one":case"select-multiple":t="select";break;case"text":case"hidden":case"textarea":case"password":case"button":case"submit":case"submit":t="text";break;case"checkbox":case"radio":t=t;break}return t};var getOptionVal=function(el){return jQuery.browser.msie&&!(el.attributes['value'].specified)?el.text:el.value};var valueExists=function(a,v){return($.inArray(v,a)>-1)};var $type=function(o){var t=(typeof o).toLowerCase();if(t=="object"){if(o instanceof Array)t="array";else if(o instanceof Date)t="date"}return t};var $isType=function(o,v){return($type(o)==String(v).toLowerCase())}})(jQuery);
                    
14
                    
                
graph.js https://code.google.com/p/energyathome/ | JavaScript | 446 lines
                    
70	// Get graph options
                    
71	options = getOptions();
                    
72	
                    
170// Change in graph parameter
                    
171function graphParameterChange()
                    
172{
                    
191// Get graph options depending on select graph parameters
                    
192function getOptions()
                    
193{
                    
281	// Get graph options
                    
282	var options = getOptions();
                    
283	
                    
295	// Get graph options
                    
296	var options = getOptions();
                    
297	
                    
                
AllTests.php http://firephp.googlecode.com/svn/trunk/ | PHP | 0 lines
                    
1<?php
                    
2
                    
20 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
21 * @version    $Id: AllTests.php 12749 2008-11-21 17:36:33Z matthew $
                    
22 */
                    
26 */
                    
27require_once dirname(dirname(__FILE__)) . DIRECTORY_SEPARATOR . 'TestHelper.php';
                    
28
                    
28
                    
29if (!defined('PHPUnit_MAIN_METHOD')) {
                    
30    define('PHPUnit_MAIN_METHOD', 'Zend_AllTests::main');
                    
32
                    
33require_once 'Zend/AclTest.php';
                    
34require_once 'Zend/Amf/AllTests.php';
                    
41require_once 'Zend/Config/AllTests.php';
                    
42require_once 'Zend/Console/GetoptTest.php';
                    
43require_once 'Zend/Controller/AllTests.php';
                    
                
ArrayInput.php git://github.com/michael-romer/zf-boilerplate.git | PHP | 190 lines
                    
1<?php
                    
2
                    
142
                    
143        $this->addLongOption($this->definition->getOptionForShortcut($shortcut)->getName(), $value);
                    
144    }
                    
160
                    
161        $option = $this->definition->getOption($name);
                    
162
                    
                
FormErrors.php git://github.com/michael-romer/zf-boilerplate.git | PHP | 465 lines
                    
1<?php
                    
2/**
                    
22/** Zend_Form_Decorator_Abstract */
                    
23require_once 'Zend/Form/Decorator/Abstract.php';
                    
24
                    
36 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
37 * @version    $Id: FormErrors.php 23853 2011-04-10 16:06:30Z ramon $
                    
38 */
                    
136        if (null === $this->_markupElementLabelStart) {
                    
137            if (null === ($markupElementLabelStart = $this->getOption('markupElementLabelStart'))) {
                    
138                $this->setMarkupElementLabelStart($this->_defaults['markupElementLabelStart']);
                    
167        if (null === $this->_markupElementLabelEnd) {
                    
168            if (null === ($markupElementLabelEnd = $this->getOption('markupElementLabelEnd'))) {
                    
169                $this->setMarkupElementLabelEnd($this->_defaults['markupElementLabelEnd']);
                    
198        if (null === $this->_markupListStart) {
                    
199            if (null === ($markupListStart = $this->getOption('markupListStart'))) {
                    
200                $this->setMarkupListStart($this->_defaults['markupListStart']);
                    
                
Range.php git://github.com/basdenooijer/solarium.git | PHP | 335 lines
                    
1<?php
                    
2/**
                    
151    {
                    
152        return $this->getOption('field');
                    
153    }
                    
172    {
                    
173        return $this->getOption('start');
                    
174    }
                    
193    {
                    
194        return $this->getOption('end');
                    
195    }
                    
218    {
                    
219        return $this->getOption('gap');
                    
220    }
                    
242    {
                    
243        return $this->getOption('hardend');
                    
244    }
                    
                
viewer_size_image.php https://gitlab.com/lcp0578/zenphoto.git | PHP | 292 lines
                    
150				$('#image img').attr('src', items[3]);
                    
151				document.cookie = 'viewer_size_image_saved=' + items[0] + '; expires=<?php echo date('Y-m-d H:i:s', time() + COOKIE_PESISTENCE); ?>; path=<?php echo $cookiepath ?>';
                    
152			}
                    
162				$('#image img').attr('src', url);
                    
163				document.cookie = 'viewer_size_image_saved=' + $(obj).attr('value') + '; expires=<?php echo date('Y-m-d H:i:s', time() + COOKIE_PESISTENCE); ?>; path=<?php echo $cookiepath ?>';
                    
164			}
                    
195					?>
                    
196					<option id="s<?php echo $key; ?>" value="<?php echo $value . ':' . implode(':', $dims) . ':' . $url; ?>"<?php echo $selected; ?> />
                    
197					<?php echo $display; ?>
                    
206					<input type="radio" name="viewer_size_image_selection" id="s<?php echo $key; ?>" url="<?php echo $url; ?>"
                    
207								 im_w="<?php echo $dims[0]; ?>" im_h="<?php echo $dims[1]; ?>"
                    
208								 value="<?php echo $value; ?>"<?php echo $checked; ?> onclick="switchimage(this);" />
                    
208								 value="<?php echo $value; ?>"<?php echo $checked; ?> onclick="switchimage(this);" />
                    
209					<label for="s<?php echo $key; ?>"> <?php echo $display; ?></label>
                    
210					<?php
                    
                
 

Source

Language