Exemple #1
0
 public function getWhiteLabelId()
 {
     if (ViewsTrack::isDev()) {
         return 3;
     }
     return parent::getWhiteLabelId();
 }
Exemple #2
0
 /**
  * HANDLING THE WHITE LABEL ACCOUNTS
  */
 public function getWhiteLabelId()
 {
     if ($this->isLoggedIn()) {
         // called from siteadmin
         if ($this->isSuperadmin()) {
             // for superadmin get default White Label Id
             return $this->getDefaultWhiteLabelId();
         } else {
             // get account of the logged user
             return $this->model->wlabel_id;
         }
     } else {
         return parent::getWhiteLabelId();
     }
 }