Class NarutoConstants

Description

This class defines the common constants used in the application.

Located in /classes/narutoConstants.php (line 15)


	
			
Class Constant Summary
 E_AUTH = 2
 E_COMM = 1
 E_DB = 7
 E_NOSUP = 4
 E_NOUSER = 6
 E_PERM = 5
 E_PROTO = 3
 HDR_AUTHTOKEN = 'X_NARUTO_AUTH'
 HDR_VERSION = 'X_NARUTO_VERSION'
 METHOD_ADDFORUMTOPIC = 'AddForumTopic'
 METHOD_ADDTOPICPOST = 'AddTopicPost'
 METHOD_GETFORUMLIST = 'GetForumList'
 METHOD_GETRECENTTOPICS = 'GetRecentTopics'
 METHOD_GETTOPIC = 'GetTopic'
 METHOD_GETTOPICLIST = 'GetTopicList'
 METHOD_GETUNREADPRIVATEMESSAGECOUNT = 'GetUnreadPrivateMessageCount'
 METHOD_GETUSER = 'GetUser'
 METHOD_GETUSERBYNAME = 'GetUserByName'
 METHOD_GETUSERBYSESSION = 'GetUserBySession'
 METHOD_MERGETOPICS = 'MergeTopics'
 VERSION = '1.2.1-beta'
Class Constants
DEFAULT_TOPIC_LIMIT = 8 (line 28)

The default number of topics to return in a list.

E_AUTH = 2 (line 34)

Error: Caller authentication problem falure

E_COMM = 1 (line 31)

Error: Connection problem

E_DB = 7 (line 49)

Error: Database error.

E_NOSUP = 4 (line 40)

Error: Method being called is not supported.

E_NOUSER = 6 (line 46)

Error: User was not found.

E_PERM = 5 (line 43)

Error: Caller does not have permission to execute method.

E_PROTO = 3 (line 37)

Error: Unexpected client/server protocol error

HDR_AUTHTOKEN = 'X_NARUTO_AUTH' (line 22)

The HTTP header for sharing the authorization token

HDR_VERSION = 'X_NARUTO_VERSION' (line 25)

The HTTP header indicating the client's version

METHOD_ADDFORUMTOPIC = 'AddForumTopic' (line 55)
METHOD_ADDTOPICPOST = 'AddTopicPost' (line 56)
METHOD_GETFORUMLIST = 'GetForumList' (line 51)
METHOD_GETRECENTTOPICS = 'GetRecentTopics' (line 54)
METHOD_GETTOPIC = 'GetTopic' (line 53)
METHOD_GETTOPICLIST = 'GetTopicList' (line 52)
METHOD_GETUNREADPRIVATEMESSAGECOUNT = 'GetUnreadPrivateMessageCount' (line 58)
METHOD_GETUSER = 'GetUser' (line 59)
METHOD_GETUSERBYNAME = 'GetUserByName' (line 60)
METHOD_GETUSERBYSESSION = 'GetUserBySession' (line 61)
METHOD_MERGETOPICS = 'MergeTopics' (line 57)
VERSION = '1.2.1-beta' (line 19)

The current Naruto API version

Documentation generated on Sun, 26 Oct 2008 16:41:10 -0400 by phpDocumentor 1.4.2