Exemple #1
0
 public function addAdvancedSearchToXml(SimpleXMLElement &$xmlElement)
 {
     if (!is_object($this->advancedSearch) || !$this->advancedSearch instanceof AdvancedSearchFilterItem) {
         return;
     }
     $advancedXmlElement = $xmlElement->addChild('advancedSearch');
     $advancedXmlElement->addAttribute('type', get_class($this->advancedSearch));
     $this->advancedSearch->addToXml($advancedXmlElement);
 }
 public function addToXml(SimpleXMLElement &$xmlElement)
 {
     parent::addToXml($xmlElement);
     $xmlElement->addAttribute('field', htmlspecialchars($this->field));
     $xmlElement->addAttribute('value', htmlspecialchars($this->value));
 }
 public function addToXml(SimpleXMLElement &$xmlElement)
 {
     parent::addToXml($xmlElement);
     $xmlElement->addAttribute('distributionProfileId', $this->distributionProfileId);
     $xmlElement->addAttribute('entryDistributionFlag', $this->entryDistributionFlag);
     $xmlElement->addAttribute('entryDistributionStatus', $this->entryDistributionStatus);
     $xmlElement->addAttribute('distributionSunStatus', $this->distributionSunStatus);
 }
 public function addToXml(SimpleXMLElement &$xmlElement)
 {
     parent::addToXml($xmlElement);
     $xmlElement->addAttribute('operatorType', $this->type);
     if ($this->items && is_array($this->items)) {
         foreach ($this->items as $item) {
             $itemXmlElement = $xmlElement->addChild('item');
             $itemXmlElement->addAttribute('type', get_class($item));
             $item->addToXml($itemXmlElement);
         }
     }
 }
 public function addToXml(SimpleXMLElement &$xmlElement)
 {
     parent::addToXml($xmlElement);
     if (!is_null($this->categoriesMatchOr)) {
         $xmlElement->addAttribute('categoriesMatchOr', $this->categoriesMatchOr);
     }
     if (!is_null($this->categoryEntryStatusIn)) {
         $xmlElement->addAttribute('categoryEntryStatusIn', $this->categoryEntryStatusIn);
     }
     if (!is_null($this->orderBy)) {
         $xmlElement->addAttribute('orderBy', $this->orderBy);
     }
     if (!is_null($this->categoryIdEqual)) {
         $xmlElement->addAttribute('categoryIdEqual', $this->categoryIdEqual);
     }
 }
 public function addToXml(SimpleXMLElement &$xmlElement)
 {
     parent::addToXml($xmlElement);
     $xmlElement->addAttribute('contentLike', $this->getContentLike());
     $xmlElement->addAttribute('contentMultiLikeAnd', $this->getContentMultiLikeAnd());
     $xmlElement->addAttribute('contentMultiLikeOr', $this->getContentMultiLikeOr());
 }