Пример #1
0
 /**
  * @param $attributeId int
  * @return CustomAttribute
  */
 public function LoadById($attributeId)
 {
     $reader = ServiceLocator::GetDatabase()->Query(new GetAttributeByIdCommand($attributeId));
     $attribute = null;
     if ($row = $reader->GetRow()) {
         $attribute = CustomAttribute::FromRow($row);
     }
     return $attribute;
 }