コード例 #1
0
 /**
  * @return string
  */
 public static function defaultCharsetName()
 {
     if (null === self::$m_defaultCharsetName) {
         self::$m_defaultCharsetName = \env\charset();
     }
     return self::$m_defaultCharsetName;
 }
コード例 #2
0
 /**
  * @param string $method_
  * @param string $action_
  * @param \Components\Io_Mimetype $encType_
  * @param string $acceptCharset_
  */
 public function form($method_ = 'POST', $action_ = null, Io_Mimetype $encType_ = null, $acceptCharset_ = null)
 {
     if (null === $acceptCharset_) {
         $acceptCharset_ = \env\charset();
     }
     if (null === $encType_) {
         $encType_ = Io_Mimetype::APPLICATION_FORM_URLENCODED();
     }
     $this->m_formProperties = ['method' => $method_, 'accept-charset' => $acceptCharset_, 'enctype' => $encType_->name()];
     if (null !== $action_) {
         $this->m_formProperties['action'] = $action_;
     }
     $this->m_form = $this;
 }