Dotclear

Changeset 2216:91f485a16187 for inc/core


Ignore:
Timestamp:
10/02/13 17:47:15 (12 years ago)
Author:
Denis Jean-Chirstian <contact@…>
Branch:
dcRepo
Message:

Rename dcRepository to dcStore because of dotAddict used this name

Location:
inc/core
Files:
3 moved

Legend:

Unmodified
Added
Removed
  • inc/core/class.dc.store.parser.php

    r2214 r2216  
    1818Provides an object to parse XML feed of modules from a repository. 
    1919*/ 
    20 class dcRepositoryParser 
     20class dcStoreParser 
    2121{ 
    2222     /** @var  object    XML object of feed contents */ 
     
    3030      * Constructor. 
    3131      * 
    32       * @param string         Feed content 
     32      * @param string    $data          Feed content 
    3333      */ 
    3434     public function __construct($data) 
  • inc/core/class.dc.store.php

    r2215 r2216  
    1818Provides an object to parse XML feed of modules from repository. 
    1919*/ 
    20 class dcRepository 
     20class dcStore 
    2121{ 
    2222     /** @var  object    dcCore instance */ 
     
    5959               return false; 
    6060          } 
    61           if (($parser = dcRepositoryReader::quickParse($this->xml_url, DC_TPL_CACHE, $force)) === false) { 
     61          if (($parser = dcStoreReader::quickParse($this->xml_url, DC_TPL_CACHE, $force)) === false) { 
    6262               return false; 
    6363          } 
     
    116116      * 
    117117      * Every time a part of query is find on module, 
    118       * result accuracy grow. Result is sorted by acuracy. 
     118      * result accuracy grow. Result is sorted by accuracy. 
    119119      * 
    120120      * @param string    $pattern  String to search 
     
    127127          # Split query into small clean words 
    128128          $patterns = explode(' ', $pattern); 
    129           array_walk($patterns, array('dcRepository','sanitize')); 
     129          array_walk($patterns, array('dcStore','sanitize')); 
    130130 
    131131          # For each modules 
     
    134134               # Split modules infos into small clean word 
    135135               $subjects = explode(' ', $id.' '.$module['name'].' '.$module['desc']); 
    136                array_walk($subjects, array('dcRepository','sanitize')); 
     136               array_walk($subjects, array('dcStore','sanitize')); 
    137137 
    138138               # Check contents 
  • inc/core/class.dc.store.reader.php

    r2214 r2216  
    1919This class extends clearbricks netHttp class. 
    2020*/ 
    21 class dcRepositoryReader extends netHttp 
     21class dcStoreReader extends netHttp 
    2222{ 
    2323     /** @var  string    User agent used to query repository */ 
     
    5353      * 
    5454      * @param string    $url      XML feed URL 
    55       * @return     object    dcRepository instance 
     55      * @return     object    dcStore instance 
    5656      */ 
    5757     public function parse($url) 
     
    6666          } 
    6767 
    68           return new dcRepositoryParser($this->getContent()); 
     68          return new dcStoreParser($this->getContent()); 
    6969     } 
    7070 
     
    123123 
    124124     /** 
    125       * Set force query reposiory. 
     125      * Set force query repository. 
    126126      * 
    127127      * @param boolean   $force    True to force query 
     
    202202               # Ok, parse feed 
    203203               case '200': 
    204                     if ($modules = new dcRepositoryParser($this->getContent())) { 
     204                    if ($modules = new dcStoreParser($this->getContent())) { 
    205205                         try { 
    206206                              files::makeDir(dirname($cached_file), true); 
Note: See TracChangeset for help on using the changeset viewer.

Sites map