Browse Source

Complement docblock and documentation ZF-11767

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@24489 44c647ce-9c0f-0410-b52a-842ac1e357ba
jaguarnet7 14 years ago
parent
commit
757e82b941

+ 17 - 0
documentation/manual/en/module_specs/Zend_Tool_Project-Providers.xml

@@ -76,6 +76,23 @@
                         <command>zf enable test</command>
                     </entry>
                 </row>
+                
+                <row>
+                    <entry>DbTable</entry>
+                    <entry>Create</entry>
+                    <entry>create - [libraryClassName, tableName, ModuleName=null, forceOverwrite=false]</entry>
+
+                    <entry>
+                        <command>zf create db-table FooClass FooTableName BarModule force-overwrite</command> /
+                        <command>zf create db-table FooClass FooTableName BarModule</command> /
+                        <command>zf create db-table FooClass FooTableName</command> /
+                        <command>zf create db-table FooClass FooTableName --force-overwrite=true</command> /
+                        <command>zf create db-table.from-database BarModule force-overwrite </command> /
+                        <command>zf create db-table.from-database BarModule </command> /
+                        <command>zf create db-table.from-database --force-overwrite=true </command>
+                    </entry>
+                </row>
+                
             </tbody>
         </tgroup>
     </table>

+ 5 - 0
library/Zend/Tool/Project/Provider/DbTable.php

@@ -143,6 +143,11 @@ class Zend_Tool_Project_Provider_DbTable
         }
     }
 
+    /**
+     * @param string $module        Module name action should be applied to.
+     * @param bool $forceOverwrite  Whether should force overwriting previous classes generated
+     * @return void 
+     */
     public function createFromDatabase($module = null, $forceOverwrite = false)
     {
         $this->_loadProfile(self::NO_PROFILE_THROW_EXCEPTION);