public static function getByID($akID) { $fak = Cache::get('file_attribute_key', $akID); if (is_object($fak)) { return $fak; } $ak = new FileAttributeKey(); $ak->load($akID); if ($ak->getAttributeKeyID() > 0) { Cache::set('file_attribute_key', $akID, $ak); return $ak; } }
public static function getByID($akID) { $ak = new FileAttributeKey(); $ak->load($akID); if ($ak->getAttributeKeyID() > 0) { return $ak; } }