From 1814168ec7572f9f1e6409d3d0ea17d7e47cf6a0 Mon Sep 17 00:00:00 2001 From: Juan Basso Date: Mon, 21 Mar 2011 08:35:17 -0400 Subject: [PATCH] Added kind of visibility to missed methods. --- lib/Cake/Network/CakeEmail.php | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/lib/Cake/Network/CakeEmail.php b/lib/Cake/Network/CakeEmail.php index 943bde8d5..a29c40073 100644 --- a/lib/Cake/Network/CakeEmail.php +++ b/lib/Cake/Network/CakeEmail.php @@ -837,9 +837,8 @@ class CakeEmail { * * @param string $message Message to wrap * @return array Wrapped message - * @access protected */ - function _wrap($message) { + protected function _wrap($message) { $message = str_replace(array("\r\n", "\r"), "\n", $message); $lines = explode("\n", $message); $formatted = array(); @@ -932,7 +931,7 @@ class CakeEmail { * * @return void */ - function _createboundary() { + protected function _createboundary() { $this->_boundary = md5(uniqid(time())); } @@ -941,7 +940,7 @@ class CakeEmail { * * @return void */ - function _attachFiles() { + protected function _attachFiles() { foreach ($this->_attachments as $filename => $file) { $handle = fopen($file, 'rb'); $data = fread($handle, filesize($file)); @@ -964,7 +963,7 @@ class CakeEmail { * @param array $message Message to format * @return array */ - function _formatMessage($message) { + protected function _formatMessage($message) { if (!empty($this->_attachments)) { $prefix = array('--' . $this->_boundary); if ($this->_emailFormat === 'text') { @@ -988,7 +987,7 @@ class CakeEmail { * @return array Email ready to be sent * @access private */ - function _render($content) { + protected function _render($content) { $viewClass = $this->_viewRender; if ($viewClass !== 'View') {