formatRow() public method

Called after iterating and may be redefined to change contents of :php:attr:Lister::current_row. Redefine this method to change rendering logic.
public formatRow ( )
示例#1
0
 function formatRow()
 {
     parent::formatRow();
     $this->odd_even = $this->odd_even == 'odd' ? 'even' : 'odd';
     $this->current_row['odd_even'] = $this->odd_even;
 }
示例#2
0
 function formatRow()
 {
     $r = array();
     foreach ($this->current_row as $k => $v) {
         $r[$k] = array("k" => $v);
     }
     $this->l->v = "";
     $this->l->setStaticSource($r)->render();
     $this->current_row["cells"] = $this->l->get();
     parent::formatRow();
 }
示例#3
0
 /**
  * Format lister row.
  */
 public function formatRow()
 {
     parent::formatRow();
     if (is_array($this->current_row) || $this->current_row instanceof ArrayAccess) {
         $this->odd_even = $this->odd_even == $this->odd_css_class ? $this->even_css_class : $this->odd_css_class;
         $this->current_row['odd_even'] = $this->odd_even;
     }
 }
示例#4
0
 /**
  * Format lister row
  *
  * @return void
  */
 function formatRow()
 {
     parent::formatRow();
     $this->odd_even = $this->odd_even == $this->odd_css_class ? $this->even_css_class : $this->odd_css_class;
     $this->current_row['odd_even'] = $this->odd_even;
 }