Exemple #1
0
 /**
  * Function to get the default widgets
  * @return <array> - array of Widget models
  */
 public function getDefaultWidgets()
 {
     $moduleModel = $this->getModule();
     $parentWidgets = parent::getDefaultWidgets();
     $widgets[] = array('contentType' => 'json', 'title' => 'Countries to be verified', 'mode' => 'open', 'url' => 'module=' . $moduleModel->getName() . '&view=ShowWidget&mode=getTbvCountries');
     foreach ($widgets as $widget) {
         $widgetList[] = Vtiger_Widget_Model::getInstanceFromValues($widget);
     }
     return $widgetList;
 }
Exemple #2
0
 /**
  * Function to get the default widgets
  * @return <array> - array of Widget models
  */
 public function getDefaultWidgets()
 {
     $moduleModel = $this->getModule();
     $parentWidgets = parent::getDefaultWidgets();
     $widgets[] = array('contentType' => 'json', 'title' => 'Opportunity By Sales Stage', 'mode' => 'open', 'url' => 'module=' . $moduleModel->getName() . '&view=ShowWidget&mode=getPotentialsCountBySalesStage');
     foreach ($widgets as $widget) {
         $widgetList[] = Vtiger_Widget_Model::getInstanceFromValues($widget);
     }
     return $widgetList;
 }