Documentation

內容目录

上一个主题

< Abstract class Phalcon\Mvc\Model

下一个主题

Class Phalcon\Mvc\Model\Behavior\SoftDelete >

本页

Abstract class Phalcon\Mvc\Model\Behavior

Source on GitHub

This is an optional base class for ORM behaviors

Methods

public __construct ([array $options])

protected mustTakeAction (unknown $eventName)

Checks whether the behavior must take action on certain event

protected array getOptions ([string $eventName])

Returns the behavior options related to an event

public notify (unknown $type, Phalcon\Mvc\ModelInterface $model)

This method receives the notifications from the EventsManager

public missingMethod (Phalcon\Mvc\ModelInterface $model, string $method, [array $arguments])

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

Follow along: