aclFilter('$filter')(user='$user') = '$filtermethod'
"; - return $this->acl_filter[$filter] = $filtermethod; // cache the filter - } + return $this->acl_filter[$filter] = $filtermethod; // cache the filter + } - function read($info_id) { // did _not_ ensure ACL, has to be done by the calling code + function read($info_id) { // did _not_ ensure ACL, has to be done by the calling code if ($info_id <= 0 || $info_id != $this->data['info_id'] && - (!$this->db->query("select * FROM phpgw_infolog where info_id='$info_id'") || !$this->db->next_record())) + (!$this->db->query("select * FROM phpgw_infolog where info_id='$info_id'") || !$this->db->next_record())) { $this->init( ); return False; } - if ($info_id != $this->data['info_id']) { // data yet read in + if ($info_id != $this->data['info_id']) { // data yet read in $this->data = $this->db->Record; if ($this->data['info_subject'] == (substr($this->data['info_des'],0,60).' ...')) { @@ -302,19 +308,19 @@ } if ($this->data['info_addr_id'] && $this->data['info_from'] == $this->addr2name( $this->readAddr( $this->data['info_addr_id'] ))) { $this->data['info_from'] = ''; - } - } - return $this->data; + } + } + return $this->data; } function init() { global $phpgw_info; $this->data = array( 'info_owner' => $phpgw_info['user']['account_id'], - 'info_pri' => 'normal' ); - } + 'info_pri' => 'normal' ); + } - function delete($info_id) { // did _not_ ensure ACL, has to be done by the calling code + function delete($info_id) { // did _not_ ensure ACL, has to be done by the calling code global $phpgw_info; $this->db->query("delete FROM phpgw_infolog where info_id='$info_id' or info_id_parent='" . "$info_id' AND ((info_access='public' and info_owner != '" @@ -322,20 +328,20 @@ . $phpgw_info['user']['account_id'] . "'))" ,__LINE__,__FILE__); if ($this->data['info_id'] == $info_id) - $this->init( ); + $this->init( ); } - function write($values) { // did _not_ ensure ACL, has to be done by the calling code + function write($values) { // did _not_ ensure ACL, has to be done by the calling code global $phpgw_info; if ($values['responsible'] && $values['status'] == 'offer') { - $values['status'] = 'ongoing'; // have to match if not finished + $values['status'] = 'ongoing'; // have to match if not finished } if (!$values['info_id'] && !$values['owner']) { // $this->debug( "write(value[info_id]==0,values[owner]==0) --> owner set to user" ); $values['owner'] = $phpgw_info['user']['account_id']; // user gets owner } if (!$values['info_id'] && !$values['datecreated']) - $values['datecreated'] = time(); // set creation time + $values['datecreated'] = time(); // set creation time if (!$values['subject']) $values['subject'] = substr($values['des'],0,60).' ...'; @@ -343,10 +349,10 @@ $values['from'] = $this->addr2name( $this->readAddr( $values['addr_id'] )); while (list($key,$val) = each($values)) { - $this->data['info_'.$key] = $val; // update internal data + $this->data['info_'.$key] = $val; // update internal data switch ($key) { case 'info_id': - break; // later in where clause + break; // later in where clause case 'des': case 'subject': case 'from': case 'addr': $val = addslashes($val); default: @@ -361,10 +367,10 @@ /* * need to set $this->data['info_id'] with assigned autoincrement id */ - } + } //echo '{lang_info_action}
{lang_type} | -{lang_status} | -{lang_subject} | -{lang_startdate} | -{lang_enddate} | -{lang_owner} | -{lang_responsible} | -
{type} | -{status} | -{subject} | -{startdate} | -{enddate} | -{owner} {datecreated} |
- {responsible} | -
+
{lang_type} | +{lang_status} | +{lang_subject} | +{lang_startdate} | +{lang_enddate} | +{lang_owner} | +{lang_responsible} | +
{type} | +{status} | +{subject} {des} |
+ {startdate} | +{enddate} | +{owner} {datecreated} |
+ {responsible} | +
-
{deleteheader} | |||
- - - | -- - - - | +{no_button} | +{yes_button} |