/** * The function initializes pages array. * * @static * @access private */ private static function init() { if (self::$pages === null) { self::$pages = array(); $Page = new Content_Page(); foreach ($Page->findResult('Id, Name, Title, Link, Description, Articles, Documents, Posts') as $Page) { self::$pages[$Page->Id] = $Page; } } }