[ Index ]

MailPress 7.1

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

title

Body

[close]

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

   1  <?php
   2  abstract class MP_tracking_metabox_
   3  {
   4  	function __construct( $title )
   5      {
   6          $this->title = $title;
   7          $this->type  = basename( dirname( $this->file ) );
   8  
   9          add_filter( 'MailPress_tracking_metaboxes_register',     array( $this, 'register' ), 8, 2 );
  10          add_action( 'MailPress_tracking_add_meta_box',         array( $this, 'add_meta_box' ), 8, 1 );
  11      }
  12  
  13  	function register( $metaboxes, $type )
  14      {
  15          if ( $type != $this->type ) return $metaboxes;
  16  
  17          $metaboxes[$this->id]['title'] = $this->title;
  18          if ( isset( $this->parms ) ) $metaboxes[$this->id]['parms'] = $this->parms;
  19          ksort( $metaboxes );
  20          return $metaboxes;
  21      }
  22  
  23  	function add_meta_box( $screen )
  24      {
  25          add_meta_box( 'tracking' . $this->id . 'div', $this->title, array( $this, 'meta_box' ), $screen, $this->context, '' );
  26      }
  27  }


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