PageRenderTime 1334ms queryTime 66ms sortTime 72ms getByIdsTime 149ms findMatchingLines 111ms

100+ results results for 'php is_string repo:jcplat/console-seolan' (1334 ms)

Not the results you expected?
HTML.php https://gitlab.com/rsilveira1987/Expresso | PHP | 499 lines
                    
34	define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../../');
                    
35	require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php');
                    
36}
                    
149		// Create new PHPExcel
                    
150		$objPHPExcel = new PHPExcel();
                    
151
                    
430	/**
                    
431	 * Loads PHPExcel from file into PHPExcel instance
                    
432	 *
                    
433	 * @param 	string 		$pFilename
                    
434	 * @param	PHPExcel	$objPHPExcel
                    
435	 * @return 	PHPExcel
                    
437	 */
                    
438	public function loadIntoExisting($pFilename, PHPExcel $objPHPExcel)
                    
439	{
                    
                
abstract.php https://bitbucket.org/organicdevelopment/nooku-framework.git | PHP | 559 lines
                    
1<?php
                    
2/**
                    
209		{
                    
210			if(is_string($view) && strpos($view, '.') === false ) 
                    
211		    {
                    
384         //Create the complete identifier if a partial identifier was passed 
                    
385        if(is_string($filter) && strpos($filter, '.') === false ) 
                    
386        { 
                    
473		//Create the complete identifier if a partial identifier was passed
                    
474		if(is_string($helper) && strpos($helper, '.') === false ) 
                    
475		{
                    
506            if(ini_get('log_errors')) {
                    
507                error_log(sprintf('PHP %s:  %s in %s on line %d', self::$_errors[$code], $message, $this->_path, $line));
                    
508            }
                    
519	 * This function passes the template through the read filter chain before letting
                    
520	 * the PHP parser executed it. The result is buffered.
                    
521	 *
                    
                
DelegatingValidator.php https://github.com/Exercise/symfony.git | PHP | 280 lines
                    
1<?php
                    
2
                    
270        foreach ($mapping as $pattern => $form) {
                    
271            if (is_string($form)) {
                    
272                if (!isset($forms[$form])) {
                    
                
array-data-defs.h https://github.com/tstarling/hiphop-php.git | C Header | 357 lines
                    
2   +----------------------------------------------------------------------+
                    
3   | HipHop for PHP                                                       |
                    
4   +----------------------------------------------------------------------+
                    
6   +----------------------------------------------------------------------+
                    
7   | This source file is subject to version 3.01 of the PHP license,      |
                    
8   | that is bundled with this package in the file LICENSE, and is        |
                    
9   | available through the world-wide-web at the following url:           |
                    
10   | http://www.php.net/license/3_01.txt                                  |
                    
11   | If you did not receive a copy of the PHP license and are unable to   |
                    
12   | obtain it through the world-wide-web, please send a note to          |
                    
13   | license@php.net so we can mail you a copy immediately.               |
                    
14   +----------------------------------------------------------------------+
                    
16
                    
17#ifndef incl_HPHP_ARRAY_DEFS_H_
                    
18#define incl_HPHP_ARRAY_DEFS_H_
                    
                
xpdoquery.class.php https://github.com/gbds/revolution.git | PHP | 297 lines
                    
1<?php
                    
2/*
                    
28/** Include the base {@see xPDOQuery} class */
                    
29include_once (dirname(dirname(__FILE__)) . '/xpdoquery.class.php');
                    
30
                    
58                    }
                    
59                    $isString= in_array($fieldMeta[$k]['phptype'], $this->_quotable);
                    
60                    $field= array();
                    
110                        }
                    
111                        elseif (isset($fieldMeta[$key]) && !in_array($fieldMeta[$key]['phptype'], $this->_quotable)) {
                    
112                            $type= PDO::PARAM_INT;
                    
167        }
                    
