Has Property Method

Checks to see if a given property is set.
@param string $strProperty The property you want to check.
@return true|false
424451
public function hasProperty($strProperty){
		$strProperty = $this->_formatPropertyName($strProperty);
		if(in_array($strProperty, $this->_arrProperties)){
			return true;
		}
		return false;
	}
716133
public function __isset(string $property) : bool
    {
        // Limit magic access to a predefined list.
        if (in_array($property, ['raw', 'arguments', 'options'])) {
            return isset($this->$property);
        }

        return false;
    }
1207115
public boolean validUserProperty(String strProperty)
    {
        if (DBParams.FRAMES.equalsIgnoreCase(strProperty))
            return true;
        if (DBParams.MENUBARS.equalsIgnoreCase(strProperty))
            return true;
        if (DBParams.NAVMENUS.equalsIgnoreCase(strProperty))
            return true;
        if (DBParams.JAVA.equalsIgnoreCase(strProperty))
            return true;
        if (DBParams.BANNERS.equalsIgnoreCase(strProperty))
            return true;
        if (DBParams.LOGOS.equalsIgnoreCase(strProperty))
            return true;
        if (DBParams.TRAILERS.equalsIgnoreCase(strProperty))
            return true;
        if (DBParams.LANGUAGE.equalsIgnoreCase(strProperty))
            return true;
        return false;
    }
637688
private function hasSetMethod($reflectionClass, $propertyName): bool
    {
        $studlyProperty = $this->studly($propertyName);
        $methodName = 'set' . $studlyProperty;
        $exists = $reflectionClass->hasMethod($methodName);

        return $exists;
    }
1185465
protected function hasProperty(string $propertyName): bool
    {
        if (count($this->values) === 1
          && isset($this->values['__value'])
          && 'value' === $propertyName) {
            return isset($this->values['__value']);
        }

        return isset($this->values[$propertyName]);
    }
916378
function isPropertySet ($fieldName)
  {
    return isset($this->props->$fieldName)
      ? $this->props->$fieldName !== ''
      : $this->isBound ($fieldName);
  }
473011
private function isPropChecked($sPropName)
    {
        $fRes        = false;
        $sClassName  = get_class($this);
        $oReflection = new \ReflectionClass($sClassName);
        if ($oReflection->hasProperty($sPropName) && $oReflection->getProperty($sPropName)->isPublic()
        ) {
            $fRes = true;
        }
        unset($oReflection);
        return $fRes;
    }
1010388
public String getProperty(String strProperty)
    {
        String strValue = null;
        if (m_properties != null)
            strValue = (String)m_properties.get(strProperty);
        if (strValue == null)	// || (strValue.length() == 0)) [db must be able to set to BLANK to override systemname property]
            if (m_databaseOwner != null)
                strValue = m_databaseOwner.getProperty(strProperty);
        return strValue;
    }
874971
protected function checkProperties(): void
    {
        foreach (get_object_vars($this) as $property => $value) {
            if ($property !== "dueDate" && strpos($value, "*") !== false) {
                throw new QrPaymentException("Error: properties cannot contain asterisk (*). Property $property contains it.", QrPaymentException::ERR_ASTERISK);
            }
        }
    }
324733
public function has($property)
    {
        if (is_array($property)) {
            foreach ($property as $item) {
                if (is_a($this->{$item}, '\\TYPO3\\CMS\\Extbase\\Persistence\\ObjectStorage')) {
                    return ($this->{$item}->count()) ? true : false;
                } else {
                    return (!empty($this->{$item})) ? true : false;
                }
            }
        } else {
            if (is_a($this->{$property}, '\\TYPO3\\CMS\\Extbase\\Persistence\\ObjectStorage')) {
                return ($this->{$property}->count()) ? true : false;
            } else {
                return (!empty($this->{$property})) ? true : false;
            }
        }
    }
593107
public void setProperty(String strProperty, String strValue)
    {
        if (this.getTask() != null)
            this.getTask().setProperty(strProperty, strValue);
    }
850955
public void setProperty(String strProperty, String strValue)
    {
        if (strValue == null)
            strValue = NULL;
        if (strValue != null)
            m_properties.setProperty(strProperty, strValue);
        else
            m_properties.remove(strProperty);
    }
39350
public function checkProperty(&$property)
    {
        if (parent::checkProperty($property)) {
            if (preg_match(
                '/^(?:src|unicode-range|font-(?:family|variant|feature-settings|stretch|weight|style))$/D',
                $property)) {
                return true;
            } else {
                $this->setIsValid(false);
                $this->addValidationError("Invalid property '$property' for @font-face declaration.");
            }
        }

        return false;
    }
1368270
public function __isset(string $prop) : bool
    {
        $annotations = $this->__ornamentalize();
        foreach ($annotations['methods'] as $name => $anns) {
            if (isset($anns['get']) && $anns['get'] == $prop) {
                return true;
            }
        }
        return property_exists($this->__state, $prop)
            && !is_null($this->__state->$prop);
    }
1299805
public void addPasswordProperty(String strProperty)
    {
        if (m_setPropertiesDescriptions == null)
            m_setPropertiesDescriptions = new HashSet<String>();
        if (strProperty != null)
            m_setPropertiesDescriptions.add(strProperty);
        else
            m_setPropertiesDescriptions.remove(strProperty);
    }
1315708
function isProperty()
    {
        //Get the annotation index
        $i = $this->getAnnotationIndex(self::PROPERTY);

        //If the property annotation is on here
        if($i >= 0)
        {
            //Set the format (Date, JSON, scalar, etc)
            $this->format = $this->annotations[$i]->format;

            //This is a property
            return true;
        }

        else
        {
            //Not a property
            return false;
        }
    }
678908
public function __isset($property = null)
	{
		if (!property_exists(__CLASS__, $property) || $property{0} == '_')
		{
			if (empty($property))
			{
				$property = '(null)';
			}

			$this->_error("Cannot access property " . __CLASS__ . "::$" . $property, E_USER_ERROR);
			die();
		}

		return isset($this->$property);
	}