PageRenderTime 1186ms queryFilters 0ms Sphinxql 195ms GetByIds 948ms meta 0ms repositoryFilters 12ms languageFilters 1ms sourceFilters 1ms

78,253 results for 'php settype' (1186 ms)

Source

Language

Repository

Extended.php https://bitbucket.org/Yason/armory | PHP | 724 lines
1<?php
2// +----------------------------------------------------------------------+
2// +----------------------------------------------------------------------+
3// | PHP versions 4 and 5                                                 |
4// +----------------------------------------------------------------------+
9// | MDB2 is a merge of PEAR DB and Metabases that provides a unified DB  |
10// | API as well as database abstraction for PHP applications.            |
11// | This LICENSE is in the BSD license style.                            |
44//
45// $Id: Extended.php 327310 2012-08-27 15:16:18Z danielc $
46
308
309        settype($params, 'array');
310        if (empty($params)) {
352
353        settype($params, 'array');
354        settype($type, 'array');
Extended.php https://bitbucket.org/renaatdemuynck/chamilo | PHP | 788 lines
1<?php
2// +----------------------------------------------------------------------+
2// +----------------------------------------------------------------------+
3// | PHP versions 4 and 5                                                 |
4// +----------------------------------------------------------------------+
9// | MDB2 is a merge of PEAR DB and Metabases that provides a unified DB  |
10// | API as well as database abstraction for PHP applications.            |
11// | This LICENSE is in the BSD license style.                            |
44//
45// $Id: Extended.php 137 2009-11-09 13:24:37Z vanpouckesven $
46
342        
343        settype($params, 'array');
344        if (empty($params))
390        
391        settype($params, 'array');
392        settype($type, 'array');
Smarty.class.php https://github.com/dpcdesigns/agilebill.git | PHP | 1,960 lines
55
56define('SMARTY_PHP_PASSTHRU',   0);
57define('SMARTY_PHP_QUOTE',      1);
57define('SMARTY_PHP_QUOTE',      1);
58define('SMARTY_PHP_REMOVE',     2);
59define('SMARTY_PHP_ALLOW',      3);
196     *  <li>SMARTY_PHP_REMOVE   -> remove php tags</li>
197     *  <li>SMARTY_PHP_ALLOW    -> execute php tags</li>
198     * </ul>
201     */
202    var $php_handling    =  SMARTY_PHP_PASSTHRU;
203
1464        $smarty_compiler->caching           = $this->caching;
1465        $smarty_compiler->php_handling      = $this->php_handling;
1466        $smarty_compiler->left_delimiter    = $this->left_delimiter;
Column.php https://github.com/jmcgdz/Propel.git | PHP | 1,319 lines
197            // retrieves the method for converting from specified name to a PHP name, defaulting to parent tables default method
198            $this->phpNamingMethod = $this->getAttribute("phpNamingMethod", $this->parentTable->getDatabase()->getDefaultPhpNamingMethod());
199
356        if ($phpName == null) {
357            $this->phpName = self::generatePhpName($this->name, $this->phpNamingMethod, $this->namePrefix);
358        } else {
373        if (strlen($phpname) > 1) {
374            return strtolower(substr($phpname, 0, 1)) . substr($phpname, 1);
375        } else { // 0 or 1 chars (I suppose that's rare)
1261    {
1262        return PropelTypes::isPhpPrimitiveType($this->getPhpType());
1263    }
1313
1314    public static function generatePhpName($name, $phpNamingMethod = PhpNameGenerator::CONV_METHOD_CLEAN, $namePrefix = null)
1315    {
Column.php https://github.com/kirilloid/Propel.git | PHP | 1,319 lines
197            // retrieves the method for converting from specified name to a PHP name, defaulting to parent tables default method
198            $this->phpNamingMethod = $this->getAttribute("phpNamingMethod", $this->parentTable->getDatabase()->getDefaultPhpNamingMethod());
199
356        if ($phpName == null) {
357            $this->phpName = self::generatePhpName($this->name, $this->phpNamingMethod, $this->namePrefix);
358        } else {
373        if (strlen($phpname) > 1) {
374            return strtolower(substr($phpname, 0, 1)) . substr($phpname, 1);
375        } else { // 0 or 1 chars (I suppose that's rare)
1261    {
1262        return PropelTypes::isPhpPrimitiveType($this->getPhpType());
1263    }
1313
1314    public static function generatePhpName($name, $phpNamingMethod = PhpNameGenerator::CONV_METHOD_CLEAN, $namePrefix = null)
1315    {
Smarty.class.php https://github.com/yfg2014/whhm.git | PHP | 2,025 lines
27 * @author Monte Ohrt <monte at ohrt dot com>
28 * @author Andrei Zmievski <andrei@php.net>
29 * @package Smarty
56define('SMARTY_PHP_PASSTHRU',   0);
57define('SMARTY_PHP_QUOTE',      1);
58define('SMARTY_PHP_REMOVE',     2);
196     *  <li>SMARTY_PHP_REMOVE   -> remove php tags</li>
197     *  <li>SMARTY_PHP_ALLOW    -> execute php tags</li>
198     * </ul>
201     */
202    var $php_handling    =  SMARTY_PHP_PASSTHRU;
203
1464        $smarty_compiler->caching           = $this->caching;
1465        $smarty_compiler->php_handling      = $this->php_handling;
1466        $smarty_compiler->left_delimiter    = $this->left_delimiter;
formslib.php https://github.com/gustavoramirezrugerio/moodle1.9.17.git | PHP | 1,958 lines
1<?php // $Id: formslib.php,v 1.129.2.29 2012/01/19 14:24:32 moodlerobot Exp $
2/**
2/**
3 * formslib.php - library of classes for creating forms in Moodle, based on PEAR QuickForms.
4 *
4 *
5 * To use formslib then you will want to create a new file purpose_form.php eg. edit_form.php
6 * and you want to name your class something like {modulename}_{purpose}_form. Your class will
9 *
10 * See examples of use of this library in course/edit.php and course/edit_form.php
11 *
14 *              for both or you may lose some submitted data which won't be let through.
15 *      you should be using setType for every form element except select, radio or checkbox
16 *              elements, these elements clean themselves.
28//setup.php icludes our hacked pear libs first
29require_once 'HTML/QuickForm.php';
30require_once 'HTML/QuickForm/DHTMLRulesTableless.php';
mysql.php https://github.com/joechrysler/Campsite.git | PHP | 4,827 lines
1<?php
2
19
20// cvs-info: $Id: mysql.php 1039 2006-05-10 16:01:56Z brian $
21
30 *    all tables for a Phorum install should be prefixed with the
31 *    table_prefix that will be entered in include/db/config.php.  This
32 *    will allow multiple Phorum installations to use the same database.
86
87    settype($offset, "int");
88
248    $PHORUM = $GLOBALS["PHORUM"];
249    settype($count, "int");
250    settype($thread, "int");
289        }
290        settype($forum_id, "int");
291    }
mysqli.php https://github.com/joechrysler/Campsite.git | PHP | 4,366 lines
1<?php
2
19
20// cvs-info: $Id: mysqli.php 952 2006-03-23 22:08:59Z ts77 $
21
30 *    all tables for a Phorum install should be prefixed with the
31 *    table_prefix that will be entered in include/db/config.php.  This
32 *    will allow multiple Phorum installations to use the same database.
87
88    settype($offset, "int");
89
244    $PHORUM = $GLOBALS["PHORUM"];
245    settype($count, "int");
246    settype($forum_id, "int");
246    settype($forum_id, "int");
247    settype($thread, "int");
248    $arr = array();
forms.php https://gitlab.com/dan7/moodle.git | PHP | 510 lines
1<?php
2
33
34require_once($CFG->libdir . '/formslib.php');
35require_once($CFG->dirroot . '/' . $CFG->admin . '/registration/lib.php');
51                ' ' . get_string('unpublishalladvertisedcourses', 'hub'));
52        $mform->setType('unpublishalladvertisedcourses', PARAM_INT);
53        $mform->addElement('checkbox', 'unpublishalluploadedcourses', '',
54                ' ' . get_string('unpublishalluploadedcourses', 'hub'));
55        $mform->setType('unpublishalluploadedcourses', PARAM_INT);
56
57        $mform->addElement('hidden', 'confirm', 1);
58        $mform->setType('confirm', PARAM_INT);
59        $mform->addElement('hidden', 'unregistration', 1);
59        $mform->addElement('hidden', 'unregistration', 1);
60        $mform->setType('unregistration', PARAM_INT);
61        $mform->addElement('hidden', 'huburl', $huburl);
Controls.php http://vlc-shares.googlecode.com/svn/trunk/ | PHP | 315 lines
1<?php
2
2
3require_once 'X/VlcShares.php';
4require_once 'X/VlcShares/Plugins/Abstract.php';
4require_once 'X/VlcShares/Plugins/Abstract.php';
5require_once 'Zend/Controller/Action.php';
6require_once 'Zend/Config.php';
59			$item = new X_Page_Item_PItem('controls-stop', X_Env::_('p_controls_stop'));
60			$item->setType(X_Page_Item_PItem::TYPE_ELEMENT)
61				->setIcon('/images/icons/stop.png')
75				$item = new X_Page_Item_PItem('controls-pauseresume', X_Env::_('p_controls_pauseresume'));
76				$item->setType(X_Page_Item_PItem::TYPE_ELEMENT)
77					->setIcon('/images/icons/pause.png')
88				$item = new X_Page_Item_PItem('controls-forwardcustom', X_Env::_('p_controls_forwardcustom'));
89				$item->setType(X_Page_Item_PItem::TYPE_REQUEST)
90					->setIcon('/images/icons/forward.png')
fUpload.php https://bitbucket.org/wbond/flourish/ | PHP | 700 lines
1<?php
2/**
163	 */
164	private $allow_php = FALSE;
165	
244	/**
245	 * Sets the upload class to allow PHP files
246	 * 
248	 */
249	public function allowPHP()
250	{
250	{
251		$this->allow_php = TRUE;
252	}
608			$file_info = fFilesystem::getPathInfo($file_array['name']);
609			if (in_array(strtolower($file_info['extension']), array('php', 'php4', 'php5'))) {
610				return self::compose('The file uploaded is a PHP file, but those are not permitted');
user_form.php git://github.com/moodle/moodle.git | PHP | 437 lines
1<?php
2// This file is part of Moodle - http://moodle.org/
27
28require_once $CFG->libdir.'/formslib.php';
29require_once($CFG->dirroot . '/user/editlib.php');
66        $mform->addElement('select', 'previewrows', get_string('rowpreviewnum', 'tool_uploaduser'), $choices);
67        $mform->setType('previewrows', PARAM_INT);
68
151        }
152        $mform->setType('uunoemailduplicates', PARAM_BOOL);
153
214        $mform->addElement('text', 'username', get_string('uuusernametemplate', 'tool_uploaduser'), 'size="20"');
215        $mform->setType('username', PARAM_RAW); // No cleaning here. The process verifies it later.
216        $mform->addRule('username', get_string('requiredtemplate', 'tool_uploaduser'), 'required', null, 'client');
221        $mform->addElement('text', 'email', get_string('email'), 'maxlength="100" size="30"');
222        $mform->setType('email', PARAM_RAW); // No cleaning here. The process verifies it later.
223        $mform->hideIf('email', 'uutype', 'eq', UU_USER_ADD_UPDATE);
forms.php git://github.com/moodle/moodle.git | PHP | 340 lines
1<?php
2
24 */
25require_once $CFG->libdir . '/formslib.php';
26
42        $mform->addHelpButton('iprestriction', 'iprestriction', 'webservice');
43        $mform->setType('iprestriction', PARAM_RAW_TRIMMED);
44
47        $mform->addHelpButton('validuntil', 'validuntil', 'webservice');
48        $mform->setType('validuntil', PARAM_INT);
49
67        $mform->addRule('name', get_string('required'), 'required', null, 'client');
68        $mform->setType('name', PARAM_TEXT);
69
70        $mform->addElement('text', 'shortname', get_string('shortname'), 'maxlength="255" size="20"');
71        $mform->setType('shortname', PARAM_TEXT);
72        if (!empty($service->id)) {
forms.php git://github.com/moodle/moodle.git | PHP | 328 lines
1<?php
2// This file is part of Moodle - http://moodle.org/
28// make sure we include moodleform first!
29require_once ($CFG->libdir.'/formslib.php');
30
56        $mform->addElement('hidden', 'instance', $this->_customdata['instance']->get('id'));
57        $mform->setType('instance', PARAM_INT);
58        $mform->setType('stage', PARAM_INT);
58        $mform->setType('stage', PARAM_INT);
59        $mform->setType('id', PARAM_INT);
60
70                $mform->addElement('hidden', 'format', $f);
71                $mform->setType('format', PARAM_RAW);
72            }
89            }
90            $mform->setType('wait', PARAM_INT);
91        }
BaseCpu.php http://pumukit.googlecode.com/svn/trunk/ | PHP | 1,744 lines
1<?php
2
229
230		// Since the native PHP type for this column is integer,
231		// we will cast the input value to an int (if it is not).
251
252		// Since the native PHP type for this column is string,
253		// we will cast the input to a string (if it is not).
273
274		// Since the native PHP type for this column is integer,
275		// we will cast the input value to an int (if it is not).
295
296		// Since the native PHP type for this column is integer,
297		// we will cast the input value to an int (if it is not).
317
318		// Since the native PHP type for this column is integer,
319		// we will cast the input value to an int (if it is not).
a2107c262e7d844996c23421a8f4590a61f3986a.file.blockcms.tpl.php http://marocmall.googlecode.com/svn/trunk/ | PHP | 110 lines
60				<?php }} ?>
61				<?php if ($_smarty_tpl->tpl_vars['cms_title']->value['display_store']){?><li><a href="<?php echo $_smarty_tpl->getVariable('link')->value->getPageLink('stores.php');?>
62" title="<?php echo smartyTranslate(array('s'=>'Our stores','mod'=>'blockcms'),$_smarty_tpl);?>
72	<ul>
73		<?php if (!$_smarty_tpl->getVariable('PS_CATALOG_MODE')->value){?><li class="first_item"><a href="<?php echo $_smarty_tpl->getVariable('link')->value->getPageLink('prices-drop.php');?>
74" title="<?php echo smartyTranslate(array('s'=>'Specials','mod'=>'blockcms'),$_smarty_tpl);?>
76</a></li><?php }?>
77		<li class="<?php if ($_smarty_tpl->getVariable('PS_CATALOG_MODE')->value){?>first_<?php }?>item"><a href="<?php echo $_smarty_tpl->getVariable('link')->value->getPageLink('new-products.php');?>
78" title="<?php echo smartyTranslate(array('s'=>'New products','mod'=>'blockcms'),$_smarty_tpl);?>
80</a></li>
81		<?php if (!$_smarty_tpl->getVariable('PS_CATALOG_MODE')->value){?><li class="item"><a href="<?php echo $_smarty_tpl->getVariable('link')->value->getPageLink('best-sales.php');?>
82" title="<?php echo smartyTranslate(array('s'=>'Top sellers','mod'=>'blockcms'),$_smarty_tpl);?>
84</a></li><?php }?>
85		<?php if ($_smarty_tpl->getVariable('display_stores_footer')->value){?><li class="item"><a href="<?php echo $_smarty_tpl->getVariable('link')->value->getPageLink('stores.php');?>
86" title="<?php echo smartyTranslate(array('s'=>'Our stores','mod'=>'blockcms'),$_smarty_tpl);?>
a062d9fcfdfc8eee4db2c2e06da78867f483f53e.file.blockcart-json.tpl.php http://marocmall.googlecode.com/svn/trunk/ | PHP | 207 lines
46		"priceByLine":   "<?php if ($_smarty_tpl->getVariable('priceDisplay')->value==@PS_TAX_EXC){?><?php ob_start();?><?php echo Product::displayWtPrice(array('p'=>$_smarty_tpl->tpl_vars['product']->value['total']),$_smarty_tpl);?>
47<?php echo html_entity_decode(ob_get_clean(),2,'UTF-8')?><?php }else{ ?><?php ob_start();?><?php echo Product::displayWtPrice(array('p'=>$_smarty_tpl->tpl_vars['product']->value['total_wt']),$_smarty_tpl);?>
48<?php echo html_entity_decode(ob_get_clean(),2,'UTF-8')?><?php }?>",
51		"price":         "<?php if ($_smarty_tpl->getVariable('priceDisplay')->value==@PS_TAX_EXC){?><?php ob_start();?><?php echo Product::displayWtPrice(array('p'=>$_smarty_tpl->tpl_vars['product']->value['total']),$_smarty_tpl);?>
52<?php echo html_entity_decode(ob_get_clean(),2,'UTF-8')?><?php }else{ ?><?php ob_start();?><?php echo Product::displayWtPrice(array('p'=>$_smarty_tpl->tpl_vars['product']->value['total_wt']),$_smarty_tpl);?>
53<?php echo html_entity_decode(ob_get_clean(),2,'UTF-8')?><?php }?>",
62<?php }?>
63		"hasCustomizedDatas": <?php if (isset($_smarty_tpl->getVariable('customizedDatas',null,true,false)->value[$_smarty_tpl->getVariable('productId',null,true,false)->value][$_smarty_tpl->getVariable('productAttributeId',null,true,false)->value])){?>true<?php }else{ ?>false<?php }?>,
64
131
132	}<?php if (!$_smarty_tpl->getVariable('smarty')->value['foreach']['products']['last']){?>,<?php }?>
133<?php }} ?><?php }?>
159		"price":           "-<?php if ($_smarty_tpl->tpl_vars['discount']->value['value_real']!='!'){?><?php if ($_smarty_tpl->getVariable('priceDisplay')->value==1){?><?php ob_start();?><?php echo Product::convertPrice(array('price'=>$_smarty_tpl->tpl_vars['discount']->value['value_tax_exc']),$_smarty_tpl);?>
160<?php echo html_entity_decode(ob_get_clean(),2,'UTF-8')?><?php }else{ ?><?php ob_start();?><?php echo Product::convertPrice(array('price'=>$_smarty_tpl->tpl_vars['discount']->value['value_real']),$_smarty_tpl);?>
161<?php echo html_entity_decode(ob_get_clean(),2,'UTF-8')?><?php }?><?php }?>"
%%D5^D5A^D5A4A083%%blockcms.tpl.php http://marocmall.googlecode.com/svn/trunk/ | PHP | 81 lines
35				<?php endforeach; endif; unset($_from); ?>
36				<?php if ($this->_tpl_vars['cms_title']['display_store']): ?><li><a href="<?php echo $this->_tpl_vars['link']->getPageLink('stores.php'); ?>
37" title="<?php echo smartyTranslate(array('s' => 'Our stores','mod' => 'blockcms'), $this);?>
46	<ul class="block_various_links" id="block_various_links_footer">
47		<?php if (! $this->_tpl_vars['PS_CATALOG_MODE']): ?><li class="first_item"><a href="<?php echo $this->_tpl_vars['link']->getPageLink('prices-drop.php'); ?>
48" title="<?php echo smartyTranslate(array('s' => 'Specials','mod' => 'blockcms'), $this);?>
50</a></li><?php endif; ?>
51		<li class="<?php if ($this->_tpl_vars['PS_CATALOG_MODE']): ?>first_<?php endif; ?>item"><a href="<?php echo $this->_tpl_vars['link']->getPageLink('new-products.php'); ?>
52" title="<?php echo smartyTranslate(array('s' => 'New products','mod' => 'blockcms'), $this);?>
54</a></li>
55		<?php if (! $this->_tpl_vars['PS_CATALOG_MODE']): ?><li class="item"><a href="<?php echo $this->_tpl_vars['link']->getPageLink('best-sales.php'); ?>
56" title="<?php echo smartyTranslate(array('s' => 'Top sellers','mod' => 'blockcms'), $this);?>
58</a></li><?php endif; ?>
59		<?php if ($this->_tpl_vars['display_stores_footer']): ?><li class="item"><a href="<?php echo $this->_tpl_vars['link']->getPageLink('stores.php'); ?>
60" title="<?php echo smartyTranslate(array('s' => 'Our stores','mod' => 'blockcms'), $this);?>
%%21^21A^21A8D873%%blockcms.tpl.php http://marocmall.googlecode.com/svn/trunk/ | PHP | 82 lines
35				<?php endforeach; endif; unset($_from); ?>
36				<?php if ($this->_tpl_vars['cms_title']['display_store']): ?><li><a href="<?php echo $this->_tpl_vars['link']->getPageLink('stores.php'); ?>
37" title="<?php echo smartyTranslate(array('s' => 'Our stores','mod' => 'blockcms'), $this);?>
47	<ul>
48		<?php if (! $this->_tpl_vars['PS_CATALOG_MODE']): ?><li class="first_item"><a href="<?php echo $this->_tpl_vars['link']->getPageLink('prices-drop.php'); ?>
49" title="<?php echo smartyTranslate(array('s' => 'Specials','mod' => 'blockcms'), $this);?>
51</a></li><?php endif; ?>
52		<li class="<?php if ($this->_tpl_vars['PS_CATALOG_MODE']): ?>first_<?php endif; ?>item"><a href="<?php echo $this->_tpl_vars['link']->getPageLink('new-products.php'); ?>
53" title="<?php echo smartyTranslate(array('s' => 'New products','mod' => 'blockcms'), $this);?>
55</a></li>
56		<?php if (! $this->_tpl_vars['PS_CATALOG_MODE']): ?><li class="item"><a href="<?php echo $this->_tpl_vars['link']->getPageLink('best-sales.php'); ?>
57" title="<?php echo smartyTranslate(array('s' => 'Top sellers','mod' => 'blockcms'), $this);?>
59</a></li><?php endif; ?>
60		<?php if ($this->_tpl_vars['display_stores_footer']): ?><li class="item"><a href="<?php echo $this->_tpl_vars['link']->getPageLink('stores.php'); ?>
61" title="<?php echo smartyTranslate(array('s' => 'Our stores','mod' => 'blockcms'), $this);?>
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21