What is the point of having $ _comment instead of $ comment?
class Default_Model_Guestbook { protected $_comment; protected $_created; protected $_email; protected $_id; protected $_mapper;
The prefix of protected and private class variables is a general convention in PHP. This simplifies the distinction between public and protected or private.
Quoted from the Zend Framework Coding Agreement
, , "private" "protected", . . , "public", .
Code Convention, , , . , , . ZF .
PHP-, ZF, PEAR PHP Coding Standard. , ( ).
Source: https://habr.com/ru/post/1760580/More articles:How do I check geographic locations (for example, at careers.stackoverflow.com)? - geolocationCustom CSS on a page in Wordpress - cssКакой лучший способ написать и загрузить xml файл в asp.net? - xmlTrying to get the parent class of an element using jQuery - jqueryHow to instantiate a class in another class - oopStop method, - c ++Многопоточное приложение ptrace - linuxIn Spring, how do you get the current user whose credentials are not part of the current HTTP request? - javaPython module search path - pythonCode analysis is not performed when binding the project to assembly obfuscation - .netAll Articles