示例#1
0
 public static function getAllForTerm($term)
 {
     $db = new PHPWS_DB('hms_application_feature');
     $db->addWhere('term', $term);
     $result = $db->select();
     if (PHPWS_Error::logIfError($result)) {
         throw new DatabaseException($result->toString());
     }
     $features = array();
     foreach ($result as $feature) {
         $f = ApplicationFeature::plugInstance($feature);
         $features[$f->getName()] = $f;
     }
     return $features;
 }