CloudObjects/SDK/NodeReader.php
public function getAllValuesString(Node $node = null, $property) {
        $allValues = $this->getAllValues($node, $property);
        $output = [];
        foreach ($allValues as $a)
            if (is_a($a, 'ML\JsonLD\Node'))
                $output[] = $a->getId();
            else
                $output[] = $a->getValue();

        return $output;
    }
public function getAllValuesString(Node $node = null, $property) {
        $allValues = $this->getAllValues($node, $property);
        $output = [];
        foreach ($allValues as $a)
            if (is_a($a, 'ML\JsonLD\Node'))
                $output[] = $a->getId();
            else
                $output[] = $a->getValue();

        return $output;
    }
public function getAllValuesString ( Node $ node = null , $ property ) { $ allValues = $ this -> getAllValues ( $ node , $ property ) ; $ output = [ ] ; foreach ( $ allValues as $ a ) if ( is_a ( $ a , 'ML\JsonLD\Node' ) ) $ output [ ] = $ a -> getId ( ) ; else $ output [ ] = $ a -> getValue ( ) ; return $ output ; }
Reads all values from a node and returns them as a string array.

@param Node $node The node to work on.
@param string|object $property The property to read.
@return array<string>
Reads all values from a node and returns them as a string array .