PageRenderTime 830ms queryFilters 0ms Sphinxql 181ms GetByIds 512ms meta 0ms repositoryFilters 47ms languageFilters 1ms sourceFilters 17ms

19,526 results for 'php settype' (830 ms)

Source

Language

Repository

Smarty.class.php https://github.com/isold/longyu.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;
Smarty.class.php https://github.com/isold/longyu.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;
Smarty.class.php https://bitbucket.org/nwest/hnh-job-board.git | PHP | 1,961 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
1465        $smarty_compiler->caching           = $this->caching;
1466        $smarty_compiler->php_handling      = $this->php_handling;
1467        $smarty_compiler->left_delimiter    = $this->left_delimiter;
formslib.php https://bitbucket.org/ciceidev/cicei_moodle_conditional_activities.git | PHP | 1,957 lines
1<?php // $Id$
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.
27
28//setup.php icludes our hacked pear libs first
29require_once 'HTML/QuickForm.php';
Smarty.class.php https://bitbucket.org/ciceidev/cicei_moodle_conditional_activities.git | PHP | 1,961 lines
56define('SMARTY_PHP_PASSTHRU',   0);
57define('SMARTY_PHP_QUOTE',      1);
58define('SMARTY_PHP_REMOVE',     2);
58define('SMARTY_PHP_REMOVE',     2);
59define('SMARTY_PHP_ALLOW',      3);
60
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
1465        $smarty_compiler->caching           = $this->caching;
1466        $smarty_compiler->php_handling      = $this->php_handling;
1467        $smarty_compiler->left_delimiter    = $this->left_delimiter;
Smarty.class.php https://bitbucket.org/Libertus/food-journal.git | PHP | 1,960 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;
phplot.php https://bitbucket.org/flth/xtcm.git | PHP | 2,536 lines
1<?php
2  /* --------------------------------------------------------------
2  /* --------------------------------------------------------------
3   $Id: phplot.php 1927 2011-05-10 10:51:11Z dokuman $
4
11   (c) 2000-2001 The Exchange Project  (earlier name of osCommerce)
12   (c) 2002-2003 osCommerce(phplot.php,v 1.1 2002/05/07); www.oscommerce.com
13   (c) 2003 nextcommerce (phplot.php,v 1.4 2003/08/14); www.nextcommerce.org
13   (c) 2003 nextcommerce (phplot.php,v 1.4 2003/08/14); www.nextcommerce.org
14   (c) 2006 xt-commerce (phplot.php 950 2005-05-14)
15
17
18   PHPLOT 4.4.6 Copyright (c) 1998-2001 Afan Ottenheimer
19   --------------------------------------------------------------*/
20  defined( '_VALID_XTC' ) or die( 'Direct Access to this location is not allowed.' );
21  class PHPlot {
22    var $is_inline = 0;        //0 = Sends headers, 1 = sends just raw image data
forms.php https://bitbucket.org/moodle/moodle.git | PHP | 395 lines
1<?php
2
33
34require_once($CFG->libdir . '/formslib.php');
35require_once($CFG->dirroot . "/" . $CFG->admin . "/registration/lib.php");
35require_once($CFG->dirroot . "/" . $CFG->admin . "/registration/lib.php");
36require_once($CFG->dirroot . "/course/publish/lib.php");
37
61            $mform->addElement('hidden', clean_param($hub->huburl, PARAM_ALPHANUMEXT), $hubname);
62            $mform->setType(clean_param($hub->huburl, PARAM_ALPHANUMEXT), PARAM_ALPHANUMEXT);
63            if (empty($hubname)) {
72        $mform->addElement('hidden', 'id', $this->_customdata['id']);
73        $mform->setType('id', PARAM_INT);
74
77            $mform->addElement('hidden', 'share', true);
78            $mform->setType('share', PARAM_BOOL);
79        } else {
function.settype.html https://github.com/tsujita/dotfiles.git | HTML | 160 lines
11 <div class="up"><a href="ref.var.html">変数操作 関数</a></div>
12 <div class="home"><a href="index.html">PHP Manual</a></div>
13</div><hr /><div id="function.settype" class="refentry">
15  <h1 class="refname">settype</h1>
16  <p class="verinfo">(PHP 4, PHP 5)</p><p class="refpurpose"><span class="refname">settype</span> &mdash; <span class="dc-title">変数の型をセットする</span></p>
17
19
20 <div class="refsect1 description" id="refsect1-function.settype-description">
21  <h3 class="title">説明</h3>
22  <div class="methodsynopsis dc-description">
23   <span class="type">bool</span> <span class="methodname"><strong>settype</strong></span>
24    ( <span class="methodparam"><span class="type"><a href="language.pseudo-types.html#language.types.mixed" class="type mixed">mixed</a></span> <code class="parameter reference">&$var</code></span>
122<div class="phpcode"><code><span style="color: #000000">
123<span style="color: #0000BB">&lt;?php<br />$foo&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">"5bar"</span><span style="color: #007700">;&nbsp;</span><span style="color: #FF8000">//&nbsp;string<br /></span><span style="color: #0000BB">$bar&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">true</span><span style="color: #007700">;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;boolean<br /><br /></span><span style="color: #0000BB">settype</span><span style="color: #007700">(</span><span style="color: #0000BB">$foo</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"integer"</span><span style="color: #007700">);&nbsp;</span><span style="color: #FF8000">//&nbsp;ここでは、$foo&nbsp;は&nbsp;5です&nbsp;(整数)<br /></span><span style="color: #0000BB">settype</span><span style="color: #007700">(</span><span style="color: #0000BB">$bar</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"string"</span><span style="color: #007700">);&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;ここでは、$bar&nbsp;は&nbsp;"1"&nbsp;です&nbsp;(文字列)<br /></span><span style="color: #0000BB">?&gt;</span>
124</span>
LoadPageData.php https://github.com/Bartelbabay/sonata-sandbox.git | PHP | 1,192 lines
1<?php
2
265        $content->addChildren($newProductsBlock = $blockManager->create());
266        $newProductsBlock->setType('sonata.product.block.recent_products');
267        $newProductsBlock->setSetting('number', 4);
292        $bottomNewsletter->addChildren($newsletter = $blockManager->create());
293        $newsletter->setType('sonata.demo.block.newsletter');
294        $newsletter->setPosition(1);
477    <ul>
478        <li><a href="http://symfony.com" title="Symfony, PHP framework official website">Symfony 2</a>, the PHP framework for web projects (Code licensed under MIT),</li>
479        <li><a href="http://twig.sensiolabs.org" title="Twig, PHP template engine">Twig</a>, the PHP template engine (Code licensed under the new BSD license),</li>
479        <li><a href="http://twig.sensiolabs.org" title="Twig, PHP template engine">Twig</a>, the PHP template engine (Code licensed under the new BSD license),</li>
480        <li><a href="http://www.doctrine-project.org" title="Doctrine, PHP ORM">Doctrine</a>, the PHP ORM.</li>
481    </ul>
497        <li><a href="https://travis-ci.org" title="Travis CI, continuous integration tool">Travis CI</a></li>
498        <li><a href="http://phpunit.de" title="PHPUnit, PHP unit testing library">PHPUnit</a></li>
499        <li><a href="http://behat.org" title="Behat, test driven development tool">Behat</a></li>
formslib_test.php https://bitbucket.org/synergylearning/campusconnect.git | PHP | 821 lines
1<?php
2// This file is part of Moodle - http://moodle.org/
17/**
18 * Unit tests for /lib/formslib.php.
19 *
20 * @package   core_form
21 * @category  phpunit
22 * @copyright 2011 Sam Hemelryk
28global $CFG;
29require_once($CFG->libdir . '/formslib.php');
30require_once($CFG->libdir . '/form/radio.php');
30require_once($CFG->libdir . '/form/radio.php');
31require_once($CFG->libdir . '/form/select.php');
32require_once($CFG->libdir . '/form/text.php');
126
127        require_once('HTML/QuickForm/Rule/Range.php'); // Requires this pear stuff.
128
Article.php https://github.com/joechrysler/Campsite.git | PHP | 2,950 lines
1<?php
2/**
8 */
9require_once($GLOBALS['g_campsiteDir'].'/db_connect.php');
10require_once($GLOBALS['g_campsiteDir'].'/classes/DatabaseObject.php');
10require_once($GLOBALS['g_campsiteDir'].'/classes/DatabaseObject.php');
11require_once($GLOBALS['g_campsiteDir'].'/classes/DbObjectArray.php');
12require_once($GLOBALS['g_campsiteDir'].'/classes/ArticleData.php');
12require_once($GLOBALS['g_campsiteDir'].'/classes/ArticleData.php');
13require_once($GLOBALS['g_campsiteDir'].'/classes/Log.php');
14require_once($GLOBALS['g_campsiteDir'].'/classes/Language.php');
14require_once($GLOBALS['g_campsiteDir'].'/classes/Language.php');
15require_once($GLOBALS['g_campsiteDir'].'/classes/CampCacheList.php');
16
142    	if ($this->exists()) {
143    		settype($this->m_data['IdPublication'], 'integer');
144    		settype($this->m_data['NrIssue'], 'integer');
formslib_test.php https://github.com/dongsheng/moodle.git | PHP | 825 lines
1<?php
2// This file is part of Moodle - http://moodle.org/
17/**
18 * Unit tests for /lib/formslib.php.
19 *
20 * @package   core_form
21 * @category  phpunit
22 * @copyright 2011 Sam Hemelryk
28global $CFG;
29require_once($CFG->libdir . '/formslib.php');
30require_once($CFG->libdir . '/form/radio.php');
30require_once($CFG->libdir . '/form/radio.php');
31require_once($CFG->libdir . '/form/select.php');
32require_once($CFG->libdir . '/form/text.php');
130
131        require_once('HTML/QuickForm/Rule/Range.php'); // Requires this pear stuff.
132
Extended.php http://kv-webme.googlecode.com/svn/trunk/ | PHP | 714 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,v 1.58 2007/01/06 21:40:52 quipo Exp $
46
303
304        settype($params, 'array');
305        if (empty($params)) {
347
348        settype($params, 'array');
349        settype($type, 'array');
GoGoCinema.php http://vlc-shares.googlecode.com/svn/trunk/ | PHP | 766 lines
1<?php
2
2
3require_once 'X/VlcShares/Plugins/Abstract.php';
4require_once 'Zend/Dom/Query.php';
53			->setDescription(X_Env::_('p_gogocinema_collectionindex_desc'))
54			->setType(X_Page_Item_PItem::TYPE_CONTAINER)
55			->setLink(
79		
80		//$baseUrl = $this->config('base.url', 'http://www.gogocinema.net/mediacenter/index.php?page=ajax_show_folder&id=');
81		
184			$link->setIcon('/images/icons/play.png')
185				->setType(X_Page_Item_PItem::TYPE_PLAYABLE)
186				->setLink($url);
196			$link->setIcon('/images/msg_error.png')
197				->setType(X_Page_Item_PItem::TYPE_ELEMENT)
198				->setLink(array (
AnimeDb.php http://vlc-shares.googlecode.com/svn/trunk/ | PHP | 790 lines
1<?php
2
2
3require_once 'Zend/Http/CookieJar.php';
4require_once 'Zend/Http/Cookie.php';
4require_once 'Zend/Http/Cookie.php';
5require_once 'X/VlcShares/Plugins/Abstract.php';
6require_once 'Zend/Dom/Query.php';
54			->setDescription(X_Env::_('p_animedb_collectionindex_desc'))
55			->setType(X_Page_Item_PItem::TYPE_CONTAINER)
56			->setLink(
160			$link->setIcon('/images/icons/play.png')
161				->setType(X_Page_Item_PItem::TYPE_PLAYABLE)
162				->setLink($url);
172			$link->setIcon('/images/msg_error.png')
173				->setType(X_Page_Item_PItem::TYPE_ELEMENT)
174				->setLink(array (
Extended.php https://bitbucket.org/chamilo/chamilo/ | PHP | 721 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
309
310        settype($params, 'array');
311        if (empty($params)) {
353
354        settype($params, 'array');
355        settype($type, 'array');
mod_form.php http://swf-activity-module.googlecode.com/svn/trunk/ | PHP | 365 lines
1<?php //$Id: mod_form.php,v 1.0 2009/09/28 matbury Exp $
2
67
68require_once ('moodleform_mod.php');
69
85        $mform->addElement('text', 'name', get_string('swfname', 'swf'), array('size'=>'64'));
86		$mform->setType('name', PARAM_TEXT);
87		$mform->addRule('name', null, 'required', null, 'client');
89    	$mform->addElement('htmleditor', 'intro', get_string('swfintro', 'swf'));
90		$mform->setType('intro', PARAM_RAW);
91		$mform->setDefault('intro', 'intro');
97	
98	// Example from: http://docs.moodle.org/en/Development:lib/formslib.php_Form_Definition
99	// REQUIRED header
167	$mform->addElement('text', 'name1', get_string("name", "swf"), $swf_flashvars_name);
168	$mform->setType('name1', PARAM_NOTAGS);
169	// value1
editlib.php git://github.com/moodle/moodle.git | PHP | 509 lines
1<?php
2// This file is part of Moodle - http://moodle.org/
24
25require_once($CFG->dirroot . '/user/lib.php');
26
61        if (empty($SESSION->wantsurl)) {
62            $SESSION->wantsurl = $CFG->wwwroot.'/user/preferences.php';
63        }
84        }
85        redirect($CFG->wwwroot . "/user/view.php?course={$course->id}");
86    }
226    if ((!isset($user->trackforums) || ($usernew->trackforums != $user->trackforums)) and !$usernew->trackforums) {
227        require_once($CFG->dirroot.'/mod/forum/lib.php');
228        forum_tp_delete_read_records($usernew->id);
270        $mform->addRule($fullname, $strmissingfield, 'required', null, 'client');
271        $mform->setType($fullname, PARAM_NOTAGS);
272    }
mod_form.php http://swf-activity-module.googlecode.com/svn/trunk/ | text | 0 lines
1<?php //$Id: mod_form.php,v 1.0 2009/09/28 matbury Exp $
2
67
68require_once ('moodleform_mod.php');
69
84        $mform->addElement('text', 'name', get_string('swfname', 'swf'), array('size'=>'64'));
85		$mform->setType('name', PARAM_TEXT);
86		$mform->addRule('name', null, 'required', null, 'client');
88    	$mform->addElement('htmleditor', 'intro', get_string('swfintro', 'swf'));
89		$mform->setType('intro', PARAM_RAW);
90		$mform->addRule('intro', get_string('required'), 'required', null, 'client');
95	
96	// Example from: http://docs.moodle.org/en/Development:lib/formslib.php_Form_Definition
97	// REQUIRED header
137	$mform->addElement('text', 'name1', get_string("name", "swf"), $swf_flashvars_name);
138	$mform->setType('name1', PARAM_NOTAGS);
139	// value1
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21