diff options
author | ctrlaltca <> | 2012-07-12 11:21:01 +0000 |
---|---|---|
committer | ctrlaltca <> | 2012-07-12 11:21:01 +0000 |
commit | 903ae8a581fac1e6917fc3e31d2ad8fb91df80c3 (patch) | |
tree | e08bf04f0823650a231227ac3499121270172a23 /demos/quickstart/protected/index | |
parent | 3e4e6e66aeb3f8fea4e1eb4237498ef9d2358f63 (diff) |
standardize the use of unix eol; use svn properties to enforce native eol
Diffstat (limited to 'demos/quickstart/protected/index')
-rw-r--r-- | demos/quickstart/protected/index/ZendSearch.php | 108 |
1 files changed, 54 insertions, 54 deletions
diff --git a/demos/quickstart/protected/index/ZendSearch.php b/demos/quickstart/protected/index/ZendSearch.php index ec15729c..70aef414 100644 --- a/demos/quickstart/protected/index/ZendSearch.php +++ b/demos/quickstart/protected/index/ZendSearch.php @@ -1,55 +1,55 @@ -<?php
-/*
- * Created on 7/05/2006
- */
-
-class ZendSearch extends TModule
-{
- private $_data;
- private $_ZF;
- private $_search;
-
- public function setIndexDataDirectory($path)
- {
- $this->_data = Prado::getPathOfNamespace($path);
- }
-
- public function getIndexDataDirectory()
- {
- return $this->_data;
- }
-
- public function setZendFramework($path)
- {
- $this->_ZF = Prado::getPathOfNamespace($path);
- }
-
- protected function importZendNamespace()
- {
- if(is_null(Prado::getPathOfAlias('Zend')))
- {
- $zendBase = !is_null($this->_ZF) ? $this->_ZF.'.*' : 'Application.index.*';
- $path = !is_null($this->_ZF) ? $this->_ZF.'.Zend.*' : 'Application.index.Zend.*';
- Prado::using($zendBase);
- Prado::setPathOfAlias('Zend', Prado::getPathOfNamespace($path));
- }
- }
-
- protected function getZendSearch()
- {
- if(is_null($this->_search))
- {
- $this->importZendNamespace();
- Prado::using('Zend.Search.Lucene');
- $this->_search = new Zend_Search_Lucene($this->_data);
- }
- return $this->_search;
- }
-
- public function find($query)
- {
- return $this->getZendSearch()->find(strtolower($query));
- }
-}
-
+<?php +/* + * Created on 7/05/2006 + */ + +class ZendSearch extends TModule +{ + private $_data; + private $_ZF; + private $_search; + + public function setIndexDataDirectory($path) + { + $this->_data = Prado::getPathOfNamespace($path); + } + + public function getIndexDataDirectory() + { + return $this->_data; + } + + public function setZendFramework($path) + { + $this->_ZF = Prado::getPathOfNamespace($path); + } + + protected function importZendNamespace() + { + if(is_null(Prado::getPathOfAlias('Zend'))) + { + $zendBase = !is_null($this->_ZF) ? $this->_ZF.'.*' : 'Application.index.*'; + $path = !is_null($this->_ZF) ? $this->_ZF.'.Zend.*' : 'Application.index.Zend.*'; + Prado::using($zendBase); + Prado::setPathOfAlias('Zend', Prado::getPathOfNamespace($path)); + } + } + + protected function getZendSearch() + { + if(is_null($this->_search)) + { + $this->importZendNamespace(); + Prado::using('Zend.Search.Lucene'); + $this->_search = new Zend_Search_Lucene($this->_data); + } + return $this->_search; + } + + public function find($query) + { + return $this->getZendSearch()->find(strtolower($query)); + } +} + ?>
\ No newline at end of file |