Ejemplo n.º 1
0
 /**
  */
 protected function _retrieve($field, $readonly = false)
 {
     if (empty($this->_data[$field])) {
         switch ($field) {
             case self::ACTION_BLACKLIST:
                 return new Ingo_Storage_Blacklist();
             case self::ACTION_FILTERS:
                 $ob = new Ingo_Storage_Filters();
                 include INGO_BASE . '/config/prefs.php';
                 $ob->setFilterList(unserialize($_prefs['rules']['value']));
                 return $ob;
             case self::ACTION_FORWARD:
                 return new Ingo_Storage_Forward();
             case self::ACTION_VACATION:
                 return new Ingo_Storage_VacationTest();
             case self::ACTION_WHITELIST:
                 return new Ingo_Storage_Whitelist();
             case self::ACTION_SPAM:
                 return new Ingo_Storage_Spam();
             default:
                 return false;
         }
     }
     return $this->_data[$field];
 }