Livestatus\Connection: just a comment

This commit is contained in:
Thomas Gelf 2014-11-16 18:36:13 +01:00
parent 40c4562fe4
commit 0ff9d57504
1 changed files with 7 additions and 0 deletions

View File

@ -76,6 +76,13 @@ class Connection
protected $socket_type;
protected $connection;
/**
* Whether the given table name is valid
*
* @param string $name table name
*
* @return bool
*/
public function hasTable($name)
{
return in_array($name, $this->available_tables);