Gentics Portal.Node PHP API
 All Classes Namespaces Functions Variables Pages
SearchForm.php
1 <?php
2 /**
3  *
4  */
5 class SearchForm extends CFormModel
6 {
7  public $language;
8 
9  public $term;
10 
11  public $searchAttributes;
12 
13  public $limitPath;
14 
15  public $sortOrder;
16 
17  public function getParsedTerm()
18  {
19  $parsed = explode(':', $this->term);
20  if (count($parsed) == 1) {
21  return array('term' => $parsed[0]);
22  } else {
23  return array('category' => $parsed[0], 'term' => $parsed[1]);
24  }
25  }
26 
27 }