action; } /** * getDeleteKeep * @return boolean */ public function getDeleteKeep() { return $this->delete_keep; } /** * getDeleteKeepNum * @return integer */ public function getDeleteKeepNum() { return $this->delete_keep_num; } /** * Konstruktor, parst eine Zeile mit Tokens und ermittelt, welche Aktionen * auf einer Mailbox ausgeführt werden sollen * @param string $action */ public function __construct($action) { $args = explode(' ', $action); $numargs = count($args); for ($arg = 0; $arg < $numargs; $arg++) { switch ($args[$arg]) { case 'delete': $this->action = self::IMAP_ACTION_DELETE; break; case 'keep': $arg++; $this->delete_keep = true; $this->delete_keep_num = $args[$arg]; break; default: /** * @todo Exception werfen */ break; } } } }