Index: trunk/extensions/SemanticMediaWiki/includes/datavalues/SMW_DV_Record.php |
— | — | @@ -27,7 +27,7 @@ |
28 | 28 | protected function parseUserValueOrQuery( $value, $querymode ) { |
29 | 29 | if ( $value == '' ) { |
30 | 30 | $this->addError( wfMsg( 'smw_novalues' ) ); |
31 | | - return $querymode ? new SMWThingDescription():$this->m_data; |
| 31 | + return $querymode ? new SMWThingDescription() : $this->m_data; |
32 | 32 | } |
33 | 33 | |
34 | 34 | $subdescriptions = array(); // only used for query mode |
— | — | @@ -68,7 +68,7 @@ |
69 | 69 | $this->addError( wfMsg( 'smw_novalues' ) ); |
70 | 70 | } |
71 | 71 | if ( $querymode ) { |
72 | | - return $empty ? new SMWThingDescription():new SMWRecordDescription( $subdescriptions ); |
| 72 | + return $empty ? new SMWThingDescription() : new SMWRecordDescription( $subdescriptions ); |
73 | 73 | } |
74 | 74 | } |
75 | 75 | |
Index: trunk/extensions/SemanticMediaWiki/includes/datavalues/SMW_DV_Container.php |
— | — | @@ -16,10 +16,6 @@ |
17 | 17 | |
18 | 18 | protected $m_data; |
19 | 19 | |
20 | | - public function getBaseType() { |
21 | | - return SMWDataValue::TYPE_CONT; |
22 | | - } |
23 | | - |
24 | 20 | public function __construct( $typeid ) { |
25 | 21 | parent::__construct( $typeid ); |
26 | 22 | $this->m_data = new SMWSemanticData( null ); |
Index: trunk/extensions/SemanticMediaWiki/includes/datavalues/SMW_DV_Property.php |
— | — | @@ -53,10 +53,6 @@ |
54 | 54 | */ |
55 | 55 | private $mPropTypeId; |
56 | 56 | |
57 | | - public function getBaseType() { |
58 | | - return SMWDataValue::TYPE_PROP; |
59 | | - } |
60 | | - |
61 | 57 | /** |
62 | 58 | * Static function for creating a new property object from a |
63 | 59 | * propertyname (string) as a user might enter it. |
Index: trunk/extensions/SemanticMediaWiki/includes/datavalues/SMW_DV_Concept.php |
— | — | @@ -15,10 +15,6 @@ |
16 | 16 | */ |
17 | 17 | class SMWConceptValue extends SMWDataValue { |
18 | 18 | |
19 | | - public function getBaseType() { |
20 | | - return SMWDataValue::TYPE_CONCEPT; |
21 | | - } |
22 | | - |
23 | 19 | protected function parseUserValue( $value ) { |
24 | 20 | throw new Exception( 'Concepts cannot be initialised from user-provided strings. This should not happen.' ); |
25 | 21 | } |
Index: trunk/extensions/SemanticMediaWiki/includes/datavalues/SMW_DV_Time.php |
— | — | @@ -134,10 +134,6 @@ |
135 | 135 | /// The year before which we do not accept anything but year numbers and largely discourage calendar models. |
136 | 136 | const PREHISTORY = -10000; |
137 | 137 | |
138 | | - public function getBaseType() { |
139 | | - return SMWDataValue::TYPE_TIME; |
140 | | - } |
141 | | - |
142 | 138 | protected function parseUserValue( $value ) { |
143 | 139 | $value = trim( $value ); // ignore whitespace |
144 | 140 | $this->m_wikivalue = $value; |
Index: trunk/extensions/SemanticMediaWiki/includes/datavalues/SMW_DV_URI.php |
— | — | @@ -32,10 +32,6 @@ |
33 | 33 | */ |
34 | 34 | private $m_mode; |
35 | 35 | |
36 | | - public function getBaseType() { |
37 | | - return SMWDataValue::TYPE_URI; |
38 | | - } |
39 | | - |
40 | 36 | public function __construct( $typeid ) { |
41 | 37 | parent::__construct( $typeid ); |
42 | 38 | switch ( $typeid ) { |