--
You received this message because you are subscribed to the Google Groups "phpcassa" group.
To unsubscribe from this group and stop receiving emails from it, send an email to phpcassa+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Users{
Silvio {
Avatar: "avatar.jpg"
}
}
class User { protected $cassandra; # Cassandra instance protected $username; # Username function __construct($username){ // Initialize database connection $this->cassandra = new ConnectionPool( Settings\Database::$keyspace, Settings\Database::$serverAddresses ); $this->username = $username; }
public function changeAvatar($fileName){ $cf = new ColumnFamily($this->cassandra, Settings\Database::$usersCF); $cf->insert($this->username, array( "Avatar" => strip_tags($fileName) )); }}
--
You received this message because you are subscribed to a topic in the Google Groups "phpcassa" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/phpcassa/KRvEKI-6JwQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to phpcassa+u...@googlegroups.com.