Xpressengine\Permission\Permission::isParent PHP 메소드

isParent() 보호된 메소드

Check parent of current at a given.
protected isParent ( Permission $parent ) : boolean
$parent Permission parent instance
리턴 boolean
    protected function isParent(Permission $parent)
    {
        $aLen = count(explode('.', $this->name));
        $bLen = count(explode('.', $parent->name));
        return $aLen - 1 == $bLen ?: false;
    }