* @param $pass INTEGER password
* @return BOOLEAN true if authentication was successful
*/
- protected function authinfo($user, $pass)
+ public function authinfo($user, $pass)
{
if ($this->execLine("AUTHINFO USER $user", false)) {
return $this->execline("AUTHINFO PASS $pass");
* @see body
* @see head
*/
- protected function article($msgid = "")
+ public function article($msgid = "")
{
if (!$this->execLine("ARTICLE $msgid")) {
return false;
* @param $_message STRING message to post
* @return STRING MSGID of article
*/
- protected function post($message)
+ public function post($message)
{
if (!$this->execLine("POST ", false)) {
return false;
* @see article
* @see head
*/
- protected function body($msgid = '')
+ public function body($msgid = '')
{
if ($this->execLine("BODY $msgid")) {
return false;
* @see article
* @see body
*/
- protected function head($msgid = '')
+ public function head($msgid = '')
{
if (!$this->execLine("HEAD $msgid")) {
return false;
* @param $_group STRING
* @return ARRAY array : nb of articles in group, MSGNUM of first article, MSGNUM of last article, and group name
*/
- protected function group($group)
+ public function group($group)
{
if (!$this->execLine("GROUP $group")) {
return false;
* @return STRING MSGID of article
* @see next
*/
- protected function last()
+ public function last()
{
if (!$this->execLine("LAST ")) {
return false;
* @see last
*/
- protected function next()
+ public function next()
{
if (!$this->execLine('NEXT ')) {
return false;
* @see article
* @see body
*/
- protected function nntpstat($msgid)
+ public function nntpstat($msgid)
{
if (!$this->execLine("STAT $msgid")) {
return false;
* @return ARRAY group name => (MSGNUM of first article, MSGNUM of last article, NNTP flags)
* @see newgroups
*/
- protected function listGroups()
+ public function listGroups()
{
if (!$this->execLine('LIST')) {
return false;
* @return ARRAY same format as liste
* @see liste
*/
- protected function newgroups($since, $distributions = '')
+ public function newgroups($since, $distributions = '')
{
if (!($since = $this->formatDate($since))) {
return false;
}
if (!$this->execLine("NEWGROUPS $since $distributions")) {
return false;
- }
+ }
return $this->filterGroups();
}
* @parma $_groups STRING pattern of intersting groups
* @return ARRAY MSGID of new articles
*/
- protected function newnews($groups = '*', $since = 0, $distributions = '')
+ public function newnews($groups = '*', $since = 0, $distributions = '')
{
if (!($since = $this->formatDate($since))) {
return false;
/** Tell the remote server that I am not a user client, but probably another news server
* @return BOOLEAN true if sucessful
*/
- protected function slave()
+ public function slave()
{
return $this->execLine("SLAVE ");
}
* @param $_message STRING article
* @return BOOLEAN
*/
- protected function ihave($msgid, $message = false)
+ public function ihave($msgid, $message = false)
{
if (!$this->execLine("IHAVE $msgid ")) {
return false;
/** closes connection to server
*/
- protected function quit()
+ public function quit()
{
$this->execLine('QUIT');
fclose($this->ns);
* @return INTEGER timestamp
*/
- protected function date()
+ public function date()
{
if (!$this->execLine('DATE ', false)) {
return false;
* @return ARRAY group name => description
*/
- protected function xgtitle($pattern = '*')
+ public function xgtitle($pattern = '*')
{
if (!$this->execLine("XGTITLE $pattern ")) {
return false;
* @param $_range STRING range of articles
* @return ARRAY MSGNUM => header value
*/
- protected function xhdr($hdr, $first = null, $last = null)
+ public function xhdr($hdr, $first = null, $last = null)
{
if (is_null($first) && is_null($last)) {
$range = "";
* @param $_pat STRING pattern
* @return ARRAY MSGNUM => header value
*/
- protected function xpat($_hdr, $_range, $_pat)
+ public function xpat($_hdr, $_range, $_pat)
{
if (!$this->execLine("XPAT $hdr $range $pat")) {
return false;