lib/DataSift/Definition.php
public function getDPUBreakdown()
    {
        $retval = false;

        if (strlen(trim($this->_csdl)) == 0) {
            throw new DataSift_Exception_InvalidData('Cannot get the DPU for an empty definition.');
        }

        $retval = $this->_user->post('dpu', array('hash' => $this->getHash()));
        $this->_total_dpu = $retval['dpu'];
        return $retval;
    }
public function getDPUBreakdown()
    {
        $retval = false;

        if (strlen(trim($this->_csdl)) == 0) {
            throw new DataSift_Exception_InvalidData('Cannot get the DPU for an empty definition.');
        }

        $retval = $this->_user->post('dpu', array('hash' => $this->getHash()));
        $this->_total_dpu = $retval['dpu'];
        return $retval;
    }
public function getDPUBreakdown ( ) { $ retval = false ; if ( strlen ( trim ( $ this -> _csdl ) ) == 0 ) { throw new DataSift_Exception_InvalidData ( 'Cannot get the DPU for an empty definition.' ) ; } $ retval = $ this -> _user -> post ( 'dpu' , array ( 'hash' => $ this -> getHash ( ) ) ) ; $ this -> _total_dpu = $ retval [ 'dpu' ] ; return $ retval ; }
Call the DataSift API to get the DPU for this definition. Returns an
array containing...
dpu => The breakdown of running the rule
total => The total dpu of the rule

@return array
@throws DataSift_Exception_InvalidData
@throws DataSift_Exception_APIError
@throws DataSift_Exception_CompileError
Call the DataSift API to get the DPU for this definition . Returns an array containing ... dpu = > The breakdown of running the rule total = > The total dpu of the rule