Permissiontemplates

Extends\CActiveRecord

This is the model class for table "{{permissiontemplates}}".

The following are the available columns in table '{{permissiontemplates}}':

package

Default

Methods

Apply a user role to the user.

applyToUser(integer $iUserId,integer $ptid = null): boolean

A user role is defined in table prefix_permissiontemplates. If user does not have the user role already, a new entry will be made in table prefix_user_in_permissionrole

Arguments

$iUserId

integer

$ptid

integer

Permissiontemplates id

Response

boolean

Clear User.

clearUser(integer $iUserId): boolean

Arguments

$iUserId

integer

Response

boolean

compileExportXML

compileExportXML(): \SimpleXMLElement

Response

\SimpleXMLElement

createFromXML

createFromXML(\??? $xmlEntitiy,boolean $includeRootData = false): \Permissiontemplates|boolean

Arguments

$xmlEntitiy

\???

$includeRootData

boolean

Response

\Permissiontemplates|boolean

Gets the buttons for the GridView

getButtons(): string

Response

string

Returns Columns.s

getColumns(): array

Response

array

Collects and maps the connected userids to userobjects

getConnectedUserobjects(): array

Response

array

filled with usermodels

Returns Date Format.

getDateFormat(): string

Response

string

getFormattedDateCreated

getFormattedDateCreated()

Returns formatted 'renewed_last' date.

getFormattedDateModified(): string

Response

string

Return true if this role GIVE a permission Used in self::compileExportXML only

getHasPermission(string $sPermission,string $sCRUD): boolean

Arguments

$sPermission

string

$sCRUD

string

Response

boolean

Returns the static model of the specified AR class.

model(string $className = __CLASS__): \Permissiontemplates
static

Please note that you should have this exact method in all your CActiveRecord descendants!

Arguments

$className

string

active record class name.

Response

\Permissiontemplates

the static model class

relations

relations(): array

Response

array

relational rules.

removeCdataFormat

removeCdataFormat(mixed $node): string

Arguments

$node

mixed

XML node?

Response

string

rules

rules(): array

Response

array

validation rules for model attributes.

tableName

tableName(): string

Response

string

the associated database table name

Properties

ptid

ptid :integer

Type(s)

integer

name

name :string

Type(s)

string

description

description :string

Type(s)

string

renewed_last

renewed_last :string

Type(s)

string

created_at

created_at :string

Type(s)

string

created_by

created_by :integer

Type(s)

integer