public function getByName($name) {
        $templates = $this->listAll();
        if (empty($templates['user']))
            return false;
        foreach ($templates['user'] as $template) {
            if ($template['name'] === $name) {
                return $template['id'];
            }
        }
        return false;
    }
public function getByName($name) {
        $templates = $this->listAll();
        if (empty($templates['user']))
            return false;
        foreach ($templates['user'] as $template) {
            if ($template['name'] === $name) {
                return $template['id'];
            }
        }
        return false;
    }
public function getByName ( $ name ) { $ templates = $ this -> listAll ( ) ; if ( empty ( $ templates [ 'user' ] ) ) return false ; foreach ( $ templates [ 'user' ] as $ template ) { if ( $ template [ 'name' ] === $ name ) { return $ template [ 'id' ] ; } } return false ; }
Get template id by Name

@param type $name name of the template
@return int|boolean $id template_id or false
Get template id by Name