Source for file jSelectorFile.lib.php

Documentation is available at jSelectorFile.lib.php

  1. <?php
  2. /**
  3. * see jISelector.iface.php for documentation about selectors. Here abstract class for many selectors
  4. *
  5. @package     jelix
  6. @subpackage  core_selector
  7. @author      Laurent Jouanneau
  8. @copyright   2005-2008 Laurent Jouanneau
  9. @link        http://www.jelix.org
  10. @licence    GNU Lesser General Public Licence see LICENCE file or http://www.gnu.org/licenses/lgpl.html
  11. */
  12.  
  13.  
  14. /**
  15.  * Selector for files stored in the var directory
  16.  *
  17.  * @package    jelix
  18.  * @subpackage core_selector
  19.  */
  20. class jSelectorVar extends jSelectorSimpleFile {
  21.     protected $type = 'var';
  22.     function __construct($sel){
  23.         $this->_basePath = jApp::varPath();
  24.         parent::__construct($sel);
  25.     }
  26. }
  27.  
  28. /**
  29.  * Selector for files stored in the config directory
  30.  *
  31.  * @package    jelix
  32.  * @subpackage core_selector
  33.  */
  34. class jSelectorCfg extends jSelectorSimpleFile {
  35.     protected $type = 'cfg';
  36.     function __construct($sel){
  37.         $this->_basePath = jApp::configPath();
  38.         parent::__construct($sel);
  39.     }
  40. }
  41.  
  42. /**
  43.  * Selector for files stored in the temp directory
  44.  *
  45.  * @package    jelix
  46.  * @subpackage core_selector
  47.  */
  48. class jSelectorTmp extends jSelectorSimpleFile {
  49.     protected $type = 'tmp';
  50.     function __construct($sel){
  51.         $this->_basePath = jApp::tempPath();
  52.         parent::__construct($sel);
  53.     }
  54. }
  55.  
  56. /**
  57.  * Selector for files stored in the log directory
  58.  *
  59.  * @package    jelix
  60.  * @subpackage core_selector
  61.  */
  62. class jSelectorLog extends jSelectorSimpleFile {
  63.     protected $type = 'log';
  64.     function __construct($sel){
  65.         $this->_basePath = jApp::logPath();
  66.         parent::__construct($sel);
  67.     }
  68. }
  69.  
  70. /**
  71.  * Selector for files stored in the lib directory
  72.  *
  73.  * @package    jelix
  74.  * @subpackage core_selector
  75.  */
  76. class jSelectorLib extends jSelectorSimpleFile {
  77.     protected $type = 'lib';
  78.     function __construct($sel){
  79.         $this->_basePath = LIB_PATH;
  80.         parent::__construct($sel);
  81.     }
  82. }

Documentation generated on Wed, 04 Jan 2017 22:56:40 +0100 by phpDocumentor 1.4.3