Documentation

Table Of Contents

Previous topic

< Abstract class Phalcon\Mvc\Collection

Next topic

Class Phalcon\Mvc\Collection\Behavior\SoftDelete >

This Page

Abstract class Phalcon\Mvc\Collection\Behavior

implements Phalcon\Mvc\Collection\BehaviorInterface

Source on GitHub

This is an optional base class for ORM behaviors

Methods

public __construct ([array $options])

protected mustTakeAction (mixed $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 (mixed $type, Phalcon\Mvc\CollectionInterface $model)

This method receives the notifications from the EventsManager

public missingMethod (Phalcon\Mvc\CollectionInterface $model, mixed $method, [mixed $arguments])

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

Follow along: