Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
Syndication
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
WP Plugins
Syndication
Commits
ea4c309b
Commit
ea4c309b
authored
12 years ago
by
Prasath Nadarajah
Browse files
Options
Downloads
Patches
Plain Diff
get_posts initial implementation
parent
a1f1b077
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
includes/class-wp-rss-client.php
+19
-20
19 additions, 20 deletions
includes/class-wp-rss-client.php
with
19 additions
and
20 deletions
includes/class-wp-rss-client.php
+
19
−
20
View file @
ea4c309b
...
...
@@ -14,38 +14,32 @@ class WP_RSS_Client extends SimplePie implements WP_Client{
$this
->
set_feed_url
(
get_post_meta
(
$site_ID
,
'syn_feed_url'
,
true
)
);
}
public
function
new_post
(
$post_ID
)
{
public
function
new_post
(
$post_ID
)
{
// Not supported
return
false
;
}
public
function
edit_post
(
$post_ID
,
$ext_ID
)
{
public
function
edit_post
(
$post_ID
,
$ext_ID
)
{
// Not supported
return
false
;
}
public
function
delete_post
(
$ext_ID
)
{
public
function
delete_post
(
$ext_ID
)
{
// Not supported
return
false
;
}
public
function
set_options
(
$options
,
$ext_ID
)
{
public
function
set_options
(
$options
,
$ext_ID
)
{
// Not supported
return
false
;
}
public
function
test_connection
()
{
public
function
test_connection
()
{
// TODO: Implement test_connection() method.
return
true
;
}
public
function
is_post_exists
(
$ext_ID
)
{
public
function
is_post_exists
(
$ext_ID
)
{
// Not supported
return
false
;
}
...
...
@@ -62,8 +56,7 @@ class WP_RSS_Client extends SimplePie implements WP_Client{
return
$this
->
error_message
;
}
public
static
function
display_settings
(
$site
)
{
public
static
function
display_settings
(
$site
)
{
$feed_url
=
get_post_meta
(
$site
->
ID
,
'syn_feed_url'
,
true
);
...
...
@@ -80,21 +73,27 @@ class WP_RSS_Client extends SimplePie implements WP_Client{
}
public
static
function
save_settings
(
$site_ID
)
{
public
static
function
save_settings
(
$site_ID
)
{
update_post_meta
(
$site_ID
,
'syn_feed_url'
,
esc_url_raw
(
$_POST
[
'feed_url'
]
)
);
return
true
;
}
public
function
get_post
(
$ext_ID
)
{
public
function
get_post
(
$ext_ID
)
{
// TODO: Implement get_post() method.
}
public
function
get_posts
(
$args
)
{
public
function
get_posts
(
$args
)
{
$this
->
init
();
$this
->
handle_content_type
();
// hold all the posts
$posts
=
array
();
foreach
(
$this
->
get_items
()
as
$item
)
{
}
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment