Exemplo n.º 1
0
 /**
  * @param UIAsset $uiAsset
  */
 public function addUIAsset($uiAsset)
 {
     $location = $uiAsset->getAbsoluteLocation();
     if (!$this->assetAlreadyInCatalog($location)) {
         $this->existingAssetLocations[] = $location;
         $this->uiAssets[] = $uiAsset;
     }
 }
Exemplo n.º 2
0
 /**
  * @param UIAsset $uiAsset
  * @return boolean
  */
 private function assetAlreadyInCatalog($uiAsset)
 {
     foreach ($this->uiAssets as $existingAsset) {
         if ($uiAsset->getAbsoluteLocation() == $existingAsset->getAbsoluteLocation()) {
             return true;
         }
     }
     return false;
 }
Exemplo n.º 3
0
 private function writeContentToFile()
 {
     $this->mergedAsset->writeContent($this->mergedContent);
 }