Elgg\Config::set PHP Method

set() public method

public set ( $name, $value )
    public function set($name, $value)
    {
        $name = trim($name);
        $this->config->{$name} = $value;
    }

Usage Example

Example #1
0
 /**
  * Set up config appropriately on engine boot.
  *
  * @return void
  */
 function init()
 {
     $lastcache = $this->config->get('lastcache');
     if (!defined('UPGRADING') && empty($lastcache)) {
         $this->config->set('lastcache', (int) $this->datalist->get('simplecache_lastupdate'));
     }
 }
All Usage Examples Of Elgg\Config::set