Available models

When you prefer to create your own public part, you can access your blog data through our models. Our models also have some scopes out of the box which allows you to speed up your process for getting data for your views.

All models are extending the BaseModel which has a function to scope an item by it's hash.

Category

Currently no scopes available for this model

Comment

Get the comments with a given revised

byRevised($revised)

Available revised options:

  • 1 = pending
  • 2 = approved
  • 3 = disapproved

History

Note: The History model is served by the Tracert package

Get the activity for a specific user.

onUser($user_id)

Get the activity of an given record in a given table.

onTableRow($table, $row)

Get the activity between two dates.

betweenDates($from, $to)

Post

Get the posts taht are visible for the admin user (all)

forAdmin()

Get the posts that are visible for the logged in author

forAuthor()

Get the posts that are visible for the logged in reviewer

forReviewer()

Get a post by it's slug

bySlug($slug)

Get all published posts that have a visibility of 'public'

forPublic()

Role

Get all the roles that have access to the admin panel

byAdminRoles()

Status

Currently no scopes available for this model

Tag

Currently no scopes available for this model

Visibility

Currently no scopes available for this model