function __construct($classAttribute, $contentObjectAttribute, $storedPrice = null)
 {
     parent::__construct($classAttribute, $contentObjectAttribute, $storedPrice);
     $isVatIncluded = $classAttribute->attribute(eZPriceType::INCLUDE_VAT_FIELD) == 1;
     $VATID = $classAttribute->attribute(eZPriceType::VAT_ID_FIELD);
     $this->setVatIncluded($isVatIncluded);
     $this->setVatType($VATID);
 }
Beispiel #2
0
    function eZPrice( $classAttribute, $contentObjectAttribute, $storedPrice = null )
    {
        eZSimplePrice::eZSimplePrice( $classAttribute, $contentObjectAttribute, $storedPrice );

        $isVatIncluded = ( $classAttribute->attribute( eZPriceType::INCLUDE_VAT_FIELD ) == 1 );
        $VATID = $classAttribute->attribute( eZPriceType::VAT_ID_FIELD );
        $this->setVatIncluded( $isVatIncluded );
        $this->setVatType( $VATID );
    }
Beispiel #3
0
 function attribute($attr)
 {
     switch ($attr) {
         case 'currency_list':
             return $this->currencyList();
             break;
         case 'auto_currency_list':
             return $this->autoCurrencyList();
             break;
         case 'price_list':
             return $this->priceList();
             break;
         case 'inc_vat_price_list':
             return $this->incVATPriceList();
             break;
         case 'ex_vat_price_list':
             return $this->exVATPriceList();
             break;
         case 'discount_inc_vat_price_list':
             return $this->discountIncVATPriceList();
             break;
         case 'discount_ex_vat_price_list':
             return $this->discountExVATPriceList();
             break;
         case 'auto_price_list':
             return $this->autoPriceList();
             break;
         case 'custom_price_list':
             return $this->customPriceList();
             break;
         default:
             return eZSimplePrice::attribute($attr);
             break;
     }
 }