You are here

protected function boxes_box::__construct in Boxes 6

Same name and namespace in other branches
  1. 7 plugins/boxes_box.inc \boxes_box::__construct()

Create a new box.

File

plugins/boxes_box.inc, line 74

Class

boxes_box
Abstract base class defining a box. A boxes content plugin provides a form of options for configuring content and renders content for display.

Code

protected function __construct() {
  $this->new = TRUE;

  // A box is new unless it exists in the DB or in code.
  $this->options = $this
    ->options_defaults();
}