-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi.

- --On 18.06.2002 03:29:16 -0700 Pascal Van Hecke wrote:

> The article object has properties startdate and
> enddate.  I can read from them to determine whether an
> article is still valid to be published, but setting
> startdate and enddate seems to be more difficult.
> 
> $article = mgd_get_article($some_id);
> $article->startdate = $some_date;
> $article->update();
> 
> Does not seem to work.
> In the article record definition
> (http://www.midgard-project.net/manual/en/records.article.php)
> I find that it all depends on the fields calstart and
> caldate, however there is no direct equivalent for
> them in the object definition
> (http://www.midgard-project.net/manual/en/object.article.php).
> 
> How do I have to set the article's startdate end
> enddate then?

start and enddate are read-only fields. Use calstart and calstop (UNIX
Timestamps I think) for it.


Live long and prosper!
Torben Nehmer

- --
Torben Nehmer, Munich, Germany
http://www.nathan-syntronics.de, mailto:[EMAIL PROTECTED]
PGP Public Key ID on wwwkeys.(de.)pgp.net: 0x7E9DE456
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE9D1s6JPh4Kn6d5FYRAi1jAKCkAUESxhyDxhTDNxajblR8/Tv7SgCfQDfy
K+pVpl477h3J3bYSO5mLRhc=
=6Sbx
-----END PGP SIGNATURE-----


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to