100+ results for 'php is_a'
Not the results you expected?
TemperatureTest.php (https://bitbucket.org/Dal-Papa/is-340-publish-base.git) PHP · 447 lines
1 <?php
2 /**
3 * Zend Framework
18 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
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 */
23 if (!defined('PHPUnit_MAIN_METHOD')) {
24 define('PHPUnit_MAIN_METHOD', 'Zend_Measure_TemperatureTest::main');
28 * Zend_Measure_Temperature
29 */
30 require_once 'Zend/Measure/Temperature.php';
32 /**
Alignment.php (https://gitlab.com/ptisky/API_prestashop) PHP · 409 lines
22 * @package PHPExcel_Style
23 * @copyright Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel)
24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
25 * @version 1.7.9, 2013-06-02
34 * @copyright Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel)
35 */
36 class PHPExcel_Style_Alignment extends PHPExcel_Style_Supervisor implements PHPExcel_IComparable
37 {
38 /* Horizontal alignment styles */
142 * $objPHPExcel->getActiveSheet()->getStyle('B2')->getAlignment()->applyFromArray(
143 * array(
144 * 'horizontal' => PHPExcel_Style_Alignment::HORIZONTAL_CENTER,
145 * 'vertical' => PHPExcel_Style_Alignment::VERTICAL_CENTER,
155 */
156 public function applyFromArray($pStyles = NULL) {
157 if (is_array($pStyles)) {
158 if ($this->_isSupervisor) {
159 $this->getActiveSheet()->getStyle($this->getSelectedCells())
ezisbn10to13converter.php (https://bitbucket.org/ericsagnes/ezpublish-multisite.git) PHP · 355 lines
SortedSet.php (https://github.com/netweaver/Rediska.git) PHP · 335 lines
1 <?php
3 // Require Rediska
4 require_once dirname(__FILE__) . '/../../Rediska.php';
6 /**
12 * @version @package_version@
13 * @link http://rediska.geometria-lab.net
14 * @license http://www.opensource.org/licenses/bsd-license.php
15 */
16 class Rediska_Key_SortedSet extends Rediska_Key_Abstract implements IteratorAggregate, ArrayAccess, Countable
300 protected function _prepareSetsForComapre($setOrSets)
301 {
302 if (!is_array($setOrSets)) {
303 $sets = array($setOrSets);
304 } else {
ListenerOptions.php (https://gitlab.com/yousafsyed/easternglamor) PHP · 396 lines
1 <?php
2 /**
3 * Zend Framework (http://framework.zend.com/)
87 public function setModulePaths($modulePaths)
88 {
89 if (!is_array($modulePaths) && !$modulePaths instanceof Traversable) {
90 throw new Exception\InvalidArgumentException(
91 sprintf(
133 public function setConfigGlobPaths($configGlobPaths)
134 {
135 if (!is_array($configGlobPaths) && !$configGlobPaths instanceof Traversable) {
136 throw new Exception\InvalidArgumentException(
137 sprintf(
159 public function setConfigStaticPaths($configStaticPaths)
160 {
161 if (!is_array($configStaticPaths) && !$configStaticPaths instanceof Traversable) {
162 throw new Exception\InvalidArgumentException(
163 sprintf(
class-cp-user-relationships.php (https://gitlab.com/dev73/clusterpress) PHP · 543 lines
1 <?php
2 /**
3 * ClusterPress User Relationships.
305 }
307 if ( ! is_array( $in ) ) {
308 $in = (array) $in;
309 }
385 $type = 'col';
386 if ( is_array( $column ) ) {
387 $type = 'results';
388 $column = join( ', ', $column );
451 }
453 if ( is_array( $column ) ) {
454 $column = reset( $column );
455 }
Grammar.php (https://github.com/sergiosgc/Structures_Grammar.git) PHP · 407 lines
Tag.php (https://github.com/michaelmcandrew/vaw.git) PHP · 215 lines
1 <?php
3 /*
106 if ( $entityId ) {
107 $tagset[$tagsetItem]['entityId'] = $entityId;
108 require_once 'CRM/Core/BAO/EntityTag.php';
109 $entityTags = CRM_Core_BAO_EntityTag::getChildEntityTags( $parentId, $entityId, $entityTable );
110 } else {
147 default:
148 if ( !empty($form->_formValues['contact_tags']) ) {
149 require_once 'CRM/Core/BAO/Tag.php';
150 $contactTags = CRM_Core_BAO_Tag::getTagsUsedFor( 'civicrm_contact', true, false, $parentId );
registry.php (https://github.com/Paladin/joomla-platform.git) PHP · 472 lines
1 <?php
2 /**
3 * @package Joomla.Platform
49 // Optionally load supplied data.
50 if (is_array($data) || is_object($data))
51 {
52 $this->bindData($this->data, $data);
89 *
90 * @since 12.2
91 * @note The interface is only present in PHP 5.4 and up.
92 */
93 public function jsonSerialize()
431 foreach ($data as $k => $v)
432 {
433 if ((is_array($v) && JArrayHelper::isAssociative($v)) || is_object($v))
434 {
435 $parent->$k = new stdClass;
Alignment.php (https://gitlab.com/dmsapiens/physicians) PHP · 409 lines
22 * @package PHPExcel_Style
23 * @copyright Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel)
24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
25 * @version ##VERSION##, ##DATE##
34 * @copyright Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel)
35 */
36 class PHPExcel_Style_Alignment extends PHPExcel_Style_Supervisor implements PHPExcel_IComparable
37 {
38 /* Horizontal alignment styles */
142 * $objPHPExcel->getActiveSheet()->getStyle('B2')->getAlignment()->applyFromArray(
143 * array(
144 * 'horizontal' => PHPExcel_Style_Alignment::HORIZONTAL_CENTER,
145 * 'vertical' => PHPExcel_Style_Alignment::VERTICAL_CENTER,
155 */
156 public function applyFromArray($pStyles = NULL) {
157 if (is_array($pStyles)) {
158 if ($this->_isSupervisor) {
159 $this->getActiveSheet()->getStyle($this->getSelectedCells())
Dispatcher.php (https://gitlab.com/kimting254/wbms) PHP · 486 lines
User_agent.php (https://github.com/usagi-project/mynets1.git) PHP · 500 lines
1 <?php if (!defined('BASEPATH')) exit('No direct script access allowed');
2 /**
3 * CodeIgniter
4 *
5 * An open source application development framework for PHP 4.3.2 or newer
6 *
7 * @package CodeIgniter
154 function _set_platform()
155 {
156 if (is_array($this->platforms) AND count($this->platforms) > 0)
157 {
158 foreach ($this->platforms as $key => $val)
178 function _set_browser()
179 {
180 if (is_array($this->browsers) AND count($this->browsers) > 0)
181 {
182 foreach ($this->browsers as $key => $val)
mysql4-upgrade-1.5.9.9-1.6.0.0.php (https://github.com/rgranadino/magento-mirror.git) PHP · 322 lines
1 <?php
2 /**
3 * Magento
8 * that is bundled with this package in the file LICENSE.txt.
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
12 * obtain it through the world-wide-web, please send an email
22 * @package Mage_GoogleBase
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 */
User_agent.php (https://gitlab.com/sittipongwork/impro_dashboard) PHP · 550 lines
1 <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
2 /**
3 * CodeIgniter
4 *
5 * An open source application development framework for PHP 5.1.6 or newer
6 *
7 * @package CodeIgniter
86 private function _load_agent_file()
87 {
88 if (defined('ENVIRONMENT') AND is_file(APPPATH.'config/'.ENVIRONMENT.'/user_agents.php'))
89 {
90 include(APPPATH.'config/'.ENVIRONMENT.'/user_agents.php');
91 }
92 elseif (is_file(APPPATH.'config/user_agents.php'))
93 {
94 include(APPPATH.'config/user_agents.php');
PhpClass.php (https://github.com/adaykin/zf2.git) PHP · 562 lines
89 *
90 * @param \Zend\Reflection\ReflectionClass $reflectionClass
91 * @return \Zend\CodeGenerator\Php\PhpClass
92 */
93 public static function fromReflection(\Zend\Reflection\ReflectionClass $reflectionClass)
147 * setPhpFile()
148 *
149 * @param Zend\CodeGenerator\Php\PhpFile $phpFile
150 */
151 public function setPhpFile(PhpFile $phpFile)
273 *
274 * @param string $extendedClass
275 * @return \Zend\CodeGenerator\Php\PhpClass
276 */
277 public function setExtendedClass($extendedClass)
AbstractPaginator.php (https://gitlab.com/dzakiafif/cokelatklasik) PHP · 487 lines
Entry.php (https://bitbucket.org/cesarmedrano/cesarmedrano.git) PHP · 630 lines
1 <?php
3 /**
13 * limitations under the License.
14 *
15 * PHP version 5
16 *
17 * @category Microsoft
18 * @package WindowsAzure\Common\Internal\Atom
19 * @author Azure PHP SDK <azurephpsdk@microsoft.com>
20 * @copyright 2012 Microsoft Corporation
21 * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0
33 * @category Microsoft
34 * @package WindowsAzure\Common\Internal\Atom
35 * @author Azure PHP SDK <azurephpsdk@microsoft.com>
36 * @copyright 2012 Microsoft Corporation
37 * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0
CHOPPER.C
(git://github.com/AnimatorPro/Animator-Pro.git)
C · 296 lines
✨ Summary
This is a function that reads a line of text from a file and returns it as a string. It uses a combination of jgetline
and po_skip_space
to skip leading whitespace and read the rest of the line into a buffer. The function then checks if the line contains an error message, and if so, sets the error_line_number
field in the pcb
structure to the current line number. If no error is found, the function returns the line as a string.
This is a function that reads a line of text from a file and returns it as a string. It uses a combination of jgetline
and po_skip_space
to skip leading whitespace and read the rest of the line into a buffer. The function then checks if the line contains an error message, and if so, sets the error_line_number
field in the pcb
structure to the current line number. If no error is found, the function returns the line as a string.
Cloud.php (https://github.com/grandison/budo16.git) PHP · 410 lines
1 <?php
2 /**
3 * Zend Framework
18 * @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
19 * @license http://framework.zend.com/license/new-bsd New BSD License
20 * @version $Id: Cloud.php 16209 2009-06-21 19:20:34Z thomas $
21 */
24 * @see Zend_Tag_Item
25 */
26 // require_once 'Zend/Tag/Item.php';
28 /**
83 }
85 if (is_array($options)) {
86 $this->setOptions($options);
87 }
Deferred.php (https://bitbucket.org/tobmaster/carica-io.git) PHP · 369 lines
Collection.php (https://bitbucket.org/dnejedly/eaparts.git) PHP · 333 lines
1 <?php
2 /**
3 * Magento
8 * that is bundled with this package in the file LICENSE.txt.
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
12 * obtain it through the world-wide-web, please send an email
22 * @package Mage_Catalog
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 */
140 {
141 if (!empty($products)) {
142 if (!is_array($products)) {
143 $products = array($products);
144 }
SequenceTest.php (https://bitbucket.org/mkjpryor/lazy-sequence.git) PHP · 369 lines
1 <?php
3 namespace Lazy\Test;
16 class SequenceTest extends \PHPUnit_Framework_TestCase {
18 /**
45 foreach($args as $with) {
46 // Make sure that $with is an array, even if it has a single element
47 $with = is_array($with) ? $with : array($with);
48 // Capture the expectation so we can use call_user_func_array with it
49 $expectation = $mock->expects($this->at($count))->method('__invoke');
UrlAutoConverterTwigExtensionTest.php (https://github.com/liip/LiipUrlAutoConverterBundle.git) PHP · 158 lines
1 <?php
3 namespace Liip\UrlAutoConverterBundle\Tests\Extension;
5 use Liip\UrlAutoConverterBundle\Extension\UrlAutoConverterTwigExtension;
7 class UrlAutoConverterTwigExtensionTest extends \PHPUnit_Framework_TestCase
8 {
9 public function testGetFilters()
56 ),
57 array(
58 'Lorem ipsum <a href="http://www.test.com/kjsdsd/safs.php?dfa=kdjf&sfddf=dsafsd" class="" target="">www.test.com/kjsdsd/safs.php?dfa=kdjf&sfddf=dsafsd</a> ad amet, lala aksjdhasd.',
59 'Lorem ipsum www.test.com/kjsdsd/safs.php?dfa=kdjf&sfddf=dsafsd ad amet, lala aksjdhasd.',
154 private function assertIsArray($test)
155 {
156 $this->assertTrue(is_array($test));
157 }
158 }
Cloud.php (https://bitbucket.org/Ebozavrik/test-application.git) PHP · 427 lines
1 <?php
2 /**
3 * Zend Framework
18 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
19 * @license http://framework.zend.com/license/new-bsd New BSD License
20 * @version $Id: Cloud.php 24593 2012-01-05 20:35:02Z matthew $
21 */
24 * @see Zend_Tag_Item
25 */
26 require_once 'Zend/Tag/Item.php';
28 /**
83 }
85 if (is_array($options)) {
86 $this->setOptions($options);
87 }
XmlDescriptor.php (https://github.com/marphi/symfony.git) PHP · 247 lines
1 <?php
3 /*
187 $objectXML->setAttribute('name', $argument->getName());
188 $objectXML->setAttribute('is_required', $argument->isRequired() ? 1 : 0);
189 $objectXML->setAttribute('is_array', $argument->isArray() ? 1 : 0);
190 $objectXML->appendChild($descriptionXML = $dom->createElement('description'));
191 $descriptionXML->appendChild($dom->createTextNode($argument->getDescription()));
193 $objectXML->appendChild($defaultsXML = $dom->createElement('defaults'));
194 $defaults = \is_array($argument->getDefault()) ? $argument->getDefault() : (\is_bool($argument->getDefault()) ? [var_export($argument->getDefault(), true)] : ($argument->getDefault() ? [$argument->getDefault()] : []));
195 foreach ($defaults as $default) {
196 $defaultsXML->appendChild($defaultXML = $dom->createElement('default'));
222 if ($option->acceptValue()) {
223 $defaults = \is_array($option->getDefault()) ? $option->getDefault() : (\is_bool($option->getDefault()) ? [var_export($option->getDefault(), true)] : ($option->getDefault() ? [$option->getDefault()] : []));
224 $objectXML->appendChild($defaultsXML = $dom->createElement('defaults'));
lib.php (https://gitlab.com/MotoSport/morgue) PHP · 307 lines
PaginatedList.php (https://github.com/sminnee/silverstripe-framework.git) PHP · 420 lines
1 <?php
2 /**
3 * A decorator that wraps around a data list in order to provide pagination.
25 */
26 public function __construct(SS_List $list, $request = array()) {
27 if (!is_array($request) && !$request instanceof ArrayAccess) {
28 throw new Exception('The request must be readable as an array.');
29 }
cjwnewsletterblacklistitem.php (https://github.com/heliopsis/cjw_newsletter.git) PHP · 302 lines
1 <?php
2 /**
3 * File containing the CjwNewsletterBlacklistItem class
200 }
202 if( !is_array( $sortByArray ))
203 {
204 $sortByArray = array( 'id' => false );
272 /**
273 * if nl user exists update this data to
274 * (non-PHPdoc)
275 * @see kernel/classes/eZPersistentObject#store($fieldFilters)
276 */
NodeTraverser.php (https://gitlab.com/madwanz64/laravel) PHP · 291 lines
1 <?php declare(strict_types=1);
3 namespace PhpParser;
111 $subNode =& $node->$name;
113 if (\is_array($subNode)) {
114 $subNode = $this->traverseArray($subNode);
115 if ($this->stopTraversal) {
160 $this->stopTraversal = true;
161 break 2;
162 } elseif (\is_array($return)) {
163 throw new \LogicException(
164 'leaveNode() may only return an array ' .
234 $this->ensureReplacementReasonable($node, $return);
235 $node = $return;
236 } elseif (\is_array($return)) {
237 $doNodes[] = [$i, $return];
238 break;
TraceableEventDispatcher.php (https://github.com/deviantintegral/symfony.git) PHP · 335 lines
Config.php (https://bitbucket.org/webpolis/liiv.git) PHP · 514 lines
1 <?php
2 /*
3 * CKFinder
21 * Include access control config class
22 */
23 require_once CKFINDER_CONNECTOR_LIB_DIR . "/Core/AccessControlConfig.php";
24 /**
25 * Include resource type config class
26 */
27 require_once CKFINDER_CONNECTOR_LIB_DIR . "/Core/ResourceTypeConfig.php";
28 /**
29 * Include thumbnails config class
30 */
31 require_once CKFINDER_CONNECTOR_LIB_DIR . "/Core/ThumbnailsConfig.php";
32 /**
33 * Include thumbnails config class
%%0C^0C4^0C47B79C%%layout.tpl.php (https://github.com/mcrider/pkpUpgradeTestSuite.git) PHP · 146 lines
42 </td>
43 <td>
44 <?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['layoutAssignment']->getDateNotified())) ? $this->_run_mod_handler('date_format', true, $_tmp, $this->_tpl_vars['dateFormatShort']) : smarty_modifier_date_format($_tmp, $this->_tpl_vars['dateFormatShort'])))) ? $this->_run_mod_handler('default', true, $_tmp, "—") : smarty_modifier_default($_tmp, "—")); ?>
46 </td>
47 <td>
48 <?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['layoutAssignment']->getDateUnderway())) ? $this->_run_mod_handler('date_format', true, $_tmp, $this->_tpl_vars['dateFormatShort']) : smarty_modifier_date_format($_tmp, $this->_tpl_vars['dateFormatShort'])))) ? $this->_run_mod_handler('default', true, $_tmp, "—") : smarty_modifier_default($_tmp, "—")); ?>
50 </td>
51 <td>
52 <?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['layoutAssignment']->getDateCompleted())) ? $this->_run_mod_handler('date_format', true, $_tmp, $this->_tpl_vars['dateFormatShort']) : smarty_modifier_date_format($_tmp, $this->_tpl_vars['dateFormatShort'])))) ? $this->_run_mod_handler('default', true, $_tmp, "—") : smarty_modifier_default($_tmp, "—")); ?>
54 </td>
AccelerationTest.php (https://github.com/MontmereLimited/zf2.git) PHP · 276 lines
ezcontentclassclassgroup.php (https://bitbucket.org/ericsagnes/ezpublish-multisite.git) PHP · 237 lines
ezkeyword.php (https://bitbucket.org/ericsagnes/ezpublish-multisite.git) PHP · 343 lines
1 <?php
2 /**
3 * File containing the eZKeyword class.
11 /*!
12 \class eZKeyword ezkeyword.php
13 \ingroup eZDatatype
14 \brief A content datatype which handles keyword index instances
70 function initializeKeyword( $keywordString )
71 {
72 if ( !is_array( $keywordString ) )
73 {
74 $keywordArray = explode( ',', $keywordString );
Input.php (https://gitlab.com/dleonov/my-framework-two) PHP · 419 lines
Store.php (https://github.com/speedupmate/Magento-CE-Mirror.git) PHP · 510 lines
1 <?php
2 /**
3 * Magento
8 * that is bundled with this package in the file LICENSE.txt.
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
12 * obtain it through the world-wide-web, please send an email
22 * @package Mage_Adminhtml
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 */
391 {
392 $name = '';
393 if (is_array($storeId)) {
394 $names = array();
395 foreach ($storeId as $id) {
admin_snippets_edit.php (https://github.com/Sweil/Frogsystem-2.git) PHP · 326 lines
module.php (https://gitlab.com/mostafame/team_website) PHP · 471 lines
1 <?php
3 class DSLC_TP_Excerpt extends DSLC_Module {
441 if ( $dslc_active && is_user_logged_in() && current_user_can( DS_LIVE_COMPOSER_CAPABILITY ) )
442 $dslc_is_admin = true;
443 else
444 $dslc_is_admin = false;
446 if ( $dslc_is_admin )
447 $the_excerpt = __( 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.', 'live-composer-page-builder' );
448 else
461 if ( $the_excerpt ) :
462 ?><div class="dslc-tp-excerpt"><?php echo $the_excerpt; ?></div><?php
463 endif;
toolset.settings.class.php (https://gitlab.com/Fraternal-Group/fraternal) PHP · 468 lines
1 <?php
3 /**
136 private function load_settings() {
137 $this->settings = get_option( self::OPTION_NAME );
138 if ( ! is_array( $this->settings ) ) {
139 $this->settings = array(); // Defaults will be used in this case.
140 }
214 /**
215 * PHP dynamic setter.
216 *
217 * @param mixed $key
224 /**
225 * PHP dynamic setter.
226 *
227 * @param string $key
options.php (https://github.com/livinglab/openlab.git) PHP · 316 lines
1 <?php
2 /**
3 * Genesis Framework.
49 $options = get_option( $setting );
51 if ( ! is_array( $options ) || ! array_key_exists( $key, $options ) ) {
52 return '';
53 }
55 return is_array( $options[ $key ] ) ? $options[ $key ] : wp_kses_decode_entities( $options[ $key ] );
56 }
78 // Check for non-existent option.
79 if ( ! is_array( $options ) || ! array_key_exists( $key, (array) $options ) ) {
80 // Cache non-existent option.
81 $options_cache[ $setting ][ $key ] = '';
select.php (https://gitlab.com/sihabudinahmad/asppi) PHP · 564 lines
AkLocaleManager.php (https://github.com/akelos/v1.git) PHP · 284 lines
1 <?php
3 defined('AK_TEST_DATABASE_ON') ? null : define('AK_TEST_DATABASE_ON', true);
4 require_once(dirname(__FILE__).'/../../fixtures/config/config.php');
6 require_once(AK_LIB_DIR.DS.'AkLocaleManager.php');
24 {
25 $available_locales = $this->LocaleManager->_getAvailableLocales();
26 $this->assertTrue(is_array($available_locales['en']) && count($available_locales) > 0 ,'Locale en was not found on config/locales folder.');
27 }
HttpTestCaseTest.php (https://github.com/devilsansclue/ZendFramework.git) PHP · 316 lines
1 <?php
2 /**
3 * Zend Framework
23 // Call Zend_Controller_Request_HttpTestCaseTest::main() if this source file is executed directly.
24 if (!defined("PHPUnit_MAIN_METHOD")) {
25 define("PHPUnit_MAIN_METHOD", "Zend_Controller_Request_HttpTestCaseTest::main");
28 /** Zend_Controller_Request_HttpTestCase */
29 require_once 'Zend/Controller/Request/HttpTestCase.php';
31 /**
40 * @group Zend_Controller_Request
41 */
42 class Zend_Controller_Request_HttpTestCaseTest extends PHPUnit_Framework_TestCase
43 {
44 /**
File.php (https://github.com/michaelmcandrew/eds.git) PHP · 343 lines
1 <?php
3 /*
44 * Files required for this package
45 */
46 require_once 'api/v3/utils.php';
48 /**
66 }
68 require_once 'CRM/Core/DAO/File.php';
70 $fileDAO = new CRM_Core_DAO_File();
109 civicrm_api3_verify_one_mandatory($params, null,array('file_type_id','id'));
111 require_once 'CRM/Core/DAO/File.php';
112 $fileDAO = new CRM_Core_DAO_File();
class-yoast-plugin-conflict.php (https://gitlab.com/najomie/fit-hippie) PHP · 333 lines
1 <?php
2 /**
3 * @package WPSEO\Admin
116 public function get_conflicting_plugins_as_string( $plugin_section ) {
117 if ( ! function_exists( 'get_plugin_data' ) ) {
118 require_once( ABSPATH . '/wp-admin/includes/plugin.php' );
119 }
201 /* translators: %s: 'Facebook' plugin name of possibly conflicting plugin */
202 $error_message .= '<a class="button button-primary" href="' . wp_nonce_url( 'plugins.php?action=deactivate&plugin=' . $plugin_file . '&plugin_status=all', 'deactivate-plugin_' . $plugin_file ) . '">' . sprintf( __( 'Deactivate %s', 'wordpress-seo' ), WPSEO_Utils::get_plugin_name( $plugin_file ) ) . '</a> ';
204 $identifier = $this->get_notification_identifier( $plugin_file );
252 protected function check_plugins_active( $plugins, $plugin_section ) {
253 foreach ( $plugins as $plugin ) {
254 if ( $this->check_plugin_is_active( $plugin ) ) {
255 $this->add_active_plugin( $plugin_section, $plugin );
256 }
ViewBuilder.php (https://gitlab.com/0072016/0072016-fbphp) PHP · 427 lines
1 <?php
2 /**
3 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
4 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
5 *
9 *
10 * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
11 * @link http://cakephp.org CakePHP(tm) Project
12 * @since 3.1.0
13 * @license http://www.opensource.org/licenses/mit-license.php MIT License
150 /**
151 * Turns on or off CakePHP's conventional mode of applying layout files.
152 * On by default. Setting to off means that layouts will not be
153 * automatically applied to rendered views.
Feed.php (https://github.com/quarkness/piwik.git) PHP · 320 lines
1 <?php
2 /**
3 * Zend Framework
17 * @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
18 * @license http://framework.zend.com/license/new-bsd New BSD License
19 * @version $Id: Feed.php 23775 2011-03-01 17:25:24Z ralph $
20 */
23 * @see Zend_Feed_Writer_Extension_RendererAbstract
24 */
25 // require_once 'Zend/Feed/Writer/Extension/RendererAbstract.php';
27 /**
134 }
135 foreach ($cats as $key=>$cat) {
136 if (!is_array($cat)) {
137 $el = $dom->createElement('itunes:category');
138 $el->setAttribute('text', $cat);
Relation.php (https://gitlab.com/madwanz64/laravel) PHP · 403 lines
Select.php (https://github.com/deathsta/xnova-legacies.git) PHP · 332 lines
1 <?php
3 class Wootook_Core_Database_Sql_Select
52 public function column($column = '*', $table = null)
53 {
54 if (is_array($column)) {
55 foreach ($column as $alias => $field) {
56 if (is_int($alias)) {
85 public function from($table, $schema = null)
86 {
87 if (is_array($table)) {
88 $alias = key($table);
89 $table = current($table);
104 {
105 $this->column($fields);
106 if (is_array($table)) {
107 $alias = key($table);
108 $table = $this->_connection->getTable(current($table));
api.php (https://gitlab.com/mostafame/team_website) PHP · 344 lines
connection_manager.test.php (https://github.com/v2ninad/nm_cake.git) PHP · 337 lines
1 <?php
2 /**
3 * Connection Manager tests
4 *
5 *
6 * PHP 5
7 *
8 * Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org)
12 *
13 * @copyright Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org)
14 * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
15 * @package cake.tests.cases.libs
16 * @since CakePHP(tm) v 1.2.0.5550
17 * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
18 */
19 App::import('Core', 'ConnectionManager');
common.h
(git://github.com/numpy/numpy.git)
C Header · 346 lines
✨ Summary
This C header file provides a set of functions and macros for working with NumPy arrays, including memory management, array creation, and BLAS (Basic Linear Algebra Subprograms) interface. It also includes utility functions such as memchr
and blas_stride
. The code is part of the NumPy library and is used to implement various numerical computations and data structures.
This C header file provides a set of functions and macros for working with NumPy arrays, including memory management, array creation, and BLAS (Basic Linear Algebra Subprograms) interface. It also includes utility functions such as memchr
and blas_stride
. The code is part of the NumPy library and is used to implement various numerical computations and data structures.
regression_test.php (https://github.com/F5/zetacomponents.git) PHP · 196 lines
1 <?php
2 /**
3 *
36 $feed = new ezcFeed( $type );
37 $supportedModules = ezcFeed::getSupportedModules();
38 if ( is_array( $data ) )
39 {
40 foreach ( $data as $property => $value )
41 {
42 if ( is_array( $value ) )
43 {
44 foreach ( $value as $val )
52 $element = $feed->add( $property );
53 }
54 if ( is_array( $val ) )
55 {
56 foreach ( $val as $subKey => $subValue )
ClassRegistry.php (https://github.com/masihnewbie/cakephp.git) PHP · 341 lines
1 <?php
2 /**
3 * Class collections.
7 * PHP 5
8 *
9 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
10 * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
11 *
14 *
15 * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
16 * @link http://cakephp.org CakePHP(tm) Project
17 * @package Cake.Utility
18 * @since CakePHP(tm) v 0.9.2
19 * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
20 */
cbb.c (https://gitlab.com/cde/debian_android-tools_boringssl) C · 445 lines
204 len = cbb->base->len - child_start;
206 if (cbb->child->pending_is_asn1) {
207 /* For ASN.1 we assume that we'll only need a single byte for the length.
208 * If that turned out to be incorrect, we have to move the contents along
293 cbb->child->offset = offset;
294 cbb->child->pending_len_len = len_len;
295 cbb->child->pending_is_asn1 = 0;
297 return 1;
331 cbb->child->offset = offset;
332 cbb->child->pending_len_len = 1;
333 cbb->child->pending_is_asn1 = 1;
335 return 1;
Factory.php (https://github.com/shevron/zf2.git) PHP · 297 lines
1 <?php
2 /**
3 * Zend Framework (http://framework.zend.com/)
98 public function createInput($inputSpecification)
99 {
100 if (!is_array($inputSpecification) && !$inputSpecification instanceof Traversable) {
101 throw new Exception\InvalidArgumentException(sprintf(
102 '%s expects an array or Traversable; received "%s"',
158 break;
159 case 'filters':
160 if (!is_array($value) && !$value instanceof Traversable) {
161 throw new Exception\RuntimeException(sprintf(
162 '%s expects the value associated with "filters" to be an array/Traversable of filters or filter specifications; received "%s"',
168 break;
169 case 'validators':
170 if (!is_array($value) && !$value instanceof Traversable) {
171 throw new Exception\RuntimeException(sprintf(
172 '%s expects the value associated with "validators" to be an array/Traversable of validators or validator specifications; received "%s"',
class-yikes-inc-easy-mailchimp-api.php (https://github.com/yikesinc/yikes-inc-easy-mailchimp-extender.git) PHP · 383 lines
1 <?php
3 /**
291 // If we have body data, maybe convert it to JSON.
292 if ( isset( $params['body'] ) && ( is_array( $params['body'] ) || is_object( $params['body'] ) ) ) {
293 $params['body'] = json_encode( wp_parse_args( $authorized_args['body'], $params['body'] ) );
294 $headers['Content-Type'] = 'application/json';
ViewModel.php (https://github.com/christeredvartsen/zf2.git) PHP · 439 lines
1 <?php
2 /**
3 * Zend Framework (http://framework.zend.com/)
189 }
191 if (!is_array($options)) {
192 throw new Exception\InvalidArgumentException(sprintf(
193 '%s: expects an array, or Traversable argument; received "%s"',
253 public function setVariables($variables, $overwrite = false)
254 {
255 if (!is_array($variables) && !$variables instanceof Traversable) {
256 throw new Exception\InvalidArgumentException(sprintf(
257 '%s: expects an array, or Traversable argument; received "%s"',
class-mb-include-exclude.php (https://gitlab.com/code26/selah) PHP · 379 lines
1 <?php
2 /**
3 * Control the include, exclude condition for meta boxes
195 $post_terms = wp_get_post_terms( self::$post_id, $taxonomy );
196 if ( is_wp_error( $post_terms ) || ! is_array( $post_terms ) || empty( $post_terms ) ) {
197 return false;
198 }
220 $post_terms = wp_get_post_terms( self::$post_id, $taxonomy );
221 if ( is_wp_error( $post_terms ) || ! is_array( $post_terms ) || empty( $post_terms ) ) {
222 return false;
223 }
273 * This is required for MB User Meta extension.
274 */
275 if ( isset( $GLOBALS['pagenow'] ) && 'user-edit.php' === $GLOBALS['pagenow'] ) {
276 // If edit other's profile, check edited user.
277 $user_id = intval( $_REQUEST['user_id'] );
ichiring.c (https://github.com/baoilleach/openbabel-svn-mirror.git) C · 336 lines
13 * the GNU Lesser General Public License as published by the Free Software
14 * Foundation:
15 * http://www.opensource.org/licenses/lgpl-2.1.php
16 */
309 }
310 /*******************************************************************/
311 int is_atom_in_3memb_ring( inp_ATOM* atom, int at_no )
312 {
313 AT_NUMB neigh_neigh;
BUILD.bazel (https://github.com/googleapis/googleapis.git) Bazel · 364 lines
205 ##############################################################################
206 # PHP
207 ##############################################################################
208 load(
209 "@com_google_googleapis_imports//:imports.bzl",
210 "php_gapic_assembly_pkg",
211 "php_gapic_library",
212 "php_grpc_library",
213 "php_proto_library",
214 )
216 php_proto_library(
217 name = "publish_php_proto",
Api.php (https://github.com/rgranadino/magento-mirror.git) PHP · 322 lines
1 <?php
2 /**
3 * Magento
8 * that is bundled with this package in the file LICENSE.txt.
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
12 * obtain it through the world-wide-web, please send an email
22 * @package Mage_Sales
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 */
70 ->joinAttribute('order_created_at', 'order/created_at', 'order_id', null, 'left');
72 if (is_array($filters)) {
73 try {
74 foreach ($filters as $field => $value) {
PermissibleAco.php (https://github.com/kiang/olc_baker.git) PHP · 313 lines
1 <?php
3 /**
60 'alias' => $aro
61 ));
62 if (is_array($tre)) {
63 $this->completeTreeSave($tre, $this->id);
64 }
74 public function completeTreeUpdate($tree, $parent_id = null)
75 {
76 if (!is_array($tree)) {
77 return;
78 }
262 $app_cont = get_class_methods($app_cont);
263 foreach ($controllers[1] as $file) {
264 if (substr($file, -14) === 'Controller.php') {
265 $cont = Inflector::camelize(substr($file, 0, -4));
266 $controllerName = substr($cont, 0, -10);
Outline.php (https://github.com/MontmereLimited/ZendFramework-v1.git) PHP · 373 lines
1 <?php
2 /**
3 * Zend Framework
18 * @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
19 * @license http://framework.zend.com/license/new-bsd New BSD License
20 * @version $Id: Outline.php 23775 2011-03-01 17:25:24Z ralph $
21 */
200 default:
201 // // // // // // // // // // require_once 'Zend/Pdf/Exception.php';
202 throw new Zend_Pdf_Exception("Unknown option name - '$key'.");
203 break;
230 public static function create($param1, $param2 = null)
231 {
232 // // // // // // // // // // require_once 'Zend/Pdf/Outline/Created.php';
233 if (is_string($param1)) {
234 if ($param2 !== null && !($param2 instanceof Zend_Pdf_Target || is_string($param2))) {
Api.php (https://bitbucket.org/spenna/alexoo_produzione.git) PHP · 322 lines
1 <?php
2 /**
3 * Magento
8 * that is bundled with this package in the file LICENSE.txt.
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
12 * obtain it through the world-wide-web, please send an email
22 * @package Mage_Sales
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 */
70 ->joinAttribute('order_created_at', 'order/created_at', 'order_id', null, 'left');
72 if (is_array($filters)) {
73 try {
74 foreach ($filters as $field => $value) {
submissionsoap.class.php (https://github.com/danmarsden/moodle-plagiarism_turnitin.git) PHP · 236 lines
1 <?php
2 /* @ignore
3 * To change this template, choose Tools | Templates
5 */
7 require_once( 'soap.class.php' );
8 require_once( 'tiisubmission.class.php' );
9 require_once( 'response.class.php' );
10 require_once( 'sdkexception.class.php' );
38 $tiiSubmission->setDate( $soap->resultRecord->result->date );
39 $tiiSubmission->setOverallSimilarity( $soap->resultRecord->result->resultScore->textString );
40 $soap->resultRecord->result->extension->extensionField = is_array( $soap->resultRecord->result->extension->extensionField )
41 ? $soap->resultRecord->result->extension->extensionField
42 : array( $soap->resultRecord->result->extension->extensionField );
MassTest.php (https://bitbucket.org/Dal-Papa/is-340-publish-base.git) PHP · 388 lines
1 <?php
2 /**
3 * Zend Framework
18 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
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 */
24 * Zend_Measure_Flow_Mass
25 */
26 require_once 'Zend/Measure/Flow/Mass.php';
28 /**
34 * @group Zend_Measure
35 */
36 class Zend_Measure_Flow_MassTest extends PHPUnit_Framework_TestCase
37 {
38 /**
FrequencyTest.php (https://bitbucket.org/Dal-Papa/is-340-publish-base.git) PHP · 389 lines
1 <?php
2 /**
3 * Zend Framework
18 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
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 */
25 * Zend_Measure_Frequency
26 */
27 require_once 'Zend/Measure/Frequency.php';
29 /**
35 * @group Zend_Measure
36 */
37 class Zend_Measure_FrequencyTest extends PHPUnit_Framework_TestCase
38 {
39 /**
component.php (https://gitlab.com/Rad1calDreamer/honey) PHP · 314 lines
29 {
30 $arZip = CSaleLocation::GetByZIP($arParams["ZIPCODE"]);
31 if (is_array($arZip) && count($arZip) > 1)
32 {
33 $arParams["LOCATION_VALUE"] = IntVal($arZip["ID"]);
296 );
298 $arResult["JS_PARAMS"] = CUtil::PhpToJsObject($arTmpParams);
300 $serverName = COption::GetOptionString("main", "server_name", "");
355fdb9dc905fc2b66131206c87536aeedf86a0e6888f87052cd93085cba9cef.php (https://gitlab.com/akbaryu/project_magang_blog_grav) PHP · 229 lines
translated-object.php (https://gitlab.com/hop23typhu/bryepoxy) PHP · 272 lines
1 <?php
3 /**
93 $id = (int) $id;
95 if ( ( $lang = $this->get_language( $id ) ) && isset( $translations ) && is_array( $translations ) ) {
96 // sanitize the translations array
97 $translations = array_map( 'intval', $translations );
119 // take care not to overwrite extra data stored in description field, if any
120 $d = unserialize( $term->description );
121 $d = is_array( $d ) ? array_diff_key( $d, $old_translations ) : array(); // remove old translations
122 $d = array_merge( $d, $translations ); // add new one
123 wp_update_term( $group = (int) $term->term_id, $this->tax_translations, array( 'description' => serialize( $d ) ) );
179 // make sure we return only translations ( thus we allow plugins to store other informations in the array )
180 if ( is_array( $translations ) ) {
181 $translations = array_intersect_key( $translations, array_flip( $this->model->get_languages_list( array( 'fields' => 'slug' ) ) ) );
182 }
DB_result.php (https://gitlab.com/ricoru21/py_incidencia) PHP · 410 lines
1 <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
2 /**
3 * CodeIgniter
4 *
5 * An open source application development framework for PHP 5.1.6 or newer
6 *
7 * @package CodeIgniter
172 {
173 // We cache the row data for subsequent uses
174 if ( ! is_array($this->row_data))
175 {
176 $this->row_data = $this->row_array(0);
202 {
203 // We cache the row data for subsequent uses
204 if ( ! is_array($this->row_data))
205 {
206 $this->row_data = $this->row_array(0);
Email.php (https://github.com/michaellenahan/civicrm.git) PHP · 347 lines
class-wp-customize-setting.php (https://gitlab.com/Gashler/dp) PHP · 439 lines
1 <?php
2 /**
3 * Customize Setting Class.
295 $node[ $key ] = array();
297 if ( ! is_array( $node ) || ! isset( $node[ $key ] ) )
298 return;
413 $value = $this->manager->get_setting('header_image')->post_value();
415 if ( is_array( $value ) && isset( $value['choice'] ) )
416 $custom_image_header->set_header_image( $value['choice'] );
417 else
Collect.php (https://gitlab.com/yousafsyed/easternglamor) PHP · 313 lines
1 <?php
2 /**
3 * Copyright © 2016 Magento. All rights reserved.
303 $arrayModuleNames = array_keys($configModules);
304 $uninstalledModuleChanges = $this->setUninstalledModuleChanges($dbModuleArray, $arrayModuleNames);
305 if (is_array($uninstalledModuleChanges)) {
306 $moduleChanges[] = $uninstalledModuleChanges;
307 }
file_handling_over_ftp.php (https://github.com/ameximes/akelos.git) PHP · 291 lines
1 <?php
3 //
6 if(!defined('AK_UPLOAD_FILES_USING_FTP')){
7 if(!function_exists('ftp_connect')){
8 echo "PHP is not compiled with FTP support\n";
9 return;
10 }
20 }
22 require_once(dirname(__FILE__).'/../config.php');
24 class FileHandlingOverFtp_TestCase extends ActiveSupportUnitTest
260 $this->assertFalse(AkFtp::is_dir($path));
262 $path = 'this_is_a_file.txt';
263 AkFileSystem::file_put_contents('this_is_a_file.txt', '');
reference.html
(http://hadesmem.googlecode.com/svn/trunk/)
HTML · 0 lines
✨ Summary
This is a documentation page for the Boost library, specifically the error handling module. It provides information on classes and functions related to error handling, including system_error
and its constructors. The page includes code examples and explanations of the postconditions for each constructor. It also includes copyright and licensing information.
This is a documentation page for the Boost library, specifically the error handling module. It provides information on classes and functions related to error handling, including system_error
and its constructors. The page includes code examples and explanations of the postconditions for each constructor. It also includes copyright and licensing information.
atarimouse.c
(http://omnia2droid.googlecode.com/svn/trunk/)
C · 159 lines
✨ Summary
This C code implements an Atari mouse driver for Linux, allowing users to interact with a mouse connected to an Atari system. It handles key events and reports relative movement of the mouse cursor to the operating system, providing basic input functionality. The driver is designed to work on Atari systems with specific hardware configurations.
This C code implements an Atari mouse driver for Linux, allowing users to interact with a mouse connected to an Atari system. It handles key events and reports relative movement of the mouse cursor to the operating system, providing basic input functionality. The driver is designed to work on Atari systems with specific hardware configurations.
Preview_Javadoc_of_Buffer.bsh (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 609 lines
Token.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 84 lines
✨ Summary
This Java class represents a token in a parser, containing information such as its kind, position, and string image. It also has references to other tokens, including special tokens that occur before regular tokens. The class provides methods for accessing and manipulating this information, allowing it to be used in a parser’s lexical actions.
This Java class represents a token in a parser, containing information such as its kind, position, and string image. It also has references to other tokens, including special tokens that occur before regular tokens. The class provides methods for accessing and manipulating this information, allowing it to be used in a parser’s lexical actions.
config_generator.rb
(git://github.com/jnunemaker/mongomapper.git)
Ruby · 36 lines
✨ Summary
This Ruby code defines a Rails generator for creating a MongoMapper configuration file at config/mongo.yml
. It takes an optional database_name
argument and uses the application name to populate the configuration file. The generator uses templates from a templates
directory to create the file, and it can be run using the Rails console or as part of a build process.
This Ruby code defines a Rails generator for creating a MongoMapper configuration file at config/mongo.yml
. It takes an optional database_name
argument and uses the application name to populate the configuration file. The generator uses templates from a templates
directory to create the file, and it can be run using the Rails console or as part of a build process.
jqplot.ciParser.min.js
(https://bitbucket.org/copelco/django-timepiece/)
JavaScript · 30 lines
✨ Summary
This JavaScript code defines a custom parser function jqplot.ciParser
for jqPlot, a pure JavaScript plotting plugin. It takes two arguments: an array of data and a delimiter. The function parses the data into a format suitable for jqPlot, handling different types of data such as dates and prices.
This JavaScript code defines a custom parser function jqplot.ciParser
for jqPlot, a pure JavaScript plotting plugin. It takes two arguments: an array of data and a delimiter. The function parses the data into a format suitable for jqPlot, handling different types of data such as dates and prices.
7 * Copyright (c) 2009-2011 Chris Leonello
8 * jqPlot is currently available for use in all personal or commercial projects
9 * under both the MIT (http://www.opensource.org/licenses/mit-license.php) and GPL
10 * version 2.0 (http://www.gnu.org/licenses/gpl-2.0.html) licenses. This means that you can
11 * choose the license that best suits your project and use it accordingly.
13 * Although not required, the author would appreciate an email letting him
14 * know of any substantial use of jqPlot. You can reach the author at:
15 * chris at jqplot dot com or see http://www.jqplot.com/info.php .
16 *
17 * If you are feeling kind and generous, consider supporting the project by
18 * making a donation at: http://www.jqplot.com/donate.php .
19 *
20 * sprintf functions contained in jqplot.sprintf.js by Ash Searle:
DateUtils.java
(http://wogwt.googlecode.com/svn/trunk/)
Java · 231 lines
✨ Summary
This Java class, DateUtils
, provides utility methods for working with dates, including formatting and parsing date strings according to various formats (e.g., RFC 1123, W3C, etc.). It also includes comparison methods for dates and a method to get the time zone offset. The class is designed as a utility class, providing static methods that can be used without creating an instance of the class.
This Java class, DateUtils
, provides utility methods for working with dates, including formatting and parsing date strings according to various formats (e.g., RFC 1123, W3C, etc.). It also includes comparison methods for dates and a method to get the time zone offset. The class is designed as a utility class, providing static methods that can be used without creating an instance of the class.
11 *
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 *
21 * See the Licenses for the specific language governing permissions and
AndCondition.php (git://github.com/alexgorbatchev/SyntaxHighlighter.git) text · 0 lines
UnixFileSystem.php (git://github.com/alexgorbatchev/SyntaxHighlighter.git) text · 0 lines
1 <?php
2 /*
3 * $Id: UnixFileSystem.php 258 2007-10-21 00:46:45Z hans $
20 */
22 include_once 'phing/system/io/FileSystem.php';
24 /**
25 * UnixFileSystem class. This class encapsulates the basic file system functions
26 * for platforms using the unix (posix)-stylish filesystem. It wraps php native
27 * functions suppressing normal PHP error reporting and instead uses Exception
29 *
30 * This class is part of a oop based filesystem abstraction and targeted to run
31 * on all supported php platforms.
32 *
33 * Note: For debugging turn track_errors on in the php.ini. The error messages
frame_9.svg (https://bitbucket.org/atchariya/nokia.git) SVG · 3078 lines
105 cd7plK/3PXdF+HEX/lky5nnif+4DX+sDazEOvCqdHJitNqFrnCMxLgR+t+/Z9co1L7ySCp9x45mS
106 Ghyceb0EXo0Lvh6cb6mywREpiMEfdJHjnPhicQwjuIMpOSZyXCAC62nHy75i1y3AnHU7gy9VSOog
107 9d+LVSXtwgrBUv2eR0wqpyMuCEpSp58mohQj6Yx7qEoqNcgFD5GxGFsH7wLPhp5rrqQ8MZeCSGDd
108 r1mlpspSw01AAyaKiSGe+bIbbxfhonOGUsfIYxKvEVnlwkeufHeh3BVl17D0ocFJjkMOTRUizEq9
109 MUV4EDp+RZVRhS9NueK/JaEaySaIGtGVqcxYKKzCkpwzOzNcCrigqrVj9qqeQpUsRpR6LCRrr0GE
262 T4tSOxOpqqOnevsAvJwjn8M4TjOf4Pwfg3A/RNScTirEIW607T6IOE4ieGxB3okR4Q808uYy8nfn
263 zGsl4V55gG+IsLMdX7FAXq745jzxgRiHKG+Kcm0p/MhYc3M6d6JncuNk+uwQ4qebDlOpLs6o7QFR
264 Z2EjV2dlNay5rxOTJwarphpXIZvSDT1y+ybTlUOOvv09oDq283CALdYV700TW9vxSdkxW2alwtaF
265 Dc5PhTX/2Aa2+ZTvCdCtebVbsO+ZL6RMCZF/s+i4s+j5QYQuFWLJf6PJWRlnwvkW3VuxXHbkxRrW
266 E2F7Ua9jCOTYkYe6C0JjoFusWHRdk2smbmYDCSxjxZ77YuzMWMTInb7nqlQMus/VEPoaMKtyzYRy
556 d1ozopWgoIVYLcSK5IR4SdlkUWx3D65cIx4ecen4hHz7fbI5lralOVIDU2m5QuJlG/g68EPJvBYa
557 vpgj/4X17IjwHs7faFr+JAd8zuBJ2nI2DKzHnicSGGoX+nNhwlwCpVNOWbqxIfPQRh7iRIl8Tju+
558 4WtUI/+6TPhpn/PusOZv64YvascfzsrcjNRpCT57QxxLeLWftNxXY7ldMfNarVylT3UnLBO2XOBj
559 wadsY8vBMJClxBMepBX5HPZnM5pYYJxNdm5N9rigkdPtkseeuS/CrheTy8oyUZVJrkSIWrUwTcKr
560 lOdkquV5QoxszqBK0oBX2vW1pmHtzn1PtWtIyChDKGReCYFrlST9Xq3PGCSQRWuGysGNA0JdvyMx
README (git://github.com/fgallina/multi-web-mode.git) Unknown · 83 lines
22 Currently it is focused to work on buffers which contain html, css,
23 javascript and/or php, but adding other modes is really simple: you
24 just need to add your own mode to the `mweb-tags'. You can do that
25 by using M-x customize-group RET multi-web-mode and looking for the
51 (require 'multi-web-mode)
52 (setq mweb-default-major-mode 'html-mode)
53 (setq mweb-tags '((php-mode "<\\?php\\|<\\? \\|<\\?=" "\\?>")
54 (js-mode "<script +\\(type=\"text/javascript\"\\|language=\"javascript\"\\)[^>]*>" "</script>")
55 (css-mode "<style +type=\"text/css\"[^>]*>" "</style>")))
56 (setq mweb-filename-extensions '("php" "htm" "html" "ctp" "phtml" "php4" "php5"))
57 (multi-web-global-mode 1)
PHPDocument.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 231 lines
✨ Summary
This Java class represents a PHP document, which is an outlineable object containing HTML and PHP nodes. It provides methods to analyze code, get statements at specific positions, and manage its structure, including adding and retrieving children (e.g., classes, methods). The class also implements the IAsset
interface and has properties for its name, start and end positions, and nodes.
This Java class represents a PHP document, which is an outlineable object containing HTML and PHP nodes. It provides methods to analyze code, get statements at specific positions, and manage its structure, including adding and retrieving children (e.g., classes, methods). The class also implements the IAsset
interface and has properties for its name, start and end positions, and nodes.
7 import net.sourceforge.phpdt.internal.compiler.parser.OutlineableWithChildren;
8 import gatchan.phpparser.project.itemfinder.PHPItem;
9 import gatchan.phpparser.parser.PHPParser;
15 /**
16 * It's a php document. This class is an outlineable object It will contains html and php
17 *
18 * @author Matthieu Casanova
109 * Analyze the code of a php document.
110 *
111 * @param phpParser the php parser
112 */
113 public void analyzeCode(PHPParser phpParser) {
155 for (int i = 0; i < children.size(); i++) {
156 Outlineable outlineable = (Outlineable) children.get(i);
157 if (outlineable.getItemType() == PHPItem.METHOD) {
158 MethodDeclaration methodDeclaration = (MethodDeclaration) outlineable;
159 if (line == methodDeclaration.getBodyLineStart() && column > methodDeclaration.getBodyColumnStart()) return methodDeclaration;
constants.h
(http://omnia2droid.googlecode.com/svn/trunk/)
C++ Header · 446 lines
✨ Summary
This C++ header file defines constants and enumerations for the SCTP (Stream Control Transmission Protocol) protocol, including transport layer parameters, address scopes, retransmit reasons, lower cwnd reasons, and authentication-related constants. It provides a set of values that can be used throughout an application or library implementing SCTP functionality.
This C++ header file defines constants and enumerations for the SCTP (Stream Control Transmission Protocol) protocol, including transport layer parameters, address scopes, retransmit reasons, lower cwnd reasons, and authentication-related constants. It provides a set of values that can be used throughout an application or library implementing SCTP functionality.
CHANGES.txt (https://jedit.svn.sourceforge.net/svnroot/jedit) Plain Text · 2241 lines
catalog (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 546 lines
Plugin4.pm
(http://maatkit.googlecode.com/svn/trunk/)
Perl · 27 lines
✨ Summary
This Perl code defines a class Plugin4
that appears to be part of an ORM (Object-Relational Mapping) system, likely for a database-driven application. It sets up a custom insert operation with a unique constraint and updates related records when a duplicate is inserted. The methods defined in the class handle various events before and after inserts, but no actual actions are taken.
This Perl code defines a class Plugin4
that appears to be part of an ORM (Object-Relational Mapping) system, likely for a database-driven application. It sets up a custom insert operation with a unique constraint and updates related records when a duplicate is inserted. The methods defined in the class handle various events before and after inserts, but no actual actions are taken.
users-guide.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 711 lines
604 available from jedit repository. The documentation is generated using docbook xsl.
605 </para>
606 <para>Some tests are included. They are based upon <ulink url="http://fest.easytesting.org/swing/wiki/pmwiki.php">FEST-swing</ulink>
607 for GUI testing. Otherwise they are plain <ulink url="http://www.junit.org/">jUnit</ulink> tests.
608 To run the tests, <command>cd</command> to the plugin root directory and type <command>ant test</command>.
midway.c
(https://bitbucket.org/freebsd/freebsd-head/)
C · 3365 lines
✨ Summary
This is a debugging function that dumps various information about an Ethernet device to the console. It takes two arguments: unit
specifies which device to dump, and level
controls which information is displayed. The function first checks if the device has been initialized and then displays statistics, memory registers, transmit queues, receive queues, and software state lists. It also allows for dumping specific memory ranges using the en_dumpmem
function.
This is a debugging function that dumps various information about an Ethernet device to the console. It takes two arguments: unit
specifies which device to dump, and level
controls which information is displayed. The function first checks if the device has been initialized and then displays statistics, memory registers, transmit queues, receive queues, and software state lists. It also allows for dumping specific memory ranges using the en_dumpmem
function.
253 #define WORD_IDX(START, X) (((X) - (START)) / sizeof(uint32_t))
255 #define SETQ_END(SC, VAL) ((SC)->is_adaptec ? \
256 ((VAL) | (MID_DMA_END >> 4)) : \
257 ((VAL) | (MID_DMA_END)))
554 } \
555 last_dtq = dtq; \
556 en_write(sc, dtq + 0, (ENI || !sc->is_adaptec) ? \
557 MID_MK_TXQ_ENI(COUNT, tx->chan, 0, BCODE) : \
558 MID_MK_TXQ_ADP(COUNT, tx->chan, 0, BCODE)); \
600 addr = s->ds_addr;
602 if (sc->is_adaptec) {
603 /* adaptec card - simple */
mod_scintilla.cpp
(https://code.google.com/p/pnotepad/)
C++ · 0 lines
✨ Summary
This is a C++ object dump, displaying the contents of an editor’s state. It shows various attributes and settings, such as text formatting options, undo/redo history, and visual styles. The output provides a snapshot of the editor’s current configuration, including its layout, syntax highlighting, and other features.
This is a C++ object dump, displaying the contents of an editor’s state. It shows various attributes and settings, such as text formatting options, undo/redo history, and visual styles. The output provides a snapshot of the editor’s current configuration, including its layout, syntax highlighting, and other features.
705 current.attr("SCE_ERR_NET") = 7;
706 current.attr("SCE_ERR_PERL") = 6;
707 current.attr("SCE_ERR_PHP") = 14;
708 current.attr("SCE_ERR_PYTHON") = 1;
709 current.attr("SCE_ERR_TIDY") = 19;
853 current.attr("SCE_HPA_TRIPLEDOUBLE") = 113;
854 current.attr("SCE_HPA_WORD") = 111;
855 current.attr("SCE_HPHP_COMMENT") = 124;
856 current.attr("SCE_HPHP_COMMENTLINE") = 125;
857 current.attr("SCE_HPHP_COMPLEX_VARIABLE") = 104;
858 current.attr("SCE_HPHP_DEFAULT") = 118;
859 current.attr("SCE_HPHP_HSTRING") = 119;
860 current.attr("SCE_HPHP_HSTRING_VARIABLE") = 126;
dt_cg.c
(https://bitbucket.org/freebsd/freebsd-head/)
C · 2007 lines
✨ Summary
This C code is part of a compiler’s intermediate representation (IR) generation process for a dynamic typing system. It generates machine-specific code for a given IR node, which represents an expression in the source code. The code creates and manages registers, handles different types of nodes (e.g., identifiers, integers), and appends instructions to a list of generated code.
This C code is part of a compiler’s intermediate representation (IR) generation process for a dynamic typing system. It generates machine-specific code for a given IR node, which represents an expression in the source code. The code creates and manages registers, handles different types of nodes (e.g., identifiers, integers), and appends instructions to a list of generated code.
535 dt_node_diftype(yypcb->pcb_hdl, dnp, &t);
537 isp->dis_args[i].dn_reg = dnp->dn_reg; /* re-use register */
538 dt_cg_typecast(dnp, &isp->dis_args[i], dlp, drp);
539 isp->dis_args[i].dn_reg = -1;
541 if (t.dtdt_flags & DIF_TF_BYREF)
744 dt_node_is_string(dnp->dn_right))
745 return (1); /* strings always compare signed */
746 else if (!dt_node_is_arith(dnp->dn_left) ||
747 !dt_node_is_arith(dnp->dn_right))
sanitize.php
(https://bitbucket.org/AzuiSleet/cdr-web/)
PHP · 349 lines
✨ Summary
This PHP code provides a set of utility functions for sanitizing and formatting data, including HTML escaping, string manipulation, and database connection management. It also includes functions for cleaning and formatting column data in a model, likely used in a database-driven application. The code appears to be part of a larger framework or library, providing a foundation for building robust and secure applications.
This PHP code provides a set of utility functions for sanitizing and formatting data, including HTML escaping, string manipulation, and database connection management. It also includes functions for cleaning and formatting column data in a model, likely used in a database-driven application. The code appears to be part of a larger framework or library, providing a foundation for building robust and secure applications.
7 * PHP versions 4 and 5
8 *
9 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
10 * Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org)
11 *
14 *
15 * @copyright Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org)
16 * @link http://cakephp.org CakePHP(tm) Project
17 * @package cake
18 * @subpackage cake.cake.libs
89 * - remove (boolean) if true strips all HTML tags before encoding
90 * - charset (string) the charset used to encode the string
91 * - quotes (int) see http://php.net/manual/en/function.htmlentities.php
92 *
93 * @param string $string String from where to strip tags
dhd_common.c
(http://omnia2droid.googlecode.com/svn/trunk/)
C · 1733 lines
✨ Summary
This C code snippet appears to be part of a wireless networking driver, specifically related to Wi-Fi scanning and management. It provides functions for requesting Wi-Fi scans, deleting BSS (Basic Service Set) entries, and retrieving partial scan results. The code also handles various error conditions and manages internal data structures, such as the iscan_chain
buffer.
This C code snippet appears to be part of a wireless networking driver, specifically related to Wi-Fi scanning and management. It provides functions for requesting Wi-Fi scans, deleting BSS (Basic Service Set) entries, and retrieving partial scan results. The code also handles various error conditions and manages internal data structures, such as the iscan_chain
buffer.
tests.php4
(https://swig.svn.sourceforge.net/svnroot/swig)
PHP · 228 lines
✨ Summary
This PHP code is a comprehensive class for validating and checking various aspects of PHP code, including classes, functions, variables, resources, and more. It provides methods to check for existence, type, equality, nullness, and resource status, as well as warning and failure messages. The class can be used to ensure the integrity and consistency of PHP code before execution.
This PHP code is a comprehensive class for validating and checking various aspects of PHP code, including classes, functions, variables, resources, and more. It provides methods to check for existence, type, equality, nullness, and resource status, as well as warning and failure messages. The class can be used to ensure the integrity and consistency of PHP code before execution.
1 <?php
3 // do we have true global vars or just GETSET functions?
15 global $_original_classes;
16 if ($ref===FALSE) $f=$_original_classes;
17 if (! is_array($extra)) {
18 $df=array_flip(get_declared_classes());
19 foreach($_original_classes as $class) unset($df[$class]);
28 global $_original_functions;
29 if ($ref===FALSE) $f=$_original_functions;
30 if (! is_array($extra) || $gs) {
31 $extra=array();
32 $extrags=array();
46 static $extra;
47 global $_original_globals;
48 if (! is_array($extra)) {
49 if (GETSET) {
50 $_extra=array();