Public Member Functions | |
actionIndex ($channel=false, $clear=false) | |
actionSetup () |
This command processes one channel with name $channel , and if $clear = 1 truncate tables before fill them
go to gportal/common: yiic processAPA –channel=test –clear=1
Install incron : 1)If Debian / Ubuntu Linux: sudo apt-get install incron
2)If RHEL / Fedora / CentOS Linux: sudo yum install incron
Start/Stop sudo /etc/init.d/incron stop sudo /etc/init.d/incron start
More info here: http://www.cyberciti.biz/faq/linux-inotify-examples-to-replicate-directories/
Definition at line 26 of file processAPACommand.php.
processAPACommand::actionIndex | ( | $channel = false , |
|
$clear = false |
|||
) |
default action it processes channel with name $channel
string | $channel | name of channel |
int | $clear | whether to truncate tables before import |
Definition at line 35 of file processAPACommand.php.
References ApalinesNews\model().
processAPACommand::actionSetup | ( | ) |
action sets up incrontab to execute import command with current module settings
Definition at line 86 of file processAPACommand.php.