Пример #1
0
 /**
  * Create a new Border
  *
  * @param    boolean    $isSupervisor    Flag indicating if this is a supervisor or not
  *                                    Leave this value at default unless you understand exactly what
  *                                        its ramifications are
  * @param    boolean    $isConditional    Flag indicating if this is a conditional style or not
  *                                    Leave this value at default unless you understand exactly what
  *                                        its ramifications are
  */
 public function __construct($isSupervisor = false, $isConditional = false)
 {
     // Supervisor?
     parent::__construct($isSupervisor);
     // Initialise values
     $this->color = new Color(Color::COLOR_BLACK, $isSupervisor);
     // bind parent if we are a supervisor
     if ($isSupervisor) {
         $this->color->bindParent($this, 'color');
     }
 }
Пример #2
0
 /**
  * Create a new Fill
  *
  * @param    boolean    $isSupervisor    Flag indicating if this is a supervisor or not
  *                                    Leave this value at default unless you understand exactly what
  *                                        its ramifications are
  * @param    boolean    $isConditional    Flag indicating if this is a conditional style or not
  *                                    Leave this value at default unless you understand exactly what
  *                                        its ramifications are
  */
 public function __construct($isSupervisor = false, $isConditional = false)
 {
     // Supervisor?
     parent::__construct($isSupervisor);
     // Initialise values
     if ($isConditional) {
         $this->fillType = null;
     }
     $this->startColor = new Color(Color::COLOR_WHITE, $isSupervisor, $isConditional);
     $this->endColor = new Color(Color::COLOR_BLACK, $isSupervisor, $isConditional);
     // bind parent if we are a supervisor
     if ($isSupervisor) {
         $this->startColor->bindParent($this, 'startColor');
         $this->endColor->bindParent($this, 'endColor');
     }
 }
Пример #3
0
 /**
  * Create a new Font
  *
  * @param    boolean    $isSupervisor    Flag indicating if this is a supervisor or not
  *                                    Leave this value at default unless you understand exactly what
  *                                        its ramifications are
  * @param    boolean    $isConditional    Flag indicating if this is a conditional style or not
  *                                    Leave this value at default unless you understand exactly what
  *                                        its ramifications are
  */
 public function __construct($isSupervisor = false, $isConditional = false)
 {
     // Supervisor?
     parent::__construct($isSupervisor);
     // Initialise values
     if ($isConditional) {
         $this->name = null;
         $this->size = null;
         $this->bold = null;
         $this->italic = null;
         $this->superScript = null;
         $this->subScript = null;
         $this->underline = null;
         $this->strikethrough = null;
         $this->color = new Color(Color::COLOR_BLACK, $isSupervisor, $isConditional);
     } else {
         $this->color = new Color(Color::COLOR_BLACK, $isSupervisor);
     }
     // bind parent if we are a supervisor
     if ($isSupervisor) {
         $this->color->bindParent($this, 'color');
     }
 }