kernel/classes/ezvattype.php
static function fetchDependentClassesCount( $vatID )
    {
        $vatID = (int) $vatID; // prevent SQL injection

        $query = "SELECT COUNT(DISTINCT cc.id) AS count " .
                 "FROM ezcontentclass cc, ezcontentclass_attribute cca " .
                 "WHERE cc.id=cca.contentclass_id AND " .
                 "cca.data_type_string IN ('ezprice', 'ezmultiprice') AND data_float1=$vatID";

        $db = eZDB::instance();
        $rslt = $db->arrayQuery( $query );
        $nClasses = $rslt[0]['count'];
        return $nClasses;
    }
static function fetchDependentClassesCount( $vatID )
    {
        $vatID = (int) $vatID; // prevent SQL injection

        $query = "SELECT COUNT(DISTINCT cc.id) AS count " .
                 "FROM ezcontentclass cc, ezcontentclass_attribute cca " .
                 "WHERE cc.id=cca.contentclass_id AND " .
                 "cca.data_type_string IN ('ezprice', 'ezmultiprice') AND data_float1=$vatID";

        $db = eZDB::instance();
        $rslt = $db->arrayQuery( $query );
        $nClasses = $rslt[0]['count'];
        return $nClasses;
    }
static function fetchDependentClassesCount ( $ vatID ) { $ vatID = ( int ) $ vatID ; // prevent SQL injection $ query = "SELECT COUNT(DISTINCT cc.id) AS count " . "FROM ezcontentclass cc, ezcontentclass_attribute cca " . "WHERE cc.id=cca.contentclass_id AND " . "cca.data_type_string IN ('ezprice', 'ezmultiprice') AND data_float1=$vatID" ; $ db = eZDB :: instance ( ) ; $ rslt = $ db -> arrayQuery ( $ query ) ; $ nClasses = $ rslt [ 0 ] [ 'count' ] ; return $ nClasses ; }
Fetches number of product classes having given VAT type set as default.

\public
\static
\return Number of dependent product classes.
Fetches number of product classes having given VAT type set as default .