コード例 #1
0
 function GetError(array $params = array())
 {
     $allParams = array_merge($params, $this->ErrorParams());
     if ($this->error) {
         return Worder::ReplaceArgs($this->errorLabelPrefix . $this->error, $allParams);
     }
     return '';
 }
コード例 #2
0
 /**
  * 
  * @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));
 }
コード例 #3
0
ファイル: Functions.php プロジェクト: agentmedia/phine-core
function TransArgs($string, array $args)
{
    return Worder::ReplaceArgs($string, $args);
}