PageRenderTime 810ms queryFilters 1ms Sphinxql 276ms GetByIds 479ms meta 0ms repositoryFilters 23ms languageFilters 0ms sourceFilters 1ms

78,253 results for 'php settype repo:synergylearning/campusconnect' (810 ms)

Source

Language

Repository

assignment.class.php git://github.com/moodle/moodle.git | PHP | 1,228 lines
1<?php
2
25require_once(dirname(__FILE__).'/upload_form.php');
26require_once($CFG->libdir . '/portfoliolib.php');
27require_once($CFG->dirroot . '/mod/assignment/lib.php');
48
49        add_to_log($this->course->id, 'assignment', 'view', "view.php?id={$this->cm->id}", $this->assignment->id, $this->cm->id);
50
105        global $USER, $CFG, $DB, $OUTPUT, $PAGE;
106        require_once($CFG->libdir.'/gradelib.php');
107        require_once("$CFG->dirroot/grade/grading/lib.php");
221            }
222            echo $OUTPUT->single_button(new moodle_url('/mod/assignment/type/upload/upload.php', array('contextid'=>$this->context->id, 'userid'=>$USER->id)), $str, 'get');
223        }
670                echo $OUTPUT->heading(get_string('submitformarking', 'assignment'));
671                echo $OUTPUT->confirm(get_string('onceassignmentsent', 'assignment'), new moodle_url('upload.php', $optionsyes),new moodle_url( 'view.php', $optionsno));
672                $this->view_footer();
edit_question_form.php git://github.com/moodle/moodle.git | PHP | 862 lines
1<?php
2// This file is part of Moodle - http://moodle.org/
29global $CFG;
30require_once($CFG->libdir.'/formslib.php');
31
34    /**
35     * Add all the hidden form fields used by question/question.php.
36     */
40        $mform->addElement('hidden', 'id');
41        $mform->setType('id', PARAM_INT);
42
43        $mform->addElement('hidden', 'inpopup');
44        $mform->setType('inpopup', PARAM_INT);
45
46        $mform->addElement('hidden', 'cmid');
47        $mform->setType('cmid', PARAM_INT);
48
%%E5^E5C^E5CB7E0E%%InventoryDetailView.tpl.php https://code.google.com/p/vtiger-ru-fork/ | PHP | 583 lines
140			         			         <?php $this->assign('USE_ID_VALUE', $this->_tpl_vars['MOD_SEQ_ID']); ?>
141		  			 <?php if ($this->_tpl_vars['USE_ID_VALUE'] == ''): ?> <?php $this->assign('USE_ID_VALUE', $this->_tpl_vars['ID']); ?> <?php endif; ?>
142		  			
169									<td class="dvtUnSelectedCell" onmouseout="fnHideDrop('More_Information_Modules_List');" onmouseover="fnDropDown(this,'More_Information_Modules_List');" align="center" nowrap>
170										<a href="index.php?action=CallRelatedList&module=<?php echo $this->_tpl_vars['MODULE']; ?>
171&record=<?php echo $this->_tpl_vars['ID']; ?>
287<!-- Button displayed - finished-->
288							 <?php require_once(SMARTY_CORE_DIR . 'core.smarty_include_php.php');
289smarty_core_smarty_include_php(array('smarty_file' => "./include/DetailViewBlockStatus.php", 'smarty_assign' => '', 'smarty_once' => false, 'smarty_include_vars' => array()), $this); ?>
304	   <tr>
305		<?php echo '<td colspan=4 class="dvInnerHeader" ><div style="float:left;font-weight:bold;"><div style="float:left;"><a href="javascript:showHideStatus(\'tbl'; ?><?php echo ((is_array($_tmp=$this->_tpl_vars['header'])) ? $this->_run_mod_handler('replace', true, $_tmp, ' ', '') : smarty_modifier_replace($_tmp, ' ', '')); ?><?php echo '\',\'aid'; ?><?php echo ((is_array($_tmp=$this->_tpl_vars['header'])) ? $this->_run_mod_handler('replace', true, $_tmp, ' ', '') : smarty_modifier_replace($_tmp, ' ', '')); ?><?php echo '\',\''; ?><?php echo $this->_tpl_vars['IMAGE_PATH']; ?><?php echo '\');">'; ?><?php if ($this->_tpl_vars['BLOCKINITIALSTATUS'][$this->_tpl_vars['header']] == 1): ?><?php echo '<img id="aid'; ?><?php echo ((is_array($_tmp=$this->_tpl_vars['header'])) ? $this->_run_mod_handler('replace', true, $_tmp, ' ', '') : smarty_modifier_replace($_tmp, ' ', '')); ?><?php echo '" src="'; ?><?php echo vtiger_imageurl('activate.gif', $this->_tpl_vars['THEME']); ?><?php echo '" style="border: 0px solid #000000;" alt="Hide" title="Hide"/>'; ?><?php else: ?><?php echo '<img id="aid'; ?><?php echo ((is_array($_tmp=$this->_tpl_vars['header'])) ? $this->_run_mod_handler('replace', true, $_tmp, ' ', '') : smarty_modifier_replace($_tmp, ' ', '')); ?><?php echo '" src="'; ?><?php echo vtiger_imageurl('inactivate.gif', $this->_tpl_vars['THEME']); ?><?php echo '" style="border: 0px solid #000000;" alt="Display" title="Display"/>'; ?><?php endif; ?><?php echo '</a></div><b>&nbsp;'; ?><?php echo $this->_tpl_vars['header']; ?><?php echo '</b></div></td>'; ?>
306
488' <?php else: ?> var confirmMsg = '<?php echo $this->_tpl_vars['APP']['NTC_DELETE_CONFIRMATION']; ?>
489' <?php endif; ?>; submitFormForActionWithConfirmation('DetailView', 'Delete', confirmMsg);" type="button" name="Delete" value="<?php echo $this->_tpl_vars['APP']['LBL_DELETE_BUTTON_LABEL']; ?>
490">&nbsp;
apiAnalyticsService.php http://google-api-php-client.googlecode.com/svn/trunk/ | PHP | 1,573 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
359  }
360  public function setType($type) {
361    $this->type = $type;
788  }
789  public function setType($type) {
790    $this->type = $type;
840  public $comparisonValue;
841  public function setType($type) {
842    $this->type = $type;
common.php https://exult.svn.sourceforge.net/svnroot/exult | PHP | 422 lines
1<?php
2  if ( defined( "_COMMON_PHP" ) ) return;
2  if ( defined( "_COMMON_PHP" ) ) return;
3  define("_COMMON_PHP", 1 );
4
33  // handle configs that have register_globals turned off.
34  // we use $PHP_SELF as the test since it should always be there.
35  // We might need to consider not using globals soon.
35  // We might need to consider not using globals soon.
36  if(!isset($PHP_SELF)) {
37     include ("./include/register_globals.php");
147
148  // passed to array_walk in read.php and list.php
149  // **TODO: replace using array_flip
178
179  // These functions exist in PHP 4.0.3 and up.
180  // **TODO: This will go away when we move to PHP4 only.
jpgraph.php http://mcmis.googlecode.com/svn/trunk/ | PHP | 5,402 lines
1<?php
2//=======================================================================
12require_once('jpgraph_gradient.php');
13require_once('jpgraph_errhandler.inc.php');
14require_once('jpgraph_ttf.inc.php');
244//
245if( !CheckPHPVersion(MIN_PHPVERSION) ) {
246    JpGraphError::RaiseL(13,PHP_VERSION,MIN_PHPVERSION);
254    JpGraphError::RaiseL(25001);
255    //("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)");
256}
276//
277if( isset($GLOBALS['php_errormsg']) && CATCH_PHPERRMSG && !preg_match('/|Deprecated|/i', $GLOBALS['php_errormsg']) ) {
278    JpGraphError::RaiseL(25004,$GLOBALS['php_errormsg']);
301        JpGraphError::RaiseL(25005);
302        //(" 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.");
303    }
%%66^664^6640D0F6%%addresses.tpl.php http://marocmall.googlecode.com/svn/trunk/ | PHP | 183 lines
31
32		<?php $_from = $this->_tpl_vars['addresses']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
33    foreach ($_from as $this->_tpl_vars['k'] => $this->_tpl_vars['address']):
93
94<?php ob_start(); ?><a href="<?php echo $this->_tpl_vars['link']->getPageLink('my-account.php',true); ?>
95"><?php echo smartyTranslate(array('s' => 'My account'), $this);?>
121?>
122		<ul class="address <?php if (($this->_foreach['myLoop']['iteration'] == $this->_foreach['myLoop']['total'])): ?>last_item<?php elseif (($this->_foreach['myLoop']['iteration'] <= 1)): ?>first_item<?php endif; ?> <?php if (($this->_foreach['myLoop']['iteration']-1) % 2): ?>alternate_item<?php else: ?>item<?php endif; ?>">
123			<li class="address_title"><?php echo $this->_tpl_vars['address']['object']['alias']; ?>
166
167<div class="clear address_add"><a href="<?php echo $this->_tpl_vars['link']->getPageLink('address.php',true); ?>
168" title="<?php echo smartyTranslate(array('s' => 'Add an address'), $this);?>
172<ul class="footer_links">
173	<li><a href="<?php echo $this->_tpl_vars['link']->getPageLink('my-account.php',true); ?>
174"><img src="<?php echo $this->_tpl_vars['img_dir']; ?>
Abstract.php http://railoapacheportable.googlecode.com/svn/trunk/ | PHP | 413 lines
1<?php
2/**
18 * @license   http://framework.zend.com/license/new-bsd     New BSD License
19 * @version   $Id: Abstract.php 16220 2009-06-21 19:49:21Z thomas $
20 */
24 */
25require_once 'Zend/Locale.php';
26
29 */
30require_once 'Zend/Locale/Math.php';
31
34 */
35require_once 'Zend/Locale/Format.php';
36
94        if (isset($this->_units[$type]) === false) {
95            require_once 'Zend/Measure/Exception.php';
96            throw new Zend_Measure_Exception("Type ($type) is unknown");
jpgraph.php http://yt-cache.googlecode.com/svn/trunk/ | PHP | 5,627 lines
1<?php
2//=======================================================================
12require_once('jpgraph_gradient.php');
13require_once('jpgraph_errhandler.inc.php');
14require_once('jpgraph_ttf.inc.php');
246//
247if( !CheckPHPVersion(MIN_PHPVERSION) ) {
248    JpGraphError::RaiseL(13,PHP_VERSION,MIN_PHPVERSION);
256    JpGraphError::RaiseL(25001);
257    //("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)");
258}
278//
279if( isset($GLOBALS['php_errormsg']) && CATCH_PHPERRMSG && !preg_match('/|Deprecated|/i', $GLOBALS['php_errormsg']) ) {
280    JpGraphError::RaiseL(25004,$GLOBALS['php_errormsg']);
303        JpGraphError::RaiseL(25005);
304        //(" 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.");
305    }
mod_form.php https://moodleazure.svn.codeplex.com/svn | PHP | 347 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)) {
apiAnalyticsService.php git://github.com/gkwelding/FuelPHP-Social-Package.git | PHP | 1,572 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
359  }
360  public function setType($type) {
361    $this->type = $type;
788  }
789  public function setType($type) {
790    $this->type = $type;
840  public $comparisonValue;
841  public function setType($type) {
842    $this->type = $type;
Abstract.php git://github.com/jaequery/jien.git | PHP | 418 lines
1<?php
2/**
18 * @license   http://framework.zend.com/license/new-bsd     New BSD License
19 * @version   $Id: Abstract.php 23775 2011-03-01 17:25:24Z ralph $
20 */
24 */
25require_once 'Zend/Locale.php';
26
29 */
30require_once 'Zend/Locale/Math.php';
31
34 */
35require_once 'Zend/Locale/Format.php';
36
94        if (isset($this->_units[$type]) === false) {
95            require_once 'Zend/Measure/Exception.php';
96            throw new Zend_Measure_Exception("Type ($type) is unknown");
Abstract.php git://github.com/michael-romer/zf-boilerplate.git | PHP | 418 lines
1<?php
2/**
18 * @license   http://framework.zend.com/license/new-bsd     New BSD License
19 * @version   $Id: Abstract.php 23775 2011-03-01 17:25:24Z ralph $
20 */
24 */
25require_once 'Zend/Locale.php';
26
29 */
30require_once 'Zend/Locale/Math.php';
31
34 */
35require_once 'Zend/Locale/Format.php';
36
94        if (isset($this->_units[$type]) === false) {
95            require_once 'Zend/Measure/Exception.php';
96            throw new Zend_Measure_Exception("Type ($type) is unknown");
QType.class.php git://github.com/qcodo/qcodo.git | PHP | 370 lines
1<?php
2	/**
17	 *
18	 * PHP does not support strongly named types.  The Qcodo type library
19	 * and Qcodo typing in general attempts to bring some structure to types
23	 * The Type library attempts to allow as much flexibility as possible to
24	 * set and cast variables to other types, similar to how PHP does it natively,
25	 * but simply adds a big more structure to it.
41	 * For values, specifically int to string conversion, one different between
42	 * QType::Cast and PHP (in order to add structure) is that if an integer contains
43	 * alpha characters, PHP would normally allow that through w/o complaint, simply
48	 * In theory, the type library should maintain the same level of flexibility
49	 * PHP developers are accostomed to, while providing a mechanism to limit
50	 * careless coding errors and tough to figure out mistakes due to PHP's sometimes
120						return false;
121					settype($mixItem, $strType);
122					return $mixItem;
Abstract.php git://github.com/pmjones/php-framework-benchmarks.git | PHP | 418 lines
1<?php
2/**
18 * @license   http://framework.zend.com/license/new-bsd     New BSD License
19 * @version   $Id: Abstract.php 23775 2011-03-01 17:25:24Z ralph $
20 */
24 */
25require_once 'Zend/Locale.php';
26
29 */
30require_once 'Zend/Locale/Math.php';
31
34 */
35require_once 'Zend/Locale/Format.php';
36
94        if (isset($this->_units[$type]) === false) {
95            require_once 'Zend/Measure/Exception.php';
96            throw new Zend_Measure_Exception("Type ($type) is unknown");
Abstract.php git://github.com/pmjones/php-framework-benchmarks.git | PHP | 418 lines
1<?php
2/**
18 * @license   http://framework.zend.com/license/new-bsd     New BSD License
19 * @version   $Id: Abstract.php 21179 2010-02-23 21:59:42Z matthew $
20 */
24 */
25require_once 'Zend/Locale.php';
26
29 */
30require_once 'Zend/Locale/Math.php';
31
34 */
35require_once 'Zend/Locale/Format.php';
36
94        if (isset($this->_units[$type]) === false) {
95            require_once 'Zend/Measure/Exception.php';
96            throw new Zend_Measure_Exception("Type ($type) is unknown");
ExtensionParser.php git://pkgs.fedoraproject.org/php-pear-CodeGen-PECL | PHP | 1,505 lines
1<?php
2/**
8 * that is available through the world-wide-web at the following URI:
9 * http://www.php.net/license/3_0.txt.  If you did not receive a copy of
10 * the PHP License and are unable to obtain it through the web, please
10 * the PHP License and are unable to obtain it through the web, please
11 * send a note to license@php.net so we can mail you a copy immediately.
12 *
14 * @package    CodeGen
15 * @author     Hartmut Holzgraefe <hartmut@php.net>
16 * @copyright  2005-2008 Hartmut Holzgraefe
16 * @copyright  2005-2008 Hartmut Holzgraefe
17 * @license    http://www.php.net/license/3_0.txt  PHP License 3.0
18 * @version    CVS: $Id: ExtensionParser.php,v 1.64 2007/04/26 11:23:08 hholzgra Exp $
34 * @copyright  2005-2008 Hartmut Holzgraefe
35 * @license    http://www.php.net/license/3_0.txt  PHP License 3.0
36 * @version    Release: @package_version@
php-pdb.inc git://pkgs.fedoraproject.org/php-pdb | PHP | 1,136 lines
1<?PHP
2/* PHP-PDB -- PHP class to write PalmOS databases.
3 *
3 *
4 * Copyright (C) 2001 - PHP-PDB development team
5 * Licensed under the GNU LGPL software license.
6 * See the doc/LEGAL file for more information
7 * See http://php-pdb.sourceforge.net/ for more information about the library
8 *
11 * but it is tough to store and properly manipulate a binary string in
12 * PHP.  We double the size of the data but decrease the difficulty level
13 * immensely.
186   // Converts an integer (four bytes) and returns the value
187   // 32-bit integers have problems with PHP when they are bigger than
188   // 0x80000000 (about 2 billion) and that's why I don't use pack() here
Abstract.php https://bitbucket.org/netroby/fastem.git | PHP | 418 lines
1<?php
2/**
18 * @license   http://framework.zend.com/license/new-bsd     New BSD License
19 * @version   $Id: Abstract.php 23775 2011-03-01 17:25:24Z ralph $
20 */
24 */
25require_once 'Zend/Locale.php';
26
29 */
30require_once 'Zend/Locale/Math.php';
31
34 */
35require_once 'Zend/Locale/Format.php';
36
94        if (isset($this->_units[$type]) === false) {
95            require_once 'Zend/Measure/Exception.php';
96            throw new Zend_Measure_Exception("Type ($type) is unknown");
Abstract.php https://bitbucket.org/netroby/tracker.git | PHP | 418 lines
1<?php
2/**
18 * @license   http://framework.zend.com/license/new-bsd     New BSD License
19 * @version   $Id: Abstract.php 23775 2011-03-01 17:25:24Z ralph $
20 */
24 */
25require_once 'Zend/Locale.php';
26
29 */
30require_once 'Zend/Locale/Math.php';
31
34 */
35require_once 'Zend/Locale/Format.php';
36
94        if (isset($this->_units[$type]) === false) {
95            require_once 'Zend/Measure/Exception.php';
96            throw new Zend_Measure_Exception("Type ($type) is unknown");
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21