/** * Constructor * * @param mixed $attributes * @param BaseElementType $elementType * @return Events_CriteriaModel */ public function __construct($attributes, BaseElementType $elementType) { $this->_elementType = $elementType; parent::__construct($attributes, $this->_elementType); }
/** * 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); }