Diese Seite auf Deutsch Deutsch auf allen Seiten print search uml2php

These examples were generated with the PHP language generator. The UML2PHP products approach is more sophisticated than this. These examples are for showing some simple transformations from UML constructs to PHP code.

Class only

/com/bitplan/webpage/products/uml2php/examplecode/ClassCustomerOnly.gif
test/classCustomer.php line 32 - 44
<?php
/**
 *
 * @package Customer
 * DocBlock
 */

class Customer
{

    
// >>>{User defined global section}{::test::Customer}{S406EFBA0005A}
    // no implementation yet !!!
    // <<<{User defined global section}{::test::Customer}{S406EFBA0005A}

...
line 48 - 56
<?php
/**
 *
 */
    
function Customer() {
    
// >>>{DefaultConstructor }{Customer}{S406EFBA0005A}
    // no implementation yet !!!
    // <<<{DefaultConstructor }{Customer}{S406EFBA0005A}
    
// Customer
// Customer

Class with date attribute

/com/bitplan/webpage/products/uml2php/examplecode/ClassWithDateAttribute.gif
test/classCustomer.php line 42 - 52
<?php
/**
 *    Attributes for Customer
 */

/**
 * @var date firstContact;
 * the date of the first contact;
 */
        
protected  $firstContact;
        public function 
getfirstContact()             { return $this->firstContact; }
        public function 
setfirstContact($value) { $this->firstContact $value; }

Class with class attribute

/com/bitplan/webpage/products/uml2php/examplecode/ClassCustomerWithClassAttribute.gif
test/classCustomer.php line 42 - 51
<?php
/**
 *    static Attributes for Customer
 */
/**
 * @var short count;
 * ;
 */
        
protected static  $count;
        public static function 
getcount()             { return $this->count; }
        public static function 
setcount($value) { $this->count $value; }

Class with 1:1 association

/com/bitplan/webpage/products/uml2php/examplecode/ClassWith11Association.gif
test/classPerson.php line 42 - 106
too many errors ...