LdapTools\BatchModify\Batch::isTypeRemoveAll PHP Méthode

isTypeRemoveAll() public méthode

A convenience function to check if this batch type is a REMOVE_ALL action.
public isTypeRemoveAll ( ) : boolean
Résultat boolean
    public function isTypeRemoveAll()
    {
        return $this->isType('REMOVE_ALL');
    }

Usage Example

 /**
  * Determine if a specific batch is correctly formatted and needs conversion.
  *
  * @param Batch $batch
  * @return bool
  */
 protected function batchCanConvert(Batch $batch)
 {
     return $this->schema->hasConverter($batch->getAttribute()) && !$batch->isTypeRemoveAll();
 }