/**
  * Returns form option list with cache contents
  *
  * @param integer selected ID
  * @param boolean provide a choice for "none" with ID 0
  * @param string Callback method name
  * @return string HTML tags <option>
  */
 function get_option_list_parent($default = 0, $allow_none = false, $method = 'get_name')
 {
     return parent::get_option_list($default, $allow_none, $method);
 }
 /**
  * Loads cache with blog memeber, then display form option list with cache contents
  *
  * Optionally, also adds default choice to the cache.
  *
  * @param integer blog ID or 0 for ALL
  * @param integer selected ID
  * @param boolean provide a choice for "none" with ID 0
  * @param boolean make sur the current default user is part of the choices
  */
 function get_blog_member_option_list($blog_ID, $default = 0, $allow_none = false, $always_load_default = false)
 {
     if ($blog_ID) {
         // Load requested blog members:
         $this->load_blogmembers($blog_ID);
         // Make sure current user is in list:
         if ($default && $always_load_default) {
             // echo '<option>getting default';
             $this->get_by_ID($default);
         }
     } else {
         // No blog specified: load ALL members:
         $this->load_all();
     }
     return parent::get_option_list($default, $allow_none, 'get_preferred_name');
 }
Beispiel #3
0
 /**
  * Returns form option list with cache contents
  *
  * Loads the whole cache!
  *
  * @param integer selected ID
  * @param boolean provide a choice for "none" with ID 0
  */
 function get_option_list($default = 0, $allow_none = false, $method = 'get_name')
 {
     // We force a full load!
     $this->load_all();
     return parent::get_option_list($default, $allow_none, $method);
 }