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); } }
function load($name = '') { if ($name != 'settings') { $this->name = ''; $this->params = ''; return true; } else { return parent::load($name); } }
function load($id) { if ($id) { return parent::load($id); } $this->id = 0; $this->menuid = ''; $this->profiletype = ''; return true; }
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); } }
/** * 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; }