100+ results for 'php strtolower'
Not the results you expected?
helper.php (https://github.com/pollen8/joomla-platform.git) PHP · 370 lines
1 <?php
2 /**
3 * @package Joomla.Platform
49 static $credentials = array();
51 $client = strtolower($client);
53 <<<<<<< HEAD
156 {
157 $return = false;
158 $client = strtolower($client);
160 // Test if the given credentials are valid
244 {
245 $return = false;
246 $client = strtolower($client);
248 // Get (unmodified) credentials for this client
List.php (https://github.com/radicalsuz/amp.git) PHP · 279 lines
1 <?php
2 require_once('AMP/Display/List.php');
3 require_once('AMP/Content/Article.inc.php');
5 class Article_Public_List extends AMP_Display_List {
11 var $_pager_limit = 100;
12 var $_class_pager = 'AMP_Display_Pager_Content';
13 var $_path_pager = 'AMP/Display/Pager/Content.php';
15 var $_source_criteria = array( 'displayable' => 1 );
42 parent::_init_identity( );
43 if( isset( $this->_source_container )) {
44 $this->_css_class_container_list = $this->_css_class_container_list . ' list_' . strtolower( get_class( $this->_source_container )) . '_' . $this->_source_container->id;
45 }
46 }
ResponseHeader34.php (https://gitlab.com/yousafsyed/easternglamor) PHP · 406 lines
138 case self::ASSERT_RESPONSE_CODE:
139 if (3 > $argc) {
140 #require_once 'Zend/Test/PHPUnit/Constraint/Exception.php';
141 throw new Zend_Test_PHPUnit_Constraint_Exception('No response code provided against which to match');
147 case self::ASSERT_HEADER:
148 if (3 > $argc) {
149 #require_once 'Zend/Test/PHPUnit/Constraint/Exception.php';
150 throw new Zend_Test_PHPUnit_Constraint_Exception('No header provided against which to match');
175 : $this->_headerRegex($response, $header, $match);
176 default:
177 #require_once 'Zend/Test/PHPUnit/Constraint/Exception.php';
178 throw new Zend_Test_PHPUnit_Constraint_Exception('Invalid assertion type ' . __FUNCTION__);
192 public function fail($other, $description, $not = false)
193 {
194 #require_once 'Zend/Test/PHPUnit/Constraint/Exception.php';
195 switch ($this->_assertType) {
196 case self::ASSERT_RESPONSE_CODE:
form.php (https://github.com/limb-php-framework/limb-app-buildman.git) PHP · 352 lines
1 <?php
2 /**
3 * Base include file for SimpleTest.
4 * @package SimpleTest
5 * @subpackage WebTester
6 * @version $Id: form.php 4378 2006-10-27 10:04:53Z pachanga $
7 */
10 * include SimpleTest files
11 */
12 require_once(dirname(__FILE__) . '/tag.php');
13 require_once(dirname(__FILE__) . '/encoding.php');
14 require_once(dirname(__FILE__) . '/selector.php');
15 /**#@-*/
ValidClassNamePass.php (https://gitlab.com/4gdevs/online-class-record-system) PHP · 344 lines
1 <?php
3 /*
12 namespace Psy\CodeCleaner;
14 use PhpParser\Node;
15 use PhpParser\Node\Expr;
16 use PhpParser\Node\Expr\ClassConstFetch;
17 use PhpParser\Node\Expr\New_ as NewExpr;
18 use PhpParser\Node\Expr\StaticCall;
19 use PhpParser\Node\Stmt;
20 use PhpParser\Node\Stmt\Class_ as ClassStmt;
21 use PhpParser\Node\Stmt\Interface_ as InterfaceStmt;
ResponseHeader.php (https://bitbucket.org/DragonBe/zfform.git) PHP · 409 lines
23 /** @see PHPUnit_Framework_Constraint */
24 require_once 'PHPUnit/Framework/Constraint.php';
26 /**
129 if (!in_array($assertType, $this->_assertTypes)) {
130 require_once 'Zend/Test/PHPUnit/Constraint/Exception.php';
131 throw new Zend_Test_PHPUnit_Constraint_Exception(sprintf('Invalid assertion type "%s" provided to %s constraint', $assertType, __CLASS__));
150 case self::ASSERT_HEADER:
151 if (3 > $argc) {
152 require_once 'Zend/Test/PHPUnit/Constraint/Exception.php';
153 throw new Zend_Test_PHPUnit_Constraint_Exception('No header provided against which to match');
195 public function fail($other, $description, $not = false)
196 {
197 require_once 'Zend/Test/PHPUnit/Constraint/Exception.php';
198 switch ($this->_assertType) {
199 case self::ASSERT_RESPONSE_CODE:
AbstractHelper.php (https://bitbucket.org/andrew_lebedenko/zf2tb.git) PHP · 425 lines
1 <?php
3 namespace Zf2tb\View\Helper\Navigation;
65 if($page->hasPages()) {
66 //Dropdown menu
67 $html .= PHP_EOL . $this->renderDropdown($page, $options);
68 } else {
69 $html .= PHP_EOL . $this->renderItem($page, false, $options);
213 $html .= ' <b class="caret"></b>';
214 }
215 $html .= '</a>' . PHP_EOL . '<ul class="' . $this->dropdownUlClass . '">';
216 $pages = $page->getPages();
217 foreach($pages as $dropdownPage) {
218 /* @var $dropdownPage \Zend\Navigation\Page\AbstractPage */
219 $html .= PHP_EOL . $this->renderItem($dropdownPage, true, $options);
220 }
221 $html .= PHP_EOL . '</ul>';
PropelTableComparator.php (https://gitlab.com/Isaki/le331.fr) PHP · 312 lines
1 <?php
3 /**
9 */
11 require_once dirname(__FILE__) . '/../Table.php';
12 require_once dirname(__FILE__) . '/PropelTableDiff.php';
232 } else {
233 $test = $caseInsensitive ?
234 strtolower($fromTableIndex->getName()) == strtolower($toTableIndex->getName()) :
235 $fromTableIndex->getName() == $toTableIndex->getName();
236 if ($test) {
281 } else {
282 $test = $caseInsensitive ?
283 strtolower($fromTableFk->getName()) == strtolower($toTableFk->getName()) :
284 $fromTableFk->getName() == $toTableFk->getName();
285 if ($test) {
query_builder.php (https://github.com/TheDgtl/customisation-db.git) PHP · 302 lines
TaggableBehavior.php (https://github.com/mmonguilod/sfPropel15TaggableBehaviorPlugin.git) PHP · 304 lines
10 protected $parameters = array(
11 'tagging_table' => '%TABLE%_tagging',
12 'tagging_table_phpname' => '%PHPNAME%Tagging',
13 'tag_table' => 'taggable_tag',
14 'tag_table_phpname' => 'Tag',
91 $this->taggingTable = $database->addTable(array(
92 'name' => $taggingTableName,
93 'phpName' => $this->replaceTokens($this->parameters['tagging_table_phpname']),
94 'package' => $table->getPackage(),
95 'schema' => $table->getSchema(),
297 return strtr($string, array(
298 '%TABLE%' => $table->getName(),
299 '%PHPNAME%' => $table->getPhpName(),
300 ));
301 }
PropelTableComparator.php (https://github.com/esimionato/Propel2.git) PHP · 312 lines
1 <?php
3 /**
231 } else {
232 $test = $caseInsensitive ?
233 strtolower($fromTableIndex->getName()) == strtolower($toTableIndex->getName()) :
234 $fromTableIndex->getName() == $toTableIndex->getName();
235 if ($test) {
280 } else {
281 $test = $caseInsensitive ?
282 strtolower($fromTableFk->getName()) == strtolower($toTableFk->getName()) :
283 $fromTableFk->getName() == $toTableFk->getName();
284 if ($test) {
13.php (https://bitbucket.org/cesarmedrano/cesarmedrano.git) PHP · 299 lines
93 if (!isset($version) && version_compare($release['m'], phpversion(), '>')) {
94 // skip releases that require a PHP version newer than our PHP version
95 $skippedphp = $release;
105 if (!isset($version) && version_compare($release['m'], phpversion(), '>')) {
106 // skip releases that require a PHP version newer than our PHP version
107 $skippedphp = $release;
117 version_compare($release['m'], phpversion(), '>')) {
118 // skip releases that require a PHP version newer than our PHP version
119 $skippedphp = $release;
127 if (version_compare($release['m'], phpversion(), '>')) {
128 // skip releases that require a PHP version newer than our PHP version
129 $skippedphp = $release;
237 if ($entry['c'] == $deppackage['channel'] &&
238 strtolower($entry['p']) == strtolower($deppackage['package']) &&
239 version_compare($deppackage['version'], $entry['min'], '>=') &&
240 version_compare($deppackage['version'], $entry['max'], '<=') &&
Boolean.php (https://github.com/leerbag/zf2.git) PHP · 373 lines
1 <?php
2 /**
3 * Zend Framework
43 const EMPTY_ARRAY = 32;
44 const NULL = 64;
45 const PHP = 127;
46 const FALSE_STRING = 128;
47 const YES = 256;
56 self::EMPTY_ARRAY => 'array',
57 self::NULL => 'null',
58 self::PHP => 'php',
59 self::FALSE_STRING => 'false',
60 self::YES => 'yes',
365 if (!empty($str)) {
366 foreach($str as $no) {
367 if (($no == $value) || (strtolower($no) == strtolower($value))) {
368 return $return;
369 }
options.php (https://bitbucket.org/volatileeight/prado.git) PHP · 365 lines
1 <?php
2 /**
3 * base include file for SimpleTest
4 * @package SimpleTest
5 * @version $Id: options.php 1532 2006-12-01 12:28:55Z xue $
6 */
33 static function ignore($class) {
34 $registry =SimpleTestOptions::_getRegistry();
35 $registry['IgnoreList'][] = strtolower($class);
36 }
46 static function isIgnored($class) {
47 $registry =SimpleTestOptions::_getRegistry();
48 return in_array(strtolower($class), $registry['IgnoreList']);
49 }
Input.php (https://gitlab.com/dleonov/my-framework-two) PHP · 419 lines
Route.php (https://github.com/nattaphat/hgis.git) PHP · 594 lines
smarty_internal_config.php (https://github.com/raphaelbastide/berta.git) PHP · 270 lines
1 <?php
2 /**
3 * Smarty Internal Plugin Config
64 $this->config_resource_name = $config_resource;
65 } else {
66 $this->config_resource_type = strtolower($this->config_resource_type);
67 }
68 }
150 $_compile_dir .= DS;
151 }
152 return $_compile_dir . $_filepath . '.' . basename($this->config_resource_name) . '.config' . '.php';
153 }
154 /**
Tmx.php (https://bitbucket.org/khuongduybui/openfisma.git) PHP · 233 lines
1 <?php
2 /**
3 * Zend Framework
23 /** Zend_Locale */
24 // require_once 'Zend/Locale.php';
26 /** Zend_Translate_Adapter */
27 // require_once 'Zend/Translate/Adapter.php';
59 $this->_data = array();
60 if (!is_readable($filename)) {
61 // require_once 'Zend/Translate/Exception.php';
62 throw new Zend_Translate_Exception('Translation file \'' . $filename . '\' is not readable.');
63 }
AbstractTableGateway.php (https://bitbucket.org/alexandretaz/maniac_divers.git) PHP · 488 lines
licence.php (https://bitbucket.org/pombredanne/spip-zone-treemap.git) PHP · 177 lines
ArenaListener.php (https://gitlab.com/Skull3x/WorkingInProgress-Plugins-Sourcecode-For-Dev) PHP · 227 lines
50 $block = $event->getBlock ();
51 if ($player instanceof Player) {
52 if (strtolower ( $event->getPlayer ()->getLevel ()->getName () ) === strtolower ( $this->getPlugin ()->homeLevelName )) {
53 $this->getPlugin ()->arenaManager->handleTapOnArenaSigns ( $player, $block );
54 }
62 public function onBlockBreak(BlockBreakEvent $event) {
63 if ($event->getPlayer () instanceof Player) {
64 if (strtolower ( $event->getPlayer ()->getLevel ()->getName () ) === strtolower ( $this->getPlugin ()->homeLevelName )) {
65 if ($this->getPlugin ()->setupModeAction === ArenaManager::COMMAND_ARENA_POSITION || $this->getPlugin ()->setupModeAction == ArenaManager::COMMAND_ARENA_POSITION || $this->getPlugin ()->setupModeAction == ArenaManager::COMMAND_ARENA_SEEKER_DOOR) {
66 $this->getPlugin ()->arenaManager->handleBlockBreakSelection ( $event->getPlayer (), $event->getBlock () );
76 */
77 public function onSignChange(SignChangeEvent $event) {
78 if (strtolower ( $event->getPlayer ()->getLevel ()->getName () ) === strtolower ( $this->getPlugin ()->homeLevelName )) {
79 $player = $event->getPlayer ();
80 $block = $event->getBlock ();
form.php (https://github.com/automatweb/automatweb_sales.git) PHP · 352 lines
1 <?php
2 /**
3 * Base include file for SimpleTest.
4 * @package SimpleTest
5 * @subpackage WebTester
6 * @version $Id: form.php,v 1.1 2005/11/03 13:09:39 duke Exp $
7 */
10 * include SimpleTest files
11 */
12 require_once(dirname(__FILE__) . '/tag.php');
13 require_once(dirname(__FILE__) . '/encoding.php');
14 require_once(dirname(__FILE__) . '/selector.php');
15 /**#@-*/
Variables.php (https://github.com/jtai/zf2.git) PHP · 337 lines
Boolean.php (https://github.com/MontmereLimited/ZendFramework-v1.git) PHP · 375 lines
53 self::EMPTY_ARRAY => 'array',
54 self::NULL => 'null',
55 self::PHP => 'php',
56 self::FALSE_STRING => 'false',
57 self::YES => 'yes',
156 if (!is_int($type) || ($type < 0) || ($type > self::ALL)) {
157 // // // // // // // // // // require_once 'Zend/Filter/Exception.php';
158 throw new Zend_Filter_Exception('Unknown type');
159 }
367 if (!empty($str)) {
368 foreach($str as $no) {
369 if (($no == $value) || (strtolower($no) == strtolower($value))) {
370 return $return;
371 }
SimpleHeaderSet.php (https://bitbucket.org/amitholkar/zenfile-18-05.git) PHP · 387 lines
1 <?php
3 /*
141 public function has($name, $index = 0)
142 {
143 $lowerName = strtolower($name);
145 return array_key_exists($lowerName, $this->_headers) && array_key_exists($index, $this->_headers[$lowerName]);
177 {
178 if ($this->has($name, $index)) {
179 $lowerName = strtolower($name);
181 return $this->_headers[$lowerName][$index];
201 }
203 $lowerName = strtolower($name);
204 if (!array_key_exists($lowerName, $this->_headers)) {
205 return array();
BuilderConfiguration.php (https://github.com/ad2joe/php-framework-benchmarks.git) PHP · 396 lines
1 <?php
3 namespace Symfony\Components\DependencyInjection;
139 $this->parameters = array();
140 foreach ($parameters as $key => $value) {
141 $this->parameters[strtolower($key)] = $value;
142 }
178 public function hasParameter($name)
179 {
180 return array_key_exists(strtolower($name), $this->parameters);
181 }
196 }
198 return $this->parameters[strtolower($name)];
199 }
HTTPConnection.php (https://github.com/silasrm/Correios.git) PHP · 430 lines
1 <?php
2 /**
3 * @brief Protocolo HTTP
7 */
9 require_once 'Correios/Http/HTTPAuthenticator.php';
10 require_once 'Correios/Http/HTTPRequestMethod.php';
11 require_once 'Correios/Http/CURL.php';
13 /**
98 self::$userAgent = sprintf( 'Mozilla/4.0 (compatible; %s; PHP/%s; %s %s; %s)' , PHP_SAPI , PHP_VERSION , $uname[ 'sysname' ] , $uname[ 'machine' ] , $locale );
99 } else {
100 self::$userAgent = sprintf( 'Mozilla/4.0 (compatible; %s; PHP/%s; %s; %s)' , PHP_SAPI , PHP_VERSION , PHP_OS , $locale );
101 }
102 }
XMLDBIndex.class.php (https://github.com/jarednipper/HSU-common-code.git) PHP · 264 lines
1 <?php // $Id: XMLDBIndex.class.php,v 1.9 2007/10/10 05:25:14 nicolasconnault Exp $
3 ///////////////////////////////////////////////////////////////////////////
103 if (isset($xmlarr['@']['UNIQUE'])) {
104 $unique = strtolower(trim($xmlarr['@']['UNIQUE']));
105 if ($unique == 'true') {
106 $this->unique = true;
120 if (isset($xmlarr['@']['FIELDS'])) {
121 $fields = strtolower(trim($xmlarr['@']['FIELDS']));
122 if ($fields) {
123 $fieldsarr = explode(',',$fields);
221 /**
222 * Returns the PHP code needed to define one XMLDBIndex
223 */
224 function getPHP() {
Rsa.php (https://github.com/MarcelloDuarte/zf2.git) PHP · 306 lines
1 <?php
2 /**
3 * Zend Framework
196 $publicKey = null;
197 $resource = openssl_pkey_new($config);
198 // above fails on PHP 5.3
200 openssl_pkey_export($resource, $private, $passPhrase);
245 public function setHashAlgorithm($name)
246 {
247 switch (strtolower($name)) {
248 case 'md2':
249 $this->_hashAlgorithm = OPENSSL_ALGO_MD2;
ElggMenuItem.php (https://github.com/wangaiying/elgg4ysu.git) PHP · 568 lines
ViewModel.class.php (https://github.com/dzx0315/509.git) PHP · 285 lines
1 <?php
2 // +----------------------------------------------------------------------
3 // | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
4 // +----------------------------------------------------------------------
5 // | Copyright (c) 2010 http://thinkphp.cn All rights reserved.
6 // +----------------------------------------------------------------------
7 // | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
13 /**
14 +------------------------------------------------------------------------------
15 * ThinkPHP 视图模型类
16 +------------------------------------------------------------------------------
17 * @category Think
254 $array = array();
255 foreach ($fields as $key=>$field){
256 if(strpos($field,'(') || strpos(strtolower($field),' as ')){
257 // 使用了函数或者别名
258 $array[] = $field;
features.php (https://bitbucket.org/ericsagnes/ezpublish-multisite.git) PHP · 365 lines
1 <?php
2 /**
3 * File containing the ezcBaseFeatures class.
14 * Example:
15 * <code>
16 * <?php
17 * echo "supports uid: " . ezcBaseFeatures::supportsUserId() . "\n";
18 * echo "supports symlink: " . ezcBaseFeatures::supportsSymLink() . "\n";
170 return extension_loaded( $extension );
171 }
172 return extension_loaded( $extension ) && version_compare( phpversion( $extension ), $version, ">=" ) ;
173 }
218 /**
219 * Returns the operating system on which PHP is running.
220 *
221 * This method returns a sanitized form of the OS name, example
User_agent.php (https://github.com/rodrigowebe/FUEL-CMS.git) PHP · 541 lines
1 <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
2 /**
3 * CodeIgniter
4 *
5 * An open source application development framework for PHP 5.1.6 or newer
6 *
7 * @package CodeIgniter
234 foreach ($this->mobiles as $key => $val)
235 {
236 if (FALSE !== (strpos(strtolower($this->agent), $key)))
237 {
238 $this->is_mobile = TRUE;
257 if ((count($this->languages) == 0) AND isset($_SERVER['HTTP_ACCEPT_LANGUAGE']) AND $_SERVER['HTTP_ACCEPT_LANGUAGE'] != '')
258 {
259 $languages = preg_replace('/(;q=[0-9\.]+)/i', '', strtolower(trim($_SERVER['HTTP_ACCEPT_LANGUAGE'])));
261 $this->languages = explode(',', $languages);
Cookie.php (https://bitbucket.org/larryg/powerhut.git) PHP · 324 lines
1 <?php
3 /*
156 $part = trim($part);
158 if ('secure' === strtolower($part)) {
159 // Ignore the secure flag if the original URI is not given or is not HTTPS
160 if (!$url || !isset($urlParts['scheme']) || 'https' != $urlParts['scheme']) {
167 }
169 if ('httponly' === strtolower($part)) {
170 $values['httponly'] = true;
175 if (2 === count($elements = explode('=', $part, 2))) {
176 if ('expires' === strtolower($elements[0])) {
177 $elements[1] = self::parseDate($elements[1]);
178 }
Itunes.php (https://github.com/MontmereLimited/ZendFramework-v1.git) PHP · 288 lines
1 <?php
3 /**
18 * @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
19 * @license http://framework.zend.com/license/new-bsd New BSD License
20 * @version $Id: Itunes.php 23775 2011-03-01 17:25:24Z ralph $
21 */
67 * @see Zend_Feed_Builder_Exception
68 */
69 // // // // // // // // // // require_once 'Zend/Feed/Builder/Exception.php';
70 throw new Zend_Feed_Builder_Exception("you have to set at least one itunes category");
71 }
74 * @see Zend_Feed_Builder_Exception
75 */
76 // // // // // // // // // // require_once 'Zend/Feed/Builder/Exception.php';
77 throw new Zend_Feed_Builder_Exception("you have to set at most three itunes categories");
78 }
User_agent.php (https://github.com/usagi-project/mynets1.git) PHP · 500 lines
1 <?php if (!defined('BASEPATH')) exit('No direct script access allowed');
2 /**
3 * CodeIgniter
4 *
5 * An open source application development framework for PHP 4.3.2 or newer
6 *
7 * @package CodeIgniter
234 foreach ($this->mobiles as $key => $val)
235 {
236 if (FALSE !== (strpos(strtolower($this->agent), $key)))
237 {
238 $this->is_mobile = TRUE;
257 if ((count($this->languages) == 0) AND isset($_SERVER['HTTP_ACCEPT_LANGUAGE']) AND $_SERVER['HTTP_ACCEPT_LANGUAGE'] != '')
258 {
259 $languages = preg_replace('/(;q=[0-9\.]+)/i', '', strtolower(trim($_SERVER['HTTP_ACCEPT_LANGUAGE'])));
261 $this->languages = explode(',', $languages);
user_model.old.php (https://github.com/mkhairul/Presta.git) PHP · 307 lines
extprofile_mb.h (https://github.com/tmjnaid/hiphop-php.git) C Header · 307 lines
1 /*
2 +----------------------------------------------------------------------+
3 | HipHop for PHP |
4 +----------------------------------------------------------------------+
5 | Copyright (c) 2010 Facebook, Inc. (http://www.facebook.com) |
6 | Copyright (c) 1997-2010 The PHP Group |
7 +----------------------------------------------------------------------+
8 | This source file is subject to version 3.01 of the PHP license, |
9 | that is bundled with this package in the file LICENSE, and is |
10 | available through the world-wide-web at the following url: |
11 | http://www.php.net/license/3_01.txt |
12 | If you did not receive a copy of the PHP license and are unable to |
13 | obtain it through the world-wide-web, please send a note to |
14 | license@php.net so we can mail you a copy immediately. |
15 +----------------------------------------------------------------------+
16 */
NameContext.php (https://gitlab.com/madwanz64/laravel) PHP · 285 lines
ResponseHeader.php (https://github.com/Shreef/zf2.git) PHP · 395 lines
1 <?php
2 /**
3 * Zend Framework
15 * @category Zend
16 * @package Zend_Test
17 * @subpackage PHPUnit
18 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
19 * @license http://framework.zend.com/license/new-bsd New BSD License
23 * @namespace
24 */
25 namespace Zend\Test\PHPUnit\Constraint;
26 use Zend\Controller\Response;
28 /**
29 * Response header PHPUnit Constraint
30 *
31 * @uses PHPUnit_Framework_Constraint
persistent_object_id_property.php (https://github.com/F5/zetacomponents.git) PHP · 253 lines
1 <?php
2 /**
3 * File containing the ezcPersistentObjectIdProperty class.
27 * Defines a persistent object id field.
28 *
29 * The column should be of type int both in PHP and in the database, usually.
30 * If you want to use a string ID, you need to use the {@link
31 * ezcPersistentManualGenerator} and set the ID property of the affected object
43 * value.
44 * @property string $propertyName The name of the PersistentObject property
45 * that holds the value in the PHP object.
46 * @property int $propertyType The type of the PHP property. See class
47 * constants ezcPersistentObjectProperty::PHP_TYPE_*.
48 * @property int $visibility The visibility of the property. This property is deprecated!
49 * @property ezcPersistentGeneratorDefinition $generator
Message.php (https://github.com/Exercise/zf2.git) PHP · 283 lines
Xliff.php (https://github.com/Exercise/zf2.git) PHP · 230 lines
1 <?php
2 /**
3 * Zend Framework
109 $this->_tcontent .= ">";
110 } else {
111 switch(strtolower($name)) {
112 case 'file':
113 $this->_source = $attrib['source-language'];
156 $this->_tcontent .= "</".$name.">";
157 } else {
158 switch (strtolower($name)) {
159 case 'trans-unit':
160 $this->_transunit = null;
Abstract.php (https://bitbucket.org/a_parkhomenko/magento-tcpdf.git) PHP · 305 lines
1 <?php
2 /**
3 * Magento
8 * that is bundled with this package in the file LICENSE.txt.
9 * It is also available through the world-wide-web at this URL:
10 * http://opensource.org/licenses/osl-3.0.php
11 * If you did not receive a copy of the license and are unable to
12 * obtain it through the world-wide-web, please send an email
22 * @package Mage_Sales
23 * @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25 */
265 if (isset($options['attributes_info'][$i]['label']) &&
266 isset($options['attributes_info'][$i]['value'])) {
267 $label = strtolower($options['attributes_info'][$i]['label']);
268 $value = $options['attributes_info'][$i]['value'];
Boolean.php (https://bitbucket.org/gencer/zf2.git) PHP · 297 lines
1 <?php
2 /**
3 * Zend Framework (http://framework.zend.com/)
22 const TYPE_EMPTY_ARRAY = 32;
23 const TYPE_NULL = 64;
24 const TYPE_PHP = 127;
25 const TYPE_FALSE_STRING = 128;
26 const TYPE_LOCALIZED = 256;
38 self::TYPE_EMPTY_ARRAY => 'array',
39 self::TYPE_NULL => 'null',
40 self::TYPE_PHP => 'php',
41 self::TYPE_FALSE_STRING => 'false',
42 self::TYPE_LOCALIZED => 'localized',
48 */
49 protected $options = array(
50 'type' => self::TYPE_PHP,
51 'casting' => true,
52 'translations' => array(),
form.php (https://github.com/kennethjiang/Wolke.git) PHP · 351 lines
1 <?php
2 /**
3 * Base include file for SimpleTest.
4 * @package SimpleTest
5 * @subpackage WebTester
6 * @version $Id: form.php,v 1.41 2007/07/16 22:28:39 lastcraft Exp $
7 */
10 * include SimpleTest files
11 */
12 require_once(dirname(__FILE__) . '/tag.php');
13 require_once(dirname(__FILE__) . '/encoding.php');
14 require_once(dirname(__FILE__) . '/selector.php');
15 /**#@-*/
Model.class.php (https://github.com/dzx0315/509.git) PHP · 295 lines
1 <?php
2 // +----------------------------------------------------------------------
3 // | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
4 // +----------------------------------------------------------------------
5 // | Copyright (c) 2010 http://thinkphp.cn All rights reserved.
6 // +----------------------------------------------------------------------
7 // | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
13 /**
14 +------------------------------------------------------------------------------
15 * ThinkPHP 简洁模式Model模型类
16 * 只支持原生SQL操作 支持多数据库连接和切换
17 +------------------------------------------------------------------------------
157 $tableName = $this->dbName.'.'.$tableName;
158 }
159 $this->trueTableName = strtolower($tableName);
160 }
161 return $this->trueTableName;
Account.php (https://github.com/fan3750060/wpcore.git) PHP · 387 lines
SocketProgressBar.php (https://github.com/GunioRobot/diggin.git) PHP · 232 lines
1 <?php
3 // require_once 'Zend/Http/Client/Adapter/Socket.php';
20 private function getProgressBar()
21 {
22 if (PHP_SAPI != 'cli') throw new \RuntimeException();
24 if (!$this->_progressBar) {
25 // require_once 'Zend/ProgressBar/Adapter/Console.php';
26 // require_once 'Zend/ProgressBar.php';
80 if (isset($headers['transfer-encoding'])) {
82 if (strtolower($headers['transfer-encoding']) == 'chunked') {
84 do {
class-mb-include-exclude.php (https://gitlab.com/code26/selah) PHP · 379 lines
1 <?php
2 /**
3 * Control the include, exclude condition for meta boxes
245 protected static function check_user_role( $roles ) {
246 $user = wp_get_current_user();
247 $roles = array_map( 'strtolower', self::csv_to_array( $roles ) );
248 $roles = array_intersect( $user->roles, $roles );
249 return ! empty( $roles );
273 * This is required for MB User Meta extension.
274 */
275 if ( isset( $GLOBALS['pagenow'] ) && 'user-edit.php' === $GLOBALS['pagenow'] ) {
276 // If edit other's profile, check edited user.
277 $user_id = intval( $_REQUEST['user_id'] );
278 $user = get_userdata( $user_id );
280 $roles = array_map( 'strtolower', self::csv_to_array( $roles ) );
281 $roles = array_intersect( $user->roles, $roles );
FormRow.php (https://bitbucket.org/saifshuvo/zf2.git) PHP · 393 lines
1 <?php
2 /**
3 * Zend Framework (http://framework.zend.com/)
272 public function setLabelPosition($labelPosition)
273 {
274 $labelPosition = strtolower($labelPosition);
275 if (!in_array($labelPosition, array(self::LABEL_APPEND, self::LABEL_PREPEND))) {
276 throw new Exception\InvalidArgumentException(sprintf(
Cloud.php (https://gitlab.com/LisovyiEvhenii/ismextensions) PHP · 410 lines
1 <?php
2 /**
3 * Zend Framework
24 * @see Zend_Tag_Item
25 */
26 #require_once 'Zend/Tag/Item.php';
28 /**
116 foreach ($options as $key => $value) {
117 if (in_array(strtolower($key), $this->_skipOptions)) {
118 continue;
119 }
151 $itemList[] = new Zend_Tag_Item($tag);
152 } else {
153 #require_once 'Zend/Tag/Cloud/Exception.php';
154 throw new Zend_Tag_Cloud_Exception('Tag must be an instance of Zend_Tag_Taggable or an array');
155 }
Renderer.php (https://github.com/allinside/Yii-CMS.git) PHP · 237 lines
1 <?php
2 /**
3 * A class to render Diffs in different formats.
6 * this class be customized via inheritance, to obtain fancier outputs.
7 *
8 * $Horde: framework/Text_Diff/Diff/Renderer.php,v 1.5.10.10 2008/01/04 10:37:27 jan Exp $
9 *
10 * Copyright 2004-2008 The Horde Project (http://www.horde.org/)
11 *
12 * See the enclosed file COPYING for license information (LGPL). If you did
13 * not receive this file, see http://opensource.org/licenses/lgpl-license.php.
14 *
15 * @package Text_Diff
150 foreach ($edits as $edit) {
151 switch (strtolower(get_class($edit))) {
152 case 'text_diff_op_copy':
153 $output .= $this->_context($edit->orig);
TabHeader.php (https://github.com/timstephenson/NatureBridge.git) PHP · 186 lines
TableEntityQuery.php (https://bitbucket.org/khuongduybui/openfisma.git) PHP · 350 lines
currencies.php (https://bitbucket.org/nathanphan/joomla_zjdonation_custom.git) PHP · 284 lines
1 <?php
2 /**
3 * @version $Id$
125 $filter_state = $mainframe->getUserStateFromRequest($option . '.currencies.filter_state', 'filter_state', '', 'word');
126 $search = $mainframe->getUserStateFromRequest($option . '.currencies.search', 'search', '', 'string');
127 $search = JString::strtolower($search);
129 $where = array();
profiler.php (https://bitbucket.org/mslepko/default-kohana.git) PHP · 385 lines
class.locale.php (https://github.com/DragonFire/wowcs.git) PHP · 251 lines
1 <?php
3 /**
59 return false;
60 }
61 if(!@include(WOW_DIRECTORY . '/includes/locales/locale_' . self::$locale_name . '.php')) {
62 @include(WOW_DIRECTORY . '/includes/locales/locale_' . WoWConfig::$DefaultLocale . '.php');
63 }
64 if(!@include(WOW_DIRECTORY . '/includes/locales/menu_' . self::$locale_name . '.php')) {
65 @include(WOW_DIRECTORY . '/includes/locales/menu_' . WoWConfig::$DefaultLocale . '.php');
126 public static function IsLocale($locale_str, $locale_id) {
127 switch(strtolower($locale_str)) {
128 case 'de':
129 case 'dede':
ResourceTypeConfig.php (https://github.com/muculus/pencms.git) PHP · 357 lines
1 <?php
2 /*
3 * CKFinder
123 if (is_array($resourceTypeNode["allowedExtensions"])) {
124 foreach ($resourceTypeNode["allowedExtensions"] as $extension) {
125 $this->_allowedExtensions[] = strtolower(trim((string)$e));
126 }
127 }
131 $extensions = explode(",", $resourceTypeNode["allowedExtensions"]);
132 foreach ($extensions as $e) {
133 $this->_allowedExtensions[] = strtolower(trim($e));
134 }
135 }
142 foreach ($resourceTypeNode["deniedExtensions"] as $extension) {
143 $this->_deniedExtensions[] = strtolower(trim((string)$e));
144 }
145 }
RouteBroker.php (https://github.com/kiranatama/sagalaya.git) PHP · 252 lines
1 <?php
2 /**
3 * Zend Framework
81 foreach ($options as $key => $value) {
82 switch (strtolower($key)) {
83 case 'class_loader':
84 if (is_string($value)) {
110 foreach ($value as $k => $v) {
111 switch (strtolower($k)) {
112 case 'class':
113 $class = $v;
147 public function load($route, array $options = array())
148 {
149 $routeName = strtolower($route);
151 if (class_exists($route)) {
tutorialMode.php (https://gitlab.com/Skull3x/TutorialMode) PHP · 390 lines
1 <?php
3 namespace ifteam\TutorialMode;
43 }
44 public function onChat(PlayerChatEvent $event) {
45 if (isset ( $this->continue [strtolower ( $event->getPlayer ()->getName () )] )) {
46 $event->setCancelled ();
47 $this->message ( $event->getPlayer (), $this->get ( "please-read-the-sign" ) );
53 if ($event->getLine ( 0 ) != $this->get ( "tutorial" ))
54 return;
55 switch (strtolower ( $event->getLine ( 1 ) )) {
56 case $this->get ( "start" ) :
57 $event->setLine ( 0, TextFormat::WHITE . $this->get ( "sign-tutorial-start1" ) );
115 if (! isset ( $this->db ["wild"] ))
116 return;
117 if (! isset ( $this->db ["finished"] [strtolower ( $event->getPlayer ()->getName () )] )) {
118 $this->continue [strtolower ( $event->getPlayer ()->getName () )] = [
Builder.php (https://gitlab.com/jjpa2018/dashboard) PHP · 433 lines
1 <?php
3 namespace Illuminate\Database\Schema;
147 {
148 return in_array(
149 strtolower($column), array_map('strtolower', $this->getColumnListing($table))
150 );
151 }
160 public function hasColumns($table, array $columns)
161 {
162 $tableColumns = array_map('strtolower', $this->getColumnListing($table));
164 foreach ($columns as $column) {
165 if (! in_array(strtolower($column), $tableColumns)) {
166 return false;
167 }
ReflectionExtractor.php (https://github.com/deviantintegral/symfony.git) PHP · 347 lines
1 <?php
3 /*
231 private function extractFromReflectionType(\ReflectionType $reflectionType): Type
232 {
233 $phpTypeOrClass = $reflectionType->getName();
234 $nullable = $reflectionType->allowsNull();
236 if (Type::BUILTIN_TYPE_ARRAY === $phpTypeOrClass) {
237 $type = new Type(Type::BUILTIN_TYPE_ARRAY, $nullable, null, true);
238 } elseif ('void' === $phpTypeOrClass) {
334 foreach ($reflectionProperties as $reflectionProperty) {
335 foreach ((array) Inflector::singularize($reflectionProperty->name) as $name) {
336 if (strtolower($name) === strtolower($matches[2])) {
337 return $reflectionProperty->name;
338 }
ezdatetype.php (https://github.com/GunioRobot/ezpublish.git) PHP · 380 lines
1 <?php
2 /**
3 * File containing the eZDateType class.
11 /*!
12 \class eZDateType ezdatetype.php
13 \ingroup eZDatatype
14 \brief Stores a date value
315 {
316 $defaultNode = $attributeParametersNode->getElementsByTagName( 'default-value' )->item( 0 );
317 $defaultValue = strtolower( $defaultNode->getAttribute( 'type' ) );
318 switch ( $defaultValue )
319 {
Font.php (https://gitlab.com/daniruizcamacho/pfcascensores) PHP · 472 lines
1 <?php
3 namespace Intervention\Image;
355 $box = $this->getBoxSize();
357 $align = is_null($this->align) ? 'left' : strtolower($this->align);
358 $valign = is_null($this->valign) ? 'bottom' : strtolower($this->valign);
440 // x-position corrections for horizontal alignment
441 switch (strtolower($this->align)) {
442 case 'center':
443 $posx = ceil($posx - ($width / 2));
451 // y-position corrections for vertical alignment
452 switch (strtolower($this->valign)) {
453 case 'center':
454 case 'middle':
Route.php (https://gitlab.com/ealexis.t/trends) PHP · 588 lines
class_writer.php (https://github.com/F5/zetacomponents.git) PHP · 290 lines
1 <?php
2 /**
3 * File containing the ezcDbSchemaPersistentClassWriter class.
27 /**
28 * This handler creates PHP classes to be used with PersistentObject from a
29 * DatabaseSchema.
30 *
176 /**
177 * Writes a PHP class.
178 * This method writes a PHP class from a table definition.
222 private function openFile( $dir, $name )
223 {
224 $filename = $dir . DIRECTORY_SEPARATOR . strtolower( $this->prefix ) . strtolower( $name ) . '.php';
225 // We do not want to overwrite files
226 if ( file_exists( $filename ) && ( $this->overwrite === false || is_writable( $filename ) === false ) )
persistent_object_property.php (https://github.com/F5/zetacomponents.git) PHP · 277 lines
40 * the PHP object.
41 * @property int $propertyType
42 * The type of the PHP property. See class constants PHP_TYPE_*.
43 * @property ezcPersistentPropertyConverter|null $converter
44 * A converter object that will automatically perform converters on
56 {
58 const PHP_TYPE_STRING = 1;
59 const PHP_TYPE_INT = 2;
60 const PHP_TYPE_FLOAT = 3;
61 const PHP_TYPE_ARRAY = 4;
62 const PHP_TYPE_OBJECT = 5;
63 const PHP_TYPE_BOOL = 6;
65 /**
FrontTest.php (https://github.com/jorgenils/zend-framework.git) PHP · 354 lines
2 require_once 'Zend/Controller/Front.php';
3 require_once 'PHPUnit/Framework/TestCase.php';
5 require_once 'Zend/Controller/Request/Http.php';
6 require_once 'Zend/Controller/Response/Cli.php';
7 require_once 'Zend/Controller/Dispatcher.php';
8 require_once 'Zend/Controller/Router.php';
10 class Zend_Controller_FrontTest extends PHPUnit_Framework_TestCase
245 public function testDispatch7()
246 {
247 if ('cli' == strtolower(php_sapi_name())) {
248 $this->markTestSkipped('Issues with $_GET in CLI interface prevents test from passing');
249 }
api.php (https://gitlab.com/x33n/SellCloudMusic) PHP · 284 lines
1 <?php
3 require_once('kernel/db/class.dbcommon.php');
4 require_once('kernel/class.form.php');
5 require_once('kernel/class.elist.php');
6 require_once('src/ent.global.php');
7 require_once('src/ent.order.php');
8 require_once('src/ent.list.php');
9 include_once('./cfg/configuration.php');
18 function display($entity) {
20 switch (strtolower($_GET['output'])) {
22 case 'json':
TSqlMapStatement.php (https://bitbucket.org/volatileeight/prado.git) PHP · 444 lines
1 <?php
2 /**
3 * TSqlMapStatement, TSqlMapInsert, TSqlMapUpdate, TSqlMapDelete,
88 * If a {@link ParameterMap setParameterMap()} property is not specified,
89 * you may specify a ParameterClass instead and use inline parameters.
90 * The value of the parameterClass attribute can be any existing PHP class name.
91 * @param string parameter class name.
92 */
125 * If a {@link ResultMap setResultMap()} is not specified, you may specify a
126 * ResultClass instead. The value of the ResultClass property can be the
127 * name of a PHP class or primitives like integer, string, or array. The
128 * class specified will be automatically mapped to the columns in the
129 * result, based on the result metadata.
185 /**
186 * @return string name of a PHP class that implements ArrayAccess.
187 */
188 public function getListClass()
Url.class.php (https://github.com/stvvt/ef.git) PHP · 162 lines
Attribute.php (https://bitbucket.org/saifshuvo/zf2.git) PHP · 372 lines
1 <?php
2 /**
3 * Zend Framework (http://framework.zend.com/)
34 public static function setAttribute(array &$data, $attribName, $value, $append = false)
35 {
36 $attribName = strtolower($attribName);
37 $valArray = array();
38 if (is_array($value) || ($value instanceof \Traversable)) {
70 public static function getAttribute(array $data, $attribName, $index = null)
71 {
72 $attribName = strtolower($attribName);
73 if ($index === null) {
74 if (!isset($data[$attribName])) {
103 public static function attributeHasValue(array &$data, $attribName, $value)
104 {
105 $attribName = strtolower($attribName);
106 if (!isset($data[$attribName])) {
107 return false;
User_agent.php (https://gitlab.com/RikaPM/manik) PHP · 550 lines
1 <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
2 /**
3 * CodeIgniter
4 *
5 * An open source application development framework for PHP 5.1.6 or newer
6 *
7 * @package CodeIgniter
86 private function _load_agent_file()
87 {
88 if (defined('ENVIRONMENT') AND is_file(APPPATH.'config/'.ENVIRONMENT.'/user_agents.php'))
89 {
90 include(APPPATH.'config/'.ENVIRONMENT.'/user_agents.php');
91 }
92 elseif (is_file(APPPATH.'config/user_agents.php'))
93 {
94 include(APPPATH.'config/user_agents.php');
profiles.php (https://github.com/wamplo/red.git) PHP · 314 lines
1 <?php
2 /**
3 * CORE NODE
71 'src' =>
72 array(
73 'html' => $this->a->getView('netcoid','profiles/posts.php',$postdata),
74 'id' => 'rr-2'
75 ),
122 'src' =>
123 array(
124 'html' => $this->a->getView('netcoid','profiles/posts.php',$offerdata),
125 'id' => 'rr-2'
126 ),
173 'src' =>
174 array(
175 'html' => $this->a->getView('netcoid','profiles/posts.php',$offerdata),
176 'id' => 'rr-2'
177 ),
AnalysisTest.php (https://github.com/leerbag/zf2.git) PHP · 382 lines
1 <?php
2 /**
3 * Zend Framework
37 /**
38 * PHPUnit test case
39 */
47 * @group Zend_Search_Lucene
48 */
49 class AnalysisTest extends \PHPUnit_Framework_TestCase
50 {
51 public function testAnalyzer()
238 return;
239 }
240 if (!function_exists('mb_strtolower')) {
241 // mbstring extension is disabled
242 return;
feed.php (https://github.com/MaBelleEcole/Main.git) PHP · 502 lines
1 <?php
2 /**
3 * @version $Id: feed.php 14401 2010-01-26 14:10:00Z louis $
5 * @subpackage Document
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
9 * to the GNU General Public License, and as distributed it includes or
10 * is derivative of works licensed under the GNU General Public License or
11 * other free or open source software licenses.
12 * See COPYRIGHT.php for copyright notices and details.
13 */
210 // set filename for rss feeds
211 $file = strtolower( str_replace( '.', '', $type ) );
212 $file = $cache_path.DS.$file.'_'.$option.'.xml';
feed.php (https://github.com/shafiqissani/EmarketingMena.git) PHP · 502 lines
1 <?php
2 /**
3 * @version $Id: feed.php 10707 2008-08-21 09:52:47Z eddieajau $
5 * @subpackage Document
6 * @copyright Copyright (C) 2005 - 2008 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
9 * to the GNU General Public License, and as distributed it includes or
10 * is derivative of works licensed under the GNU General Public License or
11 * other free or open source software licenses.
12 * See COPYRIGHT.php for copyright notices and details.
13 */
210 // set filename for rss feeds
211 $file = strtolower( str_replace( '.', '', $type ) );
212 $file = $cache_path.DS.$file.'_'.$option.'.xml';
Client.php (https://bitbucket.org/khuongduybui/openfisma.git) PHP · 258 lines
Cloud.php (https://bitbucket.org/DragonBe/zfform.git) PHP · 410 lines
1 <?php
2 /**
3 * Zend Framework
24 * @see Zend_Tag_Item
25 */
26 require_once 'Zend/Tag/Item.php';
28 /**
116 foreach ($options as $key => $value) {
117 if (in_array(strtolower($key), $this->_skipOptions)) {
118 continue;
119 }
151 $itemList[] = new Zend_Tag_Item($tag);
152 } else {
153 require_once 'Zend/Tag/Cloud/Exception.php';
154 throw new Zend_Tag_Cloud_Exception('Tag must be an instance of Zend_Tag_Taggable or an array');
155 }
XmlTm.php (https://github.com/ftaiolivista/Zend-Framework-Namespaced-.git) PHP · 144 lines
1 <?php
2 /**
3 * Zend Framework
16 * @package Zend_Translate
17 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
18 * @version $Id: XmlTm.php 20096 2010-01-06 02:05:09Z bkarwin $
19 * @license http://framework.zend.com/license/new-bsd New BSD License
20 */
28 /** Zend_Locale */
29 require_once 'Zend/Locale.php';
31 /** Zend_Translate_Adapter */
32 require_once 'Zend/Translate/Adapter.php';
Message.php (https://gitlab.com/ealexis.t/trends) PHP · 291 lines
sfWidget.class.php (https://github.com/openpne/OpenPNE3.git) PHP · 411 lines
RestClient.php (https://github.com/leerbag/zf2.git) PHP · 259 lines
ResponseHeader.php (https://bitbucket.org/haichau59/manga.git) PHP · 400 lines
124 if (!in_array($assertType, $this->_assertTypes)) {
125 //require_once 'Zend/Test/PHPUnit/Constraint/Exception.php';
126 throw new Zend_Test_PHPUnit_Constraint_Exception(sprintf('Invalid assertion type "%s" provided to %s constraint', $assertType, __CLASS__));
164 case self::ASSERT_HEADER_REGEX:
165 if (4 > $argc) {
166 //require_once 'Zend/Test/PHPUnit/Constraint/Exception.php';
167 throw new Zend_Test_PHPUnit_Constraint_Exception('Both a header name and content to match are required for ' . __FUNCTION__);
173 : $this->_headerRegex($response, $header, $match);
174 default:
175 //require_once 'Zend/Test/PHPUnit/Constraint/Exception.php';
176 throw new Zend_Test_PHPUnit_Constraint_Exception('Invalid assertion type ' . __FUNCTION__);
190 public function fail($other, $description, $not = false)
191 {
192 //require_once 'Zend/Test/PHPUnit/Constraint/Exception.php';
193 switch ($this->_assertType) {
194 case self::ASSERT_RESPONSE_CODE:
AbstractDispatcher.php (https://github.com/leerbag/zf2.git) PHP · 463 lines
1 <?php
2 /**
3 * Zend Framework
133 {
134 $formatted = $this->_formatName($unformatted, true);
135 return strtolower(substr($formatted, 0, 1)) . substr($formatted, 1) . 'Action';
136 }
229 /**
230 * Formats a string from a URI into a PHP-friendly name.
231 *
232 * By default, replaces words separated by the word separator character(s)
251 foreach ($segments as $key => $segment) {
252 $segment = str_replace($this->getWordDelimiter(), ' ', strtolower($segment));
253 $segment = preg_replace('/[^a-z0-9 ]/', '', $segment);
254 $segments[$key] = str_replace(' ', '', ucwords($segment));
menu.php (https://gitlab.com/srueegger/1zu12bB) PHP · 251 lines
AnnotationClassLoader.php (https://github.com/flubbers/cloudFutbol.git) PHP · 214 lines
1 <?php
3 /*
22 /**
23 * AnnotationClassLoader loads routing information from a PHP class and its methods.
24 *
25 * You need to define an implementation for the getRouteDefaults() method. Most of the
26 * time, this method should define some PHP callable to be called for the route
27 * (a controller in MVC speak).
28 *
202 protected function getDefaultRouteName(\ReflectionClass $class, \ReflectionMethod $method)
203 {
204 $name = strtolower(str_replace('\\', '_', $class->getName()).'_'.$method->getName());
205 if ($this->defaultRouteIndex > 0) {
206 $name .= '_'.$this->defaultRouteIndex;
Eager.php (https://github.com/ggunlugu/ornekler.git) PHP · 250 lines
1 <?php
2 /**
3 *
9 * @package Solar_Sql_Model
10 *
11 * @author Paul M. Jones <pmjones@solarphp.com>
12 *
13 * @license http://opensource.org/licenses/bsd-license.php BSD
14 *
15 * @version $Id: Eager.php 4416 2010-02-23 19:52:43Z pmjones $
16 *
17 */
50 public function merge($val)
51 {
52 $val = strtolower($val);
53 if (! $val) {
54 $this->_data['merge'] = null;
module.audio-video.nsv.php (https://github.com/robertleeplummerjr/bluebox.git) PHP · 224 lines
1 <?php
2 /////////////////////////////////////////////////////////////////
3 /// getID3() by James Heinrich <info@getid3.org> //
8 /////////////////////////////////////////////////////////////////
9 // //
10 // module.audio.nsv.php //
11 // module for analyzing Nullsoft NSV files //
12 // dependencies: NONE //
191 if (strstr($CommentPair, '='."\x01")) {
192 list($key, $value) = explode('='."\x01", $CommentPair, 2);
193 $ThisFileInfo['nsv']['comments'][strtolower($key)][] = trim(str_replace("\x01", '', $value));
194 }
195 }
BaseFcrepliq.php (https://github.com/cidesa/siga-universitario.git) PHP · 576 lines
1 <?php
253 {
254 $prefijo = substr($m,0,3);
255 $metodo = strtolower(substr($m,3));
256 if($prefijo=='get'){
257 if(isset($this->$metodo)) return $this->$metodo;
376 public function getByName($name, $type = BasePeer::TYPE_PHPNAME)
377 {
378 $pos = FcrepliqPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM);
419 public function toArray($keyType = BasePeer::TYPE_PHPNAME)
420 {
421 $keys = FcrepliqPeer::getFieldNames($keyType);
BaseNotStorageEntityModel.php (https://github.com/sergiygladkyy/OEF.git) PHP · 401 lines
TNumberFormat.php (https://bitbucket.org/volatileeight/prado.git) PHP · 249 lines
TDateFormat.php (https://bitbucket.org/volatileeight/prado.git) PHP · 253 lines
Column.php (https://github.com/vadimonus/moodle.git) PHP · 405 lines
23 * @package PHPExcel_Worksheet
24 * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel)
25 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
26 * @version ##VERSION##, ##DATE##
172 * @param PHPExcel_Worksheet_AutoFilter
173 * @return PHPExcel_Worksheet_AutoFilter_Column
174 */
175 public function setParent(PHPExcel_Worksheet_AutoFilter $pParent = null)
200 {
201 if (!in_array($pFilterType, self::$filterTypes)) {
202 throw new PHPExcel_Exception('Invalid filter type for column AutoFilter.');
203 }
333 * @param PHPExcel_Worksheet_AutoFilter_Column_Rule $pRule
334 * @param boolean $returnRule Flag indicating whether the rule object or the column object should be returned
335 * @return PHPExcel_Worksheet_AutoFilter_Column|PHPExcel_Worksheet_AutoFilter_Column_Rule
336 */
337 public function addRule(PHPExcel_Worksheet_AutoFilter_Column_Rule $pRule, $returnRule = true)
Comparator.php (https://gitlab.com/johanlindberg/irvato-crm) PHP · 119 lines
1 <?php
2 /************************************************************************
3 * This file is part of EspoCRM.
44 $column2DbTypeName = method_exists($column2->getType(), 'getDbTypeName') ? $column2->getType()->getDbTypeName() : $column2->getType()->getName();
46 if (strtolower($column1DbTypeName) != strtolower($column2DbTypeName)) {
47 $changedProperties[] = 'type';
48 }
modphpmailer.class.php (https://github.com/hatone/revolution.git) PHP · 251 lines
6 */
8 require_once MODX_CORE_PATH . 'model/modx/mail/modmail.class.php';
10 /**
20 * @param modX $modx A reference to the modX instance
21 * @param array $attributes An array of attributes for the instance
22 * @return modPHPMailer
23 */
24 function __construct(modX &$modx, array $attributes= array()) {
25 parent :: __construct($modx, $attributes);
26 require_once $modx->getOption('core_path') . 'model/modx/mail/phpmailer/class.phpmailer.php';
27 $this->_getMailer();
28 }
class.O_Image.php (https://github.com/janislankovskis/OwlSite.git) PHP · 298 lines
226 }
228 public static function GeneratePhpThumb($params)
229 {
230 /**
237 * uses phpThumb - http://phpthumb.sourceforge.net/
238 */
239 require_once( PATH . 'library/3rdpart/phpThumb/phpthumb.class.php');
241 $phpThumb = new phpThumb();
245 $phpThumb->setParameter('h', $params['height']);
246 if(isset($params['ar']) && $params['ar'] == false){
247 $phpThumb->setParameter('iar', '1');
248 }
249 if(isset($params['crop']) && $params['crop']){
276 }
278 require_once( PATH . 'library/3rdpart/phpThumb/phpthumb.class.php');
279 $phpThumb = new phpThumb();
SWL_Group.php (https://github.com/ChuguluGames/mediawiki-svn.git) PHP · 457 lines
1 <?php
3 /**
6 * @since 0.1
7 *
8 * @file SWL_Groups.php
9 * @ingroup SemanticWatchlist
10 *
123 $this->namespaces[] = $ns;
124 }
125 elseif ( $ns == '' || strtolower( $ns ) == 'main' ) {
126 $this->namespaces[] = 0;
127 }
128 else {
129 $ns = MWNamespace::getCanonicalIndex( strtolower( $ns ) );
131 if ( !is_null( $ns ) ) {
upload.php
(http://rorptm.googlecode.com/svn/trunk/)
PHP · 107 lines
✨ Summary
This PHP script is a file uploader for FCKeditor, a text editor for internet. It checks if the uploaded file meets certain criteria (e.g., valid type, allowed extension) and renames the file if another one with the same name already exists in the target directory. If successful, it sends a JavaScript notification to the parent window with the upload results.
This PHP script is a file uploader for FCKeditor, a text editor for internet. It checks if the uploaded file meets certain criteria (e.g., valid type, allowed extension) and renames the file if another one with the same name already exists in the target directory. If successful, it sends a JavaScript notification to the parent window with the upload results.
1 <?php
2 /*
3 * FCKeditor - The text editor for internet
5 *
6 * Licensed under the terms of the GNU Lesser General Public License:
7 * http://www.opensource.org/licenses/lgpl-license.php
8 *
9 * For further information visit:
12 * "Support Open Source software. What about a donation today?"
13 *
14 * File Name: upload.php
15 * This is the "File Uploader" for PHP.
33 // Check if this uploader has been enabled.
34 if ( !$Config['Enabled'] )
35 SendResults( '1', '', '', 'This file uploader is disabled. Please check the "editor/filemanager/upload/php/config.php" file' ) ;
37 // Check if the file has been correctly uploaded.
tests.php4
(https://swig.svn.sourceforge.net/svnroot/swig)
PHP · 228 lines
✨ Summary
This PHP code is a comprehensive class for validating and checking various aspects of PHP code, including classes, functions, variables, resources, and more. It provides methods to check for existence, type, equality, nullness, and resource status, as well as warning and failure messages. The class can be used to ensure the integrity and consistency of PHP code before execution.
This PHP code is a comprehensive class for validating and checking various aspects of PHP code, including classes, functions, variables, resources, and more. It provides methods to check for existence, type, equality, nullness, and resource status, as well as warning and failure messages. The class can be used to ensure the integrity and consistency of PHP code before execution.
1 <?php
3 // do we have true global vars or just GETSET functions?
105 function is_a($a,$b) {
106 if (is_object($a)) $a=strtolower(get_class($a));
107 if (is_object($b)) $a=strtolower(get_class($b));
110 while($c!=$b && $c) {
111 $parents[]=$c;
112 $c=strtolower(get_parent_class($c));
113 }
114 if ($c!=$b) return check::fail("Class $a does not inherit from class $b\nHierachy:\n %s\n",join("\n ",$parents));