4require_once
'Services/TermsOfService/interfaces/interface.ilTermsOfServiceSignableDocument.php';
63 foreach ($lines as $line) {
64 $this->content .= nl2br(trim($line));
70 $this->source =
$file;
71 $this->has_content = (bool) strlen($this->content);
77 require_once
'Services/TermsOfService/exceptions/class.ilTermsOfServiceNoSignableDocumentFoundException.php';
94 $this->source_files = array(
95 implode(
'/', array(
'.',
'Customizing',
'clients', CLIENT_ID,
'agreement',
'agreement_' . $this->
getLanguageAdapter()->getLangKey() .
'.html')) => $this->
getLanguageAdapter()->getLangKey(),
96 implode(
'/', array(
'.',
'Customizing',
'clients', CLIENT_ID,
'agreement',
'agreement_' . $this->
getLanguageAdapter()->getDefaultLanguage() .
'.html')) => $this->
getLanguageAdapter()->getDefaultLanguage(),
97 implode(
'/', array(
'.',
'Customizing',
'clients', CLIENT_ID,
'agreement',
'agreement_en.html')) =>
'en',
99 implode(
'/', array(
'.',
'Customizing',
'global',
'agreement',
'agreement_' . $this->
getLanguageAdapter()->getDefaultLanguage() .
'.html')) => $this->
getLanguageAdapter()->getDefaultLanguage(),
100 implode(
'/', array(
'.',
'Customizing',
'global',
'agreement',
'agreement_en.html')) =>
'en'
125 $this->source_files = $source_directories;
An exception for terminatinating execution or to throw for unit testing.
__construct(ilLanguage $lng)
setSourceFiles($source_directories)
const SRC_TYPE_FILE_SYSTEM_PATH
if(!file_exists("$old.txt")) if( $old===$new) if(file_exists("$new.txt")) $file