* checking file permissions.
* ? writeable => allow writing into address book. Used only when
* detect_writeable is set to false.
+ * ? listing => enable/disable listing
*</pre>
* NOTE. This class should not be used directly. Use the
* "AddressBook" class instead.
* @var bool
*/
var $writeable = false;
+ /**
+ * controls listing of address book
+ * @var bool
+ */
+ var $listing = true;
/**
* Umask of the file
* @var string
if(!empty($param['writeable'])) {
$this->writeable = $param['writeable'];
}
+ if(isset($param['listing'])) {
+ $this->listing = $param['listing'];
+ }
$this->open(true);
} else {
*/
function list_addr() {
$res = array();
+
+ if(isset($this->listing) && !$this->listing) {
+ return array();
+ }
+
$this->open();
@rewind($this->filehandle);