PageRenderTime 988ms queryFilters 0ms Sphinxql 213ms GetByIds 712ms meta 0ms repositoryFilters 15ms languageFilters 0ms sourceFilters 1ms

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

Source

Language

Repository

mod_form.php git://github.com/moodle/moodle.git | PHP | 580 lines
1<?php
2// This file is part of Moodle - http://moodle.org/
20
21require_once($CFG->dirroot.'/course/moodleform_mod.php');
22require_once($CFG->dirroot.'/mod/scorm/locallib.php');
40        if (!empty($CFG->formatstringstriptags)) {
41            $mform->setType('name', PARAM_TEXT);
42        } else {
42        } else {
43            $mform->setType('name', PARAM_CLEANHTML);
44        }
72            $mform->addElement('select', 'scormtype', get_string('scormtype', 'scorm'), $scormtypes);
73            $mform->setType('scormtype', PARAM_ALPHA);
74            $mform->addHelpButton('scormtype', 'scormtype', 'scorm');
75            $mform->addElement('text', 'packageurl', get_string('packageurl', 'scorm'), array('size' => 60));
76            $mform->setType('packageurl', PARAM_RAW);
77            $mform->addHelpButton('packageurl', 'packageurl', 'scorm');
Photos.php git://github.com/moodle/moodle.git | PHP | 577 lines
1<?php
2
26 */
27require_once 'Zend/Gdata.php';
28
31 */
32require_once 'Zend/Gdata/Photos/UserFeed.php';
33
36 */
37require_once 'Zend/Gdata/Photos/AlbumFeed.php';
38
41 */
42require_once 'Zend/Gdata/Photos/PhotoFeed.php';
43
152        if ($location instanceof Zend_Gdata_Photos_UserQuery) {
153            $location->setType('feed');
154            if ($userName !== null) {
AchatService.php http://zeybux.googlecode.com/svn/trunk/ | PHP | 884 lines
1<?php
2//****************************************************************
5// Date de creation : 22/07/2011
6// Fichier : AchatService.php
7//
12// Inclusion des classes
13/*include_once(CHEMIN_CLASSES_MANAGERS . "ReservationManager.php");
14include_once(CHEMIN_CLASSES_MANAGERS . "HistoriqueReservationManager.php");
14include_once(CHEMIN_CLASSES_MANAGERS . "HistoriqueReservationManager.php");
15include_once(CHEMIN_CLASSES_VALIDATEUR . "ReservationValid.php");
16include_once(CHEMIN_CLASSES_SERVICE . "CompteService.php" );*/
16include_once(CHEMIN_CLASSES_SERVICE . "CompteService.php" );*/
17include_once(CHEMIN_CLASSES_VO . "AchatVO.php");
18include_once(CHEMIN_CLASSES_VO . "ListeAchatReservationVO.php");
18include_once(CHEMIN_CLASSES_VO . "ListeAchatReservationVO.php");
19include_once(CHEMIN_CLASSES_SERVICE . "StockService.php" );
20include_once(CHEMIN_CLASSES_SERVICE . "DetailOperationService.php" );
jpgraph.php https://squirrelmail.svn.sourceforge.net/svnroot/squirrelmail | PHP | 6,946 lines
1<?php 
2//=======================================================================
6// Author:	Johan Persson (johanp@aditus.nu)
7// Ver:		$Id: jpgraph.php 8819 2005-02-08 11:35:07Z tokul $
8//
19// define (furter down) is false. If you enable the cache please note that
20// this directory MUST be readable and writable for the process running PHP. 
21// Must end with '/'
30// using the cache.
31// The directory must be the filesysystem name as seen by PHP
32// and the 'http' version must be the same directory but as 
352if( isset($GLOBALS['php_errormsg']) ) {
353    JpGraphError::Raise("<b>General PHP error:</b><br>".$GLOBALS['php_errormsg']);
354}
421    if( !isset($HTTP_SERVER_VARS['PHP_SELF']) )
422	JpGraphError::Raise(" Can't access PHP_SELF, PHP global variable. You can't run PHP from command line
423		if you want to use the 'auto' naming of cache or image files.");
AchatService.php http://zeybux.googlecode.com/svn/trunk/ | text | 0 lines
1<?php
2//****************************************************************
5// Date de creation : 22/07/2011
6// Fichier : AchatService.php
7//
12// Inclusion des classes
13/*include_once(CHEMIN_CLASSES_MANAGERS . "ReservationManager.php");
14include_once(CHEMIN_CLASSES_MANAGERS . "HistoriqueReservationManager.php");
14include_once(CHEMIN_CLASSES_MANAGERS . "HistoriqueReservationManager.php");
15include_once(CHEMIN_CLASSES_VALIDATEUR . "ReservationValid.php");
16include_once(CHEMIN_CLASSES_SERVICE . "CompteService.php" );*/
16include_once(CHEMIN_CLASSES_SERVICE . "CompteService.php" );*/
17include_once(CHEMIN_CLASSES_VO . "AchatVO.php");
18include_once(CHEMIN_CLASSES_VO . "ListeAchatReservationVO.php");
18include_once(CHEMIN_CLASSES_VO . "ListeAchatReservationVO.php");
19include_once(CHEMIN_CLASSES_SERVICE . "StockService.php" );
20include_once(CHEMIN_CLASSES_SERVICE . "DetailOperationService.php" );
jpgraph.php https://squirrelmail.svn.sourceforge.net/svnroot/squirrelmail | text | 0 lines
1<?php 
2//=======================================================================
30// using the cache.
31// The directory must be the filesysystem name as seen by PHP
32// and the 'http' version must be the same directory but as 
352if( isset($GLOBALS['php_errormsg']) ) {
353    JpGraphError::Raise("<b>General PHP error:</b><br>".$GLOBALS['php_errormsg']);
354}
421    if( !isset($HTTP_SERVER_VARS['PHP_SELF']) )
422	JpGraphError::Raise(" Can't access PHP_SELF, PHP global variable. You can't run PHP from command line
423		if you want to use the 'auto' naming of cache or image files.");
4125	    if( !function_exists('imagettfbbox') ) {
4126		JpGraphError::Raise('This PHP build has not been configured with TTF support. You need to recompile your PHP installation with FreeType support.');
4127		exit();
5555		if( !is_writeable(dirname($aCacheFileName)) ) {
5556		    JpGraphError::Raise('PHP has not enough permissions to write to the cache file '.$aCacheFileName.'. Please make sure that the user running PHP has write permission for this file if you wan to use the cache system with JpGraph.');
5557		}
jpgraph.php http://eveow.googlecode.com/svn/trunk/ | PHP | 5,907 lines
192//
193if( !CheckPHPVersion(MIN_PHPVERSION) ) {
194    JpGraphError::RaiseL(13,PHP_VERSION,MIN_PHPVERSION);
220    JpGraphError::RaiseL(25002);
221//(" Your PHP installation does not seem to have the required GD 2.x library. Please see the PHP documentation on how to install and enable the GD library.");
222}
240//
241if( isset($GLOBALS['php_errormsg']) && CATCH_PHPERRMSG && 
242    !preg_match('|Deprecated|', $GLOBALS['php_errormsg'])) {
264	JpGraphError::RaiseL(25005);
265//(" Can't access PHP_SELF, PHP global variable. You can't run PHP from command line if you want to use the 'auto' naming of cache or image files.");
266    $fname = basename($_SERVER['PHP_SELF']);
5056		if( !is_writeable(dirname($aCacheFileName)) ) {
5057		    JpGraphError::RaiseL(25114,$aCacheFileName);//('PHP has not enough permissions to write to the cache file '.$aCacheFileName.'. Please make sure that the user running PHP has write permission for this file if you wan to use the cache system with JpGraph.');
5058		}
jpgraph.php http://scalr.googlecode.com/svn/ | PHP | 7,839 lines
1<?php
2//=======================================================================
12require_once('jpgraph_gradient.php');
13require_once('jpgraph_errhandler.inc.php');
14require_once('jpgraph_ttf.inc.php');
201//
202if( !CheckPHPVersion(MIN_PHPVERSION) ) {
203    JpGraphError::RaiseL(13,PHP_VERSION,MIN_PHPVERSION);
211    JpGraphError::RaiseL(25001);
212//("This PHP installation is not configured with the GD library. Please recompile PHP with GD support to run JpGraph. (Neither function imagetypes() nor imagecreatefromstring() does exist)");
213}
232//
233if( isset($GLOBALS['php_errormsg']) && CATCH_PHPERRMSG && 
234    !preg_match('|Deprecated|', $GLOBALS['php_errormsg']) ) {
254	JpGraphError::RaiseL(25005);
255//(" Can't access PHP_SELF, PHP global variable. You can't run PHP from command line if you want to use the 'auto' naming of cache or image files.");
256    $fname = basename($_SERVER['PHP_SELF']);
jpgraph.php http://flaimo-php.googlecode.com/svn/trunk/ | PHP | 6,946 lines
1<?php 
2//=======================================================================
6// Author:	Johan Persson (johanp@aditus.nu)
7// Ver:		$Id: jpgraph.php,v 1.143 2002/10/30 10:25:50 aditus Exp $
8//
19// define (furter down) is false. If you enable the cache please note that
20// this directory MUST be readable and writable for the process running PHP. 
21// Must end with '/'
30// using the cache.
31// The directory must be the filesysystem name as seen by PHP
32// and the 'http' version must be the same directory but as 
352if( isset($GLOBALS['php_errormsg']) ) {
353    JpGraphError::Raise("<b>General PHP error:</b><br>".$GLOBALS['php_errormsg']);
354}
421    if( !isset($HTTP_SERVER_VARS['PHP_SELF']) )
422	JpGraphError::Raise(" Can't access PHP_SELF, PHP global variable. You can't run PHP from command line
423		if you want to use the 'auto' naming of cache or image files.");
enrol_form.php https://moodleazure.svn.codeplex.com/svn | PHP | 348 lines
1<?php // $Id: enrol_form.php,v 1.16.2.7 2009/11/19 10:15:21 skodak Exp $
2
26        $mform->addElement('hidden', 'id', $course->id);
27        $mform->setType('id', PARAM_INT);
28
29        $mform->addElement('hidden', 'paymentmethod', $paymentmethod);
30        $mform->setType('paymentmethod', PARAM_ALPHA);
31
40        $mform->addGroupRule('firstlastgrp', $firstlastnamegrprules);
41        $mform->setType('firstname', PARAM_ALPHANUM);
42        $mform->setType('lastname', PARAM_ALPHANUM);
48            $mform->addElement('passwordunmask', 'cc', get_string('ccno', 'enrol_authorize'), 'size="20"');
49            $mform->setType('cc', PARAM_ALPHANUM);
50            $mform->setDefault('cc', '');
121                $mform->addGroupRule('citystategrp', $citystategrprules);
122                $mform->setType('cccity', PARAM_ALPHANUM);
123                $mform->setType('ccstate', PARAM_ALPHANUM);
apiPlusService.php git://github.com/gkwelding/FuelPHP-Social-Package.git | PHP | 1,511 lines
1<?php
2/*
17
18require_once 'service/apiModel.php';
19require_once 'service/apiService.php';
19require_once 'service/apiService.php';
20require_once 'service/apiServiceRequest.php';
21
744  }
745  public function setType($type) {
746    $this->type = $type;
769  }
770  public function setType($type) {
771    $this->type = $type;
800  }
801  public function setType($type) {
802    $this->type = $type;
Photos.php git://github.com/jaequery/jien.git | PHP | 576 lines
1<?php
2
20 * @license    http://framework.zend.com/license/new-bsd     New BSD License
21 * @version    $Id: Photos.php 23805 2011-03-16 00:55:40Z tjohns $
22 */
26 */
27require_once 'Zend/Gdata.php';
28
31 */
32require_once 'Zend/Gdata/Photos/UserFeed.php';
33
36 */
37require_once 'Zend/Gdata/Photos/AlbumFeed.php';
38
41 */
42require_once 'Zend/Gdata/Photos/PhotoFeed.php';
43
Photos.php git://github.com/centurion-project/Centurion.git | PHP | 576 lines
1<?php
2
26 */
27//$1 'Zend/Gdata.php';
28
31 */
32//$1 'Zend/Gdata/Photos/UserFeed.php';
33
36 */
37//$1 'Zend/Gdata/Photos/AlbumFeed.php';
38
41 */
42//$1 'Zend/Gdata/Photos/PhotoFeed.php';
43
152        if ($location instanceof Zend_Gdata_Photos_UserQuery) {
153            $location->setType('feed');
154            if ($userName !== null) {
Abstract.php git://github.com/centurion-project/Centurion.git | PHP | 418 lines
1<?php
2/**
24 */
25//$1 'Zend/Locale.php';
26
29 */
30//$1 'Zend/Locale/Math.php';
31
34 */
35//$1 'Zend/Locale/Format.php';
36
94        if (isset($this->_units[$type]) === false) {
95            //$1 'Zend/Measure/Exception.php';
96            throw new Zend_Measure_Exception("Type ($type) is unknown");
121        if (empty($locale)) {
122            //$1 'Zend/Registry.php';
123            if (Zend_Registry::isRegistered('Zend_Locale') === true) {
Photos.php git://github.com/michael-romer/zf-boilerplate.git | PHP | 576 lines
1<?php
2
20 * @license    http://framework.zend.com/license/new-bsd     New BSD License
21 * @version    $Id: Photos.php 23805 2011-03-16 00:55:40Z tjohns $
22 */
26 */
27require_once 'Zend/Gdata.php';
28
31 */
32require_once 'Zend/Gdata/Photos/UserFeed.php';
33
36 */
37require_once 'Zend/Gdata/Photos/AlbumFeed.php';
38
41 */
42require_once 'Zend/Gdata/Photos/PhotoFeed.php';
43
Photos.php git://github.com/pmjones/php-framework-benchmarks.git | PHP | 576 lines
1<?php
2
20 * @license    http://framework.zend.com/license/new-bsd     New BSD License
21 * @version    $Id: Photos.php 23805 2011-03-16 00:55:40Z tjohns $
22 */
26 */
27require_once 'Zend/Gdata.php';
28
31 */
32require_once 'Zend/Gdata/Photos/UserFeed.php';
33
36 */
37require_once 'Zend/Gdata/Photos/AlbumFeed.php';
38
41 */
42require_once 'Zend/Gdata/Photos/PhotoFeed.php';
43
Photos.php git://github.com/pmjones/php-framework-benchmarks.git | PHP | 576 lines
1<?php
2
20 * @license    http://framework.zend.com/license/new-bsd     New BSD License
21 * @version    $Id: Photos.php 20096 2010-01-06 02:05:09Z bkarwin $
22 */
26 */
27require_once 'Zend/Gdata.php';
28
31 */
32require_once 'Zend/Gdata/Photos/UserFeed.php';
33
36 */
37require_once 'Zend/Gdata/Photos/AlbumFeed.php';
38
41 */
42require_once 'Zend/Gdata/Photos/PhotoFeed.php';
43
jpgraph.php git://github.com/BigBlueHat/dotproject.git | PHP | 8,581 lines
567	JpGraphError::RaiseL(25005);
568//(" Can't access PHP_SELF, PHP global variable. You can't run PHP from command line if you want to use the 'auto' naming of cache or image files.");
569    $fname = basename($_SERVER['PHP_SELF']);
6160	    if( !function_exists('imagettfbbox') ) {
6161		JpGraphError::RaiseL(25087);//('This PHP build has not been configured with TTF support. You need to recompile your PHP installation with FreeType support.');
6162		exit();
7490		if( !$res )
7491		    JpGraphError::RaiseL(25108);//("Can't stream image. This is most likely due to a faulty PHP/GD setup. Try to recompile PHP and use the built-in GD library that comes with PHP.");
7492		
7516	    else
7517		JpGraphError::RaiseL(25109);//("Your PHP (and GD-lib) installation does not appear to support any known graphic formats. You need to first make sure GD is compiled as a module to PHP. If you also want to use JPEG images you must get the JPEG library. Please see the PHP docs for details.");
7518				
7774		if( !is_writeable(dirname($aCacheFileName)) ) {
7775		    JpGraphError::RaiseL(25114,$aCacheFileName);//('PHP has not enough permissions to write to the cache file '.$aCacheFileName.'. Please make sure that the user running PHP has write permission for this file if you wan to use the cache system with JpGraph.');
7776		}
Custom.php git://pkgs.fedoraproject.org/php-pear-File-Passwd | PHP | 593 lines
1<?php
2/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
8 *
9 * LICENSE: This source file is subject to version 3.0 of the PHP license
10 * that is available through the world-wide-web at the following URI:
10 * that is available through the world-wide-web at the following URI:
11 * http://www.php.net/license/3_0.txt.  If you did not receive a copy of
12 * the PHP License and are unable to obtain it through the web, please
12 * the PHP License and are unable to obtain it through the web, please
13 * send a note to license@php.net so we can mail you a copy immediately.
14 *
16 * @package    File_Passwd
17 * @author     Michael Wallner <mike@php.net>
18 * @copyright  2003-2005 Michael Wallner
18 * @copyright  2003-2005 Michael Wallner
19 * @license    http://www.php.net/license/3_0.txt  PHP License 3.0
20 * @version    CVS: $Id: Custom.php,v 1.10 2005/03/30 18:33:33 mike Exp $
function.settype.html git://pkgs.fedoraproject.org/php-manual-en | HTML | 161 lines
11 <div class="up"><a href="ref.var.html">Variable handling Functions</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">Set the type of a variable</span></p>
17
22  <div class="methodsynopsis dc-description">
23    <span class="type">bool</span>  <span class="methodname"><b>settype</b></span>
24    ( <span class="methodparam"> <span class="type"><a href="language.pseudo-types.html#language.types.mixed" class="type mixed">mixed</a></span>  <tt class="parameter reference">&$var</tt></span>
61         <span class="simpara">
62          &quot;boolean&quot; (or, since PHP 4.2.0, &quot;bool&quot;)
63         </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;is&nbsp;now&nbsp;5&nbsp;&nbsp;&nbsp;(integer)<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;is&nbsp;now&nbsp;"1"&nbsp;(string)<br /></span><span style="color: #0000BB">?&gt;</span>
124</span>
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21