Fixed conventions in shortcode docs

This commit is contained in:
Ingo Schommer 2013-05-17 14:02:33 +02:00
parent 306d3b0c7e
commit e0f4bd6113

View File

@ -36,8 +36,8 @@ ensure they're casted correctly:
:::php
class MyObject extends DataObject {
static $db = array('Content' => 'HTMLText');
static $casting = array('ContentHighlighted' => 'HTMLText');
private static $db = array('Content' => 'HTMLText');
private static $casting = array('ContentHighlighted' => 'HTMLText');
public function ContentHighlighted($term) {
return str_replace($term, "<em>$term</em>", $this->Content);
}