LdapTools\Utilities\GPOLink::getGpo PHP Method

getGpo() public method

Get the GPO for the link.
public getGpo ( ) : string | LdapObject
return string | LdapTools\Object\LdapObject
    public function getGpo()
    {
        return $this->gpo;
    }

Usage Example

Example #1
0
 /**
  * @param GPOLink $gpoLink
  * @return string
  */
 protected function getGPOLinkDN(GPOLink $gpoLink)
 {
     $toDn = new ConvertValueToDn();
     $toDn->setAttribute('gpoLink');
     $toDn->setLdapConnection($this->connection);
     $toDn->setOptions(['gpoLink' => ['attribute' => 'displayName', 'filter' => ['objectClass' => 'groupPolicyContainer']]]);
     return $toDn->toLdap($gpoLink->getGpo());
 }