Files
sean 343b4a3f3f
Some checks failed
deploy-testing / deploy (push) Has been cancelled
Initial testing snapshot
2026-11-19 18:32:17 -05:00

36 lines
682 B
PHP

<?php
/**
* Age class for the verifier
* @author: Alex Standiford
* @date : 1/15/2017
*/
namespace eav\app;
if(!defined('ABSPATH')) exit;
/**
* Verifier Age Class
* Handles all things related to the visitor's age. Works from the cookie set by the Verifier form
* @package eav\app
*/
class age{
/**
* Parses the age from the date of birth
* @see self::getAgeFrom();
* @return bool|false|null|string
*/
public static function get(){
//Sets default value when a dob isn't specified
if(isset($_COOKIE['eav_age'])){
$age = $_COOKIE['eav_age'];
}
else{
$age = null;
}
return $age;
}
}