Exemplo n.º 1
0
 static function getAvailableQuants($pointType)
 {
     if (!isset(self::$quantsList[$pointType])) {
         self::$quantsList[$pointType] = array();
         foreach (amFindSuccessors(__CLASS__) as $c) {
             $o = new $c();
             if ($o->getPointFieldType() == $pointType) {
                 self::$quantsList[$pointType][] = $o;
             } else {
                 unset($o);
             }
         }
     }
     return self::$quantsList[$pointType];
 }
Exemplo n.º 2
0
 function addDefaults()
 {
     $this->add(new Am_Query_Ui_Abstract());
     foreach (amFindSuccessors('Am_Query_Ui_Abstract') as $className) {
         $this->add(new $className());
     }
 }