Changeset 15235
- Timestamp:
- 02/03/09 19:20:49 (4 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
plugins/sfXSLTViewPlugin/trunk/lib/sfArray2XML.php
r15211 r15235 812 812 * @return boolean 813 813 */ 814 public static function appendDoctrinePager($xmldocument, $node, $val) 815 { 814 public static function appendDoctrinePager($xmldocument, $node, $val, $key=null) 815 { 816 $data = array(); 817 816 818 // If the pager has not been executed, it will throw Doctrine_Pager_Exception 817 819 if (! $val->getExecuted()) 818 820 { 819 $ val->execute();821 $data['results'] = $val->execute(); 820 822 } 821 823 822 $data = array(); 823 $data = $val->getResults(); 824 //$data = $val->getResults(); 824 825 if ($val->haveToPaginate()) 825 826 { 826 827 //$data["pagelinks"] = $val->getLinks(); 828 $data["pages"] = array(); 827 829 $data["pages"]['ResultCount'] = $val->getNumResults(); 828 830 $data["pages"]['FirstPage'] = $val->getFirstPage(); … … 837 839 if($data) // TODO: Not sure this test makes sense? $data["total"] should be set, forcing 'true' 838 840 { 841 //wtUtil::dump($data); 839 842 //$this->addArray($data, $node, $key); 840 843 self::appendArray($xmldocument, $node, $data, $key);