PageRenderTime 463ms queryTime 48ms sortTime 62ms getByIdsTime 217ms findMatchingLines 54ms

100+ results results for 'php settype repo:dongsheng/moodle' (463 ms)

Not the results you expected?
File.php https://gitlab.com/rsilveira1987/Expresso | PHP | 473 lines
                    
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.');
                    
                
PresenterComponent.php https://github.com/premiumcombination/nts.git | PHP | 438 lines
                    
1<?php
                    
2
                    
144					} else {
                    
145						settype($params[$nm], gettype($meta['def']));
                    
146					}
                    
185				if (isset($meta['def'])) {
                    
186					settype($val, gettype($meta['def']));
                    
187					if ($val === $meta['def']) {
                    
                
File.php https://github.com/Martin1982/IBMessagingWorkshopServer.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.');
                    
                
symbol_table.h https://bitbucket.org/gnanakeethan/hiphop-php.git | C Header | 395 lines
                    
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        |
                    
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          |
                    
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   +----------------------------------------------------------------------+
                    
19
                    
20#include "hphp/compiler/hphp.h"
                    
21#include "hphp/util/json.h"
                    
21#include "hphp/util/json.h"
                    
22#include "hphp/util/util.h"
                    
23#include "hphp/util/lock.h"
                    
                
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/sevenly/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) 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())
                    
                
Observer.php https://bitbucket.org/jokusafet/magento2.git | PHP | 298 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 X.commerce, Inc. (http://www.magentocommerce.com)
                    
