original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: Converts an array of standard object instances to Comment model instances
  
  @access protected
  @param array $comments
  @return array
docstring_tokens: Converts an array of standard object instances to Comment model instances