Example #1
0
 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());
     }
 }
Example #2
0
 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";
 }
Example #3
0
 public function component()
 {
     return CMS::component();
 }