/**
  * Constructor
  *
  * @param mixed           $attributes
  * @param BaseElementType $elementType
  * @return Events_CriteriaModel
  */
 public function __construct($attributes, BaseElementType $elementType)
 {
     $this->_elementType = $elementType;
     parent::__construct($attributes, $this->_elementType);
 }
Exemplo n.º 2
0
 /**
  * Initialises the criteria model, forcing the element type to be a Neo block.
  *
  * @param array|null $attributes
  */
 public function __construct($attributes = null)
 {
     $elementType = craft()->elements->getElementType(Neo_ElementType::NeoBlock);
     parent::__construct($attributes, $elementType);
 }