コード例 #1
0
ファイル: Controller.php プロジェクト: ngreimel/kovent
 /**
  * @param \Concrete\Core\Attribute\Type $attributeType
  */
 public function __construct($attributeType)
 {
     $this->identifier = $attributeType->getAttributeTypeID();
     $this->attributeType = $attributeType;
     $this->set('controller', $this);
 }
コード例 #2
0
ファイル: Category.php プロジェクト: ceko/concrete5-1
 /**
  * @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;
 }