Development

Changeset 12873

You must first sign up to be able to contribute.

Changeset 12873

Show
Ignore:
Timestamp:
11/10/08 13:15:31 (8 months ago)
Author:
fabien
Message:

[1.2] added CSS and JS support to sfWidgetFormDateRange widget (closes #4831)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.2/lib/widget/sfWidgetFormDateRange.class.php

    r11671 r12873  
    6161    )); 
    6262  } 
     63 
     64  /** 
     65   * Gets the stylesheet paths associated with the widget. 
     66   * 
     67   * @return array An array of stylesheet paths 
     68   */ 
     69  public function getStylesheets() 
     70  { 
     71    return array_unique(array_merge($this->getOption('from_date')->getStylesheets(), $this->getOption('to_date')->getStylesheets())); 
     72  } 
     73 
     74  /** 
     75   * Gets the JavaScript paths associated with the widget. 
     76   * 
     77   * @return array An array of JavaScript paths 
     78   */ 
     79  public function getJavaScripts() 
     80  { 
     81    return array_unique(array_merge($this->getOption('from_date')->getJavaScripts(), $this->getOption('to_date')->getJavaScripts())); 
     82  } 
    6383} 

The Sensio Labs Network

Since 1998, Sensio Labs has been promoting the Open-Source software movement by providing quality web application development, training, consulting, and supporting several large Open-Source projects.