Class yeesoft\media\models\Album

Inheritanceyeesoft\media\models\Album » yeesoft\db\ActiveRecord » yii\db\ActiveRecord
Implementsyeesoft\models\OwnerAccess
Subclassesyeesoft\media\models\AlbumSearch

This is the model class for table "media_album".

Public Methods

Hide inherited methods

MethodDescriptionDefined By
attributeLabels() yeesoft\media\models\Album
behaviors() yeesoft\media\models\Album
find() yeesoft\media\models\Album
getAlbums() Return all albums. yeesoft\media\models\Album
getCategory() yeesoft\media\models\Album
getFullAccessPermission() Get permission to check whether the access is denied to users who are not authors of item. yeesoft\media\models\Album
getMedia() yeesoft\media\models\Album
getOwnerField() Returns name of field in the model indicating the author's id. Is used only when $ownerAccessPermission is set yeesoft\media\models\Album
init() yeesoft\media\models\Album
isMultilingual() Returns TRUE if model support multilingual behavior. yeesoft\db\ActiveRecord
rules() yeesoft\media\models\Album
tableName() yeesoft\media\models\Album

Method Details

attributeLabels() public method

public void attributeLabels ( )
behaviors() public method

public void behaviors ( )
find() public static method

public static void find ( )
getAlbums() public static method

Return all albums.

public static static getAlbums ( $asArray false, $withCategories false )
$asArray bool

Return array

$withCategories bool

Two-dimensional array with albums categories

getCategory() public method

public \yii\db\ActiveQuery getCategory ( )
getFullAccessPermission() public static method

Get permission to check whether the access is denied to users who are not authors of item.

public static void getFullAccessPermission ( )
getMedia() public method

public \yii\db\ActiveQuery getMedia ( )
getOwnerField() public static method

Returns name of field in the model indicating the author's id. Is used only when $ownerAccessPermission is set

public static void getOwnerField ( )
init() public method

public void init ( )
rules() public method

public void rules ( )
tableName() public static method

public static void tableName ( )