PageRenderTime 213ms queryTime 32ms sortTime 2ms getByIdsTime 29ms findMatchingLines 46ms

100+ results results for 'php method_exists repo:balor/yiicms' (213 ms)

Not the results you expected?
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');
                    
                
Citation.php http://xerxes-portal.googlecode.com/svn/trunk/ | PHP | 666 lines
                    
1<?php
                    
2
                    
9 * @copyright 2009 California State University
                    
10 * @version $Id: Citation.php 1030 2010-01-05 18:42:09Z dwalker@calstate.edu $
                    
11 * @package Xerxes
                    
107			
                    
108			if ( method_exists($xerxes, $method) )
                    
109			{
                    
337		{
                    
338			if ( method_exists($this, $name) )
                    
339			{
                    
                
mdl.messenger.php http://phpfor.googlecode.com/svn/trunk/ | PHP | 309 lines
                    
1<?php
                    
2/**
                    
5 * @package
                    
6 * @version $Id: mdl.messenger.php 1429 2008-04-08 05:22:50Z flaboy $
                    
7 * @copyright 2003-2007 ShopEx
                    
11//adapted into plugin style by Alex 2008-3-14
                    
12require_once('plugin.php');
                    
13
                    
27            $this->_sender[$sender] = &$obj;
                    
28            if(method_exists($obj,'getOptions')||method_exists($obj,'getoptions'))
                    
29                $obj->config = $this->getOptions($sender,true);
                    
29                $obj->config = $this->getOptions($sender,true);
                    
30            if(method_exists($obj,'outgoingConfig')||method_exists($obj,'outgoingconfig'))
                    
31                $obj->outgoingOptions = $this->outgoingConfig($sender,true);
                    
39        if(!$obj->_isReady){
                    
40            if(method_exists($obj,'ready')) $obj->ready($obj->config);
                    
41            if(method_exists($obj,'finish')){
                    
                
CommandCursor.php git://github.com/doctrine/mongodb.git | PHP | 260 lines
                    
47     *
                    
48     * @see http://php.net/manual/en/mongocommandcursor.batchsize.php
                    
49     * @param integer $num
                    
77     *
                    
78     * @see http://php.net/manual/en/iterator.current.php
                    
79     * @see http://php.net/manual/en/mongocommandcursor.current.php
                    
89     *
                    
90     * @see http://php.net/manual/en/mongocommandcursor.dead.php
                    
91     * @return boolean
                    
140     *
                    
141     * @see http://php.net/manual/en/iterator.key.php
                    
142     * @see http://php.net/manual/en/mongocommandcursor.key.php
                    
152     *
                    
153     * @see http://php.net/manual/en/iterator.next.php
                    
154     * @see http://php.net/manual/en/mongocommandcursor.next.php
                    
                
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    }
                    
                
AbstractToken.php https://bitbucket.org/tippycracker/autokraitis.git | PHP | 286 lines
                    
1<?php
                    
2
                    
90    {
                    
91        if (!($user instanceof UserInterface || (is_object($user) && method_exists($user, '__toString')) || is_string($user))) {
                    
92            throw new \InvalidArgumentException('$user must be an instanceof UserInterface, an object implementing a __toString method, or a primitive string.');
                    
                
Adapter.php http://skeleton.googlecode.com/svn/trunk/ | PHP | 362 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * Adapter.php
                    
4 *
                    
4 *
                    
5 * @license	http://www.opensource.org/licenses/bsd-license.php BSD
                    
6 * @link	http://skeletonframework.com/
                    
76	{
                    
77		if (is_object($config) && method_exists($config, 'toArray')) {
                    
78			$config = $config->toArray();
                    
                
login.php git://github.com/concrete5/concrete5.git | PHP | 435 lines
                    
1<?php
                    
2
                    
85        $this->set('authType', $at);
                    
86        if (!method_exists($at->controller, $method)) {
                    
87            return $this->view();
                    
                
mssql.php git://github.com/phpbb/phpbb3.git | PHP | 441 lines
                    
1<?php
                    
2/**
                    
4* @package dbal
                    
5* @copyright (c) 2005 phpBB Group
                    
6* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
                    
12*/
                    
13if (!defined('IN_PHPBB'))
                    
14{
                    
17
                    
18include_once($phpbb_root_path . 'includes/db/dbal.' . $phpEx);
                    
19
                    
35
                    
36		$port_delimiter = (defined('PHP_OS') && substr(PHP_OS, 0, 3) === 'WIN') ? ',' : ':';
                    
37		$this->server = $sqlserver . (($port) ? $port_delimiter . $port : '');
                    
138
                    
139			$this->query_result = ($cache_ttl && method_exists($cache, 'sql_load')) ? $cache->sql_load($query) : false;
                    
140			$this->sql_add_num_queries($this->query_result);
                    
                
functions_report_admin.php http://torrentpier2.googlecode.com/svn/trunk/ | PHP | 569 lines
                    
1<?php
                    
2
                    
68		if (!class_exists("report_module"))
                    
69			include(INC_DIR . "report_module.php");
                    
70
                    
80		{
                    
81			if (!preg_match('#(.*)\.' . bb_preg_quote('php', '#') . '$#', $file, $matches))
                    
82			{
                    
98
                    
99			$lang_file = LANG_ROOT_DIR ."lang_{$bb_cfg['default_lang']}/report_hack/lang_$module_name.php";
                    
100			if (file_exists($lang_file))
                    
343	$report_module = report_modules('id', $module_id);
                    
344	if (method_exists($report_module, 'sync'))
                    
345	{
                    
                
Messaging.php git://github.com/twilio/twilio-php.git | PHP | 130 lines
                    
1<?php
                    
2
                    
59        $method = 'get' . \ucfirst($name);
                    
60        if (\method_exists($this, $method)) {
                    
61            return $this->$method();
                    
76        $method = 'context' . \ucfirst($name);
                    
77        if (\method_exists($this, $method)) {
                    
78            return \call_user_func_array([$this, $method], $arguments);
                    
                
Load.php http://skeleton.googlecode.com/svn/trunk/ | PHP | 297 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * Load.php
                    
4 * 
                    
4 * 
                    
5 * @license	http://www.opensource.org/licenses/bsd-license.php BSD
                    
6 * @link	http://skeletonframework.com/
                    
49	protected $renderClasses = array(
                    
50		'php' => 'A_Template_Include',
                    
51		'xml' => 'A_Template_Include',
                    
57	protected $renderClass = 'A_Template_Include';
                    
58	protected $renderExtension = 'php';
                    
59	protected $responseSet = false;
                    
115	
                    
116	public function setRenderClass($name, $ext='php')
                    
117	{
                    
                
Tester.php git://github.com/atk4/atk4.git | PHP | 364 lines
                    
1<?php
                    
2/**
                    
115                try {
                    
116                    if (method_exists($test_obj, 'prepare_'.$m)) {
                    
117                        $input = $test_obj->{'prepare_'.$m}($vari, $method);
                    
119                        if (($test_obj instanceof AbstractObject && $test_obj->hasMethod('prepare'))
                    
120                            || method_exists($test_obj, 'prepare')
                    
121                        ) {
                    
137
                    
138                $test_func = method_exists($test_obj, 'test_'.$m) ?
                    
139                    'test_'.$m : 'test';
                    
238                    // Input is a result of preparation function
                    
239                    if (method_exists($test_obj, 'prepare_'.$m)) {
                    
240                        $input = $test_obj->{'prepare_'.$m}($vari, $method);
                    
242                        if (($test_obj instanceof AbstractObject && $test_obj->hasMethod('prepare'))
                    
243                            || method_exists($test_obj, 'prepare')
                    
244                        ) {
                    
                
Widgets.php git://github.com/pyrocms/pyrocms.git | PHP | 497 lines
                    
1<?php defined('BASEPATH') OR exit('No direct script access allowed');
                    
2
                    
185
                    
186		$data = method_exists($this->_widget, 'run') ? call_user_func(array($this->_widget, 'run'), $options) : array();
                    
187
                    
241		// Check for default data if there is any
                    
242		$data = method_exists($this->_widget, 'form') ? call_user_func(array(&$this->_widget, 'form'), $options) : array();
                    
243
                    
433
                    
434		if (method_exists($this->_widget, 'save'))
                    
435		{
                    
                
SilvercartUpdate.php https://bitbucket.org/silvercart/silvercart/ | PHP | 410 lines
                    
1<?php
                    
2/**
                    
119         * $classDefaults = $className::$defaults;
                    
120         * was replaced with eval call to provide compatibility to PHP 5.2
                    
121         */
                    
124            $error = '';
                    
125        } elseif (!method_exists($this, 'executeUpdate')) {
                    
126            // method executeUpdate does not exist, trigger error
                    
                
ParamsLoader.php git://github.com/Codeception/Codeception.git | PHP | 157 lines
                    
1<?php
                    
2namespace Codeception\Lib;
                    
38
                    
39            if (preg_match('~\.php$~', $paramStorage)) {
                    
40                return $this->loadPhpFile();
                    
66
                    
67    protected function loadPhpFile()
                    
68    {
                    
117        if (class_exists('Dotenv\Dotenv')) {
                    
118            if (class_exists('Dotenv\Repository\RepositoryBuilder') && method_exists('Dotenv\Repository\RepositoryBuilder', 'createWithNoAdapters')) {
                    
119                //dotenv v5
                    
131                $dotEnv = \Dotenv\Dotenv::create($repository, codecept_root_dir(), $this->paramStorage);
                    
132            } elseif (method_exists('Dotenv\Dotenv', 'create')) {
                    
133                //dotenv v3
                    
147        throw new ConfigurationException(
                    
148            "`vlucas/phpdotenv` library is required to parse .env files.\n" .
                    
149            "Please install it via composer: composer require vlucas/phpdotenv"
                    
                
password_compat.php git://github.com/q2a/question2answer.git | PHP | 317 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * A Compatibility library with PHP 5.5's simplified password hashing API.
                    
4 *
                    
4 *
                    
5 * @author Anthony Ferrara <ircmaxell@php.net>
                    
6 * @license http://www.opensource.org/licenses/mit-license.html MIT License
                    
13        /**
                    
14         * PHPUnit Process isolation caches constants, but not function declarations.
                    
15         * So we need to check if the constants are defined separately from 
                    
84                    case 'object':
                    
85                        if (method_exists($options['salt'], '__tostring')) {
                    
86                            $salt = (string) $options['salt'];
                    
296        /**
                    
297         * Check if current PHP version is compatible with the library
                    
298         *
                    
                
SessionFactory.php git://github.com/concrete5/concrete5.git | PHP | 378 lines
                    
1<?php
                    
2namespace Concrete\Core\Session;
                    
210        $method = Str::camel("get_{$handler}_handler");
                    
211        if (method_exists($this, $method)) {
                    
212            return $this->{$method}($config);
                    
                
admin-widgets.php git://github.com/q2a/question2answer.git | PHP | 346 lines
                    
1<?php
                    
2/*
                    
18
                    
19	More about this license: http://www.question2answer.org/license.php
                    
20*/
                    
26
                    
27require_once QA_INCLUDE_DIR . 'app/admin.php';
                    
28require_once QA_INCLUDE_DIR . 'db/selects.php';
                    
100
                    
101if (isset($module) && method_exists($module, 'allow_template')) {
                    
102	foreach ($templatelangkeys as $template => $langkey) {
                    
133elseif (qa_clicked('dosavewidget')) {
                    
134	require_once QA_INCLUDE_DIR . 'db/admin.php';
                    
135
                    
197
                    
198	$widgetallowed = method_exists($module, 'allow_region') && $module->allow_region($region);
                    
199
                    
                
WireDebugInfo.php git://github.com/ryancramerdesign/ProcessWire.git | PHP | 158 lines
                    
1<?php
                    
2
                    
3/**
                    
4 * Helper class for PHP 5.6+ __debugInfo() methods in Wire classes
                    
5 * 
                    
26		
                    
27		if(method_exists($this, $className)) {
                    
28			$info = array_merge($info, $this->$className($obj));
                    
55			} else if($hook['options']['after']) {
                    
56				if(method_exists($class, $hook['method']) || method_exists($class, '___' . $hook['method'])) {
                    
57					$key .= "after ";
                    
                
admin-plugins.php git://github.com/q2a/question2answer.git | PHP | 272 lines
                    
1<?php
                    
2/*
                    
18
                    
19	More about this license: http://www.question2answer.org/license.php
                    
20*/
                    
26
                    
27require_once QA_INCLUDE_DIR . 'app/admin.php';
                    
28
                    
83
                    
84		if (method_exists($module, 'admin_form')) {
                    
85			$info = qa_get_module_info($type, $name);
                    
204
                    
205		elseif (qa_php_version_below(@$metadata['min_php']))
                    
206			$pluginhtml = '<s style="color:#999">'.$pluginhtml.'</s><br><span style="color:#f00">'.
                    
206			$pluginhtml = '<s style="color:#999">'.$pluginhtml.'</s><br><span style="color:#f00">'.
                    
207				qa_lang_html_sub('admin/requires_php_version', qa_html($metadata['min_php'])).'</span>';
                    
208
                    
                
reflection_php5.php http://logisticsouth.googlecode.com/svn/trunk/ | PHP | 386 lines
                    
5 *  @subpackage UnitTester
                    
6 *  @version    $Id: reflection_php5.php 1786 2008-04-26 17:32:20Z pp11 $
                    
7 */
                    
27     *    Checks that a class has been declared. Versions
                    
28     *    before PHP5.0.2 need a check that it's not really
                    
29     *    an interface.
                    
41    /**
                    
42     *    Needed to kill the autoload feature in PHP5
                    
43     *    for classes created dynamically.
                    
61    /**
                    
62     *    Needed to kill the autoload feature in PHP5
                    
63     *    for classes created dynamically.
                    
288        }
                    
289        if (version_compare(phpversion(), '5.1.0', '>=')) {
                    
290            if (in_array($name, array('__get', '__isset', $name == '__unset'))) {
                    
                
Modules.php https://bitbucket.org/haloweb/halogy-1.0/ | PHP | 205 lines
                    
1<?php (defined('BASEPATH')) OR exit('No direct script access allowed');
                    
2
                    
2
                    
3/* PHP5 spl_autoload */
                    
4spl_autoload_register('Modules::autoload');
                    
6/**
                    
7 * Modular Extensions - PHP5
                    
8 *
                    
15 *
                    
16 * Install this file as application/libraries/Modules.php
                    
17 *
                    
60			
                    
61			if (method_exists($class, $method))	{
                    
62				ob_start();
                    
                
CustomMethods.php git://github.com/silverstripe/sapphire.git | PHP | 293 lines
                    
1<?php
                    
2
                    
133	 *
                    
134	 * This should be used rather than PHP's inbuild method_exists() as it takes into account methods added via
                    
135	 * extensions
                    
140	public function hasMethod($method) {
                    
141		return method_exists($this, $method) || $this->getExtraMethodConfig($method);
                    
142	}
                    
181	protected function findMethodsFromExtension($extension) {
                    
182		if (method_exists($extension, 'allMethodNames')) {
                    
183			if ($extension instanceof \Extension) $extension->setOwner($this);
                    
278	/**
                    
279	 * Add an extra method using raw PHP code passed as a string
                    
280	 *
                    
281	 * @param string $method the method name
                    
282	 * @param string $code the PHP code - arguments will be in an array called $args, while you can access this object
                    
283	 *        by using $obj. Note that you cannot call protected methods, as the method is actually an external
                    
                
AbstractAdapter.php git://github.com/hybridauth/hybridauth.git | PHP | 372 lines
                    
1<?php
                    
2/*!
                    
249
                    
250        if ($this->config->exists('curl_options') && method_exists($this->httpClient, 'setCurlOptions')) {
                    
251            $this->httpClient->setCurlOptions($this->config->get('curl_options'));
                    
288
                    
289        if (method_exists($this->httpClient, 'setLogger')) {
                    
290            $this->httpClient->setLogger($this->logger);
                    
                
AssistantContext.php git://github.com/twilio/twilio-php.git | PHP | 261 lines
                    
1<?php
                    
2
                    
241        $property = $this->$name;
                    
242        if (\method_exists($property, 'getContext')) {
                    
243            return \call_user_func_array(array($property, 'getContext'), $arguments);
                    
                
Client.php git://github.com/kohana/core.git | PHP | 428 lines
                    
1<?php defined('SYSPATH') OR die('No direct script access.');
                    
2/**
                    
67		{
                    
68			if (method_exists($this, $key))
                    
69			{
                    
238	 *
                    
239	 * Accepts an array with HTTP response headers as keys and a PHP callback
                    
240	 * function as values. These callbacks will be triggered if a response contains
                    
                
SugarWidgetField.php https://bitbucket.org/allexblacker/suitecrm.git | PHP | 232 lines
                    
1<?php
                    
2if(!defined('sugarEntry') || !sugarEntry)
                    
53    /**
                    
54     * @deprecated deprecated since version 7.6, PHP4 Style Constructors are deprecated and will be remove in 7.8, please update your code, use __construct instead
                    
55     */
                    
56    function SugarWidgetField(&$layout_manager){
                    
57        $deprecatedMessage = 'PHP4 Style Constructors are deprecated and will be remove in 7.8, please update your code';
                    
58        if(isset($GLOBALS['log'])) {
                    
72
                    
73		if (!empty ($context) && method_exists($this, $func_name)) {
                    
74			return $this-> $func_name ($layout_def);
                    
                
core.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'))) {
                    
150						
                    
                
Abstract.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 );
                    
                
LinkTrait.php https://bitbucket.org/webempiric/yiitest.git | PHP | 278 lines
                    
1<?php
                    
2/**
                    
19 *
                    
20 * ```php
                    
21 * use block\HtmlTrait {
                    
29 *
                    
30 * ```php
                    
31 * protected function prepare()
                    
186			// try inline HTML if it was neither a URL nor email if HtmlTrait is included.
                    
187			if (method_exists($this, 'parseInlineHtml')) {
                    
188				return $this->parseInlineHtml($text);
                    
                
DebugHandlersListenerTest.php git://github.com/symfony/symfony.git | PHP | 239 lines
                    
1<?php
                    
2
                    
13
                    
14use PHPUnit\Framework\TestCase;
                    
15use Psr\Log\LoggerInterface;
                    
127        $app->expects($this->once())
                    
128            ->method(method_exists(Application::class, 'renderThrowable') ? 'renderThrowable' : 'renderException');
                    
129
                    
                
Map.php git://github.com/silverstripe/sapphire.git | PHP | 447 lines
                    
1<?php
                    
2
                    
368		if (is_object($item)) {
                    
369			if(method_exists($item, 'hasMethod') && $item->hasMethod($key)) {
                    
370				return $item->{$key}();
                    
                
function.html_options.php git://github.com/benkeen/generatedata.git | PHP | 174 lines
                    
1<?php
                    
2/**
                    
26 * 
                    
27 * @link http://www.smarty.net/manual/en/language.function.html.options.php {html_image}
                    
28 *      (Smarty online manual)
                    
37{
                    
38    require_once(SMARTY_PLUGINS_DIR . 'shared.escape_special_chars.php');
                    
39
                    
71                        if (is_object($_sel)) {
                    
72                            if (method_exists($_sel, "__toString")) {
                    
73                                $_sel = smarty_function_escape_special_chars((string) $_sel->__toString());
                    
83                } elseif (is_object($_val)) {
                    
84                    if (method_exists($_val, "__toString")) {
                    
85                        $selected = smarty_function_escape_special_chars((string) $_val->__toString());
                    
146        if (is_object($value)) {
                    
147            if (method_exists($value, "__toString")) {
                    
148                $value = smarty_function_escape_special_chars((string) $value->__toString());
                    
                
CakeHtmlReporter.php git://github.com/cakephp/cakephp.git | PHP | 351 lines
                    
6 *
                    
7 * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
                    
8 * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
13 * @copyright     Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
14 * @link          http://cakephp.org CakePHP(tm) Project
                    
15 * @since         CakePHP(tm) v 1.2.0.4433
                    
15 * @since         CakePHP(tm) v 1.2.0.4433
                    
16 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
                    
17 */
                    
120 *
                    
121 * @param PHPUnit_Framework_TestResult $result Result object
                    
122 * @return void
                    
144			$coverage = $result->getCodeCoverage();
                    
145			if (method_exists($coverage, 'getSummary')) {
                    
146				$report = $coverage->getSummary();
                    
                
LiquidContext.class.php git://github.com/harrydeluxe/php-liquid.git | PHP | 352 lines
                    
1<?php
                    
2/**
                    
6 * @copyright Copyright (c) 2011-2012 Harald Hanek, 
                    
7 * fork of php-liquid (c) 2006 Mateo Murphy,
                    
8 * based on Liquid for Ruby (c) 2006 Tobias Luetke
                    
265        {
                    
266            if (!method_exists($object, 'toLiquid'))
                    
267                throw new LiquidException("Method 'toLiquid' not exists!");
                    
308
                    
309                        // php4 doesn't support array access, so we have
                    
310                        // to use the invoke method instead
                    
313                    }
                    
314                    elseif (method_exists($object, LIQUID_HAS_PROPERTY_METHOD))
                    
315                    {
                    
337
                    
338                if (is_object($object) && method_exists($object, 'toLiquid'))
                    
339                {
                    
                
Debug.php http://kumbia-enterprise.googlecode.com/svn/trunk/ | PHP | 305 lines
                    
1<?php
                    
2
                    
19 * @license		New BSD License
                    
20 * @version 	$Id: Debug.php 150 2010-09-24 16:20:10Z gutierrezandresfelipe $
                    
21 */
                    
251		if(is_object($value)){
                    
252			#if(method_exists($value, 'inspect')){
                    
253			#	$value = $value->inspect();
                    
                
mdl.passport.php http://phpfor.googlecode.com/svn/trunk/ | PHP | 303 lines
                    
1<?php
                    
2require_once('plugin.php');
                    
23                $this->_passport = &$obj;
                    
24                if(method_exists($obj,'getOptions')||method_exists($obj,'getoptions')){
                    
25                    $obj->setConfig($this->getOptions($plugin,true));
                    
162        if (is_object($obj)){
                    
163            if (method_exists($obj,$func))
                    
164                return $obj;
                    
204    function setCookie($name,$value,$expire=false,$path=null){
                    
205        $cookiePath = substr(PHP_SELF, 0, strrpos(PHP_SELF, '/')).'/';
                    
206        $cookieLife = 3600;
                    
                
mssql_odbc.php git://github.com/phpbb/phpbb3.git | PHP | 425 lines
                    
1<?php
                    
2/**
                    
4* @package dbal
                    
5* @copyright (c) 2005 phpBB Group
                    
6* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
                    
12*/
                    
13if (!defined('IN_PHPBB'))
                    
14{
                    
17
                    
18include_once($phpbb_root_path . 'includes/db/dbal.' . $phpEx);
                    
19
                    
24*
                    
25* @note number of bytes returned for returning data depends on odbc.defaultlrl php.ini setting.
                    
26* If it is limited to 4K for example only 4K of data is returned max, resulting in incomplete theme data for example.
                    
43
                    
44		$port_delimiter = (defined('PHP_OS') && substr(PHP_OS, 0, 3) === 'WIN') ? ',' : ':';
                    
45		$this->server = $sqlserver . (($port) ? $port_delimiter . $port : '');
                    
                
Json.php http://firephp.googlecode.com/svn/trunk/ | PHP | 0 lines
                    
1<?php
                    
2/**
                    
67
                    
68        require_once 'Zend/Json/Decoder.php';
                    
69        return Zend_Json_Decoder::decode($encodedValue, $objectDecodeType);
                    
89    {
                    
90        if (is_object($valueToEncode) && method_exists($valueToEncode, 'toJson')) {
                    
91            return $valueToEncode->toJson();
                    
97
                    
98        require_once 'Zend/Json/Encoder.php';
                    
99        return Zend_Json_Encoder::encode($valueToEncode, $cycleCheck, $options);
                    
112     *
                    
113     * This function converts the XML formatted string into a PHP array by
                    
114     * calling a recursive (protected static) function in this class. Then, it
                    
114     * calling a recursive (protected static) function in this class. Then, it
                    
115     * converts that PHP array into JSON by calling the "encode" static funcion.
                    
116     *
                    
                
Interceptor.php git://github.com/phpspec/phpspec.git | PHP | 330 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * PHPSpec
                    
4 *
                    
12 * obtain it through the world-wide-web, please send an email
                    
13 * to license@phpspec.net so we can send you a copy immediately.
                    
14 *
                    
14 *
                    
15 * @category  PHPSpec
                    
16 * @package   PHPSpec
                    
21 */
                    
22namespace PHPSpec\Specification;
                    
23
                    
23
                    
24use \PHPSpec\Specification\Result\Failure,
                    
25    \PHPSpec\Specification\Result\Error,
                    
                
api_b2b_2_0_advance.php http://phpfor.googlecode.com/svn/trunk/ | PHP | 251 lines
                    
1<?php
                    
2include_once(CORE_DIR.'/api/shop_api_object.php');
                    
132        // ????????????? 2010-03-24 11:31 wubin
                    
133        if(method_exists($oOrder,'getFreezeStorageStatus')) {
                    
134             // ????????? 2010-03-01 17:30 wubin
                    
                
Data.php git://github.com/eryx/php-framework-benchmark.git | PHP | 521 lines
                    
1<?php
                    
2/**
                    
499        if (is_object($item)) {
                    
500            if (method_exists($item, 'toArray')) {
                    
501                $item = $item->toArray();
                    
                
plugin.php http://phpfor.googlecode.com/svn/trunk/ | PHP | 193 lines
                    
1<?php
                    
2include_once('shopObject.php');
                    
27        $file_name = ($this->plugin_type=='dir')?
                    
28            PLUGIN_DIR.'/'.$this->plugin_name.'/'.$item.'/'.($this->prefix!==false?$this->prefix:$this->plugin_name).$item.'.php':
                    
29            PLUGIN_DIR.'/'.$this->plugin_name.'/'.($this->prefix!==false?$this->prefix:$this->plugin_name).$item.'.php';
                    
98
                    
99            //for PHP4/PHP5 Compatibility
                    
100            $t['hasOptions'] = in_array('getoptions',$t['methods'])||in_array('getOptions',$t['methods']);
                    
147
                    
148                    if(preg_match('/^'.($this->prefix!==false?str_replace('.','\.',$this->prefix):$this->plugin_name).'([a-z0-9\_]+)\.php/i',$file, $match)) {
                    
149                        $item = $match[1];
                    
171        $obj = $this->load($item);
                    
172        if(method_exists($obj,'getOptions')||method_exists($obj,'getoptions')){
                    
173            $options = $obj->getOptions();            foreach($options as $key=>$value){
                    
                
MemcachedEngine.php git://github.com/yandod/candycane.git | PHP | 338 lines
                    
2/**
                    
3 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
4 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
10 * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
11 * @link          http://cakephp.org CakePHP(tm) Project
                    
12 * @since         CakePHP(tm) v 2.5.0
                    
45 *  - serialize = string, default => php. The serializer engine used to serialize data.
                    
46 *    Available engines are php, igbinary and json. Beside php, the memcached extension
                    
47 *    must be compiled with the appropriate serializer support.
                    
64		'json' => Memcached::SERIALIZER_JSON,
                    
65		'php' => Memcached::SERIALIZER_PHP
                    
66	);
                    
216 * @return bool True if the data was successfully cached, false on failure
                    
217 * @see http://php.net/manual/en/memcache.set.php
                    
218 */
                    
                
EntityResolverManager.php git://github.com/drupal/drupal.git | PHP | 242 lines
                    
1<?php
                    
2
                    
90    if (strpos($controller, ':') === FALSE) {
                    
91      if (method_exists($controller, '__invoke')) {
                    
92        return [$controller, '__invoke'];
                    
120   * @param string|array $controller
                    
121   *   A PHP callable representing the controller.
                    
122   * @param \Symfony\Component\Routing\Route $route
                    
                
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				{
                    
                
CroogoComponent.php git://github.com/croogo/croogo.git | PHP | 458 lines
                    
1<?php
                    
2
                    
15 * @author   Fahad Ibnay Heylaal <contact@fahad19.com>
                    
16 * @license  http://www.opensource.org/licenses/mit-license.php The MIT License
                    
17 * @link     http://www.croogo.org
                    
70					$this->{$name} = new $class();
                    
71					if (method_exists($this->{$name}, 'setController')) {
                    
72						$this->{$name}->setController($this->_controller);
                    
305/**
                    
306 * Loads plugin's bootstrap.php file
                    
307 *
                    
                
persistent_exporter.php git://github.com/moodle/moodle.git | PHP | 84 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
26
                    
27require_once($CFG->libdir . '/externallib.php');
                    
28
                    
55
                    
56        if (method_exists($this->persistent, 'get_context') && !isset($this->related['context'])) {
                    
57            $this->related['context'] = $this->persistent->get_context();
                    
                
Persistent.php http://shozu.googlecode.com/svn/trunk/ | PHP | 490 lines
                    
1<?php
                    
2/**
                    
25    {
                    
26        // uid is returned by the PHP function uniqid(null, true)
                    
27        $this->addColumn(array(
                    
60    {
                    
61        if(method_exists($this, 'preSave'))
                    
62        {
                    
96        }
                    
97        if(method_exists($this, 'postSave'))
                    
98        {
                    
                
ArrayCollection.php https://gitlab.com/lcp0578/Propel2.git | PHP | 217 lines
                    
1<?php
                    
2
                    
39    {
                    
40        if (!method_exists($this->getFullyQualifiedModel(), 'save')) {
                    
41            throw new ReadOnlyModelException('Cannot save objects on a read-only model');
                    
66    {
                    
67        if (!method_exists($this->getFullyQualifiedModel(), 'delete')) {
                    
68            throw new ReadOnlyModelException('Cannot delete objects on a read-only model');
                    
                
LoggerPropertySetter.php http://syracava.googlecode.com/svn/trunk/ | PHP | 161 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * log4php is a PHP port of the log4j java logging package.
                    
4 * 
                    
9 *
                    
10 * <p>PHP port, extensions and modifications by VxR. All rights reserved.<br>
                    
11 * For more information, please see {@link http://www.vxr.it/log4php/}.</p>
                    
15 * 
                    
16 * @package log4php
                    
17 * @subpackage config
                    
22 */
                    
23if (!defined('LOG4PHP_DIR')) define('LOG4PHP_DIR', dirname(__FILE__) . '/..');
                    
24
                    
24
                    
25require_once(LOG4PHP_DIR . '/LoggerLog.php');
                    
26require_once(LOG4PHP_DIR . '/helpers/LoggerOptionConverter.php');
                    
                
GeneratedQuerySetColumnTypeTest.php git://github.com/propelorm/Propel2.git | PHP | 295 lines
                    
1<?php
                    
2
                    
12use ComplexColumnTypeEntitySet2Query;
                    
13use PHPUnit\Framework\TestCase;
                    
14use Propel\Generator\Util\QuickBuilder;
                    
59    {
                    
60        $this->assertTrue(method_exists('\ComplexColumnTypeEntitySet2Query', 'filterByTags'));
                    
61        $this->assertTrue(method_exists('\ComplexColumnTypeEntitySet2Query', 'filterByTag'));
                    
62        // only plural column names get a singular filter
                    
63        $this->assertTrue(method_exists('\ComplexColumnTypeEntitySet2Query', 'filterByValueSet'));
                    
64    }
                    
                
content.feed.php http://miacms.googlecode.com/svn/trunk/ | PHP | 380 lines
                    
1<?php
                    
2/**
                    
4 * @subpackage Content
                    
5 * @author MiaCMS see README.php
                    
6 * @copyright see README.php
                    
6 * @copyright see README.php
                    
7 * See COPYRIGHT.php for copyright notices and details.
                    
8 * @license GNU/GPL Version 2, see LICENSE.php
                    
19// load feed creator class
                    
20require_once( $mosConfig_absolute_path .'/includes/feedcreator.class.php' );
                    
21
                    
42	/**
                    
43	 * php4 class constructor
                    
44	 */
                    
69
                    
70		if (method_exists($database,"getNullDate")) {
                    
71			$params->nullDate 	= $database->getNullDate();
                    
                
edit_profile.php git://github.com/concrete5/concrete5.git | PHP | 158 lines
                    
1<?php
                    
2namespace Concrete\Controller\SinglePage\Account;
                    
69        $this->view();
                    
70        if (!method_exists($at->controller, $method)) {
                    
71            throw new UserMessageException('Invalid method.');
                    
                
IsbnValidator.php git://github.com/symfony/symfony.git | PHP | 185 lines
                    
1<?php
                    
2
                    
42
                    
43        if (!is_scalar($value) && !(\is_object($value) && method_exists($value, '__toString'))) {
                    
44            throw new UnexpectedValueException($value, 'string');
                    
                
App.php https://github.com/rmiddle/cerb4.git | PHP | 568 lines
                    
1<?php
                    
2class ChFnrAjaxController extends DevblocksControllerExtension {
                    
42			    // Default action, call arg as a method suffixed with Action
                    
43				if(method_exists($this,$action)) {
                    
44					call_user_func(array(&$this, $action));
                    
                
ImportShp.php git://github.com/phpmyadmin/phpmyadmin.git | PHP | 336 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * ESRI Shape file import plugin for phpMyAdmin
                    
4 */
                    
7
                    
8namespace PhpMyAdmin\Plugins\Import;
                    
9
                    
9
                    
10use PhpMyAdmin\File;
                    
11use PhpMyAdmin\Gis\GisFactory;
                    
11use PhpMyAdmin\Gis\GisFactory;
                    
12use PhpMyAdmin\Gis\GisMultiLineString;
                    
13use PhpMyAdmin\Gis\GisMultiPoint;
                    
13use PhpMyAdmin\Gis\GisMultiPoint;
                    
14use PhpMyAdmin\Gis\GisPoint;
                    
15use PhpMyAdmin\Gis\GisPolygon;
                    
                
data_class.class.php https://bitbucket.org/chamilo/chamilo-dev/ | PHP | 402 lines
                    
1<?php
                    
2namespace common\libraries;
                    
3/**
                    
4 * $Id: data_class.class.php 128 2009-11-09 13:13:20Z vanpouckesven $
                    
5 * @package common
                    
270            $method = 'create_' . $class_name;
                    
271            if (method_exists($data_manager, $method))
                    
272            {
                    
295            
                    
296            if (method_exists($data_manager, $method))
                    
297            {
                    
319        
                    
320        if (method_exists($data_manager, $method))
                    
321        {
                    
                
CommentUIControllerTrait.php git://github.com/QuickAppsCMS/QuickApps-CMS.git | PHP | 346 lines
                    
1<?php
                    
2/**
                    
35 *
                    
36 * ```php
                    
37 * uses Comment\Controller\CommentUIControllerTrait;
                    
57 *
                    
58 * ```php
                    
59 * protected function _inResponseTo(\Comment\Model\Entity\Comment $comment) {
                    
63 * }
                    
64 * ```php
                    
65 *
                    
96            throw new ForbiddenException(__d('comment', 'CommentUIControllerTrait: This trait must be used on backend-controllers only.'));
                    
97        } elseif (!method_exists($this, '_inResponseTo')) {
                    
98            throw new ForbiddenException(__d('comment', 'CommentUIControllerTrait: This trait needs you to implement the "_inResponseTo()" method.'));
                    
                
Lexer.php git://github.com/anantgarg/Qwench.git | PHP | 298 lines
                    
1<?php
                    
2
                    
97                    class_exists('DOMDocument') &&
                    
98                    method_exists('DOMDocument', 'loadHTML') &&
                    
99                    !extension_loaded('domxml')
                    
129
                    
130        // once PHP DOM implements native line numbers, or we
                    
131        // hack out something using XSLT, remove this stipulation
                    
                
CakeValidationRule.php git://github.com/yandod/candycane.git | PHP | 350 lines
                    
1<?php
                    
2/**
                    
6 *
                    
7 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
8 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
14 * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
15 * @link          http://cakephp.org CakePHP(tm) Project
                    
16 * @package       Cake.Model.Validator
                    
16 * @package       Cake.Model.Validator
                    
17 * @since         CakePHP(tm) v 2.2.0
                    
18 * @license       http://www.opensource.org/licenses/mit-license.php MIT License
                    
27 * @package       Cake.Model.Validator
                    
28 * @link          http://book.cakephp.org/2.0/en/data-validation.html
                    
29 */
                    
275			$this->_valid = call_user_func_array($methods[$rule], $this->_ruleParams);
                    
276		} elseif (class_exists('Validation') && method_exists('Validation', $this->_rule)) {
                    
277			$this->_valid = call_user_func_array(array('Validation', $this->_rule), $this->_ruleParams);
                    
                
Object.php git://github.com/phpspec/phpspec.git | PHP | 149 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * PHPSpec
                    
4 *
                    
12 * obtain it through the world-wide-web, please send an email
                    
13 * to license@phpspec.net so we can send you a copy immediately.
                    
14 *
                    
14 *
                    
15 * @category  PHPSpec
                    
16 * @package   PHPSpec
                    
21 */
                    
22namespace PHPSpec\Specification\Interceptor;
                    
23
                    
23
                    
24use \PHPSpec\Specification\Interceptor;
                    
25
                    
                
Manager.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	}
                    
                
jscore.php https://bitbucket.org/alex_poluektov/itech_test.git | PHP | 426 lines
                    
5$pathLang = BX_ROOT.'/modules/main/lang/'.LANGUAGE_ID;
                    
6//WARNING: Don't use CUserOptions here! CJSCore::Init can be called from php_interface/init.php where no $USER exists
                    
7
                    
16		'css' => array($pathCSS.'/core_panel.css', $pathCSSPanel.'/admin-public.css'),
                    
17		'lang' => $pathLang.'/js_core_admin.php',
                    
18		'rel' => array('ajax'),
                    
22		'js' => $pathJS.'/core_admin_interface.js',
                    
23		'lang' => $pathLang.'/js_core_admin_interface.php',
                    
24		'css' => $pathCSSPanel.'/admin-public.css',
                    
34		'js' => $pathJS.'/core_autosave.js',
                    
35		'lang' => $pathLang.'/js_core_autosave.php',
                    
36		'rel' => array('ajax'),
                    
57		'css' => $pathCSS.'/core_tags.css',
                    
58		'lang' => $pathLang.'/js_core_tags.php',
                    
59		'rel' => array('popup'),
                    
                
mod_jfusion_activity.php http://jfusion.googlecode.com/svn/trunk/ | PHP | 149 lines
                    
1<?php
                    
2/**
                    
15*/
                    
16require_once(dirname(__FILE__).DS.'helper.php');
                    
17
                    
18//check if the JFusion component is installed
                    
19$model_file = JPATH_ADMINISTRATOR .DS.'components'.DS.'com_jfusion'.DS.'models'.DS.'model.factory.php';
                    
20$factory_file = JPATH_ADMINISTRATOR .DS.'components'.DS.'com_jfusion'.DS.'models'.DS.'model.jfusionpublic.php';
                    
130		} else {
                    
131			if(method_exists($public, "renderActivityModule")) {
                    
132				$output = $public->renderActivityModule($view, $params);
                    
                
Application.php git://github.com/michael-romer/zf-boilerplate.git | PHP | 417 lines
                    
1<?php
                    
2/**
                    
18 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version    $Id: Application.php 24101 2011-06-01 02:21:15Z adamlundrigan $
                    
20 */
                    
67     *
                    
68     * Initialize application. Potentially initializes include_paths, PHP
                    
69     * settings, and bootstrap class.
                    
79
                    
80        require_once 'Zend/Loader/Autoloader.php';
                    
81        $this->_autoloader = Zend_Loader_Autoloader::getInstance();
                    
144        if (!empty($options['phpsettings'])) {
                    
145            $this->setPhpSettings($options['phpsettings']);
                    
146        }
                    
157            $autoloader = $this->getAutoloader();
                    
158            if (method_exists($autoloader, 'setZfPath')) {
                    
159                $zfPath    = $options['autoloaderzfpath'];
                    
                
RegisterBehavior.php git://github.com/CakeDC/users.git | PHP | 221 lines
                    
1<?php
                    
2declare(strict_types=1);
                    
10 * @copyright Copyright 2010 - 2018, Cake Development Corporation (https://www.cakedc.com)
                    
11 * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
                    
12 */
                    
105        }
                    
106        if (!method_exists($this, (string)$callback)) {
                    
107            return $user;
                    
                
class.applicationmanager.php git://github.com/vanillaforums/Garden.git | PHP | 351 lines
                    
1<?php
                    
2/**
                    
250    public function testApplication($applicationName) {
                    
251        // Add the application to the $EnabledApplications array in conf/applications.php
                    
252        $ApplicationInfo = arrayValueI($applicationName, $this->availableApplications(), []);
                    
264        if (!class_exists($hooks)) {
                    
265            $hooksPath = PATH_APPLICATIONS.DS.$ApplicationFolder.'/settings/class.hooks.php';
                    
266            if (file_exists($hooksPath)) {
                    
273
                    
274            if (method_exists($hooks, 'setup')) {
                    
275                $hooks->setup();
                    
                
Item.php https://bitbucket.org/ttphong2612/billigastamplar-new.se.git | PHP | 447 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright  Copyright (c) 2006-2018 Magento, Inc. (http://www.magento.com)
                    
24 * @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
234                $customSetter = '_setAttribute' . ucfirst($name);
                    
235                if (method_exists($this, $customSetter)) {
                    
236                    $this->$customSetter($name, $value, $type);
                    
                
login.php https://gitlab.com/minotnepal/concrete5.git | PHP | 387 lines
                    
1<?php
                    
2namespace Concrete\Controller\SinglePage;
                    
75        }
                    
76        if (!method_exists($at->controller, $method)) {
                    
77            return $this->view();
                    
                
DesignerRules.php https://bitbucket.org/zurmo/zurmo/ | PHP | 320 lines
                    
1<?php
                    
2    /*********************************************************************************
                    
123                                        );
                    
124                                        if (method_exists($ruleClassName, 'resolveCellMetadata'))
                    
125                                        {
                    
                
Container.php git://github.com/fabpot/Pimple.git | PHP | 281 lines
                    
1<?php
                    
2
                    
64     *
                    
65     * Allowing any PHP callable leads to difficult to debug problems
                    
66     * as function names (strings) are callable (creating a function with
                    
101            || isset($this->protected[$this->values[$id]])
                    
102            || !method_exists($this->values[$id], '__invoke')
                    
103        ) {
                    
158    {
                    
159        if (!is_object($callable) || !method_exists($callable, '__invoke')) {
                    
160            throw new \InvalidArgumentException('Service definition is not a Closure or invokable object.');
                    
180    {
                    
181        if (!is_object($callable) || !method_exists($callable, '__invoke')) {
                    
182            throw new \InvalidArgumentException('Callable is not a Closure or invokable object.');
                    
230
                    
231        if (!is_object($this->values[$id]) || !method_exists($this->values[$id], '__invoke')) {
                    
232            throw new \InvalidArgumentException(sprintf('Identifier "%s" does not contain an object definition.', $id));
                    
                
ExtendableTrait.php https://bitbucket.org/ltdwebant/laboratorium.git | PHP | 471 lines
                    
1<?php namespace October\Rain\Extension;
                    
2
                    
131    {
                    
132        if (!method_exists($extensionObject, 'extensionIsHiddenMethod')) {
                    
133            throw new Exception(sprintf(
                    
262    /**
                    
263     * Checks if a method exists, extension equivalent of method_exists()
                    
264     * @param  string $name
                    
269        return (
                    
270            method_exists($this, $name) ||
                    
271            isset($this->extensionData['methods'][$name]) ||
                    
328        $parent = get_parent_class();
                    
329        if ($parent !== false && method_exists($parent, '__get')) {
                    
330            return parent::__get($name);
                    
353        $parent = get_parent_class();
                    
354        if ($parent !== false && method_exists($parent, '__set')) {
                    
355            parent::__set($name, $value);
                    
                
Base.php https://bitbucket.org/IceHalk/mailsenseysdk.git | PHP | 323 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * This file contains the base class for the MailWizzApi PHP-SDK.
                    
4 *
                    
270
                    
271                if (method_exists($this, $methodName)) {
                    
272                    $reflection = new ReflectionMethod($this, $methodName);
                    
293        $methodName = 'set'.ucfirst($name);
                    
294        if (!method_exists($this, $methodName)) {
                    
295            $this->addToRegistry($name, $value);
                    
313        $methodName = 'get'.ucfirst($name);
                    
314        if (!method_exists($this, $methodName) && $this->getRegistry()->contains($name)) {
                    
315            return $this->getRegistry()->itemAt($name);
                    
315            return $this->getRegistry()->itemAt($name);
                    
316        } elseif (method_exists($this, $methodName)) {
                    
317            $method = new ReflectionMethod($this, $methodName);
                    
                
MapDB.php git://github.com/modolabs/Kurogo-Mobile-Web.git | PHP | 363 lines
                    
1<?php
                    
2
                    
82        $style = $feature->getStyle();
                    
83        if (method_exists($style, 'getId')) {
                    
84            $styleId = $style->getId();
                    
                
Service.php git://github.com/concrete5/concrete5.git | PHP | 162 lines
                    
1<?php
                    
2namespace Concrete\Core\Antispam;
                    
56        }
                    
57        if (method_exists($this->controller, 'report')) {
                    
58            $this->controller->report($args);
                    
157    {
                    
158        if (method_exists($this->controller, $nm)) {
                    
159            return call_user_func_array(array($this->controller, $nm), $args);
                    
                
form.class.php http://freewms.googlecode.com/svn/trunk/ | PHP | 407 lines
                    
1<?php if(!defined('BASEPATH')) die('Access Denied');
                    
2/*-------------------------------------------------
                    
89				if(!function_exists($rule)) {
                    
90					if(method_exists($this, $rule)) {
                    
91						$is_method = TRUE;
                    
                
GeneratedObjectArrayColumnTypeTest.php git://github.com/propelorm/Propel2.git | PHP | 304 lines
                    
1<?php
                    
2
                    
55    {
                    
56        $this->assertTrue(method_exists('MyNameSpace\ComplexColumnTypeEntity2', 'getTags'));
                    
57        $this->assertTrue(method_exists('MyNameSpace\ComplexColumnTypeEntity2', 'hasTag'));
                    
57        $this->assertTrue(method_exists('MyNameSpace\ComplexColumnTypeEntity2', 'hasTag'));
                    
58        $this->assertTrue(method_exists('MyNameSpace\ComplexColumnTypeEntity2', 'setTags'));
                    
59        $this->assertTrue(method_exists('MyNameSpace\ComplexColumnTypeEntity2', 'addTag'));
                    
59        $this->assertTrue(method_exists('MyNameSpace\ComplexColumnTypeEntity2', 'addTag'));
                    
60        $this->assertTrue(method_exists('MyNameSpace\ComplexColumnTypeEntity2', 'removeTag'));
                    
61        // only plural column names get a tester, an adder, and a remover method
                    
61        // only plural column names get a tester, an adder, and a remover method
                    
62        $this->assertTrue(method_exists('MyNameSpace\ComplexColumnTypeEntity2', 'getValueSet'));
                    
63        $this->assertFalse(method_exists('MyNameSpace\ComplexColumnTypeEntity2', 'hasValueSet'));
                    
63        $this->assertFalse(method_exists('MyNameSpace\ComplexColumnTypeEntity2', 'hasValueSet'));
                    
64        $this->assertTrue(method_exists('MyNameSpace\ComplexColumnTypeEntity2', 'setValueSet'));
                    
65        $this->assertFalse(method_exists('MyNameSpace\ComplexColumnTypeEntity2', 'addValueSet'));
                    
                
PublicAction.class.php http://tpblog.googlecode.com/svn/ | PHP | 228 lines
                    
1<?php
                    
2class PublicAction extends Action
                    
43        ##????????????????????
                    
44        if(method_exists($this,'_operation')) {
                    
45            $this->_operation();
                    
                
RecursiveContextualValidator.php git://github.com/drupal/drupal.git | PHP | 245 lines
                    
1<?php
                    
2
                    
133    // for example those using the typed config subclass of the manager.
                    
134    $typed_data_manager = method_exists($data, 'getTypedDataManager') ? $data->getTypedDataManager() : $this->typedDataManager;
                    
135
                    
                
ItemList.php git://github.com/concrete5/concrete5.git | PHP | 249 lines
                    
1<?php
                    
2namespace Concrete\Core\Search\ItemList;
                    
196        $factory = new PaginationFactory(\Request::getInstance());
                    
197        if (method_exists($this, 'createPaginationObject')) {
                    
198            $pagination = $this->createPaginationObject();
                    
                
Registry.php git://github.com/michael-romer/zf-boilerplate.git | PHP | 419 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Registry.php 23775 2011-03-01 17:25:24Z ralph $
                    
21 */
                    
25 */
                    
26require_once 'Zend/Tool/Framework/Registry/Interface.php';
                    
27
                    
144        if ($this->_config === null) {
                    
145            require_once 'Zend/Tool/Framework/Client/Config.php';
                    
146            $this->setConfig(new Zend_Tool_Framework_Client_Config());
                    
171        if ($this->_storage === null) {
                    
172            require_once 'Zend/Tool/Framework/Client/Storage.php';
                    
173            $this->setStorage(new Zend_Tool_Framework_Client_Storage());
                    
201        if ($this->_loader === null) {
                    
202            require_once 'Zend/Tool/Framework/Loader/IncludePathLoader.php';
                    
203            $this->setLoader(new Zend_Tool_Framework_Loader_IncludePathLoader());
                    
                
Feed.php git://github.com/michael-romer/zf-boilerplate.git | PHP | 361 lines
                    
1<?php
                    
2/**
                    
18 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version    $Id: Feed.php 23775 2011-03-01 17:25:24Z ralph $
                    
20 */
                    
74        if (!ctype_alpha($value) && strlen($value) > 0) {
                    
75            require_once 'Zend/Feed/Exception.php';
                    
76            throw new Zend_Feed_Exception('invalid parameter: "block" may only'
                    
79        if (iconv_strlen($value, $this->getEncoding()) > 255) {
                    
80            require_once 'Zend/Feed/Exception.php';
                    
81            throw new Zend_Feed_Exception('invalid parameter: "block" may only'
                    
110        if (iconv_strlen($value, $this->getEncoding()) > 255) {
                    
111            require_once 'Zend/Feed/Exception.php';
                    
112            throw new Zend_Feed_Exception('invalid parameter: any "author" may only'
                    
135                if (iconv_strlen($value, $this->getEncoding()) > 255) {
                    
136                    require_once 'Zend/Feed/Exception.php';
                    
137                    throw new Zend_Feed_Exception('invalid parameter: any "category" may only'
                    
                
Json.php git://github.com/valentinbora/joobsbox-php.git | PHP | 338 lines
                    
1<?php
                    
2/**
                    
25 */
                    
26require_once 'Zend/Json/Expr.php';
                    
27
                    
76
                    
77        require_once 'Zend/Json/Decoder.php';
                    
78        return Zend_Json_Decoder::decode($encodedValue, $objectDecodeType);
                    
102    {
                    
103        if (is_object($valueToEncode) && method_exists($valueToEncode, 'toJson')) {
                    
104            return $valueToEncode->toJson();
                    
114             */
                    
115            require_once "Zend/Json/Encoder.php";
                    
116            $valueToEncode = self::_recursiveJsonExprFinder($valueToEncode, $javascriptExpressions);
                    
122        } else {
                    
123            require_once 'Zend/Json/Encoder.php';
                    
124            $encodedResult = Zend_Json_Encoder::encode($valueToEncode, $cycleCheck, $options);
                    
                
OctoberUtil.php https://bitbucket.org/egerstudio/livskilden.git | PHP | 339 lines
                    
1<?php namespace System\Console;
                    
2
                    
81
                    
82        if (!method_exists($this, $method)) {
                    
83            $this->error(sprintf('Utility command "%s" does not exist!', $command));
                    
209             */
                    
210            $fallbackPath = base_path() . '/modules/system/lang/en/client.php';
                    
211            $srcPath = base_path() . '/modules/system/lang/'.$locale.'/client.php';
                    
220             */
                    
221            $overridePath = base_path() . '/lang/'.$locale.'/system/client.php';
                    
222            if (File::isFile($overridePath)) {
                    
241            if (File::exists($momentPath)) {
                    
242                $contents .= PHP_EOL.PHP_EOL.File::get($momentPath).PHP_EOL;
                    
243            }
                    
324                $exec .= 'git pull 2>&1';
                    
325                echo 'Updating plugin: '. basename(dirname($pluginDir)) .'.'. basename($pluginDir) . PHP_EOL;
                    
326                echo shell_exec($exec);
                    
                
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				}
                    
                
InvoiceLog.php https://bitbucket.org/awylie199/s5t.git | PHP | 302 lines
                    
1<?php
                    
2/**
                    
132            $x->endElement();
                    
133        } elseif(is_object($vars) && method_exists($vars, 'toArray')) {
                    
134            $x->writeAttribute('type', 'array');
                    
166            $this->details = 
                    
167                '<?xml version="1.0"?>'.PHP_EOL
                    
168                .'<invoice-log>'.PHP_EOL
                    
                
Standalone.php https://github.com/clearhealth/clearhealth.git | PHP | 319 lines
                    
1<?php
                    
2/**
                    
17 * @copyright  Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
                    
18 * @version    $Id: Standalone.php 11373 2008-09-12 17:00:05Z ralph $
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
22/** Zend_View_Helper_Placeholder_Registry */
                    
23require_once 'Zend/View/Helper/Placeholder/Registry.php';
                    
24
                    
24
                    
25/** Zend_View_Helper_Abstract.php */
                    
26require_once 'Zend/View/Helper/Abstract.php';
                    
220        $container = $this->getContainer();
                    
221        if (method_exists($container, $method)) {
                    
222            $return = call_user_func_array(array($container, $method), $args);
                    
229
                    
230        require_once 'Zend/View/Exception.php';
                    
231        throw new Zend_View_Exception('Method "' . $method . '" does not exist');
                    
                
AddPortlet.php http://pradoportal.googlecode.com/svn/trunk/ | PHP | 103 lines
                    
1<?php
                    
2/**
                    
8 * @license http://www.pradoportal.dk
                    
9 * @version $Id: AddPortlet.php 396 2010-12-25 13:25:12Z steen.rabol $
                    
10 *
                    
63					{
                    
64						$class_filename	= Prado::getPathOfNamespace('Application.Portlets.' . $portlet->name . '.Common.' . $portlet->name . 'Common') . '.php';
                    
65						if(file_exists($class_filename))
                    
70
                    
71							if(method_exists($pCommonClassName,'getPortletName'))
                    
72							{
                    
                
component.php http://rapyd-framework.googlecode.com/svn/trunk/ | PHP | 568 lines
                    
1<?php
                    
2
                    
36			{
                    
37				case "php":
                    
38					include($config);
                    
154		$property = strtolower(substr($method, 4));
                    
155		if (method_exists($this, 'set_' . $method))
                    
156		{
                    
                
View.php http://skeleton.googlecode.com/svn/trunk/ | PHP | 500 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * View.php
                    
4 * 
                    
4 * 
                    
5 * @license	http://www.opensource.org/licenses/bsd-license.php BSD
                    
6 * @link	http://skeletonframework.com/
                    
94	/**
                    
95	 * @param Parameters the same as the PHP setcookie() function
                    
96	 */
                    
260	{
                    
261		if (substr($template, -4, 4) != '.php') {
                    
262			$template .= '.php';
                    
264		// if Locator set by FC then we can get the Mapper
                    
265		if (method_exists($this->locator, 'get')) {
                    
266			$mapper = $this->locator->get($this->mapper_name);
                    
                
PSR-3-logger-interface.md https://bitbucket.org/tofiradi/fig-standards.git | Markdown | 304 lines
                    
65
                    
66  ~~~php
                    
67  <?php
                    
77          // check that the value can be casted to string
                    
78          if (!is_array($val) && (!is_object($val) || method_exists($val, '__toString'))) {
                    
79              $replace['{' . $key . '}'] = $val;
                    
102  as much lenience as possible. A given value in the context MUST NOT throw
                    
103  an exception nor raise any php error, warning or notice.
                    
104
                    
143
                    
144~~~php
                    
145<?php
                    
160 *
                    
161 * See https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-3-logger-interface.md
                    
162 * for the full interface specification.
                    
                
UserInterface.php git://github.com/concrete5/concrete5.git | PHP | 417 lines
                    
1<?php
                    
2namespace Concrete\Core\Application\Service;
                    
152        $cnt = Loader::controller($c);
                    
153        if (method_exists($cnt, 'getQuickNavigationLinkHTML')) {
                    
154            return $cnt->getQuickNavigationLinkHTML();
                    
                
Container.php git://github.com/eryx/php-framework-benchmark.git | PHP | 459 lines
                    
1<?php
                    
2
                    
214
                    
215        return isset($this->services[$id]) || method_exists($this, 'get'.strtr($id, array('_' => '', '.' => '_')).'Service');
                    
216    }
                    
246
                    
247        if (method_exists($this, $method = 'get'.strtr($id, array('_' => '', '.' => '_')).'Service')) {
                    
248            $this->loading[$id] = true;
                    
                
sfWidgetFormPropelChoice.class.php http://opac-sbweb.googlecode.com/svn/trunk/ | PHP | 109 lines
                    
1<?php
                    
2
                    
16 * @author     Fabien Potencier <fabien.potencier@symfony-project.com>
                    
17 * @version    SVN: $Id: sfWidgetFormPropelChoice.class.php 12803 2008-11-09 07:26:18Z fabien $
                    
18 */
                    
41   *  * order_by:    An array composed of two fields:
                    
42   *                   * The column to order by the results (must be in the PhpName format)
                    
43   *                   * asc or desc
                    
84      $method = sprintf('add%sOrderByColumn', 0 === strpos(strtoupper($order[1]), 'ASC') ? 'Ascending' : 'Descending');
                    
85      $criteria->$method(call_user_func(array($class, 'translateFieldName'), $order[0], BasePeer::TYPE_PHPNAME, BasePeer::TYPE_COLNAME));
                    
86    }
                    
89    $methodKey = $this->getOption('key_method');
                    
90    if (!method_exists($this->getOption('model'), $methodKey))
                    
91    {
                    
95    $methodValue = $this->getOption('method');
                    
96    if (!method_exists($this->getOption('model'), $methodValue))
                    
97    {
                    
                
sfWidgetFormPropelSelect.class.php http://opac-sbweb.googlecode.com/svn/trunk/ | PHP | 109 lines
                    
1<?php
                    
2
                    
16 * @author     Fabien Potencier <fabien.potencier@symfony-project.com>
                    
17 * @version    SVN: $Id: sfWidgetFormPropelSelect.class.php 12803 2008-11-09 07:26:18Z fabien $
                    
18 */
                    
41   *  * order_by:    An array composed of two fields:
                    
42   *                   * The column to order by the results (must be in the PhpName format)
                    
43   *                   * asc or desc
                    
84      $method = sprintf('add%sOrderByColumn', 0 === strpos(strtoupper($order[1]), 'ASC') ? 'Ascending' : 'Descending');
                    
85      $criteria->$method(call_user_func(array($class, 'translateFieldName'), $order[0], BasePeer::TYPE_PHPNAME, BasePeer::TYPE_COLNAME));
                    
86    }
                    
89    $methodKey = $this->getOption('key_method');
                    
90    if (!method_exists($this->getOption('model'), $methodKey))
                    
91    {
                    
95    $methodValue = $this->getOption('method');
                    
96    if (!method_exists($this->getOption('model'), $methodValue))
                    
97    {
                    
                
V1.php git://github.com/twilio/twilio-php.git | PHP | 126 lines
                    
1<?php
                    
2
                    
93        $method = 'get' . \ucfirst($name);
                    
94        if (\method_exists($this, $method)) {
                    
95            return $this->$method();
                    
110        $property = $this->$name;
                    
111        if (\method_exists($property, 'getContext')) {
                    
112            return \call_user_func_array(array($property, 'getContext'), $arguments);
                    
                
RestAction.class.php https://hg.codeplex.com/school15 | PHP | 364 lines
                    
1<?php
                    
2// +----------------------------------------------------------------------
                    
2// +----------------------------------------------------------------------
                    
3// | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
                    
4// +----------------------------------------------------------------------
                    
4// +----------------------------------------------------------------------
                    
5// | Copyright (c) 2006-2012 http://thinkphp.cn All rights reserved.
                    
6// +----------------------------------------------------------------------
                    
10// +----------------------------------------------------------------------
                    
11// $Id: RestAction.class.php 2706 2012-02-04 03:39:48Z liu21st $
                    
12
                    
14 +------------------------------------------------------------------------------
                    
15 * ThinkPHP RESTFul ??????
                    
16 +------------------------------------------------------------------------------
                    
67        //??????
                    
68        if(method_exists($this,'_initialize'))
                    
69            $this->_initialize();
                    
                
firebird.php git://github.com/phpbb/phpbb3.git | PHP | 584 lines
                    
1<?php
                    
2/**
                    
4* @package dbal
                    
5* @copyright (c) 2005 phpBB Group
                    
6* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
                    
12*/
                    
13if (!defined('IN_PHPBB'))
                    
14{
                    
17
                    
18include_once($phpbb_root_path . 'includes/db/dbal.' . $phpEx);
                    
19
                    
158			$this->last_query_text = $query;
                    
159			$this->query_result = ($cache_ttl && method_exists($cache, 'sql_load')) ? $cache->sql_load($query) : false;
                    
160			$this->sql_add_num_queries($this->query_result);
                    
271
                    
272				if ($cache_ttl && method_exists($cache, 'sql_save'))
                    
273				{
                    
                
controller.php http://hppg.googlecode.com/svn/trunk/ | PHP | 181 lines
                    
1<?php
                    
2/**
                    
172
                    
173        if ( method_exists( $this, $actionMethod ) )
                    
174        {
                    
                
AbstractRow.php https://gitlab.com/lcp0578/yaf.app.git | PHP | 667 lines
                    
1<?php
                    
2/**
                    
5 * @author xudianyang<120343758@qq.com>
                    
6 * @copyright Copyright (c) 2014 (http://www.phpboy.net)
                    
7 */
                    
240		if (is_object($data)) {
                    
241			if (method_exists($data, 'toArray')) {
                    
242				$data = $data->toArray();
                    
469			$accessor = '__get' . str_replace(' ', '', ucwords(str_replace(array('-', '_'), ' ', $column)));
                    
470			return method_exists($this, $accessor) ? $this->{$accessor}() : $this->data[$column];
                    
471		}
                    
486			$mutator = '__set' . str_replace(' ', '', ucwords(str_replace(array('-', '_'), ' ', $column)));
                    
487			if (method_exists($this, $mutator)) {
                    
488				$this->{$mutator}($value);
                    
                
ArraySource.php git://github.com/QuickAppsCMS/QuickApps-CMS.git | PHP | 480 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * PHP versions 4 and 5
                    
6 *
                    
6 *
                    
7 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
8 * Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
13 * @copyright	Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
14 * @link		http://cakephp.org CakePHP(tm) Project
                    
15 * @package		QuickApps.Plugin.Locale.Model.Datasource
                    
15 * @package		QuickApps.Plugin.Locale.Model.Datasource
                    
16 * @since		CakePHP Datasources v 0.3
                    
17 * @license		MIT License (http://www.opensource.org/licenses/mit-license.php)
                    
189					if (isset($db)) {
                    
190						if (method_exists($db, 'queryAssociation')) {
                    
191							$stack = array($assoc);
                    
                
Cache.php git://github.com/michael-romer/zf-boilerplate.git | PHP | 207 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Cache.php 23775 2011-03-01 17:25:24Z ralph $
                    
21 */
                    
51    /**
                    
52     * PHP SOAP wsdl cache constant
                    
53     *
                    
76        if (!array_key_exists($tokenId, self::$_storedToken)) {
                    
77            require_once 'Zend/Service/DeveloperGarden/Exception.php';
                    
78            throw new Zend_Service_DeveloperGarden_Exception(
                    
105        if (!array_key_exists($tokenId, self::$_storedToken)) {
                    
106            require_once 'Zend/Service/DeveloperGarden/Exception.php';
                    
107            throw new Zend_Service_DeveloperGarden_Exception(
                    
180        $cache = self::getCache();
                    
181        if (method_exists($cache, 'clean')) {
                    
182            $cache->clean();
                    
                
ResultSet.php git://github.com/spadefoot/kohana-orm-leap.git | PHP | 362 lines
                    
1<?php defined('SYSPATH') OR die('No direct script access.');
                    
2
                    
120					if (class_exists($this->type)) {
                    
121						if (($this->records[0] instanceof DB_ORM_Model) OR method_exists($this->records[0], 'as_array')) {
                    
122							foreach ($this->records as $record) {
                    
                
CValidator.php http://chenjin.googlecode.com/svn/trunk/ | PHP | 262 lines
                    
1<?php
                    
2/**
                    
52 * @author Qiang Xue <qiang.xue@gmail.com>
                    
53 * @version $Id: CValidator.php 242 2012-03-29 15:18:01Z mole1230 $
                    
54 * @package system.validators
                    
150
                    
151		if(method_exists($object,$name))
                    
152		{
                    
250	 * A value is considered empty if it is null, an empty array, or the trimmed result is an empty string.
                    
251	 * Note that this method is different from PHP empty(). It will return false when the value is 0.
                    
252	 * @param mixed $value the value to be checked
                    
                
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';
                    
27
                    
                
FileSystem.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);
                    
                
render.php https://bitbucket.org/madiha303/clickitplugins-web.git | PHP | 393 lines
                    
232		foreach ( $trimmed_options as $key => $value ) : ?>
                    
233			<input type="checkbox" data-id="<?php echo esc_attr( self::get_form_id( $args->name ) ); ?>" data-name="<?php echo esc_attr( $args->name ); ?>" value="<?php echo esc_attr( $value ); ?>" /> <?php echo esc_attr( $value ); ?><br>
                    
234		<?php endforeach; ?>
                    
235
                    
236		<input type="hidden" id="<?php echo esc_attr( self::get_form_id( $args->name ) ); ?>" name="<?php echo esc_attr( $args->name ); ?>" value="" class="<?php echo $args->required ? 'gem-required' : ''; ?>" data-label="<?php echo esc_attr( $args->display ); ?>" />
                    
237
                    
255		</br>
                    
256		<select id="<?php echo esc_attr( self::get_form_id( $args->name ) ); ?>" name="<?php echo esc_attr( $args->name ); ?>" class="<?php echo $args->required ? 'gem-required' : ''; ?>" data-label="<?php echo esc_attr( $args->display ); ?>">
                    
257
                    
357
                    
358		<input type="hidden" id="<?php echo esc_attr( self::get_form_id( $args->name ) ); ?>" name="<?php echo esc_attr( $args->name ); ?>" value="" class="<?php echo $args->required ? 'gem-required' : ''; ?>" data-label="<?php echo esc_attr( $args->display ); ?>" />
                    
359
                    
388
                    
389		<input type="text" name="<?php echo esc_attr( $args->name ); ?>" id="<?php echo esc_attr( self::get_form_id( $args->name ) ); ?>" class="<?php echo esc_attr( join( ' ', $field_classes ) ); ?>" data-label="<?php echo esc_attr( $args->display ); ?>" />
                    
390
                    
                
ArchiveComponent.php git://github.com/CakeDC/utils.git | PHP | 170 lines
                    
1<?php
                    
2/**
                    
8 * @copyright Copyright 2009 - 2013, Cake Development Corporation (http://cakedc.com)
                    
9 * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
                    
10 */
                    
75
                    
76		if (method_exists($controller->{$this->modelName}, 'buildArchiveConditions')) {
                    
77			$archiveConditions = $controller->{$this->modelName}->buildArchiveConditions($parsedParams);
                    
                
Proxy.php git://github.com/spadefoot/kohana-orm-leap.git | PHP | 387 lines
                    
1<?php defined('SYSPATH') OR die('No direct script access.');
                    
2
                    
84		if ($this->extension !== NULL) {
                    
85			if (method_exists($this->extension, $function)) {
                    
86				$result = call_user_func_array(array($this->extension, $function), $arguments);
                    
                
Data.php git://github.com/michael-romer/zf-boilerplate.git | PHP | 563 lines
                    
1<?php
                    
2/**
                    
18 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version    $Id: Data.php 23775 2011-03-01 17:25:24Z ralph $
                    
20 */
                    
116        if ($this->hasItem($item['id'])) {
                    
117            require_once 'Zend/Dojo/Exception.php';
                    
118            throw new Zend_Dojo_Exception('Overwriting items using addItem() is not allowed');
                    
134        if (!is_array($items) && (!is_object($items) || !($items instanceof Traversable))) {
                    
135            require_once 'Zend/Dojo/Exception.php';
                    
136            throw new Zend_Dojo_Exception('Only arrays and Traversable objects may be added to ' . __CLASS__);
                    
227        } else {
                    
228            require_once 'Zend/Dojo/Exception.php';
                    
229            throw new Zend_Dojo_Exception('Invalid identifier; please use a string or integer');
                    
356        if (!is_string($json)) {
                    
357            require_once 'Zend/Dojo/Exception.php';
                    
358            throw new Zend_Dojo_Exception('fromJson() expects JSON input');
                    
                
document.php git://github.com/Dolibarr/dolibarr.git | PHP | 178 lines
                    
1<?php
                    
2/* Copyright (C) 2010 Regis Houssin        <regis.houssin@inodbox.com>
                    
20/**
                    
21 *	\file       htdocs/projet/document.php
                    
22 *	\ingroup    project
                    
25
                    
26require '../main.inc.php';
                    
27require_once DOL_DOCUMENT_ROOT.'/projet/class/project.class.php';
                    
27require_once DOL_DOCUMENT_ROOT.'/projet/class/project.class.php';
                    
28require_once DOL_DOCUMENT_ROOT.'/core/lib/project.lib.php';
                    
29require_once DOL_DOCUMENT_ROOT.'/core/lib/files.lib.php';
                    
29require_once DOL_DOCUMENT_ROOT.'/core/lib/files.lib.php';
                    
30require_once DOL_DOCUMENT_ROOT.'/core/lib/images.lib.php';
                    
31require_once DOL_DOCUMENT_ROOT.'/core/class/html.formfile.class.php';
                    
44
                    
45include DOL_DOCUMENT_ROOT.'/core/actions_fetchobject.inc.php'; // Must be include, not include_once
                    
46if (!empty($conf->global->PROJECT_ALLOW_COMMENT_ON_PROJECT) && method_exists($object, 'fetchComments') && empty($object->comments)) {
                    
                
update.php git://pkgs.fedoraproject.org/wordpress | PHP | 452 lines
                    
27	include ABSPATH . WPINC . '/version.php'; // include an unmodified $wp_version
                    
28	$php_version = phpversion();
                    
29
                    
48
                    
49	if ( method_exists( $wpdb, 'db_version' ) )
                    
50		$mysql_version = preg_replace('/[^0-9.].*/', '', $wpdb->db_version());
                    
68		'version'           => $wp_version,
                    
69		'php'               => $php_version,
                    
70		'locale'            => $locale,
                    
160		case 'load-plugins.php' :
                    
161		case 'load-update.php' :
                    
162			$timeout = 3600; // 1 hour
                    
233function wp_update_themes() {
                    
234	include ABSPATH . WPINC . '/version.php'; // include an unmodified $wp_version
                    
235
                    
                
completion_regular_task.php git://github.com/moodle/moodle.git | PHP | 199 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
49        if ($CFG->enablecompletion) {
                    
50            require_once($CFG->libdir . "/completionlib.php");
                    
51
                    
54                $object = 'completion_criteria_' . $type;
                    
55                require_once($CFG->dirroot . '/completion/criteria/' . $object . '.php');
                    
56
                    
58                // Run the criteria type's cron method, if it has one.
                    
59                if (method_exists($class, 'cron')) {
                    
60                    if (debugging()) {
                    
                
PropelBaseModelClass.php git://github.com/imagecms/ImageCMS.git | PHP | 343 lines
                    
1<?php
                    
2
                    
146    public function getLabel($attributeName) {
                    
147        if (method_exists($this, 'attributeLabels')) {
                    
148            $labels = $this->attributeLabels();
                    
215        $call = 'get' . $name;
                    
216        if (method_exists($this, $call)) {
                    
217            return $this->$call();
                    
236            }
                    
237            // no lcfirst in php<5.3...
                    
238            $virtualColumn[0] = strtolower($virtualColumn[0]);
                    
285     * String representation of object
                    
286     * @link http://php.net/manual/en/serializable.serialize.php
                    
287     * @return string the string representation of the object or null
                    
324     * Constructs the object
                    
325     * @link http://php.net/manual/en/serializable.unserialize.php
                    
326     * @param string $serialized <p>
                    
                
actions_adherentcard_common.class.php git://github.com/Dolibarr/dolibarr.git | PHP | 288 lines
                    
1<?php
                    
2/* Copyright (C) 2010-2012 Regis Houssin  <regis.houssin@inodbox.com>
                    
19/**
                    
20 *	\file       htdocs/adherents/canvas/actions_adherentcard_common.class.php
                    
21 *	\ingroup    adherent
                    
65
                    
66		/*if (is_object($this->object) && method_exists($this->object,'fetch'))
                    
67		{
                    
79
                    
80	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
                    
81	/**
                    
89	{
                    
90		// phpcs:enable
                    
91		global $conf, $langs, $user, $canvas;
                    
228			// Full firstname and lastname separated with a dot : firstname.lastname
                    
229			include_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';
                    
230			require_once DOL_DOCUMENT_ROOT.'/core/lib/security2.lib.php';
                    
                
sfDoctrineRoute.class.php http://opac-sbweb.googlecode.com/svn/trunk/ | PHP | 163 lines
                    
1<?php
                    
2
                    
20 * @author     Jonathan H. Wage <jonwage@gmail.com>
                    
21 * @version    SVN: $Id: sfDoctrineRoute.class.php 11475 2008-09-12 11:07:23Z fabien $
                    
22 */
                    
139  {
                    
140    if (isset($this->options['convert']) || method_exists($object, 'toParams'))
                    
141    {
                    
                
be_embed_media.php http://bedita.googlecode.com/svn/trunk/ | PHP | 357 lines
                    
1<?php
                    
2/*-----8<--------------------------------------------------------------------
                    
28 * 
                    
29 * $Id: be_embed_media.php 3905 2012-08-08 16:21:17Z ste $
                    
30 */
                    
100		
                    
101		if (method_exists($this, "show" . ucfirst($params["presentation"]) . $model)) {
                    
102			$output = $this->{"show" . ucfirst($params["presentation"]) . $model}($obj, $params, $htmlAttributes);
                    
102			$output = $this->{"show" . ucfirst($params["presentation"]) . $model}($obj, $params, $htmlAttributes);
                    
103		} elseif (method_exists($this, "show" . $model)) {
                    
104			$output = $this->{"show" . $model}($obj, $params, $htmlAttributes);
                    
                
SMW_DV_URI.php git://pkgs.fedoraproject.org/mediawiki-semantic | PHP | 290 lines
                    
1<?php
                    
2/**
                    
131
                    
132				$check = method_exists( 'Sanitizer', 'validateEmail' ) ? Sanitizer::validateEmail( $value ) : self::validateEmail( $value );
                    
133				if ( !$check ) {
                    
                
Item.php https://github.com/OpenMage/magento-mirror.git | PHP | 447 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright  Copyright (c) 2006-2020 Magento, Inc. (http://www.magento.com)
                    
24 * @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
234                $customSetter = '_setAttribute' . ucfirst($name);
                    
235                if (method_exists($this, $customSetter)) {
                    
236                    $this->$customSetter($name, $value, $type);
                    
                
Repository.php https://bitbucket.org/sergiu-tot-fb/vendors.git | PHP | 279 lines
                    
1<?php
                    
2/**
                    
18/**
                    
19 * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
                    
20 */
                    
87     * @param \Magento\Catalog\Api\Data\ProductLinkExtensionFactory|null $productLinkExtensionFactory
                    
88     * @SuppressWarnings(PHPMD.ExcessiveParameterList)
                    
89     */
                    
174                        // Check if setter exists
                    
175                        if (method_exists($productLinkExtension, $setterName)) {
                    
176                            call_user_func([$productLinkExtension, $setterName], $value);
                    
                
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;
                    
67		
                    
                
Reporter.php git://github.com/jasonhinkle/phreeze.git | PHP | 329 lines
                    
1<?php
                    
2/** @package    verysimple::Phreeze */
                    
109			{
                    
110				if (method_exists($rp,"setAccessible"))
                    
111				{
                    
116				{
                    
117					// if < php 5.3 we can't serialize private vars
                    
118					$propvals[$propname] = $rp->getValue($this);
                    
141			{
                    
142				if (method_exists($rp,"setAccessible"))
                    
143				{
                    
148				{
                    
149					// if < php 5.3 we can't serialize private vars
                    
150					$rp->setValue($this,$propvals[$propname]);
                    
                
Cloud.php https://github.com/OpenMage/magento-mirror.git | PHP | 410 lines
                    
1<?php
                    
2/**
                    
25 */
                    
26#require_once 'Zend/Tag/Item.php';
                    
27
                    
121            $method = 'set' . ucfirst($key);
                    
122            if (method_exists($this, $method)) {
                    
123                $this->$method($value);
                    
152            } else {
                    
153                #require_once 'Zend/Tag/Cloud/Exception.php';
                    
154                throw new Zend_Tag_Cloud_Exception('Tag must be an instance of Zend_Tag_Taggable or an array');
                    
174        } else {
                    
175            #require_once 'Zend/Tag/Cloud/Exception.php';
                    
176            throw new Zend_Tag_Cloud_Exception('Tag must be an instance of Zend_Tag_Taggable or an array');
                    
203        if (null === $this->_tags) {
                    
204            #require_once 'Zend/Tag/ItemList.php';
                    
205            $this->setItemList(new Zend_Tag_ItemList());
                    
                
form.php https://bitbucket.org/chamilo/chamilo-dev/ | PHP | 418 lines
                    
1<?php
                    
2/**
                    
5 * @subpackage WebTester
                    
6 * @version    $Id: form.php 1672 2008-03-02 04:47:34Z edwardzyang $
                    
7 */
                    
11 */
                    
12require_once (dirname(__FILE__) . '/tag.php');
                    
13require_once (dirname(__FILE__) . '/encoding.php');
                    
13require_once (dirname(__FILE__) . '/encoding.php');
                    
14require_once (dirname(__FILE__) . '/selector.php');
                    
15/**#@-*/
                    
302            {
                    
303                if (method_exists($this->_widgets[$i], 'setLabel'))
                    
304                {
                    
                
class-wp-smush-s3.php https://bitbucket.org/Salmendrote/wordpress-clean.git | PHP | 452 lines
                    
1<?php
                    
2/**
                    
109			//In case for some reason, we couldn't find the function
                    
110			if ( ! is_object( $as3cf ) || ! method_exists( $as3cf, 'is_plugin_setup' ) ) {
                    
111				$show_error         = true;
                    
173			// Settings link.
                    
174			$settings_link = is_multisite() && is_network_admin() ? network_admin_url( 'admin.php?page=smush' ) : menu_page_url( 'smush', false );
                    
175
                    
196			// Check if S3 offload plugin is active and delete file from server option is enabled.
                    
197			if ( ! is_object( $as3cf ) || ! method_exists( $as3cf, 'get_setting' ) || ! $as3cf->get_setting( 'remove-local-file' ) ) {
                    
198				return false;
                    
257			//If we have plugin method available, us that otherwise check it ourselves
                    
258			if ( method_exists( $as3cf, 'is_attachment_served_by_s3' ) ) {
                    
259				$s3_object        = $as3cf->is_attachment_served_by_s3( $attachment_id, true );
                    
269				//Try to download the attachment
                    
270				if ( $s3_object && is_object( $as3cf->plugin_compat ) && method_exists( $as3cf->plugin_compat, 'copy_s3_file_to_server' ) ) {
                    
271					//Download file
                    
                
CPSComponent.php http://ps-yii-extensions.googlecode.com/svn/trunk/ | PHP | 393 lines
                    
1<?php
                    
2/*
                    
18 * @author 		Jerry Ablan <jablan@pogostick.com>
                    
19 * @version 	SVN $Id: CPSComponent.php 406 2010-11-08 15:30:07Z jerryablan@gmail.com $
                    
20 * @since 		v1.0.0
                    
287	 * Calls the named method which is not a class method.
                    
288	 * Do not call this method. This is a PHP magic method that we override
                    
289	 * @param string $name The method name
                    
305				{
                    
306					if ( method_exists( $_component, $name ) )
                    
307						return call_user_func_array( array( $_component, $name ), $parameterList );
                    
345	 * @param <type> $category The category/method of the output
                    
346	 * @param <type> $route The destination of output. Can be 'echo', 'trace|info|error|debug|etc...', 'http', 'firephp'
                    
347	 */
                    
                
mdl.upgrade.php http://phpfor.googlecode.com/svn/trunk/ | PHP | 271 lines
                    
1<?php
                    
2class mdl_upgrade extends modelFactory{
                    
8    function exec($step){
                    
9        if(method_exists($this,$action = 'action_'.$step)){
                    
10            $this->$action();
                    
27
                    
28        if($this->checkFileList(BASE_DIR.'/upgrade.php',$failedFiles,1) || $_GET['ignore_lost']){
                    
29            $scripts = $this->scripts($dbver,$versionTxt['rev']);
                    
53        if(!file_exists(HOME_DIR.'/logs/upgrade_'.substr( $_POST['file'] ,0 ,-4 ).'_'.$_POST['timeline'].'.log.php')){
                    
54            error_log('<?php exit()?>'." \n \n",3,HOME_DIR.'/logs/upgrade_'.substr( $_POST['file'] ,0 ,-4 ).'_'.$_POST['timeline'].'.log.php');
                    
55        }
                    
58
                    
59        case '.php':
                    
60            include(CORE_DIR.'/updatescripts/'.$file);
                    
139                if (is_file($dir.'/'.$file) && $file{0}!='.'){
                    
140                    if(preg_match('/^([0-9]+)\.(sql|php)$/i',$file,$match)){
                    
141                        if($match[1]>$from && $match[1]<=$to){
                    
                
MockTest.php git://github.com/padraic/mockery.git | PHP | 231 lines
                    
1<?php
                    
2/**
                    
12 * obtain it through the world-wide-web, please send an email
                    
13 * to padraic@php.net so we can send you a copy immediately.
                    
14 *
                    
21
                    
22use Mockery\Adapter\Phpunit\MockeryTestCase;
                    
23use Mockery\Mock;
                    
70        $mock = mock('ClassWithNoToString');
                    
71        $this->assertTrue(method_exists($mock, '__toString'));
                    
72    }
                    
                
form_validator_html_editor_options.class.php https://bitbucket.org/chamilo/chamilo-dev/ | PHP | 266 lines
                    
1<?php
                    
2namespace common\libraries;
                    
155                    $processing_function = 'process_' . $available_option;
                    
156                    if (method_exists($this, $processing_function))
                    
157                    {
                    
251    {
                    
252        $file = dirname(__FILE__) . '/html_editor_options/' . $type . '_html_editor_options.class.php';
                    
253        $class = __NAMESPACE__ . '\\' . 'FormValidator' . Utilities :: underscores_to_camelcase($type) . 'HtmlEditorOptions';
                    
                
FrontendController.php https://bitbucket.org/icoa/bladecommerce-core.git | PHP | 443 lines
                    
1<?php
                    
2
                    
79
                    
80        if (!method_exists($this, $method_name)) {
                    
81            $method_name = 'getIndex';
                    
                
GeneratedObjectSetColumnTypeTest.php git://github.com/propelorm/Propel2.git | PHP | 305 lines
                    
1<?php
                    
2
                    
64    {
                    
65        $this->assertTrue(method_exists('MyNameSpace\ComplexColumnTypeEntitySet', 'getTags'));
                    
66        $this->assertTrue(method_exists('MyNameSpace\ComplexColumnTypeEntitySet', 'hasTag'));
                    
66        $this->assertTrue(method_exists('MyNameSpace\ComplexColumnTypeEntitySet', 'hasTag'));
                    
67        $this->assertTrue(method_exists('MyNameSpace\ComplexColumnTypeEntitySet', 'setTags'));
                    
68        $this->assertTrue(method_exists('MyNameSpace\ComplexColumnTypeEntitySet', 'addTag'));
                    
68        $this->assertTrue(method_exists('MyNameSpace\ComplexColumnTypeEntitySet', 'addTag'));
                    
69        $this->assertTrue(method_exists('MyNameSpace\ComplexColumnTypeEntitySet', 'removeTag'));
                    
70        // only plural column names get a tester, an adder, and a remover method
                    
70        // only plural column names get a tester, an adder, and a remover method
                    
71        $this->assertTrue(method_exists('MyNameSpace\ComplexColumnTypeEntitySet', 'getBar'));
                    
72        $this->assertFalse(method_exists('MyNameSpace\ComplexColumnTypeEntitySet', 'hasBar'));
                    
72        $this->assertFalse(method_exists('MyNameSpace\ComplexColumnTypeEntitySet', 'hasBar'));
                    
73        $this->assertTrue(method_exists('MyNameSpace\ComplexColumnTypeEntitySet', 'setBar'));
                    
74        $this->assertFalse(method_exists('MyNameSpace\ComplexColumnTypeEntitySet', 'addBar'));
                    
                
Variables.php git://github.com/eryx/php-framework-benchmark.git | PHP | 338 lines
                    
1<?php
                    
2/**
                    
219        if (is_object($spec)) {
                    
220            if (method_exists($spec, 'toArray')) {
                    
221                $spec = $spec->toArray();
                    
                
document.php git://github.com/Dolibarr/dolibarr.git | PHP | 336 lines
                    
27require '../../main.inc.php';
                    
28require_once DOL_DOCUMENT_ROOT.'/projet/class/project.class.php';
                    
29require_once DOL_DOCUMENT_ROOT.'/projet/class/task.class.php';
                    
32require_once DOL_DOCUMENT_ROOT.'/core/lib/images.lib.php';
                    
33require_once DOL_DOCUMENT_ROOT.'/core/class/html.formfile.class.php';
                    
34
                    
76
                    
77$permissiontoadd = $$user->rights->mrp->write; // Used by the include of actions_addupdatedelete.inc.php and actions_linkedfiles.inc.php
                    
78
                    
91		} else {
                    
92			header("Location: ".DOL_URL_ROOT.'/projet/tasks.php?id='.$projectstatic->id.($withproject ? '&withproject=1' : '').(empty($mode) ? '' : '&mode='.$mode));
                    
93			exit;
                    
98if ($id > 0 || !empty($ref)) {
                    
99	if (!empty($conf->global->PROJECT_ALLOW_COMMENT_ON_TASK) && method_exists($object, 'fetchComments') && empty($object->comments)) {
                    
100		$object->fetchComments();
                    
                
Callback.php git://github.com/AlephTav/Aleph.git | PHP | 418 lines
                    
1<?php
                    
2/**
                    
205        if ($this->callable || class_exists($this->class, $autoload)) {
                    
206            if (!method_exists($this->class, $this->method)) {
                    
207                return false;
                    
                
frete.php https://github.com/visie/PagSeguro.git | PHP | 111 lines
                    
1<?php
                    
2
                    
51            $method_name = '_request'.ucWords($method);
                    
52            if (!method_exists($this, $method_name)) {
                    
53              throw new Exception("Method $method_name does not exists.");
                    
                
event_api.php git://pkgs.fedoraproject.org/mantis | PHP | 334 lines
                    
1<?php
                    
2# MantisBT - a php based bugtracking system
                    
26 *
                    
27 * @uses error_api.php
                    
28 * @uses pluging_api.php
                    
182
                    
183		if( method_exists( $g_plugin_cache[$p_plugin], $p_callback ) ) {
                    
184			$t_value = call_user_func_array( array( $g_plugin_cache[$p_plugin], $p_callback ), array_merge( array( $p_event ), $p_params ) );
                    
                
Verifier.php http://ipmanger.googlecode.com/svn/trunk/ | PHP | 374 lines
                    
1<?php
                    
2/////////////////////////////////////////////////////////////////////////////
                    
2/////////////////////////////////////////////////////////////////////////////
                    
3// FleaPHP Framework
                    
4//
                    
7// ??????????????? LICENSE.txt ???
                    
8// ???? http://www.fleaphp.org/ ???????
                    
9/////////////////////////////////////////////////////////////////////////////
                    
16 * @package Core
                    
17 * @version $Id: Verifier.php,v 1.1 2008/09/10 03:00:12 jiang Exp $
                    
18 */
                    
206            $func = 'is' . $rule['complexType'];
                    
207            if (!method_exists($this, $func)) {
                    
208                FLEA::loadClass('FLEA_Exception_InvalidArguments');
                    
                
ReflectionCaster.php https://bitbucket.org/fanch1/testlb.git | PHP | 336 lines
                    
1<?php
                    
2
                    
195            $k = '$'.$v->name;
                    
196            if (method_exists($v, 'isVariadic') && $v->isVariadic()) {
                    
197                $k = '...'.$k;
                    
246
                    
247        if (method_exists($c, 'getType')) {
                    
248            if ($v = $c->getType()) {
                    
259            $a[$prefix.'default'] = $v = $c->getDefaultValue();
                    
260            if (method_exists($c, 'isDefaultValueConstant') && $c->isDefaultValueConstant()) {
                    
261                $a[$prefix.'default'] = new ConstStub($c->getDefaultValueConstantName(), $v);
                    
315
                    
316        if (method_exists($c, 'getFileName') && $m = $c->getFileName()) {
                    
317            $x['file'] = $m;
                    
330        foreach ($map as $k => $m) {
                    
331            if (method_exists($c, $m) && false !== ($m = $c->$m()) && null !== $m) {
                    
332                $a[$prefix.$k] = $m instanceof \Reflector ? $m->name : $m;
                    
                
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();
                    
197
                    
                
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 */
                    
                
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]));
                    
                
 

Source

Language