Changeset 370 for trunk/Common/Model.php


Ignore:
Timestamp:
Jan 19, 2012, 12:30:58 PM (13 years ago)
Author:
chronos
Message:
  • Přidáno: Obecná třída pro definici zobrazovaných prvků.
  • Odstraněno: Zrušena nemodulární jednotka forms_classes.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Common/Model.php

    r364 r370  
    2222define('PropertyDouble', 'Double');
    2323define('PropertyOneToMany', 'OneToMany');
    24 define('PropertyManyToOne', 'ManyToOne');
    2524define('PropertyManyToMany', 'ManyToMany');
    2625
     
    138137    $this->Properties[] = array('Name' => $Name, 'Type' => PropertyBoolean);
    139138  }
    140 
    141   function AddPropertyManyToOne($Name, $TargetModel, $TargetColumn)
    142   {     
    143     $this->Properties[] = array('Name' => $Name, 'Type' => PropertyManyToOne,
    144       'TargetModel' => $TargetModel, 'TargetColumn' => $TargetColumn);
    145   }
    146  
     139 
    147140  function AddPropertyManyToMany($TargetModel, $Relation, $ColumOwn, $ColumnTarget)
    148141  {     
     
    177170        $Query .= '`'.$Property['Name'].'` INT(255) NOT NULL,'.
    178171          'KEY `'.$Property['Name'].'` (`'.$Property['Name'].'`),';
    179       else if($Property['Type'] == PropertyManyToOne)
    180         $Query .= '';
    181172      else if($Property['Type'] == PropertyManyToMany) ;
    182173        // Create many-to-many table
Note: See TracChangeset for help on using the changeset viewer.