lib/DataSift/Source.php
public function save($validate = true)
    {
        if ($this->getValidate() != $validate) {
            $this->setValidate($validate);
        }

        $endpoint = ($this->getId() ? 'source/update' : 'source/create');
        $this->fromArray($this->getUser()->post($endpoint, $this->toArray()));

        return $this;
    }
public function save($validate = true)
    {
        if ($this->getValidate() != $validate) {
            $this->setValidate($validate);
        }

        $endpoint = ($this->getId() ? 'source/update' : 'source/create');
        $this->fromArray($this->getUser()->post($endpoint, $this->toArray()));

        return $this;
    }
public function save ( $ validate = true ) { if ( $ this -> getValidate ( ) != $ validate ) { $ this -> setValidate ( $ validate ) ; } $ endpoint = ( $ this -> getId ( ) ? 'source/update' : 'source/create' ) ; $ this -> fromArray ( $ this -> getUser ( ) -> post ( $ endpoint , $ this -> toArray ( ) ) ) ; return $ this ; }
Save this Source

@param boolean $validate

@return DataSift_Source

@throws DataSift_Exception_APIError
@throws DataSift_Exception_AccessDenied
Save this Source