eZPublishCommunityProject  2013.9
eZ\Publish\Core\FieldType\Time\Value Class Reference

Value for Time field type. More...

+ Inheritance diagram for eZ\Publish\Core\FieldType\Time\Value:
+ Collaboration diagram for eZ\Publish\Core\FieldType\Time\Value:

Public Member Functions

 __construct ($seconds=null)
 Construct a new Value object and initialize it with $seconds as number of seconds from beginning of day. More...
 
 __toString ()
 
- Public Member Functions inherited from eZ\Publish\Core\FieldType\Value
 __toString ()
 Returns a string representation of the field value. More...
 
- Public Member Functions inherited from eZ\Publish\API\Repository\Values\ValueObject
 __construct (array $properties=array())
 Construct object optionally with a set of properties. More...
 
 __get ($property)
 Magic get function handling read to non public properties. More...
 
 __isset ($property)
 Magic isset function handling isset() to non public properties. More...
 
 __set ($property, $value)
 Magic set function handling writes to non public properties. More...
 
 __unset ($property)
 Magic unset function handling unset() to non public properties. More...
 
 attribute ($property)
 Internal function for Legacy template engine compatibility to get property value. More...
 
 attributes ()
 Internal function for Legacy template engine compatibility to get properties. More...
 
 hasAttribute ($property)
 Internal function for Legacy template engine compatibility to check existence of property. More...
 

Static Public Member Functions

static fromDateTime (DateTime $dateTime)
 Creates a Value from the given $dateTime. More...
 
static fromString ($timeString)
 Creates a Value from the given $timeString. More...
 
static fromTimestamp ($timestamp)
 Creates a Value from the given $timestamp. More...
 
- Static Public Member Functions inherited from eZ\Publish\API\Repository\Values\ValueObject
static __set_state (array $array)
 Returns a new instance of this class with the data specified by $array. More...
 

Public Attributes

 $stringFormat = "H:i:s"
 
 $time
 

Additional Inherited Members

- Protected Member Functions inherited from eZ\Publish\API\Repository\Values\ValueObject
 getProperties ($dynamicProperties=array())
 Function where list of properties are returned. More...
 

Detailed Description

Value for Time field type.

Constructor & Destructor Documentation

eZ\Publish\Core\FieldType\Time\Value::__construct (   $seconds = null)

Construct a new Value object and initialize it with $seconds as number of seconds from beginning of day.

Parameters
mixed$seconds

Member Function Documentation

eZ\Publish\Core\FieldType\Time\Value::__toString ( )
See Also
static eZ\Publish\Core\FieldType\Time\Value::fromDateTime ( DateTime  $dateTime)
static

Creates a Value from the given $dateTime.

Parameters
DateTime$dateTime
Returns

Referenced by eZ\Publish\Core\FieldType\Time\Type\createValueFromInput().

static eZ\Publish\Core\FieldType\Time\Value::fromString (   $timeString)
static

Creates a Value from the given $timeString.

Exceptions
\eZ\Publish\API\Repository\Exceptions\InvalidArgumentException
Parameters
string$timeString
Returns

Referenced by eZ\Publish\Core\FieldType\Time\Type\createValueFromInput().

static eZ\Publish\Core\FieldType\Time\Value::fromTimestamp (   $timestamp)
static

Creates a Value from the given $timestamp.

Exceptions
\eZ\Publish\API\Repository\Exceptions\InvalidArgumentException
Parameters
int$timestamp
Returns
static

Referenced by eZ\Publish\Core\FieldType\Time\Type\createValueFromInput().

Member Data Documentation

eZ\Publish\Core\FieldType\Time\Value::$stringFormat = "H:i:s"
eZ\Publish\Core\FieldType\Time\Value::$time

The documentation for this class was generated from the following file: