100+ results results for 'php method_exists repo:quibusus/rockmongo' (272 ms)
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);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 {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);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) {Data.php git://github.com/zendframework/zf2.git | PHP | 521 lines
1<?php 2/** 499 if (is_object($item)) { 500 if (method_exists($item, 'toArray')) { 501 $item = $item->toArray();Standalone.php http://firephp.googlecode.com/svn/trunk/ | PHP | 0 lines
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');reflection_php5.php git://github.com/swiftmailer/swiftmailer.git | 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'))) {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();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 {Simple.php git://github.com/moodle/moodle.git | PHP | 327 lines
1<?php 2 9 * 10 * PHP versions 4 and 5 11 * 13 * 14 * Copyright (c) 2002-2008 The PHP Group 15 * All rights reserved. 42 * @package XML_Parser 43 * @author Stephan Schmidt <schst@php.net> 44 * @copyright 2004-2008 Stephan Schmidt <schst@php.net> 46 * @version CVS: $Id$ 47 * @link http://pear.php.net/package/XML_Parser 48 */ 52 */ 53require_once 'XML/Parser.php'; 54AkActsAsList.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 }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);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 {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 containsAbstractClient.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);Repository.php git://github.com/zendframework/zf2.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;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 {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 : '');full.class.php https://bitbucket.org/chamilo/chamilo-repository-dev/ | PHP | 68 lines
1<?php 2namespace repository; 30 $html[] = '<div class="clear"></div>'; 31 if (method_exists($this->get_rendition_implementation(), 'get_description')) 32 {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 */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);content_object_updater.class.php https://bitbucket.org/chamilo/chamilo-repository-dev/ | PHP | 380 lines
1<?php 2namespace repository; 85 86 if (method_exists($this, 'update_extra')) 87 { 135 * For defining the 'type' of the field, the same definition is used as the 136 * PEAR::MDB2 package. See http://pear.php.net/manual/en/package.database. 137 * mdb2.datatypes.php 362 363 $file = Path :: get_repository_path() . 'lib/content_object/' . $type . '/update/' . $version . '/' . $type . '_' . $version_string . '_updater.class.php'; 364 if (file_exists($file))requirements.php http://wolfcms.googlecode.com/svn/trunk/ | PHP | 175 lines
24 25// Check PHP version 26$check = (PHP_VERSION >= '5.1.2'); 27$php = '<span class="'.($check ? 'check' : 'notcheck'); 28$php .= '">PHP '.PHP_VERSION.'</span>'; 29if (!$check) $errors = true; 109 <td>PHP 5.1.2</td> 110 <td class="available"><?php echo $php; ?></td> 111 </tr> 117 <td>PDO supports MySQL <sup>1)</sup></td> 118 <td class="available"><?php echo $mysql; ?></td> 119 </tr> 121 <td>PDO supports SQLite 3 <sup>1)</sup></td> 122 <td class="available"><?php echo $sqlite; ?></td> 123 </tr>Container.php git://github.com/zendframework/zf2.git | PHP | 427 lines
1<?php 2/** 218 $setMethod = 'set' . $attrName; 219 if (method_exists($this, $setMethod)) { 220 $this->{$setMethod}($attrValue);sluggable.php git://github.com/CakeDC/utils.git | PHP | 176 lines
1<?php 2/** 8 * @copyright Copyright 2007-2010, Cake Development Corporation (http://cakedc.com) 9 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 10 */ 88 $slug = $Model->data[$Model->alias][$settings['label']]; 89 if (method_Exists($Model, 'beforeSlugGeneration')) { 90 $slug = $Model->beforeSlugGeneration($slug, $settings['separator']); 93 $settings = $this->settings[$Model->alias]; 94 if (method_exists($Model, 'multibyteSlug')) { 95 $slug = $Model->multibyteSlug($slug, $settings['separator']);DesignerRules.php https://bitbucket.org/zurmo/zurmo/ | PHP | 320 lines
1<?php 2 /********************************************************************************* 123 ); 124 if (method_exists($ruleClassName, 'resolveCellMetadata')) 125 {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 {toolbar.languages.php http://miacms.googlecode.com/svn/trunk/ | PHP | 120 lines
1<?php 2/** 4 * @subpackage Languages 5 * @author MiaCMS see README.php 6 * @copyright MiaCMS 6 * @copyright MiaCMS 7 * See COPYRIGHT.php for copyright notices and details. 8 * @license GNU/GPL Version 2, see LICENSE.php 23 $this->request = $_REQUEST; 24 $gettext_admin = new PHPGettextAdmin(); 25 $this->has_gettext = $gettext_admin->gettextAble(); 33 if (in_array($method, array_keys($this->map)))$method = $this->map[$method]; 34 if ($method && strlen($method) > 2 && method_exists($this, $method)) 35 return $this->$method();Translator.php git://github.com/zendframework/zf2.git | PHP | 222 lines
1<?php 2/** 214 { 215 if (!method_exists($this->_adapter, $method)) { 216 throw new Exception\BadMethodCallException("Unknown method '" . $method . "' called!");Redis.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'; 27overloadable_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 $reflection_php5.php git://github.com/moodle/moodle.git | PHP | 381 lines
1<?php 2/** 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. 71 /** 72 * Needed to select the autoload feature in PHP5 73 * for classes created dynamically. 288 } 289 if (version_compare(phpversion(), '5.1.0', '>=')) { 290 if (in_array($name, array('__get', '__isset', $name == '__unset'))) {PEAR.class.php http://tubepress.googlecode.com/svn/trunk/ | PHP | 447 lines
21 * @copyright 1997-2008 The PHP Group 22 * @license http://www.php.net/license/3_0.txt PHP License 3.0 23 * @version CVS: $Id: PEAR.php,v 1.104 2008/01/03 20:26:34 cellog Exp $ 91 * @author Tomas V.V. Cox <cox@idecnet.com> 92 * @author Greg Beaver <cellog@php.net> 93 * @copyright 1997-2006 The PHP Group 93 * @copyright 1997-2006 The PHP Group 94 * @license http://www.php.net/license/3_0.txt PHP License 3.0 95 * @version Release: 1.7.2 98 * @since Class available since PHP 4.0.2 99 * @link http://pear.php.net/manual/en/core.pear.php#core.pear.pear 100 */ 437 } 438 return @dl('php_'.$ext.$suffix) || @dl($ext.$suffix); 439 }error.php http://noserub.googlecode.com/svn/trunk/ | PHP | 433 lines
1<?php 2/** 6 * 7 * PHP versions 4 and 5 8 * 8 * 9 * CakePHP(tm) : Rapid Development Framework (http://www.cakephp.org) 10 * Copyright 2005-2009, Cake Software Foundation, Inc. (http://www.cakefoundation.org) 16 * @copyright Copyright 2005-2009, Cake Software Foundation, Inc. (http://www.cakefoundation.org) 17 * @link http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project 18 * @package cake 19 * @subpackage cake.cake.libs 20 * @since CakePHP(tm) v 0.10.5.1732 21 * @license http://www.opensource.org/licenses/mit-license.php The MIT License 103 104 if (method_exists($this->controller, 'apperror')) { 105 return $this->controller->appError($method, $messages);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);Definition.php git://github.com/moodle/moodle.git | PHP | 294 lines
1<?php 2/** 86 $method = 'set' . ucfirst($key); 87 if (method_exists($this, $method)) { 88 $this->$method($value); 124 if (is_array($callback)) { 125 require_once 'Zend/Server/Method/Callback.php'; 126 $callback = new Zend_Server_Method_Callback($callback); 127 } elseif (!$callback instanceof Zend_Server_Method_Callback) { 128 require_once 'Zend/Server/Exception.php'; 129 throw new Zend_Server_Exception('Invalid method callback provided'); 153 if (is_array($prototype)) { 154 require_once 'Zend/Server/Method/Prototype.php'; 155 $prototype = new Zend_Server_Method_Prototype($prototype); 156 } elseif (!$prototype instanceof Zend_Server_Method_Prototype) { 157 require_once 'Zend/Server/Exception.php'; 158 throw new Zend_Server_Exception('Invalid method prototype provided');BaseMediaSource.php git://github.com/zendframework/zf2.git | PHP | 179 lines
1<?php 2/** 114 $method = 'get'.ucfirst($name); 115 if (method_exists($this, $method)) { 116 return $this->$method(); 138 $method = 'set'.ucfirst($name); 139 if (method_exists($this, $method)) { 140 $this->$method($val);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;Signature.php git://github.com/zendframework/zf2.git | PHP | 389 lines
1<?php 2/** 230 { 231 if (method_exists($this->_provider, 'getName')) { 232 $this->_name = $this->_provider->getName();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')->__(ezmodulefunctioninfo.php git://github.com/ezsystems/ezpublish.git | PHP | 308 lines
1<?php 2/** 11/*! 12 \class eZModuleFunctionInfo ezmodulefunctioninfo.php 13 \brief The class eZModuleFunctionInfo does 48 { 49 $definitionFile = $path . '/' . $this->ModuleName . '/function_definition.php'; 50 if ( file_exists( $definitionFile ) ) 139 } 140 if ( !method_exists( $classObject, $callMethod['method'] ) ) 141 { 265 } 266 if ( !method_exists( $classObject, $methodName ) ) 267 {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 {error.php git://github.com/Datawalke/Coordino.git | PHP | 462 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-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) 15 * @copyright Copyright 2005-2012, 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);Cache.php git://github.com/zendframework/zf2.git | PHP | 206 lines
1<?php 2/** 51 /** 52 * PHP SOAP wsdl cache constant 53 * 178 $cache = self::getCache(); 179 if (method_exists($cache, 'clean')) { 180 $cache->clean();creator.class.php https://bitbucket.org/chamilo/chamilo-repository-dev/ | PHP | 185 lines
1<?php 2namespace repository; 17/** 18 * $Id: creator.class.php 200 2009-11-13 12:30:04Z kariboe $ 19 * @package repository.lib.complex_builder.component 20 */ 21require_once dirname(__FILE__) . '/../complex_builder_component.class.php'; 22 22 23//require_once dirname(__FILE__) . '/../../complex_repo_viewer/complex_repo_viewer.class.php'; 24 87 $type = $rdm->determine_content_object_type($content_object_id); 88 if (method_exists($this->get_parent(), 'get_helper_object')) 89 {Controller.php http://atomikframework.googlecode.com/svn/trunk/ | PHP | 186 lines
1<?php 2/** 17 * @copyright 2008-2009 (c) Maxime Bouroumeau-Fuseau 18 * @license http://www.opensource.org/licenses/mit-license.php 19 * @link http://www.atomikframework.com 103 // do not stop if __call() exist, so it allows us to trap method calls 104 if (!method_exists($this, '__call')) { 105 if (ControllerPlugin::$config['controller_must_exists']) {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';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;testgradegrades.php git://github.com/moodle/moodle.git | PHP | 208 lines
1<?php 2 37 38require_once($CFG->libdir.'/simpletest/fixtures/gradetest.php'); 39 70 $grade_grade = new grade_grade(); 71 $this->assertTrue(method_exists($grade_grade, 'insert')); 72 99 $grade_grade = new grade_grade($this->grade_grades[0]); 100 $this->assertTrue(method_exists($grade_grade, 'update')); 101 } 104 $grade_grade = new grade_grade(); 105 $this->assertTrue(method_exists($grade_grade, 'fetch')); 106 113 $grade_grade = new grade_grade(); 114 $this->assertTrue(method_exists($grade_grade, 'fetch_all')); 115doTriggerService.php http://openbiz-cubi.googlecode.com/svn/trunk/ | PHP | 419 lines
1<?php 2/** 2/** 3 * PHPOpenBiz Framework 4 * 11 * @copyright Copyright (c) 2005-2011, Rocky Swen 12 * @license http://www.opensource.org/licenses/bsd-license.php 13 * @link http://www.phpopenbiz.org/ 13 * @link http://www.phpopenbiz.org/ 14 * @version $Id: doTriggerService.php 3836 2011-04-21 09:44:31Z jixian2003 $ 15 */ 165 // action method arguments 166 if (method_exists($this, $methodName)) 167 { 205 $svcobj = BizSystem::getObject($svcobj); 206 if(!method_exists($svcobj,$method)) 207 {SessionContext.php http://openbiz-cubi.googlecode.com/svn/trunk/ | PHP | 410 lines
1<?PHP 2/** 2/** 3 * PHPOpenBiz Framework 4 * 11 * @copyright Copyright (c) 2005-2011, Rocky Swen 12 * @license http://www.opensource.org/licenses/bsd-license.php 13 * @link http://www.phpopenbiz.org/ 13 * @link http://www.phpopenbiz.org/ 14 * @version $Id: SessionContext.php 4105 2011-05-06 08:48:08Z jixian2003 $ 15 */ 29 * @package openbiz.bin 30 * @author Rocky Swen <rocky@phpopenbiz.org> 31 * @copyright Copyright (c) 2005-2009, Rocky Swen 51 if (defined("SESSION_HANDLER") && SESSION_HANDLER != "" && defined('USE_CUSTOM_SESSION_HANDLER') && USE_CUSTOM_SESSION_HANDLER ==true) { 52 include_once SESSION_HANDLER.".php"; 53 }DocBlockReflection.php git://github.com/zendframework/zf2.git | PHP | 297 lines
1<?php 2/** 93 $this->reflector = $commentOrReflector; 94 if (!method_exists($commentOrReflector, 'getDocComment')) { 95 throw new Exception\InvalidArgumentException('Reflector must contain method "getDocComment"'); 271 { 272 $str = "DocBlock [ /* DocBlock */ ] {" . PHP_EOL . PHP_EOL; 273 $str .= " - Tags [" . count($this->tags) . "] {" . PHP_EOL; 278 279 $str .= " }" . PHP_EOL; 280 $str .= "}" . PHP_EOL;RestfulController.php git://github.com/zendframework/zf2.git | PHP | 386 lines
1<?php 2 9 Zend\Http\Request as HttpRequest, 10 Zend\Http\PhpEnvironment\Response as HttpResponse, 11 Zend\Loader\Broker, 135 $method = static::getMethodFromAction($action); 136 if (!method_exists($this, $method)) { 137 $method = 'notFoundAction'; 324 $this->broker = $broker; 325 if (method_exists($broker, 'setController')) { 326 $this->broker->setController($this);LiveDocx.php git://github.com/moodle/moodle.git | PHP | 415 lines
1<?php 2/** 79 * {code} 80 * $phpLiveDocx = new Zend_Service_LiveDocx_MailMerge( 81 * array ( 95 * {code} 96 * $phpLiveDocx = new Zend_Service_LiveDocx_MailMerge( 97 * array ( 107 * {code} 108 * $phpLiveDocx = new Zend_Service_LiveDocx_MailMerge(); 109 * 109 * 110 * $phpLiveDocx->setUsername('myUsername') 111 * ->setPassword('myPassword'); 116 * {code} 117 * $phpLiveDocx = new Zend_Service_LiveDocx_MailMerge(); 118 *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 *BaseObject.php git://github.com/moodle/moodle.git | PHP | 147 lines
1<?php 2/* 34 35 if (method_exists($this, $methodName) == true) 36 { 46 47 if (method_exists($this, $methodName) == true) 48 {Action.class.php http://iiccms.googlecode.com/svn/trunk/ | PHP | 385 lines
1<?php 2// +---------------------------------------------------------------------- 2// +---------------------------------------------------------------------- 3// | ThinkPHP [ WE CAN DO IT JUST THINK IT ] 4// +---------------------------------------------------------------------- 4// +---------------------------------------------------------------------- 5// | Copyright (c) 2009 http://thinkphp.cn All rights reserved. 6// +---------------------------------------------------------------------- 14 +------------------------------------------------------------------------------ 15 * ThinkPHP Action????? ??? 16 +------------------------------------------------------------------------------ 43 //?????? 44 if(method_exists($this,'_initialize')) 45 $this->_initialize(); 226 // ?????_empty?? ??? 227 if(method_exists($this,'_empty')) { 228 $this->_empty($method,$parms);error.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 */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);reporter.php http://snaptest.googlecode.com/svn/trunk/ | PHP | 174 lines
1<?php 2 66 public final function recordTestDefect(Exception $e) { 67 if (method_exists($e, 'getUserMessage')) { 68 $this->addReport($this->record('defect', $e->getUserMessage(), $this->cullTrace($e->getTrace()))); 76 /** 77 * records a PHP error encountered 78 * @param string $errstr the php error string 78 * @param string $errstr the php error string 79 * @param string $errfile the php error file 80 * @param int $errline the line of the php error 82 */ 83 public final function recordPHPError($errstr, $errfile, $errline, $trace) { 84 89 90 $this->addReport($this->record('phperr', $errstr, $trace, $errline)); 91 $this->announceTestFail();CPSRestBehavior.php http://ps-yii-extensions.googlecode.com/svn/trunk/ | PHP | 192 lines
1<?php 2/* 2/* 3 * CPSRestBehavior.php 4 * 38 * @author Jerry Ablan <jablan@pogostick.com> 39 * @version SVN $Id: CPSRestBehavior.php 395 2010-07-15 21:34:48Z jerryablan@gmail.com $ 40 * @since v1.1.0 102 // Is it a valid request? 103 if ( ! method_exists( $this->getOwner(), 'get' . $_sActionId ) && ! method_exists( $this->getOwner(), 'post' . $_sActionId ) && ! method_exists( $this->getOwner(), 'request' . $_sActionId ) ) 104 return $this->getOwner()->missingAction( $_sActionId ); 152 // Any query string? (?x=y&...) 153 if ( null != ( $_sQuery = parse_url( $_sUri, PHP_URL_QUERY ) ) ) 154 $_arOpts = array_merge( explode( '=', $_sQuery ), $_arOpts ); 177 178 if ( ! method_exists( $this->getOwner(), $_sMethod ) ) 179 {NotEmpty.php git://github.com/zendframework/zf2.git | PHP | 303 lines
1<?php 2/** 23 const NULL = 0x040; 24 const PHP = 0x07F; 25 const SPACE = 0x080; 41 self::NULL => 'null', 42 self::PHP => 'php', 43 self::SPACE => 'space', 217 218 if ((is_object($value) && (!method_exists($value, '__toString'))) || 219 (is_object($value) && (method_exists($value, '__toString')) && (((string) $value) == ""))) {ConstraintViolation.php git://github.com/symfony/symfony.git | PHP | 181 lines
1<?php 2 53 { 54 if (!\is_string($message) && !(\is_object($message) && method_exists($message, '__toString'))) { 55 throw new \TypeError('Constraint violation message should be a string or an object which implements the __toString() method.');Format.php git://github.com/pyrocms/pyrocms.git | PHP | 263 lines
1<?php 2/** 28 { 29 // Stupid stuff to emulate the "new static()" stuff in this libraries PHP 5.3 equivilent 30 $class = __CLASS__; 43 { 44 if (method_exists($this, '_from_' . $from_type)) 45 { 192 193 $output = implode(',', $headings).PHP_EOL; 194 foreach ($data as &$row) 195 { 196 $output .= '"'.implode('","', $row).'"'.PHP_EOL; 197 } 213 214 // Output as a string representing the PHP structure 215 public function to_php()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 {array_source.php git://github.com/cakephp/datasources.git | PHP | 459 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 datasources 16 * @subpackage datasources.models.datasources 17 * @since CakePHP Datasources v 0.3 18 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 176 if (isset($db)) { 177 if (method_exists($db, 'queryAssociation')) { 178 $stack = array($assoc);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 stipulationform.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 {FormTypeFieldExtension.php git://github.com/sonata-project/SonataAdminBundle.git | PHP | 267 lines
1<?php 2 170 return 171 method_exists('Symfony\Component\Form\AbstractType', 'getBlockPrefix') ? 172 'Symfony\Component\Form\Extension\Core\Type\FormType' : 236 foreach ($this->getTypes($formBuilder) as $type) { 237 if (!method_exists($type, 'getName')) { // SF3.0+ 238 $name = get_class($type);mssql.php http://seo-phpbb.googlecode.com/svn/trunk/ | PHP | 433 lines
1<?php 2/** 4* @package dbal 5* @version $Id: mssql.php 8479 2008-03-29 00:22:48Z naderman $ 6* @copyright (c) 2005 phpBB Group 6* @copyright (c) 2005 phpBB Group 7* @license http://opensource.org/licenses/gpl-license.php GNU Public License 8* 13*/ 14if (!defined('IN_PHPBB')) 15{ 18 19include_once($phpbb_root_path . 'includes/db/dbal.' . $phpEx); 20 41 42 if (version_compare(PHP_VERSION, '5.1.0', '>=') || (version_compare(PHP_VERSION, '5.0.0-dev', '<=') && version_compare(PHP_VERSION, '4.4.1', '>='))) 43 {Modules.php git://github.com/pyrocms/pyrocms.git | PHP | 251 lines
1<?php (defined('BASEPATH')) OR exit('No direct script access allowed'); 2 9 10/* PHP5 spl_autoload */ 11spl_autoload_register('Modules::autoload'); 22 * 23 * Install this file as application/third_party/MX/Modules.php 24 * 64 65 if (method_exists($class, $method)) { 66 ob_start();DijitContainer.php git://github.com/zendframework/zf2.git | PHP | 205 lines
1<?php 2/** 141 if (null !== ($element = $this->getElement())) { 142 if (method_exists($element, 'getLegend')) { 143 $title = $element->getLegend();form.php git://github.com/swiftmailer/swiftmailer.git | PHP | 355 lines
1<?php 2/** 5 * @subpackage WebTester 6 * @version $Id: form.php 1784 2008-04-26 13:07:14Z pp11 $ 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/**#@-*/ 255 if ($selector->isMatch($this->widgets[$i])) { 256 if (method_exists($this->widgets[$i], 'setLabel')) { 257 $this->widgets[$i]->setLabel($label);Hostname.php git://github.com/zendframework/zf2.git | PHP | 331 lines
1<?php 2/** 269 { 270 if (!method_exists($request, 'getUri')) { 271 return;TreeRouteStack.php git://github.com/zendframework/zf2.git | PHP | 438 lines
1<?php 2/** 251 { 252 if (!method_exists($request, 'getUri')) { 253 return; 255 256 if ($this->baseUrl === null && method_exists($request, 'getBaseUrl')) { 257 $this->setBaseUrl($request->getBaseUrl());db_acl.php git://github.com/Datawalke/Coordino.git | PHP | 332 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-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) 15 * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) 16 * @link http://cakephp.org CakePHP(tm) Project 17 * @package cake 18 * @subpackage cake.cake.libs.model 19 * @since CakePHP(tm) v 0.2.9 20 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 138 139 if (PHP5) { 140 $model = ClassRegistry::init(array('class' => $name, 'alias' => $name));component.php git://github.com/Datawalke/Coordino.git | PHP | 267 lines
3 * 4 * PHP versions 4 and 5 5 * 5 * 6 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) 7 * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) 12 * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) 13 * @link http://cakephp.org CakePHP(tm) Project 14 * @package cake 15 * @subpackage cake.cake.libs.controller 16 * @since CakePHP(tm) v TBD 17 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 24 * @subpackage cake.cake.libs.controller 25 * @link http://book.cakephp.org/view/993/Components 26 */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');ArchivableBehaviorQueryBuilderModifierTest.php git://github.com/propelorm/Propel.git | PHP | 281 lines
1<?php 2 11 12require_once dirname(__FILE__) . '/../../../../../generator/lib/util/PropelQuickBuilder.php'; 13require_once dirname(__FILE__) . '/../../../../../generator/lib/behavior/archivable/ArchivableBehavior.php'; 13require_once dirname(__FILE__) . '/../../../../../generator/lib/behavior/archivable/ArchivableBehavior.php'; 14require_once dirname(__FILE__) . '/../../../../../runtime/lib/Propel.php'; 15 22 */ 23class ArchivableBehaviorQueryBuilderModifierTest extends PHPUnit_Framework_TestCase 24{ 87 { 88 $this->assertTrue(method_exists('ArchivableTest100Query', 'archive')); 89 } 227 { 228 $this->assertTrue(method_exists('ArchivableTest300Query', 'updateWithoutArchive')); 229 }TimestampableBehaviorTest.php git://github.com/propelorm/Propel.git | PHP | 259 lines
1<?php 2 10 11require_once dirname(__FILE__) . '/../../../tools/helpers/bookstore/BookstoreTestBase.php'; 12require_once dirname(__FILE__) . '/../../../../generator/lib/config/GeneratorConfig.php'; 12require_once dirname(__FILE__) . '/../../../../generator/lib/config/GeneratorConfig.php'; 13require_once dirname(__FILE__) . '/../../../../generator/lib/model/Behavior.php'; 14require_once dirname(__FILE__) . '/../../../../generator/lib/behavior/TimestampableBehavior.php'; 14require_once dirname(__FILE__) . '/../../../../generator/lib/behavior/TimestampableBehavior.php'; 15require_once dirname(__FILE__) . '/../../../../generator/lib/util/PropelQuickBuilder.php'; 16 29 $this->assertEquals(count($table2->getColumns()), 4, 'Timestampable adds two columns by default'); 30 $this->assertTrue(method_exists('Table2', 'getCreatedAt'), 'Timestamplable adds a created_at column by default'); 31 $this->assertTrue(method_exists('Table2', 'getUpdatedAt'), 'Timestamplable adds an updated_at column by default'); 33 $this->assertEquals(count($table1->getColumns()), 4, 'Timestampable does not add two columns when they already exist'); 34 $this->assertTrue(method_exists('Table1', 'getCreatedOn'), 'Timestamplable allows customization of create_column name'); 35 $this->assertTrue(method_exists('Table1', 'getUpdatedOn'), 'Timestamplable allows customization of update_column name');form.php git://github.com/moodle/moodle.git | PHP | 355 lines
1<?php 2/** 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/**#@-*/ 255 if ($selector->isMatch($this->_widgets[$i])) { 256 if (method_exists($this->_widgets[$i], 'setLabel')) { 257 $this->_widgets[$i]->setLabel($label);Part.php git://github.com/zendframework/zf2.git | PHP | 243 lines
1<?php 2/** 140 141 if ($match !== null && method_exists($request, 'getUri')) { 142 if ($this->childRoutes !== null) {AttributesCollectionView.php https://bitbucket.org/zurmo/zurmo/ | PHP | 157 lines
1<?php 2 /********************************************************************************* 132 $modelClassName = $this->modelClassName; 133 if (method_exists($modelClassName, 'getAllowedCastedUpAttributeNames') && 134 in_array($attributeName, $modelClassName::getAllowedCastedUpAttributeNames()))AbstractAdapter.php git://github.com/zendframework/zf2.git | PHP | 311 lines
1<?php 2/** 105 if (!empty($checksum)) { 106 if (method_exists($this, $checksum)) { 107 return $this->$checksum($value);MY_Form_validation.php git://github.com/pyrocms/pyrocms.git | PHP | 278 lines
1<?php if (!defined('BASEPATH')) exit('No direct script access allowed.'); 2 175 { 176 if ( ! method_exists(CI::$APP->controller, $rule)) 177 { 201 { 202 if ( ! method_exists($this, $rule)) 203 { 203 { 204 // If our own wrapper function doesn't exist we see if a native PHP function does. 205 // Users can use any native PHP function call that has one param. 277 278/* End of file MY_Form_validation.php */AbstractFilter.php git://github.com/zendframework/zf2.git | PHP | 101 lines
1<?php 2/** 49 $setter = 'set' . str_replace(' ', '', ucwords(str_replace('_', ' ', $key))); 50 if (method_exists($this, $setter)) { 51 $this->{$setter}($value);PEAR.php http://miacms.googlecode.com/svn/trunk/ | PHP | 1119 lines
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. 14 * 21 * @copyright 1997-2008 The PHP Group 22 * @license http://www.php.net/license/3_0.txt PHP License 3.0 23 * @version CVS: $Id: PEAR.php,v 1.104 2008/01/03 20:26:34 cellog Exp $ 44 45if (substr(PHP_OS, 0, 3) == 'WIN') { 46 define('OS_WINDOWS', true); 94 * @copyright 1997-2006 The PHP Group 95 * @license http://www.php.net/license/3_0.txt PHP License 3.0 96 * @version Release: 1.7.2 99 * @since Class available since PHP 4.0.2 100 * @link http://pear.php.net/manual/en/core.pear.php#core.pear.pear 101 */phpgettext.includes.php http://miacms.googlecode.com/svn/trunk/ | PHP | 640 lines
107 function extract(){ 108 require_once(dirname(__FILE__).'/phpgettext.catalog.php'); 109 $gettext =& phpgettext(); 114 $gettext->xgettext($args); 115 $catalog = new PHPGettext_catalog('phpgettext', $path.'locale/'); 116 $catalog->setproperty('mode', _MODE_POT_); 140 function newfrompot(){ 141 require_once(dirname(__FILE__).'/phpgettext.catalog.php'); 142 $locale = requestvar('locale'); 165 require_once('tests/simpletest/reporter.php'); 166 require_once(dirname(__FILE__).'/phpgettext.catalog.php'); 167 /* 181 function save(){ 182 require_once(dirname(__FILE__).'/phpgettext.catalog.php'); 183 $domain = trim(requestvar('domain'));shell.php git://github.com/Datawalke/Coordino.git | PHP | 645 lines
6 * 7 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) 8 * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) 13 * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) 14 * @link http://cakephp.org CakePHP(tm) Project 15 * @package cake 16 * @subpackage cake.cake.console.libs 17 * @since CakePHP(tm) v 1.2.0.5012 18 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 163 } 164 if (strtolower($this->command) == strtolower(Inflector::variable($this->args[0])) && method_exists($this, $this->command)) { 165 $dispatch->shiftArgs(); 201 $this->out(); 202 $this->out('Welcome to CakePHP v' . Configure::version() . ' Console'); 203 $this->hr();cake_test_case.php git://github.com/Datawalke/Coordino.git | PHP | 835 lines
1<?php 2/** 4 * 5 * PHP versions 4 and 5 6 * 6 * 7 * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> 8 * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) 13 * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) 14 * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests 15 * @package cake 16 * @subpackage cake.cake.tests.libs 17 * @since CakePHP(tm) v 1.2.0.4667 18 * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License 20if (!class_exists('dispatcher')) { 21 require CAKE . 'dispatcher.php'; 22}js.php git://github.com/Datawalke/Coordino.git | PHP | 1133 lines
1<?php 2/** 4 * 5 * PHP versions 4 and 5 6 * 6 * 7 * CakePHP : Rapid Development Framework (http://cakephp.org) 8 * Copyright 2005-2012, Cake Software Foundation, Inc. 13 * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. 14 * @link http://cakephp.org CakePHP Project 15 * @package cake 16 * @subpackage cake.cake.libs.view.helpers 17 * @since CakePHP v 1.2 18 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 124 function call__($method, $params) { 125 if (isset($this->{$this->__engineName}) && method_exists($this->{$this->__engineName}, $method)) { 126 $buffer = false;Upload.php http://xtraupload.googlecode.com/svn/trunk/ | PHP | 841 lines
1<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); 2/** 4 * 5 * An open source application development framework for PHP 4.3.2 or newer 6 * 113 $method = 'set_'.$key; 114 if (method_exists($this, $method)) 115 {AggregateColumnBehaviorTest.php git://github.com/propelorm/Propel.git | PHP | 336 lines
1<?php 2 3/* 4 * $Id: SoftDeleteBehaviorTest.php 1612 2010-03-16 22:56:21Z francois $ 5 * This file is part of the Propel package. 11 12require_once dirname(__FILE__) . '/../../../../tools/helpers/bookstore/BookstoreTestBase.php'; 13 26 $this->assertEquals(count($postTable->getColumns()), 2, 'AggregateColumn adds one column by default'); 27 $this->assertTrue(method_exists('AggregatePost', 'getNbComments')); 28 }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 {ToolListbox.php http://openbiz-cubi.googlecode.com/svn/trunk/ | PHP | 321 lines
1<?PHP 2 36 37 if (method_exists($this, $func)) 38 $list = call_user_func_array(array($this, $func),$args); 240 global $g_MetaFiles; 241 php_grep("<BizDataObj", $modulePath); 242 261 global $g_MetaFiles; 262 php_grep("<BizDataObj", $modulePath); 263 280 global $g_MetaFiles; 281 php_grep("<EasyForm", $modulePath); 282 295 296function php_grep($q, $path) 297{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 stipulationParameter.php git://github.com/zendframework/zf2.git | PHP | 207 lines
1<?php 2/** 73 $method = 'set' . ucfirst($key); 74 if (method_exists($this, $method)) { 75 $this->$method($value);Cloud.php git://github.com/zendframework/zf2.git | PHP | 87 lines
1<?php 2/** 78 $method = 'set' . $key; 79 if (method_exists($this, $method)) { 80 $this->$method($value);Query.php git://github.com/moodle/moodle.git | PHP | 419 lines
1<?php 2 26 */ 27require_once 'Zend/Gdata/App/Util.php'; 28 398 $method = 'get'.ucfirst($name); 399 if (method_exists($this, $method)) { 400 return call_user_func(array(&$this, $method)); 401 } else { 402 require_once 'Zend/Gdata/App/Exception.php'; 403 throw new Zend_Gdata_App_Exception('Property ' . $name . ' does not exist'); 409 $method = 'set'.ucfirst($name); 410 if (method_exists($this, $method)) { 411 return call_user_func(array(&$this, $method), $val); 412 } else { 413 require_once 'Zend/Gdata/App/Exception.php'; 414 throw new Zend_Gdata_App_Exception('Property ' . $name . ' does not exist');ViewHelper.php git://github.com/zendframework/zf2.git | PHP | 262 lines
1<?php 2/** 160 161 if (method_exists($element, 'getSeparator')) { 162 if (null !== ($listsep = $element->getSeparator())) { 232 233 if (method_exists($element, 'getMultiOptions')) { 234 $element->getMultiOptions(); 245 $helperObject = $view->plugin($helper); 246 if (method_exists($helperObject, 'setTranslator')) { 247 $helperObject->setTranslator($element->getTranslator());function.html_radios.php git://github.com/movabletype/movabletype.git | PHP | 232 lines
1<?php 2/** 10 * Smarty {html_radios} function plugin 11 * File: function.html_radios.php<br> 12 * Type: function<br> 33 * 34 * @link http://smarty.php.net/manual/en/language.function.html.radios.php {html_radios} 35 * (Smarty online manual) 47{ 48 require_once(SMARTY_PLUGINS_DIR . 'shared.escape_special_chars.php'); 49 72 } elseif (is_object($_val)) { 73 if (method_exists($_val, "__toString")) { 74 $selected = smarty_function_escape_special_chars((string) $_val->__toString()); 172 if (is_object($value)) { 173 if (method_exists($value, "__toString")) { 174 $value = (string) $value->__toString();eztemplatesectioniterator.php git://github.com/ezsystems/ezpublish.git | PHP | 151 lines
1<?php 2/** 11/*! 12 \class eZTemplateSectionIterator eztemplatesectioniterator.php 13 \ingroup eZTemplateFunctions 62 else if ( is_object( $item ) and 63 method_exists( $item, 'attributes' ) ) 64 { 92 } 93 if ( is_object( $item ) && method_exists( $item, 'hasAttribute' ) ) 94 { 120 } 121 if ( is_object( $item ) && method_exists( $item, 'attribute' ) ) 122 {UrlValidator.php git://github.com/symfony/symfony.git | PHP | 80 lines
1<?php 2 54 55 if (!is_scalar($value) && !(\is_object($value) && method_exists($value, '__toString'))) { 56 throw new UnexpectedValueException($value, 'string');interfaces_test.php git://github.com/swiftmailer/swiftmailer.git | PHP | 137 lines
1<?php 2// $Id: interfaces_test.php 1781 2008-04-22 10:43:01Z lastcraft $ 2// $Id: interfaces_test.php 1781 2008-04-22 10:43:01Z lastcraft $ 3require_once(dirname(__FILE__) . '/../autorun.php'); 4if (function_exists('spl_classes')) { 4if (function_exists('spl_classes')) { 5 include(dirname(__FILE__) . '/support/spl_examples.php'); 6} 7if (version_compare(PHP_VERSION, '5.1', '>=')) { 8 include(dirname(__FILE__) . '/interfaces_test_php5_1.php'); 9} 25 $this->assertIsA($mock, 'MockDummyInterface'); 26 $this->assertTrue(method_exists($mock, 'aMethod')); 27 $this->assertTrue(method_exists($mock, 'anotherMethod')); 55 } 56 if (version_compare(PHP_VERSION, '5.1', '<') && 57 $class == 'CachingIterator' ||Escape.php git://github.com/zendframework/zf2.git | PHP | 163 lines
1<?php 2/** 143 // Attempt to cast it to a string 144 if (method_exists($value, '__toString')) { 145 $callback = $this->getCallback(); 152 } 153 if (method_exists($value, 'toArray')) { 154 return $this->__invoke($value->toArray(), $recurse | self::RECURSE_ARRAY);Encrypt.php git://github.com/zendframework/zf2.git | PHP | 169 lines
1<?php 2/** 144 $part = substr($method, 0, 3); 145 if ((($part != 'get') && ($part != 'set')) || !method_exists($this->adapter, $method)) { 146 throw new Exception\BadMethodCallException("Unknown method '{$method}'");report_module.php http://torrentpier2.googlecode.com/svn/trunk/ | PHP | 191 lines
1<?php 2 25 26 if (method_exists($this, 'subject_url') && isset($this->lang['CLICK_RETURN'])) 27 { 135 { 136 if (!method_exists($this, 'subjects_auth_obtain') || empty($report_subjects)) 137 {admin.php git://github.com/pyrocms/pyrocms.git | PHP | 290 lines
1<?php defined('BASEPATH') OR exit('No direct script access allowed'); 2 116 // Call the action we want to do 117 if (method_exists($this, $action)) 118 {BaseValidationRule.php http://owasp-esapi-php.googlecode.com/svn/trunk/ | PHP | 276 lines
1<?php 2/** 7 * 8 * PHP version 5.2 9 * 19 * @copyright 2009-2010 The OWASP Foundation 20 * @license http://www.opensource.org/licenses/bsd-license.php New BSD license 21 * @version SVN: $Id$ 21 * @version SVN: $Id$ 22 * @link http://www.owasp.org/index.php/ESAPI 23 */ 28 */ 29require_once dirname(__FILE__) . '/../../ValidationRule.php'; 30require_once dirname(__FILE__) . '/../DefaultEncoder.php'; 40 * @copyright 2009-2010 The OWASP Foundation 41 * @license http://www.opensource.org/licenses/bsd-license.php New BSD license 42 * @version Release: @package_version@PHPDriver.php git://github.com/doctrine/mongodb-odm.git | PHP | 117 lines
1<?php 2/* 25/** 26 * The PHPDriver invokes a static PHP function on the document class itself passing 27 * a ClassMetadata instance for you to manually populate with mapping information. 28 * 29 * @license http://www.opensource.org/licenses/lgpl-license.php LGPL 30 * @link www.doctrine-project.org 34 */ 35class PHPDriver implements Driver 36{ 114 { 115 return method_exists($className, 'loadMetadata') ? false : true; 116 }content.feed.php http://miacms.googlecode.com/svn/trunk/ | PHP | 379 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();calendar_content_object_publication_list_renderer.class.php https://bitbucket.org/chamilo/chamilo-app-weblcms/ | PHP | 267 lines
1<?php 2namespace application\weblcms; 14/** 15 * $Id: week_calendar_content_object_publication_list_renderer.class.php 216 2009-11-13 14:08:06Z kariboe $ 16 * @package application.lib.weblcms.browser.list_renderer 17 */ 18require_once dirname(__FILE__) . '/../content_object_publication_list_renderer.class.php'; 19/** 64 { 65 if (method_exists($this->get_tool_browser()->get_parent(), 'convert_content_object_publication_to_calendar_event')) 66 {CallbackTest.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);creator.class.php https://bitbucket.org/chamilo/chamilo-repository/ | PHP | 157 lines
1<?php 2 14/** 15 * $Id: creator.class.php 200 2009-11-13 12:30:04Z kariboe $ 16 * @package repository.lib.complex_builder.component 17 */ 18require_once dirname(__FILE__) . '/../complex_builder_component.class.php'; 19 19 20//require_once dirname(__FILE__) . '/../../complex_repo_viewer/complex_repo_viewer.class.php'; 21 83 $type = $rdm->determine_content_object_type($content_object_id); 84 if (method_exists($this->get_parent(), 'get_helper_object')) 85 {DefaultIterator.php git://github.com/zendframework/zf2.git | PHP | 340 lines
1<?php 2/** 137 } elseif (is_array($attributeNameTreatment) 138 && !method_exists($attributeNameTreatment[0], $attributeNameTreatment[1]) 139 ) {DB_utility.php git://github.com/philsturgeon/codeigniter-restserver.git | PHP | 414 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 * 87 // this is intended to allow them to override with their own functions as 88 // defined in $driver_utility.php 89 if (method_exists($this, '_database_exists')) 121 // Note: Due to a bug in current() that affects some versions 122 // of PHP we can not pass function call directly into it 123 return current($res); 149 // Note: Due to a bug in current() that affects some versions 150 // of PHP we can not pass function call directly into it 151 $res = $query->result_array(); 183 // Note: Due to a bug in current() that affects some versions 184 // of PHP we can not pass function call directly into it 185 $res = $query->result_array();AdapterAbstract.php git://github.com/moodle/moodle.git | PHP | 316 lines
1<?php 2/** 24 */ 25require_once 'Zend/Validate/Barcode/AdapterInterface.php'; 26 140 if (!empty($checksum)) { 141 if (method_exists($this, $checksum)) { 142 return call_user_func(array($this, $checksum), $value);cron.php git://github.com/moodle/moodle.git | PHP | 414 lines
1<?php 2 26 */ 27require_once $CFG->libdir.'/completionlib.php'; 28 212 $object = 'completion_criteria_'.$type; 213 require_once $CFG->libdir.'/completion/'.$object.'.php'; 214 217 // Run the criteria type's cron method, if it has one 218 if (method_exists($class, 'cron')) { 219pre_process.php http://phreedom.googlecode.com/svn/trunk/ | PHP | 183 lines
1<?php 2// +-----------------------------------------------------------------+ 17// +-----------------------------------------------------------------+ 18// Path: /modules/shipping/pages/admin/pre_process.php 19// 24gen_pull_language('contacts'); 25require_once(DIR_FS_WORKING . 'defaults.php'); 26require_once(DIR_FS_WORKING . 'functions/shipping.php'); 26require_once(DIR_FS_WORKING . 'functions/shipping.php'); 27require_once(DIR_FS_MODULES . 'phreedom/classes/backup.php'); 28require_once(DIR_FS_WORKING . 'classes/install.php'); 57 validate_security($security_level, 4); 58 require_once($method_dir . $method . '/' . $method . '.php'); 59 $properties = new $method(); 61 foreach ($properties->keys() as $key) write_configure($key['key'], $key['default']); 62 if (method_exists($properties, 'install')) $properties->install(); // handle special case install, db, files, etc 63 gen_redirect(html_href_link(FILENAME_DEFAULT, gen_get_all_get_params(array('action')), 'SSL'));Fieldset.php git://github.com/zendframework/zf2.git | PHP | 173 lines
1<?php 2/** 118 if ((null === $legend) && (null !== ($element = $this->getElement()))) { 119 if (method_exists($element, 'getLegend')) { 120 $legend = $element->getLegend();applyPackage.php git://github.com/osCommerce/oscommerce.git | PHP | 194 lines
1<?php 2/** 65// loop through each file individually as extractTo() does not work with 66// directories (see http://bugs.php.net/bug.php?id=54289) 67 foreach ( new RecursiveIteratorIterator($phar) as $iteration ) { 147 if ( $phar_can_open === true ) { 148 if ( isset($meta['run']) && method_exists('osCommerce\\OM\\Work\\CoreUpdate\\' . $meta['run'] . '\\Controller', 'runAfter') ) { 149 $results = call_user_func(array('osCommerce\\OM\\Work\\CoreUpdate\\' . $meta['run'] . '\\Controller', 'runAfter'));BaseMediaSource.php git://github.com/moodle/moodle.git | PHP | 180 lines
1<?php 2 26 */ 27require_once 'Zend/Gdata/App/MediaSource.php'; 28 113 $method = 'get'.ucfirst($name); 114 if (method_exists($this, $method)) { 115 return call_user_func(array(&$this, $method)); 118 } else { 119 require_once 'Zend/Gdata/App/InvalidArgumentException.php'; 120 throw new Zend_Gdata_App_InvalidArgumentException( 137 $method = 'set'.ucfirst($name); 138 if (method_exists($this, $method)) { 139 return call_user_func(array(&$this, $method), $val); 142 } else { 143 require_once 'Zend/Gdata/App/InvalidArgumentException.php'; 144 throw new Zend_Gdata_App_InvalidArgumentException(PartialLoop.php git://github.com/zendframework/zf2.git | PHP | 164 lines
1<?php 2/** 153 154 if (is_object($values) && method_exists($values, 'toArray')) { 155 return $values->toArray();testgradescale.php git://github.com/moodle/moodle.git | PHP | 143 lines
1<?php 2 37 38require_once($CFG->libdir.'/simpletest/fixtures/gradetest.php'); 39 71 $grade_scale = new grade_scale(); 72 $this->assertTrue(method_exists($grade_scale, 'insert')); 73 91 $grade_scale = new grade_scale($this->scale[1]); 92 $this->assertTrue(method_exists($grade_scale, 'update')); 93 102 $grade_scale = new grade_scale($this->scale[4]);//choose one we're not using elsewhere 103 $this->assertTrue(method_exists($grade_scale, 'delete')); 104 113 $grade_scale = new grade_scale(); 114 $this->assertTrue(method_exists($grade_scale, 'fetch')); 115Standalone.php http://digitalus-site-manager.googlecode.com/svn/trunk/ | PHP | 291 lines
1<?php 2/** 17 * @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com) 18 * @version $Id: Standalone.php 10665 2008-08-05 10:57:18Z matthew $ 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'; 191 $container = $this->getContainer(); 192 if (method_exists($container, $method)) { 193 $return = call_user_func_array(array($container, $method), $args); 200 201 require_once 'Zend/View/Exception.php'; 202 throw new Zend_View_Exception('Method "' . $method . '" does not exist');pecl-manager.php git://github.com/brianlmoon/GearmanManager.git | PHP | 223 lines
1#!/usr/bin/env php 2<?php 14 15require dirname(__FILE__)."/GearmanManager.php"; 16 116 117 if(class_exists($func) && method_exists($func, "run")){ 118 186 * Workaround for PECL bug #17114 187 * http://pecl.php.net/bugs/bug.php?id=17114 188 */ 207 if(!function_exists($real_func) && 208 (!class_exists($real_func) || !method_exists($real_func, "run"))){ 209 $this->log("Function $real_func not found in ".$props["path"]);toolbar.languages.php http://miacms.googlecode.com/svn/trunk/ | PHP | 120 lines
1<?php 2/** 4* @subpackage Languages 5* @author MiaCMS see README.php 6* @copyright MiaCMS 6* @copyright MiaCMS 7* See COPYRIGHT.php for copyright notices and details. 8* @license GNU/GPL Version 2, see LICENSE.php 23 $this->request = $_REQUEST; 24 $gettext_admin = new PHPGettextAdmin(); 25 $this->has_gettext = $gettext_admin->gettextAble(); 33 if (in_array($method, array_keys($this->map)))$method = $this->map[$method]; 34 if ($method && strlen($method) > 2 && method_exists($this, $method)) 35 return $this->$method();spec.php git://github.com/speedmax/h2o-php.git | PHP | 324 lines
1<?php 2/** 3 * @name SimpleSpec 4 * PHP SimpleTest extension for Behavior driven development(BDD) 5 * 5 * 6 * why not PHPSpec? well its a good project but SimpleTest has better coverage for testing 7 * and i want better grammer 87 88 if (!method_exists($this->matcher, $matcher)) { 89 throw new Exception("matcher doesn't exist");Format.php git://github.com/philsturgeon/codeigniter-restserver.git | PHP | 525 lines
1<?php 2 34 /** 35 * PHP output format 36 */ 36 */ 37 const PHP_FORMAT = 'php'; 38 93 { 94 if (method_exists($this, '_from_'.$from_type)) 95 { 296 /** 297 * @link http://www.metashock.de/2014/02/create-csv-file-in-memory-php/ 298 * @param mixed|NULL $data Optional data to pass, so as to override the data passed 308 // Use a threshold of 1 MB (1024 * 1024) 309 $handle = fopen('php://temp/maxmemory:1048576', 'w'); 310 if ($handle === FALSE)Instance.php git://github.com/zendframework/zf2.git | PHP | 334 lines
1<?php 2/** 97 if (is_object($data)) { 98 if (method_exists($data, 'toArray')) { 99 $data= $data->toArray();Consumer.php git://github.com/zendframework/zf2.git | PHP | 253 lines
1<?php 2/** 246 { 247 if (!method_exists($this->_config, $method)) { 248 throw new Exception('Method does not exist: '.$method);Repository.php git://github.com/zendframework/zf2.git | PHP | 274 lines
1<?php 2/** 102 103 if (method_exists($provider, 'getName')) { 104 $providerName = $provider->getName();UnitOfWork.php git://github.com/doctrine/mongodb-odm.git | PHP | 2864 lines
1<?php 2 33use function is_object; 34use function method_exists; 35use function preg_match; 99 * 100 * @internal Note that PHPs "copy-on-write" behavior helps a lot with memory usage. 101 * A value will only really be copied if the value in the document is modifiedBlock.php http://jfxcms.googlecode.com/svn/ | PHP | 941 lines
1<?php 2############### COPYLEFT GPLv3 LICENSE ############### 47 'block_style' => '', 48 'php_code' => '', 49 'is_template' => 0, 159 160 if(is_object($this->object) && method_exists($this->object, 'setClassName')) 161 $this->object->setClassName($className, $this->details); 175 $className = $this->details['class_name']; 176 if(is_object($this->object) && method_exists($this->object, 'getClassName')) 177 $className .= $this->object->getClassName($this->details); 182 public function setTemplate($template){ 183 if(is_object($this->object) && method_exists($this->object, 'setTemplate')) 184 $template = $this->object->setTemplate($template, $this->details);Block.php http://jfxcms.googlecode.com/svn/ | PHP | 520 lines
1<?php 2############### COPYLEFT GPLv3 LICENSE ############### 38 'block_style' => '', 39 'php_code' => '', 40 'is_template' => 0, 62 63 if(is_object($this->object) && method_exists('setClassName', $this->object)) 64 $this->object->setClassName($className, $this->details); 68 $className = $this->details['class_name']; 69 if(is_object($this->object) && method_exists('getClassName', $this->object)) 70 $className .= $this->object->getClassName($this->details); 75 public function setTemplate($template){ 76 if(is_object($this->object) && method_exists('setTemplate', $this->object)) 77 $template = $this->object->setTemplate($template, $this->details);Blocker.php http://jfxcms.googlecode.com/svn/ | PHP | 461 lines
1<?php 2############### COPYLEFT GPLv3 LICENSE ############### 57 58 if(is_object($this->object) && method_exists('setClassName', $this->object)) 59 $this->object->setClassName($className, $this->details); 63 $className = $this->details['class_name']; 64 if(is_object($this->object) && method_exists('getClassName', $this->object)) 65 $className .= $this->object->getClassName($this->details); 70 public function setTemplate($template){ 71 if(is_object($this->object) && method_exists('setTemplate', $this->object)) 72 $template = $this->object->setTemplate($template, $this->details);Format.php git://github.com/moodle/moodle.git | PHP | 1103 lines
1<?php 2/* 11* I _DO_ maintain this code, and John McNamara has nothing to do with the 12* porting of this code to PHP. Any questions directly related to this 13* class library should be directed to me. 34 35require_once 'PEAR.php'; 36 300 { 301 if (method_exists($this, 'set'.ucwords($property))) { 302 $method_name = 'set'.ucwords($property);Twitter.php git://github.com/moodle/moodle.git | PHP | 1034 lines
1<?php 2/** 25 */ 26require_once 'Zend/Rest/Client.php'; 27 30 */ 31require_once 'Zend/Rest/Client/Result.php'; 32 35 */ 36require_once 'Zend/Oauth/Consumer.php'; 37 225 if (!in_array($type, $this->_methodTypes)) { 226 include_once 'Zend/Service/Twitter/Exception.php'; 227 throw new Zend_Service_Twitter_Exception( 244 { 245 if (method_exists($this->_oauthConsumer, $method)) { 246 $return = call_user_func_array(array($this->_oauthConsumer, $method), $params);Server.php git://github.com/moodle/moodle.git | PHP | 616 lines
1<?php 2/** 25 */ 26require_once 'Zend/Server/Abstract.php'; 27 30 */ 31require_once 'Zend/XmlRpc/Request.php'; 32 35 */ 36require_once 'Zend/XmlRpc/Response.php'; 37 40 */ 41require_once 'Zend/XmlRpc/Response/Http.php'; 42 45 */ 46require_once 'Zend/XmlRpc/Server/Fault.php'; 47gradetest.php git://github.com/moodle/moodle.git | PHP | 879 lines
1<?php 2 27 28require_once($CFG->libdir . '/adminlib.php'); 29require_once($CFG->libdir . '/gradelib.php'); 82 $function = "load_$table"; 83 if (method_exists($this, $function)) { 84 $this->$function();Format.php git://github.com/moodle/moodle.git | PHP | 637 lines
1<?php 2/* 11* I _DO_ maintain this code, and John McNamara has nothing to do with the 12* porting of this code to PHP. Any questions directly related to this 13* class library should be directed to me. 97 { 98 if(method_exists($this,"set_$property")) 99 {testgradecategory.php git://github.com/moodle/moodle.git | PHP | 670 lines
1<?php 2 37 38require_once($CFG->libdir.'/simpletest/fixtures/gradetest.php'); 39 136 $grade_category = new grade_category($this->grade_categories[1]); 137 $this->assertTrue(method_exists($grade_category, 'build_path')); 138 $path = grade_category::build_path($grade_category); 143 $grade_category = new grade_category(); 144 $this->assertTrue(method_exists($grade_category, 'fetch')); 145 152 $grade_category = new grade_category(); 153 $this->assertTrue(method_exists($grade_category, 'fetch_all')); 154 161 $grade_category = new grade_category($this->grade_categories[0]); 162 $this->assertTrue(method_exists($grade_category, 'update')); 163testgradeitem.php git://github.com/moodle/moodle.git | PHP | 569 lines
1<?php 2 37 38require_once($CFG->libdir.'/simpletest/fixtures/gradetest.php'); 39 101 $grade_item = new grade_item(); 102 $this->assertTrue(method_exists($grade_item, 'insert')); 103 124 $grade_item = new grade_item($this->grade_items[7]);//use a grade item not touched by previous (or future) tests 125 $this->assertTrue(method_exists($grade_item, 'delete')); 126 137 $grade_item = new grade_item($this->grade_items[0]); 138 $this->assertTrue(method_exists($grade_item, 'update')); 139 153 $grade_item = new grade_item($this->grade_items[2]); 154 $this->assertTrue(method_exists($grade_item, 'load_scale')); 155 $scale = $grade_item->load_scale();deprecatedlib.php git://github.com/moodle/moodle.git | PHP | 3408 lines
1<?php 2 18/** 19 * deprecatedlib.php - Old functions retained only for backward compatibility 20 * 54 $manager = get_log_manager(); 55 if (method_exists($manager, 'legacy_add_to_log')) { 56 $manager->legacy_add_to_log($courseid, $module, $action, $url, $info, $cm, $user); 70 * This is a whitelist of components that are part of the core and their 71 * language strings are defined in /lang/en/<<subsystem>>.php. If a given 72 * plugin is not listed here and it does not have proper plugintype prefix, 76 * directory for this subsystem. If the location is set, the subsystem's 77 * renderer.php is expected to be there. 78 * 312/** 313 * @deprecated since 2.7 PHP 5.4.x should be always compatible. 314 */externallib.php git://github.com/moodle/moodle.git | PHP | 1556 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 79 if (!class_exists($function->classname)) { 80 // Fallback to explicit include of externallib.php. 81 if (empty($function->classpath)) { 81 if (empty($function->classpath)) { 82 $function->classpath = core_component::get_component_directory($function->component).'/externallib.php'; 83 } else { 100 // Make sure the implementaion class is ok. 101 if (!method_exists($function->classname, $function->methodname)) { 102 throw new coding_exception('Missing implementation method of '.$function->classname.'::'.$function->methodname); 103 } 104 if (!method_exists($function->classname, $function->parameters_method)) { 105 throw new coding_exception('Missing parameters description'); 106 } 107 if (!method_exists($function->classname, $function->returns_method)) { 108 throw new coding_exception('Missing returned values description');PhutilErrorHandler.php git://github.com/facebook/libphutil.git | PHP | 597 lines
1<?php 2 3/** 4 * Improve PHP error logs and optionally route errors, exceptions and debugging 5 * information to a central listener. 6 * 7 * This class takes over the PHP error and exception handlers when you call 8 * ##PhutilErrorHandler::initialize()## and forwards all debugging information 11 * To use PhutilErrorHandler, which will enhance the messages printed to the 12 * PHP error log, just initialize it: 13 * 47 /** 48 * Registers this class as the PHP error and exception handler. This will 49 * overwrite any previous handlers! 79 /** 80 * Gets the previous exception of a nested exception. Prior to PHP 5.3 you 81 * can use @{class:PhutilProxyException} to nest exceptions; after PHP 5.3SonataAdminExtension.php git://github.com/sonata-project/SonataAdminBundle.git | PHP | 330 lines
1<?php 2 66 $sidebarMenu = $container->getDefinition('sonata.admin.sidebar_menu'); 67 if (method_exists($sidebarMenu, 'setFactory')) { 68 $sidebarMenu->setFactory(array(new Reference('sonata.admin.menu_builder'), 'createSidebarMenu'));Email.php http://wolfcms.googlecode.com/svn/trunk/ | PHP | 1400 lines
1<?php 2/* 22 * @license http://www.wolfcms.org/about/wolf-cms-licensing.html 23 * @version SVN: $Id: Email.php 226 2010-08-17 09:33:31Z djreimer $ 24 * @since Available since release 0.0.1 102 103 if (method_exists($this, $method)) { 104 $this->$method($val);Upload.php http://wolfcms.googlecode.com/svn/trunk/ | PHP | 735 lines
1<?php 2/* 114 $method = 'set_'.$key; 115 if (method_exists($this, $method)) { 116 $this->$method($config[$key]);mock_objects_test.php git://github.com/swiftmailer/swiftmailer.git | PHP | 1013 lines
1<?php 2// $Id: mock_objects_test.php 1801 2008-09-01 23:22:06Z tswicegood $ 2// $Id: mock_objects_test.php 1801 2008-09-01 23:22:06Z tswicegood $ 3require_once(dirname(__FILE__) . '/../autorun.php'); 4require_once(dirname(__FILE__) . '/../expectation.php'); 4require_once(dirname(__FILE__) . '/../expectation.php'); 5require_once(dirname(__FILE__) . '/../mock_objects.php'); 6 181 function testCanThrowException() { 182 if (version_compare(phpversion(), '5', '>=')) { 183 $schedule = new SimpleCallSchedule(); 221 $mock = new MockDummy(); 222 $this->assertTrue(method_exists($mock, "aMethod")); 223 $this->assertNull($mock->aMethod()); 227 $mock = new MockDummyWithExtraMethods(); 228 $this->assertTrue(method_exists($mock, "extraMethod")); 229 }ARC2_Class.php https://code.google.com/p/goodrelations-for-joomla/ | PHP | 257 lines
1<?php 2/* 51 $o = ($o !== false) ? $o : $this; 52 return method_exists($o, $name) ? $o->$name($a) : $default; 53 } 70 } 71 if ($this->caller && method_exists($this->caller, 'addError')) { 72 $glue = strpos($v, ' in ') ? ' via ' : ' in ';query_factory.php http://phreedom.googlecode.com/svn/trunk/ | PHP | 296 lines
1<?php 2// +-----------------------------------------------------------------+ 17// +-----------------------------------------------------------------+ 18// Path: /includes/db/mysql/query_factory.php 19// 162 if (!$zp_db_resource) { 163 if (method_exists($messageStack, 'debug')) { 164 $messageStack->debug("\n\nThe failing sql was: " . $zf_sql);content_object_installer.class.php https://bitbucket.org/chamilo/chamilo-repository-dev/ | PHP | 432 lines
1<?php 2namespace repository; 25/** 26 * $Id: installer.class.php 198 2009-11-13 12:20:22Z vanpouckesven $ 27 * @package common 90 91 if (method_exists($this, 'install_extra')) 92 { 109 $type = $this->get_content_object(); 110 $file = Path :: get_repository_content_object_path() . $type . '/php/install/example.cpo'; 111 155 * For defining the 'type' of the field, the same definition is used as the 156 * PEAR::MDB2 package. See http://pear.php.net/manual/en/package.database. 157 * mdb2.datatypes.php 416 417 $file = Path :: get_repository_content_object_path() . $type . '/php/install/' . $type . '_installer.class.php'; 418 if (file_exists($file))ezuseroperationcollection.php git://github.com/ezsystems/ezpublish.git | PHP | 396 lines
1<?php 2/** 11/*! 12 \class eZUserOperationCollection ezuseroperationcollection.php 13 \brief The class eZUserOperationCollection does 119 $user = eZContentObject::fetch( $userID ); 120 if ( $verifyUserTypeClass && method_exists( $verifyUserTypeClass, 'verifyUser' ) ) 121 $sendUserMail = call_user_func( array( $verifyUserTypeClass, 'verifyUser' ), $user, $tpl );TranslationProxy.php git://github.com/l3pp4rd/DoctrineExtensions.git | PHP | 174 lines
1<?php 2 10 * @author Konstantin Kudryashov <ever.zet@gmail.com> 11 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 12 */ 83 if (in_array($property, $this->properties)) { 84 if (method_exists($this, $getter = 'get'.ucfirst($property))) { 85 return $this->$getter; 96 if (in_array($property, $this->properties)) { 97 if (method_exists($this, $setter = 'set'.ucfirst($property))) { 98 return $this->$setter($value);AkelosGenerator.php http://akelosframework.googlecode.com/svn/trunk/ | PHP | 226 lines
1<?php 2/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ 38 if(count(array_diff($commands,array('help','-help','usage','-usage','h','-h','USAGE','-USAGE'))) != count($commands) || count($commands) == 0){ 39 $usage = method_exists($this,'banner') ? $this->banner() : @Ak::file_get_contents(AK_SCRIPT_DIR.DS.'generators'.DS.$generator_name.DS.'USAGE'); 40 echo empty($usage) ? "\n".Ak::t('Could not locate usage file for this generator') : "\n".$usage."\n"; 43 44 if(file_exists(AK_SCRIPT_DIR.DS.'generators'.DS.$generator_name.DS.$generator_name.'_generator.php')){ 45 include_once(AK_SCRIPT_DIR.DS.'generators'.DS.$generator_name.DS.$generator_name.'_generator.php'); 214 $generator = array_shift(array_keys($folder)); 215 if(strstr($generator,'.php')){ 216 continue;error.php https://code.google.com/p/mj-its/ | PHP | 0 lines
1<?php 2/* SVN FILE: $Id$ */ 7 * 8 * PHP versions 4 and 5 9 * 9 * 10 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) 11 * Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org) 16 * @copyright Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org) 17 * @link http://cakephp.org CakePHP(tm) Project 18 * @package cake 19 * @subpackage cake.cake.libs 20 * @since CakePHP(tm) v 0.10.5.1732 21 * @version $Revision$ 23 * @lastmodified $Date$ 24 * @license http://www.opensource.org/licenses/mit-license.php The MIT License 25 */Callback.php git://github.com/moodle/moodle.git | PHP | 206 lines
1<?php 2/** 81 $method = 'set' . ucfirst($key); 82 if (method_exists($this, $method)) { 83 $this->$method($value); 168 if (!in_array($type, $this->_types)) { 169 require_once 'Zend/Server/Exception.php'; 170 throw new Zend_Server_Exception('Invalid method callback type passed to ' . __CLASS__ . '::' . __METHOD__);ViewHelper.php http://firephp.googlecode.com/svn/trunk/ | PHP | 0 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 10198 2008-07-18 22:46:53Z matthew $ 43 */ 155 156 if (method_exists($element, 'getSeparator')) { 157 if (null !== ($listsep = $element->getSeparator())) { 220 if (null === $view) { 221 require_once 'Zend/Form/Decorator/Exception.php'; 222 throw new Zend_Form_Decorator_Exception('ViewHelper decorator cannot render without a registered view object'); 224 225 if (method_exists($element, 'getMultiOptions')) { 226 $element->getMultiOptions();demo.audioinfo.class.php https://bitbucket.org/chamilo/chamilo-dev/ | PHP | 300 lines
1<?php 2 3// +----------------------------------------------------------------------+ 4// | PHP version 4.1.0 | 5// +----------------------------------------------------------------------+ 7// +----------------------------------------------------------------------+ 8// | /demo/demo.audioinfo.class.php | 9// | | 36// Updated By systho in order to make the file 37//require_once('../getid3/getid3.php'); 38require_once (dirname(__FILE__) . '/../getid3.php'); 103 $method = @$this->info['fileformat'] . 'Info'; 104 if (@$this->info['fileformat'] && method_exists($this, $method)) 105 {mock.stest.php http://snaptest.googlecode.com/svn/trunk/ | PHP | 159 lines
1<?php 2 2 3include_once SNAPTEST_ROOT.'mock.php'; 4 61 public function testPublicMethodsAreCopied() { 62 return $this->assertTrue(method_exists($this->mock_generated, 'pubReturnTrue')); 63 } 65 public function testProtectedMethodsAreNotCopied() { 66 return $this->assertFalse(method_exists($this->mock_generated, 'proReturnTrue')); 67 } 143 public function testProectedMethodsAreCopied() { 144 return $this->assertTrue(method_exists($this->mock_generated, 'proReturnTrue')); 145 }pre_process.php http://phreedom.googlecode.com/svn/trunk/ | PHP | 61 lines
1<?php 2// +-----------------------------------------------------------------+ 17// +-----------------------------------------------------------------+ 18// Path: /modules/shipping/pages/ship_mgr/pre_process.php 19// 21/************** include page specific files *********************/ 22require_once(DIR_FS_WORKING . 'defaults.php'); 23/************** page specific initialization *************************/ 31/*************** hook for custom actions ***************************/ 32$custom_path = DIR_FS_WORKING . 'custom/pages/ship_mgr/extra_actions.php'; 33if (file_exists($custom_path)) { include($custom_path); } 35if ($module_id) { 36 require_once (DIR_FS_WORKING.'methods/'.$module_id.'/'.$module_id.'.php'); 37 $shipping = new $module_id; 39 default: 40 if (method_exists($shipping, $action)) $shipping->$action(); 41 break;UsernamePasswordFormAuthenticationListener.php git://github.com/symfony/symfony.git | PHP | 102 lines
1<?php 2 87 88 if (!\is_string($username) && (!\is_object($username) || !method_exists($username, '__toString'))) { 89 throw new BadRequestHttpException(sprintf('The key "%s" must be a string, "%s" given.', $this->options['username_parameter'], get_debug_type($username)));Action.class.php http://iiccms.googlecode.com/svn/trunk/ | PHP | 151 lines
1<?php 2// +---------------------------------------------------------------------- 2// +---------------------------------------------------------------------- 3// | ThinkPHP [ WE CAN DO IT JUST THINK IT ] 4// +---------------------------------------------------------------------- 4// +---------------------------------------------------------------------- 5// | Copyright (c) 2009 http://thinkphp.cn All rights reserved. 6// +---------------------------------------------------------------------- 14 +------------------------------------------------------------------------------ 15 * ThinkPHP ????Action????? 16 +------------------------------------------------------------------------------ 32 //?????? 33 if(method_exists($this,'_initialize')) { 34 $this->_initialize(); 52 // ?????_empty?? ??? 53 if(method_exists($this,'_empty')) { 54 $this->_empty($method,$parms);Definition.php git://github.com/mvriel/Docblox.git | PHP | 423 lines
1<?php 2/** 4 * 5 * PHP Version 5 6 * 11 * @copyright 2010-2011 Mike van Riel / Naenius. (http://www.naenius.com) 12 * @license http://www.opensource.org/licenses/mit-license.php MIT 13 * @link http://docblox-project.org 22 * @author Mike van Riel <mike.vanriel@naenius.com> 23 * @license http://www.opensource.org/licenses/mit-license.php MIT 24 * @link http://docblox-project.org 69 70 if (method_exists($this->tag, 'getTypes')) { 71 $this->setTypes($this->tag->getTypes()); 73 74 if (method_exists($this->tag, 'getReference')) { 75 $this->setReference($this->tag->getReference());adodb-sybase_ase.inc.php git://github.com/moodle/moodle.git | PHP | 120 lines
1<?php 2/* 15 16require_once ADODB_DIR."/drivers/adodb-sybase.inc.php"; 17 44 45 if ($rs === false || !method_exists($rs, 'GetArray')){ 46 return $false; 106 if (!function_exists('sybase_connect')){ 107 return 'Your PHP doesn\'t contain the Sybase connection module!'; 108 }Image.php git://github.com/avalanche123/Imagine.git | PHP | 524 lines
127 /** 128 * (non-PHPdoc) 129 * @see Imagine\Image\ManipulatorInterface::paste() 160 /** 161 * @see http://pecl.php.net/bugs/bug.php?id=22435 162 */ 219 /** 220 * (non-PHPdoc) 221 * @see Imagine\Image\ManipulatorInterface::save() 240 /** 241 * (non-PHPdoc) 242 * @see Imagine\Image\ManipulatorInterface::show() 269 /** 270 * (non-PHPdoc) 271 * @see Imagine\Image\ImageInterface::__toString()content_object_updater.class.php https://bitbucket.org/chamilo/chamilo-repository/ | PHP | 382 lines
1<?php 2namespace repository; 85 86 if (method_exists($this, 'update_extra')) 87 { 135 * For defining the 'type' of the field, the same definition is used as the 136 * PEAR::MDB2 package. See http://pear.php.net/manual/en/package.database. 137 * mdb2.datatypes.php 364 365 $file = Path :: get_repository_path() . 'lib/content_object/' . $type . '/update/' . $version . '/' . $type . '_' . $version_string . '_updater.class.php'; 366 if (file_exists($file))AdminType.php git://github.com/sonata-project/SonataAdminBundle.git | PHP | 181 lines
1<?php 2 62 // @todo remove this code for old PropertyAccessor after dropping support for Symfony 2.3 63 if (!method_exists($p, 'isReadable')) { 64 $subjectCollection = $p->getValue(Gravatar.php git://github.com/zendframework/zf2.git | PHP | 360 lines
1<?php 2/** 128 $method = 'set' . str_replace(' ', '', ucwords(str_replace('_', ' ', $key))); 129 if (method_exists($this, $method)) { 130 $this->{$method}($value);post_comment.php http://bitcero-modules.googlecode.com/svn/ | PHP | 321 lines
1<?php 2// $Id: post_comment.php 511 2010-07-26 06:08:44Z i.bitcero $ 10 11include '../../mainfile.php'; 12 150 // Update comments number if object accepts this functionallity 151 if (is_file(XOOPS_ROOT_PATH.'/modules/'.$object.'/class/'.$object.'controller.php')){ 152 include_once XOOPS_ROOT_PATH.'/modules/'.$object.'/class/'.$object.'controller.php'; 155 $controller = new $class(); 156 if (method_exists($controller, 'increment_comments_number')){ 157 $controller->increment_comments_number($comment); 196 197 include '../../header.php'; 198 198 199 $cpath = XOOPS_ROOT_PATH.'/modules/'.$comment->getVar('id_obj').'/class/'.$comment->getVar('id_obj').'controller.php'; 200aclite.php http://fredistrano.googlecode.com/svn/trunk/ | PHP | 357 lines
1<?php 2/* SVN FILE: $Id: aclite.php 318 2008-10-15 16:34:21Z fbollon $ */ 5 * 6 * PHP 4 and 5 7 * 17 * @lastmodified $Date: 2008-10-15 18:34:21 +0200 (Wed, 15 Oct 2008) $ 18 * @license http://www.opensource.org/licenses/mit-license.php The MIT License 19 */ 54 $this->Session->delete('dynamicGroup'); 55 if (method_exists($this->controller, $tmp = 'beforeAuthorize')) { 56 $this->controller->{$tmp}(); 267 * 268 * @see app/plugins/models/acl_management.php for further details 269 * @param string $type REload only a given type of Acl (Aro,Aco)ReflectionParameter.php git://github.com/zendframework/zf2.git | PHP | 146 lines
1<?php 2/** 65 { 66 if (method_exists($this->reflection, $method)) { 67 return call_user_func_array(array($this->reflection, $method), $args);