Dotclear


Ignore:
Timestamp:
10/03/13 15:17:58 (12 years ago)
Author:
Dsls
Branch:
default
Message:

reworked favorites handling (wip)

File:
1 edited

Legend:

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

    r1179 r2229  
    127127          return null; 
    128128     } 
    129       
     129 
     130     /** 
     131     Returns global pref value if exists. 
     132      
     133     @param    n         <b>string</b>       Pref name 
     134     @return   <b>mixed</b> 
     135     */ 
     136     public function getGlobal($n) 
     137     { 
     138          if (isset($this->global_prefs[$n]['value'])) { 
     139               return $this->global_prefs[$n]['value']; 
     140          } 
     141           
     142          return null; 
     143     } 
     144      
     145     /** 
     146     Returns local pref value if exists. 
     147      
     148     @param    n         <b>string</b>       Pref name 
     149     @return   <b>mixed</b> 
     150     */ 
     151     public function getLocal($n) 
     152     { 
     153          if (isset($this->local_prefs[$n]['value'])) { 
     154               return $this->local_prefs[$n]['value']; 
     155          } 
     156           
     157          return null; 
     158     }     
    130159     /** 
    131160     Magic __get method. 
Note: See TracChangeset for help on using the changeset viewer.

Sites map