/** * @inheritdoc */ public function init() { $this->on(self::EVENT_LOAD_LOCAL_OBJECT, [$this, 'searchLocalObject']); parent::init(); }
public function init() { parent::init(); $this->on(static::EVENT_COLLECT_FROM_OBJECTS, [$this, 'internalCollectFromObjects']); $this->on(static::EVENT_COLLECT_FROM_MODELS, [$this, 'internalCollectFromModels']); }