BeanContext.php

Show: inherited
    Table of Contents

    \Conjoon_BeanContext

    Package: Conjoon\BeanContext

    Interface for classes used in contexts where they act as "beans", following the conventions of JavaBeans.

    A bean context is a programmatically environment, where objects can be serialized for persistent storage, or where their properties can be introspected in a convinient way.

    A class defines itself in bean context, when it adheres to the following conventions:

    <

    ul>

  • Class name <br/> No restrictions to the name of the class.
  • Interface <br/> The class implementsthe Conjoon_BeanContext interface and the interface Serializable.
  • Superclass <br/> Any class can be extended.
  • Constructor <br/> A parameter-less constructor must be implemented. The body of the constructor may invoke any other action (such as setting default properties).
  • Properties <br/> A bean defines a property x of the type Y, if it has accessors adhering the following conventions
    • Getter
      public function getX() : Y
    • Boolean getter
      public function isX() : boolean
    • Setter
      public function setX(a:Y) : void
    • Exceptions
      Property accessors may throw any type of exception.
  • Indexed properties <br/> A bean defines an indexed property x of the type Array, if it has accessors adhering the following conventions
    • Array getter
      public function getX() : Array
    • Element getter
      public function getX(index:int) : Array[index]
    • Array setter
      public function setX(Array) : void
    • Element setter
      public function setX(index:int, value:Y) : void
    • Exceptions
      Indexed property accessor may throw any exception. However, they are advised to through exceptions, indicating errors related to the bounds of an indexed property.
  • Children
    \Conjoon_Error
    \Conjoon_Modules_Service_Twitter_Account
    \Conjoon_Modules_Service_Twitter_Tweet
    \Conjoon_Modules_Groupware_Files_File
    \Conjoon_Modules_Groupware_Email_Address
    \Conjoon_Modules_Groupware_Email_Draft
    \Conjoon_Modules_Groupware_Email_Message
    \Conjoon_Modules_Groupware_Email_Item
    \Conjoon_Modules_Groupware_Email_Folder
    \Conjoon_Modules_Groupware_Email_Address_List
    \Conjoon_Modules_Groupware_Email_Account
    \Conjoon_Modules_Groupware_Email_FolderMapping
    \Conjoon_Modules_Groupware_Email_Attachment
    \Conjoon_Modules_Groupware_Feeds_Item
    \Conjoon_Modules_Groupware_Feeds_Account
    \Conjoon_Modules_Default_User
    Author
    Thorsten-Suckow-Homberg  
    Category
    Conjoon  
    Uses
    \Serializable  

    Methods

    methodpublic__toString( ) : string

    Returns a textual representation of this object.

    Returns
    Type Description
    string
    methodpublicgetDto( ) : Object

    Returns a DTO for an instance of this class.

    Returns
    Type Description
    Object
    methodpublictoArray( ) : string

    Returns all persistent properties of this object as an associative array.

    Returns
    Type Description
    string
    Documentation was generated by DocBlox 0.18.1.