Horde_Kolab_Server_Object_Kolabgroupofnames::derive PHP Method

derive() protected method

Derive an attribute value.
protected derive ( string $attr ) : mixed
$attr string The attribute to derive.
return mixed The value of the attribute.
    protected function derive($attr)
    {
        switch ($attr) {
            case self::ATTRIBUTE_VISIBILITY:
                //@todo This needs structural knowledge and should be in a
                //structural class.
                return strpos($this->uid, 'cn=internal') === false;
            default:
                return parent::derive($attr);
        }
    }