src/DataContainer.php
public function getData()
	{
		$data = $this->data;

		foreach ($data as $key => $value)
		{
			if (is_object($value) and $this->isWhitelisted($value))
			{
				continue;
			}

			if ($this->shouldBeFiltered($key))
			{
				if ($value instanceof Sanitize)
				{
					$data[$key] = $value->sanitize();
				}
				else
				{
					$data[$key] = $this->filter($value);
				}
			}
		}

		return $data;
	}
public function getData()
	{
		$data = $this->data;

		foreach ($data as $key => $value)
		{
			if (is_object($value) and $this->isWhitelisted($value))
			{
				continue;
			}

			if ($this->shouldBeFiltered($key))
			{
				if ($value instanceof Sanitize)
				{
					$data[$key] = $value->sanitize();
				}
				else
				{
					$data[$key] = $this->filter($value);
				}
			}
		}

		return $data;
	}
public function getData ( ) { $ data = $ this -> data ; foreach ( $ data as $ key => $ value ) { if ( is_object ( $ value ) and $ this -> isWhitelisted ( $ value ) ) { continue ; } if ( $ this -> shouldBeFiltered ( $ key ) ) { if ( $ value instanceof Sanitize ) { $ data [ $ key ] = $ value -> sanitize ( ) ; } else { $ data [ $ key ] = $ this -> filter ( $ value ) ; } } } return $ data ; }
Retrieves all the view data

@return array
Retrieves all the view data