Bluz\Proxy\Request::isPost PHP Method

isPost() public static method

Is this a POST method request?
public static isPost ( ) : boolean
return boolean
    public static function isPost()
    {
        return self::getInstance()->getMethod() === 'POST';
    }

Usage Example

Example #1
0
 /**
  * Test `Is` Methods
  */
 public function testIsMethods()
 {
     $this->assertTrue(Request::isGet());
     $this->assertFalse(Request::isPost());
     $this->assertFalse(Request::isPut());
     $this->assertFalse(Request::isDelete());
     $this->assertFalse(Request::isFlashRequest());
     $this->assertFalse(Request::isXmlHttpRequest());
 }
All Usage Examples Of Bluz\Proxy\Request::isPost