lib/DataSift/Definition.php
public function getTotalDPU()
    {
        if ($this->_csdl === false) {
            throw new DataSift_Exception_InvalidData('Total DPU not available');
        }
        if ($this->_total_dpu === false) {
            // Catch any compilation errors so they don't pass up to the caller
            try {
                $this->validate();
            } catch (DataSift_Exception_CompileFailed $e) {
            }
        }
        return $this->_total_dpu;
    }
public function getTotalDPU()
    {
        if ($this->_csdl === false) {
            throw new DataSift_Exception_InvalidData('Total DPU not available');
        }
        if ($this->_total_dpu === false) {
            // Catch any compilation errors so they don't pass up to the caller
            try {
                $this->validate();
            } catch (DataSift_Exception_CompileFailed $e) {
            }
        }
        return $this->_total_dpu;
    }
public function getTotalDPU ( ) { if ( $ this -> _csdl === false ) { throw new DataSift_Exception_InvalidData ( 'Total DPU not available' ) ; } if ( $ this -> _total_dpu === false ) { // Catch any compilation errors so they don't pass up to the caller try { $ this -> validate ( ) ; } catch ( DataSift_Exception_CompileFailed $ e ) { } } return $ this -> _total_dpu ; }
Returns the total DPU of the stream. If the DPU has not yet been
obtained it validates the definition first.

@return int The total DPU.
@throws DataSift_Exception_APIError
@throws DataSift_Exception_RateLimitExceeded
@throws DataSift_Exception_InvalidData
Returns the total DPU of the stream . If the DPU has not yet been obtained it validates the definition first .