Elgg\Config::set PHP 메소드

set() 공개 메소드

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

Usage 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