common/models/entities/Role.php
public function getPermissionsIdList() {

		$permissions		= $this->permissionMappingList;
		$permissionsList	= [];

		foreach ( $permissions as $permission ) {

			array_push( $permissionsList, $permission->permissionId );
		}

		return $permissionsList;
	}
public function getPermissionsIdList() {

		$permissions		= $this->permissionMappingList;
		$permissionsList	= [];

		foreach ( $permissions as $permission ) {

			array_push( $permissionsList, $permission->permissionId );
		}

		return $permissionsList;
	}
public function getPermissionsIdList ( ) { $ permissions = $ this -> permissionMappingList ; $ permissionsList = [ ] ; foreach ( $ permissions as $ permission ) { array_push ( $ permissionsList , $ permission -> permissionId ) ; } return $ permissionsList ; }
Generate and return the array having id of mapped permissions.

@return array
Generate and return the array having id of mapped permissions .