-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added new config to change pw length, its important for different games
added option classes little service optimize
- Loading branch information
1 parent
7e128c8
commit d654fc7
Showing
17 changed files
with
349 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
<?php | ||
|
||
|
||
namespace PServerCMS\Options; | ||
|
||
use Zend\Stdlib\AbstractOptions; | ||
|
||
class GeneralOptions extends AbstractOptions | ||
{ | ||
protected $__strictMode__ = false; | ||
|
||
/** | ||
* @var array | ||
*/ | ||
protected $datetime = [ | ||
'format' => [ | ||
'time' => 'Y-m-d H:i' | ||
], | ||
]; | ||
|
||
/** | ||
* @var array | ||
*/ | ||
protected $cache = [ | ||
'enable' => false | ||
]; | ||
|
||
/** | ||
* @return array | ||
*/ | ||
public function getDatetime() | ||
{ | ||
return $this->datetime; | ||
} | ||
|
||
/** | ||
* @param array $datetime | ||
* @return GeneralOptions | ||
*/ | ||
public function setDatetime( array $datetime ) | ||
{ | ||
$this->datetime = $datetime; | ||
|
||
return $this; | ||
} | ||
|
||
/** | ||
* @return array | ||
*/ | ||
public function getCache() | ||
{ | ||
return $this->cache; | ||
} | ||
|
||
/** | ||
* @param array $cache | ||
* @return GeneralOptions | ||
*/ | ||
public function setCache( array $cache ) | ||
{ | ||
$this->cache = $cache; | ||
|
||
return $this; | ||
} | ||
|
||
|
||
} |
Oops, something went wrong.