kernel/classes/ezvatrule.php
static function fetchCountByVatType( $vatID )
    {
        $rows = eZPersistentObject::fetchObjectList( eZVatRule::definition(),
                                                     array(),
                                                     array( 'vat_type' => (int) $vatID ),
                                                     false,
                                                     null,
                                                     false,
                                                     false,
                                                     array( array( 'operation' => 'count( * )',
                                                                   'name' => 'count' ) ) );
        return $rows[0]['count'];
    }
static function fetchCountByVatType( $vatID )
    {
        $rows = eZPersistentObject::fetchObjectList( eZVatRule::definition(),
                                                     array(),
                                                     array( 'vat_type' => (int) $vatID ),
                                                     false,
                                                     null,
                                                     false,
                                                     false,
                                                     array( array( 'operation' => 'count( * )',
                                                                   'name' => 'count' ) ) );
        return $rows[0]['count'];
    }
static function fetchCountByVatType ( $ vatID ) { $ rows = eZPersistentObject :: fetchObjectList ( eZVatRule :: definition ( ) , array ( ) , array ( 'vat_type' => ( int ) $ vatID ) , false , null , false , false , array ( array ( 'operation' => 'count( * )' , 'name' => 'count' ) ) ) ; return $ rows [ 0 ] [ 'count' ] ; }
Return number of VAT rules referencing given VAT type.

\param $vatID ID of VAT type to count VAT rules for.
\public
\static
Return number of VAT rules referencing given VAT type .