$object->settype

Name

$object->settype -- Set the type of a record

Synopsis

boolean $object->settype(int type);

Description

Minimum version: Midgard 1.4 (Bifrost)

Sets the type of a record.

Returns true if successfull. Returns false on failure.

Method available for: article records.

Example

<?php
  $article = mgd_get_article(123); # article with id 123 must exist.
  $article->settype(13); # article type is now 13.
?>