phpDocumentor templates
[ class tree: templates ] [ index: templates ] [ all elements ]
Prev Next

Comment->method() info/samples

Intra-page navigation (TOC)

theoretically helpful text

lorem ipsum

Comment->anchor()

This function accepts no $params

  1. <?php
  2. $Comment->anchor()// display an anchor for for this comment
  3. ?>

⇑ top of page ⇑


Comment->author()

Minimum params with defaults shown >> chasing $params <<

  1. <?php
  2. // display comment author's name
  3. $Comment->authorarray(
  4.     'before_visitor' => '',
  5.     'after_visitor' => ' ['.T_('Visitor').']',
  6.     'before_user' => '',
  7.     'after_user' => ' ['.T_('Member').']',
  8.     'format' => 'htmlbody',
  9.     'make_link' => false,
  10. ) );
  11. ?>

⇑ top of page ⇑


Comment->author_email()

Minimum params with defaults shown >> chasing $params <<.

  1. <?php
  2. // display mailto link to comment author's email
  3. $Comment->author_emailarray(
  4.     'before' => '',
  5.     'after' => '',
  6.     'text' => '',
  7.     'make_link' => true,
  8. ) );
  9. ?>

⇑ top of page ⇑


Comment->author_ip()

Minimum params with defaults shown >> chasing $params <<.

  1. <?php
  2. // display comment author's IP address
  3. $Comment->author_iparray(
  4.     'before' => '',
  5.     'after' => '',
  6. ) );
  7. ?>

⇑ top of page ⇑


Comment->author_url()

Minimum params with defaults shown >> chasing $params <<

  1. <?php
  2. // display a link to comment author's URL
  3. $Comment->author_urlarray(
  4.     'before' => '',
  5.     'after' => '',
  6.     'text' => '',
  7.     'make_link' => true,
  8. ) );
  9. ?>

⇑ top of page ⇑


Comment->content()

This function accepts no $params

  1. <?php
  2. $Comment->content()// display the comment's contents
  3. ?>

⇑ top of page ⇑


Comment->date()

Minimum params with defaults shown >> chasing $params <<.

  1. <?php
  2. // display the comment's date
  3. $Comment->datearray(
  4.     'before' => '',
  5.     'after' => '',
  6.     'format' => locale_datefmt(),
  7.     'useGM' => false,
  8. ) );
  9. ?>

⇑ top of page ⇑


Comment->delete_link()

Minimum params with defaults shown >> chasing $params <<.

  1. <?php
  2. // display a link to delete a comment
  3. $Comment->delete_linkarray(
  4.     'before' => '',
  5.     'after' => ' ',
  6.     'text' => '#',
  7.     'title' => T_('Delete this comment'),
  8.     'class' => '',
  9.     'button' => false,
  10.     'glue' => '&amp;',
  11.     'save_context' => true,
  12. ) );
  13. ?>

⇑ top of page ⇑


Comment->deprecate_link()

Minimum params with defaults shown >> chasing $params <<.

  1. <?php
  2. // display a link to deprecate a comment
  3. $Comment->deprecate_linkarray(
  4.     'before' => '',
  5.     'after' => ' ',
  6.     'text' => get_icon'deprecate''imgtag' ).' '.T_('Deprecate!'),
  7.     'title' => T_('Deprecate this comment!'),
  8.     'class' => '',
  9.     'glue' => '&amp;',
  10.     'save_context' => true,
  11. ) );
  12. ?>

⇑ top of page ⇑


Comment->edit_link()

Minimum params with defaults shown >> chasing $params <<

  1. <?php
  2. // display a link to edit a comment
  3. $Comment->edit_linkarray(
  4.     'before' => '',
  5.     'after' => ' ',
  6.     'text' => get_icon'edit' ).' '.T_('Edit...'),
  7.     'title' => T_('Edit this comment'),
  8.     'class' => '',
  9.     'glue' => '&amp;',
  10.     'save_context' => true,
  11. ) );
  12. ?>

⇑ top of page ⇑


Comment->msgform_link()

Minimum params with defaults shown >> chasing $params <<.

  1. <?php
  2. // display a link to message form for this comment's author
  3. $Comment->msgform_link$Blog->get('msgformurl')array(
  4.     'before' => '',
  5.     'after' => ' ',
  6.     'text' => '#',
  7.     'title' => T_('Send email to comment author'),
  8.     'class' => '',
  9. ) );
  10. ?>

⇑ top of page ⇑


Comment->permanent_link()

Minimum params with defaults shown >> chasing $params <<.

  1. <?php
  2. // display a permalink link to the comment
  3. $Comment->permanent_linkarray(
  4.     'before' => '',
  5.     'after' => ' ',
  6.     'text' => '#',
  7.     'title' => T_('Permanent link to this comment'),
  8.     'class' => '',
  9.     'nofollow' => false,
  10. ) );
  11. ?>

⇑ top of page ⇑


Comment->publish_link()

Minimum params with defaults shown >> chasing $params <<.

  1. <?php
  2. // display a link to publish a comment
  3. $Comment->publish_linkarray(
  4.     'before' => '',
  5.     'after' => ' ',
  6.     'text' => get_icon'publish''imgtag' ).' '.T_('Publish!'),
  7.     'title' => T_('Publish this comment!'),
  8.     'class' => '',
  9.     'glue' => '&amp;',
  10.     'save_context' => true,
  11. ) );
  12. ?>

⇑ top of page ⇑


Comment->rating()

Minimum params with defaults shown >> chasing $params <<.

  1. <?php
  2. // display a comment's rating
  3. $Comment->ratingarray(
  4.     'before' => '<div class="comment_rating">',
  5.     'after' => '</div>',
  6.     'star_class' => 'middle',
  7. ) );
  8. ?>

⇑ top of page ⇑


Comment->rating_input()

Minimum params with defaults shown >> chasing $params <<.

  1. <?php
  2. // display options to rate a comment
  3. $Comment->rating_inputarray(
  4.     'before' => '',
  5.     'after' => '',
  6.     'label_low' => T_('Poor'),
  7.     'label_high' => T_('Excellent'),
  8. ) );
  9. ?>

⇑ top of page ⇑


Comment->rating_none_input()

Minimum params with defaults shown >> chasing $params <<.

  1. <?php
  2. // display option to reset rating
  3. $Comment->rating_none_inputarray(
  4.     'before' => '',
  5.     'after' => '',
  6.     'label' => T_('No rating'),
  7. ) );
  8. ?>

⇑ top of page ⇑


Comment->time()

Minimum params with defaults shown >> chasing $params <<.

  1. <?php
  2. // display the comment's time
  3. $Comment->timearray(
  4.     'before' => '',
  5.     'after' => '',
  6.     'format' => locale_datefmt(),
  7.     'useGM' => false,
  8. ) );
  9. ?>

⇑ top of page ⇑


Prev Up Next
Blog->method() info/samples Templates Tutorials Item->method() info/samples