Esempio n. 1
0
File: addon.php Progetto: nob/joi
 /**
  * Initializes object
  *
  * @return Addon
  */
 public function __construct()
 {
     $this->addon_name = $this->getAddonName();
     $this->addon_type = $this->getAddonType();
     $this->addon_path = Path::tidy(Config::getSiteRoot() . Config::getAddonPath($this->addon_name));
     $this->config = $this->getConfig();
     $this->tasks = !$this->skip_tasks ? $this->getTasks() : null;
     // contextual objects
     $this->log = ContextualLog::create($this);
     $this->session = ContextualSession::create($this);
     $this->cache = ContextualCache::create($this);
     $this->css = ContextualCSS::create($this);
     $this->js = ContextualJS::create($this);
     $this->assets = ContextualAssets::create($this);
 }