[ Index ]

MailPress 7.1

[ Index ]     [ Classes ]     [ Functions ]     [ Variables ]     [ Constants ]     [ Statistics ]    

title

Body

[close]

/mp-includes/class/ -> MP_Mailinglists_Walker_Array.class.php (source)

   1  <?php
   2  class MP_Mailinglists_Walker_Array extends Walker 
   3  {
   4      var $tree_type = MailPress_mailinglist::taxonomy;
   5      var $db_fields = array ( 'parent' => 'parent', 'id' => 'term_id' ); //TODO: decouple this
   6      
   7  	public function start_el( &$output, $mailinglist, $depth = 0, $args = array(), $current_object_id = 0 ) 
   8      {
   9      if ( !empty( $output ) ) $t = unserialize( $output );
  10  
  11          $pad = str_repeat( '&#160;', $depth * 3 );
  12          $x = 'MailPress_mailinglist~' . $mailinglist->term_id;
  13          $t[$x] = $pad . $mailinglist->name;
  14  
  15          $output = serialize( $t );
  16      }
  17  }


Generated: Mon Mar 11 18:33:33 2019 Cross-referenced by PHPXref 0.7.1