function GetError(array $params = array()) { $allParams = array_merge($params, $this->ErrorParams()); if ($this->error) { return Worder::ReplaceArgs($this->errorLabelPrefix . $this->error, $allParams); } return ''; }
/** * * @param type $progress * @param type $progressCount */ function Report($progress, $progressCount) { $this->data['progress'] = $progress; $this->data['progressCount'] = $progressCount; if ($this->descriptionLabel) { $this->data['progressDescription'] = Worder::ReplaceArgs($this->descriptionLabel, array($progress, $progressCount)); } IO\File::CreateWithText($this->targetFile, json_encode($this->data)); }
function TransArgs($string, array $args) { return Worder::ReplaceArgs($string, $args); }