Documentation

Table Of Contents

Previous topic

< Class Phalcon\Mvc\Model\Behavior\SoftDelete

Next topic

Class Phalcon\Mvc\Model\Criteria >

This Page

Class Phalcon\Mvc\Model\Behavior\Timestampable

extends abstract class Phalcon\Mvc\Model\Behavior

implements Phalcon\Mvc\Model\BehaviorInterface

Allows to automatically update a model’s attribute saving the datetime when a record is created or updated

Methods

public notify (unknown $type, unknown $model)

Listens for notifications from the models manager

public __construct ([unknown $options]) inherited from Phalcon\Mvc\Model\Behavior

Phalcon\Mvc\Model\Behavior

protected mustTakeAction (unknown $eventName) inherited from Phalcon\Mvc\Model\Behavior

Checks whether the behavior must take action on certain event

protected array getOptions ([unknown $eventName]) inherited from Phalcon\Mvc\Model\Behavior

Returns the behavior options related to an event

public missingMethod (unknown $model, unknown $method, [unknown $arguments]) inherited from Phalcon\Mvc\Model\Behavior

Acts as fallbacks when a missing method is called on the model

Follow along: