src/Entity/XiboLayout.php
public function createTemplate($layoutId, $includeWidgets, $name, $tags, $description)
    {
        $this->userId = $this->getEntityProvider()->getMe()->getId();
        $this->layoutId = $layoutId;
        $this->includeWidgets = $includeWidgets;
        $this->name = $name;
        $this->tags = $tags;
        $this->description = $description;
        $this->getLogger()->info('Creating Template ' . $name . ' from layout ID ' . $layoutId);
        $response = $this->doPost('/template/' . $layoutId, $this->toArray());

        return $this->hydrate($response);
    }
public function createTemplate($layoutId, $includeWidgets, $name, $tags, $description)
    {
        $this->userId = $this->getEntityProvider()->getMe()->getId();
        $this->layoutId = $layoutId;
        $this->includeWidgets = $includeWidgets;
        $this->name = $name;
        $this->tags = $tags;
        $this->description = $description;
        $this->getLogger()->info('Creating Template ' . $name . ' from layout ID ' . $layoutId);
        $response = $this->doPost('/template/' . $layoutId, $this->toArray());

        return $this->hydrate($response);
    }
public function createTemplate ( $ layoutId , $ includeWidgets , $ name , $ tags , $ description ) { $ this -> userId = $ this -> getEntityProvider ( ) -> getMe ( ) -> getId ( ) ; $ this -> layoutId = $ layoutId ; $ this -> includeWidgets = $ includeWidgets ; $ this -> name = $ name ; $ this -> tags = $ tags ; $ this -> description = $ description ; $ this -> getLogger ( ) -> info ( 'Creating Template ' . $ name . ' from layout ID ' . $ layoutId ) ; $ response = $ this -> doPost ( '/template/' . $ layoutId , $ this -> toArray ( ) ) ; return $ this -> hydrate ( $ response ) ; }
Create Template from provided layout ID.

@param int $layoutId The layout ID to create a template from
@param int $includeWidgets Flag indicating whether to include widgets in the template
@param string $name name of the template
@param string $tags comma separeted list of tags for the template
@param string $description description of the template
@return XiboLayout
Create Template from provided layout ID .