Notice: Undefined index: in /home/capival/public_html/propello/classes/errorHandler.class.php on line 158
RUNTIME ERROR [256]



Invalid productCategory id

Fatal error on line 342 in file /home/capival/public_html/propello/classes/framework.class.php, PHP 5.6.36 (Linux)
Aborting Execution
1 /home/capival/public_html/propello/classes/errorHandler.class.php line 52Kint::trace()
  • Source
  • 45 file_put_contents(APPPATH . "/logs/error_log" . date('Y-m-d h:i:s') . ".txt",
    46 $total_error_string);
    47 header("location:/" . ERROR_URL);
    48 // send mail to the devs
    49 }
    50 else {
    51 echo($total_error_string);
    52 Kint::trace();
    53 }
    54 exit(0);
    55 break;
    56 case E_USER_WARNING:
    57 $total_error_string =
    58 "<b>RUNTIME WARNING</b> [$errorNumber] $errorString<br />\n on line $errorLine in file $errorFile <br />\n";
    59 if ($debug != 0) {
2 PHP internal callerrorHandler::handleErrors(errorNumber, errorString, errorFile, errorLine, 4)
  • Arguments
  • errorNumber integer 256
    errorString string (28) "4|Invalid productCategory id"
    errorFile string (62) "/home/capival/public_html/propello/classes/framework.class.p …"
    /home/capival/public_html/propello/classes/framework.class.php
    errorLine integer 342
    4 array (6)
    'id' => NULL
    'fields' => string (0) ""
    'query' => string (0) ""
    'validationXML' => string (0) ""
    'validationPrefix' => string (0) ""
    'flag' => integer 0
3 /home/capival/public_html/propello/classes/framework.class.php line 342trigger_error(message, error_type)
  • Source
  • Arguments
  • 335 * @param int $flag
    336 *
    337 * @return null
    338 */
    339 public function getValue($id, $fields = "", $query="", $validationXML = "", $validationPrefix="", $flag = 0)
    340 {
    341 if (!$id) {
    342 trigger_error("4|Invalid " . $this->tableName . " id", E_USER_ERROR);
    343 }
    344 if($query=="")
    345 {
    346 if ($fields == "") {
    347 $queryTemplate = "SELECT * FROM `" . $this->tableName . "` WHERE id=:id and flag=:flag";
    348
    349 }
  • message string (28) "4|Invalid productCategory id"
    error_type integer 256
4 /home/capival/public_html/propello/application/classes/productController.class.php line 64framework->getValue(id)
  • Source
  • Arguments
  • Callee object [productCategory]
  • 57 {
    58 $allFormValues['productSpecValue'][] = $productSpecificationValue['spec'];
    59 }
    60
    61 }
    62 else
    63 {
    64 $allFormValues['categoryValue']=productCategoryFactory::getInstance()->getValue($allFormValues['categoryValue'])->getName();
    65
    66 $youTube = new youTube();
    67 $videoLink=$youTube->embedVideo($allFormValues['videoValue'],'250','');
    68 $allFormValues['videoValue']=$videoLink;
    69
    70
    71 }
  • id NULL
  • object productCategory (13)
    • object (13)
    • Available methods (30)
    • protected data -> NULL
      protected dataCollection -> NULL
      protected DB -> object dbConnection (0)
      • Available methods (17)
      • Static class properties (87)
      • final public __sleep()
        Inherited from PDO
        
        final public __wakeup()
        Inherited from PDO
        
        public static getAvailableDrivers()
        Inherited from PDO
        
        public __construct()
        
        Defined in /home/capival/public_html/propello/classes/dbConnection.class.php line 11
        public beginTransaction()
        Inherited from PDO
        
        public commit()
        Inherited from PDO
        
        public errorCode()
        Inherited from PDO
        
        public errorInfo()
        Inherited from PDO
        
        public exec($query)
        Inherited from PDO
        
        public getAttribute($attribute)
        Inherited from PDO
        
        public inTransaction()
        Inherited from PDO
        
        public lastInsertId($seqname)
        Inherited from PDO
        
        public prepare($statement, $options)
        Inherited from PDO
        
        public query()
        Inherited from PDO
        
        public quote($string, $paramtype)
        Inherited from PDO
        
        public rollBack()
        Inherited from PDO
        
        public setAttribute($attribute, $value)
        Inherited from PDO
        
      • constant PARAM_BOOL :: integer 5
        constant PARAM_NULL :: integer 0
        constant PARAM_INT :: integer 1
        constant PARAM_STR :: integer 2
        constant PARAM_LOB :: integer 3
        constant PARAM_STMT :: integer 4
        constant PARAM_INPUT_OUTPUT :: integer 2147483648
        constant PARAM_EVT_ALLOC :: integer 0
        constant PARAM_EVT_FREE :: integer 1
        constant PARAM_EVT_EXEC_PRE :: integer 2
        constant PARAM_EVT_EXEC_POST :: integer 3
        constant PARAM_EVT_FETCH_PRE :: integer 4
        constant PARAM_EVT_FETCH_POST :: integer 5
        constant PARAM_EVT_NORMALIZE :: integer 6
        constant FETCH_LAZY :: integer 1
        constant FETCH_ASSOC :: integer 2
        constant FETCH_NUM :: integer 3
        constant FETCH_BOTH :: integer 4
        constant FETCH_OBJ :: integer 5
        constant FETCH_BOUND :: integer 6
        constant FETCH_COLUMN :: integer 7
        constant FETCH_CLASS :: integer 8
        constant FETCH_INTO :: integer 9
        constant FETCH_FUNC :: integer 10
        constant FETCH_GROUP :: integer 65536
        constant FETCH_UNIQUE :: integer 196608
        constant FETCH_KEY_PAIR :: integer 12
        constant FETCH_CLASSTYPE :: integer 262144
        constant FETCH_SERIALIZE :: integer 524288
        constant FETCH_PROPS_LATE :: integer 1048576
        constant FETCH_NAMED :: integer 11
        constant ATTR_AUTOCOMMIT :: integer 0
        constant ATTR_PREFETCH :: integer 1
        constant ATTR_TIMEOUT :: integer 2
        constant ATTR_ERRMODE :: integer 3
        constant ATTR_SERVER_VERSION :: integer 4
        constant ATTR_CLIENT_VERSION :: integer 5
        constant ATTR_SERVER_INFO :: integer 6
        constant ATTR_CONNECTION_STATUS :: integer 7
        constant ATTR_CASE :: integer 8
        constant ATTR_CURSOR_NAME :: integer 9
        constant ATTR_CURSOR :: integer 10
        constant ATTR_ORACLE_NULLS :: integer 11
        constant ATTR_PERSISTENT :: integer 12
        constant ATTR_STATEMENT_CLASS :: integer 13
        constant ATTR_FETCH_TABLE_NAMES :: integer 14
        constant ATTR_FETCH_CATALOG_NAMES :: integer 15
        constant ATTR_DRIVER_NAME :: integer 16
        constant ATTR_STRINGIFY_FETCHES :: integer 17
        constant ATTR_MAX_COLUMN_LEN :: integer 18
        constant ATTR_EMULATE_PREPARES :: integer 20
        constant ATTR_DEFAULT_FETCH_MODE :: integer 19
        constant ERRMODE_SILENT :: integer 0
        constant ERRMODE_WARNING :: integer 1
        constant ERRMODE_EXCEPTION :: integer 2
        constant CASE_NATURAL :: integer 0
        constant CASE_LOWER :: integer 2
        constant CASE_UPPER :: integer 1
        constant NULL_NATURAL :: integer 0
        constant NULL_EMPTY_STRING :: integer 1
        constant NULL_TO_STRING :: integer 2
        constant ERR_NONE :: string (5) "00000"
        constant FETCH_ORI_NEXT :: integer 0
        constant FETCH_ORI_PRIOR :: integer 1
        constant FETCH_ORI_FIRST :: integer 2
        constant FETCH_ORI_LAST :: integer 3
        constant FETCH_ORI_ABS :: integer 4
        constant FETCH_ORI_REL :: integer 5
        constant CURSOR_FWDONLY :: integer 0
        constant CURSOR_SCROLL :: integer 1
        constant MYSQL_ATTR_USE_BUFFERED_QUERY :: integer 1000
        constant MYSQL_ATTR_LOCAL_INFILE :: integer 1001
        constant MYSQL_ATTR_INIT_COMMAND :: integer 1002
        constant MYSQL_ATTR_MAX_BUFFER_SIZE :: integer 1005
        constant MYSQL_ATTR_READ_DEFAULT_FILE :: integer 1003
        constant MYSQL_ATTR_READ_DEFAULT_GROUP :: integer 1004
        constant MYSQL_ATTR_COMPRESS :: integer 1006
        constant MYSQL_ATTR_DIRECT_QUERY :: integer 1007
        constant MYSQL_ATTR_FOUND_ROWS :: integer 1008
        constant MYSQL_ATTR_IGNORE_SPACE :: integer 1009
        constant MYSQL_ATTR_SSL_KEY :: integer 1010
        constant MYSQL_ATTR_SSL_CERT :: integer 1011
        constant MYSQL_ATTR_SSL_CA :: integer 1012
        constant MYSQL_ATTR_SSL_CAPATH :: integer 1013
        constant MYSQL_ATTR_SSL_CIPHER :: integer 1014
        constant MYSQL_ATTR_SERVER_PUBLIC_KEY :: integer 1015
        constant MYSQL_ATTR_MULTI_STATEMENTS :: integer 1016
      private queryString -> NULL
      private innerQueryString -> NULL
      private numArray -> NULL
      private gridData -> NULL
      private totalRows -> NULL
      private dataArray -> array (0)
      private queryValues -> array (0)
      private dbColumns -> array (0)
      private tableName -> string (15) "productCategory"
      protected dataModel -> string (20) "productCategoryModel"
    • public __construct(productCategoryModel $productCategory = NULL)
      This is the default constructor for productCategory class. You can either initialize it values by passing a model
      object as its parameters, otherwise you can create a blank class object by initializing it without a parameter.
      
      It is essential to set here which model will be governing
      this class. This is taken care of by the statement <code>parent::setModel("productCategoryModel");</code>
      
      It is also essential to set which table is governing this class, that is, when you do not specify which fields
      to fetch, which fields will be fetched by default, from which table. This is taken care of by the statement
      <code>parent::__construct("productCategory");</code>
      
      <p>Examples:
      <code>$productCategory=new productCategory($productCategoryModel);</code>
      </p>
      
      @param productCategoryModel $productCategory
      
      Defined in /home/capival/public_html/propello/application/classes/productCategory.class.php line 37
      public createCheckbox($id, $key, $value, $selected = "", $queryParam = "", $query = "", $validationXML = "", $validationPrefix = "", $flag = 0) -> string
      @param        $id
      @param        $key
      @param        $value
      @param        $selected
      @param string $queryParam
      @param int    $flag
      
      @return string
      
      Inherited from framework
      Defined in /home/capival/public_html/propello/classes/framework.class.php line 889
      public createDropdown($key, $value, $selected = "", $queryParam = "", $query = "", $sortColumns = "", $validationXML = "", $validationPrefix = "", $flag = 0) -> string
      @param        $key
      @param        $value
      @param        $selected
      @param string $queryParam
      @param int    $flag
      
      @return string
      
      Inherited from framework
      Defined in /home/capival/public_html/propello/classes/framework.class.php line 766
      public createRadio($id, $key, $value, $selected = "", $queryParam = "", $query = "", $validationXML = "", $validationPrefix = "", $flag = 0) -> string
      @param        $id
      @param        $key
      @param        $value
      @param        $selected
      @param string $queryParam
      @param int    $flag
      
      @return string
      
      Inherited from framework
      Defined in /home/capival/public_html/propello/classes/framework.class.php line 834
      public createStaticCheckbox($id, $options, $selected = "") -> string
      @param        $id
      @param        $options
      @param        $selected
      
      @return string
      
      Inherited from framework
      Defined in /home/capival/public_html/propello/classes/framework.class.php line 1093
      public createStaticDropdown($options, $selected = "") -> string
      @param        $options
      @param        $selected
      
      @return string
      
      Inherited from framework
      Defined in /home/capival/public_html/propello/classes/framework.class.php line 1008
      public createStaticRadio($id, $options, $selected = "") -> string
      @param        $id
      @param        $options
      @param        $selected
      
      @return string
      
      Inherited from framework
      Defined in /home/capival/public_html/propello/classes/framework.class.php line 1052
      public delete($id)
      TODO: Add a one line description of function delete. What does it do?
      
      <p>Examples:
      <code>TODO: Add example code here or remove this block </code>
      </p>
      
      @param $id
      
      Inherited from framework
      Defined in /home/capival/public_html/propello/classes/framework.class.php line 97
      public edit($id) -> int
      This function handles editing a Product Category record given a Product Category id as an input
      returns the id of the record if editing is successful, false on failure.
      <p>Examples:
      <code>$productCategory=new productCategory($productCategoryModel); $productCategory->edit($id);</code>
      </p>
      
      @param        $id
      
      @return int
      
      Defined in /home/capival/public_html/propello/application/classes/productCategory.class.php line 169
      public getAll($fields = "", $validationXML = "", $validationPrefix = "", $flag = 0, $sortColumns = "", $displayStart = -1, $displayLength = 0) -> array
      @param string $fields
      @param int    $flag
      @param string $sortColumns
      @param string $displayStart
      @param string $displayLength
      
      @return array
      
      Inherited from framework
      Defined in /home/capival/public_html/propello/classes/framework.class.php line 434
      public getDeletedValue($id, $fields = "", $query = "", $validationXML = "", $validationPrefix = "") -> null
      @param        $id
      @param string $fields
      
      @return null
      
      Inherited from framework
      Defined in /home/capival/public_html/propello/classes/framework.class.php line 417
      public getMaxId() -> int
      @return int
      
      Inherited from framework
      Defined in /home/capival/public_html/propello/classes/framework.class.php line 610
      public getModel()
      Inherited from framework
      Defined in /home/capival/public_html/propello/classes/framework.class.php line 142
      public getModelCollection()
      Inherited from framework
      Defined in /home/capival/public_html/propello/classes/framework.class.php line 147
      public getRandomAdvantage($limit = 1) -> array
      TODO: Add a one line description of function getRandomAdvantage. What does it do?
      
      <p>Examples:
      <code>TODO: Add example code here or remove this block </code>
      </p>
      
      @param int $limit
      
      @return array
      
      Defined in /home/capival/public_html/propello/application/classes/productCategory.class.php line 252
      public getTotalRows()
      Inherited from framework
      Defined in /home/capival/public_html/propello/classes/framework.class.php line 152
      public getValue($id, $fields = "", $query = "", $validationXML = "", $validationPrefix = "", $flag = 0) -> null
      @param        $id
      @param string $fields
      @param int    $flag
      
      @return null
      
      Inherited from framework
      Defined in /home/capival/public_html/propello/classes/framework.class.php line 339
      public getValueBy($queryParam, $fields = "", $flag = 0, $sortColumns = "", $query = "", $displayStart = -1, $displayLength = 0, $format = 1) -> array
      @param        $queryParam
      @param string $fields
      @param int    $flag
      @param string $sortColumns
      @param string $query
      @param string $displayStart
      @param string $displayLength
      
      @return array
      
      Inherited from framework
      Defined in /home/capival/public_html/propello/classes/framework.class.php line 451
      public gridDisplay($sEcho, $aColumns, $query = "", $iDisplayStart = -1, $iDisplayLength = 0, $iSortingCols = "", $queryParam = "", $validationXML = "", $flag = 0) -> string
      TODO: Add a one line description of function gridDisplay. What does it do?
      
      <p>Examples:
      <code>TODO: Add example code here or remove this block </code>
      </p>
      
      @param        $sEcho
      @param        $aColumns
      @param string $query
      @param string $iDisplayStart
      @param string $iDisplayLength
      @param string $iSortingCols
      @param string $queryParam
      @param int    $flag
      
      @return string
      
      Inherited from framework
      Defined in /home/capival/public_html/propello/classes/framework.class.php line 1147
      public insert() -> int
      This function handles creating a new Product Category
      returns the newly created records id on success, false on failure.
      <p>Examples:
      <code>$productCategory=new productCategory($productCategoryModel); $productCategory->insert();</code>
      </p>
      
      @return int
      
      Defined in /home/capival/public_html/propello/application/classes/productCategory.class.php line 56
      public isOwner($id, $owner, $fieldName) -> mixed
      @param $id
      @param $owner
      @param $fieldName
      
      @return mixed
      
      Inherited from framework
      Defined in /home/capival/public_html/propello/classes/framework.class.php line 627
      public isUnique($fieldName, $value, $ignore = "", $ignoreId = 0)
      Inherited from framework
      Defined in /home/capival/public_html/propello/classes/framework.class.php line 641
      public prepareStaticOptions($string, $lineSeperator = ;, $optionSeperator = :)
      Inherited from framework
      Defined in /home/capival/public_html/propello/classes/framework.class.php line 938
      public queryLogic($queryParam, $recurse = false) -> string
      @param      $queryParam
      @param bool $recurse
      
      @return string
      
      Inherited from framework
      Defined in /home/capival/public_html/propello/classes/framework.class.php line 183
      public unDelete($id) -> mixed|void
      @param $id
      
      @return mixed|void
      
      Inherited from framework
      Defined in /home/capival/public_html/propello/classes/framework.class.php line 117
      public uploadFile($fileFieldName, $fileType = 0) -> string
      @param     $fileName
      @param int $fileType
      
      @return string
      
      Inherited from framework
      Defined in /home/capival/public_html/propello/classes/framework.class.php line 701
      public viewStaticOption($options, $selected = "") -> string
      @param        $options
      @param        $selected
      
      @return string
      
      Inherited from framework
      Defined in /home/capival/public_html/propello/classes/framework.class.php line 968
      final protected setModel($modelName)
      @param $modelName
      
      Inherited from framework
      Defined in /home/capival/public_html/propello/classes/framework.class.php line 136
      protected getColumns() -> string
      @return string
      
      Inherited from framework
      Defined in /home/capival/public_html/propello/classes/framework.class.php line 160
      protected prepareOptions($key, $value, $queryParam = "", $query = "", $flag = 0, $sortColumns = "") -> array
      @param        $key
      @param        $value
      @param string $queryParam
      @param int    $flag
      
      @internal param $selected
      @return array
      
      Inherited from framework
      Defined in /home/capival/public_html/propello/classes/framework.class.php line 740
5 /home/capival/public_html/propello/application/classes/productController.class.php line 180productController->initView(id, mode)
  • Source
  • Arguments
  • Callee object [productController]
  • 173 * @param $id
    174 *
    175 * @return array
    176 */
    177 public function onGetProductDetails($id)
    178 {
    179 $allFormValues=array();
    180 $allFormValues = array_merge($allFormValues,$this->initView($id,1));
    181
    182 $productModel = productFactory::getInstance()->getValue($id);
    183
    184 //print_r($productModel); die();
    185
    186 $allFormValues['categoryName'] = $allFormValues['categoryValue'];
    187 $allFormValues['productName'] = $allFormValues['nameValue'];
  • id string (2) "11"
    mode integer 1
  • object productController (1)
    • object (1)
    • Available methods (9)
    • private product -> object product (13)
      • object (13)
      • Available methods (30)
      • protected data -> NULL
        protected dataCollection -> NULL
        protected DB -> object dbConnection (0)
        • Available methods (17)
        • Static class properties (87)
        • final public __sleep()
          Inherited from PDO
          
          final public __wakeup()
          Inherited from PDO
          
          public static getAvailableDrivers()
          Inherited from PDO
          
          public __construct()
          
          Defined in /home/capival/public_html/propello/classes/dbConnection.class.php line 11
          public beginTransaction()
          Inherited from PDO
          
          public commit()
          Inherited from PDO
          
          public errorCode()
          Inherited from PDO
          
          public errorInfo()
          Inherited from PDO
          
          public exec($query)
          Inherited from PDO
          
          public getAttribute($attribute)
          Inherited from PDO
          
          public inTransaction()
          Inherited from PDO
          
          public lastInsertId($seqname)
          Inherited from PDO
          
          public prepare($statement, $options)
          Inherited from PDO
          
          public query()
          Inherited from PDO
          
          public quote($string, $paramtype)
          Inherited from PDO
          
          public rollBack()
          Inherited from PDO
          
          public setAttribute($attribute, $value)
          Inherited from PDO
          
        • constant PARAM_BOOL :: integer 5
          constant PARAM_NULL :: integer 0
          constant PARAM_INT :: integer 1
          constant PARAM_STR :: integer 2
          constant PARAM_LOB :: integer 3
          constant PARAM_STMT :: integer 4
          constant PARAM_INPUT_OUTPUT :: integer 2147483648
          constant PARAM_EVT_ALLOC :: integer 0
          constant PARAM_EVT_FREE :: integer 1
          constant PARAM_EVT_EXEC_PRE :: integer 2
          constant PARAM_EVT_EXEC_POST :: integer 3
          constant PARAM_EVT_FETCH_PRE :: integer 4
          constant PARAM_EVT_FETCH_POST :: integer 5
          constant PARAM_EVT_NORMALIZE :: integer 6
          constant FETCH_LAZY :: integer 1
          constant FETCH_ASSOC :: integer 2
          constant FETCH_NUM :: integer 3
          constant FETCH_BOTH :: integer 4
          constant FETCH_OBJ :: integer 5
          constant FETCH_BOUND :: integer 6
          constant FETCH_COLUMN :: integer 7
          constant FETCH_CLASS :: integer 8
          constant FETCH_INTO :: integer 9
          constant FETCH_FUNC :: integer 10
          constant FETCH_GROUP :: integer 65536
          constant FETCH_UNIQUE :: integer 196608
          constant FETCH_KEY_PAIR :: integer 12
          constant FETCH_CLASSTYPE :: integer 262144
          constant FETCH_SERIALIZE :: integer 524288
          constant FETCH_PROPS_LATE :: integer 1048576
          constant FETCH_NAMED :: integer 11
          constant ATTR_AUTOCOMMIT :: integer 0
          constant ATTR_PREFETCH :: integer 1
          constant ATTR_TIMEOUT :: integer 2
          constant ATTR_ERRMODE :: integer 3
          constant ATTR_SERVER_VERSION :: integer 4
          constant ATTR_CLIENT_VERSION :: integer 5
          constant ATTR_SERVER_INFO :: integer 6
          constant ATTR_CONNECTION_STATUS :: integer 7
          constant ATTR_CASE :: integer 8
          constant ATTR_CURSOR_NAME :: integer 9
          constant ATTR_CURSOR :: integer 10
          constant ATTR_ORACLE_NULLS :: integer 11
          constant ATTR_PERSISTENT :: integer 12
          constant ATTR_STATEMENT_CLASS :: integer 13
          constant ATTR_FETCH_TABLE_NAMES :: integer 14
          constant ATTR_FETCH_CATALOG_NAMES :: integer 15
          constant ATTR_DRIVER_NAME :: integer 16
          constant ATTR_STRINGIFY_FETCHES :: integer 17
          constant ATTR_MAX_COLUMN_LEN :: integer 18
          constant ATTR_EMULATE_PREPARES :: integer 20
          constant ATTR_DEFAULT_FETCH_MODE :: integer 19
          constant ERRMODE_SILENT :: integer 0
          constant ERRMODE_WARNING :: integer 1
          constant ERRMODE_EXCEPTION :: integer 2
          constant CASE_NATURAL :: integer 0
          constant CASE_LOWER :: integer 2
          constant CASE_UPPER :: integer 1
          constant NULL_NATURAL :: integer 0
          constant NULL_EMPTY_STRING :: integer 1
          constant NULL_TO_STRING :: integer 2
          constant ERR_NONE :: string (5) "00000"
          constant FETCH_ORI_NEXT :: integer 0
          constant FETCH_ORI_PRIOR :: integer 1
          constant FETCH_ORI_FIRST :: integer 2
          constant FETCH_ORI_LAST :: integer 3
          constant FETCH_ORI_ABS :: integer 4
          constant FETCH_ORI_REL :: integer 5
          constant CURSOR_FWDONLY :: integer 0
          constant CURSOR_SCROLL :: integer 1
          constant MYSQL_ATTR_USE_BUFFERED_QUERY :: integer 1000
          constant MYSQL_ATTR_LOCAL_INFILE :: integer 1001
          constant MYSQL_ATTR_INIT_COMMAND :: integer 1002
          constant MYSQL_ATTR_MAX_BUFFER_SIZE :: integer 1005
          constant MYSQL_ATTR_READ_DEFAULT_FILE :: integer 1003
          constant MYSQL_ATTR_READ_DEFAULT_GROUP :: integer 1004
          constant MYSQL_ATTR_COMPRESS :: integer 1006
          constant MYSQL_ATTR_DIRECT_QUERY :: integer 1007
          constant MYSQL_ATTR_FOUND_ROWS :: integer 1008
          constant MYSQL_ATTR_IGNORE_SPACE :: integer 1009
          constant MYSQL_ATTR_SSL_KEY :: integer 1010
          constant MYSQL_ATTR_SSL_CERT :: integer 1011
          constant MYSQL_ATTR_SSL_CA :: integer 1012
          constant MYSQL_ATTR_SSL_CAPATH :: integer 1013
          constant MYSQL_ATTR_SSL_CIPHER :: integer 1014
          constant MYSQL_ATTR_SERVER_PUBLIC_KEY :: integer 1015
          constant MYSQL_ATTR_MULTI_STATEMENTS :: integer 1016
        private queryString -> NULL
        private innerQueryString -> NULL
        private numArray -> NULL
        private gridData -> NULL
        private totalRows -> NULL
        private dataArray -> array (0)
        private queryValues -> array (0)
        private dbColumns -> array (0)
        private tableName -> string (7) "product"
        protected dataModel -> string (12) "productModel"
      • public __construct(productModel $product = NULL)
        This is the default constructor for product class. You can either initialize it values by passing a model
        object as its parameters, otherwise you can create a blank class object by initializing it without a parameter.
        
        It is essential to set here which model will be governing
        this class. This is taken care of by the statement <code>parent::setModel("productModel");</code>
        
        It is also essential to set which table is governing this class, that is, when you do not specify which fields
        to fetch, which fields will be fetched by default, from which table. This is taken care of by the statement
        <code>parent::__construct("product");</code>
        
        <p>Examples:
        <code>$product=new product($productModel);</code>
        </p>
        
        @param productModel $product
        
        Defined in /home/capival/public_html/propello/application/classes/product.class.php line 37
        public createCheckbox($id, $key, $value, $selected = "", $queryParam = "", $query = "", $validationXML = "", $validationPrefix = "", $flag = 0) -> string
        @param        $id
        @param        $key
        @param        $value
        @param        $selected
        @param string $queryParam
        @param int    $flag
        
        @return string
        
        Inherited from framework
        Defined in /home/capival/public_html/propello/classes/framework.class.php line 889
        public createDropdown($key, $value, $selected = "", $queryParam = "", $query = "", $sortColumns = "", $validationXML = "", $validationPrefix = "", $flag = 0) -> string
        @param        $key
        @param        $value
        @param        $selected
        @param string $queryParam
        @param int    $flag
        
        @return string
        
        Inherited from framework
        Defined in /home/capival/public_html/propello/classes/framework.class.php line 766
        public createRadio($id, $key, $value, $selected = "", $queryParam = "", $query = "", $validationXML = "", $validationPrefix = "", $flag = 0) -> string
        @param        $id
        @param        $key
        @param        $value
        @param        $selected
        @param string $queryParam
        @param int    $flag
        
        @return string
        
        Inherited from framework
        Defined in /home/capival/public_html/propello/classes/framework.class.php line 834
        public createStaticCheckbox($id, $options, $selected = "") -> string
        @param        $id
        @param        $options
        @param        $selected
        
        @return string
        
        Inherited from framework
        Defined in /home/capival/public_html/propello/classes/framework.class.php line 1093
        public createStaticDropdown($options, $selected = "") -> string
        @param        $options
        @param        $selected
        
        @return string
        
        Inherited from framework
        Defined in /home/capival/public_html/propello/classes/framework.class.php line 1008
        public createStaticRadio($id, $options, $selected = "") -> string
        @param        $id
        @param        $options
        @param        $selected
        
        @return string
        
        Inherited from framework
        Defined in /home/capival/public_html/propello/classes/framework.class.php line 1052
        public delete($id)
        TODO: Add a one line description of function delete. What does it do?
        
        <p>Examples:
        <code>TODO: Add example code here or remove this block </code>
        </p>
        
        @param $id
        
        Inherited from framework
        Defined in /home/capival/public_html/propello/classes/framework.class.php line 97
        public deleteField($id, $fld, $val) -> mixed
        TODO: Add a one line description of function deleteField. What does it do?
        
        <p>Examples:
        <code>TODO: Add example code here or remove this block </code>
        </p>
        
        @param $id
        @param $fld
        @param $val
        
        @return mixed
        
        Defined in /home/capival/public_html/propello/application/classes/product.class.php line 351
        public edit($id) -> int
        This function handles editing a Product record given a Product id as an input
        returns the id of the record if editing is successful, false on failure.
        <p>Examples:
        <code>$product=new product($productModel); $product->edit($id);</code>
        </p>
        
        @param        $id
        
        @return int
        
        Defined in /home/capival/public_html/propello/application/classes/product.class.php line 157
        public getAll($fields = "", $validationXML = "", $validationPrefix = "", $flag = 0, $sortColumns = "", $displayStart = -1, $displayLength = 0) -> array
        @param string $fields
        @param int    $flag
        @param string $sortColumns
        @param string $displayStart
        @param string $displayLength
        
        @return array
        
        Inherited from framework
        Defined in /home/capival/public_html/propello/classes/framework.class.php line 434
        public getDeletedValue($id, $fields = "", $query = "", $validationXML = "", $validationPrefix = "") -> null
        @param        $id
        @param string $fields
        
        @return null
        
        Inherited from framework
        Defined in /home/capival/public_html/propello/classes/framework.class.php line 417
        public getMaxId() -> int
        @return int
        
        Inherited from framework
        Defined in /home/capival/public_html/propello/classes/framework.class.php line 610
        public getModel()
        Inherited from framework
        Defined in /home/capival/public_html/propello/classes/framework.class.php line 142
        public getModelCollection()
        Inherited from framework
        Defined in /home/capival/public_html/propello/classes/framework.class.php line 147
        public getTotalRows()
        Inherited from framework
        Defined in /home/capival/public_html/propello/classes/framework.class.php line 152
        public getValue($id, $fields = "", $query = "", $validationXML = "", $basePath = "", $flag = 0) -> mixed
        This function handles fetching a single Product record given its ID (mandatory) and other parameters(optional)
        Unless you want some special functionality, that is override the query to use manual joins etc, for a self containing table
        which does not have a foreign key, its not necessary to define this function, since the framework class has the functionality built in.
        
        <code>$fields</code> parameter is comma separated list of fields to fetch for the record, optional, if not specified
        all fields are fetched.
        
        <code>$query</code> parameter is a custom query which is to be used to fetch the record instead of the one generated by the system
        It is not recommended to set this parameter from the controller unless under exceptional cases.
        
        <code>$validationXML</code> is a custom data validator to use to validate the fetched record. Optional, if nothing is specified, the default
        validator is used.
        
        <code>$basePath</code> is an optional parameter to specify a custom path to locate the validation XML.
        
        <code>$flag</code> is an optional parameter, if nothing is specified, flag=0, that is active records are fetched.
        
        <p>Examples:
        <code>$product=new product(); $productModel=$product->getValue($id);</code>
        </p>
        
        @param        $id
        @param string $fields
        @param string $query
        @param string $validationXML
        @param string $basePath
        @param int    $flag
        
        @return mixed
        
        Defined in /home/capival/public_html/propello/application/classes/product.class.php line 251
        public getValueBy($queryParam, $fields = "", $flag = 0, $sortColumns = "", $query = "", $displayStart = -1, $displayLength = 0, $format = 1) -> array
        @param        $queryParam
        @param string $fields
        @param int    $flag
        @param string $sortColumns
        @param string $query
        @param string $displayStart
        @param string $displayLength
        
        @return array
        
        Inherited from framework
        Defined in /home/capival/public_html/propello/classes/framework.class.php line 451
        public gridDisplay($sEcho, $aColumns, $query = "", $iDisplayStart = -1, $iDisplayLength = 0, $iSortingCols = "", $queryParam = "", $validationXML = "", $basePath = "", $flag = 0) -> mixed
        This function helps build json data feed which is used to display data grid for the manage Product page.
        Unless you want some special functionality, that is override the query to use manual joins etc, for a self containing table
        which does not have a foreign key, its not necessary to define this function, since the framework class has the functionality built in.
        
        <p>Examples:
        <code>$product=new product(); echo $product->gridDisplay($sEcho, $gridColumns, "", $iDisplayStart, $iDisplayLength, $sOrder, $queryParam); </code>
        </p>
        
        @param        $sEcho
        @param        $aColumns
        @param string $query
        @param string $iDisplayStart
        @param string $iDisplayLength
        @param string $iSortingCols
        @param string $queryParam
        @param string $validationXML
        @param string $basePath
        @param int    $flag
        
        @return mixed
        
        Defined in /home/capival/public_html/propello/application/classes/product.class.php line 302
        public insert() -> int
        This function handles creating a new Product
        returns the newly created records id on success, false on failure.
        <p>Examples:
        <code>$product=new product($productModel); $product->insert();</code>
        </p>
        
        @return int
        
        Defined in /home/capival/public_html/propello/application/classes/product.class.php line 56
        public isOwner($id, $owner, $fieldName) -> mixed
        @param $id
        @param $owner
        @param $fieldName
        
        @return mixed
        
        Inherited from framework
        Defined in /home/capival/public_html/propello/classes/framework.class.php line 627
        public isUnique($fieldName, $value, $ignore = "", $ignoreId = 0)
        Inherited from framework
        Defined in /home/capival/public_html/propello/classes/framework.class.php line 641
        public prepareStaticOptions($string, $lineSeperator = ;, $optionSeperator = :)
        Inherited from framework
        Defined in /home/capival/public_html/propello/classes/framework.class.php line 938
        public queryLogic($queryParam, $recurse = false) -> string
        @param      $queryParam
        @param bool $recurse
        
        @return string
        
        Inherited from framework
        Defined in /home/capival/public_html/propello/classes/framework.class.php line 183
        public unDelete($id) -> mixed|void
        @param $id
        
        @return mixed|void
        
        Inherited from framework
        Defined in /home/capival/public_html/propello/classes/framework.class.php line 117
        public uploadFile($fileFieldName, $fileType = 0) -> string
        @param     $fileName
        @param int $fileType
        
        @return string
        
        Inherited from framework
        Defined in /home/capival/public_html/propello/classes/framework.class.php line 701
        public viewStaticOption($options, $selected = "") -> string
        @param        $options
        @param        $selected
        
        @return string
        
        Inherited from framework
        Defined in /home/capival/public_html/propello/classes/framework.class.php line 968
        final protected setModel($modelName)
        @param $modelName
        
        Inherited from framework
        Defined in /home/capival/public_html/propello/classes/framework.class.php line 136
        protected getColumns() -> string
        @return string
        
        Inherited from framework
        Defined in /home/capival/public_html/propello/classes/framework.class.php line 160
        protected prepareOptions($key, $value, $queryParam = "", $query = "", $flag = 0, $sortColumns = "") -> array
        @param        $key
        @param        $value
        @param string $queryParam
        @param int    $flag
        
        @internal param $selected
        @return array
        
        Inherited from framework
        Defined in /home/capival/public_html/propello/classes/framework.class.php line 740
    • public __construct()
      Defined in /home/capival/public_html/propello/application/classes/productController.class.php line 22
      public initView($id = "", $mode = 0) -> array
      initView event handler is the view initializer and initiates form variables when the user opens the page for
      the first time without triggering any events. The mode defines whether the view is in edit mode or view mode,
      this is relevant only when id is passed. 0 means edit mode, non 0 means view mode.
      
      @param $id int
      @param $mode int
      
      @return array
      
      Defined in /home/capival/public_html/propello/application/classes/productController.class.php line 36
      public onAdd($formValues) -> array
      onAdd event handler gets triggered when user submits a form to insert a new Product record. It takes as an input
      an array of variables, usually a POST array which is generated when user submits a form. The array data, called formValues
      is then validated against the related model(s) and inserted to the database.
      
      If insertion is successful, the user is redirected to the manage page.
      
      The <code>$formAction</code> variable helps to construct
      the success message on the manage page. Note the three variables separated by | sign. The first variable, 1 denotes
      the verb, that is "Add", the second denotes which model is going to fetch the data for the success message, the third
      denotes the variable which is going to fetch the data. Therefore, 1|product|name will show "Product xyz added successfully"
      as the success message on insertion.
      
      If insertion is a failure, then an array with error messages and formValues is returned which can be directly used to display
      the form again with errors marked.
      
      <p>Examples:
      <code>$productController=new productController(); $productController->onAdd($_POST);</code>
      </p>
      
      @param $formValues
      
      @return array
      
      Defined in /home/capival/public_html/propello/application/classes/productController.class.php line 500
      public onDelete($id) -> array
      onGet event handler is fired when a user wants to view a Product record. It takes as input the id of the
      Product record which is to be viewed. It returns an array of the record data if successful, otherwise false;
      
      The <code>$formAction</code> variable helps to construct the success message on the manage page. Note the three
      variables separated by | sign. The first variable, 3 denotes the verb, that is "Delete", the second denotes which
      model is going to fetch the data for the success message, the third denotes the variable which is going to fetch the data.
      Therefore, 3|product|name will show "Product xyz deleted successfully" as the success message on deletion.
      
      <p>Examples:
      <code>$productController=new productController(); $productController->onDelete($id);</code>
      </p>
      
      @param $id
      
      @return array
      
      Defined in /home/capival/public_html/propello/application/classes/productController.class.php line 789
      public onEdit($id, $formValues) -> array
      onEdit event handler gets triggered when user submits a form to edit a Product record. It takes as input the
      id of the Product record which is to be edited, and an array of variables, usually a POST array which is generated
      when user submits a form. The array data, called formValues is then validated against the related model(s) and edited.
      
      If edition is successful, the user is redirected to the manage page.
      
      The <code>$formAction</code> variable helps to construct
      the success message on the manage page. Note the three variables separated by | sign. The first variable, 2 denotes
      the verb, that is "Edit", the second denotes which model is going to fetch the data for the success message, the third
      denotes the variable which is going to fetch the data. Therefore, 2|product|name will show "Product xyz edited successfully"
      as the success message on edition.
      
      If edition is a failure, else an array with error messages and formValues is returned which can be directly used to display
      the form again with errors marked.
      
      <p>Examples:
      <code>$productController=new productController(); $productController->onEdit($id,$_POST);</code>
      </p>
      
      @param $id
      @param $formValues
      
      @return array
      
      Defined in /home/capival/public_html/propello/application/classes/productController.class.php line 602
      public onGet($id) -> array
      onGet event handler is fired when a user wants to view a Product record. It takes as input the id of the
      Product record which is to be viewed. It returns an array of the record data if successful, otherwise false;
      
      
      <p>Examples:
      <code>$productController=new productController(); $productController->onGet($id);</code>
      </p>
      
      @param $id
      
      @return array
      
      Defined in /home/capival/public_html/propello/application/classes/productController.class.php line 756
      public onGetProductDetails($id) -> array
      TODO: Add a one line description of function onGetProductDetails. What does it do?
      
      <p>Examples:
      <code>TODO: Add example code here or remove this block </code>
      </p>
      
      @param $id
      
      @return array
      
      Defined in /home/capival/public_html/propello/application/classes/productController.class.php line 177
      public onGetProducts($categoryId, $priceRange = "") -> array
      TODO: Add a one line description of function onGetProducts. What does it do?
      
      <p>Examples:
      <code>TODO: Add example code here or remove this block </code>
      </p>
      
      @param $categoryId
      
      @return array
      
      Defined in /home/capival/public_html/propello/application/classes/productController.class.php line 333
      public onUpdateField($id, $fld)
      TODO: Add a one line description of function onUpdateField. What does it do?
      
      <p>Examples:
      <code>TODO: Add example code here or remove this block </code>
      </p>
      
      @param $id
      @param $fld
      
      Defined in /home/capival/public_html/propello/application/classes/productController.class.php line 810
6 /home/capival/public_html/propello/application/productDetails.php line 28productController->onGetProductDetails(id)
  • Source
  • Arguments
  • Callee object [productController]
  • 21 exit();
    22
    23 }
    24
    25 $id = $_GET['id'];
    26
    27 $controller=new productController();
    28 $allFormValues = array_merge($allFormValues, $controller->onGetProductDetails($id));
    29 //print_r($allFormValues); die();
    30 $frameworkVars['productsActive'] = 'active';
    31 $allFormValues['productId']=$id;
    32
    33 $frameworkVars['bannerInnerPanel'] = 'templates/pdBannerInnerPanel.template.html';
    34 $frameworkVars['advantageContent'] = '';
    35
  • id string (2) "11"
  • object productController (1)
    • object (1)
    • Available methods (9)
    • private product -> object product (13)
      • object (13)
      • Available methods (30)
      • protected data -> NULL
        protected dataCollection -> NULL
        protected DB -> object dbConnection (0)
        • Available methods (17)
        • Static class properties (87)
        • final public __sleep()
          Inherited from PDO
          
          final public __wakeup()
          Inherited from PDO
          
          public static getAvailableDrivers()
          Inherited from PDO
          
          public __construct()
          
          Defined in /home/capival/public_html/propello/classes/dbConnection.class.php line 11
          public beginTransaction()
          Inherited from PDO
          
          public commit()
          Inherited from PDO
          
          public errorCode()
          Inherited from PDO
          
          public errorInfo()
          Inherited from PDO
          
          public exec($query)
          Inherited from PDO
          
          public getAttribute($attribute)
          Inherited from PDO
          
          public inTransaction()
          Inherited from PDO
          
          public lastInsertId($seqname)
          Inherited from PDO
          
          public prepare($statement, $options)
          Inherited from PDO
          
          public query()
          Inherited from PDO
          
          public quote($string, $paramtype)
          Inherited from PDO
          
          public rollBack()
          Inherited from PDO
          
          public setAttribute($attribute, $value)
          Inherited from PDO
          
        • constant PARAM_BOOL :: integer 5
          constant PARAM_NULL :: integer 0
          constant PARAM_INT :: integer 1
          constant PARAM_STR :: integer 2
          constant PARAM_LOB :: integer 3
          constant PARAM_STMT :: integer 4
          constant PARAM_INPUT_OUTPUT :: integer 2147483648
          constant PARAM_EVT_ALLOC :: integer 0
          constant PARAM_EVT_FREE :: integer 1
          constant PARAM_EVT_EXEC_PRE :: integer 2
          constant PARAM_EVT_EXEC_POST :: integer 3
          constant PARAM_EVT_FETCH_PRE :: integer 4
          constant PARAM_EVT_FETCH_POST :: integer 5
          constant PARAM_EVT_NORMALIZE :: integer 6
          constant FETCH_LAZY :: integer 1
          constant FETCH_ASSOC :: integer 2
          constant FETCH_NUM :: integer 3
          constant FETCH_BOTH :: integer 4
          constant FETCH_OBJ :: integer 5
          constant FETCH_BOUND :: integer 6
          constant FETCH_COLUMN :: integer 7
          constant FETCH_CLASS :: integer 8
          constant FETCH_INTO :: integer 9
          constant FETCH_FUNC :: integer 10
          constant FETCH_GROUP :: integer 65536
          constant FETCH_UNIQUE :: integer 196608
          constant FETCH_KEY_PAIR :: integer 12
          constant FETCH_CLASSTYPE :: integer 262144
          constant FETCH_SERIALIZE :: integer 524288
          constant FETCH_PROPS_LATE :: integer 1048576
          constant FETCH_NAMED :: integer 11
          constant ATTR_AUTOCOMMIT :: integer 0
          constant ATTR_PREFETCH :: integer 1
          constant ATTR_TIMEOUT :: integer 2
          constant ATTR_ERRMODE :: integer 3
          constant ATTR_SERVER_VERSION :: integer 4
          constant ATTR_CLIENT_VERSION :: integer 5
          constant ATTR_SERVER_INFO :: integer 6
          constant ATTR_CONNECTION_STATUS :: integer 7
          constant ATTR_CASE :: integer 8
          constant ATTR_CURSOR_NAME :: integer 9
          constant ATTR_CURSOR :: integer 10
          constant ATTR_ORACLE_NULLS :: integer 11
          constant ATTR_PERSISTENT :: integer 12
          constant ATTR_STATEMENT_CLASS :: integer 13
          constant ATTR_FETCH_TABLE_NAMES :: integer 14
          constant ATTR_FETCH_CATALOG_NAMES :: integer 15
          constant ATTR_DRIVER_NAME :: integer 16
          constant ATTR_STRINGIFY_FETCHES :: integer 17
          constant ATTR_MAX_COLUMN_LEN :: integer 18
          constant ATTR_EMULATE_PREPARES :: integer 20
          constant ATTR_DEFAULT_FETCH_MODE :: integer 19
          constant ERRMODE_SILENT :: integer 0
          constant ERRMODE_WARNING :: integer 1
          constant ERRMODE_EXCEPTION :: integer 2
          constant CASE_NATURAL :: integer 0
          constant CASE_LOWER :: integer 2
          constant CASE_UPPER :: integer 1
          constant NULL_NATURAL :: integer 0
          constant NULL_EMPTY_STRING :: integer 1
          constant NULL_TO_STRING :: integer 2
          constant ERR_NONE :: string (5) "00000"
          constant FETCH_ORI_NEXT :: integer 0
          constant FETCH_ORI_PRIOR :: integer 1
          constant FETCH_ORI_FIRST :: integer 2
          constant FETCH_ORI_LAST :: integer 3
          constant FETCH_ORI_ABS :: integer 4
          constant FETCH_ORI_REL :: integer 5
          constant CURSOR_FWDONLY :: integer 0
          constant CURSOR_SCROLL :: integer 1
          constant MYSQL_ATTR_USE_BUFFERED_QUERY :: integer 1000
          constant MYSQL_ATTR_LOCAL_INFILE :: integer 1001
          constant MYSQL_ATTR_INIT_COMMAND :: integer 1002
          constant MYSQL_ATTR_MAX_BUFFER_SIZE :: integer 1005
          constant MYSQL_ATTR_READ_DEFAULT_FILE :: integer 1003
          constant MYSQL_ATTR_READ_DEFAULT_GROUP :: integer 1004
          constant MYSQL_ATTR_COMPRESS :: integer 1006
          constant MYSQL_ATTR_DIRECT_QUERY :: integer 1007
          constant MYSQL_ATTR_FOUND_ROWS :: integer 1008
          constant MYSQL_ATTR_IGNORE_SPACE :: integer 1009
          constant MYSQL_ATTR_SSL_KEY :: integer 1010
          constant MYSQL_ATTR_SSL_CERT :: integer 1011
          constant MYSQL_ATTR_SSL_CA :: integer 1012
          constant MYSQL_ATTR_SSL_CAPATH :: integer 1013
          constant MYSQL_ATTR_SSL_CIPHER :: integer 1014
          constant MYSQL_ATTR_SERVER_PUBLIC_KEY :: integer 1015
          constant MYSQL_ATTR_MULTI_STATEMENTS :: integer 1016
        private queryString -> NULL
        private innerQueryString -> NULL
        private numArray -> NULL
        private gridData -> NULL
        private totalRows -> NULL
        private dataArray -> array (0)
        private queryValues -> array (0)
        private dbColumns -> array (0)
        private tableName -> string (7) "product"
        protected dataModel -> string (12) "productModel"
      • public __construct(productModel $product = NULL)
        This is the default constructor for product class. You can either initialize it values by passing a model
        object as its parameters, otherwise you can create a blank class object by initializing it without a parameter.
        
        It is essential to set here which model will be governing
        this class. This is taken care of by the statement <code>parent::setModel("productModel");</code>
        
        It is also essential to set which table is governing this class, that is, when you do not specify which fields
        to fetch, which fields will be fetched by default, from which table. This is taken care of by the statement
        <code>parent::__construct("product");</code>
        
        <p>Examples:
        <code>$product=new product($productModel);</code>
        </p>
        
        @param productModel $product
        
        Defined in /home/capival/public_html/propello/application/classes/product.class.php line 37
        public createCheckbox($id, $key, $value, $selected = "", $queryParam = "", $query = "", $validationXML = "", $validationPrefix = "", $flag = 0) -> string
        @param        $id
        @param        $key
        @param        $value
        @param        $selected
        @param string $queryParam
        @param int    $flag
        
        @return string
        
        Inherited from framework
        Defined in /home/capival/public_html/propello/classes/framework.class.php line 889
        public createDropdown($key, $value, $selected = "", $queryParam = "", $query = "", $sortColumns = "", $validationXML = "", $validationPrefix = "", $flag = 0) -> string
        @param        $key
        @param        $value
        @param        $selected
        @param string $queryParam
        @param int    $flag
        
        @return string
        
        Inherited from framework
        Defined in /home/capival/public_html/propello/classes/framework.class.php line 766
        public createRadio($id, $key, $value, $selected = "", $queryParam = "", $query = "", $validationXML = "", $validationPrefix = "", $flag = 0) -> string
        @param        $id
        @param        $key
        @param        $value
        @param        $selected
        @param string $queryParam
        @param int    $flag
        
        @return string
        
        Inherited from framework
        Defined in /home/capival/public_html/propello/classes/framework.class.php line 834
        public createStaticCheckbox($id, $options, $selected = "") -> string
        @param        $id
        @param        $options
        @param        $selected
        
        @return string
        
        Inherited from framework
        Defined in /home/capival/public_html/propello/classes/framework.class.php line 1093
        public createStaticDropdown($options, $selected = "") -> string
        @param        $options
        @param        $selected
        
        @return string
        
        Inherited from framework
        Defined in /home/capival/public_html/propello/classes/framework.class.php line 1008
        public createStaticRadio($id, $options, $selected = "") -> string
        @param        $id
        @param        $options
        @param        $selected
        
        @return string
        
        Inherited from framework
        Defined in /home/capival/public_html/propello/classes/framework.class.php line 1052
        public delete($id)
        TODO: Add a one line description of function delete. What does it do?
        
        <p>Examples:
        <code>TODO: Add example code here or remove this block </code>
        </p>
        
        @param $id
        
        Inherited from framework
        Defined in /home/capival/public_html/propello/classes/framework.class.php line 97
        public deleteField($id, $fld, $val) -> mixed
        TODO: Add a one line description of function deleteField. What does it do?
        
        <p>Examples:
        <code>TODO: Add example code here or remove this block </code>
        </p>
        
        @param $id
        @param $fld
        @param $val
        
        @return mixed
        
        Defined in /home/capival/public_html/propello/application/classes/product.class.php line 351
        public edit($id) -> int
        This function handles editing a Product record given a Product id as an input
        returns the id of the record if editing is successful, false on failure.
        <p>Examples:
        <code>$product=new product($productModel); $product->edit($id);</code>
        </p>
        
        @param        $id
        
        @return int
        
        Defined in /home/capival/public_html/propello/application/classes/product.class.php line 157
        public getAll($fields = "", $validationXML = "", $validationPrefix = "", $flag = 0, $sortColumns = "", $displayStart = -1, $displayLength = 0) -> array
        @param string $fields
        @param int    $flag
        @param string $sortColumns
        @param string $displayStart
        @param string $displayLength
        
        @return array
        
        Inherited from framework
        Defined in /home/capival/public_html/propello/classes/framework.class.php line 434
        public getDeletedValue($id, $fields = "", $query = "", $validationXML = "", $validationPrefix = "") -> null
        @param        $id
        @param string $fields
        
        @return null
        
        Inherited from framework
        Defined in /home/capival/public_html/propello/classes/framework.class.php line 417
        public getMaxId() -> int
        @return int
        
        Inherited from framework
        Defined in /home/capival/public_html/propello/classes/framework.class.php line 610
        public getModel()
        Inherited from framework
        Defined in /home/capival/public_html/propello/classes/framework.class.php line 142
        public getModelCollection()
        Inherited from framework
        Defined in /home/capival/public_html/propello/classes/framework.class.php line 147
        public getTotalRows()
        Inherited from framework
        Defined in /home/capival/public_html/propello/classes/framework.class.php line 152
        public getValue($id, $fields = "", $query = "", $validationXML = "", $basePath = "", $flag = 0) -> mixed
        This function handles fetching a single Product record given its ID (mandatory) and other parameters(optional)
        Unless you want some special functionality, that is override the query to use manual joins etc, for a self containing table
        which does not have a foreign key, its not necessary to define this function, since the framework class has the functionality built in.
        
        <code>$fields</code> parameter is comma separated list of fields to fetch for the record, optional, if not specified
        all fields are fetched.
        
        <code>$query</code> parameter is a custom query which is to be used to fetch the record instead of the one generated by the system
        It is not recommended to set this parameter from the controller unless under exceptional cases.
        
        <code>$validationXML</code> is a custom data validator to use to validate the fetched record. Optional, if nothing is specified, the default
        validator is used.
        
        <code>$basePath</code> is an optional parameter to specify a custom path to locate the validation XML.
        
        <code>$flag</code> is an optional parameter, if nothing is specified, flag=0, that is active records are fetched.
        
        <p>Examples:
        <code>$product=new product(); $productModel=$product->getValue($id);</code>
        </p>
        
        @param        $id
        @param string $fields
        @param string $query
        @param string $validationXML
        @param string $basePath
        @param int    $flag
        
        @return mixed
        
        Defined in /home/capival/public_html/propello/application/classes/product.class.php line 251
        public getValueBy($queryParam, $fields = "", $flag = 0, $sortColumns = "", $query = "", $displayStart = -1, $displayLength = 0, $format = 1) -> array
        @param        $queryParam
        @param string $fields
        @param int    $flag
        @param string $sortColumns
        @param string $query
        @param string $displayStart
        @param string $displayLength
        
        @return array
        
        Inherited from framework
        Defined in /home/capival/public_html/propello/classes/framework.class.php line 451
        public gridDisplay($sEcho, $aColumns, $query = "", $iDisplayStart = -1, $iDisplayLength = 0, $iSortingCols = "", $queryParam = "", $validationXML = "", $basePath = "", $flag = 0) -> mixed
        This function helps build json data feed which is used to display data grid for the manage Product page.
        Unless you want some special functionality, that is override the query to use manual joins etc, for a self containing table
        which does not have a foreign key, its not necessary to define this function, since the framework class has the functionality built in.
        
        <p>Examples:
        <code>$product=new product(); echo $product->gridDisplay($sEcho, $gridColumns, "", $iDisplayStart, $iDisplayLength, $sOrder, $queryParam); </code>
        </p>
        
        @param        $sEcho
        @param        $aColumns
        @param string $query
        @param string $iDisplayStart
        @param string $iDisplayLength
        @param string $iSortingCols
        @param string $queryParam
        @param string $validationXML
        @param string $basePath
        @param int    $flag
        
        @return mixed
        
        Defined in /home/capival/public_html/propello/application/classes/product.class.php line 302
        public insert() -> int
        This function handles creating a new Product
        returns the newly created records id on success, false on failure.
        <p>Examples:
        <code>$product=new product($productModel); $product->insert();</code>
        </p>
        
        @return int
        
        Defined in /home/capival/public_html/propello/application/classes/product.class.php line 56
        public isOwner($id, $owner, $fieldName) -> mixed
        @param $id
        @param $owner
        @param $fieldName
        
        @return mixed
        
        Inherited from framework
        Defined in /home/capival/public_html/propello/classes/framework.class.php line 627
        public isUnique($fieldName, $value, $ignore = "", $ignoreId = 0)
        Inherited from framework
        Defined in /home/capival/public_html/propello/classes/framework.class.php line 641
        public prepareStaticOptions($string, $lineSeperator = ;, $optionSeperator = :)
        Inherited from framework
        Defined in /home/capival/public_html/propello/classes/framework.class.php line 938
        public queryLogic($queryParam, $recurse = false) -> string
        @param      $queryParam
        @param bool $recurse
        
        @return string
        
        Inherited from framework
        Defined in /home/capival/public_html/propello/classes/framework.class.php line 183
        public unDelete($id) -> mixed|void
        @param $id
        
        @return mixed|void
        
        Inherited from framework
        Defined in /home/capival/public_html/propello/classes/framework.class.php line 117
        public uploadFile($fileFieldName, $fileType = 0) -> string
        @param     $fileName
        @param int $fileType
        
        @return string
        
        Inherited from framework
        Defined in /home/capival/public_html/propello/classes/framework.class.php line 701
        public viewStaticOption($options, $selected = "") -> string
        @param        $options
        @param        $selected
        
        @return string
        
        Inherited from framework
        Defined in /home/capival/public_html/propello/classes/framework.class.php line 968
        final protected setModel($modelName)
        @param $modelName
        
        Inherited from framework
        Defined in /home/capival/public_html/propello/classes/framework.class.php line 136
        protected getColumns() -> string
        @return string
        
        Inherited from framework
        Defined in /home/capival/public_html/propello/classes/framework.class.php line 160
        protected prepareOptions($key, $value, $queryParam = "", $query = "", $flag = 0, $sortColumns = "") -> array
        @param        $key
        @param        $value
        @param string $queryParam
        @param int    $flag
        
        @internal param $selected
        @return array
        
        Inherited from framework
        Defined in /home/capival/public_html/propello/classes/framework.class.php line 740
    • public __construct()
      Defined in /home/capival/public_html/propello/application/classes/productController.class.php line 22
      public initView($id = "", $mode = 0) -> array
      initView event handler is the view initializer and initiates form variables when the user opens the page for
      the first time without triggering any events. The mode defines whether the view is in edit mode or view mode,
      this is relevant only when id is passed. 0 means edit mode, non 0 means view mode.
      
      @param $id int
      @param $mode int
      
      @return array
      
      Defined in /home/capival/public_html/propello/application/classes/productController.class.php line 36
      public onAdd($formValues) -> array
      onAdd event handler gets triggered when user submits a form to insert a new Product record. It takes as an input
      an array of variables, usually a POST array which is generated when user submits a form. The array data, called formValues
      is then validated against the related model(s) and inserted to the database.
      
      If insertion is successful, the user is redirected to the manage page.
      
      The <code>$formAction</code> variable helps to construct
      the success message on the manage page. Note the three variables separated by | sign. The first variable, 1 denotes
      the verb, that is "Add", the second denotes which model is going to fetch the data for the success message, the third
      denotes the variable which is going to fetch the data. Therefore, 1|product|name will show "Product xyz added successfully"
      as the success message on insertion.
      
      If insertion is a failure, then an array with error messages and formValues is returned which can be directly used to display
      the form again with errors marked.
      
      <p>Examples:
      <code>$productController=new productController(); $productController->onAdd($_POST);</code>
      </p>
      
      @param $formValues
      
      @return array
      
      Defined in /home/capival/public_html/propello/application/classes/productController.class.php line 500
      public onDelete($id) -> array
      onGet event handler is fired when a user wants to view a Product record. It takes as input the id of the
      Product record which is to be viewed. It returns an array of the record data if successful, otherwise false;
      
      The <code>$formAction</code> variable helps to construct the success message on the manage page. Note the three
      variables separated by | sign. The first variable, 3 denotes the verb, that is "Delete", the second denotes which
      model is going to fetch the data for the success message, the third denotes the variable which is going to fetch the data.
      Therefore, 3|product|name will show "Product xyz deleted successfully" as the success message on deletion.
      
      <p>Examples:
      <code>$productController=new productController(); $productController->onDelete($id);</code>
      </p>
      
      @param $id
      
      @return array
      
      Defined in /home/capival/public_html/propello/application/classes/productController.class.php line 789
      public onEdit($id, $formValues) -> array
      onEdit event handler gets triggered when user submits a form to edit a Product record. It takes as input the
      id of the Product record which is to be edited, and an array of variables, usually a POST array which is generated
      when user submits a form. The array data, called formValues is then validated against the related model(s) and edited.
      
      If edition is successful, the user is redirected to the manage page.
      
      The <code>$formAction</code> variable helps to construct
      the success message on the manage page. Note the three variables separated by | sign. The first variable, 2 denotes
      the verb, that is "Edit", the second denotes which model is going to fetch the data for the success message, the third
      denotes the variable which is going to fetch the data. Therefore, 2|product|name will show "Product xyz edited successfully"
      as the success message on edition.
      
      If edition is a failure, else an array with error messages and formValues is returned which can be directly used to display
      the form again with errors marked.
      
      <p>Examples:
      <code>$productController=new productController(); $productController->onEdit($id,$_POST);</code>
      </p>
      
      @param $id
      @param $formValues
      
      @return array
      
      Defined in /home/capival/public_html/propello/application/classes/productController.class.php line 602
      public onGet($id) -> array
      onGet event handler is fired when a user wants to view a Product record. It takes as input the id of the
      Product record which is to be viewed. It returns an array of the record data if successful, otherwise false;
      
      
      <p>Examples:
      <code>$productController=new productController(); $productController->onGet($id);</code>
      </p>
      
      @param $id
      
      @return array
      
      Defined in /home/capival/public_html/propello/application/classes/productController.class.php line 756
      public onGetProductDetails($id) -> array
      TODO: Add a one line description of function onGetProductDetails. What does it do?
      
      <p>Examples:
      <code>TODO: Add example code here or remove this block </code>
      </p>
      
      @param $id
      
      @return array
      
      Defined in /home/capival/public_html/propello/application/classes/productController.class.php line 177
      public onGetProducts($categoryId, $priceRange = "") -> array
      TODO: Add a one line description of function onGetProducts. What does it do?
      
      <p>Examples:
      <code>TODO: Add example code here or remove this block </code>
      </p>
      
      @param $categoryId
      
      @return array
      
      Defined in /home/capival/public_html/propello/application/classes/productController.class.php line 333
      public onUpdateField($id, $fld)
      TODO: Add a one line description of function onUpdateField. What does it do?
      
      <p>Examples:
      <code>TODO: Add example code here or remove this block </code>
      </p>
      
      @param $id
      @param $fld
      
      Defined in /home/capival/public_html/propello/application/classes/productController.class.php line 810
$system_error array (4)
'type' => integer 8
'message' => string (17) "Undefined index: "
'file' => string (65) "/home/capival/public_html/propello/classes/errorHandler.clas …"
/home/capival/public_html/propello/classes/errorHandler.class.php
'line' => integer 158
1 /home/capival/public_html/propello/classes/errorHandler.class.php line 137Kint::trace()
  • Source
  • 130 header("location:/" . ERROR_URL);
    131 exit();
    132 // send mail to the developers
    133 }
    134 else {
    135
    136 Kint::dump($system_error);
    137 Kint::trace();
    138 exit();
    139 }
    140 }
    141 }
    142
    143 /**
    144 * @param $errorCode
2 PHP internal callerrorHandler::handleShutdown()