动态分配数组时,如果数组元素具有类类型,将使用该类的默认构造函数( 第2.3.4 节)实现初始化;
When we allocate an array of objects of a class type, then that type's default constructor ( Section 2.3.4, p. 50) is used to initialize each element.
不过,我们希望使用脚本语言编写操作,因此,我们将使用scriptedaction类,该类会对Struts Action进行扩展以执行脚本。
However, we want to write the action in a scripting language, so we will use the ScriptedAction class, which extends the Struts action to execute a script.
php将扩展zend_db_table类,并且您将使用的大多数方法均继承自该类。
Posts.php will extend the Zend_Db_Table class, and you'll be using most the inherited methods from that class.
应用推荐