File/plugins/notes/compose.php

Description

Creates/Edits notes

Copyright (c) 2007-2008 The NaSMail Project This file is part of NaSMail notes plugin.

This plugin is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This plugin is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with plugin; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

  • version: $Id: compose.php 1365 2008-05-12 09:28:59Z tokul $
Includes
 include_once (SM_PATH.'functions/date.php') (line 31)
 include_once (SM_PATH.'functions/imap.php') (line 30)
 include_once (SM_PATH.'functions/mime.php') (line 32)
 include_once (SM_PATH.'class/deliver/Deliver.class.php') (line 149)
 include_once (SM_PATH.'class/deliver/Deliver_IMAP.class.php') (line 150)
 include_once (SM_PATH.'functions/forms.php') (line 33)
 include_once (SM_PATH.'functions/identity.php') (line 148)

Process compose form

 include_once (SM_PATH.'include/validate.php') (line 29)
Functions
notes_getByteSize (line 48)

Parse ini values like 8M and 2k into bytes

Function is based on getByteSize() from NaSMail src/compose.php

integer notes_getByteSize (integer|string $ini_size)
  • integer|string $ini_size
notes_process_uploads (line 82)

Adds uploaded files to message information.

string notes_process_uploads (integer $note_id,  &$note_ids)
  • integer $note_id
  • &$note_ids
notes_show_buttons (line 35)
void notes_show_buttons ()
notes_sort_files (line 122)

Callback function used to sort files in $notes_ids array

void notes_sort_files (array $a, array $b)
  • array $a: first note[files] array key
  • array $b: second note[files] array key

Documentation generated on Sun, 22 Nov 2009 17:36:20 +0200 by phpDocumentor 1.4.3