Changeset 468 for trunk/lib/CSS.inc.php


Ignore:
Timestamp:
Feb 20, 2014 3:03:59 AM (10 years ago)
Author:
anonymous
Message:

Completed integrating /branches/eli_branch into /trunk. Changes include:

  • Removed closing ?> from end of files
  • Upgrade old-style contructor methods to use construct() instead.
  • Class properties and methods defined as public, private, static or protected
  • Ensure code runs under E_ALL with only mysql_* deprecated warnings
  • Search for the '@' symbol anywhere it might be used to supress runtime errors, then replace with proper error recovery.
  • Run the php cli -l option to check files for syntax errors.
  • Bring tests up-to-date with latest version and methods of PHPUnit
Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/lib/CSS.inc.php

    r396 r468  
    3232
    3333    // Include these style sheets.
    34     var $_css_files = array('default' => array());
     34    private $_css_files = array('default' => array());
    3535
    3636    // CSS object parameters.
    37     var $_params = array(
     37    private $_params = array(
    3838        'character_set' => 'utf-8',
    3939        'cache_css' => false,
     
    4848     * @param  array    $params     Array of parameters (key => val pairs).
    4949     */
    50     function setParam($params)
     50    public function setParam($params)
    5151    {
    5252        $app =& App::getInstance();
     
    6767     * @return mixed               Configured parameter value.
    6868     */
    69     function getParam($param)
     69    public function getParam($param)
    7070    {
    7171        $app =& App::getInstance();
     
    8787     * @return  bool    True on success, false on failure.
    8888     */
    89     function setFile($file, $realms='')
     89    public function setFile($file, $realms='')
    9090    {
    9191        $app =& App::getInstance();
     
    115115     * @return  bool    False if no files have been set.
    116116     */
    117     function headers($realm='')
     117    public function headers($realm='')
    118118    {
    119119        $app =& App::getInstance();
     
    157157     * @return  bool    False if no files have been set.
    158158     */
    159     function output($realm='')
     159    public function output($realm='')
    160160    {
    161161        $realm = '' == $realm ? 'default' : $realm;
     
    181181    }
    182182}
    183 ?>
Note: See TracChangeset for help on using the changeset viewer.