168        elseif (($pktype == 'integer' && is_numeric($conditions)) || ($pktype == 'string' && is_string($conditions))) {
                    
169            if ($pktype == 'integer') {
                    
                
class-terminus.php https://gitlab.com/Blueprint-Marketing/cli | PHP | 417 lines
                    
27    if(!$configurator) {
                    
28      $configurator = new Terminus\Configurator(TERMINUS_ROOT . '/php/config-spec.php');
                    
29    }
                    
283  static function error_to_string($errors) {
                    
284    if(is_string($errors)) {
                    
285      return $errors;
                    
337
                    
338    $php_bin = self::get_php_binary();
                    
339
                    
340    if(Terminus::is_test()) {
                    
341      $script_path = __DIR__.'/boot-fs.php';
                    
342    } else {
                    
353
                    
354  private static function get_php_binary() {
                    
355    if(defined('PHP_BINARY'))
                    
                
dumper.php https://github.com/quarkness/piwik.git | PHP | 360 lines
                    
1<?php
                    
2/**
                    
5 *  @subpackage UnitTester
                    
6 *  @version    $Id: dumper.php 1723 2008-04-08 00:34:10Z lastcraft $
                    
7 */
                    
57            return "Boolean";
                    
58        } elseif (is_string($value)) {
                    
59            return "String";
                    
                
Url.php https://gitlab.com/x33n/respond | PHP | 548 lines
                    
1<?php
                    
2
                    
420    {
                    
421        if (is_string($query)) {
                    
422            $output = null;
                    
                
Pager.php https://github.com/cawago/ci_campusync_auth.git | PHP | 576 lines
                    
1<?php
                    
2/*
                    
18 * and is licensed under the LGPL. For more information, see
                    
19 * <http://www.phpdoctrine.org>.
                    
20 */
                    
27 * @subpackage  Pager
                    
28 * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
                    
29 * @version     $Revision$
                    
29 * @version     $Revision$
                    
30 * @link        www.phpdoctrine.org
                    
31 * @since       0.9
                    
473    {
                    
474        if (is_string($query)) {
                    
475            $query = Doctrine_Query::create()->parseQuery($query);
                    
507    {
                    
508        if (is_string($query)) {
                    
509            $query = Doctrine_Query::create()->parseQuery($query);
                    
                
XmlDumper.php https://github.com/Exercise/symfony.git | PHP | 301 lines
                    
1<?php
                    
2
                    
248                }
                    
249                $text = $this->document->createTextNode(self::phpToXml($value));
                    
250                $element->appendChild($text);
                    
268                $args[$k] = $this->escape($v);
                    
269            } elseif (is_string($v)) {
                    
270                $args[$k] = str_replace('%', '%%', $v);
                    
279    /**
                    
280     * Converts php types to xml types.
                    
281     *
                    
283     */
                    
284    static public function phpToXml($value)
                    
285    {
                    
                
Json.php https://bitbucket.org/baruffaldi/webapp-urltube.git | PHP | 242 lines
                    
1<?php
                    
2/**
                    
23 */
                    
24require_once 'Zend/Json/Exception.php';
                    
25
                    
72
                    
73        require_once 'Zend/Json/Decoder.php';
                    
74        return Zend_Json_Decoder::decode($encodedValue, $objectDecodeType);
                    
98
                    
99        require_once 'Zend/Json/Encoder.php';
                    
100        return Zend_Json_Encoder::encode($valueToEncode, $cycleCheck, $options);
                    
113     *   
                    
114     * This function converts the XML formatted string into a PHP array by   
                    
115     * calling a recursive (protected static) function in this class. Then, it   
                    
115     * calling a recursive (protected static) function in this class. Then, it   
                    
116     * converts that PHP array into JSON by calling the "encode" static funcion.  
                    
117     *  
                    
                
basebutton.php https://gitlab.com/alexprowars/bitrix | PHP | 564 lines
                    
1<?php
                    
2
                    
84
                    
85		if (!empty($params['className']) && is_string($params['className']))
                    
86		{
                    
298	{
                    
299		if (is_string($link) && !empty($link))
                    
300		{
                    
318		}
                    
319		else if ((is_int($counter) && $counter > 0) || (is_string($counter) && mb_strlen($counter)))
                    
320		{
                    
517	{
                    
518		if (is_string($fn))
                    
519		{
                    
                
file.php https://bitbucket.org/ferOnti/processmaker.git | PHP | 339 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * $Header: /repository/pear/Log/Log/file.php,v 1.46 2006/12/07 04:15:02 jon Exp $
                    
4 *
                    
12 * 
                    
13 * @author  Jon Parise <jon@php.net>
                    
14 * @author  Roman Neuhauser <neuhauser@bellavista.cz>
                    
17 *
                    
18 * @example file.php    Using the file handler.
                    
19 */
                    
26     */
                    
27    var $_filename = 'php.log';
                    
28
                    
114        if (!empty($conf['mode'])) {
                    
115            if (is_string($conf['mode'])) {
                    
116                $this->_mode = octdec($conf['mode']);
                    
                
twitter-timeline.php https://gitlab.com/hunt9310/ras | PHP | 470 lines
                    
1<?php
                    
2
                    
26			'twitter_timeline',
                    
27			/** This filter is documented in modules/widgets/facebook-likebox.php */
                    
28			apply_filters( 'jetpack_widget_name', esc_html__( 'Twitter Timeline', 'jetpack' ) ),
                    
63	public function admin_scripts( $hook ) {
                    
64		// This is still 'widgets.php' when managing widgets via the Customizer.
                    
65		if ( 'widgets.php' === $hook ) {
                    
83		if ( isset( $instance['title'] ) ) {
                    
84			/** This filter is documented in core/src/wp-includes/default-widgets.php */
                    
85			echo $args['before_title'] . apply_filters( 'widget_title', $instance['title'] ) . $args['after_title'];
                    
145
                    
146		/** This action is documented in modules/widgets/social-media-icons.php */
                    
147		do_action( 'jetpack_bump_stats_extras', 'widget', 'twitter_timeline' );
                    
185		// If they entered something that might be a full URL, try to parse it out
                    
186		if ( is_string( $new_instance['widget-id'] ) ) {
                    
187			if ( preg_match(
                    
                
Store.php https://gitlab.com/susmitha.plts/photographer_portfolio | PHP | 707 lines
                    
1<?php
                    
2
                    
186    {
                    
187        return is_string($id) && preg_match('/^[a-f0-9]{40}$/', $id);
                    
188    }
                    
                
Resource.php https://github.com/rico/flextrine.git | PHP | 467 lines
                    
1<?php
                    
2/**
                    
18 * @copyright  Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
                    
19 * @version    $Id: Resource.php 23568 2010-12-20 08:13:20Z mjh_ca $
                    
20 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
23/** Zend_Loader_Autoloader_Interface */
                    
24require_once 'Zend/Loader/Autoloader/Interface.php';
                    
25
                    
73        if (!is_array($options)) {
                    
74            require_once 'Zend/Loader/Exception.php';
                    
75            throw new Zend_Loader_Exception('Options must be passed to resource loader constructor');
                    
83        ) {
                    
84            require_once 'Zend/Loader/Exception.php';
                    
85            throw new Zend_Loader_Exception('Resource loader requires both a namespace and a base path for initialization');
                    
90        }
                    
91        require_once 'Zend/Loader/Autoloader.php';
                    
92        Zend_Loader_Autoloader::getInstance()->unshiftAutoloader($this, $namespace);
                    
                
Inflector.php https://github.com/Martin1982/IBMessagingWorkshopServer.git | PHP | 506 lines
                    
1<?php
                    
2/**
                    
18 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version    $Id: Inflector.php 20096 2010-01-06 02:05:09Z bkarwin $
                    
20 */
                    
25 */
                    
26// require_once 'Zend/Filter.php';
                    
27
                    
30 */
                    
31// require_once 'Zend/Loader/PluginLoader.php';
                    
32
                    
78        } else {
                    
79            if ((null !== $target) && is_string($target)) {
                    
80                $this->setTarget($target);
                    
381
                    
382        if (is_string($this->_rules[$spec])) {
                    
383            $temp = $this->_rules[$spec];
                    
                
File.php https://github.com/Riges/KawaiViewModel.git | PHP | 468 lines
                    
25 */
                    
26require_once 'Zend/CodeGenerator/Php/Abstract.php';
                    
27
                    
30 */
                    
31require_once 'Zend/CodeGenerator/Php/Class.php';
                    
32
                    
38 */
                    
39class Zend_CodeGenerator_Php_File extends Zend_CodeGenerator_Php_Abstract
                    
40{
                    
86        if ($fileName == '') {
                    
87            require_once 'Zend/CodeGenerator/Php/Exception.php';
                    
88            throw new Zend_CodeGenerator_Php_Exception('FileName does not exist.');
                    
113            if ( ($realpath = Zend_Reflection_File::findRealpathInIncludePath($filePath)) === false) {
                    
114                require_once 'Zend/CodeGenerator/Php/Exception.php';
                    
115                throw new Zend_CodeGenerator_Php_Exception('No file for ' . $realpath . ' was found.');
                    
                
svg_driver.php https://gitlab.com/OnBlox/OnBlox-Template | PHP | 288 lines
                    
1<?php
                    
2/**
                    
29 * <code>
                    
30 *   $graph = new ezcGraphPieChart();
                    
31 *   $graph->background->color = '#FFFFFFFF';
                    
252            case 'insertIntoGroup':
                    
253                if ( !is_string( $propertyValue ) )
                    
254                {
                    
                
Inflector.php https://github.com/grandison/budo16.git | PHP | 506 lines
                    
1<?php
                    
2/**
                    
18 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version    $Id: Inflector.php 17705 2009-08-21 07:50:57Z thomas $
                    
20 */
                    
25 */
                    
26// require_once 'Zend/Filter.php';
                    
27
                    
30 */
                    
31// require_once 'Zend/Loader/PluginLoader.php';
                    
32
                    
78        } else {
                    
79            if ((null !== $target) && is_string($target)) {
                    
80                $this->setTarget($target);
                    
381
                    
382        if (is_string($this->_rules[$spec])) {
                    
383            $temp = $this->_rules[$spec];
                    
                
Size.php https://bitbucket.org/alexandretaz/maniac_divers.git | PHP | 365 lines
                    
1<?php
                    
2/**
                    
76    {
                    
77        if (is_string($options) || is_numeric($options)) {
                    
78            $options = array('max' => $options);
                    
143    {
                    
144        if (!is_string($min) and !is_numeric($min)) {
                    
145            throw new Exception\InvalidArgumentException('Invalid options to validator provided');
                    
188    {
                    
189        if (!is_string($max) && !is_numeric($max)) {
                    
190            throw new Exception\InvalidArgumentException('Invalid options to validator provided');
                    
                
Resource.php https://github.com/ianbogda/FileZ.git | PHP | 467 lines
                    
1<?php
                    
2/**
                    
18 * @copyright  Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
                    
19 * @version    $Id: Resource.php 23775 2011-03-01 17:25:24Z ralph $
                    
20 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
23/** Zend_Loader_Autoloader_Interface */
                    
24require_once 'Zend/Loader/Autoloader/Interface.php';
                    
25
                    
73        if (!is_array($options)) {
                    
74            require_once 'Zend/Loader/Exception.php';
                    
75            throw new Zend_Loader_Exception('Options must be passed to resource loader constructor');
                    
83        ) {
                    
84            require_once 'Zend/Loader/Exception.php';
                    
85            throw new Zend_Loader_Exception('Resource loader requires both a namespace and a base path for initialization');
                    
90        }
                    
91        require_once 'Zend/Loader/Autoloader.php';
                    
92        Zend_Loader_Autoloader::getInstance()->unshiftAutoloader($this, $namespace);
                    
                
Currency.php https://gitlab.com/LisovyiEvhenii/ismextensions | PHP | 357 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-2016 X.commerce, Inc. and affiliates (http://www.magento.com)
                    
24 * @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
134    {
                    
135        if (is_string($toCurrency)) {
                    
136            $code = $toCurrency;
                    
158    {
                    
159        if (is_string($toCurrency)) {
                    
160            $code = $toCurrency;
                    
                
Template.php https://bitbucket.org/wl-framework-dev/weblab-framework.git | PHP | 350 lines
                    
1<?php
                    
2    /**
                    
2    /**
                    
3     * Represents a PHP Template file
                    
4     *
                    
91
                    
92            if( !empty( $directory ) && is_string( $directory ) ) {
                    
93            	$this->setTemplateDir( $directory );
                    
93            	$this->setTemplateDir( $directory );
                    
94            } elseif( is_string( $config->directory ) ) {
                    
95                $this->setTemplateDir( $config->directory );
                    
97            
                    
98            if( $theme === null && !empty( $config->theme ) && is_string( $config->theme ) ) {
                    
99            	$this->setTheme( $config->theme );
                    
101                
                    
102            if( is_string( $theme ) ) {
                    
103            	$this->setTheme( $theme );
                    
                
Type.php https://bitbucket.org/rybadour/todo_list_site.git | PHP | 303 lines
                    
36 *
                    
37 * @package    PHPUnit
                    
38 * @subpackage Util
                    
50 * @subpackage Util
                    
51 * @author     Sebastian Bergmann <sebastian@phpunit.de>
                    
52 * @copyright  2001-2012 Sebastian Bergmann <sebastian@phpunit.de>
                    
53 * @license    http://www.opensource.org/licenses/BSD-3-Clause  The BSD 3-Clause License
                    
54 * @link       http://www.phpunit.de/
                    
55 * @since      Class available since Release 3.0.0
                    
56 */
                    
57class PHPUnit_Util_Type
                    
58{
                    
159            // There seems to be no other way to check arrays for recursion
                    
160            // http://www.php.net/manual/en/language.types.array.php#73936
                    
161            preg_match_all('/\n            \[(\w+)\] => Array\s+\*RECURSION\*/', print_r($value, TRUE), $matches);
                    
                
FormErrorsTest.php https://github.com/MarcelloDuarte/zf2.git | PHP | 295 lines
                    
1<?php
                    
2/**
                    
26    Zend\Form\SubForm,
                    
27    Zend\View\PhpRenderer as View;
                    
28
                    
38 */
                    
39class FormErrorsTest extends \PHPUnit_Framework_TestCase
                    
40{
                    
123            foreach ($messages as $key => $message) {
                    
124                if (is_string($message)) {
                    
125                    $this->assertContains($message, $test, var_export($messages, 1));
                    
151
                    
152    public function testRenderSeparatesContentAndErrorsWithPhpEolByDefault()
                    
153    {
                    
156        $test = $this->decorator->render($content);
                    
157        $this->assertContains($content . PHP_EOL . '<ul', $test);
                    
158    }
                    
                
ControllerTestCase.php https://bitbucket.org/projectangelfaces/project-angel-faces.git | PHP | 378 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * PHP 5
                    
6 *
                    
6 *
                    
7 * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
                    
8 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
14 * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
15 * @link          http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
                    
16 * @package       Cake.TestSuite
                    
16 * @package       Cake.TestSuite
                    
17 * @since         CakePHP(tm) v 2.0
                    
18 * @license       http://www.opensource.org/licenses/mit-license.php MIT License
                    
238
                    
239		if (is_string($options['data'])) {
                    
240			$request->expects($this->any())
                    
                
yaf_config.c https://gitlab.com/oytunistrator/yaf | C | 405 lines
                    
10  | obtain it through the world-wide-web, please send a note to          |
                    
11  | license@php.net so we can mail you a copy immediately.               |
                    
12  +----------------------------------------------------------------------+
                    
23#include "php_ini.h"
                    
24#include "standard/php_filestat.h" /* for php_stat */
                    
25
                    
25
                    
26#include "php_yaf.h"
                    
27#include "yaf_namespace.h"
                    
72		switch(Z_TYPE_PP(value)) {
                    
73			case IS_STRING:
                    
74			case IS_CONSTANT:
                    
176		case IS_CONSTANT:
                    
177		case IS_STRING:
                    
178				CHECK_ZVAL_STRING(zvalue);
                    
                
CookieJar.php https://bitbucket.org/Ebozavrik/test-application.git | PHP | 441 lines
                    
1<?php
                    
2/**
                    
17 * @subpackage CookieJar
                    
18 * @version    $Id: CookieJar.php 24856 2012-06-01 01:10:47Z adamlundrigan $
                    
19 * @copyright  Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
                    
25 */
                    
26require_once "Zend/Uri.php";
                    
27/**
                    
29 */
                    
30require_once "Zend/Http/Cookie.php";
                    
31/**
                    
33 */
                    
34require_once "Zend/Http/Response.php";
                    
35
                    
130    {
                    
131        if (is_string($cookie)) {
                    
132            $cookie = Zend_Http_Cookie::fromString($cookie, $ref_uri, $encodeValue);
                    
                
aws_s3.php https://github.com/talmdal/gallery3-contrib.git | PHP | 330 lines
                    
1<?php defined("SYSPATH") or die("No direct script access.");
                    
2
                    
12        if (!self::$_s3) {
                    
13            require_once(MODPATH . "aws_s3/lib/s3.php");
                    
14            S3::setAuth(module::get_var("aws_s3", "access_key"), module::get_var("aws_s3", "secret_key"));
                    
58    static function log($item) {
                    
59        if (is_string($item) || is_numeric($item)) {}
                    
60        else
                    
234    static function validate_access_details($access_key, $secret_key, $bucket_name) {
                    
235        require_once(MODPATH . "aws_s3/lib/s3.php");
                    
236        S3::setAuth($access_key, $secret_key);
                    
                
lexer.php https://github.com/nadavkav/MoodleTAO.git | PHP | 393 lines
                    
1<?php  // $Id$
                    
2
                    
2
                    
3/* PHP lexer code snarfed from the CVS tree for the lamplib project at 
                    
4 * http://sourceforge.net/projects/lamplib
                    
165     *    Some optimisation to make the sure the
                    
166     *    content is only scanned by the PHP regex
                    
167     *    parser once. Lexer modes must not start
                    
336            }
                    
337            if (is_string($mode)) {
                    
338                $this->_mode->enter($mode);
                    
                
File.php https://github.com/lanmediaservice/lms-tplib.git | PHP | 460 lines
                    
1<?php
                    
2
                    
20 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
21 * @version    $Id: File.php 16212 2009-06-21 19:24:49Z thomas $
                    
22 */
                    
26 */
                    
27//*** require_once "Zend/OpenId/Consumer/Storage.php";
                    
28
                    
64            $user = get_current_user();
                    
65            if (is_string($user) && !empty($user)) {
                    
66                $tmp .= '/' . $user;
                    
75                 */
                    
76                //*** require_once 'Zend/OpenId/Exception.php';
                    
77                throw new Zend_OpenId_Exception(
                    
85             */
                    
86            //*** require_once 'Zend/OpenId/Exception.php';
                    
87            throw new Zend_OpenId_Exception(
                    
                
bcmath.c https://gitlab.com/envieidoc/advancedtomato2 | C | 579 lines
                    
2   +----------------------------------------------------------------------+
                    
3   | PHP Version 5                                                        |
                    
4   +----------------------------------------------------------------------+
                    
4   +----------------------------------------------------------------------+
                    
5   | Copyright (c) 1997-2014 The PHP Group                                |
                    
6   +----------------------------------------------------------------------+
                    
6   +----------------------------------------------------------------------+
                    
7   | This source file is subject to version 3.01 of the PHP license,      |
                    
8   | that is bundled with this package in the file LICENSE, and is        |
                    
9   | available through the world-wide-web at the following url:           |
                    
10   | http://www.php.net/license/3_01.txt                                  |
                    
11   | If you did not receive a copy of the PHP license and are unable to   |
                    
134PHP_INI_BEGIN()
                    
135	STD_PHP_INI_ENTRY("bcmath.scale", "0", PHP_INI_ALL, OnUpdateLongGEZero, bc_precision, zend_bcmath_globals, bcmath_globals)
                    
136PHP_INI_END()
                    
                
AbstractAction.php https://gitlab.com/yousafsyed/easternglamor | PHP | 450 lines
                    
1<?php
                    
2/**
                    
101    {
                    
102        if (is_string($storeId)) {
                    
103            $storeId = intval($storeId);
                    
174     * @return array
                    
175     * @SuppressWarnings(PHPMD.CyclomaticComplexity)
                    
176     */
                    
                
toolset.settings.class.php https://gitlab.com/Fraternal-Group/fraternal | PHP | 468 lines
                    
1<?php
                    
2
                    
214	/**
                    
215	* PHP dynamic setter.
                    
216	*
                    
224	/**
                    
225	* PHP dynamic setter.
                    
226	*
                    
235	/**
                    
236	* PHP dynamic fields unset() method support
                    
237	* @param string $key
                    
245	/**
                    
246	* PHP dynamic support for isset($this->name)
                    
247	* @param string $key
                    
328		} else if ( 
                    
329			is_string( $param1 ) 
                    
330			|| is_integer( $param1 ) 
                    
                
FreeBusyGenerator.php https://gitlab.com/wuhang2003/rainloop-webmail | PHP | 322 lines
                    
1<?php
                    
2
                    
110
                    
111            if (is_string($object)) {
                    
112                $this->objects[] = Reader::read($object);
                    
                
File.php https://gitlab.com/devtoannh/cafe | PHP | 468 lines
                    
25 */
                    
26require_once 'Zend/CodeGenerator/Php/Abstract.php';
                    
27
                    
30 */
                    
31require_once 'Zend/CodeGenerator/Php/Class.php';
                    
32
                    
38 */
                    
39class Zend_CodeGenerator_Php_File extends Zend_CodeGenerator_Php_Abstract
                    
40{
                    
86        if ($fileName == '') {
                    
87            require_once 'Zend/CodeGenerator/Php/Exception.php';
                    
88            throw new Zend_CodeGenerator_Php_Exception('FileName does not exist.');
                    
113            if ( ($realpath = Zend_Reflection_file::findRealpathInIncludePath($filePath)) === false) {
                    
114                require_once 'Zend/CodeGenerator/Php/Exception.php';
                    
115                throw new Zend_CodeGenerator_Php_Exception('No file for ' . $realpath . ' was found.');
                    
                
internal-link-aliases.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 374 lines
                    
1<?php
                    
2
                    
34		if (suwp::permalink_mode() != SUWP_PRETTY_PERMALINKS)
                    
35			$this->print_message('error', sprintf(__('Link Mask Generator won&#8217;t work with default or &#8220;pathinfo&#8221; permalinks. Please change your <a href="%s">permalink structure</a> to enable this module&#8217;s functionality.', 'seo-ultimate'), 'options-permalink.php'));
                    
36		
                    
111			
                    
112			if (!is_string($id)) $id = uniqid($i, true);
                    
113			
                    
                
DataObject.php https://gitlab.com/crazybutterfly815/magento2 | PHP | 541 lines
                    
1<?php
                    
2/**
                    
11 * @author      Magento Core Team <core@magentocommerce.com>
                    
12 * @SuppressWarnings(PHPMD.NumberOfChildren)
                    
13 */
                    
495     * @return void
                    
496     * @link http://www.php.net/manual/en/arrayaccess.offsetset.php
                    
497     */
                    
507     * @return bool
                    
508     * @link http://www.php.net/manual/en/arrayaccess.offsetexists.php
                    
509     */
                    
519     * @return void
                    
520     * @link http://www.php.net/manual/en/arrayaccess.offsetunset.php
                    
521     */
                    
531     * @return mixed
                    
532     * @link http://www.php.net/manual/en/arrayaccess.offsetget.php
                    
533     */
                    
                
Dbp.php https://bitbucket.org/kdms/sh-magento.git | PHP | 394 lines
                    
1<?php
                    
2/**
                    
164                $parentNode = null;
                    
165            } else if (is_string($parentNode)) {
                    
166                $parentPath = $parentNode;
                    
                
Publisher.php https://bitbucket.org/Ebozavrik/test-application.git | PHP | 446 lines
                    
1<?php
                    
2/**
                    
18 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version    $Id: Publisher.php 24593 2012-01-05 20:35:02Z matthew $
                    
20 */
                    
24 */
                    
25require_once 'Zend/Feed/Pubsubhubbub.php';
                    
26
                    
94        } elseif (!is_array($config)) {
                    
95            require_once 'Zend/Feed/Pubsubhubbub/Exception.php';
                    
96            throw new Zend_Feed_Pubsubhubbub_Exception( 'Array or Zend_Config object'
                    
120    {
                    
121        if (empty( $url ) || !is_string($url) || !Zend_Uri::check($url)) {
                    
122            require_once 'Zend/Feed/Pubsubhubbub/Exception.php';
                    
186    {
                    
187        if (empty( $url ) || !is_string($url) || !Zend_Uri::check($url)) {
                    
188            require_once 'Zend/Feed/Pubsubhubbub/Exception.php';
                    
                
Logical.php https://bitbucket.org/kudutest1/moodlegit.git | PHP | 288 lines
                    
22 * @package		PHPExcel_Calculation
                    
23 * @copyright	Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
24 * @license		http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt	LGPL
                    
34	define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../../');
                    
35	require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php');
                    
36}
                    
43 * @package		PHPExcel_Calculation
                    
44 * @copyright	Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
45 */
                    
122				} else {
                    
123					return PHPExcel_Calculation_Functions::VALUE();
                    
124				}
                    
284
                    
285		return self::STATEMENT_IF(PHPExcel_Calculation_Functions::IS_ERROR($testValue), $errorpart, $testValue);
                    
286	}	//	function IFERROR()
                    
                
sfYamlInline.php https://github.com/Fil/textwheel.git | PHP | 421 lines
                    
1<?php
                    
2
                    
16 * @author     Fabien Potencier <fabien.potencier@symfony-project.com>
                    
17 * @version    SVN: $Id: sfYamlInline.class.php 16177 2009-03-11 08:32:48Z fabien $
                    
18 */
                    
21  /**
                    
22   * Convert a YAML string to a PHP array.
                    
23   *
                    
25   *
                    
26   * @return array A PHP array representing the YAML string
                    
27   */
                    
48  /**
                    
49   * Dumps a given PHP variable to a YAML string.
                    
50   *
                    
50   *
                    
51   * @param mixed $value The PHP variable to convert
                    
52   *
                    
                
Xml.php https://bitbucket.org/code_noodle/cakephp.git | PHP | 370 lines
                    
1<?php
                    
2/**
                    
6 *
                    
7 * PHP 5
                    
8 *
                    
8 *
                    
9 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
10 * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
15 * @copyright     Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
16 * @link          http://cakephp.org CakePHP(tm) Project
                    
17 * @package       Cake.Utility
                    
17 * @package       Cake.Utility
                    
18 * @since         CakePHP v .0.10.3.1400
                    
19 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
                    
233							// http://www.w3.org/TR/REC-xml/#syntax
                    
234							// https://bugs.php.net/bug.php?id=36795
                    
235							$child = $dom->createElement($key, '');
                    
                
HeadStyle.php https://github.com/sidealice/zf2.git | PHP | 426 lines
                    
1<?php
                    
2/**
                    
84     *
                    
85     * Set separator to PHP_EOL.
                    
86     *
                    
91        parent::__construct();
                    
92        $this->setSeparator(PHP_EOL);
                    
93    }
                    
106    {
                    
107        if ((null !== $content) && is_string($content)) {
                    
108            switch (strtoupper($placement)) {
                    
357
                    
358        $escapeStart = $indent . '<!--'. PHP_EOL;
                    
359        $escapeEnd = $indent . '-->'. PHP_EOL;
                    
361            && !empty($item->attributes['conditional'])
                    
362            && is_string($item->attributes['conditional'])
                    
363        ) {
                    
                
Data.php https://github.com/mfairchild365/zf2.git | PHP | 520 lines
                    
1<?php
                    
2/**
                    
227            $this->_identifier = null;
                    
228        } elseif (is_string($identifier)) {
                    
229            $this->_identifier = $identifier;
                    
284    {
                    
285        if (is_string($spec) && (null !== $value)) {
                    
286            $this->_metadata[$spec] = $value;
                    
359    {
                    
360        if (!is_string($json)) {
                    
361            throw new Exception\InvalidArgumentException('fromJson() expects JSON input');
                    
                
bcmath.c https://bitbucket.org/luobailiang/php-src.git | C | 579 lines
                    
2   +----------------------------------------------------------------------+
                    
3   | PHP Version 5                                                        |
                    
4   +----------------------------------------------------------------------+
                    
4   +----------------------------------------------------------------------+
                    
5   | Copyright (c) 1997-2012 The PHP Group                                |
                    
6   +----------------------------------------------------------------------+
                    
6   +----------------------------------------------------------------------+
                    
7   | This source file is subject to version 3.01 of the PHP license,      |
                    
8   | that is bundled with this package in the file LICENSE, and is        |
                    
9   | available through the world-wide-web at the following url:           |
                    
10   | http://www.php.net/license/3_01.txt                                  |
                    
11   | If you did not receive a copy of the PHP license and are unable to   |
                    
134PHP_INI_BEGIN()
                    
135	STD_PHP_INI_ENTRY("bcmath.scale", "0", PHP_INI_ALL, OnUpdateLongGEZero, bc_precision, zend_bcmath_globals, bcmath_globals)
                    
136PHP_INI_END()
                    
                
Resource.php https://github.com/rakesh-sankar/PHP-Framework-Benchmark.git | PHP | 467 lines
                    
1<?php
                    
2/**
                    
18 * @copyright  Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
                    
19 * @version    $Id: Resource.php 23567 2010-12-20 08:12:16Z mjh_ca $
                    
20 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
23/** Zend_Loader_Autoloader_Interface */
                    
24require_once 'Zend/Loader/Autoloader/Interface.php';
                    
25
                    
73        if (!is_array($options)) {
                    
74            require_once 'Zend/Loader/Exception.php';
                    
75            throw new Zend_Loader_Exception('Options must be passed to resource loader constructor');
                    
83        ) {
                    
84            require_once 'Zend/Loader/Exception.php';
                    
85            throw new Zend_Loader_Exception('Resource loader requires both a namespace and a base path for initialization');
                    
90        }
                    
91        require_once 'Zend/Loader/Autoloader.php';
                    
92        Zend_Loader_Autoloader::getInstance()->unshiftAutoloader($this, $namespace);
                    
                
Clover.php https://gitlab.com/Pasantias/pasantiasASLG | PHP | 284 lines
                    
1<?php
                    
2/*
                    
2/*
                    
3 * This file is part of the PHP_CodeCoverage package.
                    
4 *
                    
4 *
                    
5 * (c) Sebastian Bergmann <sebastian@phpunit.de>
                    
6 *
                    
11/**
                    
12 * Generates a Clover XML logfile from an PHP_CodeCoverage object.
                    
13 *
                    
15 */
                    
16class PHP_CodeCoverage_Report_Clover
                    
17{
                    
18    /**
                    
19     * @param  PHP_CodeCoverage $coverage
                    
20     * @param  string           $target
                    
                
Headers.php https://gitlab.com/yousafsyed/easternglamor | PHP | 472 lines
                    
1<?php
                    
2/**
                    
153            if (is_int($name)) {
                    
154                if (is_string($value)) {
                    
155                    $this->addHeaderLine($value);
                    
162                }
                    
163            } elseif (is_string($name)) {
                    
164                $this->addHeaderLine($name, $value);
                    
                
tiki-export_tracker.php https://gitlab.com/ElvisAns/tiki | PHP | 301 lines
                    
1<?php
                    
2
                    
14
                    
15require_once('tiki-setup.php');
                    
16$access->check_feature('feature_trackers');
                    
41if (! empty($_REQUEST['listfields'])) {
                    
42    if (is_string($_REQUEST['listfields'])) {
                    
43        $filters['fieldId'] = preg_split('/[,:]/', $_REQUEST['listfields']);
                    
                
Finding.php https://bitbucket.org/haichau59/manga.git | PHP | 421 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Finding.php 22824 2010-08-09 18:59:54Z renanbr $
                    
21 */
                    
25 */
                    
26//require_once 'Zend/Service/Ebay/Abstract.php';
                    
27
                    
79        // prepare options
                    
80        if (is_string($options)) {
                    
81            // application id was given
                    
89                 */
                    
90                //require_once 'Zend/Service/Ebay/Finding/Exception.php';
                    
91                throw new Zend_Service_Ebay_Finding_Exception(
                    
109             */
                    
110            //require_once 'Zend/Service/Ebay/Finding/Exception.php';
                    
111            throw new Zend_Service_Ebay_Finding_Exception(
                    
                
Eparcel.php https://bitbucket.org/dnejedly/eaparts.git | PHP | 354 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
                    
22 * @copyright  Copyright (c) 2008 Fontis Pty. Ltd. (http://www.fontis.com.au)
                    
23 * @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
24 */
                    
176		}
                    
177		elseif (is_string($result) && !empty($result)) {
                    
178			return $result;
                    
                
Cloud.php https://gitlab.com/rsilveira1987/Expresso | PHP | 410 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Cloud.php 10020 2009-08-18 14:34:09Z j.fischer@metaways.de $
                    
21 */
                    
25 */
                    
26require_once 'Zend/Tag/Item.php';
                    
27
                    
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());
                    
                
Dispatcher.php https://gitlab.com/kimting254/wbms | PHP | 486 lines
                    
1<?php namespace Illuminate\Events;
                    
2
                    
147	{
                    
148		if (is_string($subscriber))
                    
149		{
                    
309	{
                    
310		return is_string($listener) ? $this->createClassListener($listener) : $listener;
                    
311	}
                    
                
Logical.php https://gitlab.com/ptisky/API_prestashop | PHP | 288 lines
                    
22 * @package		PHPExcel_Calculation
                    
23 * @copyright	Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
24 * @license		http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt	LGPL
                    
34	define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../../');
                    
35	require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php');
                    
36}
                    
43 * @package		PHPExcel_Calculation
                    
44 * @copyright	Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
45 */
                    
122				} else {
                    
123					return PHPExcel_Calculation_Functions::VALUE();
                    
124				}
                    
284
                    
285		return self::STATEMENT_IF(PHPExcel_Calculation_Functions::IS_ERROR($testValue), $errorpart, $testValue);
                    
286	}	//	function IFERROR()
                    
                
dumper.php https://github.com/idler/limb.git | PHP | 360 lines
                    
1<?php
                    
2/**
                    
5 *  @subpackage UnitTester
                    
6 *  @version    $Id: dumper.php 7198 2008-11-01 11:57:17Z korchasa $
                    
7 */
                    
57            return "Boolean";
                    
58        } elseif (is_string($value)) {
                    
59            return "String";
                    
                
Pdosqlite.php https://github.com/yamamoto123/Ushahidi_Web.git | PHP | 473 lines
                    
1<?php defined('SYSPATH') OR die('No direct access allowed.');
                    
2/*
                    
370		{
                    
371			$this->return_type = (is_string($type) AND Kohana::auto_load($type)) ? $type : 'stdClass';
                    
372		}
                    
389
                    
390		if (is_string($object))
                    
391		{
                    
401				// autoloading is disabled to save a lot of stupid overhead.
                    
402				$type = (is_string($type) AND Kohana::auto_load($type)) ? $type : 'stdClass';
                    
403			}
                    
415			{
                    
416				$type = (is_string($type) AND Kohana::auto_load($type)) ? $type : 'stdClass';
                    
417			}
                    
                
utilities.class.php https://bitbucket.org/cesarmedrano/cesarmedrano.git | PHP | 399 lines
                    
1<?php
                    
2/*
                    
26 * @copyright See the included NOTICE.md file for more information.
                    
27 * @link http://aws.amazon.com/php/ PHP Developer Center
                    
28 */
                    
77	{
                    
78		if (is_string($class))
                    
79		{
                    
195	 * @author Ryan Parman <ryan@getcloudfusion.com>
                    
196	 * @license http://www.php.net/license/3_01.txt PHP License
                    
197	 * @param integer $size (Required) Filesize in bytes.
                    
334	 *
                    
335	 * @license http://us.php.net/manual/en/function.base64-decode.php#81425 PHP License
                    
336	 * @param string $s (Required) The string to test.
                    
380	 *
                    
381	 * @author Alix Axel <http://www.php.net/manual/en/function.com-create-guid.php#99425>
                    
382	 * @license http://www.php.net/license/3_01.txt PHP License
                    
                
TemperatureTest.php https://bitbucket.org/Dal-Papa/is-340-publish-base.git | PHP | 447 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: TemperatureTest.php 24593 2012-01-05 20:35:02Z matthew $
                    
21 */
                    
22
                    
23if (!defined('PHPUnit_MAIN_METHOD')) {
                    
24    define('PHPUnit_MAIN_METHOD', 'Zend_Measure_TemperatureTest::main');
                    
29 */
                    
30require_once 'Zend/Measure/Temperature.php';
                    
31
                    
34 */
                    
35require_once 'Zend/Registry.php';
                    
36
                    
44 */
                    
45class Zend_Measure_TemperatureTest extends PHPUnit_Framework_TestCase
                    
46{
                    
                
hidefl.c https://bitbucket.org/lingfeng_xiang/php-ext-hidefl.git | C | 386 lines
                    
39PHP_INI_BEGIN()
                    
40    STD_PHP_INI_ENTRY("hidefl.data_path", (char*)NULL, PHP_INI_SYSTEM,
                    
41                      OnUpdateString, data_path, zend_hidefl_globals,
                    
42                      hidefl_globals)
                    
43    STD_PHP_INI_ENTRY("hidefl.data_extension", (char*)NULL, PHP_INI_SYSTEM,
                    
44                      OnUpdateString, data_extension, zend_hidefl_globals,
                    
45                      hidefl_globals)
                    
46    STD_PHP_INI_BOOLEAN("hidefl.load_unserialize", "1", PHP_INI_SYSTEM,
                    
47                        OnUpdateBool, load_unserialize,  zend_hidefl_globals,
                    
71    PHP_VAR_SERIALIZE_INIT(var_hash);
                    
72    php_var_serialize(retval, struc, &var_hash TSRMLS_CC);
                    
73    PHP_VAR_SERIALIZE_DESTROY(var_hash);
                    
81{
                    
82    php_unserialize_data_t var_hash;
                    
83
                    
                
couchAdmin.php https://github.com/rwaldron/PHP-on-Couch.git | PHP | 534 lines
                    
1<?PHP
                    
2
                    
216	public function addRoleToUser ($user,$role) {
                    
217		if ( is_string($user) ) {
                    
218			$user = $this->getUser($user);
                    
238	public function removeRoleFromUser ($user,$role) {
                    
239		if ( is_string($user) ) {
                    
240			$user = $this->getUser($user);
                    
                
Proxy.php https://bitbucket.org/Dal-Papa/is-340-publish-base.git | PHP | 339 lines
                    
1<?php
                    
2
                    
18 * @subpackage Client_Adapter
                    
19 * @version    $Id: Proxy.php 25261 2013-02-14 12:31:01Z frosch $
                    
20 * @copyright  Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
                    
26 */
                    
27require_once 'Zend/Uri/Http.php';
                    
28/**
                    
30 */
                    
31require_once 'Zend/Http/Client.php';
                    
32/**
                    
34 */
                    
35require_once 'Zend/Http/Client/Adapter/Socket.php';
                    
36
                    
135        if (!$this->socket) {
                    
136            require_once 'Zend/Http/Client/Adapter/Exception.php';
                    
137            throw new Zend_Http_Client_Adapter_Exception(
                    
                
Logical.php https://gitlab.com/Zinnurain/destination_finder_beta | PHP | 288 lines
                    
22 * @package		PHPExcel_Calculation
                    
23 * @copyright	Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
24 * @license		http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt	LGPL
                    
34	define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../../');
                    
35	require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php');
                    
36}
                    
43 * @package		PHPExcel_Calculation
                    
44 * @copyright	Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
45 */
                    
122				} else {
                    
123					return PHPExcel_Calculation_Functions::VALUE();
                    
124				}
                    
284
                    
285		return self::STATEMENT_IF(PHPExcel_Calculation_Functions::IS_ERROR($testValue), $errorpart, $testValue);
                    
286	}	//	function IFERROR()
                    
                
File.php https://github.com/grandison/budo16.git | PHP | 465 lines
                    
25 */
                    
26// require_once 'Zend/CodeGenerator/Php/Abstract.php';
                    
27
                    
30 */
                    
31// require_once 'Zend/CodeGenerator/Php/Class.php';
                    
32
                    
38 */
                    
39class Zend_CodeGenerator_Php_File extends Zend_CodeGenerator_Php_Abstract
                    
40{
                    
86        if ($fileName == '') {
                    
87            // require_once 'Zend/CodeGenerator/Php/Exception.php';
                    
88            throw new Zend_CodeGenerator_Php_Exception('FileName does not exist.');
                    
113            if ( ($realpath = Zend_Reflection_file::findRealpathInIncludePath($filePath)) === false) {
                    
114                // require_once 'Zend/CodeGenerator/Php/Exception.php';
                    
115                throw new Zend_CodeGenerator_Php_Exception('No file for ' . $realpath . ' was found.');
                    
                
lexer.php https://github.com/nadavkav/Moodle-RTL--Shenkar-Translation-Team-.git | PHP | 393 lines
                    
1<?php  // $Id: lexer.php,v 1.1 2005/01/31 07:39:03 moodler Exp $
                    
2
                    
2
                    
3/* PHP lexer code snarfed from the CVS tree for the lamplib project at 
                    
4 * http://sourceforge.net/projects/lamplib
                    
165     *    Some optimisation to make the sure the
                    
166     *    content is only scanned by the PHP regex
                    
167     *    parser once. Lexer modes must not start
                    
336            }
                    
337            if (is_string($mode)) {
                    
338                $this->_mode->enter($mode);
                    
                
DynamicRouter.php https://gitlab.com/guillaumev/alkarama | PHP | 387 lines
                    
1<?php
                    
2
                    
193
                    
194        return is_string($name);
                    
195    }
                    
                
Akismet.php https://gitlab.com/yousafsyed/easternglamor | PHP | 387 lines
                    
1<?php
                    
2/**
                    
26 */
                    
27#require_once 'Zend/Version.php';
                    
28
                    
31 */
                    
32#require_once 'Zend/Service/Abstract.php';
                    
33
                    
109    {
                    
110        #require_once 'Zend/Uri.php';
                    
111        if (!Zend_Uri::check($blogUrl)) {
                    
111        if (!Zend_Uri::check($blogUrl)) {
                    
112            #require_once 'Zend/Service/Exception.php';
                    
113            throw new Zend_Service_Exception('Invalid url provided for blog');
                    
183        if (!is_int($port)) {
                    
184            #require_once 'Zend/Service/Exception.php';
                    
185            throw new Zend_Service_Exception('Invalid port');
                    
                
HTMLModuleManager.php https://github.com/squidjam/friendika.git | PHP | 403 lines
                    
1<?php
                    
2
                    
145    public function registerModule($module, $overload = false) {
                    
146        if (is_string($module)) {
                    
147            // attempt to load the module
                    
374            // descendants_are_inline, for ChildDef_Chameleon
                    
375            if (is_string($def->content_model) &&
                    
376                strpos($def->content_model, 'Inline') !== false) {
                    
                
Cloud.php https://github.com/grandison/budo16.git | PHP | 410 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Cloud.php 16209 2009-06-21 19:20:34Z thomas $
                    
21 */
                    
25 */
                    
26// require_once 'Zend/Tag/Item.php';
                    
27
                    
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());
                    
                
route.php https://github.com/ymtn/core.git | PHP | 589 lines
                    
1<?php defined('SYSPATH') or die('No direct script access.');
                    
2/**
                    
218	{
                    
219		if ( ! is_string($uri))
                    
220			return;
                    
288	 * The $uri parameter can either be a string for basic regex matching or it
                    
289	 * can be a valid callback or anonymous function (php 5.3+). If you use a
                    
290	 * callback or anonymous function, your method should return an array
                    
319
                    
320		if ( ! is_string($uri) AND is_callable($uri))
                    
321		{
                    
                
blti.php https://github.com/pauln/moodle.git | PHP | 277 lines
                    
1<?php
                    
2
                    
2
                    
3require_once($CFG->dirroot . '/enrol/lti/ims-blti/OAuth.php');
                    
4require_once($CFG->dirroot . '/enrol/lti/ims-blti/TrivialOAuthDataStore.php');
                    
64        $row = false;
                    
65        if ( is_string($parm) ) {
                    
66            $secret = $parm;
                    
188        $grav_url = $_SERVER['HTTPS'] ? 'https://' : 'http://';
                    
189        $grav_url = $grav_url . "www.gravatar.com/avatar.php?gravatar_id=".md5( strtolower($email) )."&size=".$size;
                    
190        return $grav_url;
                    
231            $host = $_SERVER['HTTP_HOST'];
                    
232            $uri = $_SERVER['PHP_SELF'];
                    
233            $location = $_SERVER['HTTPS'] ? 'https://' : 'http://';
                    
                
Statement.php https://github.com/kervin/kyzstudio.git | PHP | 485 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Statement.php 20096 2010-01-06 02:05:09Z bkarwin $
                    
21 */
                    
25 */
                    
26#require_once 'Zend/Db.php';
                    
27
                    
30 */
                    
31#require_once 'Zend/Db/Statement/Interface.php';
                    
32
                    
150                     */
                    
151                    #require_once 'Zend/Db/Statement/Exception.php';
                    
152                    throw new Zend_Db_Statement_Exception("Invalid bind-variable position '$val'");
                    
158                     */
                    
159                    #require_once 'Zend/Db/Statement/Exception.php';
                    
160                    throw new Zend_Db_Statement_Exception("Invalid bind-variable name '$val'");
                    
                
registry.php https://github.com/dg482/joomla-platform.git | PHP | 629 lines
                    
1<?php
                    
2/**
                    
11
                    
12JLoader::register('JRegistryFormat', dirname(__FILE__) . '/format.php');
                    
13
                    
49		}
                    
50		elseif (!empty($data) && is_string($data))
                    
51		{
                    
                
admin.php https://github.com/marcoscoelho/pyrocms.git | PHP | 445 lines
                    
1<?php defined('BASEPATH') OR exit('No direct script access allowed');
                    
2/**
                    
218					
                    
219					// TODO: Work out a better security plan, adding .php back for now (2.0)
                    
220					$this->unzip->allow(array('php', 'xml', 'html', 'css', 'js', 'png', 'gif', 'jpeg', 'jpg', 'swf', 'ico', 'txt', 'eot', 'svg', 'ttf', 'woff'));
                    
331
                    
332			if (is_string($option->options))
                    
333			{
                    
381				$form_control = '';
                    
382				$stored_values = is_string($option->value) ? explode(',', $option->value) : $option->value;
                    
383
                    
                
CssSelector.php https://github.com/outlawscumbag/symfony.git | PHP | 313 lines
                    
1<?php
                    
2
                    
46    {
                    
47        if (is_string($cssExpr)) {
                    
48            if (preg_match('#^\w+\s*$#u', $cssExpr, $match)) {
                    
                
adodb-oracle.inc.php https://bitbucket.org/kudutest1/moodlegit.git | PHP | 342 lines
                    
1<?php
                    
2/*
                    
36	{
                    
37		if (is_string($d)) $d = ADORecordSet::UnixDate($d);
                    
38		if (is_object($d)) $ds = $d->format($this->fmtDate);
                    
46
                    
47		if (is_string($ts)) $ts = ADORecordSet::UnixTimeStamp($ts);
                    
48		if (is_object($ts)) $ds = $ts->format($this->fmtDate);
                    
                
jpgraph_text.inc.php https://github.com/nephie/AZL-website.git | PHP | 302 lines
                    
1<?php
                    
2//=======================================================================
                    
2//=======================================================================
                    
3// File:        JPGRAPH_TEXT.INC.PHP
                    
4// Description: Class to handle text as object in the graph.
                    
6// Created:     2001-01-08 (Refactored to separate file 2008-08-01)
                    
7// Ver:         $Id: jpgraph_text.inc.php 1844 2009-09-26 17:05:31Z ljp $
                    
8//
                    
35    function __construct($aTxt="",$aXAbsPos=0,$aYAbsPos=0) {
                    
36        if( ! is_string($aTxt) ) {
                    
37            JpGraphError::RaiseL(25050);//('First argument to Text::Text() must be s atring.');
                    
                
TraitUsageGenerator.php https://gitlab.com/yousafsyed/easternglamor | PHP | 353 lines
                    
1<?php
                    
2/**
                    
163        }
                    
164        if (! is_string($alias)) {
                    
165            throw new Exception\InvalidArgumentException('Invalid Alias: $alias must be a string or array.');
                    
240        foreach ($traitsToReplace as $traitToReplace) {
                    
241            if (! is_string($traitToReplace)) {
                    
242                throw new Exception\InvalidArgumentException(
                    
                
HttpHeaders.php https://github.com/sidealice/zf2.git | PHP | 332 lines
                    
1<?php
                    
2/**
                    
88        if ($class !== null) {
                    
89            if (!is_string($class)) {
                    
90                throw new Exception\InvalidArgumentException('Third argument is not a class string');
                    
227     * The channel is ready as long as the request and response objects are initialized,
                    
228     * can send headers and the FirePHP header exists in the User-Agent.
                    
229     *
                    
269                && (preg_match_all(
                    
270                        '/\s?FirePHP\/([\.\d]*)\s?/si',
                    
271                        $this->getRequest()->getHeader('User-Agent'),
                    
273                    ) ||
                    
274                    (($header = $this->getRequest()->getHeader('X-FirePHP-Version'))
                    
275                     && preg_match_all('/^([\.\d]*)$/si', $header, $m)
                    
                
Repository.php https://github.com/mfairchild365/zf2.git | PHP | 319 lines
                    
1<?php
                    
2/**
                    
110                // if provider is a string, try and load it as an object
                    
111                if (is_string($provider)) {
                    
112                    $provider = new $provider();
                    
135            foreach ($actions as $action) {
                    
136                if (is_string($action)) {
                    
137                    $action = new \Zend\Tool\Framework\Action\Base($action);
                    
287        foreach ($metadatasByType as $type => $metadatas) {
                    
288            $string .= $type . PHP_EOL;
                    
289            foreach ($metadatas as $metadata) {
                    
290                $metadataString = '    ' . $metadata->__toString() . PHP_EOL;
                    
291                //$metadataString = str_replace(PHP_EOL, PHP_EOL . '    ', $metadataString);
                    
292                $string .= $metadataString;
                    
                
class-wp-customize-setting.php https://gitlab.com/Gashler/dp | PHP | 439 lines
                    
1<?php
                    
2/**
                    
249
                    
250		if ( is_string( $value ) )
                    
251			return html_entity_decode( $value, ENT_QUOTES, 'UTF-8');
                    
                
_utilities.class.php https://github.com/tinypay/KO3-Fusion.git | PHP | 475 lines
                    
1<?php
                    
2/**
                    
85 	 * Examples:
                    
86 	 * 	example::utilities/to_query_string.phpt:
                    
87	 */
                    
106 	 * Examples:
                    
107 	 * 	example::utilities/to_signable_string.phpt:
                    
108	 */
                    
153 	 * Examples:
                    
154 	 * 	example::utilities/query_to_array.phpt:
                    
155 	 * 	example::utilities/query_to_array2.phpt:
                    
321	 * Method: json_encode()
                    
322	 * 	Replicates json_encode() for versions of PHP 5 earlier than 5.2.
                    
323	 *
                    
354	 * Author:
                    
355	 * 	http://us2.php.net/manual/en/function.json-encode.php#82904
                    
356	 *
                    
                
Cloud.php https://bitbucket.org/Ebozavrik/test-application.git | PHP | 427 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Cloud.php 24593 2012-01-05 20:35:02Z matthew $
                    
21 */
                    
25 */
                    
26require_once 'Zend/Tag/Item.php';
                    
27
                    
155            } else {
                    
156                require_once 'Zend/Tag/Cloud/Exception.php';
                    
157                throw new Zend_Tag_Cloud_Exception( 'Tag must be an instance of Zend_Tag_Taggable or an array' );
                    
178        } else {
                    
179            require_once 'Zend/Tag/Cloud/Exception.php';
                    
180            throw new Zend_Tag_Cloud_Exception( 'Tag must be an instance of Zend_Tag_Taggable or an array' );
                    
209        if (null === $this->_tags) {
                    
210            require_once 'Zend/Tag/ItemList.php';
                    
211            $this->setItemList(new Zend_Tag_ItemList());
                    
                
MimeType.php https://gitlab.com/Ltaimao/wecenter | PHP | 476 lines
                    
1<?php
                    
2/**
                    
24 */
                    
25//require_once 'Zend/Validate/Abstract.php';
                    
26
                    
135            $mimetype = $mimetype->toArray();
                    
136        } elseif (is_string($mimetype)) {
                    
137            $mimetype = explode(',', $mimetype);
                    
138        } elseif (!is_array($mimetype)) {
                    
139            //require_once 'Zend/Validate/Exception.php';
                    
140            throw new Zend_Validate_Exception("Invalid options to validator provided");
                    
158     *
                    
159     * Note that for PHP 5.3.0 or higher, we don't use $_ENV['MAGIC'] or try to
                    
160     * find a magic file in a common location as PHP now has a built-in internal
                    
166    {
                    
167        if (version_compare(PHP_VERSION, '5.3.0', '<')
                    
168            && null === $this->_magicfile) {
                    
                
CookieJar.php https://gitlab.com/Ltaimao/wecenter | PHP | 428 lines
                    
1<?php
                    
2/**
                    
25 */
                    
26require_once "Zend/Uri.php";
                    
27/**
                    
29 */
                    
30require_once "Zend/Http/Cookie.php";
                    
31/**
                    
33 */
                    
34require_once "Zend/Http/Response.php";
                    
35
                    
129    {
                    
130        if (is_string($cookie)) {
                    
131            $cookie = Zend_Http_Cookie::fromString($cookie, $ref_uri, $encodeValue);
                    
141        } else {
                    
142            //require_once 'Zend/Http/Exception.php';
                    
143            throw new Zend_Http_Exception('Supplient argument is not a valid cookie string or object');
                    
                
Pdosqlite.php https://github.com/AlinT/socorro.git | PHP | 470 lines
                    
1<?php defined('SYSPATH') or die('No direct script access.');
                    
2/*
                    
367		{
                    
368			$this->return_type = (is_string($type) AND Kohana::auto_load($type)) ? $type : 'stdClass';
                    
369		}
                    
386
                    
387		if (is_string($object))
                    
388		{
                    
398				// autoloading is disabled to save a lot of stupid overhead.
                    
399				$type = (is_string($type) AND Kohana::auto_load($type)) ? $type : 'stdClass';
                    
400			}
                    
412			{
                    
413				$type = (is_string($type) AND Kohana::auto_load($type)) ? $type : 'stdClass';
                    
414			}
                    
                
file_helper.php https://gitlab.com/lisit1003/TTPHPServer | PHP | 479 lines
                    
1<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2/**
                    
4 *
                    
5 * An open source application development framework for PHP 5.1.6 or newer
                    
6 *
                    
240
                    
241			// foreach (scandir($source_dir, 1) as $file) // In addition to being PHP5+, scandir() is simply not as fast
                    
242			while (FALSE !== ($file = readdir($fp)))
                    
288
                    
289		if (is_string($returned_values))
                    
290		{
                    
334 *
                    
335 * Translates a file extension into a mime type based on config/mimes.php.
                    
336 * Returns FALSE if it can't determine the type, or open the mime config file
                    
354		{
                    
355			if (defined('ENVIRONMENT') AND is_file(APPPATH.'config/'.ENVIRONMENT.'/mimes.php'))
                    
356			{
                    
                
HookApi.php https://gitlab.com/iamgraeme/royalmile | PHP | 337 lines
                    
1<?php
                    
2namespace WebSharks\HtmlCompressor;
                    
104    {
                    
105        if (is_string($function)) {
                    
106            return $function;
                    
115                return spl_object_hash($function[0]).$function[1];
                    
116            } elseif (is_string($function[0])) {
                    
117                return $function[0].'::'.$function[1];
                    
                
MimeType.php https://gitlab.com/yousafsyed/easternglamor | PHP | 476 lines
                    
1<?php
                    
2/**
                    
24 */
                    
25#require_once 'Zend/Validate/Abstract.php';
                    
26
                    
135            $mimetype = $mimetype->toArray();
                    
136        } elseif (is_string($mimetype)) {
                    
137            $mimetype = explode(',', $mimetype);
                    
138        } elseif (!is_array($mimetype)) {
                    
139            #require_once 'Zend/Validate/Exception.php';
                    
140            throw new Zend_Validate_Exception("Invalid options to validator provided");
                    
158     *
                    
159     * Note that for PHP 5.3.0 or higher, we don't use $_ENV['MAGIC'] or try to
                    
160     * find a magic file in a common location as PHP now has a built-in internal
                    
166    {
                    
167        if (version_compare(PHP_VERSION, '5.3.0', '<')
                    
168            && null === $this->_magicfile) {
                    
                
CookieJar.php https://gitlab.com/yousafsyed/easternglamor | PHP | 428 lines
                    
1<?php
                    
2/**
                    
25 */
                    
26#require_once "Zend/Uri.php";
                    
27/**
                    
29 */
                    
30#require_once "Zend/Http/Cookie.php";
                    
31/**
                    
33 */
                    
34#require_once "Zend/Http/Response.php";
                    
35
                    
129    {
                    
130        if (is_string($cookie)) {
                    
131            $cookie = Zend_Http_Cookie::fromString($cookie, $ref_uri, $encodeValue);
                    
141        } else {
                    
142            #require_once 'Zend/Http/Exception.php';
                    
143            throw new Zend_Http_Exception('Supplient argument is not a valid cookie string or object');
                    
                
UrlGenerator.php https://gitlab.com/reasonat/test8 | PHP | 341 lines
                    
1<?php
                    
2
                    
52     *
                    
53     * PHP's rawurlencode() encodes all chars except "a-zA-Z0-9-._~" according to RFC 3986. But we want to allow some chars
                    
54     * to be used in their literal form (reasons below). Other chars inside the path must of course be encoded, e.g.
                    
145    {
                    
146        if (is_bool($referenceType) || is_string($referenceType)) {
                    
147            @trigger_error('The hardcoded value you are using for the $referenceType argument of the '.__CLASS__.'::generate method is deprecated since version 2.8 and will not be supported anymore in 3.0. Use the constants defined in the UrlGeneratorInterface instead.', E_USER_DEPRECATED);
                    
                
Api.php https://bitbucket.org/dnejedly/eaparts.git | PHP | 327 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) 2012 Magento Inc. (http://www.magentocommerce.com)
                    
24 * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
152        foreach ($data as $key => $value) {
                    
153            if (is_string($value)) {
                    
154                $data[$key] = Mage::helper('catalog')->stripTags($value);
                    
                
Logical.php https://github.com/andrerezende/SIE.git | PHP | 290 lines
                    
22 * @package		PHPExcel_Calculation
                    
23 * @copyright	Copyright (c) 2006 - 2010 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
24 * @license		http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt	LGPL
                    
34	define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../../');
                    
35	require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php');
                    
36}
                    
43 * @package		PHPExcel_Calculation
                    
44 * @copyright	Copyright (c) 2006 - 2010 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
45 */
                    
122				} else {
                    
123					return PHPExcel_Calculation_Functions::VALUE();
                    
124				}
                    
286
                    
287		return self::STATEMENT_IF(PHPExcel_Calculation_Functions::IS_ERROR($testValue), $errorpart, $testValue);
                    
288	}	//	function IFERROR()
                    
                
file_helper.php https://gitlab.com/fredec/ionizecms-1.0.8.x | PHP | 479 lines
                    
1<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2/**
                    
4 *
                    
5 * An open source application development framework for PHP 5.1.6 or newer
                    
6 *
                    
240
                    
241			// foreach (scandir($source_dir, 1) as $file) // In addition to being PHP5+, scandir() is simply not as fast
                    
242			while (FALSE !== ($file = readdir($fp)))
                    
288
                    
289		if (is_string($returned_values))
                    
290		{
                    
334 *
                    
335 * Translates a file extension into a mime type based on config/mimes.php.
                    
336 * Returns FALSE if it can't determine the type, or open the mime config file
                    
477
                    
478/* End of file file_helper.php */
                    
479/* Location: ./system/helpers/file_helper.php */
                    
                
lib.php https://gitlab.com/MotoSport/morgue | PHP | 307 lines
                    
1<?php
                    
2
                    
292                $val = $ticket_info['fields'][$v];
                    
293                if (is_string($val)) {
                    
294                    $ticket[$k] = $val;
                    
                
Logical.php https://github.com/testlinkjp/testlink-japanese-localization.git | PHP | 290 lines
                    
22 * @package		PHPExcel_Calculation
                    
23 * @copyright	Copyright (c) 2006 - 2011 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
24 * @license		http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt	LGPL
                    
34	define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../../');
                    
35	require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php');
                    
36}
                    
43 * @package		PHPExcel_Calculation
                    
44 * @copyright	Copyright (c) 2006 - 2011 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
45 */
                    
122				} else {
                    
123					return PHPExcel_Calculation_Functions::VALUE();
                    
124				}
                    
286
                    
287		return self::STATEMENT_IF(PHPExcel_Calculation_Functions::IS_ERROR($testValue), $errorpart, $testValue);
                    
288	}	//	function IFERROR()
                    
                
DebugBar.php https://gitlab.com/ntphuc/FoodyBackend | PHP | 468 lines
                    
1<?php
                    
2/*
                    
46
                    
47    protected $stackSessionNamespace = 'PHPDEBUGBAR_STACK_DATA';
                    
48
                    
183     *
                    
184     * If no http driver where defined, a PhpHttpDriver is automatically created
                    
185     *
                    
190        if ($this->httpDriver === null) {
                    
191            $this->httpDriver = new PhpHttpDriver();
                    
192        }
                    
219        array_walk_recursive($this->data, function (&$item) {
                    
220                if (is_string($item) && !mb_check_encoding($item, 'UTF-8')) {
                    
221                    $item = mb_convert_encoding($item, 'UTF-8', 'UTF-8');
                    
253     */
                    
254    public function getDataAsHeaders($headerName = 'phpdebugbar', $maxHeaderLength = 4096, $maxTotalHeaderLength = 250000)
                    
255    {
                    
                
Serializer.php https://bitbucket.org/acidel/buykoala.git | PHP | 362 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Serializer.php 21968 2010-04-22 03:53:34Z matthew $
                    
21 */
                    
23/** Zend_Amf_Constants */
                    
24#require_once 'Zend/Amf/Constants.php';
                    
25
                    
26/** @see Zend_Amf_Parse_Serializer */
                    
27#require_once 'Zend/Amf/Parse/Serializer.php';
                    
28
                    
29/**
                    
30 * Serializer PHP misc types back to there corresponding AMF0 Type Marker.
                    
31 *
                    
65    {
                    
66        // Workaround for PHP5 with E_STRICT enabled complaining about "Only 
                    
67        // variables should be passed by reference" 
                    
                
Finding.php https://bitbucket.org/areeves42/openfisma.git | PHP | 421 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Finding.php 22824 2010-08-09 18:59:54Z renanbr $
                    
21 */
                    
25 */
                    
26// require_once 'Zend/Service/Ebay/Abstract.php';
                    
27
                    
79        // prepare options
                    
80        if (is_string($options)) {
                    
81            // application id was given
                    
89                 */
                    
90                // require_once 'Zend/Service/Ebay/Finding/Exception.php';
                    
91                throw new Zend_Service_Ebay_Finding_Exception(
                    
109             */
                    
110            // require_once 'Zend/Service/Ebay/Finding/Exception.php';
                    
111            throw new Zend_Service_Ebay_Finding_Exception(
                    
                
function_forumlist.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 386 lines
                    
1<?php
                    
2
                    
6 *
                    
7 *      $Id: function_forumlist.php 31131 2012-07-18 09:44:21Z liulanbo $
                    
8 */
                    
39		$forum['icon'] = get_forumimg($forum['icon']);
                    
40		$forum['icon'] = '<a href="forum.php?mod=forumdisplay&fid='.$forum['fid'].'"><img src="'.$forum['icon'].'" align="left" alt="" /></a>';
                    
41	}
                    
44
                    
45	$forum['lastpost'] = is_string($forum['lastpost']) ? explode("\t", $forum['lastpost']) : $forum['lastpost'];
                    
46
                    
60		if($lastpost['author']) {
                    
61			$lastpost['author'] = '<a href="home.php?mod=space&username='.rawurlencode($lastpost['author']).'">'.$lastpost['author'].'</a>';
                    
62		}
                    
136				if($fid != $_G['forum']['fid']) {
                    
137					$visitedforums .= '<li><a href="forum.php?mod=forumdisplay&fid='.$fid.'">'.$_G['cache']['forums'][$fid]['name'].'</a></li>';
                    
138					if(++$count >= $_G['setting']['visitedforums']) {
                    
                
TaggableBehavior.php https://github.com/mmonguilod/sfPropel15TaggableBehaviorPlugin.git | PHP | 304 lines
                    
11        'tagging_table' => '%TABLE%_tagging',
                    
12        'tagging_table_phpname' => '%PHPNAME%Tagging',
                    
13        'tag_table' => 'taggable_tag',
                    
39        $tagTableName = $this->getTagTableName();
                    
40        $tagTablePhpName = $this->replaceTokens($this->parameters['tag_table_phpname']);
                    
41
                    
46                'name'      => $tagTableName,
                    
47                'phpName'   => $tagTablePhpName,
                    
48                'package'   => $table->getPackage(),
                    
92                'name'      => $taggingTableName,
                    
93                'phpName'   => $this->replaceTokens($this->parameters['tagging_table_phpname']),
                    
94                'package'   => $table->getPackage(),
                    
298            '%TABLE%'   => $table->getName(),
                    
299            '%PHPNAME%' => $table->getPhpName(),
                    
300        ));
                    
                
 

Source

Language