code/dataobjects/BlockSet.php
/**
	 * Returns a sorted array suitable for a dropdown with pagetypes and their translated name
	 * @return array
	 */
Returns a sorted array suitable for a dropdown with pagetypes and their translated name
@return array
Returns a sorted array suitable for a dropdown with pagetypes and their translated name @return array
protected function pageTypeOptions() {
		$pageTypes = array();
		$classes = ArrayLib::valueKey(SiteTree::page_type_classes());
		unset($classes['VirtualPage']);
		unset($classes['ErrorPage']);
		unset($classes['RedirectorPage']);
		foreach($classes as $pageTypeClass) {
			$pageTypes[$pageTypeClass] = singleton($pageTypeClass)->i18n_singular_name();
		}
		asort($pageTypes);
		return $pageTypes;
	}
protected function pageTypeOptions ( ) { $ pageTypes = array ( ) ; $ classes = ArrayLib :: valueKey ( SiteTree :: page_type_classes ( ) ) ; unset ( $ classes [ 'VirtualPage' ] ) ; unset ( $ classes [ 'ErrorPage' ] ) ; unset ( $ classes [ 'RedirectorPage' ] ) ; foreach ( $ classes as $ pageTypeClass ) { $ pageTypes [ $ pageTypeClass ] = singleton ( $ pageTypeClass ) -> i18n_singular_name ( ) ; } asort ( $ pageTypes ) ; return $ pageTypes ; }
Returns a sorted array suitable for a dropdown with pagetypes and their translated name
 @return array
Returns a sorted array suitable for a dropdown with pagetypes and their translated name @return array