Ejemplo n.º 1
0
 /**
  * Map properties against mapper to obtain a backend-compatible array
  * 
  * @param t41\Backend\Mapper $mapper
  * @param t41\Backend\Adapter\AbstractAdapter $backend
  * @return array
  */
 public function map(\t41\Backend\Mapper $mapper, $backend)
 {
     $array = $this->toArray($backend);
     return array('data' => $mapper->toArray($array['data'], $this->_class), 'collections' => $array['collections']);
 }