LdapTools\AttributeConverter\ConvertLogonWorkstations::toLdap PHP Метод

toLdap() публичный Метод

public toLdap ( $value )
    public function toLdap($value)
    {
        if ($this->getOperationType() == self::TYPE_MODIFY && $this->getBatch()->isTypeRemoveAll()) {
            return '';
        } elseif ($this->getOperationType() == self::TYPE_SEARCH_TO) {
            return $this->implodeLoginList($value);
        }
        $this->setDefaultLastValue('userWorkstations', '');
        $this->modifyWorkstations($value);
        if ($this->getOperationType() == self::TYPE_MODIFY) {
            $this->getBatch()->setModType(Batch::TYPE['REPLACE']);
        }
        return $this->getLastValue();
    }