100+ results results for 'php method_exists repo:intel352/yii-bootstrap' (177 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')){sparkpagecache.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();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 {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 {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 errorreflection_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();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 );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){MapDBDataRetriever.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 {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 {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');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();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 {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 stipulationObject.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'];DesignerRules.php https://bitbucket.org/zurmo/zurmo/ | PHP | 320 lines
1<?php 2 /********************************************************************************* 123 ); 124 if (method_exists($ruleClassName, 'resolveCellMetadata')) 125 {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();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();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 }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);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 {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 {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);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)) {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 ) {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]);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){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';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();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]));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());action.finder_lister.php http://phpfor.googlecode.com/svn/trunk/ | PHP | 144 lines
1<?php 2if(!function_exists('type_modifier_date')){ 2if(!function_exists('type_modifier_date')){ 3 require(CORE_INCLUDE_DIR.'/modifiers.php'); 4} 78 } 79 if(method_exists($object,'modifier_'.$col)){ 80 $key_modifier[$col] = array(); 116 }elseif($list){ 117 if(!function_exists('object_cols_type')) require(CORE_INCLUDE_DIR.'/core/object.cols.type.php'); 118 object_cols_type($list, $colArray, $key_modifier, $object_modifier, $type_modifier, $object,'col',$escape_html); 126 127 $finder['detail_url'] = method_exists($controller,'_detail'); 128 $finder['pager'] = array( 138 restore_error_handler(); 139 if(strpos($errfile,'AloneDB.php')){ 140 $GLOBALS['last_error'] = $errstr;Api.php git://github.com/Shadez/Framework.git | PHP | 349 lines
1<?php 2 48 49 require_once(APP_DIR . 'API.php'); 50 269 $this->m_apiResponse = $this->c('SiteApi')->runApiMethod($apiMethod, $apiData); 270 elseif (method_exists($this, 'apiMethod_' . $apiMethod['name'])) 271 {ListView.php https://code.google.com/p/vtiger-ru-fork/ | PHP | 216 lines
1<?php 2/*+********************************************************************************** 12 13require_once('Smarty_setup.php'); 14require_once('include/ListView/ListView.php'); 14require_once('include/ListView/ListView.php'); 15require_once('modules/CustomView/CustomView.php'); 16require_once('include/DatabaseUtil.php'); 17 18checkFileAccess("modules/$currentModule/$currentModule.php"); 19require_once("modules/$currentModule/$currentModule.php"); 70// Feature available from 5.1 71if(method_exists($customView, 'isPermittedChangeStatus')) { 72 // Approving or Denying status-public by the admin in CustomView 204// Gather the custom link information to display 205include_once('vtlib/Vtiger/Link.php'); 206$customlink_params = Array('MODULE'=>$currentModule, 'ACTION'=>vtlib_purify($_REQUEST['action']), 'CATEGORY'=> $category);Form.php git://github.com/jeromeschneider/Baikal.git | PHP | 368 lines
1<?php 2################################################################# 153 $sMethod = "validate" . ucfirst(strtolower($sValidation)); 154 if(!method_exists($this, $sMethod)) { 155 throw new \Exception("\Formal\Form::execute(): no validation method for '" . htmlspecialchars($sValidation) . "'");CFormElement.php http://chenjin.googlecode.com/svn/trunk/ | PHP | 169 lines
1<?php 2/** 20 * @author Qiang Xue <qiang.xue@gmail.com> 21 * @version $Id: CFormElement.php 242 2012-03-29 15:18:01Z mole1230 $ 22 * @package system.web.form 54 * Converts the object to a string. 55 * This is a PHP magic method. 56 * The default implementation simply calls {@link render} and return 66 * Returns a property value or an attribute value. 67 * Do not call this method. This is a PHP magic method that we override 68 * to allow using the following syntax to read a property or attribute: 80 $getter='get'.$name; 81 if(method_exists($this,$getter)) 82 return $this->$getter(); 91 * Sets value of a property or attribute. 92 * Do not call this method. This is a PHP magic method that we override 93 * to allow using the following syntax to set a property or attribute.View.php http://mvh-source.googlecode.com/svn/trunk/ | PHP | 179 lines
1<?php 2/** 27 if( ($property = '_' . $name) && property_exists( $this, $property ) ){ 28 if( ($method = 'set' . ucfirst($name)) && method_exists( $this, $method ) ){ 29 $this->$method( $value ); 141 if( !key_exists( $name, $this->_helpers ) ){ 142 $base = ucfirst( $name ) . '.php'; 143 $paths = $this->getHelperPath();ActiveSessionTest.php http://creovel.googlecode.com/svn/trunk/ | PHP | 128 lines
1<?php 2/** 11 **/ 12require_once dirname(dirname(__FILE__)) . DIRECTORY_SEPARATOR . 'env.php'; 13 13 14class ActiveSessionTest extends PHPUnit_Framework_TestCase 15{ 34 35 $this->drop_db_sql = "DROP DATABASE IF EXISTS `phpunit`;"; 36 $this->create_db_sql = "CREATE DATABASE `phpunit`;"; 36 $this->create_db_sql = "CREATE DATABASE `phpunit`;"; 37 $this->select_db_sql = "USE `phpunit`;"; 38 $this->drop_table_sql = "DROP TABLE IF EXISTS `".ActiveSession::$_table_name_."`;"; 47 48 $this->session_id = 'PHPUNIT'.time(); 49 $this->session_val = 'test data';faq.admin.view.php http://xe-faq.googlecode.com/svn/trunk/ | PHP | 211 lines
1<?php 2 /** 149 $oModule = &getModule($module, $type); 150 if(!$oModule || !method_exists($oModule, $called_method)) continue; 151 152 $output = $oModule->{$called_method}($content); 153 if(is_object($output) && method_exists($output, 'toBool') && !$output->toBool()) return $output; 154 unset($oModule);ARC2_TestHandler.php git://github.com/semsol/arc2.git | PHP | 435 lines
1<?php 2/* 31 $m = 'run' . $type; 32 $r = method_exists($this, $m) ? $this->$m($id) : array('pass' => 0, 'info' => 'not supported'); 33 sleep(1);InitController.class.php http://mycaptain.googlecode.com/svn/ | PHP | 571 lines
1<?php 2/** 81 // ?????????? 82 if ( method_exists ( $this, 'filter_' ) ) { 83menu.inc git://pkgs.fedoraproject.org/drupal7-migrate | Pascal | 189 lines
1<?php 2 117 // Then call any prepare handler for this specific Migration. 118 if (method_exists($migration, 'prepare')) { 119 $migration->prepare($menu, $row); 131 // Then call any complete handler for this specific Migration. 132 if (method_exists($migration, 'complete')) { 133 $migration->complete($menu, $row); 166 // Then call any complete handler for this specific Migration. 167 if (method_exists($migration, 'prepareRollback')) { 168 $migration->prepareRollback($menu_name); 183 // Then call any complete handler for this specific Migration. 184 if (method_exists($migration, 'completeRollback')) { 185 $migration->completeRollback($menu_name);Tester.php git://github.com/atk4/atk4.git | PHP | 332 lines
1<?php 2/** 112 try { 113 if (method_exists($test_obj, 'prepare_'.$m)) { 114 $input = $test_obj->{'prepare_'.$m}($vari, $method); 132 133 $test_func = method_exists($test_obj, 'test_'.$m) ? 134 'test_'.$m : 'test'; 225 // Input is a result of preparation function 226 if (method_exists($test_obj, 'prepare_'.$m)) { 227 $input = $test_obj->{'prepare_'.$m}($vari, $method); 247 248 $test_func = method_exists($test_obj, 'test_'.$m) ? 249 'test_'.$m : 'test';PartialHelper.php http://openirudi.googlecode.com/svn/trunk/ | PHP | 390 lines
1<?php 2 16 * @author Fabien Potencier <fabien.potencier@symfony-project.com> 17 * @version SVN: $Id: PartialHelper.php 10227 2008-07-11 19:36:32Z fabien $ 18 */ 160 * The partial name is composed as follows: 'mymodule/mypartial'. 161 * The partial file name is _mypartial.php and is looked for in modules/mymodule/templates/. 162 * If the partial name doesn't include a module name, 358 $componentToRun = 'execute'.ucfirst($componentName); 359 if (!method_exists($componentInstance, $componentToRun)) 360 { 360 { 361 if (!method_exists($componentInstance, 'execute')) 362 {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 235ViewHelper.php git://github.com/michael-romer/zf-boilerplate.git | PHP | 256 lines
1<?php 2/** 21/** Zend_Form_Decorator_Abstract */ 22require_once 'Zend/Form/Decorator/Abstract.php'; 23 41 * @license http://framework.zend.com/license/new-bsd New BSD License 42 * @version $Id: ViewHelper.php 23775 2011-03-01 17:25:24Z ralph $ 43 */ 155 156 if (method_exists($element, 'getSeparator')) { 157 if (null !== ($listsep = $element->getSeparator())) { 224 if (null === $view) { 225 require_once 'Zend/Form/Decorator/Exception.php'; 226 throw new Zend_Form_Decorator_Exception('ViewHelper decorator cannot render without a registered view object'); 228 229 if (method_exists($element, 'getMultiOptions')) { 230 $element->getMultiOptions();ArchivableBehaviorQueryBuilderModifierTest.php git://github.com/propelorm/Propel2.git | PHP | 340 lines
1<?php 2 105 { 106 $this->assertTrue(method_exists('\ArchivableTest100Query', 'archive')); 107 } 275 { 276 $this->assertTrue(method_exists('\ArchivableTest300Query', 'updateWithoutArchive')); 277 } 301 { 302 $this->assertTrue(method_exists('\ArchivableTest100Query', 'deleteWithoutArchive')); 303 $this->assertTrue(method_exists('\ArchivableTest100Query', 'deleteAllWithoutArchive'));MenuService.class.php http://pagizer-cms.googlecode.com/svn/trunk/ | PHP | 458 lines
1<?php 2 226 227 if(method_exists($node, "isTranslated")) 228 {Think.class.php http://thinkphp.googlecode.com/svn/trunk/ | PHP | 307 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: Think.class.php 2929 2012-05-02 06:45:47Z liu21st@gmail.com $ 12 14 +------------------------------------------------------------------------------ 15 * ThinkPHP Portal? 16 +------------------------------------------------------------------------------ 20 * @author liu21st <liu21st@gmail.com> 21 * @version $Id: Think.class.php 2929 2012-05-02 06:45:47Z liu21st@gmail.com $ 22 +------------------------------------------------------------------------------ImageController.php https://code.google.com/p/ecartcommerce/ | PHP | 264 lines
1<?php 2/** 251 252 if (!method_exists($this, $method)) { 253 Ecart::message()->addError(Ecart::translate('catalog')->__(Action.class.php http://thinkphp.googlecode.com/svn/trunk/ | PHP | 340 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: Action.class.php 2832 2012-03-21 01:05:36Z huangdijia $ 12 14 +------------------------------------------------------------------------------ 15 * ThinkPHP RESTFul ????? ??? 16 +------------------------------------------------------------------------------ 20 * @author liu21st <liu21st@gmail.com> 21 * @version $Id: Action.class.php 2832 2012-03-21 01:05:36Z huangdijia $ 22 +------------------------------------------------------------------------------hardwareDetectOppClass.php http://openirudi.googlecode.com/svn/trunk/ | PHP | 258 lines
1<?php 2 53 } 54 if (method_exists($this, 'set_' . $propertyName)) { 55 call_user_func(array($this, 'set_' . $propertyName), $value);AbstractClient.php git://github.com/zendframework/zf2.git | PHP | 318 lines
1<?php 2/** 80 $setMethodName = 'set' . $optionName; 81 if (method_exists($this, $setMethodName)) { 82 $this->{$setMethodName}($optionValue); 307 { 308 if (method_exists($class, $methodName)) { 309 call_user_func_array(array($class, $methodName), $callParameters); 309 call_user_func_array(array($class, $methodName), $callParameters); 310 } elseif (method_exists($class, $methodName . 'Action')) { 311 call_user_func_array(array($class, $methodName . 'Action'), $callParameters);LiquidStandardFilters.class.php git://github.com/harrydeluxe/php-liquid.git | PHP | 310 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 31 { 32 if (method_exists($input, 'size')) 33 {AdminHelper.php git://github.com/sonata-project/SonataAdminBundle.git | PHP | 330 lines
1<?php 2 203 204 if (!method_exists($object, $method)) { 205 $method = rtrim($method, 's'); 206 207 if (!method_exists($object, $method)) { 208 $method = sprintf('add%s', Inflector::classify(Inflector::singularize($mapping['fieldName']))); 209 210 if (!method_exists($object, $method)) { 211 throw new \RuntimeException(sprintf('Please add a method %s in the %s class!', $method, ClassUtils::getClass($object))); 314 // Symfony <= 2.3 did not have isReadable method for PropertyAccessor 315 if (method_exists($propertyAccessor, 'isReadable')) { 316 return $propertyAccessor->isReadable($entity, $path);migration.php git://github.com/jrbasso/migrations.git | PHP | 444 lines
1<?php 2/** 8 * @since v 0.1 9 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 10 */ 76 $varName = Inflector::camelize($use); 77 if (!PHP5) { 78 $this->{$varName} =& ClassRegistry::init(array('class' => $use, 'alias' => $use, 'ds' => $shell->connection)); 410 $this->__error = false; 411 if (!method_exists($this, $command)) { 412 $this->out(String::insert(__d('migrations', '> Method ":method" not implemented. Skipping...', true), array('method' => $command))); 415 $method = 'before' . $callback; 416 if (method_exists($this, $method)) { 417 if (!$this->$method()) { 433 $method = 'after' . $callback; 434 if (method_exists($this, $method)) { 435 $this->$method($ok);RendererAbstract.php git://github.com/michael-romer/zf-boilerplate.git | PHP | 540 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: RendererAbstract.php 23775 2011-03-01 17:25:24Z ralph $ 21 */ 119 $method = 'set' . $key; 120 if (method_exists($this, $method)) { 121 $this->$method($value); 176 if (!is_numeric($value) || intval($value) < 0) { 177 require_once 'Zend/Barcode/Renderer/Exception.php'; 178 throw new Zend_Barcode_Renderer_Exception( 203 if (!is_numeric($value) || intval($value) < 0) { 204 require_once 'Zend/Barcode/Renderer/Exception.php'; 205 throw new Zend_Barcode_Renderer_Exception( 240 if (!in_array($value, array('left' , 'center' , 'right'))) { 241 require_once 'Zend/Barcode/Renderer/Exception.php'; 242 throw new Zend_Barcode_Renderer_Exception(Container.php git://pkgs.fedoraproject.org/php-pear-Auth | PHP | 263 lines
8 * 9 * LICENSE: This source file is subject to version 3.01 of the PHP license 10 * that is available through the world-wide-web at the following URI: 11 * http://www.php.net/license/3_01.txt. If you did not receive a copy of 12 * the PHP License and are unable to obtain it through the web, please 13 * send a note to license@php.net so we can mail you a copy immediately. 16 * @package Auth 17 * @author Martin Jansen <mj@php.net> 18 * @author Adam Ashley <aashley@php.net> 19 * @copyright 2001-2006 The PHP Group 20 * @license http://www.php.net/license/3_01.txt PHP License 3.01 21 * @version CVS: $Id: Container.php 237449 2007-06-12 03:11:27Z aashley $ 32 * @copyright 2001-2006 The PHP Group 33 * @license http://www.php.net/license/3_01.txt PHP License 3.01 34 * @version Release: 1.6.2 File: $Revision: 237449 $reflection_php5.php git://github.com/ci-bonfire/Bonfire.git | PHP | 386 lines
5 * @subpackage UnitTester 6 * @version $Id: reflection_php5.php 2011 2011-04-29 08:22:48Z 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'))) {class_procedure.php git://github.com/FSB/Fire-Soft-Board-2.git | PHP | 560 lines
1<?php 2/** 7 * @version $Id$ 8 * @license http://opensource.org/licenses/gpl-2.0.php GNU GPL 2 9 */ 233 $call = 'process_' . $method; 234 if (!method_exists($this, $call) || !isset($this->fcts[$method])) 235 { 525 /** 526 * Recupere le contenu d'une variable globale PHP 527 *Abstract.php git://github.com/dbpatch/DbPatch.git | PHP | 479 lines
1<?php 2/** 156 157 if (method_exists($this, $method)) { 158 $this->$method($value); 214 215 if (method_exists($this, $method)) { 216 return $this->$method(); 240 241 if (method_exists($this, $method)) { 242 $val = $this->$method(); 385 if ($fp) { 386 echo PHP_EOL; 387 while (!feof($fp)) { 388 $line = fgets($fp, 4096); 389 echo $line . PHP_EOL; 390 }AbstractProtoClass.class.php git://github.com/onPHP/onphp-framework.git | PHP | 461 lines
1<?php 2/*************************************************************************** 314 ($value === null) 315 && method_exists($object, $dropper) 316 && ( 375 // emulating 'instanceof DAOConnected' 376 && method_exists($property->getClassName(), 'dao') 377 )ajax.php http://marocmall.googlecode.com/svn/trunk/ | PHP | 131 lines
1<?php 2 2 3include_once('../../config/config.inc.php'); 4include_once('../../init.php'); 4include_once('../../init.php'); 5include_once('../../modules/shopimporter/shopimporter.php'); 6ini_set('display_errors', 'off'); 52 53 if (file_exists('../../modules/'.$moduleName.'/'.$moduleName.'.php')) 54 { 54 { 55 require_once('../../modules/'.$moduleName.'/'.$moduleName.'.php'); 56 $importModule = new $moduleName(); 61 $importModule->prefix = $prefix; 62 if (!method_exists($importModule, $getMethod)) 63 die('{"hasError" : true, "error" : ["not_exist"], "datas" : []}');error.php git://github.com/mfriesen/kaching-php.git | PHP | 461 lines
1<?php 2/** 6 * 7 * PHP versions 4 and 5 8 * 8 * 9 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) 10 * Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org) 15 * @copyright Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org) 16 * @link http://cakephp.org CakePHP(tm) Project 17 * @package cake 18 * @subpackage cake.cake.libs 19 * @since CakePHP(tm) v 0.10.5.1732 20 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 101 102 if (method_exists($this->controller, 'apperror')) { 103 return $this->controller->appError($method, $messages);Repository.php git://github.com/michael-romer/zf-boilerplate.git | PHP | 313 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Repository.php 23775 2011-03-01 17:25:24Z ralph $ 21 */ 25 */ 26require_once 'Zend/Tool/Framework/Registry/EnabledInterface.php'; 27 104 if (!$provider instanceof Zend_Tool_Framework_Provider_Interface) { 105 require_once 'Zend/Tool/Framework/Manifest/Exception.php'; 106 throw new Zend_Tool_Framework_Manifest_Exception( 181 if (!class_exists('Zend_Tool_Framework_Metadata_Dynamic')) { 182 require_once 'Zend/Tool/Framework/Metadata/Dynamic.php'; 183 } 284 $metadataString = ' ' . $metadata->__toString() . PHP_EOL; 285 //$metadataString = str_replace(PHP_EOL, PHP_EOL . ' ', $metadataString); 286 $string .= $metadataString;DbFinderRoute.php http://opac-sbweb.googlecode.com/svn/trunk/ | PHP | 240 lines
1<?php 2 96 $customMethod = 'filterBy' . $camlVariable; 97 if(method_exists($finder, $customMethod)) 98 { 155 { 156 if(method_exists($finder, 'orderBy' . $orderColumn)) 157 {mdl.operator.php http://phpfor.googlecode.com/svn/trunk/ | PHP | 201 lines
1<?php 2/** 6 * @package 7 * @version $Id: mdl.operator.php 1985 2008-04-28 06:36:02Z flaboy $ 8 * @copyright 2003-2007 ShopEx 11 */ 12include_once('shopObject.php'); 13class mdl_operator extends shopObject{ 41 function delete($filter,$current_op_id=false){ 42 if(method_exists($this,'pre_delete')){ 43 $this->pre_delete($filter); 44 } 45 if(method_exists($this,'post_delete')){ 46 $this->post_delete($filter);Part.php git://github.com/eryx/php-framework-benchmark.git | PHP | 216 lines
1<?php 2/** 144 145 if ($match !== null && method_exists($request, 'uri')) { 146 if ($this->childRoutes !== null) {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 ) );event.class.php https://bitbucket.org/chamilo/chamilo-tracking-dev/ | PHP | 224 lines
1<?php 2namespace tracking; 9/** 10 * $Id: event.class.php 213 2009-11-13 13:38:50Z vanpouckesven $ 11 * @package tracking.lib 203 // FIXME: Temporary solution untill all trackers have been converted 204 if (method_exists($tracker, 'set_event')) 205 {EpiRoute.php git://github.com/jmathai/epiphany.git | PHP | 262 lines
1<?php 2/** 180 } 181 else if(is_array($def['callback']) && method_exists($def['callback'][0], $def['callback'][1])) 182 {Base.php git://github.com/michael-romer/zf-boilerplate.git | PHP | 176 lines
1<?php 2/** 22/** @see Zend_Captcha_Adapter */ 23require_once 'Zend/Captcha/Adapter.php'; 24 25/** @see Zend_Validate_Abstract */ 26require_once 'Zend/Validate/Abstract.php'; 27 37 * @license http://framework.zend.com/license/new-bsd New BSD License 38 * @version $Id: Base.php 23775 2011-03-01 17:25:24Z ralph $ 39 */ 117 $method = 'set' . ucfirst ($key); 118 if (method_exists ($this, $method)) { 119 // Setter exists; use itCallbackTest.php http://firephp.googlecode.com/svn/trunk/ | PHP | 0 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: CallbackTest.php 23772 2011-02-28 21:35:29Z ralph $ 21 */ 23// Call Zend_Form_Decorator_CallbackTest::main() if this source file is executed directly. 24if (!defined("PHPUnit_MAIN_METHOD")) { 25 define("PHPUnit_MAIN_METHOD", "Zend_Form_Decorator_CallbackTest::main"); 27 28require_once 'Zend/Form/Decorator/Callback.php'; 29require_once 'Zend/Form/Element.php'; 40 */ 41class Zend_Form_Decorator_CallbackTest extends PHPUnit_Framework_TestCase 42{ 50 51 $suite = new PHPUnit_Framework_TestSuite("Zend_Form_Decorator_CallbackTest"); 52 $result = PHPUnit_TextUI_TestRunner::run($suite);DB_utility.php git://github.com/imagecms/ImageCMS.git | PHP | 415 lines
1<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); 2/** 4 * 5 * An open source application development framework for PHP 5.1.6 or newer 6 * 88 // this is intended to allow them to override with their own functions as 89 // defined in $driver_utility.php 90 if (method_exists($this, '_database_exists')) 122 // Note: Due to a bug in current() that affects some versions 123 // of PHP we can not pass function call directly into it 124 return current($res); 150 // Note: Due to a bug in current() that affects some versions 151 // of PHP we can not pass function call directly into it 152 $res = $query->result_array(); 184 // Note: Due to a bug in current() that affects some versions 185 // of PHP we can not pass function call directly into it 186 $res = $query->result_array();SapphireTestReporter.php git://github.com/silverstripe/sapphire.git | PHP | 471 lines
39 */ 40class SapphireTestReporter implements PHPUnit_Framework_TestListener { 41 /** 131 * 132 * @param PHPUnit_Framework_TestSuite $suite the suite that is been run 133 */ 206 * @param PHPUnit_Framework_Test $test current test that is being run 207 * @param PHPUnit_Framework_AssertionFailedError $e PHPUnit error 208 * @param int $time 209 */ 210 public function addFailure(PHPUnit_Framework_Test $test, PHPUnit_Framework_AssertionFailedError $e, $time) { 211 if($this->currentSuite) { 258 */ 259 public function addSkippedTest(PHPUnit_Framework_Test $test, Exception $e, $time) { 260 // not implementeduser.php https://code.google.com/p/my-imouto-booru/ | PHP | 441 lines
1<?php 2include_model('ban, tag, user_blacklisted_tag'); 123 124 if (method_exists($record, $method)) 125 return $record->$method($this); 125 return $record->$method($this); 126 elseif (method_exists($record, 'can_change')) 127 return $record->can_change($this, $attribute);class_theme.php http://pirozek-yaps.googlecode.com/svn/trunk/ | PHP | 514 lines
1<?php 2 97 98 if(method_exists($core->used_plugin,'rss')) 99 $this->add_to_head('<link rel="alternate" type="application/rss+xml" title="{title}" href="rss.php" />');HelperBroker.php http://firephp.googlecode.com/svn/trunk/ | PHP | 0 lines
1<?php 2/** 24 */ 25require_once 'Zend/Controller/Action/HelperBroker/PriorityStack.php'; 26 29 */ 30require_once 'Zend/Loader.php'; 31 68 if ((null !== $loader) && (!$loader instanceof Zend_Loader_PluginLoader_Interface)) { 69 require_once 'Zend/Controller/Action/Exception.php'; 70 throw new Zend_Controller_Action_Exception('Invalid plugin loader provided to HelperBroker'); 82 if (null === self::$_pluginLoader) { 83 require_once 'Zend/Loader/PluginLoader.php'; 84 self::$_pluginLoader = new Zend_Loader_PluginLoader(array( 180 if (!isset($stack->{$name})) { 181 require_once 'Zend/Controller/Action/Exception.php'; 182 throw new Zend_Controller_Action_Exception('Action helper "' . $name . '" has not been registered with the helper broker');Action.class.php http://iiccms.googlecode.com/svn/trunk/ | PHP | 373 lines
1<?php 2/** 3 +------------------------------------------------------------------------------ 4 * ThinkPHP Action????? ??? 5 +------------------------------------------------------------------------------ 32 //?????? 33 if(method_exists($this,'_initialize')) 34 $this->_initialize(); 215 // ?????_empty?? ??? 216 if(method_exists($this,'_empty')) { 217 $this->_empty($method,$parms);Class.php http://firephp.googlecode.com/svn/trunk/ | PHP | 0 lines
1<?php 2/** 23 */ 24require_once 'Zend/Server/Reflection/Method.php'; 25 28 */ 29require_once 'Zend/Server/Reflection/Exception.php'; 30 41 * @license http://framework.zend.com/license/new-bsd New BSD License 42 * @version $Id: Class.php 12619 2008-11-13 15:24:29Z alexander $ 43 */ 108 { 109 if (method_exists($this->_reflection, $method)) { 110 return call_user_func_array(array($this->_reflection, $method), $args);Class.php http://firephp.googlecode.com/svn/trunk/ | PHP | 0 lines
1<?php 2/** 23 */ 24require_once 'Zend/Server/Reflection/Method.php'; 25 28 */ 29require_once 'Zend/Server/Reflection/Exception.php'; 30 41 * @license http://framework.zend.com/license/new-bsd New BSD License 42 * @version $Id: Class.php 8064 2008-02-16 10:58:39Z thomas $ 43 */ 108 { 109 if (method_exists($this->_reflection, $method)) { 110 return call_user_func_array(array($this->_reflection, $method), $args);WizardComponent.php git://github.com/infinitas/infinitas.git | PHP | 515 lines
1<?php 2 /** 6 * 7 * PHP versions 4 and 5 8 * 13 * @writtenby jaredhoyt 14 * @license http://www.opensource.org/licenses/mit-license.php The MIT License 15 */ 178 if (isset($this->Controller->params['form']['Cancel'])) { 179 if (method_exists($this->Controller, '_beforeCancel')) { 180 $this->Controller->_beforeCancel($this->_getExpectedStep()); 188 if ($this->Session->check('Wizard.complete')) { 189 if (method_exists($this->Controller, '_afterComplete')) { 190 $this->Controller->_afterComplete(); 213 $processCallback = '_' . Inflector::variable('process_' . $this->_currentStep); 214 if (method_exists($this->Controller, $processCallback)) { 215 $proceed = $this->Controller->$processCallback();BaseException.php git://github.com/atk4/atk4.git | PHP | 495 lines
1<?php 2/** 210 } 211 if (method_exists($e, 'getMyFile')) { 212 $o .= '<div class="atk-effect-info">'.$e->getMyFile().':'.$e->getMyLine().'</div>'; 214 215 if (method_exists($e, 'getMyTrace')) { 216 $o .= $this->backtrace(3, $e->getMyTrace());CallbackTest.php git://pkgs.fedoraproject.org/php-ZendFramework | PHP | 224 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: CallbackTest.php 24594 2012-01-05 21:27:01Z matthew $ 21 */ 23// Call Zend_Form_Decorator_CallbackTest::main() if this source file is executed directly. 24if (!defined("PHPUnit_MAIN_METHOD")) { 25 define("PHPUnit_MAIN_METHOD", "Zend_Form_Decorator_CallbackTest::main"); 27 28require_once 'Zend/Form/Decorator/Callback.php'; 29require_once 'Zend/Form/Element.php'; 40 */ 41class Zend_Form_Decorator_CallbackTest extends PHPUnit_Framework_TestCase 42{ 50 51 $suite = new PHPUnit_Framework_TestSuite("Zend_Form_Decorator_CallbackTest"); 52 $result = PHPUnit_TextUI_TestRunner::run($suite);PrintableRecordList.php git://github.com/egeniq/adapto.git | PHP | 145 lines
1<?php 2 94 95 if (method_exists($this->m_entity, $funcname)) { 96 $value = $this->m_entity->$funcname($recordset[$i], "list");spFunctions.php http://speedphp.googlecode.com/svn/trunk/ | PHP | 354 lines
1<?php 2///////////////////////////////////////////////////////////////// 2///////////////////////////////////////////////////////////////// 3// SpeedPHP??PHP??, Copyright (C) 2008 - 2010 SpeedPHP.com // 4///////////////////////////////////////////////////////////////// 13 // ??????????????? 14 $handle_controller = spClass($__controller, null, $GLOBALS['G_SP']["controller_path"].'/'.$__controller.".php"); 15 // ?????????????????? 15 // ?????????????????? 16 if(!is_object($handle_controller) || !method_exists($handle_controller, $__action)){ 17 eval($GLOBALS['G_SP']["dispatcher_error"]); 94 if( $launch = spLaunch("function_access", array('method'=>$method, 'name'=>$name, 'value'=>$value, 'life_time'=>$life_time), TRUE) )return $launch; 95 // ?????????????????????$name?MD5???????php 96 if(!is_dir($GLOBALS['G_SP']['sp_cache']))__mkdirs($GLOBALS['G_SP']['sp_cache']); 96 if(!is_dir($GLOBALS['G_SP']['sp_cache']))__mkdirs($GLOBALS['G_SP']['sp_cache']); 97 $sfile = $GLOBALS['G_SP']['sp_cache'].'/'.$GLOBALS['G_SP']['sp_app_id'].md5($name).".php"; 98 // ?$method???????????????listOiSystemsOppClass.php http://openirudi.googlecode.com/svn/trunk/ | PHP | 335 lines
1<?php 2class listOiSystemsOppClass { 31 } 32 if (method_exists($this, 'set_' . $propertyName)) { 33 call_user_func(array($this, 'set_' . $propertyName), $value);Repository.php git://github.com/centurion-project/Centurion.git | PHP | 313 lines
1<?php 2/** 25 */ 26require_once 'Zend/Tool/Framework/Registry/EnabledInterface.php'; 27 104 if (!$provider instanceof Zend_Tool_Framework_Provider_Interface) { 105 require_once 'Zend/Tool/Framework/Manifest/Exception.php'; 106 throw new Zend_Tool_Framework_Manifest_Exception( 181 if (!class_exists('Zend_Tool_Framework_Metadata_Dynamic')) { 182 require_once 'Zend/Tool/Framework/Metadata/Dynamic.php'; 183 } 187 if (!$metadata instanceof Zend_Tool_Framework_Metadata_Interface) { 188 require_once 'Zend/Tool/Framework/Manifest/Exception.php'; 189 throw new Zend_Tool_Framework_Manifest_Exception( 284 $metadataString = ' ' . $metadata->__toString() . PHP_EOL; 285 //$metadataString = str_replace(PHP_EOL, PHP_EOL . ' ', $metadataString); 286 $string .= $metadataString;backup.php git://github.com/FSB/Fire-Soft-Board-2.git | PHP | 580 lines
1<?php 2/** 7 * @version $Id$ 8 * @license http://opensource.org/licenses/gpl-2.0.php GNU GPL 2 9 */ 121 122 if (!method_exists($obj, 'dump_' . $sgbd)) 123 { 172 * La methode de dump de la base de donnee MySQL a ete inspiree par cette source : 173 * @link http://www.developpez.net/forums/viewtopic.php?p=1405354#1405354 174 * 221 * Lance un dump des tables PostGreSQL du forum 222 * Les methodes de dump PostgreSQL ont ete realisees a partir de celles de phpBB3 et de phpPgAdmin 223 * @link http://www.phpbb.com 223 * @link http://www.phpbb.com 224 * @link http://phppgadmin.sourceforge.net/ 225 *View.php git://github.com/Shadez/Framework.git | PHP | 245 lines
1<?php 2 76 foreach ($blocks as $name) 77 if (method_exists($controller, 'block_' . $name)) 78 $block = call_user_func(array($controller, 'block_' . $name));RealDebrid.php http://vlc-shares.googlecode.com/svn/trunk/ | PHP | 402 lines
1<?php 2 53 'megashares' => array( 54 '/https?:\/\/(www\.|([a-z]+)\.)?megashares\.com\/(index\.php)?\?(?P<ID>.+)/i', 55 'http://www.megashares.com/?%s' 132 // because it should work better than realdebrid hoster 133 if ( method_exists($hObj, 'setParentHoster') ) { 134 $hObj->setParentHoster($pHoster); 278 $providerObj->resolveLocation($location); 279 } elseif (method_exists($providerObj, 'resolveLocation') ) { 280 // try to check if resolveLocation is there, even if not the interfacegenerator.php git://github.com/davidpersson/media.git | PHP | 371 lines
1<?php 2/** 9 * 10 * PHP version 5 11 * CakePHP version 1.3 15 * @copyright 2007-2013 David Persson <nperson@gmx.de> 16 * @license http://www.opensource.org/licenses/mit-license.php The MIT License 17 * @link http://github.com/davidpersson/media 18 */ 19require_once 'Media/Process.php'; 20require_once 'Mime/Type.php'; 117 118 if (method_exists($Model, 'instructions')) { 119 $this->settings[$Model->alias]['instructions'] = $Model->instructions(); 257 * 258 * @link https://github.com/davidpersson/mm The PHP media library. 259 * @param Model $ModelccdsXajaxResponsePlugin.inc.php http://ccds.googlecode.com/svn/trunk/ | PHP | 305 lines
1<?php 2class ccdsResponse 210 211 if ( method_exists( $foo, $sMethod ) ) 212 {ModuleObject.class.php http://xe-core.googlecode.com/svn/trunk/ | PHP | 481 lines
1<?php 2 214 215 if(method_exists($this, 'init')) 216 { 394 395 if(isset($this->xml_info->action->{$this->act}) && method_exists($this, $this->act)) 396 { 469 $oAPI = getAPI($this->module_info->module, 'api'); 470 if(method_exists($oAPI, $this->act)) 471 {Lexer.php https://bitbucket.org/chamilo/chamilo-dev/ | PHP | 345 lines
1<?php 2 106 107 if (class_exists('DOMDocument') && method_exists('DOMDocument', 'loadHTML') && ! extension_loaded('domxml')) 108 { 144 145 // once PHP DOM implements native line numbers, or we 146 // hack out something using XSLT, remove this stipulationdemo.audioinfo.class.php git://pkgs.fedoraproject.org/php-getid3 | PHP | 189 lines
1<?php 2 3// +----------------------------------------------------------------------+ 4// | PHP version 5 | 5// +----------------------------------------------------------------------+ 7// +----------------------------------------------------------------------+ 8// | /demo/demo.audioinfo.class.php | 9// | | 23// | Example code: | 24// | require_once('getid3.php'); | 25// | require_once('demo.audioinfo.class.php'); | 31// 32// $Id: demo.audioinfo.class.php,v 1.1.1.1 2004/08/23 00:01:26 ah Exp $ 33 102 $method = @$this->info['fileformat'].'Info'; 103 if (@$this->info['fileformat'] && method_exists($this, $method)) { 104 $this->$method();modeler.php git://github.com/enormego/EightPHP.git | PHP | 284 lines
1<?php 2/** 6 * @subpackage Libraries 7 * @author EightPHP Development Team 8 * @copyright (c) 2009-2010 EightPHP 8 * @copyright (c) 2009-2010 EightPHP 9 * @license http://license.eightphp.com 10 */ 30 31 // Sets the active class, PHP workaround 32 protected $active_class = NULL; 45 46 // Bit of a work around to fix this annoying issue with PHP not inheriting correctly 47 $this->active_class = $active_class; 105 if(array_key_exists($key, $this->data)) { 106 if(method_exists($this, $key)) { 107 return $this->$key();driver.php git://github.com/fuel/core.git | PHP | 424 lines
1<?php 2/** 2/** 3 * Fuel is a fast, lightweight, community driven PHP 5.4+ framework. 4 * 9 * @copyright 2010 - 2019 Fuel Development Team 10 * @link https://fuelphp.com 11 */ 96 'json' => 'application/json', 97 'serialize' => 'application/vnd.php.serialized', 98 'php' => 'text/plain', 112 'application/csv' => 'csv', 113 'application/vnd.php.serialized' => 'serialize', 114 ); 122 { 123 if (method_exists($this, 'set_'.$key)) 124 {ajaxHandler.php http://cintient.googlecode.com/svn/trunk/ | PHP | 134 lines
1<?php 2/* 41 42require dirname(__FILE__) . '/../config/cintient.conf.php'; 43ini_set('display_errors', 0); // Don't echo errors on AJAX calls 112 } 113 if (method_exists('AjaxManager', $GLOBALS['ajaxMethod'])) { 114 #if DEBUGDocument.php git://github.com/pmjones/php-framework-benchmarks.git | PHP | 463 lines
1<?php 2/** 2/** 3 * Lithium: the most rad php framework 4 * 5 * @copyright Copyright 2010, Union of RAD (http://union-of-rad.org) 6 * @license http://opensource.org/licenses/bsd-license.php The BSD License 7 */ 126 /** 127 * PHP magic method used when accessing fields as document properties, i.e. `$document->_id`. 128 * 196 foreach ($this->_data as $key => $val) { 197 if (!is_object($val) || !method_exists($val, 'export')) { 198 $data[$key] = $val; 214 foreach ($this->_data as $key => $val) { 215 if (is_object($val) && method_exists($val, 'update')) { 216 $this->_data[$key]->update(null, isset($data[$key]) ? $data[$key] : array());update.php http://cartonbank.googlecode.com/svn/trunk/ | PHP | 355 lines
11 * 12 * The WordPress version, PHP version, and Locale is sent. Checks against the 13 * WordPress server at api.wordpress.org server. Will only check if WordPress 26 global $wp_version, $wpdb, $wp_local_package; 27 $php_version = phpversion(); 28 57 $local_package = isset( $wp_local_package )? $wp_local_package : ''; 58 $url = "http://api.wordpress.org/core/version-check/1.5/?version=$wp_version&php=$php_version&locale=$locale&mysql=$mysql_version&local_package=$local_package&blogs=$num_blogs&users={$user_count['total_users']}&multisite_enabled=$multisite_enabled"; 59 136 $new_option->last_checked = time(); 137 $timeout = 'load-plugins.php' == current_filter() ? 3600 : 43200; //Check for updated every 60 minutes if hitting the themes page, Else, check every 12 hours 138 $time_not_changed = isset( $current->last_checked ) && $timeout > ( time() - $current->last_checked ); 210 if ( !function_exists( 'get_themes' ) ) 211 require_once( ABSPATH . 'wp-includes/theme.php' ); 212Application.php git://github.com/centurion-project/Centurion.git | PHP | 405 lines
1<?php 2/** 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']; 253 /** 254 * Set PHP configuration settings 255 *mega.class.php http://vanphongphamdm.googlecode.com/svn/trunk/ | PHP | 234 lines
1<?php 2/* 16 define ('_JA_MEGA_MENU_CLASS', 1); 17 require_once (dirname(__FILE__).DS."base.class.php"); 18 46 'delayHide': 1000, 47 'slide': <?php echo $slide ?>, 48 'fading': <?php echo $fade ?>, 51 'tips': false, 52 'duration': <?php echo $duration ?>, 53 'hidestyle': 'fastwhenshow' 55 </script> 56 <?php 57 } 63 $style = $this->getParam ('mega-style', 1); 64 if (!method_exists($this, "beginMenuItems$style")) $style = 1; //default 65 $data = call_user_func_array(array($this, "beginMenuItems$style"), array ($pid, $level, true));sqlite.php git://github.com/phpbb/phpbb3.git | PHP | 337 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 119 120 $this->query_result = ($cache_ttl && method_exists($cache, 'sql_load')) ? $cache->sql_load($query) : false; 121 $this->sql_add_num_queries($this->query_result); 134 135 if ($cache_ttl && method_exists($cache, 'sql_save')) 136 {Cache.php git://github.com/michael-romer/zf-boilerplate.git | PHP | 279 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: Cache.php 23775 2011-03-01 17:25:24Z ralph $ 20 */ 24 */ 25require_once 'Zend/Controller/Action/Helper/Abstract.php'; 26 29 */ 30require_once 'Zend/Controller/Action/Exception.php'; 31 34 */ 35require_once 'Zend/Cache/Manager.php'; 36 135 if (($backend instanceof Zend_Cache_Backend) 136 && method_exists($backend, 'removeRecursively') 137 ) {pts_module.php git://pkgs.fedoraproject.org/phoronix-test-suite | PHP | 326 lines
1<?php 2 7 Copyright (C) 2008 - 2011, Michael Larabel 8 pts_module_interface.php: The generic Phoronix Test Suite module object that is extended by the specific modules/plug-ins 9 37 { 38 return is_file(PTS_MODULE_LOCAL_PATH . $name . ".php") || is_file(PTS_MODULE_PATH . $name . ".php"); 39 } 118 $all_options = pts_module_manager::module_call($module, 'user_commands'); 119 $valid = count($all_options) > 0 && ((isset($all_options[$command]) && method_exists($module, $all_options[$command])) || in_array($command, array('help'))); 120 296 { 297 pts_client::$display->generic_error("php-pcntl must be installed for the " . self::module_name() . " module."); 298 }YouPorn.php http://vlc-shares.googlecode.com/svn/trunk/ | PHP | 378 lines
1<?php 2 33 (class_exists('X_VlcShares_Plugins_Utils') 34 && method_exists('X_VlcShares_Plugins_Utils', 'menuProxy')) 35 ) { 216 if ( class_exists("X_VlcShares_Plugins_Utils", true) ) { 217 if ( !method_exists('X_VlcShares_Plugins_Utils', 'menuProxy') ) { 218 // old version of PageParserLib 369 $cache = X_VlcShares_Plugins::broker()->getPlugins('cache'); 370 if ( method_exists($cache, 'setDoNotCache') ) { 371 $cache->setDoNotCache();tweet.php git://github.com/elliothaughin/codeigniter-twitter.git | PHP | 641 lines
1<?php 2 13 { 14 if ( method_exists($this, $method) ) 15 {Container.php git://github.com/eryx/php-framework-benchmark.git | PHP | 427 lines
1<?php 2/** 218 $setMethod = 'set' . $attrName; 219 if (method_exists($this, $setMethod)) { 220 $this->{$setMethod}($attrValue);sfFormDoctrine.class.php http://opac-sbweb.googlecode.com/svn/trunk/ | PHP | 537 lines
1<?php 2 16 * @author Jonathan H. Wage <jonwage@gmail.com> 17 * @version SVN: $Id: sfFormDoctrine.class.php 7845 2008-03-12 22:36:14Z fabien $ 18 */ 26 * @author Jonathan H. Wage <jonwage@gmail.com> 27 * @version SVN: $Id: sfFormDoctrine.class.php 7845 2008-03-12 22:36:14Z fabien $ 28 */ 251 * To process a value before it is used by the updateObject() method, 252 * you need to define an updateXXXColumn() method where XXX is the PHP name 253 * of the column. 267 268 if (method_exists($this, $method)) 269 { 516 } 517 else if (method_exists($this->object, $method)) 518 {Select.php http://lxsphp.googlecode.com/svn/trunk/ | PHP | 489 lines
1<?php 2/** 4 * 5 * @version $Id: Select.php 341 2012-04-26 09:09:56Z linsir123 $ 6 * @package Db 91 $method = '_to'.ucfirst($key); 92 if (method_exists($this, $method)) { 93 $string = call_user_func_array(array($this, $method), array($value));Lexer.php git://github.com/gallery/gallery3-contrib.git | PHP | 326 lines
1<?php defined("SYSPATH") or die("No direct script access."); 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 stipulationpartitionTableOppClass.php http://openirudi.googlecode.com/svn/trunk/ | PHP | 229 lines
1<?php 2class partitionTableOppClass { 35 } 36 if (method_exists($this, 'set_' . $propertyName)) { 37 call_user_func(array (application_functions.php https://code.google.com/p/my-imouto-booru/ | PHP | 248 lines
1<?php 2function only_user($level) { 80 case 'json': 81 if (method_exists($inst_var, 'to_json')) 82 render('json', $inst_var->to_json());JsHelper.php git://github.com/cakephp/cakephp.git | PHP | 434 lines
6 * 7 * CakePHP : Rapid Development Framework (http://cakephp.org) 8 * Copyright 2005-2011, Cake Software Foundation, Inc. 13 * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) 14 * @link http://cakephp.org CakePHP(tm) Project 15 * @package Cake.View.Helper 15 * @package Cake.View.Helper 16 * @since CakePHP(tm) v 1.2 17 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 159 * 160 * @param mixed $val A PHP variable to be converted to JSON 161 * @param boolean $quoteString If false, leaves string values unquoted 162 * @return string a JavaScript-safe/JSON representation of $val 163 * @link http://book.cakephp.org/2.0/en/core-libraries/helpers/js.html#JsHelper::value 164 **/Basic.php git://github.com/michael-romer/zf-boilerplate.git | PHP | 227 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Basic.php 23775 2011-03-01 17:25:24Z ralph $ 21 */ 25 */ 26require_once 'Zend/Tool/Framework/Metadata/Interface.php'; 27 30 */ 31require_once 'Zend/Tool/Framework/Metadata/Attributable.php'; 32 85 $setMethod = 'set' . $optionName; 86 if (method_exists($this, $setMethod)) { 87 $this->{$setMethod}($optionValue);CompressAbstract.php git://github.com/michael-romer/zf-boilerplate.git | PHP | 89 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: CompressAbstract.php 23775 2011-03-01 17:25:24Z ralph $ 20 */ 24 */ 25require_once 'Zend/Filter/Compress/CompressInterface.php'; 26 81 $method = 'set' . $key; 82 if (method_exists($this, $method)) { 83 $this->$method($option);