Esempio n. 1
0
 public function __construct($field, \Cmb2Grid\Grid\Cmb2Grid $grid)
 {
     $this->setParentFieldId($field[0]);
     $this->setFieldId($field[1]);
     $field = cmb2_get_field($grid->getCmb2Obj(), $this->getParentFieldId());
     $this->setField($field);
     //parent::__construct( $field, $grid );
     /* $this->setGrid( $grid );
     			  if ( is_string( $field ) ) {
     			  $this->setFieldId( $field );
     			  } elseif ( is_array( $field ) ) {
     			  $this->setFieldId( $field[0] );
     			  }
     			  $fieldId = $this->getFieldId();
     
     
     			  $field = cmb2_get_field( $grid->getCmb2Obj(), $fieldId );
     
     			  $this->setField( $field );
     
     			  if ( is_array( $field ) ) {
     			  if ( isset( $field['class'] ) ) {
     			  $this->setColumnClass( $field['class'] );
     			  }
     			  } */
 }
Esempio n. 2
0
 public function __construct($meta_box_config)
 {
     parent::__construct($meta_box_config);
 }