/**
  * Index will list all the users folders.
  * 
  * @access public
  */
 public function indexAction()
 {
     // Set any add folder errors into the view
     $this->view->adderror = $this->_getParam('adderror');
     $this->view->success = $this->_getParam('success');
     $folderObj = new Application_Model_Folder($this->user);
     if ($this->request->isPost()) {
         $iphonenumber = $this->request->getParam('phonesrch');
         if ($iphonenumber != "") {
             $folderidArray = $folderObj->getFoldersByPhoneNumber($iphonenumber);
             $folderidstr = "";
             foreach ($folderidArray as $key => $folder) {
                 if ($key != 0) {
                     $folderidstr .= ",";
                 }
                 $folderidstr .= $folder['folderid'];
             }
             $user_folders = $folderObj->getFoldersByfolderidstring($folderidstr);
         } else {
             $user_folders = $this->user->getFolders();
         }
     } else {
         $user_folders = $this->user->getFolders();
     }
     /*
               $folders      = array();
     
               foreach ($user_folders as $id) {
               $folders[] = new Application_Model_Folder($this->user, $id);
               } */
     $messageObj = new Application_Model_Report();
     $this->view->messageObj = $messageObj;
     $this->view->folders = $user_folders;
     $this->view->user = $this->user;
     $this->view->userid = $this->user->getId();
     $this->view->flist = $folderObj->getFoldersByName($this->user->getId());
 }