src/Mixins/HtmlEncoderTrait.php
public function varsToEncode()
    {
        if ($this->isAutoEncodeAll() === true) {
            $allClassVariables = array();
            $vars = SerializationHelper::getProperties($this);
            foreach ($vars as $classVar => $val) {
                if (HtmlMarkupSerializationHelper::encodableClassVariable($this, $classVar)) {
                    $allClassVariables[] = $classVar;
                }
            }
            return $allClassVariables;
        } else {
            return $this->varsToEncode;
        }
    }
public function varsToEncode()
    {
        if ($this->isAutoEncodeAll() === true) {
            $allClassVariables = array();
            $vars = SerializationHelper::getProperties($this);
            foreach ($vars as $classVar => $val) {
                if (HtmlMarkupSerializationHelper::encodableClassVariable($this, $classVar)) {
                    $allClassVariables[] = $classVar;
                }
            }
            return $allClassVariables;
        } else {
            return $this->varsToEncode;
        }
    }
public function varsToEncode ( ) { if ( $ this -> isAutoEncodeAll ( ) === true ) { $ allClassVariables = array ( ) ; $ vars = SerializationHelper :: getProperties ( $ this ) ; foreach ( $ vars as $ classVar => $ val ) { if ( HtmlMarkupSerializationHelper :: encodableClassVariable ( $ this , $ classVar ) ) { $ allClassVariables [ ] = $ classVar ; } } return $ allClassVariables ; } else { return $ this -> varsToEncode ; } }
Returns the class variables to encode
@return array
Returns the class variables to encode