Changeset 2216:91f485a16187 for inc/core
- Timestamp:
- 10/02/13 17:47:15 (12 years ago)
- Branch:
- dcRepo
- Location:
- inc/core
- Files:
-
- 3 moved
-
class.dc.store.parser.php (moved) (moved from inc/core/class.dc.repository.parser.php) (2 diffs)
-
class.dc.store.php (moved) (moved from inc/core/class.dc.repository.php) (5 diffs)
-
class.dc.store.reader.php (moved) (moved from inc/core/class.dc.repository.reader.php) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
inc/core/class.dc.store.parser.php
r2214 r2216 18 18 Provides an object to parse XML feed of modules from a repository. 19 19 */ 20 class dc RepositoryParser20 class dcStoreParser 21 21 { 22 22 /** @var object XML object of feed contents */ … … 30 30 * Constructor. 31 31 * 32 * @param string Feed content32 * @param string $data Feed content 33 33 */ 34 34 public function __construct($data) -
inc/core/class.dc.store.php
r2215 r2216 18 18 Provides an object to parse XML feed of modules from repository. 19 19 */ 20 class dc Repository20 class dcStore 21 21 { 22 22 /** @var object dcCore instance */ … … 59 59 return false; 60 60 } 61 if (($parser = dc RepositoryReader::quickParse($this->xml_url, DC_TPL_CACHE, $force)) === false) {61 if (($parser = dcStoreReader::quickParse($this->xml_url, DC_TPL_CACHE, $force)) === false) { 62 62 return false; 63 63 } … … 116 116 * 117 117 * Every time a part of query is find on module, 118 * result accuracy grow. Result is sorted by ac uracy.118 * result accuracy grow. Result is sorted by accuracy. 119 119 * 120 120 * @param string $pattern String to search … … 127 127 # Split query into small clean words 128 128 $patterns = explode(' ', $pattern); 129 array_walk($patterns, array('dc Repository','sanitize'));129 array_walk($patterns, array('dcStore','sanitize')); 130 130 131 131 # For each modules … … 134 134 # Split modules infos into small clean word 135 135 $subjects = explode(' ', $id.' '.$module['name'].' '.$module['desc']); 136 array_walk($subjects, array('dc Repository','sanitize'));136 array_walk($subjects, array('dcStore','sanitize')); 137 137 138 138 # Check contents -
inc/core/class.dc.store.reader.php
r2214 r2216 19 19 This class extends clearbricks netHttp class. 20 20 */ 21 class dc RepositoryReader extends netHttp21 class dcStoreReader extends netHttp 22 22 { 23 23 /** @var string User agent used to query repository */ … … 53 53 * 54 54 * @param string $url XML feed URL 55 * @return object dc Repositoryinstance55 * @return object dcStore instance 56 56 */ 57 57 public function parse($url) … … 66 66 } 67 67 68 return new dc RepositoryParser($this->getContent());68 return new dcStoreParser($this->getContent()); 69 69 } 70 70 … … 123 123 124 124 /** 125 * Set force query reposi ory.125 * Set force query repository. 126 126 * 127 127 * @param boolean $force True to force query … … 202 202 # Ok, parse feed 203 203 case '200': 204 if ($modules = new dc RepositoryParser($this->getContent())) {204 if ($modules = new dcStoreParser($this->getContent())) { 205 205 try { 206 206 files::makeDir(dirname($cached_file), true);
Note: See TracChangeset
for help on using the changeset viewer.
