Login   Register  
PHP Classes
elePHPant
Icontem

File: example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of David Passey  >  EPS Connect Ed  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example Script
Class: EPS Connect Ed
Generate VBScript to access Blackboard Connect
Author: By
Last change:
Date: 2011-11-23 06:37
Size: 1,097 bytes
 

Contents

Class file image Download
$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();