src/Entity/XiboLayout.php
public function create($name, $description, $layoutId, $resolutionId)
    {
        $this->getLogger()->debug('Getting Resource Owner');
        $this->userId = $this->getEntityProvider()->getMe()->getId();
        $this->name = $name;
        $this->description = $description;
        $this->layoutId = $layoutId;
        $this->resolutionId = $resolutionId;

        $this->getLogger()->info('Creating Layout ' . $this->layout);
        $response = $this->doPost('/layout', $this->toArray());

        $layout = $this->constructLayoutFromResponse($response);

        return $layout;
    }
public function create($name, $description, $layoutId, $resolutionId)
    {
        $this->getLogger()->debug('Getting Resource Owner');
        $this->userId = $this->getEntityProvider()->getMe()->getId();
        $this->name = $name;
        $this->description = $description;
        $this->layoutId = $layoutId;
        $this->resolutionId = $resolutionId;

        $this->getLogger()->info('Creating Layout ' . $this->layout);
        $response = $this->doPost('/layout', $this->toArray());

        $layout = $this->constructLayoutFromResponse($response);

        return $layout;
    }
public function create ( $ name , $ description , $ layoutId , $ resolutionId ) { $ this -> getLogger ( ) -> debug ( 'Getting Resource Owner' ) ; $ this -> userId = $ this -> getEntityProvider ( ) -> getMe ( ) -> getId ( ) ; $ this -> name = $ name ; $ this -> description = $ description ; $ this -> layoutId = $ layoutId ; $ this -> resolutionId = $ resolutionId ; $ this -> getLogger ( ) -> info ( 'Creating Layout ' . $ this -> layout ) ; $ response = $ this -> doPost ( '/layout' , $ this -> toArray ( ) ) ; $ layout = $ this -> constructLayoutFromResponse ( $ response ) ; return $ layout ; }
Create a new layout.
Creates new layout with the specified parameters

@param string $name Name of the layout
@param string $description Optional description of the layout
@param int $layoutId If layout should be created from the template, provide the layoutId of the template
@param int $resolutionId If template is not provided, provide resolutionId
@return XiboLayout
@throws InvalidArgumentException
Create a new layout . Creates new layout with the specified parameters