aboutsummaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorSilvio <silvio@devlet.com.br>2010-08-20 15:35:06 -0300
committerSilvio <silvio@devlet.com.br>2010-08-20 15:35:06 -0300
commit9afef951067cfacb0e3a808e33670ae67e3e0583 (patch)
treedb00dd78810791ce2141164d4a9b360046699e94 /apps
parent9d6df04cfa4f4afb8e4d3bfadfefc02ff84607f2 (diff)
downloadcinisis-9afef951067cfacb0e3a808e33670ae67e3e0583.tar.gz
cinisis-9afef951067cfacb0e3a808e33670ae67e3e0583.tar.bz2
Using magic methods at CinisisDisplayHelper
Diffstat (limited to 'apps')
-rw-r--r--apps/field.php6
-rw-r--r--apps/index.php2
-rw-r--r--apps/repetition.php6
-rw-r--r--apps/subfield.php8
4 files changed, 11 insertions, 11 deletions
diff --git a/apps/field.php b/apps/field.php
index 3d36df6..697bd90 100644
--- a/apps/field.php
+++ b/apps/field.php
@@ -12,8 +12,8 @@ $fid = CinisisHttpHelper::get_numeric_arg('fid');
// Draw the document.
$display = new CinisisDisplayHelper('Field finder');
-$form = $display->form_input_text('entry', $entry);
-$form .= $display->form_input_text('fid', $fid);
+$form = $display->formInputText('entry', $entry);
+$form .= $display->formInputText('fid', $fid);
$display->form($form, basename(__FILE__));
// Get a db instance.
@@ -31,7 +31,7 @@ if ($isis) {
// Format output.
echo "<pre>\n";
echo "Selected field: $fid: ". $field['name'] ."\n";
- echo "Showing entry ". $display->entry_link($entry) ." from ". $isis->entries ." total entries.\n";
+ echo "Showing entry ". $display->entryLink($entry) ." from ". $isis->entries ." total entries.\n";
echo "Repetitions found: ". count($result[$field['name']]) .".\n";
echo "\n";
print_r($result[$field['name']]);
diff --git a/apps/index.php b/apps/index.php
index cd5e5bb..fd8877b 100644
--- a/apps/index.php
+++ b/apps/index.php
@@ -11,7 +11,7 @@ $entry = CinisisHttpHelper::get_numeric_arg('entry');
// Draw the document.
$display = new CinisisDisplayHelper('Isis Navigator');
-$display->form($display->form_input_text('entry', $entry));
+$display->form($display->formInputText('entry', $entry));
// Get a db instance.
$isis = new Cinisis();
diff --git a/apps/repetition.php b/apps/repetition.php
index a45e6f4..9e47361 100644
--- a/apps/repetition.php
+++ b/apps/repetition.php
@@ -12,8 +12,8 @@ $fid = CinisisHttpHelper::get_numeric_arg('fid');
// Draw the document.
$display = new CinisisDisplayHelper('Repetition finder');
-$form = $display->form_input_text('entry', $entry);
-$form .= $display->form_input_text('fid', $fid);
+$form = $display->formInputText('entry', $entry);
+$form .= $display->formInputText('fid', $fid);
$display->form($form, basename(__FILE__));
// Get a db instance.
@@ -31,7 +31,7 @@ if ($isis) {
// Format output.
echo "<pre>\n";
echo "Selected field: $fid: ". $field['name'] ."\n";
- echo "Showing entry ". $display->entry_link($entry) ." from ". $isis->entries ." total entries.\n";
+ echo "Showing entry ". $display->entryLink($entry) ." from ". $isis->entries ." total entries.\n";
echo "Repetitions found: ". count($result[$field['name']]) .".\n";
echo "\n";
print_r($result[$field['name']]);
diff --git a/apps/subfield.php b/apps/subfield.php
index a7a33f2..ba37291 100644
--- a/apps/subfield.php
+++ b/apps/subfield.php
@@ -13,9 +13,9 @@ $sid = CinisisHttpHelper::get_textual_arg('sid');
// Draw the document.
$display = new CinisisDisplayHelper('Subfield finder');
-$form = $display->form_input_text('entry', $entry);
-$form .= $display->form_input_text('fid', $fid);
-$form .= $display->form_input_text('sid', $sid);
+$form = $display->formInputText('entry', $entry);
+$form .= $display->formInputText('fid', $fid);
+$form .= $display->formInputText('sid', $sid);
$display->form($form, basename(__FILE__));
// Get a db instance.
@@ -35,7 +35,7 @@ if ($isis) {
echo "<pre>\n";
echo "Selected field: $fid: ". $field['name'] .".\n";
echo "Selected subfield: $sid: $subfield.\n";
- echo "Showing entry ". $display->entry_link($entry) ." from ". $isis->entries ." total entries.\n";
+ echo "Showing entry ". $display->entryLink($entry) ." from ". $isis->entries ." total entries.\n";
echo "Repetitions found: ". count($result[$field['name']]) .".\n";
echo "\n";
print_r($result[$field['name']]);