Example #1
0
 /**
  *
  * @param array $paSettings        	
  * @throws Exception
  */
 public function setSettings($paSettings)
 {
     if (is_array($paSettings)) {
         $this->_settings = $paSettings;
         defined('FILE_CHMOD') || define('FILE_CHMOD', $this->_settings['CHMOD']);
         defined('PUSH_MESSAGE') || define('PUSH_MESSAGE', $this->_settings['pushMensage']);
         Config::cacheConfig($this->_onionConfig);
     } else {
         throw new Exception('The value of "settings" property need to be an array!');
     }
     return $this;
 }