Changeset View
Changeset View
Standalone View
Standalone View
branches/5.3.x/core/kernel/security/SecurityGeneratorPromise.php
Show First 20 Lines • Show All 107 Lines • ▼ Show 20 Line(s) | |||||
* @return mixed | * @return mixed | ||||
* @throws LogicException When after 10 retries still unable to generate unique value for database. | * @throws LogicException When after 10 retries still unable to generate unique value for database. | ||||
*/ | */ | ||||
public function resolveForPersisting($prefix_or_table, $column) | public function resolveForPersisting($prefix_or_table, $column) | ||||
{ | { | ||||
$application =& kApplication::Instance(); | $application =& kApplication::Instance(); | ||||
if ( $application->prefixRegistred($prefix_or_table) ) { | if ( $application->prefixRegistred($prefix_or_table) ) { | ||||
$table = $application->getUnitOption($prefix_or_table, 'TableName'); | $table = $application->getUnitConfig($prefix_or_table)->getTableName(); | ||||
} | } | ||||
else { | else { | ||||
$table = $prefix_or_table; | $table = $prefix_or_table; | ||||
} | } | ||||
$retries = 0; | $retries = 0; | ||||
do { | do { | ||||
▲ Show 20 Lines • Show All 150 Lines • Show Last 20 Lines |