Server : Apache System : Linux host44.registrar-servers.com 4.18.0-513.18.1.lve.2.el8.x86_64 #1 SMP Sat Mar 30 15:36:11 UTC 2024 x86_64 User : vapecompany ( 2719) PHP Version : 7.4.33 Disable Function : NONE Directory : /opt/alt/php55/usr/share/pear/ezc/Base/structs/ |
Upload File : |
<?php /** * File containing the ezcBaseRepositoryDirectory. * * @package Base * @version 1.8 * @copyright Copyright (C) 2005-2009 eZ Systems AS. All rights reserved. * @license http://ez.no/licenses/new_bsd New BSD License */ /** * Struct which defines a repository directory. * * @package Base * @version 1.8 */ class ezcBaseRepositoryDirectory extends ezcBaseStruct { /** * Specifies that the entry is for the eZ Components repository. */ const TYPE_INTERNAL = 0; /** * Specifies that the entry is for an external (user defined) repository. */ const TYPE_EXTERNAL = 1; /** * The $type is one of the two TYPE_* constants defined in this class. * * @var string */ public $type; /** * The path to the configured repository. * * @var string */ public $basePath; /** * The path to the autoload files. * * @var string */ public $autoloadPath; /** * Constructs a new ezcBaseRepositoryDirectory of type $type with base path * $basePath and autoload path $autoloadPath. * * @param string $type * @param string $basePath * @param string $autoloadPath */ public function __construct( $type, $basePath, $autoloadPath ) { $this->type = $type; $this->basePath = $basePath; $this->autoloadPath = $autoloadPath; } /** * Returns a new instance of this class with the data specified by $array. * * $array contains all the data members of this class in the form: * array('member_name'=>value). * * __set_state makes this class exportable with var_export. * var_export() generates code, that calls this method when it * is parsed with PHP. * * @param array(string=>mixed) $array * @return ezcBaseRepositoryDirectory */ static public function __set_state( array $array ) { return new ezcBaseRepositoryDirectory( $array['type'], $array['basePath'], $array['autoloadPath'] ); } } ?>