Get specified properity of the document.

@param string $propertyName Name of the property.

@return object
@throws Exception
16224
public function getDocumentProperty($propertyName = '')
    {

        if ($propertyName == '')
            throw new Exception('Property name not specified');

        //build URI to replace image
        $strURI = Product::$baseProductUri . '/pdf/' . $this->getFileName() . '/documentProperties/' . $propertyName;

        //sign URI
        $signedURI = Utils::sign($strURI);
        $responseStream = Utils::processCommand($signedURI, 'GET', '', '');

        $response_arr = json_decode($responseStream);

        return $response_arr->DocumentProperty;
    }
1145485
public function indexByProperty($propertyName)
    {
        $results = [];
        foreach ($this->toArray() as $item) {
            $key = mp\getValue($item, $propertyName);
            if ($key) {
                $results[$key] = $item;
            }
        }
        return $results;
    }
314836
public function __getSerialisablePropertyValue($propertyName)
    {
        try {
            return parent::__getSerialisablePropertyValue($propertyName);
        } catch (PropertyNotReadableException $e) {
            if ($this->__strictMode) {
                throw $e;
            } else {
                return null;
            }
        }
    }
625528
protected function getSourcePropertyName(string $propertyName): string
    {
        return $this->nameResolver->getSourcePropertyName(
            $propertyName,
            $this,
            $this->options
        );
    }
687130
public function setDocumentProperty($propertyName = '', $propertyValue = '')
    {

        if ($propertyName == '')
            throw new Exception('Property name not specified');

        //build URI to replace image
        $strURI = Product::$baseProductUri . '/pdf/' . $this->getFileName() . '/documentProperties/' . $propertyName;

        $putArray['Value'] = $propertyValue;
        $json = json_encode($putArray);

        //sign URI
        $signedURI = Utils::sign($strURI);
        $responseStream = Utils::processCommand($signedURI, 'PUT', 'json', $json);

        $response_arr = json_decode($responseStream);

        return $response_arr->DocumentProperty;
    }
939234
protected function getProperty($dataName)
    {
        $dataName = explode('.', trim($dataName));

        if (count($dataName) != 2) {
            throw new Exception('You are set invalid date.');
        }

        $tableAlias = $dataName[0];
        $colName = $dataName[1];

        if ($this->query->repository()->alias() == $tableAlias) {
            return $colName;
        } elseif (array_key_exists($tableAlias, $this->query->contain())) {
            return [
                'propertyPath' => $this->query
                    ->eagerLoader()->normalized($this->query->repository())[$tableAlias]['propertyPath'],
                'field' => $colName
            ];
        }
    }
417662
public function hasProperty($propertyName)
    {
        if (is_object($this->contentObjectProxy)) {
            return ObjectAccess::isPropertyGettable($this->contentObjectProxy->getObject(), $propertyName);
        }
        return array_key_exists($propertyName, $this->properties);
    }
576396
public function getFieldType($fieldName)
    {
        if (!array_key_exists($fieldName, $this->_fields)) {
            throw new \Exception("Field name \"$fieldName\" not found in document.");
        }

        return $this->_fields[$fieldName]->getType ();
    }
878122
public function getFullFileName($documentName)
	{
		if ($this->_hashedDir)
		{
			return 
				$this->_repositoryDir.
				$this->_lang.
				self::getSlash().$documentName[0].
				self::getSlash().$documentName[1].
				self::getSlash().$documentName;
		}
		else 
		{
			return 
				$this->_repositoryDir.
				$this->_lang.
				self::getSlash().$documentName;
		}
	}
1058646
protected function getPropertyValue($object, $propertyName)
    {
        if ($object instanceof \Doctrine\ORM\Proxy\Proxy) {
            $object->__load();
        }

        return ObjectAccess::getProperty($object, $propertyName, !ObjectAccess::isPropertyGettable($object, $propertyName));
    }
