Previous Page
Constants

Solar_View_Helper_Date
Properties

Next Page
Methods

Properties

Public

None.

Protected

$_Solar_View_Helper_Date

(array) User-defined configuration values.

Keys are:

format
(string) The default output formatting using php:date() codes. Default is 'Y-m-d'.

$_Solar_View_Helper_Timestamp

(array) User-defined configuration values.

Inherited from Solar_View_Helper_Timestamp.

Keys are:

format
(string) The default output formatting using php:date() codes. Default is 'Y-m-d H:i:s'.
tz_origin
(string) Consider all input timestamps as being from this timezone. Default is the value of php:date_default_timezone_get() .
tz_output
(string) Output all timestamps after converting to this timezone. Default is the value of php:date_default_timezone_get() .

$_config

(array) Collection point for configuration values.

Inherited from Solar_Base.

Note that you do not define config defaults in $_config directly.

<?php
// DO NOT DO THIS
protected $_config = array(
    'foo' => 'bar',
    'baz' => 'dib',
);
?>

Instead, define config defaults in a protected property named for the class, withan underscore prefix.

For exmple, a "Vendor_Class_Name" class would define the default config array in "$_Vendor_Class_Name". This convention lets child classes inherit parent config keys and values.

<?php
// DO THIS INSTEAD
protected $_Vendor_Class_Name = array(
    'foo' => 'bar',
    'baz' => 'dib',
);
?>

$_tz_offset

(int) The offset in seconds between the origin and output timezones.

Inherited from Solar_View_Helper_Timestamp.

This value will be added to the time (in seconds) before formatting for output.

$_tz_origin

(string) The timezone that date-time strings originate from.

Inherited from Solar_View_Helper_Timestamp.

$_tz_output

(string) The timezone that date-time strings should be converted to before output.

Inherited from Solar_View_Helper_Timestamp.

$_view

(Solar_View) Reference to the parent Solar_View object.

Inherited from Solar_View_Helper.

Private

None.