Jump to main content
URZ Workshop „Creating websites with TUCAL“
Contact cards of employees
URZ Workshop „Creating websites with TUCAL“ 

Contact cards of employees

Extension module for displaying contact data

Sandra Kahl
Portrait: Antje Schreiber
Antje Schreiber

Function and features of the module

  • Consistent presentation of contact data of employees of the TU Chemnitz in the corporate design (responsive and accessible)
  • Contact data are read from centrally maintained LDAP directory, all attributes can also be overwritten

Basic structure

$this->vCard(string $userid [, array $values [, array $style]]);

Possible parameters

  • $userid | PHP string
    • fetch data of the associated persons from LDAP
    • can also be empty (''), then only the data from $values will be displayed
  • $values | PHP array [optional]
    • Array with values overwriting or complementing the LDAP values
    • Possible entries (selection):
      'name', 'title' (academic title), 'description' (job description etc., see example 2),
      'mail', 'tel', 'room', 'photo', and more (HTML possivle, see example 4)
  • $style | PHP array [optional]
    • Array of values that affect the style of the contact card
    • Possible entries:
      'border' (0 = no line), 'id' (for anchor link e. g.), 'titleprefix' (0 = title after name),
      'photoindent' (0 = no indentation, see example 3)

Examples

$this->vCard('otto');
Dr. Otto Normalverbraucher
$this->vCard('otto', array('description' => 'Data specialist in the URZ team'));
Dr. Otto Normalverbraucher
Data specialist in the URZ team
$this->vCard('otto', array('description' => 'Data specialist in the URZ team'), array('photoindent' => 0));
Dr. Otto Normalverbraucher
Data specialist in the URZ team
$this->vCard('otto',
    array('title' => 'M.Sc.',
          'description' => 'Data specialist in the URZ team',
          'Verantwortlich für' => '<ul><li>Identification of interesting data</li><li>...</li></ul>',
          'photo' => 'otto.jpg'),
    array('photoindent' => 0'titleprefix' => 0));
Portrait: Otto Normalverbraucher, M.Sc.
Otto Normalverbraucher, M.Sc.
Data specialist in the URZ team
  • Phone:
    +49 371 531-35555
  • Email:
  • Verantwortlich für:
    • Identification of interesting data patterns
    • Analysis and statistics