function __construct(&$dba, $topic, &$replies, $user)
 {
     global $_QUERYPARAMS, $_USERGROUPS, $_URL, $_LANG;
     $this->qp = $_QUERYPARAMS;
     $this->dba =& $dba;
     $this->groups = $_USERGROUPS;
     $this->result =& $replies;
     $this->user = $user;
     // create a url out of this page.
     $url =& new FAUrl($_URL->__toString());
     $url->args = array();
     $url->anchor = FALSE;
     $url->file = 'viewpoll.php';
     $this->url = $url->__toString();
     $this->poll_text = $_LANG['L_POLL'];
     parent::__construct(array($topic));
 }
Пример #2
0
 function __construct($data, $start_week, $user_bdays)
 {
     $this->week = $start_week;
     $this->iteration = 1;
     $this->user_bdays = $user_bdays;
     parent::__construct($data);
 }
Пример #3
0
 function __construct(&$queries, &$results, &$lines, &$files)
 {
     parent::__construct($queries);
     $this->_results =& $results;
     $this->_lines =& $lines;
     $this->_files =& $files;
 }
Пример #4
0
 function __construct(&$dba, &$user, $topic, $show_replies = TRUE, $post_id = FALSE)
 {
     global $_QUERYPARAMS, $_USERGROUPS, $_PROFILEFIELDS;
     $this->qp = $_QUERYPARAMS;
     $this->sr = (bool) $show_replies;
     $this->dba =& $dba;
     $this->user =& $user;
     $this->groups = $_USERGROUPS;
     $this->fields = $_PROFILEFIELDS;
     $this->post_id = intval($post_id);
     parent::__construct(array(0 => $topic));
 }
Пример #5
0
 function __construct($forums)
 {
     $forums = is_array($forums) ? array_values($forums) : array();
     parent::__construct($forums);
 }
Пример #6
0
 function AdminFAQCategoriesIterator(&$dba, $image_dir)
 {
     $categories = array();
     $result = $dba->executeQuery("SELECT * FROM " . K4FAQCATEGORIES . " WHERE parent_id=0 ORDER BY row_order ASC");
     $this->loop_categories($dba, $result, $categories);
     $this->image_dir = $image_dir;
     parent::__construct($categories);
 }