예제 #1
0
파일: Package.php 프로젝트: dweelie/grav
 public function __construct(Data $package, $package_type = null)
 {
     $data = new Data($package->blueprints()->toArray());
     parent::__construct($data, $package_type);
     $this->settings = $package->toArray();
     $html_description = \Parsedown::instance()->line($this->description);
     $this->data->set('slug', $package->slug);
     $this->data->set('description_html', $html_description);
     $this->data->set('description_plain', strip_tags($html_description));
     $this->data->set('symlink', is_link(USER_DIR . $package_type . DS . $this->slug));
 }
예제 #2
0
파일: Package.php 프로젝트: clee03/metal
 public function __construct($package, $package_type = null)
 {
     $data = new Data($package);
     parent::__construct($data, $package_type);
 }