public function __construct($oForm) { $this->oForm = $oForm; if ($this->isDoingAjax()) { return; } if ($this->hasBeenCalled('resource_' . $oForm->aArguments['caller_id'])) { return; } $this->_setHooks(); }