0
I was seeing in the CodeIgniter
that there is a way to insert several 'Where' into the class DB
:
Example:
$this->db->where('id', 1)
->where('name', 'Jão')
->where('lastname', 'Fulaninho')
->get('users')
->result();
The point here is that where
a few words are automatically inserted each new where
that I put up where (...) or where (...)
and so on.
What is called this form of programming in POO
. For me to make my own classes that way.
I guess that’s it: What is Chaining of Methods?
– rray
Possible duplicate of What is Chaining of Methods?
– novic
@Virgilionovic did not, because there he asked what was chaining of methods, here I am asking 'what is called' this form of programming that I put up.
– Alex