/** * Executes CategoryViewer::doCategoryQuery() and returns the contents wrapped in a DTO * * @return $ret WikiaMobileCategoryContents The contents of the category */ public function getContents() { parent::doCategoryQuery(); /* if ( $this->count > 0 ) { ksort( $this->items ); } */ $ret = F::build('WikiaMobileCategoryContents', array($this->items, $this->count)); $this->count = $this->items = null; return $ret; }