/** * (non-PHPdoc) * @see \libsrv\AbstractService::create() */ public function create(array $params = array(), $ignore = false) { $userId = parent::create($params, $ignore); if (($userId = (int) $userId) <= 0) { return false; } $groupIds = $this->getFormProcessor()->group_ids; if (is_array($groupIds)) { $this->_userGroups->modify($userId, $groupIds); } $dispatcher = Plugin::getInstance(); $dispatcher->trigger('onAfterSave', array(__METHOD__, &$params, $userId)); return $userId; }
/** * (non-PHPdoc) * @see \libsrv\AbstractService::create() */ public function create(array $params = array(), $ignore = false) { $postId = parent::create($params, $ignore); if (($postId = (int) $postId) <= 0) { return false; } $dispatcher = Plugin::getInstance(); $dispatcher->trigger('onAfterSave', array(__METHOD__, &$params, $postId)); return $postId; }
/** * (non-PHPdoc) * @see \libsrv\AbstractService::create() */ public function create(array $params = array(), $ignore = false) { $dispatcher = Plugin::getInstance(); $dispatcher->trigger('onBeforeSave', array(__METHOD__, &$params)); return parent::create($params, $ignore); }