Class Node
A node representation.
- 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
Direct known subclasses
Icybee\Modules\Contents\Content
,
Icybee\Modules\Files\File
,
Icybee\Modules\Forms\Form
,
Icybee\Modules\Pages\Page
Indirect known subclasses
Icybee\Modules\Articles\Article
,
Icybee\Modules\Images\Image
Located at vendor/icanboogie-modules/nodes/lib/activerecords/node.php
Methods summary
protected
|
|
protected
|
#
set_user(
Updates the |
protected
|
|
protected
|
#
set_site(
Updates the |
protected
string
|
|
protected
string
|
|
protected
string
|
|
public
|
|
public
mixed
|
#
__get( string $property )
Fires |
public
integer
|
|
protected
array
|
#
alter_persistent_properties( array $properties,
Sets $created_at to "now" if it is empty, and sets $updated_at to "now" before passing the method to the parent class. |
protected
|
|
protected
|
|
protected
|
|
public
|
#
translation( string $language = null )
Returns the translation in the specified language for the record, or the record itself if no translation can be found. |
protected
|
|
protected
|
|
protected
|
|
protected
array[string]mixed
|
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 ICanBoogie\ToArrayRecursive
Methods inherited from Brickrouge\CSSClassNames
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 |
NID
|
'nid' |
|
string |
UID
|
'uid' |
|
string |
SITEID
|
'siteid' |
|
string |
UUID
|
'uuid' |
|
string |
TITLE
|
'title' |
|
string |
SLUG
|
'slug' |
|
string |
CONSTRUCTOR
|
'constructor' |
|
string |
CREATED_AT
|
'created_at' |
|
string |
UPDATED_AT
|
'updated_at' |
|
string |
IS_ONLINE
|
'is_online' |
|
string |
LANGUAGE
|
'language' |
|
string |
NATIVEID
|
'nativeid' |
Properties summary
public
integer
|
$nid |
#
Node key. |
public
integer
|
$uid |
#
Identifier of the owner of the node. |
public
integer
|
$siteid |
#
Identifier of the site the node belongs to. |
public
string
|
$uuid |
#
A v4 UUID. |
public
string
|
$title |
#
Title of the node. |
public
string
|
$slug |
#
Slug of the node. |
public
string
|
$constructor |
#
Constructor of the node. |
public
boolean
|
$is_online |
#
Whether the node is online or not. |
public
string
|
$language |
#
Language of the node. |
public
integer
|
$nativeid |
#
Identifier of the node this node is translating. |
Properties inherited from ICanBoogie\ActiveRecord
Magic properties
public
|
$created_at |
|
#
The date and time at which the node was created. |
public
|
$updated_at |
|
#
The date and time at which the node was updated. |
public
|
$native |
|
|
public
|
$user |
|
#
The user owning the node. |
public
|
$site |
|
#
The site associated with the node. |
public
string
|
$css_class |
|
|
public read-only
|
$next |
|
|
public read-only
|
$previous |
|
|
public read-only
|
$translation |
|