Skip to content

Commit b0162ae

Browse files
author
Vítězslav Dvořák
committed
Preaprations for trait "kod" further use
1 parent 87a2d4b commit b0162ae

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

src/AbraFlexi/RO.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2008,6 +2008,8 @@ public function getRecordID()
20082008
* Obtain record/object identificator code:
20092009
* Vrací identifikátor objektu code:
20102010
*
2011+
* @todo move to "kod" trait
2012+
*
20112013
* @link https://demo.flexibee.eu/devdoc/identifiers Identifikátory záznamů
20122014
*
20132015
* @return string record code identifier

src/AbraFlexi/kod.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,16 @@
1717
*/
1818
trait kod
1919
{
20+
/**
21+
* Obtain record/object identificator code:
22+
* Vrací identifikátor objektu code:
23+
*
24+
* @link https://demo.flexibee.eu/devdoc/identifiers Identifikátory záznamů
25+
*
26+
* @return string record code identifier
27+
*/
28+
public function _getRecordCode()
29+
{
30+
return empty($this->getDataValue('kod')) ? null : self::code($this->getDataValue('kod'));
31+
}
2032
}

0 commit comments

Comments
 (0)