Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
9c224d90
Commit
9c224d90
authored
Jun 11, 2014
by
Alan Willms
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
git://github.com/yiisoft/yii2
into intro-yii-pt-br
parents
8abde75e
cf83c0bd
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
53 deletions
+14
-53
base.md
docs/internals/base.md
+0
-44
translation-teams.md
docs/internals/translation-teams.md
+14
-9
translation-workflow.md
docs/internals/translation-workflow.md
+0
-0
No files found.
docs/internals/base.md
deleted
100644 → 0
View file @
8abde75e
Base classes and interfaces
===========================
Object
------
Object is the base class for many other Yii2 classes.
### property feature
#### Why
To be able to make property
`public`
initially and then seamlessly make it
`private`
or
`protected`
by adding getter and setter method. That will
*not*
change API. Results in less repetitive code. Performance drop isn't significant.
### callbacks and expressions
### [[Object::newInstance|newInstance]] method
This method is a powerful way to instantiate a class. Differences from
`new`
:
-
Calls class constructor (same the
`new`
operator);
-
Initializes the object properties using the name-value pairs given as the
last parameter to this method;
-
Calls
[
[Initable::init|init
]
] if the class implements
[
[Initable
]
].
#### Why
To support class dependencies and their lazy loading.
### [[Initable]] interface
Developer will implement initable interface if running
`init()`
needed and will
skip it if not.
#### Why
Indicates where
`init()`
will be called and where not. More explicit than it was
in Yii 1.
Component
---------
docs/internals/translation-teams.md
View file @
9c224d90
Translation teams
=================
Russian
-------
-
**Alexander Makarov, @samdark, sam@rmcreative.ru**
-
@MUTOgen
-
@prozacUa
Brazilian Portuguese
--------------------
-
**@wbraganca**
-
@alanwillms
-
**[@wbraganca](https://github.com/wbraganca)**
-
[
@alanwillms
](
https://github.com/alanwillms
)
German
------
-
Carsten Brandt,
[
@cebe
](
https://github.com/cebe
)
, mail@cebe.cc
Russian
-------
-
**Alexander Makarov, [@samdark](https://github.com/samdark), sam@rmcreative.ru**
-
[
@MUTOgen
](
https://github.com/MUTOgen
)
-
[
@prozacUa
](
https://github.com/prozacUa
)
docs/internals/translation
s
.md
→
docs/internals/translation
-workflow
.md
View file @
9c224d90
File moved
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment