This class is used as predecesor of models that can be sheduled on sime time and then runned by CRON. More...
Public Member Functions | |
get_type () | |
Gets type of rule. | |
get_attribute ($index=0) | |
Gets first attribute of rule. | |
get_attributes () | |
Gets all attributes of rule. |
Static Public Member Functions | |
static | get_type_messages ($translate=TRUE) |
Gets set of self cancel messages. | |
static | get_type_message ($type, $translate=TRUE) |
Gets message for the given type. | |
static | get_type_attributes ($aa_type) |
Gets attributes of the given automatical activation type. | |
static | get_type_attributes_count ($aa_type) |
Gets attributes count of the given automatical activation type. | |
static | get_attribute_types ($translate=TRUE) |
Gets attribute types. | |
static | get_attribute_types_max_count () |
Gets maximal count of attributes of all types of rule. | |
static | filter_rules ($rules, $apply_minute, $time) |
Check all of obtain rules if they may be activated in the given time and returns all that may be. |
Public Attributes | |
const | TYPE_MONTHLY = 1 |
auto activation each month, attibutes: | |
const | TYPE_WEEKLY = 2 |
auto activation each week, attributes: | |
const | TYPE_DAILY = 3 |
auto activation each day, attributes: | |
const | TYPE_DAILY_WD = 4 |
auto activation each working day, attributes: | |
const | TYPE_HOURLY = 5 |
auto activation each hour, empty attributes. | |
const | TYPE_AFTER_DEDUCTION = 6 |
auto activation in the deduction day in the specified hour, attributes: |
This class is used as predecesor of models that can be sheduled on sime time and then runned by CRON.
For example notification may triggered daily/hourly/monthly/etc.
All model classes that implements this class must define columns for type (integer) and attribute (mixed - varchar(255)).
|
static |
Check all of obtain rules if they may be activated in the given time and returns all that may be.
array[TimeActivityRule] | $rules Activity rules | |
string | $apply_minute | Minute of activation as string in format /[0-9]{2}/ |
long | $time | Time obtain from time() function |
Time_Activity_Rule::get_attribute | ( | $index = 0 | ) |
Gets first attribute of rule.
integer | $index | Index of attribute from 0 [optional - first as default] |
|
static |
Gets attribute types.
boolean | $translate |
|
static |
Gets maximal count of attributes of all types of rule.
|
abstract |
Gets all attributes of rule.
Reimplemented in Messages_automatical_activation_Model, and Bank_accounts_automatical_download_Model.
|
abstract |
Gets type of rule.
Reimplemented in Messages_automatical_activation_Model, and Bank_accounts_automatical_download_Model.
|
static |
Gets attributes of the given automatical activation type.
integer | $aa_type | Automatical activation type |
|
static |
Gets attributes count of the given automatical activation type.
integer | $aa_type | Automatical activation type |
|
static |
Gets message for the given type.
integer | $type | |
boolean | $translate |
|
static |
Gets set of self cancel messages.
bool | $translate | Translate messages |
const Time_Activity_Rule::TYPE_AFTER_DEDUCTION = 6 |
auto activation in the deduction day in the specified hour, attributes:
const Time_Activity_Rule::TYPE_DAILY = 3 |
auto activation each day, attributes:
const Time_Activity_Rule::TYPE_DAILY_WD = 4 |
auto activation each working day, attributes:
const Time_Activity_Rule::TYPE_MONTHLY = 1 |
auto activation each month, attibutes:
const Time_Activity_Rule::TYPE_WEEKLY = 2 |
auto activation each week, attributes: