Gc\Datatype\AbstractDatatype::load PHP Méthode

load() public méthode

Load Datatype
public load ( Model $datatype = null, integer $documentId = null ) : false | null
$datatype Model Datatype
$documentId integer Document id
Résultat false | null
    public function load($datatype = null, $documentId = null)
    {
        if (empty($datatype)) {
            return false;
        }
        $this->setData('datatype_model', $datatype);
        $this->setData('document_id', $documentId);
    }

Usage Example

 /**
  * Test
  *
  * @return void
  */
 public function testLoadWithEmptyDatatype()
 {
     $this->assertFalse($this->object->load(null, null));
 }