Posted 18 May 2012 - 09:34 AM
Hi,
There is also another case where a blacklist could be useful.
When there are thousands of model attributes a blacklist is more quick than a whitelist :
This could be very time saving.
one dirty example:
if ($model->validate('*',array('except'=>'title')))
My another suggestion for a blacklist was @ model rules:
public function rules() {
return array(
array('title','required','skip'=>'at_a_specified_scenario'),
);
And [for] their saying, "Indeed, we have killed the Messiah, Jesus, the son of Mary, the messenger of God ." And they did not kill him, nor did they crucify him; but [another] was made to resemble him to them. And indeed, those who differ over it are in doubt about it. They have no knowledge of it except the following of assumption. And they did not kill him, for certain.Rather, God raised him to Himself.