@@ 716-732 (lines=17) @@ | ||
713 | * |
|
714 | * @return array |
|
715 | */ |
|
716 | public static function objectToID($object) |
|
717 | { |
|
718 | $resultID = null; |
|
719 | if (is_object($object)) { |
|
720 | $resultID = $object->__toString(); |
|
721 | } else { |
|
722 | if (is_array($object)) { |
|
723 | foreach ($object as $item => $value) { |
|
724 | $resultID[$item] = self::objectToID($value); |
|
725 | } |
|
726 | } else { //String |
|
727 | $resultID = $object; |
|
728 | } |
|
729 | } |
|
730 | ||
731 | return $resultID; |
|
732 | } |
|
733 | ||
734 | /** |
|
735 | * Return basic URL for used Evidence |
@@ 743-760 (lines=18) @@ | ||
740 | * |
|
741 | * @return array |
|
742 | */ |
|
743 | public static function objectToID($object) |
|
744 | { |
|
745 | $resultID = null; |
|
746 | if (is_object($object) && method_exists($object, '__toString') |
|
747 | ) { |
|
748 | $resultID = $object->__toString(); |
|
749 | } else { |
|
750 | if (is_array($object)) { |
|
751 | foreach ($object as $item => $value) { |
|
752 | $resultID[$item] = self::objectToID($value); |
|
753 | } |
|
754 | } else { //String |
|
755 | $resultID = $object; |
|
756 | } |
|
757 | } |
|
758 | ||
759 | return $resultID; |
|
760 | } |
|
761 | ||
762 | /** |
|
763 | * Return basic URL for used Evidence |