mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Added kind of visibility to missed methods.
This commit is contained in:
parent
90d1f62131
commit
1814168ec7
1 changed files with 5 additions and 6 deletions
|
@ -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') {
|
||||
|
|
Loading…
Reference in a new issue