예제 #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
 /**
  * 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);
 }