I am getting a Fatal Error while calling a public method using Scope Resolution Operator. Here is the part of the code:
Class userrole {
public function get_premium_subscritpion($userID) {
$userID = ($userID == '') ? $this->user_info->ID : $userID;
if (empty($userID)) return false;
/* Check if user has subscribed */
if ($this->get_subscription($userID) && $userID != '') {
return true;
}
}
}
$role = userrole::get_premium_subscritpion(1);
public static function