Interface lispa\amos\cwh\base\ModelNetworkInterface

Implemented bylispa\amos\community\models\Community, lispa\amos\community\models\base\Community, lispa\amos\community\models\search\CommunitySearch, lispa\amos\core\record\NetworkModel, lispa\amos\myactivities\basic\CommunityToValidate, lispa\amos\organizzazioni\models\Profilo, lispa\amos\organizzazioni\models\base\Profilo, lispa\amos\organizzazioni\models\search\ProfiloSearch

Interface ModelNetworkInterface

Public Methods

Hide inherited methods

MethodDescriptionDefined 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

getMmClassName() public abstract method

Return classname of the MM table connecting user and network

public abstract string getMmClassName ( )
getMmNetworkIdFieldName() public abstract method

Get the name of field that contains user id in network-users association table

public abstract string getMmNetworkIdFieldName ( )
getMmTableName() public abstract method

Get the name of the table storing network-users associations

public abstract string getMmTableName ( )
getMmUserIdFieldName() public abstract method

Get the name of field that contains network id in network-users association table

public abstract string getMmUserIdFieldName ( )
getUserId() public abstract method

Get the user id used in network-users association table

public abstract integer getUserId ( )
isNetworkUser() public abstract method

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
isValidated() public abstract method

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