100+ results for 'php array_merge'
Not the results you expected?
writer_database.php (https://github.com/kamarulismail/kamarul-playground.git) PHP · 334 lines
1 <?php
2 /**
3 * File containing the ezcLogDatabaseWriter class.
49 * $log->log( "File '/images/spacer.gif' does not exist.", ezcLog::WARNING,
50 * array( "source" => "Application", "category" => "Design" ),
51 * array( "file" => "/index.php", "line" => 123 ) );
52 * </code>
53 *
315 public function getColumnTranslations()
316 {
317 return array_merge( $this->defaultColumns, $this->additionalColumns );
318 }
TargetVpnGateways.php (https://gitlab.com/Anas7232/Layout-Changes) PHP · 208 lines
1 <?php
2 /*
3 * Copyright 2014 Google Inc.
76 {
77 $params = array('project' => $project);
78 $params = array_merge($params, $optParams);
79 return $this->call('aggregatedList', array($params), "Google_Service_Compute_TargetVpnGatewayAggregatedList");
80 }
104 {
105 $params = array('project' => $project, 'region' => $region, 'targetVpnGateway' => $targetVpnGateway);
106 $params = array_merge($params, $optParams);
107 return $this->call('delete', array($params), "Google_Service_Compute_Operation");
108 }
120 {
121 $params = array('project' => $project, 'region' => $region, 'targetVpnGateway' => $targetVpnGateway);
122 $params = array_merge($params, $optParams);
123 return $this->call('get', array($params), "Google_Service_Compute_TargetVpnGateway");
124 }
posts.php (https://gitlab.com/Ltaimao/wecenter) PHP · 514 lines
1 <?php
2 /*
3 +--------------------------------------------------------------------------
119 else
120 {
121 $data = array_merge($data, array(
122 'post_id' => intval($post_id),
123 'post_type' => $post_type
502 foreach ($topic_ids AS $topic_id)
503 {
504 $related_topic_ids = array_merge($related_topic_ids, $this->model('topic')->get_related_topic_ids_by_id($topic_id));
505 }
Mvc.php (https://github.com/thomasweidner/zf2.git) PHP · 409 lines
ezmedia.php (https://github.com/eeggenberger/ezpublish.git) PHP · 274 lines
1 <?php
2 /**
3 * File containing the eZBinaryFile class.
11 /*!
12 \class eZMedia ezmedia.php
13 \ingroup eZDatatype
14 \brief The class eZMedia handles registered media files
217 {
218 $mediaFileObjectAttribute = eZMedia::fetch( $id['id'], null, $asObject );
219 $mediaFiles = array_merge( $mediaFiles, $mediaFileObjectAttribute );
220 }
221 return $mediaFiles;
BaseDmPermissionForm.class.php (https://github.com/xdade/diem.git) PHP · 299 lines
1 <?php
3 /**
115 if (isset($this->widgetSchema['users_list']))
116 {
117 $this->setDefault('users_list', array_merge((array)$this->getDefault('users_list'),$this->object->Users->getPrimaryKeys()));
118 }
120 if (isset($this->widgetSchema['groups_list']))
121 {
122 $this->setDefault('groups_list', array_merge((array)$this->getDefault('groups_list'),$this->object->Groups->getPrimaryKeys()));
123 }
125 if (isset($this->widgetSchema['dm_user_permission_list']))
126 {
127 $this->setDefault('dm_user_permission_list', array_merge((array)$this->getDefault('dm_user_permission_list'),$this->object->DmUserPermission->getPrimaryKeys()));
128 }
PodsTermSplitting.php (https://gitlab.com/najomie/ljm) PHP · 515 lines
HasManyThrough.php (https://gitlab.com/kimting254/wbms) PHP · 340 lines
PropelTableComparator.php (https://github.com/1989gaurav/Propel.git) PHP · 315 lines
1 <?php
3 /**
9 */
11 require_once dirname(__FILE__) . '/../Table.php';
12 require_once dirname(__FILE__) . '/PropelTableDiff.php';
13 require_once dirname(__FILE__) . '/PropelColumnComparator.php';
14 require_once dirname(__FILE__) . '/PropelColumnDiff.php';
15 require_once dirname(__FILE__) . '/PropelIndexComparator.php';
16 require_once dirname(__FILE__) . '/PropelForeignKeyComparator.php';
224 {
225 $indexDifferences = 0;
226 $fromTableIndices = array_merge($this->getFromTable()->getIndices(), $this->getFromTable()->getUnices());
227 $toTableIndices = array_merge($this->getToTable()->getIndices(), $this->getToTable()->getUnices());
Tabbed_View.php (https://github.com/livinglab/openlab.git) PHP · 381 lines
plans_classes.php (https://bitbucket.org/pombredanne/spip-zone-treemap.git) PHP · 301 lines
1 <?php
266 $tableau_points[] = $arr['id_point'];
267 }
268 $tableau_final = array_merge($tableau_points, array($this->id_point));
269 } else if ($position == 0) {
270 $tableau_points = array();
272 $tableau_points[] = $arr['id_point'];
273 }
274 $tableau_final = array_merge(array($this->id_point), $tableau_points);
275 } else {
276 $i = 0;
287 $i++;
288 }
289 $tableau_final = array_merge($tableau_points_avant, array($this->id_point), $tableau_points_apres);
290 }
291 foreach ($tableau_final as $cle => $valeur) {
FlattenException.php (https://gitlab.com/puntodos/ean-landings) PHP · 297 lines
1 <?php
3 /*
16 /**
17 * FlattenException wraps a PHP Exception to be able to serialize it.
18 *
19 * Basically, this class removes all objects from the trace.
57 /**
58 * FlattenException wraps a PHP Exception to be able to serialize it.
59 *
60 * Basically, this class removes all objects from the trace.
82 if ($exception instanceof HttpExceptionInterface) {
83 $statusCode = $exception->getStatusCode();
84 $headers = array_merge($headers, $exception->getHeaders());
85 }
Relation.php (https://gitlab.com/puntodos/ean-landings) PHP · 349 lines
provider_test.php (https://bitbucket.org/moodle/moodle.git) PHP · 343 lines
1 <?php
2 // This file is part of Moodle - http://moodle.org/
3 //
35 /**
36 * Unit tests for cohort\classes\privacy\provider.php
37 *
38 * @copyright 2018 Sara Arjona <sara@moodle.com>
207 $contexts = [];
208 $contexts[] = \context_user::instance($user1->id)->id;
209 $contexts = array_merge($contexts, $contextlist->get_contextids());
210 $approvedcontextlist = new approved_contextlist($user1, 'cohort', $contexts);
211 provider::delete_data_for_user($approvedcontextlist);
Minifier.php (https://gitlab.com/juanito.abelo/nlmobile) PHP · 280 lines
oxPublisherConsoleClient.php (https://bitbucket.org/valmy/openx.git) PHP · 238 lines
1 <?php
3 /*
23 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
24 +---------------------------------------------------------------------------+
25 $Id: oxPublisherConsoleClient.php 29196 2008-11-20 14:16:53Z apetlyovanyy $
26 */
27 require_once MAX_PATH . '/lib/OA.php';
28 require_once MAX_PATH . '/lib/OX/M2M/M2MProtectedRpc.php';
29 require_once MAX_PATH . '/lib/OX/M2M/XmlRpcExecutor.php';
30 require_once dirname(__FILE__) . '/oxPublisherConsoleClientException.php';
32 /**
ProjectsLocationsAgentsFlowsTransitionRouteGroups.php (https://gitlab.com/Japang-Jawara/jawara-penilaian) PHP · 169 lines
1 <?php
2 /*
3 * Copyright 2014 Google Inc.
56 {
57 $params = ['parent' => $parent, 'postBody' => $postBody];
58 $params = array_merge($params, $optParams);
59 return $this->call('create', [$params], GoogleCloudDialogflowCxV3TransitionRouteGroup::class);
60 }
80 {
81 $params = ['name' => $name];
82 $params = array_merge($params, $optParams);
83 return $this->call('delete', [$params], GoogleProtobufEmpty::class);
84 }
103 {
104 $params = ['name' => $name];
105 $params = array_merge($params, $optParams);
106 return $this->call('get', [$params], GoogleCloudDialogflowCxV3TransitionRouteGroup::class);
107 }
CdnEngine_S3_Compatible.php (https://gitlab.com/karlen/ayo_wp) PHP · 345 lines
project.php (https://github.com/germc/CrowdFund.git) PHP · 293 lines
1 <?php
3 class Project extends AppModel {
115 //FIND BY TITLE -- EXACT
116 $conditions = array_merge($approved, array('Project.title LIKE' => $searchstr));
117 $found = $this->find('all', compact('conditions', 'fields', 'order'));
126 //FIND BY TITLE -- BEGINS WITH
127 $conditions = array_merge($approved, array('Project.title LIKE' => $searchstr.'%'));
128 $found = $this->find('all', compact('conditions', 'fields', 'order'));
137 //FIND BY TITLE -- MATCH
138 $conditions = array_merge($approved, array('Project.title LIKE' => '%'.$searchstr.'%'));
139 $found = $this->find('all', compact('conditions', 'fields', 'order'));
RuntimeDefinition.php (https://gitlab.com/jalon/doadoronline) PHP · 353 lines
base-route.php (https://gitlab.com/ebrjose/comcebu) PHP · 380 lines
1 <?php
2 namespace Elementor\Data\V2\Base;
209 protected function register_route( $route = '', $methods = WP_REST_Server::READABLE, $args = [] ) {
210 if ( ! in_array( $methods, self::AVAILABLE_METHODS, true ) ) {
211 trigger_error( "Invalid method: '$methods'.", E_USER_ERROR ); // phpcs:ignore
212 }
278 }
280 $args = array_merge( [
281 $this->id_arg_name => [
282 'description' => 'Unique identifier for the object.',
BaseFcdprinm.php (https://github.com/cidesa/siga-universitario.git) PHP · 437 lines
1 <?php
268 if (($retval = FcdprinmPeer::doValidate($this, $columns)) !== true) {
269 $failureMap = array_merge($failureMap, $retval);
270 }
281 public function getByName($name, $type = BasePeer::TYPE_PHPNAME)
282 {
283 $pos = FcdprinmPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM);
312 public function toArray($keyType = BasePeer::TYPE_PHPNAME)
313 {
314 $keys = FcdprinmPeer::getFieldNames($keyType);
smarty_internal_config.php (https://github.com/kiang/olc_baker.git) PHP · 293 lines
1 <?php
2 /**
3 * Smarty Internal Plugin Config
161 }
163 return $_compile_dir . $_filepath . '.' . basename($this->config_resource_name) . '.config' . '.php';
164 }
165 /**
275 $scope_ptr->config_vars[$variable] = $value;
276 } else {
277 $scope_ptr->config_vars[$variable] = array_merge((array) $scope_ptr->config_vars[$variable], (array) $value);
278 }
279 }
285 $scope_ptr->config_vars[$variable] = $value;
286 } else {
287 $scope_ptr->config_vars[$variable] = array_merge((array) $scope_ptr->config_vars[$variable], (array) $value);
288 }
289 }
ConfigFileFinder.php (https://gitlab.com/akbaryu/intro_magang_web) PHP · 262 lines
CakeEventManagerTest.php (https://bitbucket.org/00firestar00/ejfirestar.com.git) PHP · 415 lines
1 <?php
2 /**
3 * ControllerTestCaseTest file
5 * Test Case for ControllerTestCase class
6 *
7 * CakePHP : Rapid Development Framework (http://cakephp.org)
8 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
9 *
13 *
14 * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
15 * @link http://cakephp.org CakePHP Project
16 * @package Cake.Test.Case.Event
17 * @since CakePHP v 2.1
18 * @license http://www.opensource.org/licenses/mit-license.php MIT License
19 */
BaseFcaliinm.php (https://github.com/cidesa/siga-universitario.git) PHP · 541 lines
1 <?php
339 if (($retval = FcaliinmPeer::doValidate($this, $columns)) !== true) {
340 $failureMap = array_merge($failureMap, $retval);
341 }
352 public function getByName($name, $type = BasePeer::TYPE_PHPNAME)
353 {
354 $pos = FcaliinmPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM);
392 public function toArray($keyType = BasePeer::TYPE_PHPNAME)
393 {
394 $keys = FcaliinmPeer::getFieldNames($keyType);
Collection.php (https://gitlab.com/koodersmiikka/operaatio-terveys) PHP · 717 lines
AbstractRequest.php (https://github.com/ILIAS-eLearning/ILIAS.git) PHP · 378 lines
1 <?php
3 /**
18 * limitations under the License.
19 *
20 * PHP Version 5
21 *
22 * @file CAS/Request/AbstractRequest.php
23 * @category Authentication
24 * @package PhpCAS
25 * @author Adam Franco <afranco@middlebury.edu>
26 * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0
27 * @link https://wiki.jasig.org/display/CASC/phpCAS
28 */
DefinitionList.php (https://gitlab.com/yousafsyed/easternglamor) PHP · 352 lines
1 <?php
2 /**
3 * Zend Framework (http://framework.zend.com/)
66 $this->runtimeDefinitions->unshift($definition);
67 }
68 $this->classes = array_merge($this->classes, $this->getDefinitionClassMap($definition));
69 return $result;
70 }
76 $this->runtimeDefinitions->push($definition);
77 }
78 $this->classes = array_merge($this->getDefinitionClassMap($definition), $this->classes);
79 return $result;
80 }
185 }
186 if ($definition->hasClass($class)) {
187 $supertypes = array_merge($supertypes, $definition->getClassSupertypes($class));
188 if ($definition instanceof Definition\PartialMarker) {
189 continue;
Relyingparty.php (https://gitlab.com/Anas7232/Layout-Changes) PHP · 292 lines
1 <?php
2 /*
3 * Copyright 2014 Google Inc.
37 {
38 $params = array('postBody' => $postBody);
39 $params = array_merge($params, $optParams);
40 return $this->call('createAuthUri', array($params), "Google_Service_IdentityToolkit_CreateAuthUriResponse");
41 }
50 {
51 $params = array('postBody' => $postBody);
52 $params = array_merge($params, $optParams);
53 return $this->call('deleteAccount', array($params), "Google_Service_IdentityToolkit_DeleteAccountResponse");
54 }
63 {
64 $params = array('postBody' => $postBody);
65 $params = array_merge($params, $optParams);
66 return $this->call('downloadAccount', array($params), "Google_Service_IdentityToolkit_DownloadAccountResponse");
67 }
module.php (https://gitlab.com/mostafame/team_website) PHP · 471 lines
1 <?php
3 class DSLC_TP_Excerpt extends DSLC_Module {
426 );
428 $dslc_options = array_merge( $dslc_options, $this->shared_options( 'animation_options', array('hover_opts' => false) ) );
429 $dslc_options = array_merge( $dslc_options, $this->presets_options() );
461 if ( $the_excerpt ) :
462 ?><div class="dslc-tp-excerpt"><?php echo $the_excerpt; ?></div><?php
463 endif;
Behavior.php (https://github.com/hhamon/Propel2.git) PHP · 457 lines
1 <?php
3 /**
18 *
19 * @author François Zaninotto
20 * @author Hugo Hamon <webmaster@apprendre-php.com> (Propel)
21 */
22 class Behavior extends MappingModel
321 /**
322 * Use Propel simple templating system to render a PHP file using variables
323 * passed as arguments. The template file name is relative to the behavior's
324 * directory name.
333 $filePath = $this->getDirname() . $templateDir . $filename;
334 if (!file_exists($filePath)) {
335 // try with '.php' at the end
336 $filePath = $filePath . '.php';
Dispatcher.php (https://gitlab.com/Pasantias/pasantiasASLG) PHP · 409 lines
DataCollectionTest.php (https://bitbucket.org/jncormier/edit.or.git) PHP · 356 lines
1 <?php
2 /**
3 * Klein (klein.php) - A lightning fast router for PHP
4 *
5 * @author Chris O'Hara <cohara87@gmail.com>
6 * @author Trevor Suarez (Rican7) (contributor and v2 refactorer)
7 * @copyright (c) Chris O'Hara
8 * @link https://github.com/chriso/klein.php
9 * @license MIT
10 */
99 $totally_different_sample_data = array(
100 '_why' => 'the lucky stiff',
101 'php' => 'has become beautiful',
102 'yay' => 'life is very good. :)',
103 );
CartShippingRateSchema.php (https://gitlab.com/campus-academy/krowkaramel) PHP · 354 lines
MessageBag.php (https://gitlab.com/Sigpot/AirSpot) PHP · 359 lines
Arr.php (https://gitlab.com/dzakiafif/cokelatklasik) PHP · 419 lines
Namespace.php (https://github.com/daevid/MWFork.git) PHP · 312 lines
1 <?php
2 /**
3 * Provide things related to namespaces
9 * for dealing with namespaces that encodes all the
10 * "magic" behaviors of them based on index. The textual
11 * names of the namespaces are handled by Language.php.
12 *
13 * These are synonyms for the names given in the language file
28 * Throw an exception when trying to get the subject or talk page
29 * for a given namespace where it does not make sense.
30 * Special namespaces are defined in includes/define.php and have
31 * a value below 0 (ex: NS_SPECIAL = -1 , NS_MEDIA = -2)
32 *
267 } elseif ( !in_array( NS_MAIN, $wgContentNamespaces ) ) {
268 // always force NS_MAIN to be part of array (to match the algorithm used by isContent)
269 return array_merge( array( NS_MAIN ), $wgContentNamespaces );
270 } else {
271 return $wgContentNamespaces;
CurrentView.php (https://github.com/mcguffin/acf-quick-edit-fields.git) PHP · 404 lines
1 <?php
2 /**
3 * @package ACFQuickEdit\Admin
226 }
227 $fields = array_merge( $fields, $group_fields );
228 }
246 if ( 'group' === $field['type'] ) {
248 $found_fields = array_merge( $found_fields, $this->filter_fields( $query, $field['sub_fields'] ) );
249 }
250 foreach ( $query as $prop => $value ) {
386 if ( $url ) {
387 parse_str( parse_url( $url, PHP_URL_QUERY ), $filter );
388 }
Db.php (https://github.com/ftaiolivista/Zend-Framework-Namespaced-.git) PHP · 145 lines
1 <?php
2 /**
3 * Zend Framework
18 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
19 * @license http://framework.zend.com/license/new-bsd New BSD License
20 * @version $Id: Db.php 22513 2010-07-01 13:48:39Z ramon $
21 */
29 /** Zend_Log_Writer_Abstract */
30 require_once 'Zend/Log/Writer/Abstract.php';
32 /**
36 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
37 * @license http://framework.zend.com/license/new-bsd New BSD License
38 * @version $Id: Db.php 22513 2010-07-01 13:48:39Z ramon $
39 */
40 class Db extends AbstractWriter
Csv.php (https://github.com/shin2/concrete5.git) PHP · 121 lines
1 <?php
2 /**
3 * Zend Framework
16 * @package Zend_Translate
17 * @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
18 * @version $Id: Csv.php 23775 2011-03-01 17:25:24Z ralph $
19 * @license http://framework.zend.com/license/new-bsd New BSD License
20 */
23 /** Zend_Locale */
24 require_once 'Zend/Locale.php';
26 /** Zend_Translate_Adapter */
27 require_once 'Zend/Translate/Adapter.php';
Base.php (https://github.com/finger2000/horde.git) PHP · 325 lines
1 <?php
2 /**
3 * Adds a set of uncached queries to the list handlers.
4 *
5 * PHP version 5
6 *
7 * @category Kolab
9 * @author Gunnar Wrobel <wrobel@pardus.de>
10 * @license http://www.horde.org/licenses/lgpl21 LGPL 2.1
11 * @link http://pear.horde.org/index.php?package=Kolab_Storage
12 */
24 * @author Gunnar Wrobel <wrobel@pardus.de>
25 * @license http://www.horde.org/licenses/lgpl21 LGPL 2.1
26 * @link http://pear.horde.org/index.php?package=Kolab_Storage
27 */
28 abstract class Horde_Kolab_Storage_QuerySet_Base
class-twentynineteen-walker-comment.php (https://gitlab.com/VTTE/sitios-vtte) PHP · 114 lines
30 ?>
31 <<?php echo $tag; ?> id="comment-<?php comment_ID(); ?>" <?php comment_class( $this->has_children ? 'parent' : '', $comment ); ?>>
32 <article id="div-comment-<?php comment_ID(); ?>" class="comment-body">
74 $comment_timestamp = sprintf( __( '%1$s at %2$s', 'twentynineteen' ), get_comment_date( '', $comment ), get_comment_time() );
75 ?>
76 <time datetime="<?php comment_time( 'c' ); ?>" title="<?php echo $comment_timestamp; ?>">
77 <?php echo $comment_timestamp; ?>
78 </time>
79 </a>
80 <?php
81 $edit_comment_icon = twentynineteen_get_icon_svg( 'edit', 16 );
82 edit_comment_link( __( 'Edit', 'twentynineteen' ), '<span class="edit-link-sep">—</span> <span class="edit-link">' . $edit_comment_icon, '</span>' );
84 </div><!-- .comment-metadata -->
86 <?php if ( '0' == $comment->comment_approved ) : ?>
87 <p class="comment-awaiting-moderation"><?php _e( 'Your comment is awaiting moderation.', 'twentynineteen' ); ?></p>
LanguageStatsDAO.php (https://github.com/matecat/MateCat.git) PHP · 349 lines
1 <?php
3 use DataAccess\ShapelessConcreteStruct;
5 /**
6 * Created by PhpStorm.
7 * User: roberto
8 * Date: 22/09/15
95 $stmt = $conn->prepare( $query );
97 $values = array_merge(
98 [
99 $filters->date_start,
250 //fill values array
251 $values = array_merge( $values, [
252 $obj->date,
253 $obj->source,
Driver.php (https://github.com/Sa-ryong/Stadioom-php.git) PHP · 116 lines
1 <?php
2 /*
3 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
48 {
49 if (isset($driverOptions['userDefinedFunctions'])) {
50 $this->_userDefinedFunctions = array_merge(
51 $this->_userDefinedFunctions, $driverOptions['userDefinedFunctions']);
52 unset($driverOptions['userDefinedFunctions']);
ArtisanServiceProvider.php (https://gitlab.com/phanthanh9787/crud-user) PHP · 566 lines
databasequery.php (https://github.com/rich20/Kunena-1.6.git) PHP · 587 lines
1 <?php
2 /**
3 * @version $Id$
62 public function __toString()
63 {
64 return PHP_EOL.$this->_name.' '.implode($this->_glue, $this->_elements);
65 }
76 {
77 if (is_array($elements)) {
78 $this->_elements = array_unique(array_merge($this->_elements, $elements));
79 }
80 else {
81 $this->_elements = array_unique(array_merge($this->_elements, array($elements)));
82 }
83 }
Playlists.php (https://gitlab.com/efabian/maya) PHP · 185 lines
1 <?php
2 /*
3 * Copyright 2014 Google Inc.
46 {
47 $params = array('id' => $id);
48 $params = array_merge($params, $optParams);
49 return $this->call('delete', array($params));
50 }
89 {
90 $params = array('part' => $part, 'postBody' => $postBody);
91 $params = array_merge($params, $optParams);
92 return $this->call('insert', array($params), "Google_Service_YouTube_Playlist");
93 }
147 {
148 $params = array('part' => $part);
149 $params = array_merge($params, $optParams);
150 return $this->call('list', array($params), "Google_Service_YouTube_PlaylistListResponse");
151 }
DataFacade.php (https://github.com/danielvaleradp/--ngara.git) PHP · 228 lines
ElementAnnotationsListener.php (https://bitbucket.org/alexandretaz/maniac_divers.git) PHP · 369 lines
1 <?php
2 /**
3 * Zend Framework (http://framework.zend.com/)
100 $elementSpec = $e->getParam('elementSpec');
101 if (isset($elementSpec['spec']['attributes'])) {
102 $elementSpec['spec']['attributes'] = array_merge($elementSpec['spec']['attributes'], $annotation->getAttributes());
103 return;
104 }
Base.php (https://github.com/sgtcarneiro/horde.git) PHP · 325 lines
1 <?php
2 /**
3 * Adds a set of uncached queries to the list handlers.
4 *
5 * PHP version 5
6 *
7 * @category Kolab
9 * @author Gunnar Wrobel <wrobel@pardus.de>
10 * @license http://www.fsf.org/copyleft/lgpl.html LGPL
11 * @link http://pear.horde.org/index.php?package=Kolab_Storage
12 */
24 * @author Gunnar Wrobel <wrobel@pardus.de>
25 * @license http://www.fsf.org/copyleft/lgpl.html LGPL
26 * @link http://pear.horde.org/index.php?package=Kolab_Storage
27 */
28 abstract class Horde_Kolab_Storage_QuerySet_Base
Google_WebfontsService.php (https://bitbucket.org/iiic/iszp.git) PHP · 130 lines
Csv.php (https://bitbucket.org/tschrock52/ethodeshare.git) PHP · 121 lines
1 <?php
2 /**
3 * Zend Framework
16 * @package Zend_Translate
17 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
18 * @version $Id: Csv.php 21661 2010-03-27 20:20:27Z thomas $
19 * @license http://framework.zend.com/license/new-bsd New BSD License
20 */
23 /** Zend_Locale */
24 #require_once 'Zend/Locale.php';
26 /** Zend_Translate_Adapter */
27 #require_once 'Zend/Translate/Adapter.php';
IpValidatorTest.php (https://gitlab.com/mohamedchiheb.bida/workshopFOS) PHP · 444 lines
1 <?php
3 /*
137 public function getValidIpsAll()
138 {
139 return array_merge($this->getValidIpsV4(), $this->getValidIpsV6());
140 }
243 public function getInvalidPublicIpsV4()
244 {
245 return array_merge($this->getInvalidPrivateIpsV4(), $this->getInvalidReservedIpsV4());
246 }
329 // Quoting after official filter documentation:
330 // "FILTER_FLAG_NO_RES_RANGE = This flag does not apply to IPv6 addresses."
331 // Full description: http://php.net/manual/en/filter.filters.flags.php
332 return $this->getInvalidIpsV6();
333 }
Arr.php (https://gitlab.com/leon0399/damnit-engine) PHP · 475 lines
1 <?php
3 namespace Illuminate\Support;
67 }
69 $results = array_merge($results, $values);
70 }
97 foreach ($array as $key => $value) {
98 if (is_array($value)) {
99 $results = array_merge($results, static::dot($value, $prepend.$key.'.'));
100 } else {
101 $results[$prepend.$key] = $value;
166 if (is_array($item)) {
167 if ($depth === 1) {
168 return array_merge($result, $item);
169 }
Csv.php (https://github.com/Doap/iCms---intelligent-Content-management-system.git) PHP · 121 lines
1 <?php
2 /**
3 * Zend Framework
16 * @package Zend_Translate
17 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
18 * @version $Id: Csv.php 21661 2010-03-27 20:20:27Z thomas $
19 * @license http://framework.zend.com/license/new-bsd New BSD License
20 */
23 /** Zend_Locale */
24 require_once 'Zend/Locale.php';
26 /** Zend_Translate_Adapter */
27 require_once 'Zend/Translate/Adapter.php';
proxyReassignCasesList.php (https://bitbucket.org/ferOnti/processmaker.git) PHP · 97 lines
1 <?php
2 $callback = isset( $_POST['callback'] ) ? $_POST['callback'] : 'stcCallback1001';
3 $dir = isset( $_POST['dir'] ) ? $_POST['dir'] : 'DESC';
32 G::LoadClass( 'case' );
33 G::LoadClass( 'users' );
34 require_once ("classes/model/AppCacheView.php");
36 $oTasks = new Tasks();
77 );
79 $aCasesList = array_merge( Array ($filedNames
80 ), $aCasesList );
81 $rows = array ();
ARC2_SPARQLScriptParser.php (https://github.com/kwijibo/sparql-proxy.git) PHP · 262 lines
1 <?php
2 /*
3 homepage: http://arc.semsol.org/
91 $q = $rest ? trim(substr($v, 0, -strlen($rest))) : trim($v);
92 $v = $rest;
93 $r = array_merge($this->r, array(
94 'type' => 'query',
95 'query_type' => $r['type'],
174 'var' => $var,
175 'sub_type' => 'query',
176 'query' => array_merge($this->r, array(
177 'type' => 'query',
178 'query_type' => $r['type'],
modules-defaults.php (https://gitlab.com/Magi1053/Extra) PHP · 250 lines
FormFactory.php (https://github.com/castillojorge/SemdropsMobile.git) PHP · 401 lines
1 <?php
3 /*
226 $defaultOptions = $type->getDefaultOptions($options);
227 $optionValues = array_merge_recursive($optionValues, $type->getAllowedOptionValues($options));
229 foreach ($type->getExtensions() as $typeExtension) {
230 $defaultOptions = array_replace($defaultOptions, $typeExtension->getDefaultOptions($options));
231 $optionValues = array_merge_recursive($optionValues, $typeExtension->getAllowedOptionValues($options));
232 }
234 $options = array_replace($defaultOptions, $options);
235 $knownOptions = array_merge($knownOptions, array_keys($defaultOptions));
236 array_unshift($types, $type);
237 $type = $type->getParent($options);
Answer.php (https://github.com/brtriver/sukonv.git) PHP · 131 lines
1 <?php
3 namespace app\models;
45 'symfony1.4',
46 'Symfony2.0',
47 'CakePHP1.1',
48 'CakePHP1.2',
49 'CakePHP1.3',
50 'CakePHP2.0',
72 $entity = $params['entity']->to('array');
73 if (count($data)) {
74 $answers = array_merge($data, array($entity['_id'] => $entity));
75 } else {
76 $answers = array($entity['_id'] => $entity);
PHPDriver.php (https://github.com/weaverryan/mongodb-odm.git) PHP · 116 lines
1 <?php
2 /*
3 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
24 /**
25 * The PHPDriver invokes a static PHP function on the document class itself passing
26 * a ClassMetadata instance for you to manually populate with mapping information.
27 *
28 * @license http://www.opensource.org/licenses/lgpl-license.php LGPL
29 * @link www.doctrine-project.org
30 * @since 1.0
32 * @author Roman Borschel <roman@code-factory.org>
33 */
34 class PHPDriver implements Driver
35 {
36 private $paths = array();
DefaultOptions.php (https://github.com/Exercise/symfony.git) PHP · 320 lines
1 <?php
3 /*
18 * Helper for specifying and resolving inter-dependent options.
19 *
20 * Options are a common pattern for initializing classes in PHP. Avoiding the
21 * problems related to this approach is however a non-trivial task. Usually,
22 * both classes and subclasses should be able to set default option values.
235 $this->validateOptionNames(array_keys($allowedValues));
237 $this->allowedValues = array_merge_recursive($this->allowedValues, $allowedValues);
238 }
meta-box-saves.inc.php (https://gitlab.com/Gashler/dp) PHP · 148 lines
1 <?php
2 /**
3 * Meta box saves.
73 for ($n = 0, $new_options = array (); $n <= $GLOBALS["WS_PLUGIN__"]["s2member"]["c"]["levels"]; $n++)
74 $new_options = array_merge ($new_options, array ("ws_plugin__s2member_level" . $n . "_pages" => trim (implode (",", $pages[$n]))));
76 foreach(array_keys(get_defined_vars())as$__v)$__refs[$__v]=&$$__v;
99 for ($n = 0, $new_options = array (); $n <= $GLOBALS["WS_PLUGIN__"]["s2member"]["c"]["levels"]; $n++)
100 $new_options = array_merge ($new_options, array ("ws_plugin__s2member_level" . $n . "_posts" => trim (implode (",", $posts[$n]))));
102 foreach(array_keys(get_defined_vars())as$__v)$__refs[$__v]=&$$__v;
Multi.php (https://github.com/Martin1982/IBMessagingWorkshopServer.git) PHP · 318 lines
1 <?php
2 /**
3 * Zend Framework
22 /** Zend_Form_Element_Xhtml */
23 // require_once 'Zend/Form/Element/Xhtml.php';
25 /**
31 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
32 * @license http://framework.zend.com/license/new-bsd New BSD License
33 * @version $Id: Multi.php 20096 2010-01-06 02:05:09Z bkarwin $
34 */
35 abstract class Zend_Form_Element_Multi extends Zend_Form_Element_Xhtml
252 // optgroup instead of option label
253 if (is_array($opt_label)) {
254 $options = array_merge($options, array_keys($opt_label));
255 }
256 else {
related.php (https://github.com/zakgrant/forkcms.git) PHP · 178 lines
1 <?php
3 /**
137 // get tags for page
138 $tags = (array) FrontendTagsModel::getForItem('pages', $pageId);
139 foreach($tags as $tag) $this->tags = array_merge((array) $this->tags, (array) $tag['name']);
141 // get page record
159 // get record's tags
160 $tags = (array) FrontendTagsModel::getForItem($block['module'], $record['id']);
161 foreach($tags as $tag) $this->tags = array_merge((array) $this->tags, (array) $tag['name']);
162 }
163 }
Multi.php (https://github.com/grandison/budo16.git) PHP · 318 lines
1 <?php
2 /**
3 * Zend Framework
22 /** Zend_Form_Element_Xhtml */
23 // require_once 'Zend/Form/Element/Xhtml.php';
25 /**
31 * @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
32 * @license http://framework.zend.com/license/new-bsd New BSD License
33 * @version $Id: Multi.php 16218 2009-06-21 19:44:04Z thomas $
34 */
35 abstract class Zend_Form_Element_Multi extends Zend_Form_Element_Xhtml
252 // optgroup instead of option label
253 if (is_array($opt_label)) {
254 $options = array_merge($options, array_keys($opt_label));
255 }
256 else {
Csv.php (https://github.com/grjones/qframe.git) PHP · 121 lines
1 <?php
2 /**
3 * Zend Framework
16 * @package Zend_Translate
17 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
18 * @version $Id: Csv.php 21662 2010-03-27 20:23:42Z thomas $
19 * @license http://framework.zend.com/license/new-bsd New BSD License
20 */
23 /** Zend_Locale */
24 require_once 'Zend/Locale.php';
26 /** Zend_Translate_Adapter */
27 require_once 'Zend/Translate/Adapter.php';
widget-layered_nav_filters.php (https://github.com/markjaquith/woocommerce.git) PHP · 109 lines
usergroups.php (https://github.com/itnaegele/system.git) PHP · 156 lines
CustomActions.php (https://github.com/livinglab/openlab.git) PHP · 307 lines
1 <?php
3 class DLM_Custom_Actions {
61 echo "<select name='dlm_download_category' id='dropdown_dlm_download_category'>";
62 echo '<option value="" ' . selected( $dlm_download_category, '', false ) . '>' . esc_html__( 'Select a category', 'download-monitor' ) . '</option>';
63 echo $this->walk_category_dropdown_tree( $terms, 0, $r ); //phpcs:ignore
64 echo '</select>';
132 $vars['orderby'] = 'ID';
133 } elseif ( 'download_count' == $vars['orderby'] ) {
134 $vars = array_merge( $vars, array(
135 'meta_key' => '_download_count',
136 'orderby' => 'meta_value_num'
139 } elseif ( 'featured' == $vars['orderby'] ) {
140 $vars = array_merge( $vars, array(
141 'meta_key' => '_featured',
142 'orderby' => 'meta_value'
association.php (https://bitbucket.org/pombredanne/spip-zone-treemap.git) PHP · 244 lines
1 <?php
2 /**
3 * Plugin Association
237 global $tables_principales;
238 include_spip('base/serial');
239 $tables_principales = array_merge($tables_principales, $association_tables_principales);
241 global $tables_auxiliaires;
242 include_spip('base/auxiliaires');
243 $tables_auxiliaires = array_merge($tables_auxiliaires, $association_tables_auxiliaires);
244 ?>
Grammar.php (https://gitlab.com/mehdi-zarrin/Stretchy) PHP · 188 lines
Cache.php (https://gitlab.com/yousafsyed/easternglamor) PHP · 130 lines
1 <?php
2 /**
3 * Copyright © 2016 Magento. All rights reserved.
67 $images = $config->getMediaEntities('Magento_Catalog', ImageHelper::MEDIA_TYPE_CONFIG_NODE);
68 foreach ($images as $imageId => $imageData) {
69 $this->data[$theme->getCode() . $imageId] = array_merge(['id' => $imageId], $imageData);
70 }
71 }
100 * @param string $file
101 * @return $this
102 * @SuppressWarnings(PHPMD.CyclomaticComplexity)
103 * @SuppressWarnings(PHPMD.NPathComplexity)
Abstract.php (https://gitlab.com/LisovyiEvhenii/ismextensions) PHP · 135 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_ImportExport
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 */
77 {
78 if (is_array($debugData)) {
79 $this->_logTrace = array_merge($this->_logTrace, $debugData);
80 } else {
81 $this->_logTrace[] = $debugData;
Csv.php (https://gitlab.com/fabiorf/curso-zend1-aula1) PHP · 121 lines
1 <?php
2 /**
3 * Zend Framework
16 * @package Zend_Translate
17 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
18 * @version $Id: Csv.php 24593 2012-01-05 20:35:02Z matthew $
19 * @license http://framework.zend.com/license/new-bsd New BSD License
20 */
23 /** Zend_Locale */
24 require_once 'Zend/Locale.php';
26 /** Zend_Translate_Adapter */
27 require_once 'Zend/Translate/Adapter.php';
MailTransport.php (https://gitlab.com/Sigpot/AirSpot) PHP · 257 lines
1 <?php
3 /*
14 * It is advised that users do not use this transport if at all possible
15 * since a number of plugin features cannot be used in conjunction with this
16 * transport due to the internal interface in PHP itself.
17 *
18 * The level of error reporting with this transport is incredibly weak, again
19 * due to limitations of PHP's internal mail() function. You'll get an
20 * all-or-nothing result from sending.
21 *
156 unset($messageStr);
158 if ("\r\n" != PHP_EOL) {
159 // Non-windows (not using SMTP)
160 $headers = str_replace("\r\n", PHP_EOL, $headers);
Writer.php (https://gitlab.com/billyprice1/app-download.org) PHP · 317 lines
1 <?php
3 namespace DrSlump\Protobuf\Codec\Binary;
16 public function __construct()
17 {
18 $this->_fd = fopen('php://memory', 'wb');
19 }
86 }
87 } else if (function_exists('gmp_init')) {
88 $value = PHP_INT_SIZE < 8
89 ? gmp_and($value, '0x0ffffffffffffffff')
90 : sprintf('%u', $value);
92 $values = $this->varint_gmp($value);
93 } else if (PHP_INT_SIZE < 8) {
94 throw new \OutOfBoundsException(
95 "PHP versions compiled with 32bit integers can only support negative integer encoding with GMP extension ($value was given)"
update.php (https://github.com/francisreboucas/revolution.git) PHP · 113 lines
class-itsec-lib-directory.php (https://gitlab.com/kath.de/cibedo_cibedo.de) PHP · 265 lines
PdoSessionHandler.php (https://gitlab.com/x33n/Backbone-Music-Store) PHP · 231 lines
Multi.php (https://github.com/MarcelloDuarte/zf2.git) PHP · 319 lines
smarty_internal_compile_include.php (https://github.com/raphaelbastide/berta.git) PHP · 155 lines
1 <?php
3 /**
49 $compiled_tpl = $tpl->getCompiledTemplate();
50 // merge compiled code for {function} tags
51 $compiler->template->properties['function'] = array_merge($compiler->template->properties['function'], $tpl->properties['function']);
52 // merge filedependency by evaluating header code
53 preg_match_all("/(<\?php \/\*%%SmartyHeaderCode:{$tpl->properties['nocache_hash']}%%\*\/(.+?)\/\*\/%%SmartyHeaderCode%%\*\/\?>\n)/s", $compiled_tpl, $result);
59 $compiler->template->has_nocache_code = $saved_has_nocache_code;
60 // remove header code
61 $compiled_tpl = preg_replace("/(<\?php \/\*%%SmartyHeaderCode:{$tpl->properties['nocache_hash']}%%\*\/(.+?)\/\*\/%%SmartyHeaderCode%%\*\/\?>\n)/s", '', $compiled_tpl);
62 if ($tpl->has_nocache_code) {
63 // replace nocache_hash
118 }
119 // create template object
120 $_output = "<?php \$_template = new {$compiler->smarty->template_class}($include_file, \$_smarty_tpl->smarty, \$_smarty_tpl, \$_smarty_tpl->cache_id, \$_smarty_tpl->compile_id, $_caching, $_cache_lifetime);\n";
121 // delete {include} standard attributes
122 unset($_attr['file'], $_attr['assign'], $_attr['cache_lifetime'], $_attr['nocache'], $_attr['caching'], $_attr['scope'], $_attr['inline']);
AdminWebModule.php (https://github.com/Alex8452/Kurogo-Mobile-Web-Doc-Translation.git) PHP · 247 lines
Sql.php (https://github.com/ewandor/horde.git) PHP · 253 lines
FormExtension.php (https://bitbucket.org/wayfarer/verse.git) PHP · 256 lines
1 <?php
3 /*
208 do {
209 if (isset($this->themes[$parent])) {
210 $all = array_merge($all, $this->themes[$parent]);
211 }
212 } while ($parent = $parent->getParent());
239 $parent = $resource;
240 while (false !== $parent = $parent->getParent(array())) {
241 $names = array_merge($names, $parent->getBlockNames());
242 }
Info.php (https://github.com/livinglab/openlab.git) PHP · 132 lines
1 <?php
2 if ( !class_exists('Puc_v4p10_Plugin_Info', false) ):
28 public $requires;
29 public $tested;
30 public $requires_php;
31 public $upgrade_notice;
96 'name', 'slug', 'version', 'requires', 'tested', 'rating', 'upgrade_notice',
97 'num_ratings', 'downloaded', 'active_installs', 'homepage', 'last_updated',
98 'requires_php',
99 );
100 foreach($sameFormat as $field){
109 $info->download_link = $this->download_url;
110 $info->author = $this->getFormattedAuthor();
111 $info->sections = array_merge(array('description' => ''), $this->sections);
113 if ( !empty($this->banners) ) {
Info.php (https://github.com/livinglab/openlab.git) PHP · 132 lines
1 <?php
2 if ( !class_exists('Puc_v4p11_Plugin_Info', false) ):
28 public $requires;
29 public $tested;
30 public $requires_php;
31 public $upgrade_notice;
96 'name', 'slug', 'version', 'requires', 'tested', 'rating', 'upgrade_notice',
97 'num_ratings', 'downloaded', 'active_installs', 'homepage', 'last_updated',
98 'requires_php',
99 );
100 foreach($sameFormat as $field){
109 $info->download_link = $this->download_url;
110 $info->author = $this->getFormattedAuthor();
111 $info->sections = array_merge(array('description' => ''), $this->sections);
113 if ( !empty($this->banners) ) {
question.php (https://github.com/kodeplay/kodelearn.git) PHP · 251 lines
1 <?php defined('SYSPATH') or die('No direct script access.');
3 abstract class Question {
177 $validator = $question->validator($data);
178 if (!$validator->check() || !$this->validate_attributes($data['attributes'])) {
179 $this->_validation_errors = array_merge($this->_validation_errors, $validator->errors('question'));
180 return false;
181 }
SassFunctionDefinitionNode.php (https://bitbucket.org/pombredanne/spip-zone-treemap.git) PHP · 116 lines
autocompletion.php (https://bitbucket.org/pombredanne/spip-zone-treemap.git) PHP · 96 lines
1 <?php
3 /* Charger un SPIP minimum => Pour utiliser les foncitons spip (sql_, include_spip(), etc.)
6 // recherche du loader SPIP.
7 $deep = 2;
8 $lanceur = 'ecrire/inc_version.php';
9 $include = '../../' . $lanceur;
93 if(!empty($message)) $infos [] = array("message" => $message);
94 if($resultat === true) echo json_encode($liste);
95 else echo json_encode(array_merge ($infos, $liste));
96 }
agenda_evenements.php (https://bitbucket.org/pombredanne/spip-zone-treemap.git) PHP · 107 lines
1 <?php
2 // -----------------------------------------------------------------------------
3 // Declaration des tables evenements
86 "syndic" => "varchar(3) NOT NULL");
87 if (defined('_DIR_PLUGIN_AGENDA'))
88 $spip_groupes_mots = array_merge($spip_groupes_mots,array("evenements" => "varchar(3) NOT NULL"));
89 if (defined('_DIR_PLUGIN_PIMAGENDA'))
90 $spip_groupes_mots = array_merge($spip_groupes_mots,array("pim_agenda" => "varchar(3) NOT NULL"));
91 $spip_groupes_mots = array_merge($spip_groupes_mots,array(
92 "minirezo" => "varchar(3) NOT NULL",
93 "comite" => "varchar(3) NOT NULL",
class.base_collection.php (https://github.com/Canuckaholic/Pop-Digital.git) PHP · 369 lines
1 <?php
3 /**
250 $pool = array();
251 foreach ( $buckets as $bucket ) {
252 $pool = array_merge($pool, $bucket);
253 }
254 //Fill with items
255 $items = array_merge( array_fill_keys($pool, null), $items);
256 }
257 }
288 $this->items_meta[$item] = array();
289 }
290 $this->items_meta[$item] = array_merge($this->items_meta[$item], $meta);
291 }
292 return $this;
Revisions.php (https://gitlab.com/nitm/yii2-widgets) PHP · 140 lines
1 <?php
2 /**
3 * @link http://www.yiiframework.com/
90 {
91 $this->model->queryOptions['orderBy'] = ['id' => SORT_DESC];
92 //$this->model->queryOptions['andWhere'] = array_merge(ArrayHelper::getValue($this->model->queryOptions, 'andWhere', []), ['disabled' => false]);
93 $dataProvider = new \yii\data\ArrayDataProvider([
94 "allModels" => (is_array($this->items) && !empty($this->items)) ? $this->items : $this->model->getModels(),
repository.php (https://gitlab.com/campus-academy/krowkaramel) PHP · 303 lines
taxonomy.php (https://gitlab.com/WPonEB/WPonEB) PHP · 290 lines
ComputerLanguage.php (https://github.com/nystudio107/craft-seomatic.git) PHP · 325 lines
1 <?php
2 /**
3 * SEOmatic plugin for Craft CMS 3.x
283 {
284 parent::init();
285 self::$schemaPropertyNames = array_merge(
286 parent::$schemaPropertyNames,
287 self::$_schemaPropertyNames
288 );
290 self::$schemaPropertyExpectedTypes = array_merge(
291 parent::$schemaPropertyExpectedTypes,
292 self::$_schemaPropertyExpectedTypes
293 );
295 self::$schemaPropertyDescriptions = array_merge(
296 parent::$schemaPropertyDescriptions,
297 self::$_schemaPropertyDescriptions
CaptureRequestTest.php (https://gitlab.com/agungpambudi/php-phantomjs) PHP · 568 lines
ratings.test.php (https://github.com/siran/ratings.git) PHP · 306 lines
1 <?php
2 /**
3 * Copyright 2010, Cake Development Corporation (http://cakedc.com)
7 *
8 * @copyright Copyright 2010, Cake Development Corporation (http://cakedc.com)
9 * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
10 */
299 private function __initControllerAndRatings($params = array(), $doStartup = true) {
300 $_default = array('named' => array(), 'pass' => array());
301 $this->Controller->params = array_merge($_default, $params);
302 $this->Controller->Component->init($this->Controller);
303 $this->Controller->Component->initialize($this->Controller);
ArrayCharacterStream.php (https://bitbucket.org/amitholkar/zenfile-18-05.git) PHP · 296 lines
1 <?php
3 /*
176 $this->_offset += ($i - $this->_offset); // Limit function calls
178 return call_user_func_array('array_merge', $arrays);
179 }
193 $startLength = $this->_charReader->getInitialByteSize();
195 $fp = fopen('php://memory', 'w+b');
196 fwrite($fp, $chars);
197 unset($chars);
209 $new = $this->_reloadBuffer($fp, 100);
210 if ($new) {
211 $buffer = array_merge($buf, $new);
212 $buf_len = count($buffer);
213 $buf_pos = 0;
BaseNotStorageEntityModel.php (https://github.com/sergiygladkyy/OEF.git) PHP · 401 lines
1 <?php
3 require_once('lib/model/base/BaseModel.php');
314 if (!empty($err))
315 {
316 $errors = array_merge($errors, $err);
317 $not_valid = array_keys($errors);
318 }
322 $err = $this->checkReferences($references);
324 if (!empty($err)) $errors = array_merge($errors, $err);
326 if (!empty($errors)) return $errors;
function.wp_mail.php (https://gitlab.com/itinarraylab/ongage-custom-sender) PHP · 241 lines
10 // (Re)create it, if it's gone missing
11 if ( !is_object( $phpmailer ) || !is_a( $phpmailer, 'PHPMailer' ) ) {
12 require_once ABSPATH . WPINC . '/class-phpmailer.php';
13 require_once ABSPATH . WPINC . '/class-smtp.php';
14 $phpmailer = new PHPMailer( true );
15 }
98 $phpmailer->ClearAttachments();
99 $phpmailer->ClearBCCs();/* $phpmailer->ClearCCs(); $phpmailer->ClearCustomHeaders(); $phpmailer->ClearReplyTos(); */
101 // From email and name
229 }
231 do_action_ref_array( 'phpmailer_init', array( &$phpmailer ) );
233 // Send!