Exemplo n.º 1
0
 /**
  * Initialize condition options
  *
  * @param array $options
  * @return NotBlank
  */
 public function initialize(array $options)
 {
     $this->blankCondition->initialize($options);
     return $this;
 }
Exemplo n.º 2
0
 public function validate($value)
 {
     return !parent::validate($value);
 }
 function test_simple_components()
 {
     $comp = new Blank(3);
     $this->assertIdentical($comp->getType(), BLANK);
     $comp = new Block("hoho", 3);
     $this->assertIdentical($comp->getType(), BLOCK);
     $comp = new Heading("hoho", 3);
     $this->assertIdentical($comp->getType(), HEADING);
     $comp = new Footer("hoho", 3);
     $this->assertIdentical($comp->getType(), FOOTER);
 }
Exemplo n.º 4
0
 /**
  * Constructor
  *
  * @param array $options
  */
 public function __construct($options = array())
 {
     parent::__construct($options);
     $this->addValidator('Csrf');
 }
Exemplo n.º 5
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getBlanks()
 {
     return $this->hasMany(Blank::className(), ['povod_id' => 'id']);
 }
Exemplo n.º 6
0
 /**
  * Check tests are working
  */
 public function testBlah()
 {
     $this->assertEquals('Ready to start building tests', $this->blank->blah());
 }
Exemplo n.º 7
0
 /**
  * {@inheritdoc}
  */
 protected function isConditionAllowed($context)
 {
     return !parent::isConditionAllowed($context);
 }