Beispiel #1
0
 /**
  * Construct a new SQL storage object.
  *
  * @param string $notepad  The name of the notepad to load/save notes from.
  * @param array $params    The connection parameters
  *
  * @throws InvalidArguementException
  */
 public function __construct($notepad, $params = array())
 {
     if (empty($params['db'])) {
         throw new InvalidArgumentException('Missing required connection parameter.');
     }
     $this->_notepad = $notepad;
     $this->_db = $params['db'];
     $this->_charset = $params['charset'];
     $this->_column = $this->_db->column('mnemo_memos', 'memo_body');
 }