4 require_once
'Services/TermsOfService/interfaces/interface.ilTermsOfServiceSignableDocument.php';
62 foreach($lines as $line)
64 $this->content .= trim(nl2br($line));
66 $this->source =
$file;
67 $this->has_content = (bool)strlen($this->content);
73 require_once
'Services/TermsOfService/exceptions/class.ilTermsOfServiceNoSignableDocumentFoundException.php';
82 $this->source_files = array(
83 implode(
'/', array(
'.',
'Customizing',
'clients', CLIENT_ID,
'agreement',
'agreement_' . $this->
getLanguageAdapter()->getLangKey() .
'.html')) => $this->
getLanguageAdapter()->getLangKey(),
84 implode(
'/', array(
'.',
'Customizing',
'clients', CLIENT_ID,
'agreement',
'agreement_' . $this->
getLanguageAdapter()->getDefaultLanguage() .
'.html')) => $this->
getLanguageAdapter()->getDefaultLanguage(),
85 implode(
'/', array(
'.',
'Customizing',
'clients', CLIENT_ID,
'agreement',
'agreement_en.html')) =>
'en',
87 implode(
'/', array(
'.',
'Customizing',
'global',
'agreement',
'agreement_' . $this->
getLanguageAdapter()->getDefaultLanguage() .
'.html')) => $this->
getLanguageAdapter()->getDefaultLanguage(),
88 implode(
'/', array(
'.',
'Customizing',
'global',
'agreement',
'agreement_en.html')) =>
'en'
113 $this->source_files = $source_directories;