new pisilinux web sites
This commit is contained in:
@@ -0,0 +1,49 @@
|
||||
<?php namespace ZN\Language;
|
||||
/**
|
||||
* ZN PHP Web Framework
|
||||
*
|
||||
* "Simplicity is the ultimate sophistication." ~ Da Vinci
|
||||
*
|
||||
* @package ZN
|
||||
* @license MIT [http://opensource.org/licenses/MIT]
|
||||
* @author Ozan UYKUN [ozan@znframework.com]
|
||||
*/
|
||||
|
||||
use ZN\Lang;
|
||||
use ZN\Controller\Factory;
|
||||
|
||||
class ML extends Factory
|
||||
{
|
||||
const factory =
|
||||
[
|
||||
'methods' =>
|
||||
[
|
||||
'select' => 'Select::do',
|
||||
'selectall' => 'Select::all',
|
||||
'keys' => 'Select::keys',
|
||||
'langs' => 'Select::langs',
|
||||
'insert' => 'Insert::do',
|
||||
'update' => 'Update::do',
|
||||
'delete' => 'Delete::do',
|
||||
'deleteall' => 'Delete::all',
|
||||
'grid' => 'Grid::create',
|
||||
'table' => 'Grid::create',
|
||||
'limit' => 'Grid::limit:this',
|
||||
'url' => 'Grid::url:this'
|
||||
]
|
||||
];
|
||||
|
||||
/**
|
||||
* Set language
|
||||
*
|
||||
* @param string $lang = 'tr'
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function lang(string $lang = 'tr') : bool
|
||||
{
|
||||
Properties::$select = NULL;
|
||||
|
||||
return Lang::set($lang);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user