$object->settype

(unknown)

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

Description

boolean $object->settype (int type)

Minimum version: Midgard 1.4 (Bifrost)

Sets the type of a record.

Returns TRUE on success, FALSE on failure.


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

Method available for: article objects.