49 lines
No EOL
934 B
PHP
49 lines
No EOL
934 B
PHP
<?php
|
|
|
|
/**
|
|
*
|
|
* Enter description here ...
|
|
*
|
|
* @uses Legacies_Object
|
|
* @uses Legacies_Empire
|
|
*/
|
|
class Legacies_Empire_Model_Game_FieldsAlias
|
|
extends Legacies_Empire_Model_Game_Abstract
|
|
implements Legacies_Core_Singleton
|
|
{
|
|
private static $_singleton = null;
|
|
|
|
public static function getSingleton()
|
|
{
|
|
if (self::$_singleton === null) {
|
|
self::$_singleton = new self();
|
|
}
|
|
return self::$_singleton;
|
|
}
|
|
|
|
protected function _init()
|
|
{
|
|
foreach (include ROOT_PATH . 'includes/data/fields-alias.php' as $elementId => $fieldName) {
|
|
$this->setData($elementId, $fieldName);
|
|
}
|
|
return $this;
|
|
}
|
|
|
|
protected function _load()
|
|
{
|
|
// NOP
|
|
return $this;
|
|
}
|
|
|
|
protected function _save()
|
|
{
|
|
// NOP
|
|
return $this;
|
|
}
|
|
|
|
protected function _delete()
|
|
{
|
|
// NOP
|
|
return $this;
|
|
}
|
|
} |