/**
  * __construct
  *
  * @param array     $collection
  * @param string    $type
  * @return void
  */
 public function __construct(array $collection, $type = null)
 {
     parent::__construct($collection);
     if ($this->type === null) {
         if ($type == null) {
             throw new Exception('Collection is niet correct geinitialiseerd. Er moet een type worden opgegeven.');
         } else {
             $this->type = $type;
         }
     }
 }
 /**
  * __construct
  *
  * @param array     $collection
  * @return void
  */
 public function __construct($collection)
 {
     parent::__construct($collection, "KVDutil_Auth_Rol");
 }
 /**
  * toArray
  *
  * @return array
  */
 public function toArray()
 {
     return $this->collection->toArray();
 }
 /**
  * count
  *
  * @since   29 aug 2008
  * @return  integer
  */
 public function count()
 {
     return $this->_collection->getTotalRecordCount();
 }