src/Pok/PoolDBM/Transaction.php
protected function addQueue($action, $managerName, $model, $id = null)
    {
        if (!in_array($action, array( self::QUEUE_ACTION_PERSIST, self::QUEUE_ACTION_REMOVE))) {
            throw new \InvalidArgumentException(sprintf('Action unknown, manager name : "%s".', $managerName));
        }

        $this->queueActions[]      = $action;
        $this->queueManagerNames[] = $managerName;
        $this->queueModels[]       = $model;
        $this->queueIds[]          = $id;
    }
protected function addQueue($action, $managerName, $model, $id = null)
    {
        if (!in_array($action, array( self::QUEUE_ACTION_PERSIST, self::QUEUE_ACTION_REMOVE))) {
            throw new \InvalidArgumentException(sprintf('Action unknown, manager name : "%s".', $managerName));
        }

        $this->queueActions[]      = $action;
        $this->queueManagerNames[] = $managerName;
        $this->queueModels[]       = $model;
        $this->queueIds[]          = $id;
    }
protected function addQueue ( $ action , $ managerName , $ model , $ id = null ) { if ( ! in_array ( $ action , array ( self :: QUEUE_ACTION_PERSIST , self :: QUEUE_ACTION_REMOVE ) ) ) { throw new \ InvalidArgumentException ( sprintf ( 'Action unknown, manager name : "%s".' , $ managerName ) ) ; } $ this -> queueActions [ ] = $ action ; $ this -> queueManagerNames [ ] = $ managerName ; $ this -> queueModels [ ] = $ model ; $ this -> queueIds [ ] = $ id ; }
Add action with model reference in queue.

@param integer    $action
@param string     $managerName
@param mixed      $model
@param null|mixed $id

@throws \InvalidArgumentException
Add action with model reference in queue .