Interface lispa\amos\cwh\base\ModelNetworkInterface
Interface ModelNetworkInterface
Public Methods
Method | Description | Defined By |
---|---|---|
getMmClassName() | Return classname of the MM table connecting user and network | lispa\amos\cwh\base\ModelNetworkInterface |
getMmNetworkIdFieldName() | Get the name of field that contains user id in network-users association table | lispa\amos\cwh\base\ModelNetworkInterface |
getMmTableName() | Get the name of the table storing network-users associations | lispa\amos\cwh\base\ModelNetworkInterface |
getMmUserIdFieldName() | Get the name of field that contains network id in network-users association table | lispa\amos\cwh\base\ModelNetworkInterface |
getUserId() | Get the user id used in network-users association table | lispa\amos\cwh\base\ModelNetworkInterface |
isNetworkUser() | Return true if the user with id $userId belong to the network with id $networkId; if $userId is null the logged User id is considered | lispa\amos\cwh\base\ModelNetworkInterface |
isValidated() | Return true if the network is validated or no validation process is implemented for the network. | lispa\amos\cwh\base\ModelNetworkInterface |
Method Details
Return classname of the MM table connecting user and network
public abstract string getMmClassName ( ) |
Get the name of field that contains user id in network-users association table
public abstract string getMmNetworkIdFieldName ( ) |
Get the name of the table storing network-users associations
public abstract string getMmTableName ( ) |
Get the name of field that contains network id in network-users association table
public abstract string getMmUserIdFieldName ( ) |
Get the user id used in network-users association table
public abstract integer getUserId ( ) |
Return true if the user with id $userId belong to the network with id $networkId; if $userId is null the logged User id is considered
public abstract boolean isNetworkUser ( $networkId, $userId = null ) | ||
$networkId | integer | |
$userId | integer |
Return true if the network is validated or no validation process is implemented for the network.
if $networkId is null, current network (this) is condidered
public abstract boolean isValidated ( $networkId = null ) | ||
$networkId | integer |