Hoa central
Static Public Member Functions | Static Protected Member Functions | List of all members
Hoa\Zombie\Zombie Class Reference

Static Public Member Functions

static test ()
 
static fork ()
 
static decapitate ()
 
static bludgeon ()
 
static burn ()
 
static explode ()
 
static cutOff ()
 
static getPid ()
 

Static Protected Member Functions

static _kill ()
 

Detailed Description

Class .

Zombie!

Definition at line 49 of file Zombie.php.

Member Function Documentation

static Hoa\Zombie\Zombie::_kill ( )
staticprotected

Whatever, really kill the zombie.

Returns
void

Definition at line 143 of file Zombie.php.

144  {
145  exit;
146  }
static Hoa\Zombie\Zombie::bludgeon ( )
static

Maybe, we can bludgeon the zombie?

Returns
void

Definition at line 95 of file Zombie.php.

96  {
97  static::_kill();
98 
99  return;
100  }
static Hoa\Zombie\Zombie::burn ( )
static

Grilled zombies, hummm!

Returns
void

Definition at line 107 of file Zombie.php.

108  {
109  static::_kill();
110 
111  return;
112  }
static Hoa\Zombie\Zombie::cutOff ( )
static

Would like a slice?

Returns
void

Definition at line 131 of file Zombie.php.

132  {
133  static::_kill();
134 
135  return;
136  }
static Hoa\Zombie\Zombie::decapitate ( )
static

Oh, why not decapitate?

Returns
void

Definition at line 83 of file Zombie.php.

84  {
85  static::_kill();
86 
87  return;
88  }
static Hoa\Zombie\Zombie::explode ( )
static

One… two… three… … splash!

Returns
void

Definition at line 119 of file Zombie.php.

120  {
121  static::_kill();
122 
123  return;
124  }
static Hoa\Zombie\Zombie::fork ( )
static

Try to create a zombie.

Returns
bool

Definition at line 66 of file Zombie.php.

67  {
68  if (true !== static::test()) {
69  throw new Exception(
70  'This program must run behind PHP-FPM to create a zombie.', 0);
71  }
72 
73  fastcgi_finish_request();
74 
75  return true;
76  }

Here is the caller graph for this function:

static Hoa\Zombie\Zombie::getPid ( )
static

Get PHP's process ID.

Returns
int

Definition at line 153 of file Zombie.php.

154  {
155  return getmypid();
156  }
static Hoa\Zombie\Zombie::test ( )
static

Test if we can start a zombie.

Returns
bool

Definition at line 56 of file Zombie.php.

57  {
58  return true === function_exists('fastcgi_finish_request');
59  }

The documentation for this class was generated from the following file: