src/Entity/XiboLayout.php
public function getByTemplateId($id)
    {
        $this->getLogger()->info('Getting template ID ' . $this->templateId);
        $response = $this->doGet('/template', [
            'templateId' => $id
        ]);

        if (count($response) <= 0)
            throw new XiboApiException('Expecting a single record, found ' . count($response));

        $this->getLogger()->debug('Passing the response to Hydrate');
        return $this->hydrate($response[0]);
    }
public function getByTemplateId($id)
    {
        $this->getLogger()->info('Getting template ID ' . $this->templateId);
        $response = $this->doGet('/template', [
            'templateId' => $id
        ]);

        if (count($response) <= 0)
            throw new XiboApiException('Expecting a single record, found ' . count($response));

        $this->getLogger()->debug('Passing the response to Hydrate');
        return $this->hydrate($response[0]);
    }
public function getByTemplateId ( $ id ) { $ this -> getLogger ( ) -> info ( 'Getting template ID ' . $ this -> templateId ) ; $ response = $ this -> doGet ( '/template' , [ 'templateId' => $ id ] ) ; if ( count ( $ response ) <= 0 ) throw new XiboApiException ( 'Expecting a single record, found ' . count ( $ response ) ) ; $ this -> getLogger ( ) -> debug ( 'Passing the response to Hydrate' ) ; return $ this -> hydrate ( $ response [ 0 ] ) ; }
Get the template by ID

@param int $id template ID
@return XiboLayout
@throws XiboApiException
Get the template by ID