public function activeForActor($actor)
    {
        $actortype = $actor->getEntityDescription()->getInheritanceColumnValue()->getIdentifier();

        $access = $this->getAssignmentForIdentifier($actortype);

        $return = false;

        if ($access == self::ACCESS_ALWAYS) {
            $return = true;
        } elseif ($access == self::ACCESS_OPTIONAL) {
            $return = $this->enabledForActor($actor);
        }

        return $return;
    }
public function activeForActor($actor)
    {
        $actortype = $actor->getEntityDescription()->getInheritanceColumnValue()->getIdentifier();

        $access = $this->getAssignmentForIdentifier($actortype);

        $return = false;

        if ($access == self::ACCESS_ALWAYS) {
            $return = true;
        } elseif ($access == self::ACCESS_OPTIONAL) {
            $return = $this->enabledForActor($actor);
        }

        return $return;
    }
public function activeForActor ( $ actor ) { $ actortype = $ actor -> getEntityDescription ( ) -> getInheritanceColumnValue ( ) -> getIdentifier ( ) ; $ access = $ this -> getAssignmentForIdentifier ( $ actortype ) ; $ return = false ; if ( $ access == self :: ACCESS_ALWAYS ) { $ return = true ; } elseif ( $ access == self :: ACCESS_OPTIONAL ) { $ return = $ this -> enabledForActor ( $ actor ) ; } return $ return ; }
Return whether the component is active for actor. A component is active, if
it has been assigned as awlays for the actor type or it has been enabled for the
actor.

@param ComActorsDomainEntityActor $actor The actor object

@return bool
Return whether the component is active for actor . A component is active if it has been assigned as awlays for the actor type or it has been enabled for the actor .