Example #1
0
 /**
  * Returns a new Attribute queried by its Attribute ID from
  * the database.
  * @param   integer     $id        The Attribute ID
  * @return  Attribute            The Attribute object
  * @global  ADONewConnection
  * @static
  */
 static function getById($id)
 {
     $arrName = Attributes::getArrayById($id);
     if ($arrName === false) {
         return false;
     }
     $objAttribute = new self($arrName['name'], $arrName['type'], $id);
     return $objAttribute;
 }