Zend_Db_Table_Definition example



    /** * __construct() - For concrete implementation of Zend_Db_Table * * @param string|array $config can reference the name of a table * @param array|Zend_Db_Table_Definition $definition */
    public function __construct($config = array()$definition = null)
    {
        if ($definition !== null && is_array($definition)) {
            $definition = new Zend_Db_Table_Definition($definition);
        }

        if (is_string($config)) {
            // process this as table with or without a definition             if ($definition instanceof Zend_Db_Table_Definition
                && $definition->hasTableConfig($config)) {
                // this will have DEFINITION_CONFIG_NAME & DEFINITION                 $config = $definition->getTableConfig($config);
            } else {
                $config = array(self::NAME => $config);
            }
        }
Home | Imprint | This part of the site doesn't use cookies.