protected static function instance() { $class = get_called_class(); if (!CMS::component(static::name())) { return Core::make($class, static::name()); } else { return CMS::component(static::name()); } }
public function component_assets_dump() { $component_name = reset($this->args); $result = CMS::component($component_name)->assets_dump_all(true); print "Dump Files:\n"; print "===================\n"; foreach ($result as $from => $to) { print "{$from} => {$to}\n"; } print "===================\n"; }
public function component() { return CMS::component(); }