Ticket #757 (closed feature request: fixed)

Opened 2 years ago

Last modified 10 months ago

Default values for MgdSchema properties

Reported by: bergie Assigned to: piotras
Priority: minor Milestone: 9.03 Vinland
Component: Midgard Core Version: 9.03 Vinland
Keywords: iks Cc:

Description

To synchronize MgdSchema?'s features a bit with JCR Node Type Notation, we should support default values for properties.

Something like:

<type name="org_openpsa_products_product">
    ...
    <property name="price" type="float" default="1.5"/>
</type>

$product = new org_openpsa_products_product();
echo $product->price; // will output 1.5

Change History

02/19/09 22:22:34 changed by piotras

(In [20571]) refs #757

02/20/09 10:20:29 changed by piotras

(In [20572]) MidgardSitegroup? invokes parent constructor explicitly. refs #757

02/20/09 10:54:15 changed by piotras

(In [20573]) midgard_user explicitly calls parent constructor. refs #757

02/20/09 16:08:09 changed by piotras

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

(In [20579]) Fixes #757

11/09/09 17:31:20 changed by bergie

  • keywords set to iks.