100+ results for 'php ucfirst'
Not the results you expected?
Filter.php (https://github.com/ftaiolivista/Zend-Framework-Namespaced-.git) PHP · 245 lines
1 <?php
2 /**
3 * Zend Framework
17 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
18 * @license http://framework.zend.com/license/new-bsd New BSD License
19 * @version $Id: Filter.php 21096 2010-02-19 20:10:54Z thomas $
20 */
29 * @see Zend_Filter_Interface
30 */
31 require_once 'Zend/Filter/Interface.php';
33 /**
213 public static function filterStatic($value, $classBaseName, array $args = array(), $namespaces = array())
214 {
215 require_once 'Zend/Loader.php';
216 $namespaces = array_merge((array) $namespaces, self::$_defaultNamespaces, array('Zend_Filter'));
217 foreach ($namespaces as $namespace) {
Definition.php (https://bitbucket.org/mercysam/zfs.git) PHP · 293 lines
1 <?php
2 /**
3 * Zend Framework
84 {
85 foreach ($options as $key => $value) {
86 $method = 'set' . ucfirst($key);
87 if (method_exists($this, $method)) {
88 $this->$method($value);
123 {
124 if (is_array($callback)) {
125 require_once 'Zend/Server/Method/Callback.php';
126 $callback = new Zend_Server_Method_Callback($callback);
127 } elseif (!$callback instanceof Zend_Server_Method_Callback) {
128 require_once 'Zend/Server/Exception.php';
129 throw new Zend_Server_Exception('Invalid method callback provided');
130 }
view_TEst.php (https://gitlab.com/diva-lab/hilton) PHP · 127 lines
1 <?php
2 require_once("../layout/initialize.php");
4 //get all category
6 require_once("../layout/header.php");
7 include("../../assets/texteditor4/head.php");
12 <!--header end-->
13 <!--sidebar start-->
14 <?php require_once("../layout/navigation.php"); ?>
15 <!--sidebar end-->
16 <!--main content start-->
125 <!--main content end-->
126 <!--footer start-->
127 <?php require_once("../layout/footer.php"); ?>
AssetManager.class.php (https://github.com/kilica/playermap.git) PHP · 274 lines
1 <?php
2 /**
3 * @file
77 $instance = null;
79 $methodName = 'create' . ucfirst($name) . ucfirst($mode) . ucfirst($type);
80 if(method_exists($this,$methodName))
81 {
202 private function _getActionFormName(/*** string ***/ $name,/*** bool ***/ $isAdmin = false,/*** string ***/ $mode = null)
203 {
204 $name = ucfirst($name) . ucfirst($mode) . 'Form';
205 $path = 'forms/' . $name . '.class.php';
220 private function _getHandlerName(/*** string ***/ $name)
221 {
222 $path = 'class/handler/' . ucfirst($name) . '.class.php';
223 $className = ucfirst($this->mTrustDirname) . '_' . ucfirst($name) . 'Handler';
text_content.php (https://bitbucket.org/gan_kwok_wei/th-wcms-sandbox.git) PHP · 209 lines
1 <?php if (!defined('BASEPATH')) exit('No direct script access allowed');
2 /**
3 * PHP 5
10 * Redistributions of files must retain the above copyright notice.
11 *
12 * @filesource content_text.php
13 * @copyright Copyright 2011-2012, P.T. Green Lab Group.
14 * @author budi.lx
31 <div id="lang_tabs">
32 <ul>
33 <?php
34 foreach ($this->system_model->get_registered_lang() as $lang_k => $lang_v) {
35 echo '<li><a href="#tabs-' . $lang_k . '">' . ucfirst($lang_v) . '</a></li>';
37 ?>
38 </ul>
39 <?php
40 foreach ($this->system_model->get_registered_lang() as $lang_k => $lang_v) {
41 if($mode != 'add') {
Annotation.php (https://bitbucket.org/cryofrost/portal.git) PHP · 267 lines
1 <?php
3 namespace Gedmo\Tree\Mapping\Driver;
17 * @subpackage Annotation
18 * @link http://www.gediminasm.org
19 * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
20 */
21 class Annotation implements AnnotationDriverInterface
106 throw new InvalidMappingException("Tree does not support composite identifiers in class - {$meta->name}");
107 }
108 $method = 'validate' . ucfirst($config['strategy']) . 'TreeMetadata';
109 $this->$method($meta, $config);
110 } elseif ($config) {
Entry.php (https://bitbucket.org/svenax/zendframework.git) PHP · 242 lines
1 <?php
2 /**
3 * Zend Framework
73 {
74 if (!ctype_alpha($value) && strlen($value) > 0) {
75 require_once 'Zend/Feed/Exception.php';
76 throw new Zend_Feed_Exception('invalid parameter: "block" may only'
77 . ' contain alphabetic characters');
78 }
79 if (iconv_strlen($value, $this->getEncoding()) > 255) {
80 require_once 'Zend/Feed/Exception.php';
81 throw new Zend_Feed_Exception('invalid parameter: "block" may only'
82 . ' contain a maximum of 255 characters');
108 {
109 if (iconv_strlen($value, $this->getEncoding()) > 255) {
110 require_once 'Zend/Feed/Exception.php';
111 throw new Zend_Feed_Exception('invalid parameter: any "author" may only'
112 . ' contain a maximum of 255 characters each');
translation.php (https://github.com/jacomyma/GEXF-Atlas.git) PHP · 196 lines
1 <?php
2 /**
3 * @copyright Copyright (C) 2005-2008 eZ systems as. All rights reserved.
78 if ( ctype_upper( $key[0] ) )
79 {
80 $string = ucfirst( $string );
81 }
82 return $string;
143 if ( ctype_upper( $key[0] ) )
144 {
145 $string = "' . ucfirst(". $params[strtolower( $key )] . ") . '";
146 }
147 else
156 *
157 * This method returns a translated string and substitutes the parameters $param
158 * in the localized string with PHP code to place the variable data into
159 * the string at a later moment. Instead of the values for each of the
160 * parameters, an expression to get to the data should be sumbitted into
Entity.php (https://github.com/jdewit/GeneratorBundle.git) PHP · 445 lines
1 <?php
2 namespace {{ bundleNamespace }}\Entity;
199 * @return {{ field.targetEntity }}
200 */
201 public function get{{ field.fieldName | ucFirst }}()
202 {
203 return $this->{{ field.fieldName }};
209 * @param {{ field.type }} ${{ field.fieldName }}
210 */
211 public function set{{ field.fieldName | ucFirst }}(\{{ field.targetEntity }} ${{ field.fieldName }} = null)
212 {
213 $this->{{ field.fieldName }} = ${{ field.fieldName }};
219 * @return {{ field.targetEntity }}
220 */
221 public function get{{ field.fieldName|ucFirst }}()
222 {
223 return $this->{{ field.fieldName }};
Cloud.php (https://gitlab.com/yousafsyed/easternglamor) PHP · 410 lines
1 <?php
2 /**
3 * Zend Framework
24 * @see Zend_Tag_Item
25 */
26 #require_once 'Zend/Tag/Item.php';
28 /**
119 }
121 $method = 'set' . ucfirst($key);
122 if (method_exists($this, $method)) {
123 $this->$method($value);
151 $itemList[] = new Zend_Tag_Item($tag);
152 } else {
153 #require_once 'Zend/Tag/Cloud/Exception.php';
154 throw new Zend_Tag_Cloud_Exception('Tag must be an instance of Zend_Tag_Taggable or an array');
155 }
Cloud.php (https://bitbucket.org/DragonBe/zfform.git) PHP · 410 lines
1 <?php
2 /**
3 * Zend Framework
24 * @see Zend_Tag_Item
25 */
26 require_once 'Zend/Tag/Item.php';
28 /**
119 }
121 $method = 'set' . ucfirst($key);
122 if (method_exists($this, $method)) {
123 $this->$method($value);
151 $itemList[] = new Zend_Tag_Item($tag);
152 } else {
153 require_once 'Zend/Tag/Cloud/Exception.php';
154 throw new Zend_Tag_Cloud_Exception('Tag must be an instance of Zend_Tag_Taggable or an array');
155 }
Task.php (https://github.com/querl/Tine-2.0-Open-Source-Groupware-and-CRM.git) PHP · 371 lines
category.php (https://gitlab.com/fredec/ionizecms-1.0.8.x) PHP · 113 lines
28 <?php foreach(Settings::get_languages() as $l) :?>
29 <li class="tab_edit_category<?php echo $id_category; ?>" rel="<?php echo $l['lang']; ?>"><a><?php echo ucfirst($l['name']); ?></a></li>
30 <?php endforeach ;?>
48 </dt>
49 <dd>
50 <input id="title_<?php echo $lang; ?>" name="title_<?php echo $lang; ?>" class="inputtext w180" type="text" value="<?php echo $languages[$lang]['title']; ?>"/>
51 </dd>
52 </dl>
58 </dt>
59 <dd>
60 <input id="subtitle_<?php echo $lang; ?><?php echo $id_category; ?>" name="subtitle_<?php echo $lang; ?>" class="inputtext" type="text" value="<?php echo $languages[$lang]['subtitle']; ?>"/>
61 </dd>
62 </dl>
68 </dt>
69 <dd>
70 <textarea id="description_<?php echo $lang; ?><?php echo $id_category; ?>" name="description_<?php echo $lang; ?>" class="tinyCategory w220 h120" rel="<?php echo $lang; ?>"><?php echo $languages[$lang]['description']; ?></textarea>
71 </dd>
72 </dl>
ValidClassNamePass.php (https://gitlab.com/puntodos/ean-landings) PHP · 365 lines
1 <?php
3 /*
12 namespace Psy\CodeCleaner;
14 use PhpParser\Node;
15 use PhpParser\Node\Expr;
16 use PhpParser\Node\Expr\ClassConstFetch;
17 use PhpParser\Node\Expr\New_ as NewExpr;
18 use PhpParser\Node\Expr\StaticCall;
19 use PhpParser\Node\Stmt;
20 use PhpParser\Node\Stmt\Class_ as ClassStmt;
21 use PhpParser\Node\Stmt\Interface_ as InterfaceStmt;
directories_add_view.php (https://gitlab.com/muktobani/web_site) PHP · 101 lines
13 <fieldset>
14 <label>Company Name </label>
15 <?php echo form_input('txt_company_name', set_value('txt_company_name',$data_arr[0]['company_name']));?>
16 </fieldset>
41 <fieldset>
42 <label>Google Map</label>
43 <?php echo form_textarea('txt_google_map', set_value('txt_google_map',$data_arr[0]['google_map']));?>
44 </fieldset>
54 <fieldset>
55 <label>Facebook</label>
56 <?php echo form_input('txt_facebook',set_value('txt_facebook',$data_arr[0]['facebook']));?>
57 </fieldset>
93 <?php echo form_dropdown('cbo_status', $status_arr,set_value('cbo_status',$data_arr[0]['is_active']));?>
94 <input type="submit" value="<?php echo ucfirst($action); ?>" class="alt_btn">
95 <input type="reset" value="Reset">
96 <?php echo form_hidden('update_id',set_value('update_id',$data_arr[0]['directories_id'])) ?>
DataGrid.php (https://github.com/widmogrod/data-grid.git) PHP · 373 lines
addons.php (https://github.com/mondomon916/LYBC.git) PHP · 162 lines
1 <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
2 /**
3 * ExpressionEngine - by EllisLab
150 $vars['form_action'] = 'C=addons'.AMP.'M=package_settings'.AMP.'package='.$package.AMP.'return='.$return;
151 $vars['package'] = ucfirst(str_replace('_', ' ', $package));
152 $vars['components'] = $components;
159 // END CLASS
161 /* End of file addons.php */
162 /* Location: ./system/expressionengine/controllers/cp/addons.php */
Auth.php (https://bitbucket.org/rybadour/todo_list_site.git) PHP · 171 lines
TestApplicationControllerFile.php (https://github.com/MontmereLimited/ZendFramework-v1.git) PHP · 131 lines
1 <?php
2 /**
3 * Zend Framework
18 * @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
19 * @license http://framework.zend.com/license/new-bsd New BSD License
20 * @version $Id: TestApplicationControllerFile.php 24161 2011-06-28 16:41:59Z adamlundrigan $
21 */
24 * @see Zend_Tool_Project_Context_Filesystem_File
25 */
26 // // // // // // // // require_once 'Zend/Tool/Project/Context/Filesystem/File.php';
28 /**
63 {
64 $this->_forControllerName = $this->_resource->getAttribute('forControllerName');
65 $this->_filesystemName = ucfirst($this->_forControllerName) . 'ControllerTest.php';
66 parent::init();
67 return $this;
Encrypt.php (https://github.com/MontmereLimited/ZendFramework-v1.git) PHP · 138 lines
1 <?php
2 /**
3 * Zend Framework
17 * @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
18 * @license http://framework.zend.com/license/new-bsd New BSD License
19 * @version $Id: Encrypt.php 23775 2011-03-01 17:25:24Z ralph $
20 */
23 * @see Zend_Filter_Interface
24 */
25 // // // // // // // // // // require_once 'Zend/Filter/Interface.php';
27 /**
90 }
92 if (Zend_Loader::isReadable('Zend/Filter/Encrypt/' . ucfirst($adapter). '.php')) {
93 $adapter = 'Zend_Filter_Encrypt_' . ucfirst($adapter);
contenttype.php (https://bitbucket.org/pastor399/newcastleunifc.git) PHP · 95 lines
jce.php (https://bitbucket.org/pastor399/newcastleunifc.git) PHP · 79 lines
1 <?php
3 /**
14 // load base classes
15 require_once(dirname(__FILE__) . '/includes/base.php');
17 // get the view
32 // Require the base controller
33 require_once (WF_ADMINISTRATOR . '/controller.php');
35 // Load controller
36 $controllerPath = WF_ADMINISTRATOR . '/controller/' . $view . '.php';
38 if (file_exists($controllerPath)) {
Cloud.php (https://github.com/grandison/budo16.git) PHP · 410 lines
1 <?php
2 /**
3 * Zend Framework
18 * @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
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 */
24 * @see Zend_Tag_Item
25 */
26 // require_once 'Zend/Tag/Item.php';
28 /**
119 }
121 $method = 'set' . ucfirst($key);
122 if (method_exists($this, $method)) {
123 $this->$method($value);
init.php (https://gitlab.com/iamgraeme/royalmile) PHP · 121 lines
CommentTestTrait.php (https://gitlab.com/guillaumev/alkarama) PHP · 125 lines
Query.php (https://gitlab.com/rsilveira1987/Expresso) PHP · 418 lines
1 <?php
3 /**
19 * @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
20 * @license http://framework.zend.com/license/new-bsd New BSD License
21 * @version $Id: Query.php 10020 2009-08-18 14:34:09Z j.fischer@metaways.de $
22 */
25 * Zend_Gdata_App_Util
26 */
27 require_once 'Zend/Gdata/App/Util.php';
29 /**
396 public function __get($name)
397 {
398 $method = 'get'.ucfirst($name);
399 if (method_exists($this, $method)) {
400 return call_user_func(array(&$this, $method));
Cloud.php (https://bitbucket.org/Ebozavrik/test-application.git) PHP · 427 lines
1 <?php
2 /**
3 * Zend Framework
18 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
19 * @license http://framework.zend.com/license/new-bsd New BSD License
20 * @version $Id: Cloud.php 24593 2012-01-05 20:35:02Z matthew $
21 */
24 * @see Zend_Tag_Item
25 */
26 require_once 'Zend/Tag/Item.php';
28 /**
121 }
123 $method = 'set' . ucfirst($key);
124 if (method_exists($this, $method)) {
125 $this->$method($value);
index.php (https://gitlab.com/sylver.gocloud/gocloudasia-college-system-framework) PHP · 92 lines
19 <?php echo form_submit('submit', 'Search'); ?>
20 <?php echo form_submit('submit', 'Print'); ?>
21 <?echo form_close();?>
22 <br>
23 <?echo isset($links) ? $links : NULL;?>
24 <?php
25 if(isset($search)){
26 ?>
48 <td><?php echo $student->studid; ?></td>
49 <td><?php echo ucfirst($student->name); ?></td>
50 <td><?php echo $student->year; ?></td>
51 <td><?php echo $student->course; ?></td>
52 <td><?php echo number_format($student->total, 2, '.', ''); ?></td>
BroadcastManager.php (https://gitlab.com/dzakiafif/cokelatklasik) PHP · 210 lines
Driver.php (https://github.com/ewandor/horde.git) PHP · 77 lines
1 <?php
2 /**
3 * Horde_Injector factory to create Mnemo_Driver instances.
50 $driver = $GLOBALS['conf']['storage']['driver'];
51 $params = Horde::getDriverConfig('storage', $driver);
52 $class = 'Mnemo_Driver_' . ucfirst(basename($driver));
53 if (!class_exists($class)) {
54 throw new Mnemo_Exception(sprintf('Unable to load the definition of %s.', $class));
statistics.php (https://github.com/pban02/forkcms.git) PHP · 92 lines
Entry.php (https://github.com/kervin/kyzstudio.git) PHP · 242 lines
1 <?php
2 /**
3 * Zend Framework
17 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
18 * @license http://framework.zend.com/license/new-bsd New BSD License
19 * @version $Id: Entry.php 20096 2010-01-06 02:05:09Z bkarwin $
20 */
73 {
74 if (!ctype_alpha($value) && strlen($value) > 0) {
75 #require_once 'Zend/Feed/Exception.php';
76 throw new Zend_Feed_Exception('invalid parameter: "block" may only'
77 . ' contain alphabetic characters');
78 }
79 if (iconv_strlen($value, $this->getEncoding()) > 255) {
80 #require_once 'Zend/Feed/Exception.php';
81 throw new Zend_Feed_Exception('invalid parameter: "block" may only'
82 . ' contain a maximum of 255 characters');
ArrayOfTypeSequence.php (https://github.com/Exercise/zf2.git) PHP · 150 lines
1 <?php
2 /**
3 * Zend Framework
54 for($i = 1; $i <= $nestedCounter; $i++) {
55 $complexType = $this->_getTypeBasedOnNestingLevel($singularType, $i);
56 $complexTypePhp = $singularType . str_repeat('[]', $i);
57 $childType = $this->_getTypeBasedOnNestingLevel($singularType, $i-1);
59 $this->_addSequenceType($complexType, $childType, $complexTypePhp);
60 }
115 * @param string $arrayType Array type name (e.g. 'tns:ArrayOfArrayOfInt')
116 * @param string $childType Qualified array items type (e.g. 'xsd:int', 'tns:ArrayOfInt')
117 * @param string $phpArrayType PHP type (e.g. 'int[][]', '\MyNamespace\MyClassName[][][]')
118 * @return void
119 */
Query.php (https://github.com/Martin1982/IBMessagingWorkshopServer.git) PHP · 418 lines
1 <?php
3 /**
19 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
20 * @license http://framework.zend.com/license/new-bsd New BSD License
21 * @version $Id: Query.php 20096 2010-01-06 02:05:09Z bkarwin $
22 */
25 * Zend_Gdata_App_Util
26 */
27 // require_once 'Zend/Gdata/App/Util.php';
29 /**
396 public function __get($name)
397 {
398 $method = 'get'.ucfirst($name);
399 if (method_exists($this, $method)) {
400 return call_user_func(array(&$this, $method));
cronish.php (https://gitlab.com/BeS/io.schiessle.org) PHP · 59 lines
1 <?php
2 /**
3 * GNU social cron-on-visit class
19 * which use this MUST be as quick as possible, maybe only adding a
20 * queue item to be handled later or something. Otherwise execution
21 * will timeout for PHP - or at least cause unnecessary delays for
22 * the unlucky user who visits the site exactly at one of these events.
23 */
53 if ($run === true) {
54 // such as CronHourly, CronDaily, CronWeekly
55 Event::handle('Cron' . ucfirst($name));
56 }
57 }
Base.php (https://github.com/khallmark/LBHToolkit-Library.git) PHP · 235 lines
Factory.php (https://bitbucket.org/jokusafet/magento2.git) PHP · 67 lines
1 <?php
2 /**
3 * Magento
8 * that is bundled with this package in the file LICENSE.txt.
9 * It is also available through the world-wide-web at this URL:
10 * http://opensource.org/licenses/osl-3.0.php
11 * If you did not receive a copy of the license and are unable to
12 * obtain it through the world-wide-web, please send an email
23 * @subpackage integration_tests
24 * @copyright Copyright (c) 2012 X.commerce, Inc. (http://www.magentocommerce.com)
25 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26 */
45 {
46 if (!isset(self::$_instances[$name])) {
47 $className = preg_replace('/[^_]*$/', ucfirst($name), __CLASS__, 1);
48 self::$_instances[$name] = new $className();
49 }
Query.php (https://github.com/grandison/budo16.git) PHP · 418 lines
1 <?php
3 /**
19 * @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
20 * @license http://framework.zend.com/license/new-bsd New BSD License
21 * @version $Id: Query.php 16971 2009-07-22 18:05:45Z mikaelkael $
22 */
25 * Zend_Gdata_App_Util
26 */
27 // require_once 'Zend/Gdata/App/Util.php';
29 /**
396 public function __get($name)
397 {
398 $method = 'get'.ucfirst($name);
399 if (method_exists($this, $method)) {
400 return call_user_func(array(&$this, $method));
Enclosure.php (https://bitbucket.org/mgduk/mgdreader.git) PHP · 91 lines
Vorbis.php (https://github.com/e-butik/php-reader.git) PHP · 141 lines
1 <?php
2 /**
3 * Zend Framework
23 /**#@+ @ignore */
24 require_once 'Zend/Io/Reader.php';
25 require_once 'Zend/Media/Vorbis/Header/Identification.php';
26 require_once 'Zend/Media/Vorbis/Header/Comment.php';
27 require_once 'Zend/Media/Vorbis/Header/Setup.php';
79 } else {
80 $this->_filename = $filename;
81 require_once('Zend/Io/FileReader.php');
82 try {
83 $this->_reader = new Zend_Io_FileReader($filename);
Input.php (https://gitlab.com/dleonov/my-framework-two) PHP · 419 lines
generic.php (https://gitlab.com/ppapadatis/Videolearn) PHP · 143 lines
26 <!-- RSS feed icon -->
27 <div class="k2FeedIcon">
28 <a href="<?php echo $this->feed; ?>" title="<?php echo JText::_('K2_SUBSCRIBE_TO_THIS_RSS_FEED'); ?>">
29 <span><?php echo JText::_('K2_SUBSCRIBE_TO_THIS_RSS_FEED'); ?></span>
69 <a href="<?php echo $item->link; ?>" title="<?php if(!empty($item->image_caption)) echo K2HelperUtilities::cleanHtml($item->image_caption); else echo K2HelperUtilities::cleanHtml($item->title); ?>">
70 <img src="<?php echo $item->imageGeneric; ?>" alt="<?php if(!empty($item->image_caption)) echo K2HelperUtilities::cleanHtml($item->image_caption); else echo K2HelperUtilities::cleanHtml($item->title); ?>" style="width:<?php echo $this->params->get('itemImageGeneric'); ?>px; height:auto;" />
71 </a>
72 </span>
95 <?php if($extraField->value): ?>
96 <li class="<?php echo ($key%2) ? "odd" : "even"; ?> type<?php echo ucfirst($extraField->type); ?> group<?php echo $extraField->group; ?>">
97 <span class="genericItemExtraFieldsLabel"><?php echo $extraField->name; ?></span>
110 <span><?php echo JText::_('K2_PUBLISHED_IN'); ?></span>
111 <a href="<?php echo $item->category->link; ?>"><?php echo $item->category->name; ?></a>
112 </div>
113 <?php endif; ?>
mtrl-stats-pages.php (https://gitlab.com/neyberbz/suelos-ualm) PHP · 132 lines
1 <?php
3 function wp_show_stats_pages() {
14 ?>
16 <?php if($countPages > 0){
18 $data_str = "";
20 //if(isset($usersCount['avail_roles']) && sizeof($usersCount['avail_roles']) > 0){
21 foreach ($totalPagesArray as $key => $value) {
22 $data_str .= "'".ucfirst($key)."', ";
24 if($value == '0'){ $value = "'-'";}
59 var option = {
60 color: ['<?php echo $getcolor[0]; ?>','<?php echo $getcolor[1]; ?>','<?php echo $getcolor[2]; ?>','<?php echo $getcolor[3]; ?>','<?php echo $getcolor[4]; ?>','<?php echo $getcolor[5]; ?>'],
62 tooltip : {
CacheController.php (https://github.com/fastslack/joomla-cms.git) PHP · 220 lines
1 <?php
2 /**
3 * Joomla! Content Management System
89 $type = strtolower(preg_replace('/[^A-Z0-9_\.-]/i', '', $type));
91 $class = __NAMESPACE__ . '\\Controller\\' . ucfirst($type) . 'Controller';
93 if (!class_exists($class))
94 {
95 $class = 'JCacheController' . ucfirst($type);
96 }
101 \JLoader::import('joomla.filesystem.path');
103 $path = \JPath::find(self::addIncludePath(), strtolower($type) . '.php');
105 if ($path !== false)
page.php (https://github.com/be3/ionize.git) PHP · 173 lines
1 <?php
2 /*
3 * Created by Martin Wernståhl on 2010-01-02.
43 $this->load->model('page_model');
45 require_once APPPATH.'libraries/ftl/parser.php';
46 require_once APPPATH.'libraries/ftl/arraycontext.php';
48 require_once APPPATH.'libraries/Tagmanager.php';
50 require_once APPPATH.'libraries/Tagmanager/Page.php';
51 require_once APPPATH.'libraries/Tagmanager/Element.php';
52 require_once APPPATH.'libraries/Tagmanager/Form.php';
upgrade.php (https://github.com/jfilip/moodle.git) PHP · 62 lines
1 <?php
2 // This file is part of Moodle - http://moodle.org/
3 //
42 if ($oldversion < 2013091700) {
43 // The value of the phpCAS language constants has changed from
44 // 'langname' to 'CAS_Languages_Langname'.
45 if ($cas_language = get_config('auth/cas', 'language')) {
46 set_config('language', 'CAS_Languages_'.ucfirst($cas_language), 'auth/cas');
47 }
Callback.php (https://github.com/tmccormi/openemr.git) PHP · 192 lines
Inline.php (https://gitlab.com/judielsm/Handora) PHP · 143 lines
1 <?php
2 /**
3 * Inline HTML diff generator for PHP DiffLib.
4 *
5 * PHP version 5
6 *
7 * Copyright (c) 2009 Chris Boulton <chris.boulton@interspire.com>
36 * @author Chris Boulton <chris.boulton@interspire.com>
37 * @copyright (c) 2009 Chris Boulton
38 * @license New BSD License http://www.opensource.org/licenses/bsd-license.php
39 * @version 1.1
40 * @link http://github.com/chrisboulton/php-diff
41 */
43 require_once dirname(__FILE__).'/Array.php';
45 class Diff_Renderer_Html_Inline extends Diff_Renderer_Html_Array
ValidVariableNameSniff.php (https://gitlab.com/link233/bootmw) PHP · 121 lines
29 * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
30 * @version Release: @package_version@
31 * @link http://pear.php.net/package/PHP_CodeSniffer
32 */
33 class PEAR_Sniffs_NamingConventions_ValidVariableNameSniff extends PHP_CodeSniffer_Standards_AbstractVariableSniff
105 * Processes variables in double quoted strings.
106 *
107 * @param PHP_CodeSniffer_File $phpcsFile The file where this token was found.
108 * @param int $stackPtr The position where the token was found.
109 *
110 * @return void
111 */
112 protected function processVariableInString(PHP_CodeSniffer_File $phpcsFile, $stackPtr)
113 {
114 /*
databaseconnection.php (https://bitbucket.org/nlabyt/bcf-ball-4eb2.git) PHP · 85 lines
compatibility-packages.php (https://bitbucket.org/kenaku/karate.git) PHP · 98 lines
11 <?php foreach($WPML_Packages->get_packages() as $package_type => $packages): ?>
12 <h4><?php echo ucfirst($package_type) ?></h4>
29 <th><?php _e('Version', 'sitepress') ?></th>
30 <th><?php _e('Description', 'sitepress') ?></th>
31 <?php if($package_type=='themes'):?>
49 }
50 ?>
51 <tr <?php if($incr%2==0): ?>class="alternate"<?php endif?>>
52 <td>
53 <input type="hidden" name="icl_packages[<?php echo $package_type ?>][<?php echo $package_id ?>]" value="0" />
54 <input type="checkbox" name="icl_packages[<?php echo $package_type ?>][<?php echo $package_id ?>]" value="1"<?php echo $checked; ?> />
55 </td>
56 <td><?php if($package['URI']) echo '<a href="'.$package['URI'].'">'; echo $package['Name']; if($package['URI']) echo '</a>';?></td>
storage.php (https://github.com/Hackwar/joomla-platform.git) PHP · 335 lines
1 <?php
2 /**
3 * @package Joomla.Platform
132 $handler = strtolower(preg_replace('/[^A-Z0-9_\.-]/i', '', $handler));
134 $class = 'JCacheStorage' . ucfirst($handler);
136 if (!class_exists($class))
139 jimport('joomla.filesystem.path');
141 if ($path = JPath::find(self::addIncludePath(), strtolower($handler) . '.php'))
142 {
143 include_once $path;
180 if (!class_exists('JCacheStorageHelper', false))
181 {
182 include_once JPATH_PLATFORM . '/joomla/cache/storage/helper.php';
183 }
184 return;
ItemAssignmentInstance.php (https://github.com/trob/fabrik.git) PHP · 124 lines
facebook.php (https://github.com/fastslack/joomla-cms.git) PHP · 188 lines
Driver.php (https://github.com/finger2000/horde.git) PHP · 77 lines
1 <?php
2 /**
3 * Horde_Injector factory to create Mnemo_Driver instances.
6 *
7 * See the enclosed file LICENSE for license information (ASL). If you
8 * did not receive this file, see http://www.horde.org/licenses/asl.php.
9 *
10 * @author Michael J. Rubinsky <mrubinsk@horde.org>
50 $driver = $GLOBALS['conf']['storage']['driver'];
51 $params = Horde::getDriverConfig('storage', $driver);
52 $class = 'Mnemo_Driver_' . ucfirst(basename($driver));
53 if (!class_exists($class)) {
54 throw new Mnemo_Exception(sprintf('Unable to load the definition of %s.', $class));
AssistantContext.php (https://github.com/trob/fabrik.git) PHP · 288 lines
PhotosUserEntryTest.php (https://github.com/leerbag/zf2.git) PHP · 227 lines
1 <?php
2 /**
3 * Zend Framework
34 * @group Zend_GData_Photos
35 */
36 class PhotosUserEntryTest extends \PHPUnit_Framework_TestCase
37 {
61 {
62 $propName = $name;
63 $propGetter = "get" . ucfirst($name);
65 $this->assertEquals($obj->$propGetter(), $obj->$propName);
79 {
80 $propName = $name;
81 $propGetter = "get" . ucfirst($name);
82 $secondGetter = "get" . ucfirst($secondName);
Tag.php (https://github.com/livinglab/openlab.git) PHP · 249 lines
ipinfo.php (https://github.com/KaTaLyzer/KaTaLyzer.git) PHP · 64 lines
1 <?php
2 error_reporting(0);
3 ini_set("display_errors", 0);
11 define("INTERVAL", 86400);
12 define("PAGE",25);
13 require_once('inc/class_input.php');
14 require_once('inc/class_config.php');
15 require_once('inc/class_port_names.php');
16 require_once('inc/class_ipinfo.php');
44 if(is_array($location)){
45 foreach($location as $k => $v){
46 $json['data'][] = ucfirst(str_replace('_',' ',$k)).': '.$v;
47 }
48 }
cache.php (https://github.com/magicmarkker/core.git) PHP · 157 lines
1 <?php
2 /**
3 * Part of the Fuel framework.
8 * @license MIT License
9 * @copyright 2010 - 2011 Fuel Development Team
10 * @link http://fuelphp.com
11 */
72 }
74 $class = '\\Cache_Storage_'.ucfirst($config['driver']);
76 // Convert the name to a string when necessary
103 *
104 * @param mixed The identifier of the cache, can be anything but empty
105 * @param string|array Valid PHP callback
106 * @param array Arguements for the above function/method
107 * @param int Cache expiration in seconds
archive.php (https://github.com/MaBelleEcole/Main.git) PHP · 189 lines
1 <?php
2 /**
3 * @version $Id: archive.php 14401 2010-01-26 14:10:00Z louis $
5 * @subpackage FileSystem
6 * @copyright Copyright (C) 2005 - 2010 Open Source Matters. All rights reserved.
7 * @license GNU/GPL, see LICENSE.php
8 * Joomla! is free software. This version may have been modified pursuant
9 * to the GNU General Public License, and as distributed it includes or
10 * is derivative of works licensed under the GNU General Public License or
11 * other free or open source software licenses.
12 * See COPYRIGHT.php for copyright notices and details.
13 */
14 defined('JPATH_BASE') or die();
141 {
142 // Try to load the adapter object
143 $class = 'JArchive'.ucfirst($type);
145 if (!class_exists($class))
Inline.php (https://github.com/adampatterson/Spoke-Calculator.git) PHP · 143 lines
1 <?php
2 /**
3 * Inline HTML diff generator for PHP DiffLib.
4 *
5 * PHP version 5
6 *
7 * Copyright (c) 2009 Chris Boulton <chris.boulton@interspire.com>
36 * @author Chris Boulton <chris.boulton@interspire.com>
37 * @copyright (c) 2009 Chris Boulton
38 * @license New BSD License http://www.opensource.org/licenses/bsd-license.php
39 * @version 1.0
40 * @link http://github.com/chrisboulton/phpdiff
41 */
43 require_once dirname(__FILE__) . '/Array.php';
45 class Diff_Renderer_Html_Inline extends Diff_Renderer_Html_Array
Definition.php (https://github.com/MontmereLimited/ZendFramework-v1.git) PHP · 293 lines
1 <?php
2 /**
3 * Zend Framework
18 * @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
19 * @license http://framework.zend.com/license/new-bsd New BSD License
20 * @version $Id: Definition.php 23775 2011-03-01 17:25:24Z ralph $
21 */
84 {
85 foreach ($options as $key => $value) {
86 $method = 'set' . ucfirst($key);
87 if (method_exists($this, $method)) {
88 $this->$method($value);
123 {
124 if (is_array($callback)) {
125 // // // // // // // // // // require_once 'Zend/Server/Method/Callback.php';
126 $callback = new Zend_Server_Method_Callback($callback);
127 } elseif (!$callback instanceof Zend_Server_Method_Callback) {
Query.php (https://github.com/timglabisch/pimcore.git) PHP · 418 lines
1 <?php
3 /**
19 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
20 * @license http://framework.zend.com/license/new-bsd New BSD License
21 * @version $Id: Query.php 24593 2012-01-05 20:35:02Z matthew $
22 */
25 * Zend_Gdata_App_Util
26 */
27 // require_once 'Zend/Gdata/App/Util.php';
29 /**
396 public function __get($name)
397 {
398 $method = 'get'.ucfirst($name);
399 if (method_exists($this, $method)) {
400 return call_user_func(array(&$this, $method));
Model.php (https://github.com/bwghughes/houghandco.git) PHP · 82 lines
1 <?php if (!defined('BASEPATH')) exit('No direct script access allowed');
2 /**
3 * CodeIgniter
4 *
5 * An open source application development framework for PHP 4.3.2 or newer
6 *
7 * @package CodeIgniter
41 // We don't want to assign the model object to itself when using the
42 // assign_libraries function below so we'll grab the name of the model parent
43 $this->_parent_name = ucfirst(get_class($this));
45 log_message('debug', "Model Class Initialized");
Call.php (https://gitlab.com/fabian.morales/marlon_becerra) PHP · 210 lines
1 <?php
3 /*
20 $compiler->raw(sprintf('$this->env->getExtension(\'%s\')->%s', $callable[0]->getName(), $callable[1]));
21 } else {
22 $type = ucfirst($this->getAttribute('type'));
23 $compiler->raw(sprintf('call_user_func_array($this->env->get%s(\'%s\')->getCallable(), array', $type, $this->getAttribute('name')));
24 $closingParenthesis = true;
158 if (!empty($missingArguments)) {
159 throw new Twig_Error_Syntax(sprintf(
160 'Argument "%s" could not be assigned for %s "%s(%s)" because it is mapped to an internal PHP function which cannot determine default value for optional argument%s "%s".',
161 $name, $callType, $callName, implode(', ', $names), count($missingArguments) > 1 ? 's' : '', implode('", "', $missingArguments))
162 );
Validate.php (https://bitbucket.org/sauron07/friend_social.git) PHP · 290 lines
1 <?php
2 /**
3 * Zend Framework
17 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
18 * @license http://framework.zend.com/license/new-bsd New BSD License
19 * @version $Id: Validate.php 24594 2012-01-05 21:27:01Z matthew $
20 */
23 * @see Zend_Validate_Interface
24 */
25 //require_once 'Zend/Validate/Interface.php';
27 /**
196 {
197 $namespaces = array_merge((array) $namespaces, self::$_defaultNamespaces, array('Zend_Validate'));
198 $className = ucfirst($classBaseName);
199 try {
200 if (!class_exists($className, false)) {
Utility.php (https://github.com/boekkooi/Oauth_Server.git) PHP · 105 lines
1 <?php
2 namespace OAuth\Server\Signature;
65 $parts = explode('-', $signatureMethod);
66 if (count($parts) > 1) {
67 $className = 'OAuth\Server\Signature\\' . ucfirst(strtolower($parts[0]));
68 $hashAlgorithm = $parts[1];
69 } else {
70 $className = 'OAuth\Server\Signature\\' . ucfirst(strtolower($signatureMethod));
71 }
Grammar.php (https://gitlab.com/fabian.morales/marlon_becerra) PHP · 270 lines
Pdo.php (https://bitbucket.org/zbahij/eprojets_app.git) PHP · 309 lines
DbTable.php (https://github.com/Exercise/zf2.git) PHP · 231 lines
page.php (https://gitlab.com/haque.mdmanzurul/wp-harpar-carolyn) PHP · 64 lines
6 <p><?php _e('Custom CSS Updated', 'vantage') ?></p>
7 </div>
8 <?php endif; ?>
10 <?php if(!empty($revision)) : ?>
11 <div class="updated settings-error">
12 <p><?php _e('Viewing a revision. Save CSS to use this revision.', 'vantage') ?></p>
13 </div>
14 <?php endif; ?>
21 <h3 class="hndle"><span><?php _e('CSS Revisions', 'vantage') ?></span></h3>
22 <div class="inside">
23 <ol data-confirm="<?php esc_attr_e('Are you sure you want to load this revision?', 'vantage') ?>">
24 <?php
27 ?>
28 <li>
29 <a href="<?php echo add_query_arg(array('theme' => $theme, 'time' => $time)) ?>" class="load-css-revision"><?php echo date('j F Y @ H:i:s', $time) ?></a>
30 (<?php printf(__('%d chars', 'vantage'), strlen($css)) ?>)
index.php (https://github.com/decthomas/forkcms.git) PHP · 266 lines
1 <?php
3 /*
93 // set headers
94 $this->dgPosts->setHeaderLabels(array('user_id' => SpoonFilter::ucfirst(BL::lbl('Author')), 'publish_on' => SpoonFilter::ucfirst(BL::lbl('PublishedOn'))));
96 // hide columns
142 // set headers
143 $this->dgDrafts->setHeaderLabels(array('user_id' => SpoonFilter::ucfirst(BL::lbl('Author'))));
145 // hide columns
191 // set headers
192 $this->dgRecent->setHeaderLabels(array('user_id' => SpoonFilter::ucfirst(BL::lbl('Author'))));
194 // hide columns
Filter.php (https://gitlab.com/culturagovbr/simec) PHP · 239 lines
1 <?php
2 /**
3 * Zend Framework
17 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
18 * @license http://framework.zend.com/license/new-bsd New BSD License
19 * @version $Id: Filter.php 24593 2012-01-05 20:35:02Z matthew $
20 */
23 * @see Zend_Filter_Interface
24 */
25 require_once APPRAIZ_ZEND . 'Filter/Interface.php';
27 /**
207 public static function filterStatic($value, $classBaseName, array $args = array(), $namespaces = array())
208 {
209 require_once APPRAIZ_ZEND . 'Loader.php';
210 $namespaces = array_merge((array) $namespaces, self::$_defaultNamespaces, array('Zend_Filter'));
211 foreach ($namespaces as $namespace) {
ul.html.php (https://github.com/tquensen/QF2.git) PHP · 25 lines
2 <?php foreach ($form->getElements() as $currentElement): ?>
3 <?php if ($currentElement->getType() == 'hidden') { continue; }; ?>
4 <?php if ((in_array($currentElement->getType(), array('fieldset', 'fieldsetend')) || ($currentElement->getType() == 'custom' && $currentElement->useWrapper == false)) && $inList): $inList = false; ?>
6 <?php endif; ?>
8 <?php if (!in_array($currentElement->getType(), array('fieldset', 'fieldsetend')) && ($currentElement->getType() != 'custom' || $currentElement->useWrapper == true)): ?>
9 <?php if (!$inList): $inList = true; ?>
11 <?php endif; ?>
12 <li id="<?php echo htmlspecialchars($form->getName())?>__<?php echo htmlspecialchars($currentElement->getName())?>__wrapper" class="formWrapper form<?php echo ucfirst($currentElement->getType())?>Wrapper<?php if (!$currentElement->isValid()):?> invalid<?php elseif($form->wasSubmitted()): ?> valid<?php endif; ?><?php if ($currentElement->wrapperClass): ?> <?php echo $currentElement->wrapperClass; ?><?php endif; ?><?php if ($currentElement->required): ?> <?php echo 'required'; ?><?php endif; ?>" <?php if ($currentElement->wrapperAttributes): foreach ((array) $currentElement->wrapperAttributes as $attr => $attrValue): ?> <?php echo ' '.$attr.'="'.$attrValue.'"'; ?><?php endforeach; endif; ?>>
13 <?php endif; ?>
16 <?php if ($currentElement->info):?><span class="formInfo"><?php echo htmlspecialchars($currentElement->info)?></span><?php endif; ?>
17 <?php if (!$currentElement->isValid() && !$currentElement->globalErrors):?><span class="formError"><?php echo htmlspecialchars($currentElement->errorMessage)?></span><?php endif; ?>
19 <?php if (!in_array($currentElement->getType(), array('fieldset', 'fieldsetend')) && ($currentElement->getType() != 'custom' || $currentElement->useWrapper == true)): ?>
23 <?php endforeach; ?>
25 <?php if ($inList): ?></ul><?php endif; ?>
ol.html.php (https://github.com/tquensen/QF2.git) PHP · 25 lines
2 <?php foreach ($form->getElements() as $currentElement): ?>
3 <?php if ($currentElement->getType() == 'hidden') { continue; }; ?>
4 <?php if ((in_array($currentElement->getType(), array('fieldset', 'fieldsetend')) || ($currentElement->getType() == 'custom' && $currentElement->useWrapper == false)) && $inList): $inList = false; ?>
6 <?php endif; ?>
8 <?php if (!in_array($currentElement->getType(), array('fieldset', 'fieldsetend')) && ($currentElement->getType() != 'custom' || $currentElement->useWrapper == true)): ?>
9 <?php if (!$inList): $inList = true; ?>
11 <?php endif; ?>
12 <li id="<?php echo htmlspecialchars($form->getName())?>__<?php echo htmlspecialchars($currentElement->getName())?>__wrapper" class="formWrapper form<?php echo ucfirst($currentElement->getType())?>Wrapper<?php if (!$currentElement->isValid()):?> invalid<?php elseif($form->wasSubmitted()): ?> valid<?php endif; ?><?php if ($currentElement->wrapperClass): ?> <?php echo $currentElement->wrapperClass; ?><?php endif; ?><?php if ($currentElement->required): ?> <?php echo 'required'; ?><?php endif; ?>" <?php if ($currentElement->wrapperAttributes): foreach ((array) $currentElement->wrapperAttributes as $attr => $attrValue): ?> <?php echo ' '.$attr.'="'.$attrValue.'"'; ?><?php endforeach; endif; ?>>
13 <?php endif; ?>
16 <?php if ($currentElement->info):?><span class="formInfo"><?php echo htmlspecialchars($currentElement->info)?></span><?php endif; ?>
17 <?php if (!$currentElement->isValid() && !$currentElement->globalErrors):?><span class="formError"><?php echo htmlspecialchars($currentElement->errorMessage)?></span><?php endif; ?>
19 <?php if (!in_array($currentElement->getType(), array('fieldset', 'fieldsetend')) && ($currentElement->getType() != 'custom' || $currentElement->useWrapper == true)): ?>
23 <?php endforeach; ?>
25 <?php if ($inList): ?></ol><?php endif; ?>
Wizard.php (https://github.com/arianmaykon/ExtDesk.git) PHP · 105 lines
1 <?php
54 $module_get = strtolower($module_get);
55 $module_get = str_replace(' ', '', $module_get);
56 $module_get = ucfirst($module_get);
58 //check if we can write modules directory
61 if (is_writable($nombre_archivo)) {
63 $module=ucfirst($module_get);
64 $dir_dest = './modules/'.$module;
74 $util->recurse_copy("./modules/Wizard/Server/templates/$template_name",$dir_dest);
76 // send dato to script.php via session
77 $_SESSION["wizard_module"]=$module;
78 $_SESSION["wizard_template"]=$template_name;
Definition.php (https://bitbucket.org/khuongduybui/openfisma.git) PHP · 293 lines
1 <?php
2 /**
3 * Zend Framework
84 {
85 foreach ($options as $key => $value) {
86 $method = 'set' . ucfirst($key);
87 if (method_exists($this, $method)) {
88 $this->$method($value);
123 {
124 if (is_array($callback)) {
125 // require_once 'Zend/Server/Method/Callback.php';
126 $callback = new Zend_Server_Method_Callback($callback);
127 } elseif (!$callback instanceof Zend_Server_Method_Callback) {
128 // require_once 'Zend/Server/Exception.php';
129 throw new Zend_Server_Exception('Invalid method callback provided');
130 }
layout_files_as_simple.php (https://github.com/agnesrambaud/yacs.git) PHP · 82 lines
1 <?php
2 /**
3 * layout files as a compact list
5 * This has more than compact, and less than decorated.
6 *
7 * @see files/files.php
8 *
9 * @author Bernard Paques
19 * @return array of resulting items, or NULL
20 *
21 * @see skins/layout.php
22 **/
23 function &layout(&$result) {
62 $label = Codes::beautify_title($item['title']);
63 if(!$label)
64 $label = ucfirst(str_replace(array('%20', '-', '_'), ' ', $item['file_name']));
66 // the main anchor link, except on user profiles
Language.php (https://gitlab.com/gregtyka/SiberianCMS) PHP · 162 lines
1 <?php
3 class Core_Model_Language extends Core_Model_Default {
22 self::$_languages[$directory->getFileName()] = new Core_Model_Default(array(
23 'code' => $directory->getFileName(),
24 'name' => ucfirst($territories[$dir_name]),
25 'locale' => $locale,
26 ));
30 self::$_languages[self::DEFAULT_LANGUAGE] = new Core_Model_Default(array(
31 'code' => self::DEFAULT_LANGUAGE,
32 'name' => ucfirst($territories[self::DEFAULT_LANGUAGE]),
33 'locale' => self::DEFAULT_LOCALE
34 ));
String.php (https://github.com/ChuguluGames/mediawiki-svn.git) PHP · 106 lines
1 <?php
3 class WSStringLibrary extends WSLibraryModuleBase {
32 public function uppercaseFirst( $args, $context, $line ) {
33 global $wgContLang;
34 return new WSData( WSData::DString, $wgContLang->ucfirst( $args[0]->toString() ) );
35 }
82 public function split( $args, $context, $line ) {
83 $list = explode( $args[1]->toString(), $args[0]->toString() );
84 return WSData::newFromPHPVar( $list );
85 }
openstreetmap.php (https://github.com/pjwiseman/joomla-cms.git) PHP · 163 lines
ModelTrait.php (https://github.com/orangehrm/OrangeHRM.git) PHP · 118 lines
OAuth2Abstract.php (https://gitlab.com/johanlindberg/irvato-crm) PHP · 228 lines
Validate.php (https://github.com/timglabisch/pimcore.git) PHP · 290 lines
1 <?php
2 /**
3 * Zend Framework
17 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
18 * @license http://framework.zend.com/license/new-bsd New BSD License
19 * @version $Id: Validate.php 24593 2012-01-05 20:35:02Z matthew $
20 */
23 * @see Zend_Validate_Interface
24 */
25 // require_once 'Zend/Validate/Interface.php';
27 /**
196 {
197 $namespaces = array_merge((array) $namespaces, self::$_defaultNamespaces, array('Zend_Validate'));
198 $className = ucfirst($classBaseName);
199 try {
200 if (!class_exists($className, false)) {
session.php (https://github.com/misa/core.git) PHP · 415 lines
PaymentsRequestTest.php (https://github.com/yandex-money/yandex-checkout-sdk-php.git) PHP · 410 lines
1 <?php
3 namespace Tests\YandexCheckout\Request\Payments;
5 use PHPUnit\Framework\TestCase;
6 use YandexCheckout\Helpers\Random;
7 use YandexCheckout\Helpers\StringObject;
349 private function getterAndSetterTest($value, $property, $expected, $testHas = true)
350 {
351 $getter = 'get'.ucfirst($property);
352 $setter = 'set'.ucfirst($property);
353 $has = 'has'.ucfirst($property);
355 $instance = $this->getTestInstance();
CacheManager.php (https://gitlab.com/4gdevs/online-class-record-system) PHP · 320 lines
MapperAbstract.php (https://bitbucket.org/klab_zhang_j/zf1example-usermanagement.git) PHP · 281 lines
Relations.php (https://gitlab.com/nitm/yii2-filemanager) PHP · 226 lines
1 <?php
3 namespace nitm\filemanager\traits;
92 return [
93 'id' => $image->getId(),
94 'title' => ucfirst($image->remote_type).' Image',
95 'thumb' => $thumb->url('medium'),
96 'src' => $thumb->url('medium'),
167 return ArrayHelper::filter($this->files(), $idsOnly, function ($file) {
168 return [
169 'title' => ucfirst($file->remote_type).' Image',
170 'src' => $file->url(),
171 'url' => $file->url(),
Validate.php (https://github.com/eryx/labs.git) PHP · 290 lines
1 <?php
2 /**
3 * Zend Framework
17 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
18 * @license http://framework.zend.com/license/new-bsd New BSD License
19 * @version $Id: Validate.php 21340 2010-03-05 15:33:49Z thomas $
20 */
23 * @see Zend_Validate_Interface
24 */
25 // require_once 'Zend/Validate/Interface.php';
27 /**
196 {
197 $namespaces = array_merge((array) $namespaces, self::$_defaultNamespaces, array('Zend_Validate'));
198 $className = ucfirst($classBaseName);
199 try {
200 if (!class_exists($className, false)) {
Definition.php (https://github.com/ftaiolivista/Zend-Framework-Namespaced-.git) PHP · 299 lines
1 <?php
2 /**
3 * Zend Framework
18 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
19 * @license http://framework.zend.com/license/new-bsd New BSD License
20 * @version $Id: Definition.php 20096 2010-01-06 02:05:09Z bkarwin $
21 */
90 {
91 foreach ($options as $key => $value) {
92 $method = 'set' . ucfirst($key);
93 if (method_exists($this, $method)) {
94 $this->$method($value);
129 {
130 if (is_array($callback)) {
131 require_once 'Zend/Server/Method/Callback.php';
132 $callback = new Callback($callback);
133 } elseif (!$callback instanceof Callback) {
sfFormFilterPropelTest.php (https://github.com/jaugustin/sfPropelORMPlugin.git) PHP · 253 lines
commandable.php (https://bitbucket.org/nlabyt/bcf-ball-4eb2.git) PHP · 185 lines
1 <?php
2 /**
3 * @version $Id: commandable.php 4266 2011-10-08 23:57:41Z johanjanssens $
134 if($this->_toolbar)
135 {
136 $name = ucfirst($context->caller->getIdentifier()->name);
138 if($this->getModel()->getState()->isUnique())
172 $identifier = $context->caller->getIdentifier();
173 $config = array('attribs' => array(
174 'href' => JRoute::_( 'index.php?option=com_'.$identifier->package.'&view='.$identifier->name)
175 ));
Logger.php (https://gitlab.com/yousafsyed/easternglamor) PHP · 217 lines
hrose_list.inc.php (https://bitbucket.org/cfraunholz/big-red-button.git) PHP · 284 lines
161 if ($_REQUEST['dynamic_list_header']) {
162 $code .= '
163 <?php
164 $header = array(\'' . implode(',', $array) . '\');
165 foreach ($header as $key => $value) {';
196 $code .= '
197 </tr>
198 <?php
199 if (!mysql_num_rows($result)) {
200 echo \'<tr><td colspan=' . count($array) . '>' . trans('no entries') . '</td></tr>\';
206 case 'ckb':
207 $code .= '
208 echo \'<td>\' . ((' . varname($value, $listMethod) . ' == \'1\') ? ' . trans('yes', 'php') . ' : ' . trans('no', 'php') . ') . \'</td>\';';
209 break;
210 case 'enum':
Controller.class.php (https://bitbucket.org/iwantc00kies/yaps.git) PHP · 182 lines
1 <?php
8 public function __construct() {
9 require_once('../conf/connexion.php');
10 include('../conf/connexion.php');
18 /**
19 * Auto-chargement des classes du controlleur
20 * (ex. /controller/Test.class.php)
21 */
22 function chargerClasse($classe)
23 {
24 require_once realpath($_SERVER["DOCUMENT_ROOT"]) .'/controller/' . ucfirst($classe) . '.class.php';
26 //$classPath = realpath($_SERVER["DOCUMENT_ROOT"]) .'/controller/' . $classe . '.class.php' ;
diff.php (https://github.com/ewandor/horde.git) PHP · 88 lines
1 <?php
2 /**
3 * Script to show the differences between the currently saved and the newly
10 */
12 require_once dirname(__FILE__) . '/../../lib/Application.php';
13 $permission = 'configuration';
14 Horde_Registry::appInit('horde');
20 /* Set up the diff renderer. */
21 $render_type = Horde_Util::getFormData('render', 'inline');
22 $class = 'Horde_Text_Diff_Renderer_' . Horde_String::ucfirst($render_type);
23 $renderer = new $class();
33 $current_config = '';
34 $path = $registry->get('fileroot', $app) . '/config';
35 $current_config = @file_get_contents($path . '/conf.php');
37 /* Calculate the differences. */
index.php (https://bitbucket.org/rdcli/php-google-api-client.git) PHP · 98 lines
1 <?php
2 /*
3 * Copyright 2012 Google Inc.
23 */
25 require_once "../../src/apiClient.php";
26 require_once "../../src/contrib/apiAdexchangebuyerService.php";
27 require_once "htmlHelper.php";
29 session_start();
31 $client = new apiClient();
32 $client->setApplicationName('DoubleClick Ad Exchange Buyer API PHP Samples');
33 // Visit https://code.google.com/apis/console?api=adexchangebuyer to generate
34 // your client id, client secret, and to register your redirect uri.
Locale.php (https://github.com/ruudk/symfony.git) PHP · 351 lines
1 <?php
3 /*
16 /**
17 * Replacement for PHP's native {@link \Locale} class.
18 *
19 * The only methods supported in this class are `getDefault` and `canonicalize`.
51 * @return string The corresponding locale code
52 *
53 * @see https://php.net/locale.acceptfromhttp
54 *
55 * @throws MethodNotImplementedException
80 if (!empty($m[4])) {
81 return strtolower($m[1]).'_'.ucfirst(strtolower($m[2].$m[3])).'_'.strtoupper($m[4]);
82 }
model.php (https://github.com/SecPlus/secplus-php.git) PHP · 365 lines
1 <?php
3 namespace SecPlus;
46 public function _setupDAO() {
47 $this->_table_name = !empty($this->_table_name) ? $this->_table_name : strtolower(str_replace(__NAMESPACE__, "", str_replace('DAO', '', get_class($this))));
48 $this->_vo_name = !empty($this->_vo_name) ? $this->_vo_name : ucfirst($this->_table_name);
49 }
ViewHelper.php (https://github.com/Exercise/zf2.git) PHP · 261 lines
base_generator.php (https://github.com/siphoc/knife.git) PHP · 360 lines
1 <?php
3 /**
80 * @param string[optional] $ext The file extension.
81 */
82 public function buildFileName($name, $ext = 'php')
83 {
84 // lowercase
118 $newName = '';
120 // loop trough the parts to ucfirst it
121 foreach($parts as $part) $newName.= ucfirst($part);
138 /**
139 * The error handler. This gets the PHPDoc from the create function and prints
140 * it in a proper way.
141 *
session.php (https://github.com/michael-lefebvre/core.git) PHP · 364 lines
1 <?php
2 /**
3 * Part of the Fuel framework.
8 * @license MIT License
9 * @copyright 2010 - 2011 Fuel Development Team
10 * @link http://fuelphp.com
11 */
19 * @category Core
20 * @author Harro "WanWizard" Verton
21 * @link http://fuelphp.com/docs/classes/session.html
22 */
23 class Session
105 // determine the driver to load
106 $class = '\\Session_'.ucfirst($config['driver']);
108 $driver = new $class($config);