Source of file Note.php
Size: 0,746 Bytes - Last Modified: 2021-12-24T05:16:40+00:00
/var/www/docs.ssmods.com/process/src/code/model/Note.php
1234567891011121314151617181920212223242526272829303132333435363738 | <?php /** * Notes on a particular contact * * @author ilateral * @package Contacts */ class Note extends DataObject { private static $db = array( "Content" => "Text", "Flag" => "boolean" ); private static $has_one = array( "Contact" => "Contact" ); private static $casting = array( 'FlaggedNice' => 'Boolean' ); private static $summary_fields = array( "FlaggedNice" => "Flagged", "Content.Summary" => "Content", "Created" => "Created" ); public function getFlaggedNice() { $obj = HTMLText::create(); $obj->setValue(($this->Flag)? '<span class="red">✱</span>' : ''); return $obj; } } |