Example #1
0
 /**
  * Gets all the pages of the specific type, whether they reside in the tree or not
  * @param string $itemType The name of the template
  * @return array An array of OPages
  */
 public function getPagesByType($itemType)
 {
     $page = new Page();
     $result = $page->getPagesByType($itemType);
     foreach ($result as &$p) {
         $p = $this->localize($p);
     }
     return $result;
 }