RDBAttributeDescription.php
1 <?php
2 /**
3  * wCMF - wemove Content Management Framework
4  * Copyright (C) 2005-2020 wemove digital solutions GmbH
5  *
6  * Licensed under the terms of the MIT License.
7  *
8  * See the LICENSE file distributed with this work for
9  * additional information.
10  */
11 namespace wcmf\lib\model\mapper;
12 
14 
15 /**
16  * Instances of RDBAttributeDescription describe attributes of PersistentObjects
17  * in a relational database.
18  *
19  * @author ingo herwig <ingo@wemove.com>
20  */
22 
23  protected $table = '';
24  protected $column = '';
25 
26  /**
27  * Constructor.
28  * @param $name The attribute name
29  * @param $type The attribute type
30  * @param $tags An array of application specific tags that this attribute is tagged with
31  * @param $defaultValue The default value (will be set when creating a blank object, see PersistenceMapper::create())
32  * @param $validateType A validation type for the value
33  * @param $validateDescription A description for the validation type
34  * @param $isEditable Boolean whether the attribute should be editable, see Control::render()
35  * @param $inputType The input type for the value, see Control::render()
36  * @param $displayType The display type for the value
37  * @param $table The table name
38  * @param $column The column name
39  */
42 
43  parent::__construct($name, $type, $tags, $defaultValue, $validateType,
45 
46  $this->table = $table;
47  $this->column = $column;
48  }
49 
50  /**
51  * Get the table name
52  * @return String
53  */
54  public function getTable() {
55  return $this->table;
56  }
57 
58  /**
59  * Get the column name
60  * @return String
61  */
62  public function getColumn() {
63  return $this->column;
64  }
65 }
66 ?>
Instances of RDBAttributeDescription describe attributes of PersistentObjects in a relational databas...
Instances of AttributeDescription describe attributes of PersistentObjects.
__construct($name, $type, array $tags, $defaultValue, $validateType, $validateDescription, $isEditable, $inputType, $displayType, $table, $column)
Constructor.