-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'pu/ps/taiga/4435_2' into '2023.11'
tweak(php8.2): add some more property definitions See merge request tine20/tine20!4726
- Loading branch information
Showing
12 changed files
with
31 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,11 +4,10 @@ | |
* | ||
* @package Setup | ||
* @license http://www.gnu.org/licenses/agpl.html | ||
* @copyright Copyright (c) 2008 Metaways Infosystems GmbH (http://www.metaways.de) | ||
* @copyright Copyright (c) 2008-2024 Metaways Infosystems GmbH (http://www.metaways.de) | ||
* @author Matthias Greiling <[email protected]> | ||
*/ | ||
|
||
|
||
abstract class Setup_Backend_Schema_Index_Abstract extends Setup_Backend_Schema_Abstract | ||
{ | ||
|
||
|
@@ -59,14 +58,14 @@ abstract class Setup_Backend_Schema_Index_Abstract extends Setup_Backend_Schema_ | |
* | ||
* @var string | ||
*/ | ||
public $referencetable; | ||
public $referenceTable; | ||
|
||
/** | ||
* name of referenced table field/column of foreign key | ||
* | ||
* @var string | ||
*/ | ||
public $referencefield; | ||
public $referenceField; | ||
|
||
/** | ||
* defines behaviour of foreign key | ||
|
@@ -88,66 +87,13 @@ abstract class Setup_Backend_Schema_Index_Abstract extends Setup_Backend_Schema_ | |
* @var integer | ||
*/ | ||
public $length = NULL; | ||
|
||
|
||
public $fulltext; | ||
|
||
abstract protected function _setIndex($_declaration); | ||
|
||
public function setForeignKey($_foreign) | ||
{ | ||
$this->foreign = 'true'; | ||
} | ||
|
||
// | ||
// /** | ||
// * set index from declaration | ||
// * @param stdClass $_declaration | ||
// * NOT IMPLEMENTED YET | ||
// */ | ||
// public function addIndex($_definition) | ||
// { | ||
// foreach ($this->declaration['index'] as $index) { | ||
// if ($index->field['name'] == $_definition['COLUMN_NAME']) { | ||
// if ($_definition['CONSTRAINT_NAME'] == 'PRIMARY') { | ||
// $index->setName($_definition['COLUMN_NAME']); | ||
// } else { | ||
// $index->setName($_definition['CONSTRAINT_NAME']); | ||
// } | ||
// } | ||
// } | ||
// } | ||
// | ||
// /** | ||
// * set index from declaration | ||
// * @param stdClass $_declaration | ||
// * NOT IMPLEMENTED YET | ||
// */ | ||
// public function setIndex($_definition) | ||
// { | ||
// foreach ($this->declaration['index'] as $index) { | ||
// if ($index->field['name'] == $_definition['COLUMN_NAME']) { | ||
// if ($_definition['CONSTRAINT_NAME'] == 'PRIMARY') { | ||
// $index->setName($_definition['COLUMN_NAME']); | ||
// } else { | ||
// $index->setName($_definition['CONSTRAINT_NAME']); | ||
// } | ||
// } | ||
// } | ||
// } | ||
// | ||
// /** | ||
// * set index from declaration | ||
// * @param stdClass $_declaration | ||
// * NOT IMPLEMENTED YET | ||
// */ | ||
// public function setForeign($_definition) | ||
// { | ||
// foreach ($this->declaration['index'] as $index) { | ||
// //// auto shutup by cweiss: echo "<h1>" . substr($_definition['CONSTRAINT_NAME'], strlen(SQL_TABLE_PREFIX)) . "/" .$index->field->name. "</h1>"; | ||
// | ||
// //if ($index->field->name == substr($_definition['CONSTRAINT_NAME'], strlen(SQL_TABLE_PREFIX))) | ||
// //{ | ||
// $index->setForeignKey($_definition); | ||
// //} | ||
// } | ||
// } | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,11 +4,10 @@ | |
* | ||
* @package Setup | ||
* @license http://www.gnu.org/licenses/agpl.html | ||
* @copyright Copyright (c) 2008 Metaways Infosystems GmbH (http://www.metaways.de) | ||
* @copyright Copyright (c) 2008-2024 Metaways Infosystems GmbH (http://www.metaways.de) | ||
* @author Matthias Greiling <[email protected]> | ||
*/ | ||
|
||
|
||
class Setup_Backend_Schema_Index_Mysql extends Setup_Backend_Schema_Index_Abstract | ||
{ | ||
|
||
|
@@ -20,13 +19,10 @@ public function __construct($_declaration) | |
public function setForeignKey($_declaration) | ||
{ | ||
parent::setForeignKey($_declaration); | ||
$this->referencetable = substr($_declaration['REFERENCED_TABLE_NAME'], strlen(SQL_TABLE_PREFIX)); | ||
$this->referencefield = $_declaration['REFERENCED_COLUMN_NAME']; | ||
// $this->referenceOnDelete; | ||
// $this->referenceOnUpdate; | ||
$this->referenceTable = substr($_declaration['REFERENCED_TABLE_NAME'], strlen(SQL_TABLE_PREFIX)); | ||
$this->referenceField = $_declaration['REFERENCED_COLUMN_NAME']; | ||
} | ||
|
||
|
||
/** | ||
* set Setup_Backend_Schema_Table from a given database query | ||
* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,11 +4,10 @@ | |
* | ||
* @package Setup | ||
* @license http://www.gnu.org/licenses/agpl.html AGPL3 | ||
* @copyright Copyright (c) 2008 Metaways Infosystems GmbH (http://www.metaways.de) | ||
* @copyright Copyright (c) 2008-2024 Metaways Infosystems GmbH (http://www.metaways.de) | ||
* @author Matthias Greiling <[email protected]> | ||
*/ | ||
|
||
|
||
class Setup_Backend_Schema_Index_Xml extends Setup_Backend_Schema_Index_Abstract | ||
{ | ||
/** | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters