100+ results for 'php method_exists'
Not the results you expected?
RouterTest.php (https://bitbucket.org/hanutimes/hanutimes.git) PHP · 273 lines
1 <?php
3 /*
24 * @author Igor Wiedler <igor@wiedler.ch>
25 */
26 class RouterTest extends \PHPUnit_Framework_TestCase
27 {
28 public function testMapRouting()
182 public function testHostSpecification()
183 {
184 if (!method_exists('Symfony\Component\Routing\Route', 'setHost')) {
185 $this->markTestSkipped('host() is only supported in the Symfony Routing 2.2+');
186 }
Standalone.php (https://github.com/coder-int21h/noses.git) PHP · 319 lines
1 <?php
2 /**
3 * Zend Framework
16 * @subpackage Helper
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
20 */
22 /** Zend_View_Helper_Placeholder_Registry */
23 require_once 'Zend/View/Helper/Placeholder/Registry.php';
25 /** Zend_View_Helper_Abstract.php */
26 require_once 'Zend/View/Helper/Abstract.php';
28 /**
eztemplateattributeoperator.php (https://github.com/edorfaus/ezpublish.git) PHP · 187 lines
1 <?php
2 /**
3 * File containing the eZTemplateAttributeOperator class.
11 /*!
12 \class eZTemplateAttributeOperator eztemplateattributeoperator.php
13 \ingroup eZTemplateOperators
14 \brief Display of variable attributes using operator "attribute" or dumps a variable using the operator "dump"
166 else if ( is_object( $value ) )
167 {
168 if ( !method_exists( $value, "attributes" ) or
169 !method_exists( $value, "attribute" ) )
AbstractAdapter.php (https://github.com/christeredvartsen/zf2.git) PHP · 315 lines
ObjectChoiceList.php (https://github.com/aderuwe/symfony.git) PHP · 184 lines
class-config.php (https://gitlab.com/remyvianne/krowkaramel) PHP · 305 lines
1 <?php
2 /**
3 * The base Jetpack configuration class file.
123 if ( $log_notice && ! $available && defined( 'WP_DEBUG' ) && WP_DEBUG ) {
124 trigger_error( // phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_trigger_error
125 sprintf(
126 /* translators: %1$s is a PHP class name. */
147 protected function ensure_feature( $feature ) {
148 $method = 'enable_' . $feature;
149 if ( ! method_exists( $this, $method ) ) {
150 return self::FEATURE_NOT_AVAILABLE;
151 }
153 $method_options = 'ensure_options_' . $feature;
154 if ( method_exists( $this, $method_options ) ) {
155 $this->{ $method_options }();
156 }
LiveDocx.php (https://github.com/Martin1982/IBMessagingWorkshopServer.git) PHP · 415 lines
1 <?php
2 /**
3 * Zend Framework
78 *
79 * {code}
80 * $phpLiveDocx = new Zend_Service_LiveDocx_MailMerge(
81 * array (
82 * 'username' => 'myUsername',
94 *
95 * {code}
96 * $phpLiveDocx = new Zend_Service_LiveDocx_MailMerge(
97 * array (
98 * 'username' => 'myUsername',
106 *
107 * {code}
108 * $phpLiveDocx = new Zend_Service_LiveDocx_MailMerge();
109 *
110 * $phpLiveDocx->setUsername('myUsername')
TimestampableBehaviorTest.php (https://github.com/fabienpomerol/Propel2.git) PHP · 223 lines
1 <?php
3 /**
32 $table2 = Table2Peer::getTableMap();
33 $this->assertEquals(count($table2->getColumns()), 4, 'Timestampable adds two columns by default');
34 $this->assertTrue(method_exists('\Propel\Tests\Bookstore\Behavior\Table2', 'getCreatedAt'), 'Timestampable adds a created_at column by default');
35 $this->assertTrue(method_exists('\Propel\Tests\Bookstore\Behavior\Table2', 'getUpdatedAt'), 'Timestampable adds an updated_at column by default');
36 $table1 = Table1Peer::getTableMap();
37 $this->assertEquals(count($table1->getColumns()), 4, 'Timestampable does not add two columns when they already exist');
38 $this->assertTrue(method_exists('\Propel\Tests\Bookstore\Behavior\Table1', 'getCreatedOn'), 'Timestampable allows customization of create_column name');
39 $this->assertTrue(method_exists('\Propel\Tests\Bookstore\Behavior\Table1', 'getUpdatedOn'), 'Timestampable allows customization of update_column name');
methodsTest.php (https://gitlab.com/isegura/SIASAR-2.0) PHP · 365 lines
1 <?php
2 require_once('../geoPHP.inc');
3 require_once('PHPUnit/Autoload.php');
5 class MethodsTests extends PHPUnit_Framework_TestCase {
15 $format = $parts[1];
16 $value = file_get_contents('./input/'.$file);
17 $geometry = geoPHP::load($value, $format);
19 $methods = array(
61 function _methods_tester($geometry, $method_name, $argument) {
63 if (!method_exists($geometry, $method_name)) {
64 $this->fail("Method ".$method_name.'() doesn\'t exists.');
65 return;
SassNode.php (https://bitbucket.org/pombredanne/spip-zone-treemap.git) PHP · 349 lines
1 <?php
2 /* SVN FILE: $Id$ */
3 /**
10 */
12 require_once('SassContext.php');
13 require_once('SassCommentNode.php');
14 require_once('SassDebugNode.php');
15 require_once('SassDirectiveNode.php');
16 require_once('SassImportNode.php');
17 require_once('SassMixinNode.php');
18 require_once('SassMixinDefinitionNode.php');
19 require_once('SassPropertyNode.php');
RecordList.php (https://gitlab.com/gideonmarked/yovelife) PHP · 335 lines
pdf1234.php (https://github.com/RosYama/rosyama.ru.git) PHP · 448 lines
1 <?php
2 /**
3 *Ãåíåðàöèÿ PDF
12 public function __construct(){
13 require($_SERVER['DOCUMENT_ROOT'].'/bitrix/modules/st1234holes/classes/fpdf/tfpdf.php');
14 $this->pdf = new tFPDF();
15 }
30 public function getpdf($temp, $params, $image = null){
31 $this->params = pdf1234::regexp($params);
32 if(method_exists(__CLASS__,'text_'.$temp)){
33 $this->temp = $temp;
34 }
Column.php (https://gitlab.com/techniconline/kmc) PHP · 494 lines
ezbenchmarkrunner.php (https://github.com/GunioRobot/ezpublish.git) PHP · 293 lines
1 <?php
2 /**
3 * File containing the eZBenchmarkrunner class.
11 /*!
12 \class eZBenchmarkrunner ezbenchmarkrunner.php
13 \brief The class eZBenchmarkrunner does
95 $object =& $entry['object'];
96 $method =& $entry['method'];
97 if ( method_exists( $object, $method ) )
98 {
99 if ( method_exists( $object, 'prime' ) )
119 'time' => microtime() );
121 if ( method_exists( $object, 'cleanup' ) )
122 $object->cleanup( $this );
Resource.php (https://gitlab.com/x33n/respond) PHP · 325 lines
SassNode.php (https://gitlab.com/klausmig/CloudSemanticWeb) PHP · 392 lines
1 <?php
2 /* SVN FILE: $Id$ */
3 /**
10 */
12 require_once 'SassContext.php';
13 require_once 'SassCommentNode.php';
14 require_once 'SassDebugNode.php';
15 require_once 'SassDirectiveNode.php';
16 require_once 'SassImportNode.php';
17 require_once 'SassMixinNode.php';
18 require_once 'SassMixinDefinitionNode.php';
19 require_once 'SassPropertyNode.php';
VariableTest.php (https://github.com/tokushima/rhaco1.git) PHP · 325 lines
Container.class.php (https://github.com/mikesir87/PHP-Container.git) PHP · 250 lines
1 <?php
3 /**
129 }
130 foreach ($objs as $obj) {
131 if (method_exists($obj, "postConstruct"))
132 $obj->postConstruct();
133 }
220 if ($wire->getAutowireType() == AutowireTypes::OBJECT) {
221 $setVariable = "set" . ucfirst($wire->getPropertyName());
222 if (method_exists($obj, $setVariable)) {
223 if ($this->classes->getClass($wire->getReference()) == null) {
224 throw new InvalidArgumentException("No autowiring candidate found for " . $wire->getReference());
HelperBroker.php (https://bitbucket.org/khuongduybui/openfisma.git) PHP · 381 lines
1 <?php
2 /**
3 * Zend Framework
24 * @see Zend_Controller_Action_HelperBroker_PriorityStack
25 */
26 // require_once 'Zend/Controller/Action/HelperBroker/PriorityStack.php';
28 /**
29 * @see Zend_Loader
30 */
31 // require_once 'Zend/Loader.php';
33 /**
68 {
69 if ((null !== $loader) && (!$loader instanceof Zend_Loader_PluginLoader_Interface)) {
70 // require_once 'Zend/Controller/Action/Exception.php';
71 throw new Zend_Controller_Action_Exception('Invalid plugin loader provided to HelperBroker');
72 }
Cloud.php (https://gitlab.com/LisovyiEvhenii/ismextensions) PHP · 410 lines
1 <?php
2 /**
3 * Zend Framework
24 * @see Zend_Tag_Item
25 */
26 #require_once 'Zend/Tag/Item.php';
28 /**
121 $method = 'set' . ucfirst($key);
122 if (method_exists($this, $method)) {
123 $this->$method($value);
124 }
151 $itemList[] = new Zend_Tag_Item($tag);
152 } else {
153 #require_once 'Zend/Tag/Cloud/Exception.php';
154 throw new Zend_Tag_Cloud_Exception('Tag must be an instance of Zend_Tag_Taggable or an array');
155 }
Error.php (https://gitlab.com/arthur_quiroga/dystawork) PHP · 267 lines
1 <?php
3 /*
16 * an error occurs during the loading of a template, when a syntax error
17 * is detected in a template, or when rendering a template. Other
18 * errors must use regular PHP exception classes (like when the template
19 * cache directory is not writable for instance).
20 *
179 if ($this->name) {
180 if (is_string($this->name) || (is_object($this->name) && method_exists($this->name, '__toString'))) {
181 $name = sprintf('"%s"', $this->name);
182 } else {
Repository.php (https://github.com/MontmereLimited/ZendFramework-v1.git) PHP · 275 lines
1 <?php
2 /**
3 * Zend Framework
18 * @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
19 * @license http://framework.zend.com/license/new-bsd New BSD License
20 * @version $Id: Repository.php 23775 2011-03-01 17:25:24Z ralph $
21 */
24 * @see Zend_Tool_Framework_Provider_Signature
25 */
26 // // // // // // // // require_once 'Zend/Tool/Framework/Provider/Signature.php';
28 /**
29 * @see Zend_Tool_Framework_Registry_EnabledInterface
30 */
31 // // // // // // // // require_once 'Zend/Tool/Framework/Registry/EnabledInterface.php';
33 /**
NotEmpty.php (https://github.com/MontmereLimited/ZendFramework-v1.git) PHP · 279 lines
1 <?php
2 /**
3 * Zend Framework
17 * @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
18 * @license http://framework.zend.com/license/new-bsd New BSD License
19 * @version $Id: NotEmpty.php 23775 2011-03-01 17:25:24Z ralph $
20 */
23 * @see Zend_Validate_Abstract
24 */
25 // // // // // // // // // // require_once 'Zend/Validate/Abstract.php';
27 /**
58 self::EMPTY_ARRAY => 'array',
59 self::NULL => 'null',
60 self::PHP => 'php',
61 self::SPACE => 'space',
62 self::OBJECT => 'object',
FormRowTb.php (https://bitbucket.org/andrew_lebedenko/zf2tb.git) PHP · 300 lines
1 <?php
3 namespace Zf2tb\Form\View\Helper;
181 {
182 if (!$this->labelHelper) {
183 if (method_exists($this->view, 'plugin')) {
184 $this->labelHelper = $this->view->plugin('form_label_tb');
185 }
199 {
200 if (!$this->elementHelper) {
201 if (method_exists($this->view, 'plugin')) {
202 $this->elementHelper = $this->view->plugin('form_element_tb');
203 }
217 {
218 if (!$this->elementErrorsHelper) {
219 if (method_exists($this->view, 'plugin')) {
220 $this->elementErrorsHelper = $this->view->plugin('form_element_errors_tb');
221 }
reflection_php5.php (https://github.com/limb-php-framework/limb-app-buildman.git) PHP · 275 lines
1 <?php
2 /**
3 * base include file for SimpleTest
4 * @package SimpleTest
5 * @subpackage UnitTester
6 * @version $Id: reflection_php5.php 4378 2006-10-27 10:04:53Z pachanga $
7 */
26 /**
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.
30 * @return boolean True if defined.
41 /**
42 * Needed to kill the autoload feature in PHP5
43 * for classes created dynamically.
44 * @return boolean True if defined.
ArchivableBehaviorQueryBuilderModifierTest.php (https://github.com/vworldat/Propel2.git) PHP · 284 lines
1 <?php
3 /*
24 * @package generator.behavior.archivable
25 */
26 class ArchivableBehaviorQueryBuilderModifierTest extends \PHPUnit_Framework_TestCase
27 {
28 public function setUp()
89 public function testHasArchiveMethod()
90 {
91 $this->assertTrue(method_exists('ArchivableTest100Query', 'archive'));
92 }
229 public function testHasUpdateWithoutArchiveMethod()
230 {
231 $this->assertTrue(method_exists('ArchivableTest300Query', 'updateWithoutArchive'));
232 }
Cloud.php (https://github.com/devilsansclue/ZendFramework.git) PHP · 410 lines
1 <?php
2 /**
3 * Zend Framework
24 * @see Zend_Tag_Item
25 */
26 require_once 'Zend/Tag/Item.php';
28 /**
121 $method = 'set' . ucfirst($key);
122 if (method_exists($this, $method)) {
123 $this->$method($value);
124 }
151 $itemList[] = new Zend_Tag_Item($tag);
152 } else {
153 require_once 'Zend/Tag/Cloud/Exception.php';
154 throw new Zend_Tag_Cloud_Exception('Tag must be an instance of Zend_Tag_Taggable or an array');
155 }
Display.php (https://github.com/LaravelRUS/SleepingOwlAdmin.git) PHP · 317 lines
1 <?php
3 namespace SleepingOwl\Admin\Display;
204 $this->getExtensions()->each(function (DisplayExtensionInterface $extension) use (&$titles) {
205 if (method_exists($extension, $method = 'getTitle')) {
206 $titles[] = call_user_func([$extension, $method]);
207 }
284 $extension = $this->extensions->get($method);
286 if (method_exists($extension, 'set')) {
287 return call_user_func_array([$extension, 'set'], $arguments);
288 }
FlashMessenger.php (https://github.com/tmccormi/openemr.git) PHP · 353 lines
Repository.php (https://bitbucket.org/Ebozavrik/test-application.git) PHP · 284 lines
1 <?php
2 /**
3 * Zend Framework
18 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
19 * @license http://framework.zend.com/license/new-bsd New BSD License
20 * @version $Id: Repository.php 24593 2012-01-05 20:35:02Z matthew $
21 */
24 * @see Zend_Tool_Framework_Provider_Signature
25 */
26 require_once 'Zend/Tool/Framework/Provider/Signature.php';
28 /**
29 * @see Zend_Tool_Framework_Registry_EnabledInterface
30 */
31 require_once 'Zend/Tool/Framework/Registry/EnabledInterface.php';
33 /**
FormBuilderTest.php (https://github.com/Exercise/symfony.git) PHP · 228 lines
Dispatcher.php (https://gitlab.com/Laolballs/cbtapp) PHP · 486 lines
page_leftmenu-a63601b1aedbea051e86085b6fea846e.php (https://bitbucket.org/ericsagnes/ezpublish-multisite.git) PHP · 368 lines
1 <?php
2 // URI: design/admin2/templates/page_leftmenu.tpl
3 // Filename: design/admin2/templates/page_leftmenu.tpl
13 $eZTemplateCompilerCodeDate = 1074699607;
14 if ( !defined( 'EZ_TEMPLATE_COMPILER_COMMON_CODE' ) )
15 include_once( 'var/ezwebin_site/cache/template/compiled/common.php' );
17 $text .= '<div id="leftmenu">
27 $if_cond1 = $if_cond2;
28 if (! isset( $if_cond1 ) ) $if_cond1 = NULL;
29 while ( is_object( $if_cond1 ) and method_exists( $if_cond1, 'templateValue' ) )
30 $if_cond1 = $if_cond1->templateValue();
31 $if_cond = isset( $if_cond1 );unset( $if_cond1 );
32 if (! isset( $if_cond ) ) $if_cond = NULL;
33 while ( is_object( $if_cond ) and method_exists( $if_cond, 'templateValue' ) )
34 $if_cond = $if_cond->templateValue();
class-mb-include-exclude.php (https://gitlab.com/code26/selah) PHP · 379 lines
1 <?php
2 /**
3 * Control the include, exclude condition for meta boxes
74 foreach ( $check_by as $by ) {
75 $func = "check_{$by}";
76 if ( ! isset( $conditions[ $by ] ) || ! method_exists( __CLASS__, $func ) ) {
77 continue;
78 }
273 * This is required for MB User Meta extension.
274 */
275 if ( isset( $GLOBALS['pagenow'] ) && 'user-edit.php' === $GLOBALS['pagenow'] ) {
276 // If edit other's profile, check edited user.
277 $user_id = intval( $_REQUEST['user_id'] );
283 return ! empty( $roles );
284 } elseif ( isset( $GLOBALS['pagenow'] ) && 'profile.php' === $GLOBALS['pagenow'] ) {
285 // If edit profile, check current user.
286 return self::check_user_role( $roles );
AbstractToken.php (https://bitbucket.org/tippycracker/autokraitis.git) PHP · 286 lines
1 <?php
3 /*
89 public function setUser($user)
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.');
93 }
functions.php (https://bitbucket.org/ke2083/transfans.co.uk-website.git) PHP · 244 lines
Variables.php (https://github.com/intellix/zf2.git) PHP · 337 lines
Repository.php (https://gitlab.com/yousafsyed/easternglamor) PHP · 275 lines
1 <?php
2 /**
3 * Zend Framework
24 * @see Zend_Tool_Framework_Provider_Signature
25 */
26 #require_once 'Zend/Tool/Framework/Provider/Signature.php';
28 /**
29 * @see Zend_Tool_Framework_Registry_EnabledInterface
30 */
31 #require_once 'Zend/Tool/Framework/Registry/EnabledInterface.php';
33 /**
102 }
104 if (method_exists($provider, 'getName')) {
105 $providerName = $provider->getName();
106 } else {
controller.php (https://github.com/kamarulismail/kamarul-playground.git) PHP · 180 lines
Stream.php (https://gitlab.com/x33n/respond) PHP · 261 lines
1 <?php
2 namespace GuzzleHttp\Stream;
4 /**
5 * PHP stream implementation
6 */
7 class Stream implements StreamInterface
49 if ($type == 'string') {
50 $stream = fopen('php://temp', 'r+');
51 if ($resource !== '') {
52 fwrite($stream, $resource);
64 }
66 if ($type == 'object' && method_exists($resource, '__toString')) {
67 return self::factory((string) $resource, $options);
68 }
RouteListCommand.php (https://gitlab.com/mdabutaleb/bitm-laravel-1) PHP · 246 lines
function.html_radios.php (https://gitlab.com/fangfangchen/xianpipa) PHP · 200 lines
1 <?php
2 /**
3 * Smarty plugin
10 * Smarty {html_radios} function plugin
11 *
12 * File: function.html_radios.php<br>
13 * Type: function<br>
14 * Name: html_radios<br>
33 * </pre>
34 *
35 * @link http://smarty.php.net/manual/en/language.function.html.radios.php {html_radios}
36 * (Smarty online manual)
37 * @author Christopher Kvarme <christopher.kvarme@flashjab.com>
45 function smarty_function_html_radios($params, $template)
46 {
47 require_once(SMARTY_PLUGINS_DIR . 'shared.escape_special_chars.php');
49 $name = 'radio';
Part.php (https://github.com/leerbag/zf2.git) PHP · 215 lines
DocBlockReflection.php (https://gitlab.com/yousafsyed/easternglamor) PHP · 296 lines
1 <?php
2 /**
3 * Zend Framework (http://framework.zend.com/)
92 if ($commentOrReflector instanceof Reflector) {
93 $this->reflector = $commentOrReflector;
94 if (!method_exists($commentOrReflector, 'getDocComment')) {
95 throw new Exception\InvalidArgumentException('Reflector must contain method "getDocComment"');
96 }
270 public function toString()
271 {
272 $str = "DocBlock [ /* DocBlock */ ] {" . PHP_EOL . PHP_EOL;
273 $str .= " - Tags [" . count($this->tags) . "] {" . PHP_EOL;
277 }
279 $str .= " }" . PHP_EOL;
280 $str .= "}" . PHP_EOL;
LiveDocx.php (https://github.com/timglabisch/pimcore.git) PHP · 415 lines
1 <?php
2 /**
3 * Zend Framework
18 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
19 * @license http://framework.zend.com/license/new-bsd New BSD License
20 * @version $Id: LiveDocx.php 25024 2012-07-30 15:08:15Z rob $
21 */
78 *
79 * {code}
80 * $phpLiveDocx = new Zend_Service_LiveDocx_MailMerge(
81 * array (
82 * 'username' => 'myUsername',
94 *
95 * {code}
96 * $phpLiveDocx = new Zend_Service_LiveDocx_MailMerge(
97 * array (
98 * 'username' => 'myUsername',
Default.php (https://gitlab.com/fabiorf/curso-zend1-aula1) PHP · 312 lines
1 <?php
2 /**
3 * Zend Framework
17 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
18 * @license http://framework.zend.com/license/new-bsd New BSD License
19 * @version $Id: Default.php 24612 2012-01-21 14:42:30Z sgehrig $
20 */
86 * @see Zend_Ldap_Exception
87 */
88 require_once 'Zend/Ldap/Exception.php';
89 throw new Zend_Ldap_Exception($this->_ldap, 'counting entries');
90 }
141 $this->_attributeNameTreatment = self::ATTRIBUTE_TO_LOWER;
142 } else if (is_array($attributeNameTreatment) &&
143 !method_exists($attributeNameTreatment[0], $attributeNameTreatment[1])) {
144 $this->_attributeNameTreatment = self::ATTRIBUTE_TO_LOWER;
145 } else {
Task.php (https://github.com/querl/Tine-2.0-Open-Source-Groupware-and-CRM.git) PHP · 371 lines
Dojo.php (https://bitbucket.org/acidel/buykoala.git) PHP · 176 lines
1 <?php
2 /**
3 * Zend Framework
17 * @subpackage View
18 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
19 * @version $Id: Dojo.php 20096 2010-01-06 02:05:09Z bkarwin $
20 * @license http://framework.zend.com/license/new-bsd New BSD License
21 */
23 /** Zend_Registry */
24 #require_once 'Zend/Registry.php';
26 /**
71 $registry = Zend_Registry::getInstance();
72 if (!isset($registry[__CLASS__])) {
73 #require_once 'Zend/Dojo/View/Helper/Dojo/Container.php';
74 $container = new Zend_Dojo_View_Helper_Dojo_Container();
75 $registry[__CLASS__] = $container;
Default.php (https://github.com/sas05/zf-1.11.x-doctrine-2.x.git) PHP · 312 lines
1 <?php
2 /**
3 * Zend Framework
17 * @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
18 * @license http://framework.zend.com/license/new-bsd New BSD License
19 * @version $Id: Default.php 23775 2011-03-01 17:25:24Z ralph $
20 */
86 * @see Zend_Ldap_Exception
87 */
88 require_once 'Zend/Ldap/Exception.php';
89 throw new Zend_Ldap_Exception($this->_ldap, 'counting entries');
90 }
141 $this->_attributeNameTreatment = self::ATTRIBUTE_TO_LOWER;
142 } else if (is_array($attributeNameTreatment) &&
143 !method_exists($attributeNameTreatment[0], $attributeNameTreatment[1])
144 ) {
145 $this->_attributeNameTreatment = self::ATTRIBUTE_TO_LOWER;
Repository.php (https://bitbucket.org/khuongduybui/openfisma.git) PHP · 275 lines
1 <?php
2 /**
3 * Zend Framework
24 * @see Zend_Tool_Framework_Provider_Signature
25 */
26 // require_once 'Zend/Tool/Framework/Provider/Signature.php';
28 /**
29 * @see Zend_Tool_Framework_Registry_EnabledInterface
30 */
31 // require_once 'Zend/Tool/Framework/Registry/EnabledInterface.php';
33 /**
102 }
104 if (method_exists($provider, 'getName')) {
105 $providerName = $provider->getName();
106 } else {
AbstractEvent.php (https://github.com/joomla/joomla-cms.git) PHP · 178 lines
ajax.php (https://bitbucket.org/enurkov/prestashop.git) PHP · 214 lines
1 <?php
3 include_once('../../config/config.inc.php');
4 include_once('../../init.php');
5 include_once('../../modules/shopimporter/shopimporter.php');
57 $save = true;
59 if (file_exists('../../modules/'.$moduleName.'/'.$moduleName.'.php'))
60 {
61 require_once('../../modules/'.$moduleName.'/'.$moduleName.'.php');
66 $importModule->database = $database;
67 $importModule->prefix = $prefix;
68 if (!method_exists($importModule, $getMethod))
69 die('{"hasError" : true, "error" : ["not_exist"], "datas" : []}');
70 else
Web.php (https://bitbucket.org/salimane/webphp.git) PHP · 233 lines
1 <?php
3 /**
186 // see if class has any pre-run hooks
187 if (method_exists($loaded_class, 'preRun')) {
188 $retval = $loaded_class->preRun();
199 // see if currently loaded class even supports it
200 if (!method_exists($loaded_class, $method)) {
201 throw new RequestErrorException("HTTP Method not supported by class.", 405);
202 return;
208 // see if class has any post-run hooks
209 if (method_exists($loaded_class, 'postRun')) {
210 $retval = $loaded_class->postRun();
JUnit.php (https://gitlab.com/techniconline/kmc) PHP · 454 lines
16 * @since Class available since Release 2.1.0
17 */
18 class PHPUnit_Util_Log_JUnit extends PHPUnit_Util_Printer implements PHPUnit_Framework_TestListener
19 {
20 /**
156 * @param float $time
157 */
158 public function addFailure(PHPUnit_Framework_Test $test, PHPUnit_Framework_AssertionFailedError $e, $time)
159 {
160 if ($this->currentTestCase === null) {
198 PHPUnit_Util_XML::prepareString(
199 "Incomplete Test\n" .
200 PHPUnit_Util_Filter::getFilteredStacktrace($e)
201 )
202 );
function.html_options.php (https://github.com/thomascrepain/classCreator.git) PHP · 174 lines
1 <?php
2 /**
3 * Smarty plugin
25 * </pre>
26 *
27 * @link http://www.smarty.net/manual/en/language.function.html.options.php {html_image}
28 * (Smarty online manual)
29 * @author Monte Ohrt <monte at ohrt dot com>
36 function smarty_function_html_options($params, $template)
37 {
38 require_once(SMARTY_PLUGINS_DIR . 'shared.escape_special_chars.php');
40 $name = null;
70 foreach ($_val as $_sel) {
71 if (is_object($_sel)) {
72 if (method_exists($_sel, "__toString")) {
73 $_sel = smarty_function_escape_special_chars((string) $_sel->__toString());
74 } else {
PwSpaceModel.php (https://gitlab.com/wuhang2003/phpwind) PHP · 134 lines
1 <?php
2 Wind::import('SRV:space.bo.PwSpaceBo');
3 /**
4 * the last known user to change this file in the repository <$LastChangedBy: jieyin $>
5 * @author $Author: jieyin $ Foxsee@aliyun.com
6 * @copyright ©2003-2103 phpwind.com
7 * @license http://www.phpwind.com
8 * @version $Id: PwSpaceModel.php 20893 2012-11-16 07:00:39Z jieyin $
9 * @package
10 */
24 if ($page > 0 ) {
25 $method = sprintf('model%sList', ucwords($mod));
26 if (!method_exists($this, $method)) return array();
27 return $this->$method($limit, $page);
28 } else {
YAPNS.php (https://github.com/shiki/yii-apns.git) PHP · 171 lines
1 <?php
3 namespace YAPNS;
26 * @var string
27 */
28 public $apnsPHPLibPath;
30 /**
88 $push = new \ApnsPHP_Push(
89 ($this->environment == self::ENV_PRODUCTION) ? \ApnsPHP_Push::ENVIRONMENT_PRODUCTION : \ApnsPHP_Push::ENVIRONMENT_SANDBOX,
90 $this->providerCertificateFilePath
91 );
134 {
135 defined('YAPNS_LIB_PATH')
136 or define('YAPNS_LIB_PATH', $this->apnsPHPLibPath ? $this->apnsPHPLibPath : FF_SHARED_LIB_PATH . '/ApnsPHP');
138 \Yii::registerAutoloader(array(__CLASS__, 'autoload'));
NestedSetBehaviorPeerBuilderModifierWithScopeTest.php (https://github.com/apinstein/Propel2.git) PHP · 262 lines
1 <?php
3 /*
40 public function testRetrieveRoots()
41 {
42 $this->assertTrue(method_exists('\Propel\Tests\Bookstore\Behavior\Table10Peer', 'retrieveRoots'), 'nested_set adds a retrieveRoots() method for trees that use scope');
43 $this->assertFalse(method_exists('\Propel\Tests\Bookstore\Behavior\Table9Peer', 'retrieveRoots'), 'nested_set does not add a retrieveRoots() method for trees that don\'t use scope');
65 public function testRetrieveRoot()
66 {
67 $this->assertTrue(method_exists('\Propel\Tests\Bookstore\Behavior\Table10Peer', 'retrieveRoot'), 'nested_set adds a retrieveRoot() method');
68 Table10Peer::doDeleteAll();
69 $t1 = new Table10();
122 public function testShiftRLValues()
123 {
124 $this->assertTrue(method_exists('\Propel\Tests\Bookstore\Behavior\Table10Peer', 'shiftRLValues'), 'nested_set adds a shiftRLValues() method');
125 $this->initTreeWithScope();
126 Table10Peer::shiftRLValues(1, 100, null, 1);
ArrayCollection.php (https://github.com/hhamon/Propel2.git) PHP · 217 lines
1 <?php
3 /**
38 public function save($con = null)
39 {
40 if (!method_exists($this->getFullyQualifiedModel(), 'save')) {
41 throw new ReadOnlyModelException('Cannot save objects on a read-only model');
42 }
65 public function delete($con = null)
66 {
67 if (!method_exists($this->getFullyQualifiedModel(), 'delete')) {
68 throw new ReadOnlyModelException('Cannot delete objects on a read-only model');
69 }
Default.php (https://github.com/oveach/tuto-zf-doctrine2.git) PHP · 312 lines
1 <?php
2 /**
3 * Zend Framework
17 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
18 * @license http://framework.zend.com/license/new-bsd New BSD License
19 * @version $Id: Default.php 24613 2012-01-21 14:44:26Z sgehrig $
20 */
86 * @see Zend_Ldap_Exception
87 */
88 require_once 'Zend/Ldap/Exception.php';
89 throw new Zend_Ldap_Exception($this->_ldap, 'counting entries');
90 }
141 $this->_attributeNameTreatment = self::ATTRIBUTE_TO_LOWER;
142 } else if (is_array($attributeNameTreatment) &&
143 !method_exists($attributeNameTreatment[0], $attributeNameTreatment[1])) {
144 $this->_attributeNameTreatment = self::ATTRIBUTE_TO_LOWER;
145 } else {
function.html_options.php (https://github.com/xkz0001/agentbox.git) PHP · 174 lines
1 <?php
2 /**
3 * Smarty plugin
25 * </pre>
26 *
27 * @link http://www.smarty.net/manual/en/language.function.html.options.php {html_image}
28 * (Smarty online manual)
29 * @author Monte Ohrt <monte at ohrt dot com>
36 function smarty_function_html_options($params, $template)
37 {
38 require_once(SMARTY_PLUGINS_DIR . 'shared.escape_special_chars.php');
40 $name = null;
70 foreach ($_val as $_sel) {
71 if (is_object($_sel)) {
72 if (method_exists($_sel, "__toString")) {
73 $selected = smarty_function_escape_special_chars((string) $_sel->__toString());
74 } else {
NestedSetBehaviorQueryBuilderModifierWithScopeTest.php (https://github.com/vworldat/Propel2.git) PHP · 312 lines
1 <?php
3 /**
231 public function testFindRoot()
232 {
233 $this->assertTrue(method_exists('Table10Query', 'findRoot'), 'nested_set adds a findRoot() method');
234 Table10Query::create()->deleteAll();
235 $this->assertNull(Table10Query::create()->findRoot(1), 'findRoot() returns null as long as no root node is defined');
Show.php (https://github.com/intraface/intraface.dk.git) PHP · 283 lines
1 <?php
2 class Intraface_modules_intranetmaintenance_Controller_User_Show extends k_Component
3 {
200 return $this->intranetmaintenance;
201 }
202 if (method_exists($this->context, 'getIntranet') and $this->context->getIntranet()->getId() > 0) {
203 return $this->intranetmaintenance = new IntranetMaintenance($this->context->getIntranet()->getId());
204 }
BWGControllerTags_bwg.php (https://gitlab.com/edgarze188/sunrise) PHP · 238 lines
1 <?php
3 class BWGControllerTags_bwg {
24 $message = WDWLibrary::get('message');
25 echo WDWLibrary::message_id($message);
26 if (method_exists($this, $task)) {
27 $this->$task($id);
28 }
34 public function display() {
35 require_once WD_BWG_DIR . "/admin/models/BWGModelTags_bwg.php";
36 $model = new BWGModelTags_bwg();
38 require_once WD_BWG_DIR . "/admin/views/BWGViewTags_bwg.php";
39 $view = new BWGViewTags_bwg($model);
40 $view->display();
GetterSetterTest.php (https://gitlab.com/yousafsyed/easternglamor) PHP · 268 lines
1 <?php
2 /**
3 * Copyright © 2016 Magento. All rights reserved.
6 namespace Magento\Tax\Test\Unit;
8 class GetterSetterTest extends \PHPUnit_Framework_TestCase
9 {
10 /**
23 $this->assertTrue(
24 method_exists($classObject, $setterName),
25 "Method " . $setterName . " does not exist in " . $className
26 );
51 $this->assertTrue(
52 method_exists($classObject, $getterName),
53 "Method " . $getterName . " does not exist in " . $className
54 );
Config.php (https://github.com/guiohm/magento-french.git) PHP · 256 lines
1 <?php
2 /**
3 * Magento
8 * that is bundled with this package in the file LICENSE.txt.
9 * It is also available through the world-wide-web at this URL:
10 * http://opensource.org/licenses/osl-3.0.php
11 * If you did not receive a copy of the license and are unable to
12 * obtain it through the world-wide-web, please send an email
22 * @package Mage_Adminhtml
23 * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25 */
177 {
178 $moduleName = 'adminhtml';
179 if (is_object($sectionNode) && method_exists($sectionNode, 'attributes')) {
180 $sectionAttributes = $sectionNode->attributes();
181 $moduleName = isset($sectionAttributes['module']) ? (string)$sectionAttributes['module'] : $moduleName;
PercentToLocalizedStringTransformerTest.php (https://github.com/deviantintegral/symfony.git) PHP · 305 lines
1 <?php
3 /*
12 namespace Symfony\Component\Form\Tests\Extension\Core\DataTransformer;
14 use PHPUnit\Framework\TestCase;
15 use Symfony\Component\Form\Extension\Core\DataTransformer\PercentToLocalizedStringTransformer;
16 use Symfony\Component\Intl\Util\IntlTestHelper;
107 $transformer = new PercentToLocalizedStringTransformer();
109 $this->{method_exists($this, $_ = 'expectException') ? $_ : 'setExpectedException'}('Symfony\Component\Form\Exception\TransformationFailedException');
111 $transformer->transform('foo');
116 $transformer = new PercentToLocalizedStringTransformer();
118 $this->{method_exists($this, $_ = 'expectException') ? $_ : 'setExpectedException'}('Symfony\Component\Form\Exception\TransformationFailedException');
120 $transformer->reverseTransform(1);
class.wpcom-json-api-sharing-buttons-endpoint.php (https://gitlab.com/juanito.abelo/nlmobile) PHP · 385 lines
1 <?php
3 abstract class WPCOM_JSON_API_Sharing_Button_Endpoint extends WPCOM_JSON_API_Endpoint {
13 return new WP_Error( 'forbidden', 'You do not have the capability to manage sharing buttons for this site', 403 );
14 } else if ( ! class_exists( 'Sharing_Service' ) || ! class_exists( 'Sharing_Source' ) ||
15 ( method_exists( 'Jetpack', 'is_module_active' ) && ! Jetpack::is_module_active( 'sharedaddy' ) ) ) {
16 return new WP_Error( 'missing_jetpack_module', 'The Sharing module must be activated in order to use this endpoint', 400 );
17 }
37 }
39 if ( method_exists( $button, 'get_options' ) ) {
40 // merge get_options() values into response, primarily to account
41 // for custom sharing button values
FilesystemManager.php (https://gitlab.com/FSalazarH/WaitlessWeb) PHP · 330 lines
Command.php (https://gitlab.com/MineYourMind/BoNeMEAL) PHP · 387 lines
Follow.php (https://github.com/twitter/wordpress.git) PHP · 288 lines
TBGAction.class.php (https://github.com/pb30/thebuggenie.git) PHP · 288 lines
1 <?php
3 /**
6 * @author Daniel Andre Eikeland <zegenie@zegeniestudios.net>
7 * @version 3.1
8 * @license http://www.opensource.org/licenses/mozilla1.1.php Mozilla Public License 1.1 (MPL 1.1)
9 * @package thebuggenie
10 * @subpackage mvc
58 {
59 $actionName = 'run' . ucfirst($redirect_to);
60 $this->getResponse()->setTemplate(mb_strtolower($redirect_to) . '.' . TBGContext::getRequest()->getRequestedFormat() . '.php');
61 if (method_exists($this, $actionName))
testgradegrades.php (https://github.com/jarednipper/HSU-common-code.git) PHP · 191 lines
1 <?php // $Id: testgradegrades.php,v 1.4.2.2 2008/03/27 17:13:01 nicolasconnault Exp $
3 ///////////////////////////////////////////////////////////////////////////
36 }
38 require_once($CFG->libdir.'/simpletest/fixtures/gradetest.php');
40 class grade_grade_test extends grade_test {
56 function test_grade_grade_insert() {
57 $grade_grade = new grade_grade();
58 $this->assertTrue(method_exists($grade_grade, 'insert'));
60 $grade_grade->itemid = $this->grade_items[0]->id;
82 function test_grade_grade_update() {
83 $grade_grade = new grade_grade($this->grade_grades[0]);
84 $this->assertTrue(method_exists($grade_grade, 'update'));
85 }
ezkeyword-36fe81e14d6641620c6ce8585516ef1c.php (https://bitbucket.org/ericsagnes/ezpublish-multisite.git) PHP · 217 lines
1 <?php
2 // URI: design:content/datatype/view/ezkeyword.tpl
3 // Filename: design/standard/templates/content/datatype/view/ezkeyword.tpl
13 $eZTemplateCompilerCodeDate = 1074699607;
14 if ( !defined( 'EZ_TEMPLATE_COMPILER_COMMON_CODE' ) )
15 include_once( 'var/ezwebin_site/cache/template/compiled/common.php' );
17 $text .= '
28 $var1 = $var2;
29 if (! isset( $var1 ) ) $var1 = NULL;
30 while ( is_object( $var1 ) and method_exists( $var1, 'templateValue' ) )
31 $var1 = $var1->templateValue();
32 while ( is_object( $var1 ) and method_exists( $var1, 'templateValue' ) )
35 unset( $var1 );
36 if (! isset( $var ) ) $var = NULL;
37 while ( is_object( $var ) and method_exists( $var, 'templateValue' ) )
38 $var = $var->templateValue();
39 $text .= $var;
Smd.php (https://gitlab.com/Marwamimo/Crowdrise_Web) PHP · 461 lines
base.php (https://gitlab.com/campus-academy/krowkaramel) PHP · 368 lines
1 <?php
2 namespace Elementor\TemplateLibrary;
341 $element_data = $element->get_data();
343 if ( method_exists( $element, $method ) ) {
344 // TODO: Use the internal element data without parameters.
345 $element_data = $element->{$method}( $element_data );
354 }
356 if ( method_exists( $control_class, $method ) ) {
357 $element_data['settings'][ $control['name'] ] = $control_class->{$method}( $element->get_settings( $control['name'] ), $control );
358 }
Service.php (https://gitlab.com/koodersmiikka/operaatio-terveys) PHP · 158 lines
1 <?php
2 namespace Concrete\Core\Antispam;
55 $args[$key] = $value;
56 }
57 if (method_exists($this->controller, 'report')) {
58 $this->controller->report($args);
59 }
151 public function __call($nm, $args)
152 {
153 if (method_exists($this->controller, $nm)) {
154 return call_user_func_array(array($this->controller, $nm), $args);
155 }
ArrayUtils.php (https://gitlab.com/x33n/ImpressPages) PHP · 275 lines
1 <?php
2 /**
3 * Zend Framework (http://framework.zend.com/)
14 /**
15 * Utility class for testing and manipulation of PHP arrays.
16 *
17 * Declared abstract, as we have no need for instantiation.
134 * );
135 * $hash = array(
136 * 1995 => 'Birth of PHP',
137 * 2009 => 'PHP 5.3.0',
138 * 2012 => 'PHP 5.4.0',
139 * );
140 * $hash = array(
ezmodulefunctioninfo.php (https://github.com/Yannix/ezpublish.git) PHP · 321 lines
1 <?php
2 /**
3 * File containing the eZModuleFunctionInfo class.
11 /*!
12 \class eZModuleFunctionInfo ezmodulefunctioninfo.php
13 \brief The class eZModuleFunctionInfo does
45 foreach ( $pathList as $path )
46 {
47 $definitionFile = $path . '/' . $this->ModuleName . '/function_definition.php';
48 if ( file_exists( $definitionFile ) )
49 break;
136 return false;
137 }
138 if ( !method_exists( $classObject, $callMethod['method'] ) )
139 {
140 return false;
FormBuilderTest.php (https://bitbucket.org/laborautonomo/laborautonomo-site.git) PHP · 271 lines
Part.php (https://bitbucket.org/saifshuvo/zf2.git) PHP · 234 lines
DefaultIterator.php (https://github.com/kiranatama/sagalaya.git) PHP · 307 lines
1 <?php
2 /**
3 * Zend Framework (http://framework.zend.com/)
130 $this->attributeNameTreatment = self::ATTRIBUTE_TO_LOWER;
131 } elseif (is_array($attributeNameTreatment)
132 && !method_exists($attributeNameTreatment[0], $attributeNameTreatment[1])
133 ) {
134 $this->attributeNameTreatment = self::ATTRIBUTE_TO_LOWER;
pkSubCrudActions.class.php (https://github.com/staunchRobots/MorrillAndCompany.git) PHP · 153 lines
1 <?php
3 // A typical Doctrine route collection CRUD action class framework, with the addition of support for subforms that
133 // rather than directly on the object itself (like Event)
135 if (method_exists($class, 'getForm'))
136 {
137 $this->form = call_user_func(array($class, 'getForm'), $this->getRoute()->getObject(), $request);
142 }
144 if (method_exists($this->form, 'userCanEdit') && (!$this->form->userCanEdit()))
145 {
146 $this->forward404();
ValidClassNamePass.php (https://gitlab.com/4gdevs/online-class-record-system) PHP · 344 lines
1 <?php
3 /*
14 use PhpParser\Node;
15 use PhpParser\Node\Expr;
16 use PhpParser\Node\Expr\ClassConstFetch;
17 use PhpParser\Node\Expr\New_ as NewExpr;
18 use PhpParser\Node\Expr\StaticCall;
19 use PhpParser\Node\Stmt;
20 use PhpParser\Node\Stmt\Class_ as ClassStmt;
228 }
230 if (!method_exists($class, $name) && !method_exists($class, '__callStatic')) {
231 throw $this->createError(sprintf('Call to undefined method %s::%s()', $class, $name), $stmt);
232 }
worksheet.php (https://github.com/bobzhai/kohana-phpexcel.git) PHP · 315 lines
101 /**
102 * Column formats. It needs to be in a similar manner like `$columns` property and the values may be either
103 * literal or `PHPExcel_Style_NumberFormat` constants. Default value is `PHPExcel_Style_NumberFormat::FORMAT_GENERAL`.
104 *
105 * @var array
114 /**
115 * Column data types. It needs to be in a similar manner like `$columns` property and the values may be either
116 * literal or `PHPExcel_Cell_DataType` constants. Default value is `PHPExcel_Cell_DataType::TYPE_STRING`.
117 *
118 * @var array
130 * @param PHPExcel_Worksheet $worksheet
131 */
132 public function __construct(PHPExcel $spreadsheet, PHPExcel_Worksheet $worksheet = NULL)
133 {
134 if ($worksheet === NULL)
Dispatcher.php (https://gitlab.com/techniconline/kmc) PHP · 388 lines
plugin.php (https://github.com/timglabisch/pimcore.git) PHP · 309 lines
1 <?php
3 /** Adminer customization allowing usage of plugins
10 var $plugins;
12 function _findRootClass($class) { // is_subclass_of(string, string) is available since PHP 5.0.3
13 do {
14 $return = $class;
24 $plugins = array();
25 foreach (get_declared_classes() as $class) {
26 if (preg_match('~^Adminer.~i', $class) && strcasecmp($this->_findRootClass($class), 'Adminer')) { // can use interface since PHP 5
27 $plugins[$class] = new $class;
28 }
30 }
31 $this->plugins = $plugins;
32 // it is possible to use ReflectionObject in PHP 5 to find out which plugins defines which methods at once
33 }
standard.php (https://gitlab.com/strongpapazola/gempabmkg) PHP · 183 lines
1 <?php
2 /**
3 * CodeIgniter
4 *
5 * An open source application development framework for PHP
6 *
7 * This content is released under the MIT License (MIT)
41 /**
42 * PHP ext/standard compatibility package
43 *
44 * @package CodeIgniter
51 // ------------------------------------------------------------------------
53 if (is_php('5.5'))
54 {
55 return;
Consumer.php (https://github.com/sdh100shaun/Linktuesday.com.git) PHP · 260 lines
Registry.php (https://bitbucket.org/babanesma/mysimpleadmin.git) PHP · 419 lines
1 <?php
2 /**
3 * Zend Framework
18 * @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
19 * @license http://framework.zend.com/license/new-bsd New BSD License
20 * @version $Id: Registry.php 23775 2011-03-01 17:25:24Z ralph $
21 */
24 * @see Zend_Tool_Framework_Registry_Interface
25 */
26 require_once 'Zend/Tool/Framework/Registry/Interface.php';
28 /**
143 {
144 if ($this->_config === null) {
145 require_once 'Zend/Tool/Framework/Client/Config.php';
146 $this->setConfig(new Zend_Tool_Framework_Client_Config());
147 }
Registry.php (https://github.com/grjones/qframe.git) PHP · 419 lines
1 <?php
2 /**
3 * Zend Framework
18 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
19 * @license http://framework.zend.com/license/new-bsd New BSD License
20 * @version $Id: Registry.php 20096 2010-01-06 02:05:09Z bkarwin $
21 */
24 * @see Zend_Tool_Framework_Registry_Interface
25 */
26 require_once 'Zend/Tool/Framework/Registry/Interface.php';
28 /**
143 {
144 if ($this->_config === null) {
145 require_once 'Zend/Tool/Framework/Client/Config.php';
146 $this->setConfig(new Zend_Tool_Framework_Client_Config());
147 }
Dispatcher.php (https://gitlab.com/heruujoko/ilearnman) PHP · 430 lines
Container.php (https://gitlab.com/mlassabe/LASSABE) PHP · 282 lines
1 <?php
3 /*
63 * Objects must be defined as Closures.
64 *
65 * Allowing any PHP callable leads to difficult to debug problems
66 * as function names (strings) are callable (creating a function with
67 * the same name as an existing parameter would break your container).
101 || !is_object($this->values[$id])
102 || isset($this->protected[$this->values[$id]])
103 || !method_exists($this->values[$id], '__invoke')
104 ) {
105 return $this->values[$id];
158 public function factory($callable)
159 {
160 if (!method_exists($callable, '__invoke')) {
161 throw new \InvalidArgumentException('Service definition is not a Closure or invokable object.');
162 }
InstalledAddOnContext.php (https://github.com/trob/fabrik.git) PHP · 156 lines
FormMonthSelectTwb.php (https://bitbucket.org/dominicwatson/dlutwbootstrap-active.git) PHP · 321 lines
AclBehavior.php (https://github.com/masihnewbie/cakephp.git) PHP · 138 lines
1 <?php
2 /**
3 * ACL behavior class.
7 * PHP 5
8 *
9 * CakePHP : Rapid Development Framework (http://cakephp.org)
10 * Copyright 2005-2011, Cake Software Foundation, Inc.
11 *
14 *
15 * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
16 * @link http://cakephp.org CakePHP Project
17 * @package Cake.Model.Behavior
18 * @since CakePHP v 1.2.0.4487
19 * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
20 */
21 App::uses('AclNode', 'Model');
clsPmieducarCategoriaNivel.inc.php (https://github.com/gtinfo/ieducar.git) PHP · 526 lines
1 <?php
2 /**
3 * @author Prefeitura Municipal de Itajaí
6 */
8 require_once( "include/pmieducar/geral.inc.php" );
10 class clsPmieducarCategoriaNivel
79 /**
80 * Construtor (PHP 4)
81 *
82 * @param integer cod_categoria_nivel
103 {
104 $tmp_obj = new clsPmieducarUsuario( $ref_usuario_cad );
105 if( method_exists( $tmp_obj, "existe") )
106 {
107 if( $tmp_obj->existe() )
Mock.php (https://github.com/yugeon/mockery.git) PHP · 377 lines
1 <?php
2 /**
3 * Mockery
11 * If you did not receive a copy of the license and are unable to
12 * obtain it through the world-wide-web, please send an email
13 * to padraic@php.net so we can send you a copy immediately.
14 *
15 * @category Mockery
108 /**
109 * We want to avoid constructors since class is copied to Generator.php
110 * for inclusion on extending class definitions.
111 *
206 $handler = $this->_mockery_expectations[$method];
207 return $handler->call($args);
208 } elseif (!is_null($this->_mockery_partial) && method_exists($this->_mockery_partial, $method)) {
209 return call_user_func_array(array($this->_mockery_partial, $method), $args);
210 } elseif ($this->_mockery_ignoreMissing) {
Default.php (https://gitlab.com/yousafsyed/easternglamor) PHP · 312 lines
1 <?php
2 /**
3 * Zend Framework
86 * @see Zend_Ldap_Exception
87 */
88 #require_once 'Zend/Ldap/Exception.php';
89 throw new Zend_Ldap_Exception($this->_ldap, 'counting entries');
90 }
141 $this->_attributeNameTreatment = self::ATTRIBUTE_TO_LOWER;
142 } else if (is_array($attributeNameTreatment) &&
143 !method_exists($attributeNameTreatment[0], $attributeNameTreatment[1])) {
144 $this->_attributeNameTreatment = self::ATTRIBUTE_TO_LOWER;
145 } else {
244 if ($currentDn === false) {
245 /** @see Zend_Ldap_Exception */
246 #require_once 'Zend/Ldap/Exception.php';
247 throw new Zend_Ldap_Exception($this->_ldap, 'getting dn');
248 }
FilesystemAdapter.php (https://gitlab.com/Sigpot/AirSpot) PHP · 383 lines
1 <?php
3 namespace Illuminate\Filesystem;
120 * @return int
121 */
122 public function prepend($path, $data, $separator = PHP_EOL)
123 {
124 if ($this->exists($path)) {
136 * @return int
137 */
138 public function append($path, $data, $separator = PHP_EOL)
139 {
140 if ($this->exists($path)) {
239 } elseif ($adapter instanceof LocalAdapter) {
240 return '/storage/'.$path;
241 } elseif (method_exists($adapter, 'getUrl')) {
242 return $adapter->getUrl($path);
243 } else {
abstract.php (https://github.com/luthercollege/reason_package.git) PHP · 321 lines
1 <?php
2 /**
3 * @package reason
8 * Register controller with Reason
9 */
10 $GLOBALS[ '_form_controller_class_names' ][ basename( __FILE__, '.php') ] = 'AbstractFormController';
12 /**
115 if (!isset($view) || ($view == false))
116 {
117 if (method_exists($model, 'setup_view'))
118 {
119 $view =& $model->setup_view();
121 }
122 }
123 elseif (method_exists($model, 'set_view'))
124 {
125 $model->set_view($view);
base.php (https://gitlab.com/alexprowars/bitrix) PHP · 185 lines
message.php (https://github.com/cmiic/moodle.git) PHP · 293 lines
Default.php (https://gitlab.com/Ltaimao/wecenter) PHP · 312 lines
1 <?php
2 /**
3 * Zend Framework
86 * @see Zend_Ldap_Exception
87 */
88 //require_once 'Zend/Ldap/Exception.php';
89 throw new Zend_Ldap_Exception($this->_ldap, 'counting entries');
90 }
141 $this->_attributeNameTreatment = self::ATTRIBUTE_TO_LOWER;
142 } else if (is_array($attributeNameTreatment) &&
143 !method_exists($attributeNameTreatment[0], $attributeNameTreatment[1])) {
144 $this->_attributeNameTreatment = self::ATTRIBUTE_TO_LOWER;
145 } else {
244 if ($currentDn === false) {
245 /** @see Zend_Ldap_Exception */
246 //require_once 'Zend/Ldap/Exception.php';
247 throw new Zend_Ldap_Exception($this->_ldap, 'getting dn');
248 }
Blueprint.php (https://bitbucket.org/mikebosire/framework.git) PHP · 644 lines
NodeDefinition.php (https://github.com/deviantintegral/symfony.git) PHP · 375 lines
FormCollection.php (https://bitbucket.org/gencer/zf2.git) PHP · 387 lines
1 <?php
2 /**
3 * Zend Framework (http://framework.zend.com/)
98 {
99 $renderer = $this->getView();
100 if (!method_exists($renderer, 'plugin')) {
101 // Bail early if renderer is not pluggable
102 return '';
258 }
260 if (method_exists($this->view, 'plugin')) {
261 $this->elementHelper = $this->view->plugin($this->getDefaultElementHelper());
262 }
DbModel.php (https://github.com/mingomax/Zend-Db-Model-Creation.git) PHP · 418 lines
1 <?php
2 class My_Scripts_DbModel extends My_Scripts_ModelCreation
3 {
70 foreach ($fields as $field) {
71 $dataType = $this->phpDataTypeConversion($field['Data_Type']);
73 // Create Setter
80 ),
81 'body' => '$this->_' . $field['Name'] . ' = (' . $dataType . ') $' . $field['Name'] . ';' . "\n" . 'return $this;',
82 'docblock' => new Zend_CodeGenerator_Php_Docblock(array(
83 'shortDescription' => 'Set ' . $field['Name'] . ' property',
84 'tags' => array(
85 new Zend_CodeGenerator_Php_Docblock_Tag_Param(array(
86 'paramName' => $field['Name'],
87 'datatype' => $dataType,
Registry.php (https://bitbucket.org/simukti/zf1.git) PHP · 419 lines
1 <?php
2 /**
3 * Zend Framework
18 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
19 * @license http://framework.zend.com/license/new-bsd New BSD License
20 * @version $Id: Registry.php 24593 2012-01-05 20:35:02Z matthew $
21 */
24 * @see Zend_Tool_Framework_Registry_Interface
25 */
26 require_once 'Zend/Tool/Framework/Registry/Interface.php';
28 /**
143 {
144 if ($this->_config === null) {
145 require_once 'Zend/Tool/Framework/Client/Config.php';
146 $this->setConfig(new Zend_Tool_Framework_Client_Config());
147 }
Standalone.php (https://github.com/su2921iw/ma3.git) PHP · 319 lines
1 <?php
2 /**
3 * Zend Framework
17 * @subpackage Helper
18 * @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
19 * @version $Id: Standalone.php 16541 2009-07-07 06:59:03Z bkarwin $
20 * @license http://framework.zend.com/license/new-bsd New BSD License
21 */
23 /** Zend_View_Helper_Placeholder_Registry */
24 require_once 'Zend/View/Helper/Placeholder/Registry.php';
26 /** Zend_View_Helper_Abstract.php */
27 require_once 'Zend/View/Helper/Abstract.php';
29 /**
MethodProphecy.php (https://gitlab.com/ealexis.t/trends) PHP · 437 lines
1 <?php
3 /*
47 {
48 $double = $objectProphecy->reveal();
49 if (!method_exists($double, $methodName)) {
50 throw new MethodNotFoundException(sprintf(
51 'Method `%s::%s()` is not defined.', get_class($double), $methodName
70 }
72 if (version_compare(PHP_VERSION, '7.0', '>=') && true === $reflectedMethod->hasReturnType()) {
73 $type = (string) $reflectedMethod->getReturnType();
74 $this->will(function () use ($type) {
ThrowMatcher.php (https://gitlab.com/zan_zan/laravel_sample) PHP · 275 lines
3 /*
4 * This file is part of PhpSpec, A php toolset to drive emergent
5 * design by specification.
6 *
189 if (count($invalidProperties) > 0) {
190 $withProperties = sprintf(
191 ' with'.PHP_EOL.'%s,'.PHP_EOL,
192 implode(",\n", $invalidProperties)
193 );
233 list($class, $methodName) = array($subject, $methodName);
234 if (!method_exists($class, $methodName) && !method_exists($class, '__call')) {
235 throw new MethodNotFoundException(
236 sprintf('Method %s::%s not found.', get_class($class), $methodName),