public function toLdap($gpoLinks)
{
// Let a 'reset' type pass through untouched...
if ($this->getOperationType() == self::TYPE_MODIFY && $this->getBatch()->isTypeRemoveAll()) {
$gpoString = '';
// On a search we just translate the objects to a string link...
} elseif ($this->getOperationType() == self::TYPE_SEARCH_TO) {
$this->validateGPOLinks($gpoLinks);
$gpoString = $this->implodeGPOLinks($gpoLinks);
} else {
$gpoString = $this->createOrModifyGPOLinks($gpoLinks);
}
return $gpoString;
}