abo – -Translation – Keybot Dictionary

Spacer TTN Translation Network TTN TTN Login Deutsch Français Spacer Help
Source Languages Target Languages
Keybot 8 Results  www.mc-technologies.net
  Primeiros Passos: Traba...  
Informação: O yii\base\Model é usado como pai das classes modelos que
Data yang akan diambil dari pengguna akan direpresentasikan oleh class model
  Conceitos Chave: Compon...  
Sempre chame o construtor pai
Always call the parent constructor
Always call the parent constructor
Always call the parent constructor
  Conceitos Chave: Compon...  
como último parâmetro do construtor, e em seguida passe este parâmetro para o construtor pai.
parameter, and then pass this parameter to the parent constructor.
parameter, and then pass this parameter to the parent constructor.
parameter, and then pass this parameter to the parent constructor.
  Conceitos Chave: Compon...  
Se você sobrescrever o método yii\base\BaseObject::init(), certifique-se de chamar a implementação pai do
If you override the yii\base\BaseObject::init() method, make sure you call the parent implementation of
If you override the yii\base\BaseObject::init() method, make sure you call the parent implementation of
If you override the yii\base\BaseObject::init() method, make sure you call the parent implementation of
  Estrutura de uma Aplica...  
public function fields() { return [ // o nome do campos é igual ao nome do atributo 'id', // o nome do campo é "email", o nome do atributo correspondente é "email_address" 'email' => 'email_address', // o nome do campo é "name", o seu valor é definido por uma função call-back do PHP 'name' => function () { return $this->first_name . ' ' . $this->last_name; }, ]; } // filtra alguns campos, é bem usado quando você quiser herdar a implementação // da classe pai e remover alguns campos delicados.
// 明确列出每个字段,特别用于你想确保数据表或模型 // 属性改变不会导致你的字段改变(保证后端的API兼容)。 public function fields() { return [ // 字段名和属性名相同 'id', // 字段名为 "email",对应属性名为 "email_address" 'email' => 'email_address', // 字段名为 "name", 值通过PHP代码返回 'name' => function () { return $this->first_name . ' ' . $this->last_name; }, ]; } // 过滤掉一些字段,特别用于 // 你想继承父类实现并不想用一些敏感字段 public function fields() { $fields = parent::fields(); // 去掉一些包含敏感信息的字段 unset($fields['auth_key'], $fields['password_hash'], $fields['password_reset_token']); return $fields; }
  Web Services RESTful : ...  
public function fields() { return [ // Nome do campo é igual ao nome do atributo 'id', // nome do campo é "email", o nome do atributo correspondente é "email_address" 'email' => 'email_address', // nome do campo é "name", seu valor é definido por um PHP callback 'name' => function ($model) { return $model->first_name . ' ' . $model->last_name; }, ]; } // filtrar alguns campos, melhor usado quando você deseja herdar a implementação do pai // e deseja esconder alguns campos confidenciais.
// explicitly list every field, best used when you want to make sure the changes // in your DB table or model attributes do not cause your field changes (to keep API backward compatibility). public function fields() { return [ // field name is the same as the attribute name 'id', // field name is "email", the corresponding attribute name is "email_address" 'email' => 'email_address', // field name is "name", its value is defined by a PHP callback 'name' => function ($model) { return $model->first_name . ' ' . $model->last_name; }, ]; } // filter out some fields, best used when you want to inherit the parent implementation // and blacklist some sensitive fields. public function fields() { $fields = parent::fields(); // remove fields that contain sensitive information unset($fields['auth_key'], $fields['password_hash'], $fields['password_reset_token']); return $fields; }