示例#1
0
 function load($id)
 {
     if ($id == 0) {
         $this->id = 0;
         $this->name = '';
         $this->tip = '';
         $this->ordering = true;
         $this->published = true;
         $this->ordering = 0;
         $this->privacy = '';
         $this->template = "default";
         $this->jusertype = "Registered";
         $this->allowt = false;
         $this->avatar = DEFAULT_AVATAR;
         $this->watermark = "";
         $this->approve = false;
         $this->group = 0;
         $this->params = '';
         $this->watermarkparams = '';
         $this->visible = 1;
         $this->config = '';
         return true;
     } else {
         return parent::load($id);
     }
 }
示例#2
0
 function load($name = '')
 {
     if ($name != 'settings') {
         $this->name = '';
         $this->params = '';
         return true;
     } else {
         return parent::load($name);
     }
 }
示例#3
0
 function load($id)
 {
     if ($id) {
         return parent::load($id);
     }
     $this->id = 0;
     $this->menuid = '';
     $this->profiletype = '';
     return true;
 }
示例#4
0
 function load($id)
 {
     if ($id == 0) {
         $this->id = 0;
         $this->fid = 0;
         $this->pid = 0;
         $this->category = 0;
         return true;
     } else {
         return parent::load($id);
     }
 }
示例#5
0
 /**
  * Overrides Joomla's load method so that we can define proper values
  * upon loading a new entry
  * 
  * @param	int	id	The id of the field
  * @param	boolean isGroup	Whether the field is a group
  * 	 
  * @return boolean true on success
  **/
 function load($id)
 {
     // ID exist
     if ($id) {
         return parent::load($id);
     }
     // load the default value for new object
     $this->id = 0;
     $this->rulename = '';
     $this->aclname = '';
     $this->aclparams = '';
     $this->coreparams = '';
     $this->published = true;
     return true;
 }