src/Entity/XiboNotification.php
public function create($subject, $body, $releaseDt, $isEmail, $isInterrupt, $displayGroupIds = [], $userGroupIds = [])
    {
        $this->userId = $this->getEntityProvider()->getMe()->getId();
        $this->subject = $subject;
        $this->body = $body;
        $this->releaseDt = $releaseDt;
        $this->isEmail = $isEmail;
        $this->isInterrupt = $isInterrupt;
        $this->displayGroupIds = $displayGroupIds;
        $this->userGroupIds = $userGroupIds;

        $this->getLogger()->info('Creating Notification ' . $subject);
        $response = $this->doPost('/notification', $this->toArray());

        return $this->hydrate($response);
    }
public function create($subject, $body, $releaseDt, $isEmail, $isInterrupt, $displayGroupIds = [], $userGroupIds = [])
    {
        $this->userId = $this->getEntityProvider()->getMe()->getId();
        $this->subject = $subject;
        $this->body = $body;
        $this->releaseDt = $releaseDt;
        $this->isEmail = $isEmail;
        $this->isInterrupt = $isInterrupt;
        $this->displayGroupIds = $displayGroupIds;
        $this->userGroupIds = $userGroupIds;

        $this->getLogger()->info('Creating Notification ' . $subject);
        $response = $this->doPost('/notification', $this->toArray());

        return $this->hydrate($response);
    }
public function create ( $ subject , $ body , $ releaseDt , $ isEmail , $ isInterrupt , $ displayGroupIds = [ ] , $ userGroupIds = [ ] ) { $ this -> userId = $ this -> getEntityProvider ( ) -> getMe ( ) -> getId ( ) ; $ this -> subject = $ subject ; $ this -> body = $ body ; $ this -> releaseDt = $ releaseDt ; $ this -> isEmail = $ isEmail ; $ this -> isInterrupt = $ isInterrupt ; $ this -> displayGroupIds = $ displayGroupIds ; $ this -> userGroupIds = $ userGroupIds ; $ this -> getLogger ( ) -> info ( 'Creating Notification ' . $ subject ) ; $ response = $ this -> doPost ( '/notification' , $ this -> toArray ( ) ) ; return $ this -> hydrate ( $ response ) ; }
Create new Notification.

@param string $subject The Notification Subject
@param string $body The Notification message
@param string $releaseDt ISO date representing the release date for this notification
@param int $isEmail Flag indicating whether this notification should be emailed
@param int $isInterrupt Flag indicating whether this notification should interrupt the web portal nativation/login
@param array[int] $displayGroupIds The display group ids to assign this notification to
@param array[int] $userGroupIds The user group ids to assign to this notification
@return XiboNotification
Create new Notification .