1: <?php
 2:     /**
 3:      * This file contains the QActionControl
 4:      * @package Controls
 5:      */
 6: 
 7:     /**
 8:      * Abstract class which is extended by things like Buttons.
 9:      * It basically pre-sets CausesValidation to be true (b/c most of the time,
10:      * when a button is clicked we'd assume that we want the validation to kick off)
11:      * And it pre-defines ParsePostData and Validate.
12:      */
13:     abstract class QActionControl extends QControl {
14:         ///////////////////////////
15:         // Private Member Variables
16:         ///////////////////////////
17: 
18:         //////////
19:         // Methods
20:         //////////
21:         /**
22:          * This function should contain the POST data parsing mechanism
23:          */
24:         public function ParsePostData() {
25:         }
26: 
27:         /**
28:          * Checks whether the value submitted via POST for the control was valid or not
29:          * The code to test the validity will have to reside in this function
30:          * @return bool Whether or not the validation succeeded
31:          */
32:         public function Validate() {
33:             return true;
34:         }
35:     }