write_file() публичный статический Метод

----------------------------------------------------------------------+
public static write_file ( $file, $content, $mode = 'w', $perm = 436 ) : Bool
$file String
$content String
$mode String [r,r+,w,w+,a,a+,x,x+][bt]
$perm Oct
Результат Bool ----------------------------------------------------------------------+
Пример #1
0
 /**
 ----------------------------------------------------------------------+
 * @desc 	FIXME
 ----------------------------------------------------------------------+
 */
 protected function write($filename, $content)
 {
     if (!$this->dry_run) {
         if (!\phplinter\Path::write_file($filename, $content)) {
             die("Unable to create '{$filename}'...");
         }
     }
     if ($this->config->check(OPT_VERBOSE)) {
         echo "Wrote to file `{$filename}`\n";
     }
 }