dealAddress
dealAddress($data, $options = array())
Description:
A single helper to try and keep Deal.address as a standard presentation.
Options:
array(
'input' => false
, 'short' => false
, 'add_sub'=> false
, 'editable' => false
, 'only_need' => ''
,
)
Example:
echo $this->Deals->dealAddress(
$data
, array(
'add_sub' => true
, 'short' => true
, 'editable' => true
,
)
);
/**
* A single helper to try and keep Deal.address as a standard presentation.
*
*
*
*/
public function dealAddress($data, $options = array()) {
//
$return = array();
//
$default = array(
'input' => false
, 'short' => false
, 'add_sub' => false
, 'editable' => false
, 'only_need' => ''
,
);
...