You are here

public function AbstractOperation::getDomains in Plug 7

Returns domains affected by operation.

Return value

array

Overrides OperationInterface::getDomains

4 calls to AbstractOperation::getDomains()
AbstractOperation::getMessages in lib/Symfony/translation/Catalogue/AbstractOperation.php
Returns all valid messages after operation.
AbstractOperation::getNewMessages in lib/Symfony/translation/Catalogue/AbstractOperation.php
Returns new messages after operation.
AbstractOperation::getObsoleteMessages in lib/Symfony/translation/Catalogue/AbstractOperation.php
Returns obsolete messages after operation.
AbstractOperation::getResult in lib/Symfony/translation/Catalogue/AbstractOperation.php
Returns resulting catalogue.

File

lib/Symfony/translation/Catalogue/AbstractOperation.php, line 71

Class

AbstractOperation
Base catalogues binary operation class.

Namespace

Symfony\Component\Translation\Catalogue

Code

public function getDomains() {
  if (null === $this->domains) {
    $this->domains = array_values(array_unique(array_merge($this->source
      ->getDomains(), $this->target
      ->getDomains())));
  }
  return $this->domains;
}