/**
  * Construct a new modFileRegister instance.
  *
  * {@inheritdoc}
  */
 function __construct(& $modx, $key, $options = array()) {
     parent :: __construct($modx, $key, $options);
     $modx->getCacheManager();
     $this->directory = $modx->getCachePath() . 'registry/';
     $this->directory .= isset($options['directory'])
             ? $options['directory']
             : $key;
     if ($this->directory[strlen($this->directory)-1] != '/') $this->directory .= '/';
 }
 /**
  * Construct a new modDbRegister instance.
  *
  * @param modX &$modx A reference to the modX instance
  * @param string $key The key of the registry to load
  * @param array $options An array of options to set
  */
 function __construct(modX &$modx, $key, array $options = array())
 {
     parent::__construct($modx, $key, $options);
     $this->_queue = $this->_initQueue($key, $options);
 }