function __construct($allowed_types) { $this->allowed_types = array(); $this->setAllowedTypes($allowed_types); }