Code Context?>
<meta property="og:title" content="<?php echo $category['PrototypeCategory']['name']; ?>" />
<meta property="og:description" content="<?php echo $this->Text->truncate(preg_replace("/\r|\n|\"/", '', strip_tags($category['PrototypeCategory']['overview'])), 200, array('ellipses' => '...')); ?>" />
$viewFile = '/home/realtycap/rog.realtycap.ca/app/View/Elements/metas.ctp'
$dataForView = array(
'bodyClass' => 'plugin-prototype',
'loggedInUser' => array(),
'css' => array(),
'loggedInUserImage' => array(),
'perPageOptions' => array(
(int) 6 => (int) 6,
(int) 12 => (int) 12,
(int) 24 => (int) 24,
(int) 48 => (int) 48
),
'bodyId' => 'body-wiki-helpers',
'debugToolbarPanels' => array(
'history' => array(
'content' => array(
[maximum depth reached]
),
'elementName' => 'history_panel',
'plugin' => 'debug_kit',
'title' => null,
'disableTimer' => true
),
'session' => array(
'content' => array(
[maximum depth reached]
),
'elementName' => 'session_panel',
'plugin' => 'debug_kit',
'title' => null,
'disableTimer' => true
),
'request' => array(
'content' => array(
[maximum depth reached]
),
'elementName' => 'request_panel',
'plugin' => 'debug_kit',
'title' => null,
'disableTimer' => true
),
'sql_log' => array(
'content' => array(
[maximum depth reached]
),
'elementName' => 'sql_log_panel',
'plugin' => 'debug_kit',
'title' => null,
'disableTimer' => true
),
'timer' => array(
'content' => null,
'elementName' => 'timer_panel',
'plugin' => 'debug_kit',
'title' => null,
'disableTimer' => true
),
'log' => array(
'content' => object(DebugKitLogListener) {},
'elementName' => 'log_panel',
'plugin' => 'debug_kit',
'title' => null,
'disableTimer' => true
),
'variables' => array(
'content' => array(
[maximum depth reached]
),
'elementName' => 'variables_panel',
'plugin' => 'debug_kit',
'title' => null,
'disableTimer' => true
),
'include' => array(
'content' => array(
[maximum depth reached]
),
'elementName' => 'include_panel',
'plugin' => 'debug_kit',
'title' => null,
'disableTimer' => true
)
),
'debugToolbarJavascript' => array(
'jquery' => 'DebugKit.jquery',
'libs' => 'DebugKit.js_debug_toolbar'
),
'metas' => array(
'application-name' => '',
'robots' => '',
'og:image' => ''
),
'layout' => '',
'extraFooterCode' => '',
'extraHeaderCode' => '',
'pageIntro' => '',
'breadcrumbs' => array(
'Wiki' => array(
'plugin' => 'prototype',
'controller' => 'prototype_instances',
'action' => 'view',
'instance' => 'wiki',
'admin' => false
),
'Helpers' => array(
'plugin' => 'prototype',
'controller' => 'prototype_categories',
'action' => 'view',
'instance' => 'wiki',
'category' => 'helpers',
'admin' => false
)
),
'paginationLimit' => '24',
'paginationOptions' => array(
(int) 0 => (int) 24,
(int) 1 => (int) 48,
(int) 2 => (int) 96
),
'prototypeCategory' => array(
'PrototypeCategory' => array(
'id' => '5',
'name' => 'Helpers',
'rank' => '5',
'created' => '2023-12-15 10:43:25',
'modified' => '2023-12-15 15:43:56',
'slug' => 'helpers',
'prototype_instance_id' => '4',
'parent_id' => null,
'lft' => '4',
'rght' => '9',
'deleted' => false,
'deleted_date' => null,
'head_title' => 'Helpers',
(int) 0 => array(
[maximum depth reached]
),
(int) 1 => array(
[maximum depth reached]
)
),
'PublishingInformation' => array(
'id' => '65',
'created' => '2023-12-15 10:43:25',
'modified' => '2023-12-15 10:43:25',
'model' => 'PrototypeCategory',
'foreign_key' => '5',
'start' => '2023-12-15 10:43:25',
'end' => null,
'published' => true
),
'Image' => array(),
'Document' => array(),
'CategoryBannerImage' => array(),
'CustomFieldValue' => array(),
'MetaValue' => array(
(int) 1 => array(
[maximum depth reached]
),
(int) 2 => array(
[maximum depth reached]
),
(int) 3 => array(
[maximum depth reached]
),
(int) 4 => array(
[maximum depth reached]
)
)
),
'category' => array(
'PrototypeCategory' => array(
'id' => '5',
'name' => 'Helpers',
'rank' => '5',
'created' => '2023-12-15 10:43:25',
'modified' => '2023-12-15 15:43:56',
'slug' => 'helpers',
'prototype_instance_id' => '4',
'parent_id' => null,
'lft' => '4',
'rght' => '9',
'deleted' => false,
'deleted_date' => null,
'head_title' => 'Helpers',
(int) 0 => array(
[maximum depth reached]
),
(int) 1 => array(
[maximum depth reached]
)
),
'PublishingInformation' => array(
'id' => '65',
'created' => '2023-12-15 10:43:25',
'modified' => '2023-12-15 10:43:25',
'model' => 'PrototypeCategory',
'foreign_key' => '5',
'start' => '2023-12-15 10:43:25',
'end' => null,
'published' => true
),
'Image' => array(),
'Document' => array(),
'CategoryBannerImage' => array(),
'CustomFieldValue' => array(),
'MetaValue' => array(
(int) 1 => array(
[maximum depth reached]
),
(int) 2 => array(
[maximum depth reached]
),
(int) 3 => array(
[maximum depth reached]
),
(int) 4 => array(
[maximum depth reached]
)
)
),
'customFields' => array(),
'items' => array(
(int) 0 => array(
'PrototypeItem' => array(
[maximum depth reached]
),
'PublishingInformation' => array(
[maximum depth reached]
),
'Image' => array([maximum depth reached]),
'Document' => array([maximum depth reached]),
'CustomFieldValue' => array(
[maximum depth reached]
),
'MetaValue' => array(
[maximum depth reached]
)
),
(int) 1 => array(
'PrototypeItem' => array(
[maximum depth reached]
),
'PublishingInformation' => array(
[maximum depth reached]
),
'Image' => array([maximum depth reached]),
'Document' => array([maximum depth reached]),
'CustomFieldValue' => array(
[maximum depth reached]
),
'MetaValue' => array(
[maximum depth reached]
)
),
(int) 2 => array(
'PrototypeItem' => array(
[maximum depth reached]
),
'PublishingInformation' => array(
[maximum depth reached]
),
'Image' => array([maximum depth reached]),
'Document' => array([maximum depth reached]),
'CustomFieldValue' => array(
[maximum depth reached]
),
'MetaValue' => array(
[maximum depth reached]
)
),
(int) 3 => array(
'PrototypeItem' => array(
[maximum depth reached]
),
'PublishingInformation' => array(
[maximum depth reached]
),
'Image' => array([maximum depth reached]),
'Document' => array([maximum depth reached]),
'CustomFieldValue' => array(
[maximum depth reached]
),
'MetaValue' => array(
[maximum depth reached]
)
),
(int) 4 => array(
'PrototypeItem' => array(
[maximum depth reached]
),
'PublishingInformation' => array(
[maximum depth reached]
),
'Image' => array([maximum depth reached]),
'Document' => array([maximum depth reached]),
'CustomFieldValue' => array(
[maximum depth reached]
),
'MetaValue' => array(
[maximum depth reached]
)
),
(int) 5 => array(
'PrototypeItem' => array(
[maximum depth reached]
),
'PublishingInformation' => array(
[maximum depth reached]
),
'Image' => array([maximum depth reached]),
'Document' => array([maximum depth reached]),
'CustomFieldValue' => array(
[maximum depth reached]
),
'MetaValue' => array(
[maximum depth reached]
)
),
(int) 6 => array(
'PrototypeItem' => array(
[maximum depth reached]
),
'PublishingInformation' => array(
[maximum depth reached]
),
'Image' => array([maximum depth reached]),
'Document' => array([maximum depth reached]),
'CustomFieldValue' => array(
[maximum depth reached]
),
'MetaValue' => array(
[maximum depth reached]
)
),
(int) 7 => array(
'PrototypeItem' => array(
[maximum depth reached]
),
'PublishingInformation' => array(
[maximum depth reached]
),
'Image' => array([maximum depth reached]),
'Document' => array([maximum depth reached]),
'CustomFieldValue' => array(
[maximum depth reached]
),
'MetaValue' => array(
[maximum depth reached]
)
),
(int) 8 => array(
'PrototypeItem' => array(
[maximum depth reached]
),
'PublishingInformation' => array(
[maximum depth reached]
),
'Image' => array([maximum depth reached]),
'Document' => array([maximum depth reached]),
'CustomFieldValue' => array(
[maximum depth reached]
),
'MetaValue' => array(
[maximum depth reached]
)
),
(int) 9 => array(
'PrototypeItem' => array(
[maximum depth reached]
),
'PublishingInformation' => array(
[maximum depth reached]
),
'Image' => array([maximum depth reached]),
'Document' => array([maximum depth reached]),
'CustomFieldValue' => array(
[maximum depth reached]
),
'MetaValue' => array(
[maximum depth reached]
)
),
(int) 10 => array(
'PrototypeItem' => array(
[maximum depth reached]
),
'PublishingInformation' => array(
[maximum depth reached]
),
'Image' => array([maximum depth reached]),
'Document' => array([maximum depth reached]),
'CustomFieldValue' => array(
[maximum depth reached]
),
'MetaValue' => array(
[maximum depth reached]
)
),
(int) 11 => array(
'PrototypeItem' => array(
[maximum depth reached]
),
'PublishingInformation' => array(
[maximum depth reached]
),
'Image' => array([maximum depth reached]),
'Document' => array([maximum depth reached]),
'CustomFieldValue' => array(
[maximum depth reached]
),
'MetaValue' => array(
[maximum depth reached]
)
),
(int) 12 => array(
'PrototypeItem' => array(
[maximum depth reached]
),
'PublishingInformation' => array(
[maximum depth reached]
),
'Image' => array([maximum depth reached]),
'Document' => array([maximum depth reached]),
'CustomFieldValue' => array(
[maximum depth reached]
),
'MetaValue' => array([maximum depth reached])
),
(int) 13 => array(
'PrototypeItem' => array(
[maximum depth reached]
),
'PublishingInformation' => array(
[maximum depth reached]
),
'Image' => array([maximum depth reached]),
'Document' => array([maximum depth reached]),
'CustomFieldValue' => array(
[maximum depth reached]
),
'MetaValue' => array([maximum depth reached])
),
(int) 14 => array(
'PrototypeItem' => array(
[maximum depth reached]
),
'PublishingInformation' => array(
[maximum depth reached]
),
'Image' => array([maximum depth reached]),
'Document' => array([maximum depth reached]),
'CustomFieldValue' => array(
[maximum depth reached]
),
'MetaValue' => array([maximum depth reached])
),
(int) 15 => array(
'PrototypeItem' => array(
[maximum depth reached]
),
'PublishingInformation' => array(
[maximum depth reached]
),
'Image' => array([maximum depth reached]),
'Document' => array([maximum depth reached]),
'CustomFieldValue' => array(
[maximum depth reached]
),
'MetaValue' => array(
[maximum depth reached]
)
),
(int) 16 => array(
'PrototypeItem' => array(
[maximum depth reached]
),
'PublishingInformation' => array(
[maximum depth reached]
),
'Image' => array([maximum depth reached]),
'Document' => array([maximum depth reached]),
'CustomFieldValue' => array(
[maximum depth reached]
),
'MetaValue' => array(
[maximum depth reached]
)
),
(int) 17 => array(
'PrototypeItem' => array(
[maximum depth reached]
),
'PublishingInformation' => array(
[maximum depth reached]
),
'Image' => array([maximum depth reached]),
'Document' => array([maximum depth reached]),
'CustomFieldValue' => array(
[maximum depth reached]
),
'MetaValue' => array([maximum depth reached])
),
(int) 18 => array(
'PrototypeItem' => array(
[maximum depth reached]
),
'PublishingInformation' => array(
[maximum depth reached]
),
'Image' => array([maximum depth reached]),
'Document' => array([maximum depth reached]),
'CustomFieldValue' => array(
[maximum depth reached]
),
'MetaValue' => array(
[maximum depth reached]
)
),
(int) 19 => array(
'PrototypeItem' => array(
[maximum depth reached]
),
'PublishingInformation' => array(
[maximum depth reached]
),
'Image' => array([maximum depth reached]),
'Document' => array([maximum depth reached]),
'CustomFieldValue' => array(
[maximum depth reached]
),
'MetaValue' => array([maximum depth reached])
),
(int) 20 => array(
'PrototypeItem' => array(
[maximum depth reached]
),
'PublishingInformation' => array(
[maximum depth reached]
),
'Image' => array([maximum depth reached]),
'Document' => array([maximum depth reached]),
'CustomFieldValue' => array(
[maximum depth reached]
),
'MetaValue' => array([maximum depth reached])
),
(int) 21 => array(
'PrototypeItem' => array(
[maximum depth reached]
),
'PublishingInformation' => array(
[maximum depth reached]
),
'Image' => array([maximum depth reached]),
'Document' => array([maximum depth reached]),
'CustomFieldValue' => array(
[maximum depth reached]
),
'MetaValue' => array(
[maximum depth reached]
)
),
(int) 22 => array(
'PrototypeItem' => array(
[maximum depth reached]
),
'PublishingInformation' => array(
[maximum depth reached]
),
'Image' => array([maximum depth reached]),
'Document' => array([maximum depth reached]),
'CustomFieldValue' => array(
[maximum depth reached]
),
'MetaValue' => array(
[maximum depth reached]
)
),
(int) 23 => array(
'PrototypeItem' => array(
[maximum depth reached]
),
'PublishingInformation' => array(
[maximum depth reached]
),
'Image' => array([maximum depth reached]),
'Document' => array([maximum depth reached]),
'CustomFieldValue' => array(
[maximum depth reached]
),
'MetaValue' => array([maximum depth reached])
),
(int) 24 => array(
'PrototypeItem' => array(
[maximum depth reached]
),
'PublishingInformation' => array(
[maximum depth reached]
),
'Image' => array([maximum depth reached]),
'Document' => array([maximum depth reached]),
'CustomFieldValue' => array(
[maximum depth reached]
),
'MetaValue' => array(
[maximum depth reached]
)
),
(int) 25 => array(
'PrototypeItem' => array(
[maximum depth reached]
),
'PublishingInformation' => array(
[maximum depth reached]
),
'Image' => array([maximum depth reached]),
'Document' => array([maximum depth reached]),
'CustomFieldValue' => array(
[maximum depth reached]
),
'MetaValue' => array(
[maximum depth reached]
)
),
(int) 26 => array(
'PrototypeItem' => array(
[maximum depth reached]
),
'PublishingInformation' => array(
[maximum depth reached]
),
'Image' => array([maximum depth reached]),
'Document' => array([maximum depth reached]),
'CustomFieldValue' => array(
[maximum depth reached]
),
'MetaValue' => array(
[maximum depth reached]
)
),
(int) 27 => array(
'PrototypeItem' => array(
[maximum depth reached]
),
'PublishingInformation' => array(
[maximum depth reached]
),
'Image' => array([maximum depth reached]),
'Document' => array([maximum depth reached]),
'CustomFieldValue' => array(
[maximum depth reached]
),
'MetaValue' => array(
[maximum depth reached]
)
),
(int) 28 => array(
'PrototypeItem' => array(
[maximum depth reached]
),
'PublishingInformation' => array(
[maximum depth reached]
),
'Image' => array([maximum depth reached]),
'Document' => array([maximum depth reached]),
'CustomFieldValue' => array(
[maximum depth reached]
),
'MetaValue' => array(
[maximum depth reached]
)
)
),
'paginatedItems' => false,
'pageHeading' => 'Helpers',
'titleTag' => 'Helpers - RealtyCAP - APP - ',
'loggedIn' => false,
'superAdmin' => false,
'admin' => false,
'_instance' => array(
'PrototypeInstance' => array(
'id' => '4',
'name' => 'Wiki',
'description' => '',
'slug' => 'wiki',
'created' => '2023-12-15 10:39:48',
'modified' => '2023-12-15 12:07:35',
'use_categories' => true,
'public' => true,
'footer_text' => null,
'layout' => 'default',
'item_order' => 'PrototypeItem.name ASC',
'allow_instance_view' => true,
'allow_category_views' => true,
'allow_item_views' => true,
'item_image_type' => 'none',
'item_document_type' => 'none',
'category_image_type' => 'none',
'category_document_type' => 'none',
'item_summary_pagination' => false,
'item_summary_pagination_limit' => null,
'use_featured_items' => false,
'all_items_featured' => false,
'number_of_featured_items' => '1',
'autoload_featured_items_in_layouts' => 'home',
'deleted' => false,
'deleted_date' => null,
'name_field_label' => 'Name',
'head_title' => 'Wiki',
'category_changefreq' => '',
'use_page_banner_images' => false,
'fallback_to_instance_banner_image' => false,
'use_page_banner_image_categories' => false,
'use_page_banner_image_items' => false,
'item_changefreq' => '',
'controllers' => array(
[maximum depth reached]
),
'models' => array(
[maximum depth reached]
)
),
'PublishingInformation' => array(
'id' => '64',
'created' => '2023-12-15 10:39:48',
'modified' => '2023-12-15 10:39:48',
'model' => 'PrototypeInstance',
'foreign_key' => '4',
'start' => '2023-12-15 10:39:48',
'end' => null,
'published' => true
),
'Image' => array(),
'CustomFieldValue' => array(),
'MetaValue' => array(
(int) 1 => array(
[maximum depth reached]
),
(int) 2 => array(
[maximum depth reached]
),
(int) 3 => array(
[maximum depth reached]
),
(int) 4 => array(
[maximum depth reached]
)
),
'Group' => array(
'Group' => array(
[maximum depth reached]
)
)
),
'instance' => array(
'PrototypeInstance' => array(
'id' => '4',
'name' => 'Wiki',
'description' => '',
'slug' => 'wiki',
'created' => '2023-12-15 10:39:48',
'modified' => '2023-12-15 12:07:35',
'use_categories' => true,
'public' => true,
'footer_text' => null,
'layout' => 'default',
'item_order' => 'PrototypeItem.name ASC',
'allow_instance_view' => true,
'allow_category_views' => true,
'allow_item_views' => true,
'item_image_type' => 'none',
'item_document_type' => 'none',
'category_image_type' => 'none',
'category_document_type' => 'none',
'item_summary_pagination' => false,
'item_summary_pagination_limit' => null,
'use_featured_items' => false,
'all_items_featured' => false,
'number_of_featured_items' => '1',
'autoload_featured_items_in_layouts' => 'home',
'deleted' => false,
'deleted_date' => null,
'name_field_label' => 'Name',
'head_title' => 'Wiki',
'category_changefreq' => '',
'use_page_banner_images' => false,
'fallback_to_instance_banner_image' => false,
'use_page_banner_image_categories' => false,
'use_page_banner_image_items' => false,
'item_changefreq' => '',
'controllers' => array(
[maximum depth reached]
),
'models' => array(
[maximum depth reached]
)
),
'PublishingInformation' => array(
'id' => '64',
'created' => '2023-12-15 10:39:48',
'modified' => '2023-12-15 10:39:48',
'model' => 'PrototypeInstance',
'foreign_key' => '4',
'start' => '2023-12-15 10:39:48',
'end' => null,
'published' => true
),
'Image' => array(),
'CustomFieldValue' => array(),
'MetaValue' => array(
(int) 1 => array(
[maximum depth reached]
),
(int) 2 => array(
[maximum depth reached]
),
(int) 3 => array(
[maximum depth reached]
),
(int) 4 => array(
[maximum depth reached]
)
),
'Group' => array(
'Group' => array(
[maximum depth reached]
)
)
),
'validFileExtentsions' => array(
(int) 0 => 'pdf',
(int) 1 => 'doc',
(int) 2 => 'docx',
(int) 3 => 'xls',
(int) 4 => 'xlsx',
(int) 5 => 'jpg',
(int) 6 => 'gif',
(int) 7 => 'png'
),
'validFileMimeTypes' => array(
(int) 0 => 'application/pdf',
(int) 1 => 'application\/msword',
(int) 2 => 'application\/vnd.openxmlformats-officedocument.wordprocessingml.document',
(int) 3 => 'application\/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml',
(int) 4 => 'application\/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
(int) 5 => 'image/png',
(int) 6 => 'image/jpeg',
(int) 7 => 'image/gif',
(int) 8 => 'application/vnd.ms-excel'
),
'listOrSell' => array(
(int) 1 => 'Listing',
(int) 2 => 'Buyer'
),
'dealListOrSaleLabel' => array(
(int) 1 => 'List Date',
(int) 2 => 'Closing Date'
),
'content_for_layout' => '<div><a href="/wiki">Index</a></div><h1>Helpers</h1><h2><a href="/wiki/view/35-deal-add">addDealLink($options = array())</a></h2>
<p>Description:<br>Returns HTML->link that opens the form to add a new Deal.</p><h2><a href="/wiki/view/38-todo-approval-needed">approvalNeeded($todo_values)</a></h2>
<p>Description:<br></p><h2><a href="/wiki/view/45-deals-archive-toggle-link">archivedDealsLink($archived = null, $options = array())</a></h2>
<p>Description:<br></p><h2><a href="/wiki/view/36-deal-clone">cloneDealLink($id, $options = array())</a></h2>
<p>Description:<br>Returns HTML->link that clones a Deal.</p><h2><a href="/wiki/view/44-dashboard-ajax-toggle">dashboardAjaxToggle($options = array())</a></h2>
<p>Description:<br></p><h2><a href="/wiki/view/19-deal-address">dealAddress($data, $options = array())</a></h2>
<p>Description:<br>A single helper to try and keep Deal.address as a standard presentation.</p><h2><a href="/wiki/view/20-deal-complete">dealComplete($data, $options = array())</a></h2>
<p>Description:<br>Complete - all TodoValues have been received and approved.</p><h2><a href="/wiki/view/21-deal-incomplete">dealIncomplete($data, $options = array())</a></h2>
<p>Description:<br>Incomplete - closing date is tomorrow or greater; not all TodoValues have been received.</p><h2><a href="/wiki/view/23-deal-late">dealLate($data, $options = array())</a></h2>
<p>Description:<br>Late - closing date is today or earlier; approval has not been given to all TodoValues.</p><h2><a href="/wiki/view/22-deal-pending">dealPending($data, $options = array())</a></h2>
<p>Description:<br>Pending - closing date is tomorrow or greater; all TodoValues have been received but not all that need approval have been approved.</p><h2><a href="/wiki/view/24-deal-status">dealStatus($data, $options = array())</a></h2>
<p>Description:<br>Returns array:<br />
array(<br />
'status' => null<br />
, 'class' => null<br />
, 'complete' => false<br />
,<br />
)</p><h2><a href="/wiki/view/25-deal-types-as-list">dealTypesAsList($deal, $options = array())</a></h2>
<p>Description:<br>Returns a string/list of the DealTypes.</p><h2><a href="/wiki/view/30-deal-edit">editDealLink($id, $options = array())</a></h2>
<p>Description:<br>Returns HTML->link that opens Deal for editing.</p><h2><a href="/wiki/view/29-deal-export-data">exportDealData($id, $options = array())</a></h2>
<p>Description:<br>Returns HTML->link that generates a CSV export of the Activity table for the specific Deal.</p><h2><a href="/wiki/view/33-deal-grid-view-link">gridtViewLink($options = array())</a></h2>
<p>Description:<br>Returns HTML->link that opens the grid view.</p><h2><a href="/wiki/view/27-todovalue-involved-parties">involvedParties($data, $options = array())</a></h2>
<p>Description:<br>Returns array of those working on the Deal.</p><h2><a href="/wiki/view/43-deals-progress-bar-class">progressbarClass($progressbarWidth)</a></h2>
<p>Description:<br></p><h2><a href="/wiki/view/34-deal-table-view-link">tableViewLink($options = array())</a></h2>
<p>Description:<br>Returns HTML->link that opens the table view.</p><h2><a href="/wiki/view/40-todo-test-approved">testApproved($todo_value)</a></h2>
<p>Description:<br></p><h2><a href="/wiki/view/26-todovalue-due-date">todoDueDate($data, $options = array())</a></h2>
<p>Description:<br>Returns timestamp (default) value of the Todo(Value) due date. You can pass a PHP date() format if you wish within the options array as 'format'.</p><h2><a href="/wiki/view/16-todovalue-current">todoValueCurrent($todo_value, $options = array())</a></h2>
<p>Description:<br>Returns Boolean:<br />
- true the TodoValue is current because due date is tomorrow or greater and no contributed assets; false.</p><h2><a href="/wiki/view/18-todovalue-done">todoValueDone($data, $options = array())</a></h2>
<p>Description:<br>Returns Boolean: contributed assets have been validated and optionally approved.</p><h2><a href="/wiki/view/32-todovalue-label">todoValueLabel($todo_value)</a></h2>
<p>Description:<br>Returns a string.</p><h2><a href="/wiki/view/14-todovalue-late">todoValueLate($todo_value, $options = array())</a></h2>
<p>Description:<br>Returns Boolean:<br />
- true the TodoValue is late because the due date is today or past and the TodoValue has not been validated and optionally approved; false the Todo(Value) is not late because the due date is tomorrow or further into the future.</p><h2><a href="/wiki/view/15-todovalue-pending">todoValuePending($todo_value, $options = array())</a></h2>
<p>Description:<br>Returns Boolean:<br />
- true the TodoValue is pending because due date is tomorrow or greater; contributed assets have not been approved yet; false.</p><h2><a href="/wiki/view/17-todovalue-status">todoValueStatus($data, $options = array())</a></h2>
<p>Description:<br>Returns array:<br />
array(<br />
'status' => null<br />
, 'class' => null<br />
, 'complete' => false<br />
,<br />
)</p><h2><a href="/wiki/view/31-todovalue-validate">todoValueValidate($todo_value, $options = array())</a></h2>
<p>Description:<br>Returns array:<br />
'result' => Boolean<br />
'empty' => Boolean<br />
'validationErrors' => string</p><h2><a href="/wiki/view/28-deal-username-and-their-groups">userNameAndGroups($data, $options = array())</a></h2>
<p>Description:<br>Returns HTML of the User and their associated User.Group</p><h2><a href="/wiki/view/42-deals-view-email">viewEmail($id = null, $options = array())</a></h2>
<p>Description:<br></p>',
'scripts_for_layout' => '',
'title_for_layout' => 'PrototypeCategories'
)
$bodyClass = 'plugin-prototype'
$loggedInUser = array()
$css = array()
$loggedInUserImage = array()
$perPageOptions = array(
(int) 6 => (int) 6,
(int) 12 => (int) 12,
(int) 24 => (int) 24,
(int) 48 => (int) 48
)
$bodyId = 'body-wiki-helpers'
$debugToolbarPanels = array(
'history' => array(
'content' => array(
(int) 0 => array(
[maximum depth reached]
),
(int) 1 => array(
[maximum depth reached]
),
(int) 2 => array(
[maximum depth reached]
),
(int) 3 => array(
[maximum depth reached]
)
),
'elementName' => 'history_panel',
'plugin' => 'debug_kit',
'title' => null,
'disableTimer' => true
),
'session' => array(
'content' => array(
'Config' => array(
[maximum depth reached]
),
'Users' => array(
[maximum depth reached]
)
),
'elementName' => 'session_panel',
'plugin' => 'debug_kit',
'title' => null,
'disableTimer' => true
),
'request' => array(
'content' => array(
'params' => array(
[maximum depth reached]
),
'url' => 'wiki/helpers',
'query' => array([maximum depth reached]),
'data' => array([maximum depth reached]),
'cookie' => array([maximum depth reached]),
'get' => array([maximum depth reached]),
'currentRoute' => object(CakeRoute) {}
),
'elementName' => 'request_panel',
'plugin' => 'debug_kit',
'title' => null,
'disableTimer' => true
),
'sql_log' => array(
'content' => array(
'connections' => array(
[maximum depth reached]
),
'threshold' => (int) 20
),
'elementName' => 'sql_log_panel',
'plugin' => 'debug_kit',
'title' => null,
'disableTimer' => true
),
'timer' => array(
'content' => null,
'elementName' => 'timer_panel',
'plugin' => 'debug_kit',
'title' => null,
'disableTimer' => true
),
'log' => array(
'content' => object(DebugKitLogListener) {},
'elementName' => 'log_panel',
'plugin' => 'debug_kit',
'title' => null,
'disableTimer' => true
),
'variables' => array(
'content' => array(
'metas' => array(
[maximum depth reached]
),
'layout' => '',
'extraFooterCode' => '',
'extraHeaderCode' => '',
'pageIntro' => '',
'breadcrumbs' => array(
[maximum depth reached]
),
'paginationLimit' => '24',
'paginationOptions' => array(
[maximum depth reached]
),
'prototypeCategory' => array(
[maximum depth reached]
),
'category' => array(
[maximum depth reached]
),
'customFields' => array([maximum depth reached]),
'items' => array(
[maximum depth reached]
),
'paginatedItems' => false,
'pageHeading' => 'Helpers',
'titleTag' => 'Helpers - RealtyCAP - APP - ',
'loggedIn' => false,
'superAdmin' => false,
'admin' => false,
'_instance' => array(
[maximum depth reached]
),
'instance' => array(
[maximum depth reached]
),
'validFileExtentsions' => array(
[maximum depth reached]
),
'validFileMimeTypes' => array(
[maximum depth reached]
),
'listOrSell' => array(
[maximum depth reached]
),
'dealListOrSaleLabel' => array(
[maximum depth reached]
),
'$request->data' => array([maximum depth reached])
),
'elementName' => 'variables_panel',
'plugin' => 'debug_kit',
'title' => null,
'disableTimer' => true
),
'include' => array(
'content' => array(
'core' => array([maximum depth reached]),
'app' => array(
[maximum depth reached]
),
'plugins' => array(
[maximum depth reached]
),
'paths' => array(
[maximum depth reached]
)
),
'elementName' => 'include_panel',
'plugin' => 'debug_kit',
'title' => null,
'disableTimer' => true
)
)
$debugToolbarJavascript = array(
'jquery' => 'DebugKit.jquery',
'libs' => 'DebugKit.js_debug_toolbar'
)
$metas = array(
'application-name' => '',
'robots' => '',
'og:image' => ''
)
$layout = ''
$extraFooterCode = ''
$extraHeaderCode = ''
$pageIntro = ''
$breadcrumbs = array(
'Wiki' => array(
'plugin' => 'prototype',
'controller' => 'prototype_instances',
'action' => 'view',
'instance' => 'wiki',
'admin' => false
),
'Helpers' => array(
'plugin' => 'prototype',
'controller' => 'prototype_categories',
'action' => 'view',
'instance' => 'wiki',
'category' => 'helpers',
'admin' => false
)
)
$paginationLimit = '24'
$paginationOptions = array(
(int) 0 => (int) 24,
(int) 1 => (int) 48,
(int) 2 => (int) 96
)
$prototypeCategory = array(
'PrototypeCategory' => array(
'id' => '5',
'name' => 'Helpers',
'rank' => '5',
'created' => '2023-12-15 10:43:25',
'modified' => '2023-12-15 15:43:56',
'slug' => 'helpers',
'prototype_instance_id' => '4',
'parent_id' => null,
'lft' => '4',
'rght' => '9',
'deleted' => false,
'deleted_date' => null,
'head_title' => 'Helpers',
(int) 0 => array(
'id' => '7',
'name' => 'Todo and TodoValues',
'rank' => '7',
'created' => '2023-12-15 15:43:35',
'modified' => '2023-12-15 15:43:56',
'slug' => 'todo-and-todovalues',
'prototype_instance_id' => '4',
'parent_id' => '5',
'lft' => '7',
'rght' => '8',
'deleted' => false,
'deleted_date' => null,
'head_title' => 'Todo and TodoValues'
),
(int) 1 => array(
'id' => '8',
'name' => 'Deals',
'rank' => '8',
'created' => '2023-12-15 15:43:53',
'modified' => '2023-12-15 15:43:56',
'slug' => 'deals',
'prototype_instance_id' => '4',
'parent_id' => '5',
'lft' => '5',
'rght' => '6',
'deleted' => false,
'deleted_date' => null,
'head_title' => 'Deals'
)
),
'PublishingInformation' => array(
'id' => '65',
'created' => '2023-12-15 10:43:25',
'modified' => '2023-12-15 10:43:25',
'model' => 'PrototypeCategory',
'foreign_key' => '5',
'start' => '2023-12-15 10:43:25',
'end' => null,
'published' => true
),
'Image' => array(),
'Document' => array(),
'CategoryBannerImage' => array(),
'CustomFieldValue' => array(),
'MetaValue' => array(
(int) 1 => array(
'id' => '93',
'created' => '2023-12-15 10:43:25',
'modified' => '2023-12-15 12:16:30',
'model' => 'PrototypeCategory',
'foreign_key' => '5',
'meta_key_id' => '1',
'val' => ''
),
(int) 2 => array(
'id' => '94',
'created' => '2023-12-15 10:43:25',
'modified' => '2023-12-15 12:16:30',
'model' => 'PrototypeCategory',
'foreign_key' => '5',
'meta_key_id' => '2',
'val' => ''
),
(int) 3 => array(
'id' => '95',
'created' => '2023-12-15 10:43:25',
'modified' => '2023-12-15 12:16:30',
'model' => 'PrototypeCategory',
'foreign_key' => '5',
'meta_key_id' => '3',
'val' => ''
),
(int) 4 => array(
'id' => '96',
'created' => '2023-12-15 10:43:25',
'modified' => '2023-12-15 12:16:30',
'model' => 'PrototypeCategory',
'foreign_key' => '5',
'meta_key_id' => '4',
'val' => ''
)
)
)
$category = array(
'PrototypeCategory' => array(
'id' => '5',
'name' => 'Helpers',
'rank' => '5',
'created' => '2023-12-15 10:43:25',
'modified' => '2023-12-15 15:43:56',
'slug' => 'helpers',
'prototype_instance_id' => '4',
'parent_id' => null,
'lft' => '4',
'rght' => '9',
'deleted' => false,
'deleted_date' => null,
'head_title' => 'Helpers',
(int) 0 => array(
'id' => '7',
'name' => 'Todo and TodoValues',
'rank' => '7',
'created' => '2023-12-15 15:43:35',
'modified' => '2023-12-15 15:43:56',
'slug' => 'todo-and-todovalues',
'prototype_instance_id' => '4',
'parent_id' => '5',
'lft' => '7',
'rght' => '8',
'deleted' => false,
'deleted_date' => null,
'head_title' => 'Todo and TodoValues'
),
(int) 1 => array(
'id' => '8',
'name' => 'Deals',
'rank' => '8',
'created' => '2023-12-15 15:43:53',
'modified' => '2023-12-15 15:43:56',
'slug' => 'deals',
'prototype_instance_id' => '4',
'parent_id' => '5',
'lft' => '5',
'rght' => '6',
'deleted' => false,
'deleted_date' => null,
'head_title' => 'Deals'
)
),
'PublishingInformation' => array(
'id' => '65',
'created' => '2023-12-15 10:43:25',
'modified' => '2023-12-15 10:43:25',
'model' => 'PrototypeCategory',
'foreign_key' => '5',
'start' => '2023-12-15 10:43:25',
'end' => null,
'published' => true
),
'Image' => array(),
'Document' => array(),
'CategoryBannerImage' => array(),
'CustomFieldValue' => array(),
'MetaValue' => array(
(int) 1 => array(
'id' => '93',
'created' => '2023-12-15 10:43:25',
'modified' => '2023-12-15 12:16:30',
'model' => 'PrototypeCategory',
'foreign_key' => '5',
'meta_key_id' => '1',
'val' => ''
),
(int) 2 => array(
'id' => '94',
'created' => '2023-12-15 10:43:25',
'modified' => '2023-12-15 12:16:30',
'model' => 'PrototypeCategory',
'foreign_key' => '5',
'meta_key_id' => '2',
'val' => ''
),
(int) 3 => array(
'id' => '95',
'created' => '2023-12-15 10:43:25',
'modified' => '2023-12-15 12:16:30',
'model' => 'PrototypeCategory',
'foreign_key' => '5',
'meta_key_id' => '3',
'val' => ''
),
(int) 4 => array(
'id' => '96',
'created' => '2023-12-15 10:43:25',
'modified' => '2023-12-15 12:16:30',
'model' => 'PrototypeCategory',
'foreign_key' => '5',
'meta_key_id' => '4',
'val' => ''
)
)
)
$customFields = array()
$items = array(
(int) 0 => array(
'PrototypeItem' => array(
'id' => '35',
'name' => 'addDealLink',
'rank' => '35',
'created' => '2023-12-15 14:26:40',
'modified' => '2023-12-15 15:49:25',
'slug' => 'deal-add',
'prototype_instance_id' => '4',
'featured' => false,
'deleted' => false,
'deleted_date' => null,
'head_title' => '$this->Deals->addDealLink($options = array())',
'code_name' => 'addDealLink($options = array())',
'code' => ' public function addDealLink($options = array()) {
//
return $this->Html->link(
'Add New Deal'
, array(
'plugin' => 'deals'
, 'controller' => 'deals'
, 'action' => 'edit'
, 'dashboard' => true
,
)
);
}',
'description' => 'Returns HTML->link that opens the form to add a new Deal.',
'options' => '',
'example' => '//
$addDealLink = $this->Deals->addDealLink($options = array());
//
echo $addDealLink; // produces <a href="">Add New Deal</a>'
),
'PublishingInformation' => array(
'id' => '89',
'created' => '2023-12-15 14:26:40',
'modified' => '2023-12-15 14:26:40',
'model' => 'PrototypeItem',
'foreign_key' => '35',
'start' => '2023-12-15 10:50:05',
'end' => null,
'published' => true
),
'Image' => array(),
'Document' => array(),
'CustomFieldValue' => array(
(int) 0 => array(
[maximum depth reached]
),
(int) 1 => array(
[maximum depth reached]
),
(int) 2 => array(
[maximum depth reached]
),
(int) 3 => array(
[maximum depth reached]
),
(int) 4 => array(
[maximum depth reached]
),
(int) 5 => array(
[maximum depth reached]
),
(int) 6 => array(
[maximum depth reached]
),
(int) 7 => array(
[maximum depth reached]
),
(int) 8 => array(
[maximum depth reached]
),
(int) 9 => array(
[maximum depth reached]
),
(int) 10 => array(
[maximum depth reached]
),
(int) 11 => array(
[maximum depth reached]
),
(int) 12 => array(
[maximum depth reached]
),
(int) 13 => array(
[maximum depth reached]
),
(int) 14 => array(
[maximum depth reached]
),
(int) 15 => array(
[maximum depth reached]
),
(int) 16 => array(
[maximum depth reached]
),
(int) 17 => array(
[maximum depth reached]
),
(int) 18 => array(
[maximum depth reached]
),
(int) 19 => array(
[maximum depth reached]
),
(int) 20 => array(
[maximum depth reached]
),
(int) 21 => array(
[maximum depth reached]
),
(int) 22 => array(
[maximum depth reached]
),
(int) 23 => array(
[maximum depth reached]
),
(int) 24 => array(
[maximum depth reached]
),
(int) 25 => array(
[maximum depth reached]
),
(int) 26 => array(
[maximum depth reached]
),
(int) 27 => array(
[maximum depth reached]
),
(int) 28 => array(
[maximum depth reached]
),
(int) 29 => array(
[maximum depth reached]
),
(int) 30 => array(
[maximum depth reached]
),
(int) 31 => array(
[maximum depth reached]
),
(int) 32 => array(
[maximum depth reached]
),
(int) 33 => array(
[maximum depth reached]
),
(int) 34 => array(
[maximum depth reached]
)
),
'MetaValue' => array(
(int) 1 => array(
[maximum depth reached]
),
(int) 2 => array(
[maximum depth reached]
),
(int) 3 => array(
[maximum depth reached]
),
(int) 4 => array(
[maximum depth reached]
)
)
),
(int) 1 => array(
'PrototypeItem' => array(
'id' => '38',
'name' => 'approvalNeeded',
'rank' => '38',
'created' => '2023-12-15 15:47:53',
'modified' => '2023-12-15 15:50:39',
'slug' => 'todo-approval-needed',
'prototype_instance_id' => '4',
'featured' => false,
'deleted' => false,
'deleted_date' => null,
'head_title' => '$this->Deals->approvalNeeded($todo_values)',
'code_name' => 'approvalNeeded($todo_values)',
'code' => '/**
* Determine if a Deal requires attention because a valid TodoValue.todo_value exists and has not been approved.
*
* Iterate through TodoValues to determine if any TodoValue.todo_value requires attention from someone with approval authority.
*
* A TodoValue that requires attention:
* - TRUE a TodoValue.approval_required (check first for the customized value) OR Todo.approval_required (the default value) is true
* - TRUE a validated TodoValue.todo_value exists
* - IS NULL TodoValue.approval_user_id
*
*
*/',
'description' => '',
'options' => '',
'example' => ''
),
'PublishingInformation' => array(
'id' => '94',
'created' => '2023-12-15 15:47:53',
'modified' => '2023-12-15 15:47:53',
'model' => 'PrototypeItem',
'foreign_key' => '38',
'start' => '2023-12-15 15:47:53',
'end' => null,
'published' => true
),
'Image' => array(),
'Document' => array(),
'CustomFieldValue' => array(
(int) 0 => array(
[maximum depth reached]
),
(int) 1 => array(
[maximum depth reached]
),
(int) 2 => array(
[maximum depth reached]
),
(int) 3 => array(
[maximum depth reached]
),
(int) 4 => array(
[maximum depth reached]
)
),
'MetaValue' => array(
(int) 1 => array(
[maximum depth reached]
),
(int) 2 => array(
[maximum depth reached]
),
(int) 3 => array(
[maximum depth reached]
),
(int) 4 => array(
[maximum depth reached]
)
)
),
(int) 2 => array(
'PrototypeItem' => array(
'id' => '45',
'name' => 'archivedDealsLink',
'rank' => '45',
'created' => '2023-12-15 16:04:41',
'modified' => '2023-12-15 16:08:56',
'slug' => 'deals-archive-toggle-link',
'prototype_instance_id' => '4',
'featured' => false,
'deleted' => false,
'deleted_date' => null,
'head_title' => '$this->Deals->archivedDealsLink($archived = null, $options = array())',
'code_name' => 'archivedDealsLink($archived = null, $options = array())',
'code' => ' public function archivedDealsLink($archived = null, $options = array()) {
//
$label = $archived
? 'Deals'
: 'Archived Deals';
//
$options = array(
'plugin' => 'deals'
, 'controller' => 'deals'
, 'action' => 'index'
, 'dashboard' => true
,
);
//
if (!$archived) {
//
$options['?'] = array(
'archived' => 1
,
);
}
//
return $this->Html->link(
$label
, $options
);
}',
'description' => '',
'options' => '',
'example' => 'echo $archivedDeals = $this->Deals->archivedDealsLink($this->request->query('archived'));'
),
'PublishingInformation' => array(
'id' => '101',
'created' => '2023-12-15 16:04:41',
'modified' => '2023-12-15 16:04:41',
'model' => 'PrototypeItem',
'foreign_key' => '45',
'start' => '2023-12-15 16:04:41',
'end' => null,
'published' => true
),
'Image' => array(),
'Document' => array(),
'CustomFieldValue' => array(
(int) 0 => array(
[maximum depth reached]
),
(int) 1 => array(
[maximum depth reached]
),
(int) 2 => array(
[maximum depth reached]
),
(int) 3 => array(
[maximum depth reached]
),
(int) 4 => array(
[maximum depth reached]
)
),
'MetaValue' => array(
(int) 1 => array(
[maximum depth reached]
),
(int) 2 => array(
[maximum depth reached]
),
(int) 3 => array(
[maximum depth reached]
),
(int) 4 => array(
[maximum depth reached]
)
)
),
(int) 3 => array(
'PrototypeItem' => array(
'id' => '36',
'name' => 'cloneDealLink',
'rank' => '36',
'created' => '2023-12-15 14:28:26',
'modified' => '2023-12-15 14:29:39',
'slug' => 'deal-clone',
'prototype_instance_id' => '4',
'featured' => false,
'deleted' => false,
'deleted_date' => null,
'head_title' => '$this->Deals->cloneDealLink($id, $options = array())',
'code_name' => 'cloneDealLink($id, $options = array())',
'code' => ' public function cloneDealLink($id, $options = array()) {
//
return $this->Html->link(
'Duplicate Deal'
, array(
'plugin' => 'deals'
, 'controller' => 'deals'
, 'action' => 'clone'
, 'dashboard' => true
, $id
,
)
);
}',
'description' => 'Returns HTML->link that clones a Deal.',
'options' => '',
'example' => '//
$cloneDealLink = $this->Deals->cloneDealLink($id, $options = array());
//
echo $cloneDealLink; // produces <a href="">Duplicate Deal</a>'
),
'PublishingInformation' => array(
'id' => '90',
'created' => '2023-12-15 14:28:26',
'modified' => '2023-12-15 14:28:26',
'model' => 'PrototypeItem',
'foreign_key' => '36',
'start' => '2023-12-15 10:50:05',
'end' => null,
'published' => true
),
'Image' => array(),
'Document' => array(),
'CustomFieldValue' => array(
(int) 0 => array(
[maximum depth reached]
),
(int) 1 => array(
[maximum depth reached]
),
(int) 2 => array(
[maximum depth reached]
),
(int) 3 => array(
[maximum depth reached]
),
(int) 4 => array(
[maximum depth reached]
),
(int) 5 => array(
[maximum depth reached]
),
(int) 6 => array(
[maximum depth reached]
),
(int) 7 => array(
[maximum depth reached]
),
(int) 8 => array(
[maximum depth reached]
),
(int) 9 => array(
[maximum depth reached]
),
(int) 10 => array(
[maximum depth reached]
),
(int) 11 => array(
[maximum depth reached]
),
(int) 12 => array(
[maximum depth reached]
),
(int) 13 => array(
[maximum depth reached]
),
(int) 14 => array(
[maximum depth reached]
),
(int) 15 => array(
[maximum depth reached]
),
(int) 16 => array(
[maximum depth reached]
),
(int) 17 => array(
[maximum depth reached]
),
(int) 18 => array(
[maximum depth reached]
),
(int) 19 => array(
[maximum depth reached]
),
(int) 20 => array(
[maximum depth reached]
),
(int) 21 => array(
[maximum depth reached]
),
(int) 22 => array(
[maximum depth reached]
),
(int) 23 => array(
[maximum depth reached]
),
(int) 24 => array(
[maximum depth reached]
)
),
'MetaValue' => array(
(int) 1 => array(
[maximum depth reached]
),
(int) 2 => array(
[maximum depth reached]
),
(int) 3 => array(
[maximum depth reached]
),
(int) 4 => array(
[maximum depth reached]
)
)
),
(int) 4 => array(
'PrototypeItem' => array(
'id' => '44',
'name' => 'dashboardAjaxToggle',
'rank' => '44',
'created' => '2023-12-15 16:01:21',
'modified' => '2023-12-15 16:01:56',
'slug' => 'dashboard-ajax-toggle',
'prototype_instance_id' => '4',
'featured' => false,
'deleted' => false,
'deleted_date' => null,
'head_title' => '$this->Deals->dashboardAjaxToggle($options = array())',
'code_name' => 'dashboardAjaxToggle($options = array())',
'code' => ' public function dashboardAjaxToggle($options = array()) {
//
$return = '';
//
$defaults = array(
'tag' => 'button'
, 'class' => 'btn'
, 'labels' => array(
0 => 'Toggle On'
, 1 => 'Toggle Off'
,
)
, 'classes' => array(
0 => 'toggle-off'
, 1 => 'toggle-on'
,
)
, 'currently' => 0
,
);
//
$options = am($defaults, $options);
//
$return = $this->Html->tag(
$options['tag']
, $options['labels'][$options['currently']]
, array(
'class' => 'click-ajax-toggle ' . $options['class']
, 'data-id' => $options['id']
, 'data-plugin' => $options['plugin']
, 'data-model' => $options['model']
, 'data-field' => $options['field']
, 'data-label-0' => $options['labels'][0]
, 'data-label-1' => $options['labels'][1]
, 'data-class-0' => $options['classes'][0]
, 'data-class-1' => $options['classes'][1]
,
)
);
//
return $return;
}',
'description' => '',
'options' => '',
'example' => 'Toggling a Deal from true/false Deal.archived (deals.archived):
$this->Deals->dashboardAjaxToggle(array(
'id' => $deal['id']
, 'currently' => $deal['archived']
, 'plugin' => 'Deals'
, 'model' => 'Deal'
, 'field' => 'archived'
, 'labels' => array(
0 => 'Archive this Deal'
, 1 => 'Un-archive this Deal'
,
)
, 'classes' => array(
0 => 'toggle-off'
, 1 => 'toggle-on'
,
)
,
))'
),
'PublishingInformation' => array(
'id' => '100',
'created' => '2023-12-15 16:01:21',
'modified' => '2023-12-15 16:01:21',
'model' => 'PrototypeItem',
'foreign_key' => '44',
'start' => '2023-12-15 16:01:21',
'end' => null,
'published' => true
),
'Image' => array(),
'Document' => array(),
'CustomFieldValue' => array(
(int) 0 => array(
[maximum depth reached]
),
(int) 1 => array(
[maximum depth reached]
),
(int) 2 => array(
[maximum depth reached]
),
(int) 3 => array(
[maximum depth reached]
),
(int) 4 => array(
[maximum depth reached]
)
),
'MetaValue' => array(
(int) 1 => array(
[maximum depth reached]
),
(int) 2 => array(
[maximum depth reached]
),
(int) 3 => array(
[maximum depth reached]
),
(int) 4 => array(
[maximum depth reached]
)
)
),
(int) 5 => array(
'PrototypeItem' => array(
'id' => '19',
'name' => 'dealAddress',
'rank' => '19',
'created' => '2023-12-15 13:22:37',
'modified' => '2023-12-15 13:45:45',
'slug' => 'deal-address',
'prototype_instance_id' => '4',
'featured' => false,
'deleted' => false,
'deleted_date' => null,
'head_title' => '$this->Deals->dealAddress($data, $options = array())',
'code_name' => 'dealAddress($data, $options = array())',
'code' => '/**
* 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' => ''
,
);
...',
'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
,
)
);'
),
'PublishingInformation' => array(
'id' => '73',
'created' => '2023-12-15 13:22:37',
'modified' => '2023-12-15 13:22:37',
'model' => 'PrototypeItem',
'foreign_key' => '19',
'start' => '2023-12-15 13:22:37',
'end' => null,
'published' => true
),
'Image' => array(),
'Document' => array(),
'CustomFieldValue' => array(
(int) 0 => array(
[maximum depth reached]
),
(int) 1 => array(
[maximum depth reached]
),
(int) 2 => array(
[maximum depth reached]
),
(int) 3 => array(
[maximum depth reached]
),
(int) 4 => array(
[maximum depth reached]
)
),
'MetaValue' => array(
(int) 1 => array(
[maximum depth reached]
),
(int) 2 => array(
[maximum depth reached]
),
(int) 3 => array(
[maximum depth reached]
),
(int) 4 => array(
[maximum depth reached]
)
)
),
(int) 6 => array(
'PrototypeItem' => array(
'id' => '20',
'name' => 'dealComplete',
'rank' => '20',
'created' => '2023-12-15 13:24:19',
'modified' => '2023-12-15 13:45:21',
'slug' => 'deal-complete',
'prototype_instance_id' => '4',
'featured' => false,
'deleted' => false,
'deleted_date' => null,
'head_title' => '$this->Deals->dealComplete($data, $options = array())',
'code_name' => 'dealComplete($data, $options = array())',
'code' => '/**
* Complete - all TodoValues have been received and approved.
*
* $data array() Deal
* return Boolean
*/
public function dealComplete($data, $options = array()) {
//
$return = false;
//
if (!$data) {
//
return $return;
}
//
$defaults = array(
'todoStats' => array()
,
);
//
$options = am($defaults , $options);
//
if (empty($options['todoStats'])) {
//
$totals = $this->TodoValue->todoValueCount($data, $options);
} else {
//
$totals = $options['todoStats'];
}
//
$total = array_sum($totals['total']);
//
$done = array_sum($totals['done']);
//
if ($total < 1) {
//
return $return;
}
//
if ($total <= $done) {
//
return true;
}
//
return $return;
}',
'description' => 'Complete - all TodoValues have been received and approved.',
'options' => 'Not currently employed.',
'example' => '//
$dealComplete = $this->Deals->dealComplete($data);
//
echo 'This Deal is ' . ($dealComplete ? 'complete' : 'incomplete') . '.';'
),
'PublishingInformation' => array(
'id' => '74',
'created' => '2023-12-15 13:24:19',
'modified' => '2023-12-15 13:24:19',
'model' => 'PrototypeItem',
'foreign_key' => '20',
'start' => '2023-12-15 13:22:37',
'end' => null,
'published' => true
),
'Image' => array(),
'Document' => array(),
'CustomFieldValue' => array(
(int) 0 => array(
[maximum depth reached]
),
(int) 1 => array(
[maximum depth reached]
),
(int) 2 => array(
[maximum depth reached]
),
(int) 3 => array(
[maximum depth reached]
),
(int) 4 => array(
[maximum depth reached]
),
(int) 5 => array(
[maximum depth reached]
),
(int) 6 => array(
[maximum depth reached]
),
(int) 7 => array(
[maximum depth reached]
),
(int) 8 => array(
[maximum depth reached]
),
(int) 9 => array(
[maximum depth reached]
)
),
'MetaValue' => array(
(int) 1 => array(
[maximum depth reached]
),
(int) 2 => array(
[maximum depth reached]
),
(int) 3 => array(
[maximum depth reached]
),
(int) 4 => array(
[maximum depth reached]
)
)
),
(int) 7 => array(
'PrototypeItem' => array(
'id' => '21',
'name' => 'dealIncomplete',
'rank' => '21',
'created' => '2023-12-15 13:27:58',
'modified' => '2023-12-15 13:46:34',
'slug' => 'deal-incomplete',
'prototype_instance_id' => '4',
'featured' => false,
'deleted' => false,
'deleted_date' => null,
'head_title' => '$this->Deals->dealIncomplete($data, $options = array())',
'code_name' => 'dealIncomplete($data, $options = array())',
'code' => '/**
* Incomplete - closing date is tomorrow or greater; not all TodoValues have been received.
*
* $data array() Deal
* return Boolean
*/
public function dealIncomplete($data, $options = array()) {
//
$return = false;
//
if (!$data) {
//
return $return;
}
//
$defaults = array(
'todoStats' => array()
,
);
//
$options = am($defaults , $options);
//
$closingDate = $this->closingDate($data);
//
if (date('Y-m-d') <= date('Y-m-d', $closingDate)) {
//
return $return;
}
//
if (empty($options['todoStats'])) {
//
$totals = $this->TodoValue->todoValueCount($data, $options);
} else {
//
$totals = $options['todoStats'];
}
//
return $totals['empty'];
}',
'description' => 'Incomplete - closing date is tomorrow or greater; not all TodoValues have been received.',
'options' => 'You can pass $todoStats if you have them.',
'example' => '//
$dealIncomplete = $this->Deals->dealIncomplete($data);
//
echo 'This Deal is ' . ($dealIncomplete ? 'complete' : 'incomplete') . '.';'
),
'PublishingInformation' => array(
'id' => '75',
'created' => '2023-12-15 13:27:58',
'modified' => '2023-12-15 13:27:58',
'model' => 'PrototypeItem',
'foreign_key' => '21',
'start' => '2023-12-15 13:22:37',
'end' => null,
'published' => true
),
'Image' => array(),
'Document' => array(),
'CustomFieldValue' => array(
(int) 0 => array(
[maximum depth reached]
),
(int) 1 => array(
[maximum depth reached]
),
(int) 2 => array(
[maximum depth reached]
),
(int) 3 => array(
[maximum depth reached]
),
(int) 4 => array(
[maximum depth reached]
),
(int) 5 => array(
[maximum depth reached]
),
(int) 6 => array(
[maximum depth reached]
),
(int) 7 => array(
[maximum depth reached]
),
(int) 8 => array(
[maximum depth reached]
),
(int) 9 => array(
[maximum depth reached]
),
(int) 10 => array(
[maximum depth reached]
),
(int) 11 => array(
[maximum depth reached]
),
(int) 12 => array(
[maximum depth reached]
),
(int) 13 => array(
[maximum depth reached]
),
(int) 14 => array(
[maximum depth reached]
)
),
'MetaValue' => array(
(int) 1 => array(
[maximum depth reached]
),
(int) 2 => array(
[maximum depth reached]
),
(int) 3 => array(
[maximum depth reached]
),
(int) 4 => array(
[maximum depth reached]
)
)
),
(int) 8 => array(
'PrototypeItem' => array(
'id' => '23',
'name' => 'dealLate',
'rank' => '23',
'created' => '2023-12-15 13:33:16',
'modified' => '2023-12-15 13:47:08',
'slug' => 'deal-late',
'prototype_instance_id' => '4',
'featured' => false,
'deleted' => false,
'deleted_date' => null,
'head_title' => '$this->Deals->dealLate($data, $options = array())',
'code_name' => 'dealLate($data, $options = array())',
'code' => '/**
* Late - closing date is today or earlier; approval has not been given to all TodoValues.
*
* $data array() Deal
* return Boolean
*/
public function dealLate($data, $options = array()) {
//
$return = false;
//
if (!$data) {
//
return $return;
}
//
$defaults = array(
'todoStats' => array()
,
);
//
$options = am($defaults , $options);
//
$closingDate = $this->closingDate($data);
//
$return = !$this->dealComplete($data) && date('Y-m-d') >= date('Y-m-d', $closingDate)
? true
: $return;
//
return $return;
}',
'description' => 'Late - closing date is today or earlier; approval has not been given to all TodoValues.',
'options' => 'You can pass $todoStats if you have them.',
'example' => '//
$dealLate = $this->Deals->dealLate($data);
//
echo 'This Deal is ' . ($dealLate ? 'late' : 'not late') . '.';'
),
'PublishingInformation' => array(
'id' => '77',
'created' => '2023-12-15 13:33:16',
'modified' => '2023-12-15 13:33:16',
'model' => 'PrototypeItem',
'foreign_key' => '23',
'start' => '2023-12-15 13:22:37',
'end' => null,
'published' => true
),
'Image' => array(),
'Document' => array(),
'CustomFieldValue' => array(
(int) 0 => array(
[maximum depth reached]
),
(int) 1 => array(
[maximum depth reached]
),
(int) 2 => array(
[maximum depth reached]
),
(int) 3 => array(
[maximum depth reached]
),
(int) 4 => array(
[maximum depth reached]
),
(int) 5 => array(
[maximum depth reached]
),
(int) 6 => array(
[maximum depth reached]
),
(int) 7 => array(
[maximum depth reached]
),
(int) 8 => array(
[maximum depth reached]
),
(int) 9 => array(
[maximum depth reached]
),
(int) 10 => array(
[maximum depth reached]
),
(int) 11 => array(
[maximum depth reached]
),
(int) 12 => array(
[maximum depth reached]
),
(int) 13 => array(
[maximum depth reached]
),
(int) 14 => array(
[maximum depth reached]
),
(int) 15 => array(
[maximum depth reached]
),
(int) 16 => array(
[maximum depth reached]
),
(int) 17 => array(
[maximum depth reached]
),
(int) 18 => array(
[maximum depth reached]
),
(int) 19 => array(
[maximum depth reached]
),
(int) 20 => array(
[maximum depth reached]
),
(int) 21 => array(
[maximum depth reached]
),
(int) 22 => array(
[maximum depth reached]
),
(int) 23 => array(
[maximum depth reached]
),
(int) 24 => array(
[maximum depth reached]
)
),
'MetaValue' => array(
(int) 1 => array(
[maximum depth reached]
),
(int) 2 => array(
[maximum depth reached]
),
(int) 3 => array(
[maximum depth reached]
),
(int) 4 => array(
[maximum depth reached]
)
)
),
(int) 9 => array(
'PrototypeItem' => array(
'id' => '22',
'name' => 'dealPending',
'rank' => '22',
'created' => '2023-12-15 13:31:16',
'modified' => '2023-12-15 13:46:53',
'slug' => 'deal-pending',
'prototype_instance_id' => '4',
'featured' => false,
'deleted' => false,
'deleted_date' => null,
'head_title' => '$this->Deals->dealPending($data, $options = array())',
'code_name' => 'dealPending($data, $options = array())',
'code' => '/**
* Pending - closing date is tomorrow or greater; all TodoValues have been received but not all that need approval have been approved.
*
* $data array() Deal
* return Boolean
*/
public function dealPending($data, $options = array()) {
//
$return = false;
//
if (!$data) {
//
return $return;
}
//
$defaults = array(
'todoStats' => array()
,
);
//
$options = am($defaults , $options);
//
$closingDate = $this->closingDate($data);
//
if (date('Y-m-d') <= date('Y-m-d', $closingDate)) {
//
return $return;
}
//
$return = !$this->dealIncomplete($data, $options) && $this->approvalNeeded($data['TodoValue'], array('bool' => true))
? true
: $return;
//
return $return;
}',
'description' => 'Pending - closing date is tomorrow or greater; all TodoValues have been received but not all that need approval have been approved.',
'options' => 'You can pass $todoStats if you have them.',
'example' => '//
$dealPending = $this->Deals->dealPending($data);
//
echo 'This Deal is ' . ($dealPending ? 'pending' : 'not pending') . '.';'
),
'PublishingInformation' => array(
'id' => '76',
'created' => '2023-12-15 13:31:16',
'modified' => '2023-12-15 13:31:16',
'model' => 'PrototypeItem',
'foreign_key' => '22',
'start' => '2023-12-15 13:22:37',
'end' => null,
'published' => true
),
'Image' => array(),
'Document' => array(),
'CustomFieldValue' => array(
(int) 0 => array(
[maximum depth reached]
),
(int) 1 => array(
[maximum depth reached]
),
(int) 2 => array(
[maximum depth reached]
),
(int) 3 => array(
[maximum depth reached]
),
(int) 4 => array(
[maximum depth reached]
),
(int) 5 => array(
[maximum depth reached]
),
(int) 6 => array(
[maximum depth reached]
),
(int) 7 => array(
[maximum depth reached]
),
(int) 8 => array(
[maximum depth reached]
),
(int) 9 => array(
[maximum depth reached]
),
(int) 10 => array(
[maximum depth reached]
),
(int) 11 => array(
[maximum depth reached]
),
(int) 12 => array(
[maximum depth reached]
),
(int) 13 => array(
[maximum depth reached]
),
(int) 14 => array(
[maximum depth reached]
),
(int) 15 => array(
[maximum depth reached]
),
(int) 16 => array(
[maximum depth reached]
),
(int) 17 => array(
[maximum depth reached]
),
(int) 18 => array(
[maximum depth reached]
),
(int) 19 => array(
[maximum depth reached]
)
),
'MetaValue' => array(
(int) 1 => array(
[maximum depth reached]
),
(int) 2 => array(
[maximum depth reached]
),
(int) 3 => array(
[maximum depth reached]
),
(int) 4 => array(
[maximum depth reached]
)
)
),
(int) 10 => array(
'PrototypeItem' => array(
'id' => '24',
'name' => 'dealStatus',
'rank' => '24',
'created' => '2023-12-15 13:35:14',
'modified' => '2023-12-15 13:38:51',
'slug' => 'deal-status',
'prototype_instance_id' => '4',
'featured' => false,
'deleted' => false,
'deleted_date' => null,
'head_title' => '$this->Deals->dealStatus($data, $options = array())',
'code_name' => 'dealStatus($data, $options = array())',
'code' => '/**
*
*
* $data array() Deal
* return array()
*/
public function dealStatus($data, $options = array()) {
//
$return = array(
'status' => null
, 'class' => null
, 'complete' => false
,
);
//
if (!$data) {
//
return $return;
}
//
$defaults = array();
//
$options = am($defaults , $options);
//
if ($this->dealComplete($data)) {
//
$return['status'] = 'complete';
//
$return['class'] = 'deal-complete';
//
$return['complete'] = true;
//
} elseif ($this->dealLate($data)) {
//
$return['status'] = 'late';
//
$return['class'] = 'deal-late';
//
} elseif ($this->dealPending($data)) {
//
$return['status'] = 'pending';
//
$return['class'] = 'deal-pending';
//
} else { //if ($this->dealIncomplete($data)) {
//
$return['status'] = 'incomplete';
//
$return['class'] = 'deal-incomplete';
}
//
return $return;
}',
'description' => 'Returns array:
array(
'status' => null
, 'class' => null
, 'complete' => false
,
)',
'options' => '(array) $data - the complete Deal.
(array) $options - not employed.',
'example' => '//
$dealStatus = $this->Deals->dealStatus($data);
// Status - string
echo 'This Deal is ' . $dealStatus['status'] . '.';
// Class - string
echo 'This Deal is ' . $dealStatus['class'] . '.';
// Complete - Boolean
echo 'This Deal is ' . ($dealStatus['complete'] ? 'complete' : 'in-complete') . '.';'
),
'PublishingInformation' => array(
'id' => '78',
'created' => '2023-12-15 13:35:14',
'modified' => '2023-12-15 13:35:14',
'model' => 'PrototypeItem',
'foreign_key' => '24',
'start' => '2023-12-15 10:50:05',
'end' => null,
'published' => true
),
'Image' => array(),
'Document' => array(),
'CustomFieldValue' => array(
(int) 0 => array(
[maximum depth reached]
),
(int) 1 => array(
[maximum depth reached]
),
(int) 2 => array(
[maximum depth reached]
),
(int) 3 => array(
[maximum depth reached]
),
(int) 4 => array(
[maximum depth reached]
),
(int) 5 => array(
[maximum depth reached]
),
(int) 6 => array(
[maximum depth reached]
),
(int) 7 => array(
[maximum depth reached]
),
(int) 8 => array(
[maximum depth reached]
),
(int) 9 => array(
[maximum depth reached]
),
(int) 10 => array(
[maximum depth reached]
),
(int) 11 => array(
[maximum depth reached]
),
(int) 12 => array(
[maximum depth reached]
),
(int) 13 => array(
[maximum depth reached]
),
(int) 14 => array(
[maximum depth reached]
),
(int) 15 => array(
[maximum depth reached]
),
(int) 16 => array(
[maximum depth reached]
),
(int) 17 => array(
[maximum depth reached]
),
(int) 18 => array(
[maximum depth reached]
),
(int) 19 => array(
[maximum depth reached]
),
(int) 20 => array(
[maximum depth reached]
),
(int) 21 => array(
[maximum depth reached]
),
(int) 22 => array(
[maximum depth reached]
),
(int) 23 => array(
[maximum depth reached]
),
(int) 24 => array(
[maximum depth reached]
)
),
'MetaValue' => array(
(int) 1 => array(
[maximum depth reached]
),
(int) 2 => array(
[maximum depth reached]
),
(int) 3 => array(
[maximum depth reached]
),
(int) 4 => array(
[maximum depth reached]
)
)
),
(int) 11 => array(
'PrototypeItem' => array(
'id' => '25',
'name' => 'dealTypesAsList',
'rank' => '25',
'created' => '2023-12-15 13:39:46',
'modified' => '2023-12-15 13:43:29',
'slug' => 'deal-types-as-list',
'prototype_instance_id' => '4',
'featured' => false,
'deleted' => false,
'deleted_date' => null,
'head_title' => '$this->Deals->dealTypesAsList($deal, $options = array())',
'code_name' => 'dealTypesAsList($deal, $options = array())',
'code' => '/**
*
*
*
*
*/
public function dealTypesAsList($deal, $options = array()) {
//
$Model = ClassRegistry::init('DealTypes.DealType');
//
$return = $Model->groupedForList($deal, $options);
//
$out = array();
//
if (isset($return['List']) && !empty($return['List'])) {
//
$out[] = 'List: ' . $this->Text->toList($return['List']);
}
//
if (isset($return['Sale']) && !empty($return['Sale'])) {
//
$out[] = 'Sale: ' . $this->Text->toList($return['Sale']);
}
//
return implode('<br>', $out);
}',
'description' => 'Returns a string/list of the DealTypes.',
'options' => 'Not currently employed.',
'example' => '//
$dealTypesAsList = $this->Deals->dealTypesAsList($deal, $options);
//
echo 'This Deal is associated with these DealTypes: ' . $dealTypesAsList . '.';'
),
'PublishingInformation' => array(
'id' => '79',
'created' => '2023-12-15 13:39:46',
'modified' => '2023-12-15 13:39:46',
'model' => 'PrototypeItem',
'foreign_key' => '25',
'start' => '2023-12-15 13:22:37',
'end' => null,
'published' => true
),
'Image' => array(),
'Document' => array(),
'CustomFieldValue' => array(
(int) 0 => array(
[maximum depth reached]
),
(int) 1 => array(
[maximum depth reached]
),
(int) 2 => array(
[maximum depth reached]
),
(int) 3 => array(
[maximum depth reached]
),
(int) 4 => array(
[maximum depth reached]
),
(int) 5 => array(
[maximum depth reached]
),
(int) 6 => array(
[maximum depth reached]
),
(int) 7 => array(
[maximum depth reached]
),
(int) 8 => array(
[maximum depth reached]
),
(int) 9 => array(
[maximum depth reached]
),
(int) 10 => array(
[maximum depth reached]
),
(int) 11 => array(
[maximum depth reached]
),
(int) 12 => array(
[maximum depth reached]
),
(int) 13 => array(
[maximum depth reached]
),
(int) 14 => array(
[maximum depth reached]
),
(int) 15 => array(
[maximum depth reached]
),
(int) 16 => array(
[maximum depth reached]
),
(int) 17 => array(
[maximum depth reached]
),
(int) 18 => array(
[maximum depth reached]
),
(int) 19 => array(
[maximum depth reached]
),
(int) 20 => array(
[maximum depth reached]
),
(int) 21 => array(
[maximum depth reached]
),
(int) 22 => array(
[maximum depth reached]
),
(int) 23 => array(
[maximum depth reached]
),
(int) 24 => array(
[maximum depth reached]
),
(int) 25 => array(
[maximum depth reached]
),
(int) 26 => array(
[maximum depth reached]
),
(int) 27 => array(
[maximum depth reached]
),
(int) 28 => array(
[maximum depth reached]
),
(int) 29 => array(
[maximum depth reached]
)
),
'MetaValue' => array(
(int) 1 => array(
[maximum depth reached]
),
(int) 2 => array(
[maximum depth reached]
),
(int) 3 => array(
[maximum depth reached]
),
(int) 4 => array(
[maximum depth reached]
)
)
),
(int) 12 => array(
'PrototypeItem' => array(
'id' => '30',
'name' => 'editDealLink',
'rank' => '30',
'created' => '2023-12-15 14:05:59',
'modified' => '2023-12-15 14:08:03',
'slug' => 'deal-edit',
'prototype_instance_id' => '4',
'featured' => false,
'deleted' => false,
'deleted_date' => null,
'head_title' => '$this->Deals->editDealLink($id, $options = array())',
'code_name' => 'editDealLink($id, $options = array())',
'code' => ' public function editDealLink($id = null, $options = array()) {
//
if (!$id) {
//
return '';
}
//
$defaults = array(
'escape' => false
, 'link_content' => 'View Deal'
,
);
//
$options = am($defaults, $options);
//
$linkContent = $options['link_content'];
//
unset($options['link_content']);
//
return $this->Html->link(
$linkContent
, array(
'plugin' => 'deals'
, 'controller' => 'deals'
, 'action' => 'edit'
, 'dashboard' => true
, $id
,
)
, $options
);
}',
'description' => 'Returns HTML->link that opens Deal for editing.',
'options' => '//
$defaults = array(
'escape' => false
, 'link_content' => 'View Deal'
,
);',
'example' => '//
$editDealLink = $this->Deals->editDealLink($id, $options = array());
//
echo $editDealLink; // produces <a href="">View Deal</a>'
),
'PublishingInformation' => array(
'id' => '84',
'created' => '2023-12-15 14:05:59',
'modified' => '2023-12-15 14:05:59',
'model' => 'PrototypeItem',
'foreign_key' => '30',
'start' => '2023-12-15 10:50:05',
'end' => null,
'published' => true
),
'Image' => array(),
'Document' => array(),
'CustomFieldValue' => array(
(int) 0 => array(
[maximum depth reached]
),
(int) 1 => array(
[maximum depth reached]
),
(int) 2 => array(
[maximum depth reached]
),
(int) 3 => array(
[maximum depth reached]
),
(int) 4 => array(
[maximum depth reached]
),
(int) 5 => array(
[maximum depth reached]
),
(int) 6 => array(
[maximum depth reached]
),
(int) 7 => array(
[maximum depth reached]
),
(int) 8 => array(
[maximum depth reached]
),
(int) 9 => array(
[maximum depth reached]
),
(int) 10 => array(
[maximum depth reached]
),
(int) 11 => array(
[maximum depth reached]
),
(int) 12 => array(
[maximum depth reached]
),
(int) 13 => array(
[maximum depth reached]
),
(int) 14 => array(
[maximum depth reached]
),
(int) 15 => array(
[maximum depth reached]
),
(int) 16 => array(
[maximum depth reached]
),
(int) 17 => array(
[maximum depth reached]
),
(int) 18 => array(
[maximum depth reached]
),
(int) 19 => array(
[maximum depth reached]
)
),
'MetaValue' => array()
),
(int) 13 => array(
'PrototypeItem' => array(
'id' => '29',
'name' => 'exportDealData',
'rank' => '29',
'created' => '2023-12-15 14:01:56',
'modified' => '2023-12-15 14:05:48',
'slug' => 'deal-export-data',
'prototype_instance_id' => '4',
'featured' => false,
'deleted' => false,
'deleted_date' => null,
'head_title' => '$this->Deals->exportDealData($id, $options = array())',
'code_name' => 'exportDealData($id, $options = array())',
'code' => ' public function exportDealData($id = null, $options = array()) {
//
$defaults = array(
'escape' => false
, 'link_content' => 'Download'
,
);
//
$options = am($defaults, $options);
//
$linkContent = $options['link_content'];
//
unset($options['link_content']);
//
return $this->Html->link(
$linkContent
, array(
'plugin' => 'activities'
, 'controller' => 'activities'
, 'action' => 'export'
, 'dashboard' => true
, $id
,
)
, $options
);
}',
'description' => 'Returns HTML->link that generates a CSV export of the Activity table for the specific Deal.',
'options' => '//
$defaults = array(
'escape' => false
, 'link_content' => 'Download'
,
);',
'example' => '//
$exportDealData = $this->Deals->exportDealData($id, $options = array());
//
echo $exportDealData; // produces <a href="">Download</a>'
),
'PublishingInformation' => array(
'id' => '83',
'created' => '2023-12-15 14:01:56',
'modified' => '2023-12-15 14:01:56',
'model' => 'PrototypeItem',
'foreign_key' => '29',
'start' => '2023-12-15 10:50:05',
'end' => null,
'published' => true
),
'Image' => array(),
'Document' => array(),
'CustomFieldValue' => array(
(int) 0 => array(
[maximum depth reached]
),
(int) 1 => array(
[maximum depth reached]
),
(int) 2 => array(
[maximum depth reached]
),
(int) 3 => array(
[maximum depth reached]
),
(int) 4 => array(
[maximum depth reached]
),
(int) 5 => array(
[maximum depth reached]
),
(int) 6 => array(
[maximum depth reached]
),
(int) 7 => array(
[maximum depth reached]
),
(int) 8 => array(
[maximum depth reached]
),
(int) 9 => array(
[maximum depth reached]
),
(int) 10 => array(
[maximum depth reached]
),
(int) 11 => array(
[maximum depth reached]
),
(int) 12 => array(
[maximum depth reached]
),
(int) 13 => array(
[maximum depth reached]
),
(int) 14 => array(
[maximum depth reached]
)
),
'MetaValue' => array()
),
(int) 14 => array(
'PrototypeItem' => array(
'id' => '33',
'name' => 'gridtViewLink',
'rank' => '33',
'created' => '2023-12-15 14:23:28',
'modified' => '2023-12-15 14:25:11',
'slug' => 'deal-grid-view-link',
'prototype_instance_id' => '4',
'featured' => false,
'deleted' => false,
'deleted_date' => null,
'head_title' => '$this->Deals->gridtViewLink($options = array())',
'code_name' => 'gridtViewLink($options = array())',
'code' => ' public function gridtViewLink($options = array()) {
//
return $this->Html->link(
'Grid View'
, array(
'plugin' => 'deals'
, 'controller' => 'deals'
, 'action' => 'index'
, 'dashboard' => true
,
)
);
}',
'description' => 'Returns HTML->link that opens the grid view.',
'options' => '',
'example' => '//
$gridtViewLink = $this->Deals->gridtViewLink($options = array());
//
echo $gridtViewLink; // produces <a href="">Grid View</a>'
),
'PublishingInformation' => array(
'id' => '87',
'created' => '2023-12-15 14:23:28',
'modified' => '2023-12-15 14:23:28',
'model' => 'PrototypeItem',
'foreign_key' => '33',
'start' => '2023-12-15 10:50:05',
'end' => null,
'published' => true
),
'Image' => array(),
'Document' => array(),
'CustomFieldValue' => array(
(int) 0 => array(
[maximum depth reached]
),
(int) 1 => array(
[maximum depth reached]
),
(int) 2 => array(
[maximum depth reached]
),
(int) 3 => array(
[maximum depth reached]
),
(int) 4 => array(
[maximum depth reached]
),
(int) 5 => array(
[maximum depth reached]
),
(int) 6 => array(
[maximum depth reached]
),
(int) 7 => array(
[maximum depth reached]
),
(int) 8 => array(
[maximum depth reached]
),
(int) 9 => array(
[maximum depth reached]
),
(int) 10 => array(
[maximum depth reached]
),
(int) 11 => array(
[maximum depth reached]
),
(int) 12 => array(
[maximum depth reached]
),
(int) 13 => array(
[maximum depth reached]
),
(int) 14 => array(
[maximum depth reached]
),
(int) 15 => array(
[maximum depth reached]
),
(int) 16 => array(
[maximum depth reached]
),
(int) 17 => array(
[maximum depth reached]
),
(int) 18 => array(
[maximum depth reached]
),
(int) 19 => array(
[maximum depth reached]
),
(int) 20 => array(
[maximum depth reached]
),
(int) 21 => array(
[maximum depth reached]
),
(int) 22 => array(
[maximum depth reached]
),
(int) 23 => array(
[maximum depth reached]
),
(int) 24 => array(
[maximum depth reached]
)
),
'MetaValue' => array()
),
(int) 15 => array(
'PrototypeItem' => array(
'id' => '27',
'name' => 'involvedParties',
'rank' => '27',
'created' => '2023-12-15 13:54:33',
'modified' => '2023-12-15 13:56:56',
'slug' => 'todovalue-involved-parties',
'prototype_instance_id' => '4',
'featured' => false,
'deleted' => false,
'deleted_date' => null,
'head_title' => '$this->Deals->involvedParties($data, $options = array())',
'code_name' => 'involvedParties($data, $options = array())',
'code' => '/**
*
*
*
*
*/
public function involvedParties($data, $options = array()) {
//
$return = array();
//
if (!$data || !isset($data['User']) || empty($data['User'])) {
//
return $return;
}
//
$modelDeal = ClassRegistry::init('Users.User');
//
$return = $modelDeal->findListOfResponsibles($data['Deal']['company_id'], array('contain' => array('Group'), 'find' => 'all'));
//
return am($data['User'], $return);
}',
'description' => 'Returns array of those working on the Deal.',
'options' => '(array) $data - the Deal.
(array) $options - not currently employed.',
'example' => '//
$involvedParties = $this->Deals->involvedParties($deal);
//
echo 'These people are working on this Deal: ' . implode(', ', $involvedParties) . '.';'
),
'PublishingInformation' => array(
'id' => '81',
'created' => '2023-12-15 13:54:33',
'modified' => '2023-12-15 13:54:33',
'model' => 'PrototypeItem',
'foreign_key' => '27',
'start' => '2023-12-15 10:50:05',
'end' => null,
'published' => true
),
'Image' => array(),
'Document' => array(),
'CustomFieldValue' => array(
(int) 0 => array(
[maximum depth reached]
),
(int) 1 => array(
[maximum depth reached]
),
(int) 2 => array(
[maximum depth reached]
),
(int) 3 => array(
[maximum depth reached]
),
(int) 4 => array(
[maximum depth reached]
),
(int) 5 => array(
[maximum depth reached]
),
(int) 6 => array(
[maximum depth reached]
),
(int) 7 => array(
[maximum depth reached]
),
(int) 8 => array(
[maximum depth reached]
),
(int) 9 => array(
[maximum depth reached]
),
(int) 10 => array(
[maximum depth reached]
),
(int) 11 => array(
[maximum depth reached]
),
(int) 12 => array(
[maximum depth reached]
),
(int) 13 => array(
[maximum depth reached]
),
(int) 14 => array(
[maximum depth reached]
)
),
'MetaValue' => array(
(int) 1 => array(
[maximum depth reached]
),
(int) 2 => array(
[maximum depth reached]
),
(int) 3 => array(
[maximum depth reached]
),
(int) 4 => array(
[maximum depth reached]
)
)
),
(int) 16 => array(
'PrototypeItem' => array(
'id' => '43',
'name' => 'progressbarClass',
'rank' => '43',
'created' => '2023-12-15 15:58:08',
'modified' => '2023-12-15 15:58:08',
'slug' => 'deals-progress-bar-class',
'prototype_instance_id' => '4',
'featured' => false,
'deleted' => false,
'deleted_date' => null,
'head_title' => '$this->Deals->progressbarClass($progressbarWidth)',
'code_name' => 'progressbarClass($progressbarWidth)',
'code' => ' public function progressbarClass($progressbarWidth) {
//
if ($progressbarWidth < 25) {
$colorClass = 'redColor';
} else if ($progressbarWidth < 50) {
$colorClass = 'orangeColor';
} else if ($progressbarWidth < 75) {
$colorClass = 'yellowColor';
} else if ($progressbarWidth < 99) {
$colorClass = 'yellowGreenColor';
} else {
$colorClass = 'greenColor';
}
//
return $colorClass;
}',
'description' => '',
'options' => '',
'example' => ''
),
'PublishingInformation' => array(
'id' => '99',
'created' => '2023-12-15 15:58:08',
'modified' => '2023-12-15 15:58:08',
'model' => 'PrototypeItem',
'foreign_key' => '43',
'start' => '2023-12-15 15:58:08',
'end' => null,
'published' => true
),
'Image' => array(),
'Document' => array(),
'CustomFieldValue' => array(
(int) 0 => array(
[maximum depth reached]
),
(int) 1 => array(
[maximum depth reached]
),
(int) 2 => array(
[maximum depth reached]
),
(int) 3 => array(
[maximum depth reached]
),
(int) 4 => array(
[maximum depth reached]
)
),
'MetaValue' => array(
(int) 1 => array(
[maximum depth reached]
),
(int) 2 => array(
[maximum depth reached]
),
(int) 3 => array(
[maximum depth reached]
),
(int) 4 => array(
[maximum depth reached]
)
)
),
(int) 17 => array(
'PrototypeItem' => array(
'id' => '34',
'name' => 'tableViewLink',
'rank' => '34',
'created' => '2023-12-15 14:25:24',
'modified' => '2023-12-15 14:26:27',
'slug' => 'deal-table-view-link',
'prototype_instance_id' => '4',
'featured' => false,
'deleted' => false,
'deleted_date' => null,
'head_title' => '$this->Deals->tableViewLink($options = array())',
'code_name' => 'tableViewLink($options = array())',
'code' => ' public function tableViewLink($options = array()) {
//
return $this->Html->link(
'Table View'
, array(
'plugin' => 'deals'
, 'controller' => 'deals'
, 'action' => 'table'
, 'dashboard' => true
,
)
);
}',
'description' => 'Returns HTML->link that opens the table view.',
'options' => '',
'example' => '//
$tableViewLink = $this->Deals->tableViewLink($options = array());
//
echo $tableViewLink; // produces <a href="">Table View</a>'
),
'PublishingInformation' => array(
'id' => '88',
'created' => '2023-12-15 14:25:25',
'modified' => '2023-12-15 14:25:25',
'model' => 'PrototypeItem',
'foreign_key' => '34',
'start' => '2023-12-15 10:50:05',
'end' => null,
'published' => true
),
'Image' => array(),
'Document' => array(),
'CustomFieldValue' => array(
(int) 0 => array(
[maximum depth reached]
),
(int) 1 => array(
[maximum depth reached]
),
(int) 2 => array(
[maximum depth reached]
),
(int) 3 => array(
[maximum depth reached]
),
(int) 4 => array(
[maximum depth reached]
),
(int) 5 => array(
[maximum depth reached]
),
(int) 6 => array(
[maximum depth reached]
),
(int) 7 => array(
[maximum depth reached]
),
(int) 8 => array(
[maximum depth reached]
),
(int) 9 => array(
[maximum depth reached]
),
(int) 10 => array(
[maximum depth reached]
),
(int) 11 => array(
[maximum depth reached]
),
(int) 12 => array(
[maximum depth reached]
),
(int) 13 => array(
[maximum depth reached]
),
(int) 14 => array(
[maximum depth reached]
),
(int) 15 => array(
[maximum depth reached]
),
(int) 16 => array(
[maximum depth reached]
),
(int) 17 => array(
[maximum depth reached]
),
(int) 18 => array(
[maximum depth reached]
),
(int) 19 => array(
[maximum depth reached]
),
(int) 20 => array(
[maximum depth reached]
),
(int) 21 => array(
[maximum depth reached]
),
(int) 22 => array(
[maximum depth reached]
),
(int) 23 => array(
[maximum depth reached]
),
(int) 24 => array(
[maximum depth reached]
),
(int) 25 => array(
[maximum depth reached]
),
(int) 26 => array(
[maximum depth reached]
),
(int) 27 => array(
[maximum depth reached]
),
(int) 28 => array(
[maximum depth reached]
),
(int) 29 => array(
[maximum depth reached]
)
),
'MetaValue' => array()
),
(int) 18 => array(
'PrototypeItem' => array(
'id' => '40',
'name' => 'testApproved',
'rank' => '40',
'created' => '2023-12-15 15:53:20',
'modified' => '2023-12-15 15:53:20',
'slug' => 'todo-test-approved',
'prototype_instance_id' => '4',
'featured' => false,
'deleted' => false,
'deleted_date' => null,
'head_title' => '$this->Deals->testApproved($todo_value)',
'code_name' => 'testApproved($todo_value)',
'code' => '/**
* Determine if a TodoValue requires attention because a valid TodoValue.todo_value exists and has not been approved.
*
*
* A TodoValue that requires approval:
* - TRUE a TodoValue.approval_required (check first for the customized value) OR Todo.approval_required (the default value) is true
* - TRUE a validated TodoValue.todo_value exists
* - IS NULL TodoValue.approval_user_id
*
*
*/',
'description' => '',
'options' => '',
'example' => ''
),
'PublishingInformation' => array(
'id' => '96',
'created' => '2023-12-15 15:53:20',
'modified' => '2023-12-15 15:53:20',
'model' => 'PrototypeItem',
'foreign_key' => '40',
'start' => '2023-12-15 15:53:20',
'end' => null,
'published' => true
),
'Image' => array(),
'Document' => array(),
'CustomFieldValue' => array(
(int) 0 => array(
[maximum depth reached]
),
(int) 1 => array(
[maximum depth reached]
),
(int) 2 => array(
[maximum depth reached]
),
(int) 3 => array(
[maximum depth reached]
),
(int) 4 => array(
[maximum depth reached]
)
),
'MetaValue' => array(
(int) 1 => array(
[maximum depth reached]
),
(int) 2 => array(
[maximum depth reached]
),
(int) 3 => array(
[maximum depth reached]
),
(int) 4 => array(
[maximum depth reached]
)
)
),
(int) 19 => array(
'PrototypeItem' => array(
'id' => '26',
'name' => 'todoDueDate',
'rank' => '26',
'created' => '2023-12-15 13:49:28',
'modified' => '2023-12-15 13:53:52',
'slug' => 'todovalue-due-date',
'prototype_instance_id' => '4',
'featured' => false,
'deleted' => false,
'deleted_date' => null,
'head_title' => '$this->Deals->todoDueDate($data, $options = array())',
'code_name' => 'todoDueDate($data, $options = array())',
'code' => '/**
*
*
*
*
*
*/
public function todoDueDate($data, $options = array()) {
//
if (!isset($data['due_date']) && !isset($data['TodoValue']['due_date'])) {
//
return array(date(MYSQL_DATE_FORMAT));
}
//
$return = isset($data['due_date'])
? strtotime($data['due_date'])
: strtotime($data['TodoValue']['due_date']);
//
$defaults = array(
'format' => null
,
);
//
$options = am($defaults, $options);
//
return is_null($options['format'])
? $return
: date($options['format'], $return);
}',
'description' => 'Returns timestamp (default) value of the Todo(Value) due date. You can pass a PHP date() format if you wish within the options array as 'format'.',
'options' => '(array) $data - the TodoValue.
(array) $options - array('format' => null).',
'example' => '//
$todoDueDate = $this->Deals->todoDueDate($data);
//
echo 'This Todo is due on ' . date('Y/m/d', $todoDueDate) . '.';'
),
'PublishingInformation' => array(
'id' => '80',
'created' => '2023-12-15 13:49:28',
'modified' => '2023-12-15 13:49:28',
'model' => 'PrototypeItem',
'foreign_key' => '26',
'start' => '2023-12-15 10:50:05',
'end' => null,
'published' => true
),
'Image' => array(),
'Document' => array(),
'CustomFieldValue' => array(
(int) 0 => array(
[maximum depth reached]
),
(int) 1 => array(
[maximum depth reached]
),
(int) 2 => array(
[maximum depth reached]
),
(int) 3 => array(
[maximum depth reached]
),
(int) 4 => array(
[maximum depth reached]
),
(int) 5 => array(
[maximum depth reached]
),
(int) 6 => array(
[maximum depth reached]
),
(int) 7 => array(
[maximum depth reached]
),
(int) 8 => array(
[maximum depth reached]
),
(int) 9 => array(
[maximum depth reached]
)
),
'MetaValue' => array()
),
(int) 20 => array(
'PrototypeItem' => array(
'id' => '16',
'name' => 'todoValueCurrent',
'rank' => '16',
'created' => '2023-12-15 12:54:41',
'modified' => '2023-12-15 13:43:50',
'slug' => 'todovalue-current',
'prototype_instance_id' => '4',
'featured' => false,
'deleted' => false,
'deleted_date' => null,
'head_title' => '$this->Deals->todoValueCurrent($todo_value, $options = array())',
'code_name' => 'todoValueCurrent($todo_value, $options = array())',
'code' => '/**
* Current - due date is tomorrow or greater and no contributed assets.
*
*
* @params $data TodoValue
* @params $options
* @return Boolean
*/
public function todoValueCurrent($todo_value, $options = array()) {
//
$return = false;
//
if (!$todo_value) {
//
return $return;
}
//
$todo_value = isset($todo_value[$this->alias][$this->primaryKey]) && strlen($todo_value[$this->alias][$this->primaryKey]) > 0
? $todo_value[$this->alias]
: $todo_value;
//
$due_date = date('Y-m-d', strtotime($todo_value['due_date']));
//
$today = date('Y-m-d');
//
$validated = $this->todoValueValidate($todo_value);
//
$return = $due_date > $today && $validated['empty'];
//
return $return;
}',
'description' => 'Returns Boolean:
- true the TodoValue is current because due date is tomorrow or greater and no contributed assets; false.',
'options' => '(array) $todo_value - the TodoValue with 'TodoValue' as an array key.
(array) $options - not employed.',
'example' => '//
$todoValueCurrent = $this->Deals->todoValueCurrent($todo_value);
//
echo 'This Todo is ' . ($todoValueCurrent ? 'current' : 'not current') . '.';'
),
'PublishingInformation' => array(
'id' => '70',
'created' => '2023-12-15 12:54:41',
'modified' => '2023-12-15 12:54:41',
'model' => 'PrototypeItem',
'foreign_key' => '16',
'start' => '2023-12-15 10:50:05',
'end' => null,
'published' => true
),
'Image' => array(),
'Document' => array(),
'CustomFieldValue' => array(
(int) 0 => array(
[maximum depth reached]
),
(int) 1 => array(
[maximum depth reached]
),
(int) 2 => array(
[maximum depth reached]
),
(int) 3 => array(
[maximum depth reached]
),
(int) 4 => array(
[maximum depth reached]
),
(int) 5 => array(
[maximum depth reached]
),
(int) 6 => array(
[maximum depth reached]
),
(int) 7 => array(
[maximum depth reached]
),
(int) 8 => array(
[maximum depth reached]
),
(int) 9 => array(
[maximum depth reached]
),
(int) 10 => array(
[maximum depth reached]
),
(int) 11 => array(
[maximum depth reached]
),
(int) 12 => array(
[maximum depth reached]
),
(int) 13 => array(
[maximum depth reached]
),
(int) 14 => array(
[maximum depth reached]
)
),
'MetaValue' => array()
),
(int) 21 => array(
'PrototypeItem' => array(
'id' => '18',
'name' => 'todoValueDone',
'rank' => '18',
'created' => '2023-12-15 13:11:00',
'modified' => '2023-12-15 13:15:48',
'slug' => 'todovalue-done',
'prototype_instance_id' => '4',
'featured' => false,
'deleted' => false,
'deleted_date' => null,
'head_title' => '$this->Deals->todoValueDone($data, $options = array())',
'code_name' => 'todoValueDone($data, $options = array())',
'code' => '/**
* Done - contributed assets have been validated and optionally approved.
*
*
* @params $data TodoValue
* @params $options
* @return Boolean
*/
public function todoValueDone($data, $options = array()) {
//
$return = false;
//
if (!$data) {
//
return $return;
}
//
$data = isset($data[$this->alias][$this->primaryKey]) && strlen($data[$this->alias][$this->primaryKey]) > 0
? $data[$this->alias]
: $data;
//
$tests = array();
//
$tests[] = $this->todoValueValidate($data, array('bool' => true));
//
if ($this->approvalRequired($data)) {
//
$tests[] = $this->testApproved($data);
}
//
$return = !in_array(false, $tests, true);
//
return $return;
}',
'description' => 'Returns Boolean: contributed assets have been validated and optionally approved.',
'options' => '(array) $data - the TodoValue with 'TodoValue' as an array key or the TodoValue.id
(array) $options - not employed.',
'example' => '//
$todoValueDone= $this->Deals->todoValueDone($data);
// Done - Boolean
echo 'This Todo is ' . ($todoValueDone ? 'done' : 'not done') . '.';'
),
'PublishingInformation' => array(
'id' => '72',
'created' => '2023-12-15 13:11:00',
'modified' => '2023-12-15 13:11:00',
'model' => 'PrototypeItem',
'foreign_key' => '18',
'start' => '2023-12-15 10:50:05',
'end' => null,
'published' => true
),
'Image' => array(),
'Document' => array(),
'CustomFieldValue' => array(
(int) 0 => array(
[maximum depth reached]
),
(int) 1 => array(
[maximum depth reached]
),
(int) 2 => array(
[maximum depth reached]
),
(int) 3 => array(
[maximum depth reached]
),
(int) 4 => array(
[maximum depth reached]
),
(int) 5 => array(
[maximum depth reached]
),
(int) 6 => array(
[maximum depth reached]
),
(int) 7 => array(
[maximum depth reached]
),
(int) 8 => array(
[maximum depth reached]
),
(int) 9 => array(
[maximum depth reached]
),
(int) 10 => array(
[maximum depth reached]
),
(int) 11 => array(
[maximum depth reached]
),
(int) 12 => array(
[maximum depth reached]
),
(int) 13 => array(
[maximum depth reached]
),
(int) 14 => array(
[maximum depth reached]
),
(int) 15 => array(
[maximum depth reached]
),
(int) 16 => array(
[maximum depth reached]
),
(int) 17 => array(
[maximum depth reached]
),
(int) 18 => array(
[maximum depth reached]
),
(int) 19 => array(
[maximum depth reached]
),
(int) 20 => array(
[maximum depth reached]
),
(int) 21 => array(
[maximum depth reached]
),
(int) 22 => array(
[maximum depth reached]
),
(int) 23 => array(
[maximum depth reached]
),
(int) 24 => array(
[maximum depth reached]
)
),
'MetaValue' => array(
(int) 1 => array(
[maximum depth reached]
),
(int) 2 => array(
[maximum depth reached]
),
(int) 3 => array(
[maximum depth reached]
),
(int) 4 => array(
[maximum depth reached]
)
)
),
(int) 22 => array(
'PrototypeItem' => array(
'id' => '32',
'name' => 'todoValueLabel',
'rank' => '32',
'created' => '2023-12-15 14:22:22',
'modified' => '2023-12-15 14:31:36',
'slug' => 'todovalue-label',
'prototype_instance_id' => '4',
'featured' => false,
'deleted' => false,
'deleted_date' => null,
'head_title' => '$this->Deals->todoValueLabel($todo_value)',
'code_name' => 'todoValueLabel($todo_value)',
'code' => ' public function todoValueLabel($todoValue) {
//
return isset($todoValue['name']) && strlen($todoValue['name']) > 0
? trim($todoValue['name'])
: (isset($todoValue['Todo']['name']) && strlen($todoValue['Todo']['name']) > 0
? $todoValue['Todo']['name']
: ''
);
}',
'description' => 'Returns a string.',
'options' => '',
'example' => '//
$todoValueLabel = $this->Deals->todoValueLabel($todo_value);
//
echo 'This Todo is labeled ' . $todoValueLabel . '.';'
),
'PublishingInformation' => array(
'id' => '86',
'created' => '2023-12-15 14:22:22',
'modified' => '2023-12-15 14:22:22',
'model' => 'PrototypeItem',
'foreign_key' => '32',
'start' => '2023-12-15 10:50:05',
'end' => null,
'published' => true
),
'Image' => array(),
'Document' => array(),
'CustomFieldValue' => array(
(int) 0 => array(
[maximum depth reached]
),
(int) 1 => array(
[maximum depth reached]
),
(int) 2 => array(
[maximum depth reached]
),
(int) 3 => array(
[maximum depth reached]
),
(int) 4 => array(
[maximum depth reached]
),
(int) 5 => array(
[maximum depth reached]
),
(int) 6 => array(
[maximum depth reached]
),
(int) 7 => array(
[maximum depth reached]
),
(int) 8 => array(
[maximum depth reached]
),
(int) 9 => array(
[maximum depth reached]
)
),
'MetaValue' => array(
(int) 1 => array(
[maximum depth reached]
),
(int) 2 => array(
[maximum depth reached]
),
(int) 3 => array(
[maximum depth reached]
),
(int) 4 => array(
[maximum depth reached]
)
)
),
(int) 23 => array(
'PrototypeItem' => array(
'id' => '14',
'name' => 'todoValueLate',
'rank' => '14',
'created' => '2023-12-15 10:50:05',
'modified' => '2023-12-15 13:43:37',
'slug' => 'todovalue-late',
'prototype_instance_id' => '4',
'featured' => false,
'deleted' => false,
'deleted_date' => null,
'head_title' => '$this->Deals->todoValueLate($todo_value, $options = array())',
'code_name' => 'todoValueLate($todo_value, $options = array())',
'code' => '/**
* Late - due date is today or earlier; approval has not been given.
*
*
* @params $data TodoValue
* @params $options
* @return Boolean
*/
public function todoValueLate($data, $options = array()) {
//
$return = false;
//
if (!$data) {
//
return $return;
}
//
$data = isset($data[$this->alias][$this->primaryKey]) && strlen($data[$this->alias][$this->primaryKey]) > 0
? $data[$this->alias]
: $data;
//
$due_date = date('Y-m-d', strtotime($data['due_date']));
//
$today = date('Y-m-d');
//
$return = $due_date <= $today && !$this->todoValueDone($data);
//
return $return;
}',
'description' => 'Returns Boolean:
- true the TodoValue is late because the due date is today or past and the TodoValue has not been validated and optionally approved; false the Todo(Value) is not late because the due date is tomorrow or further into the future.',
'options' => '(array) $todo_value - the TodoValue with 'TodoValue' as an array key.
(array) $options - not employed.',
'example' => '//
$todoValueLate = $this->Deals->todoValueLate($todo_value);
//
echo 'This Todo is ' . ($todoValueLate ? 'late' : 'on time') . '.';'
),
'PublishingInformation' => array(
'id' => '67',
'created' => '2023-12-15 10:50:05',
'modified' => '2023-12-15 10:50:05',
'model' => 'PrototypeItem',
'foreign_key' => '14',
'start' => '2023-12-15 10:50:05',
'end' => null,
'published' => true
),
'Image' => array(),
'Document' => array(),
'CustomFieldValue' => array(
(int) 0 => array(
[maximum depth reached]
),
(int) 1 => array(
[maximum depth reached]
),
(int) 2 => array(
[maximum depth reached]
),
(int) 3 => array(
[maximum depth reached]
),
(int) 4 => array(
[maximum depth reached]
)
),
'MetaValue' => array()
),
(int) 24 => array(
'PrototypeItem' => array(
'id' => '15',
'name' => 'todoValuePending',
'rank' => '15',
'created' => '2023-12-15 12:51:14',
'modified' => '2023-12-15 13:43:44',
'slug' => 'todovalue-pending',
'prototype_instance_id' => '4',
'featured' => false,
'deleted' => false,
'deleted_date' => null,
'head_title' => '$this->Deals->todoValuePending($todo_value, $options = array())',
'code_name' => 'todoValuePending($todo_value, $options = array())',
'code' => '/**
* Pending - due date is tomorrow or greater; contributed assets have not been approved yet.
*
*
* @params $data TodoValue
* @params $options
* @return Boolean
*/
public function todoValuePending($data, $options = array()) {
//
$return = false;
//
if (!$data) {
//
return $return;
}
//
$data = isset($data[$this->alias][$this->primaryKey]) && strlen($data[$this->alias][$this->primaryKey]) > 0
? $data[$this->alias]
: $data;
//
$due_date = date('Y-m-d', strtotime($data['due_date']));
//
$today = date('Y-m-d');
//
$return = $due_date > $today && !$this->todoValueEmpty($data) && !$this->testApproved($data);
//
return $return;
}',
'description' => 'Returns Boolean:
- true the TodoValue is pending because due date is tomorrow or greater; contributed assets have not been approved yet; false.',
'options' => '(array) $todo_value - the TodoValue with 'TodoValue' as an array key.
(array) $options - not employed.',
'example' => '//
$todoValuePending = $this->Deals->todoValuePending($todo_value);
//
echo 'This Todo is ' . ($todoValuePending ? 'pending' : 'not pending') . '.';'
),
'PublishingInformation' => array(
'id' => '69',
'created' => '2023-12-15 12:51:14',
'modified' => '2023-12-15 12:51:14',
'model' => 'PrototypeItem',
'foreign_key' => '15',
'start' => '2023-12-15 10:50:05',
'end' => null,
'published' => true
),
'Image' => array(),
'Document' => array(),
'CustomFieldValue' => array(
(int) 0 => array(
[maximum depth reached]
),
(int) 1 => array(
[maximum depth reached]
),
(int) 2 => array(
[maximum depth reached]
),
(int) 3 => array(
[maximum depth reached]
),
(int) 4 => array(
[maximum depth reached]
),
(int) 5 => array(
[maximum depth reached]
),
(int) 6 => array(
[maximum depth reached]
),
(int) 7 => array(
[maximum depth reached]
),
(int) 8 => array(
[maximum depth reached]
),
(int) 9 => array(
[maximum depth reached]
)
),
'MetaValue' => array(
(int) 1 => array(
[maximum depth reached]
),
(int) 2 => array(
[maximum depth reached]
),
(int) 3 => array(
[maximum depth reached]
),
(int) 4 => array(
[maximum depth reached]
)
)
),
(int) 25 => array(
'PrototypeItem' => array(
'id' => '17',
'name' => 'todoValueStatus',
'rank' => '17',
'created' => '2023-12-15 13:04:10',
'modified' => '2023-12-15 13:43:59',
'slug' => 'todovalue-status',
'prototype_instance_id' => '4',
'featured' => false,
'deleted' => false,
'deleted_date' => null,
'head_title' => '$this->Deals->todoValueStatus($data, $options = array())',
'code_name' => 'todoValueStatus($data, $options = array())',
'code' => '/**
* A wrapper to use all the todoValue* checks.
*
* $data array() TodoValue
* return array()
*/
public function todoValueStatus($data, $options = array()) {
//
$return = array(
'status' => null
, 'class' => null
, 'complete' => false
,
);
//
if (is_numeric($data)) {
//
$data = $this->find(
'first'
, array(
'conditions' => array(
$this->alias . '.' . $this->primaryKey => $data
,
)
, 'contain' => array(
'Document'
,
)
,
)
);
}
//
if (!$data) {
//
return $return;
}
//
$defaults = array();
//
$options = am($defaults , $options);
//
if ($this->todoValueDone($data)) {
//
$return['status'] = 'complete';
//
$return['class'] = 'todo-value-status-complete';
//
$return['complete'] = true;
//
} elseif ($this->todoValueLate($data)) {
//
$return['status'] = 'late';
//
$return['class'] = 'todo-value-status-late';
//
} elseif ($this->todoValuePending($data)) {
//
$return['status'] = 'pending';
//
$return['class'] = 'todo-value-status-pending';
//
} else { //if ($this->todoValueCurrent($data)) {
//
$return['status'] = 'current';
//
$return['class'] = 'todo-value-status-current';
}
//
return $return;
}',
'description' => 'Returns array:
array(
'status' => null
, 'class' => null
, 'complete' => false
,
)',
'options' => '(array) $data - the TodoValue with 'TodoValue' as an array key or the TodoValue.id
(array) $options - not employed.',
'example' => '//
$todoValueStatus= $this->Deals->todoValueStatus($data);
// Status - string
echo 'This Todo is ' . $todoValueStatus['status'] . '.';
// Class - string
echo 'This Todo is ' . $todoValueStatus['class'] . '.';
// Complete - Boolean
echo 'This Todo is ' . ($todoValueStatus['complete'] ? 'complete' : 'incomplete') . '.';'
),
'PublishingInformation' => array(
'id' => '71',
'created' => '2023-12-15 13:04:10',
'modified' => '2023-12-15 13:04:10',
'model' => 'PrototypeItem',
'foreign_key' => '17',
'start' => '2023-12-15 10:50:05',
'end' => null,
'published' => true
),
'Image' => array(),
'Document' => array(),
'CustomFieldValue' => array(
(int) 0 => array(
[maximum depth reached]
),
(int) 1 => array(
[maximum depth reached]
),
(int) 2 => array(
[maximum depth reached]
),
(int) 3 => array(
[maximum depth reached]
),
(int) 4 => array(
[maximum depth reached]
),
(int) 5 => array(
[maximum depth reached]
),
(int) 6 => array(
[maximum depth reached]
),
(int) 7 => array(
[maximum depth reached]
),
(int) 8 => array(
[maximum depth reached]
),
(int) 9 => array(
[maximum depth reached]
),
(int) 10 => array(
[maximum depth reached]
),
(int) 11 => array(
[maximum depth reached]
),
(int) 12 => array(
[maximum depth reached]
),
(int) 13 => array(
[maximum depth reached]
),
(int) 14 => array(
[maximum depth reached]
),
(int) 15 => array(
[maximum depth reached]
),
(int) 16 => array(
[maximum depth reached]
),
(int) 17 => array(
[maximum depth reached]
),
(int) 18 => array(
[maximum depth reached]
),
(int) 19 => array(
[maximum depth reached]
)
),
'MetaValue' => array(
(int) 1 => array(
[maximum depth reached]
),
(int) 2 => array(
[maximum depth reached]
),
(int) 3 => array(
[maximum depth reached]
),
(int) 4 => array(
[maximum depth reached]
)
)
),
(int) 26 => array(
'PrototypeItem' => array(
'id' => '31',
'name' => 'todoValueValidate',
'rank' => '31',
'created' => '2023-12-15 14:15:30',
'modified' => '2023-12-15 14:21:58',
'slug' => 'todovalue-validate',
'prototype_instance_id' => '4',
'featured' => false,
'deleted' => false,
'deleted_date' => null,
'head_title' => '$this->Deals->todoValueValidate($todo_value, $options = array())',
'code_name' => 'todoValueValidate($todo_value, $options = array())',
'code' => ' public function todoValueValidate($todo_value, $options = array()) {
//
$return = array();
//
$return['result'] = false;
//
$return['empty'] = false;
//
$defaults = array(
'bool' => false
,
);
//
$options = am($defaults, $options);
//
if (isset($todo_value['validation']) && !is_null($todo_value['validation'])) {
//
if ($todo_value['validation'] == 'file') {
//
if (!isset($todo_value['Document'])) {
//
$todo_value = $this->find(
'first'
, array(
'conditions' => array(
$this->alias . '.' . $this->primaryKey => $todo_value[$this->primaryKey]
,
)
, 'contain' => array(
'Document'
,
)
,
)
);
}
//
if (isset($todo_value['Document'][0]) && !empty($todo_value['Document'][0])) {
//
$return['result'] = true;
//
} else {
//
$return['validationErrors'] = array(
'A document is required.'
,
);
//
$return['empty'] = true;
}
//
} elseif ($todo_value['validation'] == 'email') {
//
if (filter_var($todo_value['todo_value'], FILTER_VALIDATE_EMAIL)) {
//
$return['result'] = true;
} else {
//
$return['validationErrors'] = array(
'Invalid email.'
,
);
}
//
if (strlen($todo_value['todo_value']) < 1) {
//
$return['empty'] = true;
}
// notEmpty
} else {
//
if (strlen($todo_value['todo_value']) > 0) {
//
$return['result'] = true;
} else {
//
$return['validationErrors'] = array(
'notEmpty.'
,
);
//
$return['empty'] = true;
}
}
// notEmpty
} else {
//
if (isset($todo_value['todo_value']) && strlen($todo_value['todo_value']) > 0) {
//
$return['result'] = true;
} else {
//
$return['validationErrors'] = array(
'notEmpty.'
,
);
//
$return['empty'] = true;
}
}
//
return !$options['bool']
? $return
: $return['result'];
}',
'description' => 'Returns array:
'result' => Boolean
'empty' => Boolean
'validationErrors' => string',
'options' => '(array) $todo_value - the TodoValue array.
(array) $options - not employed.',
'example' => '//
$todoValueValidate = $this->Deals->todoValueValidate($todo_value);
//
echo 'This TodoValue is ' . ($todoValueValidate['result'] ? 'valid' : 'invalid - ' . $todoValueValidate['validationErrors']) . '.';
//
echo 'This TodoValue is ' . ($todoValueValidate['empty'] ? 'empty' : 'not empty') . '.';'
),
'PublishingInformation' => array(
'id' => '85',
'created' => '2023-12-15 14:15:30',
'modified' => '2023-12-15 14:15:30',
'model' => 'PrototypeItem',
'foreign_key' => '31',
'start' => '2023-12-15 10:50:05',
'end' => null,
'published' => true
),
'Image' => array(),
'Document' => array(),
'CustomFieldValue' => array(
(int) 0 => array(
[maximum depth reached]
),
(int) 1 => array(
[maximum depth reached]
),
(int) 2 => array(
[maximum depth reached]
),
(int) 3 => array(
[maximum depth reached]
),
(int) 4 => array(
[maximum depth reached]
),
(int) 5 => array(
[maximum depth reached]
),
(int) 6 => array(
[maximum depth reached]
),
(int) 7 => array(
[maximum depth reached]
),
(int) 8 => array(
[maximum depth reached]
),
(int) 9 => array(
[maximum depth reached]
),
(int) 10 => array(
[maximum depth reached]
),
(int) 11 => array(
[maximum depth reached]
),
(int) 12 => array(
[maximum depth reached]
),
(int) 13 => array(
[maximum depth reached]
),
(int) 14 => array(
[maximum depth reached]
),
(int) 15 => array(
[maximum depth reached]
),
(int) 16 => array(
[maximum depth reached]
),
(int) 17 => array(
[maximum depth reached]
),
(int) 18 => array(
[maximum depth reached]
),
(int) 19 => array(
[maximum depth reached]
)
),
'MetaValue' => array(
(int) 1 => array(
[maximum depth reached]
),
(int) 2 => array(
[maximum depth reached]
),
(int) 3 => array(
[maximum depth reached]
),
(int) 4 => array(
[maximum depth reached]
)
)
),
(int) 27 => array(
'PrototypeItem' => array(
'id' => '28',
'name' => 'userNameAndGroups',
'rank' => '28',
'created' => '2023-12-15 13:58:26',
'modified' => '2023-12-15 15:56:45',
'slug' => 'deal-username-and-their-groups',
'prototype_instance_id' => '4',
'featured' => false,
'deleted' => false,
'deleted_date' => null,
'head_title' => '$this->Deals->userNameAndGroups($data, $options = array())',
'code_name' => 'userNameAndGroups($data, $options = array())',
'code' => '/**
*
*
*
*
*/
public function userNameAndGroups($data, $options = array()) {
//
if (!$data || !isset($data['User']) || empty($data['User'])) {
//
return '';
}
//
$return = '';
//
foreach ($data['User'] AS $keyUser => $user) {
//
$userName = isset($user['full_name'])
? $user['full_name']
: (isset($user['first_name'])
? $user['first_name'] . (isset($user['last_name'])
? ' ' . $user['last_name']
: ''
)
: (isset($user['last_name'])
? ' ' . $user['last_name']
: ''
)
);
//
$userGroup = isset($user['Group']) && !empty($user['Group'])
? implode(', ', Hash::extract($user, 'Group.{n}.name'))
: '';
//
$return .= $this->Html->tag(
'p'
, $userName
. '<br>'
. $this->Html->tag(
'span'
, $userGroup
, array(
'class' => 'inv-title'
,
)
)
, array(
'class' => 'inv-party'
,
)
);
}
//
return $return;
}',
'description' => 'Returns HTML of the User and their associated User.Group',
'options' => '(array) $data - the Deal array.
(array) $options - not employed.',
'example' => '//
$userNameAndGroups = $this->Deals->userNameAndGroups($data, $options = array());
//
echo 'This Deal involves this/these ' . $userNameAndGroups . '.';'
),
'PublishingInformation' => array(
'id' => '82',
'created' => '2023-12-15 13:58:26',
'modified' => '2023-12-15 13:58:26',
'model' => 'PrototypeItem',
'foreign_key' => '28',
'start' => '2023-12-15 10:50:05',
'end' => null,
'published' => true
),
'Image' => array(),
'Document' => array(),
'CustomFieldValue' => array(
(int) 0 => array(
[maximum depth reached]
),
(int) 1 => array(
[maximum depth reached]
),
(int) 2 => array(
[maximum depth reached]
),
(int) 3 => array(
[maximum depth reached]
),
(int) 4 => array(
[maximum depth reached]
),
(int) 5 => array(
[maximum depth reached]
),
(int) 6 => array(
[maximum depth reached]
),
(int) 7 => array(
[maximum depth reached]
),
(int) 8 => array(
[maximum depth reached]
),
(int) 9 => array(
[maximum depth reached]
)
),
'MetaValue' => array(
(int) 1 => array(
[maximum depth reached]
),
(int) 2 => array(
[maximum depth reached]
),
(int) 3 => array(
[maximum depth reached]
),
(int) 4 => array(
[maximum depth reached]
)
)
),
(int) 28 => array(
'PrototypeItem' => array(
'id' => '42',
'name' => 'viewEmail',
'rank' => '42',
'created' => '2023-12-15 15:56:11',
'modified' => '2023-12-15 15:56:11',
'slug' => 'deals-view-email',
'prototype_instance_id' => '4',
'featured' => false,
'deleted' => false,
'deleted_date' => null,
'head_title' => '$this->Deals->viewEmail($id = null, $options = array())',
'code_name' => 'viewEmail($id = null, $options = array())',
'code' => ' public function viewEmail($id = null, $options = array()) {
//
if (!$id) {
//
return '';
}
//
$defaults = array(
'escape' => false
, 'link_content' => 'View Email Log'
,
);
//
$options = am($defaults, $options);
//
$linkContent = $options['link_content'];
//
unset($options['link_content']);
//
return $this->Html->link(
$linkContent
, array(
'plugin' => 'tickets'
, 'controller' => 'notifications'
, 'action' => 'view'
, 'dashboard' => true
, '?' => array(
'deal_id' => $id
,
)
,
)
, $options
);
}',
'description' => '',
'options' => '',
'example' => ''
),
'PublishingInformation' => array(
'id' => '98',
'created' => '2023-12-15 15:56:11',
'modified' => '2023-12-15 15:56:11',
'model' => 'PrototypeItem',
'foreign_key' => '42',
'start' => '2023-12-15 15:56:11',
'end' => null,
'published' => true
),
'Image' => array(),
'Document' => array(),
'CustomFieldValue' => array(
(int) 0 => array(
[maximum depth reached]
),
(int) 1 => array(
[maximum depth reached]
),
(int) 2 => array(
[maximum depth reached]
),
(int) 3 => array(
[maximum depth reached]
),
(int) 4 => array(
[maximum depth reached]
)
),
'MetaValue' => array(
(int) 1 => array(
[maximum depth reached]
),
(int) 2 => array(
[maximum depth reached]
),
(int) 3 => array(
[maximum depth reached]
),
(int) 4 => array(
[maximum depth reached]
)
)
)
)
$paginatedItems = false
$pageHeading = 'Helpers'
$titleTag = 'Helpers - RealtyCAP - APP - '
$loggedIn = false
$superAdmin = false
$admin = false
$_instance = array(
'PrototypeInstance' => array(
'id' => '4',
'name' => 'Wiki',
'description' => '',
'slug' => 'wiki',
'created' => '2023-12-15 10:39:48',
'modified' => '2023-12-15 12:07:35',
'use_categories' => true,
'public' => true,
'footer_text' => null,
'layout' => 'default',
'item_order' => 'PrototypeItem.name ASC',
'allow_instance_view' => true,
'allow_category_views' => true,
'allow_item_views' => true,
'item_image_type' => 'none',
'item_document_type' => 'none',
'category_image_type' => 'none',
'category_document_type' => 'none',
'item_summary_pagination' => false,
'item_summary_pagination_limit' => null,
'use_featured_items' => false,
'all_items_featured' => false,
'number_of_featured_items' => '1',
'autoload_featured_items_in_layouts' => 'home',
'deleted' => false,
'deleted_date' => null,
'name_field_label' => 'Name',
'head_title' => 'Wiki',
'category_changefreq' => '',
'use_page_banner_images' => false,
'fallback_to_instance_banner_image' => false,
'use_page_banner_image_categories' => false,
'use_page_banner_image_items' => false,
'item_changefreq' => '',
'controllers' => array(
'category' => 'wiki_categories',
'item' => 'Wiki_items'
),
'models' => array(
'category' => 'WikiCategory',
'item' => 'WikiItem'
)
),
'PublishingInformation' => array(
'id' => '64',
'created' => '2023-12-15 10:39:48',
'modified' => '2023-12-15 10:39:48',
'model' => 'PrototypeInstance',
'foreign_key' => '4',
'start' => '2023-12-15 10:39:48',
'end' => null,
'published' => true
),
'Image' => array(),
'CustomFieldValue' => array(),
'MetaValue' => array(
(int) 1 => array(
'id' => '89',
'created' => '2023-12-15 10:39:48',
'modified' => '2023-12-15 12:07:35',
'model' => 'PrototypeInstance',
'foreign_key' => '4',
'meta_key_id' => '1',
'val' => ''
),
(int) 2 => array(
'id' => '90',
'created' => '2023-12-15 10:39:48',
'modified' => '2023-12-15 12:07:35',
'model' => 'PrototypeInstance',
'foreign_key' => '4',
'meta_key_id' => '2',
'val' => ''
),
(int) 3 => array(
'id' => '91',
'created' => '2023-12-15 10:39:48',
'modified' => '2023-12-15 12:07:35',
'model' => 'PrototypeInstance',
'foreign_key' => '4',
'meta_key_id' => '3',
'val' => ''
),
(int) 4 => array(
'id' => '92',
'created' => '2023-12-15 10:39:48',
'modified' => '2023-12-15 12:07:35',
'model' => 'PrototypeInstance',
'foreign_key' => '4',
'meta_key_id' => '4',
'val' => ''
)
),
'Group' => array(
'Group' => array(
(int) 0 => (int) 0
)
)
)
$instance = array(
'PrototypeInstance' => array(
'id' => '4',
'name' => 'Wiki',
'description' => '',
'slug' => 'wiki',
'created' => '2023-12-15 10:39:48',
'modified' => '2023-12-15 12:07:35',
'use_categories' => true,
'public' => true,
'footer_text' => null,
'layout' => 'default',
'item_order' => 'PrototypeItem.name ASC',
'allow_instance_view' => true,
'allow_category_views' => true,
'allow_item_views' => true,
'item_image_type' => 'none',
'item_document_type' => 'none',
'category_image_type' => 'none',
'category_document_type' => 'none',
'item_summary_pagination' => false,
'item_summary_pagination_limit' => null,
'use_featured_items' => false,
'all_items_featured' => false,
'number_of_featured_items' => '1',
'autoload_featured_items_in_layouts' => 'home',
'deleted' => false,
'deleted_date' => null,
'name_field_label' => 'Name',
'head_title' => 'Wiki',
'category_changefreq' => '',
'use_page_banner_images' => false,
'fallback_to_instance_banner_image' => false,
'use_page_banner_image_categories' => false,
'use_page_banner_image_items' => false,
'item_changefreq' => '',
'controllers' => array(
'category' => 'wiki_categories',
'item' => 'Wiki_items'
),
'models' => array(
'category' => 'WikiCategory',
'item' => 'WikiItem'
)
),
'PublishingInformation' => array(
'id' => '64',
'created' => '2023-12-15 10:39:48',
'modified' => '2023-12-15 10:39:48',
'model' => 'PrototypeInstance',
'foreign_key' => '4',
'start' => '2023-12-15 10:39:48',
'end' => null,
'published' => true
),
'Image' => array(),
'CustomFieldValue' => array(),
'MetaValue' => array(
(int) 1 => array(
'id' => '89',
'created' => '2023-12-15 10:39:48',
'modified' => '2023-12-15 12:07:35',
'model' => 'PrototypeInstance',
'foreign_key' => '4',
'meta_key_id' => '1',
'val' => ''
),
(int) 2 => array(
'id' => '90',
'created' => '2023-12-15 10:39:48',
'modified' => '2023-12-15 12:07:35',
'model' => 'PrototypeInstance',
'foreign_key' => '4',
'meta_key_id' => '2',
'val' => ''
),
(int) 3 => array(
'id' => '91',
'created' => '2023-12-15 10:39:48',
'modified' => '2023-12-15 12:07:35',
'model' => 'PrototypeInstance',
'foreign_key' => '4',
'meta_key_id' => '3',
'val' => ''
),
(int) 4 => array(
'id' => '92',
'created' => '2023-12-15 10:39:48',
'modified' => '2023-12-15 12:07:35',
'model' => 'PrototypeInstance',
'foreign_key' => '4',
'meta_key_id' => '4',
'val' => ''
)
),
'Group' => array(
'Group' => array(
(int) 0 => (int) 0
)
)
)
$validFileExtentsions = array(
(int) 0 => 'pdf',
(int) 1 => 'doc',
(int) 2 => 'docx',
(int) 3 => 'xls',
(int) 4 => 'xlsx',
(int) 5 => 'jpg',
(int) 6 => 'gif',
(int) 7 => 'png'
)
$validFileMimeTypes = array(
(int) 0 => 'application/pdf',
(int) 1 => 'application\/msword',
(int) 2 => 'application\/vnd.openxmlformats-officedocument.wordprocessingml.document',
(int) 3 => 'application\/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml',
(int) 4 => 'application\/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
(int) 5 => 'image/png',
(int) 6 => 'image/jpeg',
(int) 7 => 'image/gif',
(int) 8 => 'application/vnd.ms-excel'
)
$listOrSell = array(
(int) 1 => 'Listing',
(int) 2 => 'Buyer'
)
$dealListOrSaleLabel = array(
(int) 1 => 'List Date',
(int) 2 => 'Closing Date'
)
$content_for_layout = '<div><a href="/wiki">Index</a></div><h1>Helpers</h1><h2><a href="/wiki/view/35-deal-add">addDealLink($options = array())</a></h2>
<p>Description:<br>Returns HTML->link that opens the form to add a new Deal.</p><h2><a href="/wiki/view/38-todo-approval-needed">approvalNeeded($todo_values)</a></h2>
<p>Description:<br></p><h2><a href="/wiki/view/45-deals-archive-toggle-link">archivedDealsLink($archived = null, $options = array())</a></h2>
<p>Description:<br></p><h2><a href="/wiki/view/36-deal-clone">cloneDealLink($id, $options = array())</a></h2>
<p>Description:<br>Returns HTML->link that clones a Deal.</p><h2><a href="/wiki/view/44-dashboard-ajax-toggle">dashboardAjaxToggle($options = array())</a></h2>
<p>Description:<br></p><h2><a href="/wiki/view/19-deal-address">dealAddress($data, $options = array())</a></h2>
<p>Description:<br>A single helper to try and keep Deal.address as a standard presentation.</p><h2><a href="/wiki/view/20-deal-complete">dealComplete($data, $options = array())</a></h2>
<p>Description:<br>Complete - all TodoValues have been received and approved.</p><h2><a href="/wiki/view/21-deal-incomplete">dealIncomplete($data, $options = array())</a></h2>
<p>Description:<br>Incomplete - closing date is tomorrow or greater; not all TodoValues have been received.</p><h2><a href="/wiki/view/23-deal-late">dealLate($data, $options = array())</a></h2>
<p>Description:<br>Late - closing date is today or earlier; approval has not been given to all TodoValues.</p><h2><a href="/wiki/view/22-deal-pending">dealPending($data, $options = array())</a></h2>
<p>Description:<br>Pending - closing date is tomorrow or greater; all TodoValues have been received but not all that need approval have been approved.</p><h2><a href="/wiki/view/24-deal-status">dealStatus($data, $options = array())</a></h2>
<p>Description:<br>Returns array:<br />
array(<br />
'status' => null<br />
, 'class' => null<br />
, 'complete' => false<br />
,<br />
)</p><h2><a href="/wiki/view/25-deal-types-as-list">dealTypesAsList($deal, $options = array())</a></h2>
<p>Description:<br>Returns a string/list of the DealTypes.</p><h2><a href="/wiki/view/30-deal-edit">editDealLink($id, $options = array())</a></h2>
<p>Description:<br>Returns HTML->link that opens Deal for editing.</p><h2><a href="/wiki/view/29-deal-export-data">exportDealData($id, $options = array())</a></h2>
<p>Description:<br>Returns HTML->link that generates a CSV export of the Activity table for the specific Deal.</p><h2><a href="/wiki/view/33-deal-grid-view-link">gridtViewLink($options = array())</a></h2>
<p>Description:<br>Returns HTML->link that opens the grid view.</p><h2><a href="/wiki/view/27-todovalue-involved-parties">involvedParties($data, $options = array())</a></h2>
<p>Description:<br>Returns array of those working on the Deal.</p><h2><a href="/wiki/view/43-deals-progress-bar-class">progressbarClass($progressbarWidth)</a></h2>
<p>Description:<br></p><h2><a href="/wiki/view/34-deal-table-view-link">tableViewLink($options = array())</a></h2>
<p>Description:<br>Returns HTML->link that opens the table view.</p><h2><a href="/wiki/view/40-todo-test-approved">testApproved($todo_value)</a></h2>
<p>Description:<br></p><h2><a href="/wiki/view/26-todovalue-due-date">todoDueDate($data, $options = array())</a></h2>
<p>Description:<br>Returns timestamp (default) value of the Todo(Value) due date. You can pass a PHP date() format if you wish within the options array as 'format'.</p><h2><a href="/wiki/view/16-todovalue-current">todoValueCurrent($todo_value, $options = array())</a></h2>
<p>Description:<br>Returns Boolean:<br />
- true the TodoValue is current because due date is tomorrow or greater and no contributed assets; false.</p><h2><a href="/wiki/view/18-todovalue-done">todoValueDone($data, $options = array())</a></h2>
<p>Description:<br>Returns Boolean: contributed assets have been validated and optionally approved.</p><h2><a href="/wiki/view/32-todovalue-label">todoValueLabel($todo_value)</a></h2>
<p>Description:<br>Returns a string.</p><h2><a href="/wiki/view/14-todovalue-late">todoValueLate($todo_value, $options = array())</a></h2>
<p>Description:<br>Returns Boolean:<br />
- true the TodoValue is late because the due date is today or past and the TodoValue has not been validated and optionally approved; false the Todo(Value) is not late because the due date is tomorrow or further into the future.</p><h2><a href="/wiki/view/15-todovalue-pending">todoValuePending($todo_value, $options = array())</a></h2>
<p>Description:<br>Returns Boolean:<br />
- true the TodoValue is pending because due date is tomorrow or greater; contributed assets have not been approved yet; false.</p><h2><a href="/wiki/view/17-todovalue-status">todoValueStatus($data, $options = array())</a></h2>
<p>Description:<br>Returns array:<br />
array(<br />
'status' => null<br />
, 'class' => null<br />
, 'complete' => false<br />
,<br />
)</p><h2><a href="/wiki/view/31-todovalue-validate">todoValueValidate($todo_value, $options = array())</a></h2>
<p>Description:<br>Returns array:<br />
'result' => Boolean<br />
'empty' => Boolean<br />
'validationErrors' => string</p><h2><a href="/wiki/view/28-deal-username-and-their-groups">userNameAndGroups($data, $options = array())</a></h2>
<p>Description:<br>Returns HTML of the User and their associated User.Group</p><h2><a href="/wiki/view/42-deals-view-email">viewEmail($id = null, $options = array())</a></h2>
<p>Description:<br></p>'
$scripts_for_layout = ''
$title_for_layout = 'PrototypeCategories'include - APP/View/Elements/metas.ctp, line 9
View::_evaluate() - /usr/local/share/pyramidcms/Cake/View/View.php, line 946
View::_render() - /usr/local/share/pyramidcms/Cake/View/View.php, line 908
DebugView::_render() - /usr/local/share/pyramidcms/V2/lib/Cms/Plugin/DebugKit/View/DebugView.php, line 43
View::_renderElement() - /usr/local/share/pyramidcms/Cake/View/View.php, line 1227
View::element() - /usr/local/share/pyramidcms/Cake/View/View.php, line 415
DebugView::element() - /usr/local/share/pyramidcms/V2/lib/Cms/Plugin/DebugKit/View/DebugView.php, line 63
include - APP/View/Elements/layout/header.ctp, line 23
View::_evaluate() - /usr/local/share/pyramidcms/Cake/View/View.php, line 946
View::_render() - /usr/local/share/pyramidcms/Cake/View/View.php, line 908
DebugView::_render() - /usr/local/share/pyramidcms/V2/lib/Cms/Plugin/DebugKit/View/DebugView.php, line 43
View::_renderElement() - /usr/local/share/pyramidcms/Cake/View/View.php, line 1227
View::element() - /usr/local/share/pyramidcms/Cake/View/View.php, line 415
DebugView::element() - /usr/local/share/pyramidcms/V2/lib/Cms/Plugin/DebugKit/View/DebugView.php, line 63
include - APP/View/Layouts/default.ctp, line 3
View::_evaluate() - /usr/local/share/pyramidcms/Cake/View/View.php, line 946
View::_render() - /usr/local/share/pyramidcms/Cake/View/View.php, line 908
DebugView::_render() - /usr/local/share/pyramidcms/V2/lib/Cms/Plugin/DebugKit/View/DebugView.php, line 43
" />