PageRenderTime 332ms queryTime 64ms sortTime 3ms getByIdsTime 133ms findMatchingLines 61ms

100+ results results for 'php getopt' (332 ms)

Not the results you expected?
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    }
                    
                
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']);
                    
                
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{
                    
                
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_]],
                    
                
Process.php git://github.com/pmjones/php-framework-benchmarks.git | PHP | 372 lines
                    
1<?php
                    
2
                    
15 * Process is a thin wrapper around proc_* functions to ease
                    
16 * start independent PHP processes.
                    
17 *
                    
51        if (!function_exists('proc_open')) {
                    
52            throw new \RuntimeException('The Process class relies on proc_open, which is not available on your PHP installation.');
                    
53        }
                    
79     *
                    
80     * @param Closure|string|array $callback A PHP callback to run whenever there is some
                    
81     *                                       output available on STDOUT or STDERR
                    
106
                    
107        // Workaround for http://bugs.php.net/bug.php?id=51800
                    
108        if (strstr(PHP_OS, 'WIN')) {
                    
362
                    
363    public function getOptions()
                    
364    {
                    
                
FormErrors.php git://github.com/eryx/php-framework-benchmark.git | PHP | 467 lines
                    
1<?php
                    
2/**
                    
141        if (null === $this->_markupElementLabelStart) {
                    
142            if (null === ($markupElementLabelStart = $this->getOption('markupElementLabelStart'))) {
                    
143                $this->setMarkupElementLabelStart($this->_defaults['markupElementLabelStart']);
                    
172        if (null === $this->_markupElementLabelEnd) {
                    
173            if (null === ($markupElementLabelEnd = $this->getOption('markupElementLabelEnd'))) {
                    
174                $this->setMarkupElementLabelEnd($this->_defaults['markupElementLabelEnd']);
                    
203        if (null === $this->_markupListStart) {
                    
204            if (null === ($markupListStart = $this->getOption('markupListStart'))) {
                    
205                $this->setMarkupListStart($this->_defaults['markupListStart']);
                    
234        if (null === $this->_markupListEnd) {
                    
235            if (null === ($markupListEnd = $this->getOption('markupListEnd'))) {
                    
236                $this->setMarkupListEnd($this->_defaults['markupListEnd']);
                    
265        if (null === $this->_markupListItemStart) {
                    
266            if (null === ($markupListItemStart = $this->getOption('markupListItemStart'))) {
                    
267                $this->setMarkupListItemStart($this->_defaults['markupListItemStart']);
                    
                
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) {
                    
                
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
                    
                
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;
                    
                
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 */
                    
                
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>
                    
                
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),
                    
                
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);
                    
                
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    {
                    
                
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     *
                    
                
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) {
                    
                
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
                    
                
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;
                    
                
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
                    
                
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);
                    
                
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 )
                    
                
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
                    
                
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']);
                    
                
ReserveController.php http://rewardvn.googlecode.com/svn/trunk/ | PHP | 325 lines
                    
1<?php
                    
2require_once 'Reward/Mvc/BaseUserController.php' ;
                    
2require_once 'Reward/Mvc/BaseUserController.php' ;
                    
3require_once 'Reward/Util.php' ;
                    
4require_once 'security/AES.class.php' ;
                    
4require_once 'security/AES.class.php' ;
                    
5require_once 'Reward/UserCommon.php';
                    
6
                    
12		$bootstrap = $this->getInvokeArg('bootstrap');
                    
13		$this->config =  $bootstrap->getOptions();
                    
14	}
                    
                
cimslp.c git://pkgs.fedoraproject.org/sblim-sfcb | C | 196 lines
                    
10 * You can obtain a current copy of the Eclipse Public License from
                    
11 * http://www.opensource.org/licenses/eclipse-1.0.php
                    
12 *
                    
22
                    
23#include <getopt.h>
                    
24#include <stdio.h>
                    
                
Services_Trackback_Test.php http://nothing-at-all.googlecode.com/svn/trunk/ | PHP | 449 lines
                    
2require_once 'Services/Trackback.php';
                    
3require_once 'Services/Trackback/SpamCheck.php';
                    
4require_once 'Services/Trackback/SpamCheck/Mock.php';
                    
5
                    
6require_once 'PHPUnit/Framework/TestCase.php';
                    
7
                    
111
                    
112        $data['trackback_url'] = 'http://pear.php.net/trackback/trackback.php?id=Net_FTP';
                    
113
                    
340        $strictness = SERVICES_TRACKBACK_STRICTNESS_LOW;
                    
341        $url1 = "http://www.example.com/trackback/index.php";
                    
342        $url2 = "http://www.example.net/trackbike/index.htm";
                    
348        $strictness = SERVICES_TRACKBACK_STRICTNESS_MIDDLE;
                    
349        $url1 = "http://www.example.com/trackback/index.php";
                    
350        $url2 = "http://www.example.com/trackbike/index.htm";
                    
                
modmail.class.php git://github.com/modxcms/revolution.git | PHP | 430 lines
                    
1<?php
                    
2/*
                    
222        $default = array();
                    
223        if ($this->modx->getOption('mail_use_smtp',false)) {
                    
224            $default[modMail::MAIL_ENGINE] = 'smtp';
                    
224            $default[modMail::MAIL_ENGINE] = 'smtp';
                    
225            $default[modMail::MAIL_SMTP_AUTH] = $this->modx->getOption('mail_smtp_auth',null,false);
                    
226            $helo = $this->modx->getOption('mail_smtp_helo','');
                    
227            if (!empty($helo)) { $default[modMail::MAIL_SMTP_HELO] = $helo; }
                    
228            $default[modMail::MAIL_SMTP_HOSTS] = $this->modx->getOption('mail_smtp_hosts',null,'localhost');
                    
229            $default[modMail::MAIL_SMTP_KEEPALIVE] = $this->modx->getOption('mail_smtp_keepalive',null,false);
                    
229            $default[modMail::MAIL_SMTP_KEEPALIVE] = $this->modx->getOption('mail_smtp_keepalive',null,false);
                    
230            $default[modMail::MAIL_SMTP_PASS] = $this->modx->getOption('mail_smtp_pass',null,'');
                    
231            $default[modMail::MAIL_SMTP_PORT] = $this->modx->getOption('mail_smtp_port',null,25);
                    
231            $default[modMail::MAIL_SMTP_PORT] = $this->modx->getOption('mail_smtp_port',null,25);
                    
232            $default[modMail::MAIL_SMTP_PREFIX] = $this->modx->getOption('mail_smtp_prefix',null,'');
                    
233            $default[modMail::MAIL_SMTP_SINGLE_TO] = $this->modx->getOption('mail_smtp_single_to',null,false);
                    
                
sfPropelFormFilterGenerator.class.php http://opac-sbweb.googlecode.com/svn/trunk/ | PHP | 297 lines
                    
18 * @author     Fabien Potencier <fabien.potencier@symfony-project.com>
                    
19 * @version    SVN: $Id: sfPropelFormFilterGenerator.class.php 15134 2009-01-31 19:30:35Z Kris.Wallsmith $
                    
20 */
                    
65    // create the project base class for all forms
                    
66    $file = sfConfig::get('sf_lib_dir').'/filter/base/BaseFormFilterPropel.class.php';
                    
67    if (!file_exists($file))
                    
73
                    
74      file_put_contents($file, $this->evalTemplate('sfPropelFormFilterBaseTemplate.php'));
                    
75    }
                    
96
                    
97      file_put_contents($baseDir.'/base/Base'.$table->getClassname().'FormFilter.class.php', $this->evalTemplate('sfPropelFormFilterGeneratedTemplate.php'));
                    
