protected function convertAndReturn($comments)
    {
        // Create the return value
        $retval = false;
        if ($comments && is_array($comments) && count($comments)) {
            // Create the array
            $retval = array();
            foreach ($comments as $theComment) {
                // Create a new instance
                $commentInstance = new $this->className($theComment);
                // Append the instance to the return value
                array_push($retval, $commentInstance);
            }
        }
        return $retval;
    }
protected function convertAndReturn($comments)
    {
        // Create the return value
        $retval = false;
        if ($comments && is_array($comments) && count($comments)) {
            // Create the array
            $retval = array();
            foreach ($comments as $theComment) {
                // Create a new instance
                $commentInstance = new $this->className($theComment);
                // Append the instance to the return value
                array_push($retval, $commentInstance);
            }
        }
        return $retval;
    }
protected function convertAndReturn ( $ comments ) { // Create the return value $ retval = false ; if ( $ comments && is_array ( $ comments ) && count ( $ comments ) ) { // Create the array $ retval = array ( ) ; foreach ( $ comments as $ theComment ) { // Create a new instance $ commentInstance = new $ this -> className ( $ theComment ) ; // Append the instance to the return value array_push ( $ retval , $ commentInstance ) ; } } return $ retval ; }
Converts an array of standard object instances to Comment model instances

@access protected
@param array $comments
@return array
Converts an array of standard object instances to Comment model instances