Class FormatterAbstract - echiong/testRepo GitHub Wiki

##Class FormatterAbstract

Description of FormatterAbstract

	###Direct known subclasses
		<a href="Class UsageNotification.md">UsageNotificationggg</a>







	<b>Abstract</b><br />

Author: Alel
Located at application/libraries/formatters/FormatterAbstract.php

##Methods summary


public __construct ( CI_Controller $CI, mixed $notificationData )


protected init ( )

Perform intialization here.


abstract****public string toString ( array $options = null )

Implementation is specific to notification type. Return string represenation of a notification entry

Returns string


protected _format ( )

Called before the array representation is assembled. Override this to modify any value before return.


protected string formatTime ( )

Returns string representation of time. Displayed in notification area.

Returns string


public array toArray ( )

Assembles array to to be used in JSON response for notification area.

Returns array

<table class="summary" id="properties">
<caption>Properties summary</caption>
<tr data-order="CI" id="$CI">
	<td class="attributes"><code>
		protected  
		<code><a href="Class CI_Controller.md">CI_Controller</a></code>
	</code></td>

	<td class="name">

$CI

#
		<div class="description detailed">
			

		</div>
	</div></td>
</tr>
<tr data-order="_toID" id="$_toID">
	<td class="attributes"><code>
		protected  
		mixed
	</code></td>

	<td class="name">

$_toID

#
		<div class="description detailed">
			

		</div>
	</div></td>
</tr>
<tr data-order="_fromID" id="$_fromID">
	<td class="attributes"><code>
		protected  
		mixed
	</code></td>

	<td class="name">

$_fromID

#
		<div class="description detailed">
			

		</div>
	</div></td>
</tr>
<tr data-order="_fromType" id="$_fromType">
	<td class="attributes"><code>
		protected  
		mixed
	</code></td>

	<td class="name">

$_fromType

#
		<div class="description detailed">
			

		</div>
	</div></td>
</tr>
<tr data-order="_toType" id="$_toType">
	<td class="attributes"><code>
		protected  
		mixed
	</code></td>

	<td class="name">

$_toType

#
		<div class="description detailed">
			

		</div>
	</div></td>
</tr>
<tr data-order="_timeStamp" id="$_timeStamp">
	<td class="attributes"><code>
		protected  
		mixed
	</code></td>

	<td class="name">

$_timeStamp

#
		<div class="description detailed">
			

		</div>
	</div></td>
</tr>
<tr data-order="displayString" id="$displayString">
	<td class="attributes"><code>
		protected  
		mixed
	</code></td>

	<td class="name">

$displayString

#
		<div class="description detailed">
			

		</div>
	</div></td>
</tr>
<tr data-order="time" id="$time">
	<td class="attributes"><code>
		protected  
		mixed
	</code></td>

	<td class="name">

$time

#
		<div class="description detailed">
			

		</div>
	</div></td>
</tr>
<tr data-order="to" id="$to">
	<td class="attributes"><code>
		protected  
		mixed
	</code></td>

	<td class="name">

$to

#
		<div class="description detailed">
			

		</div>
	</div></td>
</tr>
<tr data-order="toid" id="$toid">
	<td class="attributes"><code>
		protected  
		mixed
	</code></td>

	<td class="name">

$toid

#
		<div class="description detailed">
			

		</div>
	</div></td>
</tr>
<tr data-order="avatar" id="$avatar">
	<td class="attributes"><code>
		protected  
		mixed
	</code></td>

	<td class="name">

$avatar

#
		<div class="description detailed">
			

		</div>
	</div></td>
</tr>
</table>
⚠️ **GitHub.com Fallback** ⚠️