public function __construct($id, $module = null, $redirect = true)
 {
     parent::__construct($id, $module);
     $fullname = Yii::app()->user->getState('firstname') . ' ' . Yii::app()->user->getState('lastname');
     $this->userHello = $fullname;
     $this->message = "Hello " . $fullname;
     $this->ShowMessage = false;
     $this->propertyName = Yii::app()->user->getState('property_property_name');
     $this->propertyCountry = Yii::app()->user->getState('property_country');
     $this->propertyAdminCountry = Yii::app()->user->getState('property_adminCountry');
     $this->title = $this->propertyName;
     $this->propertyId = Yii::app()->user->getState('property_id');
     $this->access = $this->getActivePropertyAccess();
     $this->getAllProperties();
     $property = Properties::model()->find('id=:id AND isdeactivated=:isdeactivated', array(':id' => Yii::app()->user->getState('propertyId'), ':isdeactivated' => 1));
     if ($property != null && $redirect) {
         $access = UserAccessTable::getCurrentAccess();
         if ($access < UserAccessTable::GUEST) {
             $this->redirect(basePath('property/' . Yii::app()->user->getState('propertyId')));
         } else {
             $this->redirect(basePath('property/deactivated'));
         }
     }
     //        $this->access = UserAccessTable::BASIC_ACCESS;
 }