Пример #1
0
 /**
  * @param string $name
  * @return mixed
  * @throws InvaildException
  */
 public static function getComponents($name)
 {
     $components = Genius::userConfig()->get('components');
     if (!property_exists($components, $name)) {
         if (!GENIUS_DEBUG) {
             return null;
         }
         throw new InvaildException(sprintf('Undefined components: %s', $name));
     }
     return $components->get($name);
 }
Пример #2
0
 public function calculateFaster()
 {
     parent::calculateFaster();
 }