コード例 #1
0
 /**
  * Take care of adding all the paths for the messages components to the $_MSG_PATHS property
  * for use by the Messages Autoloaders
  *
  * @since 4.5.0
  *
  * @return void.
  */
 protected static function _set_messages_paths()
 {
     $dir_ref = array('messages', 'messages/message_type', 'messages/messenger', 'messages/defaults', 'messages/defaults/email', 'messages/data_class', 'messages/validators', 'messages/validators/email', 'messages/validators/html', 'shortcodes');
     $paths = array();
     foreach ($dir_ref as $index => $dir) {
         $paths[$index] = EE_LIBRARIES . $dir;
     }
     self::$_MSG_PATHS = apply_filters('FHEE__EED_Messages___set_messages_paths___MSG_PATHS', $paths);
 }
コード例 #2
0
 /**
  *  Resets all the static properties in this class when called.
  */
 public static function reset()
 {
     self::$_EEMSG = null;
     self::$_message_resource_manager = null;
     self::$_MSG_PROCESSOR = null;
     self::$_MSG_PATHS = null;
     self::$_TMP_PACKS = array();
 }