function init() { parent::init(); $this->addCondition('status', 'Sent'); $this->addCondition('direction', 'Out'); $this->addHook('afterSave', $this); $this->addHook('afterInsert', $this); }
function init() { parent::init(); $this->addCondition('status', 'Received'); $this->addCondition('direction', 'In'); }