openrat-cms

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

SearchResultAction.class.php (1025B)


      1 <?php
      2 namespace cms\action\search;
      3 use cms\action\Method;
      4 use cms\action\SearchAction;
      5 
      6 class SearchResultAction extends SearchAction implements Method {
      7 
      8     public function view() {
      9 
     10 		$suchText    = $this->request->getText('text');
     11 		$searchFlags = 0;
     12 		
     13 		if	( $this->request->has('id'         ) ) $searchFlags |= self::FLAG_ID;
     14 		if	( $this->request->has('filename'   ) ) $searchFlags |= self::FLAG_FILENAME;
     15 		if	( $this->request->has('name'       ) ) $searchFlags |= self::FLAG_NAME;
     16 		if	( $this->request->has('description') ) $searchFlags |= self::FLAG_DESCRIPTION;
     17 		if	( $this->request->has('content'    ) ) $searchFlags |= self::FLAG_VALUE;
     18 			
     19 		$this->performSearch($suchText, $searchFlags);
     20 
     21 				/*
     22 			case 'lastchange_user':
     23 				$e = new Value();
     24 				
     25 				$language = Session::getProjectLanguage();
     26 				$e->languageid = $language->languageid;
     27 				
     28 				$listObjectIds = $e->getObjectIdsByLastChangeUserId( $this->request->getRequestVar('userid') );
     29 				break;
     30 		}*/
     31     }
     32 
     33     public function post() {
     34     }
     35 }