PHP Class MyBuilder\Cronos\Formatter\Header

Afficher le fichier Open project: mybuilder/cronos

Méthodes publiques

Méthode Description
__construct ( Cron $cron )
end ( ) : Cron
format ( ) : string
setContentTransferEncoding ( string $encoding ) Set the charset to use for cron output emails.
setContentType ( string $contentType ) Set the content-type to use for cron output emails.
setHome ( string $home )
setMailto ( string $email )
setPath ( string $path ) Works just like the shell PATH, but it does not inherit from your environment.
setShell ( string $shell ) Set the shell to be used when executing commands

Private Methods

Méthode Description
assertValidEmail ( $email )
createHeader ( $name, $value )

Method Details

__construct() public méthode

public __construct ( Cron $cron )
$cron Cron

end() public méthode

public end ( ) : Cron
Résultat Cron

format() public méthode

public format ( ) : string
Résultat string

setContentTransferEncoding() public méthode

Set the charset to use for cron output emails.
public setContentTransferEncoding ( string $encoding )
$encoding string

setContentType() public méthode

Set the content-type to use for cron output emails.
public setContentType ( string $contentType )
$contentType string

setHome() public méthode

public setHome ( string $home )
$home string

setMailto() public méthode

public setMailto ( string $email )
$email string

setPath() public méthode

Works just like the shell PATH, but it does not inherit from your environment.
public setPath ( string $path )
$path string

setShell() public méthode

Default is /bin/sh but can also be changed to /bin/php
public setShell ( string $shell )
$shell string