本文整理汇总了PHP中uploader::draft_uploader方法的典型用法代码示例。如果您正苦于以下问题:PHP uploader::draft_uploader方法的具体用法?PHP uploader::draft_uploader怎么用?PHP uploader::draft_uploader使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类uploader
的用法示例。
在下文中一共展示了uploader::draft_uploader方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: uploader
$uploader = new uploader();
$reference_table_handling = new reference_table_handling();
//get day of week
$worktable_handling = new worktable_handling();
$today = $worktable_handling->get_dayofweek();
echo "<p>today: " . $today . "</p>";
if ($compare != 0) {
$compare = strcasecmp($csv_filename, $all_friends_update_csv);
if ($compare != 0) {
echo "תאריך הקובץ לא זהה לתאריך של היום או ששם הקובץ (" . $csv_filename . ") לא בפורמט הנכון (" . $date_csv . ")";
} else {
$addauto_ind = 1;
//28-02-2014 - if 1 then match the uploader to insert update all_friends
$check_log_num = 1;
//28-02-2014 - if 1 then upload to draft only
$uploader->draft_uploader($check_log_num, $addauto_ind);
//28-02-2014
$reference_table_handling->add_records();
}
} else {
$addauto_ind = 0;
//28-02-2014 - if 0 then match the uploader to insert daily usual report
//check log table
$log_handling = new log_handling();
$check_log_num = $log_handling->check_log();
if ($check_log_num > 0) {
echo "<div>היום כבר בוצעה טעינת הקובץ</div>" . $check_log_num . "</p>";
$upload_to_draft = $uploader->draft_uploader($check_log_num, $addauto_ind);
//$addauto_ind 28-02-2014
//latecomers handling
$newarrivers_rec_handling = $worktable_handling->newarrivers_rec_handling();