Changeset 14773 for trunk/midcom/build/createCrud.php
- Timestamp:
- 02/06/08 22:58:28 (10 months ago)
- Files:
-
- trunk/midcom/build/createCrud.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/midcom/build/createCrud.php
r5030 r14773 11 11 class CreateCrud extends Task { 12 12 13 function __construct()14 {13 function __construct() 14 { 15 15 16 }16 } 17 17 18 protected $returnProperty; // name of property to set to return value18 protected $returnProperty; // name of property to set to return value 19 19 20 /**21 * The root path to where the module is stored.22 */23 private $root = null;24 /**25 * The target directory where the packagefile should be saved.26 */27 protected $target_dir = null;20 /** 21 * The root path to where the module is stored. 22 */ 23 private $root = null; 24 /** 25 * The target directory where the packagefile should be saved. 26 */ 27 protected $target_dir = null; 28 28 29 public function setRoot($str)30 {31 $this->root = $str;32 }29 public function setRoot($str) 30 { 31 $this->root = $str; 32 } 33 33 34 /** Sets property name to set with return value of function or expression.*/35 public function setReturnProperty($r)36 {37 $this->returnProperty = $r;38 }34 /** Sets property name to set with return value of function or expression.*/ 35 public function setReturnProperty($r) 36 { 37 $this->returnProperty = $r; 38 } 39 39 /** 40 40 * The name of the midcom … … 66 66 67 67 68 /**69 * The init method: Do init steps.70 */71 public function init()72 {73 echo "Make CRUD - not war! \n";68 /** 69 * The init method: Do init steps. 70 */ 71 public function init() 72 { 73 echo "Make CRUD - not war! \n" ; 74 74 $this->moduleRoot = $this->root . "/" . $this->type; 75 }76 /**77 * The main entry point method.78 */79 public function main()80 {81 75 } 76 /** 77 * The main entry point method. 78 */ 79 public function main() 80 { 81 82 82 $this->moduleRoot = $this->root . "/" . $this->module; 83 83 $schema = new SchemaReader( $this->schema, $this->type );