876896
public function getPropertyValue($propertyName, $objectId = null)
    {

        //You can return this protected properties as objects too.
        if (in_array($propertyName, array("objectId", "objectType", "objectURI")) && isset($this->$propertyName)) {
            return $this->$propertyName;
        }

        $property = strtolower($propertyName);
        //1. Check that the property exists in $dataModel;
        if (!array_key_exists($property, $this->propertyModel))
            return false; //@TODO Raise error? specified column not found
        //2. if isset objectId and object is this object, check value in propertyData
        if ((!empty($objectId) && (int)$objectId == $this->objectId) || empty($objectId)) {
            //IF we have a property that is not defined go get 
            if (!isset($this->propertyData[$property])) {
                //@TODO Database QUERY with objectId
                //Remember that this will most likely be used for 'un-modeled' data
                return;
            }
            //If we already have the property set and the objectId is empty
            return $this->propertyData[$property];
        }
        //3. If we have an Id and its not the same go back to the DB
        //if we have an id
        return;
    }
147253
protected function get($name)
    {
        if (isset($this->site[$name])) {
            return $this->site[$name];
        }

        throw new Exception("The property $name could not be found on the website ID " . (int)$this->id);
    }
787766
public function getProperty(NodeInterface $node, $propertyName)
    {
        if ($propertyName[0] === '_') {
            $propertyValue = ObjectAccess::getProperty($node, ltrim($propertyName, '_'));
        } else {
            $propertyValue = $node->getProperty($propertyName);
        }

        $dataType = $node->getNodeType()->getPropertyType($propertyName);
        try {
            $convertedValue = $this->convertValue($propertyValue, $dataType);
        } catch (PropertyException $exception) {
            $logMessage = $this->throwableStorage->logThrowable($exception);
            $this->logger->error($logMessage, LogEnvironment::fromMethodName(__METHOD__));
            $convertedValue = null;
        }

        if ($convertedValue === null) {
            $convertedValue = $this->getDefaultValueForProperty($node->getNodeType(), $propertyName);
            if ($convertedValue !== null) {
                try {
                    $convertedValue = $this->convertValue($convertedValue, $dataType);
                } catch (PropertyException $exception) {
                    $logMessage = $this->throwableStorage->logThrowable($exception);
                    $this->logger->error($logMessage, LogEnvironment::fromMethodName(__METHOD__));
                    $convertedValue = null;
                }
            }
        }

        return $convertedValue;
    }
143289
public function getPropertyType($propertyName)
    {
        if (!isset($this->fullConfiguration['properties']) || !isset($this->fullConfiguration['properties'][$propertyName]) || !isset($this->fullConfiguration['properties'][$propertyName]['type'])) {
            return 'string';
        }
        return $this->fullConfiguration['properties'][$propertyName]['type'];
    }
282466
private function isExistingPropertyGetterAvailable(string $propertyName): bool
    {
        assert($this->propertyExists($propertyName));
        if ($this->isExistingPropertyVirtual($propertyName)) {
            return !is_null($this->virtualGetters[$propertyName]);
        } else {
            return $this->realGetAvailable[$propertyName];
        }
    }
567318
public function getByName($propertyName)
    {
        $foundList = new self();
        $list = $this->getIterator();
        foreach ($list as $property) {
            if ((is_array($propertyName) && in_array($property->getName(), $propertyName))
                || ($property->getName() === $propertyName)
            ) {
                $foundList->add($property);
            }
        }

        return $foundList;
    }
20268
public static function getValue($object, $propertyName)
    {
        $possibleGetter = array('get' . ucfirst($propertyName), 'is' . ucfirst($propertyName));

        /*
         * This case handle both $URL, and $xPosition case.
         * The getter for $xPosition is getxPosition because of the implementation of
         * "java.beans.Introspector.decapitalize".
         * {@see http://stackoverflow.com/a/16146215}
         * {@see http://dertompson.com/2013/04/29/java-bean-getterssetters/}
         */
        if (substr($propertyName, 1, 1) !== strtolower(substr($propertyName, 1, 1))) {
            $possibleGetter[] = 'get' . $propertyName;
            $possibleGetter[] = 'is' . $propertyName;
        }

        foreach ($possibleGetter as $getter) {
            if (method_exists($object, $getter) || is_callable(array($object, $getter), false)) {
                try {
                    return call_user_func(array($object, $getter));
                    // @codingStandardsIgnoreLine
                } catch (\BadFunctionCallException $e) {
                    //Do nothing and continue
                    // @codingStandardsIgnoreLine
                } catch (\InvalidArgumentException $e) {
                    //Do nothing and continue
                }
            }
        }

        throw new \InvalidArgumentException(
            vsprintf(
                'The class "%s" does not have any getter for the property "%s" (tried getters: "%s")',
                array(get_class($object), $propertyName, implode('", "', $possibleGetter))
            )
        );
    }