v 1.4.0
- Updated local libraries - PHP 7.1 support - New, proper caching method - Special cache folder
This commit is contained in:
@ -393,7 +393,7 @@ class TeamSpeak3_Helper_String implements ArrayAccess, Iterator, Countable
|
||||
*/
|
||||
public function isInt()
|
||||
{
|
||||
return (is_numeric($this->string) && !$this->contains(".")) ? TRUE : FALSE;
|
||||
return (is_numeric($this->string) && !$this->contains(".") && !$this->contains("x")) ? TRUE : FALSE;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -446,8 +446,6 @@ class TeamSpeak3_Node_Channel extends TeamSpeak3_Node_Abstract
|
||||
public function delete($force = FALSE)
|
||||
{
|
||||
$this->getParent()->channelDelete($this->getId(), $force);
|
||||
|
||||
unset($this);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -74,8 +74,6 @@ class TeamSpeak3_Node_Channelgroup extends TeamSpeak3_Node_Abstract
|
||||
public function delete($force = FALSE)
|
||||
{
|
||||
$this->getParent()->channelGroupDelete($this->getId(), $force);
|
||||
|
||||
unset($this);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -285,7 +285,7 @@ class TeamSpeak3_Node_Client extends TeamSpeak3_Node_Abstract
|
||||
*/
|
||||
public function avatarDownload()
|
||||
{
|
||||
if($this["client_flag_avatar"] == 0) return;
|
||||
if($this["client_flag_avatar"] == NULL) return;
|
||||
|
||||
$download = $this->getParent()->transferInitDownload(rand(0x0000, 0xFFFF), 0, $this->avatarGetName());
|
||||
$transfer = TeamSpeak3::factory("filetransfer://" . (strstr($download["host"], ":") !== FALSE ? "[" . $download["host"] . "]" : $download["host"]) . ":" . $download["port"]);
|
||||
|
@ -501,7 +501,9 @@ class TeamSpeak3_Node_Server extends TeamSpeak3_Node_Abstract
|
||||
*/
|
||||
public function channelFileInfo($cid, $cpw = "", $name = "/")
|
||||
{
|
||||
return array_pop($this->execute("ftgetfileinfo", array("cid" => $cid, "cpw" => $cpw, "name" => $name))->toArray());
|
||||
$info = $this->execute("ftgetfileinfo", array("cid" => $cid, "cpw" => $cpw, "name" => $name))->toArray();
|
||||
|
||||
return array_pop($info);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -2268,8 +2270,6 @@ class TeamSpeak3_Node_Server extends TeamSpeak3_Node_Abstract
|
||||
public function delete()
|
||||
{
|
||||
$this->getParent()->serverDelete($this->getId());
|
||||
|
||||
unset($this);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -74,8 +74,6 @@ class TeamSpeak3_Node_Servergroup extends TeamSpeak3_Node_Abstract
|
||||
public function delete($force = FALSE)
|
||||
{
|
||||
$this->getParent()->serverGroupDelete($this->getId(), $force);
|
||||
|
||||
unset($this);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -186,7 +186,7 @@ abstract class TeamSpeak3_Transport_Abstract
|
||||
*/
|
||||
public function setAdapter(TeamSpeak3_Adapter_Abstract $adapter)
|
||||
{
|
||||
$this->adapter = $adapter;
|
||||
$this->adapter = get_class($adapter);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -208,7 +208,7 @@ abstract class TeamSpeak3_Transport_Abstract
|
||||
{
|
||||
if($this->adapter instanceof TeamSpeak3_Adapter_Abstract)
|
||||
{
|
||||
$string = TeamSpeak3_Helper_String::factory(get_class($this->adapter));
|
||||
$string = TeamSpeak3_Helper_String::factory($this->adapter);
|
||||
|
||||
return $string->substr($string->findLast("_"))->replace(array("_", " "), "")->toString();
|
||||
}
|
||||
|
@ -168,7 +168,7 @@ class TeamSpeak3_Viewer_Html implements TeamSpeak3_Viewer_Interface
|
||||
{
|
||||
return "ts3_viewer " . $this->currObj->getClass(null);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Returns the ID of the current node which will be used as a summary element for
|
||||
* the container element.
|
||||
|
Reference in New Issue
Block a user