private function action()
 {
     $object_name = $this->object_name;
     $object_action = $this->object_action;
     // Choose action;
     if ($this->button_name == 'select') {
         $this->cleanView();
         return;
     } else {
         if ($object_action == 'new') {
             // new [by submit]
             RealEstateAgency_Util::printTestString('INSERT');
             // test string;
             if ($object_name == '') {
                 return;
             }
             $this->insert();
             $this->cleanView();
         } else {
             if ($object_action == 'update') {
                 // updated [by submit]
                 RealEstateAgency_Util::printTestString('UPDATE');
                 // test string;
                 if ($object_name == '') {
                     return;
                 }
                 $this->update();
                 $this->cleanView();
             } else {
                 if ($object_action == 'delete') {
                     // delete [by link]
                     RealEstateAgency_Util::printTestString('DELETE');
                     // test string;
                     $this->delete();
                     $this->cleanView();
                 } else {
                     if ($object_action == 'edit') {
                         // edit [by link]
                         RealEstateAgency_Util::printTestString('EDIT');
                         // test string;
                         $this->edit();
                     } else {
                         // just list;
                         RealEstateAgency_Util::printTestString('LIST');
                         // test string;
                         $this->cleanView();
                     }
                 }
             }
         }
     }
     return;
 }