Admin_CommentController::init PHP Метод

init() публичный Метод

public init ( )
    public function init()
    {
        // get comment repository
        $this->commentRepository = $this->_helper->entity->getRepository('Newscoop\\Entity\\Comment');
        // get article repository
        $this->articleRepository = $this->_helper->entity->getRepository('Newscoop\\Entity\\Article');
        // get language repository
        $this->languageRepository = $this->_helper->entity->getRepository('Newscoop\\Entity\\Language');
        $this->form = new Admin_Form_Comment();
        $this->editForm = new Admin_Form_Comment_EditForm();
        return $this;
    }