public function getSecure($key)
 {
     $value = parent::get($key . "_secure");
     if (!$value || $value == "") {
         return FALSE;
     }
     //end if
     $value = $this->objCrypto->sha1EncryptDecryptValue("decrypt", $value, array());
     return $value;
 }
 public function get($key)
 {
     switch ($key) {
         case "date_expiry":
             if (parent::get("date_expiry") == "0000-00-00" || parent::get("date_expiry") == "") {
                 return "";
             }
             //end if
             $date = $this->getUserDateFormatHelper()->__invoke(array("date" => parent::get("date_expiry"), "options" => array("output_format" => $this->format_date)));
             return $date;
             break;
         default:
             return parent::get($key);
             break;
     }
     //end switch
 }
 public function get($key, $default_value = FALSE)
 {
     switch ($key) {
         case "profile_logo":
             $path = parent::get($key);
             if (!$path) {
                 return $default_value;
             }
             //end if
             if (!is_file($path)) {
                 return $default_value;
             }
             //end if
             $content = file_get_contents($path);
             if ($content == "") {
                 return $default_value;
             }
             //end if
             //determine image type
             $finfo = finfo_open(FILEINFO_MIME_TYPE);
             $f = finfo_file($finfo, $path);
             switch ($f) {
                 case "image/gif":
                 case "image/png":
                 case "image/jpg":
                 case "image/jpeg":
                 case "image/svg+xml":
                     $src = "<img src=\"data:{$f};base64," . base64_encode($content) . "\" alt=\"Home\"/>";
                     break;
                 default:
                     return $default_value;
                     break;
             }
             //end switch
             return $src;
             break;
     }
     //end switch
     $value = parent::get($key);
     if (!$value || $value == "") {
         return $default_value;
     }
     //end if
     return $value;
 }