100+ results for 'php get_object_vars'
Not the results you expected?
BaseDrawing.php (https://gitlab.com/techniconline/kmc) PHP · 515 lines
22 * @package PHPExcel_Worksheet
23 * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel)
24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
25 * @version ##VERSION##, ##DATE##
34 * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel)
35 */
36 class PHPExcel_Worksheet_BaseDrawing implements PHPExcel_IComparable
37 {
38 /**
221 * @throws PHPExcel_Exception
222 * @return PHPExcel_Worksheet_BaseDrawing
223 */
224 public function setWorksheet(PHPExcel_Worksheet $pValue = null, $pOverrideOld = false)
245 $this->setWorksheet($pValue);
246 } else {
247 throw new PHPExcel_Exception("A PHPExcel_Worksheet has already been assigned. Drawings can only exist on one PHPExcel_Worksheet.");
248 }
249 }
capabilities.php (https://github.com/socialplanning/opencore-wordpress-mu.git) PHP · 482 lines
basicCRUDPDO.class.php (https://gitlab.com/karl3/gs_libs) PHP · 364 lines
HeaderFooter.php (https://gitlab.com/mbase2/source-code) PHP · 491 lines
comment.php (https://gitlab.com/Blueprint-Marketing/wp-cli) PHP · 458 lines
ElggMenuItem.php (https://github.com/wangaiying/elgg4ysu.git) PHP · 568 lines
Column.php (https://gitlab.com/ptisky/API_prestashop) PHP · 394 lines
22 * @package PHPExcel_Worksheet
23 * @copyright Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel)
24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
25 * @version 1.7.9, 2013-06-02
33 * @package PHPExcel_Worksheet
34 * @copyright Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel)
35 */
36 class PHPExcel_Worksheet_AutoFilter_Column
197 *
198 * @param string $pFilterType
199 * @throws PHPExcel_Exception
200 * @return PHPExcel_Worksheet_AutoFilter_Column
325 * @param PHPExcel_Worksheet_AutoFilter_Column_Rule $pRule
326 * @param boolean $returnRule Flag indicating whether the rule object or the column object should be returned
327 * @return PHPExcel_Worksheet_AutoFilter_Column|PHPExcel_Worksheet_AutoFilter_Column_Rule
328 */
329 public function addRule(PHPExcel_Worksheet_AutoFilter_Column_Rule $pRule, $returnRule=TRUE) {
dumper.php (https://github.com/cgajardo/repositorium.git) PHP · 360 lines
email_queue_api.php (https://github.com/fusenigk/mantisbt-1.git) PHP · 198 lines
1 <?php
2 # MantisBT - A PHP based bugtracking system
24 * @link http://www.mantisbt.org
25 *
26 * @uses constant_api.php
27 * @uses database_api.php
28 * @uses error_api.php
29 * @uses lang_api.php
30 * @uses utility_api.php
31 */
33 require_api( 'constant_inc.php' );
34 require_api( 'database_api.php' );
Properties.php (https://github.com/tmccormi/openemr.git) PHP · 629 lines
1 <?php
3 namespace PhpOffice\PhpSpreadsheet\Document;
5 class Properties
486 /**
487 * Implement PHP __clone to create a deep clone, not just a shallow copy.
488 */
489 public function __clone()
490 {
491 $vars = get_object_vars($this);
492 foreach ($vars as $key => $value) {
493 if (is_object($value)) {
Data.php (https://bitbucket.org/acidel/buykoala.git) PHP · 239 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_Api
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 */
87 && property_exists($obj, 'value')
88 ) {
89 if (count(array_keys(get_object_vars($obj))) == 2) {
90 $obj = array($obj->key => $obj->value);
91 return true;
Protection.php (https://gitlab.com/JrLucena/moodle) PHP · 581 lines
22 * @package PHPExcel_Worksheet
23 * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel)
24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
25 * @version ##VERSION##, ##DATE##
33 * @package PHPExcel_Worksheet
34 * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel)
35 */
36 class PHPExcel_Worksheet_Protection
289 *
290 * @param boolean $pValue
291 * @return PHPExcel_Worksheet_Protection
292 */
293 public function setFormatColumns($pValue = false)
421 *
422 * @param boolean $pValue
423 * @return PHPExcel_Worksheet_Protection
424 */
425 public function setDeleteRows($pValue = false)
options.php (https://github.com/teamplus/teamplus.git) PHP · 366 lines
1 <?php
2 /**
3 * base include file for SimpleTest
4 * @package SimpleTest
5 * @version $Id: options.php 6354 2009-04-15 02:41:21Z mvdam $
6 */
206 /**
207 * Static methods for compatibility between different
208 * PHP versions.
209 * @package SimpleTest
210 */
213 /**
214 * Identity test. Drops back to equality + types for PHP5
215 * objects as the === operator counts as the
216 * stronger reference constraint.
Protection.php (https://github.com/chrishubber/storytlr.git) PHP · 533 lines
22 * @package PHPExcel_Worksheet
23 * @copyright Copyright (c) 2006 - 2008 PHPExcel (http://www.codeplex.com/PHPExcel)
24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
25 * @version 1.6.3, 2008-08-25
29 /** PHPExcel_Shared_PasswordHasher */
30 require_once 'PHPExcel/Shared/PasswordHasher.php';
33 /**
34 * PHPExcel_Worksheet_Protection
35 *
36 * @category PHPExcel
37 * @package PHPExcel_Worksheet
38 * @copyright Copyright (c) 2006 - 2008 PHPExcel (http://www.codeplex.com/PHPExcel)
39 */
40 class PHPExcel_Worksheet_Protection
Column.php (https://github.com/sbourget/moodle.git) PHP · 404 lines
1 <?php
3 namespace PhpOffice\PhpSpreadsheet\Worksheet\AutoFilter;
5 use PhpOffice\PhpSpreadsheet\Exception as PhpSpreadsheetException;
6 use PhpOffice\PhpSpreadsheet\Worksheet\AutoFilter;
183 $this->setEvaluatedFalse();
184 if (!in_array($filterType, self::$filterTypes)) {
185 throw new PhpSpreadsheetException('Invalid filter type for column AutoFilter.');
186 }
187 if ($filterType === self::AUTOFILTER_FILTERTYPE_CUSTOMFILTER && count($this->ruleset) > 2) {
390 $this->parent = null;
391 } elseif ($key === 'ruleset') {
392 // The columns array of \PhpOffice\PhpSpreadsheet\Worksheet\Worksheet\AutoFilter objects
393 $this->ruleset = [];
394 foreach ($value as $k => $v) {
Indicator.php (https://gitlab.com/mnomansheikh/ampuz) PHP · 205 lines
result.class.php (https://bitbucket.org/hanutimes/hanutimes.git) PHP · 253 lines
dumper.php (https://github.com/greevex/mzz-framework-blank-application.git) PHP · 360 lines
Column.php (https://gitlab.com/marchelo8622/pluslawip) PHP · 394 lines
22 * @package PHPExcel_Worksheet
23 * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel)
24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
25 * @version 1.8.0, 2014-03-02
33 * @package PHPExcel_Worksheet
34 * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel)
35 */
36 class PHPExcel_Worksheet_AutoFilter_Column
197 *
198 * @param string $pFilterType
199 * @throws PHPExcel_Exception
200 * @return PHPExcel_Worksheet_AutoFilter_Column
325 * @param PHPExcel_Worksheet_AutoFilter_Column_Rule $pRule
326 * @param boolean $returnRule Flag indicating whether the rule object or the column object should be returned
327 * @return PHPExcel_Worksheet_AutoFilter_Column|PHPExcel_Worksheet_AutoFilter_Column_Rule
328 */
329 public function addRule(PHPExcel_Worksheet_AutoFilter_Column_Rule $pRule, $returnRule=TRUE) {
class-wp-comment.php (https://gitlab.com/webkod3r/tripolis) PHP · 395 lines
Column.php (https://gitlab.com/alexandresgv/siteentec) PHP · 394 lines
22 * @package PHPExcel_Worksheet
23 * @copyright Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel)
24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
25 * @version ##VERSION##, ##DATE##
33 * @package PHPExcel_Worksheet
34 * @copyright Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel)
35 */
36 class PHPExcel_Worksheet_AutoFilter_Column
197 *
198 * @param string $pFilterType
199 * @throws PHPExcel_Exception
200 * @return PHPExcel_Worksheet_AutoFilter_Column
325 * @param PHPExcel_Worksheet_AutoFilter_Column_Rule $pRule
326 * @param boolean $returnRule Flag indicating whether the rule object or the column object should be returned
327 * @return PHPExcel_Worksheet_AutoFilter_Column|PHPExcel_Worksheet_AutoFilter_Column_Rule
328 */
329 public function addRule(PHPExcel_Worksheet_AutoFilter_Column_Rule $pRule, $returnRule=TRUE) {
Protection.php (https://github.com/libersoft/fengoffice-ls.git) PHP · 529 lines
1 <?php
2 /**
3 * PHPExcel
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 *
21 * @category PHPExcel
22 * @package PHPExcel_Worksheet
23 * @copyright Copyright (c) 2006 - 2008 PHPExcel (http://www.codeplex.com/PHPExcel)
24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
25 * @version 1.6.3, 2008-08-25
33 * @package PHPExcel_Worksheet
34 * @copyright Copyright (c) 2006 - 2008 PHPExcel (http://www.codeplex.com/PHPExcel)
35 */
36 class PHPExcel_Worksheet_Protection
Column.php (https://gitlab.com/iarafat/web-apps-php-b-26) PHP · 394 lines
22 * @package PHPExcel_Worksheet
23 * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel)
24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
25 * @version ##VERSION##, ##DATE##
33 * @package PHPExcel_Worksheet
34 * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel)
35 */
36 class PHPExcel_Worksheet_AutoFilter_Column
197 *
198 * @param string $pFilterType
199 * @throws PHPExcel_Exception
200 * @return PHPExcel_Worksheet_AutoFilter_Column
325 * @param PHPExcel_Worksheet_AutoFilter_Column_Rule $pRule
326 * @param boolean $returnRule Flag indicating whether the rule object or the column object should be returned
327 * @return PHPExcel_Worksheet_AutoFilter_Column|PHPExcel_Worksheet_AutoFilter_Column_Rule
328 */
329 public function addRule(PHPExcel_Worksheet_AutoFilter_Column_Rule $pRule, $returnRule=TRUE) {
gantryini.class.php (https://bitbucket.org/elijahvsjesus/tandava.git) PHP · 345 lines
PackageCreator.php (https://gitlab.com/daniruizcamacho/pfcascensores) PHP · 373 lines
1 <?php namespace Illuminate\Workbench;
3 use Illuminate\Filesystem\Filesystem;
102 public function writeSupportFiles(Package $package, $directory, $plain)
103 {
104 foreach (array('PhpUnit', 'Travis', 'Composer', 'Ignore') as $file)
105 {
106 $this->{"write{$file}File"}($package, $directory, $plain);
110 /**
111 * Write the PHPUnit stub file.
112 *
113 * @param \Illuminate\Workbench\Package $package
115 * @return void
116 */
117 protected function writePhpUnitFile(Package $package, $directory)
118 {
119 $stub = __DIR__.'/stubs/phpunit.xml';
Constraint.php (https://github.com/gimler/symfony.git) PHP · 310 lines
Component.php (https://gitlab.com/szlongshu/manaphp) PHP · 192 lines
7 namespace ManaPHP {
9 use ManaPHP\Event\Manager;
11 /**
12 * ManaPHP\Component
13 *
14 * @property \ManaPHP\Mvc\DispatcherInterface $dispatcher;
26 //* @property \ManaPHP\Security $security
27 * //* @property \ManaPHP\CryptInterface $crypt
28 * // * @property \ManaPHP\EscaperInterface $escaper
29 * @property \ManaPHP\Mvc\Model\ManagerInterface $modelsManager
30 * @property \ManaPHP\Mvc\Model\MetadataInterface $modelsMetadata
31 // * @property \ManaPHP\Assets\Manager $assets
32 * @property \ManaPHP\Di|\ManaPHP\DiInterface $di
33 * @property \ManaPHP\Http\Session\BagInterface $persistent
class-wp-site.php (https://gitlab.com/pankajmohale/chef2go) PHP · 366 lines
1 <?php
2 /**
3 * Site API: WP_Site class
202 */
203 public function __construct( $site ) {
204 foreach( get_object_vars( $site ) as $key => $value ) {
205 $this->$key = $value;
206 }
216 */
217 public function to_array() {
218 return get_object_vars( $this );
219 }
338 // Create a raw copy of the object for backwards compatibility with the filter below.
339 $details = new stdClass();
340 foreach ( get_object_vars( $this ) as $key => $value ) {
341 $details->$key = $value;
342 }
registry.php (https://github.com/dextercowley/joomla-platform.git) PHP · 454 lines
dumper.php (https://bitbucket.org/laborautonomo/laborautonomo-site.git) PHP · 359 lines
Event.php (https://gitlab.com/e0/mautic) PHP · 662 lines
Conditional.php (https://gitlab.com/Japang-Jawara/jawara-penilaian) PHP · 274 lines
1 <?php
3 namespace PhpOffice\PhpSpreadsheet\Style;
5 use PhpOffice\PhpSpreadsheet\IComparable;
260 /**
261 * Implement PHP __clone to create a deep clone, not just a shallow copy.
262 */
263 public function __clone()
264 {
265 $vars = get_object_vars($this);
266 foreach ($vars as $key => $value) {
267 if (is_object($value)) {
DataValidation.php (https://github.com/allinside/Yii-CMS.git) PHP · 474 lines
22 * @package PHPExcel_Cell
23 * @copyright Copyright (c) 2006 - 2011 PHPExcel (http://www.codeplex.com/PHPExcel)
24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
25 * @version 1.7.6, 2011-02-27
33 * @package PHPExcel_Cell
34 * @copyright Copyright (c) 2006 - 2011 PHPExcel (http://www.codeplex.com/PHPExcel)
35 */
36 class PHPExcel_Cell_DataValidation
188 *
189 * @param string $value
190 * @return PHPExcel_Cell_DataValidation
191 */
192 public function setFormula1($value = '') {
230 * @return PHPExcel_Cell_DataValidation
231 */
232 public function setType($value = PHPExcel_Cell_DataValidation::TYPE_NONE) {
233 $this->_type = $value;
234 return $this;
class.idl.php (https://github.com/tmjnaid/hiphop-php.git) PHP · 387 lines
1 <?php
2 /**
3 * Automatically generated by running "php schema.php class".
4 *
5 * You may modify the file, but re-running schema.php against this file will
33 // 'name' => name of the function
34 // 'desc' => description of the function's purpose
35 // 'flags' => attributes of the function, see base.php for possible values
36 // 'opt' => optimization callback function's name for compiler
37 // 'note' => additional note about this function's schema
57 'return' => array(
58 'type' => VariantMap,
59 'desc' => "Returns an array of the names of the declared classes in the current script.\n\nNote that depending on what extensions you have compiled or loaded into PHP, additional classes could be present. This means that you will not be able to define your own classes using these names. There is a list of predefined classes in the Predefined Classes section of the appendices.",
60 ),
61 ));
Protection.php (https://github.com/dziamid/Marcel.git) PHP · 533 lines
22 * @package PHPExcel_Worksheet
23 * @copyright Copyright (c) 2006 - 2009 PHPExcel (http://www.codeplex.com/PHPExcel)
24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
25 * @version ##VERSION##, ##DATE##
29 /** PHPExcel_Shared_PasswordHasher */
30 require_once 'PHPExcel/Shared/PasswordHasher.php';
33 /**
34 * PHPExcel_Worksheet_Protection
35 *
36 * @category PHPExcel
37 * @package PHPExcel_Worksheet
38 * @copyright Copyright (c) 2006 - 2009 PHPExcel (http://www.codeplex.com/PHPExcel)
39 */
40 class PHPExcel_Worksheet_Protection
dumper.php (https://github.com/idler/limb.git) PHP · 360 lines
collection.php (https://github.com/loonies/kohana-jelly.git) PHP · 250 lines
environment.php (https://github.com/nadavkav/MoodleTAO.git) PHP · 191 lines
1 <?php // $Id$
2 /**
3 * Info about the local environment, wrt RPC
4 *
5 * This should really be a singleton. A PHP5 Todo I guess.
6 */
58 $hostobject = get_record('mnet_host','id', $CFG->mnet_localhost_id);
59 if(is_object($hostobject)) {
60 $temparr = get_object_vars($hostobject);
61 foreach($temparr as $key => $value) {
62 $this->$key = $value;
dumper.php (https://github.com/nigeldaley/moodle.git) PHP · 360 lines
registry.php (https://github.com/Paladin/joomla-platform.git) PHP · 472 lines
1 <?php
2 /**
3 * @package Joomla.Platform
89 *
90 * @since 12.2
91 * @note The interface is only present in PHP 5.4 and up.
92 */
93 public function jsonSerialize()
422 if (is_object($data))
423 {
424 $data = get_object_vars($data);
425 }
426 else
456 $array = array();
458 foreach (get_object_vars((object) $data) as $k => $v)
459 {
460 if (is_object($v))
Column.php (https://bitbucket.org/kudutest1/moodlegit.git) PHP · 381 lines
22 * @package PHPExcel_Worksheet
23 * @copyright Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel)
24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
25 * @version ##VERSION##, ##DATE##
33 * @package PHPExcel_Worksheet
34 * @copyright Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel)
35 */
36 class PHPExcel_Worksheet_AutoFilter_Column
185 * @param string $pFilterType
186 * @throws Exception
187 * @return PHPExcel_Worksheet_AutoFilter_Column
188 */
189 public function setFilterType($pFilterType = self::AUTOFILTER_FILTERTYPE_FILTER) {
312 * @param PHPExcel_Worksheet_AutoFilter_Column_Rule $pRule
313 * @param boolean $returnRule Flag indicating whether the rule object or the column object should be returned
314 * @return PHPExcel_Worksheet_AutoFilter_Column|PHPExcel_Worksheet_AutoFilter_Column_Rule
315 */
316 public function addRule(PHPExcel_Worksheet_AutoFilter_Column_Rule $pRule, $returnRule=TRUE) {
RichText.php (https://gitlab.com/ptisky/API_prestashop) PHP · 199 lines
22 * @package PHPExcel_RichText
23 * @copyright Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel)
24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
25 * @version 1.7.9, 2013-06-02
34 * @copyright Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel)
35 */
36 class PHPExcel_RichText implements PHPExcel_IComparable
37 {
38 /**
71 * Add text
72 *
73 * @param PHPExcel_RichText_ITextElement $pText Rich text element
74 * @throws PHPExcel_Exception
160 $this->_richTextElements = $pElements;
161 } else {
162 throw new PHPExcel_Exception("Invalid PHPExcel_RichText_ITextElement[] array passed.");
163 }
164 return $this;
dumper.php (https://github.com/teamplus/teamplus.git) PHP · 360 lines
admin-db.php (https://github.com/itspriddle/itt-capstone.git) PHP · 352 lines
Data.php (https://bitbucket.org/spenna/alexoo_produzione.git) PHP · 253 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_Api
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 */
97 && property_exists($obj, 'value')
98 ) {
99 if (count(array_keys(get_object_vars($obj))) == 2) {
100 $obj = array($obj->key => $obj->value);
101 return true;
setting.php (https://bitbucket.org/faisaluje/tugasku.git) PHP · 245 lines
1 <?php
2 require_once 'startup.php';
14 }
15 //print_r($out); die;
16 //$this->write(tableJson($out, sizeof($out), DataTransaksiPeer::getFieldNames(BasePeer::TYPE_PHPNAME)));
17 echo(tableJson($out, sizeof($out), SubSatkerPeer::getFieldNames(BasePeer::TYPE_PHPNAME)));
65 }
66 //print_r($out); die;
67 //$this->write(tableJson($out, sizeof($out), DataTransaksiPeer::getFieldNames(BasePeer::TYPE_PHPNAME)));
68 echo(tableJson($out, sizeof($out), SatkerPeer::getFieldNames(BasePeer::TYPE_PHPNAME)));
69 */
70 echo (tableJson(getArray($satkers), SatkerPeer::doCount($c), SatkerPeer::getFieldNames(BasePeer::TYPE_PHPNAME)));
72 } else if ($_REQUEST["savedata"] == "satker") {
PhpReferenceCompatibility.php (https://gitlab.com/x33n/ImpressPages) PHP · 433 lines
1 <?php
2 /**
3 * Zend Framework (http://framework.zend.com/)
20 *
21 * This ArrayObject is a rewrite of the implementation to fix
22 * issues with php's implementation of ArrayObject where you
23 * are unable to unset multi-dimensional arrays because you
24 * need to fetch the properties / lists as references.
25 */
26 abstract class PhpReferenceCompatibility implements IteratorAggregate, ArrayAccess, Serializable, Countable
27 {
28 /**
69 $this->storage = $input;
70 $this->setIteratorClass($iteratorClass);
71 $this->protectedProperties = array_keys(get_object_vars($this));
72 }
__CG__CrowdriseAdministrationBundleEntityDemande.php (https://gitlab.com/Marwamimo/Crowdrise_Web) PHP · 301 lines
MapperTest.php (https://github.com/luizfonseca/Relational.git) PHP · 355 lines
1 <?php
3 namespace Respect\Relational;
5 use PDO;
7 class MapperTest extends \PHPUnit_Framework_TestCase {
9 protected $mapper, $posts, $authors, $comments, $categories, $postsCategories;
135 $this->assertEquals(7, $comment->id);
136 $this->assertEquals('Comment Text', $comment->text);
137 $this->assertEquals(3, count(get_object_vars($comment)));
138 $this->assertEquals(5, $comment->post_id->id);
139 $this->assertEquals('Post Title', $comment->post_id->title);
140 $this->assertEquals('Post Text', $comment->post_id->text);
141 $this->assertEquals(4, count(get_object_vars($comment->post_id)));
142 }
junittestcasedb.class.php (https://github.com/foxmask/Booster.git) PHP · 256 lines
object.php (https://bitbucket.org/nlabyt/bcf-ball-4eb2.git) PHP · 327 lines
__CG__EntitiesSentEmail.php (https://gitlab.com/gothcon/cthulhu) PHP · 477 lines
Candidato.php (https://bitbucket.org/brunobispo/webgoal-vagas-api.git) PHP · 425 lines
class-wp-customize-panel.php (https://github.com/mhoofman/wordpress-heroku.git) PHP · 327 lines
139 */
140 public function __construct( $manager, $id, $args = array() ) {
141 $keys = array_keys( get_object_vars( $this ) );
142 foreach ( $keys as $key ) {
143 if ( isset( $args[ $key ] ) ) {
290 $classes = 'accordion-section control-section control-panel control-panel-' . $this->type;
291 ?>
292 <li id="accordion-panel-<?php echo esc_attr( $this->id ); ?>" class="<?php echo esc_attr( $classes ); ?>">
293 <h3 class="accordion-section-title" tabindex="0">
294 <?php echo esc_html( $this->title ); ?>
299 </ul>
300 </li>
301 <?php
302 }
functions.core.php (https://github.com/DatumDroid/DatumDroid-API.git) PHP · 254 lines
1 <?php
3 /**
139 */
140 function dd_load_service( $service = '' ) {
141 require_once( DD_DIR_INC . 'service.' . dd_get_service( $service ) . '.php' );
142 }
151 */
152 function dd_convert_url_query( $url = '' ) {
153 $query = parse_url( $url, PHP_URL_QUERY );
154 $query = html_entity_decode( $query );
155 $queryParts = explode( '&', $query );
176 function dd_parse_args( $args, $defaults = '' ) {
177 if ( is_object( $args ) ) {
178 $r = get_object_vars( $args );
179 } elseif ( is_array( $args ) ) {
180 $r =& $args;
pagination.php (https://github.com/ggunlugu/ornekler.git) PHP · 285 lines
1 <?php defined('SYSPATH') or die('No direct script access.');
2 /**
3 * Pagination links generator.
7 * @author Kohana Team
8 * @copyright (c) 2008-2009 Kohana Team
9 * @license http://kohanaphp.com/license.html
10 */
11 class Kohana_Pagination {
248 // Pass on the whole Pagination object
249 return $view->set(get_object_vars($this))->set('page', $this)->render();
250 }
RichText.php (https://github.com/Tassader/Spedicka.git) PHP · 199 lines
22 * @package PHPExcel_RichText
23 * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel)
24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
25 * @version 1.8.0, 2014-03-02
34 * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel)
35 */
36 class PHPExcel_RichText implements PHPExcel_IComparable
37 {
38 /**
71 * Add text
72 *
73 * @param PHPExcel_RichText_ITextElement $pText Rich text element
74 * @throws PHPExcel_Exception
160 $this->_richTextElements = $pElements;
161 } else {
162 throw new PHPExcel_Exception("Invalid PHPExcel_RichText_ITextElement[] array passed.");
163 }
164 return $this;
RichText.php (https://gitlab.com/Abubakker/web_apps_php_26) PHP · 199 lines
22 * @package PHPExcel_RichText
23 * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel)
24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
25 * @version ##VERSION##, ##DATE##
34 * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel)
35 */
36 class PHPExcel_RichText implements PHPExcel_IComparable
37 {
38 /**
71 * Add text
72 *
73 * @param PHPExcel_RichText_ITextElement $pText Rich text element
74 * @throws PHPExcel_Exception
160 $this->_richTextElements = $pElements;
161 } else {
162 throw new PHPExcel_Exception("Invalid PHPExcel_RichText_ITextElement[] array passed.");
163 }
164 return $this;
__CG__PiDevClientBundleEntityService.php (https://gitlab.com/galaxy-pidev/AllForDealWeb) PHP · 411 lines
Link.php (https://github.com/pimcore/pimcore.git) PHP · 602 lines
ArrayObject.php (https://gitlab.com/yousafsyed/easternglamor) PHP · 432 lines
1 <?php
2 /**
3 * Zend Framework (http://framework.zend.com/)
65 $this->storage = $input;
66 $this->setIteratorClass($iteratorClass);
67 $this->protectedProperties = array_keys(get_object_vars($this));
68 }
331 public function serialize()
332 {
333 return serialize(get_object_vars($this));
334 }
406 {
407 $ar = unserialize($data);
408 $this->protectedProperties = array_keys(get_object_vars($this));
410 $this->setFlags($ar['flag']);
RichText.php (https://gitlab.com/alexandresgv/siteentec) PHP · 199 lines
22 * @package PHPExcel_RichText
23 * @copyright Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel)
24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
25 * @version ##VERSION##, ##DATE##
34 * @copyright Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel)
35 */
36 class PHPExcel_RichText implements PHPExcel_IComparable
37 {
38 /**
71 * Add text
72 *
73 * @param PHPExcel_RichText_ITextElement $pText Rich text element
74 * @throws PHPExcel_Exception
160 $this->_richTextElements = $pElements;
161 } else {
162 throw new PHPExcel_Exception("Invalid PHPExcel_RichText_ITextElement[] array passed.");
163 }
164 return $this;
Protection.php (https://bitbucket.org/kucing2k/ediassoc.git) PHP · 563 lines
22 * @package PHPExcel_Worksheet
23 * @copyright Copyright (c) 2006 - 2010 PHPExcel (http://www.codeplex.com/PHPExcel)
24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
25 * @version 1.7.4, 2010-08-26
33 * @package PHPExcel_Worksheet
34 * @copyright Copyright (c) 2006 - 2010 PHPExcel (http://www.codeplex.com/PHPExcel)
35 */
36 class PHPExcel_Worksheet_Protection
297 *
298 * @param boolean $pValue
299 * @return PHPExcel_Worksheet_Protection
300 */
301 function setFormatColumns($pValue = false) {
417 *
418 * @param boolean $pValue
419 * @return PHPExcel_Worksheet_Protection
420 */
421 function setDeleteRows($pValue = false) {
mysqli_class_mysqli_properties_no_conn.php (https://gitlab.com/iranjith4/hhvm) PHP · 133 lines
1 <?php
2 $test_table_name = 'test_mysqli_class_mysqli_properties_no_conn_table_1'; require('table.inc');
13 printf("\nObject variables:\n");
14 $variables = array_keys(get_object_vars($mysqli));
15 foreach ($variables as $k => $var) {
16 printf("%s = '%s'\n", $var, var_export(@$mysqli->$var, true));
130 print "done!";
131 ?>
132 <?php error_reporting(0); ?>
133 <?php $test_table_name = 'test_mysqli_class_mysqli_properties_no_conn_table_1'; require_once("clean_table.inc"); ?>
Conditional.php (https://gitlab.com/hoanghung.dev/aloads) PHP · 293 lines
22 * @package PHPExcel_Style
23 * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel)
24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
25 * @version ##VERSION##, ##DATE##
34 * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel)
35 */
36 class PHPExcel_Style_Conditional implements PHPExcel_IComparable
37 {
38 /* Condition types */
117 * Set Condition type
118 *
119 * @param string $pValue PHPExcel_Style_Conditional condition type
120 * @return PHPExcel_Style_Conditional
190 * @deprecated Deprecated, use setConditions instead
191 * @param string $pValue Condition
192 * @return PHPExcel_Style_Conditional
193 */
194 public function setCondition($pValue = '')
Protection.php (https://github.com/allinside/Yii-CMS.git) PHP · 545 lines
22 * @package PHPExcel_Worksheet
23 * @copyright Copyright (c) 2006 - 2011 PHPExcel (http://www.codeplex.com/PHPExcel)
24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
25 * @version 1.7.6, 2011-02-27
33 * @package PHPExcel_Worksheet
34 * @copyright Copyright (c) 2006 - 2011 PHPExcel (http://www.codeplex.com/PHPExcel)
35 */
36 class PHPExcel_Worksheet_Protection
279 *
280 * @param boolean $pValue
281 * @return PHPExcel_Worksheet_Protection
282 */
283 function setFormatColumns($pValue = false) {
399 *
400 * @param boolean $pValue
401 * @return PHPExcel_Worksheet_Protection
402 */
403 function setDeleteRows($pValue = false) {
BaseDrawing.php (https://bitbucket.org/kudutest1/moodlegit.git) PHP · 485 lines
22 * @package PHPExcel_Worksheet
23 * @copyright Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel)
24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
25 * @version ##VERSION##, ##DATE##
34 * @copyright Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel)
35 */
36 class PHPExcel_Worksheet_BaseDrawing implements PHPExcel_IComparable
37 {
38 /**
211 * Set Worksheet
212 *
213 * @param PHPExcel_Worksheet $pValue
214 * @param bool $pOverrideOld If a Worksheet has already been assigned, overwrite it and remove image from old Worksheet?
215 * @throws Exception
238 $this->setWorksheet($pValue);
239 } else {
240 throw new Exception("A PHPExcel_Worksheet has already been assigned. Drawings can only exist on one PHPExcel_Worksheet.");
241 }
242 }
Shadow.php (https://gitlab.com/adamlwalker/generatedata) PHP · 288 lines
22 * @package PHPExcel_Worksheet_Drawing
23 * @copyright Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel)
24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
25 * @version ##VERSION##, ##DATE##
34 * @copyright Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel)
35 */
36 class PHPExcel_Worksheet_Drawing_Shadow implements PHPExcel_IComparable
37 {
38 /* Shadow alignment */
101 /**
102 * Create a new PHPExcel_Worksheet_Drawing_Shadow
103 */
104 public function __construct()
111 $this->_alignment = PHPExcel_Worksheet_Drawing_Shadow::SHADOW_BOTTOM_RIGHT;
112 $this->_color = new PHPExcel_Style_Color(PHPExcel_Style_Color::COLOR_BLACK);
113 $this->_alpha = 50;
114 }
Protection.php (https://bitbucket.org/kudutest1/moodlegit.git) PHP · 290 lines
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 *
21 * @category PHPExcel
22 * @package PHPExcel_Style
23 * @copyright Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel)
24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
25 * @version 1.4.5, 2007-08-23
32 * @category PHPExcel
33 * @package PHPExcel_Style
34 * @copyright Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel)
35 */
36 class PHPExcel_Style_Protection implements PHPExcel_IComparable
37 {
38 /** Protection styles */
dumper.php (https://github.com/orchestra-io/sample-openx.git) PHP · 360 lines
1 <?php
2 /**
3 * base include file for SimpleTest
4 * @package SimpleTest
5 * @subpackage UnitTester
6 * @version $Id: dumper.php 7321 2007-06-05 09:08:01Z andrew.hill@openads.org $
7 */
8 /**
311 }
312 return $this->_describeArrayDifference(
313 get_object_vars($first),
314 get_object_vars($second),
Shadow.php (https://gitlab.com/ptisky/API_prestashop) PHP · 288 lines
22 * @package PHPExcel_Worksheet_Drawing
23 * @copyright Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel)
24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
25 * @version 1.7.9, 2013-06-02
30 * PHPExcel_Worksheet_Drawing_Shadow
31 *
32 * @category PHPExcel
33 * @package PHPExcel_Worksheet_Drawing
34 * @copyright Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel)
35 */
36 class PHPExcel_Worksheet_Drawing_Shadow implements PHPExcel_IComparable
37 {
38 /* Shadow alignment */
111 $this->_alignment = PHPExcel_Worksheet_Drawing_Shadow::SHADOW_BOTTOM_RIGHT;
112 $this->_color = new PHPExcel_Style_Color(PHPExcel_Style_Color::COLOR_BLACK);
113 $this->_alpha = 50;
114 }
HeaderFooterDrawing.php (https://github.com/allinside/Yii-CMS.git) PHP · 350 lines
22 * @package PHPExcel_Worksheet
23 * @copyright Copyright (c) 2006 - 2011 PHPExcel (http://www.codeplex.com/PHPExcel)
24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
25 * @version 1.7.6, 2011-02-27
34 * @copyright Copyright (c) 2006 - 2011 PHPExcel (http://www.codeplex.com/PHPExcel)
35 */
36 class PHPExcel_Worksheet_HeaderFooterDrawing extends PHPExcel_Worksheet_Drawing implements PHPExcel_IComparable
37 {
38 /**
87 /**
88 * Create a new PHPExcel_Worksheet_HeaderFooterDrawing
89 */
90 public function __construct()
113 *
114 * @param string $pValue
115 * @return PHPExcel_Worksheet_HeaderFooterDrawing
116 */
117 public function setName($pValue = '') {
Protection.php (https://gitlab.com/team_fsn/fsn-php) PHP · 545 lines
22 * @package PHPExcel_Worksheet
23 * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel)
24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
25 * @version 1.8.0, 2014-03-02
33 * @package PHPExcel_Worksheet
34 * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel)
35 */
36 class PHPExcel_Worksheet_Protection
279 *
280 * @param boolean $pValue
281 * @return PHPExcel_Worksheet_Protection
282 */
283 function setFormatColumns($pValue = false) {
399 *
400 * @param boolean $pValue
401 * @return PHPExcel_Worksheet_Protection
402 */
403 function setDeleteRows($pValue = false) {
XmlEncoderTest.php (https://github.com/Faianca/symfony.git) PHP · 257 lines
1 <?php
3 namespace Symfony\Tests\Component\Serializer\Encoder;
5 require_once __DIR__.'/../Fixtures/Dummy.php';
6 require_once __DIR__.'/../Fixtures/ScalarDummy.php';
21 */
23 class XmlEncoderTest extends \PHPUnit_Framework_TestCase
24 {
25 public function setUp()
171 $obj = $this->getObject();
173 $this->assertEquals(get_object_vars($obj), $this->encoder->decode($source, 'xml'));
174 }
Shadow.php (https://gitlab.com/vanthanhhoh/devlovebook) PHP · 288 lines
22 * @package PHPExcel_Worksheet_Drawing
23 * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel)
24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
25 * @version ##VERSION##, ##DATE##
30 * PHPExcel_Worksheet_Drawing_Shadow
31 *
32 * @category PHPExcel
33 * @package PHPExcel_Worksheet_Drawing
34 * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel)
35 */
36 class PHPExcel_Worksheet_Drawing_Shadow implements PHPExcel_IComparable
37 {
38 /* Shadow alignment */
111 $this->_alignment = PHPExcel_Worksheet_Drawing_Shadow::SHADOW_BOTTOM_RIGHT;
112 $this->_color = new PHPExcel_Style_Color(PHPExcel_Style_Color::COLOR_BLACK);
113 $this->_alpha = 50;
114 }
JoomapConfig.php (https://github.com/shafiqissani/Jewelery-Ecommerce-.git) PHP · 205 lines
1 <?php
2 /**
3 * The Joomap Config
4 * @author Daniel Grothe
5 * @version $Id: JoomapConfig.php 12 2008-08-17 20:51:27Z koders.de $
6 */
177 $fields = array();
179 $vars = get_object_vars( $this );
180 foreach($vars as $name => $value) {
181 $fields[] = "`{$name}`='{$value}'";
193 /** Debug output of current settings */
194 function dump() {
195 $vars = get_object_vars( $this );
196 echo '<pre style="text-align:left">';
197 foreach( $vars as $name => $value ) {
DocumentLiteralWrapper.php (https://gitlab.com/yousafsyed/easternglamor) PHP · 182 lines
1 <?php
2 /**
3 * Zend Framework (http://framework.zend.com/)
34 * }
35 *
36 * The document/literal wrapper pattern would lead php ext/soap to generate a
37 * single "request" object that contains $x and $y properties. To solve this a
38 * wrapper service is needed that extracts the properties and delegates a
40 *
41 * The input variable from a document/literal SOAP-call to the client
42 * MyCalculatorServiceClient#add(10, 20) would lead PHP ext/soap to create
43 * the following request object:
44 *
126 $delegateArgs = array();
127 foreach (get_object_vars($document) as $argName => $argValue) {
128 if (!isset($params[$argName])) {
129 throw new Exception\UnexpectedValueException(sprintf(
Comment.php (https://bitbucket.org/resourcemode/smodels.git) PHP · 250 lines
update.php (https://github.com/chalosalvador/GDS.git) PHP · 297 lines
RowDimension.php (https://github.com/chrishubber/storytlr.git) PHP · 200 lines
1 <?php
2 /**
3 * PHPExcel
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 *
21 * @category PHPExcel
22 * @package PHPExcel_Worksheet
23 * @copyright Copyright (c) 2006 - 2008 PHPExcel (http://www.codeplex.com/PHPExcel)
24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
25 * @version 1.6.3, 2008-08-25
33 * @package PHPExcel_Worksheet
34 * @copyright Copyright (c) 2006 - 2008 PHPExcel (http://www.codeplex.com/PHPExcel)
35 */
36 class PHPExcel_Worksheet_RowDimension
admin-ajax.php (https://github.com/micz/elencode.git) PHP · 219 lines
1 <?php
2 require_once('../bb-load.php');
3 require_once(BB_PATH . 'bb-admin/admin-functions.php');
5 if ( !$bb_current_id = bb_get_current_user_info( 'id' ) )
197 foreach ( $_POST['order'] as $pos => $forum_id ) :
198 $forum = $bbdb->escape_deep( get_object_vars( get_forum( $forum_id ) ) );
199 $forum['forum_order'] = $pos;
200 $forums[(int) $forum_id] = $forum;
Renderer.php (https://github.com/MikeLockz/lockwitz.git) PHP · 235 lines
1 <?php
2 /**
3 * A class to render Diffs in different formats.
9 *
10 * See the enclosed file COPYING for license information (LGPL). If you did
11 * not receive this file, see http://opensource.org/licenses/lgpl-license.php.
12 *
13 * @package Text_Diff
52 {
53 $params = array();
54 foreach (get_object_vars($this) as $k => $v) {
55 if ($k[0] == '_') {
56 $params[substr($k, 1)] = $v;
Resource.php (https://github.com/timglabisch/pimcore.git) PHP · 228 lines
DefinedName.php (https://github.com/markn86/moodle.git) PHP · 263 lines
1 <?php
3 namespace PhpOffice\PhpSpreadsheet;
5 use PhpOffice\PhpSpreadsheet\Worksheet\Worksheet;
249 /**
250 * Implement PHP __clone to create a deep clone, not just a shallow copy.
251 */
252 public function __clone()
253 {
254 $vars = get_object_vars($this);
255 foreach ($vars as $key => $value) {
256 if (is_object($value)) {
Pager.php (https://gitlab.com/cuza/Clinic_Recods) PHP · 666 lines
arrayhelper.php (https://github.com/shafiqissani/Jewelery-Ecommerce-.git) PHP · 286 lines
1 <?php
2 /**
3 * @version $Id: arrayhelper.php 10707 2008-08-21 09:52:47Z eddieajau $
5 * @subpackage Utilities
6 * @copyright Copyright (C) 2005 - 2008 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 */
117 {
118 $result = array();
119 foreach (get_object_vars($p_obj) as $k => $v)
120 {
121 if ($regex)
Shadow.php (https://github.com/Tassader/Spedicka.git) PHP · 288 lines
22 * @package PHPExcel_Worksheet_Drawing
23 * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel)
24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
25 * @version 1.8.0, 2014-03-02
30 * PHPExcel_Worksheet_Drawing_Shadow
31 *
32 * @category PHPExcel
33 * @package PHPExcel_Worksheet_Drawing
34 * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel)
35 */
36 class PHPExcel_Worksheet_Drawing_Shadow implements PHPExcel_IComparable
37 {
38 /* Shadow alignment */
111 $this->_alignment = PHPExcel_Worksheet_Drawing_Shadow::SHADOW_BOTTOM_RIGHT;
112 $this->_color = new PHPExcel_Style_Color(PHPExcel_Style_Color::COLOR_BLACK);
113 $this->_alpha = 50;
114 }
Comment.php (https://bitbucket.org/kudutest1/moodlegit.git) PHP · 317 lines
22 * @package PHPExcel
23 * @copyright Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel)
24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
25 * @version ##VERSION##, ##DATE##
34 * @copyright Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel)
35 */
36 class PHPExcel_Comment implements PHPExcel_IComparable
37 {
38 /**
111 $this->_fillColor = new PHPExcel_Style_Color('FFFFFFE1');
112 $this->_alignment = PHPExcel_Style_Alignment::HORIZONTAL_GENERAL;
113 }
166 *
167 * @param string $value
168 * @return PHPExcel_Comment
169 */
170 public function setWidth($value = '96pt') {
BaseDrawing.php (https://gitlab.com/rsilveira1987/Expresso) PHP · 485 lines
22 * @package PHPExcel_Worksheet
23 * @copyright Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel)
24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
25 * @version 1.7.8, 2012-10-12
34 * @copyright Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel)
35 */
36 class PHPExcel_Worksheet_BaseDrawing implements PHPExcel_IComparable
37 {
38 /**
211 * Set Worksheet
212 *
213 * @param PHPExcel_Worksheet $pValue
214 * @param bool $pOverrideOld If a Worksheet has already been assigned, overwrite it and remove image from old Worksheet?
215 * @throws Exception
238 $this->setWorksheet($pValue);
239 } else {
240 throw new Exception("A PHPExcel_Worksheet has already been assigned. Drawings can only exist on one PHPExcel_Worksheet.");
241 }
242 }
BaseDrawing.php (https://gitlab.com/albert925/lading-ach) PHP · 485 lines
22 * @package PHPExcel_Worksheet
23 * @copyright Copyright (c) 2006 - 2010 PHPExcel (http://www.codeplex.com/PHPExcel)
24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
25 * @version 1.7.4, 2010-08-26
34 * @copyright Copyright (c) 2006 - 2010 PHPExcel (http://www.codeplex.com/PHPExcel)
35 */
36 class PHPExcel_Worksheet_BaseDrawing implements PHPExcel_IComparable
37 {
38 /**
211 * Set Worksheet
212 *
213 * @param PHPExcel_Worksheet $pValue
214 * @param bool $pOverrideOld If a Worksheet has already been assigned, overwrite it and remove image from old Worksheet?
215 * @throws Exception
238 $this->setWorksheet($pValue);
239 } else {
240 throw new Exception("A PHPExcel_Worksheet has already been assigned. Drawings can only exist on one PHPExcel_Worksheet.");
241 }
242 }
dmMediaItemValidator.class.php (https://github.com/stephaneerard/dmImagesGridPlugin.git) PHP · 222 lines
BaseDrawing.php (https://github.com/markn86/moodle.git) PHP · 532 lines
1 <?php
3 namespace PhpOffice\PhpSpreadsheet\Worksheet;
5 use PhpOffice\PhpSpreadsheet\Cell\Hyperlink;
6 use PhpOffice\PhpSpreadsheet\Exception as PhpSpreadsheetException;
7 use PhpOffice\PhpSpreadsheet\IComparable;
209 {
210 if ($this->worksheet === null) {
211 // Add drawing to \PhpOffice\PhpSpreadsheet\Worksheet\Worksheet
212 $this->worksheet = $pValue;
213 $this->worksheet->getCell($this->coordinates);
230 $this->setWorksheet($pValue);
231 } else {
232 throw new PhpSpreadsheetException('A Worksheet has already been assigned. Drawings can only exist on one \\PhpOffice\\PhpSpreadsheet\\Worksheet.');
233 }
234 }
Utils.php (https://gitlab.com/Erdrix/overviewCompanies) PHP · 296 lines
1 <?php
3 // Permission des dossier
15 if ('object' === $type && !($data instanceof Closure)) {
16 $type = get_class($data);
17 $data = get_object_vars($data);
18 }
52 if ('object' === $type && !($value instanceof Closure)) {
53 $type = get_class($value);
54 $value = get_object_vars($value);
55 }
149 $type = gettype($object);
150 if ($type === 'object') {
151 $list = get_object_vars($object);
152 foreach ($list as $key => $value) {
153 $object->$key = escape($value);
Assign.php (https://bitbucket.org/blackriver/openx.git) PHP · 204 lines
1 <?php
2 /* vim: set expandtab tabstop=4 shiftwidth=4: */
3 // +----------------------------------------------------------------------+
4 // | PHP Version 4 |
5 // +----------------------------------------------------------------------+
6 // | Copyright (c) 1997-2002 The PHP Group |
7 // +----------------------------------------------------------------------+
8 // | This source file is subject to version 2.02 of the PHP license, |
9 // | that is bundled with this package in the file LICENSE, and is |
10 // | available at through the world-wide-web at |
11 // | http://www.php.net/license/2_02.txt. |
12 // | If you did not receive a copy of the PHP license and are unable to |
Protection.php (https://bitbucket.org/kudutest1/moodlegit.git) PHP · 545 lines
22 * @package PHPExcel_Worksheet
23 * @copyright Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel)
24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
25 * @version ##VERSION##, ##DATE##
33 * @package PHPExcel_Worksheet
34 * @copyright Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel)
35 */
36 class PHPExcel_Worksheet_Protection
279 *
280 * @param boolean $pValue
281 * @return PHPExcel_Worksheet_Protection
282 */
283 function setFormatColumns($pValue = false) {
399 *
400 * @param boolean $pValue
401 * @return PHPExcel_Worksheet_Protection
402 */
403 function setDeleteRows($pValue = false) {
Protection.php (https://github.com/greevex/mzz-framework-blank-application.git) PHP · 281 lines
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 *
21 * @category PHPExcel
22 * @package PHPExcel_Style
23 * @copyright Copyright (c) 2006 - 2010 PHPExcel (http://www.codeplex.com/PHPExcel)
24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
25 * @version 1.4.5, 2007-08-23
32 * @category PHPExcel
33 * @package PHPExcel_Style
34 * @copyright Copyright (c) 2006 - 2010 PHPExcel (http://www.codeplex.com/PHPExcel)
35 */
36 class PHPExcel_Style_Protection implements PHPExcel_IComparable
37 {
38 /** Protection styles */
BaseDrawing.php (https://github.com/ashwanthkumar/webnaplo.git) PHP · 485 lines
22 * @package PHPExcel_Worksheet
23 * @copyright Copyright (c) 2006 - 2011 PHPExcel (http://www.codeplex.com/PHPExcel)
24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
25 * @version 1.7.6, 2011-02-27
34 * @copyright Copyright (c) 2006 - 2011 PHPExcel (http://www.codeplex.com/PHPExcel)
35 */
36 class PHPExcel_Worksheet_BaseDrawing implements PHPExcel_IComparable
37 {
38 /**
211 * Set Worksheet
212 *
213 * @param PHPExcel_Worksheet $pValue
214 * @param bool $pOverrideOld If a Worksheet has already been assigned, overwrite it and remove image from old Worksheet?
215 * @throws Exception
238 $this->setWorksheet($pValue);
239 } else {
240 throw new Exception("A PHPExcel_Worksheet has already been assigned. Drawings can only exist on one PHPExcel_Worksheet.");
241 }
242 }
Import.php (https://github.com/livinglab/openlab.git) PHP · 226 lines
1 <?php
2 // Don't load directly
3 defined( 'WPINC' ) or die;
153 // translate json key/value pairs to event array key/value pairs
154 foreach ( get_object_vars( $json ) as $key => $value ) {
155 // venues and organizers are a bit more complex. We'll handle those later
156 if ( 'venue' === $key || 'organizer' === $key ) {
179 }
181 foreach ( get_object_vars( $venue ) as $key => $value ) {
182 if ( isset( $this->venue_field_map[ $key ] ) ) {
183 $key = $this->venue_field_map[ $key ];
205 }
207 foreach ( get_object_vars( $organizer ) as $key => $value ) {
208 if ( isset( $this->organizer_field_map[ $key ] ) ) {
209 $key = $this->organizer_field_map[ $key ];
Column.php (https://gitlab.com/unofficial-mirrors/moodle) PHP · 405 lines
23 * @package PHPExcel_Worksheet
24 * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel)
25 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
26 * @version ##VERSION##, ##DATE##
172 * @param PHPExcel_Worksheet_AutoFilter
173 * @return PHPExcel_Worksheet_AutoFilter_Column
174 */
175 public function setParent(PHPExcel_Worksheet_AutoFilter $pParent = null)
200 {
201 if (!in_array($pFilterType, self::$filterTypes)) {
202 throw new PHPExcel_Exception('Invalid filter type for column AutoFilter.');
203 }
333 * @param PHPExcel_Worksheet_AutoFilter_Column_Rule $pRule
334 * @param boolean $returnRule Flag indicating whether the rule object or the column object should be returned
335 * @return PHPExcel_Worksheet_AutoFilter_Column|PHPExcel_Worksheet_AutoFilter_Column_Rule
336 */
337 public function addRule(PHPExcel_Worksheet_AutoFilter_Column_Rule $pRule, $returnRule = true)
exception.php (https://github.com/pjwiseman/joomla-cms.git) PHP · 389 lines
1 <?php
2 /**
3 * @package Joomla.Legacy
103 * @param string $msg The error message
104 * @param string $code The error code from the application
105 * @param integer $level The error level (use the PHP constants E_ALL, E_NOTICE etc.).
106 * @param string $info Optional: The additional error information.
107 * @param boolean $backtrace True if backtrace information is to be collected
244 JLog::add('JException::getProperties is deprecated.', JLog::WARNING, 'deprecated');
246 $vars = get_object_vars($this);
248 if ($public)
Constraint.php (https://github.com/pulzarraider/symfony.git) PHP · 300 lines
gException.class.php (https://gitlab.com/karl3/gs_libs) PHP · 144 lines
1 <?php
3 /**
4 * Custom exception handler. Extends PHP Exception and adds a few new methods
5 */
6 class gException extends Exception
25 public function __destruct()
26 {
27 $vars = get_object_vars($this);
28 if (is_array($vars)) {
29 foreach ($vars as $key => $val) {
41 * @return string|array
42 */
43 public function gMessage($toString = true, $delim = PHP_EOL)
44 {
45 $message['time'] = date('Y-m-d G:i:s');
Shadow.php (https://gitlab.com/alexandresgv/siteentec) PHP · 288 lines
22 * @package PHPExcel_Worksheet_Drawing
23 * @copyright Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel)
24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
25 * @version ##VERSION##, ##DATE##
30 * PHPExcel_Worksheet_Drawing_Shadow
31 *
32 * @category PHPExcel
33 * @package PHPExcel_Worksheet_Drawing
34 * @copyright Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel)
35 */
36 class PHPExcel_Worksheet_Drawing_Shadow implements PHPExcel_IComparable
37 {
38 /* Shadow alignment */
111 $this->_alignment = PHPExcel_Worksheet_Drawing_Shadow::SHADOW_BOTTOM_RIGHT;
112 $this->_color = new PHPExcel_Style_Color(PHPExcel_Style_Color::COLOR_BLACK);
113 $this->_alpha = 50;
114 }
dumper.php (https://github.com/hatone/moodle.git) PHP · 360 lines
PaginationControl.php (https://github.com/Exercise/zf2.git) PHP · 140 lines
Protection.php (https://gitlab.com/devtoannh/cafe) PHP · 545 lines
22 * @package PHPExcel_Worksheet
23 * @copyright Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel)
24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
25 * @version 1.7.8, 2012-10-12
33 * @package PHPExcel_Worksheet
34 * @copyright Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel)
35 */
36 class PHPExcel_Worksheet_Protection
279 *
280 * @param boolean $pValue
281 * @return PHPExcel_Worksheet_Protection
282 */
283 function setFormatColumns($pValue = false) {
399 *
400 * @param boolean $pValue
401 * @return PHPExcel_Worksheet_Protection
402 */
403 function setDeleteRows($pValue = false) {
Protection.php (https://github.com/allinside/Yii-CMS.git) PHP · 281 lines
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 *
21 * @category PHPExcel
22 * @package PHPExcel_Style
23 * @copyright Copyright (c) 2006 - 2011 PHPExcel (http://www.codeplex.com/PHPExcel)
24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
25 * @version 1.4.5, 2007-08-23
32 * @category PHPExcel
33 * @package PHPExcel_Style
34 * @copyright Copyright (c) 2006 - 2011 PHPExcel (http://www.codeplex.com/PHPExcel)
35 */
36 class PHPExcel_Style_Protection implements PHPExcel_IComparable
37 {
38 /** Protection styles */
Shadow.php (https://gitlab.com/dmsapiens/physicians) PHP · 288 lines
22 * @package PHPExcel_Worksheet_Drawing
23 * @copyright Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel)
24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
25 * @version ##VERSION##, ##DATE##
30 * PHPExcel_Worksheet_Drawing_Shadow
31 *
32 * @category PHPExcel
33 * @package PHPExcel_Worksheet_Drawing
34 * @copyright Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel)
35 */
36 class PHPExcel_Worksheet_Drawing_Shadow implements PHPExcel_IComparable
37 {
38 /* Shadow alignment */
111 $this->_alignment = PHPExcel_Worksheet_Drawing_Shadow::SHADOW_BOTTOM_RIGHT;
112 $this->_color = new PHPExcel_Style_Color(PHPExcel_Style_Color::COLOR_BLACK);
113 $this->_alpha = 50;
114 }
mysqli_class_mysqli_interface.php (https://github.com/tstarling/hiphop-php.git) PHP · 267 lines
1 <?php
2 require('connect.inc');
52 );
54 if (version_compare(PHP_VERSION, '5.3.99', '<=')) {
55 $expected_methods['client_encoding'] = true;
56 }
110 );
112 if (version_compare(PHP_VERSION, '5.3.99', '>')) {
113 $expected_class_variables["error_list"] = true;
114 $expected_object_variables["error_list"] = true;
135 printf("\nObject variables:\n");
136 $variables = get_object_vars($mysqli);
137 foreach ($variables as $var => $v) {
138 if (isset($expected_object_variables[$var])) {
class.entity.php (https://gitlab.com/x33n/SellCloudMusic) PHP · 344 lines
1 <?php
3 require_once('kernel/class.transformer.php');
27 * @license ?
28 * @access ?
29 * @php 5.1 or higher
30 * */
31 abstract class Entity extends Transformer implements Serializable {
69 public function loadArray(& $param, $postfix = '') {
71 $vars = @get_object_vars($this);
72 while ($key = @key($vars)) {
73 // eliminates private variables (starting with '__'). Fixing scoping behaviour.
89 public function loadObject(& $param) {
91 $vars = @get_object_vars($this);
92 $inputs = @get_object_vars($param);
class.idl.php (https://github.com/babannasd/hiphop-php.git) PHP · 456 lines
1 <?php
2 /**
3 * Automatically generated by running "php schema.php class".
4 *
5 * You may modify the file, but re-running schema.php against this file will
33 // 'name' => name of the function
34 // 'desc' => description of the function's purpose
35 // 'flags' => attributes of the function, see base.php for possible values
36 // 'opt' => optimization callback function's name for compiler
37 // 'note' => additional note about this function's schema
57 'return' => array(
58 'type' => VariantMap,
59 'desc' => "Returns an array of the names of the declared classes in the current script.\n\nNote that depending on what extensions you have compiled or loaded into PHP, additional classes could be present. This means that you will not be able to define your own classes using these names. There is a list of predefined classes in the Predefined Classes section of the appendices.",
60 ),
61 'taint_observer' => false,
class.bp-user.php (https://github.com/jazbek/nycga2.git) PHP · 398 lines
Protection.php (https://github.com/alien3d/idcmsCore.git) PHP · 575 lines
22 * @package PHPExcel_Worksheet
23 * @copyright Copyright (c) 2006 - 2010 PHPExcel (http://www.codeplex.com/PHPExcel)
24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
25 * @version 1.7.2, 2010-01-11
37 /** PHPExcel_Shared_PasswordHasher */
38 require_once PHPEXCEL_ROOT . 'PHPExcel/Shared/PasswordHasher.php';
45 * @package PHPExcel_Worksheet
46 * @copyright Copyright (c) 2006 - 2010 PHPExcel (http://www.codeplex.com/PHPExcel)
47 */
48 class PHPExcel_Worksheet_Protection
249 *
250 * @param boolean $pValue
251 * @return PHPExcel_Worksheet_Protection
252 */
253 function setObjects($pValue = false) {