100+ results for 'php implode'

Not the results you expected?

InputDefinition.php (https://gitlab.com/puntodos/ean-landings) PHP · 455 lines

1 <?php

2

3 /*

181 public function getArgumentCount()

182 {

183 return $this->hasAnArrayArgument ? PHP_INT_MAX : count($this->arguments);

184 }

185

408 }

409

410 return implode(' ', $elements);

411 }

412

customer.php (https://gitlab.com/firstrate/firstrate) PHP · 392 lines

252 if ($implode) {

253 $sql .= " WHERE " . implode(" AND ", $implode);

254 }

255

310 if ($implode) {

311 $sql .= " WHERE " . implode(" AND ", $implode);

312 }

313

340 if ($implode) {

341 $sql .= " WHERE " . implode(" AND ", $implode);

342 }

343

384 if ($implode) {

385 $sql .= " WHERE " . implode(" AND ", $implode);

386 }

387

Mapper.php (https://gitlab.com/AlexandrSy/magento.xxx) PHP · 407 lines

1 <?php

2 /**

3 * Copyright © 2016 Magento. All rights reserved.

11

12 /**

13 * @SuppressWarnings(PHPMD.CouplingBetweenObjects)

14 */

15 class Mapper

106 * @throws \InvalidArgumentException

107 * @throws StateException

108 * @SuppressWarnings(PHPMD.CyclomaticComplexity)

109 */

110 private function mapQuery($queryName)

295 {

296 $allElements = array_keys($elements);

297 $notUsedElements = implode(', ', array_diff($allElements, $mappedElements));

298 if (!empty($notUsedElements)) {

299 throw new StateException(new Phrase($errorMessage, [$notUsedElements]));

Mapper.php (https://gitlab.com/daigiangaitu91/magento) PHP · 407 lines

1 <?php

2 /**

3 * Copyright © 2015 Magento. All rights reserved.

11

12 /**

13 * @SuppressWarnings(PHPMD.CouplingBetweenObjects)

14 */

15 class Mapper

106 * @throws \InvalidArgumentException

107 * @throws StateException

108 * @SuppressWarnings(PHPMD.CyclomaticComplexity)

109 */

110 private function mapQuery($queryName)

295 {

296 $allElements = array_keys($elements);

297 $notUsedElements = implode(', ', array_diff($allElements, $mappedElements));

298 if (!empty($notUsedElements)) {

299 throw new StateException(new Phrase($errorMessage, [$notUsedElements]));

table.php (https://bitbucket.org/Maron1/taqman.git) PHP · 462 lines

1 <?php namespace Laravel\Database\Schema;

2

3 use Laravel\Fluent;

159 $name = str_replace(array('-', '.'), '_', $this->name);

160

161 $name = $name.'_'.implode('_', $columns).'_'.$type;

162 }

163

Validator.php (https://github.com/markn86/moodle.git) PHP · 248 lines

1 <?php

2

3 /**

48 $this->interchange = $interchange;

49 $this->aliases = array();

50 // PHP is a bit lax with integer <=> string conversions in

51 // arrays, so we don't use the identical !== comparison

52 foreach ($interchange->directives as $i => $directive) {

242 protected function getFormattedContext()

243 {

244 return implode(' in ', array_reverse($this->context));

245 }

246 }

MapDB.php (https://github.com/narenv/Kurogo-Mobile-Web.git) PHP · 362 lines

1 <?php

2

3 includePackage('db');

179 }

180 if ($orClauses) {

181 $sql .= ' AND ('.implode(' OR ', $orClauses).')';

182 }

183

em-tickets.php (https://bitbucket.org/antonyravel/cape-resorts.git) PHP · 238 lines

1 <?php

2 /**

3 * Deals with the ticket info for an event

111 //check that tickets don't have bookings

112 if(count($ticket_ids) > 0){

113 $bookings = $wpdb->get_var("SELECT COUNT(*) FROM ". EM_TICKETS_BOOKINGS_TABLE." WHERE ticket_id IN (".implode(',',$ticket_ids).")");

114 if( $bookings > 0 ){

115 $result = false;

116 $this->add_error(__('You cannot delete tickets if there are any bookings associated with them. Please delete these bookings first.','dbem'));

117 }else{

118 $result = $wpdb->query("DELETE FROM ".EM_TICKETS_TABLE." WHERE event_id IN (".implode(',',$ticket_ids).")");

119 }

120 }

Post.php (https://github.com/kervin/kyzstudio.git) PHP · 292 lines

1 <?php

2

3 /**

19 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)

20 * @license http://framework.zend.com/license/new-bsd New BSD License

21 * @version $Id: Post.php 20096 2010-01-06 02:05:09Z bkarwin $

22 */

23

26 * @see Zend_Date

27 */

28 #require_once 'Zend/Date.php';

29

30 /**

31 * @see Zend_Service_Delicious_SimplePost

32 */

33 #require_once 'Zend/Service/Delicious/SimplePost.php';

34

35

LanguageTyv.php (https://github.com/ChuguluGames/mediawiki-svn.git) PHP · 226 lines

1 <?php

2

3 /** Tyvan localization (Тыва дыл)

66 if ( in_array( $wordEnding, $unvoicedPhonemes ) ) {

67 if ( in_array( $wordLastVowel, $roundFrontVowels ) ) {

68 $word = implode( "", $ar[0] ) . "түң";

69 } elseif ( in_array( $wordLastVowel, $unroundFrontVowels ) ) {

70 $word = implode( "", $ar[0] ) . "тиң";

71 } elseif ( in_array( $wordLastVowel, $roundBackVowels ) ) {

72 $word = implode( "", $ar[0] ) . "туң";

73 } elseif ( in_array( $wordLastVowel, $unroundBackVowels ) ) {

74 $word = implode( "", $ar[0] ) . "тың";

77 } elseif ( $wordEnding === "л" || $wordEnding === "l" ) {

78 if ( in_array( $wordLastVowel, $roundFrontVowels ) ) {

79 $word = implode( "", $ar[0] ) . "дүң";

80 } elseif ( in_array( $wordLastVowel, $unroundFrontVowels ) ) {

81 $word = implode( "", $ar[0] ) . "диң";

PhpClass.php (https://github.com/Shreef/zf2.git) PHP · 566 lines

89 *

90 * @param \Zend\Reflection\ReflectionClass $reflectionClass

91 * @return \Zend\CodeGenerator\Php\PhpClass

92 */

93 public static function fromReflection(\Zend\Reflection\ReflectionClass $reflectionClass)

147 * setPhpFile()

148 *

149 * @param Zend\CodeGenerator\Php\PhpFile $phpFile

150 */

151 public function setPhpFile(PhpFile $phpFile)

333 * @param array|\Zend\CodeGenerator\Php\PhpProperty $property

334 * @return \Zend\CodeGenerator\Php\PhpClass

335 */

336 public function setProperty($property)

562 $this->_properties = new PhpMember\MemberContainer(PhpMember\MemberContainer::TYPE_PROPERTY);

563 $this->_methods = new PhpMember\MemberContainer(PhpMember\MemberContainer::TYPE_METHOD);

564 }

565

Post.php (https://github.com/massiveart/ZF-ZOOLU.git) PHP · 292 lines

1 <?php

2

3 /**

19 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)

20 * @license http://framework.zend.com/license/new-bsd New BSD License

21 * @version $Id: Post.php 20096 2010-01-06 02:05:09Z bkarwin $

22 */

23

26 * @see Zend_Date

27 */

28 require_once 'Zend/Date.php';

29

30 /**

31 * @see Zend_Service_Delicious_SimplePost

32 */

33 require_once 'Zend/Service/Delicious/SimplePost.php';

34

35

Post.php (https://bitbucket.org/Dal-Papa/is-340-publish-base.git) PHP · 292 lines

1 <?php

2

3 /**

19 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)

20 * @license http://framework.zend.com/license/new-bsd New BSD License

21 * @version $Id: Post.php 24593 2012-01-05 20:35:02Z matthew $

22 */

23

26 * @see Zend_Date

27 */

28 require_once 'Zend/Date.php';

29

30 /**

31 * @see Zend_Service_Delicious_SimplePost

32 */

33 require_once 'Zend/Service/Delicious/SimplePost.php';

34

35

Post.php (https://github.com/open-source/Puvoo.git) PHP · 292 lines

1 <?php

2

3 /**

19 * @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)

20 * @license http://framework.zend.com/license/new-bsd New BSD License

21 * @version $Id: Post.php 23775 2011-03-01 17:25:24Z ralph $

22 */

23

26 * @see Zend_Date

27 */

28 require_once 'Zend/Date.php';

29

30 /**

31 * @see Zend_Service_Delicious_SimplePost

32 */

33 require_once 'Zend/Service/Delicious/SimplePost.php';

34

35

TbButton.php (https://bitbucket.org/sonnylazuardi/konsol.git) PHP · 272 lines

1 <?php

2 /**

3 * TbButton class file.

4 * @author Christoffer Niska <ChristofferNiska@gmail.com>

5 * @copyright Copyright &copy; Christoffer Niska 2011-

6 * @license http://www.opensource.org/licenses/bsd-license.php New BSD License

7 * @package bootstrap.widgets

8 * @since 0.9.10

170 if (!empty($classes))

171 {

172 $classes = implode(' ', $classes);

173 if (isset($this->htmlOptions['class']))

174 $this->htmlOptions['class'] .= ' '.$classes;

180 {

181 if (strpos($this->icon, 'icon') === false)

182 $this->icon = 'icon-'.implode(' icon-', explode(' ', $this->icon));

183

184 $this->label = '<i class="'.$this->icon.'"></i> '.$this->label;

cubrid_forge.php (https://gitlab.com/RikaPM/manik) PHP · 289 lines

1 <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

2 /**

3 * CodeIgniter

4 *

5 * An open source application development framework for PHP 5.1.6 or newer

6 *

7 * @package CodeIgniter

73 {

74 // Numeric field names aren't allowed in databases, so if the key is

75 // numeric, we know it was assigned by PHP and the developer manually

76 // entered the field information, so we'll simply add it to the list

77 if (is_numeric($field))

101 case 'float':

102 case 'numeric':

103 $sql .= '('.implode(',', $attributes['CONSTRAINT']).')';

104 break;

105 case 'enum': // As of version 8.4.0 CUBRID does not support

sqlite.php (https://github.com/dextercowley/joomla-cms.git) PHP · 263 lines

1 <?php

2 /**

3 * @package Joomla.Platform

173 if ($separator)

174 {

175 return implode(' || ' . $this->quote($separator) . ' || ', $values);

176 }

177 else

178 {

179 return implode(' || ', $values);

180 }

181 }

Notifications.php (https://gitlab.com/yousafsyed/easternglamor) PHP · 269 lines

1 <?php

2 /**

3 * Copyright © 2016 Magento. All rights reserved.

221 $messageDetails .= '</strong><p>';

222 $messageDetails .= __('Store(s) affected: ');

223 $messageDetails .= implode(', ', $this->storesWithInvalidDisplaySettings);

224 $messageDetails .= '</p><p>';

225 $messageDetails .= __(

238 $messageDetails .= '</strong><p>';

239 $messageDetails .= __('Store(s) affected: ');

240 $messageDetails .= implode(', ', $this->storesWithInvalidDiscountSettings);

241 $messageDetails .= '</p><p>';

242 $messageDetails .= __(

ComponentSet.php (https://github.com/anathor/SilverStripeCantabileMusic.git) PHP · 307 lines

1 <?php

2 /**

3 * This is a special kind of DataObjectSet used to represent the items linked to in a 1-many or many-many

250 foreach($itemList as $item) $this->remove($item);

251 } else {

252 $itemCSV = implode(", ", $itemList);

253 $parentField = $this->ownerClass . 'ID';

254 $childField = ($this->childClass == $this->ownerClass) ? "ChildID" : ($this->childClass . 'ID');

Post.php (https://github.com/su2921iw/ma3.git) PHP · 292 lines

1 <?php

2

3 /**

19 * @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)

20 * @license http://framework.zend.com/license/new-bsd New BSD License

21 * @version $Id: Post.php 16211 2009-06-21 19:23:55Z thomas $

22 */

23

26 * @see Zend_Date

27 */

28 require_once 'Zend/Date.php';

29

30 /**

31 * @see Zend_Service_Delicious_SimplePost

32 */

33 require_once 'Zend/Service/Delicious/SimplePost.php';

34

35

Router.php (https://github.com/seloshow/Magento-Pruebas.git) PHP · 340 lines

1 <?php

2

3 class Fishpig_Wordpress_Helper_Router extends Fishpig_Wordpress_Helper_Abstract

88 }

89

90 return urldecode(implode('/', $pathInfo));

91 }

92

103 $pattern['day'] = '[0-3]{1}[0-9]{1}';

104

105 return preg_match("/^" . implode('\/', $pattern) . "$/", $uri)

106 || preg_match("/^" . $pattern['year'] . '\/' . $pattern['month'] . '$/', $uri);

107 }

286 }

287

288 return implode('', $chars);

289 }

290

Post.php (https://github.com/durand54/sitellite.git) PHP · 292 lines

1 <?php

2

3 /**

19 * @copyright Copyright (c) 2005-2007 Zend Technologies USA Inc. (http://www.zend.com)

20 * @license http://framework.zend.com/license/new-bsd New BSD License

21 * @version $Id: Post.php,v 1.1.1.1 2007/08/12 09:26:56 lux Exp $

22 */

23

26 * @see Zend_Date

27 */

28 require_once 'Zend/Date.php';

29

30 /**

31 * @see Zend_Service_Delicious_SimplePost

32 */

33 require_once 'Zend/Service/Delicious/SimplePost.php';

34

35

Writer.php (https://github.com/surebert/surebert-framework.git) PHP · 240 lines

1 <?php

2

3 /**

4 * Used to send plain text emails, HTML emails, or plain text and html emails

5 * with attachments both inline and not REQUIRES sb_Email.php and sb_Files

6 * (<-unless you specify the mime types on attachments manually)

7 *

43

44 /**

45 * The http host of the server sending the email, defaults to php_uname('n') if $_SERVER['HTTP_HOST'] is not set

46 * @var string

47 */

80

81 $this->http_host = (!empty($http_host)) ? $http_host :

82 (isset($_SERVER['HTTP_HOST']) ? $_SERVER['HTTP_HOST'] : php_uname('n'));

83 }

84

Post.php (https://github.com/gryzz/crystal_magento.git) PHP · 292 lines

1 <?php

2

3 /**

19 * @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)

20 * @license http://framework.zend.com/license/new-bsd New BSD License

21 * @version $Id: Post.php 16211 2009-06-21 19:23:55Z thomas $

22 */

23

26 * @see Zend_Date

27 */

28 #require_once 'Zend/Date.php';

29

30 /**

31 * @see Zend_Service_Delicious_SimplePost

32 */

33 #require_once 'Zend/Service/Delicious/SimplePost.php';

34

35

Gender.php (https://gitlab.com/shahriarnowshad/atomicfinal) PHP · 231 lines

1 <?php

2 namespace App\Bitm\SEIP129575\Gender;

3 use App\Bitm\SEIP129575\Message\Message;

36 <strong>Success!</strong> Data has been stored successfully.

37 </div>");

38 Utility::redirect('index.php');

39

40 }

43 <strong>Error!</strong> Data has been stored successfully.

44 </div>");

45 Utility::redirect('index.php');

46

47 }

73 <strong>Updated!</strong> Data has been updated successfully.

74 </div>");

75 Utility::redirect('index.php');

76

77 }

Post.php (https://gitlab.com/grayhamster/open-social-media-monitoring) PHP · 292 lines

1 <?php

2

3 /**

19 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)

20 * @license http://framework.zend.com/license/new-bsd New BSD License

21 * @version $Id: Post.php 24594 2012-01-05 21:27:01Z matthew $

22 */

23

26 * @see Zend_Date

27 */

28 require_once 'Zend/Date.php';

29

30 /**

31 * @see Zend_Service_Delicious_SimplePost

32 */

33 require_once 'Zend/Service/Delicious/SimplePost.php';

34

35

typography.php (https://github.com/livinglab/openlab.git) PHP · 216 lines

1 <?php

2 /**

3 * Typography block support flag.

167

168 if ( ! empty( $classes ) ) {

169 $attributes['class'] = implode( ' ', $classes );

170 }

171 if ( ! empty( $styles ) ) {

172 $attributes['style'] = implode( ' ', $styles );

173 }

174

PHUIListItemView.php (https://github.com/dannysu/phabricator.git) PHP · 334 lines

1 <?php

2

3 final class PHUIListItemView extends AphrontTagView {

209

210 return array(

211 'class' => implode(' ', $classes),

212 );

213 }

266 'span',

267 array(

268 'class' => implode(' ', $classes),

269 ),

270 array(

318 array(

319 'href' => $this->href,

320 'class' => implode(' ', $classes),

321 'meta' => $meta,

322 'sigil' => $sigil,

Statement.php (https://github.com/cgmartin/zf2.git) PHP · 311 lines

1 <?php

2 /**

3 * Zend Framework (http://framework.zend.com/)

244 }

245 throw new Exception\InvalidQueryException(

246 'Statement could not be executed (' . implode(' - ', $this->resource->errorInfo()) . ')',

247 null,

248 $e

dumper.php (https://github.com/cgajardo/repositorium.git) PHP · 360 lines

1 <?php

2 /**

3 * base include file for SimpleTest

4 * @package SimpleTest

5 * @subpackage UnitTester

6 * @version $Id: dumper.php 1723 2008-04-08 00:34:10Z lastcraft $

7 */

8 /**

245 if (! $this->_isMatchingKeys($first, $second, $identical)) {

246 return "as key list [" .

247 implode(", ", array_keys($first)) . "] does not match key list [" .

248 implode(", ", array_keys($second)) . "]";

ezflowpool.php (https://github.com/quochuy/ezflow.git) PHP · 207 lines

1 <?php

2 //

3 // ## BEGIN COPYRIGHT, LICENSE AND WARRANTY NOTICE ##

170 {

171 $db->query( "INSERT IGNORE INTO ezm_pool ( block_id, object_id, node_id, priority, ts_publication ) VALUES " .

172 implode( ',', $values ) );

173 }

174 }

Post.php (https://github.com/coder-int21h/noses.git) PHP · 292 lines

1 <?php

2

3 /**

19 * @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)

20 * @license http://framework.zend.com/license/new-bsd New BSD License

21 * @version $Id: Post.php 8064 2008-02-16 10:58:39Z thomas $

22 */

23

26 * @see Zend_Date

27 */

28 require_once 'Zend/Date.php';

29

30 /**

31 * @see Zend_Service_Delicious_SimplePost

32 */

33 require_once 'Zend/Service/Delicious/SimplePost.php';

34

35

Column.php (https://gitlab.com/devtoannh/cafe) PHP · 243 lines

1 <?php

2 /**

3 * Zend Framework

17 * @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)

18 * @license http://framework.zend.com/license/new-bsd New BSD License

19 * @version $Id: Column.php 23775 2011-03-01 17:25:24Z ralph $

20 */

21

23 * @see Zend_Text_Table

24 */

25 require_once 'Zend/Text/Table.php';

26

27 /**

28 * @see Zend_Text_MultiByte

29 */

30 require_once 'Zend/Text/MultiByte.php';

31

32 /**

sfDoctrineFormGeneratedTemplate.php (https://github.com/h16bit/diem.git) PHP · 190 lines

18 <?php foreach ($this->getColumns() as $column): ?>

19 '<?php echo $column->getFieldName() ?>'<?php echo str_repeat(' ', $this->getColumnNameMaxLength() - strlen($column->getFieldName())) ?> => new <?php echo $this->getWidgetClassForColumn($column) ?>(<?php echo $this->getWidgetOptionsForColumn($column) ?>),

20 <?php endforeach; ?>

29 <?php foreach ($this->getColumns() as $column): ?>

30 '<?php echo $column->getFieldName() ?>'<?php echo str_repeat(' ', $this->getColumnNameMaxLength() - strlen($column->getFieldName())) ?> => new <?php echo $this->getValidatorClassForColumn($column) ?>(<?php echo $this->getValidatorOptionsForColumn($column) ?>),

31 <?php endforeach; ?>

50 <?php foreach ($uniqueColumns as $uniqueColumn): ?>

51 new sfValidatorDoctrineUnique(array('model' => '<?php echo $this->table->getOption('name') ?>', 'column' => array('<?php echo implode("', '", $uniqueColumn) ?>'))),

52 <?php endforeach; ?>

54 <?php else: ?>

55 new sfValidatorDoctrineUnique(array('model' => '<?php echo $this->table->getOption('name') ?>', 'column' => array('<?php echo implode("', '", $uniqueColumns[0]) ?>')))

56 <?php endif; ?>

90 protected function createMediaFormFor<?php echo dmString::camelize($mediaRelation['local']); ?>()

91 {

92 return DmMediaForRecordForm::factory($this->object, '<?php echo $mediaRelation['local'] ?>', '<?php echo $mediaRelation['alias'] ?>', $this->validatorSchema['<?php echo $mediaRelation['local']; ?>']->getOption('required'));

93 }

94 <?php endforeach; ?>

authentication.php (https://github.com/nigeldaley/moodle.git) PHP · 238 lines

1 <?php

2 /**

3 * Base include file for SimpleTest

9 * include http class

10 */

11 require_once(dirname(__FILE__) . '/http.php');

12

13 /**

58 for ($i = 0; $i < min(count($first), count($second)); $i++) {

59 if ($first[$i] != $second[$i]) {

60 return implode('/', array_slice($first, 0, $i)) . '/';

61 }

62 }

63 return implode('/', $first) . '/';

64 }

65

menus.php (https://gitlab.com/Alzakath/icagenda) PHP · 286 lines

1 <?php

2 /**

3 *------------------------------------------------------------------------------

44 $query->select('m.title, m.published, m.id, m.params, m.language')

45 ->from('`#__menu` AS m')

46 ->where( "(m.link = 'index.php?option=com_icagenda&view=list') AND (m.published = 1)" );

47

48 if (JLanguageMultilang::isEnabled())

72 if (is_array($mcatid))

73 {

74 $mcatid = implode(',', $mcatid);

75 }

76

100 $query->select('m.title, m.published, m.id, m.params, m.language')

101 ->from('`#__menu` AS m')

102 ->where( "(m.link = 'index.php?option=com_icagenda&view=list') AND (m.published = 1)" );

103

104 if (JLanguageMultilang::isEnabled())

UniqueValidator.php (https://gitlab.com/arvidthd/docolist) PHP · 180 lines

1 <?php

2 /**

3 * @link http://www.yiiframework.com/

20 * The following are examples of validation rules using this validator:

21 *

22 * ```php

23 * // a1 needs to be unique

24 * ['a1', 'unique']

175 $this->addError($model, $attribute, $this->comboNotUnique, [

176 'attributes' => Inflector::sentence($attributeCombo),

177 'values' => implode('-', $valueCombo)

178 ]);

179 }

API.php (https://github.com/michaelmcandrew/th.git) PHP · 187 lines

1 <?php

2

3 /*

72 }

73

74 require_once 'CRM/ACL/BAO/ACL.php';

75 return CRM_ACL_BAO_ACL::check( $str, $contactID );

76 }

123 }

124

125 require_once 'CRM/ACL/BAO/ACL.php';

126 return implode( ' AND ',

154 }

155

156 require_once 'CRM/ACL/BAO/ACL.php';

157 return CRM_ACL_BAO_ACL::group( $type, $contactID, $tableName, $allGroups, $includedGroups );

158 }

Article.php (https://gitlab.com/gothcon/cthulhu) PHP · 293 lines

1 <?php

2 require_once(dirname(__FILE__) . DIRECTORY_SEPARATOR . "ReadWriteEntity.php");

165 $value = str_pad($value,6,"0");

166 $value = str_split($value,2);

167 return implode(":",$value);

168 }

169

menutype.php (https://github.com/MaBelleEcole/Main.git) PHP · 280 lines

1 <?php

2 /**

3 * @version $Id: menutype.php 14401 2010-01-26 14:10:00Z louis $

5 * @subpackage Menus

6 * @copyright Copyright (C) 2005 - 2010 Open Source Matters. All rights reserved.

7 * @license GNU/GPL, see LICENSE.php

8 * Joomla! is free software. This version may have been modified pursuant to the

9 * GNU General Public License, and as distributed it includes or is derivative

10 * of works licensed under the GNU General Public License or other free or open

11 * source software licenses. See COPYRIGHT.php for copyright notices and

12 * details.

13 */

243 if (count( $modulesIds )) {

244 $query = 'DELETE FROM #__modules_menu' .

245 ' WHERE menuid = '.implode( ' OR moduleid = ', $modulesIds );

246 $db->setQuery( $query );

247 if (!$db->query()) {

Post.php (https://github.com/edmondscommerce/XAMPP-Magento-Demo-Site.git) PHP · 292 lines

1 <?php

2

3 /**

19 * @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)

20 * @license http://framework.zend.com/license/new-bsd New BSD License

21 * @version $Id: Post.php 8064 2008-02-16 10:58:39Z thomas $

22 */

23

26 * @see Zend_Date

27 */

28 #require_once 'Zend/Date.php';

29

30 /**

31 * @see Zend_Service_Delicious_SimplePost

32 */

33 #require_once 'Zend/Service/Delicious/SimplePost.php';

34

35

class.ls.sliders.php (https://gitlab.com/haque.mdmanzurul/soundkreationsfinal) PHP · 397 lines

1 <?php

2

3 class LS_Sliders {

102 $exclude[] = "flag_deleted = '0'"; }

103

104 $args['exclude'] = implode(' AND ', $exclude);

105 }

106

331 $tmp[] = 'id = \''.intval($id).'\'';

332 }

333 $ids = implode(' OR ', $tmp);

334 unset($tmp);

335 }

Column.php (https://github.com/praveensingh85/MyEventDashboard1.git) PHP · 243 lines

1 <?php

2 /**

3 * Zend Framework

17 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)

18 * @license http://framework.zend.com/license/new-bsd New BSD License

19 * @version $Id: Column.php 20096 2010-01-06 02:05:09Z bkarwin $

20 */

21

23 * @see Zend_Text_Table

24 */

25 require_once 'Zend/Text/Table.php';

26

27 /**

28 * @see Zend_Text_MultiByte

29 */

30 require_once 'Zend/Text/MultiByte.php';

31

32 /**

FileStore.php (https://gitlab.com/jjpa2018/dashboard) PHP · 351 lines

1 <?php

2

3 namespace Illuminate\Cache;

304 $parts = array_slice(str_split($hash = sha1($key), 2), 0, 2);

305

306 return $this->directory.'/'.implode('/', $parts).'/'.$hash;

307 }

308

authentication.php (https://bitbucket.org/murtuza88/carolina-home-stone.git) PHP · 237 lines

1 <?php

2 /**

3 * Base include file for SimpleTest

4 * @package SimpleTest

5 * @subpackage WebTester

6 * @version $Id: authentication.php 2011 2011-04-29 08:22:48Z pp11 $

7 */

8 /**

9 * include http class

10 */

11 require_once(dirname(__FILE__) . '/http.php');

12

13 /**

58 for ($i = 0; $i < min(count($first), count($second)); $i++) {

59 if ($first[$i] != $second[$i]) {

60 return implode('/', array_slice($first, 0, $i)) . '/';

61 }

62 }

dumper.php (https://github.com/greevex/mzz-framework-blank-application.git) PHP · 360 lines

1 <?php

2 /**

3 * base include file for SimpleTest

4 * @package SimpleTest

5 * @subpackage UnitTester

6 * @version $Id: dumper.php 2460 2008-04-08 21:03:22Z mz $

7 */

8 /**

245 if (! $this->_isMatchingKeys($first, $second, $identical)) {

246 return "as key list [" .

247 implode(", ", array_keys($first)) . "] does not match key list [" .

248 implode(", ", array_keys($second)) . "]";

function.html_checkboxes.php (https://github.com/lewellyn/TrellisDesk.git) PHP · 216 lines

1 <?php

2 /**

3 * Smarty plugin

10 * Smarty {html_checkboxes} function plugin

11 *

12 * File: function.html_checkboxes.php<br>

13 * Type: function<br>

14 * Name: html_checkboxes<br>

33 * </pre>

34 *

35 * @link http://www.smarty.net/manual/en/language.function.html.checkboxes.php {html_checkboxes}

36 * (Smarty online manual)

37 * @author Christopher Kvarme <christopher.kvarme@flashjab.com>

45 function smarty_function_html_checkboxes($params, $template)

46 {

47 require_once(SMARTY_PLUGINS_DIR . 'shared.escape_special_chars.php');

48

49 $name = 'checkbox';

Xml.php (https://github.com/Funsational/DoctrineExtensions.git) PHP · 195 lines

1 <?php

2

3 namespace Gedmo\Tree\Mapping\Driver;

17 * @subpackage Xml

18 * @link http://www.gediminasm.org

19 * @license MIT License (http://www.opensource.org/licenses/mit-license.php)

20 */

21 class Xml extends BaseXml

168 }

169 if ($missingFields) {

170 throw new InvalidMappingException("Missing properties: " . implode(', ', $missingFields) . " in class - {$meta->name}");

171 }

172 }

190 }

191 if ($missingFields) {

192 throw new InvalidMappingException("Missing properties: " . implode(', ', $missingFields) . " in class - {$meta->name}");

193 }

194 }

Api.php (https://github.com/seloshow/Magento-Pruebas.git) PHP · 299 lines

1 <?php

2 /**

3 * Magento

8 * that is bundled with this package in the file LICENSE.txt.

9 * It is also available through the world-wide-web at this URL:

10 * http://opensource.org/licenses/osl-3.0.php

11 * If you did not receive a copy of the license and are unable to

12 * obtain it through the world-wide-web, please send an email

22 * @package Mage_Checkout

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 */

26

91

92 if (!empty($errors)) {

93 $this->_fault("add_product_fault", implode(PHP_EOL, $errors));

94 }

95

ActiveRow.php (https://bitbucket.org/iiic/iszp.git) PHP · 370 lines

1 <?php

2

3 /**

132 public function getSignature($need = TRUE)

133 {

134 return implode('|', (array) $this->getPrimary($need));

135 }

136

Api.php (https://bitbucket.org/acidel/buykoala.git) PHP · 237 lines

1 <?php

2 /**

3 * Magento

8 * that is bundled with this package in the file LICENSE.txt.

9 * It is also available through the world-wide-web at this URL:

10 * http://opensource.org/licenses/osl-3.0.php

11 * If you did not receive a copy of the license and are unable to

12 * obtain it through the world-wide-web, please send an email

22 * @package Mage_Customer

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 */

26

122

123 if (is_array($valid)) {

124 $this->_fault('data_invalid', implode("\n", $valid));

125 }

126

dumper.php (https://github.com/kugu/limb.git) PHP · 360 lines

1 <?php

2 /**

3 * base include file for SimpleTest

4 * @package SimpleTest

5 * @subpackage UnitTester

6 * @version $Id: dumper.php 7198 2008-11-01 11:57:17Z korchasa $

7 */

8 /**

245 if (! $this->_isMatchingKeys($first, $second, $identical)) {

246 return "as key list [" .

247 implode(", ", array_keys($first)) . "] does not match key list [" .

248 implode(", ", array_keys($second)) . "]";

PU_test_dcp_role.php (https://github.com/CircleCode/dynacase-core.git) PHP · 432 lines

1 <?php

2 /*

3 * @author Anakeen

13 */

14

15 require_once 'PU_testcase_dcp_commonfamily.php';

16

17 class TestRole extends TestCaseDcpCommonFamily

74 $this->assertTrue($u->isAffected() , "cannot find $login user");

75 $uRoleIds = $u->getRoles();

76 simpleQuery(self::$dbaccess, sprintf("select login from users where id in (%s)", implode(',', $uRoleIds)) , $uRoleLogins, true);

77

78 foreach ($expectedRoles as $roleLogin) {

CommentElement.php (https://github.com/mikesname/ehri-ica-atom.git) PHP · 246 lines

13 * @version CVS: $Id: CommentElement.php,v 1.14 2008/12/02 02:38:33 squiz Exp $

14 * @link http://pear.php.net/package/PHP_CodeSniffer

15 */

16

46 * @link http://pear.php.net/package/PHP_CodeSniffer

47 */

48 class PHP_CodeSniffer_CommentParser_CommentElement extends PHP_CodeSniffer_CommentParser_SingleElement

49 {

50

62 * up this

63 * element.

64 * @param PHP_CodeSniffer_File $phpcsFile The file

65 * that this

66 * element is

70 $previousElement,

71 $tokens,

72 PHP_CodeSniffer_File $phpcsFile

73 ) {

74 parent::__construct($previousElement, $tokens, 'comment', $phpcsFile);

model_jadwal.php (https://gitlab.com/imadd23/sijs) PHP · 243 lines

1 <?php

2 defined('BASEPATH') OR exit('No direct script access allowed');

3

29

30 public function getListData($options = []){

31 $where_like = empty($options['where_like']) ? '1 = 1' : '('.implode(' OR ', $options['where_like']).')';

32 $sql = $this->query()."

33 WHERE

41

42 public function getTotalData($options){

43 $where_like = empty($options['where_like']) ? '1 = 1' : '('.implode(' OR ', $options['where_like']).')';

44 $sql = $this->query()."

45 WHERE

eztranslationcache.php (https://bitbucket.org/ericsagnes/ezpublish-multisite.git) PHP · 213 lines

10

11 /*!

12 \class eZTranslationCache eztranslationcache.php

13 \brief Cache handling for translations.

14

134 $cacheFileName = md5( $cacheFileKey ) . '.php';

135

136 $php = new eZPHPCreator( eZTranslationCache::cacheDirectory(), $cacheFileName );

137 return $php->canRestore( $timestamp );

156 $cacheFileName = md5( $cacheFileKey ) . '.php';

157

158 $php = new eZPHPCreator( eZTranslationCache::cacheDirectory(), $cacheFileName );

159 $variables = $php->restore( array( 'info' => 'TranslationInfo',

190 eZDir::mkdir( eZTranslationCache::cacheDirectory(), false, true );

191 }

192 $php = new eZPHPCreator( eZTranslationCache::cacheDirectory(), $cacheFileName );

193 $php->addRawVariable( 'eZTranslationCacheCodeDate', self::CODE_DATE );

DifferentialChangesetOneUpRenderer.php (https://github.com/dannysu/phabricator.git) PHP · 275 lines

1 <?php

2

3 final class DifferentialChangesetOneUpRenderer

205

206 if ($out) {

207 return $this->wrapChangeInTable(phutil_implode_html('', $out));

208 }

209

Column.php (https://github.com/basdog22/Qool.git) PHP · 243 lines

1 <?php

2 /**

3 * Zend Framework

17 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)

18 * @license http://framework.zend.com/license/new-bsd New BSD License

19 * @version $Id: Column.php 24594 2012-01-05 21:27:01Z matthew $

20 */

21

23 * @see Zend_Text_Table

24 */

25 require_once 'Zend/Text/Table.php';

26

27 /**

28 * @see Zend_Text_MultiByte

29 */

30 require_once 'Zend/Text/MultiByte.php';

31

32 /**

yuiCompressTask.php (https://github.com/gbds/revolution.git) PHP · 255 lines

1 <?php

2 require_once 'phing/Task.php';

224

225 $lib = realpath($this->lib);

226 $args = implode(' ', $options);

227 $src = $fullPath . DIRECTORY_SEPARATOR . $file;

228 $command = "java -jar {$lib} -o {$outfile} {$args} {$src}";

NewReportForm.class.php (https://github.com/hoydaa/googlevolume.com.git) PHP · 205 lines

1 <?php

2

3 class NewReportForm extends ObjectForm

118 }

119

120 $defaults['query_texts'] = implode("\n", $query_texts);

121 $defaults['query_titles'] = implode("\n", $query_titles);

Url.php (https://github.com/ivebeenlinuxed/Boiler.git) PHP · 531 lines

1 <?php

2

3 namespace Guzzle\Http;

271 static $pathReplace = array(' ' => '%20', '?' => '%3F');

272 if (is_array($path)) {

273 $path = '/' . implode('/', $path);

274 }

275

301

302 // Combine the normalized parts and add the leading slash if needed

303 $this->path = ($this->path[0] == '/' ? '/' : '') . implode('/', $results);

304

305 // Add the trailing slash if necessary

schema.php (https://github.com/tmjnaid/hiphop-php.git) PHP · 342 lines

11 }

12

13 $net = isset($argv[2]) ? $argv[2] : -1; // 1: always phpnet; 0; auto; -1; no

14

15 ///////////////////////////////////////////////////////////////////////////////

18 <?php

19 /**

20 * Automatically generated by running "php schema.php $ext".

21 *

22 * You may modify the file, but re-running schema.php against this file will

264 $phpnet = phpnet_get_function_info($func['name'], $clsname);

265 if (!empty($phpnet['desc'])) $desc = ($phpnet['desc']);

266 }

267

269 $ret_desc = idx_string($func, 'ret_desc');

270 if ((empty($ret_desc) || $net == 1) && $net != -1) {

271 if (!empty($phpnet['ret'])) $ret_desc = $phpnet['ret'];

272 }

273 push_globals();

MailboxHeader.php (https://github.com/h-kanjisan/swiftmailer.git) PHP · 315 lines

1 <?php

2

3 /*

78 * Example:

79 * <code>

80 * <?php

81 * //Sets two mailboxes in the Header, one with a personal name

82 * $header->setNameAddresses(array(

102 * Example:

103 * <code>

104 * <?php

105 * $header = new Swift_Mime_Headers_MailboxHeader('From',

106 * array('chris@swiftmailer.org' => 'Chris Corbyn',

129 * Example:

130 * <code>

131 * <?php

132 * $header = new Swift_Mime_Headers_MailboxHeader('From',

133 * array('chris@swiftmailer.org' => 'Chris Corbyn',

admin.php (https://github.com/baltag/pyrocms.git) PHP · 306 lines

1 <?php if (!defined('BASEPATH')) exit('No direct script access allowed');

2

3 class Admin extends Admin_Controller

201 else

202 {

203 $this->session->set_flashdata( 'success', sprintf( lang('comments.delete_multi_success'), implode( ', #', $comments ) ) );

204 }

205 }

UriTemplate.php (https://gitlab.com/x33n/ampache) PHP · 254 lines

1 <?php

2

3 namespace Guzzle\Parser\UriTemplate;

184 $actuallyUseQueryString = false;

185 } elseif ($value['modifier'] == '*') {

186 $expanded = implode($joiner, $kvp);

187 if ($isAssoc) {

188 // Don't prepend the value name when using the explode modifier with an associative array

197 }

198 }

199 $expanded = implode(',', $kvp);

200 }

201

221 }

222

223 $ret = implode($joiner, $replacements);

224 if ($ret && $prefix) {

225 return $prefix . $ret;

form-tags-manager.php (https://gitlab.com/VTTE/sitios-vtte) PHP · 368 lines

1 <?php

2

3 function wpcf7_add_form_tag( $tag, $func, $features = '' ) {

258 private function tag_regex() {

259 $tagnames = array_keys( $this->tag_types );

260 $tagregexp = implode( '|', array_map( 'preg_quote', $tagnames ) );

261

262 return '(\[?)'

geoip.php (https://github.com/LisaX/oscommerce.git) PHP · 195 lines

1 <?php

2 /*

3 $Id: $

22 global $osC_Language;

23

24 if (defined('MODULE_DEFAULT_GEOIP') && !osc_empty(MODULE_DEFAULT_GEOIP) && file_exists('includes/modules/geoip/' . MODULE_DEFAULT_GEOIP . '.php')) {

25 $osC_Language->loadIniFile('modules/geoip/' . MODULE_DEFAULT_GEOIP . '.php');

26 include('includes/modules/geoip/' . MODULE_DEFAULT_GEOIP . '.php');

27 $module = 'osC_GeoIP_' . MODULE_DEFAULT_GEOIP;

28 return new $module();

98

99 if (defined('MODULE_DEFAULT_GEOIP')) {

100 include('includes/modules/geoip/' . MODULE_DEFAULT_GEOIP . '.php');

101 $module = 'osC_GeoIP_' . MODULE_DEFAULT_GEOIP;

102 $module = new module();

MailboxHeader.php (https://github.com/MyITCRM/myitcrm1.git) PHP · 316 lines

1 <?php

2

3 /*

9 */

10

11 //@require 'Swift/Mime/Headers/AbstractHeader.php';

12 //@require 'Swift/Mime/HeaderEncoder.php';

79 * Example:

80 * <code>

81 * <?php

82 * //Sets two mailboxes in the Header, one with a personal name

83 * $header->setNameAddresses(array(

103 * Example:

104 * <code>

105 * <?php

106 * $header = new Swift_Mime_Headers_MailboxHeader('From',

107 * array('chris@swiftmailer.org' => 'Chris Corbyn',

Validator.php (https://github.com/nishimura/laiz.git) PHP · 222 lines

1 <?php

2 /**

3 * Class file of parsing validator section in setting file.

4 *

5 * PHP versions 5.3

6 *

7 * @package Laiz

161 $words = explode('.', $argName);

162 $words = array_map('ucfirst', $words);

163 $errorKey = $prefix . implode($words);

164 }

165 $this->result->$errorKey = $value;

BaseEntityModel.php (https://github.com/sergiygladkyy/OEF.git) PHP · 314 lines

1 <?php

2

3 require_once('lib/model/base/BaseNotStorageEntityModel.php');

241

242 $db_map =& $this->conf['db_map'];

243 $query = "UPDATE `".$db_map['table']."` SET ".implode(", ", $fields)." WHERE `".$db_map['pkey']."`=".$this->id;

244

245 return $query;

Simple.php (https://github.com/ChuguluGames/mediawiki-svn.git) PHP · 284 lines

1 <?php

2 /**

3 * Simple file format handler for testing import and export.

170

171 // Open temporary stream

172 $handle = fopen( 'php://temp', 'wt' );

173

174 $this->addAuthors( $collection->getAuthors(), $code );

257 }

258

259 return implode( "\n", $s ) . "\n";

260 }

261

RadioWidget.php (https://github.com/LubosRemplik/cakephp.git) PHP · 255 lines

1 <?php

2 /**

3 * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)

4 * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)

5 *

9 *

10 * @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)

11 * @link https://cakephp.org CakePHP(tm) Project

12 * @since 3.0.0

13 * @license https://opensource.org/licenses/mit-license.php MIT License

116 }

117

118 return implode('', $opts);

119 }

120

amazon_pay.php (https://gitlab.com/reclamare/mao) PHP · 202 lines

1 <?php

2 class ControllerModuleAmazonPay extends Controller {

3 public function index() {

114 $full_name = explode(' ', $user->name);

115 $last_name = array_pop($full_name);

116 $first_name = implode(' ', $full_name);

117

118 $data = array(

Store.php (https://gitlab.com/crazybutterfly815/magento2) PHP · 473 lines

1 <?php

2 /**

3 * Copyright © 2016 Magento. All rights reserved.

103 * @param bool $all

104 * @return array

105 * @SuppressWarnings(PHPMD.CyclomaticComplexity)

106 * @SuppressWarnings(PHPMD.NPathComplexity)

161 * @param array $websiteIds

162 * @return array

163 * @SuppressWarnings(PHPMD.CyclomaticComplexity)

164 * @SuppressWarnings(PHPMD.NPathComplexity)

352 $names[] = $this->getStoreNameWithWebsite($id);

353 }

354 $name = implode(', ', $names);

355 } else {

356 if (isset($this->_storeCollection[$storeId])) {

joomla.php (https://github.com/pjwiseman/joomla-cms.git) PHP · 263 lines

1 <?php

2 /**

3 * @package Joomla.Plugin

166 if (count($results))

167 {

168 $updatesite_query->where('update_site_id NOT IN (' . implode(',', $results) . ')');

169 $updatesite_delete->where('update_site_id NOT IN (' . implode(',', $results) . ')');

180 $query->clear()

181 ->delete('#__updates')

182 ->where('update_site_id IN (' . implode(',', $update_sites_pending_delete) . ')');

183 $db->setQuery($query);

184 $db->execute();

Model.php (https://github.com/PHPhackathon/Bublr.git) PHP · 296 lines

1 <?php

2 /****************************************************

3 * Lean mean web machine

176 'UPDATE `%1$s` SET %2$s WHERE `%3$s` = ?',

177 $this->table,

178 implode(',', $updateValues),

179 $this->primaryKey

180 );

198 'INSERT INTO `%1$s` (`%2$s`) VALUES (%3$s)',

199 $this->table,

200 implode('`,`', array_keys($data)),

201 implode(',', array_fill(0, count($data), '?'))

Birthday.php (https://gitlab.com/thohid44/Complete_Sumitted_Project_Without_Filter_Search) PHP · 234 lines

1 <?php

2 namespace App\Bitm\SEIP1020\Birthday;

3

42 <strong>Success!</strong> Data has been stored successfully.

43 </div>");

44 Utility::redirect("index.php");

45 } else {

46 echo "Error";

81 <strong>Success!</strong> Data has been updated successfully.

82 </div>");

83 Utility::redirect("index.php");

84 } else {

85 echo "Error";

96 <strong>Deleted!</strong> Data has been deleted successfully.

97 </div>");

98 Utility::redirect("index.php");

99 } else {

100 Message::message("

FlattenException.php (https://gitlab.com/mdabutaleb/bitm-laravel-1) PHP · 256 lines

1 <?php

2

3 /*

15

16 /**

17 * FlattenException wraps a PHP Exception to be able to serialize it.

18 *

19 * Basically, this class removes all objects from the trace.

200 $parts = explode('\\', $entry['class']);

201 $class = array_pop($parts);

202 $namespace = implode('\\', $parts);

203 }

204

223 return array('array', '*SKIPPED over 10000 entries*');

224 }

225 if ($value instanceof \__PHP_Incomplete_Class) {

226 // is_object() returns false on PHP<=7.1

ColoredInspector.php (https://gitlab.com/xolotsoft/pumasruiz) PHP · 273 lines

1 <?php

2

3 /* vim: set shiftwidth=2 expandtab softtabstop=2: */

205 $self = $this;

206

207 return implode(

208 "\n",

209 array(

210 sprintf('%s(', $node['name']),

211 implode(

212 ",\n",

213 array_map(

SQLiteDataProvider.php (https://gitlab.com/Skull3x/WorkingInProgress-Plugins-Sourcecode-For-Dev) PHP · 211 lines

1 <?php

2 namespace thebigsmileXD\SkyBlock\provider;

3

62

63 public function savePlot(Plot $plot) {

64 $helpers = implode(",", $plot->helpers);

65 if ($plot->id >= 0) {

66 $stmt = $this->sqlSavePlotById;

Post.php (https://gitlab.com/axeltizon/magentoV1.9-demopoweraccess) PHP · 292 lines

1 <?php

2

3 /**

19 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)

20 * @license http://framework.zend.com/license/new-bsd New BSD License

21 * @version $Id: Post.php 24593 2012-01-05 20:35:02Z matthew $

22 */

23

26 * @see Zend_Date

27 */

28 #require_once 'Zend/Date.php';

29

30 /**

31 * @see Zend_Service_Delicious_SimplePost

32 */

33 #require_once 'Zend/Service/Delicious/SimplePost.php';

34

35

NumericField.php (https://gitlab.com/reasonat/test8) PHP · 181 lines

1 <?php

2

3 namespace Drupal\views\Plugin\views\field;

140 // option values.

141 $options = &$form_state->getValue('options');

142 $options['format_plural_string'] = implode(LOCALE_PLURAL_DELIMITER, $options['format_plural_values']);

143 unset($options['format_plural_values']);

144 parent::submitOptionsForm($form, $form_state);

Select.php (https://github.com/rgranadino/magento-mirror.git) PHP · 316 lines

1 <?php

2 /**

3 * Magento

8 * that is bundled with this package in the file LICENSE.txt.

9 * It is also available through the world-wide-web at this URL:

10 * http://opensource.org/licenses/osl-3.0.php

11 * If you did not receive a copy of the license and are unable to

12 * obtain it through the world-wide-web, please send an email

22 * @package Mage_Catalog

23 * @copyright Copyright (c) 2011 Magento Inc. (http://www.magentocommerce.com)

24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)

25 */

26

72 {

73 if ($this->getIsValid() && $this->getUserValue()) {

74 return is_array($this->getUserValue()) ? implode(',', $this->getUserValue()) : $this->getUserValue();

75 } else {

76 return null;

handlerservice.php (https://gitlab.com/alexprowars/bitrix) PHP · 447 lines

1 <?php

2

3 namespace Bitrix\Sale\Delivery\Rest;

165 {

166 throw new RestException(

167 'There are deliveries with this handler: '.implode(', ', $deliveryIdList),

168 self::ERROR_HANDLER_DELETE

169 );

207 }

208

209 $error = implode("\n", $result->getErrorMessages());

210 throw new RestException($error, self::ERROR_HANDLER_ADD);

211 }

262 }

263

264 $error = implode("\n", $result->getErrorMessages());

265 throw new RestException($error, self::ERROR_HANDLER_UPDATE);

266 }

Apache.php (https://bitbucket.org/alexandretaz/maniac_divers.git) PHP · 298 lines

1 <?php

2 /**

3 * Zend Framework (http://framework.zend.com/)

165 throw new Exception\InvalidArgumentException(sprintf(

166 'The format %s specified is not valid. The supported formats are: %s',

167 $format, implode(',', $this->supportedFormat)

168 ));

169 }

Abstract.php (https://gitlab.com/team_fsn/fsn-php) PHP · 303 lines

1 <?php

2 /**

3 * Yab Framework

255 $values[$key] = $value !== null ? ($table->getColumn($key)->getQuotable() ? $this->quote($value) : (is_numeric($value) ? $value : 'NULL')) : 'NULL';

256

257 $this->query('INSERT INTO '.$this->quoteIdentifier($table).' ('.implode(', ', array_map(array($this, 'quoteIdentifier'), array_keys($values))).') VALUES ('.implode(', ', $values).')');

258

259 return $this->getAffectedRows();

268 $values[$key] = $this->quoteIdentifier($key).' = '.($value !== null ? ($table->getColumn($key)->getQuotable() ? $this->quote($value) : (is_numeric($value) ? $value : 'NULL')) : 'NULL');

269

270 $this->query('UPDATE '.$this->quoteIdentifier($table).' SET '.implode(', ', $values).' WHERE '.$where);

271

272 return $this->getAffectedRows();

301 }

302

303 // Do not clause PHP tags unless it is really necessary

304

CredentialsAbstract.php (https://github.com/MontmereLimited/ZendFramework-v1.git) PHP · 244 lines

1 <?php

2 /**

3 * Zend Framework

17 * @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)

18 * @license http://framework.zend.com/license/new-bsd New BSD License

19 * @version $Id: CredentialsAbstract.php 23775 2011-03-01 17:25:24Z ralph $

20 */

21

23 * @see Zend_Http_Client

24 */

25 // // // // // // // // require_once 'Zend/Http/Client.php';

26

27 /**

28 * @see Zend_Service_WindowsAzure_Credentials_Exception

29 */

30 // // // // // // // // require_once 'Zend/Service/WindowsAzure/Credentials/Exception.php';

31

32 /**

query.php (https://bitbucket.org/viswanath608/roar.git) PHP · 316 lines

1 <?php namespace System\Database;

2

3 /**

4 * Nano

5 *

6 * Lightweight php framework

7 *

8 * @package nano

41 }

42

43 return implode('.', $sql);

44 }

45

250 }

251

252 $sql = 'INSERT INTO ' . $this->wrap($this->table) . ' (' . implode(', ', $keys) . ') values (' . implode(', ', $tokens) . ')';

253

254 list($statement, $result) = $this->connection->execute($sql, $bindings);

Entry.php (https://bitbucket.org/juan_sanchez/aiyellow.git) PHP · 246 lines

1 <?php

2 /**

3 * Zend Framework (http://framework.zend.com/)

175 }

176

177 $concat = implode(',', $value);

178 if ($this->stringWrapper->strlen($concat) > 255) {

179 throw new Writer\Exception\InvalidArgumentException('invalid parameter: "keywords" may only'

Select.php (https://bitbucket.org/mengqing/magento-mirror.git) PHP · 316 lines

1 <?php

2 /**

3 * Magento

8 * that is bundled with this package in the file LICENSE.txt.

9 * It is also available through the world-wide-web at this URL:

10 * http://opensource.org/licenses/osl-3.0.php

11 * If you did not receive a copy of the license and are unable to

12 * obtain it through the world-wide-web, please send an email

22 * @package Mage_Catalog

23 * @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)

24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)

25 */

26

72 {

73 if ($this->getIsValid() && $this->getUserValue()) {

74 return is_array($this->getUserValue()) ? implode(',', $this->getUserValue()) : $this->getUserValue();

75 } else {

76 return null;

achievement_invite_update.php (https://github.com/Bigjoos/U-232-V3.git) PHP · 104 lines

1 <?php

2 /**

3 * https://github.com/Bigjoos/

80 $count = count($achievements_buffer);

81 if ($count > 0) {

82 sql_query("INSERT INTO messages (sender,receiver,added,msg,subject) VALUES " . implode(', ', $msgs_buffer)) or sqlerr(__FILE__, __LINE__);

83 sql_query("INSERT INTO achievements (userid, date, achievement, icon, description) VALUES " . implode(', ', $achievements_buffer) . " ON DUPLICATE key UPDATE date=values(date),achievement=values(achievement),icon=values(icon),description=values(description)") or sqlerr(__FILE__, __LINE__);

84 sql_query("INSERT INTO usersachiev (id, $var1, achpoints) VALUES " . implode(', ', $usersachiev_buffer) . " ON DUPLICATE key UPDATE $var1=values($var1), achpoints=achpoints+values(achpoints)") or sqlerr(__FILE__, __LINE__);

85 if ($queries > 0) write_log("Achievements Cleanup: Achievements Inviter Completed using $queries queries. Inviter Achievements awarded to - " . $count . " Member(s)");

86 }

cookie.test.php (https://github.com/cgajardo/repositorium.git) PHP · 481 lines

5 * PHP versions 4 and 5

6 *

7 * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>

8 * Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org)

9 *

12 *

13 * @copyright Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org)

14 * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests

15 * @package cake

16 * @subpackage cake.tests.cases.libs.controller.components

260 $this->Controller->Cookie->destroy();

261

262 $this->Controller->Cookie->write(array('Encrytped_array' => array('name' => 'CakePHP', 'version' => '1.2.0.x', 'tag' =>'CakePHP Rocks!')));

263 $this->Controller->Cookie->write(array('Encrytped_multi_cookies.name' => 'CakePHP'));

432

433 $data = $this->Controller->Cookie->read('Plain_multi_cookies');

434 $expected = array('name' => 'CakePHP', 'version' => '1.2.0.x', 'tag' =>'CakePHP Rocks!');

435 $this->assertEqual($data, $expected);

436 $this->Controller->Cookie->destroy();

NewInstanceTest.class.php (https://github.com/treuter/xp-framework.git) PHP · 242 lines

1 <?php

2 /* This class is part of the XP framework

3 *

40 protected function runInNewRuntime($uses, $src) {

41 with ($out= $err= '', $p= Runtime::getInstance()->newInstance(NULL, 'class', 'xp.runtime.Evaluate', array())); {

42 $uses && $p->in->write('uses("'.implode('", "', $uses).'");');

43 $p->in->write($src);

44 $p->in->close();

magmi_csvreader.php (https://gitlab.com/inglobe/mgt-clemente-css) PHP · 208 lines

1 <?php

2 require_once("magmi_mixin.php");

3 require_once("magmi_utils.php");

4

5 class Magmi_CSVException extends Exception

125 $line++;

126 $dummy = fgetcsv($this->_fh, $this->_buffersize, $this->_csep, $this->_cenc);

127 $this->log("skip line $line:" . implode($this->_csep, $dummy), "info");

128 }

129 $cols = fgetcsv($this->_fh, $this->_buffersize, $this->_csep, $this->_cenc);

functions.php (https://gitlab.com/phamngsinh/baitaplon_sinhvien) PHP · 195 lines

1 <?php

2

3 /**

49 if ( ! defined( 'NV_IS_GODADMIN' ) )

50 {

51 Header( "Location: " . NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name );

52 die();

53 }

73 );

74 $contents['info']['allow_files_type'] = array(

75 $lang_module['allow_files_type'], ( ! empty( $result['allow_files_type'] ) ? implode( ", ", $result['allow_files_type'] ) : $lang_global['no'] )

76 );

77 $contents['info']['allow_modify_files'] = array(

84 $lang_module['allow_modify_subdirectories'], ( $result['allow_modify_subdirectories'] ? $lang_global['yes'] : $lang_global['no'] )

85 );

86 $contents['action'] = NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name . "&amp;" . NV_OP_VARIABLE . "=add";

87 $contents['go_edit'] = array(

88 $lang_global['edit'], NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name . "&amp;" . NV_OP_VARIABLE . "=edit&amp;admin_id=" . $result['admin_id']

City.php (https://gitlab.com/armanulislam/FinalAtomicProject) PHP · 223 lines

1 <?php

2

3

31 // After getting result we need to contain those data in a variable

32 // saving fetching data in allcityData variable and return it to show the data

33 // in index.php file

34 // we must declare allcityData as array to contain all data

35 while ($row = mysqli_fetch_object($result))

66 </div>");

67

68 Utility::reDirectAPageIntoAnotherPage("index.php");

69 } else {

70 Message::examineMessage("

74

75

76 Utility::reDirectAPageIntoAnotherPage("index.php");

77 }

78

context.php (https://github.com/chamnan/ionize.git) PHP · 290 lines

1 <?php

2 /*

3 * Created on 2009 Jan 02

202 $path_chunks = array_merge($this->tag_name_stack, array($name));

203 // For literal matches

204 $path = implode(':', $path_chunks);

205

206 // Check if we have a tag or a variable

283 function current_nesting()

284 {

285 return implode(':', $this->tag_name_stack);

286 }

287 }

288

289 /* End of file context.php */

290 /* Location: ./application/libraries/xt_parser/context.php */

TextSyntaxTree.php (https://github.com/Weltraumschaf/ebnf.git) PHP · 252 lines

1 <?php

2 /**

3 * This program is free software: you can redistribute it and/or modify

24 * @see Visitor

25 */

26 require_once __DIR__ . DIRECTORY_SEPARATOR . 'Visitor.php';

27

28 use de\weltraumschaf\ebnf\ast\Node;

242

243 foreach ($this->matrix as $row) {

244 $buffer .= implode("", $row) . PHP_EOL;

245 }

246

eztags.php (https://github.com/alafon/eztags.git) PHP · 440 lines

1 <?php

2

3 /**

414 function idString()

415 {

416 return implode( '|#', $this->IDArray );

417 }

418

424 function keywordString( $separator = '|#' )

425 {

426 return implode( $separator, $this->KeywordArray );

427 }

428

434 function parentString()

435 {

436 return implode( '|#', $this->ParentArray );

437 }

438 }

Select.php (https://github.com/ticean/magento-mirror.git) PHP · 316 lines

1 <?php

2 /**

3 * Magento

8 * that is bundled with this package in the file LICENSE.txt.

9 * It is also available through the world-wide-web at this URL:

10 * http://opensource.org/licenses/osl-3.0.php

11 * If you did not receive a copy of the license and are unable to

12 * obtain it through the world-wide-web, please send an email

22 * @package Mage_Catalog

23 * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)

24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)

25 */

26

72 {

73 if ($this->getIsValid() && $this->getUserValue()) {

74 return is_array($this->getUserValue()) ? implode(',', $this->getUserValue()) : $this->getUserValue();

75 } else {

76 return null;

FormataNumero.php (https://gitlab.com/sejainfo/aesbe) PHP · 281 lines

1 <?php

2

3

129 $parteFinal = " E " . $parteFinal;

130 }

131 $parteInicial = implode(", ", $inteiros);

132 $texto = $parteInicial . $parteFinal . $centavos;

133

RouteCompiler.php (https://github.com/fernanDOTdo/symfony.git) PHP · 235 lines

1 <?php

2

3 /*

62 }

63

64 $this->regex = "#^".implode("", $this->segments)."".preg_quote($separator, '#')."$#x";

65

66 // optimize tokens for generation

228 // compute some regexes

229 $quoter = function ($a) { return preg_quote($a, '#'); };

230 $options['segment_separators_regex'] = '(?:'.implode('|', array_map($quoter, $options['segment_separators'])).')';

231 $options['variable_content_regex'] = '[^'.implode('', array_map($quoter, $options['segment_separators'])).']+?';

eztemplateelementparser.php (git://github.com/ezsystems/ezpublish.git) PHP · 603 lines ✨ Summary

This is a PHP class that parses eZTemplate element definitions, which are used to define custom elements for an eZ Publish content management system. The class breaks down the definition into its constituent parts, such as identifiers, quotes, numbers, and whitespace, and returns their positions in the template string. It provides methods for accessing these positions and performing various operations on them.

1 <?php

2 /**

3 * File containing the eZTemplateElementParser class.

10

11 /*!

12 \class eZTemplateElementParser eztemplateelementparser.php

13 \brief The class eZTemplateElementParser does

14

382 }

383 $scope = $scopeType;

384 $namespace = implode( ':', $namespaces );

385 $name = $variableName;

386 return $currentPosition;