public static function getByHandle($asHandle) { $db = Loader::db(); $row = $db->GetRow('select asID, asHandle, pkgID, asName, akCategoryID, asIsLocked from AttributeSets where asHandle = ?', array($asHandle)); if (isset($row['asID'])) { $akc = new AttributeSet(); $akc->setPropertiesFromArray($row); return $akc; } }