100+ results results for 'php method_exists repo:bbelhyun/yii-bootstrap' (160 ms)
1<?php 2/** 17 * @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com) 18 * @version $Id: Standalone.php 11374 2008-09-12 17:06:22Z ralph $ 19 * @license http://framework.zend.com/license/new-bsd New BSD License 22/** Zend_View_Helper_Placeholder_Registry */ 23require_once 'Zend/View/Helper/Placeholder/Registry.php'; 24 24 25/** Zend_View_Helper_Abstract.php */ 26require_once 'Zend/View/Helper/Abstract.php'; 220 $container = $this->getContainer(); 221 if (method_exists($container, $method)) { 222 $return = call_user_func_array(array($container, $method), $args); 229 230 require_once 'Zend/View/Exception.php'; 231 throw new Zend_View_Exception('Method "' . $method . '" does not exist');Citation.php http://xerxes-portal.googlecode.com/svn/trunk/ | PHP | 666 lines
1<?php 2 9 * @copyright 2009 California State University 10 * @version $Id: Citation.php 1030 2010-01-05 18:42:09Z dwalker@calstate.edu $ 11 * @package Xerxes 107 108 if ( method_exists($xerxes, $method) ) 109 { 337 { 338 if ( method_exists($this, $name) ) 339 {mdl.messenger.php http://phpfor.googlecode.com/svn/trunk/ | PHP | 309 lines
1<?php 2/** 5 * @package 6 * @version $Id: mdl.messenger.php 1429 2008-04-08 05:22:50Z flaboy $ 7 * @copyright 2003-2007 ShopEx 11//adapted into plugin style by Alex 2008-3-14 12require_once('plugin.php'); 13 27 $this->_sender[$sender] = &$obj; 28 if(method_exists($obj,'getOptions')||method_exists($obj,'getoptions')) 29 $obj->config = $this->getOptions($sender,true); 29 $obj->config = $this->getOptions($sender,true); 30 if(method_exists($obj,'outgoingConfig')||method_exists($obj,'outgoingconfig')) 31 $obj->outgoingOptions = $this->outgoingConfig($sender,true); 39 if(!$obj->_isReady){ 40 if(method_exists($obj,'ready')) $obj->ready($obj->config); 41 if(method_exists($obj,'finish')){CommandCursor.php git://github.com/doctrine/mongodb.git | PHP | 260 lines
47 * 48 * @see http://php.net/manual/en/mongocommandcursor.batchsize.php 49 * @param integer $num 77 * 78 * @see http://php.net/manual/en/iterator.current.php 79 * @see http://php.net/manual/en/mongocommandcursor.current.php 89 * 90 * @see http://php.net/manual/en/mongocommandcursor.dead.php 91 * @return boolean 140 * 141 * @see http://php.net/manual/en/iterator.key.php 142 * @see http://php.net/manual/en/mongocommandcursor.key.php 152 * 153 * @see http://php.net/manual/en/iterator.next.php 154 * @see http://php.net/manual/en/mongocommandcursor.next.phpsparkpagecache.php https://code.google.com/p/sparkplug-framework/ | PHP | 398 lines
1<?php 2 53 54 if (!empty($cache_params['active']) && method_exists($this, 'loadCacher')) 55 {cache.php git://github.com/kohana/core.git | PHP | 503 lines
1<?php defined('SYSPATH') or die('No direct script access.'); 2/** 112 { 113 if (method_exists($this, $key)) 114 { 256 * 257 * // Alternatively, in PHP 5.3 use a closure 258 * $http_cache->cache_key_callback(function (Request $request) {AkActsAsList.php http://akelosframework.googlecode.com/svn/trunk/ | PHP | 411 lines
1<?php 2/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ 18 19require_once(AK_LIB_DIR.DS.'AkActiveRecord'.DS.'AkObserver.php'); 20 80 { 81 if(is_object($ActiveRecordInstance) && method_exists($ActiveRecordInstance,'actsLike')){ 82 $this->_ActiveRecordInstance =& $ActiveRecordInstance; 98 { 99 AK_PHP5 ? null : $listObject->list->setActiveRecordInstance(&$listObject); 100 }Adapter.php http://skeleton.googlecode.com/svn/trunk/ | PHP | 362 lines
1<?php 2/** 2/** 3 * Adapter.php 4 * 4 * 5 * @license http://www.opensource.org/licenses/bsd-license.php BSD 6 * @link http://skeletonframework.com/ 76 { 77 if (is_object($config) && method_exists($config, 'toArray')) { 78 $config = $config->toArray();login.php git://github.com/concrete5/concrete5.git | PHP | 435 lines
1<?php 2 85 $this->set('authType', $at); 86 if (!method_exists($at->controller, $method)) { 87 return $this->view();mssql.php git://github.com/phpbb/phpbb3.git | PHP | 441 lines
1<?php 2/** 4* @package dbal 5* @copyright (c) 2005 phpBB Group 6* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2 12*/ 13if (!defined('IN_PHPBB')) 14{ 17 18include_once($phpbb_root_path . 'includes/db/dbal.' . $phpEx); 19 35 36 $port_delimiter = (defined('PHP_OS') && substr(PHP_OS, 0, 3) === 'WIN') ? ',' : ':'; 37 $this->server = $sqlserver . (($port) ? $port_delimiter . $port : ''); 138 139 $this->query_result = ($cache_ttl && method_exists($cache, 'sql_load')) ? $cache->sql_load($query) : false; 140 $this->sql_add_num_queries($this->query_result);functions_report_admin.php http://torrentpier2.googlecode.com/svn/trunk/ | PHP | 569 lines
1<?php 2 68 if (!class_exists("report_module")) 69 include(INC_DIR . "report_module.php"); 70 80 { 81 if (!preg_match('#(.*)\.' . bb_preg_quote('php', '#') . '$#', $file, $matches)) 82 { 98 99 $lang_file = LANG_ROOT_DIR ."lang_{$bb_cfg['default_lang']}/report_hack/lang_$module_name.php"; 100 if (file_exists($lang_file)) 343 $report_module = report_modules('id', $module_id); 344 if (method_exists($report_module, 'sync')) 345 {FlexApi.php git://github.com/twilio/twilio-php.git | PHP | 134 lines
1<?php 2 59 $method = 'get' . \ucfirst($name); 60 if (\method_exists($this, $method)) { 61 return $this->$method(); 76 $method = 'context' . \ucfirst($name); 77 if (\method_exists($this, $method)) { 78 return \call_user_func_array([$this, $method], $arguments);Load.php http://skeleton.googlecode.com/svn/trunk/ | PHP | 297 lines
1<?php 2/** 2/** 3 * Load.php 4 * 4 * 5 * @license http://www.opensource.org/licenses/bsd-license.php BSD 6 * @link http://skeletonframework.com/ 49 protected $renderClasses = array( 50 'php' => 'A_Template_Include', 51 'xml' => 'A_Template_Include', 57 protected $renderClass = 'A_Template_Include'; 58 protected $renderExtension = 'php'; 59 protected $responseSet = false; 115 116 public function setRenderClass($name, $ext='php') 117 {Tester.php git://github.com/atk4/atk4.git | PHP | 364 lines
1<?php 2/** 115 try { 116 if (method_exists($test_obj, 'prepare_'.$m)) { 117 $input = $test_obj->{'prepare_'.$m}($vari, $method); 119 if (($test_obj instanceof AbstractObject && $test_obj->hasMethod('prepare')) 120 || method_exists($test_obj, 'prepare') 121 ) { 137 138 $test_func = method_exists($test_obj, 'test_'.$m) ? 139 'test_'.$m : 'test'; 238 // Input is a result of preparation function 239 if (method_exists($test_obj, 'prepare_'.$m)) { 240 $input = $test_obj->{'prepare_'.$m}($vari, $method); 242 if (($test_obj instanceof AbstractObject && $test_obj->hasMethod('prepare')) 243 || method_exists($test_obj, 'prepare') 244 ) {Widgets.php git://github.com/pyrocms/pyrocms.git | PHP | 497 lines
1<?php defined('BASEPATH') OR exit('No direct script access allowed'); 2 185 186 $data = method_exists($this->_widget, 'run') ? call_user_func(array($this->_widget, 'run'), $options) : array(); 187 241 // Check for default data if there is any 242 $data = method_exists($this->_widget, 'form') ? call_user_func(array(&$this->_widget, 'form'), $options) : array(); 243 433 434 if (method_exists($this->_widget, 'save')) 435 {SilvercartUpdate.php https://bitbucket.org/silvercart/silvercart/ | PHP | 410 lines
1<?php 2/** 119 * $classDefaults = $className::$defaults; 120 * was replaced with eval call to provide compatibility to PHP 5.2 121 */ 124 $error = ''; 125 } elseif (!method_exists($this, 'executeUpdate')) { 126 // method executeUpdate does not exist, trigger errorParamsLoader.php git://github.com/Codeception/Codeception.git | PHP | 157 lines
1<?php 2namespace Codeception\Lib; 38 39 if (preg_match('~\.php$~', $paramStorage)) { 40 return $this->loadPhpFile(); 66 67 protected function loadPhpFile() 68 { 117 if (class_exists('Dotenv\Dotenv')) { 118 if (class_exists('Dotenv\Repository\RepositoryBuilder') && method_exists('Dotenv\Repository\RepositoryBuilder', 'createWithNoAdapters')) { 119 //dotenv v5 131 $dotEnv = \Dotenv\Dotenv::create($repository, codecept_root_dir(), $this->paramStorage); 132 } elseif (method_exists('Dotenv\Dotenv', 'create')) { 133 //dotenv v3 147 throw new ConfigurationException( 148 "`vlucas/phpdotenv` library is required to parse .env files.\n" . 149 "Please install it via composer: composer require vlucas/phpdotenv"password_compat.php git://github.com/q2a/question2answer.git | PHP | 317 lines
1<?php 2/** 2/** 3 * A Compatibility library with PHP 5.5's simplified password hashing API. 4 * 4 * 5 * @author Anthony Ferrara <ircmaxell@php.net> 6 * @license http://www.opensource.org/licenses/mit-license.html MIT License 13 /** 14 * PHPUnit Process isolation caches constants, but not function declarations. 15 * So we need to check if the constants are defined separately from 84 case 'object': 85 if (method_exists($options['salt'], '__tostring')) { 86 $salt = (string) $options['salt']; 296 /** 297 * Check if current PHP version is compatible with the library 298 *SessionFactory.php git://github.com/concrete5/concrete5.git | PHP | 378 lines
1<?php 2namespace Concrete\Core\Session; 210 $method = Str::camel("get_{$handler}_handler"); 211 if (method_exists($this, $method)) { 212 return $this->{$method}($config);admin-widgets.php git://github.com/q2a/question2answer.git | PHP | 346 lines
1<?php 2/* 18 19 More about this license: http://www.question2answer.org/license.php 20*/ 26 27require_once QA_INCLUDE_DIR . 'app/admin.php'; 28require_once QA_INCLUDE_DIR . 'db/selects.php'; 100 101if (isset($module) && method_exists($module, 'allow_template')) { 102 foreach ($templatelangkeys as $template => $langkey) { 133elseif (qa_clicked('dosavewidget')) { 134 require_once QA_INCLUDE_DIR . 'db/admin.php'; 135 197 198 $widgetallowed = method_exists($module, 'allow_region') && $module->allow_region($region); 199WireDebugInfo.php git://github.com/ryancramerdesign/ProcessWire.git | PHP | 158 lines
1<?php 2 3/** 4 * Helper class for PHP 5.6+ __debugInfo() methods in Wire classes 5 * 26 27 if(method_exists($this, $className)) { 28 $info = array_merge($info, $this->$className($obj)); 55 } else if($hook['options']['after']) { 56 if(method_exists($class, $hook['method']) || method_exists($class, '___' . $hook['method'])) { 57 $key .= "after ";admin-plugins.php git://github.com/q2a/question2answer.git | PHP | 272 lines
1<?php 2/* 18 19 More about this license: http://www.question2answer.org/license.php 20*/ 26 27require_once QA_INCLUDE_DIR . 'app/admin.php'; 28 83 84 if (method_exists($module, 'admin_form')) { 85 $info = qa_get_module_info($type, $name); 204 205 elseif (qa_php_version_below(@$metadata['min_php'])) 206 $pluginhtml = '<s style="color:#999">'.$pluginhtml.'</s><br><span style="color:#f00">'. 206 $pluginhtml = '<s style="color:#999">'.$pluginhtml.'</s><br><span style="color:#f00">'. 207 qa_lang_html_sub('admin/requires_php_version', qa_html($metadata['min_php'])).'</span>'; 208reflection_php5.php http://logisticsouth.googlecode.com/svn/trunk/ | PHP | 386 lines
5 * @subpackage UnitTester 6 * @version $Id: reflection_php5.php 1786 2008-04-26 17:32:20Z pp11 $ 7 */ 27 * Checks that a class has been declared. Versions 28 * before PHP5.0.2 need a check that it's not really 29 * an interface. 41 /** 42 * Needed to kill the autoload feature in PHP5 43 * for classes created dynamically. 61 /** 62 * Needed to kill the autoload feature in PHP5 63 * for classes created dynamically. 288 } 289 if (version_compare(phpversion(), '5.1.0', '>=')) { 290 if (in_array($name, array('__get', '__isset', $name == '__unset'))) {Modules.php https://bitbucket.org/haloweb/halogy-1.0/ | PHP | 205 lines
1<?php (defined('BASEPATH')) OR exit('No direct script access allowed'); 2 2 3/* PHP5 spl_autoload */ 4spl_autoload_register('Modules::autoload'); 6/** 7 * Modular Extensions - PHP5 8 * 15 * 16 * Install this file as application/libraries/Modules.php 17 * 60 61 if (method_exists($class, $method)) { 62 ob_start();CustomMethods.php git://github.com/silverstripe/sapphire.git | PHP | 293 lines
1<?php 2 133 * 134 * This should be used rather than PHP's inbuild method_exists() as it takes into account methods added via 135 * extensions 140 public function hasMethod($method) { 141 return method_exists($this, $method) || $this->getExtraMethodConfig($method); 142 } 181 protected function findMethodsFromExtension($extension) { 182 if (method_exists($extension, 'allMethodNames')) { 183 if ($extension instanceof \Extension) $extension->setOwner($this); 278 /** 279 * Add an extra method using raw PHP code passed as a string 280 * 281 * @param string $method the method name 282 * @param string $code the PHP code - arguments will be in an array called $args, while you can access this object 283 * by using $obj. Note that you cannot call protected methods, as the method is actually an externalAbstractAdapter.php git://github.com/hybridauth/hybridauth.git | PHP | 372 lines
1<?php 2/*! 249 250 if ($this->config->exists('curl_options') && method_exists($this->httpClient, 'setCurlOptions')) { 251 $this->httpClient->setCurlOptions($this->config->get('curl_options')); 288 289 if (method_exists($this->httpClient, 'setLogger')) { 290 $this->httpClient->setLogger($this->logger);ServiceContext.php git://github.com/twilio/twilio-php.git | PHP | 178 lines
1<?php 2 158 $property = $this->$name; 159 if (\method_exists($property, 'getContext')) { 160 return \call_user_func_array(array($property, 'getContext'), $arguments);Client.php git://github.com/kohana/core.git | PHP | 428 lines
1<?php defined('SYSPATH') OR die('No direct script access.'); 2/** 67 { 68 if (method_exists($this, $key)) 69 { 238 * 239 * Accepts an array with HTTP response headers as keys and a PHP callback 240 * function as values. These callbacks will be triggered if a response containscore.php http://micromvc-php.googlecode.com/svn/trunk/ | PHP | 512 lines
1<?php 2/** 56 //Path to the config file 57 $path = SITE_DIR. SITE_NAME. '/'. $name. '.php'; 58 88 if (!class_exists('cxpdo')) { 89 require_once(SITE_DIR. 'database/cxpdo.php'); 90 } 120 //If the model file doesn't exist 121 if (!file_exists(SITE_DIR. $path. '/'. $class. '.php')){ 122 trigger_error('Unable to locate the class "<b>'. $class. '</b>".'); 127 if (!class_exists($class)) { 128 require_once(SITE_DIR. $path. '/'. $class. '.php'); 129 } 148 // in a Model references can't be used. 149 if ((!method_exists($this->$name, '__get') && !method_exists($this->$name, '__set'))) { 150Abstract.php http://mvh-source.googlecode.com/svn/trunk/ | PHP | 290 lines
1<?php 2abstract class Nano_Form_Element_Abstract extends Nano_Element{ 33 foreach( $config as $key => $value ){ 34 if( ( $method = 'add' . ucfirst( $key ) ) && method_exists( $this, $method ) ){ 35 $this->$method( $value );DebugHandlersListenerTest.php git://github.com/symfony/symfony.git | PHP | 239 lines
1<?php 2 13 14use PHPUnit\Framework\TestCase; 15use Psr\Log\LoggerInterface; 127 $app->expects($this->once()) 128 ->method(method_exists(Application::class, 'renderThrowable') ? 'renderThrowable' : 'renderException'); 129Map.php git://github.com/silverstripe/sapphire.git | PHP | 447 lines
1<?php 2 368 if (is_object($item)) { 369 if(method_exists($item, 'hasMethod') && $item->hasMethod($key)) { 370 return $item->{$key}();function.html_options.php git://github.com/benkeen/generatedata.git | PHP | 174 lines
1<?php 2/** 26 * 27 * @link http://www.smarty.net/manual/en/language.function.html.options.php {html_image} 28 * (Smarty online manual) 37{ 38 require_once(SMARTY_PLUGINS_DIR . 'shared.escape_special_chars.php'); 39 71 if (is_object($_sel)) { 72 if (method_exists($_sel, "__toString")) { 73 $_sel = smarty_function_escape_special_chars((string) $_sel->__toString()); 83 } elseif (is_object($_val)) { 84 if (method_exists($_val, "__toString")) { 85 $selected = smarty_function_escape_special_chars((string) $_val->__toString()); 146 if (is_object($value)) { 147 if (method_exists($value, "__toString")) { 148 $value = smarty_function_escape_special_chars((string) $value->__toString());CakeHtmlReporter.php git://github.com/cakephp/cakephp.git | PHP | 351 lines
6 * 7 * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> 8 * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) 13 * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) 14 * @link http://cakephp.org CakePHP(tm) Project 15 * @since CakePHP(tm) v 1.2.0.4433 15 * @since CakePHP(tm) v 1.2.0.4433 16 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 17 */ 120 * 121 * @param PHPUnit_Framework_TestResult $result Result object 122 * @return void 144 $coverage = $result->getCodeCoverage(); 145 if (method_exists($coverage, 'getSummary')) { 146 $report = $coverage->getSummary();LiquidContext.class.php git://github.com/harrydeluxe/php-liquid.git | PHP | 352 lines
1<?php 2/** 6 * @copyright Copyright (c) 2011-2012 Harald Hanek, 7 * fork of php-liquid (c) 2006 Mateo Murphy, 8 * based on Liquid for Ruby (c) 2006 Tobias Luetke 265 { 266 if (!method_exists($object, 'toLiquid')) 267 throw new LiquidException("Method 'toLiquid' not exists!"); 308 309 // php4 doesn't support array access, so we have 310 // to use the invoke method instead 313 } 314 elseif (method_exists($object, LIQUID_HAS_PROPERTY_METHOD)) 315 { 337 338 if (is_object($object) && method_exists($object, 'toLiquid')) 339 {Debug.php http://kumbia-enterprise.googlecode.com/svn/trunk/ | PHP | 305 lines
1<?php 2 19 * @license New BSD License 20 * @version $Id: Debug.php 150 2010-09-24 16:20:10Z gutierrezandresfelipe $ 21 */ 251 if(is_object($value)){ 252 #if(method_exists($value, 'inspect')){ 253 # $value = $value->inspect();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)); 162 if (is_object($obj)){ 163 if (method_exists($obj,$func)) 164 return $obj; 204 function setCookie($name,$value,$expire=false,$path=null){ 205 $cookiePath = substr(PHP_SELF, 0, strrpos(PHP_SELF, '/')).'/'; 206 $cookieLife = 3600;mssql_odbc.php git://github.com/phpbb/phpbb3.git | PHP | 425 lines
1<?php 2/** 4* @package dbal 5* @copyright (c) 2005 phpBB Group 6* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2 12*/ 13if (!defined('IN_PHPBB')) 14{ 17 18include_once($phpbb_root_path . 'includes/db/dbal.' . $phpEx); 19 24* 25* @note number of bytes returned for returning data depends on odbc.defaultlrl php.ini setting. 26* If it is limited to 4K for example only 4K of data is returned max, resulting in incomplete theme data for example. 43 44 $port_delimiter = (defined('PHP_OS') && substr(PHP_OS, 0, 3) === 'WIN') ? ',' : ':'; 45 $this->server = $sqlserver . (($port) ? $port_delimiter . $port : '');Json.php http://firephp.googlecode.com/svn/trunk/ | PHP | 0 lines
1<?php 2/** 67 68 require_once 'Zend/Json/Decoder.php'; 69 return Zend_Json_Decoder::decode($encodedValue, $objectDecodeType); 89 { 90 if (is_object($valueToEncode) && method_exists($valueToEncode, 'toJson')) { 91 return $valueToEncode->toJson(); 97 98 require_once 'Zend/Json/Encoder.php'; 99 return Zend_Json_Encoder::encode($valueToEncode, $cycleCheck, $options); 112 * 113 * This function converts the XML formatted string into a PHP array by 114 * calling a recursive (protected static) function in this class. Then, it 114 * calling a recursive (protected static) function in this class. Then, it 115 * converts that PHP array into JSON by calling the "encode" static funcion. 116 *Interceptor.php git://github.com/phpspec/phpspec.git | PHP | 330 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\Specification; 23 23 24use \PHPSpec\Specification\Result\Failure, 25 \PHPSpec\Specification\Result\Error,api_b2b_2_0_advance.php http://phpfor.googlecode.com/svn/trunk/ | PHP | 251 lines
1<?php 2include_once(CORE_DIR.'/api/shop_api_object.php'); 132 // ????????????? 2010-03-24 11:31 wubin 133 if(method_exists($oOrder,'getFreezeStorageStatus')) { 134 // ????????? 2010-03-01 17:30 wubinData.php git://github.com/eryx/php-framework-benchmark.git | PHP | 521 lines
1<?php 2/** 499 if (is_object($item)) { 500 if (method_exists($item, 'toArray')) { 501 $item = $item->toArray();plugin.php http://phpfor.googlecode.com/svn/trunk/ | PHP | 193 lines
1<?php 2include_once('shopObject.php'); 27 $file_name = ($this->plugin_type=='dir')? 28 PLUGIN_DIR.'/'.$this->plugin_name.'/'.$item.'/'.($this->prefix!==false?$this->prefix:$this->plugin_name).$item.'.php': 29 PLUGIN_DIR.'/'.$this->plugin_name.'/'.($this->prefix!==false?$this->prefix:$this->plugin_name).$item.'.php'; 98 99 //for PHP4/PHP5 Compatibility 100 $t['hasOptions'] = in_array('getoptions',$t['methods'])||in_array('getOptions',$t['methods']); 147 148 if(preg_match('/^'.($this->prefix!==false?str_replace('.','\.',$this->prefix):$this->plugin_name).'([a-z0-9\_]+)\.php/i',$file, $match)) { 149 $item = $match[1]; 171 $obj = $this->load($item); 172 if(method_exists($obj,'getOptions')||method_exists($obj,'getoptions')){ 173 $options = $obj->getOptions(); foreach($options as $key=>$value){MemcachedEngine.php git://github.com/yandod/candycane.git | PHP | 338 lines
2/** 3 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) 4 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) 10 * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) 11 * @link http://cakephp.org CakePHP(tm) Project 12 * @since CakePHP(tm) v 2.5.0 45 * - serialize = string, default => php. The serializer engine used to serialize data. 46 * Available engines are php, igbinary and json. Beside php, the memcached extension 47 * must be compiled with the appropriate serializer support. 64 'json' => Memcached::SERIALIZER_JSON, 65 'php' => Memcached::SERIALIZER_PHP 66 ); 216 * @return bool True if the data was successfully cached, false on failure 217 * @see http://php.net/manual/en/memcache.set.php 218 */EntityResolverManager.php git://github.com/drupal/drupal.git | PHP | 242 lines
1<?php 2 90 if (strpos($controller, ':') === FALSE) { 91 if (method_exists($controller, '__invoke')) { 92 return [$controller, '__invoke']; 120 * @param string|array $controller 121 * A PHP callable representing the controller. 122 * @param \Symfony\Component\Routing\Route $routeMapDBDataRetriever.php git://github.com/modolabs/Kurogo-Mobile-Web.git | PHP | 157 lines
1<?php 2 47 $style = $placemark->getStyle(); 48 if (method_exists($style, 'getId')) { 49 $styleId = $style->getId();monitor.test.php git://github.com/joebeeson/sassy.git | PHP | 188 lines
1<?php 2 179 public function __call($method, $arguments) { 180 if (method_exists($this, $method)) { 181 return call_user_func_array(ContextMenuService.class.php http://pagizer-cms.googlecode.com/svn/trunk/ | PHP | 250 lines
1<?php 2 113 114 if(method_exists($original, "getWebsiteId")) 115 {CroogoComponent.php git://github.com/croogo/croogo.git | PHP | 458 lines
1<?php 2 15 * @author Fahad Ibnay Heylaal <contact@fahad19.com> 16 * @license http://www.opensource.org/licenses/mit-license.php The MIT License 17 * @link http://www.croogo.org 70 $this->{$name} = new $class(); 71 if (method_exists($this->{$name}, 'setController')) { 72 $this->{$name}->setController($this->_controller); 305/** 306 * Loads plugin's bootstrap.php file 307 *persistent_exporter.php git://github.com/moodle/moodle.git | PHP | 84 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 26 27require_once($CFG->libdir . '/externallib.php'); 28 55 56 if (method_exists($this->persistent, 'get_context') && !isset($this->related['context'])) { 57 $this->related['context'] = $this->persistent->get_context();Persistent.php http://shozu.googlecode.com/svn/trunk/ | PHP | 490 lines
1<?php 2/** 25 { 26 // uid is returned by the PHP function uniqid(null, true) 27 $this->addColumn(array( 60 { 61 if(method_exists($this, 'preSave')) 62 { 96 } 97 if(method_exists($this, 'postSave')) 98 {ArrayCollection.php https://gitlab.com/lcp0578/Propel2.git | PHP | 217 lines
1<?php 2 39 { 40 if (!method_exists($this->getFullyQualifiedModel(), 'save')) { 41 throw new ReadOnlyModelException('Cannot save objects on a read-only model'); 66 { 67 if (!method_exists($this->getFullyQualifiedModel(), 'delete')) { 68 throw new ReadOnlyModelException('Cannot delete objects on a read-only model');LoggerPropertySetter.php http://syracava.googlecode.com/svn/trunk/ | PHP | 161 lines
1<?php 2/** 2/** 3 * log4php is a PHP port of the log4j java logging package. 4 * 9 * 10 * <p>PHP port, extensions and modifications by VxR. All rights reserved.<br> 11 * For more information, please see {@link http://www.vxr.it/log4php/}.</p> 15 * 16 * @package log4php 17 * @subpackage config 22 */ 23if (!defined('LOG4PHP_DIR')) define('LOG4PHP_DIR', dirname(__FILE__) . '/..'); 24 24 25require_once(LOG4PHP_DIR . '/LoggerLog.php'); 26require_once(LOG4PHP_DIR . '/helpers/LoggerOptionConverter.php');GeneratedQuerySetColumnTypeTest.php git://github.com/propelorm/Propel2.git | PHP | 295 lines
1<?php 2 12use ComplexColumnTypeEntitySet2Query; 13use PHPUnit\Framework\TestCase; 14use Propel\Generator\Util\QuickBuilder; 59 { 60 $this->assertTrue(method_exists('\ComplexColumnTypeEntitySet2Query', 'filterByTags')); 61 $this->assertTrue(method_exists('\ComplexColumnTypeEntitySet2Query', 'filterByTag')); 62 // only plural column names get a singular filter 63 $this->assertTrue(method_exists('\ComplexColumnTypeEntitySet2Query', 'filterByValueSet')); 64 }content.feed.php http://miacms.googlecode.com/svn/trunk/ | PHP | 380 lines
1<?php 2/** 4 * @subpackage Content 5 * @author MiaCMS see README.php 6 * @copyright see README.php 6 * @copyright see README.php 7 * See COPYRIGHT.php for copyright notices and details. 8 * @license GNU/GPL Version 2, see LICENSE.php 19// load feed creator class 20require_once( $mosConfig_absolute_path .'/includes/feedcreator.class.php' ); 21 42 /** 43 * php4 class constructor 44 */ 69 70 if (method_exists($database,"getNullDate")) { 71 $params->nullDate = $database->getNullDate();edit_profile.php git://github.com/concrete5/concrete5.git | PHP | 158 lines
1<?php 2namespace Concrete\Controller\SinglePage\Account; 69 $this->view(); 70 if (!method_exists($at->controller, $method)) { 71 throw new UserMessageException('Invalid method.');IsbnValidator.php git://github.com/symfony/symfony.git | PHP | 185 lines
1<?php 2 42 43 if (!is_scalar($value) && !(\is_object($value) && method_exists($value, '__toString'))) { 44 throw new UnexpectedValueException($value, 'string');ImportShp.php git://github.com/phpmyadmin/phpmyadmin.git | PHP | 336 lines
1<?php 2/** 2/** 3 * ESRI Shape file import plugin for phpMyAdmin 4 */ 7 8namespace PhpMyAdmin\Plugins\Import; 9 9 10use PhpMyAdmin\File; 11use PhpMyAdmin\Gis\GisFactory; 11use PhpMyAdmin\Gis\GisFactory; 12use PhpMyAdmin\Gis\GisMultiLineString; 13use PhpMyAdmin\Gis\GisMultiPoint; 13use PhpMyAdmin\Gis\GisMultiPoint; 14use PhpMyAdmin\Gis\GisPoint; 15use PhpMyAdmin\Gis\GisPolygon;data_class.class.php https://bitbucket.org/chamilo/chamilo-dev/ | PHP | 402 lines
1<?php 2namespace common\libraries; 3/** 4 * $Id: data_class.class.php 128 2009-11-09 13:13:20Z vanpouckesven $ 5 * @package common 270 $method = 'create_' . $class_name; 271 if (method_exists($data_manager, $method)) 272 { 295 296 if (method_exists($data_manager, $method)) 297 { 319 320 if (method_exists($data_manager, $method)) 321 {CommentUIControllerTrait.php git://github.com/QuickAppsCMS/QuickApps-CMS.git | PHP | 346 lines
1<?php 2/** 35 * 36 * ```php 37 * uses Comment\Controller\CommentUIControllerTrait; 57 * 58 * ```php 59 * protected function _inResponseTo(\Comment\Model\Entity\Comment $comment) { 63 * } 64 * ```php 65 * 96 throw new ForbiddenException(__d('comment', 'CommentUIControllerTrait: This trait must be used on backend-controllers only.')); 97 } elseif (!method_exists($this, '_inResponseTo')) { 98 throw new ForbiddenException(__d('comment', 'CommentUIControllerTrait: This trait needs you to implement the "_inResponseTo()" method.'));Lexer.php git://github.com/anantgarg/Qwench.git | PHP | 298 lines
1<?php 2 97 class_exists('DOMDocument') && 98 method_exists('DOMDocument', 'loadHTML') && 99 !extension_loaded('domxml') 129 130 // once PHP DOM implements native line numbers, or we 131 // hack out something using XSLT, remove this stipulationCakeValidationRule.php git://github.com/yandod/candycane.git | PHP | 350 lines
1<?php 2/** 6 * 7 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) 8 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) 14 * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) 15 * @link http://cakephp.org CakePHP(tm) Project 16 * @package Cake.Model.Validator 16 * @package Cake.Model.Validator 17 * @since CakePHP(tm) v 2.2.0 18 * @license http://www.opensource.org/licenses/mit-license.php MIT License 27 * @package Cake.Model.Validator 28 * @link http://book.cakephp.org/2.0/en/data-validation.html 29 */ 275 $this->_valid = call_user_func_array($methods[$rule], $this->_ruleParams); 276 } elseif (class_exists('Validation') && method_exists('Validation', $this->_rule)) { 277 $this->_valid = call_user_func_array(array('Validation', $this->_rule), $this->_ruleParams);Object.php git://github.com/phpspec/phpspec.git | PHP | 149 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\Specification\Interceptor; 23 23 24use \PHPSpec\Specification\Interceptor; 25Manager.php http://skeleton.googlecode.com/svn/trunk/ | PHP | 238 lines
1<?php 2/** 2/** 3 * Manager.php 4 * 4 * 5 * @license http://www.opensource.org/licenses/bsd-license.php BSD 6 * @link http://skeletonframework.com/ 77 // if no events passed then check if we can get them from the listener 78 if (!$events && method_exists($eventListener, 'getEvents')) { 79 $events = $eventListener->getEvents(); 150 // event listener interface 151 if (method_exists($listener, 'onEvent')) { // standard A_Event_Listener 152 $r = $listener->onEvent($eventName, $eventData); 159 $listener = new $listener(); 160 if (method_exists($listener, 'onEvent')) { 161 $r = $listener->onEvent($eventName, $eventData);controller.php http://bitcero-modules.googlecode.com/svn/ | PHP | 207 lines
1<?php 2// $Id: controller.php 15 2009-09-11 18:16:01Z i.bitcero $ 23 24include_once XOOPS_ROOT_PATH.'/modules/xthemes/include/functions.php'; 25include_once XOOPS_ROOT_PATH.'/modules/xthemes/class/theme.php'; 121 122 if (!is_file($pdir.'/xthemes_plugin_'.$dir.'.php')) 123 return; 127 128 include_once $pdir.'/xthemes_plugin_'.$dir.'.php'; 129 $class = "xthemes".ucfirst($dir); 186 } 187 if (!method_exists($this->objects[$theme], $method)) 188 return;admin.class.php http://xklog.googlecode.com/svn/ | PHP | 229 lines
1<?php 2 86 $module = $request->get( 'm' ); 87 if( method_exists( $this, $module ) ) { 88 $this->$module(); 116 117 if( is_file( APP_ADMIN .'kernel/' . $name . '.class.php' ) ) { 118 include( APP_ADMIN .'kernel/' . $name . '.class.php' ); 158</html> 159<?php 160 }mod_jfusion_activity.php http://jfusion.googlecode.com/svn/trunk/ | PHP | 149 lines
1<?php 2/** 15*/ 16require_once(dirname(__FILE__).DS.'helper.php'); 17 18//check if the JFusion component is installed 19$model_file = JPATH_ADMINISTRATOR .DS.'components'.DS.'com_jfusion'.DS.'models'.DS.'model.factory.php'; 20$factory_file = JPATH_ADMINISTRATOR .DS.'components'.DS.'com_jfusion'.DS.'models'.DS.'model.jfusionpublic.php'; 130 } else { 131 if(method_exists($public, "renderActivityModule")) { 132 $output = $public->renderActivityModule($view, $params);Application.php git://github.com/michael-romer/zf-boilerplate.git | PHP | 417 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: Application.php 24101 2011-06-01 02:21:15Z adamlundrigan $ 20 */ 67 * 68 * Initialize application. Potentially initializes include_paths, PHP 69 * settings, and bootstrap class. 79 80 require_once 'Zend/Loader/Autoloader.php'; 81 $this->_autoloader = Zend_Loader_Autoloader::getInstance(); 144 if (!empty($options['phpsettings'])) { 145 $this->setPhpSettings($options['phpsettings']); 146 } 157 $autoloader = $this->getAutoloader(); 158 if (method_exists($autoloader, 'setZfPath')) { 159 $zfPath = $options['autoloaderzfpath'];RegisterBehavior.php git://github.com/CakeDC/users.git | PHP | 221 lines
1<?php 2declare(strict_types=1); 10 * @copyright Copyright 2010 - 2018, Cake Development Corporation (https://www.cakedc.com) 11 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 12 */ 105 } 106 if (!method_exists($this, (string)$callback)) { 107 return $user;class.applicationmanager.php git://github.com/vanillaforums/Garden.git | PHP | 351 lines
1<?php 2/** 250 public function testApplication($applicationName) { 251 // Add the application to the $EnabledApplications array in conf/applications.php 252 $ApplicationInfo = arrayValueI($applicationName, $this->availableApplications(), []); 264 if (!class_exists($hooks)) { 265 $hooksPath = PATH_APPLICATIONS.DS.$ApplicationFolder.'/settings/class.hooks.php'; 266 if (file_exists($hooksPath)) { 273 274 if (method_exists($hooks, 'setup')) { 275 $hooks->setup();login.php https://gitlab.com/minotnepal/concrete5.git | PHP | 387 lines
1<?php 2namespace Concrete\Controller\SinglePage; 75 } 76 if (!method_exists($at->controller, $method)) { 77 return $this->view();DesignerRules.php https://bitbucket.org/zurmo/zurmo/ | PHP | 320 lines
1<?php 2 /********************************************************************************* 123 ); 124 if (method_exists($ruleClassName, 'resolveCellMetadata')) 125 {Container.php git://github.com/fabpot/Pimple.git | PHP | 281 lines
1<?php 2 64 * 65 * Allowing any PHP callable leads to difficult to debug problems 66 * as function names (strings) are callable (creating a function with 101 || isset($this->protected[$this->values[$id]]) 102 || !method_exists($this->values[$id], '__invoke') 103 ) { 158 { 159 if (!is_object($callable) || !method_exists($callable, '__invoke')) { 160 throw new \InvalidArgumentException('Service definition is not a Closure or invokable object.'); 180 { 181 if (!is_object($callable) || !method_exists($callable, '__invoke')) { 182 throw new \InvalidArgumentException('Callable is not a Closure or invokable object.'); 230 231 if (!is_object($this->values[$id]) || !method_exists($this->values[$id], '__invoke')) { 232 throw new \InvalidArgumentException(sprintf('Identifier "%s" does not contain an object definition.', $id));MapDB.php git://github.com/modolabs/Kurogo-Mobile-Web.git | PHP | 363 lines
1<?php 2 82 $style = $feature->getStyle(); 83 if (method_exists($style, 'getId')) { 84 $styleId = $style->getId();Service.php git://github.com/concrete5/concrete5.git | PHP | 162 lines
1<?php 2namespace Concrete\Core\Antispam; 56 } 57 if (method_exists($this->controller, 'report')) { 58 $this->controller->report($args); 157 { 158 if (method_exists($this->controller, $nm)) { 159 return call_user_func_array(array($this->controller, $nm), $args);form.class.php http://freewms.googlecode.com/svn/trunk/ | PHP | 407 lines
1<?php if(!defined('BASEPATH')) die('Access Denied'); 2/*------------------------------------------------- 89 if(!function_exists($rule)) { 90 if(method_exists($this, $rule)) { 91 $is_method = TRUE;GeneratedObjectArrayColumnTypeTest.php git://github.com/propelorm/Propel2.git | PHP | 304 lines
1<?php 2 55 { 56 $this->assertTrue(method_exists('MyNameSpace\ComplexColumnTypeEntity2', 'getTags')); 57 $this->assertTrue(method_exists('MyNameSpace\ComplexColumnTypeEntity2', 'hasTag')); 57 $this->assertTrue(method_exists('MyNameSpace\ComplexColumnTypeEntity2', 'hasTag')); 58 $this->assertTrue(method_exists('MyNameSpace\ComplexColumnTypeEntity2', 'setTags')); 59 $this->assertTrue(method_exists('MyNameSpace\ComplexColumnTypeEntity2', 'addTag')); 59 $this->assertTrue(method_exists('MyNameSpace\ComplexColumnTypeEntity2', 'addTag')); 60 $this->assertTrue(method_exists('MyNameSpace\ComplexColumnTypeEntity2', 'removeTag')); 61 // only plural column names get a tester, an adder, and a remover method 61 // only plural column names get a tester, an adder, and a remover method 62 $this->assertTrue(method_exists('MyNameSpace\ComplexColumnTypeEntity2', 'getValueSet')); 63 $this->assertFalse(method_exists('MyNameSpace\ComplexColumnTypeEntity2', 'hasValueSet')); 63 $this->assertFalse(method_exists('MyNameSpace\ComplexColumnTypeEntity2', 'hasValueSet')); 64 $this->assertTrue(method_exists('MyNameSpace\ComplexColumnTypeEntity2', 'setValueSet')); 65 $this->assertFalse(method_exists('MyNameSpace\ComplexColumnTypeEntity2', 'addValueSet'));PublicAction.class.php http://tpblog.googlecode.com/svn/ | PHP | 228 lines
1<?php 2class PublicAction extends Action 43 ##???????????????????? 44 if(method_exists($this,'_operation')) { 45 $this->_operation();RecursiveContextualValidator.php git://github.com/drupal/drupal.git | PHP | 245 lines
1<?php 2 133 // for example those using the typed config subclass of the manager. 134 $typed_data_manager = method_exists($data, 'getTypedDataManager') ? $data->getTypedDataManager() : $this->typedDataManager; 135ItemList.php git://github.com/concrete5/concrete5.git | PHP | 249 lines
1<?php 2namespace Concrete\Core\Search\ItemList; 196 $factory = new PaginationFactory(\Request::getInstance()); 197 if (method_exists($this, 'createPaginationObject')) { 198 $pagination = $this->createPaginationObject();Registry.php git://github.com/michael-romer/zf-boilerplate.git | PHP | 419 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Registry.php 23775 2011-03-01 17:25:24Z ralph $ 21 */ 25 */ 26require_once 'Zend/Tool/Framework/Registry/Interface.php'; 27 144 if ($this->_config === null) { 145 require_once 'Zend/Tool/Framework/Client/Config.php'; 146 $this->setConfig(new Zend_Tool_Framework_Client_Config()); 171 if ($this->_storage === null) { 172 require_once 'Zend/Tool/Framework/Client/Storage.php'; 173 $this->setStorage(new Zend_Tool_Framework_Client_Storage()); 201 if ($this->_loader === null) { 202 require_once 'Zend/Tool/Framework/Loader/IncludePathLoader.php'; 203 $this->setLoader(new Zend_Tool_Framework_Loader_IncludePathLoader());Feed.php git://github.com/michael-romer/zf-boilerplate.git | PHP | 361 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: Feed.php 23775 2011-03-01 17:25:24Z ralph $ 20 */ 74 if (!ctype_alpha($value) && strlen($value) > 0) { 75 require_once 'Zend/Feed/Exception.php'; 76 throw new Zend_Feed_Exception('invalid parameter: "block" may only' 79 if (iconv_strlen($value, $this->getEncoding()) > 255) { 80 require_once 'Zend/Feed/Exception.php'; 81 throw new Zend_Feed_Exception('invalid parameter: "block" may only' 110 if (iconv_strlen($value, $this->getEncoding()) > 255) { 111 require_once 'Zend/Feed/Exception.php'; 112 throw new Zend_Feed_Exception('invalid parameter: any "author" may only' 135 if (iconv_strlen($value, $this->getEncoding()) > 255) { 136 require_once 'Zend/Feed/Exception.php'; 137 throw new Zend_Feed_Exception('invalid parameter: any "category" may only'Json.php git://github.com/valentinbora/joobsbox-php.git | PHP | 338 lines
1<?php 2/** 25 */ 26require_once 'Zend/Json/Expr.php'; 27 76 77 require_once 'Zend/Json/Decoder.php'; 78 return Zend_Json_Decoder::decode($encodedValue, $objectDecodeType); 102 { 103 if (is_object($valueToEncode) && method_exists($valueToEncode, 'toJson')) { 104 return $valueToEncode->toJson(); 114 */ 115 require_once "Zend/Json/Encoder.php"; 116 $valueToEncode = self::_recursiveJsonExprFinder($valueToEncode, $javascriptExpressions); 122 } else { 123 require_once 'Zend/Json/Encoder.php'; 124 $encodedResult = Zend_Json_Encoder::encode($valueToEncode, $cycleCheck, $options);PropertyPortlet.php http://pradoportal.googlecode.com/svn/trunk/ | PHP | 323 lines
1<?php 2/** 8 * @license http://www.pradoportal.dk 9 * @version $Id: PropertyPortlet.php 425 2011-01-05 10:30:30Z steen.rabol $ 10 * 70 71 if(method_exists($pCommonClassName,'getCustomProperties')) 72 { 142 143 if(!method_exists($pCommonClassName,'getCustomProperties')) 144 { 252 253 if(method_exists($pCommonClassName,'getCustomProperties')) 254 {DisplayHandler.class.php http://xe-core.googlecode.com/svn/trunk/ | PHP | 365 lines
79 80 if(method_exists($handler, "prepareToPrint")) 81 { 149 { 150 $firephp = FirePHP::getInstance(true); 151 } 154 { 155 $firephp->fb('Change the value of __DEBUG_PROTECT_IP__ into your IP address in config/config.user.inc.php or config/config.inc.php', 'The IP address is not allowed.'); 156 return; 166 array( 167 sprintf("%s:%s%s%s%s", $_SERVER['SERVER_NAME'], $_SERVER['SERVER_PORT'], $_SERVER['PHP_SELF'], $_SERVER['QUERY_STRING'] ? '?' : '', $_SERVER['QUERY_STRING']), 168 $_SERVER['REQUEST_METHOD'], 283 { 284 $buff = 'The IP address is not allowed. Change the value of __DEBUG_PROTECT_IP__ into your IP address in config/config.user.inc.php or config/config.inc.php'; 285 }Standalone.php https://github.com/clearhealth/clearhealth.git | PHP | 319 lines
1<?php 2/** 17 * @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com) 18 * @version $Id: Standalone.php 11373 2008-09-12 17:00:05Z ralph $ 19 * @license http://framework.zend.com/license/new-bsd New BSD License 22/** Zend_View_Helper_Placeholder_Registry */ 23require_once 'Zend/View/Helper/Placeholder/Registry.php'; 24 24 25/** Zend_View_Helper_Abstract.php */ 26require_once 'Zend/View/Helper/Abstract.php'; 220 $container = $this->getContainer(); 221 if (method_exists($container, $method)) { 222 $return = call_user_func_array(array($container, $method), $args); 229 230 require_once 'Zend/View/Exception.php'; 231 throw new Zend_View_Exception('Method "' . $method . '" does not exist');AddPortlet.php http://pradoportal.googlecode.com/svn/trunk/ | PHP | 103 lines
1<?php 2/** 8 * @license http://www.pradoportal.dk 9 * @version $Id: AddPortlet.php 396 2010-12-25 13:25:12Z steen.rabol $ 10 * 63 { 64 $class_filename = Prado::getPathOfNamespace('Application.Portlets.' . $portlet->name . '.Common.' . $portlet->name . 'Common') . '.php'; 65 if(file_exists($class_filename)) 70 71 if(method_exists($pCommonClassName,'getPortletName')) 72 {component.php http://rapyd-framework.googlecode.com/svn/trunk/ | PHP | 568 lines
1<?php 2 36 { 37 case "php": 38 include($config); 154 $property = strtolower(substr($method, 4)); 155 if (method_exists($this, 'set_' . $method)) 156 {View.php http://skeleton.googlecode.com/svn/trunk/ | PHP | 500 lines
1<?php 2/** 2/** 3 * View.php 4 * 4 * 5 * @license http://www.opensource.org/licenses/bsd-license.php BSD 6 * @link http://skeletonframework.com/ 94 /** 95 * @param Parameters the same as the PHP setcookie() function 96 */ 260 { 261 if (substr($template, -4, 4) != '.php') { 262 $template .= '.php'; 264 // if Locator set by FC then we can get the Mapper 265 if (method_exists($this->locator, 'get')) { 266 $mapper = $this->locator->get($this->mapper_name);UserInterface.php git://github.com/concrete5/concrete5.git | PHP | 417 lines
1<?php 2namespace Concrete\Core\Application\Service; 152 $cnt = Loader::controller($c); 153 if (method_exists($cnt, 'getQuickNavigationLinkHTML')) { 154 return $cnt->getQuickNavigationLinkHTML();Container.php git://github.com/eryx/php-framework-benchmark.git | PHP | 459 lines
1<?php 2 214 215 return isset($this->services[$id]) || method_exists($this, 'get'.strtr($id, array('_' => '', '.' => '_')).'Service'); 216 } 246 247 if (method_exists($this, $method = 'get'.strtr($id, array('_' => '', '.' => '_')).'Service')) { 248 $this->loading[$id] = true;sfWidgetFormPropelChoice.class.php http://opac-sbweb.googlecode.com/svn/trunk/ | PHP | 109 lines
1<?php 2 16 * @author Fabien Potencier <fabien.potencier@symfony-project.com> 17 * @version SVN: $Id: sfWidgetFormPropelChoice.class.php 12803 2008-11-09 07:26:18Z fabien $ 18 */ 41 * * order_by: An array composed of two fields: 42 * * The column to order by the results (must be in the PhpName format) 43 * * asc or desc 84 $method = sprintf('add%sOrderByColumn', 0 === strpos(strtoupper($order[1]), 'ASC') ? 'Ascending' : 'Descending'); 85 $criteria->$method(call_user_func(array($class, 'translateFieldName'), $order[0], BasePeer::TYPE_PHPNAME, BasePeer::TYPE_COLNAME)); 86 } 89 $methodKey = $this->getOption('key_method'); 90 if (!method_exists($this->getOption('model'), $methodKey)) 91 { 95 $methodValue = $this->getOption('method'); 96 if (!method_exists($this->getOption('model'), $methodValue)) 97 {sfWidgetFormPropelSelect.class.php http://opac-sbweb.googlecode.com/svn/trunk/ | PHP | 109 lines
1<?php 2 16 * @author Fabien Potencier <fabien.potencier@symfony-project.com> 17 * @version SVN: $Id: sfWidgetFormPropelSelect.class.php 12803 2008-11-09 07:26:18Z fabien $ 18 */ 41 * * order_by: An array composed of two fields: 42 * * The column to order by the results (must be in the PhpName format) 43 * * asc or desc 84 $method = sprintf('add%sOrderByColumn', 0 === strpos(strtoupper($order[1]), 'ASC') ? 'Ascending' : 'Descending'); 85 $criteria->$method(call_user_func(array($class, 'translateFieldName'), $order[0], BasePeer::TYPE_PHPNAME, BasePeer::TYPE_COLNAME)); 86 } 89 $methodKey = $this->getOption('key_method'); 90 if (!method_exists($this->getOption('model'), $methodKey)) 91 { 95 $methodValue = $this->getOption('method'); 96 if (!method_exists($this->getOption('model'), $methodValue)) 97 {V1.php git://github.com/twilio/twilio-php.git | PHP | 126 lines
1<?php 2 93 $method = 'get' . \ucfirst($name); 94 if (\method_exists($this, $method)) { 95 return $this->$method(); 110 $property = $this->$name; 111 if (\method_exists($property, 'getContext')) { 112 return \call_user_func_array(array($property, 'getContext'), $arguments);RestAction.class.php https://hg.codeplex.com/school15 | PHP | 364 lines
1<?php 2// +---------------------------------------------------------------------- 2// +---------------------------------------------------------------------- 3// | ThinkPHP [ WE CAN DO IT JUST THINK IT ] 4// +---------------------------------------------------------------------- 4// +---------------------------------------------------------------------- 5// | Copyright (c) 2006-2012 http://thinkphp.cn All rights reserved. 6// +---------------------------------------------------------------------- 10// +---------------------------------------------------------------------- 11// $Id: RestAction.class.php 2706 2012-02-04 03:39:48Z liu21st $ 12 14 +------------------------------------------------------------------------------ 15 * ThinkPHP RESTFul ?????? 16 +------------------------------------------------------------------------------ 67 //?????? 68 if(method_exists($this,'_initialize')) 69 $this->_initialize();firebird.php git://github.com/phpbb/phpbb3.git | PHP | 584 lines
1<?php 2/** 4* @package dbal 5* @copyright (c) 2005 phpBB Group 6* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2 12*/ 13if (!defined('IN_PHPBB')) 14{ 17 18include_once($phpbb_root_path . 'includes/db/dbal.' . $phpEx); 19 158 $this->last_query_text = $query; 159 $this->query_result = ($cache_ttl && method_exists($cache, 'sql_load')) ? $cache->sql_load($query) : false; 160 $this->sql_add_num_queries($this->query_result); 271 272 if ($cache_ttl && method_exists($cache, 'sql_save')) 273 {controller.php http://hppg.googlecode.com/svn/trunk/ | PHP | 181 lines
1<?php 2/** 172 173 if ( method_exists( $this, $actionMethod ) ) 174 {AbstractRow.php https://gitlab.com/lcp0578/yaf.app.git | PHP | 667 lines
1<?php 2/** 5 * @author xudianyang<120343758@qq.com> 6 * @copyright Copyright (c) 2014 (http://www.phpboy.net) 7 */ 240 if (is_object($data)) { 241 if (method_exists($data, 'toArray')) { 242 $data = $data->toArray(); 469 $accessor = '__get' . str_replace(' ', '', ucwords(str_replace(array('-', '_'), ' ', $column))); 470 return method_exists($this, $accessor) ? $this->{$accessor}() : $this->data[$column]; 471 } 486 $mutator = '__set' . str_replace(' ', '', ucwords(str_replace(array('-', '_'), ' ', $column))); 487 if (method_exists($this, $mutator)) { 488 $this->{$mutator}($value);ArraySource.php git://github.com/QuickAppsCMS/QuickApps-CMS.git | PHP | 480 lines
1<?php 2/** 4 * 5 * PHP versions 4 and 5 6 * 6 * 7 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) 8 * Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org) 13 * @copyright Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org) 14 * @link http://cakephp.org CakePHP(tm) Project 15 * @package QuickApps.Plugin.Locale.Model.Datasource 15 * @package QuickApps.Plugin.Locale.Model.Datasource 16 * @since CakePHP Datasources v 0.3 17 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 189 if (isset($db)) { 190 if (method_exists($db, 'queryAssociation')) { 191 $stack = array($assoc);Cache.php git://github.com/michael-romer/zf-boilerplate.git | PHP | 207 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Cache.php 23775 2011-03-01 17:25:24Z ralph $ 21 */ 51 /** 52 * PHP SOAP wsdl cache constant 53 * 76 if (!array_key_exists($tokenId, self::$_storedToken)) { 77 require_once 'Zend/Service/DeveloperGarden/Exception.php'; 78 throw new Zend_Service_DeveloperGarden_Exception( 105 if (!array_key_exists($tokenId, self::$_storedToken)) { 106 require_once 'Zend/Service/DeveloperGarden/Exception.php'; 107 throw new Zend_Service_DeveloperGarden_Exception( 180 $cache = self::getCache(); 181 if (method_exists($cache, 'clean')) { 182 $cache->clean();ResultSet.php git://github.com/spadefoot/kohana-orm-leap.git | PHP | 362 lines
1<?php defined('SYSPATH') OR die('No direct script access.'); 2 120 if (class_exists($this->type)) { 121 if (($this->records[0] instanceof DB_ORM_Model) OR method_exists($this->records[0], 'as_array')) { 122 foreach ($this->records as $record) {CValidator.php http://chenjin.googlecode.com/svn/trunk/ | PHP | 262 lines
1<?php 2/** 52 * @author Qiang Xue <qiang.xue@gmail.com> 53 * @version $Id: CValidator.php 242 2012-03-29 15:18:01Z mole1230 $ 54 * @package system.validators 150 151 if(method_exists($object,$name)) 152 { 250 * A value is considered empty if it is null, an empty array, or the trimmed result is an empty string. 251 * Note that this method is different from PHP empty(). It will return false when the value is 0. 252 * @param mixed $value the value to be checkedRedis.php git://github.com/isaacsu/twich.git | PHP | 293 lines
1<?php 2 5 */ 6require_once 'Rediska.php'; 7 10 */ 11require_once 'Rediska/Zend/Session/Set.php'; 12 15 */ 16require_once 'Zend/Session.php'; 17 20 */ 21require_once 'Zend/Config.php'; 22 25 */ 26require_once 'Zend/Session/SaveHandler/Interface.php'; 27FileSystem.php http://vlc-shares.googlecode.com/svn/trunk/ | PHP | 305 lines
1<?php 2 2 3require_once 'X/VlcShares/Plugins/Abstract.php'; 4require_once 'X/VlcShares/Plugins/BackuppableInterface.php'; 61 $cachePlugin = X_VlcShares_Plugins::broker()->getPlugins('cache'); 62 if ( method_exists($cachePlugin, 'setDoNotCache') ) { 63 $cachePlugin->setDoNotCache();Session.php http://agile-project2.googlecode.com/svn/ | PHP | 297 lines
1<?php 2 2 3include 'Database.php'; 4 283 public function methodas($obj,$method_name){ 284 if(method_exists(get_class($obj),$method_name)){ 285 $method= new ReflectionMethod(get_class($obj),$method_name);ArchiveComponent.php git://github.com/CakeDC/utils.git | PHP | 170 lines
1<?php 2/** 8 * @copyright Copyright 2009 - 2013, Cake Development Corporation (http://cakedc.com) 9 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 10 */ 75 76 if (method_exists($controller->{$this->modelName}, 'buildArchiveConditions')) { 77 $archiveConditions = $controller->{$this->modelName}->buildArchiveConditions($parsedParams);Proxy.php git://github.com/spadefoot/kohana-orm-leap.git | PHP | 387 lines
1<?php defined('SYSPATH') OR die('No direct script access.'); 2 84 if ($this->extension !== NULL) { 85 if (method_exists($this->extension, $function)) { 86 $result = call_user_func_array(array($this->extension, $function), $arguments);Data.php git://github.com/michael-romer/zf-boilerplate.git | PHP | 563 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: Data.php 23775 2011-03-01 17:25:24Z ralph $ 20 */ 116 if ($this->hasItem($item['id'])) { 117 require_once 'Zend/Dojo/Exception.php'; 118 throw new Zend_Dojo_Exception('Overwriting items using addItem() is not allowed'); 134 if (!is_array($items) && (!is_object($items) || !($items instanceof Traversable))) { 135 require_once 'Zend/Dojo/Exception.php'; 136 throw new Zend_Dojo_Exception('Only arrays and Traversable objects may be added to ' . __CLASS__); 227 } else { 228 require_once 'Zend/Dojo/Exception.php'; 229 throw new Zend_Dojo_Exception('Invalid identifier; please use a string or integer'); 356 if (!is_string($json)) { 357 require_once 'Zend/Dojo/Exception.php'; 358 throw new Zend_Dojo_Exception('fromJson() expects JSON input');document.php git://github.com/Dolibarr/dolibarr.git | PHP | 178 lines
1<?php 2/* Copyright (C) 2010 Regis Houssin <regis.houssin@inodbox.com> 20/** 21 * \file htdocs/projet/document.php 22 * \ingroup project 25 26require '../main.inc.php'; 27require_once DOL_DOCUMENT_ROOT.'/projet/class/project.class.php'; 27require_once DOL_DOCUMENT_ROOT.'/projet/class/project.class.php'; 28require_once DOL_DOCUMENT_ROOT.'/core/lib/project.lib.php'; 29require_once DOL_DOCUMENT_ROOT.'/core/lib/files.lib.php'; 29require_once DOL_DOCUMENT_ROOT.'/core/lib/files.lib.php'; 30require_once DOL_DOCUMENT_ROOT.'/core/lib/images.lib.php'; 31require_once DOL_DOCUMENT_ROOT.'/core/class/html.formfile.class.php'; 44 45include DOL_DOCUMENT_ROOT.'/core/actions_fetchobject.inc.php'; // Must be include, not include_once 46if (!empty($conf->global->PROJECT_ALLOW_COMMENT_ON_PROJECT) && method_exists($object, 'fetchComments') && empty($object->comments)) {update.php git://pkgs.fedoraproject.org/wordpress | PHP | 452 lines
27 include ABSPATH . WPINC . '/version.php'; // include an unmodified $wp_version 28 $php_version = phpversion(); 29 48 49 if ( method_exists( $wpdb, 'db_version' ) ) 50 $mysql_version = preg_replace('/[^0-9.].*/', '', $wpdb->db_version()); 68 'version' => $wp_version, 69 'php' => $php_version, 70 'locale' => $locale, 160 case 'load-plugins.php' : 161 case 'load-update.php' : 162 $timeout = 3600; // 1 hour 233function wp_update_themes() { 234 include ABSPATH . WPINC . '/version.php'; // include an unmodified $wp_version 235completion_regular_task.php git://github.com/moodle/moodle.git | PHP | 199 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 49 if ($CFG->enablecompletion) { 50 require_once($CFG->libdir . "/completionlib.php"); 51 54 $object = 'completion_criteria_' . $type; 55 require_once($CFG->dirroot . '/completion/criteria/' . $object . '.php'); 56 58 // Run the criteria type's cron method, if it has one. 59 if (method_exists($class, 'cron')) { 60 if (debugging()) {PropelBaseModelClass.php git://github.com/imagecms/ImageCMS.git | PHP | 343 lines
1<?php 2 146 public function getLabel($attributeName) { 147 if (method_exists($this, 'attributeLabels')) { 148 $labels = $this->attributeLabels(); 215 $call = 'get' . $name; 216 if (method_exists($this, $call)) { 217 return $this->$call(); 236 } 237 // no lcfirst in php<5.3... 238 $virtualColumn[0] = strtolower($virtualColumn[0]); 285 * String representation of object 286 * @link http://php.net/manual/en/serializable.serialize.php 287 * @return string the string representation of the object or null 324 * Constructs the object 325 * @link http://php.net/manual/en/serializable.unserialize.php 326 * @param string $serialized <p>App.php https://github.com/rmiddle/cerb4.git | PHP | 568 lines
1<?php 2class ChFnrAjaxController extends DevblocksControllerExtension { 42 // Default action, call arg as a method suffixed with Action 43 if(method_exists($this,$action)) { 44 call_user_func(array(&$this, $action));actions_adherentcard_common.class.php git://github.com/Dolibarr/dolibarr.git | PHP | 288 lines
1<?php 2/* Copyright (C) 2010-2012 Regis Houssin <regis.houssin@inodbox.com> 19/** 20 * \file htdocs/adherents/canvas/actions_adherentcard_common.class.php 21 * \ingroup adherent 65 66 /*if (is_object($this->object) && method_exists($this->object,'fetch')) 67 { 79 80 // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps 81 /** 89 { 90 // phpcs:enable 91 global $conf, $langs, $user, $canvas; 228 // Full firstname and lastname separated with a dot : firstname.lastname 229 include_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php'; 230 require_once DOL_DOCUMENT_ROOT.'/core/lib/security2.lib.php';sfDoctrineRoute.class.php http://opac-sbweb.googlecode.com/svn/trunk/ | PHP | 163 lines
1<?php 2 20 * @author Jonathan H. Wage <jonwage@gmail.com> 21 * @version SVN: $Id: sfDoctrineRoute.class.php 11475 2008-09-12 11:07:23Z fabien $ 22 */ 139 { 140 if (isset($this->options['convert']) || method_exists($object, 'toParams')) 141 {be_embed_media.php http://bedita.googlecode.com/svn/trunk/ | PHP | 357 lines
1<?php 2/*-----8<-------------------------------------------------------------------- 28 * 29 * $Id: be_embed_media.php 3905 2012-08-08 16:21:17Z ste $ 30 */ 100 101 if (method_exists($this, "show" . ucfirst($params["presentation"]) . $model)) { 102 $output = $this->{"show" . ucfirst($params["presentation"]) . $model}($obj, $params, $htmlAttributes); 102 $output = $this->{"show" . ucfirst($params["presentation"]) . $model}($obj, $params, $htmlAttributes); 103 } elseif (method_exists($this, "show" . $model)) { 104 $output = $this->{"show" . $model}($obj, $params, $htmlAttributes);SMW_DV_URI.php git://pkgs.fedoraproject.org/mediawiki-semantic | PHP | 290 lines
1<?php 2/** 131 132 $check = method_exists( 'Sanitizer', 'validateEmail' ) ? Sanitizer::validateEmail( $value ) : self::validateEmail( $value ); 133 if ( !$check ) {Item.php https://github.com/OpenMage/magento-mirror.git | PHP | 447 lines
1<?php 2/** 9 * It is also available through the world-wide-web at this URL: 10 * http://opensource.org/licenses/osl-3.0.php 11 * If you did not receive a copy of the license and are unable to 23 * @copyright Copyright (c) 2006-2020 Magento, Inc. (http://www.magento.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 234 $customSetter = '_setAttribute' . ucfirst($name); 235 if (method_exists($this, $customSetter)) { 236 $this->$customSetter($name, $value, $type);DataExtension.php git://github.com/silverstripe/sapphire.git | PHP | 245 lines
1<?php 2/** 54 // @deprecated 2.4 - use extraStatics() now, not extraDBFields() 55 if(method_exists($extensionClass, 'extraDBFields')) { 56 Deprecation::notice('2.4', 'DataExtension::extraDBFields() is deprecated. Please use extraStatics() instead.'); 65 // If there aren't any extraStatics we shouldn't try to load them. 66 if (!method_exists($extensionClass, $extraStaticsMethod) ) return; 67Reporter.php git://github.com/jasonhinkle/phreeze.git | PHP | 329 lines
1<?php 2/** @package verysimple::Phreeze */ 109 { 110 if (method_exists($rp,"setAccessible")) 111 { 116 { 117 // if < php 5.3 we can't serialize private vars 118 $propvals[$propname] = $rp->getValue($this); 141 { 142 if (method_exists($rp,"setAccessible")) 143 { 148 { 149 // if < php 5.3 we can't serialize private vars 150 $rp->setValue($this,$propvals[$propname]);Cloud.php https://github.com/OpenMage/magento-mirror.git | PHP | 410 lines
1<?php 2/** 25 */ 26#require_once 'Zend/Tag/Item.php'; 27 121 $method = 'set' . ucfirst($key); 122 if (method_exists($this, $method)) { 123 $this->$method($value); 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'); 174 } else { 175 #require_once 'Zend/Tag/Cloud/Exception.php'; 176 throw new Zend_Tag_Cloud_Exception('Tag must be an instance of Zend_Tag_Taggable or an array'); 203 if (null === $this->_tags) { 204 #require_once 'Zend/Tag/ItemList.php'; 205 $this->setItemList(new Zend_Tag_ItemList());form.php https://bitbucket.org/chamilo/chamilo-dev/ | PHP | 418 lines
1<?php 2/** 5 * @subpackage WebTester 6 * @version $Id: form.php 1672 2008-03-02 04:47:34Z edwardzyang $ 7 */ 11 */ 12require_once (dirname(__FILE__) . '/tag.php'); 13require_once (dirname(__FILE__) . '/encoding.php'); 13require_once (dirname(__FILE__) . '/encoding.php'); 14require_once (dirname(__FILE__) . '/selector.php'); 15/**#@-*/ 302 { 303 if (method_exists($this->_widgets[$i], 'setLabel')) 304 {CPSComponent.php http://ps-yii-extensions.googlecode.com/svn/trunk/ | PHP | 393 lines
1<?php 2/* 18 * @author Jerry Ablan <jablan@pogostick.com> 19 * @version SVN $Id: CPSComponent.php 406 2010-11-08 15:30:07Z jerryablan@gmail.com $ 20 * @since v1.0.0 287 * Calls the named method which is not a class method. 288 * Do not call this method. This is a PHP magic method that we override 289 * @param string $name The method name 305 { 306 if ( method_exists( $_component, $name ) ) 307 return call_user_func_array( array( $_component, $name ), $parameterList ); 345 * @param <type> $category The category/method of the output 346 * @param <type> $route The destination of output. Can be 'echo', 'trace|info|error|debug|etc...', 'http', 'firephp' 347 */mdl.upgrade.php http://phpfor.googlecode.com/svn/trunk/ | PHP | 271 lines
1<?php 2class mdl_upgrade extends modelFactory{ 8 function exec($step){ 9 if(method_exists($this,$action = 'action_'.$step)){ 10 $this->$action(); 27 28 if($this->checkFileList(BASE_DIR.'/upgrade.php',$failedFiles,1) || $_GET['ignore_lost']){ 29 $scripts = $this->scripts($dbver,$versionTxt['rev']); 53 if(!file_exists(HOME_DIR.'/logs/upgrade_'.substr( $_POST['file'] ,0 ,-4 ).'_'.$_POST['timeline'].'.log.php')){ 54 error_log('<?php exit()?>'." \n \n",3,HOME_DIR.'/logs/upgrade_'.substr( $_POST['file'] ,0 ,-4 ).'_'.$_POST['timeline'].'.log.php'); 55 } 58 59 case '.php': 60 include(CORE_DIR.'/updatescripts/'.$file); 139 if (is_file($dir.'/'.$file) && $file{0}!='.'){ 140 if(preg_match('/^([0-9]+)\.(sql|php)$/i',$file,$match)){ 141 if($match[1]>$from && $match[1]<=$to){MockTest.php git://github.com/padraic/mockery.git | PHP | 231 lines
1<?php 2/** 12 * obtain it through the world-wide-web, please send an email 13 * to padraic@php.net so we can send you a copy immediately. 14 * 21 22use Mockery\Adapter\Phpunit\MockeryTestCase; 23use Mockery\Mock; 70 $mock = mock('ClassWithNoToString'); 71 $this->assertTrue(method_exists($mock, '__toString')); 72 }form_validator_html_editor_options.class.php https://bitbucket.org/chamilo/chamilo-dev/ | PHP | 266 lines
1<?php 2namespace common\libraries; 155 $processing_function = 'process_' . $available_option; 156 if (method_exists($this, $processing_function)) 157 { 251 { 252 $file = dirname(__FILE__) . '/html_editor_options/' . $type . '_html_editor_options.class.php'; 253 $class = __NAMESPACE__ . '\\' . 'FormValidator' . Utilities :: underscores_to_camelcase($type) . 'HtmlEditorOptions';GeneratedObjectSetColumnTypeTest.php git://github.com/propelorm/Propel2.git | PHP | 305 lines
1<?php 2 64 { 65 $this->assertTrue(method_exists('MyNameSpace\ComplexColumnTypeEntitySet', 'getTags')); 66 $this->assertTrue(method_exists('MyNameSpace\ComplexColumnTypeEntitySet', 'hasTag')); 66 $this->assertTrue(method_exists('MyNameSpace\ComplexColumnTypeEntitySet', 'hasTag')); 67 $this->assertTrue(method_exists('MyNameSpace\ComplexColumnTypeEntitySet', 'setTags')); 68 $this->assertTrue(method_exists('MyNameSpace\ComplexColumnTypeEntitySet', 'addTag')); 68 $this->assertTrue(method_exists('MyNameSpace\ComplexColumnTypeEntitySet', 'addTag')); 69 $this->assertTrue(method_exists('MyNameSpace\ComplexColumnTypeEntitySet', 'removeTag')); 70 // only plural column names get a tester, an adder, and a remover method 70 // only plural column names get a tester, an adder, and a remover method 71 $this->assertTrue(method_exists('MyNameSpace\ComplexColumnTypeEntitySet', 'getBar')); 72 $this->assertFalse(method_exists('MyNameSpace\ComplexColumnTypeEntitySet', 'hasBar')); 72 $this->assertFalse(method_exists('MyNameSpace\ComplexColumnTypeEntitySet', 'hasBar')); 73 $this->assertTrue(method_exists('MyNameSpace\ComplexColumnTypeEntitySet', 'setBar')); 74 $this->assertFalse(method_exists('MyNameSpace\ComplexColumnTypeEntitySet', 'addBar'));Variables.php git://github.com/eryx/php-framework-benchmark.git | PHP | 338 lines
1<?php 2/** 219 if (is_object($spec)) { 220 if (method_exists($spec, 'toArray')) { 221 $spec = $spec->toArray();document.php git://github.com/Dolibarr/dolibarr.git | PHP | 336 lines
27require '../../main.inc.php'; 28require_once DOL_DOCUMENT_ROOT.'/projet/class/project.class.php'; 29require_once DOL_DOCUMENT_ROOT.'/projet/class/task.class.php'; 32require_once DOL_DOCUMENT_ROOT.'/core/lib/images.lib.php'; 33require_once DOL_DOCUMENT_ROOT.'/core/class/html.formfile.class.php'; 34 76 77$permissiontoadd = $$user->rights->mrp->write; // Used by the include of actions_addupdatedelete.inc.php and actions_linkedfiles.inc.php 78 91 } else { 92 header("Location: ".DOL_URL_ROOT.'/projet/tasks.php?id='.$projectstatic->id.($withproject ? '&withproject=1' : '').(empty($mode) ? '' : '&mode='.$mode)); 93 exit; 98if ($id > 0 || !empty($ref)) { 99 if (!empty($conf->global->PROJECT_ALLOW_COMMENT_ON_TASK) && method_exists($object, 'fetchComments') && empty($object->comments)) { 100 $object->fetchComments();Callback.php git://github.com/AlephTav/Aleph.git | PHP | 418 lines
1<?php 2/** 205 if ($this->callable || class_exists($this->class, $autoload)) { 206 if (!method_exists($this->class, $this->method)) { 207 return false;event_api.php git://pkgs.fedoraproject.org/mantis | PHP | 334 lines
1<?php 2# MantisBT - a php based bugtracking system 26 * 27 * @uses error_api.php 28 * @uses pluging_api.php 182 183 if( method_exists( $g_plugin_cache[$p_plugin], $p_callback ) ) { 184 $t_value = call_user_func_array( array( $g_plugin_cache[$p_plugin], $p_callback ), array_merge( array( $p_event ), $p_params ) );Verifier.php http://ipmanger.googlecode.com/svn/trunk/ | PHP | 374 lines
1<?php 2///////////////////////////////////////////////////////////////////////////// 2///////////////////////////////////////////////////////////////////////////// 3// FleaPHP Framework 4// 7// ??????????????? LICENSE.txt ??? 8// ???? http://www.fleaphp.org/ ??????? 9///////////////////////////////////////////////////////////////////////////// 16 * @package Core 17 * @version $Id: Verifier.php,v 1.1 2008/09/10 03:00:12 jiang Exp $ 18 */ 206 $func = 'is' . $rule['complexType']; 207 if (!method_exists($this, $func)) { 208 FLEA::loadClass('FLEA_Exception_InvalidArguments');settings.php git://github.com/ci-bonfire/Bonfire.git | PHP | 381 lines
1<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); 2/* 43 { 44 if (method_exists($this, $method)) 45 {tb_notify.php http://phpfor.googlecode.com/svn/trunk/ | PHP | 313 lines
1<?php 2require_once(CORE_DIR.'/kernel.php'); 2require_once(CORE_DIR.'/kernel.php'); 3require_once(CORE_DIR.'/func_ext.php'); 4class taobao_action extends kernel{ 16 if(!$result_msg||!isset($_GET['result_code'])){ 17 if(method_exists($this,$method)){ 18 $this->db = $this->database(); 76 ??????/?? 77 index.php?ctl=order/order&act=set_order_price 78 135 ?????? 136 index.php?ctl=order/order&act=close_order 137 */ 260 if(isset($_GET['op'])){ 261 echo '<script>alert("????");window.location.href="'.$this->base_url().'shopadmin/index.php"</script>'; 262 }else{copy.php git://github.com/forkcms/forkcms.git | PHP | 184 lines
1<?php 2 160 // check if the method exists 161 if(method_exists('BackendSearchModel', 'saveIndex')) 162 {sfValidationExecutionFilter.class.php http://openirudi.googlecode.com/svn/trunk/ | PHP | 286 lines
1<?php 2 21 * @author Sean Kerr <sean@code-box.org> 22 * @version SVN: $Id: sfValidationExecutionFilter.class.php 10270 2008-07-13 21:51:03Z Carl.Vondrick $ 23 * @deprecated Deprecated since symfony 1.1 146 $validateToRun = 'validate'.ucfirst($actionName); 147 $manualValidated = method_exists($actionInstance, $validateToRun) ? $actionInstance->$validateToRun() : $actionInstance->validate(); 148 195 $handleErrorToRun = 'handleError'.ucfirst($actionInstance->getActionName()); 196 $viewName = method_exists($actionInstance, $handleErrorToRun) ? $actionInstance->$handleErrorToRun() : $actionInstance->handleError(); 197error.php http://skygames.googlecode.com/svn/trunk/ | PHP | 380 lines
1<?php 2/* SVN FILE: $Id: error.php 7861 2008-11-11 00:14:38Z mark_story $ */ 7 * 8 * PHP versions 4 and 5 9 * 9 * 10 * CakePHP(tm) : Rapid Development Framework (http://www.cakephp.org) 11 * Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org) 17 * @copyright Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org) 18 * @link http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project 19 * @package cake 20 * @subpackage cake.cake.libs 21 * @since CakePHP(tm) v 0.10.5.1732 22 * @version $Revision: 7861 $ 24 * @lastmodified $Date: 2008-11-10 18:14:38 -0600 (Mon, 10 Nov 2008) $ 25 * @license http://www.opensource.org/licenses/mit-license.php The MIT License 26 */myapp.php http://devj.googlecode.com/svn/trunk/ | PHP | 454 lines
1<?php 2 148 $class_name .= $controller_name; 149 $filename = "{$controller_name}_controller.php"; 150 182 183 if (is_object($response) && method_exists($response, 'execute')){ 184 $response = $response->execute(); 355 { 356 $extname = !empty($this->_app_config['CONFIG_FILE_EXTNAME']) ? $this->_app_config['CONFIG_FILE_EXTNAME'] : 'php'; 357 $config_dir = $this->_app_config['CONFIG_DIR']; 378 379 $config = require(M_DIR . '/_config/default_config.php'); 380 foreach ($files as $filename => $scope) 437 { 438 require $this->_app_config['ROOT_DIR'] . '/public/403.php'; 439 }controller.php http://j3-php-framework.googlecode.com/svn/trunk/ | PHP | 290 lines
2include("libs/log4php/Logger.php"); 3require_once("libs/FirePHPCore/FirePHP.class.php"); 4require_once("libs/localuser.php"); 15 static public $instancia = null; 16 protected $myFirePhp; 17 protected $logger; 66 ob_start(); 67 $this->myFirePhp = FirePHP::getInstance(true); 68 //Logger 95 } else 96 if (file_exists("vistas/$name/$vista.php")) { 97 $this->showView("vistas/$name/$vista.php"); 98 } else { 99 echo "ERROR: Vista <strong>$vista.php</strong> no definida. :("; 100 }View.php git://github.com/codeguy/Slim.git | PHP | 283 lines
1<?php 2/** 2/** 3 * Slim - a micro PHP 5 framework 4 * 171 // Ensure original behavior is maintained. DO NOT invoke stored Closures. 172 if (is_object($args[1]) && method_exists($args[1], '__invoke')) { 173 $this->data->set($args[0], $this->data->protect($args[1]));FileCommentSniff.php git://github.com/jonswar/perl-code-tidyall.git | PHP | 569 lines
86 * 87 * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned. 88 * @param int $stackPtr The position of the current token 300 * 301 * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned. 302 * @param array $tags The tokens for these tags. 342 * 343 * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned. 344 * @param array $tags The tokens for these tags. 395 * 396 * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned. 397 * @param array $tags The tokens for these tags. 439 * 440 * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned. 441 * @param array $tags The tokens for these tags.actions_sendmails.inc.php git://github.com/Dolibarr/dolibarr.git | PHP | 459 lines
38 39 require_once DOL_DOCUMENT_ROOT.'/core/lib/files.lib.php'; 40 54 55 require_once DOL_DOCUMENT_ROOT.'/core/lib/files.lib.php'; 56 86 87 include_once DOL_DOCUMENT_ROOT.'/core/class/html.formmail.class.php'; 88 $formmail = new FormMail($db); 153 } else { 154 dol_print_error('', "Use actions_sendmails.in.php for an element/object '".$object->element."' that is not supported"); 155 } 306 // <img alt="" src="'.$urlwithroot.'viewimage.php?modulepart=medias&entity=1&file=image/ldestailleur_166x166.jpg" style="height:166px; width:166px" /> 307 $message = preg_replace('/(<img.*src=")[^\"]*viewimage\.php([^\"]*)modulepart=medias([^\"]*)file=([^\"]*)("[^\/]*\/>)/', '\1'.$urlwithroot.'/viewimage.php\2modulepart=medias\3file=\4\5', $message); 308Parsedown.php git://github.com/ryancramerdesign/ProcessWire.git | PHP | 1528 lines
1<?php 2 183 { 184 if (method_exists($this, 'block'.$CurrentBlock['type'].'Complete')) 185 { 226 227 if (method_exists($this, 'block'.$blockType.'Continue')) 228 { 255 256 if (isset($CurrentBlock['incomplete']) and method_exists($this, 'block'.$CurrentBlock['type'].'Complete')) 257 {TransformationPluginsTest.php git://github.com/phpmyadmin/phpmyadmin.git | PHP | 1297 lines
1<?php 2 4 5namespace PhpMyAdmin\Tests\Plugins\Transformations; 6 6 7use PhpMyAdmin\FieldMetadata; 8use PhpMyAdmin\Plugins\Transformations\Input\Image_JPEG_Upload; 8use PhpMyAdmin\Plugins\Transformations\Input\Image_JPEG_Upload; 9use PhpMyAdmin\Plugins\Transformations\Input\Text_Plain_FileUpload; 10use PhpMyAdmin\Plugins\Transformations\Input\Text_Plain_Iptolong; 10use PhpMyAdmin\Plugins\Transformations\Input\Text_Plain_Iptolong; 11use PhpMyAdmin\Plugins\Transformations\Input\Text_Plain_RegexValidation; 12use PhpMyAdmin\Plugins\Transformations\Output\Application_Octetstream_Download; 12use PhpMyAdmin\Plugins\Transformations\Output\Application_Octetstream_Download; 13use PhpMyAdmin\Plugins\Transformations\Output\Application_Octetstream_Hex; 14use PhpMyAdmin\Plugins\Transformations\Output\Image_JPEG_Inline;Hash.php git://github.com/josegonzalez/git-php.git | PHP | 1237 lines
1<?php 2/** 2/** 3 * CakePHP(tm) : Rapid Development Framework (https://cakephp.org) 4 * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org) 11 * @since 2.2.0 12 * @license https://opensource.org/licenses/mit-license.php MIT License 13 */ 28 * 29 * @link https://book.cakephp.org/3.0/en/core-libraries/hash.html 30 */ 45 * @return mixed The value fetched from the array, or null. 46 * @link https://book.cakephp.org/3.0/en/core-libraries/hash.html#Cake\Utility\Hash::get 47 */ 121 * if there are no matches. 122 * @link https://book.cakephp.org/3.0/en/core-libraries/hash.html#Cake\Utility\Hash::extract 123 */FileCommentSniff.php git://github.com/squizlabs/PHP_CodeSniffer.git | PHP | 581 lines
86 * 87 * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned. 88 * @param int $stackPtr The position of the current token 213 * 214 * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned. 215 * @param int $stackPtr The position of the current token 312 * 313 * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned. 314 * @param array $tags The tokens for these tags. 354 * 355 * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned. 356 * @param array $tags The tokens for these tags. 407 * 408 * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned. 409 * @param array $tags The tokens for these tags.WireInput.php git://github.com/ryancramerdesign/ProcessWire.git | PHP | 522 lines
1<?php 2 6 * WireInputData and the WireInput class together form a simple 7 * front end to PHP's $_GET, $_POST, and $_COOKIE superglobals. 8 * 31 * @method string name($varName) Sanitize to ProcessWire name format 32 * @method string varName($varName) Sanitize to PHP variable name format 33 * @method string fieldName($varName) Sanitize to ProcessWire Field name format 48 * @method string string($varName) Return a value guaranteed to be a string, regardless of what type $varName is. Does not sanitize. 49 * @method string date($varName, $dateFormat) Validate and return $varName in the given PHP date() or strftime() format. 50 * @method int int($varName, $min = 0, $max = null) Sanitize value to integer with optional min and max. Unsigned if max >= 0, signed if max < 0. 160 $method = ltrim($method, '_'); 161 if(!method_exists($sanitizer, $method)) { 162 $method = "___$method"; 162 $method = "___$method"; 163 if(!method_exists($sanitizer, $method)) { 164 $method = ltrim($method, "_");NavigationTree.php git://github.com/phpmyadmin/phpmyadmin.git | PHP | 1467 lines
1<?php 2/** 7 8namespace PhpMyAdmin\Navigation; 9 9 10use PhpMyAdmin\CheckUserPrivileges; 11use PhpMyAdmin\DatabaseInterface; 11use PhpMyAdmin\DatabaseInterface; 12use PhpMyAdmin\Html\Generator; 13use PhpMyAdmin\Navigation\Nodes\Node; 13use PhpMyAdmin\Navigation\Nodes\Node; 14use PhpMyAdmin\Navigation\Nodes\NodeDatabase; 15use PhpMyAdmin\Navigation\Nodes\NodeTable; 15use PhpMyAdmin\Navigation\Nodes\NodeTable; 16use PhpMyAdmin\Navigation\Nodes\NodeTableContainer; 17use PhpMyAdmin\Navigation\Nodes\NodeViewContainer;ReplaceController.php git://github.com/phpmyadmin/phpmyadmin.git | PHP | 672 lines
1<?php 2 4 5namespace PhpMyAdmin\Controllers\Table; 6 6 7use PhpMyAdmin\Controllers\Database\SqlController as DatabaseSqlController; 8use PhpMyAdmin\Controllers\Sql\SqlController; 8use PhpMyAdmin\Controllers\Sql\SqlController; 9use PhpMyAdmin\Controllers\Table\SqlController as TableSqlController; 10use PhpMyAdmin\Core; 10use PhpMyAdmin\Core; 11use PhpMyAdmin\DatabaseInterface; 12use PhpMyAdmin\File; 12use PhpMyAdmin\File; 13use PhpMyAdmin\Html\Generator; 14use PhpMyAdmin\InsertEdit;Plugins.php git://github.com/phpmyadmin/phpmyadmin.git | PHP | 617 lines
8use PhpMyAdmin\Html\MySQLDocumentation; 9use PhpMyAdmin\Plugins\AuthenticationPlugin; 10use PhpMyAdmin\Plugins\ExportPlugin; 10use PhpMyAdmin\Plugins\ExportPlugin; 11use PhpMyAdmin\Plugins\ImportPlugin; 12use PhpMyAdmin\Plugins\Plugin; 17use PhpMyAdmin\Properties\Options\Items\HiddenPropertyItem; 18use PhpMyAdmin\Properties\Options\Items\MessageOnlyPropertyItem; 19use PhpMyAdmin\Properties\Options\Items\NumberPropertyItem; 136 137 $class = sprintf('PhpMyAdmin\\Plugins\\%s\\%s', $type, $fileInfo->getBasename('.php')); 138 if (! class_exists($class)) { 290 $text = null; 291 if (method_exists($propertyGroup, 'getText')) { 292 $text = $propertyGroup->getText();InsertEdit.php git://github.com/phpmyadmin/phpmyadmin.git | PHP | 2582 lines
1<?php 2/** 7 8namespace PhpMyAdmin; 9 9 10use PhpMyAdmin\Html\Generator; 11use PhpMyAdmin\Plugins\TransformationsPlugin; 11use PhpMyAdmin\Plugins\TransformationsPlugin; 12use PhpMyAdmin\Utils\Gis; 13 35use function md5; 36use function method_exists; 37use function min; 53/** 54 * PhpMyAdmin\InsertEdit class 55 */PropelConfiguration.php git://github.com/propelorm/Propel2.git | PHP | 421 lines
1<?php 2 31 32 if (method_exists($treeBuilder, 'getRootNode')) { 33 $rootNode = $treeBuilder->getRootNode(); 84 ->scalarNode('outputDir')->defaultValue(getcwd())->end() 85 ->scalarNode('phpDir')->defaultValue(getcwd() . '/generated-classes')->end() 86 ->scalarNode('phpConfDir')->defaultValue(getcwd() . '/generated-conf')->end() 220 ->children() 221 ->booleanNode('samePhpName')->defaultFalse()->end() 222 ->booleanNode('addVendorInfo')->defaultFalse()->end()MongodbSource.php git://github.com/ichikaway/cakephp-mongodb.git | PHP | 1615 lines
1<?php 2/** 2/** 3 * A CakePHP datasource for the mongoDB (http://www.mongodb.org/) document-oriented database. 4 * 4 * 5 * This datasource uses Pecl Mongo (http://php.net/mongo) 6 * and is thus dependent on PHP 5.0 and greater. 23 * @subpackage mongodb.models.datasources 24 * @license http://www.opensource.org/licenses/mit-license.php The MIT License 25 */ 205 if (isset($this->config['slaveok'])) { 206 if (method_exists($this->connection, 'setSlaveOkay')) { 207 $this->connection->setSlaveOkay($this->config['slaveok']);overloadable_php5.php http://skygames.googlecode.com/svn/trunk/ | PHP | 107 lines
1<?php 2/* SVN FILE: $Id: overloadable_php5.php 7847 2008-11-08 02:54:07Z renan.saddam $ */ 3/** 5 * 6 * PHP versions 4 and 5 7 * 7 * 8 * CakePHP(tm) : Rapid Development Framework (http://www.cakephp.org) 9 * Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org) 15 * @copyright Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org) 16 * @link http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project 17 * @package cake 18 * @subpackage cake.cake.libs 19 * @since CakePHP(tm) v 1.2 20 * @version $Revision: 7847 $Repository.php git://github.com/eryx/php-framework-benchmark.git | PHP | 320 lines
1<?php 2/** 232 foreach ($searchProperties as $searchPropertyName => $searchPropertyValue) { 233 if (method_exists($metadata, 'get' . $searchPropertyName)) { 234 if ($metadata->{'get' . $searchPropertyName}() != $searchPropertyValue) { 287 foreach ($metadatasByType as $type => $metadatas) { 288 $string .= $type . PHP_EOL; 289 foreach ($metadatas as $metadata) { 290 $metadataString = ' ' . $metadata->__toString() . PHP_EOL; 291 //$metadataString = str_replace(PHP_EOL, PHP_EOL . ' ', $metadataString); 292 $string .= $metadataString;View.php http://skeleton.googlecode.com/svn/trunk/ | PHP | 310 lines
1<?php 2/** 2/** 3 * View.php 4 * 4 * 5 * @license http://www.opensource.org/licenses/bsd-license.php BSD 6 * @link http://skeletonframework.com/ 156 { 157 if (substr($template, -4, 4) != '.php') { 158 $template .= '.php'; 214 foreach ($this->data as $name => $value) { 215 if (is_object($this->data[$name]) && method_exists($this->data[$name], 'render')) { 216 $this->renderer->set($name, $this->data[$name]->render()); 221 } 222 if (method_exists($this->renderer, 'render')) { 223 $this->content = $this->renderer->render();function.html_checkboxes.php git://github.com/modxcms/revolution.git | PHP | 286 lines
1<?php 2/** 9 * Smarty {html_checkboxes} function plugin 10 * File: function.html_checkboxes.php 11 * Type: function 31 * 32 * @link http://www.smarty.net/manual/en/language.function.html.checkboxes.php {html_checkboxes} 33 * (Smarty online manual) 50 'function' => 'smarty_function_escape_special_chars', 51 'file' => SMARTY_PLUGINS_DIR . 'shared.escape_special_chars.php' 52 ) 88 if (is_object($_sel)) { 89 if (method_exists($_sel, '__toString')) { 90 $_sel = smarty_function_escape_special_chars((string)$_sel->__toString()); 104 } elseif (is_object($_val)) { 105 if (method_exists($_val, '__toString')) { 106 $selected = smarty_function_escape_special_chars((string)$_val->__toString());