1 | <?php |
||
7 | class Blog { |
||
8 | private static $force_login_comment; |
||
9 | private static $article_index; |
||
10 | private static $validate_comment; |
||
11 | |||
12 | //-------------------------- BUILDER ----------------------------------------------------------------------------// |
||
13 | public function __construct() { |
||
16 | //-------------------------- END BUILDER ----------------------------------------------------------------------------// |
||
17 | |||
18 | |||
19 | //-------------------------- GETTER ----------------------------------------------------------------------------// |
||
20 | /** |
||
21 | * this function load the configuration of the blog |
||
22 | */ |
||
23 | public static function getConfiguration() { |
||
36 | |||
37 | /** |
||
38 | * @return mixed |
||
39 | * this function get force login comment, if return 1 the user must be connected to post a comment |
||
40 | * on the article |
||
41 | */ |
||
42 | public static function getForceLoginComment() { |
||
49 | |||
50 | /* |
||
51 | * funciton that return the max nuber of article that we will get on index page |
||
52 | */ |
||
53 | public static function getArticleIndex() { |
||
60 | |||
61 | /** |
||
62 | * @return mixed |
||
63 | * function return if a comment must be validate to be displayed on the website only if this function |
||
64 | * return 1 |
||
65 | */ |
||
66 | public static function getValidateComment() { |
||
73 | //-------------------------- END GETTER ----------------------------------------------------------------------------// |
||
74 | |||
75 | |||
76 | //-------------------------- SETTER ----------------------------------------------------------------------------// |
||
77 | //-------------------------- END SETTER ----------------------------------------------------------------------------// |
||
78 | } |