예제 #1
0
 /**
  * @param string $inputFile XML file to be processed
  * @param array $capabilities Capabiities to process
  */
 public function __construct($inputFile, $capabilities = array())
 {
     parent::__construct($inputFile);
     foreach ($capabilities as $groupId => $capabilityNames) {
         $trimmedCapNames = $this->removeSpaces($capabilityNames);
         $capabilitiesAsArray = array();
         if (strlen($trimmedCapNames) != 0) {
             $capabilitiesAsArray = explode(',', $trimmedCapNames);
         }
         $this->capabilitiesToSelect[$groupId] = $capabilitiesAsArray;
     }
     $this->filterCapabilities = empty($this->capabilitiesToSelect) ? false : true;
 }
예제 #2
0
 /**
  * @param string $inputFile XML file to be processed
  * @param array $capabilityFilter Capabiities to process
  */
 public function __construct($inputFile, $capabilityFilter = array())
 {
     parent::__construct($inputFile);
     $this->capabilityFilter = $capabilityFilter;
     $this->useCapabilityFilter = !empty($this->capabilityFilter);
 }
	function __construct($inputFile) {
		parent::__construct ( $inputFile );
	}