Airship\Engine\Security\Permissions::getOverlap PHP 메소드

getOverlap() 공개 메소드

Returns an array with overlapping context IDs -- useful for when contexts are used with regular expressions
public getOverlap ( string $context = '', string $cabin = CABIN_NAME ) : array
$context string Context
$cabin string Cabin
리턴 array
    public function getOverlap(string $context = '', string $cabin = \CABIN_NAME) : array
    {
        if (empty($context)) {
            $context = AutoPilot::$path;
        }
        $ctx = $this->db->first(\Airship\queryStringRoot('security.permissions.get_overlap', $this->db->getDriver()), $cabin, $context);
        if (empty($ctx)) {
            return [];
        }
        return $ctx;
    }