Dotclear


Ignore:
Timestamp:
11/17/13 20:25:53 (12 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
2.6
Children:
2567:6c11245cbf04, 2568:61c67a7d17fa
Message:

Add some people in CREDITS, remove trailing spaces and tabs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inc/core/class.dc.prefs.php

    r1179 r2566  
    2525     protected $table;        ///< <b>string</b> Prefs table name 
    2626     protected $user_id;      ///< <b>string</b> User ID 
    27       
     27 
    2828     protected $workspaces = array();        ///< <b>array</b> Associative workspaces array 
    29       
     29 
    3030     protected $ws;           ///< <b>string</b> Current workspace 
    31       
     31 
    3232     /** 
    3333     Object constructor. Retrieves user prefs and puts them in $workspaces 
    3434     array. Local (user) prefs have a highest priority than global prefs. 
    35       
     35 
    3636     @param    core      <b>dcCore</b>       dcCore object 
    3737     @param    user_id   <b>string</b>       User ID 
     
    4848          } 
    4949     } 
    50       
     50 
    5151     /** 
    52      Retrieves all workspaces (and their prefs) from database, with one query.  
     52     Retrieves all workspaces (and their prefs) from database, with one query. 
    5353     */ 
    5454     private function loadPrefs() 
     
    6565               throw $e; 
    6666          } 
    67            
     67 
    6868          /* Prevent empty tables (install phase, for instance) */ 
    6969          if ($rs->isEmpty()) { 
    7070               return; 
    7171          } 
    72            
     72 
    7373          do { 
    7474               $ws = trim($rs->f('pref_ws')); 
     
    8181          } while(!$rs->isStart()); 
    8282     } 
    83            
    84       
     83 
     84 
    8585     /** 
    8686     Create a new workspace. If the workspace already exists, return it without modification. 
    87       
     87 
    8888     @param    ws   <b>string</b>       Workspace name 
    8989     @return   <b>dcWorkspace</b>  The workspace created 
     
    9696          return $this->workspaces[$ws]; 
    9797     } 
    98       
     98 
    9999     /** 
    100100     Rename a workspace. 
     
    143143          return true; 
    144144     } 
    145       
     145 
    146146     /** 
    147147     Returns full workspace with all prefs pertaining to it. 
    148       
     148 
    149149     @param    ws   <b>string</b>       Workspace name 
    150150     @return   <b>dcWorkspace</b> 
     
    155155               return $this->workspaces[$ws]; 
    156156          } 
    157            
     157 
    158158          return null; 
    159159     } 
    160       
     160 
    161161     /** 
    162162     Magic __get method. 
     
    167167          return $this->get($n); 
    168168     } 
    169       
     169 
    170170     /** 
    171171     Returns $workspaces property content. 
    172       
     172 
    173173     @return   <b>array</b> 
    174174     */ 
     
    177177          return $this->workspaces; 
    178178     } 
    179       
     179 
    180180} 
    181 ?> 
Note: See TracChangeset for help on using the changeset viewer.

Sites map