XOOPS RMCommon Utilities  2.1.8.91RC
 All Classes Namespaces Files Functions Variables
formimage.class.php
Go to the documentation of this file.
1 <?php
2 // $Id$
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 
16 {
17  private $default = '';
18 
19  public function __construct($caption, $name, $default=''){
20 
21  $this->setCaption($caption);
22  $this->setName($name);
23  $this->default = $default;
24 
25  !defined('RM_FRAME_USERS_CREATED') ? define('RM_FRAME_USERS_CREATED', 1) : '';
26  }
27 
28  public function render(){
29 
30  $util = RMUtilities::get();
31  return $util->image_manager($this->getName(), $this->id(), $this->default);
32 
33  }
34 }