<?PHP

  require_once ('twIf/object/dummy.php');
  
  /**
   * Convert Request
   * ---------------
   * Dummy-Class to initialize convert-requests
   * 
   * @class twIf_Generic_Convert_Request
   * @extends twIf_Object_Dummy
   * @revision 01
   * @package twIf
   * @author Bernd Holzmueller <bernd@tiggerswelt.net>
   **/
  class twIf_Generic_Convert_Request extends twIf_Object_Dummy {
    const TWIF_LAZY_VARIABLES = 1;
    
    public $ImportData = '';
    
    // {{{ newInstance
    /**
     * twIf_Object_Dummy tries to use late static binding, but we are mostly deployed
     * on PHP 5.2-Setups so we hardcoded this
     * 
     * @access public
     * @return object
     **/
    public static function newInstance () {
      return new twIf_Generic_Convert_Request;
    }
    // }}}
    
    // {{{ haveImportData
    /**
     * Check if there is Import-Data assigned
     * 
     * @access public
     * @return bool
     **/
    public function haveImportData () {
      return (strlen ($this->ImportData) > 0);
    }
    // }}}
    
    // {{{ getImportData
    /**
     * Retrive the assigned Import-Data
     * 
     * @access public
     * @return string
     **/
    public function getImportData () {
      return $this->ImportData;
    }
    // }}}
    
    // {{{ setImportData
    /**
     * Assign Import-Data to this request
     * 
     * @param string $Data
     * 
     * @access public
     * @return bool Always true
     **/
    public function setImportData ($Data) {
      $this->ImportData = $Data;
      
      return true;
    }
    // }}}
  }

?>