You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

PHP Error

Accepted answer
21
Views
5
Comments
edited Jun 4, 2019 6:23PM in General Technical Discussions 5 comments

Summary

unexpected 'public' T_PUBLIC

Content

Not sure why I am getting syntax error, unexpected 'public' T_PUBLIC error here ? 

 

 public static function validate ($action, $object)
    {
        $pass = true;
if (RNCPM\ActionUpdate == $action)
{
if ($object->ID  == $incIdOne && $object->CustomFields->c->ooo_flag != 1 )
{
$pass = false;
}
if ($object->ID == $incIdTwo && $object->CustomFields->c->ooo_flag != 0)
{
$pass = false;
}
 
}
        return ( $pass );
    }

Version

18A

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!