openrat-cms

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

BaseAction.class.php (426B)


      1 <?php
      2 
      3 
      4 namespace cms\action;
      5 
      6 use util\exception\ClientException;
      7 
      8 /**
      9  */
     10 abstract class BaseAction extends Action implements Method
     11 {
     12 
     13 	public function __construct()
     14 	{
     15 		parent::__construct();
     16 	}
     17 
     18 
     19 	/**
     20 	 * @throws ClientException
     21 	 */
     22 	public function post()
     23 	{
     24 		throw new ClientException("Bad Method");
     25 	}
     26 
     27 	/**
     28 	 * @throws ClientException
     29 	 */
     30 	public function view()
     31 	{
     32 		throw new ClientException("Bad Method");
     33 	}
     34 }