public function setID($id)
    {
        if($id !== null && substr($id, 0, 1) !== '/')
            throw new Exception("invalid file id, must start with a /");
        $this->id = $id;
    }
public function setID($id)
    {
        if($id !== null && substr($id, 0, 1) !== '/')
            throw new Exception("invalid file id, must start with a /");
        $this->id = $id;
    }
public function setID ( $ id ) { if ( $ id !== null && substr ( $ id , 0 , 1 ) !== '/' ) throw new Exception ( "invalid file id, must start with a /" ) ; $ this -> id = $ id ; }
Set the ID for this file

@param string $id The id to set

@return void
Set the ID for this file