noalyss Version-9
Public Member Functions | Private Attributes
Filter_Data_Currency_Card_Category Class Reference

filter data in currency from datase , inherit from Data_Currency_Operation, filter on card category More...

+ Inheritance diagram for Filter_Data_Currency_Card_Category:
+ Collaboration diagram for Filter_Data_Currency_Card_Category:

Public Member Functions

 __construct ($cn, $from_date, $to_date, $currency_id, $card_category)
 
 get_data ()
 returns data More...
 
 getCard_category ()
 
 setCard_category ($card_category)
 
 SQL_Condition ()
 build the SQL condition More...
 
- Public Member Functions inherited from Data_Currency_Operation
 __construct ($cn, $from_date="", $to_date="", $currency_id=0)
 
 build_SQL ()
 build the SQL to execute More...
 
 get_data ()
 returns data More...
 
 getCurrency_id ()
 retrieve currency.od More...
 
 getDbconx ()
 Database connection. More...
 
 getFrom_date ()
 
 getTo_date ()
 
 setCurrency_id ($currency_id)
 retrieve currency.od More...
 
 setDbconx ($dbconx)
 
 setFrom_date ($from_date)
 
 setTo_date ($to_date)
 
 SQL_Condition ()
 build the SQL condition More...
 
 to_currency_code ()
 retrieve the currency code More...
 

Private Attributes

 $card_category
 

Detailed Description

filter data in currency from datase , inherit from Data_Currency_Operation, filter on card category

Definition at line 33 of file filter_data_currency_card_category.class.php.

Constructor & Destructor Documentation

◆ __construct()

Filter_Data_Currency_Card_Category::__construct (   $cn,
  $from_date,
  $to_date,
  $currency_id,
  $card_category 
)

Member Function Documentation

◆ get_data()

Filter_Data_Currency_Card_Category::get_data ( )

returns data

Returns
array

Reimplemented from Data_Currency_Operation.

Definition at line 70 of file filter_data_currency_card_category.class.php.

71 {
72 $sql=$this->build_SQL();
73 $aArray=$this->getDbconx()->get_array($sql,
74 [$this->getCurrency_id(),
75 $this->getFrom_date(),
76 $this->getTo_date(),
77 $this->card_category]);
78
79 return $aArray;
80 }
build_SQL()
build the SQL to execute

References $sql, Data_Currency_Operation\build_SQL(), Data_Currency_Operation\getCurrency_id(), Data_Currency_Operation\getDbconx(), Data_Currency_Operation\getFrom_date(), and Data_Currency_Operation\getTo_date().

+ Here is the call graph for this function:

◆ getCard_category()

Filter_Data_Currency_Card_Category::getCard_category ( )

Definition at line 44 of file filter_data_currency_card_category.class.php.

45 {
47 }

References $card_category.

◆ setCard_category()

Filter_Data_Currency_Card_Category::setCard_category (   $card_category)

Definition at line 49 of file filter_data_currency_card_category.class.php.

50 {
51 $this->card_category=$card_category;
52 }

References $card_category.

◆ SQL_Condition()

Filter_Data_Currency_Card_Category::SQL_Condition ( )

build the SQL condition

Returns
SQL condition

Reimplemented from Data_Currency_Operation.

Definition at line 59 of file filter_data_currency_card_category.class.php.

60 {
61 $sql=parent::SQL_Condition();
62 $sql.=" and jrnx.f_id in ( select f_id from fiche where fd_id=$4)";
63 return $sql;
64 }

References $sql.

Field Documentation

◆ $card_category

Filter_Data_Currency_Card_Category::$card_category
private

The documentation for this class was generated from the following file: