Class: pidfile

Quellcode Position: Program_Root/sys_pidfile.php

Class pidfile

Class Overview

Administration implementation of programm id files for Papaya-Cron-Moduls

Implementiert in Program_Root/sys_pidfile.php [Zeile 18]



		
				Author(s):
		
		
		
Information Tags:

Properties

Methods

Properties Summary
mixed   $old_pid  
mixed   $pid  
mixed   $pidfile  

Method Summary
pidfile   pidfile()   Copy parameter $pidfile in $this->pidfile when parameter is set
void   delete()   Delete PID-File
mixed   execute()   Inizialisation of PID.
boolean   get()   Read PID
boolean   set()   Create a new PID - file

Properties
mixed   $old_pid [Zeile 21]

mixed   $pid [Zeile 20]

mixed   $pidfile = /tmp/actual.pid [Zeile 19]

Methods
Constructor pidfile  [Zeile 26]

  pidfile pidfile( [mixed $pidfile = NULL]  )

Copy parameter $pidfile in $this->pidfile when parameter is set



delete  [Zeile 86]

  void delete( )

Delete PID-File



execute  [Zeile 35]

  mixed execute( )

Inizialisation of PID.


API Tags:
Return:  True if pid wasn't set and set through function or false when pid was set


get  [Zeile 47]

  boolean get( )

Read PID



set  [Zeile 73]

  boolean set( )

Create a new PID - file


API Tags:
Return:  True if pid wrote and false when an error appears during worte command