コード例 #1
0
ファイル: _blog.class.php プロジェクト: LFSF/oras
 /**
  * Get a setting.
  *
  * @return string|false|NULL value as string on success; NULL if not found; false in case of error
  */
 function get_setting($parname)
 {
     $this->load_CollectionSettings();
     return $this->CollectionSettings->get($this->ID, $parname);
 }
コード例 #2
0
ファイル: _blog.class.php プロジェクト: ldanielz/uesp.blog
 /**
  * Display a setting from the DB settings table.
  *
  * @param string Name of setting
  * @param string Output format, see {@link format_to_output()}
  */
 function disp_setting($parname, $format = 'htmlbody')
 {
     $this->load_CollectionSettings();
     echo format_to_output($this->CollectionSettings->get($this->ID, $parname), $format);
 }