PageRenderTime 692ms queryFilters 0ms Sphinxql 248ms GetByIds 409ms meta 0ms repositoryFilters 13ms languageFilters 2ms sourceFilters 1ms

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

Source

Language

Repository

editlib.php https://moodleazure.svn.codeplex.com/svn | PHP | 300 lines
1<?php  //$Id: editlib.php,v 1.11.2.12 2009/10/06 19:04:04 skodak Exp $
2
94    $mform->addRule('firstname', $strrequired, 'required', null, 'client');
95    $mform->setType('firstname', PARAM_NOTAGS);
96
97    $mform->addRule('lastname', $strrequired, 'required', null, 'client');
98    $mform->setType('lastname', PARAM_NOTAGS);
99
102        $notice = get_string('auth_emailchangepending', 'auth', $user);
103        $notice .= '<br /><a href="edit.php?cancelemailchange=1&amp;id='.$user->id.'">'
104                . get_string('auth_emailchangecancel', 'auth') . '</a>';
196    $mform->addElement('text', 'city', get_string('city'), 'maxlength="20" size="21"');
197    $mform->setType('city', PARAM_MULTILANG);
198    $mform->addRule('city', $strrequired, 'required', null, 'client');
266    $mform->addElement('text', 'skype', get_string('skypeid'), 'maxlength="50" size="25"');
267    $mform->setType('skype', PARAM_CLEAN);
268
edit_form.php https://moodleazure.svn.codeplex.com/svn | PHP | 497 lines
1<?php  //$Id: edit_form.php,v 1.37.2.20 2010/05/13 01:40:36 moodler Exp $
2
71            $mform->addElement('hidden', 'category', null);
72            $mform->setType('category', PARAM_INT);
73        }
75        $mform->setDefault('category', $category->id);
76        $mform->setType('category', PARAM_INT);
77
86        $mform->addRule('fullname', get_string('missingfullname'), 'required', null, 'client');
87        $mform->setType('fullname', PARAM_MULTILANG);
88        if ($course and !has_capability('moodle/course:changefullname', $coursecontext)) {
96        $mform->addRule('shortname', get_string('missingshortname'), 'required', null, 'client');
97        $mform->setType('shortname', PARAM_MULTILANG);
98        if ($course and !has_capability('moodle/course:changeshortname', $coursecontext)) {
328        $mform->setDefault('enrolpassword', '');
329        $mform->setType('enrolpassword', PARAM_RAW);
330
FormElement.php git://github.com/pmjones/php-framework-benchmarks.git | PHP | 170 lines
1<?php
2/**
9 * 
10 * @author Paul M. Jones <pmjones@solarphp.com>
11 * 
11 * 
12 * @license http://opensource.org/licenses/bsd-license.php BSD
13 * 
13 * 
14 * @version $Id: FormElement.php 3409 2008-09-20 18:04:17Z pmjones $
15 * 
154        
155        settype($info['type'], 'string');
156        settype($info['name'], 'string');
156        settype($info['name'], 'string');
157        settype($info['label'], 'string');
158        settype($info['attribs'], 'array');
WebPageManager.php https://bitbucket.org/sebap/booix.git | PHP | 463 lines
1<?php
2System::import("database/MySQL.php");
2System::import("database/MySQL.php");
3System::import("user/User.php");
4System::import("webpage/WebPage.php");
4System::import("webpage/WebPage.php");
5System::import("enums/RESPONSE_TYPE.php");
6System::import("cpanel/xmlapi.php");
48		}else{
49			$response->setType(RESPONSE_TYPE::$GENERIC_FAILURE);
50			$response->setMessage("There is no webpage");
62				//Here we know the subdomain is not available
63				$response->setType(RESPONSE_TYPE::$WEBPAGE_STORE_DOMAIN_NOT_AVAILABLE);
64				return $response;
96			if($i == 0){
97				$content = "<?php header( 'Location: ".$element->name[0]."' ) ; ?>";
98				WebPageManager::writeFile($webPageHTMLfolderURL."index.php", $content);
settype.txt https://bitbucket.org/IvanKruchkoff/dev-profile.git | text | 37 lines
1settype -- Set the type of a variable
2
2
3  bool settype(mixed var, string type)~
4
6
7Possibles values of {type} are: "boolean" (or, since PHP 4.2.0, "bool")
8
8
9"integer" (or, since PHP 4.2.0, "int")
10
10
11"float" (only possible since PHP 4.2.0, for older versions use the deprecated
12variant "double")
19
20"null" (since PHP 4.2.0)
21
settype.txt https://bitbucket.org/IvanKruchkoff/dev-profile.git | text | 37 lines
1settype -- Set the type of a variable
2
2
3  bool settype(mixed var, string type)~
4
6
7Possibles values of {type} are: "boolean" (or, since PHP 4.2.0, "bool")
8
8
9"integer" (or, since PHP 4.2.0, "int")
10
10
11"float" (only possible since PHP 4.2.0, for older versions use the deprecated
12variant "double")
19
20"null" (since PHP 4.2.0)
21
settype.txt https://bitbucket.org/IvanKruchkoff/dev-profile.git | Plain Text | 36 lines
1settype -- Set the type of a variable
2
2
3  bool settype(mixed var, string type)~
4
6
7Possibles values of {type} are: "boolean" (or, since PHP 4.2.0, "bool")
8
8
9"integer" (or, since PHP 4.2.0, "int")
10
10
11"float" (only possible since PHP 4.2.0, for older versions use the deprecated
12variant "double")
19
20"null" (since PHP 4.2.0)
21
moodleform_mod.php https://bitbucket.org/ngmares/moodle.git | PHP | 813 lines
1<?php
2require_once ($CFG->libdir.'/formslib.php');
2require_once ($CFG->libdir.'/formslib.php');
3require_once($CFG->libdir.'/completionlib.php');
4
6 * This class adds extra methods to form wrapper specific to be used for module
7 * add / update forms mod/{modname}/mod_form.php replaced deprecated mod/{modname}/mod.html
8 */
70        $this->init_features();
71        parent::moodleform('modedit.php');
72    }
390        if ($this->_features->rating) {
391            require_once($CFG->dirroot.'/rating/lib.php');
392            $rm = new rating_manager();
586            $mform->addElement('hidden', 'completionunlocked', 0);
587            $mform->setType('completionunlocked', PARAM_INT);
588
KDLMediaInfoLoader.php https://bitbucket.org/pandaos/kaltura.git | PHP | 241 lines
1<?php
2include_once("StringTokenizer.php");
2include_once("StringTokenizer.php");
3include_once("KDLMediaDataSet.php");
4include_once 'KDLUtils.php';
90				$audioData->_channels = KDLUtils::trima($val);
91				settype($audioData->_channels, "integer");
92				break;
94				$audioData->_sampleRate = KDLUtils::trima($val);
95				settype($audioData->_sampleRate, "float");
96				if($audioData->_sampleRate<1000)
100				$audioData->_resolution = KDLUtils::trima($val);
101				settype($audioData->_resolution, "integer");
102				break;
117				$videoData->_width = KDLUtils::trima($val);
118				settype($videoData->_width, "integer");
119				break;
fakecms_form.php https://bitbucket.org/synergylearning/campusconnect.git | PHP | 207 lines
1<?php
2// This file is part of Moodle - http://moodle.org/
17/**
18 * Supports the creation of resources via fakecms.php
19 *
27global $CFG;
28require_once($CFG->libdir.'/formslib.php');
29
73        $mform->addElement('text', 'dirtreetitle', 'Directory tree name');
74        $mform->setType('dirtreetitle', PARAM_TEXT);
75        $mform->setDefault('dirtreetitle', 'Directory tree');
76        $mform->addElement('text', 'dirrootid', 'Root directory id', array('size' => 10));
77        $mform->setType('dirrootid', PARAM_TEXT);
78        $mform->addElement('text', 'dirid', 'Directory id', array('size' => 10));
78        $mform->addElement('text', 'dirid', 'Directory id', array('size' => 10));
79        $mform->setType('dirid', PARAM_TEXT);
80        $mform->addElement('text', 'dirtitle', 'Directory title');
testclient_forms.php https://bitbucket.org/synergylearning/campusconnect.git | PHP | 1,064 lines
1<?php
2
2
3require_once($CFG->libdir.'/formslib.php');
4
16        $mform->addElement('select', 'authmethod', get_string('authmethod', 'webservice'), $authmethod);
17        $mform->setType('simple', PARAM_ALPHA);
18
19        $mform->addElement('select', 'protocol', get_string('protocol', 'webservice'), $protocols);
20        $mform->setType('protocol', PARAM_ALPHA);
21
22        $mform->addElement('select', 'function', get_string('function', 'webservice'), $functions);
23        $mform->setType('function', PARAM_PLUGIN);
24
43            $mform->addElement('text', 'wsusername', 'wsusername');
44            $mform->setType('wsusername', PARAM_USERNAME);
45            $mform->addElement('text', 'wspassword', 'wspassword');
mod_form.php https://bitbucket.org/geek745/moodle-db2 | PHP | 343 lines
1<?php
2require_once ($CFG->dirroot.'/course/moodleform_mod.php');
2require_once ($CFG->dirroot.'/course/moodleform_mod.php');
3require_once ($CFG->dirroot.'/mod/hotpot/lib.php');
4
12class mod_hotpot_mod_form extends moodleform_mod {
13    // documentation on formslib.php here:
14    // http://docs.moodle.org/en/Development:lib/formslib.php_Form_Definition
18        // =====
19        // $mform->setType('name', PARAM_xxx);
20        // $mform->setDefault('name', array('elementhelpfilename', get_string('helpicontitlestring', 'hotpot'), 'hotpot'));
57            $mform->addElement('hidden', 'namesource', HOTPOT_TEXTSOURCE_SPECIFIC);
58            $mform->setType('namesource', PARAM_RAW);
59            $mform->addElement('text', 'name', get_string('name'), array('size' => '40'));
60        }
61        $mform->setType('namesource', PARAM_INT);
62        if (!empty($CFG->formatstringstriptags)) {
user_clips.dwt.php https://bitbucket.org/luxi78/fengyu | PHP | 650 lines
175          <div  style="float:left;">
176          <b><?php if ($this->_var['comment']['comment_type'] == '0'): ?><?php echo $this->_var['lang']['goods_comment']; ?><?php else: ?><?php echo $this->_var['lang']['article_comment']; ?><?php endif; ?>: </b><font class="f4"><?php echo $this->_var['comment']['cmt_name']; ?></font>&nbsp;&nbsp;(<?php echo $this->_var['comment']['formated_add_time']; ?>)
177          </div>
208?>
209    <a href="search.php?keywords=<?php echo urlencode($this->_var['tag']['tag_words']); ?>"><?php echo htmlspecialchars($this->_var['tag']['tag_words']); ?></a> <a href="user.php?act=act_del_tag&amp;tag_words=<?php echo urlencode($this->_var['tag']['tag_words']); ?>" onclick="if (!confirm('<?php echo $this->_var['lang']['confirm_drop_tag']; ?>')) return false;" title="<?php echo $this->_var['lang']['drop']; ?>"><img src="themes/clothing/images/drop.gif" alt="<?php echo $this->_var['lang']['drop']; ?>" /></a>&nbsp;&nbsp;
210    <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
247          <?php endif; ?>
248           <a href="javascript:addToCart(<?php echo $this->_var['goods']['goods_id']; ?>)" class="f6"><?php echo $this->_var['lang']['add_to_cart']; ?></a> <a href="javascript:if (confirm('<?php echo $this->_var['lang']['remove_collection_confirm']; ?>')) location.href='user.php?act=delete_collection&collection_id=<?php echo $this->_var['goods']['rec_id']; ?>'" class="f6"><?php echo $this->_var['lang']['drop']; ?></a>
249        </td>
516 <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="get">
517  <div id="pager"> <?php echo $this->_var['lang']['pager_1']; ?><?php echo $this->_var['pager']['record_count']; ?><?php echo $this->_var['lang']['pager_2']; ?><?php echo $this->_var['lang']['pager_3']; ?><?php echo $this->_var['pager']['page_count']; ?><?php echo $this->_var['lang']['pager_4']; ?> <span> <a href="<?php echo $this->_var['pager']['page_first']; ?>"><?php echo $this->_var['lang']['page_first']; ?></a> <a href="<?php echo $this->_var['pager']['page_prev']; ?>"><?php echo $this->_var['lang']['page_prev']; ?></a> <a href="<?php echo $this->_var['pager']['page_next']; ?>"><?php echo $this->_var['lang']['page_next']; ?></a> <a href="<?php echo $this->_var['pager']['page_last']; ?>"><?php echo $this->_var['lang']['page_last']; ?></a> </span>
518    <select name="page" id="page" onchange="selectPage(this)">
583        <textarea cols=30 rows=2 id="txt<?php echo $this->_foreach['types']['iteration']; ?>" style="border:1px solid #ccc;"><script src="<?php echo $this->_var['shopurl']; ?>affiliate.php?charset=<?php echo $this->_var['ecs_charset']; ?>&gid=<?php echo $this->_var['goodsid']; ?>&u=<?php echo $this->_var['userid']; ?>&type=<?php echo $this->_var['val']; ?>"></script></textarea>[<a href="#" title="Copy To Clipboard" onClick="Javascript:copyToClipboard(document.getElementById('txt<?php echo $this->_foreach['types']['iteration']; ?>').value);alert('<?php echo $this->_var['lang']['copy_to_clipboard']; ?>');"  class="f6">^</a>]
584<br>iframe <?php echo $this->_var['lang']['affiliate_codetype']; ?><br><textarea cols=30 rows=2 id="txt<?php echo $this->_foreach['types']['iteration']; ?>_iframe"  style="border:1px solid #ccc;"><iframe width="250" height="270" src="<?php echo $this->_var['shopurl']; ?>affiliate.php?charset=<?php echo $this->_var['ecs_charset']; ?>&gid=<?php echo $this->_var['goodsid']; ?>&u=<?php echo $this->_var['userid']; ?>&type=<?php echo $this->_var['val']; ?>&display_mode=iframe" frameborder="0" scrolling="no"></iframe></textarea>[<a href="#" title="Copy To Clipboard" onClick="Javascript:copyToClipboard(document.getElementById('txt<?php echo $this->_foreach['types']['iteration']; ?>_iframe').value);alert('<?php echo $this->_var['lang']['copy_to_clipboard']; ?>');" class="f6">^</a>]</td>
585    </tr>
Emitter.class.php https://github.com/thekid/compiler.git | PHP | 2,587 lines
1<?php namespace xp\compiler\emit\source;
2
48/**
49 * Emits sourcecode using PHP sourcecode
50 *
195    foreach ($types as $type => $used) {
196      if (isset($this->local[0][$type]) ||  'php.' === substr($type, 0, 4) ||  isset($bootstrap[$type])) continue;
197
248      $this->emitInvocationArguments($b, (array)$inv->arguments);
249      $this->scope[0]->setType($inv, TypeName::$VAR);
250    } else {
252      $this->emitInvocationArguments($b, (array)$inv->arguments);
253      $this->scope[0]->setType($inv, $ptr->returns);
254    }
368    
369    $this->scope[0]->setType($cast, $cast->type);
370  }
record.php https://github.com/leaven/gmu.git | PHP | 111 lines
1<?php
2    /**
6    require_once dirname( __FILE__ ) . DIRECTORY_SEPARATOR . '../conf/Config.php';
7    require_once dirname( __FILE__ ) . DIRECTORY_SEPARATOR . '../lib/php/geneHTML.php';
8    function interXML( $onlyfails )
20                $caseName = $testResult[ 'name' ]; //得到用例名称
21                settype( $caseName , "string" ); //$caseName本来类型为object,需要做转换
22                $fail = $testResult[ 'failNumber' ];
25                $recordCovForBrowser = $testResult[ 'recordCovForBrowser' ];
26                settype( $browser , "string" );
27                settype( $recordCovForBrowser , "string" );
27                settype( $recordCovForBrowser , "string" );
28                settype( $host , "string" );
29                settype( $fail , "string" );
29                settype( $fail , "string" );
30                settype( $total , "string" );
31                settype( $cov , "float" );
Column.php https://bitbucket.org/Raging_Squirrel/faf-replay-vault | PHP | 1,189 lines
182			// retrieves the method for converting from specified name to a PHP name, defaulting to parent tables default method
183			$this->phpNamingMethod = $this->getAttribute("phpNamingMethod", $this->parentTable->getDatabase()->getDefaultPhpNamingMethod());
184
309		if ($phpName == null) {
310			$this->phpName = self::generatePhpName($this->name, $this->phpNamingMethod, $this->namePrefix);
311		} else {
326		if (strlen($phpname) > 1) {
327			return strtolower(substr($phpname, 0, 1)) . substr($phpname, 1);
328		} else { // 0 or 1 chars (I suppose that's rare)
1131	{
1132		return PropelTypes::isPhpPrimitiveType($this->getPhpType());
1133	}
1184	
1185	public static function generatePhpName($name, $phpNamingMethod = PhpNameGenerator::CONV_METHOD_CLEAN, $namePrefix = null) {
1186		return NameFactory::generateName(NameFactory::PHP_GENERATOR, array($name, $phpNamingMethod, $namePrefix));
Smarty.class.php https://github.com/escherlat/loquacity.git | PHP | 2,025 lines
32 * monte@ispi.net
33 * andrei@php.net
34 *
50 */
51/* $Id: Smarty.class.php,v 1.4 2004/01/08 13:04:44 eadz Exp $ */
52
204	 *  <li>SMARTY_PHP_QUOTE    -> escape tags as entities</li>
205	 *  <li>SMARTY_PHP_REMOVE   -> remove php tags</li>
206	 *  <li>SMARTY_PHP_ALLOW    -> execute php tags</li>
210	 */
211	var $php_handling    =  SMARTY_PHP_PASSTHRU;
212
1511		$smarty_compiler->caching           = $this->caching;
1512		$smarty_compiler->php_handling      = $this->php_handling;
1513		$smarty_compiler->left_delimiter    = $this->left_delimiter;
Column.php https://github.com/jczulian/blogito.git | PHP | 1,180 lines
192      // retrieves the method for converting from specified name to a PHP name, defaulting to parent tables default method
193      $this->phpNamingMethod = $this->getAttribute("phpNamingMethod", $this->parentTable->getDatabase()->getDefaultPhpNamingMethod());
194
314    if ($phpName == null) {
315      $this->phpName = self::generatePhpName($this->name, $this->phpNamingMethod, $this->namePrefix);
316    } else {
331    if (strlen($phpname) > 1) {
332      return strtolower(substr($phpname, 0, 1)) . substr($phpname, 1);
333    } else { // 0 or 1 chars (I suppose that's rare)
1122  {
1123    return PropelTypes::isPhpPrimitiveType($this->getPhpType());
1124  }
1175  
1176  public static function generatePhpName($name, $phpNamingMethod = PhpNameGenerator::CONV_METHOD_CLEAN, $namePrefix = null) {
1177    return NameFactory::generateName(NameFactory::PHP_GENERATOR, array($name, $phpNamingMethod, $namePrefix));
Column.php https://github.com/nextbigsound/propel-orm.git | PHP | 1,189 lines
182			// retrieves the method for converting from specified name to a PHP name, defaulting to parent tables default method
183			$this->phpNamingMethod = $this->getAttribute("phpNamingMethod", $this->parentTable->getDatabase()->getDefaultPhpNamingMethod());
184
309		if ($phpName == null) {
310			$this->phpName = self::generatePhpName($this->name, $this->phpNamingMethod, $this->namePrefix);
311		} else {
326		if (strlen($phpname) > 1) {
327			return strtolower(substr($phpname, 0, 1)) . substr($phpname, 1);
328		} else { // 0 or 1 chars (I suppose that's rare)
1131	{
1132		return PropelTypes::isPhpPrimitiveType($this->getPhpType());
1133	}
1184	
1185	public static function generatePhpName($name, $phpNamingMethod = PhpNameGenerator::CONV_METHOD_CLEAN, $namePrefix = null) {
1186		return NameFactory::generateName(NameFactory::PHP_GENERATOR, array($name, $phpNamingMethod, $namePrefix));
editlib.php https://github.com/dongsheng/moodle.git | PHP | 519 lines
1<?php
2// This file is part of Moodle - http://moodle.org/
59        if (empty($SESSION->wantsurl)) {
60            $SESSION->wantsurl = $CFG->httpswwwroot.'/user/preferences.php';
61        }
82        }
83        redirect($CFG->wwwroot . "/user/view.php?course={$course->id}");
84    }
174    global $CFG, $DB;
175    require_once("$CFG->libdir/gdlib.php");
176
254    if ((!isset($user->trackforums) || ($usernew->trackforums != $user->trackforums)) and !$usernew->trackforums) {
255        require_once($CFG->dirroot.'/mod/forum/lib.php');
256        forum_tp_delete_read_records($usernew->id);
267    global $CFG;
268    require_once($CFG->dirroot . '/tag/lib.php');
269    tag_set('user', $user->id, $interests, 'core', context_user::instance($user->id)->id);
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21