XOOPS RMCommon Utilities  2.1.8.91RC
 All Classes Namespaces Files Functions Variables
hidden.class.php
Go to the documentation of this file.
1 <?php
2 // $Id: hidden.class.php 825 2011-12-09 00:06:11Z i.bitcero $
3 // --------------------------------------------------------------
4 // Red México Common Utilities
5 // A framework for Red México Modules
6 // Author: Eduardo Cortés <i.bitcero@gmail.com>
7 // Email: i.bitcero@gmail.com
8 // License: GPL 2.0
9 // --------------------------------------------------------------
10 
15 {
16  var $_value;
22  public function __construct($name, $value){
23  $this->setName($name);
24  $this->_value = $value;
25  }
30  function setValue($value){
31  $this->_value = $value;
32  }
37  function getValue(){
38  return $this->_value;
39  }
44  function render(){
45  $ret = '<input type="hidden" name="'.$this->getName().'" id="'.$this->id().'" value="'.$this->getValue().'" />';
46  return $ret;
47  }
48 }
49 
50 ?>