name = $name; $this->value = $value; $this->comment = $comment; } /** * Getter for the variable's name * * @return string The variable object's name * * @access public */ function get_name() { return $this->name; } /** * Allows changing the variable's value * * @param string $value New value for this variable * * @access public */ function set_value($value) { $this->value = $value; } /** * Turns this object into a string readable by sphinx * * @return string Config data in textual form * * @access public */ function to_string() { return "\t" . $this->name . ' = ' . str_replace("\n", " \\\n", $this->value) . ' ' . $this->comment . "\n"; } }