XpressEngine Core  1.11.2
 All Classes Namespaces Files Functions Variables Pages
Public Member Functions | List of all members
communicationModel Class Reference
Inheritance diagram for communicationModel:
communication ModuleObject BaseObject

Public Member Functions

 init ()
 
 getConfig ()
 
 getGrantArray ($default, $group)
 get grant array for insert to database. table module_config's config field More...
 
 checkGrant ($arrGrant)
 check member's grant More...
 
 getSelectedMessage ($message_srl, $columnList=array())
 
 getNewMessage ($columnList=array())
 
 getMessages ($message_type="R", $columnList=array())
 
 getFriends ($friend_group_srl=0, $columnList=array())
 
 isAddedFriend ($member_srl)
 
 getFriendGroupInfo ($friend_group_srl)
 
 getFriendGroups ()
 
 isFriend ($target_srl)
 
- Public Member Functions inherited from communication
 moduleInstall ()
 
 checkUpdate ()
 
 moduleUpdate ()
 
 recompileCache ()
 
- Public Member Functions inherited from ModuleObject
 setModule ($module)
 
 setModulePath ($path)
 
 setRedirectUrl ($url= './', $output=NULL)
 
 getRedirectUrl ()
 
 setMessage ($message= 'success', $type=NULL)
 
 setMessageType ($type)
 
 getMessageType ()
 
 setRefreshPage ()
 
 setAct ($act)
 
 setModuleInfo ($module_info, $xml_info)
 
 stop ($msg_code)
 
 setTemplateFile ($filename)
 
 getTemplateFile ()
 
 setTemplatePath ($path)
 
 getTemplatePath ()
 
 setEditedLayoutFile ($filename)
 
 getEditedLayoutFile ()
 
 setLayoutFile ($filename)
 
 getLayoutFile ()
 
 setLayoutPath ($path)
 
 getLayoutPath ($layout_name="", $layout_type="P")
 
 proc ()
 
- Public Member Functions inherited from BaseObject
 __construct ($error=0, $message= 'success')
 
 setError ($error=0)
 
 getError ()
 
 setHttpStatusCode ($code= '200')
 
 getHttpStatusCode ()
 
 setMessage ($message= 'success', $type=NULL)
 
 getMessage ()
 
 add ($key, $val)
 
 adds ($object)
 
 get ($key)
 
 gets ()
 
 getVariables ()
 
 getObjectVars ()
 
 toBool ()
 
 toBoolean ()
 

Additional Inherited Members

- Public Attributes inherited from ModuleObject
 $mid = NULL
 string to represent run-time instance of Module (XE Module) More...
 
 $module = NULL
 Class name of Xe Module that is identified by mid. More...
 
 $module_srl = NULL
 integer value to represent a run-time instance of Module (XE Module) More...
 
 $module_info = NULL
 an object containing the module information More...
 
 $origin_module_info = NULL
 
 $xml_info = NULL
 an object containing the module description extracted from XML file More...
 
 $module_path = NULL
 a path to directory where module source code resides More...
 
 $act = NULL
 a string value to contain the action name More...
 
 $template_path = NULL
 a path of directory where template files reside More...
 
 $template_file = NULL
 name of template file More...
 
 $layout_path = ''
 a path of directory where layout files reside More...
 
 $layout_file = ''
 name of layout file More...
 
 $edited_layout_file = ''
 name of temporary layout files that is modified in an admin mode More...
 
 $stop_proc = FALSE
 a flag to indicating whether to stop the execution of code. More...
 
 $module_config = NULL
 
 $ajaxRequestMethod = array('XMLRPC', 'JSON')
 
 $gzhandler_enable = TRUE
 
- Public Attributes inherited from BaseObject
 $error = 0
 
 $message = 'success'
 
 $variables = array()
 
 $httpStatusCode = NULL
 

Detailed Description

Author
NAVER (devel.nosp@m.oper.nosp@m.s@xpr.nosp@m.esse.nosp@m.ngine.nosp@m..com) communication module of the Model class

Definition at line 9 of file communication.model.php.

Member Function Documentation

communicationModel::checkGrant (   $arrGrant)

check member's grant

Parameters
object$member_info
array$arrGrant
Returns
boolean

Definition at line 108 of file communication.model.php.

communicationModel::getConfig ( )

get the configuration

Returns
object config of communication module

Definition at line 25 of file communication.model.php.

communicationModel::getFriendGroupInfo (   $friend_group_srl)

Get a group of friends

Parameters
int$friend_group_srl
Returns
object

Definition at line 323 of file communication.model.php.

communicationModel::getFriendGroups ( )

Get a list of groups

Returns
array

Definition at line 340 of file communication.model.php.

communicationModel::getFriends (   $friend_group_srl = 0,
  $columnList = array() 
)

Get a list of friends

Parameters
int$friend_group_srl(default 0)
array$columnList
Returns
BaseObject

Definition at line 281 of file communication.model.php.

communicationModel::getGrantArray (   $default,
  $group 
)

get grant array for insert to database. table module_config's config field

Parameters
string$default
array$group
Returns
array

Definition at line 69 of file communication.model.php.

communicationModel::getMessages (   $message_type = "R",
  $columnList = array() 
)

get a message list

Parameters
string$message_type(R: Received Message, S: Sent Message, T: Archive)
array$columnList
Returns
BaseObject

Definition at line 240 of file communication.model.php.

communicationModel::getNewMessage (   $columnList = array())

get a new message

Parameters
array$columnList
Returns
object message information

Definition at line 212 of file communication.model.php.

communicationModel::getSelectedMessage (   $message_srl,
  $columnList = array() 
)

get the message contents

Parameters
int$message_srl
array$columnList
Returns
object message information

Definition at line 156 of file communication.model.php.

communicationModel::init ( )

Initialization

Returns
void

Definition at line 16 of file communication.model.php.

communicationModel::isAddedFriend (   $member_srl)

check if a friend is already added

Parameters
int$member_srl
Returns
int

Definition at line 305 of file communication.model.php.

communicationModel::isFriend (   $target_srl)

check whether to be added in the friend list

Parameters
int$target_srl
Returns
boolean (true : friend, false : not friend)

Definition at line 363 of file communication.model.php.


The documentation for this class was generated from the following file: