Example #1
0
 /**
  * Returns the record for the current key. If there is no record than an empty array is returned.
  *
  * @return array
  */
 protected function getRecord()
 {
     $record = $this->driver->getData($this->key);
     if (!is_array($record)) {
         return array();
     }
     return $record;
 }