File modules/cms/generator/target/Target.class.php

Last commit: Wed Nov 18 21:01:59 2020 +0100	Jan Dankert	Renaming of target classes for naming convention reasons.
1 <?php 2 3 4 namespace cms\generator\target; 5 6 7 use util\Url; 8 9 /** 10 * A target is a target for publishing files. A target is the bridge to a place where files are being copied to. 11 */ 12 interface Target 13 { 14 15 /** 16 * Creating the target. 17 * 18 * @param $targetUrl string target URL 19 */ 20 public function __construct( $targetUrl ); 21 22 23 /** 24 * Open the connection to the target. 25 */ 26 public function open(); 27 28 29 /** 30 * Pushing a file to the target. 31 * @param $source string local filename 32 * @param $dest string remote filename 33 * @param $timestamp int timestamp of source file 34 */ 35 public function put($source, $dest, $timestamp); 36 37 38 /** 39 * Closes the connection. 40 */ 41 public function close(); 42 43 44 /** 45 * Is this target available? 46 * 47 * @return boolean 48 */ 49 public static function isAvailable(); 50 51 }
Download modules/cms/generator/target/Target.class.php
History Wed, 18 Nov 2020 21:01:59 +0100 Jan Dankert Renaming of target classes for naming convention reasons. Wed, 14 Oct 2020 23:49:54 +0200 Jan Dankert Refactoring: Creating the target instance with a Factory (Java style); Asynchronous publishing of files. Mon, 21 Sep 2020 22:48:59 +0200 Jan Dankert Complexe refactoring: Moving all generation logic from the model (Value,Page,File) to generators classes. Fri, 18 Sep 2020 23:04:13 +0200 Jan Dankert Refactoring: Renaming module "cms/publish" to "cms/generator"