public static function retrieve($parameter = false, $return = 'array', array $options = array()) { $result = parent::retrieve($parameter, $return, $options); if (!$result instanceof BackendLockObj || !$result->array) { return $result; } switch ($result->array['type']) { case self::LOCK_SYSTEM: return new BackendSystemLockObj($result); break; default: return $result; break; } }