lib/DataSift/Definition.php
public function set($csdl)
    {
        if ($csdl === false) {
            $this->_csdl = false;
        } else {
            if (! is_string($csdl)) {
                throw new DataSift_Exception_InvalidData('Definitions must be strings.');
            }

            // Trim the incoming string
            $csdl = trim($csdl);

            // If the string has changed, reset the hash
            if ($this->_csdl != $csdl) {
                $this->clearHash();
            }

            $this->_csdl = $csdl;
        }
    }
public function set($csdl)
    {
        if ($csdl === false) {
            $this->_csdl = false;
        } else {
            if (! is_string($csdl)) {
                throw new DataSift_Exception_InvalidData('Definitions must be strings.');
            }

            // Trim the incoming string
            $csdl = trim($csdl);

            // If the string has changed, reset the hash
            if ($this->_csdl != $csdl) {
                $this->clearHash();
            }

            $this->_csdl = $csdl;
        }
    }
public function set ( $ csdl ) { if ( $ csdl === false ) { $ this -> _csdl = false ; } else { if ( ! is_string ( $ csdl ) ) { throw new DataSift_Exception_InvalidData ( 'Definitions must be strings.' ) ; } // Trim the incoming string $ csdl = trim ( $ csdl ) ; // If the string has changed, reset the hash if ( $ this -> _csdl != $ csdl ) { $ this -> clearHash ( ) ; } $ this -> _csdl = $ csdl ; } }
Sets the definition string.

@param string $csdl The new definition string.

@return void
@throws DataSift_Exception_InvalidData
Sets the definition string .