Lines Matching defs:data
63 foreach ($note as $name => $data) {
64 $this->note[$name] = new refnotes_reference_database_note('{configuration}', $data);
310 * The data is organized in rows, one note per row. The first row contains the caption.
314 $data = array();
317 $data[$key[$c]] = $table[$r][$c];
320 $this->handleNote($data);
326 * the caption, the second one contains the data.
329 $data = array();
332 $data[$key[$r]] = $table[$r][1];
335 $this->handleNote($data);
353 foreach (refnotes_bibtex_parser::getInstance()->parse($text) as $data) {
354 $this->handleNote($data);
363 $data = array();
365 foreach ($pluginData['data'] as $key => $value) {
367 $data[$key . 's'] = implode(', ', $value);
370 $data[$key] = $value;
374 $this->handleNote($data);
381 private function handleNote($data) {
382 $note = new refnotes_reference_database_note($this->id, $data);
422 public function __construct($source, $data) {
428 $this->initializeConfigNote($data);
431 $this->initializePageNote($data);
440 public function initializeConfigNote($data) {
441 $this->data['note-text'] = $data['text'];
443 unset($data['text']);
445 $this->attributes = $data;
451 public function initializePageNote($data) {
452 if (isset($data['note-name'])) {
453 if (preg_match('/^' . refnotes_note::getNamePattern('full-extended') . '$/', $data['note-name']) == 1) {
454 $this->nameParts = refnotes_namespace::parseName($data['note-name']);
457 unset($data['note-name']);
460 $this->data = $data;