CampURI::__get PHP Method

__get() public method

Sets an object property
public __get ( string $p_property ) : boolean
$p_property string
return boolean
    public function __get($p_property)
    {
        $p_property = strtolower($p_property);
        switch ($p_property) {
            case 'error_code':
                $p_property = 'errorCode';
                break;
            case 'is_valid':
                $p_property = 'validURI';
                break;
        }
        if (!property_exists($this, "m_{$p_property}")) {
            return null;
        }
        $memberName = "m_{$p_property}";
        if (array_key_exists($p_property, self::$m_objects) && !is_object($this->{$memberName})) {
            $className = 'Meta' . self::$m_objects[$p_property];
            $this->{$p_property} = new $className();
        }
        return $this->{$memberName};
    }