NetworkPermission Class extending Permission

/ The NetworkPermission must be held by all those who wish to preform network operations. The type of operation determines what attributes must be set within this NetworkPermission /

Class Methods

Constructs this NetworkPermission

function __construct() : void


This function is called when adding a NetworkPermission to another Permissions object to ensure that you are allowed to do it

function __permission_check(PermissionProperty p1, PermissionProperty p2) : void

This function sets this Network Permission's canSendEmail property allowing the holder of this NetworkPermission to send emails

function setCanSendEmail(boolean can_send_email) : void


This function sets this Network Permission's canUseCurl property allowing the holder of this NetworkPermission to use curl

function setCanUseCurl(boolean can_use_curl) : void

This function sets this Network Permission's canLookup property allowing the holder of this NetworkPermission to lookup hostnames and other Network related information

function setCanLookup(boolean can_lookup) : void


This function returns true if this NetworkPermission allows us to send emails

function getCanSendEmail() : boolean

This function returns true if this NetworkPermission allows access to curl

function getCanUseCurl() : boolean


This function returns true if this NetworkPermission allows us to lookup hostnames and other network information

function getCanLookup() : boolean