Pix_Partial::__construct PHP 메소드

__construct() 공개 메소드

__construct 建出一個 Pix_Partial ,並且將路徑設定成 $path
public __construct ( string | null $path = null, array $options = [] ) : void
$path string | null
$options array cache_prefix cache_id 要加入的字串
리턴 void
    public function __construct($path = null, $options = array())
    {
        if ($path) {
            $this->setPath($path);
        } else {
            $this->setPath($this->_path);
        }
        if ($options['cache_prefix']) {
            $this->_cache_prefix = $options['cache_prefix'];
        }
    }