FolderName = $sFolderName; $this->IsWritable = $bIsWritable; $this->Exists = null; $this->Recent = null; $this->Flags = array(); $this->PermanentFlags = array(); $this->Unread = null; $this->Uidnext = null; } /** * @param string $sFolderName * @param bool $bIsWritable * * @return \MailSo\Imap\FolderInformation */ public static function NewInstance($sFolderName, $bIsWritable) { return new self($sFolderName, $bIsWritable); } /** * @param string $sFlag * * @return bool */ public function IsFlagSupported($sFlag) { return in_array('\\*', $this->PermanentFlags) || in_array($sFlag, $this->PermanentFlags); } }