From 71be6cf239fba5718cd6336403df602b05c21c7d Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Mon, 7 Dec 2009 18:11:26 -0800 Subject: The rest framework that the new gallery3 remote interface will be built on. At the moment, there are no handlers to perform any functionality. --- modules/rest/libraries/Form_Label.php | 45 +++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 modules/rest/libraries/Form_Label.php (limited to 'modules/rest/libraries/Form_Label.php') diff --git a/modules/rest/libraries/Form_Label.php b/modules/rest/libraries/Form_Label.php new file mode 100644 index 00000000..315ff510 --- /dev/null +++ b/modules/rest/libraries/Form_Label.php @@ -0,0 +1,45 @@ + "label", + "text" => ""); + + public function __construct($label) { + $this->data["text"] = $label; + } + + public function __get($key) { + return isset($this->data[$key]) ? $this->data[$key] : null; + } + + // In this element we never want print any html so make sure + // render and ultimately html_element only return the empty string + public function render() { + return $this->html_element(); + } + + public function html_element() { + $data = $this->data; + unset($data["text"]); + return "

{$this->data['text']}

"; + } + +} // End Form Script \ No newline at end of file -- cgit v1.2.3