public function __construct($customfields) { $this->data = new stdClass(); self::$customfields = $customfields; }