@@ -1,16 +1,16 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @package CleverStyle CMS |
|
| 4 | - * @author Nazar Mokrynskyi <[email protected]> |
|
| 5 | - * @copyright Copyright (c) 2011-2016, Nazar Mokrynskyi |
|
| 6 | - * @license MIT License, see license.txt |
|
| 7 | - */ |
|
| 3 | + * @package CleverStyle CMS |
|
| 4 | + * @author Nazar Mokrynskyi <[email protected]> |
|
| 5 | + * @copyright Copyright (c) 2011-2016, Nazar Mokrynskyi |
|
| 6 | + * @license MIT License, see license.txt |
|
| 7 | + */ |
|
| 8 | 8 | namespace cs\Config; |
| 9 | 9 | use |
| 10 | 10 | cs\Config; |
| 11 | 11 | /** |
| 12 | - * Class for getting of db and storage configuration of module |
|
| 13 | - */ |
|
| 12 | + * Class for getting of db and storage configuration of module |
|
| 13 | + */ |
|
| 14 | 14 | class Module_Properties { |
| 15 | 15 | const ENABLED = 1; |
| 16 | 16 | const DISABLED = 0; |
@@ -1,10 +1,10 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @package CleverStyle CMS |
|
| 4 | - * @author Nazar Mokrynskyi <[email protected]> |
|
| 5 | - * @copyright Copyright (c) 2015-2016, Nazar Mokrynskyi |
|
| 6 | - * @license MIT License, see license.txt |
|
| 7 | - */ |
|
| 3 | + * @package CleverStyle CMS |
|
| 4 | + * @author Nazar Mokrynskyi <[email protected]> |
|
| 5 | + * @copyright Copyright (c) 2015-2016, Nazar Mokrynskyi |
|
| 6 | + * @license MIT License, see license.txt |
|
| 7 | + */ |
|
| 8 | 8 | namespace cs; |
| 9 | 9 | use |
| 10 | 10 | ArrayAccess, |
@@ -1,25 +1,25 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @package CleverStyle CMS |
|
| 4 | - * @author Nazar Mokrynskyi <[email protected]> |
|
| 5 | - * @copyright Copyright (c) 2011-2016, Nazar Mokrynskyi |
|
| 6 | - * @license MIT License, see license.txt |
|
| 7 | - */ |
|
| 3 | + * @package CleverStyle CMS |
|
| 4 | + * @author Nazar Mokrynskyi <[email protected]> |
|
| 5 | + * @copyright Copyright (c) 2011-2016, Nazar Mokrynskyi |
|
| 6 | + * @license MIT License, see license.txt |
|
| 7 | + */ |
|
| 8 | 8 | namespace cs; |
| 9 | 9 | use |
| 10 | 10 | ArrayAccess, |
| 11 | 11 | SimpleXMLElement; |
| 12 | 12 | /** |
| 13 | - * False_class is used for chained calling, when some method may return false. |
|
| 14 | - * |
|
| 15 | - * Usage of class is simple, just return his instance instead of real boolean <i>false</i>. |
|
| 16 | - * On every call of any method or getting of any property or getting any element of array instance of the this class will be returned. |
|
| 17 | - * Access to anything of this class instance will be casted to boolean <i>false</i> |
|
| 18 | - * |
|
| 19 | - * Inherits SimpleXMLElement in order to be casted from object to boolean as <i>false</i> |
|
| 20 | - * |
|
| 21 | - * @property string $error |
|
| 22 | - */ |
|
| 13 | + * False_class is used for chained calling, when some method may return false. |
|
| 14 | + * |
|
| 15 | + * Usage of class is simple, just return his instance instead of real boolean <i>false</i>. |
|
| 16 | + * On every call of any method or getting of any property or getting any element of array instance of the this class will be returned. |
|
| 17 | + * Access to anything of this class instance will be casted to boolean <i>false</i> |
|
| 18 | + * |
|
| 19 | + * Inherits SimpleXMLElement in order to be casted from object to boolean as <i>false</i> |
|
| 20 | + * |
|
| 21 | + * @property string $error |
|
| 22 | + */ |
|
| 23 | 23 | class False_class extends SimpleXMLElement implements ArrayAccess { |
| 24 | 24 | /** |
| 25 | 25 | * Use this method to obtain correct instance |
@@ -1,12 +1,12 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @package CleverStyle CMS |
|
| 4 | - * @author Nazar Mokrynskyi <[email protected]> |
|
| 5 | - * @copyright Copyright (c) 2011-2016, Nazar Mokrynskyi |
|
| 6 | - * @license MIT License, see license.txt |
|
| 7 | - */ |
|
| 3 | + * @package CleverStyle CMS |
|
| 4 | + * @author Nazar Mokrynskyi <[email protected]> |
|
| 5 | + * @copyright Copyright (c) 2011-2016, Nazar Mokrynskyi |
|
| 6 | + * @license MIT License, see license.txt |
|
| 7 | + */ |
|
| 8 | 8 | /** |
| 9 | - * Class for HTML code rendering in accordance with the standards of HTML5, and with useful syntax extensions for simpler usage |
|
| 10 | - */ |
|
| 9 | + * Class for HTML code rendering in accordance with the standards of HTML5, and with useful syntax extensions for simpler usage |
|
| 10 | + */ |
|
| 11 | 11 | use cs\h\Base; |
| 12 | 12 | class h extends Base {} |
@@ -1,30 +1,30 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @package CleverStyle CMS |
|
| 4 | - * @author Nazar Mokrynskyi <[email protected]> |
|
| 5 | - * @copyright Copyright (c) 2015-2016, Nazar Mokrynskyi |
|
| 6 | - * @license MIT License, see license.txt |
|
| 7 | - */ |
|
| 3 | + * @package CleverStyle CMS |
|
| 4 | + * @author Nazar Mokrynskyi <[email protected]> |
|
| 5 | + * @copyright Copyright (c) 2015-2016, Nazar Mokrynskyi |
|
| 6 | + * @license MIT License, see license.txt |
|
| 7 | + */ |
|
| 8 | 8 | /** |
| 9 | - * Base system functions, do not edit this file, or make it very carefully |
|
| 10 | - * otherwise system workability may be broken |
|
| 11 | - * |
|
| 12 | - * This particular file contains functions that work with global state (cookies, headers, status codes, etc.) |
|
| 13 | - */ |
|
| 9 | + * Base system functions, do not edit this file, or make it very carefully |
|
| 10 | + * otherwise system workability may be broken |
|
| 11 | + * |
|
| 12 | + * This particular file contains functions that work with global state (cookies, headers, status codes, etc.) |
|
| 13 | + */ |
|
| 14 | 14 | use |
| 15 | 15 | cs\Config, |
| 16 | 16 | cs\Route; |
| 17 | 17 | /** |
| 18 | - * Function for setting cookies on all mirrors and taking into account cookies prefix. Parameters like in system function, but $path, $domain and $secure |
|
| 19 | - * are skipped, they are detected automatically, and $api parameter added in the end. |
|
| 20 | - * |
|
| 21 | - * @param string $name |
|
| 22 | - * @param string $value |
|
| 23 | - * @param int $expire |
|
| 24 | - * @param bool $httponly |
|
| 25 | - * |
|
| 26 | - * @return bool |
|
| 27 | - */ |
|
| 18 | + * Function for setting cookies on all mirrors and taking into account cookies prefix. Parameters like in system function, but $path, $domain and $secure |
|
| 19 | + * are skipped, they are detected automatically, and $api parameter added in the end. |
|
| 20 | + * |
|
| 21 | + * @param string $name |
|
| 22 | + * @param string $value |
|
| 23 | + * @param int $expire |
|
| 24 | + * @param bool $httponly |
|
| 25 | + * |
|
| 26 | + * @return bool |
|
| 27 | + */ |
|
| 28 | 28 | function _setcookie ($name, $value, $expire = 0, $httponly = false) { |
| 29 | 29 | static $domain, $prefix, $secure; |
| 30 | 30 | if (!isset($prefix)) { |
@@ -1,18 +1,18 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @package CleverStyle CMS |
|
| 4 | - * @author Nazar Mokrynskyi <[email protected]> |
|
| 5 | - * @copyright Copyright (c) 2013-2016, Nazar Mokrynskyi |
|
| 6 | - * @license MIT License, see license.txt |
|
| 7 | - */ |
|
| 3 | + * @package CleverStyle CMS |
|
| 4 | + * @author Nazar Mokrynskyi <[email protected]> |
|
| 5 | + * @copyright Copyright (c) 2013-2016, Nazar Mokrynskyi |
|
| 6 | + * @license MIT License, see license.txt |
|
| 7 | + */ |
|
| 8 | 8 | namespace cs\DB; |
| 9 | 9 | use |
| 10 | 10 | cs\DB; |
| 11 | 11 | /** |
| 12 | - * Accessor trait |
|
| 13 | - * |
|
| 14 | - * Provides db() and db_prime() methods for simplified for with DB |
|
| 15 | - */ |
|
| 12 | + * Accessor trait |
|
| 13 | + * |
|
| 14 | + * Provides db() and db_prime() methods for simplified for with DB |
|
| 15 | + */ |
|
| 16 | 16 | trait Accessor { |
| 17 | 17 | /** |
| 18 | 18 | * Link to db object |
@@ -1,16 +1,16 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @package CleverStyle CMS |
|
| 4 | - * @author Nazar Mokrynskyi <[email protected]> |
|
| 5 | - * @copyright Copyright (c) 2013-2016, Nazar Mokrynskyi |
|
| 6 | - * @license MIT License, see license.txt |
|
| 7 | - */ |
|
| 3 | + * @package CleverStyle CMS |
|
| 4 | + * @author Nazar Mokrynskyi <[email protected]> |
|
| 5 | + * @copyright Copyright (c) 2013-2016, Nazar Mokrynskyi |
|
| 6 | + * @license MIT License, see license.txt |
|
| 7 | + */ |
|
| 8 | 8 | namespace cs; |
| 9 | 9 | use |
| 10 | 10 | cs\Singleton\Base; |
| 11 | 11 | /** |
| 12 | - * @inheritdoc |
|
| 13 | - */ |
|
| 12 | + * @inheritdoc |
|
| 13 | + */ |
|
| 14 | 14 | trait Singleton { |
| 15 | 15 | use Base; |
| 16 | 16 | } |
@@ -1,10 +1,10 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @package CleverStyle CMS |
|
| 4 | - * @author Nazar Mokrynskyi <[email protected]> |
|
| 5 | - * @copyright Copyright (c) 2013-2016, Nazar Mokrynskyi |
|
| 6 | - * @license MIT License, see license.txt |
|
| 7 | - */ |
|
| 3 | + * @package CleverStyle CMS |
|
| 4 | + * @author Nazar Mokrynskyi <[email protected]> |
|
| 5 | + * @copyright Copyright (c) 2013-2016, Nazar Mokrynskyi |
|
| 6 | + * @license MIT License, see license.txt |
|
| 7 | + */ |
|
| 8 | 8 | namespace cs\CRUD; |
| 9 | 9 | use |
| 10 | 10 | cs\Event, |
@@ -1,16 +1,16 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @package CleverStyle CMS |
|
| 4 | - * @author Nazar Mokrynskyi <[email protected]> |
|
| 5 | - * @copyright Copyright (c) 2015-2016, Nazar Mokrynskyi |
|
| 6 | - * @license MIT License, see license.txt |
|
| 7 | - */ |
|
| 3 | + * @package CleverStyle CMS |
|
| 4 | + * @author Nazar Mokrynskyi <[email protected]> |
|
| 5 | + * @copyright Copyright (c) 2015-2016, Nazar Mokrynskyi |
|
| 6 | + * @license MIT License, see license.txt |
|
| 7 | + */ |
|
| 8 | 8 | namespace cs; |
| 9 | 9 | /** |
| 10 | - * CRUD trait extended with useful additional methods, for example, for searching |
|
| 11 | - * |
|
| 12 | - * Might me used instead of regular CRUD trait |
|
| 13 | - */ |
|
| 10 | + * CRUD trait extended with useful additional methods, for example, for searching |
|
| 11 | + * |
|
| 12 | + * Might me used instead of regular CRUD trait |
|
| 13 | + */ |
|
| 14 | 14 | trait CRUD_helpers { |
| 15 | 15 | use |
| 16 | 16 | CRUD; |