Methods summary
public
|
|
protected
AdminScript
|
#
setModelFactory( Charcoal\Factory\FactoryInterface $factory )
Parameters
- $factory
- The factory used to create models.
Returns
AdminScript Chainable
|
protected
Charcoal\Factory\FactoryInterface
|
#
modelFactory( )
Returns
Charcoal\Factory\FactoryInterface The model factory.
|
public
Charcoal\Object\Content
|
#
setActive( boolean $active )
Parameters
Returns
Implementation of
|
public
boolean
|
#
active( )
Returns
boolean
Implementation of
|
public
Charcoal\Object\Content
|
#
setPosition( integer $position )
Parameters
- $position
- The position (for ordering purpose).
Returns
Throws
InvalidArgumentException If the position is not an integer (or numeric integer string).
Implementation of
|
public
integer
|
#
position( )
Returns
integer
Implementation of
|
public
Charcoal\Object\Content
|
#
setCreated( DateTimeInterface|string|null $created )
Parameters
- $created
- The date/time at object's creation.
Returns
Throws
InvalidArgumentException If the date/time is invalid.
Implementation of
|
public
DateTimeInterface|null
|
#
created( )
Returns
DateTimeInterface|null
Implementation of
|
public
Charcoal\Object\Content
|
#
setCreatedBy( mixed $createdBy )
Parameters
- $createdBy
- The creator of the content object.
Returns
Implementation of
|
public
mixed
|
|
public
Charcoal\Object\Content
|
#
setLastModified( DateTimeInterface|string|null $lastModified )
Parameters
- $lastModified
- The last modified date/time.
Returns
Throws
InvalidArgumentException If the date/time is invalid.
Implementation of
|
public
DateTimeInterface
|
|
public
Charcoal\Object\Content
|
#
setLastModifiedBy( mixed $lastModifiedBy )
Parameters
- $lastModifiedBy
- The last modification's username.
Returns
Implementation of
|
public
mixed
|
|
public
boolean
|
#
preSave( )
StorableTrait > preSavÆ’e(): Called automatically before saving the object to source.
For content object, set the created and lastModified properties automatically
StorableTrait > preSavÆ’e(): Called automatically before saving the object to source.
For content object, set the created and lastModified properties automatically
Returns
boolean
|
public
boolean
|
#
preUpdate( array $properties = null )
StorableTrait > preUpdate(): Called automatically before updating the object to source.
For content object, set the lastModified property automatically.
StorableTrait > preUpdate(): Called automatically before updating the object to source.
For content object, set the lastModified property automatically.
Parameters
- $properties
- The properties (ident) set for update.
Returns
boolean
|