24 * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
291        if ($isTransitionalType) {
                    
292            $product->setTypeId($product->hasIsVirtual()
                    
293                ? Mage_Catalog_Model_Product_Type::TYPE_VIRTUAL
                    
                
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' );
                    
                
Editor.php https://bitbucket.org/dnejedly/eaparts.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');
                    
                
Abstract.php https://gitlab.com/yousafsyed/easternglamor | 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) {
                    
                
Advanced.php https://gitlab.com/crazybutterfly815/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)
                    
                
ResetCommand.java https://bitbucket.org/albfan/jgit.git | Java | 357 lines
                    
7 * accompanies this distribution, is reproduced below, and is
                    
8 * available at http://www.eclipse.org/org/documents/edl-v10.php
                    
9 *
                    
84	 */
                    
85	public enum ResetType {
                    
86		/**
                    
116
                    
117	private ResetType mode;
                    
118
                    
209
                    
210			if (mode != ResetType.SOFT) {
                    
211				if (merging)
                    
242	 */
                    
243	public ResetCommand setMode(ResetType mode) {
                    
244		if (!filepaths.isEmpty())
                    
                
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');
                    
                
file.php https://bitbucket.org/valmy/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$
                    
                
Boolean.php https://github.com/sidealice/zf2.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    {
                    
                
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' );
                    
                
forms.php https://github.com/luthercollege/reason_package.git | PHP | 412 lines
                    
1<?php
                    
2/**
                    
19<body>
                    
20<?php
                    
21include ('reason_header.php');
                    
21include ('reason_header.php');
                    
22include_once(CARL_UTIL_INC.'db/db_selector.php');
                    
23reason_include_once('classes/entity_selector.php');
                    
23reason_include_once('classes/entity_selector.php');
                    
24reason_include_once('function_libraries/util.php');
                    
25reason_include_once('function_libraries/user_functions.php');
                    
25reason_include_once('function_libraries/user_functions.php');
                    
26reason_include_once('function_libraries/admin_actions.php');
                    
27reason_include_once('classes/field_to_entity_table_class.php');
                    
61		
                    
62		settype($reason_user_id, 'integer');
                    
63		if(empty($reason_user_id))
                    
                
lmbTestGetopt.class.php https://github.com/syfisher/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 directives
                    
                
File.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');
                    
                
blameable.md https://bitbucket.org/hanutimes/hanutimes.git | Markdown | 592 lines
                    
75
                    
76``` php
                    
77<?php
                    
140
                    
141``` php
                    
142<?php
                    
209
                    
210``` php
                    
211<?php
                    
346
                    
347``` php
                    
348<?php
                    
389
                    
390``` php
                    
391<?php
                    
                
SmartyBC.class.php https://gitlab.com/milutinke97/Controlify | 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)
                    
                
Link.java https://bitbucket.org/haris_peco/debrief.git | Java | 424 lines
                    
12 * You can obtain a copy of the LGPL 2.1 license at
                    
13 * http://www.opensource.org/licenses/lgpl-2.1.php
                    
14 * 
                    
15 * You can obtain a copy of the CDDL 1.0 license at
                    
16 * http://www.opensource.org/licenses/cddl1.php
                    
17 * 
                    
18 * You can obtain a copy of the EPL 1.0 license at
                    
19 * http://www.opensource.org/licenses/eclipse-1.0.php
                    
20 * 
                    
419     */
                    
420    public void setTypeRef(Reference typeRef) {
                    
421        setSecond(typeRef);
                    
                
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	}
                    
                
ir-instruction.h https://github.com/tstarling/hiphop-php.git | C Header | 415 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#ifndef incl_HPHP_VM_IRINSTRUCTION_H_
                    
18#define incl_HPHP_VM_IRINSTRUCTION_H_
                    
                
Blogger.php https://github.com/mfairchild365/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}
                    
                
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):
                    
                
NullTest.php https://github.com/sidealice/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));
                    
                
Export.php https://github.com/ChuguluGames/mediawiki-svn.git | PHP | 350 lines
                    
1<?php
                    
2
                    
267					$data['meta']['category'] == 'asset' &&
                    
268					DataCenterDB::isAssetType( $data['meta']['type'] )
                    
269				) ||
                    
                
UserQuery.php https://github.com/Spavacz/NPG.git | PHP | 355 lines
                    
1<?php
                    
2
                    
20 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
21 * @version    $Id: UserQuery.php 20096 2010-01-06 02:05:09Z bkarwin $
                    
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(
                    
                
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(
                    
                
TemperatureTest.php https://bitbucket.org/Dal-Papa/is-340-publish-base.git | PHP | 447 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: TemperatureTest.php 24593 2012-01-05 20:35:02Z matthew $
                    
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{
                    
                
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 );
                    
                
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()

                    
                
TorqueTest.php https://bitbucket.org/Dal-Papa/is-340-publish-base.git | PHP | 389 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: TorqueTest.php 24593 2012-01-05 20:35:02Z matthew $
                    
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');
                    
                
FCDGeometrySource.h https://bitbucket.org/barakianc/nvidia-physx-and-apex-in-gge.git | C Header | 188 lines
                    
5	
                    
6	MIT License: http://www.opensource.org/licenses/mit-license.php
                    
7*/
                    
145		@param type The type of data to be contained within the source. */
                    
146	inline void SetType(FUDaeGeometryInput::Semantic type) { sourceType = type; }
                    
147
                    
                
Ftp.php https://bitbucket.org/matyhaty/senses-thwaites.git | 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);
                    
556
                    
                
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');
                    
                
V2.php https://bitbucket.org/jokusafet/magento2.git | PHP | 319 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 X.commerce, Inc. (http://www.magentocommerce.com)
                    
24 * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
115            ->setAttributeSetId($set)
                    
116            ->setTypeId($type)
                    
117            ->setSku($sku);
                    
                
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    {
                    
                
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     */
                    
                
forms.php https://github.com/tcubansk/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        }
                    
                
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());
                    
                
Domain.php https://github.com/IDCI-Consulting/WebsiteEval.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     mixed
                    
                
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    }

                    
                
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;
                    
                
Item.php https://github.com/rgranadino/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) 2011 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;
                    
                
UserController.php https://gitlab.com/HugoGarrido/mondialator | PHP | 586 lines
                    
1<?php
                    
2
                    
157		 		$social->setUser($user);
                    
158		 		$social->setType($socialType[0]);
                    
159		 		
                    
                
edit_form.php https://github.com/mackensen/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);
                    
72
                    
                
Categories.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/Elron_MacBong/ecms | 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 *
                    
                
com.wikia.ad.dart.js https://github.com/federico-lox/Titanium-modules.git | JavaScript | 366 lines
                    
7 *
                    
8 * @see https://internal.wikia-inc.com/img_auth.php/2/23/DoubleClick_for_Mobile_tagging.pdf
                    
9 * @see https://internal.wikia-inc.com/img_auth.php/c/ca/DFM_Mobile_params.pdf
                    
167		
                    
168		this.setType = function(tagType){
                    
169			this.setParameter('t', tagType);
                    
                
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%%*/';?>
                    
                
Item.php https://bitbucket.org/sevenly/magento-ce.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;
                    
                
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    {
                    
                
Service.php https://github.com/sendtogeo/Seo-Panel.git | PHP | 287 lines
                    
1<?php
                    
2/*
                    
262  }
                    
263  public function setTypes($types)
                    
264  {
                    
                
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);
                    
                
storage.php https://bitbucket.org/valmy/openx.git | PHP | 504 lines
                    
1<?php
                    
2
                    
12 * http://www.php.net/license/3_0.txt.  If you did not receive a copy of
                    
13 * the PHP License and are unable to obtain it through the web, please
                    
14 * send a note to license@php.net so we can mail you a copy immediately.
                    
17 * @package    DB
                    
18 * @author     Stig Bakken <stig@php.net>
                    
19 * @copyright  1997-2005 The PHP Group
                    
19 * @copyright  1997-2005 The PHP Group
                    
20 * @license    http://www.php.net/license/3_0.txt  PHP License 3.0
                    
21 * @version    CVS: $Id$
                    
21 * @version    CVS: $Id$
                    
22 * @link       http://pear.php.net/package/DB
                    
23 */
                    
39 * @copyright  1997-2005 The PHP Group
                    
40 * @license    http://www.php.net/license/3_0.txt  PHP License 3.0
                    
41 * @version    Release: 1.7.6
                    
                
%%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):
                    
                
Option.php https://bitbucket.org/sevenly/magento-ce.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()
                    
                
class.LoggerAppenderScalr.php https://github.com/kennethjiang/Wolke.git | PHP | 319 lines
                    
1<?php
                    
2
                    
2
                    
3require_once(LOG4PHP_DIR . '/LoggerAppender.php');
                    
4require_once(LOG4PHP_DIR . '/helpers/LoggerOptionConverter.php');
                    
104            {
                    
105	        	// Reopen new mysql connection (need for php threads)
                    
106	        	$this->activateOptions();
                    
282    
                    
283    function setType($newType)
                    
284    {
                    
                
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);
                    
                
MassTest.php https://bitbucket.org/Dal-Papa/is-340-publish-base.git | PHP | 388 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: MassTest.php 24593 2012-01-05 20:35:02Z matthew $
                    
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');
                    
                
FrequencyTest.php https://bitbucket.org/Dal-Papa/is-340-publish-base.git | PHP | 389 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: FrequencyTest.php 24593 2012-01-05 20:35:02Z matthew $
                    
21 */
                    
26 */
                    
27require_once 'Zend/Measure/Frequency.php';
                    
28
                    
36 */
                    
37class Zend_Measure_FrequencyTest extends PHPUnit_Framework_TestCase
                    
38{
                    
308     */
                    
309    public function testFrequencySetType()
                    
310    {
                    
311        $value = new Zend_Measure_Frequency('-100',Zend_Measure_Frequency::STANDARD,'de');
                    
312        $value->setType(Zend_Measure_Frequency::KILOHERTZ);
                    
313        $this->assertEquals(Zend_Measure_Frequency::KILOHERTZ, $value->getType(), 'Zend_Measure_Frequency type expected');
                    
                
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="&#xf0e0 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="&#xf084 <?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 }?>
                    
                
CreditCard.php https://bitbucket.org/sasezaki/mirror-zf1-standard-trunk-libraray-validate-dir.git | PHP | 317 lines
                    
1<?php
                    
2/**
                    
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');
                    
301            try {
                    
302                require_once 'Zend/Validate/Callback.php';
                    
303                $callback = new Zend_Validate_Callback($this->_service);
                    
                
ext_std_variable.cpp https://github.com/tstarling/hiphop-php.git | C++ | 345 lines
                    
2   +----------------------------------------------------------------------+
                    
3   | HipHop for PHP                                                       |
                    
4   +----------------------------------------------------------------------+
                    
5   | Copyright (c) 2010-2013 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   +----------------------------------------------------------------------+
                    
                
mono.c https://github.com/trevor/ImageMagick.git | C | 355 lines
                    
25%                                                                             %
                    
26%    http://www.imagemagick.org/script/license.php                            %
                    
27%                                                                             %
                    
179      break;
                    
180    status=SetImageProgress(image,LoadImageTag,(MagickOffsetType) y,
                    
181                image->rows);
                    
347      (void) WriteBlobByte(image,(unsigned char) (byte >> (8-bit)));
                    
348    status=SetImageProgress(image,SaveImageTag,(MagickOffsetType) y,
                    
349      image->rows);
                    
                
Item.php https://github.com/speedupmate/Magento-CE-Mirror.git | PHP | 447 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-2020 Magento, Inc. (http://www.magento.com)
                    
24 * @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
291            $link->setRel('alternate');
                    
292            $link->setType('text/html');
                    
293            if ($object->getName()) {
                    
                
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  }
                    
                
klarnapclass.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 float
                    
                
TemperatureTest.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');
                    
358
                    
                
MonitoredResourceDescriptor.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    {
                    
                
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   +----------------------------------------------------------------------+
                    
                
mutation.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"
                    
18
                    
                
editor.php https://github.com/raymanuk/moodle.git | PHP | 447 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
29
                    
30require_once('HTML/QuickForm/element.php');
                    
31require_once($CFG->dirroot.'/lib/filelib.php');
                    
31require_once($CFG->dirroot.'/lib/filelib.php');
                    
32require_once($CFG->dirroot.'/repository/lib.php');
                    
33
                    
111            case 'createElement':
                    
112                $caller->setType($arg[0] . '[format]', PARAM_ALPHANUM);
                    
113                $caller->setType($arg[0] . '[itemid]', PARAM_INT);
                    
286        global $CFG, $PAGE;
                    
287        require_once($CFG->dirroot.'/repository/lib.php');
                    
288
                    
328                // no existing area info provided - let's use fresh new draft area
                    
329                require_once("$CFG->libdir/filelib.php");
                    
330                $this->setValue(array('itemid'=>file_get_unused_draft_itemid()));
                    
                
TypedDataManager.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;
                    
                
file_set.php https://github.com/ayamyau/concrete5.git | PHP | 336 lines
                    
1<?php
                    
2
                    
60		public function getFileSetUserID() {return $this->uID;}
                    
61		public function getFileSetType() {return $this->fsType;}
                    
62		
                    
                
NullTest.php https://bitbucket.org/Dal-Papa/is-340-publish-base.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'));
                    
                
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     */
                    
                
interfaces.php https://github.com/Seldaiendil/meyeOS.git | PHP | 529 lines
                    
1<?php
                    
2/*
                    
105	public function getType();
                    
106	public function setType($type);
                    
107	public function getRepetition();
                    
308	
                    
309	public function setType($type) {
                    
310		$this->type = $type;
                    
                
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">&lt;?php</span><span class="hl-code"> </span><span class="hl-comment">//</span><span class="hl-comment"> content=&quot;text/plain; charset=utf-8&quot;</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">&quot;</span><span class="hl-string">jpgraph/jpgraph.php</span><span class="hl-quotes">&quot;</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">&quot;</span><span class="hl-string">jpgraph/jpgraph.php</span><span class="hl-quotes">&quot;</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">&quot;</span><span class="hl-string">jpgraph/jpgraph_scatter.php</span><span class="hl-quotes">&quot;</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">-&gt;</span><span class="hl-identifier">mark</span><span class="hl-code">-&gt;</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">-&gt;</span><span class="hl-identifier">mark</span><span class="hl-code">-&gt;</span><span class="hl-identifier">SetFillColor</span><span class="hl-brackets">(</span><span class="hl-quotes">&quot;</span><span class="hl-string">red</span><span class="hl-quotes">&quot;</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');
                    
                
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) {
                    
                
Api.php https://github.com/rgranadino/magento-mirror.git | PHP | 335 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 */
                    
147            ->setAttributeSetId($set)
                    
148            ->setTypeId($type)
                    
149            ->setSku($sku);
                    
                
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)
                    
                
%%24^248^248C46CA%%DetailView.tpl.php https://github.com/joshbhamilton/sugar.git | PHP | 236 lines
                    
2         compiled from include/DetailView/DetailView.tpl */ ?>
                    
3<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
                    
4smarty_core_load_plugins(array('plugins' => array(array('function', 'counter', 'include/DetailView/DetailView.tpl', 47, false),array('function', 'sugar_evalcolumn', 'include/DetailView/DetailView.tpl', 127, false),array('function', 'sugar_field', 'include/DetailView/DetailView.tpl', 132, false),array('modifier', 'count', 'include/DetailView/DetailView.tpl', 83, false),)), $this); ?>
                    
73    <?php endif; ?>
                    
74    <div <?php if ($this->_tpl_vars['useTabs']): ?>class="yui-content"<?php endif; ?>>
                    
75<?php echo smarty_function_counter(array('name' => 'panelCount','print' => false,'start' => 0,'assign' => 'panelCount'), $this);?>
                    
111		<?php $this->assign('columnsUsed', 0); ?>
                    
112		<?php $_from = $this->_tpl_vars['rowData']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['colIteration'] = array('total' => count($_from), 'iteration' => 0);
                    
113if ($this->_foreach['colIteration']['total'] > 0):
                    
166%' <?php if ($this->_tpl_vars['colData']['colspan']): ?>colspan='<?php echo $this->_tpl_vars['colData']['colspan']; ?>
                    
167'<?php endif; ?> <?php if (isset ( $this->_tpl_vars['fields'][$this->_tpl_vars['colData']['field']['name']]['type'] ) && $this->_tpl_vars['fields'][$this->_tpl_vars['colData']['field']['name']]['type'] == 'phone'): ?>class="phone"<?php endif; ?>>
                    
168			    <?php if (! empty ( $this->_tpl_vars['colData']['field']['name'] )): ?>
                    
177				<?php elseif ($this->_tpl_vars['fields'][$this->_tpl_vars['colData']['field']['name']] && ! empty ( $this->_tpl_vars['colData']['field']['fields'] )): ?>
                    
178				    <?php $_from = $this->_tpl_vars['colData']['field']['fields']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
                    
179    foreach ($_from as $this->_tpl_vars['subField']):
                    
                
 

Source

Language