mirror of
https://github.com/webmasterskaya/joomla-oauth-server.git
synced 2024-11-27 17:15:52 +03:00
Update php doc
This commit is contained in:
parent
54221c0091
commit
a5e685a0d9
@ -22,7 +22,7 @@ trait GetItemByIdentifierTrait
|
|||||||
/**
|
/**
|
||||||
* @param $identifier
|
* @param $identifier
|
||||||
*
|
*
|
||||||
* @return object|bool
|
* @return CMSObject|bool
|
||||||
* @throws \Exception
|
* @throws \Exception
|
||||||
* @since version
|
* @since version
|
||||||
*/
|
*/
|
||||||
@ -36,9 +36,12 @@ trait GetItemByIdentifierTrait
|
|||||||
if ($return === false)
|
if ($return === false)
|
||||||
{
|
{
|
||||||
// If there was no underlying error, then the false means there simply was not a row in the db for this $pk.
|
// If there was no underlying error, then the false means there simply was not a row in the db for this $pk.
|
||||||
if (!$table->getError()) {
|
if (!$table->getError())
|
||||||
|
{
|
||||||
$this->setError(Text::_('JLIB_APPLICATION_ERROR_NOT_EXIST'));
|
$this->setError(Text::_('JLIB_APPLICATION_ERROR_NOT_EXIST'));
|
||||||
} else {
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
$this->setError($table->getError());
|
$this->setError($table->getError());
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -49,7 +52,8 @@ trait GetItemByIdentifierTrait
|
|||||||
$properties = $table->getProperties(1);
|
$properties = $table->getProperties(1);
|
||||||
$item = ArrayHelper::toObject($properties, CMSObject::class);
|
$item = ArrayHelper::toObject($properties, CMSObject::class);
|
||||||
|
|
||||||
if (property_exists($item, 'params')) {
|
if (property_exists($item, 'params'))
|
||||||
|
{
|
||||||
$registry = new Registry($item->params);
|
$registry = new Registry($item->params);
|
||||||
$item->params = $registry->toArray();
|
$item->params = $registry->toArray();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user