]> git.mxchange.org Git - core.git/blobdiff - inc/classes/main/helper/web/class_BaseWebHelper.php
readConfig() is not naming convention, renamed to getConfigEntry()
[core.git] / inc / classes / main / helper / web / class_BaseWebHelper.php
index d4aab6a7b5e2369718a9bca9cac4d718be8e1832..d9ba848a882c6ad27163817daebcc42010d4b320 100644 (file)
@@ -40,7 +40,7 @@ class BaseWebHelper extends BaseHelper {
         * @return      $required       Wether the email address is required
         */
        public function ifRegisterRequiresEmailVerification () {
-               $required = ($this->getConfigInstance()->readConfig('register_requires_email') == 'Y');
+               $required = ($this->getConfigInstance()->getConfigEntry('register_requires_email') == 'Y');
                return $required;
        }
 
@@ -50,7 +50,7 @@ class BaseWebHelper extends BaseHelper {
         * @return      $required       Wether profile shall be asked
         */
        public function ifRegisterIncludesProfile () {
-               $required = ($this->getConfigInstance()->readConfig('register_includes_profile') == 'Y');
+               $required = ($this->getConfigInstance()->getConfigEntry('register_includes_profile') == 'Y');
                return $required;
        }
 
@@ -60,7 +60,7 @@ class BaseWebHelper extends BaseHelper {
         * @return      $required       Wether personal data shall be asked
         */
        public function ifRegisterIncludesPersonaData () {
-               $required = ($this->getConfigInstance()->readConfig('register_personal_data') == 'Y');
+               $required = ($this->getConfigInstance()->getConfigEntry('register_personal_data') == 'Y');
                return $required;
        }
 
@@ -70,7 +70,7 @@ class BaseWebHelper extends BaseHelper {
         * @return      $required       Wether birthday shall be asked
         */
        public function ifProfileIncludesBirthDay () {
-               $required = ($this->getConfigInstance()->readConfig('profile_includes_birthday') == 'Y');
+               $required = ($this->getConfigInstance()->getConfigEntry('profile_includes_birthday') == 'Y');
                return $required;
        }
 
@@ -80,7 +80,7 @@ class BaseWebHelper extends BaseHelper {
         * @return      $isUnique
         */
        public function ifEmailMustBeUnique () {
-               $isUnique = ($this->getConfigInstance()->readConfig('register_email_unique') == 'Y');
+               $isUnique = ($this->getConfigInstance()->getConfigEntry('register_email_unique') == 'Y');
                return $isUnique;
        }
 
@@ -90,7 +90,7 @@ class BaseWebHelper extends BaseHelper {
         * @return      $required       Wether the specified chat protocol is enabled
         */
        public function ifChatEnabled ($chatProtocol) {
-               $required = ($this->getConfigInstance()->readConfig('chat_enabled_' . $chatProtocol) == 'Y');
+               $required = ($this->getConfigInstance()->getConfigEntry('chat_enabled_' . $chatProtocol) == 'Y');
                return $required;
        }
 
@@ -100,7 +100,7 @@ class BaseWebHelper extends BaseHelper {
         * @return      $isEnabled      Wether the login is enabled or disabled
         */
        public function ifLoginIsEnabled () {
-               $isEnabled = ($this->getConfigInstance()->readConfig('login_enabled') == 'Y');
+               $isEnabled = ($this->getConfigInstance()->getConfigEntry('login_enabled') == 'Y');
                return $isEnabled;
        }
 
@@ -110,7 +110,7 @@ class BaseWebHelper extends BaseHelper {
         * @return      $isEnabled      Wether the login shall be done by username
         */
        public function ifLoginWithUsername () {
-               $isEnabled = ($this->getConfigInstance()->readConfig('login_type') == "username");
+               $isEnabled = ($this->getConfigInstance()->getConfigEntry('login_type') == "username");
                return $isEnabled;
        }
 
@@ -120,7 +120,7 @@ class BaseWebHelper extends BaseHelper {
         * @return      $isEnabled      Wether the login shall be done by email
         */
        public function ifLoginWithEmail () {
-               $isEnabled = ($this->getConfigInstance()->readConfig('login_type') == "email");
+               $isEnabled = ($this->getConfigInstance()->getConfigEntry('login_type') == "email");
                return $isEnabled;
        }
 
@@ -130,7 +130,7 @@ class BaseWebHelper extends BaseHelper {
         * @return      $isAllowed      Wether guest login is allowed
         */
        public function ifGuestLoginAllowed () {
-               $isAllowed = ($this->getConfigInstance()->readConfig('guest_login_allowed') == 'Y');
+               $isAllowed = ($this->getConfigInstance()->getConfigEntry('guest_login_allowed') == 'Y');
                return $isAllowed;
        }
 
@@ -140,7 +140,7 @@ class BaseWebHelper extends BaseHelper {
         * @return      $requireConfirm         Wether email change must be confirmed
         */
        public function ifEmailChangeRequireConfirmation () {
-               $requireConfirm = ($this->getConfigInstance()->readConfig('email_change_confirmation') == 'Y');
+               $requireConfirm = ($this->getConfigInstance()->getConfigEntry('email_change_confirmation') == 'Y');
                return $requireConfirm;
        }
 
@@ -160,7 +160,7 @@ class BaseWebHelper extends BaseHelper {
         * @return      $emailChange    Wether changing email address is allowed
         */
        public function ifEmailChangeAllowed () {
-               $emailChange = ($this->getConfigInstance()->readConfig('email_change_allowed') == 'Y');
+               $emailChange = ($this->getConfigInstance()->getConfigEntry('email_change_allowed') == 'Y');
                return $emailChange;
        }
 
@@ -170,7 +170,7 @@ class BaseWebHelper extends BaseHelper {
         * @return      $isUnconfirmed  Wether the user account is unconfirmed
         */
        public function ifUserAccountUnconfirmed () {
-               $isUnconfirmed = ($this->getValueField(UserDatabaseWrapper::DB_COLUMN_USER_STATUS) === $this->getConfigInstance()->readConfig('user_status_unconfirmed'));
+               $isUnconfirmed = ($this->getValueField(UserDatabaseWrapper::DB_COLUMN_USER_STATUS) === $this->getConfigInstance()->getConfigEntry('user_status_unconfirmed'));
                return $isUnconfirmed;
        }
 
@@ -180,7 +180,7 @@ class BaseWebHelper extends BaseHelper {
         * @return      $isUnconfirmed  Wether the user account is locked
         */
        public function ifUserAccountLocked () {
-               $isUnconfirmed = ($this->getValueField(UserDatabaseWrapper::DB_COLUMN_USER_STATUS) === $this->getConfigInstance()->readConfig('user_status_locked'));
+               $isUnconfirmed = ($this->getValueField(UserDatabaseWrapper::DB_COLUMN_USER_STATUS) === $this->getConfigInstance()->getConfigEntry('user_status_locked'));
                return $isUnconfirmed;
        }
 
@@ -190,7 +190,7 @@ class BaseWebHelper extends BaseHelper {
         * @return      $isUnconfirmed  Wether the user account is a guest
         */
        public function ifUserAccountGuest () {
-               $isUnconfirmed = ($this->getValueField(UserDatabaseWrapper::DB_COLUMN_USER_STATUS) === $this->getConfigInstance()->readConfig('user_status_guest'));
+               $isUnconfirmed = ($this->getValueField(UserDatabaseWrapper::DB_COLUMN_USER_STATUS) === $this->getConfigInstance()->getConfigEntry('user_status_guest'));
                return $isUnconfirmed;
        }
 
@@ -201,7 +201,7 @@ class BaseWebHelper extends BaseHelper {
         * @return      $refillActive   Wether the refill page is active
         */
        public function ifRefillPageActive () {
-               $refillActive = ($this->getConfigInstance()->readConfig('refill_page_active') == 'Y');
+               $refillActive = ($this->getConfigInstance()->getConfigEntry('refill_page_active') == 'Y');
                return $refillActive;
        }
 }