Ticket #54 (closed enhancement: fixed)

Opened 3 years ago

Last modified 1 year ago

Map MgdSchema datetime properties to PHP 5.2 DateTime type on in midgard-php bindings

Reported by: bergie Assigned to: piotras
Priority: major Milestone: 9.03 Vinland
Component: Midgard PHP Version:
Keywords: Cc:

Description

We'd like to have midgard-php for Midgard2 expose datetime properties as PHP native DateTime types.

Both in echo $object->metadata->published->format('Y-m-d'); and $qb->add_constraint('metadata.published', '=', new DateTime?('today'));

Change History

06/05/07 12:37:16 changed by bergie

  • owner changed from tarjei to piotras.
  • component changed from MidCOM core to Midgard PHP.

09/30/08 14:26:11 changed by bergie

  • milestone changed from Midgard 2.0 to 9.03 Vinland.

02/06/09 09:58:32 changed by piotras

(In [20360]) Initialize midgard_timestamp value for GDA Timestamp one. refs #54

02/06/09 09:59:13 changed by piotras

(In [20361]) Initialize PHP Datetime object from generic midgard_timestamp value. refs #54

02/06/09 10:36:22 changed by piotras

(In [20362]) Convert PHP Datetime object zval to GValue of midgard_timestamp type. refs #54

02/06/09 12:31:25 changed by piotras

(In [20363]) Follow GDA timestamp to string conversion. Midgard_timestamp should implementation should be removed in a future. refs #54

02/06/09 12:32:47 changed by piotras

(In [20364]) Query constraint is midgard_timestamp aware. refs #54

02/06/09 12:40:29 changed by piotras

  • status changed from new to closed.
  • resolution set to fixed.

Seems to be fully suported by core and PHP bindings.