From professional translators, enterprises, web pages and freely available translation repositories.
constructors
בנאים
Last Update: 2011-10-24
Usage Frequency: 1
Quality:
a championship for constructors followed in 1958.
תואר האליפות לקבוצות נוסף בשנת 1958.
Last Update: 2016-03-03
Usage Frequency: 2
Quality:
in php 3 and php 4 constructors behave differently.
זהירות
Last Update: 2011-10-24
Usage Frequency: 1
Quality:
it is your responsibility to propagate the call to constructors upstream where appropriate.
לא php 3 ולא php 4 קוראים לבנאי של מחלקת הבסיס אוטומטית מבנאי של מחלקה נגזרת. זה באחריות המשתמש לקורא לפונקציה הבנאית של מחלקת הבסיס במקרה כזה.
Last Update: 2011-10-24
Usage Frequency: 1
Quality:
constructors can take arguments and these arguments can be optional, which makes them much more useful.
בודגמא הוגדרה מחלקה auto_cart שהיא cart ובנוסף לה בנאי שמאתחל את העגלה עם ריט אחד של מוצר שמספרו "10" בכל פעם שיוצרים מופע חדש של auto_cart בעזרת "new ". הפנקציה הבנאית יכולה לקחת ארגומנטים שהם אופציונליים, מה שגורם להם להיות שימושיים במיוחד. על מנת שאפשר יהיה להשתמש בפונקציה בלי פרמטרים, כל הפרמטרים שמועברים לבנאי צריכם להקבע אופציונלית על ידי אספקת ערכי ברירת מחדל.
Last Update: 2011-10-24
Usage Frequency: 1
Quality:
Warning: Contains invisible HTML formatting
constructors are functions in a class that are automatically called when you create a new instance of a class with new.
ב php 3 ו php 4 לפונקציות הבנאיות מתנהגות בצורה שונה. הסמנטיקה של php 4 עדיפה בהרבה.
Last Update: 2011-10-24
Usage Frequency: 1
Quality:
in php 4, a function becomes a constructor, when it has the same name as the class it is defined in - the difference is subtle, but crucial (see below).
בנאים הם פונקציות במחלקה שמופעלים אוטומטית כשיוצרים מופע חדש של המחלקה (בעת יצירת אובייקט חדש) תוך שימוש במילה new. ב php 3, פונקציות מוגדרות כבנאיות כשהן נקראות בשם הזהה לשם המחלקה. ב php 4, פונקציות משמשות כבנאיות, כשהן בעלות אותו שם של מחלקה שהן מוגדרות בתוכן - ההבדל הוא לכאורה קטן, אבל קריטי (ראה למטה).
Last Update: 2011-10-24
Usage Frequency: 1
Quality: