/** * Prepares doc */ public function prepare() { parent::prepare(); foreach ($this->getTagsByName('label') as $tag) { $this->_labels[$tag->getContent()] = true; } $this->query = $this->getTagsByName('query'); if ($this->model) { $this->model->prepare(); } }