public function getRenderPoolManager(bool $force = false) : CNabuRenderPoolManager
    {
        if ($this->nb_customer instanceof CNabuCustomer) {
            if ($this->nb_render_pool_manager === null || $force) {
                if ($this->nb_render_pool_manager instanceof CNabuRenderPoolManager) {
                    $this->nb_render_pool_manager->finish();
                }
                $this->nb_render_pool_manager = new CNabuRenderPoolManager($this->nb_customer);
                $this->nb_render_pool_manager->init();
            } elseif (
                !(($nb_aux_customer = $this->nb_render_pool_manager->getCustomer()) instanceof CNabuCustomer) ||
                $this->nb_customer->getId() !== $nb_aux_customer->getId()
            ) {
                throw new ENabuRenderException(ENabuRenderException::ERROR_INVALID_RENDER_POOL_MANAGER);
            }
        } else {
            throw new ENabuCoreException(ENabuCoreException::EROR_CUSTOMER_NOT_FOUND);
        }

        return $this->nb_render_pool_manager;
    }
public function getRenderPoolManager(bool $force = false) : CNabuRenderPoolManager
    {
        if ($this->nb_customer instanceof CNabuCustomer) {
            if ($this->nb_render_pool_manager === null || $force) {
                if ($this->nb_render_pool_manager instanceof CNabuRenderPoolManager) {
                    $this->nb_render_pool_manager->finish();
                }
                $this->nb_render_pool_manager = new CNabuRenderPoolManager($this->nb_customer);
                $this->nb_render_pool_manager->init();
            } elseif (
                !(($nb_aux_customer = $this->nb_render_pool_manager->getCustomer()) instanceof CNabuCustomer) ||
                $this->nb_customer->getId() !== $nb_aux_customer->getId()
            ) {
                throw new ENabuRenderException(ENabuRenderException::ERROR_INVALID_RENDER_POOL_MANAGER);
            }
        } else {
            throw new ENabuCoreException(ENabuCoreException::EROR_CUSTOMER_NOT_FOUND);
        }

        return $this->nb_render_pool_manager;
    }
public function getRenderPoolManager ( bool $ force = false ) : CNabuRenderPoolManager { if ( $ this -> nb_customer instanceof CNabuCustomer ) { if ( $ this -> nb_render_pool_manager === null || $ force ) { if ( $ this -> nb_render_pool_manager instanceof CNabuRenderPoolManager ) { $ this -> nb_render_pool_manager -> finish ( ) ; } $ this -> nb_render_pool_manager = new CNabuRenderPoolManager ( $ this -> nb_customer ) ; $ this -> nb_render_pool_manager -> init ( ) ; } elseif ( ! ( ( $ nb_aux_customer = $ this -> nb_render_pool_manager -> getCustomer ( ) ) instanceof CNabuCustomer ) || $ this -> nb_customer -> getId ( ) !== $ nb_aux_customer -> getId ( ) ) { throw new ENabuRenderException ( ENabuRenderException :: ERROR_INVALID_RENDER_POOL_MANAGER ) ; } } else { throw new ENabuCoreException ( ENabuCoreException :: EROR_CUSTOMER_NOT_FOUND ) ; } return $ this -> nb_render_pool_manager ; }
Gets current Render Pool Manager instance. If not defined, then creates one for the current Customer.
@param bool $force Forces to set a new Render Pool Manager instance.
@return CNabuRenderPoolManager Returns the Render Pool manager.
@throws ENabuCoreException Raises an exception if Customer instance is not available or not matches with
the existing Render Pool Manager.
@throws ENabuRenderException Raises an exception if no Pool Managers are available.
Gets current Render Pool Manager instance . If not defined then creates one for the current Customer .