public function __construct(PwPost $pwpost, $flashatt) { $bhv = new PwAttUpload($pwpost->user, $pwpost->forum, $flashatt); $this->post = $pwpost; $this->action = new PwUpload($bhv); $this->attach = $pwpost->getAttachs(); $this->fid = $pwpost->forum->fid; }