Kronolith_Resource_Base::__construct PHP 메소드

__construct() 공개 메소드

Const'r
public __construct ( array $params = [] ) : Kronolith_Resource_Base
$params array
리턴 Kronolith_Resource_Base
    public function __construct(array $params = array())
    {
        $this->_share = $params['share'];
        $this->_id = $this->_share->getId();
    }

Usage Example

예제 #1
0
파일: Group.php 프로젝트: jubinpatel/horde
 /**
  * Const'r
  *
  * @param $params
  *
  * @return Kronolith_Resource
  */
 public function __construct(array $params)
 {
     $params['resource_type'] = 'Group';
     parent::__construct($params);
     $this->_driver = $this->getDriver();
 }