Ejemplo n.º 1
0
 /**
  * Will set the administration widget title and content;
  *
  * This method will set an widget to be shown on the 'Welcome' page of the administration page. We need to be able to show
  * some widgets with statistics on the front-page, for the pure information of the administrator of the website;
  *
  * @param S $objWidgetTitle The widget title;
  * @param S $objWidgetWText The widget text to be shown;
  */
 public function setWidget(S $objWidgetWText, B $objEVAL = NULL)
 {
     // Set some predefines ...
     if (self::$objWidgetArray == NULL) {
         self::$objWidgetArray = new A();
     }
     if ($objEVAL == NULL) {
         $objEVAL = new B(FALSE);
     }
     foreach (current(self::$objMenuArray) as $k => $v) {
         $objCurrentIndex = $k;
     }
     self::$objWidgetArray[] = new A(array('wtext' => $objWidgetWText, 'wEVAL' => $objEVAL));
 }