100+ results results for 'php array repo:gimoz71/giorgioconti' (5835 ms)
88 // The base regex is functionally equivalent to the one found in 89 // `get_shortcode_regex()` in `wp-includes/shortcodes.php`. 90 // 110 // Named attributes are assigned on a key/value basis, while numeric 111 // attributes are treated as an array. 112 // 121 // This regular expression is reused from `shortcode_parse_atts()` 122 // in `wp-includes/shortcodes.php`. 123 //sesivacka.php https://gitlab.com/error414/fileshit | PHP | 433 lines
1<?php 2 48 * 49 *@var array 50 */ 50 */ 51 private $supportImgType = array( 52 'image/gif', 62 * 63 *@var array 64 */ 64 */ 65 public $imageInfo = array(); 66 123 { 124 if (version_compare(PHP_VERSION , '5.0.3', '<')){ 125 die('sesivacka potrebuje PHP ve verzi 5.0.3 nebo novejsi');class.wp-styles.php https://gitlab.com/VTTE/sitios-vtte | PHP | 461 lines
1<?php 2/** 98 * @since 2.8.0 99 * @var array 100 */ 134 */ 135 do_action_ref_array( 'wp_default_styles', array( &$this ) ); 136 } 267 268 /** This filter is documented in wp-includes/class.wp-styles.php */ 269 $rtl_tag = apply_filters( 'style_loader_tag', $rtl_tag, $handle, $rtl_href, $media ); 310 if ( ! $after ) { 311 $after = array(); 312 } 359 * 360 * @param string|string[] $handles Item handle (string) or item handles (array of strings). 361 * @param bool $recursion Optional. Internal flag that function is calling itself.em-shortcode.php https://gitlab.com/Blueprint-Marketing/interoccupy.net | PHP | 248 lines
16 $img_url = is_ssl() ? 'https://www.google.com/calendar/images/ext/gc_button6.gif':'http://www.google.com/calendar/images/ext/gc_button6.gif'; 17 $atts = shortcode_atts(array('img'=>$img_url, 'button'=>6), $atts); 18 if( $img_url == $atts['img'] && $atts['button'] != 6 ){ 34 ob_start(); 35 em_locate_template('templates/map-global.php',true, array('args'=>$args)); 36 return ob_get_clean(); 106function em_get_location_shortcode($atts, $format='') { 107 $atts = (array) $atts; 108 $atts['format'] = ($format != '' || empty($atts['format'])) ? $format : $atts['format']; 139 * Shows a single location according to given specifications. Accepts any event query attribute. 140 * @param array $atts 141 * @return string 143function em_get_event_category_shortcode($atts, $format='') { 144 $atts = (array) $atts; 145 $atts['format'] = ($format != '' || empty($atts['format'])) ? $format : $atts['format'];config.php https://gitlab.com/webkod3r/tripolis | PHP | 216 lines
78 if ( ! function_exists( 'wp_http_supports' ) ) { 79 ?><b><?php esc_html_e( 'Disabled.', 'akismet' ); ?></b> <?php printf( esc_html( 'Your WordPress installation does not include the function %s; upgrade to the latest version of WordPress.', 'akismet' ), '<code>wp_http_supports</code>' ); ?><?php 80 } 81 else if ( ! wp_http_supports( array( 'ssl' ) ) ) { 82 ?><b><?php esc_html_e( 'Disabled.', 'akismet' ); ?></b> <?php esc_html_e( 'Your Web server cannot make SSL requests; contact your Web host and ask them to add support for SSL requests.', 'akismet' ); ?><?php 83 } 87 if ( $ssl_disabled ) { 88 ?><b><?php esc_html_e( 'Temporarily disabled.', 'akismet' ); ?></b> <?php esc_html_e( 'Akismet encountered a problem with a previous SSL request and disabled it temporarily. It will begin using SSL for requests again shortly.', 'akismet' ); ?><?php 89 } 90 else { 91 ?><b><?php esc_html_e( 'Enabled.', 'akismet' ); ?></b> <?php esc_html_e( 'All systems functional.', 'akismet' ); ?><?php 92 } 104 <p> 105 <label for="akismet_show_user_comments_approved" title="<?php esc_attr_e( 'Show approved comments' , 'akismet'); ?>"><input name="akismet_show_user_comments_approved" id="akismet_show_user_comments_approved" value="1" type="checkbox" <?php checked('1', get_option('akismet_show_user_comments_approved')); ?>> <?php esc_html_e('Show the number of approved comments beside each comment author', 'akismet'); ?></label> 106 </p>XmlFileLoader.php https://gitlab.com/Pasantias/pasantiasASLG | PHP | 270 lines
1<?php 2 221 * 222 * @return array An array with the defaults as first item, requirements as second and options as third. 223 * 227 { 228 $defaults = array(); 229 $requirements = array(); 229 $requirements = array(); 230 $options = array(); 231 $condition = null; 256 257 return array($defaults, $requirements, $options, $condition); 258 }ShowController.php https://bitbucket.org/Sinfin/pawtucket.git | PHP | 210 lines
75 $va_sets = caExtractValuesByUserLocale($t_set->getSets(array('table' => 'ca_objects', 'access' => __CA_SET_READ_ACCESS__, 'user_id' => $this->request->getUserID()))); 76 $va_set_first_items = $t_set->getFirstItemsFromSets(array_keys($va_sets), array("version" => "widepreview", "checkAccess" => $va_access_values)); 77 $va_set_descriptions = $t_set->getAttributeFromSets($this->opo_plugin_config->get('set_description_element_code'), array_keys($va_sets), array("checkAccess" => $va_access_values)); 78 $va_set_date = $t_set->getAttributeFromSets('setdate', array_keys($va_sets), array("checkAccess" => $va_access_values)); 79 $va_set_creator = $t_set->getAttributeFromSets('setcreator', array_keys($va_sets), array("checkAccess" => $va_access_values)); 80 113 $this->view->setVar('t_set', $t_set); 114 $va_items = caExtractValuesByUserLocale($t_set->getItems(array('thumbnailVersions' => array('widepreview', 'medium'), 'access' => __CA_SET_READ_ACCESS__, "checkAccess" => $va_access_values, 'user_id' => $this->request->getUserID()))); 115 $this->view->setVar('items', $va_items); 132 $va_set_first_items = array(); 133 $va_set_first_items = $t_set->getFirstItemsFromSets(array_keys($va_sets), array("version" => "icon", "checkAccess" => $va_access_values)); 134 182 $va_set_item_info["item_id"] = $t_set_item->get("item_id"); 183 $va_rep = $t_set_item->getRepresentations(array("mediumlarge", "small"), null, array("return_with_access" => $va_access_values)); 184formTimeperiod.php https://gitlab.com/florianocomercial/centreon | PHP | 302 lines
53 $res = $pearDB->query("SELECT * FROM timeperiod_include_relations WHERE timeperiod_id = '".$tp_id."'"); 54 $tp["tp_include"] = array(); 55 while ($row = $res->fetchRow()) { 143 $attrTimeperiods, 144 array('defaultDatasetRoute' => './include/common/webServices/rest/internal.php?object=centreon_configuration_timeperiod&action=defaultValues&target=timeperiodRenderer&field=tp_include&id=' . $tp_id) 145); 150 */ 151$mTp = array(); 152$k = 0; 173 globalExceptionTabId[<?php echo $k;?>] = <?php echo $exception_id[$k];?>; 174 globalExceptionTabName[<?php echo $k;?>] = '<?php echo $exception_days[$k];?>'; 175 globalExceptionTabTimerange[<?php echo $k;?>] = '<?php echo $exception_timerange[$k];?>'; 175 globalExceptionTabTimerange[<?php echo $k;?>] = '<?php echo $exception_timerange[$k];?>'; 176 globalExceptionTabTimeperiodId[<?php echo $k;?>] = <?php echo $exception_timeperiod_id[$k];?>; 177 </script>HeadMeta.php https://gitlab.com/rsilveira1987/Expresso | PHP | 363 lines
1<?php 2/** 18 * @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com) 19 * @version $Id: HeadMeta.php 10020 2009-08-18 14:34:09Z j.fischer@metaways.de $ 20 * @license http://framework.zend.com/license/new-bsd New BSD License 23/** Zend_View_Helper_Placeholder_Container_Standalone */ 24require_once 'Zend/View/Helper/Placeholder/Container/Standalone.php'; 25 39 * Types of attributes 40 * @var array 41 */ 41 */ 42 protected $_typeKeys = array('name', 'http-equiv'); 43 protected $_requiredKeys = array('content'); 43 protected $_requiredKeys = array('content'); 44 protected $_modifierKeys = array('lang', 'scheme'); 45Mcrypt.php https://gitlab.com/rsilveira1987/Expresso | PHP | 364 lines
46 */ 47 protected $_encryption = array( 48 'key' => 'ZendFramework', 59 * 60 * @var array 61 */ 80 } elseif (is_string($options)) { 81 $options = array('key' => $options); 82 } elseif (!is_array($options)) { 117 if (!is_array($options)) { 118 require_once 'Zend/Filter/Exception.php'; 119 throw new Zend_Filter_Exception('Invalid options argument provided to filter'); 171 $this->_srand(); 172 if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN' && version_compare(PHP_VERSION, '5.3.0', '<')) { 173 $method = MCRYPT_RAND;Core.php https://gitlab.com/rsilveira1987/Expresso | PHP | 239 lines
108 PHPExcel_Worksheet_PageSetup::PAPERSIZE_ITALY_ENVELOPE => array(311.81,651.97), // (110 mm by 230 mm) 109 PHPExcel_Worksheet_PageSetup::PAPERSIZE_MONARCH_ENVELOPE => array(279.00,540.00), // (3.875 in. by 7.5 in.) 110 PHPExcel_Worksheet_PageSetup::PAPERSIZE_6_3_4_ENVELOPE => array(261.00,468.00), // (3.625 in. by 6.5 in.) 120 PHPExcel_Worksheet_PageSetup::PAPERSIZE_LETTER_EXTRA_PAPER => array(667.80,864.00), // (9.275 in. by 12 in.) 121 PHPExcel_Worksheet_PageSetup::PAPERSIZE_LEGAL_EXTRA_PAPER => array(667.80,1080.00), // (9.275 in. by 15 in.) 122 PHPExcel_Worksheet_PageSetup::PAPERSIZE_TABLOID_EXTRA_PAPER => array(841.68,1296.00), // (11.69 in. by 18 in.) 134 PHPExcel_Worksheet_PageSetup::PAPERSIZE_A5_EXTRA_PAPER => array(493.23,666.14), // (174 mm by 235 mm) 135 PHPExcel_Worksheet_PageSetup::PAPERSIZE_ISO_B5_EXTRA_PAPER => array(569.76,782.36), // (201 mm by 276 mm) 136 PHPExcel_Worksheet_PageSetup::PAPERSIZE_A2_PAPER => 'A2', // (420 mm by 594 mm) 137 PHPExcel_Worksheet_PageSetup::PAPERSIZE_A3_TRANSVERSE_PAPER => 'A3', // (297 mm by 420 mm) 138 PHPExcel_Worksheet_PageSetup::PAPERSIZE_A3_EXTRA_TRANSVERSE_PAPER => array(912.76,1261.42) // (322 mm by 445 mm) 139 ); 143 * 144 * @param PHPExcel $phpExcel PHPExcel object 145 */Mysql4.php https://gitlab.com/LisovyiEvhenii/ismextensions | PHP | 322 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 */ 29 /** 30 * Tables foreign key data array 31 * [tbl_name] = array(create foreign key strings) 32 * 33 * @var array 34 */ 34 */ 35 protected $_foreignKeys = array(); 36Filesystem.php https://gitlab.com/ezeql/framework | PHP | 442 lines
1<?php 2 114 * 115 * @param string|array $paths 116 * @return bool 119 { 120 $paths = is_array($paths) ? $paths : func_get_args(); 121 264 * @param int $flags 265 * @return array 266 */ 272 /** 273 * Get an array of all files in a directory. 274 * 275 * @param string $directory 276 * @return array 277 */Collection.php https://gitlab.com/LisovyiEvhenii/ismextensions | PHP | 411 lines
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 53 * 54 * @var array 55 */ 255 ) 256 ->join(array('t' => $tagTable), 't.tag_id = tr.tag_id', array('*')); 257 } 282 { 283 $productsId = array(); 284 $productsData = array(); 397 398 $appliedOrders = array(); 399 foreach ($orders as $order) {AbstractFindAdapter.php https://gitlab.com/techniconline/kmc | PHP | 331 lines
1<?php 2 51 if (Iterator\FileTypeFilterIterator::ONLY_DIRECTORIES === $this->mode && ($this->contains || $this->notContains)) { 52 return new Iterator\FilePathsIterator(array(), $dir); 53 } 63 64 if (PHP_INT_MAX !== $this->maxDepth) { 65 $find->add('-maxdepth')->add($this->maxDepth + 1); 104 105 $paths = $this->shell->testCommand('uniq') ? $command->add('| uniq')->execute() : array_unique($command->execute()); 106 $iterator = new Iterator\FilePathsIterator($paths, $dir); 155 */ 156 private function buildNamesFiltering(Command $command, array $names, $not = false) 157 { 203 */ 204 private function buildPathsFiltering(Command $command, $dir, array $paths, $not = false) 205 {Grid.php https://bitbucket.org/acidel/buykoala.git | PHP | 192 lines
123 124 $this->addColumn ( 'billing_region', array ('header' => Mage::helper ( 'customer' )->__ ( 'State/Province' ), 'width' => '100', 'index' => 'billing_region' ) ); 125 137 138 $this->addColumn ( 'action', array ('header' => Mage::helper ( 'customer' )->__ ( 'Action' ), 'width' => '120px', 'type' => 'action', 'getter' => 'getId', 'actions' => array (array ('caption' => Mage::helper ( 'rewards' )->__ ( 'Make Transfer' ), 'url' => array ('base' => '*/manage_transfer/new/controller/manage_customer_points' ), 'field' => 'customer_id' ) ), 'filter' => false, 'sortable' => false, 'index' => 'stores', 'is_system' => true ) ); 139 175 $cids = Mage::helper ( 'rewards/currency' )->getAvailCurrencyIds (); 176 //array_unshift($currencies, array('label'=> '', 'value'=> '')); 177 178 179 $mass_transfer_fields = array ('points' => array ('name' => 'quantity', 'type' => 'text', 'class' => 'required-entry', 'label' => Mage::helper ( 'customer' )->__ ( 'Quantity' ) ) ); 180 if (sizeof ( $cids ) > 1) { 186 $this->getMassactionBlock ()->addItem ( 'mass_distribution', array ('label' => Mage::helper ( 'rewards' )->__ ( 'Give Points' ), 'url' => $this->getUrl ( '*/*/massTransferPoints', array ('is_deduction' => 0 ) ), 'additional' => $mass_transfer_fields, 'confirm' => Mage::helper ( 'customer' )->__ ( 'Are you sure you want to create the transfer for all selected customers?' ) ) ); 187 $this->getMassactionBlock ()->addItem ( 'mass_redemption', array ('label' => Mage::helper ( 'rewards' )->__ ( 'Deduct Points' ), 'url' => $this->getUrl ( '*/*/massTransferPoints', array ('is_deduction' => 1 ) ), 'additional' => array ('currency' => array ('name' => 'currency', 'type' => 'select', 'class' => 'required-entry', 'label' => Mage::helper ( 'customer' )->__ ( 'Currency' ), 'values' => $currencies ), 'points' => array ('name' => 'quantity', 'type' => 'text', 'class' => 'required-entry', 'label' => Mage::helper ( 'customer' )->__ ( 'Quantity' ) ) ), 'confirm' => Mage::helper ( 'customer' )->__ ( 'Are you sure you want to create the transfer for all selected customers?' ) ) ); 188Edit.php https://bitbucket.org/acidel/buykoala.git | PHP | 231 lines
1<?php 2 15 $this->_updateButton('delete', 'label', Mage::helper('groupdeals')->__('Delete Deal')); 16 $this->_updateButton('delete', 'onclick', 'deleteConfirm(\'Are you sure you want to do this?\', \''.$this->getUrl('*/*/delete', array('groupdeals_id' => $this->getRequest()->getParam('groupdeals_id'), 'id' => $this->getProductId())).'\')'); 17 $this->_removeButton('reset'); 17 $this->_removeButton('reset'); 18 $this->_addButton('saveandcontinue', array( 19 'label' => Mage::helper('adminhtml')->__('Save And Continue Edit'), 61 62 $this->_addButton('email_coupons', array( 63 'label' => Mage::helper('adminhtml')->__('Email Coupons'), 63 'label' => Mage::helper('adminhtml')->__('Email Coupons'), 64 'onclick' => 'deleteConfirm(\''.$emailMessage.'\', \''.$this->getUrl('*/*/email', array('groupdeals_id' => $this->getRequest()->getParam('groupdeals_id'), 'id' => $this->getProductId())).'\')', 65 )); 66 67 $this->_addButton('email_merchants', array( 68 'label' => Mage::helper('adminhtml')->__('Email Coupons CSV to Merchant'),AbstractAction.php https://gitlab.com/crazybutterfly815/magento2 | PHP | 361 lines
1<?php 2/** 10 * 11 * @SuppressWarnings(PHPMD.NumberOfChildren) 12 * @SuppressWarnings(PHPMD.CouplingBetweenObjects) 31 /** 32 * Array of actions which can be processed without secret key validation 33 * 33 * 34 * @var array 35 */ 305 * @param string $path 306 * @param array $arguments 307 * @return \Magento\Framework\App\ResponseInterface 350 { 351 if (is_array($this->_publicActions) && in_array($this->getRequest()->getActionName(), $this->_publicActions)) { 352 return true;condition.php https://gitlab.com/unofficial-mirrors/moodle | PHP | 292 lines
36class condition extends \core_availability\condition { 37 /** @var array Array from group id => name */ 38 protected static $groupnames = array(); 75 if ($this->groupid) { 76 $allow = in_array($this->groupid, $groups); 77 } else { 183 public static function wipe_static_cache() { 184 self::$groupnames = array(); 185 } 192 193 public function filter_user_list(array $users, $not, \core_availability\info $info, 194 \core_availability\capability_checker $checker) { 289 WHERE (userids.id IN ($aagsql)) OR $condition EXISTS ($matchsql)"; 290 return array($sql, array_merge($enrolparams, $aagparams, $matchparams)); 291 }lib_test.php https://bitbucket.org/ngmares/moodle.git | PHP | 262 lines
205 ); 206 $assessment1 = (object)array('dimgrades' => array(3 => 15, 4 => 2)); 207 $assessment2 = (object)array('dimgrades' => array(3 => 15, 4 => 2)); 219 ); 220 $assessment1 = (object)array('dimgrades' => array(3 => 25, 4 => 4)); 221 $assessment2 = (object)array('dimgrades' => array(3 => 75, 4 => 2)); 221 $assessment2 = (object)array('dimgrades' => array(3 => 75, 4 => 2)); 222 $referential = (object)array('dimgrades' => array(3 => 50, 4 => 3)); 223 $settings = (object)array('comparison' => 5); 234 $assessment2 = (object)array('dimgrades' => array(1 => 50, 2 => 33.33333)); 235 $referential = (object)array('dimgrades' => array(1 => 25, 2 => 50)); 236 $settings = (object)array('comparison' => 9); 249 250 public function normalize_grades(array $assessments, array $diminfo) { 251 return parent::normalize_grades($assessments, $diminfo);RasterUtils.scala https://gitlab.com/zachcoyle/geomesa | Scala | 227 lines
5* which accompanies this distribution and is available at 6* http://www.opensource.org/licenses/apache2.0.php. 7*************************************************************************/ 12import java.awt.image.{BufferedImage, Raster => JRaster, RenderedImage} 13import java.io.{ByteArrayInputStream, ByteArrayOutputStream, ObjectInputStream, ObjectOutputStream} 14import java.util.{Hashtable => JHashtable} 48 def imageSerialize(image: RenderedImage): Array[Byte] = { 49 val buffer: ByteArrayOutputStream = new ByteArrayOutputStream 50 val out: ObjectOutputStream = new ObjectOutputStream(buffer) 56 } 57 buffer.toByteArray 58 } 59 60 def imageDeserialize(imageBytes: Array[Byte]): RenderedImage = { 61 val in: ObjectInputStream = new ObjectInputStream(new ByteArrayInputStream(imageBytes))pm.php https://bitbucket.org/likeping/lkp.git | PHP | 373 lines
1<?php 2 43 } elseif($more == 1) { 44 return array('newpm' => $newpm, 'newprivatepm' => $newprvpm); 45 } elseif($more == 2 || $more == 3) { 46 if($more == 2) { 47 return array('newpm' => $newpm, 'newprivatepm' => $newprvpm, 'newchatpm' => $newchatpm); 48 } else { 49 $lastpm = $_ENV['pm']->lastpm($uid); 50 require_once UC_ROOT.'lib/uccode.class.php'; 51 $this->uccode = new uccode(); 52 $lastpm['lastsummary'] = $this->uccode->complie($lastpm['lastsummary']); 53 return array('newpm' => $newpm, 'newprivatepm' => $newprvpm, 'newchatpm' => $newchatpm, 'lastdate' => $lastpm['lastdateline'], 'lastmsgfromid' => $lastpm['lastauthorid'], 'lastmsgfrom' => $lastpm['lastauthorusername'], 'lastmsg' => $lastpm['lastsummary']); 54 } 193 194 $filter = $filter ? (in_array($filter, array('newpm', 'privatepm')) ? $filter : '') : ''; 195 if($filter == 'newpm') {Protobuf.Codec.Binary.spec.php https://gitlab.com/billyprice1/app-download.org | PHP | 280 lines
12include_once __DIR__ . '/protos/complex.php'; 13include_once __DIR__ . '/protos/repeated.php'; 14include_once __DIR__ . '/protos/addressbook.php'; 14include_once __DIR__ . '/protos/addressbook.php'; 15include_once __DIR__ . '/protos/extension.php'; 16 17// Include some hamcrest matchers manually since they are not included by default 18// TODO: Fix spec4php to include them 19include_once 'Hamcrest/Core/IsNot.php'; 47 'int64' => array(0, 1, -1, 123456789123456789, -123456789123456789, $min), 48 'uint64' => array(0, 1, 1000, 123456789123456789, PHP_INT_MAX, $max), 49 'int32' => array(0, 1, -1, 123456789, -123456789), 229 $repeated should be instanceof 'Tests\Repeated'; 230 $repeated->getInt() should eq array(1,2,3); 231weblinks.php https://bitbucket.org/eternaware/joomus.git | PHP | 378 lines
1<?php 2/** 12// Load the base adapter. 13require_once JPATH_ADMINISTRATOR . '/components/com_finder/helpers/indexer/adapter.php'; 14 67 * @param object &$subject The object to observe 68 * @param array $config An array that holds the plugin configuration 69 * 83 * @param string $extension The extension whose category has been updated. 84 * @param array $pks A list of primary key ids of the content that has changed state. 85 * @param integer $value The value of the state that the content has been changed to. 214 * @param string $context The context for the content passed to the plugin. 215 * @param array $pks A list of primary key ids of the content that has changed state. 216 * @param integer $value The value of the state that the content has been changed to. 309 // Load dependent classes. 310 require_once JPATH_SITE . '/components/com_weblinks/helpers/route.php'; 311adminsettings_include.php https://gitlab.com/nexxuz/phpBMS | PHP | 401 lines
78 79 $therecord = array(); 80 89 90 while($setting = $this->db->fetchArray($queryresult)) 91 $therecord[$setting["name"]] = $setting["value"]; 119 //include any procesing that needs to be done by modules 120 foreach($phpbms->modules as $module => $moduleinfo){ 121 if($module != "base"){ 312 * 313 * @param array $variables variables array passed from the $_POST 314 */ 356 357 ?><option value="<?php echo $entry?>" <?php if($entry = $stylesheet) echo 'selected="selected"'; ?>><?php echo $entry?></option><?php 358Tax.php https://bitbucket.org/jit_bec/shopifine.git | PHP | 301 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 */ 102 { 103 $taxTotal = new Varien_Object(array( 104 'code' => 'tax', 144 $baseSubtotalIncl = max(0, $baseSubtotalIncl); 145 $totalExcl = new Varien_Object(array( 146 'code' => 'subtotal_excl', 150 )); 151 $totalIncl = new Varien_Object(array( 152 'code' => 'subtotal_incl',invoice_items.php https://bitbucket.org/jit_bec/shopifine.git | PHP | 313 lines
2 <head> 3 <?php $this->load->view("common/header"); ?> 4 <style> 8 <body onLoad="extractOrder()"> 9 <?php $this->load->view("common/menubar"); ?> 10 <?php if (isset($invoiceId)) :?> 45 </form> 46 <?php else: ?> 47 <a href="index.php/invoice/addInvoice">Get Magento Invoice</a> 47 <a href="index.php/invoice/addInvoice">Get Magento Invoice</a> 48 <?php endif; ?> 49 57 58 var invoiceIdJS = '<?php echo $invoiceId ?>'; 59ExportPlugin.class.php https://gitlab.com/qbarbosa/klindev | PHP | 355 lines
7 */ 8if (! defined('PHPMYADMIN')) { 9 exit; 95 /** 96 * The following methods are used in export.php or in db_operations.php, 97 * but they are not implemented by all export plugins 166 * @param string $db database being exported 167 * @param string|array $tables table(s) being exported 168 * @param array $metadataTypes types of metadata to export 168 * @param array $metadataTypes types of metadata to export 169 * @param array $targetNames associative array of db and table names of 170 * target configuraton storage 329 * 330 * @param array $res_rel the foreigners array 331 * @param string $field_name the field nameProperties.php https://gitlab.com/Isaki/le331.fr | PHP | 378 lines
1<?php 2 22 23include_once 'phing/system/io/PhingFile.php'; 24include_once 'phing/system/io/FileWriter.php'; 29 * FIXME 30 * - Add support for arrays (separated by ',') 31 * 37 38 private $properties = array(); 39 47 * 48 * @param array $properties 49 */ 51 { 52 if (is_array($properties)) { 53 foreach ($properties as $key => $value) {HeadMeta.php https://github.com/gryzz/crystal_magento.git | PHP | 363 lines
1<?php 2/** 18 * @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com) 19 * @version $Id: HeadMeta.php 16971 2009-07-22 18:05:45Z mikaelkael $ 20 * @license http://framework.zend.com/license/new-bsd New BSD License 23/** Zend_View_Helper_Placeholder_Container_Standalone */ 24#require_once 'Zend/View/Helper/Placeholder/Container/Standalone.php'; 25 39 * Types of attributes 40 * @var array 41 */ 41 */ 42 protected $_typeKeys = array('name', 'http-equiv'); 43 protected $_requiredKeys = array('content'); 43 protected $_requiredKeys = array('content'); 44 protected $_modifierKeys = array('lang', 'scheme'); 45LALR.php https://github.com/sergiosgc/Text_Parser.git | PHP | 219 lines
58 } 59 $this->_stateStack = array_slice($this->_stateStack, 0, count($this->_stateStack) - 2 * $count); 60 105 } 106 if (!array_key_exists($state, $this->_actionTable)) throw new Text_Parser_UnexpectedTokenException($nextToken, $state); 107 114 if ($nextToken === '') $nextToken = new Text_Tokenizer_Token('', ''); 115 if (!array_key_exists($nextToken->getId(), $row)) throw new Text_Parser_UnexpectedTokenException($nextToken, $state); 116 if ($row[$nextToken->getId()]['action'] == 'lookahead') { 139 if (!is_array($this->_gotoTable)) throw new Text_Parser_InvalidParserException('This parser has not been configured. It has no goto table'); 140 if (!array_key_exists($state, $this->_gotoTable) || !array_key_exists($nextToken->getId(), $this->_gotoTable[$state])) throw new Text_Parser_UnexpectedTokenException($nextToken, $state); 141 195 // Call the reduction function, retrieving the non-terminal that results from the reduction 196 $token = call_user_func_array(array($this, $action['function']), $symbols); 197 if (!is_object($token) || !method_exists($token, 'getId') || !method_exists($token, 'getValue')) {AbstractClient.php https://github.com/Exercise/zf2.git | PHP | 326 lines
1<?php 2/** 68 69 public function __construct($options = array()) 70 { 85 86 public function setOptions(Array $options) 87 { 138 if ($this instanceof Interactive\InteractiveOutput) { 139 $this->_registry->getResponse()->setContentCallback(array($this, 'handleInteractiveOutput')); 140 } 317 if (method_exists($class, $methodName)) { 318 call_user_func_array(array($class, $methodName), $callParameters); 319 } elseif (method_exists($class, $methodName . 'Action')) { 319 } elseif (method_exists($class, $methodName . 'Action')) { 320 call_user_func_array(array($class, $methodName . 'Action'), $callParameters); 321 } else {class_captcha.php https://gitlab.com/Conors99/ppm-1.8 | PHP | 467 lines
165 166 $insert_array = array( 167 "imagehash" => $imagehash, 286 $http_request .= "Content-Length: ".strlen($data)."\r\n"; 287 $http_request .= "User-Agent: reCAPTCHA/PHP\r\n"; 288 $http_request .= "\r\n"; 384 /** 385 * Add an error to the error array. 386 * 401 * 402 * @return array An array of errors in a MyBB format. 403 */ 438 array_unshift($error['data'], $lang->$lang_string); 439 $errors[] = call_user_func_array(array($lang, "sprintf"), $error['data']); 440 }Extracted.php https://gitlab.com/devtoannh/cafe | PHP | 274 lines
1<?php 2/** 78 // Multiple descendant fonts are not supported 79 require_once 'Zend/Pdf/Exception.php'; 80 throw new Zend_Pdf_Exception(self::TYPE_NOT_SUPPORTED); 117 default: 118 require_once 'Zend/Pdf/Exception.php'; 119 throw new Zend_Pdf_Exception(self::TYPE_NOT_SUPPORTED); 137 /** 138 * Returns an array of glyph numbers corresponding to the Unicode characters. 139 * 144 * 145 * @param array $characterCodes Array of Unicode character codes (code points). 146 * @return array Array of glyph numbers. 204 * @param array $glyphNumbers Array of glyph numbers. 205 * @return array Array of glyph widths (integers). 206 * @throws Zend_Pdf_Exceptionru_ru.lang.php https://gitlab.com/tjaafar/SuiteCRM | PHP | 162 lines
1<?php 2if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point'); 49 // Replaced by RAPIRA <-- 50$mod_strings = array ( 51'LBL_MODULE_NAME' => 'Сделки' ,blockadvertising.php https://gitlab.com/brunorafael/enosis | PHP | 291 lines
9* It is also available through the world-wide-web at this URL: 10* http://opensource.org/licenses/afl-3.0.php 11* If you did not receive a copy of the license and are unable to 107 foreach (scandir(_PS_MODULE_DIR_.$this->name) as $file) 108 if (in_array($file, array('advertising.jpg', 'advertising.gif', 'advertising.png'))) 109 Configuration::updateGlobalValue('BLOCKADVERT_IMG_EXT', substr($file, strrpos($file, '.') + 1)); 209 $this->smarty->assign( 210 array( 211 'image' => $this->context->link->protocol_content.$this->adv_img, 233 'form' => array( 234 'legend' => array( 235 'title' => $this->l('Configuration'), 237 ), 238 'input' => array( 239 array(SlackRecord.php https://gitlab.com/madwanz64/laravel | PHP | 387 lines
101 bool $includeContextAndExtra = false, 102 array $excludeFields = array(), 103 FormatterInterface $formatter = null 186 187 $dataArray['attachments'] = array($attachment); 188 } else { 344 * 345 * @return array<array{title: string, value: string, short: false}> 346 */ 346 */ 347 private function generateAttachmentFields(array $data): array 348 { 366 */ 367 private function removeExcludedFields(array $record): array 368 {TargetVpnGateways.php https://gitlab.com/Anas7232/Layout-Changes | PHP | 208 lines
1<?php 2/* 32 * @param string $project Project ID for this request. 33 * @param array $optParams Optional parameters. 34 * 74 */ 75 public function aggregatedList($project, $optParams = array()) 76 { 76 { 77 $params = array('project' => $project); 78 $params = array_merge($params, $optParams); 78 $params = array_merge($params, $optParams); 79 return $this->call('aggregatedList', array($params), "Google_Service_Compute_TargetVpnGatewayAggregatedList"); 80 } 86 * @param string $targetVpnGateway Name of the target VPN gateway to delete. 87 * @param array $optParams Optional parameters. 88 *class-sensei-analysis-lesson-list-table.php https://gitlab.com/ezgonzalez/integral | PHP | 357 lines
37 * @since 1.7.0 38 * @return array $columns, the array of columns to use with the table 39 */ 54 * @since 1.7.0 55 * @return array $columns, the array of columns to use with the table 56 */ 235 if ( !$this->csv_output ) { 236 $url = add_query_arg( array( 'page' => $this->page_slug, 'user_id' => $item->user_id, 'course_id' => $this->course_id ), admin_url( 'admin.php' ) ); 237 288 // WP_Comment_Query doesn't support SQL_CALC_FOUND_ROWS, so instead do this twice 289 $this->total_items = Sensei_Utils::sensei_check_for_activity( array_merge( $activity_args, array('count' => true, 'offset' => 0, 'number' => 0) ) ); 290 330 $report = sanitize_title( $lesson->post_title ) . '-learners-overview'; 331 $url = add_query_arg( array( 'page' => $this->page_slug, 'lesson_id' => $this->lesson_id, 'sensei_report_download' => $report ), admin_url( 'admin.php' ) ); 332 echo '<a class="button button-primary" href="' . esc_url( wp_nonce_url( $url, 'sensei_csv_download-' . $report, '_sdl_nonce' ) ) . '">' . __( 'Export all rows (CSV)', 'woothemes-sensei' ) . '</a>';FieldDefinitionListenerTest.php https://gitlab.com/geeta7/drupal | PHP | 275 lines
1<?php 2 82 * @param \Drupal\Core\Entity\EntityTypeInterface[]|\Prophecy\Prophecy\ProphecyInterface[] $definitions 83 * (optional) An array of entity type definitions. 84 */ 84 */ 85 protected function setUpEntityManager($definitions = array()) { 86 $class = $this->getMockClass(EntityInterface::class);ProxyBuilderTest.php https://gitlab.com/geeta7/drupal | PHP | 445 lines
1<?php 2 129 130 // @todo Solve the silly linebreak for array() 131 $method_body = <<<'EOS' 135 */ 136public function complexMethod($parameter, callable $function, \Drupal\Tests\Component\ProxyBuilder\TestServiceNoMethod $test_service = NULL, array &$elements = array ( 137)) 155 156 // @todo Solve the silly linebreak for array() 157 $method_body = <<<'EOS' 343 344 $expected_methods_body = implode("\n", array_map(function ($value) { 345 if ($value === '') { 383 384 public function complexMethod($parameter, callable $function, TestServiceNoMethod $test_service = NULL, array &$elements = array()) { 385ext.cpp https://github.com/tmjnaid/hiphop-php.git | C++ | 297 lines
2 +----------------------------------------------------------------------+ 3 | HipHop for PHP | 4 +----------------------------------------------------------------------+ 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 +----------------------------------------------------------------------+ 112 m_functions["get_defined_vars"] = new EvalGetDefinedVars(); 113 m_functions["hphp_get_class_info"] = new EvalHphpGetClassInfo(); 114} 180 case 0: { 181 Array res = Array::Create(); 182 for (ArrayIter iter(env.getParams()); !iter.end(); iter.next()) {PHP.php https://github.com/tmccormi/openemr.git | PHP | 410 lines
15 */ 16abstract class PHPUnit_Util_PHP 17{ 164 /** 165 * @return PHPUnit_Util_PHP 166 */ 235 /** 236 * Runs a single job (PHP code) using a separate PHP process. 237 * 270 */ 271 private function processChildResult(PHPUnit_Framework_Test $test, PHPUnit_Framework_TestResult $result, $stdout, $stderr) 272 { 397 '%s: %s', 398 $exceptionArray['_PHP_Incomplete_Class_Name'], 399 $exceptionArray['message']class-helper-script-manager.php https://gitlab.com/chernushov881/charity-fund | PHP | 347 lines
20 21 const README_LINES = array( 22 'These files have been put on your server by Jetpack to assist with backups and restores of your site content. They are cleaned up automatically when we no longer need them.', 36 * @param string $script_body Helper Script file contents. 37 * @return array|WP_Error Either an array containing the path and url of the helper script, or an error. 38 */ 183 // Check that the only remaining files are a README and index.php generated by this system. 184 $allowed_files = array( 185 'README' => self::README_LINES[0], 218 * 219 * @return WP_Error|array Array containing the url and path of the temp directory if successful, WP_Error if not. 220 */ 330 * 331 * @return array Array, with keys specifying the full path of install locations, and values with the equivalent URL. 332 */service-api-keys.php https://gitlab.com/chernushov881/charity-fund | PHP | 321 lines
31 array( 32 array( 33 'methods' => WP_REST_Server::READABLE, 33 'methods' => WP_REST_Server::READABLE, 34 'callback' => array( __CLASS__, 'get_service_api_key' ), 35 'permission_callback' => '__return_true', 89 ), 90 'service_api_key' => array( 91 'description' => __( 'The API key used by the service. Empty if none has been set yet', 'jetpack' ), 269 * Validate Mapbox API key 270 * Based loosely on https://github.com/mapbox/geocoding-example/blob/master/php/MapboxTest.php 271 * 285 $msg = esc_html__( 'Can\'t connect to Mapbox', 'jetpack' ); 286 return array( 287 'status' => $status,SfPropelBehaviorI18n.php https://github.com/Elexy/LogSens.git | PHP | 389 lines
126 $foreignKey = $this->getI18nTable()->getBehavior('symfony_i18n_translation')->getForeignKey(); 127 $refPhpName = $foreignKey->getRefPhpName() ? $foreignKey->getRefPhpName() : $this->getI18nTable()->getPhpName(); 128 142{ 143 return \$this->getCurrent{$refPhpName}(\$culture)->get{$column->getPhpName()}(); 144} 193 */ 194public function set{$refPhpName}ForCulture({$this->getI18nTable()->getPhpName()} \$object, \$culture) 195{ 222 $foreignKey = $this->getI18nTable()->getBehavior('symfony_i18n_translation')->getForeignKey(); 223 $refPhpName = $foreignKey->getRefPhpName() ? $foreignKey->getRefPhpName() : $this->getI18nTable()->getPhpName(); 224 $join = in_array($this->getBuildProperty('propel.useLeftJoinsInDoJoinMethods'), array(true, null), true) ? 'LEFT' : 'INNER'; 272 {$this->getTable()->getPhpName()}Peer::addSelectColumns(\$criteria); 273 \$startcol = ({$this->getTable()->getPhpName()}Peer::NUM_COLUMNS - {$this->getTable()->getPhpName()}Peer::NUM_LAZY_LOAD_COLUMNS); 274 {$this->getI18nTable()->getPhpName()}Peer::addSelectColumns(\$criteria);mms-patches.inc.php https://gitlab.com/Gashler/dp | PHP | 150 lines
48 49 if (is_multisite () && is_network_admin () && $pagenow === "update-core.php") 50 if ($message === "Upgrading database…" && c_ws_plugin__s2member_mms_patches::mms_patches ()) 74 75 $wp_login_file = ABSPATH . "wp-login.php"; // This works for both WordPress® 3.0 and 3.1. WordPress® 3.1+ uses: `site_url('wp-signup.php')`. WordPress® 3.5+ uses: `network_site_url('wp-signup.php')`. 76 $wp_login_section = "/([\r\n\t\s ]+)(wp_redirect( *?)\(( *?)apply_filters( *?)\(( *?)['\"]wp_signup_location['\"],( *?)(site_url( *?)\(( *?)['\"]wp-signup\.php['\"]( *?)\)|network_site_url( *?)\(( *?)['\"]wp-signup\.php['\"]( *?)\)|get_bloginfo( *?)\(['\"]wpurl['\"]\)( *?)\.( *?)['\"]\/wp-signup\.php['\"])( *?)\)( *?)\);)([\r\n\t\s ]+)(exit;)/"; 101 else if (!$load_patched) // Otherwise, we need to report that /wp-includes/load.php could NOT be updated. Wrong WordPress® version? 102 ($display_notices) ? c_ws_plugin__s2member_admin_notices::display_admin_notice ('Your <code>/wp-includes/load.php</code> file could NOT be patched. Unverifiable.', true) : null; 103 } 108 $user_new_section = "/([\r\n\t\s ]+)(wpmu_signup_user( *?)\(( *?)\\\$new_user_login,( *?)\\\$_REQUEST\[( *?)'email'( *?)\],( *?)array( *?)\(( *?)'add_to_blog'( *?)\=\>( *?)\\\$wpdb->blogid,( *?)'new_role'( *?)\=\>( *?)\\\$_REQUEST\[( *?)'role'( *?)\]( *?)\)( *?)\);)/"; 109 $user_new_replace = "\n\t\t\t// Modified for full plugin compatiblity.\n\t\t\t//wpmu_signup_user( \$new_user_login, \$_REQUEST[ 'email' ], array( 'add_to_blog' => \$wpdb->blogid, 'new_role' => \$_REQUEST[ 'role' ] ) );\n\t\t\twpmu_signup_user( \$new_user_login, \$_REQUEST[ 'email' ], apply_filters( 'add_signup_meta', array( 'add_to_blog' => \$wpdb->blogid, 'new_role' => \$_REQUEST[ 'role' ] ) ) );"; 110 135 } 136 else // Otherwise, we need to report that /wp-includes/ms-functions.php could NOT be updated. Possibly a permissions error. 137 ($display_notices) ? c_ws_plugin__s2member_admin_notices::display_admin_notice ('Your <code>/wp-includes/ms-functions.php</code> file could NOT be patched. File NOT writable.', true) : null;class-wp-rest-taxonomies-controller.php https://gitlab.com/VTTE/sitios-vtte | PHP | 425 lines
1<?php 2/** 40 '/' . $this->rest_base, 41 array( 42 array( 43 'methods' => WP_REST_Server::READABLE, 44 'callback' => array( $this, 'get_items' ), 45 'permission_callback' => array( $this, 'get_items_permissions_check' ), 47 ), 48 'schema' => array( $this, 'get_public_item_schema' ), 49 ) 54 '/' . $this->rest_base . '/(?P<taxonomy>[\w-]+)', 55 array( 56 'args' => array( 56 'args' => array( 57 'taxonomy' => array( 58 'description' => __( 'An alphanumeric identifier for the taxonomy.' ),bookmark-template.php https://gitlab.com/VTTE/sitios-vtte | PHP | 324 lines
51function _walk_bookmarks( $bookmarks, $args = '' ) { 52 $defaults = array( 53 'show_updated' => 0, 68 69 foreach ( (array) $bookmarks as $bookmark ) { 70 if ( ! isset( $bookmark->recently_updated ) ) { 207function wp_list_bookmarks( $args = '' ) { 208 $defaults = array( 209 'orderby' => 'name', 232 233 if ( ! is_array( $parsed_args['class'] ) ) { 234 $parsed_args['class'] = explode( ' ', $parsed_args['class'] ); 258 foreach ( (array) $cats as $cat ) { 259 $params = array_merge( $parsed_args, array( 'category' => $cat->term_id ) ); 260 $bookmarks = get_bookmarks( $params );WishlistController.php https://github.com/itfcfan/magento-mirror.git | PHP | 302 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) 2010 Magento Inc. (http://www.magentocommerce.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 125 126 Mage::dispatchEvent('wishlist_add_product', array('wishlist'=>$wishlist, 'product'=>$product)); 127 199 $post = $this->getRequest()->getPost(); 200 if ($post && isset($post['description']) && is_array($post['description'])) { 201 $wishlist = $this->_getWishlist();edit_flow.php https://gitlab.com/Blueprint-Marketing/Edit-Flow | PHP | 348 lines
94 // Edit Flow base module 95 require_once( EDIT_FLOW_ROOT . '/common/php/class-module.php' ); 96 100 foreach( $module_dirs as $module_dir ) { 101 if ( file_exists( EDIT_FLOW_ROOT . "/modules/{$module_dir}/$module_dir.php" ) ) { 102 include_once( EDIT_FLOW_ROOT . "/modules/{$module_dir}/$module_dir.php" ); 120 // Other utils 121 require_once( EDIT_FLOW_ROOT . '/common/php/util.php' ); 122 149 150 do_action_ref_array( 'editflow_after_setup_actions', array( &$this ) ); 151 } 236 if ( isset( $args['messages'] ) ) 237 $args['messages'] = array_merge( (array)$args['messages'], $defaults['messages'] ); 238 $args = array_merge( $defaults, $args );class-avada-sanitize.php https://gitlab.com/webkod3r/tripolis | PHP | 419 lines
1<?php 2//if ( ! class_exists( 'Avada_Sanitize' ) ) { 88 89 $word_colors = array( 90 'aliceblue'=>'F0F8FF', 242 // If it is, then convert to hex. 243 if ( array_key_exists( $color, $word_colors ) ) { 244 $color = $word_colors[ $color ]; 251 } 252 $substr = array(); 253 for ( $i = 0; $i <= 5; $i++ ) { 358 $blue = hexdec( substr( $hex, 4, 2 ) ); 359 // rgb is an array 360 $rgb = array( $red, $green, $blue ); 373 $rgba_array = explode( ',', $rgba ); 374 $rgba_array[0] = str_replace( 'rgba(', '', $rgba_array[0] ); 375 if ( isset( $rgba_array[3] ) ) {Router.php https://gitlab.com/Pasantias/pasantiasASLG | PHP | 394 lines
90 * @param mixed $resource The main resource to load 91 * @param array $options An array of options 92 * @param RequestContext $context The context 94 */ 95 public function __construct(LoaderInterface $loader, $resource, array $options = array(), RequestContext $context = null, LoggerInterface $logger = null) 96 { 112 * 113 * @param array $options An array of options 114 * 136 foreach ($options as $key => $value) { 137 if (array_key_exists($key, $this->options)) { 138 $this->options[$key] = $value; 176 { 177 if (!array_key_exists($key, $this->options)) { 178 throw new \InvalidArgumentException(sprintf('The Router does not support the "%s" option.', $key));DebugClassLoader.php https://gitlab.com/Pasantias/pasantiasASLG | PHP | 328 lines
32 private static $php7Reserved = array('int', 'float', 'bool', 'string', 'true', 'false', 'null'); 33 private static $darwinCache = array('/' => array('/', array())); 34 95 96 if (!is_array($functions = spl_autoload_functions())) { 97 return; 117 { 118 if (!is_array($functions = spl_autoload_functions())) { 119 return; 196 197 if (in_array(strtolower($refl->getShortName()), self::$php7Reserved)) { 198 @trigger_error(sprintf('%s uses a reserved class name (%s) that will break on PHP 7 and higher', $name, $refl->getShortName()), E_USER_DEPRECATED); 281 while (!isset(self::$darwinCache[$k])) { 282 self::$darwinCache[$k] = array($dir, array()); 283 self::$darwinCache[$dir] = &self::$darwinCache[$k];TranslatorTest.php https://github.com/skoop/symfony.git | PHP | 248 lines
32 $translator = new Translator('en', new MessageSelector()); 33 $translator->addLoader('array', new ArrayLoader()); 34 $translator->addResource('array', array('foo' => 'foofoo'), 'en'); 34 $translator->addResource('array', array('foo' => 'foofoo'), 'en'); 35 $translator->addResource('array', array('bar' => 'foobar'), 'fr'); 36 46 $translator = new Translator('en', new MessageSelector()); 47 $translator->addLoader('array', new ArrayLoader()); 48 $translator->addResource('array', array('foo' => 'foo (en)'), 'en'); 151 array('Symfony2 est awesome !', 'Symfony2 is %what%!', 'Symfony2 est %what% !', array('%what%' => 'awesome'), 'fr', ''), 152 array('Symfony2 est super !', new String('Symfony2 is great!'), 'Symfony2 est super !', array(), 'fr', ''), 153 ); 189 190 array('Il y a 0 pomme', 'one: There is one apple|more: There is %count% apples', 'one: Il y a %count% pomme|more: Il y a %count% pommes', 0, array('%count%' => 0), 'fr', ''), 191 array('Il y a 1 pomme', 'one: There is one apple|more: There is %count% apples', 'one: Il y a %count% pomme|more: Il y a %count% pommes', 1, array('%count%' => 1), 'fr', ''),it.php https://gitlab.com/ptisky/API_prestashop | PHP | 105 lines
1<?php 2 3global $_MODULE; 4$_MODULE = array(); 5$_MODULE['<{leobootstrapmenu}leo_shoesworld>leobootstrapmenu_f00c4b5028a0b922b149954c5c1977c5'] = 'Leo Bootstrap Megamenu';manage.php https://github.com/mspall/moodle.git | PHP | 275 lines
26require_once($CFG->libdir.'/tablelib.php'); 27require_once('lib.php'); 28require_once($CFG->libdir.'/adminlib.php'); 32 33$tagschecked = optional_param_array('tagschecked', array(), PARAM_INT); 34$tagid = optional_param('tagid', null, PARAM_INT); 69$tagarea = core_tag_area::get_by_id($tagareaid); 70$manageurl = new moodle_url('/tag/manage.php'); 71if ($tagcoll) { 169 require_sesskey(); 170 $tagobjects = array(); 171 if ($tagcoll) { 177 if (!$tagobject->isstandard) { 178 $tagobject->update(array('isstandard' => 1)); 179 }Group.php https://gitlab.com/yasminmostfa/thomas-site | PHP | 328 lines
40 * @author Bertrand Mansion <golgote@mamasam.com> 41 * @license http://opensource.org/licenses/bsd-license.php New BSD License 42 * @version SVN: $Id: Group.php 294057 2010-01-26 21:10:28Z avb $ 100 do { 101 $token = array_shift($tokens); 102 if (!isset($valueAry[$token])) { 112 { 113 // Prepare a mapper for element names as array 114 281 * 282 * @param string|array Use a string for one separator, array for 283 * alternating separators 319 { 320 // require_once 'HTML/QuickForm2/Renderer.php'; 321CSqliteSchema.php https://github.com/66ru/gpor-contrib.git | PHP | 288 lines
1<?php 2/** 14 * @author Qiang Xue <qiang.xue@gmail.com> 15 * @version $Id: CSqliteSchema.php 3304 2011-06-23 14:53:50Z qiang.xue $ 16 * @package system.db.schema.sqlite 21 /** 22 * @var array the abstract column types mapped to physical column types. 23 * @since 1.1.6 24 */ 25 public $columnTypes=array( 26 'pk' => 'integer PRIMARY KEY AUTOINCREMENT NOT NULL', 83 * @param string $schema the schema of the tables. This is not used for sqlite database. 84 * @return array all table names in the database. 85 * @since 1.0.2 142 else if(is_string($table->primaryKey)) 143 $table->primaryKey=array($table->primaryKey,$c->name); 144 elseindex.php https://github.com/alanbarrett/moodle.git | PHP | 255 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 24require_once(__DIR__ . '/../config.php'); 25require_once($CFG->libdir . '/adminlib.php'); 26 67 68 $urlconfirm = new moodle_url('/theme/index.php', array('confirmation' => 1, 'choose' => $choose)); 69 redirect($urlconfirm); 132 133 $deviceurl = new moodle_url('/theme/index.php', array('device' => $thedevice, 'sesskey' => sesskey())); 134 144 145 $table->data[] = array( 146 $OUTPUT->heading(ucfirst($thedevice), 3), 250} 251echo $OUTPUT->single_button(new moodle_url('index.php', $params), get_string('themeresetcaches', 'admin')); 252process_shared_variant.cpp https://github.com/zsj888/hiphop-php.git | C++ | 363 lines
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 +----------------------------------------------------------------------+ 80 81 ArrayData *arr = source.getArrayData(); 82 PointerSet seen; 112 mapData->vals = putPtr(vals); 113 for (ArrayIterPtr it = source.begin(); !it->end(); it->next()) { 114 ProcessSharedVariant* key = SharedMemoryManager::GetSegment() 163 { 164 if (m_serializedArray) { 165 return f_unserialize(String(m_data.str->data(), m_data.str->size(),functions.wp-scripts.php https://github.com/mchow01/Security.git | PHP | 258 lines
24 * @param array|bool $handles Optional. Scripts to be printed. Default 'false'. 25 * @return array On success, a processed array of WP_Dependencies items; otherwise, an empty array. 26 */ 43 if ( !$handles ) 44 return array(); // No need to instantiate if nothing is there. 45 else 63 * @param string $src Path to the script from the WordPress root directory. Example: '/js/myscript.js'. 64 * @param array $deps Optional. An array of registered script handles this script depends on. Set to false if there 65 * are no dependencies. Default empty array. 109 * Example: '/[a-zA-Z0-9_]+/'. 110 * @param array $l10n The data itself. The data can be either a single or multi-dimensional array. 111 * @return bool True if the script was successfully localized, false otherwise. 187 * @param string|bool $src Path to the script from the root directory of WordPress. Example: '/js/myscript.js'. 188 * @param array $deps An array of registered handles this script depends on. Default empty array. 189 * @param string|bool $ver Optional. String specifying the script version number, if it has one. This parameterposts.php https://gitlab.com/Ltaimao/wecenter | PHP | 514 lines
57 case 'question': 58 $data = array( 59 'add_time' => $result['add_time'], 74 case 'article': 75 $data = array( 76 'add_time' => $result['add_time'], 90 case 'project': 91 $data = array( 92 'add_time' => $result['add_time'], 120 { 121 $data = array_merge($data, array( 122 'post_id' => intval($post_id), 175 { 176 $where = array(); 177module.js https://github.com/mayankgupta/moodle.git | JavaScript | 274 lines
23 // Properties 24 api : M.cfg.wwwroot+'/mod/chat/chat_ajax.php?sesskey='+M.cfg.sesskey, // The path to the ajax callback script 25 cfg : {}, // A configuration variable 27 layout : null, // A reference to the layout used in this module 28 messages : [], // An array of messages 29 scrollable : true, // True is scrolling should occur 234 for (var key in data.msgs){ 235 if (!M.util.in_array(key, this.messages)) { 236 this.messages.push(key);ar.php https://gitlab.com/ptisky/API_prestashop | PHP | 119 lines
1<?php 2 3global $_MODULE; 4$_MODULE = array(); 5$_MODULE['<{blockwishlist}leo_shoesworld>blockwishlist-ajax_4a84e5921e203aede886d04fc41a414b'] = 'إزالة هذا المنتج من وجهة نظري الأماني';Collection.php https://github.com/Emmes/Magento.dev.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) 2010 Magento Inc. (http://www.magentocommerce.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 106 ->addAttributeToSelect('price'); 107 /*$this->getSelect()->columns(array( 108 'viewed' => 'CONCAT("","")', 121 ->from( 122 array('quote_item_table' => $this->getTable('sales/quote_item')), 123 'COUNT(DISTINCT quote_item_table.product_id)' 125 ->join( 126 array('quote_table' => $this->getTable('sales/quote')), 127 'quote_table.entity_id = quote_item_table.quote_id AND quote_table.is_active = 1',Tax.php https://github.com/Emmes/Magento.dev.git | PHP | 301 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) 2010 Magento Inc. (http://www.magentocommerce.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 102 { 103 $taxTotal = new Varien_Object(array( 104 'code' => 'tax', 144 $baseSubtotalIncl = max(0, $baseSubtotalIncl); 145 $totalExcl = new Varien_Object(array( 146 'code' => 'subtotal_excl', 150 )); 151 $totalIncl = new Varien_Object(array( 152 'code' => 'subtotal_incl',rules.php https://github.com/Macsmice/Tamka.git | PHP | 291 lines
1<?php 2/** 2/** 3 * @version $Id: rules.php 20359 2011-01-19 10:45:14Z infograf768 $ 4 * @package Joomla.Framework 53 if ($el->getName() == 'action') { 54 $actions[] = (object) array( 55 'name' => (string) $el['name'], 97 // Prepare output 98 $html = array(); 99 $html[] = '<div id="permissions-sliders" class="pane-sliders">'; 270 * 271 * @return array 272 * @since 1.6Task.php https://gitlab.com/rsilveira1987/Expresso | PHP | 260 lines
1<?php 2/** 24 /** 25 * key in $_validators/$_properties array for the filed which 26 * represents the identifier 34 * should have this format: 35 * array('Calendar_Model_Contact' => 'contact_id', ...) 36 * or for more fields: 36 * or for more fields: 37 * array('Calendar_Model_Contact' => array('contact_id', 'customer_id), ...) 38 * (e.g. resolves contact_id with the corresponding Model) 78 Zend_Filter_Input::ALLOW_EMPTY => true, 79 array('InArray', array(self::CLASS_PUBLIC, self::CLASS_PRIVATE, /*self::CLASS_CONFIDENTIAL*/)), 80 ), 157 */ 158 public function setFromArray(array $_data) 159 {class.jetpack-sync-queue.php https://gitlab.com/hunt9310/ras | PHP | 459 lines
79 if ( count( $items ) === $rows_added ) { 80 return new WP_Error( 'row_count_mismatch', "The number of rows inserted didn't match the size of the input array" ); 81 } 270 $sql = "DELETE FROM $wpdb->options WHERE option_name IN (" . implode( ', ', array_fill( 0, count( $ids_to_remove ), '%s' ) ) . ')'; 271 $query = call_user_func_array( array( $wpdb, 'prepare' ), array_merge( array( $sql ), $ids_to_remove ) ); 272 $wpdb->query( $query ); 392 // TODO: confirm we only need to support PHP 5.05+ (otherwise we'll need to emulate microtime as float, and avoid PHP_INT_MAX) 393 // @see: http://php.net/manual/en/function.microtime.php 394 $timestamp = sprintf( '%.6f', microtime( true ) ); 444 static function get_item_values( $items ) { 445 return array_map( array( __CLASS__, 'get_item_value' ), $items ); 446 } 448 static function get_item_ids( $items ) { 449 return array_map( array( __CLASS__, 'get_item_id' ), $items ); 450 }Term.php https://gitlab.com/rsilveira1987/Expresso | PHP | 335 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Term.php 10020 2009-08-18 14:34:09Z j.fischer@metaways.de $ 21 */ 24/** Zend_Search_Lucene_Search_Query_Processing */ 25require_once 'Zend/Search/Lucene/Search/Query/Preprocessing.php'; 26 27/** Zend_Search_Lucene_Search_Query_Phrase */ 28require_once 'Zend/Search/Lucene/Search/Query/Phrase.php'; 29 30/** Zend_Search_Lucene_Search_Query_Insignificant */ 31require_once 'Zend/Search/Lucene/Search/Query/Insignificant.php'; 32 33/** Zend_Search_Lucene_Search_Query_Empty */ 34require_once 'Zend/Search/Lucene/Search/Query/Empty.php'; 35hpioctl.c https://gitlab.com/cr3pt/nkernel | C | 482 lines
102{ 103 struct hpi_ioctl_linux __user *phpi_ioctl_data; 104 void __user *puhm; 121 122 phpi_ioctl_data = (struct hpi_ioctl_linux __user *)arg; 123 124 /* Read the message and response pointers from user space. */ 125 if (get_user(puhm, &phpi_ioctl_data->phm) 126 || get_user(puhr, &phpi_ioctl_data->phr)) { 183 184 if (hm->h.adapter_index < ARRAY_SIZE(adapters)) 185 pa = &adapters[hm->h.adapter_index];20120702Test.php https://gitlab.com/leoplanxxi/dr7-web-buap-2016 | PHP | 287 lines
1<?php 2require_once('../geoPHP.inc'); 2require_once('../geoPHP.inc'); 3class Tests_20120702 extends PHPUnit_Framework_TestCase { 4 11 $value = file_get_contents('./input/20120702.gpx'); 12 $geometry = geoPHP::load($value, $format); 13 13 14 $methods = array( 15 array('name' => 'area'), 15 array('name' => 'area'), 16 array('name' => 'boundary'), 17 array('name' => 'getBBox'), 17 array('name' => 'getBBox'), 18 array('name' => 'centroid'), 19 array('name' => 'length'),themes.php https://gitlab.com/thisishayat/itv-2016 | PHP | 329 lines
62 check_admin_referer('bulk-themes'); 63 $themes = isset( $_POST['checked'] ) ? (array) $_POST['checked'] : array(); 64 if ( empty($themes) ) { 104 105 $themes = isset( $_REQUEST['checked'] ) ? (array) $_REQUEST['checked'] : array(); 106 111 112 $themes = array_diff( $themes, array( get_option( 'stylesheet' ), get_option( 'template' ) ) ); 113 157 <h1><?php _e( 'Delete Themes' ); ?></h1> 158 <div class="error"><p><strong><?php _e( 'Caution:' ); ?></strong> <?php _e( 'These themes may be active on other sites in the network.' ); ?></p></div> 159 <p><?php _e( 'You are about to remove the following themes:' ); ?></p> 269<div class="wrap"> 270<h1><?php echo esc_html( $title ); if ( current_user_can('install_themes') ) { ?> <a href="theme-install.php" class="page-title-action"><?php echo esc_html_x('Add New', 'theme'); ?></a><?php } 271if ( $s )pl.php https://gitlab.com/elasa/shop2.elasa.ir | PHP | 109 lines
1<?php 2 3global $_MODULE; 4$_MODULE = array(); 5$_MODULE['<{productcomments}ap_travel>productcommentcriterion_a09ed6c60eb3213939cecb4c580813cd'] = 'Ma zastosowanie dla całego katalogu';ArgvInput.php https://gitlab.com/asun89/socianovation-web | PHP | 351 lines
48 * 49 * @param array $argv An array of parameters from the CLI (in the argv format) 50 * @param InputDefinition $definition A InputDefinition instance 58 // strip the application name 59 array_shift($argv); 60 169 $arg = $this->definition->getArgument($c); 170 $this->arguments[$arg->getName()] = $arg->isArray() ? array($token) : $token; 171 276 * 277 * @param string|array $values The value(s) to look for in the raw parameters (can be an array) 278 * 301 * 302 * @param string|array $values The value(s) to look for in the raw parameters (can be an array) 303 * @param mixed $default The default value to return if no result is foundCollection.php https://bitbucket.org/acidel/buykoala.git | PHP | 423 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 */ 46 * 47 * @var array 48 */ 48 */ 49 protected $_joinFlags = array(); 50 53 * 54 * @var array 55 */CartItemRepositoryTest.php https://gitlab.com/crazybutterfly815/magento2 | PHP | 327 lines
1<?php 2/** 25 /** 26 * @magentoApiDataFixture Magento/Quote/_files/empty_quote.php 27 * @magentoApiDataFixture Magento/Downloadable/_files/product_downloadable.php 50 // use ID of the first downloadable link 51 $linkId = array_values($product->getDownloadableLinks())[0]->getId(); 52 81 /** 82 * @magentoApiDataFixture Magento/Quote/_files/empty_quote.php 83 * @magentoApiDataFixture Magento/Downloadable/_files/product_downloadable.php 126 /** 127 * @magentoApiDataFixture Magento/Downloadable/_files/quote_with_downloadable_product.php 128 */ 151 // use ID of the first downloadable link 152 $linkId = array_values($product->getDownloadableLinks())[0]->getId(); 153update.php https://bitbucket.org/sephora99/kmirock.git | PHP | 420 lines
96 if ( 'packages' == $offer_key ) 97 $offer['packages'] = (object) array_intersect_key( array_map( 'esc_url', $offer['packages'] ), 98 array_fill_keys( array( 'full', 'no_content', 'new_bundled', 'partial' ), '' ) ); 103 } 104 $offer = (object) array_intersect_key( $offer, array_fill_keys( array( 'response', 'download', 'locale', 105 'packages', 'current', 'php_version', 'mysql_version', 'new_bundled', 'partial_version' ), '' ) ); 146 // Check for updated every 60 minutes if hitting update pages; else, check every 12 hours. 147 $timeout = in_array( current_filter(), array( 'load-plugins.php', 'load-update.php', 'load-update-core.php' ) ) ? 3600 : 43200; 148 $time_not_changed = isset( $current->last_checked ) && $timeout > ( time() - $current->last_checked ); 225 // Check for updated every 60 minutes if hitting update pages; else, check every 12 hours. 226 $timeout = in_array( current_filter(), array( 'load-themes.php', 'load-update.php', 'load-update-core.php' ) ) ? 3600 : 43200; 227 $time_not_changed = isset( $last_update->last_checked ) && $timeout > ( time( ) - $last_update->last_checked ); 318 $update_wordpress = get_core_updates( array('dismissed' => false) ); 319 if ( ! empty( $update_wordpress ) && ! in_array( $update_wordpress[0]->response, array('development', 'latest') ) && current_user_can('update_core') ) 320 $counts['wordpress'] = 1;template.php https://bitbucket.org/frazras/higgler.git | PHP | 384 lines
66 if (!empty($vars['elements']['#grid'][$quality])) { 67 array_unshift($vars['attributes_array']['class'], $quality . '-' . $vars['elements']['#grid'][$quality]); 68 } 166 if (isset($vars[$region]['#theme_wrappers']) && array_search('region', $vars[$region]['#theme_wrappers']) !== FALSE) { 167 $vars[$region] = array('alpha_debug_' . $region => array( 168 '#type' => 'markup', 265 $vars['attributes_array']['id'] = drupal_html_id('section-' . $vars['section']); 266 $vars['classes_array'] = array('section', $vars['attributes_array']['id']); 267} 279 $vars['content_attributes_array']['id'] = drupal_html_id('zone-' . $vars['zone']); 280 $vars['content_attributes_array']['class'] = array('zone', $vars['content_attributes_array']['id'], 'clearfix'); 281 283 $vars['attributes_array']['id'] = drupal_html_id($vars['content_attributes_array']['id'] . '-wrapper'); 284 $vars['classes_array'] = array('zone-wrapper', $vars['attributes_array']['id'], 'clearfix'); 285 }Logger.php https://github.com/pmjones/php-framework-benchmarks.git | PHP | 393 lines
203 */ 204 public function addDebug($message, array $context = array()) 205 { 346 */ 347 public function err($message, array $context = array()) 348 { 360 */ 361 public function crit($message, array $context = array()) 362 { 374 */ 375 public function alert($message, array $context = array()) 376 { 388 */ 389 public function emerg($message, array $context = array()) 390 {Menu.php https://github.com/michaelmcandrew/vaw.git | PHP | 434 lines
1<?php 2/* 33 */ 34require_once 'CRM/Core/DAO.php'; 35require_once 'CRM/Utils/Type.php'; 47 * 48 * @var array 49 * @static 62 * 63 * @var array 64 * @static 70 * 71 * @var array 72 * @static 221 * @access public 222 * @return array 223 */Bootstrap.php https://github.com/TYPO3/TYPO3.CMS.git | PHP | 254 lines
1<?php 2 40{ 41 public static array $persistenceClasses = []; 42 84 * 85 * @param array $configuration The TS configuration array 86 * @throws \RuntimeException 88 */ 89 public function initialize(array $configuration): void 90 { 104 * 105 * @param array $configuration 106 * @see initialize() 128 * @param string $content The content. Not used 129 * @param array $configuration The TS configuration array 130 * @param ServerRequestInterface $request the incoming server requestYaml.php https://bitbucket.org/maatao/estrutura-b-sica-doctrine.git | PHP | 381 lines
193 if (null === $section) { 194 $dataArray = array(); 195 foreach ($config as $sectionName => $sectionData) { 206 207 $dataArray = array_merge($this->_processExtends($config, $sectionName), $dataArray); 208 } 218 // Section in the yaml data contains just one top level string 219 $dataArray = array($section => $dataArray); 220 } 230 * 231 * @param array $data Data array to process 232 * @param string $section Section to process 236 */ 237 protected function _processExtends(array $data, $section, array $config = array()) 238 {WebAssemblyGenerator.js https://gitlab.com/nguyenthehiep3232/marius | JavaScript | 501 lines
1/* 2 MIT License http://www.opensource.org/licenses/mit-license.php 3 Author Tobias Koppers @sokra 29/** 30 * @typedef {(ArrayBuffer) => ArrayBuffer} ArrayBufferTransform 31 */ 50 * @param {Object} state unused state 51 * @returns {ArrayBufferTransform} transform 52 */ 64 * @param {Object} ast Module's AST 65 * @returns {Array<t.ModuleImport>} - nodes 66 */ 171 * @param {Object} state unused state 172 * @returns {ArrayBufferTransform} transform 173 */global.inc.php https://github.com/drietsch/newcms.git | PHP | 178 lines
1<?php 2 24/** 25 * Language file: global.inc.php 26 * Provides language strings. 30 31$GLOBALS["l_global"]["new_link"] = "Nieuwe koppeling"; // It is important to use the GLOBALS ARRAY because in linklists, the file is included in a function. 32$GLOBALS["l_global"]["load_menu_info"] = "Data wordt geladen!<br>Dit kan enige tijd duren wanneer meerdere menu elementen geladen worden ...";Profiler.php https://gitlab.com/florianocomercial/centreon | PHP | 471 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Profiler.php 20096 2010-01-06 02:05:09Z bkarwin $ 21 */ 81 /** 82 * Array of Zend_Db_Profiler_Query objects. 83 * 83 * 84 * @var array 85 */ 85 */ 86 protected $_queryProfiles = array(); 87 99 * is less than this value in seconds will be unset from 100 * the self::$_queryProfiles array. 101 *user-moderation-admin.php https://gitlab.com/Gashler/sg | PHP | 432 lines
116 $active_modules = $theme_my_login_admin->get_option( 'active_modules' ); 117 $active_modules = array_values( array_diff( $active_modules, array( 'user-moderation/user-moderation.php' ) ) ); 118 180 ?> 181 <input name="<?php echo $this->options_key; ?>[type]" type="radio" id="<?php echo $this->options_key; ?>_type_none" value="none"<?php checked( $this->get_option( 'type' ), 'none' ); ?> /> 182 <label for="<?php echo $this->options_key; ?>_type_none"><?php _e( 'None', 'theme-my-login' ); ?></label> 184 185 <input name="<?php echo $this->options_key; ?>[type]" type="radio" id="<?php echo $this->options_key; ?>_type_email" value="email" <?php checked( $this->get_option( 'type' ), 'email' ); ?> /> 186 <label for="<?php echo $this->options_key; ?>_type_email"><?php _e( 'E-mail Confirmation', 'theme-my-login' ); ?></label> 188 189 <input name="<?php echo $this->options_key; ?>[type]" type="radio" id="<?php echo $this->options_key; ?>_type_admin" value="admin" <?php checked( $this->get_option( 'type' ), 'admin' ); ?> /> 190 <label for="<?php echo $this->options_key; ?>_type_admin"><?php _e( 'Admin Approval', 'theme-my-login' ); ?></label> 234 // Where did we come from? 235 $redirect_to = isset( $_REQUEST['wp_http_referer'] ) ? remove_query_arg( array( 'wp_http_referer', 'updated', 'delete_count' ), stripslashes( $_REQUEST['wp_http_referer'] ) ) : 'users.php'; 236inputfilter.php https://gitlab.com/endomorphosis/OLAAaction | PHP | 551 lines
18{ 19 var $tagsArray; // default = empty array 20 var $attrArray; // default = empty array 39 */ 40 function inputFilter($tagsArray = array (), $attrArray = array (), $tagsMethod = 0, $attrMethod = 0, $xssAuto = 1) 41 { 45 $tagsArray = array_map('strtolower', (array) $tagsArray); 46 $attrArray = array_map('strtolower', (array) $attrArray); 47 272 */ 273 $tagFound = in_array(strtolower($tagName), $this->tagsArray); 274 399 */ 400 $attrFound = in_array(strtolower($attrSubSet[0]), $this->attrArray); 401jquery.tagsinput.js https://gitlab.com/techniconline/kmc | JavaScript | 358 lines
10 Licensed under the MIT license: 11 http://www.opensource.org/licenses/mit-license.php 12 18 19 var delimiter = new Array(); 20 var tags_callbacks = new Array(); 84 if (tagslist[0] == '') { 85 tagslist = new Array(); 86 } 167 var tagslist = $(this).val().split(delimiter[id]); 168 return (jQuery.inArray(val, tagslist) >= 0); //true when tag exists, false when not 169 }; 215 if (settings.onAddTag || settings.onRemoveTag || settings.onChange) { 216 tags_callbacks[id] = new Array(); 217 tags_callbacks[id]['onAddTag'] = settings.onAddTag;tutorials.orm.md https://github.com/alfons56/Kohana.git | Markdown | 298 lines
82 83Een zeer handige functie van ORM is de [ORM::as_array] methode die het record zal teruggeven als een array. Indien je dit gebruikt met [ORM::find_all], zal een array van alle records worden teruggegeven. Een goed voorbeeld van wanneer dit nuttig is, is voor select in het HTML formulier: 84 214 // In het model "student" 215 protected $_has_many = array('classes' => array('through' => 'enrollment')); 216 230 // Het model "enrollment" hoort bij zowel "student" als "class" 231 protected $_belongs_to = array('student' => array(), 'class' => array()); 232 254 'username' => array('not_empty' => array()), 255 'email' => array('not_empty' => array(), 'email' => array()), 256 ); 279 TRUE => array('trim' => array()), 280 'username' => array('stripslashes' => array()), 281 );ezcontentcache.php https://github.com/Socrattes2099/ezpublish.git | PHP | 323 lines
74 $cacheDir = eZDir::path( array( eZSys::cacheDirectory(), $ini->variable( 'ContentSettings', 'CacheDir' ), $currentSiteAccess, $extraPath ) ); 75 $cachePath = eZDir::path( array( $cacheDir, $cacheFile ) ); 76 return array( 'dir' => $cacheDir, 173 $res = eZTemplateDesignResource::instance(); 174 $res->setKeys( array( array( 'node', $nodeID ), 175 array( 'view_offset', $offset ), 176 array( 'viewmode', $viewMode ), 177 array( 'section', $cachedArray['section_id'] ) 178 ) ); 205 206 $serializeArray = array(); 207 246 $serializeArray['cache_code_date'] = self::CODE_DATE; 247 $serializeArray['content'] = $result['content']; 248emails.php https://github.com/libersoft/fengoffice-ls.git | PHP | 183 lines
1<?php return array( 2 'new message' => 'Nowa wiadomość',footer.php https://gitlab.com/alexballera/ferrenobrega | PHP | 227 lines
36 37 <?php $cleanmenu = wp_nav_menu( array( 38 'theme_location' => 'secondary-menu', // footer-menu-uno 109 110 <?php $cleanmenu = wp_nav_menu( array( 111 'theme_location' => 'footer-menu-dos', 126 127<?php 128 $data = listar_vendedor(); 147 <label for="">Nombre Completo:</label><span class="text-danger">*</span> 148 <input type="text" id="nombre_user_cambio" class="form-control input-sm" value="<?php echo get_user_meta($user->ID,'first_name',true).' '.get_user_meta($user->ID,'last_name',true); ?>" placeholder="Nombre Completo"> 149 <span class="text-danger" id="nombre_user_cambio_msj"></span> 182 <?php foreach ($data as $d) { ?> 183 <option value="<?php echo $d['first_name'].' '.$d['last_name']; ?>"><?php echo $d['first_name'].' '.$d['last_name']; ?></option> 184 <?php } ?>PeopleController.php https://gitlab.com/macitsimsek/fastsubtitle | PHP | 167 lines
1<?php 2 143 $newPictureLink=Functions::downloadPicture(Input::get('personPicture'),Input::get('personName'),'peopleImages'); 144 Input::merge(array('personPicture' => $newPictureLink)); 145 }mootools-adapter.src.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 327 lines
31 fxStart = fxProto.start, 32 morphProto = Fx.Morph.prototype, 33 morphCompute = morphProto.compute; 55 // override Fx.step to allow animation of SVG element wrappers 56 morphProto.compute = function (from, to, delta) { 57 var fx = this, 116 el.getStyle = el.attr; 117 el.setStyle = function () { // property value is given as array in Moo - break it down 118 var args = arguments; 164 $each(arr, fn) : 165 Array.each(arr, fn); 166 }, 168 /** 169 * Map an array 170 * @param {Array} arrthickbox.js https://gitlab.com/gregtyka/app222 | JavaScript | 324 lines
4 * Copyright (c) 2007 cody lindley 5 * Licensed under the MIT License: http://www.opensource.org/licenses/mit-license.php 6*/ 85 if(imageGroup){ 86 TB_TempArray = jQuery("a[rel="+imageGroup+"]").get(); 87 for (TB_Counter = 0; ((TB_Counter < TB_TempArray.length) && (TB_NextHTML === "")); TB_Counter++) { 87 for (TB_Counter = 0; ((TB_Counter < TB_TempArray.length) && (TB_NextHTML === "")); TB_Counter++) { 88 var urlTypeTemp = TB_TempArray[TB_Counter].href.toLowerCase().match(urlString); 89 if (!(TB_TempArray[TB_Counter].href == url)) { 90 if (TB_FoundURL) { 91 TB_NextCaption = TB_TempArray[TB_Counter].title; 92 TB_NextURL = TB_TempArray[TB_Counter].href; 94 } else { 95 TB_PrevCaption = TB_TempArray[TB_Counter].title; 96 TB_PrevURL = TB_TempArray[TB_Counter].href;general_edit.html https://bitbucket.org/DenizYldrm/openemr.git | HTML | 332 lines
2<head> 3{php}html_header_show();{/php} 4 111 112{php} if ($GLOBALS['enable_amc_prompting']) { {/php} 113 <div style='float:right;margin-right:25px;border-style:solid;border-width:1px;'> 123 </div> 124{php} } {/php} 125 159 <select name="drug_id" onchange="drugselected(this)"> 160 {html_options values=$DRUG_ARRAY_VALUES output=$DRUG_ARRAY_OUTPUT selected=$prescription->get_drug_id()} 161 </select> 180 <input TYPE="TEXT" NAME="size" id="size" SIZE="11" MAXLENGTH="10" VALUE="{$prescription->size}"/> 181 <select name="unit" id="unit">{html_options options=$prescription->unit_array selected=$prescription->unit}</select> 182 </td>FlattenException.php https://gitlab.com/Pasantias/pasantiasASLG | PHP | 297 lines
34 35 return call_user_func_array(array('Symfony\Component\Debug\Exception\FlattenException', $method), $args); 36 } 47 48 return call_user_func_array(array($this->handler, $method), $args); 49 } 111 $exceptions = array(); 112 foreach (array_merge(array($this), $this->getAllPrevious()) as $exception) { 113 $exceptions[] = array( 269 if ($level > 10) { 270 $result[$key] = array('array', '*DEEP NESTED ARRAY*'); 271 } else { 294 295 return $array['__PHP_Incomplete_Class_Name']; 296 }Relation.php https://gitlab.com/Pasantias/pasantiasASLG | PHP | 349 lines
77 */ 78 abstract public function addEagerConstraints(array $models); 79 82 * 83 * @param array $models 84 * @param string $relation 181 * 182 * @param array $models 183 * @param string $key 183 * @param string $key 184 * @return array 185 */ 187 { 188 return array_unique(array_values(array_map(function ($value) use ($key) { 189 return $key ? $value->getAttribute($key) : $value->getKey();Reflection.java https://github.com/zitterbewegung/cs398.git | Java | 303 lines
91 92 private static final WordArray emptyWordArray = WordArray.create(0); 93 private static final double[] emptyDoubleArray = new double[0]; 106 // Determine primitive type-ness early to avoid call (possible yield) 107 // later while refs are possibly being held in int arrays. 108 // 115 int gprs = triple & REFLECTION_GPRS_MASK; 116 WordArray GPRs = (gprs > 0) ? WordArray.create(gprs) : emptyWordArray; 117 int fprs = (triple >> REFLECTION_GPRS_BITS) & 0x1F; 127 128 WordArray Spills = (spillCount > 0) ? WordArray.create(spillCount) : emptyWordArray; 129 181 182 CodeArray code = cm.getEntryCodeArray(); 183 MachineReflection.packageParameters(method, thisArg, otherArgs, GPRs, FPRs, FPRmeta, Spills);ContratoController.php https://gitlab.com/SFMSP/Hagape | PHP | 315 lines
1<?php 2 20 protected $route = 'estoque/default'; 21 protected $jsIndex = array('contrato/index.js'); 22 protected $jsFormulario = array('contrato/formulario.js'); 32 $request = $this->getRequest(); 33 $empenhos = array(); 34 37 //Busca os dados 38 $dados = $request->getPost()->toArray(); 39 if ($this->params()->fromRoute('id')) { 69 70 return $this->redirect()->toRoute($this->route, array('controller' => $this->controller)); 71 } else { 140 if ($dados) { 141 $dados = $dados->toArray(); 142 $dados['valor'] = number_format($dados['valor'], 2, ',', '.');about.php https://gitlab.com/relacilia/cakra | PHP | 243 lines
45 <h2 class="nav-tab-wrapper"> 46 <a href="about.php" class="nav-tab nav-tab-active"><?php _e( 'What’s New' ); ?></a> 47 <a href="credits.php" class="nav-tab"><?php _e( 'Credits' ); ?></a> 47 <a href="credits.php" class="nav-tab"><?php _e( 'Credits' ); ?></a> 48 <a href="freedoms.php" class="nav-tab"><?php _e( 'Freedoms' ); ?></a> 49 </h2> 110 <div class="embed-container"> 111 <blockquote data-secret="OcUe7B6Edh" class="wp-embedded-content"><a href="https://wordpress.org/news/2015/12/clifford/">WordPress 4.4 “Clifford”</a></blockquote><iframe class="wp-embedded-content" sandbox="allow-scripts" security="restricted" style="display:none;" src="https://wordpress.org/news/2015/12/clifford/embed/#?secret=OcUe7B6Edh" data-secret="OcUe7B6Edh" width="600" height="338" title="<?php esc_attr_e( 'Embedded WordPress Post' ); ?>" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe> 112 </div> 199 <?php if ( current_user_can( 'update_core' ) && isset( $_GET['updated'] ) ) : ?> 200 <a href="<?php echo esc_url( self_admin_url( 'update-core.php' ) ); ?>"> 201 <?php is_multisite() ? _e( 'Return to Updates' ) : _e( 'Return to Dashboard → Updates' ); ?> 203 <?php endif; ?> 204 <a href="<?php echo esc_url( self_admin_url() ); ?>"><?php is_blog_admin() ? _e( 'Go to Dashboard → Home' ) : _e( 'Go to Dashboard' ); ?></a> 205 </div>SqlCompatibleTest.php https://gitlab.com/digaotinfo/agendaLegislativa | PHP | 438 lines
164 $conditions = array( 165 'title' => array('$nin' => array(10)) 166 ); 294 295 $params = array('conditions' => array('_id' => array('A11', 'A12'))); 296 $result = $this->Post->find('all', $params); 310 311 $params = array('conditions' => array('_id' => array('$nin' => array('A11', 'A12')))); 312 $result = $this->Post->find('all', $params); 345 346 $order = array(array('title' => 'DESC')); 347 $this->assertEqual($order, $this->Post->lastQuery['order']); 365 366 $order = array(array('title' => 'ASC')); 367 $this->assertEqual($order, $this->Post->lastQuery['order']);Comparator.php https://bitbucket.org/cryofrost/portal.git | PHP | 378 lines
1<?php 2/* 26 * @license http://ez.no/licenses/new_bsd New BSD License 27 * @license http://www.opensource.org/licenses/lgpl-license.php LGPL 28 * @link www.doctrine-project.org 61 62 $foreignKeysToTable = array(); 63 84 if (!isset($foreignKeysToTable[$foreignTable])) { 85 $foreignKeysToTable[$foreignTable] = array(); 86 } 277 { 278 if (array_map('strtolower', $key1->getLocalColumns()) != array_map('strtolower', $key2->getLocalColumns())) { 279 return true; 281 282 if (array_map('strtolower', $key1->getForeignColumns()) != array_map('strtolower', $key2->getForeignColumns())) { 283 return true;class-page-title.php https://gitlab.com/campus-academy/krowkaramel | PHP | 530 lines
412 * 413 * Written in PHP and used to generate the final HTML. 414 * 431 432 <?php 433 $head_link_url = isset( $settings['page_heading_link']['url'] ) ? $settings['page_heading_link']['url'] : ''; 440 <?php } ?> 441 <<?php echo $heading_size_tag; ?> class="elementor-heading-title elementor-size-<?php echo $settings['size']; ?>"> 442 <?php if ( '' !== $settings['new_page_title_select_icon']['value'] ) { ?> 443 <span class="hfe-page-title-icon"> 444 <?php \Elementor\Icons_Manager::render_icon( $settings['new_page_title_select_icon'], [ 'aria-hidden' => 'true' ] ); ?> </span> 445 <?php } ?> 465 </div> 466 <?php 467tools.php https://gitlab.com/campus-academy/krowkaramel | PHP | 432 lines
1<?php 2namespace Elementor; 148 $rollback_versions = $this->get_rollback_versions(); 149 if ( empty( $_GET['version'] ) || ! in_array( $_GET['version'], $rollback_versions ) ) { 150 wp_die( esc_html__( 'Error occurred, The version selected is invalid. Try selecting different version.', 'elementor' ) ); 152 153 $plugin_slug = basename( ELEMENTOR__FILE__, '.php' ); 154 205 206 require_once ABSPATH . 'wp-admin/includes/plugin-install.php'; 207 213 214 if ( empty( $plugin_information->versions ) || ! is_array( $plugin_information->versions ) ) { 215 return []; 269 * 270 * @return array An array with the page tabs, sections and fields. 271 */JUnitFormatterSpec.php https://gitlab.com/judielsm/Handora | PHP | 226 lines
1<?php 2 2 3namespace spec\PhpSpec\Formatter; 4 4 5use PhpSpec\ObjectBehavior; 6use Prophecy\Argument; 6use Prophecy\Argument; 7use PhpSpec\Formatter\Presenter\PresenterInterface; 8use PhpSpec\IO\IOInterface; 8use PhpSpec\IO\IOInterface; 9use PhpSpec\Listener\StatisticsCollector; 10use PhpSpec\Event\SpecificationEvent; 10use PhpSpec\Event\SpecificationEvent; 11use PhpSpec\Event\ExampleEvent; 12use PhpSpec\Loader\Node\SpecificationNode;renderer.php https://github.com/mkassaei/Moodle-Question-Engine-2.git | PHP | 313 lines
1<?php 2 64 $inputname = $qa->get_qt_field_name('answer'); 65 $inputattributes = array( 66 'type' => $this->get_input_type(), 73 74 $radiobuttons = array(); 75 $feedbackimg = array(); 75 $feedbackimg = array(); 76 $feedback = array(); 77 $classes = array(); 90 if (!$options->readonly && $this->get_input_type() == 'checkbox') { 91 $hidden = html_writer::empty_tag('input', array( 92 'type' => 'hidden', 98 html_writer::tag('label', $this->number_in_style($value, $question->answernumbering) . 99 $question->format_text($ans->answer), array('for' => $inputattributes['id'])); 100Esi.php https://gitlab.com/fabian.morales/marlon_becerra | PHP | 245 lines
35 * 36 * @param array $contentTypes An array of content-type that should be parsed for ESI information. 37 * (default: text/html, text/xml, application/xhtml+xml, and application/xml) 38 */ 39 public function __construct(array $contentTypes = array('text/html', 'text/xml', 'application/xhtml+xml', 'application/xml')) 40 { 160 $content = $response->getContent(); 161 $content = str_replace(array('<?', '<%'), array('<?php echo "<?"; ?>', '<?php echo "<%"; ?>'), $content); 162 $content = preg_replace_callback('#<esi\:include\s+(.*?)\s*(?:/|</esi\:include)>#', array($this, 'handleEsiIncludeTag'), $content); 196 { 197 $subRequest = Request::create($uri, 'get', array(), $cache->getRequest()->cookies->all(), array(), $cache->getRequest()->server->all()); 198 220 * 221 * @param array $attributes An array containing the attributes. 222 *Filesystem.php https://gitlab.com/fabian.morales/marlon_becerra | PHP | 406 lines
1<?php namespace Illuminate\Filesystem; 2 107 * 108 * @param string|array $paths 109 * @return bool 112 { 113 $paths = is_array($paths) ? $paths : func_get_args(); 114 227 * @param int $flags 228 * @return array 229 */ 235 /** 236 * Get an array of all files in a directory. 237 * 238 * @param string $directory 239 * @return array 240 */file.php https://bitbucket.org/bodva/progr.git | PHP | 466 lines
32 * * Kohana 3.0.x 33 * * PHP 5.2.4 or greater 34 * 84 } 85 // PHP >= 5.3 exception handle 86 catch (UnexpectedValueException $e) 99 { 100 throw new Cache_Exception('Unable to read from the cache directory :resource', array(':resource' => $this->_cache_dir->getRealPath())); 101 } 105 { 106 throw new Cache_Exception('Unable to write to the cache directory :resource', array(':resource' => $this->_cache_dir->getRealPath())); 107 } 447 * 448 * @see http://php.net/manual/en/function.mkdir.php 449 * @param string directorycategories.php https://github.com/bantu/customisation-db.git | PHP | 357 lines
183 'CATEGORY_VISIBLE' => $category_object->category_visible, 184 'SECTION_NAME' => ($action == 'add') ? phpbb::$user->lang['CREATE_CATEGORY'] : phpbb::$user->lang['EDIT_CATEGORY'] . ' - ' . ((isset(phpbb::$user->lang[$old_category_name])) ? phpbb::$user->lang[$old_category_name] : $old_category_name), 185 272 'CATEGORY_NAME' => (isset(phpbb::$user->lang[$category_object->category_name])) ? phpbb::$user->lang[$category_object->category_name] : $category_object->category_name, 273 'SECTION_NAME' => phpbb::$user->lang['DELETE_CATEGORY'] . ' - ' . ((isset(phpbb::$user->lang[$category_object->category_name])) ? phpbb::$user->lang[$category_object->category_name] : $category_object->category_name), 274 'S_HAS_SUBCATS' => ($category_object->right_id - $category_object->left_id > 1) ? true : false, 295 titania::generate_breadcrumbs(array( 296 ((isset(phpbb::$user->lang[$categories_ary[$row['category_id']]['category_name']])) ? phpbb::$user->lang[$categories_ary[$row['category_id']]['category_name']] : $categories_ary[$row['category_id']]['category_name']) => titania_url::build_url('manage/categories', array('c' => $row['category_id'])), 297 )); 302 titania::generate_breadcrumbs(array( 303 ((isset(phpbb::$user->lang[$categories_ary[$category_id]['category_name']])) ? phpbb::$user->lang[$categories_ary[$category_id]['category_name']] : $categories_ary[$category_id]['category_name']) => titania_url::build_url('manage/categories', array('c' => $category_id)), 304 )); 319 titania::generate_breadcrumbs(array( 320 ((isset(phpbb::$user->lang[$categories_ary[$category_id]['category_name']])) ? phpbb::$user->lang[$categories_ary[$category_id]['category_name']] : $categories_ary[$category_id]['category_name']) => titania_url::build_url('manage/categories', array('c' => $category_id)), 321 ), $block = 'nav_categories');Exception.php https://github.com/Br3nda/statusnet-debian.git | PHP | 397 lines
20 * @copyright 1997-2008 The PHP Group 21 * @license http://www.php.net/license/3_0.txt PHP License 3.0 22 * @version CVS: $Id: Exception.php,v 1.29 2008/01/03 20:26:35 cellog Exp $ 154 /** 155 * @param mixed $callback - A valid php callback, see php func is_callable() 156 * - A PEAR_Exception::OBSERVER_* constant 214 * 215 * The returned array must be an associative array of parameter => value like so: 216 * <pre> 216 * <pre> 217 * array('name' => $name, 'context' => array(...)) 218 * </pre> 357 if (is_null($arg)) $args[] = 'null'; 358 elseif (is_array($arg)) $args[] = 'Array'; 359 elseif (is_object($arg)) $args[] = 'Object('.get_class($arg).')';ModelCode.php https://bitbucket.org/pixelsandcodes/ios.git | PHP | 390 lines
12 /** 13 * @var array list of candidate relation code. The array are indexed by AR class names and relation names. 14 * Each element represents the code of the one relation in one AR class. 19 { 20 return array_merge(parent::rules(), array( 21 array('tablePrefix, baseClass, tableName, modelClass, modelPath', 'filter', 'filter'=>'trim'), 34 { 35 return array_merge(parent::attributeLabels(), array( 36 'tablePrefix'=>'Table Prefix', 147 /* 148 * Check that all database field names conform to PHP variable naming rules 149 * For example mysql allows field name like "2011aa", but PHP does not allow variable like "$model->2011aa" 274 if(!$this->buildRelations) 275 return array(); 276 $relations=array();PMA_relation_cleanup_test.php https://gitlab.com/luyxtran264/myproject | PHP | 511 lines
1<?php 2/* vim: set expandtab sw=4 ts=4 sts=4: */ 3/** 4 * tests for relation_cleanup.lib.php 5 * 5 * 6 * @package PhpMyAdmin-test 7 */ 13 14require_once 'libraries/database_interface.inc.php'; 15 15 16require_once 'libraries/relation.lib.php'; 17require_once 'libraries/relation_cleanup.lib.php'; 23 * 24 * this class is for testing relation_cleanup.lib.php functions 25 *Profiler.php https://gitlab.com/luisrepo/ClienteWS | PHP | 471 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Profiler.php 23775 2011-03-01 17:25:24Z ralph $ 21 */ 81 /** 82 * Array of Zend_Db_Profiler_Query objects. 83 * 83 * 84 * @var array 85 */ 85 */ 86 protected $_queryProfiles = array(); 87 99 * is less than this value in seconds will be unset from 100 * the self::$_queryProfiles array. 101 *Autoload.php https://bitbucket.org/daveschwan/ronin-group.git | PHP | 248 lines
78 'phpunit_extensions_grouptestsuite' => '/Extensions/GroupTestSuite.php', 79 'phpunit_extensions_phpttestcase' => '/Extensions/PhptTestCase.php', 80 'phpunit_extensions_phpttestcase_logger' => '/Extensions/PhptTestCase/Logger.php', 87 'phpunit_framework_comparator' => '/Framework/Comparator.php', 88 'phpunit_framework_comparator_array' => '/Framework/Comparator/Array.php', 89 'phpunit_framework_comparator_domdocument' => '/Framework/Comparator/DOMDocument.php', 102 'phpunit_framework_constraint_and' => '/Framework/Constraint/And.php', 103 'phpunit_framework_constraint_arrayhaskey' => '/Framework/Constraint/ArrayHasKey.php', 104 'phpunit_framework_constraint_attribute' => '/Framework/Constraint/Attribute.php', 183 'phpunit_util_log_tap' => '/Util/Log/TAP.php', 184 'phpunit_util_php' => '/Util/PHP.php', 185 'phpunit_util_php_default' => '/Util/PHP/Default.php', 185 'phpunit_util_php_default' => '/Util/PHP/Default.php', 186 'phpunit_util_php_windows' => '/Util/PHP/Windows.php', 187 'phpunit_util_printer' => '/Util/Printer.php',shell.test.php https://gitlab.com/hakimkal/evricaevents | PHP | 501 lines
8 * 9 * CakePHP : Rapid Development Framework (http://cakephp.org) 10 * Copyright 2006-2010, Cake Software Foundation, Inc. 15 * @copyright Copyright 2006-2010, Cake Software Foundation, Inc. 16 * @link http://cakephp.org CakePHP Project 17 * @package cake 186 $this->Shell->Dispatch->setReturnValueAt(0, 'getInput', 'n'); 187 $this->Shell->Dispatch->expectAt(0, 'getInput', array('Just a test?', array('y', 'n'), 'n')); 188 $result = $this->Shell->in('Just a test?', array('y', 'n'), 'n'); 191 $this->Shell->Dispatch->setReturnValueAt(1, 'getInput', 'Y'); 192 $this->Shell->Dispatch->expectAt(1, 'getInput', array('Just a test?', array('y', 'n'), 'n')); 193 $result = $this->Shell->in('Just a test?', array('y', 'n'), 'n'); 247 $this->Shell->Dispatch->expectAt(1, 'stderr', array("Just\na\ntest\n")); 248 $this->Shell->err(array('Just', 'a', 'test')); 249local.php https://gitlab.com/najomie/fit-hippie | PHP | 818 lines
1<?php 2 9 // vars 10 var $groups = array(), 11 $fields = array(), 11 $fields = array(), 12 $parents = array(); 13 34 // actions 35 add_action('acf/delete_field', array($this, 'acf_delete_field'), 20, 1); 36 38 // filters 39 add_filter('acf/get_field_groups', array($this, 'acf_get_field_groups'), 20, 1); 40 59 // vars 60 $this->groups = array(); 61 $this->fields = array();_edit_form.php https://github.com/cidesa/roraima-comunal.git | PHP | 296 lines
84 85<?php $value = object_input_tag($casalalm, 'getNompro', array ( 86 'size' => 55, 100 101 <?php $value = object_input_tag($casalalm, 'getDessal', array ( 102 'size' => 106, 154 <?php if ($sf_request->hasError('casalalm{codcen}')): ?> 155 <?php echo form_error('casalalm{codcen}', array('class' => 'form-error-msg')) ?> 156 <?php endif; ?> 186 187 <?php $value = object_textarea_tag($casalalm, 'getObserv', array ( 188 'control_name' => 'casalalm[observ]', 289 <li class="float-left"><?php if ($casalalm->getId() && $oculeli!="S"): ?> 290<?php echo button_to(__('delete'), 'almsalalm/delete?id='.$casalalm->getId(), array ( 291 'post' => true,default.php https://github.com/iikozen/minima.git | PHP | 185 lines
25?> 26<form action="<?php echo JRoute::_('index.php?option=com_categories&view=categories');?>" method="post" name="adminForm"> 27 30 <label class="filter-search-lbl" for="filter_search"><?php echo JText::_('JSEARCH_FILTER_LABEL'); ?></label> 31 <input type="text" name="filter_search" id="filter_search" value="<?php echo $this->state->get('filter.search'); ?>" title="<?php echo JText::_('COM_CATEGORIES_ITEMS_SEARCH_FILTER'); ?>" /> 32 <button type="submit"><?php echo JText::_('JSEARCH_FILTER_SUBMIT'); ?></button> 53 </fieldset> 54 <?php if( $this->pagination->total > 0 ): ?><div id="pagination-top"><?php echo $this->pagination->getListFooter(); ?></div><?php endif; ?> 55 <div class="clr"> </div> 135 <?php endif; ?> 136 <a class="table-title" href="<?php echo JRoute::_('index.php?option=com_categories&task=category.edit&cid[]='.$item->id.'&extension='.$extension);?>"> 137 <?php echo $this->escape($item->title); ?></a> 174 </table> 175 <?php if( $this->pagination->total > 0 ): ?><div id="pagination-bottom"><?php echo $this->pagination->getListFooter(); ?></div><?php endif; ?> 176 <div>js.php https://gitlab.com/michield/dokuwiki | PHP | 378 lines
1<?php 2/** 12if(!defined('DOKU_DISABLE_GZIP_OUTPUT')) define('DOKU_DISABLE_GZIP_OUTPUT',1); // we gzip ourself here 13require_once(DOKU_INC.'inc/init.php'); 14 40 41 // array of core files 42 $files = array( 72 // add possible plugin scripts and userscript 73 $files = array_merge($files,js_pluginscripts()); 74 if(isset($config_cascade['userscript']['default'])){ 77 78 $cache_files = array_merge($files, getConfigFiles('main')); 79 $cache_files[] = __FILE__; 82 // This may exit if a cache can be used 83 $cache_ok = $cache->useCache(array('files' => $cache_files)); 84 http_cached($cache->cache, $cache_ok);App.php https://gitlab.com/sejator/posci4 | PHP | 448 lines
1<?php 2 32 * 33 * Typically this will be your index.php file, unless you've renamed it to 34 * something else. If you are using mod_rewrite to remove the page set this 38 */ 39 public $indexPage = 'index.php'; 40 92 * 93 * If $negotiateLocale is true, this array lists the locales supported 94 * by the application in descending order of priority. If no match is 120 * 121 * @see http://php.net/htmlspecialchars for a list of supported charsets. 122 * 319 * 320 * You can use both an array or a comma-separated list of proxy addresses, 321 * as well as specifying whole subnets. Here are a few examples:Spider.php https://gitlab.com/lalbert/daric | PHP | 395 lines
1<?php 2 23 /** 24 * @var array List of uri spided 25 */ 43 /** 44 * @var array 45 */ 115 $links = $this->linkExtractor->extract($this->content); 116 if (!\is_array($links)) { 117 throw new \InvalidArgumentException('linkExtractor must return an array.'); 137 138 if (!\in_array($link, $this->links)) { 139 \array_push($this->links, $link); 177 * 178 * @see http://docs.guzzlephp.org/en/latest/request-options.html 179 *rules.php https://github.com/cholalabs/CholaApps2.0.git | PHP | 291 lines
1<?php 2/** 2/** 3 * @version $Id: rules.php 21007 2011-03-22 13:23:21Z infograf768 $ 4 * @package Chola.Framework 53 if ($el->getName() == 'action') { 54 $actions[] = (object) array( 55 'name' => (string) $el['name'], 97 // Prepare output 98 $html = array(); 99 $html[] = '<div id="permissions-sliders" class="pane-sliders">'; 270 * 271 * @return array 272 * @since 1.6cake_migration.php https://github.com/l4ndo/lunchtime.git | PHP | 400 lines
153 function run($direction) { 154 if (!in_array($direction, array('up', 'down'))) { 155 trigger_error(sprintf(__d('migrations', 'Migration direction (%s) is not one of valid directions.', true), $direction), E_USER_NOTICE); 289 $sql = $this->db->alterSchema(array( 290 $table => array('drop' => array($field => array())) 291 )); 297 $sql = $this->db->alterSchema(array( 298 $table => array('change' => array($field => array_merge($tableFields[$field], $col))) 299 )); 305 $sql = $this->db->alterSchema(array( 306 $table => array('change' => array($field => array_merge($tableFields[$field], array('name' => $col)))) 307 )); 327 $sql = $this->db->alterSchema(array( 328 $table => array($type => array('indexes' => array($key => $index))) 329 ));Store.php https://gitlab.com/ealexis.t/trends | PHP | 707 lines
109 110 foreach (array_merge($this->bags, [$this->metaBag]) as $bag) { 111 $this->initializeLocalBag($bag); 357 /** 358 * Get the requested item from the flashed input array. 359 * 394 395 foreach ($key as $arrayKey => $arrayValue) { 396 $this->set($arrayKey, $arrayValue); 410 411 $array[] = $value; 412 492 { 493 $values = array_unique(array_merge($this->get('flash.new', []), $keys)); 494Font.php https://gitlab.com/adamlwalker/generatedata | PHP | 640 lines
322 if ($this->_isSupervisor) { 323 $styleArray = $this->getStyleArray(array('name' => $pValue)); 324 $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray); 353 if ($this->_isSupervisor) { 354 $styleArray = $this->getStyleArray(array('size' => $pValue)); 355 $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray); 478 if ($this->_isSupervisor) { 479 $styleArray = $this->getStyleArray(array('subScript' => $pValue)); 480 $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray); 566 if ($this->_isSupervisor) { 567 $styleArray = $this->getStyleArray(array('strike' => $pValue)); 568 $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray); 595 if ($this->_isSupervisor) { 596 $styleArray = $this->getColor()->getStyleArray(array('argb' => $color->getARGB())); 597 $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray);canonical.php https://gitlab.com/Gashler/sg | PHP | 237 lines
1<?php 2/** 17 function init() { 18 add_filter('su_get_setting-canonical-canonical_url_scheme', array(&$this, 'filter_canonical_url_scheme')); 19 26 //...and add our custom canonical tags. 27 add_action('su_head', array(&$this, 'link_rel_canonical_tag')); 28 } 30 if ($this->get_setting('http_link_rel_canonical')) 31 add_action('template_redirect', array(&$this, 'http_link_rel_canonical'), 11, 0); 32 34 if ($this->get_setting('remove_nonexistent_pagination')) 35 add_action('template_redirect', array(&$this, 'remove_nonexistent_pagination'), 11); 36 } 39 $this->child_admin_form_start(); 40 $this->checkboxes(array( 41 'link_rel_canonical' => __('Generate <code><link rel="canonical" /></code> meta tags', 'seo-ultimate')app.php https://gitlab.com/Bob_Humphrey/unisex-names | PHP | 202 lines
1<?php 2 36 | Here you may specify the default timezone for your application, which 37 | will be used by the PHP date and date-time functions. We have gone 38 | ahead and set this to a sensible default for you out of the box. 90 | Here you may configure the log settings for your application. Out of 91 | the box, Laravel uses the Monolog PHP logging library. This gives 92 | you a variety of powerful log handlers / formatters to utilize. 106 | request to your application. Feel free to add your own services to 107 | this array to grant expanded functionality to your applications. 108 | 157 | 158 | This array of class aliases will be registered when this application 159 | is started. However, feel free to register as many as you wish asserviceSummary.php https://gitlab.com/florianocomercial/centreon | PHP | 193 lines
1<?php 2/* 40 41 include("./include/common/autoNumLimit.php"); 42 57 58 $tab_class = array("0" => "list_one", "1" => "list_two"); 59 $rows = 10; 60 61 include_once("./include/monitoring/status/Common/default_poller.php"); 62 include_once("./include/monitoring/status/Common/default_hostgroups.php"); 62 include_once("./include/monitoring/status/Common/default_hostgroups.php"); 63 include_once($svc_path."/serviceSummaryJS.php"); 64 86 $tpl->assign("order", strtolower($order)); 87 $tab_order = array("sort_asc" => "sort_desc", "sort_desc" => "sort_asc"); 88 $tpl->assign("tab_order", $tab_order);MemoryFileSystem.js https://gitlab.com/limorelv/trelloApp | JavaScript | 315 lines
1/* 2 MIT License http://www.opensource.org/licenses/mit-license.php 3 Author Tobias Koppers @sokra 38 39function pathToArray(path) { 40 path = normalize(path); 60MemoryFileSystem.prototype.meta = function(_path) { 61 var path = pathToArray(_path); 62 var current = this.data; 102MemoryFileSystem.prototype.readFileSync = function(_path, encoding) { 103 var path = pathToArray(_path); 104 var current = this.data; 121 if(_path === "/") return Object.keys(this.data).filter(Boolean); 122 var path = pathToArray(_path); 123 var current = this.data;Str.php https://gitlab.com/kimting254/wbms | PHP | 392 lines
1<?php namespace Illuminate\Support; 2 13 * 14 * @var array 15 */ 20 * 21 * @var array 22 */ 27 * 28 * @var array 29 */ 62 * @param string $haystack 63 * @param string|array $needles 64 * @return bool 67 { 68 foreach ((array) $needles as $needle) 69 {HasManyThrough.php https://gitlab.com/kimting254/wbms | PHP | 340 lines
1<?php namespace Illuminate\Database\Eloquent\Relations; 2 113 { 114 return in_array('Illuminate\Database\Eloquent\SoftDeletes', class_uses_recursive(get_class($this->parent))); 115 } 119 * 120 * @param array $models 121 * @return void 122 */ 123 public function addEagerConstraints(array $models) 124 { 132 * 133 * @param array $models 134 * @param string $relation 134 * @param string $relation 135 * @return array 136 */Email.php https://gitlab.com/LisovyiEvhenii/ismextensions | PHP | 301 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 */ 64 * 65 * @var array 66 */ 66 */ 67 protected $_priceProducts = array(); 68 71 * 72 * @var array 73 */