Exemple #1
0
 public function getTitle()
 {
     return \CB\L\get('Calendar');
 }
Exemple #2
0
/**
 * raise an user error if logical result is true
 * @param  boolean $result
 * @param  varchar $translationIndex
 * @return void
 */
function raiseErrorIf($result, $translationIndex = 'Error')
{
    if ($result) {
        trigger_error(\CB\L\get($translationIndex), E_USER_ERROR);
    }
}