Class yeesoft\post\models\Post

Inheritanceyeesoft\post\models\Post » yeesoft\db\ActiveRecord » yii\db\ActiveRecord
Implementsyeesoft\models\OwnerAccess
Subclassesyeesoft\post\models\search\PostSearch

This is the model class for table "post".

Public Methods

Hide inherited methods

MethodDescriptionDefined By
attributeLabels() yeesoft\post\models\Post
behaviors() yeesoft\post\models\Post
find() yeesoft\post\models\Post
getAuthor() yeesoft\post\models\Post
getCategory() yeesoft\post\models\Post
getCommentStatusList() GetCommentStatusList yeesoft\post\models\Post
getCommentStatusText() yeesoft\post\models\Post
getCreatedDate() yeesoft\post\models\Post
getCreatedDatetime() yeesoft\post\models\Post
getCreatedTime() yeesoft\post\models\Post
getFullAccessPermission() Get permission to check whether the access is denied to users who are not authors of item. yeesoft\post\models\Post
getOwnerField() Returns name of field in the model indicating the author's id. Is used only when $ownerAccessPermission is set yeesoft\post\models\Post
getPublishedDate() yeesoft\post\models\Post
getPublishedDatetime() yeesoft\post\models\Post
getPublishedTime() yeesoft\post\models\Post
getRevision() yeesoft\post\models\Post
getShortContent() yeesoft\post\models\Post
getStatusList() GetTypeList yeesoft\post\models\Post
getStatusOptionsList() GetStatusOptionsList yeesoft\post\models\Post
getStatusText() yeesoft\post\models\Post
getThumbnail() yeesoft\post\models\Post
getUpdatedBy() yeesoft\post\models\Post
getUpdatedDate() yeesoft\post\models\Post
getUpdatedDatetime() yeesoft\post\models\Post
getUpdatedTime() yeesoft\post\models\Post
init() yeesoft\post\models\Post
isMultilingual() Returns TRUE if model support multilingual behavior. yeesoft\db\ActiveRecord
rules() yeesoft\post\models\Post
tableName() yeesoft\post\models\Post
updateRevision() yeesoft\post\models\Post

Constants

Hide inherited constants

ConstantValueDescriptionDefined By
COMMENT_STATUS_CLOSED 0 yeesoft\post\models\Post
COMMENT_STATUS_OPEN 1 yeesoft\post\models\Post
STATUS_PENDING 0 yeesoft\post\models\Post
STATUS_PUBLISHED 1 yeesoft\post\models\Post

Method Details

attributeLabels() public method

public void attributeLabels ( )
behaviors() public method

public void behaviors ( )
find() public static method

public static yeesoft\post\models\PostQuery find ( )
return yeesoft\post\models\PostQuery

The active query used by this AR class.

getAuthor() public method

public void getAuthor ( )
getCategory() public method

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

GetCommentStatusList

public static array getCommentStatusList ( )
getCommentStatusText() public method

public void getCommentStatusText ( )
getCreatedDate() public method

public void getCreatedDate ( )
getCreatedDatetime() public method

public void getCreatedDatetime ( )
getCreatedTime() public method

public void getCreatedTime ( )
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 ( )
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 ( )
getPublishedDate() public method

public void getPublishedDate ( )
getPublishedDatetime() public method

public void getPublishedDatetime ( )
getPublishedTime() public method

public void getPublishedTime ( )
getRevision() public method

public void getRevision ( )
getShortContent() public method

public void getShortContent ( $delimiter '<!-- pagebreak -->' )
$delimiter
getStatusList() public static method

GetTypeList

public static array getStatusList ( )
getStatusOptionsList() public static method

GetStatusOptionsList

public static array getStatusOptionsList ( )
getStatusText() public method

public void getStatusText ( )
getThumbnail() public method

public void getThumbnail ( $options = ['class' => 'thumbnail pull-left''style' => 'width: 240px'] )
$options
getUpdatedBy() public method

public void getUpdatedBy ( )
getUpdatedDate() public method

public void getUpdatedDate ( )
getUpdatedDatetime() public method

public void getUpdatedDatetime ( )
getUpdatedTime() public method

public void getUpdatedTime ( )
init() public method

public void init ( )
rules() public method

public void rules ( )
tableName() public static method

public static void tableName ( )
updateRevision() public method

public void updateRevision ( )