98      if (!file_exists($classFile = $baseDir.'/'.$table->getClassname().'FormFilter.class.php'))
                    
99      {
                    
100        file_put_contents($classFile, $this->evalTemplate('sfPropelFormFilterTemplate.php'));
                    
101      }
                    
                
languages.inc https://code.google.com/p/alfresco-php-sdk/ | PHP | 397 lines
                    
1<?php
                    
2/**
                    
19	/**
                    
20	 * Load the list of languages: all the Messages*.php
                    
21	 * files in the languages directory.
                    
60	 */
                    
61	public function getOptionalMessages() {
                    
62		return $this->mOptionalMessages;
                    
                
change-configuration.html http://dyhb-frame.googlecode.com/svn/trunk/ | HTML | 98 lines
                    
3 <head>
                    
4  <title>The DoYouHaoBaby PHP Framework For PHP5 | ????????</title>
                    
5  <meta http-equiv="content-type" content="text/html; charset=gbk" />
                    
7  <meta name="Keywords" content="DoYouHaoBaby,Framework">
                    
8  <meta name="Description" content="The DoYouHaoBaby PHP Framework | ?????????????">
                    
9  <link rel="stylesheet" type="text/css" href="./../../media/css/style.css" />
                    
12 <body style="margin:0">
                    
13  <div id="header"><img src="./../../media/images/logo.png"  border="0" title="The DoYouHaoBaby PHP Framework Logo" ></div>
                    
14  <div id="content"> 
                    
15     <div id="version">
                    
16	    The DoYouHaoBaby PHP Framework????????<br>
                    
17        Copyright(c) <a href="http://doyouhaobaby.net">DoYouHaoBaby.NET</a>
                    
25 <tr>
                    
26 <th align=middle colspan=3>The DoYouHaoBaby PHP Framework????????</th>
                    
27</tr>
                    
                
ss_bwtest_curl.php http://timoseven.googlecode.com/svn/trunk/ | PHP | 190 lines
                    
1<?php
                    
2//////////////////////////////////////////////////////////////////////////////
                    
2//////////////////////////////////////////////////////////////////////////////
                    
3// ss_bwtest_curl.php
                    
4// @author: yreddy (melk0r101@yahoo.com)
                    
7// be called either from command line or cacti script server.
                    
8//  IMPORTANT: NEED PHP CURL MODULE INSTALLED (aptitude install php5-curl)
                    
9//////////////////////////////////////////////////////////////////////////////
                    
27function usage(){
                    
28  printf("Usage (command line): php ss_bwtest_curl.php -U URL [-P proxy_ip:proxy_port] [-u proxy_username] [-p proxy_password] [-t timeout] [-A useragent]\n");
                    
29  printf("Usage (Script Server): ss_bwtest_curl.php URL [proxy_ip:proxy_port] [proxy_username] [proxy_password] [timeout] [useragent]\n");
                    
71  curl_setopt($ch, CURLOPT_DNS_USE_GLOBAL_CACHE, false);
                    
72  //curl_setopt - CURLOPT_FOLLOWLOCATION - TRUE to follow any "Location: " header that the server sends as part of the HTTP header (note this is recursive, PHP will follow as many "Location: " headers that it is sent, unless CURLOPT_MAXREDIRS is set). 
                    
73  curl_setopt($ch, CURLOPT_FOLLOWLOCATION, false);  
                    
144
                    
145include_once(dirname(__FILE__) . "/../include/global.php");
                    
146
                    
                
modrestcurlclient.class.php git://github.com/modxcms/revolution.git | PHP | 308 lines
                    
1<?php
                    
2/*
                    
10
                    
11require_once dirname(__FILE__) . '/modrestclient.class.php';
                    
12/**
                    
79                curl_setopt($ch,CURLOPT_POST,1);
                    
80                $contentType = $this->modx->getOption('contentType',$options,'xml');
                    
81                switch ($contentType) {
                    
159        if (!empty($options[modRestClient::OPT_USERPWD])) {
                    
160            $options[modRestClient::OPT_AUTHTYPE] = $this->modx->getOption(modRestClient::OPT_AUTHTYPE,$options,'BASIC');
                    
161            switch ($options[modRestClient::OPT_AUTHTYPE]) {
                    
183        /* if proxy is set, attempt to use it */
                    
184        $proxyHost = $this->modx->getOption('proxy_host',null,'');
                    
185        if (!empty($proxyHost)) {
                    
186            $proxyEnabled = curl_setopt($ch, CURLOPT_PROXY,$proxyHost);
                    
187            $proxyPort = $this->modx->getOption('proxy_port',null,'');
                    
188            if (!empty($proxyPort)) {
                    
                
classwso2wsf_1_1Stub.html git://pkgs.fedoraproject.org/wso2-wsf-cpp | HTML | 258 lines
                    
17    <li>
                    
18      <form action="search.php" method="get">
                    
19        <table cellspacing="0" cellpadding="0" border="0">
                    
54
                    
55<tr><td class="memItemLeft" nowrap align="right" valign="top">WSF_EXTERN <a class="el" href="classwso2wsf_1_1Options.html">Options</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classwso2wsf_1_1Stub.html#4a5d3509197b4ad1383513dd23d006dd">getOptions</a> ()</td></tr>
                    
56
                    
117</div><p>
                    
118<a class="anchor" name="4a5d3509197b4ad1383513dd23d006dd"></a><!-- doxytag: member="wso2wsf::Stub::getOptions" ref="4a5d3509197b4ad1383513dd23d006dd" args="()" -->
                    
119<div class="memitem">
                    
122        <tr>
                    
123          <td class="memname">WSF_EXTERN <a class="el" href="classwso2wsf_1_1Options.html">Options</a>* wso2wsf::Stub::getOptions           </td>
                    
124          <td>(</td>
                    
133<p>
                    
134getOptions method is used to obtain a pointer to the <a class="el" href="classwso2wsf_1_1Stub.html" title="class Stub This object serves as the primary client API for consuming SOAP services...">Stub</a> Object's underlying options instance. <dl class="return" compact><dt><b>Returns:</b></dt><dd>A pointer to the <a class="el" href="classwso2wsf_1_1Options.html" title="class Options Holder for operation client options. This is used by the other classes...">Options</a> Object instance </dd></dl>
                    
135
                    
                
clientmodel.cpp git://github.com/bitcoin/bitcoin.git | C++ | 301 lines
                    
2// Distributed under the MIT software license, see the accompanying
                    
3// file COPYING or http://www.opensource.org/licenses/mit-license.php.
                    
4
                    
147
                    
148OptionsModel *ClientModel::getOptionsModel()
                    
149{
                    
                
DirectoryTest.php git://github.com/modxcms/revolution.git | PHP | 195 lines
                    
1<?php
                    
2/*
                    
92
                    
93        $adir = $this->modx->getOption('base_path').$oldDirectory;
                    
94        @mkdir($adir);
                    
100            'dir' => $oldDirectory,
                    
101            'name' => $this->modx->getOption('base_path').$newDirectory,
                    
102        ));
                    
132
                    
133        $adir = $this->modx->getOption('base_path').$dir;
                    
134        @mkdir($adir);
                    
                
versions_2_3_12.html git://pkgs.fedoraproject.org/freemarker | HTML | 129 lines
                    
41  <h1 class="rank_section1"
                    
42        id="pageTopTitle">
                    
43<a name="versions_2_3_12"></a>2.3.12  </h1>
                    
58            <li>
                    
59              <p>Bug fixed: <a href="http://sourceforge.net/tracker/index.php?func=detail&amp;aid=1857161&amp;group_id=794&amp;atid=100794">[1857161]</a>
                    
60              JSP <tt style="color: #A03D10">SimpleTag</tt> support was broken in
                    
                
Options.html https://code.google.com/p/phpids-for-modx/ | HTML | 238 lines
                    
24	<div class="info-box-body">
                    
25        		<!-- ========== Info from phpDoc block ========= -->
                    
26		<p class="notes">
                    
26		<p class="notes">
                    
27			Located in <a class="field" href="_evolution---assets---modules---phpids---classes---class.options.php.html">/evolution/assets/modules/phpids/classes/class.options.php</a> (line <span class="field">15</span>)
                    
28		</p>
                    
77											<span class="method-result">string</span>
                    
78										<a href="#getOption" title="details" class="method-name">getOption</a>
                    
79											(<span class="var-type">string</span>&nbsp;<span class="var-name">$name</span>)
                    
132	</div>
                    
133<a name="methodgetOption" id="getOption"><!-- --></a>
                    
134<div class="evenrow">
                    
234	<p class="notes" id="credit">
                    
235		Documentation generated on Mon, 27 Feb 2012 21:57:01 +0100 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.3</a>
                    
236	</p>
                    
                
article_edit.htm http://pj-photohost.googlecode.com/svn/trunk/ | HTML | 129 lines
                    
36    <div class="main">
                    
37      <?php include(DEDEMEMBER."/templets/menu.php"); ?>
                    
38      <div class="dedeMain">
                    
41          <input type="hidden" name="dopost" value="save" />
                    
42          <input type="hidden" name="aid" value="<?php echo $row['id']; ?>" />
                    
43          <input type="hidden" name="idhash" value="<?php echo md5($row['id'].$cfg_cookie_encode); ?>" />
                    
55                <td width="15%" align="right" valign="top">???</td>
                    
56                <td><input name="title" type="text" id="title" value="<?php echo $row['title']?>" size="30" class="text" style="width:400px;"/></td>
                    
57              </tr>
                    
59                <td align="right" valign="top">??TAG?</td>
                    
60                <td><input name="tags" type="text" id="tags" size="30" class="text" value="<?php echo $row['keywords']; ?>" style="width:400px;"/>
                    
61                  (?????) </td>
                    
68                <td align="right" valign="top">?????</td>
                    
69                <td><?php
                    
70    $typeOptions = GetOptionList($row["typeid"],$row["channel"]);
                    
                
modmanagercontrollerdeprecated.class.php git://github.com/modxcms/revolution.git | PHP | 276 lines
                    
1<?php
                    
2/*
                    
29        $modx =& $this->modx;
                    
30        $theme = $this->modx->getOption('manager_theme',null,'default');
                    
31
                    
32        /* get template path */
                    
33        $templatePath = $this->modx->getOption('manager_path') . 'templates/'.$theme.'/';
                    
34        if (!file_exists($templatePath)) {
                    
34        if (!file_exists($templatePath)) {
                    
35            $templatePath = $this->modx->getOption('manager_path') . 'templates/default/';
                    
36            $this->modx->config['manager_theme'] = 'default';
                    
134            /* if custom theme doesnt have controller, go to default theme */
                    
135            if (!file_exists($f.'.php')) {
                    
136                $f = $this->config['namespace_path'].'controllers/default/'.$controller;
                    
150        if (empty($f)) return false;
                    
151        /* if action is a directory, load base index.php */
                    
152        if (substr($f,strlen($f)-1,1) == '/') { $f .= 'index'; }
                    
                
Command.php http://syracava.googlecode.com/svn/trunk/ | PHP | 417 lines
                    
9 * http://www.php.net/license/3_0.txt.  If you did not receive a copy of
                    
10 * the PHP License and are unable to obtain it through the web, please
                    
11 * send a note to license@php.net so we can mail you a copy immediately.
                    
17 * @copyright  1997-2008 The PHP Group
                    
18 * @license    http://www.php.net/license/3_0.txt  PHP License 3.0
                    
19 * @version    CVS: $Id: Command.php 125 2009-08-21 01:35:18Z takuji.mezawa $
                    
28require_once 'PEAR/Frontend.php';
                    
29require_once 'PEAR/XMLParser.php';
                    
30
                    
63 *   returns an array of the commands implemented by the class (see
                    
64 *   PEAR/Command/Install.php for an example).
                    
65 *
                    
101 * @copyright  1997-2008 The PHP Group
                    
102 * @license    http://www.php.net/license/3_0.txt  PHP License 3.0
                    
103 * @version    Release: 1.7.2
                    
                
ftp.class.php git://github.com/dg/ftp-php.git | PHP | 234 lines
                    
1<?php
                    
2
                    
8 * @license    New BSD License
                    
9 * @link       http://phpfashion.com/
                    
10 * @version    1.0
                    
28		'sslconnect' => 'ssl_connect',
                    
29		'getoption' => 'get_option',
                    
30		'setoption' => 'set_option',
                    
54		if (!extension_loaded('ftp')) {
                    
55			throw new /*\*/Exception("PHP extension FTP is not loaded.");
                    
56		}
                    
                
Bootstrap.php git://github.com/astorm/Job-Queue.git | PHP | 176 lines
                    
1<?php
                    
2/*
                    
159	{	
                    
160		$config = $this->getOptions();		
                    
161		$options = array(
                    
                
Date.class.php git://github.com/benkeen/generatedata.git | PHP | 229 lines
                    
1<?php
                    
2
                    
84
                    
85	public function getOptionsColumnHTML() {
                    
86		$L = Core::$language->getCurrentLanguageStrings();
                    
                
AddinformationController.php http://rewardvn.googlecode.com/svn/trunk/ | PHP | 422 lines
                    
1<?php
                    
2require_once 'Reward/Mvc/BaseUserController.php' ;
                    
2require_once 'Reward/Mvc/BaseUserController.php' ;
                    
3require_once 'Reward/Util.php' ;
                    
4require_once 'security/AES.class.php' ;
                    
5
                    
6require_once 'Zend/Json.php' ;
                    
7require_once 'Reward/Mvc/BaseController.php';
                    
14		$bootstrap = $this->getInvokeArg('bootstrap');
                    
15		$this->config =  $bootstrap->getOptions();
                    
16	}
                    
                
domFx_surface_format_hint_common.h git://github.com/sbarthelemy/collada-dom.git | C Header | 397 lines
                    
4* Licensed under the MIT Open Source License, for details please see license.txt or the website
                    
5* http://www.opensource.org/licenses/mit-license.php
                    
6*
                    
327	 */
                    
328	domOption_Array &getOption_array() { return elemOption_array; }
                    
329	/**
                    
332	 */
                    
333	const domOption_Array &getOption_array() const { return elemOption_array; }
                    
334	/**
                    
                
timer_macro_edit.tpl http://domuslink.googlecode.com/svn/trunk/ | Smarty Template | 349 lines
                    
279		<?php if (strlen($value) == 1): $value = "0".$value; endif; ?>
                    
280		<option value="<?php echo $value; ?>" <?php if ($theTimer->getTimerOption("dawnlt") && $theTimer->getTimerOption("dawnlt")->getOptionHour() == $value) echo "selected"; ?>><?php echo $value; ?></option>
                    
281	<?php endforeach; ?>
                    
299		<?php if (strlen($value) == 1): $value = "0".$value; endif; ?>
                    
300		<option value="<?php echo $value; ?>" <?php if ($theTimer->getTimerOption("dawngt") && $theTimer->getTimerOption("dawngt")->getOptionMin() == $value) echo "selected"; ?>><?php echo $value; ?></option>
                    
301	<?php endforeach; ?>
                    
313		<?php if (strlen($value) == 1): $value = "0".$value; endif; ?>
                    
314		<option value="<?php echo $value; ?>" <?php if ($theTimer->getTimerOption("dusklt") && $theTimer->getTimerOption("dusklt")->getOptionMin() == $value) echo "selected"; ?>><?php echo $value; ?></option>
                    
315	<?php endforeach; ?>
                    
321		<?php if (strlen($value) == 1): $value = "0".$value; endif; ?>
                    
322		<option value="<?php echo $value; ?>" <?php if ($theTimer->getTimerOption("duskgt") && $theTimer->getTimerOption("duskgt")->getOptionHour() == $value) echo "selected"; ?>><?php echo $value; ?></option>
                    
323	<?php endforeach; ?>
                    
327		<?php if (strlen($value) == 1): $value = "0".$value; endif; ?>
                    
328		<option value="<?php echo $value; ?>" <?php if ($theTimer->getTimerOption("duskgt") && $theTimer->getTimerOption("duskgt")->getOptionMin() == $value) echo "selected"; ?>><?php echo $value; ?></option>
                    
329	<?php endforeach; ?>
                    
                
upgrade_schema.php git://github.com/facebook/phabricator.git | PHP | 201 lines
                    
1#!/usr/bin/env php
                    
2<?php
                    
20$root = dirname(dirname(dirname(__FILE__)));
                    
21require_once $root.'/scripts/__init_script__.php';
                    
22
                    
27
                    
28// TODO: getopt() is super terrible, move to something less terrible.
                    
29$options = getopt('fhv:u:p:') + array(
                    
138
                    
139    if (preg_match('/\.php$/', $patch['path'])) {
                    
140      $schema_conn = $conn;
                    
189  echo
                    
190    "usage: upgrade_schema.php [-v version] [-u user -p pass] [-f] [-h]".
                    
191    "\n\n".
                    
191    "\n\n".
                    
192    "Run 'upgrade_schema.php -u root -p hunter2' to override the configured ".
                    
193    "default user.\n".
                    
                
IndexController.php http://simple-php-contact-form.googlecode.com/svn/trunk/ | PHP | 369 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * Simple PHP Contact Form
                    
4 *
                    
4 *
                    
5 * This file is part of the Simple PHP Contact Form which is subject to the New
                    
6 * BSD License {@see LICENSE} which you would be advised to read before using,
                    
8 *
                    
9 * PHP version 5.2
                    
10 *
                    
10 *
                    
11 * @category  Simple-PHP-Contact-Form
                    
12 * @package   Application_Controllers
                    
16 * @version   SVN: $Id$
                    
17 * @link      http://code.google.com/p/simple-php-contact-form/
                    
18 */
                    
                
TbxTest.php http://firephp.googlecode.com/svn/trunk/ | PHP | 0 lines
                    
10 */
                    
11require_once 'Zend/Translate/Adapter/Tbx.php';
                    
12
                    
15 */
                    
16require_once 'PHPUnit/Framework/TestCase.php';
                    
17
                    
23 */
                    
24class Zend_Translate_Adapter_TbxTest extends PHPUnit_Framework_TestCase
                    
25{
                    
33        $suite  = new PHPUnit_Framework_TestSuite("Zend_Translate_Adapter_TbxTest");
                    
34        $result = PHPUnit_TextUI_TestRunner::run($suite);
                    
35    }
                    
107        $this->assertEquals(array('testoption' => 'testkey', 'clear' => false, 'scan' => null, 'locale' => 'en', 'ignore' => '.', 'disableNotices' => false), $adapter->getOptions());
                    
108        $this->assertEquals('testkey', $adapter->getOptions('testoption'));
                    
109        $this->assertTrue(is_null($adapter->getOptions('nooption')));
                    
                
Escher.php https://PHPExcel.svn.codeplex.com/svn | PHP | 513 lines
                    
2/**
                    
3 * PHPExcel
                    
4 *
                    
22 * @package    PHPExcel_Writer_Excel5
                    
23 * @copyright  Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
24 * @license    http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt	LGPL
                    
33 * @package    PHPExcel_Writer_Excel5
                    
34 * @copyright  Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
35 */
                    
139
                    
140		case 'PHPExcel_Shared_Escher_DggContainer_BstoreContainer':
                    
141			// this is a container record
                    
167
                    
168		case 'PHPExcel_Shared_Escher_DggContainer_BstoreContainer_BSE':
                    
169			// this is a semi-container record
                    
                
FormControl.php https://code.google.com/p/celebrio/ | PHP | 632 lines
                    
1<?php
                    
2
                    
207	 */
                    
208	final public function getOption($key, $default = NULL)
                    
209	{
                    
218	 */
                    
219	final public function getOptions()
                    
220	{
                    
                
update.class.php git://github.com/modxcms/revolution.git | PHP | 154 lines
                    
1<?php
                    
2/*
                    
111    public function loadCustomCssJs() {
                    
112        $this->addJavascript($this->modx->getOption('manager_url')."assets/modext/widgets/system/modx.panel.dashboard.js");
                    
113        $this->addJavascript($this->modx->getOption('manager_url').'assets/modext/sections/system/dashboards/update.js');
                    
                
AclProviderTest.php git://github.com/fabpot/symfony.git | PHP | 263 lines
                    
1<?php
                    
2
                    
19
                    
20class AclProviderTest extends \PHPUnit_Framework_TestCase
                    
21{
                    
135        // import the schema
                    
136        $schema = new Schema($options = $this->getOptions());
                    
137        foreach ($schema->toSql($this->con->getDatabasePlatform()) as $sql) {
                    
242
                    
243    protected function getOptions()
                    
244    {
                    
260    {
                    
261        return new AclProvider($this->con, $this->getStrategy(), $this->getOptions());
                    
262    }
                    
                
AdminWebModule.php git://github.com/modolabs/Kurogo-Mobile-Web.git | PHP | 317 lines
                    
1<?php
                    
2
                    
107                $homeModuleID = $this->getHomeModuleID();
                    
108                if ($iconSet = $this->getOptionalThemeVar('navigation_icon_set')) {
                    
109                    $iconSetSize = $this->getOptionalThemeVar('navigation_icon_size');
                    
115                foreach ($this->getAllModules() as $module) {
                    
116                    $icon = $module->getOptionalModuleVar('icon', $module->getConfigModule(), 'module');
                    
117                    $subNavSections[$module->getConfigModule()] = array(
                    
128                        'home'=>$module->isOnHomeScreen(),
                    
129                        'disabled'=>$module->getOptionalModuleVar('disabled', false, 'module'),
                    
130                        'protected'=>$module->getOptionalModuleVar('protected', false, 'module'),
                    
130                        'protected'=>$module->getOptionalModuleVar('protected', false, 'module'),
                    
131                        'secure'=>$module->getOptionalModuleVar('secure', false, 'module'),
                    
132                        'search'=>$module->getOptionalModuleVar('search', false, 'module'),
                    
164
                    
165        if ($iconSet = $this->getOptionalThemeVar('navigation_icon_set')) {
                    
166            $iconSetSize = $this->getOptionalThemeVar('navigation_icon_size');
                    
                
CrontabController.php https://code.google.com/p/zfcore/ | PHP | 218 lines
                    
1<?php
                    
2/**
                    
162                $dec = $el->getDecorator('HtmlTag');
                    
163                $cls = $dec->getOption('class');
                    
164                $dec->setOption('class', $cls .' error');
                    
                
ReCaptcha.php http://grupal.googlecode.com/svn/trunk/ | PHP | 503 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 25295 2013-03-20 09:54:29Z frosch $
                    
40 */
                    
230            /** @see Zend_Service_ReCaptcha_Exception */
                    
231            require_once 'Zend/Service/ReCaptcha/Exception.php';
                    
232
                    
                
CallbackHandler.php git://github.com/eryx/php-framework-benchmark.git | PHP | 366 lines
                    
1<?php
                    
2/**
                    
31 *
                    
32 * A handler for a event, event, filterchain, etc. Abstracts PHP callbacks,
                    
33 * primarily to allow for lazy-loading and ensuring availability of default
                    
43    /**
                    
44     * @var string|array PHP callback to invoke
                    
45     */
                    
68     * @param  string $event Event to which slot is subscribed
                    
69     * @param  string|array|object $callback PHP callback 
                    
70     * @param  array $options Options used by the callback handler (e.g., priority)
                    
82     *
                    
83     * If you have pecl/weakref {@see http://pecl.php.net/weakref} installed, 
                    
84     * this method provides additional behavior.
                    
189     */
                    
190    public function getOptions()
                    
191    {
                    
                
ConventionalRenderer.php git://github.com/jakubkulhan/shopaholic.git | PHP | 515 lines
                    
1<?php
                    
2
                    
10 *
                    
11 * For more information please see http://nettephp.com
                    
12 *
                    
13 * @copyright  Copyright (c) 2004, 2009 David Grudl
                    
14 * @license    http://nettephp.com/license  Nette license
                    
15 * @link       http://nettephp.com
                    
17 * @package    Nette\Forms
                    
18 * @version    $Id: ConventionalRenderer.php 235 2009-03-26 22:08:52Z david@grudl.com $
                    
19 */
                    
22
                    
23require_once dirname(__FILE__) . '/../../Object.php';
                    
24
                    
24
                    
25require_once dirname(__FILE__) . '/../../Forms/IFormRenderer.php';
                    
26
                    
                
php_http_client.h git://pkgs.fedoraproject.org/php-pecl-http | C++ Header | 226 lines
                    
122typedef struct php_http_client *(*php_http_client_init_func_t)(struct php_http_client *h, void *arg);
                    
123typedef struct php_http_client *(*php_http_client_copy_func_t)(struct php_http_client *from, struct php_http_client *to);
                    
124typedef void (*php_http_client_dtor_func_t)(struct php_http_client *h);
                    
127typedef STATUS (*php_http_client_setopt_func_t)(struct php_http_client *h, php_http_client_setopt_opt_t opt, void *arg);
                    
128typedef STATUS (*php_http_client_getopt_func_t)(struct php_http_client *h, php_http_client_getopt_opt_t opt, void *arg);
                    
129
                    
154
                    
155PHP_HTTP_API php_http_client_t *php_http_client_init(php_http_client_t *h, php_http_client_ops_t *ops, php_http_resource_factory_t *rf, void *init_arg TSRMLS_DC);
                    
156PHP_HTTP_API php_http_client_t *php_http_client_copy(php_http_client_t *from, php_http_client_t *to);
                    
156PHP_HTTP_API php_http_client_t *php_http_client_copy(php_http_client_t *from, php_http_client_t *to);
                    
157PHP_HTTP_API STATUS php_http_client_exec(php_http_client_t *h, php_http_message_t *msg);
                    
158PHP_HTTP_API STATUS php_http_client_reset(php_http_client_t *h);
                    
159PHP_HTTP_API STATUS php_http_client_setopt(php_http_client_t *h, php_http_client_setopt_opt_t opt, void *arg);
                    
160PHP_HTTP_API STATUS php_http_client_getopt(php_http_client_t *h, php_http_client_getopt_opt_t opt, void *arg);
                    
161PHP_HTTP_API void php_http_client_dtor(php_http_client_t *h);
                    
                
Region.class.php git://github.com/benkeen/generatedata.git | PHP | 200 lines
                    
1<?php
                    
2
                    
128
                    
129	public function getOptionsColumnHTML() {
                    
130		$countryPlugins = Core::$countryPlugins;
                    
                
META.yml git://github.com/rhuss/jmx4perl.git | YAML | 151 lines
                    
128  File::Temp: '0'
                    
129  Getopt::Long: '0'
                    
130  IO::Socket::Multicast: '0'
                    
148resources:
                    
149  license: http://opensource.org/licenses/gpl-license.php
                    
150version: '1.13'
                    
                
generate-command-test.php git://github.com/nrk/predis.git | PHP | 261 lines
                    
19//
                    
20//   $ ./bin/generate-command-test.php --class=StringSet
                    
21//
                    
59
                    
60        $getops = getopt(implode(array_keys($parameters)), $parameters);
                    
61
                    
95        $options['fqn'] = "Predis\\Commands\\{$options['class']}";
                    
96        $options['path'] = "Predis/Commands/{$options['class']}.php";
                    
97
                    
103        if (!isset($options['output'])) {
                    
104            $options['output'] = sprintf("%s/%s", $options['tests'], str_replace('.php', 'Test.php', $options['path']));
                    
105        }
                    
157
                    
158        $buffer =<<<PHP
                    
159<?php
                    
                
modcategory.class.php git://github.com/modxcms/revolution.git | PHP | 280 lines
                    
1<?php
                    
2/*
                    
139        if ($context === $this->xpdo->context->get('key')) {
                    
140            $enabled = (boolean) $this->xpdo->getOption('access_category_enabled', null, true);
                    
141        } elseif ($this->xpdo->getContext($context)) {
                    
141        } elseif ($this->xpdo->getContext($context)) {
                    
142            $enabled = (boolean) $this->xpdo->contexts[$context]->getOption('access_category_enabled', true);
                    
143        }
                    
                
IniTest.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: IniTest.php 23772 2011-02-28 21:35:29Z ralph $
                    
21 */
                    
25 */
                    
26require_once 'Zend/Translate/Adapter/Ini.php';
                    
27
                    
35 */
                    
36class Zend_Translate_Adapter_IniTest extends PHPUnit_Framework_TestCase
                    
37{
                    
44    {
                    
45        $suite  = new PHPUnit_Framework_TestSuite("Zend_Translate_Adapter_IniTest");
                    
46        $result = PHPUnit_TextUI_TestRunner::run($suite);
                    
78        $this->assertEquals('Küchen Möbel (en)', $adapter->translate('Cooking_furniture'));
                    
79        if (0 > version_compare(PHP_VERSION, '5.3.0')) {
                    
80            $this->assertEquals('Cooking furniture (en)', $adapter->translate('Küchen_Möbel'), var_export($adapter->getMessages('en'), 1));
                    
                
sfMemcacheCache.class.php http://opac-sbweb.googlecode.com/svn/trunk/ | PHP | 260 lines
                    
57
                    
58      if ($this->getOption('servers'))
                    
59      {
                    
71        $method = $this->getOption('persistent', true) ? 'pconnect' : 'connect';
                    
72        if (!$this->memcache->$method($this->getOption('host', 'localhost'), $this->getOption('port', 11211), $this->getOption('timeout', 1)))
                    
73        {
                    
73        {
                    
74          throw new sfInitializationException(sprintf('Unable to connect to the memcache server (%s:%s).', $this->getOption('host', 'localhost'), $this->getOption('port', 11211)));
                    
75        }
                    
116    // save key for removePattern()
                    
117    if ($this->getOption('storeCacheInfo', false))
                    
118    {
                    
241    }
                    
242    $keys[] = $this->getOption('prefix').$key;
                    
243    $this->memcache->set($this->getOption('prefix').'_metadata', $keys, 0);
                    
                
CWebService.php http://chenjin.googlecode.com/svn/trunk/ | PHP | 284 lines
                    
63	 * A PHP class can also be specified as a path alias.
                    
64	 * @see http://www.php.net/manual/en/function.soap-soapserver-construct.php
                    
65	 */
                    
76	 * @var integer the persistence mode of the SOAP server.
                    
77	 * @see http://www.php.net/manual/en/function.soap-soapserver-setpersistence.php
                    
78	 */
                    
98	 * The PHP error handler.
                    
99	 * @param CErrorEvent $event the PHP error event
                    
100	 */
                    
195			// We need to end application explicitly because of
                    
196			// http://bugs.php.net/bug.php?id=49513
                    
197			Yii::app()->onEndRequest(new CEvent($this));
                    
223	 * @return array options for creating SoapServer instance
                    
224	 * @see http://www.php.net/manual/en/function.soap-soapserver-construct.php
                    
225	 */
                    
                
getopt.c http://php52-backports.googlecode.com/svn/trunk/ | C | 165 lines
                    
9   | available through the world-wide-web at the following url:           |
                    
10   | http://www.php.net/license/3_01.txt                                  |
                    
11   | If you did not receive a copy of the PHP license and are unable to   |
                    
12   | obtain it through the world-wide-web, please send a note to          |
                    
13   | license@php.net so we can mail you a copy immediately.               |
                    
14   +----------------------------------------------------------------------+
                    
14   +----------------------------------------------------------------------+
                    
15   | Author: Marcus Boerger <helly@php.net>                               |
                    
16   +----------------------------------------------------------------------+
                    
24#include <stdlib.h>
                    
25#include "php_getopt.h"
                    
26#define OPTERRCOLON (1)
                    
54
                    
55int php_getopt(int argc, char* const *argv, const opt_struct opts[], char **optarg, int *optind, int show_err)
                    
56{
                    
                
sfTask.class.php http://openirudi.googlecode.com/svn/trunk/ | PHP | 337 lines
                    
1<?php
                    
2
                    
16 * @author     Fabien Potencier <fabien.potencier@symfony-project.com>
                    
17 * @version    SVN: $Id: sfTask.class.php 9652 2008-06-18 21:38:48Z nicolas $
                    
18 */
                    
72    $commandManager->getArgumentSet()->addArguments($this->getArguments());
                    
73    $commandManager->getOptionSet()->addOptions($this->getOptions());
                    
74
                    
85  {
                    
86    $commandManager = new sfCommandManager(new sfCommandArgumentSet($this->getArguments()), new sfCommandOptionSet($this->getOptions()));
                    
87
                    
136   */
                    
137  public function getOptions()
                    
138  {
                    
251    $options = array();
                    
252    foreach ($this->getOptions() as $option)
                    
253    {
                    
                
ConventionalRenderer.php https://code.google.com/p/celebrio/ | PHP | 539 lines
                    
1<?php
                    
2
                    
201		foreach ($this->form->getControls() as $control) {
                    
202			if ($control->getOption('required') && isset($wrapper['.required'])) {
                    
203				$control->getLabelPrototype()->class($wrapper['.required'], TRUE);
                    
259		foreach ($this->form->getControls() as $control) {
                    
260			if ($control instanceof HiddenField && !$control->getOption('rendered')) {
                    
261				$s .= (string) $control->getControl();
                    
318		foreach ($this->form->getGroups() as $group) {
                    
319			if (!$group->getControls() || !$group->getOption('visual')) continue;
                    
320
                    
320
                    
321			$container = $group->getOption('container', $defaultContainer);
                    
322			$container = $container instanceof Html ? clone $container : Html::el($container);
                    
325
                    
326			$text = $group->getOption('label');
                    
327			if ($text instanceof Html) {
                    
                
waLoginAction.class.php git://github.com/webasyst/webasyst-framework.git | PHP | 284 lines
                    
1<?php
                    
2
                    
86            if ($this->getUser()->isAuth()) {
                    
87                if (!$auth->getOption('is_user') || $this->getUser()->get('is_user')) {
                    
88                    $authorized = true;
                    
111
                    
112        $this->view->assign('options', $auth->getOptions());
                    
113
                    
125    {
                    
126        if ( ( $title = $this->getConfig()->getOption('login_form_title'))) {
                    
127            return waLocale::fromArray($title);
                    
133    {
                    
134        return $this->getConfig()->getOption('login_form_title_style');
                    
135    }
                    
149        $auth = $this->getAuth();
                    
150        $is_user = $auth->getOption('is_user');
                    
151        if (strpos($login, '@')) {
                    
                
make-dists https://code.google.com/p/movabletype/ | Perl | 239 lines
                    
15use File::Basename;
                    
16use Getopt::Long;
                    
17
                    
39
                    
40GetOptions(
                    
41    'language:s' => \$langlist,
                    
140    # must have a source file extension or be a utility script (extensionless)
                    
141    return unless $file =~ m! / ( [A-Za-z0-9_.-]+ \. ( pl | php | pm | cgi | js | t ) | [a-z0-9_-] + ) $ !x;
                    
142
                    
                
IniTest.php git://pkgs.fedoraproject.org/php-ZendFramework | PHP | 224 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: IniTest.php 24594 2012-01-05 21:27:01Z matthew $
                    
21 */
                    
25 */
                    
26require_once 'Zend/Translate/Adapter/Ini.php';
                    
27
                    
35 */
                    
36class Zend_Translate_Adapter_IniTest extends PHPUnit_Framework_TestCase
                    
37{
                    
44    {
                    
45        $suite  = new PHPUnit_Framework_TestSuite("Zend_Translate_Adapter_IniTest");
                    
46        $result = PHPUnit_TextUI_TestRunner::run($suite);
                    
78        $this->assertEquals('Küchen Möbel (en)', $adapter->translate('Cooking_furniture'));
                    
79        if (0 > version_compare(PHP_VERSION, '5.3.0')) {
                    
80            $this->assertEquals('Cooking furniture (en)', $adapter->translate('Küchen_Möbel'), var_export($adapter->getMessages('en'), 1));
                    
                
any2djvu git://pkgs.fedoraproject.org/djvulibre | Bash | 234 lines
                    
31rurl="http://any2djvu.djvuzone.org"
                    
32rcgi="any2djvu.php"
                    
33res=400
                    
93
                    
94while getopts "hacqsr:o:f:u:p:" opt
                    
95  do
                    
183
                    
184wgetopts=''
                    
185curlopts=''
                    
188    curlopts=' -s '
                    
189    wgetopts=' -q '
                    
190    shellopts=' 1>/dev/null ' # 2>&1
                    
211    else
                    
212        wget $wgetopts -O - "$rurl/$rcgi?urlupload=$lurl/$in$cgiopts"   \
                    
213            | eval tee "'$log'" $shellopts
                    
                
DriverTest.php git://github.com/whatthejeff/breeze.git | PHP | 296 lines
                    
1<?php
                    
2/**
                    
17 * @license    https://github.com/whatthejeff/breeze/blob/master/LICENSE New BSD License
                    
18 * @link       http://breezephp.com/
                    
19 */
                    
35 * @license    https://github.com/whatthejeff/breeze/blob/master/LICENSE New BSD License
                    
36 * @link       http://breezephp.com/
                    
37 */
                    
37 */
                    
38class DriverTest extends \PHPUnit_Framework_TestCase
                    
39{
                    
148        $this->_driver->setPath(\Breeze\Tests\FIXTURES_PATH);
                    
149        $this->assertTrue($this->_driver->templateExists('template.php'));
                    
150    }
                    
159        $this->assertSame(
                    
160            \Breeze\Tests\FIXTURES_PATH . "/template.php",
                    
161            $this->_driver->getTemplatePath('template.php')
                    
                
PHPSpec.php git://github.com/phpspec/phpspec.git | PHP | 383 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * PHPSpec
                    
4 *
                    
12 * obtain it through the world-wide-web, please send an email
                    
13 * to license@phpspec.net so we can send you a copy immediately.
                    
14 *
                    
14 *
                    
15 * @category  PHPSpec
                    
16 * @package   PHPSpec
                    
21 */
                    
22namespace PHPSpec;
                    
23
                    
23
                    
24use \PHPSpec\Runner\Runner,
                    
25    \PHPSpec\Runner\Reporter,
                    
                
lmbLocale.class.php git://github.com/limb-php-framework/limb.git | PHP | 371 lines
                    
1<?php
                    
2/*
                    
2/*
                    
3 * Limb PHP Framework
                    
4 *
                    
8 */
                    
9lmb_require('limb/config/src/lmbIni.class.php');
                    
10lmb_require('limb/i18n/src/locale/lmbLocaleSpec.class.php');
                    
28 * @package i18n
                    
29 * @version $Id: lmbLocale.class.php 7486 2009-01-26 19:13:20Z pachanga $
                    
30 */
                    
113    if($config->hasOption('is_monday_first', 'date_time'))
                    
114      $this->is_monday_first = strtolower($config->getOption('is_monday_first', 'date_time')) == 'yes';
                    
115
                    
152    {
                    
153      $charset = $config->getOption('preferred', 'charset');
                    
154      if($charset != '')
                    
                
FirePHP.hx https://code.google.com/p/haxe-firephp/ | Haxe | 293 lines
                    
2
                    
3@:native("FirePHP") extern class FirePHP
                    
4{
                    
6	{
                    
7        untyped __php__("require_once 'php/FirePHP.php';");
                    
8	}
                    
10	/**
                    
11     * FirePHP version
                    
12     */
                    
88     */
                    
89    public static function setInstance(instance:FirePHP) : FirePHP;
                    
90
                    
168    /**
                    
169     * FirePHP's exception handler
                    
170     * Logs all exceptions to your firebug console and then stops the script.
                    
                
engine.class.php git://pkgs.fedoraproject.org/glpi-data-injection | PHP | 252 lines
                    
1<?php
                    
2/*
                    
82      //Note : ignore values which are not mapped with a glpi's field
                    
83      $searchOptions = $injectionClass->getOptions($itemtype);
                    
84
                    
                
PhpunitAdapterTest.php git://github.com/padraic/mutagenesis.git | PHP | 360 lines
                    
23
                    
24require_once 'Mutagenesis/Adapter/Phpunit.php';
                    
25
                    
25
                    
26class Mutagenesis_Adapter_PhpunitAdapterTest extends PHPUnit_Framework_TestCase
                    
27{
                    
46     */
                    
47    public function testAdapterRunsDefaultPhpunitCommand()
                    
48    {
                    
49        $runner = m::mock('\Mutagenesis\Runner\Base');
                    
50        $runner->shouldReceive('getOptions')->andReturn(
                    
51            array(
                    
131        $runner = m::mock('\Mutagenesis\Runner\Base');
                    
132        $runner->shouldReceive('getOptions')->andReturn(
                    
133            array(
                    
                
ISO14496_Box_PADB.html http://xepec.googlecode.com/svn/trunk/ | HTML | 148 lines
                    
32		<p class="notes">
                    
33			Located in <a class="field" href="_ISO14496---Box---PADB.php.html">/ISO14496/Box/PADB.php</a> (line <span class="field">55</span>)
                    
34		</p>
                    
67													<span class="var-title">
                    
68								<span class="var-name"><a href="../../php-reader/ISO/ISO14496_Box_Full.html#var$_flags">ISO14496_Box_Full::$_flags</a></span><br>
                    
69							</span>
                    
113													<span class="method-name"><a href="../../php-reader/ISO/ISO14496_Box.html#methodaddBox">ISO14496_Box::addBox()</a></span><br>
                    
114													<span class="method-name"><a href="../../php-reader/ISO/ISO14496_Box.html#methodconstructBoxes">ISO14496_Box::constructBoxes()</a></span><br>
                    
115													<span class="method-name"><a href="../../php-reader/ISO/ISO14496_Box.html#methodgetBoxes">ISO14496_Box::getBoxes()</a></span><br>
                    
118													<span class="method-name"><a href="../../php-reader/ISO/ISO14496_Box.html#methodgetOffset">ISO14496_Box::getOffset()</a></span><br>
                    
119													<span class="method-name"><a href="../../php-reader/ISO/ISO14496_Box.html#methodgetOption">ISO14496_Box::getOption()</a></span><br>
                    
120													<span class="method-name"><a href="../../php-reader/ISO/ISO14496_Box.html#methodgetOptions">ISO14496_Box::getOptions()</a></span><br>
                    
144	<p class="notes" id="credit">
                    
145		Documentation generated on Thu, 01 Jan 2009 14:59:32 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a>
                    
146	</p>
                    
                
phptal_lint.php git://github.com/pornel/PHPTAL.git | PHP | 283 lines
                    
121        $this->require_phptal();
                    
122        echo "PHPTAL Lint 1.1.3 (PHPTAL ", strtr(PHPTAL_VERSION,"_","."), ")\n";
                    
123
                    
123
                    
124        echo "Usage: phptal_lint.php [-e extensions] [-i php_file_or_directory] file_or_directory_to_check ...\n";
                    
125        echo "  -e comma-separated list of extensions\n";
                    
173
                    
174        $myphptal = dirname(__FILE__) . '/../classes/PHPTAL.php';
                    
175        if (file_exists($myphptal)) {
                    
180
                    
181        if (!class_exists('PHPTAL') || !defined('PHPTAL_VERSION')) {
                    
182            throw new Exception("Your PHPTAL installation is broken or too new for this tool");
                    
261            $this->checked ++;
                    
262            $phptal = new PHPTAL($fullpath);
                    
263            $phptal->setForceReparse(true);
                    
                
Feed.php http://simplesamlphp.googlecode.com/svn/trunk/ | PHP | 0 lines
                    
1<?php
                    
2
                    
4/*
                    
5* File: SimpleImage.php
                    
6* Author: Simon Jarvis
                    
8* Date: 08/11/06
                    
9* Link: http://www.white-hat-web-design.co.uk/articles/php-image-resizing.php
                    
10*
                    
135		$this->config = SimpleSAML_Configuration::getInstance();
                    
136		$this->djconfig = SimpleSAML_Configuration::getOptionalConfig('discojuicefeed.php');
                    
137
                    
432			try {
                    
433				$host = parse_url($endpoint['Location'], PHP_URL_HOST); if (empty($host)) return;
                    
434				$ip = gethostbyname($host); 
                    
486			try {
                    
487				$host = parse_url($endpoint['Location'], PHP_URL_HOST);
                    
488				$ip = gethostbyname($host);
                    
                
tickettemplatepredefinedfield.class.php git://pkgs.fedoraproject.org/glpi | PHP | 299 lines
                    
1<?php
                    
2/*
                    
2/*
                    
3 * @version $Id: tickettemplatepredefinedfield.class.php 18776 2012-06-29 12:28:45Z remi $
                    
4 -------------------------------------------------------------------------
                    
207      $fields        = $tt->getAllowedFieldsNames(true, isset($used_fields['itemtype']));
                    
208      $searchOption  = Search::getOptions('Ticket');
                    
209      $ticket        = new Ticket();
                    
281            Ajax::updateItemOnSelectEvent("dropdown_num".$rand_dp, "show_massiveaction_field",
                    
282                                          $CFG_GLPI["root_doc"]."/ajax/dropdownMassiveActionField.php",
                    
283                                          $paramsmassaction);
                    
                
modmanagerrequest.class.php git://github.com/modxcms/revolution.git | PHP | 189 lines
                    
1<?php
                    
2/*
                    
69        /* load smarty template engine */
                    
70        $theme = $this->modx->getOption('manager_theme',null,'default');
                    
71        $templatePath = $this->modx->getOption('manager_path') . 'templates/' . $theme . '/';
                    
72        if (!file_exists($templatePath)) { /* fallback to default */
                    
73            $templatePath = $this->modx->getOption('manager_path') . 'templates/default/';
                    
74        }
                    
84        if (!array_key_exists('a', $_REQUEST)) {
                    
85            $_REQUEST[$this->actionVar] = $this->modx->getOption('welcome_action', null, $this->defaultAction);
                    
86            $_REQUEST[$this->namespaceVar] = $this->modx->getOption('welcome_namespace', null, 'core');
                    
89        /* send the charset header */
                    
90        header('Content-Type: text/html; charset='.$this->modx->getOption('modx_charset'));
                    
91
                    
163            xPDO::OPT_CACHE_HANDLER => $this->modx->getOption('cache_action_map_handler', null, $this->modx->getOption(xPDO::OPT_CACHE_HANDLER)),
                    
164            xPDO::OPT_CACHE_FORMAT => (integer) $this->modx->getOption('cache_action_map_format', null, $this->modx->getOption(xPDO::OPT_CACHE_FORMAT, null, xPDOCacheManager::CACHE_PHP)),
                    
165        ));
                    
                
TmxTest.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: TmxTest.php 23772 2011-02-28 21:35:29Z ralph $
                    
21 */
                    
25 */
                    
26require_once 'Zend/Translate/Adapter/Tmx.php';
                    
27
                    
35 */
                    
36class Zend_Translate_Adapter_TmxTest extends PHPUnit_Framework_TestCase
                    
37{
                    
44    {
                    
45        $suite  = new PHPUnit_Framework_TestSuite("Zend_Translate_Adapter_TmxTest");
                    
46        $result = PHPUnit_TextUI_TestRunner::run($suite);
                    
132        );
                    
133        $options = $adapter->getOptions();
                    
134
                    
                
buildit.py https://code.google.com/p/axe-gui-libraries/ | Python | 417 lines
                    
7import os, sys
                    
8import getopt
                    
9import webbrowser
                    
24global webhelpurl
                    
25webhelpurl='http://www.omnimaga.org/index.php?board=146.0'
                    
26
                    
285		# "=" in long args to require an argument
                    
286		opts, args = getopt.gnu_getopt(argv[1:], "brctnsp:dhwl", ["build", "reverse", "clean", "test", "normalbuild", "dcsbuild", "spasmpath", "debug", "help", "webhelp", "credits"])
                    
287	except getopt.error, err:
                    
                
antlion.php https://code.google.com/p/overwatch/ | PHP | 222 lines
                    
1#!/usr/bin/env php
                    
2<?php declare (ticks = 1);
                    
28		$Opts ['v'] = new CommandLineSwitch         ('show version and exit');
                    
29		// Construct getopt's argument
                    
30		$Temp = '';
                    
31		foreach ($Opts as $Letter => $Opt) {
                    
32			$Temp .= $Letter . $Opt->GetOpt;
                    
33		}
                    
34		// Parse the options from command line
                    
35		if (FALSE === ($Temp = getopt ($Temp))) {
                    
36			die (M__APP_ERR_GETOPT."\n");
                    
208	function __autoload ($Class) {
                    
209		include_once (DIR_CLASSES."/$Class.php");
                    
210	}
                    
218	setlocale (LC_ALL, 'C');
                    
219	require (DIR_MESSAGES.'/C.php'); // i18n may be implemented here
                    
220	$App = new App ();
                    
                
album_edit.htm http://jqbird.googlecode.com/svn/trunk/ | HTML | 176 lines
                    
4<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
                    
5<title>????:<?php echo $row['title']?> - ???? - <?php echo $cfg_webname; ?></title>
                    
6<link href="templets/style/base.css" rel="stylesheet" type="text/css" />
                    
17  <div id="content" class="w960 clearfix">
                    
18    <?php include(DEDEMEMBER."/templets/menu.php"); ?>
                    
19    <div id="mcpmain">
                    
118                    <tr>
                    
119                      <td height="18"><input type='checkbox' name='isokcheck<?php echo $j; ?>' id='isokcheck<?php echo $j; ?>' value='1' class='np' onclick='CheckSelTable(<?php echo $j; ?>)' checked='1' />
                    
120                        ??/????[<?php echo $j; ?>]??? </td>
                    
131                      <td width="322" rowspan="3" align="center"><div id='divpicview<?php echo $j; ?>' class='divpre' style="height:5px"></div>
                    
132                      <img src="<?php echo trim($ctag->GetInnerText()); ?>" id="picview<?php echo $j; ?>" name="picview<?php echo $j; ?>" style="width: 128px; height: 128px;"/></td>
                    
133                    </tr>
                    
136                      <td height="56">??????
                    
137                      <textarea name='imgmsg<?php echo $j; ?>' style="height:46px;width:200px"><?php echo trim($ctag->GetAtt('text'))?></textarea></td>
                    
138                    </tr>
                    
                
LoginController.php http://rewardvn.googlecode.com/svn/trunk/ | PHP | 221 lines
                    
1<?php
                    
2require_once 'Reward/Mvc/BaseUserController.php' ;
                    
2require_once 'Reward/Mvc/BaseUserController.php' ;
                    
3require_once 'Reward/Util.php' ;
                    
4require_once 'security/AES.class.php' ;
                    
12		$bootstrap = $this->getInvokeArg('bootstrap');
                    
13		//$this->config =  $bootstrap->getOptions();
                    
14		
                    
                
Remove.php git://github.com/dbpatch/DbPatch.git | PHP | 154 lines
                    
1<?php
                    
2/**
                    
70        if ($this->console->issetOption('patch')) {
                    
71            $patchNumbers = explode(",", $this->console->getOptionValue('patch', null));
                    
72            $filteredPatchNumbers = array_filter($patchNumbers, 'is_numeric');
                    
                
sfFormDoctrine.class.php http://opac-sbweb.googlecode.com/svn/trunk/ | PHP | 537 lines
                    
1<?php
                    
2
                    
16 * @author     Jonathan H. Wage <jonwage@gmail.com>
                    
17 * @version    SVN: $Id: sfFormDoctrine.class.php 7845 2008-03-12 22:36:14Z fabien $
                    
18 */
                    
26 * @author     Jonathan H. Wage <jonwage@gmail.com>
                    
27 * @version    SVN: $Id: sfFormDoctrine.class.php 7845 2008-03-12 22:36:14Z fabien $
                    
28 */
                    
251   * To process a value before it is used by the updateObject() method,
                    
252   * you need to define an updateXXXColumn() method where XXX is the PHP name
                    
253   * of the column.
                    
308  {
                    
309    return $this->getObject()->getTable()->getTemplate('Doctrine_Template_I18n')->getI18n()->getOption('className');
                    
310  }
                    
462    // we need the base directory
                    
463    if (!$this->validatorSchema[$field]->getOption('path'))
                    
464    {
                    
                
update.class.php git://github.com/modxcms/revolution.git | PHP | 226 lines
                    
1<?php
                    
2/*
                    
41    public function loadCustomCssJs() {
                    
42        $mgrUrl = $this->modx->getOption('manager_url',null,MODX_MANAGER_URL);
                    
43        $this->addJavascript($mgrUrl.'assets/modext/widgets/core/modx.grid.local.property.js');
                    
155                $context->get('key'),
                    
156                !empty($source) ? $source : $this->modx->getOption('default_media_source',null,1),
                    
157                $context->get('name'),
                    
                
 

Source

Language