Class Content
Representation of a content.
The Icybee\Modules\Contents\Content
class extends the Icybee\Modules\Nodes\Node
class with the following properties:
Icybee\Modules\Contents\Content::$subtitle
: An optional subtitle.Icybee\Modules\Contents\Content::$body
: A body (with a customizable editor).Icybee\Modules\Contents\Content::$excerpt
: An optional excerpt, that can be generated from the body if it is not
defined.
- $date: The date of the content.
Icybee\Modules\Contents\Content::$editor
: The editor used to edit the body of the content.Icybee\Modules\Contents\Content::$is_home_excluded
: An additionnal visibility option.
- ICanBoogie\Object implements ICanBoogie\ToArrayRecursive uses ICanBoogie\ToArrayRecursiveTrait, ICanBoogie\PrototypeTrait
- ICanBoogie\ActiveRecord
- Icybee\Modules\Nodes\Node implements Brickrouge\CSSClassNames uses Brickrouge\CSSClassNamesProperty, ICanBoogie\ActiveRecord\CreatedAtProperty, ICanBoogie\ActiveRecord\UpdatedAtProperty
- Icybee\Modules\Contents\Content uses Icybee\Modules\Contents\DateProperty
Direct known subclasses
Located at vendor/icanboogie-modules/contents/lib/activerecords/content.php
Methods summary
public static
|
#
on_views_activerecordprovider_alter_result(
Sets the $rendered_body property of the loaded records if suitable rendered bodies are available in the cache. |
protected
string
|
|
public
|
#
__construct(
The |
public
string
|
|
protected
string
|
|
protected
string
|
|
protected
string
|
|
protected
string
|
|
protected
Node|boolean
|
|
protected
Node|boolean
|
|
public
string
|
Methods inherited from Icybee\Modules\Nodes\Node
__get()
,
alter_persistent_properties()
,
get_constructor()
,
get_css_class_names()
,
get_language()
,
get_site()
,
get_slug()
,
get_user()
,
lazy_get_native()
,
lazy_get_translation()
,
lazy_get_translations()
,
lazy_get_translations_keys()
,
save()
,
set_site()
,
set_user()
,
translation()
Methods inherited from ICanBoogie\ActiveRecord
__sleep()
,
delete()
,
get_model()
,
get_model_id()
Methods inherited from ICanBoogie\Object
from()
,
resolve_facade_properties()
,
resolve_private_properties()
,
to_array()
,
to_json()
Methods inherited from Brickrouge\CSSClassNames
Methods inherited from ICanBoogie\ToArrayRecursive
Methods used from Icybee\Modules\Contents\DateProperty
Methods used from Brickrouge\CSSClassNamesProperty
Methods used from ICanBoogie\ActiveRecord\CreatedAtProperty
get_created_at()
,
set_created_at()
Methods used from ICanBoogie\ActiveRecord\UpdatedAtProperty
get_updated_at()
,
set_updated_at()
Methods used from ICanBoogie\ToArrayRecursiveTrait
Methods used from ICanBoogie\PrototypeTrait
__call()
,
__set()
,
__wakeup()
,
get_prototype()
,
has_method()
,
has_property()
,
last_chance_get()
,
last_chance_set()
Magic methods summary
Constants summary
string |
SUBTITLE
|
'subtitle' |
|
string |
BODY
|
'body' |
|
string |
EXCERPT
|
'excerpt' |
|
string |
DATE
|
'date' |
|
string |
EDITOR
|
'editor' |
|
string |
IS_HOME_EXCLUDED
|
'is_home_excluded' |
Constants inherited from Icybee\Modules\Nodes\Node
CONSTRUCTOR
,
CREATED_AT
,
IS_ONLINE
,
LANGUAGE
,
NATIVEID
,
NID
,
SITEID
,
SLUG
,
TITLE
,
UID
,
UPDATED_AT
,
UUID
Properties summary
public
string
|
$subtitle |
#
Subtitle. |
public
string
|
$body |
#
Body of the content. |
public
string
|
$excerpt |
#
An excerpt of the body. |
public
string
|
$editor |
#
The identifier of the editor that was used to edit the body. |
public
boolean
|
$is_home_excluded |
#
|
Properties inherited from Icybee\Modules\Nodes\Node
$constructor
,
$is_online
,
$language
,
$nativeid
,
$nid
,
$siteid
,
$slug
,
$title
,
$uid
,
$uuid
Properties inherited from ICanBoogie\ActiveRecord
Magic properties
public
|
$date |
|
#
The date of the content. |
Magic properties inherited from Icybee\Modules\Nodes\Node
$created_at
,
$css_class
,
$native
,
$next
,
$previous
,
$site
,
$translation
,
$updated_at
,
$user