<?php
/**
* Class for using the functions
*
* @Package BOT IRC => Interface Subject
* @Name XXXpROH4x0r
* @Author cobra90nj <cobra90nj[at]gmail[dot]com>
* @License http://www.gnu.org/licenses/gpl-3.0.html GNU Public License
* @Version 2.0
*/
include_once('ImplementsBotFunction.php');
include_once('ConfigIrcBot.php');
class PrototypeFunction {
private $IfThisNull = NULL;
function __construct()
{
}
/**
* Function for implements function called
*
* @return Object
*/
function MakeFunction()
{
$this->IfThisNull = new ImplementsFunction();
}
/**
* Prototype function for sending param to class
*
* @param Array $ParamConnect Param to connect irc
* @retun A call to function ConnectToIrc
*/
function ConnectToIrc($ParamConnect)
{
if ($this->IfThisNull == NULL) {
$this->MakeFunction();
}
return $this->IfThisNull->ConnectToIrc($ParamConnect);
}
/**
* Prototype for setting an operator in channel
*
* @param String $Name Nome of operator
* @param String $Password Password of operator
* @return a call to function MakeAnOp
*/
function MakeAnOp($Name, $Password)
{
if ($this->IfThisNull == NULL) {
$this->MakeFunction();
}
return $this->IfThisNull->MakeAnOp($Name, $Password);
}
/**
* Prototype for log the chatt
*
* @param String $TextChannel All response of server irc
* @return a call to function LogChannel
*/
function LogChannel($TextChannel)
{
if ($this->IfThisNull == NULL) {
$this->MakeFunction();
}
return $this->IfThisNull->LogChannel($TextChannel);
}
/**
* Function for make url
*
* @param String $Url Url of short
* @return a call to function MakeTinyUrl
*/
function MakeTinyUrl($Url)
{
if ($this->IfThisNull == NULL) {
$this->MakeFunction();
}
return $this->IfThisNull->MakeTinyUrl($Url);
}
}