100+ results results for 'php settype repo:dbaltas/zend-framework-1.x-on-git' (1148 ms)
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: File.php 10020 2009-08-18 14:34:09Z j.fischer@metaways.de $ 21 */ 169 { 170 settype($value, 'integer'); 171 $this->_fwrite( chr($value>>24 & 0xFF) . 190 */ 191 if (PHP_INT_SIZE > 4) { 192 $str = $this->_fread(8); 218 */ 219 if (PHP_INT_SIZE > 4) { 220 settype($value, 'integer'); 251 } else { 252 require_once 'Zend/Search/Lucene/Exception.php'; 253 throw new Zend_Search_Lucene_Exception('Long integers lower than -2147483648 (0x80000000) are not supported on 32-bit platforms.');Editor.php https://bitbucket.org/mengqing/magento-mirror.git | PHP | 399 lines
1<?php 2/** 9 * It is also available through the world-wide-web at this URL: 10 * http://opensource.org/licenses/osl-3.0.php 11 * If you did not receive a copy of the license and are unable to 23 * @copyright Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 40 if($this->isEnabled()) { 41 $this->setType('wysiwyg'); 42 $this->setExtType('wysiwyg'); 43 } else { 44 $this->setType('textarea'); 45 $this->setExtType('textarea');UserQuery.php https://github.com/Riges/KawaiViewModel.git | PHP | 355 lines
1<?php 2 20 * @license http://framework.zend.com/license/new-bsd New BSD License 21 * @version $Id: UserQuery.php 24593 2012-01-05 20:35:02Z matthew $ 22 */ 26 */ 27require_once('Zend/Gdata/Gapps/Query.php'); 28 109 */ 110 public function setType($value) 111 { 118 * 119 * @see setType 120 * @return string type 327 } else { 328 require_once 'Zend/Gdata/App/InvalidArgumentException.php'; 329 throw new Zend_Gdata_App_InvalidArgumentException(Backup.php https://bitbucket.org/mkrasuski/magento-ce.git | PHP | 402 lines
1<?php 2/** 9 * It is also available through the world-wide-web at this URL: 10 * http://opensource.org/licenses/osl-3.0.php 11 * If you did not receive a copy of the license and are unable to 23 * @copyright Copyright (c) 2006-2016 X.commerce, Inc. and affiliates (http://www.magento.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 73 74 $this->setType($backupData->getType()); 75 return $this; 112 */ 113 public function setType($value='db') 114 { 391 if ($backup->getId() == $backupId) { 392 $this->setType($backup->getType()) 393 ->setTime($backup->getTime())admin_snippets_edit.php https://github.com/Sweil/Frogsystem-2.git | PHP | 326 lines
1<?php if (!defined('ACP_GO')) die('Unauthorized access!'); 2 13 // Security-Functions 14 settype ( $_POST['snippet_id'], 'integer' ); 15 settype ( $_POST['snippet_active'], 'integer' ); 102 103 settype ( $_POST['snippet_id'], 'integer' ); 104 settype ( $_POST['snippet_active'], 'integer' );Abstract.php https://gitlab.com/LisovyiEvhenii/ismextensions | PHP | 418 lines
1<?php 2/** 24 */ 25#require_once 'Zend/Locale.php'; 26 29 */ 30#require_once 'Zend/Locale/Math.php'; 31 34 */ 35#require_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"); 121 if (empty($locale)) { 122 #require_once 'Zend/Registry.php'; 123 if (Zend_Registry::isRegistered('Zend_Locale') === true) {Backup.php https://bitbucket.org/mengqing/magento-mirror.git | PHP | 402 lines
1<?php 2/** 9 * It is also available through the world-wide-web at this URL: 10 * http://opensource.org/licenses/osl-3.0.php 11 * If you did not receive a copy of the license and are unable to 23 * @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 73 74 $this->setType($backupData->getType()); 75 return $this; 112 */ 113 public function setType($value='db') 114 { 391 if ($backup->getId() == $backupId) { 392 $this->setType($backup->getType()) 393 ->setTime($backup->getTime())SmartyBC.class.php https://gitlab.com/team_fsn/fsn-php | PHP | 455 lines
1<?php 2/** 2/** 3 * Project: Smarty: the PHP compiling template engine 4 * File: SmartyBC.class.php 30 */ 31require_once(dirname(__FILE__) . '/Smarty.class.php'); 32 47 /** 48 * This is an array of directories where trusted php scripts reside. 49 * 100 * @param string $function the name of the template function 101 * @param string $function_impl the name of the PHP function to register 102 * @param bool $cacheable 123 * @param string $object name of template object 124 * @param object $object_impl the referenced PHP object to register 125 * @param array $allowed list of allowed methods (empty = all)BinaryTest.php https://github.com/Exercise/zf2.git | PHP | 352 lines
1<?php 2/** 36 */ 37class BinaryTest extends \PHPUnit_Framework_TestCase 38{ 277 */ 278 public function testBinarySetType() 279 { 280 $value = new Measure\Binary('-100',Measure\Binary::STANDARD,'de'); 281 $value->setType(Measure\Binary::GIGABYTE); 282 $this->assertEquals(Measure\Binary::GIGABYTE, $value->getType(), 'Zend\Measure\Binary type expected'); 291 $value = new Measure\Binary('-100',Measure\Binary::MEGABYTE,'de'); 292 $value->setType(Measure\Binary::TERABYTE); 293 $this->assertEquals(Measure\Binary::TERABYTE, $value->getType(), 'Zend\Measure\Binary type expected'); 302 $value = new Measure\Binary('-100',Measure\Binary::TERABYTE,'de'); 303 $value->setType(Measure\Binary::KILOBYTE); 304 $this->assertEquals(Measure\Binary::KILOBYTE, $value->getType(), 'Zend\Measure\Binary type expected');Column.php https://gitlab.com/techniconline/kmc | PHP | 494 lines
1<?php 2/* 108 $this->_setName($columnName); 109 $this->setType($type); 110 $this->setOptions($options); 134 */ 135 public function setType(Type $type) 136 {Import.php https://github.com/brion/mediawiki-svn.git | PHP | 485 lines
1<?php 2/** 94 95 function setType( $type ) { 96 $this->type = $type; 429 switch($upload['error']){ 430 case 1: # The uploaded file exceeds the upload_max_filesize directive in php.ini. 431 return new WikiErrorMsg( 'importuploaderrorsize' );lmbTestGetopt.class.php https://github.com/idler/limb.git | PHP | 305 lines
17// +----------------------------------------------------------------------+ 18// | Copyright (c) 1997-2004 The PHP Group | 19// +----------------------------------------------------------------------+ 19// +----------------------------------------------------------------------+ 20// | This source file is subject to version 3.0 of the PHP license, | 21// | that is bundled with this package in the file LICENSE, and is | 23// | http://www.php.net/license/3_0.txt. | 24// | If you did not receive a copy of the PHP license and are unable to | 25// | obtain it through the world-wide-web, please send a note to | 27// +----------------------------------------------------------------------+ 28// | Author: Andrei Zmievski <andrei@php.net> | 29// +----------------------------------------------------------------------+ 282 /** 283 * Safely read the $argv PHP array across different PHP configurations. 284 * Will take care on register_globals and register_argc_argv ini directivesFile.php https://github.com/Enrise/Zend.git | PHP | 473 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: File.php 24593 2012-01-05 20:35:02Z matthew $ 21 */ 169 { 170 settype($value, 'integer'); 171 $this->_fwrite( chr($value>>24 & 0xFF) . 190 */ 191 if (PHP_INT_SIZE > 4) { 192 $str = $this->_fread(8); 218 */ 219 if (PHP_INT_SIZE > 4) { 220 settype($value, 'integer'); 251 } else { 252 // require_once 'Zend/Search/Lucene/Exception.php'; 253 throw new Zend_Search_Lucene_Exception('Long integers lower than -2147483648 (0x80000000) are not supported on 32-bit platforms.');CreditCard.php https://gitlab.com/devtoannh/cafe | PHP | 317 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: CreditCard.php 23775 2011-03-01 17:25:24Z ralph $ 20 */ 24 */ 25require_once 'Zend/Validate/Abstract.php'; 26 158 159 $this->setType($options['type']); 160 if (array_key_exists('service', $options)) { 180 */ 181 public function setType($type) 182 { 229 if (!is_callable($service)) { 230 require_once 'Zend/Validate/Exception.php'; 231 throw new Zend_Validate_Exception('Invalid callback given');Advanced.php https://gitlab.com/svillegas/magento2 | PHP | 388 lines
1<?php 2/** 30 * @method string getTypeId() 31 * @method \Magento\CatalogSearch\Model\Advanced setTypeId(string $value) 32 * @method string getSku() 43 * @author Magento Core Team <core@magentocommerce.com> 44 * @SuppressWarnings(PHPMD.CouplingBetweenObjects) 45 */ 125 * 126 * @SuppressWarnings(PHPMD.ExcessiveParameterList) 127 */ 162 * @throws LocalizedException 163 * @SuppressWarnings(PHPMD.CyclomaticComplexity) 164 * @SuppressWarnings(PHPMD.NPathComplexity) 316 * @return string|bool 317 * @SuppressWarnings(PHPMD.CyclomaticComplexity) 318 * @SuppressWarnings(PHPMD.NPathComplexity)ColumnMap.php https://github.com/Kazuhiro-Murota/OpenPNE3.git | PHP | 417 lines
19 * and is licensed under the LGPL. For more information please see 20 * <http://propel.phpdb.org>. 21 */ 121 /** 122 * Set the php anme of this column. 123 * 123 * 124 * @param string $phpName A string representing the PHP name. 125 * @return void 126 */ 127 public function setPhpName($phpName) 128 { 128 { 129 $this->phpName = $phpName; 130 }File.php https://github.com/FranckErnewein/citron.git | PHP | 473 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: File.php 20096 2010-01-06 02:05:09Z bkarwin $ 21 */ 169 { 170 settype($value, 'integer'); 171 $this->_fwrite( chr($value>>24 & 0xFF) . 190 */ 191 if (PHP_INT_SIZE > 4) { 192 $str = $this->_fread(8); 218 */ 219 if (PHP_INT_SIZE > 4) { 220 settype($value, 'integer'); 251 } else { 252 // require_once 'Zend/Search/Lucene/Exception.php'; 253 throw new Zend_Search_Lucene_Exception('Long integers lower than -2147483648 (0x80000000) are not supported on 32-bit platforms.');ExternalVideoEntryConverterTest.php https://gitlab.com/crazybutterfly815/magento2 | PHP | 237 lines
1<?php 2/** 10 11class ExternalVideoEntryConverterTest extends \PHPUnit_Framework_TestCase 12{ 13 /** 14 * @var \PHPUnit_Framework_MockObject_MockObject 15 * |\Magento\Catalog\Api\Data\ProductAttributeMediaGalleryEntryInterfaceFactory 19 /** 20 * @var \PHPUnit_Framework_MockObject_MockObject 21 * |\Magento\Catalog\Api\Data\ProductAttributeMediaGalleryEntryInterface 24 25 /** @var \PHPUnit_Framework_MockObject_MockObject|\Magento\Framework\Api\DataObjectHelper */ 26 protected $dataObjectHelperMock; 27 28 /** @var \PHPUnit_Framework_MockObject_MockObject|\Magento\Framework\Api\Data\VideoContentInterfaceFactory */ 29 protected $videoEntryFactoryMock;ParameterTest.php https://gitlab.com/x33n/respond | PHP | 416 lines
1<?php 2 145 ->setDefault('h') 146 ->setType('i'); 147%%0C^0C4^0C47B79C%%layout.tpl.php https://github.com/mcrider/pkpUpgradeTestSuite.git | PHP | 139 lines
1<?php /* Smarty version 2.6.12, created on 2006-07-17 16:34:27 2 compiled from author/submission/layout.tpl */ ?> 2 compiled from author/submission/layout.tpl */ ?> 3<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php'); 4smarty_core_load_plugins(array('plugins' => array(array('function', 'translate', 'author/submission/layout.tpl', 15, false),array('function', 'url', 'author/submission/layout.tpl', 37, false),array('function', 'icon', 'author/submission/layout.tpl', 98, false),array('modifier', 'escape', 'author/submission/layout.tpl', 21, false),array('modifier', 'to_array', 'author/submission/layout.tpl', 37, false),array('modifier', 'date_format', 'author/submission/layout.tpl', 37, false),array('modifier', 'default', 'author/submission/layout.tpl', 43, false),)), $this); ?> 5 6<?php $this->assign('layoutAssignment', $this->_tpl_vars['submission']->getLayoutAssignment()); $this->assign('layoutFile', $this->_tpl_vars['layoutAssignment']->getLayoutFile()); ?> 7<a name="layout"></a> 7<a name="layout"></a> 8<h3><?php echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "submission.layout"), $this);?> 9</h3> 68 </tr> 69 <?php $_from = $this->_tpl_vars['submission']->getGalleys(); if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['galleys'] = array('total' => count($_from), 'iteration' => 0); 70if ($this->_foreach['galleys']['total'] > 0): 100 </tr> 101 <?php $_from = $this->_tpl_vars['submission']->getSuppFiles(); if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['suppFiles'] = array('total' => count($_from), 'iteration' => 0); 102if ($this->_foreach['suppFiles']['total'] > 0):UserQuery.php https://github.com/basdog22/Qool.git | PHP | 355 lines
1<?php 2 20 * @license http://framework.zend.com/license/new-bsd New BSD License 21 * @version $Id: UserQuery.php 24594 2012-01-05 21:27:01Z matthew $ 22 */ 26 */ 27require_once('Zend/Gdata/Gapps/Query.php'); 28 109 */ 110 public function setType($value) 111 { 118 * 119 * @see setType 120 * @return string type 327 } else { 328 require_once 'Zend/Gdata/App/InvalidArgumentException.php'; 329 throw new Zend_Gdata_App_InvalidArgumentException(ShowController.php https://bitbucket.org/Sinfin/pawtucket.git | PHP | 204 lines
1<?php 2/* ---------------------------------------------------------------------- 2/* ---------------------------------------------------------------------- 3 * includes/ShowController.php 4 * ---------------------------------------------------------------------- 28 29 require_once(__CA_MODELS_DIR__.'/ca_sets.php'); 30 require_once(__CA_MODELS_DIR__.'/ca_objects.php'); 30 require_once(__CA_MODELS_DIR__.'/ca_objects.php'); 31 require_once(__CA_MODELS_DIR__.'/ca_set_items.php'); 32 require_once(__CA_MODELS_DIR__.'/ca_collections.php'); 32 require_once(__CA_MODELS_DIR__.'/ca_collections.php'); 33 require_once(__CA_MODELS_DIR__.'/ca_lists.php'); 34 // require_once(__CA_HELPERS_DIR__.'/displayHelpers.php'); 34 // require_once(__CA_HELPERS_DIR__.'/displayHelpers.php'); 35 require_once(__CA_APP_DIR__.'/helpers/accessHelpers.php'); 36 require_once(__CA_LIB_DIR__.'/ca/ResultContext.php');class-wp-filesystem-ftpsockets.php https://gitlab.com/Gashler/sg | PHP | 469 lines
1<?php 2/** 31 // Check if possible to use ftp functions. 32 if ( ! @include_once( ABSPATH . 'wp-admin/includes/class-ftp.php' ) ) { 33 return; 83 84 $this->ftp->SetType( FTP_BINARY ); 85 $this->ftp->Passive( true );Blogger.php https://github.com/Exercise/zf2.git | PHP | 373 lines
1<?php 2/** 30* To run the sample: 31* php Blogger.php --user=email@email.com --pass=password 32*/ 36 */ 37require_once 'Zend/Loader.php'; 38 134 $entry->content = $this->gdClient->newContent(trim($content)); 135 $entry->content->setType('text'); 136 $uri = "http://www.blogger.com/feeds/" . $this->blogID . "/posts/default"; 231 $newComment->content = $this->gdClient->newContent($commentText); 232 $newComment->content->setType('text'); 233 $createdComment = $this->gdClient->insertEntry($newComment, $uri); 368if (($user == null) || ($pass == null)) { 369 exit("php Blogger.php --user=[username] --pass=[password]\n"); 370}Indexer.php https://bitbucket.org/acidel/buykoala.git | PHP | 309 lines
1<?php 2/** 9 * It is also available through the world-wide-web at this URL: 10 * http://opensource.org/licenses/osl-3.0.php 11 * If you did not receive a copy of the license and are unable to 23 * @copyright Copyright (c) 2011 Magento Inc. (http://www.magentocommerce.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 37 * @method string getTypeId() 38 * @method Mage_Catalog_Model_Product_Flat_Indexer setTypeId(string $value) 39 * @method string getSku()CreditCard.php https://github.com/basdog22/Qool.git | PHP | 317 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: CreditCard.php 24594 2012-01-05 21:27:01Z matthew $ 20 */ 24 */ 25require_once 'Zend/Validate/Abstract.php'; 26 158 159 $this->setType($options['type']); 160 if (array_key_exists('service', $options)) { 180 */ 181 public function setType($type) 182 { 229 if (!is_callable($service)) { 230 require_once 'Zend/Validate/Exception.php'; 231 throw new Zend_Validate_Exception('Invalid callback given');AttributeController.php https://bitbucket.org/acidel/buykoala.git | PHP | 363 lines
1<?php 2/** 9 * It is also available through the world-wide-web at this URL: 10 * http://opensource.org/licenses/osl-3.0.php 11 * If you did not receive a copy of the license and are unable to 23 * @copyright Copyright (c) 2011 Magento Inc. (http://www.magentocommerce.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 42 parent::preDispatch(); 43 $this->_entityTypeId = Mage::getModel('eav/entity')->setType(Mage_Catalog_Model_Product::ENTITY)->getTypeId(); 44 }Event.php https://gitlab.com/aredhel-bazaar/la-taverne-du-hasard | PHP | 466 lines
1<?php 2/** 2/** 3 * Created by PhpStorm. 4 * User: Silvesius 254 */ 255 public function setType(string $type): Event 256 {file.php https://github.com/yabba/openx.git | PHP | 358 lines
8 * 9 * LICENSE: This source file is subject to version 3.01 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_01.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 * 18 * @author Bertrand Mansion <bmansion@mamasam.com> 19 * @author Alexey Borzov <avb@php.net> 20 * @copyright 2001-2007 The PHP Group 20 * @copyright 2001-2007 The PHP Group 21 * @license http://www.php.net/license/3_01.txt PHP License 3.01 22 * @version CVS: $Id$smarty_internal_data.php https://gitlab.com/mike_tm555/batiste | PHP | 404 lines
1<?php 2/** 136 if (!(is_array($this->tpl_vars[$_key]->value) || $this->tpl_vars[$_key]->value instanceof ArrayAccess)) { 137 settype($this->tpl_vars[$_key]->value, 'array'); 138 } 158 if (!(is_array($this->tpl_vars[$tpl_var]->value) || $this->tpl_vars[$tpl_var]->value instanceof ArrayAccess)) { 159 settype($this->tpl_vars[$tpl_var]->value, 'array'); 160 } 189 if (!is_array($this->tpl_vars[$tpl_var]->value)) { 190 settype($this->tpl_vars[$tpl_var]->value, 'array'); 191 }admin_statedit.php https://github.com/Sweil/Frogsystem-2.git | PHP | 287 lines
1<?php if (!defined('ACP_GO')) die('Unauthorized access!'); 2 8{ 9 settype($_POST['d'], 'integer'); 10 settype($_POST['m'], 'integer'); 10 settype($_POST['m'], 'integer'); 11 settype($_POST['y'], 'integer'); 12 settype($_POST['v'], 'integer'); 12 settype($_POST['v'], 'integer'); 13 settype($_POST['h'], 'integer'); 14 $FD->db()->conn()->exec('UPDATE '.$FD->env('DB_PREFIX')."counter_stat 28{ 29 settype($_POST['ed'], 'integer'); 30 settype($_POST['em'], 'integer'); 30 settype($_POST['em'], 'integer'); 31 settype($_POST['ey'], 'integer'); 32 $index = $FD->db()->conn()->query('SELECT s_visits,ThemeTest.php https://gitlab.com/crazybutterfly815/magento2 | PHP | 489 lines
1<?php 2/** 16/** 17 * @SuppressWarnings(PHPMD.CouplingBetweenObjects) 18 */ 18 */ 19class ThemeTest extends \PHPUnit_Framework_TestCase 20{ 21 /** 22 * @var \Magento\Theme\Model\Theme|\PHPUnit_Framework_MockObject_MockObject 23 */ 26 /** 27 * @var \PHPUnit_Framework_MockObject_MockObject 28 */ 31 /** 32 * @var \PHPUnit_Framework_MockObject_MockObject|\Magento\Framework\View\Design\Theme\FlyweightFactory 33 */Message.php https://bitbucket.org/pcelta/zf2.git | PHP | 538 lines
1<?php 2/** 400 $header = $this->getHeaderByName('content-type', __NAMESPACE__ . '\Header\ContentType'); 401 $header->setType('multipart/mixed'); 402 $header->addParameter('boundary', $mime->boundary());Message.php https://bitbucket.org/acidel/buykoala.git | PHP | 314 lines
1<?php 2/** 9 * It is also available through the world-wide-web at this URL: 10 * http://opensource.org/licenses/osl-3.0.php 11 * If you did not receive a copy of the license and are unable to 23 * @copyright Copyright (c) 2011 Magento Inc. (http://www.magentocommerce.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 74 ->setEntity($entity) 75 ->setType($type)->toHtml(); 76 } 95 ->setEntity($entity) 96 ->setType($type)->toHtml(); 97 }Boolean.php https://github.com/jakemhiller/SillyCMS.git | PHP | 373 lines
1<?php 2/** 44 const NULL = 64; 45 const PHP = 127; 46 const FALSE_STRING = 128; 57 self::NULL => 'null', 58 self::PHP => 'php', 59 self::FALSE_STRING => 'false', 68 */ 69 protected $_type = self::PHP; 70 112 if (array_key_exists('type', $options)) { 113 $this->setType($options['type']); 114 } 141 */ 142 public function setType($type = null) 143 {Item.php https://gitlab.com/LisovyiEvhenii/ismextensions | PHP | 386 lines
1<?php 2/** 9 * It is also available through the world-wide-web at this URL: 10 * http://opensource.org/licenses/osl-3.0.php 11 * If you did not receive a copy of the license and are unable to 23 * @copyright Copyright (c) 2006-2016 X.commerce, Inc. and affiliates (http://www.magento.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 32 * @method int getTypeId() 33 * @method Mage_GoogleBase_Model_Item setTypeId(int $value) 34 * @method int getProductId() 105 ->insert(); 106 $this->setTypeId($typeModel->getTypeId()); 107 return $this;UserController.php https://gitlab.com/HugoGarrido/mondialator | PHP | 586 lines
1<?php 2 157 $social->setUser($user); 158 $social->setType($socialType[0]); 159Categories.php https://github.com/imagecms/ImageCMS.git | PHP | 302 lines
1<?php 2 264 ->setUrl(translit_url($this->categoriesXml[$categoryData['external_id']]['name'])) 265 ->setType(Route::TYPE_SHOP_CATEGORY) 266 ->setEntityId($categoryData['id'])SmartyBC.class.php https://gitlab.com/alvarobacelar/cms-admin-marko | PHP | 460 lines
3 * Project: Smarty: the PHP compiling template engine 4 * File: SmartyBC.class.php 5 * SVN: $Id: $ 34 */ 35require(dirname(__FILE__) . '/Smarty.class.php'); 36 58 // register {php} tag 59 $this->registerPlugin('block', 'php', 'smarty_php_tag'); 60 } 98 * @param string $function the name of the template function 99 * @param string $function_impl the name of the PHP function to register 100 * @param bool $cacheable 445/** 446 * Smarty {php}{/php} block function 447 *post_form.php https://github.com/estar/moodle-anon-forum.git | PHP | 199 lines
1<?php 2 27 28require_once($CFG->libdir.'/formslib.php'); 29 52 $mform->addElement('text', 'subject', get_string('subject', 'forumanon'), 'size="48"'); 53 $mform->setType('subject', PARAM_TEXT); 54 $mform->addRule('subject', get_string('required'), 'required', null, 'client'); 57 $mform->addElement('editor', 'message', get_string('message', 'forumanon'), null, $editoroptions); 58 $mform->setType('message', PARAM_RAW); 59 $mform->addRule('message', get_string('required'), 'required', null, 'client'); 64 $mform->addElement('hidden', 'subscribe'); 65 $mform->setType('subscribe', PARAM_INT); 66 $mform->addHelpButton('subscribemessage', 'subscription', 'forumanon'); 79 $mform->addElement('hidden', 'subscribe'); 80 $mform->setType('subscribe', PARAM_INT); 81 $mform->addHelpButton('subscribemessage', 'subscription', 'forumanon');95eeb7b25358280d311e60256eb3b5688b1d33ac.file.blockcms.tpl.cache.php https://gitlab.com/nghiep5890/prestashop | PHP | 210 lines
1<?php /* Smarty version Smarty-3.1.19, created on 2016-11-24 23:58:43 2 compiled from "C:\xampp\htdocs\prestashop\themes\default-bootstrap\modules\blockcms\blockcms.tpl" */ ?> 2 compiled from "C:\xampp\htdocs\prestashop\themes\default-bootstrap\modules\blockcms\blockcms.tpl" */ ?> 3<?php /*%%SmartyHeaderCode:659358371c43bfd283-45713654%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed'); 4$_valid = $_smarty_tpl->decodeProperties(array ( 42),false); /*/%%SmartyHeaderCode%%*/?> 43<?php if ($_valid && !is_callable('content_58371c43cef5b2_29254358')) {function content_58371c43cef5b2_29254358($_smarty_tpl) {?> 44 44 45<?php if ($_smarty_tpl->tpl_vars['block']->value==1) {?> 46 <!-- Block CMS module --> 58"> 59 <?php if (!empty($_smarty_tpl->tpl_vars['cms_title']->value['name'])) {?><?php echo $_smarty_tpl->tpl_vars['cms_title']->value['name'];?> 60<?php } else { ?><?php echo $_smarty_tpl->tpl_vars['cms_title']->value['category_name'];?> 201 <div> 202 <?php echo '/*%%SmartyNocache:659358371c43bfd283-45713654%%*/<?php echo smartyTranslate(array(\'s\'=>\'[1] %3$s %2$s - Ecommerce software by %1$s [/1]\',\'mod\'=>\'blockcms\',\'sprintf\'=>array(\'PrestaShop™\',date(\'Y\'),\'©\'),\'tags\'=>array(\'<a class="_blank" href="http://www.prestashop.com">\')),$_smarty_tpl);?> 203/*/%%SmartyNocache:659358371c43bfd283-45713654%%*/';?>SendTransacSms.php https://gitlab.com/i-have-a-green/digitemis-v3 | PHP | 500 lines
1<?php 2/** 4 * 5 * PHP version 5 6 * 125 'content' => 'setContent', 126 'type' => 'setType', 127 'tag' => 'setTag', 365 */ 366 public function setType($type) 367 {mod_form.php https://github.com/epsd/moodle.git | PHP | 207 lines
1<?php 2if (!defined('MOODLE_INTERNAL')) { 5 6require_once ($CFG->dirroot.'/course/moodleform_mod.php'); 7 19 if (!empty($CFG->formatstringstriptags)) { 20 $mform->setType('name', PARAM_TEXT); 21 } else { 21 } else { 22 $mform->setType('name', PARAM_CLEANHTML); 23 } 38 $mform->addElement('hidden', 'globalglossary'); 39 $mform->setType('globalglossary', PARAM_INT); 40 } 181 $group[] =& $mform->createElement('text', 'completionentries', '', array('size'=>3)); 182 $mform->setType('completionentries', PARAM_INT); 183 $mform->addGroup($group, 'completionentriesgroup', get_string('completionentriesgroup','glossary'), array(' '), false);%%0C^0C4^0C47B79C%%layout.tpl.php https://github.com/mcrider/pkpUpgradeTestSuite.git | PHP | 146 lines
1<?php /* Smarty version 2.6.10, created on 2005-09-21 12:20:12 2 compiled from author/submission/layout.tpl */ ?> 2 compiled from author/submission/layout.tpl */ ?> 3<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php'); 4smarty_core_load_plugins(array('plugins' => array(array('function', 'translate', 'author/submission/layout.tpl', 15, false),array('function', 'icon', 'author/submission/layout.tpl', 94, false),array('modifier', 'escape', 'author/submission/layout.tpl', 19, false),array('modifier', 'date_format', 'author/submission/layout.tpl', 33, false),array('modifier', 'default', 'author/submission/layout.tpl', 39, false),)), $this); ?> 5 6<?php $this->assign('layoutAssignment', $this->_tpl_vars['submission']->getLayoutAssignment()); $this->assign('layoutFile', $this->_tpl_vars['layoutAssignment']->getLayoutFile()); ?> 7<a name="layout"></a> 7<a name="layout"></a> 8<h3><?php echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "submission.layout"), $this);?> 9</h3> 66 </tr> 67 <?php $_from = $this->_tpl_vars['submission']->getGalleys(); if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['galleys'] = array('total' => count($_from), 'iteration' => 0); 68if ($this->_foreach['galleys']['total'] > 0): 102 </tr> 103 <?php $_from = $this->_tpl_vars['submission']->getSuppFiles(); if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['suppFiles'] = array('total' => count($_from), 'iteration' => 0); 104if ($this->_foreach['suppFiles']['total'] > 0):NullTest.php https://github.com/blanketCMS/zf2.git | PHP | 329 lines
1<?php 2/** 33 */ 34class NullTest extends \PHPUnit_Framework_TestCase 35{ 78 $filter = $this->_filter; 79 $filter->setType(NullFilter::BOOLEAN); 80 $this->assertEquals(0.0, $filter(0.0)); 97 $filter = $this->_filter; 98 $filter->setType(NullFilter::INTEGER); 99 $this->assertEquals(0.0, $filter(0.0)); 116 $filter = $this->_filter; 117 $filter->setType(NullFilter::EMPTY_ARRAY); 118 $this->assertEquals(0.0, $filter(0.0)); 135 $filter = $this->_filter; 136 $filter->setType(NullFilter::STRING); 137 $this->assertEquals(0.0, $filter(0.0));Attributes.php https://bitbucket.org/kdms/sh-magento.git | PHP | 381 lines
1<?php 2/** 52 parent::__construct(); 53 $this->setType('enterprise_targetrule/actions_condition_product_attributes'); 54 $this->setValue(null);8492d846a6229befff18f42ea57aebc956ccf3ea.file.content.tpl.php https://gitlab.com/A.Julien/sendstockbymail-module-prestashop | PHP | 208 lines
1<?php /* Smarty version Smarty-3.1.19, created on 2016-08-29 22:20:21 2 compiled from "C:\xampp\htdocs\prestashop\prestashop\_\admin2200io4fc\themes\default\template\controllers\login\content.tpl" */ ?> 2 compiled from "C:\xampp\htdocs\prestashop\prestashop\_\admin2200io4fc\themes\default\template\controllers\login\content.tpl" */ ?> 3<?php /*%%SmartyHeaderCode:2196757c499052e7dd8-97025757%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed'); 4$_valid = $_smarty_tpl->decodeProperties(array ( 38),false); /*/%%SmartyHeaderCode%%*/?> 39<?php if ($_valid && !is_callable('content_57c49905405f73_36057746')) {function content_57c49905405f73_36057746($_smarty_tpl) {?><?php if (!is_callable('smarty_modifier_date_format')) include 'C:\\xampp\\htdocs\\prestashop\\prestashop\\_\\tools\\smarty\\plugins\\modifier.date_format.php'; 40?> 43 <h1 class="text-center"> 44 <img id="logo" src="<?php echo $_smarty_tpl->tpl_vars['img_dir']->value;?> 45prestashop@2x.png" width="123px" height="24px" alt="PrestaShop" /> 92</label> 93 <input name="email" type="email" id="email" class="form-control" value="<?php if (isset($_smarty_tpl->tpl_vars['email']->value)) {?><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['email']->value, ENT_QUOTES, 'UTF-8', true);?> 94<?php }?>" autofocus="autofocus" tabindex="1" placeholder=" test@example.com" /> 100 </label> 101 <input name="passwd" type="password" id="passwd" class="form-control" value="<?php if (isset($_smarty_tpl->tpl_vars['password']->value)) {?><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['password']->value, ENT_QUOTES, 'UTF-8', true);?> 102<?php }?>" tabindex="2" placeholder=" <?php echo smartyTranslate(array('s'=>'Password'),$_smarty_tpl);?>00630ab01a40d7318a4f29fb0352ba887f780efb.file.simple.tpl.php https://gitlab.com/A.Julien/sendstockbymail-module-prestashop | PHP | 192 lines
57 58 <?php if (isset($_smarty_tpl->tpl_vars['file']->value['size'])) {?><p><?php echo smartyTranslate(array('s'=>'File size'),$_smarty_tpl);?> 59 <?php echo $_smarty_tpl->tpl_vars['file']->value['size'];?> 84 <div class="col-sm-6"> 85 <input id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8', true);?> 86" type="file" name="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['name']->value, ENT_QUOTES, 'UTF-8', true);?> 86" type="file" name="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['name']->value, ENT_QUOTES, 'UTF-8', true);?> 87<?php if (isset($_smarty_tpl->tpl_vars['multiple']->value)&&$_smarty_tpl->tpl_vars['multiple']->value) {?>[]<?php }?>"<?php if (isset($_smarty_tpl->tpl_vars['multiple']->value)&&$_smarty_tpl->tpl_vars['multiple']->value) {?> multiple="multiple"<?php }?> class="hide" /> 88 <div class="dummyfile input-group"> 95 <i class="icon-folder-open"></i> <?php if (isset($_smarty_tpl->tpl_vars['multiple']->value)&&$_smarty_tpl->tpl_vars['multiple']->value) {?><?php echo smartyTranslate(array('s'=>'Add files'),$_smarty_tpl);?> 96<?php } else { ?><?php echo smartyTranslate(array('s'=>'Add file'),$_smarty_tpl);?> 97<?php }?> 103 <?php if (isset($_smarty_tpl->tpl_vars['size']->value)) {?><?php echo smartyTranslate(array('s'=>'Download current file (%skb)','sprintf'=>$_smarty_tpl->tpl_vars['size']->value),$_smarty_tpl);?> 104<?php } else { ?><?php echo smartyTranslate(array('s'=>'Download current file'),$_smarty_tpl);?> 105<?php }?>Item.php https://bitbucket.org/mengqing/magento-mirror.git | PHP | 386 lines
1<?php 2/** 9 * It is also available through the world-wide-web at this URL: 10 * http://opensource.org/licenses/osl-3.0.php 11 * If you did not receive a copy of the license and are unable to 23 * @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 32 * @method int getTypeId() 33 * @method Mage_GoogleBase_Model_Item setTypeId(int $value) 34 * @method int getProductId() 105 ->insert(); 106 $this->setTypeId($typeModel->getTypeId()); 107 return $this;ColumnMap.php https://github.com/UAPV/Manitou.git | PHP | 520 lines
1<?php 2 55 56 // The php name of the column 57 protected $phpName; 119 /** 120 * Set the php name of this column. 121 * 121 * 122 * @param string $phpName A string representing the PHP name. 123 * @return void 124 */ 125 public function setPhpName($phpName) 126 { 126 { 127 $this->phpName = $phpName; 128 }Domain.php https://bitbucket.org/wayfarer/verse.git | PHP | 396 lines
1<?php 2/* 2/* 3 * $Id: Domain.php 1262 2009-10-26 20:54:39Z francois $ 4 * 18 * and is licensed under the LGPL. For more information please see 19 * <http://propel.phpdb.org>. 20 */ 21 22require_once 'propel/engine/database/model/XMLElement.php'; 23 247 */ 248 public function setType($propelType) 249 { 274 /** 275 * Gets the default value, type-casted for use in PHP OM. 276 * @return mixedklarnapclass.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 546 lines
1<?php 2defined('_JEXEC') or die('Restricted access'); 101 * 102 * @ignore Do not show in PHPDoc. 103 * @var string 109 * 110 * @ignore Do not show in PHPDoc. 111 * @var int 117 * 118 * @ignore Do not show in PHPDoc. 119 * @var float 125 * 126 * @ignore Do not show in PHPDoc. 127 * @var float 133 * 134 * @ignore Do not show in PHPDoc. 135 * @var floatTemperatureTest.php https://github.com/christophervalles/Zend-Framework-Skeleton.git | PHP | 447 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: TemperatureTest.php 23775 2011-03-01 17:25:24Z ralph $ 21 */ 22 23if (!defined('PHPUnit_MAIN_METHOD')) { 24 define('PHPUnit_MAIN_METHOD', 'Zend_Measure_TemperatureTest::main'); 29 */ 30require_once 'Zend/Measure/Temperature.php'; 31 34 */ 35require_once 'Zend/Registry.php'; 36 44 */ 45class Zend_Measure_TemperatureTest extends PHPUnit_Framework_TestCase 46{jquery.noty.js https://gitlab.com/Mirros/cdnjs | JavaScript | 475 lines
7* Licensed under the MIT licenses: 8* http://www.opensource.org/licenses/mit-license.php 9* 192 193 setType: function(type) { 194 if (!this.closed) { 311 312 $.noty.setType = function(id, type) { 313 return $.noty.get(id) ? $.noty.get(id).setType(type) : false;AbstractFile.php https://github.com/Exercise/zf2.git | PHP | 411 lines
1<?php 2/** 110 { 111 settype($value, 'integer'); 112 $this->_fwrite( chr($value>>24 & 0xFF) . 131 */ 132 if (PHP_INT_SIZE > 4) { 133 $str = $this->_fread(8); 159 */ 160 if (PHP_INT_SIZE > 4) { 161 settype($value, 'integer'); 268 { 269 settype($value, 'integer'); 270 while ($value > 0x7F) { 356 // convert input to a string before iterating string characters 357 settype($str, 'string'); 358MonitoredResourceDescriptor.php https://gitlab.com/remyvianne/krowkaramel | PHP | 262 lines
1<?php 2# Generated by the protocol buffer compiler. DO NOT EDIT! 162 */ 163 public function setType($var) 164 {Option.php https://bitbucket.org/jit_bec/shopifine.git | PHP | 491 lines
1<?php 2/** 9 * It is also available through the world-wide-web at this URL: 10 * http://opensource.org/licenses/osl-3.0.php 11 * If you did not receive a copy of the license and are unable to 23 * @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 34 * @method string getType() 35 * @method Mage_Catalog_Model_Product_Option setType(string $value) 36 * @method int getIsRequire()ext_reflection.h https://gitlab.com/0072016/0072016-PHP.LLC | C Header | 282 lines
2 +----------------------------------------------------------------------+ 3 | HipHop for PHP | 4 +----------------------------------------------------------------------+ 5 | Copyright (c) 2010-2015 Facebook, Inc. (http://www.facebook.com) | 6 | Copyright (c) 1997-2010 The PHP Group | 7 +----------------------------------------------------------------------+ 7 +----------------------------------------------------------------------+ 8 | This source file is subject to version 3.01 of the PHP license, | 9 | that is bundled with this package in the file LICENSE, and is | 10 | available through the world-wide-web at the following url: | 11 | http://www.php.net/license/3_01.txt | 12 | If you did not receive a copy of the PHP license and are unable to | 13 | obtain it through the world-wide-web, please send a note to | 14 | license@php.net so we can mail you a copy immediately. | 15 +----------------------------------------------------------------------+edit_form.php https://github.com/mspall/moodle.git | PHP | 245 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 28 29require_once($CFG->dirroot.'/lib/formslib.php'); 30 68 $mform->addElement('hidden', 'id'); 69 $mform->setType('id', PARAM_INT); 70 $mform->addElement('hidden', 'course', $COURSE->id); 70 $mform->addElement('hidden', 'course', $COURSE->id); 71 $mform->setType('course', PARAM_INT); 72mutation.cpp https://gitlab.com/Blueprint-Marketing/hhvm | C++ | 329 lines
2 +----------------------------------------------------------------------+ 3 | HipHop for PHP | 4 +----------------------------------------------------------------------+ 6 +----------------------------------------------------------------------+ 7 | This source file is subject to version 3.01 of the PHP license, | 8 | that is bundled with this package in the file LICENSE, and is | 9 | available through the world-wide-web at the following url: | 10 | http://www.php.net/license/3_01.txt | 11 | If you did not receive a copy of the PHP license and are unable to | 12 | obtain it through the world-wide-web, please send a note to | 13 | license@php.net so we can mail you a copy immediately. | 14 +----------------------------------------------------------------------+ 16 17#include "hphp/runtime/vm/jit/mutation.h" 18TypedDataManager.php https://gitlab.com/geeta7/drupal | PHP | 294 lines
1<?php 2 96 $typed_data = $class::createInstance($data_definition, $configuration['name'], $configuration['parent']); 97 $typed_data->setTypedDataManager($this); 98 return $typed_data;AttributeController.php https://gitlab.com/LisovyiEvhenii/ismextensions | PHP | 352 lines
1<?php 2/** 9 * It is also available through the world-wide-web at this URL: 10 * http://opensource.org/licenses/osl-3.0.php 11 * If you did not receive a copy of the license and are unable to 23 * @copyright Copyright (c) 2006-2016 X.commerce, Inc. and affiliates (http://www.magento.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 42 parent::preDispatch(); 43 $this->_entityTypeId = Mage::getModel('eav/entity')->setType(Mage_Catalog_Model_Product::ENTITY)->getTypeId(); 44 }PluginTest.php https://gitlab.com/yousafsyed/easternglamor | PHP | 314 lines
1<?php 2/** 7 8class PluginTest extends \PHPUnit_Framework_TestCase 9{ 15 /** 16 * @var \PHPUnit_Framework_MockObject_MockObject 17 */ 20 /** 21 * @var \PHPUnit_Framework_MockObject_MockObject 22 */ 25 /** 26 * @var \PHPUnit_Framework_MockObject_MockObject 27 */ 30 /** 31 * @var \PHPUnit_Framework_MockObject_MockObject 32 */impulsex3.html https://github.com/nephie/AZL-website.git | HTML | 106 lines
1<div style="font-weight: bold;margin-left:15px;">impulsex3.php</div><link rel="stylesheet" href="../phphl.css" type="text/css"><div class="hl-main"><table class="hl-table" width="100%"><tr><td class="hl-gutter" align="right" valign="top"><pre>1 22 5353 54</pre></td><td class="hl-main" valign="top"><pre><span class="hl-inlinetags"><?php</span><span class="hl-code"> </span><span class="hl-comment">//</span><span class="hl-comment"> content="text/plain; charset=utf-8"</span><span class="hl-comment"></span><span class="hl-code"> 55</span><span class="hl-reserved">require_once</span><span class="hl-code"> </span><span class="hl-brackets">(</span><span class="hl-quotes">"</span><span class="hl-string">jpgraph/jpgraph.php</span><span class="hl-quotes">"</span><span class="hl-brackets">)</span><span class="hl-code">; 55</span><span class="hl-reserved">require_once</span><span class="hl-code"> </span><span class="hl-brackets">(</span><span class="hl-quotes">"</span><span class="hl-string">jpgraph/jpgraph.php</span><span class="hl-quotes">"</span><span class="hl-brackets">)</span><span class="hl-code">; 56</span><span class="hl-reserved">require_once</span><span class="hl-code"> </span><span class="hl-brackets">(</span><span class="hl-quotes">"</span><span class="hl-string">jpgraph/jpgraph_scatter.php</span><span class="hl-quotes">"</span><span class="hl-brackets">)</span><span class="hl-code">; 57 94</span><span class="hl-var">$sp1</span><span class="hl-code"> = </span><span class="hl-reserved">new</span><span class="hl-code"> </span><span class="hl-identifier">ScatterPlot</span><span class="hl-brackets">(</span><span class="hl-var">$datay</span><span class="hl-brackets">)</span><span class="hl-code">; 95</span><span class="hl-var">$sp1</span><span class="hl-code">-></span><span class="hl-identifier">mark</span><span class="hl-code">-></span><span class="hl-identifier">SetType</span><span class="hl-brackets">(</span><span class="hl-identifier">MARK_SQUARE</span><span class="hl-brackets">)</span><span class="hl-code">; 96</span><span class="hl-var">$sp1</span><span class="hl-code">-></span><span class="hl-identifier">mark</span><span class="hl-code">-></span><span class="hl-identifier">SetFillColor</span><span class="hl-brackets">(</span><span class="hl-quotes">"</span><span class="hl-string">red</span><span class="hl-quotes">"</span><span class="hl-brackets">)</span><span class="hl-code">;TorqueTest.php https://github.com/christophervalles/Zend-Framework-Skeleton.git | PHP | 389 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: TorqueTest.php 23775 2011-03-01 17:25:24Z ralph $ 21 */ 26 */ 27require_once 'Zend/Measure/Torque.php'; 28 36 */ 37class Zend_Measure_TorqueTest extends PHPUnit_Framework_TestCase 38{ 308 */ 309 public function testTorqueSetType() 310 { 311 $value = new Zend_Measure_Torque('-100',Zend_Measure_Torque::STANDARD,'de'); 312 $value->setType(Zend_Measure_Torque::NEWTON_CENTIMETER); 313 $this->assertEquals(Zend_Measure_Torque::NEWTON_CENTIMETER, $value->getType(), 'Zend_Measure_Torque type expected');Service.php https://github.com/adupuis/GYMActivity.git | PHP | 287 lines
1<?php 2/* 262 } 263 public function setTypes($types) 264 {File.php https://github.com/bhaumik25/zend-framework.git | PHP | 371 lines
1<?php 2/** 146 { 147 settype($value, 'integer'); 148 $this->_fwrite( chr($value>>24 & 0xFF) . 165 /** 166 * PHP uses long as largest integer. fseek() uses long for offset. 167 * long has 4 bytes in a lot of systems. 4 bytes are discarded to prevent 188 /** 189 * PHP uses long as largest integer. fseek() uses long for offset. 190 * long has 4 bytes in a lot of systems. 4 bytes are discarded to prevent 193 */ 194 settype($value, 'integer'); 195 $this->_fwrite( "\x00\x00\x00\x00" . 228 { 229 settype($value, 'integer'); 230 while ($value > 0x7F) {Field.php https://github.com/chromium/chromium.git | PHP | 381 lines
1<?php 2# Generated by the protocol buffer compiler. DO NOT EDIT! 239 */ 240 public function setTypeUrl($var) 241 {Event.php https://gitlab.com/LisovyiEvhenii/ismextensions | PHP | 340 lines
1<?php 2/** 9 * It is also available through the world-wide-web at this URL: 10 * http://opensource.org/licenses/osl-3.0.php 11 * If you did not receive a copy of the license and are unable to 23 * @copyright Copyright (c) 2006-2016 X.commerce, Inc. and affiliates (http://www.magento.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 31 * @method Mage_Index_Model_Resource_Event getResource() 32 * @method Mage_Index_Model_Event setType(string $value) 33 * @method Mage_Index_Model_Event setEntity(string $value)forms.php https://github.com/netspotau/moodle.git | PHP | 334 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 }SuppFileDAO.inc.php https://github.com/mcrider/pkpUpgradeTestSuite.git | PHP | 350 lines
1<?php 2 3/** 4 * @file classes/article/SuppFileDAO.inc.php 5 * 15 16// $Id: SuppFileDAO.inc.php,v 1.26 2009/05/12 14:34:53 asmecher Exp $ 17 123 $suppFile->setArticleId($row['article_id']); 124 $suppFile->setType($row['type']); 125 $suppFile->setDateCreated($this->dateFromDB($row['date_created']));windrose_bgimg_ex1.html https://github.com/nephie/AZL-website.git | HTML | 98 lines
1<div style="font-weight: bold;margin-left:15px;">windrose_bgimg_ex1.php</div><link rel="stylesheet" href="../phphl.css" type="text/css"><div class="hl-main"><table class="hl-table" width="100%"><tr><td class="hl-gutter" align="right" valign="top"><pre>1 22 4949 50</pre></td><td class="hl-main" valign="top"><pre><span class="hl-inlinetags"><?php</span><span class="hl-code"> </span><span class="hl-comment">//</span><span class="hl-comment"> content="text/plain; charset=utf-8"</span><span class="hl-comment"></span><span class="hl-code"> 51</span><span class="hl-reserved">require_once</span><span class="hl-code"> </span><span class="hl-brackets">(</span><span class="hl-quotes">'</span><span class="hl-string">jpgraph/jpgraph.php</span><span class="hl-quotes">'</span><span class="hl-brackets">)</span><span class="hl-code">; 51</span><span class="hl-reserved">require_once</span><span class="hl-code"> </span><span class="hl-brackets">(</span><span class="hl-quotes">'</span><span class="hl-string">jpgraph/jpgraph.php</span><span class="hl-quotes">'</span><span class="hl-brackets">)</span><span class="hl-code">; 52</span><span class="hl-reserved">require_once</span><span class="hl-code"> </span><span class="hl-brackets">(</span><span class="hl-quotes">'</span><span class="hl-string">jpgraph/jpgraph_windrose.php</span><span class="hl-quotes">'</span><span class="hl-brackets">)</span><span class="hl-code">; 53</span><span class="hl-reserved">require_once</span><span class="hl-code"> </span><span class="hl-brackets">(</span><span class="hl-quotes">'</span><span class="hl-string">jpgraph/jpgraph_flags.php</span><span class="hl-quotes">'</span><span class="hl-brackets">)</span><span class="hl-code">; 78</span><span class="hl-var">$wp2</span><span class="hl-code"> = </span><span class="hl-reserved">new</span><span class="hl-code"> </span><span class="hl-identifier">WindrosePlot</span><span class="hl-brackets">(</span><span class="hl-var">$data2</span><span class="hl-brackets">)</span><span class="hl-code">; 79</span><span class="hl-var">$wp2</span><span class="hl-code">-></span><span class="hl-identifier">SetType</span><span class="hl-brackets">(</span><span class="hl-identifier">WINDROSE_TYPE16</span><span class="hl-brackets">)</span><span class="hl-code">; 80</span><span class="hl-var">$wp2</span><span class="hl-code">-></span><span class="hl-identifier">SetSize</span><span class="hl-brackets">(</span><span class="hl-number">0</span><span class="hl-number">.55</span><span class="hl-brackets">)</span><span class="hl-code">;ConfigHandler.php https://gitlab.com/mohamed_hussein/prodt | PHP | 282 lines
1<?php 2 21 public function __construct($type = NULL, $id = NULL) { 22 $this->setType($type); 23 $this->setID($id); 36 public function getForm(ViewEntityInterface $view, $display_id, $js, $type = NULL, $id = NULL) { 37 $this->setType($type); 38 $this->setID($id);element.php https://github.com/foxbei/joomla15.git | PHP | 713 lines
1<?php 2/** 3* @package ZOO Component 4* @file element.php 5* @version 2.3.7 March 2011 184 if ($layout == null) { 185 $layout = "{$type}.php"; 186 } 280 /* 281 Function: setType 282 Set related type object. 289 */ 290 public function setType($type) { 291 $this->_type = $type;Api.php https://github.com/guiohm/magento-french.git | PHP | 313 lines
1<?php 2/** 9 * It is also available through the world-wide-web at this URL: 10 * http://opensource.org/licenses/osl-3.0.php 11 * If you did not receive a copy of the license and are unable to 23 * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 145 ->setAttributeSetId($set) 146 ->setTypeId($type) 147 ->setSku($sku);UserQuery.php https://github.com/edmondscommerce/XAMPP-Magento-Demo-Site.git | PHP | 354 lines
1<?php 2 25 */ 26#require_once('Zend/Gdata/Gapps/Query.php'); 27 108 */ 109 public function setType($value) 110 { 117 * 118 * @see setType 119 * @return string type 326 } else { 327 #require_once 'Zend/Gdata/App/InvalidArgumentException.php'; 328 throw new Zend_Gdata_App_InvalidArgumentException( 334 } else { 335 #require_once 'Zend/Gdata/App/InvalidArgumentException.php'; 336 throw new Zend_Gdata_App_InvalidArgumentException(NullTest.php https://bitbucket.org/ksekar/campus.git | PHP | 292 lines
1<?php 2/** 25 */ 26require_once 'Zend/Filter/Null.php'; 27 35 */ 36class Zend_Filter_NullTest extends PHPUnit_Framework_TestCase 37{ 77 { 78 $this->_filter->setType(Zend_Filter_Null::BOOLEAN); 79 $this->assertEquals('0', $this->_filter->filter('0')); 94 { 95 $this->_filter->setType(Zend_Filter_Null::INTEGER); 96 $this->assertEquals('0', $this->_filter->filter('0')); 111 { 112 $this->_filter->setType(Zend_Filter_Null::EMPTY_ARRAY); 113 $this->assertEquals('0', $this->_filter->filter('0'));Ftp.php https://gitlab.com/ricoru21/py_incidencia | PHP | 660 lines
1<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); 2/** 4 * 5 * An open source application development framework for PHP 5.1.6 or newer 6 * 255 $ext = $this->_getext($locpath); 256 $mode = $this->_settype($ext); 257 } 303 $ext = $this->_getext($rempath); 304 $mode = $this->_settype($ext); 305 } 467 468 // Permissions can only be set when running PHP 5 469 if ( ! function_exists('ftp_chmod')) 554 $ext = $this->_getext($file); 555 $mode = $this->_settype($ext); 556Theme.php https://gitlab.com/yousafsyed/easternglamor | PHP | 378 lines
1<?php 2/** 29 * @method ThemeInterface setThemeTitle(string $themeTitle) 30 * @method ThemeInterface setType(int $type) 31 * @method ThemeInterface setCode(string $code) 32 * 33 * @SuppressWarnings(PHPMD.CouplingBetweenObjects) 34 */ 99 * 100 * @SuppressWarnings(PHPMD.ExcessiveParameterList) 101 */ 328 $messages = $this->_validator->getErrorMessages(); 329 throw new \Magento\Framework\Exception\LocalizedException(__(implode(PHP_EOL, reset($messages)))); 330 }ccbp_ex2.html https://github.com/nephie/AZL-website.git | HTML | 72 lines
1<div style="font-weight: bold;margin-left:15px;">ccbp_ex2.php</div><link rel="stylesheet" href="../phphl.css" type="text/css"><div class="hl-main"><table class="hl-table" width="100%"><tr><td class="hl-gutter" align="right" valign="top"><pre>1 22 3636 37</pre></td><td class="hl-main" valign="top"><pre><span class="hl-inlinetags"><?php</span><span class="hl-code"> </span><span class="hl-comment">//</span><span class="hl-comment"> content="text/plain; charset=utf-8" </span><span class="hl-comment"></span><span class="hl-code"> 38</span><span class="hl-reserved">require_once</span><span class="hl-code"> </span><span class="hl-quotes">'</span><span class="hl-string">jpgraph/jpgraph.php</span><span class="hl-quotes">'</span><span class="hl-code">; 38</span><span class="hl-reserved">require_once</span><span class="hl-code"> </span><span class="hl-quotes">'</span><span class="hl-string">jpgraph/jpgraph.php</span><span class="hl-quotes">'</span><span class="hl-code">; 39</span><span class="hl-reserved">require_once</span><span class="hl-code"> </span><span class="hl-quotes">'</span><span class="hl-string">jpgraph/jpgraph_line.php</span><span class="hl-quotes">'</span><span class="hl-code">; 40</span><span class="hl-reserved">require_once</span><span class="hl-code"> </span><span class="hl-quotes">'</span><span class="hl-string">jpgraph/jpgraph_plotmark.inc.php</span><span class="hl-quotes">'</span><span class="hl-code">; 40</span><span class="hl-reserved">require_once</span><span class="hl-code"> </span><span class="hl-quotes">'</span><span class="hl-string">jpgraph/jpgraph_plotmark.inc.php</span><span class="hl-quotes">'</span><span class="hl-code">; 41</span><span class="hl-reserved">require_once</span><span class="hl-code"> </span><span class="hl-quotes">'</span><span class="hl-string">jpgraph/jpgraph_scatter.php</span><span class="hl-quotes">'</span><span class="hl-code">; 42</span><span class="hl-reserved">require_once</span><span class="hl-code"> </span><span class="hl-quotes">'</span><span class="hl-string">ccbpgraph.class.php</span><span class="hl-quotes">'</span><span class="hl-code">; 53</span><span class="hl-var">$sp</span><span class="hl-code"> = </span><span class="hl-reserved">new</span><span class="hl-code"> </span><span class="hl-identifier">ScatterPlot</span><span class="hl-brackets">(</span><span class="hl-var">$datay</span><span class="hl-code">,</span><span class="hl-var">$datax</span><span class="hl-brackets">)</span><span class="hl-code">; 54</span><span class="hl-var">$sp</span><span class="hl-code">-></span><span class="hl-identifier">mark</span><span class="hl-code">-></span><span class="hl-identifier">SetType</span><span class="hl-brackets">(</span><span class="hl-identifier">MARK_DIAMOND</span><span class="hl-brackets">)</span><span class="hl-code">; 55</span><span class="hl-var">$sp</span><span class="hl-code">-></span><span class="hl-identifier">mark</span><span class="hl-code">-></span><span class="hl-identifier">SetFillColor</span><span class="hl-brackets">(</span><span class="hl-quotes">'</span><span class="hl-string">white</span><span class="hl-quotes">'</span><span class="hl-brackets">)</span><span class="hl-code">;ccbp_ex1.html https://github.com/nephie/AZL-website.git | HTML | 72 lines
1<div style="font-weight: bold;margin-left:15px;">ccbp_ex1.php</div><link rel="stylesheet" href="../phphl.css" type="text/css"><div class="hl-main"><table class="hl-table" width="100%"><tr><td class="hl-gutter" align="right" valign="top"><pre>1 22 3636 37</pre></td><td class="hl-main" valign="top"><pre><span class="hl-inlinetags"><?php</span><span class="hl-code"> </span><span class="hl-comment">//</span><span class="hl-comment"> content="text/plain; charset=utf-8" </span><span class="hl-comment"></span><span class="hl-code"> 38</span><span class="hl-reserved">require_once</span><span class="hl-code"> </span><span class="hl-quotes">'</span><span class="hl-string">jpgraph/jpgraph.php</span><span class="hl-quotes">'</span><span class="hl-code">; 38</span><span class="hl-reserved">require_once</span><span class="hl-code"> </span><span class="hl-quotes">'</span><span class="hl-string">jpgraph/jpgraph.php</span><span class="hl-quotes">'</span><span class="hl-code">; 39</span><span class="hl-reserved">require_once</span><span class="hl-code"> </span><span class="hl-quotes">'</span><span class="hl-string">jpgraph/jpgraph_line.php</span><span class="hl-quotes">'</span><span class="hl-code">; 40</span><span class="hl-reserved">require_once</span><span class="hl-code"> </span><span class="hl-quotes">'</span><span class="hl-string">jpgraph/jpgraph_plotmark.inc.php</span><span class="hl-quotes">'</span><span class="hl-code">; 40</span><span class="hl-reserved">require_once</span><span class="hl-code"> </span><span class="hl-quotes">'</span><span class="hl-string">jpgraph/jpgraph_plotmark.inc.php</span><span class="hl-quotes">'</span><span class="hl-code">; 41</span><span class="hl-reserved">require_once</span><span class="hl-code"> </span><span class="hl-quotes">'</span><span class="hl-string">jpgraph/jpgraph_scatter.php</span><span class="hl-quotes">'</span><span class="hl-code">; 42</span><span class="hl-reserved">require_once</span><span class="hl-code"> </span><span class="hl-quotes">'</span><span class="hl-string">ccbpgraph.class.php</span><span class="hl-quotes">'</span><span class="hl-code">; 53</span><span class="hl-var">$sp</span><span class="hl-code"> = </span><span class="hl-reserved">new</span><span class="hl-code"> </span><span class="hl-identifier">ScatterPlot</span><span class="hl-brackets">(</span><span class="hl-var">$datay</span><span class="hl-code">,</span><span class="hl-var">$datax</span><span class="hl-brackets">)</span><span class="hl-code">; 54</span><span class="hl-var">$sp</span><span class="hl-code">-></span><span class="hl-identifier">mark</span><span class="hl-code">-></span><span class="hl-identifier">SetType</span><span class="hl-brackets">(</span><span class="hl-identifier">MARK_DIAMOND</span><span class="hl-brackets">)</span><span class="hl-code">; 55</span><span class="hl-var">$sp</span><span class="hl-code">-></span><span class="hl-identifier">mark</span><span class="hl-code">-></span><span class="hl-identifier">SetFillColor</span><span class="hl-brackets">(</span><span class="hl-quotes">'</span><span class="hl-string">white</span><span class="hl-quotes">'</span><span class="hl-brackets">)</span><span class="hl-code">;Backup.php https://github.com/cosmocommerce/magento-mirror.git | PHP | 402 lines
1<?php 2/** 9 * It is also available through the world-wide-web at this URL: 10 * http://opensource.org/licenses/osl-3.0.php 11 * If you did not receive a copy of the license and are unable to 23 * @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 73 74 $this->setType($backupData->getType()); 75 return $this; 112 */ 113 public function setType($value='db') 114 { 391 if ($backup->getId() == $backupId) { 392 $this->setType($backup->getType()) 393 ->setTime($backup->getTime())ClassType.php https://gitlab.com/paveltizek/shop | PHP | 501 lines
1<?php 2 7 8namespace Nette\PhpGenerator; 9 24 25 /** @var PhpNamespace|NULL */ 26 private $namespace; 68 $from = new \ReflectionClass($from instanceof \ReflectionClass ? $from->getName() : $from); 69 if (PHP_VERSION_ID >= 70000 && $from->isAnonymous()) { 70 $class = new static('anonymous'); 71 } else { 72 $class = new static($from->getShortName(), new PhpNamespace($from->getNamespaceName())); 73 } 73 } 74 $class->type = $from->isInterface() ? 'interface' : (PHP_VERSION_ID >= 50400 && $from->isTrait() ? 'trait' : 'class'); 75 $class->final = $from->isFinal() && $class->type === 'class';addinstanceform.php https://gitlab.com/unofficial-mirrors/moodle | PHP | 147 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 28 29require_once($CFG->dirroot.'/cache/forms.php'); 30require_once($CFG->dirroot.'/cache/stores/memcached/lib.php'); 46 $form = $this->_form; 47 $version = phpversion('memcached'); 48 $hasrequiredversion = ($version || version_compare($version, cachestore_memcached::REQUIRED_VERSION, '>=')); 58 $form->addRule('servers', get_string('required'), 'required'); 59 $form->setType('servers', PARAM_RAW); 60 63 $form->setDefault('compression', 1); 64 $form->setType('compression', PARAM_BOOL); 65 68 $form->addHelpButton('serialiser', 'useserialiser', 'cachestore_memcached'); 69 $form->setDefault('serialiser', Memcached::SERIALIZER_PHP); 70 $form->setType('serialiser', PARAM_INT);PHPArray.php https://github.com/rogerwu99/punch_bantana.git | PHP | 258 lines
6// +----------------------------------------------------------------------+ 7// | This source file is subject to version 2.0 of the PHP license, | 8// | that is bundled with this package in the file LICENSE, and is | 9// | available at through the world-wide-web at | 10// | http://www.php.net/license/2_02.txt. | 11// | If you did not receive a copy of the PHP license and are unable to | 12// | obtain it through the world-wide-web, please send a note to | 13// | license@php.net so we can mail you a copy immediately. | 14// +----------------------------------------------------------------------+ 17// 18// $Id: PHPArray.php 306488 2010-12-20 08:45:09Z cweiske $ 19 20/** 21* Config parser for common PHP configuration array 22* such as found in the horde project.Stock.php https://bitbucket.org/kdms/sh-magento.git | PHP | 336 lines
1<?php 2/** 277 $indexer = Mage::getResourceModel($modelName) 278 ->setTypeId($typeId) 279 ->setIsComposite($isComposite);AtomTest.php https://bitbucket.org/pcelta/zf2.git | PHP | 313 lines
1<?php 2/** 23 */ 24class AtomTest extends \PHPUnit_Framework_TestCase 25{ 33 34 $this->validWriter->setType('atom'); 35mod_form.php https://bitbucket.org/ciceidev/cicei_moodle_conditional_activities.git | PHP | 192 lines
1<?php 2require_once ($CFG->dirroot.'/course/moodleform_mod.php'); 15 if (!empty($CFG->formatstringstriptags)) { 16 $mform->setType('name', PARAM_TEXT); 17 } else { 17 } else { 18 $mform->setType('name', PARAM_CLEAN); 19 } 22 $mform->addElement('htmleditor', 'intro', get_string('description')); 23 $mform->setType('intro', PARAM_RAW); 24 $mform->addRule('intro', get_string('required'), 'required', null, 'client'); 37 $mform->addElement('hidden', 'globalglossary'); 38 $mform->setType('globalglossary', PARAM_INT); 39 }CapacitanceTest.php https://github.com/bhaumik25/zend-framework.git | PHP | 398 lines
1<?php 2 26 */ 27require_once 'Zend/Measure/Capacitance.php'; 28 29/** 30 * PHPUnit test case 31 */ 31 */ 32require_once 'PHPUnit/Framework/TestCase.php'; 33 38 */ 39class Zend_Measure_CapacitanceTest extends PHPUnit_Framework_TestCase 40{ 341 */ 342 public function testCapacitanceSetType() 343 {Kinematic.php https://github.com/bhaumik25/zend-framework.git | PHP | 258 lines
1<?php 2/** 25 */ 26require_once 'Zend/Measure/Exception.php'; 27require_once 'Zend/Measure/Abstract.php'; 27require_once 'Zend/Measure/Abstract.php'; 28require_once 'Zend/Locale.php'; 29 172 parent::setValue($value, $type, $locale); 173 parent::setType($type); 174 } 182 */ 183 public function setType($type) 184 { 222 parent::setValue($value, $type, $this->_Locale); 223 parent::setType( $type ); 224 }Domain.php https://github.com/Kazuhiro-Murota/OpenPNE3.git | PHP | 396 lines
1<?php 2/* 2/* 3 * $Id: Domain.php 989 2008-03-11 14:29:30Z heltem $ 4 * 18 * and is licensed under the LGPL. For more information please see 19 * <http://propel.phpdb.org>. 20 */ 21 22require_once 'propel/engine/database/model/XMLElement.php'; 23 247 */ 248 public function setType($propelType) 249 { 274 /** 275 * Gets the default value, type-casted for use in PHP OM. 276 * @return mixedEnergyTest.php https://github.com/Exercise/zf2.git | PHP | 390 lines
1<?php 2/** 36 */ 37class EnergyTest extends \PHPUnit_Framework_TestCase 38{ 308 */ 309 public function testEnergySetType() 310 { 311 $value = new Measure\Energy('-100',Measure\Energy::STANDARD,'de'); 312 $value->setType(Measure\Energy::ERG); 313 $this->assertEquals(Measure\Energy::ERG, $value->getType(), 'Zend\Measure\Energy type expected'); 324 $value = new Measure\Energy('-100',Measure\Energy::ERG,'de'); 325 $value->setType(Measure\Energy::KILOTON); 326 $this->assertEquals(Measure\Energy::KILOTON, $value->getType(), 'Zend\Measure\Energy type expected'); 336 $value = new Measure\Energy('-100',Measure\Energy::KILOTON,'de'); 337 $value->setType(Measure\Energy::ERG); 338 $this->assertEquals(Measure\Energy::ERG, $value->getType(), 'Zend\Measure\Energy type expected');polarclockex2.html https://gitlab.com/GLORIA04/conception-site-web | HTML | 106 lines
1<div style="font-weight: bold;margin-left:15px;">polarclockex2.php</div><link rel="stylesheet" href="../phphl.css" type="text/css"><div class="hl-main"><table class="hl-table" width="100%"><tr><td class="hl-gutter" align="right" valign="top"><pre>1 22 5353 54</pre></td><td class="hl-main" valign="top"><pre><span class="hl-inlinetags"><?php</span><span class="hl-code"> </span><span class="hl-comment">//</span><span class="hl-comment"> content="text/plain; charset=utf-8"</span><span class="hl-comment"></span><span class="hl-code"> 55</span><span class="hl-reserved">require_once</span><span class="hl-code"> </span><span class="hl-brackets">(</span><span class="hl-quotes">'</span><span class="hl-string">jpgraph/jpgraph.php</span><span class="hl-quotes">'</span><span class="hl-brackets">)</span><span class="hl-code">; 55</span><span class="hl-reserved">require_once</span><span class="hl-code"> </span><span class="hl-brackets">(</span><span class="hl-quotes">'</span><span class="hl-string">jpgraph/jpgraph.php</span><span class="hl-quotes">'</span><span class="hl-brackets">)</span><span class="hl-code">; 56</span><span class="hl-reserved">require_once</span><span class="hl-code"> </span><span class="hl-brackets">(</span><span class="hl-quotes">'</span><span class="hl-string">jpgraph/jpgraph_polar.php</span><span class="hl-quotes">'</span><span class="hl-brackets">)</span><span class="hl-code">; 57 74</span><span class="hl-var">$graph</span><span class="hl-code">-></span><span class="hl-identifier">SetMarginColor</span><span class="hl-brackets">(</span><span class="hl-quotes">'</span><span class="hl-string">#FFE6C0</span><span class="hl-quotes">'</span><span class="hl-brackets">)</span><span class="hl-code">; 75</span><span class="hl-var">$graph</span><span class="hl-code">-></span><span class="hl-identifier">SetType</span><span class="hl-brackets">(</span><span class="hl-identifier">POLAR_360</span><span class="hl-brackets">)</span><span class="hl-code">; 76</span><span class="hl-var">$graph</span><span class="hl-code">-></span><span class="hl-identifier">SetClockwise</span><span class="hl-brackets">(</span><span class="hl-reserved">true</span><span class="hl-brackets">)</span><span class="hl-code">;Controller.php https://bitbucket.org/hermescarretero/simon-iniesta.git | PHP | 287 lines
1<?php 2 264 if ($type == 'tshirt') { 265 $pack->setType('tshirt'); 266 $pack->setSize('L'); 268 } else { 269 $pack->setType('ball'); 270 }__CG__TunisiamalltunisiamallBundleEntityCorrespondanceProduit.php https://gitlab.com/Snizer/PI-DEV-TUNISIAMALL3A6-WEB | PHP | 433 lines
1<?php 2 259 */ 260 public function setType($type) 261 { 262 263 $this->__initializer__ && $this->__initializer__->__invoke($this, 'setType', array($type)); 264 264 265 return parent::setType($type); 266 }%%25^250^25033C6E%%cfieldsTprojectAssign.tpl.php https://github.com/viglesiasce/testlink.git | PHP | 207 lines
2 compiled from cfields/cfieldsTprojectAssign.tpl */ ?> 3<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php'); 4smarty_core_load_plugins(array('plugins' => array(array('function', 'lang_get', 'cfields/cfieldsTprojectAssign.tpl', 17, false),array('function', 'config_load', 'cfields/cfieldsTprojectAssign.tpl', 26, false),array('function', 'html_options', 'cfields/cfieldsTprojectAssign.tpl', 76, false),array('modifier', 'basename', 'cfields/cfieldsTprojectAssign.tpl', 25, false),array('modifier', 'replace', 'cfields/cfieldsTprojectAssign.tpl', 25, false),array('modifier', 'escape', 'cfields/cfieldsTprojectAssign.tpl', 29, false),)), $this); ?> 76 </tr> 77 <?php $_from = $this->_tpl_vars['gui']->my_cf; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)): 78 foreach ($_from as $this->_tpl_vars['cf_id'] => $this->_tpl_vars['cf']): 83]" /></td> 84 <td class="bold"><a href="lib/cfields/cfieldsEdit.php?do_action=edit&cfield_id=<?php echo $this->_tpl_vars['cf']['id']; ?> 85" 118]" 119 <?php if ($this->_tpl_vars['cf']['active'] == 1): ?> checked="checked" <?php endif; ?> /> 120 <input type="hidden" name="hidden_active_cfield[<?php echo $this->_tpl_vars['cf']['id']; ?> 176 </tr> 177 <?php $_from = $this->_tpl_vars['gui']->other_cf; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)): 178 foreach ($_from as $this->_tpl_vars['cf_id'] => $this->_tpl_vars['cf']):text.php https://gitlab.com/unofficial-mirrors/moodle | PHP | 194 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 25 26require_once($CFG->dirroot.'/user/filters/lib.php'); 27 49 /** 50 * Old syntax of class constructor. Deprecated in PHP7. 51 * 82 $grp =& $mform->addElement('group', $this->_name.'_grp', $this->_label, $objs, '', false); 83 $mform->setType($this->_name, PARAM_RAW); 84 $mform->disabledIf($this->_name, $this->_name.'_op', 'eq', 5);MassTest.php https://github.com/christophervalles/Zend-Framework-Skeleton.git | PHP | 388 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: MassTest.php 23775 2011-03-01 17:25:24Z ralph $ 21 */ 25 */ 26require_once 'Zend/Measure/Flow/Mass.php'; 27 35 */ 36class Zend_Measure_Flow_MassTest extends PHPUnit_Framework_TestCase 37{ 307 */ 308 public function testFlow_MassSetType() 309 { 310 $value = new Zend_Measure_Flow_Mass('-100',Zend_Measure_Flow_Mass::STANDARD,'de'); 311 $value->setType(Zend_Measure_Flow_Mass::GRAM_PER_DAY); 312 $this->assertEquals(Zend_Measure_Flow_Mass::GRAM_PER_DAY, $value->getType(), 'Zend_Measure_Flow_Mass type expected');%%87^87A^87A1ECC2%%statistics.tpl.php https://github.com/mcrider/pkpUpgradeTestSuite.git | PHP | 121 lines
1<?php /* Smarty version 2.6.18, created on 2007-12-11 22:59:31 2 compiled from about/statistics.tpl */ ?> 2 compiled from about/statistics.tpl */ ?> 3<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php'); 4smarty_core_load_plugins(array('plugins' => array(array('function', 'translate', 'about/statistics.tpl', 20, false),array('function', 'url', 'about/statistics.tpl', 22, false),array('function', 'math', 'about/statistics.tpl', 59, false),array('modifier', 'default', 'about/statistics.tpl', 72, false),)), $this); ?> 4smarty_core_load_plugins(array('plugins' => array(array('function', 'translate', 'about/statistics.tpl', 20, false),array('function', 'url', 'about/statistics.tpl', 22, false),array('function', 'math', 'about/statistics.tpl', 59, false),array('modifier', 'default', 'about/statistics.tpl', 72, false),)), $this); ?> 5<?php $this->assign('pageTitle', "about.statistics"); ?> 6<?php $_smarty_tpl_vars = $this->_tpl_vars; 15 <tr valign="top"> 16 <td width="25%" class="label"><h4><?php echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "common.year"), $this);?> 17</h4></td> 18 <td width="75%" colspan="2" class="value"> 19 <h4><a class="action" href="<?php echo $this->_plugins['function']['url'][0][0]->smartyUrl(array('statisticsYear' => $this->_tpl_vars['statisticsYear']-1), $this);?> 20"><?php echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "navigation.previousPage"), $this);?> 103 </tr> 104 <?php $_from = $this->_tpl_vars['allSubscriptionStatistics']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)): 105 foreach ($_from as $this->_tpl_vars['type_id'] => $this->_tpl_vars['stats']):%%CD^CD9^CD9F133B%%peerReviewComment.tpl.php https://github.com/mcrider/pkpUpgradeTestSuite.git | PHP | 140 lines
2 compiled from submission/comment/peerReviewComment.tpl */ ?> 3<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php'); 4smarty_core_load_plugins(array('plugins' => array(array('modifier', 'ord', 'submission/comment/peerReviewComment.tpl', 21, false),array('modifier', 'chr', 'submission/comment/peerReviewComment.tpl', 23, false),array('modifier', 'date_format', 'submission/comment/peerReviewComment.tpl', 28, false),array('modifier', 'escape', 'submission/comment/peerReviewComment.tpl', 40, false),array('modifier', 'strip_unsafe_html', 'submission/comment/peerReviewComment.tpl', 46, false),array('modifier', 'nl2br', 'submission/comment/peerReviewComment.tpl', 46, false),array('function', 'translate', 'submission/comment/peerReviewComment.tpl', 23, false),array('function', 'fieldLabel', 'submission/comment/peerReviewComment.tpl', 73, false),)), $this); ?> 13<table class="data" width="100%"> 14<?php $_from = $this->_tpl_vars['articleComments']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)): 15 foreach ($_from as $this->_tpl_vars['comment']): 53" onclick="return confirm('<?php echo ((is_array($_tmp=$this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "submission.comments.confirmDelete"), $this))) ? $this->_run_mod_handler('escape', true, $_tmp, 'javascript') : smarty_modifier_escape($_tmp, 'javascript'));?> 54')" class="action"><?php echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "common.delete"), $this);?> 55</a></div> 83<?php if ($this->_tpl_vars['hiddenFormParams']): ?> 84 <?php $_from = $this->_tpl_vars['hiddenFormParams']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)): 85 foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['hiddenFormParam']): 121<p><input type="submit" name="save" value="<?php echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "common.save"), $this);?> 122" class="button defaultButton" /> <?php if ($this->_tpl_vars['canEmail']): ?><input type="submit" name="saveAndEmail" value="<?php echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "common.saveAndEmail"), $this);?> 123" class="button" /><?php endif; ?> <input type="button" value="<?php echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "common.close"), $this);?>%%0C^0C4^0C47B79C%%layout.tpl.php https://github.com/mcrider/pkpUpgradeTestSuite.git | PHP | 146 lines
1<?php /* Smarty version 2.6.9, created on 2005-07-08 06:01:57 2 compiled from author/submission/layout.tpl */ ?> 2 compiled from author/submission/layout.tpl */ ?> 3<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php'); 4smarty_core_load_plugins(array('plugins' => array(array('function', 'translate', 'author/submission/layout.tpl', 15, false),array('function', 'icon', 'author/submission/layout.tpl', 94, false),array('modifier', 'date_format', 'author/submission/layout.tpl', 33, false),array('modifier', 'default', 'author/submission/layout.tpl', 39, false),)), $this); ?> 5 6<?php $this->assign('layoutAssignment', $this->_tpl_vars['submission']->getLayoutAssignment()); $this->assign('layoutFile', $this->_tpl_vars['layoutAssignment']->getLayoutFile()); ?> 7<a name="layout"></a> 7<a name="layout"></a> 8<h3><?php echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "submission.layout"), $this);?> 9</h3> 66 </tr> 67 <?php $_from = $this->_tpl_vars['submission']->getGalleys(); if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['galleys'] = array('total' => count($_from), 'iteration' => 0); 68if ($this->_foreach['galleys']['total'] > 0): 102 </tr> 103 <?php $_from = $this->_tpl_vars['submission']->getSuppFiles(); if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['suppFiles'] = array('total' => count($_from), 'iteration' => 0); 104if ($this->_foreach['suppFiles']['total'] > 0):SessionSelectionActivity.java https://gitlab.com/jaadchacra/Linc | Java | 266 lines
104 Typeface tf = Typeface.createFromAsset(getAssets(), "fonts/montserrat_regular_0.ttf"); 105 toolbarTextView.setTypeface(tf); 106 setSupportActionBar(offerDetailsToolbar); 128 //JsonArrayRequest of volley 129 StringRequest postRequest = new StringRequest(Request.Method.GET, "http://kcapplications.com/Linc/sessions.php?user_id="+userID, 130 new Response.Listener<String>() { 222 //Displaying Progressbar 223 StringRequest stringRequest = new StringRequest(Request.Method.POST, "http://kcapplications.com/Linc/session/offer.php", 224 new Response.Listener<String>() {AttributeController.php https://bitbucket.org/kdms/sh-magento.git | PHP | 346 lines
1<?php 2/** 42 parent::preDispatch(); 43 $this->_entityTypeId = Mage::getModel('eav/entity')->setType(Mage_Catalog_Model_Product::ENTITY)->getTypeId(); 44 }