ICanBoogie
  • Documentation
  • API Reference
  • ActiveRecord master
Namespaces
  • ICanBoogie
    • ActiveRecord
      • Driver
Classes
  • ActiveRecordCacheBase
  • BelongsToRelation
  • Connection
  • ConnectionCollection
  • ConnectionOptions
  • DateTimePropertySupport
  • HasManyRelation
  • Helpers
  • Model
  • ModelCollection
  • Query
  • Relation
  • RelationCollection
  • RelationNotDefined
  • RuntimeActiveRecordCache
  • Schema
  • SchemaColumn
  • Statement
  • Table
Interfaces
  • ActiveRecordCache
  • Driver
  • Exception
Traits
  • CreatedAtProperty
  • DateProperty
  • DateTimeProperty
  • FinishAtProperty
  • FinishedAtProperty
  • StartAtProperty
  • StartedAtProperty
  • UpdatedAtProperty
Exceptions
  • ActiveRecordClassNotValid
  • ConnectionAlreadyEstablished
  • ConnectionNotDefined
  • ConnectionNotEstablished
  • DriverNotDefined
  • ModelAlreadyInstantiated
  • ModelNotDefined
  • RecordNotFound
  • ScopeNotDefined
  • StatementInvocationFailed
  • StatementNotValid
  • UnableToSetFetchMode

Class DateTimePropertySupport

Provides support for datetime properties.

Namespace: ICanBoogie\ActiveRecord
Located at ActiveRecord/DateTimePropertySupport.php

Methods summary

public static set( mixed & $property, mixed $datetime )

Sets the datetime in a property.

Sets the datetime in a property.

Parameters

$property
Reference to the property to set.
$datetime
Date and time.
public static get( mixed & $property ) : ICanBoogie\DateTime

Returns the ICanBoogie\DateTime instance of a property.

Returns the ICanBoogie\DateTime instance of a property.

Parameters

$property
Reference to the property to return.

Returns

ICanBoogie\DateTime
The function always return a ICanBoogie\DateTime instance.
ActiveRecord master – Check on GitHub – API documentation generated by ApiGen