Skip to content

Commit

Permalink
Unstatic'd some things that shouldn't be static
Browse files Browse the repository at this point in the history
git-svn-id: https://cobihome.external.cluenet.org:8443/svn/phpserv/trunk@207 cb14c9df-8a02-4fc1-9b40-3ccfc4edb2c1
  • Loading branch information
snofox committed Feb 22, 2010
1 parent 4db043c commit 90882fc
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions includes/Channel.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ protected static function newFrom( $field, $value ) {
return null;
}

protected static function __construct( $id, $name, $modes, $topic ) {
protected function __construct( $id, $name, $modes, $topic ) {
$this->id = $id;
$this->name = $name;
$this->modes = $modes;
$this->topic = $topic;
}

protected static function __set( $name, $value ) {
protected function __set( $name, $value ) {
switch( $name ) {
case 'id':
case 'name':
Expand All @@ -51,7 +51,7 @@ protected static function __set( $name, $value ) {

}

protected static function __get( $name ) {
protected function __get( $name ) {
switch( $name ) {
case 'id':
return $this->id;
Expand All @@ -70,7 +70,11 @@ protected static function __get( $name ) {
break;
}
}


function getUsers() {
return ChannelUsers::newFromChannel( $this );
}

protected function update( $name, $value ) {
MySQL::sql( 'UPDATE `access` SET `' . $name . '` = ' . MySQL::escape( $value ) . ' WHERE `id` = ' . MySQL::escape( $this->id ) );
$this->$name = $value;
Expand Down

0 comments on commit 90882fc

Please sign in to comment.