예제 #1
0
파일: Mail.php 프로젝트: btweedy/foresmo
 /**
  * 
  * Checks to make sure the IMAP extension is available.
  * 
  * @return void
  * 
  */
 protected function _preConfig()
 {
     parent::_preConfig();
     if (!extension_loaded('imap')) {
         throw $this->_exception('ERR_EXTENSION_NOT_LOADED', array('extension' => 'imap'));
     }
 }
예제 #2
0
 /**
  * 
  * Post-construction tasks to complete object construction.
  * 
  * @return void
  * 
  */
 protected function _postConstruct()
 {
     parent::_postConstruct();
     if ($this->_config['cache']) {
         $this->_cache = Solar::dependency('Solar_Cache', $this->_config['cache']);
     }
 }