/**
  * Returns all records
  *
  * @param   Tinebase_Controller_Record_Interface $_controller the record controller
  * @return  array record data
  *
  * @todo    add sort/dir params here?
  * @todo    add translation here? that is needed for example for getSalutations() in the addressbook
  */
 protected function _getAll(Tinebase_Controller_Record_Interface $_controller)
 {
     $records = $_controller->getAll();
     return array('results' => $records->toArray(), 'totalcount' => count($records));
 }