public function channelSpacerGetAlign($cid)
  {
    $channel = $this->channelGetById($cid);

    if(!$this->channelIsSpacer($channel) || !preg_match("/\[(.*)spacer.*\]/", $channel, $matches) || !isset($matches[1]))
    {
      throw new TeamSpeak3_Adapter_ServerQuery_Exception("invalid channel flags", 0x307);
    }

    switch($matches[1])
    {
      case "*":
        return TeamSpeak3::SPACER_ALIGN_REPEAT;

      case "c":
        return TeamSpeak3::SPACER_ALIGN_CENTER;

      case "r":
        return TeamSpeak3::SPACER_ALIGN_RIGHT;

      default:
        return TeamSpeak3::SPACER_ALIGN_LEFT;
    }
  }
public function channelSpacerGetAlign($cid)
  {
    $channel = $this->channelGetById($cid);

    if(!$this->channelIsSpacer($channel) || !preg_match("/\[(.*)spacer.*\]/", $channel, $matches) || !isset($matches[1]))
    {
      throw new TeamSpeak3_Adapter_ServerQuery_Exception("invalid channel flags", 0x307);
    }

    switch($matches[1])
    {
      case "*":
        return TeamSpeak3::SPACER_ALIGN_REPEAT;

      case "c":
        return TeamSpeak3::SPACER_ALIGN_CENTER;

      case "r":
        return TeamSpeak3::SPACER_ALIGN_RIGHT;

      default:
        return TeamSpeak3::SPACER_ALIGN_LEFT;
    }
  }
public function channelSpacerGetAlign ( $ cid ) { $ channel = $ this -> channelGetById ( $ cid ) ; if ( ! $ this -> channelIsSpacer ( $ channel ) || ! preg_match ( "/\[(.*)spacer.*\]/" , $ channel , $ matches ) || ! isset ( $ matches [ 1 ] ) ) { throw new TeamSpeak3_Adapter_ServerQuery_Exception ( "invalid channel flags" , 0x307 ) ; } switch ( $ matches [ 1 ] ) { case "*" : return TeamSpeak3 :: SPACER_ALIGN_REPEAT ; case "c" : return TeamSpeak3 :: SPACER_ALIGN_CENTER ; case "r" : return TeamSpeak3 :: SPACER_ALIGN_RIGHT ; default : return TeamSpeak3 :: SPACER_ALIGN_LEFT ; } }
Returns the possible alignment of a channel spacer.

@param  integer $cid
@throws TeamSpeak3_Adapter_ServerQuery_Exception
@return integer
Returns the possible alignment of a channel spacer .