예제 #1
0
 /**
  * @param \Concrete\Core\Attribute\Type $attributeType
  */
 public function __construct($attributeType)
 {
     $this->identifier = $attributeType->getAttributeTypeID();
     $this->attributeType = $attributeType;
     $this->set('controller', $this);
 }
예제 #2
0
 /**
  * @param \Concrete\Core\Attribute\Type $at An attribute type object
  * @return bool True if the attribute type is associated with the current attribute category, false if not
  */
 public function hasAttributeKeyTypeAssociated($at)
 {
     $atCount = Database::connection()->fetchColumn('SELECT COUNT(atID)
         FROM AttributeTypeCategories
         WHERE atID = ? AND akCategoryID = ?', array($at->getAttributeTypeID(), $this->akCategoryID));
     return $atCount > 0;
 }