コード例 #1
0
ファイル: QueryView.php プロジェクト: radmiraal/TYPO3.CouchDB
 /**
  *
  * @param \TYPO3\Flow\Persistence\QueryInterface $query
  */
 public function __construct(\TYPO3\Flow\Persistence\QueryInterface $query)
 {
     $constraint = $query->getConstraint();
     $this->type = $query->getType();
     if ($constraint !== NULL) {
         $this->emits = $this->buildEmitsForConstraint($constraint);
         $constraintName = '_' . $this->buildNameForConstraint($constraint);
     } else {
         $constraintName = '';
     }
     $this->queryIdentifier = strtr($this->type, '\\', '_') . $constraintName;
     $this->viewName = 'entities';
     $this->designName = 'query_' . $this->queryIdentifier;
 }