Esempio n. 1
0
 function formatRow($row)
 {
     // Do all the normal stuff
     $s = parent::formatRow($row);
     // But if there's a customised message, add that too.
     if ($row->am_customised) {
         $s .= Xml::openElement('tr', $this->getRowAttrs($row, true));
         $formatted = strval($this->formatValue('am_actual', $row->am_actual));
         if ($formatted == '') {
             $formatted = ' ';
         }
         $s .= Xml::tags('td', $this->getCellAttrs('am_actual', $row->am_actual), $formatted) . "</tr>\n";
     }
     return $s;
 }
 public function formatRow($row)
 {
     if (!isset($this->users[$row->utr_name])) {
         // Hidden user or they don't exist locally?
         return '';
     }
     return parent::formatRow($row);
 }
Esempio n. 3
0
	function formatRow( $row ) {
		global $wgUser;
		$id = $row->el_entity;
		$this->election = $this->entryPage->context->getElection( $id );
		if( !$this->election ) {
			$this->isAdmin = false;
		} else {
			$this->isAdmin = $this->election->isAdmin( $wgUser );
		}
		return parent::formatRow( $row );
	}