ILIAS  Release_4_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilECSAuth Class Reference
+ Collaboration diagram for ilECSAuth:

Public Member Functions

 __construct ($a_eid, $a_mid)
 constuctor
 getHash ()
 get hash
 setSOV ($a_sov)
 set SOV
 setEOV ($a_eov)
 set EOV
 setAbbreviation ($a_abr)
 set abbreviation

Data Fields

 $hash
 $mid
 $eid

Protected Member Functions

 init ()
 init

Protected Attributes

 $log
 $mids = array()

Detailed Description

Author
Stefan Meyer smeye.nosp@m.r@da.nosp@m.tabay.nosp@m..de
Version
$Id$

Definition at line 33 of file class.ilECSAuth.php.

Constructor & Destructor Documentation

ilECSAuth::__construct (   $a_eid,
  $a_mid 
)

constuctor

public

Parameters

Definition at line 50 of file class.ilECSAuth.php.

References $ilLog, and init().

{
global $ilLog;
$this->log = $ilLog;
$this->eid = (int) $a_eid;
$this->mid = (int) $a_mid;
$this->init();
}

+ Here is the call graph for this function:

Member Function Documentation

ilECSAuth::getHash ( )

get hash

public

Definition at line 67 of file class.ilECSAuth.php.

References $hash.

{
return $this->hash;
}
ilECSAuth::init ( )
protected

init

protected

Definition at line 120 of file class.ilECSAuth.php.

References $reader, and ilECSCommunityReader\_getInstance().

Referenced by __construct().

{
$this->hash = md5(time());
try
{
$this->mids = array();
include_once('./Services/WebServices/ECS/classes/class.ilECSCommunityReader.php');
foreach($reader->getCommunities() as $com)
{
foreach($com->getParticipants() as $part)
{
if($part->isSelf())
{
$this->mids[] = $part->getMID();
$this->log->write('Fetch MID: '.$part->getMID());
}
}
}
}
catch(ilException $exc)
{
throw $exc;
}
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilECSAuth::setAbbreviation (   $a_abr)

set abbreviation

public

Definition at line 110 of file class.ilECSAuth.php.

{
$this->abr = (string) $a_abr;
}
ilECSAuth::setEOV (   $a_eov)

set EOV

public

Parameters
inteov of verification

Definition at line 95 of file class.ilECSAuth.php.

{
include_once('Date.php');
$date = new Date();
$date->setDate($a_eov,DATE_FORMAT_UNIXTIME);
$this->eov = $date->getDate().'+01:00';
}
ilECSAuth::setSOV (   $a_sov)

set SOV

public

Parameters
intstart of verification

Definition at line 79 of file class.ilECSAuth.php.

{
include_once('Date.php');
$date = new Date();
$date->setDate($a_sov,DATE_FORMAT_UNIXTIME);
$this->sov = $date->getDate().'+01:00';
}

Field Documentation

ilECSAuth::$eid

Definition at line 41 of file class.ilECSAuth.php.

ilECSAuth::$hash

Definition at line 39 of file class.ilECSAuth.php.

Referenced by getHash().

ilECSAuth::$log
protected

Definition at line 35 of file class.ilECSAuth.php.

ilECSAuth::$mid

Definition at line 40 of file class.ilECSAuth.php.

ilECSAuth::$mids = array()
protected

Definition at line 36 of file class.ilECSAuth.php.


The documentation for this class was generated from the following file: