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]; }
function addDefaults() { $this->add(new Am_Query_Ui_Abstract()); foreach (amFindSuccessors('Am_Query_Ui_Abstract') as $className) { $this->add(new $className()); } }