File: D:/HostingSpaces/SBogers64/klimroosbudel.nl/wwwroot/config/lang/language.class.php
<?php
/*
* en.php
* Created by Komma Mediadesign.
* Author: mike
* Date: 3/21/13
*/
include('app/models/m_photo_gallery.class.php');
class Language
{
/*
* @property array lang
*/
protected $lang = array();
/*
* Converter / LinkBuilder
* Keys have to be the same as the name of the controller/method
*/
protected $urls = array();
/*
* Pages
*/
protected $mainPages = array();
protected $subPages = array();
protected $pages = array();
/*
* Constructor
*/
public function __construct(){}
/*
* Get
* @return array
*/
public function get($what = 'data')
{
if($what == 'data')
{
return $this->lang;
}
else if($what == 'url')
{
return $this->urls;
}
else if($what == 'pages')
{
return $this->pages;
}
return false;
}
/*
* Get all album names
*/
public function getAlbumNames()
{
// Get data
$Model = new Photo_Gallery_Model();
$albums = $Model->get();
// Define array
$arr = array();
// Create list
foreach($albums as $album)
{
// Define url
$url = Fn::encodeUrl($album['title']);
$arr[] = $url;
}
return $arr;
}
}