$ce = new ZEND_EPS_CONNECT_ED($_SERVER['argv'][1]);
$ce->copyFile('students.txt','cft_students.txt');
$ce->setLogin('usernameX','passwordX',1);
$ce->setLogin('usernameY','passwordY',2);
$ce->setOutputDir('c:\sftp\logs');
$ce->setURL('https://www.blackboardconnected.com/contacts/importer_portal.asp?qDest=imp');
$ce->setFile(array('file_name'=>'students.txt','login_key'=>1,'contact_type'=>'Student','refresh_type'=>'Student'));
$ce->setFile(array('file_name'=>'staff.txt','login_key'=>1,'contact_type'=>'All','refresh_type'=>'Staff,Faculty'));
$ce->setFile(array('file_name'=>'cft_staff.txt','login_key'=>2,'contact_type'=>'All','refresh_type'=>'Staff,Faculty'));
$ce->setFile(array('file_name'=>'cft_students.txt','login_key'=>2,'contact_type'=>'Student','refresh_type'=>'Student'));
$ce->setFile(array('file_name'=>'cft_teachers.txt','login_key'=>2,'data_type'=>'Teacher'));
$ce->setFile(array('file_name'=>'cft_courses.txt','login_key'=>2,'data_type'=>'Course'));
$ce->setFile(array('file_name'=>'cft_enrollment.txt','login_key'=>2,'data_type'=>'Enrollment'));
$ce->exec();
|