colors() 공개 메소드

Returns the colors of the current calendar.
public colors ( ) : array
리턴 array The calendar background and foreground color.
예제 #1
0
파일: Event.php 프로젝트: DSNS-LAB/Dmail
 /**
  * Constructor.
  *
  * @param Kronolith_Driver $driver  The backend driver that this event is
  *                                  stored in.
  * @param mixed $eventObject        Backend specific event object
  *                                  that this will represent.
  */
 public function __construct(Kronolith_Driver $driver, $eventObject = null)
 {
     $this->calendar = $driver->calendar;
     list($this->_backgroundColor, $this->_foregroundColor) = $driver->colors();
     if (!is_null($eventObject)) {
         $this->fromDriver($eventObject);
     }
 }