ElggMetadata::__construct PHP Méthode

__construct() public méthode

Plugin developers will probably never need to use this API. See \ElggEntity for its API for setting and getting metadata.
public __construct ( stdClass $row = null )
$row stdClass Database row as \stdClass object
    public function __construct(\stdClass $row = null)
    {
        $this->initializeAttributes();
        if ($row) {
            foreach ((array) $row as $key => $value) {
                $this->attributes[$key] = $value;
            }
        }
    }