mirror of
				https://github.com/pierre42100/ComunicAPI
				synced 2025-11-04 04:04:20 +00:00 
			
		
		
		
	Can return the URL and the description of a group to the API.
This commit is contained in:
		@@ -10,11 +10,13 @@ require_once __DIR__."/GroupInfo.php";
 | 
			
		||||
 | 
			
		||||
class AdvancedGroupInfo extends GroupInfo {
 | 
			
		||||
 | 
			
		||||
    //Private fields
 | 
			
		||||
    private $time_create = -1;
 | 
			
		||||
	//Private fields
 | 
			
		||||
	private $time_create = -1;
 | 
			
		||||
	private $url;
 | 
			
		||||
	private $description;
 | 
			
		||||
 | 
			
		||||
    //Get and set the creation time of the group
 | 
			
		||||
    public function set_time_create(int $time_create){
 | 
			
		||||
	//Get and set the creation time of the group
 | 
			
		||||
	public function set_time_create(int $time_create){
 | 
			
		||||
		$this->time_create = $time_create;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
@@ -24,6 +26,31 @@ class AdvancedGroupInfo extends GroupInfo {
 | 
			
		||||
 | 
			
		||||
	public function get_time_create() : int {
 | 
			
		||||
		return $this->time_create;
 | 
			
		||||
    }
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	//Set and get url
 | 
			
		||||
	public function set_url(string $url){
 | 
			
		||||
		$this->url = $url == "" ? null : $url;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	public function has_url() : bool {
 | 
			
		||||
		return $this->url != null;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	public function get_url() : string {
 | 
			
		||||
		return $this->url != null ? $this->url : "null";
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	//Set and get description
 | 
			
		||||
	public function set_description(string $description){
 | 
			
		||||
		$this->description = $description == "" ? null : $description;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	public function has_description() : bool {
 | 
			
		||||
		return $this->description != null;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	public function get_description() : string {
 | 
			
		||||
		return $this->description != null ? $this->description : "null";
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user