Summary:
class.CmsLayoutTemplateQuery.php not implemented as documented + query fatal error on unimplemented filters
Detailed Description:
http://viewsvn.cmsmadesimple.org/filedetails.php?repname=cmsmadesimple&path=%2Ftrunk%2Flib%2Fclasses%2Fclass.CmsLayoutTemplateQuery.php
class.CmsLayoutTemplateQuery.php documentation reads:
* A class to represent a template query, and its results.
* This class accepts in it's constructor an array (or a comma separated string,
of filter arguments).
* Accepted filter arguments are:<br/>
* o:string - The originator name<br/>
* i:##,##,## - A list of template id's<br/>
* t:## - A template type id<br/>
* c:## - A template category id.<br/>
* d:## - A design id<br/>
* u:## - A template owner id<br/>
* e:## - An additional editor id.<br/>
* l:# - A boolean (0 or 1) indicating listable, or not listable.
* If you run the following code the query gives a fatal error:
$query_param = 'i:'.$template_id;
$tpls = CmsLayoutTemplate::template_query(array($query_param, 'as_list' => 1));
print "tpls:\n";
print_r($tpls);
* The following code fragement works:
$query_param = 'idlist:'.$template_id;
$tpls = CmsLayoutTemplate::template_query(array($query_param, 'as_list' => 1));
print "tpls:\n";
print_r($tpls);