Pt_BR En Ja De Fr 
You are currently viewing the 0.11 branch api documentation. Switch to 1.0

0.11 Doctrine_Configurable

Doctrine Configurable

Doctrine_Configurable the base for Doctrine_Table, Doctrine_Manager and Doctrine_Connection

Direct Sub-Classes

Method Details

  • getAttributeValueFromString($stringAttributeName, $stringAttributeValueName)

    Will get the value for an attribute by the string name Example: ->getAttributeFromString('portability', 'all') will return Doctrine::PORTABILITY_ALL


  • setListener((Doctrine_EventListener_Interface|Doctrine_Overloadable) $listener)

    Doctrine_Configurable


  • setParam($name, $value, $namespace = null)


  • (mixed) addRecordListener((Doctrine_EventListener_Interface|Doctrine_Overloadable) $listener, $name = null)

    Doctrine_Configurable


  • getParams($namespace = null)


  • (array) getAttributes()

    getAttributes returns all attributes as an array


  • (string) getImpl($template)

    getImpl returns the implementation for given class

    Doctrine_Configurable


  • hasImpl($template)


  • getParam($name, $namespace = null)


  • getAttributeFromString($stringAttributeName)

    Will accept the name of an attribute and return the attribute value Example: ->getAttributeFromString('portability') will be converted to Doctrine::ATTR_PORTABILITY and returned


  • getParent()

    getParent returns the parent of this component


  • (mixed) getAttribute($attribute)

    returns the value of an attribute


  • $template name of the class template
    $class name of the class to be bound

    setImpl($template, $class)

    setImpl binds given class to given template name

    this method is the base of Doctrine dependency injection

    Doctrine_Configurable


  • setRecordListener((Doctrine_EventListener_Interface|Doctrine_Overloadable) $listener)

    setListener

    Doctrine_Configurable


  • setParent(( ) $component)

    sets a parent for this configurable component the parent must be configurable component itself


  • getRecordListener()

    getListener


  • getListener()


  • (mixed) addListener((Doctrine_EventListener_Interface|Doctrine_Overloadable) $listener, $name = null)

    Doctrine_Configurable


  • getParamNamespaces()


  • $attribute either a Doctrine::ATTR_* integer constant or a string corresponding to a constant
    $value the value of the attribute

    setAttribute($attribute, $value)

    setAttribute sets a given attribute

    
    
    setAttribute(Doctrine::ATTR_PORTABILITY, Doctrine::PORTABILITY_ALL);

    // or

    $manager->setAttribute('portability', Doctrine::PORTABILITY_ALL);

    // or

    $manager->setAttribute('portability', 'all');]]>

    throws Doctrine_Exception if the value is invalid


  • setEventListener((Doctrine_EventListener) $listener)


Comments (0) [ add comment ]

 No Comments

Add Comment

Add New Comment
Please enter follow the doctrine