public function getCommentController()
    {
        if (!isset($this->_comment_controller)) {
            $identifier = clone $this->getIdentifier();
            $identifier->path = array('controller');
            $identifier->name = 'comment';
            $request = new LibBaseControllerRequest(array('format' => $this->getRequest()->getFormat()));

            if ($this->getRequest()->has('get')) {
                $request->set('get', $this->getRequest()->get('get'));
            }

            $request->append(pick($this->_mixer->getRequest()->comment, array()));

            $this->_comment_controller = $this->getService($identifier, array(
                    'request' => $request,
                    'response' => $this->getResponse(),
            ));

            //set the parent
            if ($this->getItem()) {
                $this->_comment_controller->pid($this->getItem()->id);
            }
        }

        return $this->_comment_controller;
    }
public function getCommentController()
    {
        if (!isset($this->_comment_controller)) {
            $identifier = clone $this->getIdentifier();
            $identifier->path = array('controller');
            $identifier->name = 'comment';
            $request = new LibBaseControllerRequest(array('format' => $this->getRequest()->getFormat()));

            if ($this->getRequest()->has('get')) {
                $request->set('get', $this->getRequest()->get('get'));
            }

            $request->append(pick($this->_mixer->getRequest()->comment, array()));

            $this->_comment_controller = $this->getService($identifier, array(
                    'request' => $request,
                    'response' => $this->getResponse(),
            ));

            //set the parent
            if ($this->getItem()) {
                $this->_comment_controller->pid($this->getItem()->id);
            }
        }

        return $this->_comment_controller;
    }
public function getCommentController ( ) { if ( ! isset ( $ this -> _comment_controller ) ) { $ identifier = clone $ this -> getIdentifier ( ) ; $ identifier -> path = array ( 'controller' ) ; $ identifier -> name = 'comment' ; $ request = new LibBaseControllerRequest ( array ( 'format' => $ this -> getRequest ( ) -> getFormat ( ) ) ) ; if ( $ this -> getRequest ( ) -> has ( 'get' ) ) { $ request -> set ( 'get' , $ this -> getRequest ( ) -> get ( 'get' ) ) ; } $ request -> append ( pick ( $ this -> _mixer -> getRequest ( ) -> comment , array ( ) ) ) ; $ this -> _comment_controller = $ this -> getService ( $ identifier , array ( 'request' => $ request , 'response' => $ this -> getResponse ( ) , ) ) ; //set the parent if ( $ this -> getItem ( ) ) { $ this -> _comment_controller -> pid ( $ this -> getItem ( ) -> id ) ; } } return $ this -> _comment_controller ; }
Returns the comment controller.

@return ComBaseControllerComment
Returns the comment controller .